/* Atualização final do hero e do retrato oficial. */
.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-photo-frame {
  background: transparent;
}

.hero-photo-frame img {
  object-fit: contain;
  object-position: center top;
}

.hero-marquee {
  position: relative;
  z-index: 4;
}

.hero-color-ribbons {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 48px;
  left: 0;
  height: 112px;
  overflow: hidden;
  pointer-events: none;
}

.hero-color-ribbons span {
  position: absolute;
  right: -3%;
  bottom: 0;
  left: -3%;
  display: block;
  transform-origin: center bottom;
}

.hero-ribbon-green {
  height: 108px;
  background: var(--green);
  clip-path: polygon(0 58%, 14% 69%, 29% 47%, 45% 66%, 61% 39%, 78% 57%, 90% 35%, 100% 49%, 100% 100%, 0 100%);
}

.hero-ribbon-red {
  height: 82px;
  background: var(--red);
  clip-path: polygon(0 55%, 16% 39%, 33% 61%, 51% 32%, 68% 56%, 83% 28%, 100% 48%, 100% 100%, 0 100%);
}

.hero-ribbon-yellow {
  height: 58px;
  background: #ffe044;
  clip-path: polygon(0 52%, 18% 69%, 36% 35%, 54% 59%, 73% 27%, 88% 51%, 100% 38%, 100% 100%, 0 100%);
}

.hero-ribbon-blue {
  height: 38px;
  background: var(--blue);
  clip-path: polygon(0 40%, 17% 24%, 35% 49%, 52% 19%, 70% 44%, 86% 17%, 100% 36%, 100% 100%, 0 100%);
}

.page-quem-e .page-hero-image {
  width: min(100%, 390px);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: transparent;
  border-radius: 46% 46% 18px 18px;
}

.page-quem-e .page-hero-image img {
  object-fit: contain;
  object-position: center top;
}

@media (max-width: 820px) {
  .hero-home {
    background:
      radial-gradient(circle at 8% 18%, rgba(255, 255, 255, .48) 0 3px, transparent 4px),
      var(--yellow);
    background-size: 26px 26px, auto;
  }

  .hero-color-ribbons {
    bottom: 46px;
    height: 82px;
  }

  .hero-ribbon-green { height: 80px; }
  .hero-ribbon-red { height: 62px; }
  .hero-ribbon-yellow { height: 45px; }
  .hero-ribbon-blue { height: 30px; }

  .page-quem-e .page-hero-image {
    width: min(100%, 340px);
  }
}

@media (max-width: 590px) {
  .hero-copy {
    padding-top: 20px;
    padding-bottom: 22px;
    gap: 8px;
  }

  .hero-message .campaign-tag {
    margin-bottom: 10px;
    padding: 6px 9px;
    font-size: .61rem;
  }

  .hero-message .hero-slogan {
    margin-bottom: 14px;
    font-size: clamp(1.95rem, 8.8vw, 2.45rem);
    line-height: .87;
  }

  .hero-slogan-intro {
    margin-bottom: 6px;
    padding: 5px 8px 4px;
    font-size: .62rem;
    letter-spacing: .11em;
  }

  .hero-slogan-intro-blue {
    margin-top: 12px;
  }

  .hero-message > .hero-summary {
    margin-bottom: 14px;
    font-size: .9rem;
    line-height: 1.38;
  }

  .hero-actions {
    flex-wrap: nowrap;
    gap: 7px;
  }

  .hero-actions .button {
    min-height: 40px;
    padding: .65rem .72rem;
    font-size: .67rem;
    white-space: nowrap;
  }

  .hero-visual {
    width: calc(100% - 20px);
    height: clamp(380px, 102vw, 450px);
    min-height: 0;
    margin-top: -32px;
    aspect-ratio: auto;
  }

  .hero-photo-frame {
    inset: -2% 0 0;
    border-radius: 44% 44% 12px 12px;
  }

  .hero-candidate-lockup {
    right: -10px;
    bottom: 8px;
    width: min(260px, 91%);
    padding: 11px 13px 12px;
  }

  .hero-candidate-lockup::before {
    top: 13px;
    right: 14px;
    width: 28px;
  }

  .hero-candidate-lockup > strong {
    font-size: clamp(1.75rem, 8vw, 2.35rem);
  }

  .hero-candidate-lockup > b {
    margin-top: 8px;
    font-size: clamp(2.9rem, 15vw, 4rem);
  }

  .hero-candidate-star {
    top: 5%;
    width: 52px;
    font-size: 1.55rem;
  }

  .hero-color-ribbons {
    bottom: 40px;
    height: 68px;
  }

  .hero-ribbon-green { height: 66px; }
  .hero-ribbon-red { height: 51px; }
  .hero-ribbon-yellow { height: 37px; }
  .hero-ribbon-blue { height: 25px; }

  .hero-marquee > div {
    padding-block: 10px;
  }

  .page-quem-e .page-hero-image {
    width: min(100%, 310px);
  }
}

@media (max-width: 390px) {
  .hero-message .hero-slogan {
    font-size: clamp(1.8rem, 8.5vw, 2.1rem);
  }

  .hero-actions .button {
    padding-inline: .6rem;
    font-size: .62rem;
  }

  .hero-visual {
    height: 380px;
    margin-top: -38px;
  }
}
