/* Faixas da hero: independentes de imagens, bibliotecas e arquivos de referência. */
.hero-ribbons {
  position: relative;
  z-index: 2;
  isolation: isolate;
  height: clamp(128px, 12vw, 180px);
  margin-top: -110px;
  overflow: hidden;
}
.hero-ribbon {
  position: absolute;
  inset: 50% -5% auto;
  padding-block: 16px;
  overflow: hidden;
  background: var(--header-yellow);
  color: var(--ink);
  transform: translateY(calc(-50% + 12px)) rotate(-2.4deg);
}
.hero-ribbon--green {
  background: var(--green-deep);
  color: var(--cream);
  transform: translateY(calc(-50% - 12px)) rotate(2deg);
}
.hero-ribbon__track {
  display: flex;
  width: max-content;
  animation: fr-ribbon-scroll 34s linear infinite;
}
.hero-ribbon--green .hero-ribbon__track {
  animation-direction: reverse;
  animation-duration: 40s;
}
.hero-ribbon__group {
  display: flex;
  flex-shrink: 0;
  justify-content: space-around;
  min-width: 100vw;
}
.hero-ribbon__group span {
  display: inline-flex;
  align-items: center;
  gap: 36px;
  padding-inline: 18px;
  white-space: nowrap;
  font-family: var(--font-body);
  font-size: clamp(18px, 2.1vw, 28px);
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}
.hero-ribbon__group span::after {
  content: '';
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 50%;
  background: currentColor;
}
.hero-ribbons:hover .hero-ribbon__track { animation-play-state: paused; }
/* Em celulares e tablets, as faixas ficam depois de toda a área da animação. */
@media (max-width: 980px) {
  .hero-ribbons { margin-top: 0; }
}
@keyframes fr-ribbon-scroll {
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-ribbon__track { animation: none; }
}
