/* Revisão responsiva global: contenção do AOS, heroes e imagens principais. */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

main,
section,
.container,
.container-wide,
.page-hero-grid,
.hero-copy,
.footer-top {
  min-width: 0;
}

[data-aos] {
  backface-visibility: hidden;
  will-change: opacity, transform;
}

.page-hero {
  padding-block: clamp(58px, 6.5vw, 94px);
}

.page-hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.62fr);
  gap: clamp(40px, 6vw, 84px);
}

.page-hero h1 {
  max-width: 920px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 5.2vw, 5.25rem);
  letter-spacing: -0.045em;
  line-height: 0.94;
  overflow-wrap: normal;
}

.page-hero-simple {
  max-width: 980px;
}

.page-hero-image {
  width: min(100%, 430px);
  aspect-ratio: 1;
  justify-self: end;
}

.page-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.campaign-poster {
  width: min(100%, 500px);
  aspect-ratio: 1080 / 483;
  justify-self: end;
  transform: rotate(1deg);
}

.campaign-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-message .hero-slogan {
  max-width: 760px;
  font-size: clamp(3.25rem, 5.15vw, 5.25rem);
  line-height: 0.82;
}

.hero-visual {
  min-height: 0;
  aspect-ratio: 4 / 5;
  align-self: center;
}

.hero-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 10%;
}

@supports not (overflow: clip) {
  html,
  body {
    overflow-x: hidden;
  }
}

@media (max-width: 820px) {
  [data-aos="fade-left"],
  [data-aos="fade-right"] {
    transform: translate3d(0, 38px, 0);
  }

  [data-aos="fade-left"].aos-animate,
  [data-aos="fade-right"].aos-animate {
    transform: translate3d(0, 0, 0);
  }

  .page-hero {
    padding-block: 52px 62px;
  }

  .page-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 38px;
  }

  .page-hero h1 {
    max-width: 100%;
    font-size: clamp(2.25rem, 9.8vw, 2.85rem);
    letter-spacing: -0.04em;
    line-height: 0.98;
    overflow-wrap: break-word;
  }

  .page-hero p {
    font-size: 1.05rem;
    line-height: 1.55;
  }

  .page-hero-image,
  .campaign-poster {
    width: min(100%, 420px);
    justify-self: center;
    margin-inline: auto;
  }

  .hero-message .hero-slogan {
    max-width: 100%;
    font-size: clamp(2.55rem, 10.8vw, 3.1rem);
    letter-spacing: -0.055em;
    line-height: 0.86;
  }

  .hero-message,
  .hero-message > *,
  .hero-slogan strong,
  .hero-slogan em {
    max-width: 100%;
    min-width: 0;
  }

  .hero-visual {
    width: min(100% - 12px, 520px);
    min-height: 0;
    aspect-ratio: 4 / 5;
  }
}

@media (max-width: 590px) {
  .container,
  .container-wide {
    width: calc(100% - 32px);
  }

  .footer-top {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-links,
  .footer-social,
  .footer-candidate-lockup {
    min-width: 0;
    width: 100%;
  }

  .hero-copy {
    padding-top: 34px;
    padding-bottom: 36px;
    gap: 32px;
  }

  .hero-message .campaign-tag {
    max-width: 100%;
    padding-inline: 11px;
    font-size: 0.65rem;
    letter-spacing: 0.04em;
    white-space: normal;
  }

  .hero-message .hero-slogan {
    font-size: clamp(2.42rem, 10.7vw, 2.85rem);
    line-height: 0.88;
  }

  .hero-slogan-intro {
    padding: 6px 10px 5px;
    font-size: 0.72rem;
    letter-spacing: 0.13em;
  }

  .hero-message > .hero-summary {
    font-size: 1rem;
    line-height: 1.5;
  }

  .hero-visual {
    width: calc(100% - 8px);
    min-height: 0;
    aspect-ratio: 4 / 5;
  }

  .page-hero h1 {
    font-size: clamp(2.18rem, 9.7vw, 2.65rem);
  }

  .page-hero-image {
    width: min(100%, 350px);
    aspect-ratio: 1;
  }

  .campaign-poster {
    width: 100%;
    aspect-ratio: 1080 / 483;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-aos] {
    will-change: auto;
  }
}
