/* Atualização de conteúdo, identidade e galerias — 12/09/2026. */

/* A assinatura eleitoral acompanha a marca sem competir com a navegação. */
.brand {
  display: flex;
  min-width: 296px;
  align-items: center;
  gap: 14px;
}

.brand-wordmark {
  position: relative;
  display: grid;
  line-height: .82;
}

.brand-role {
  padding-left: 14px;
  color: var(--ink);
  border-left: 1px solid rgba(20, 18, 15, .22);
  font-size: .65rem;
  font-weight: 900;
  letter-spacing: .105em;
  line-height: 1.15;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Faixa institucional compartilhada pelos heróis internos. */
.page-hero-marquee {
  position: relative;
  z-index: 3;
}

/* Hero principal: retrato maior, centralizado e mais próximo do texto. */
@media (min-width: 1181px) {
  .page-home .hero-copy {
    grid-template-columns: minmax(0, .94fr) minmax(500px, .92fr);
    min-height: clamp(620px, 69vh, 690px);
    gap: clamp(8px, 1.6vw, 26px);
  }

  .page-home .hero-visual {
    left: -3%;
    width: 106%;
    min-height: clamp(640px, 74vh, 680px);
    aspect-ratio: auto;
  }

  .page-home .hero-photo-frame {
    inset: -2% -2% 0 -4%;
  }

  .page-home .hero-photo-frame img {
    object-position: center bottom;
    transform: scale(1.11);
  }

  .page-home .hero-candidate-signature {
    right: 2%;
  }
}

@media (min-width: 961px) and (max-width: 1180px) {
  .page-home .hero-copy {
    grid-template-columns: minmax(0, 1fr) minmax(390px, .8fr);
    gap: clamp(16px, 2.4vw, 30px);
  }

  .page-home .hero-visual {
    left: -2%;
    width: 104%;
  }

  .page-home .hero-photo-frame {
    inset: 0 -2% 0 -4%;
  }
}

/* Mosaico da home: uma imagem principal e quatro registros complementares. */
.campaign-mosaic {
  grid-template-columns: 1.12fr .94fr .94fr;
  grid-template-rows: repeat(2, 270px) auto;
}

.campaign-mosaic .campaign-photo-tall {
  grid-column: 1;
  grid-row: 1 / 3;
}

.campaign-mosaic .campaign-photo:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
}

.campaign-mosaic .campaign-photo:nth-child(3) {
  grid-column: 3;
  grid-row: 1;
}

.campaign-mosaic .campaign-photo:nth-child(4) {
  grid-column: 2;
  grid-row: 2;
}

.campaign-mosaic .campaign-photo:nth-child(5) {
  grid-column: 3;
  grid-row: 2;
}

.campaign-mosaic .campaign-callout {
  grid-column: 1 / -1;
  min-height: 108px;
}

.campaign-mosaic .campaign-photo img {
  object-position: center top;
}

.campaign-gallery .gallery-item-majoritaria {
  grid-column: span 6;
}

.campaign-gallery .gallery-item-majoritaria img {
  height: 520px;
  object-position: center top;
}

/* Vídeo biográfico. */
.biography-video-section {
  overflow: hidden;
}

.biography-video-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
  align-items: center;
  gap: clamp(48px, 9vw, 126px);
}

.biography-video-copy h2 {
  max-width: 760px;
  margin-bottom: 22px;
}

.biography-video-copy p {
  max-width: 650px;
  margin-bottom: 0;
  font-size: 1.1rem;
}

.facebook-video-card {
  width: min(100%, 330px);
  margin-inline: auto;
  padding: 18px;
  background: var(--ink);
  border-radius: 20px;
}

.facebook-video-frame {
  width: min(267px, 100%);
  aspect-ratio: 267 / 476;
  margin-inline: auto;
  overflow: hidden;
  background: #fff;
  border-radius: 12px;
}

.facebook-video-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Carrossel acessível e leve, sem dependências externas. */
.story-carousel-section {
  overflow: hidden;
}

.story-carousel-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 34px;
  gap: 28px;
}

.story-carousel-heading h2 {
  max-width: 760px;
  margin-bottom: 0;
}

.story-carousel-controls {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.story-carousel-button {
  display: grid;
  width: 48px;
  aspect-ratio: 1;
  place-items: center;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 1px solid rgba(20, 18, 15, .28);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.35rem;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.story-carousel-button:hover:not(:disabled) {
  color: var(--white);
  background: var(--blue);
  border-color: var(--blue);
}

.story-carousel-button:disabled {
  cursor: default;
  opacity: .35;
}

.story-carousel-track {
  display: grid;
  overflow-x: auto;
  grid-auto-columns: clamp(260px, 28vw, 350px);
  grid-auto-flow: column;
  gap: 16px;
  padding: 2px 2px 18px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--red) rgba(20, 18, 15, .1);
  scrollbar-width: thin;
}

.story-slide {
  overflow: hidden;
  margin: 0;
  background: var(--white);
  border: 1px solid rgba(20, 18, 15, .12);
  border-radius: 18px;
  scroll-snap-align: start;
}

.story-slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
}

.story-slide-wide img {
  object-fit: contain;
  background: var(--ink);
}

.story-slide figcaption {
  min-height: 74px;
  padding: 16px 18px 17px;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.35;
}

@media (max-width: 960px) {
  .brand {
    min-width: 282px;
  }

  .campaign-mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    grid-auto-rows: 330px;
  }

  .campaign-mosaic .campaign-photo,
  .campaign-mosaic .campaign-photo-tall {
    grid-column: auto;
    grid-row: auto;
  }

  .campaign-mosaic .campaign-callout {
    grid-column: 1 / -1;
    min-height: 110px;
  }

  .biography-video-grid {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 330px);
    gap: 42px;
  }
}

@media (max-width: 820px) {
  .page-hero-marquee {
    display: none;
  }

  .brand {
    min-width: 250px;
    gap: 10px;
  }

  .brand-role {
    max-width: 78px;
    padding-left: 10px;
    font-size: .56rem;
    line-height: 1.08;
    white-space: normal;
  }

  .biography-video-grid {
    grid-template-columns: 1fr;
  }

  .biography-video-copy {
    text-align: center;
  }

  .biography-video-copy p {
    margin-inline: auto;
  }
}

@media (max-width: 590px) {
  .brand {
    min-width: 0;
    gap: 8px;
  }

  .brand-role {
    max-width: 66px;
    padding-left: 8px;
    font-size: .49rem;
    letter-spacing: .08em;
  }

  .campaign-mosaic {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: 390px;
  }

  .campaign-mosaic .campaign-photo,
  .campaign-mosaic .campaign-photo-tall,
  .campaign-mosaic .campaign-callout {
    grid-column: 1;
    grid-row: auto;
  }

  .campaign-mosaic .campaign-photo-tall {
    min-height: 440px;
  }

  .campaign-mosaic .campaign-callout {
    min-height: 126px;
  }

  .story-carousel-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .story-carousel-track {
    grid-auto-columns: min(82vw, 320px);
  }
}

@media (max-width: 590px) {
  .campaign-gallery .gallery-item-majoritaria {
    grid-column: 1 / -1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .story-carousel-track {
    scroll-behavior: auto;
  }
}
