/* ==========================================================================
   Diego Barreto 10234 — Landing Page de Campanha
   Paleta extraída da logo oficial
   ========================================================================== */

:root {
  --azul: #0453CE;
  --azul-escuro: #03349B;
  --azul-noite: #021F55;
  --celeste: #96DAEE;
  --celeste-claro: #EAF6FC;
  --laranja: #FFA200;
  --amarelo: #F9B300;
  --verde: #069D3B;
  --branco: #FFFFFF;
  --tinta: #0B1B33;
  --cinza: #51617A;
  --borda: #DDE8F5;

  --fonte-display: "Archivo", "Arial Black", sans-serif;
  --fonte-corpo: "Figtree", "Segoe UI", sans-serif;

  /* paleta da bandeira 150x100 (amostrada da arte impressa) */
  --bd-ciano: #23BEEA;
  --bd-azul-claro: #1F6FBE;
  --bd-azul: #17509F;
  --bd-azul-escuro: #0E2C60;
  --bd-amarelo: #FAC016;
  --bd-laranja: #F39112;
  --bd-verde: #1C9D39;

  --raio: 20px;
  --sombra: 0 12px 32px rgba(2, 31, 85, 0.10);
  --header-h: 76px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--fonte-corpo);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--tinta);
  background: var(--branco);
  overflow-x: hidden;
}

/* height:auto é obrigatório: os atributos width/height do HTML (que evitam
   o "pulo" de layout) viram altura fixa em px sem esta linha */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* <picture> só embrulha o <img>: não deve criar caixa própria */
picture { display: block; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--laranja);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: min(1160px, 100% - 2.5rem);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

section { scroll-margin-top: calc(var(--header-h) + 12px); }

/* ---------- Fundo da bandeira, reaproveitado nas seções escuras ---------- */

.fundo-bandeira {
  position: relative;
  color: var(--branco);
  overflow: hidden;
  background:
    linear-gradient(103deg, transparent 50%, rgba(10, 22, 50, 0.72) 100%),
    radial-gradient(70% 55% at 4% -8%, rgba(35, 190, 234, 0.5) 0%, rgba(27, 147, 214, 0.28) 30%, transparent 66%),
    linear-gradient(158deg, var(--bd-azul-claro) 0%, var(--bd-azul) 42%, var(--bd-azul-escuro) 100%);
}

/* estrias verticais da impressão */
.fundo-bandeira::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(96deg, rgba(255, 255, 255, 0.05) 0 2px, rgba(255, 255, 255, 0) 2px 11px),
    repeating-linear-gradient(93deg, rgba(0, 0, 0, 0.045) 0 3px, rgba(0, 0, 0, 0) 3px 26px);
}

.fundo-bandeira > * { position: relative; z-index: 1; }

/* ---------- Tipografia compartilhada ---------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--fonte-display);
  font-weight: 700;
  font-stretch: 115%;
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bd-laranja);
  margin-bottom: 0.75rem;
}

.eyebrow--center { justify-content: center; }
.eyebrow--claro { color: var(--bd-amarelo); }

.eyebrow__folha {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}

.titulo {
  font-family: var(--fonte-display);
  font-weight: 900;
  font-stretch: 96%;
  text-transform: uppercase;
  line-height: 0.98;
  letter-spacing: -0.02em;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  color: var(--azul);
  margin-bottom: 1.25rem;
}

.titulo--center { text-align: center; }
.titulo--claro { color: var(--branco); }

/* ---------- Botões ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--fonte-display);
  font-weight: 700;
  font-stretch: 110%;
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1rem 1.75rem;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn svg { width: 22px; height: 22px; flex-shrink: 0; }

.btn--laranja {
  background: var(--laranja);
  color: var(--azul-noite);
  box-shadow: 0 10px 24px rgba(255, 162, 0, 0.35);
}
.btn--laranja:hover { background: var(--amarelo); }

.btn--azul {
  background: var(--azul);
  color: var(--branco);
  box-shadow: 0 10px 24px rgba(4, 83, 206, 0.30);
}
.btn--azul:hover { background: var(--azul-escuro); }

.btn--verde {
  background: var(--verde);
  color: var(--branco);
  box-shadow: 0 10px 24px rgba(6, 157, 59, 0.30);
}
.btn--verde:hover { background: #078A35; }

/* ==========================================================================
   Header
   ========================================================================== */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: var(--branco);
  transition: transform 0.35s ease, box-shadow 0.25s ease;
}

/* a topbar fica recolhida no hero e só desce a partir da segunda seção */
.header:not(.is-visible):not(.is-menu-open) {
  transform: translateY(-100%);
  box-shadow: none;
}

.header.is-scrolled.is-visible { box-shadow: 0 6px 24px rgba(2, 31, 85, 0.12); }

.header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.header__logo { height: 46px; width: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav__link {
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  color: var(--tinta);
  transition: color 0.2s ease;
}

.nav__link:hover { color: var(--azul); }

.nav__cta {
  font-family: var(--fonte-display);
  font-weight: 800;
  font-stretch: 110%;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--azul-noite);
  background: var(--laranja);
  padding: 0.65rem 1.3rem;
  border-radius: 999px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.nav__cta:hover { background: var(--amarelo); transform: translateY(-2px); }

.header__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  transition: transform 0.35s ease, background-color 0.3s ease;
}

.header__toggle span {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: var(--azul);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.header__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.header__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.header__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ==========================================================================
   Hero — reprodução da bandeira 150x100 (cores amostradas da arte)
   ========================================================================== */

.hero {
  /* altura do palco: a arte é 3:2, então em telas muito altas ele para de esticar */
  --palco: min(100svh, 68vw);
  position: relative;
  color: var(--branco);
  overflow: hidden;
}

/* --- Fundo: brilho ciano no canto, degradê azul, textura e ondas --- */

.hero__fundo {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(103deg, transparent 52%, rgba(12, 26, 58, 0.72) 100%),
    linear-gradient(158deg, var(--bd-azul-claro) 0%, var(--bd-azul) 38%, #123C7E 68%, var(--bd-azul-escuro) 100%);
  animation: fundoEntra 1.4s cubic-bezier(0.22, 0.7, 0.2, 1) both;
}

.hero__brilho {
  position: absolute;
  inset: 0;
  background: radial-gradient(78% 62% at 4% -6%, var(--bd-ciano) 0%, #1B93D6 26%, rgba(24, 96, 178, 0.55) 52%, transparent 76%);
  animation:
    brilhoEntra 1.7s 0.1s cubic-bezier(0.22, 0.7, 0.2, 1) both,
    brilhoPulsa 9s 1.9s ease-in-out infinite;
}

/* estrias verticais suaves, como na impressão da bandeira */
.hero__textura {
  position: absolute;
  inset: -2% -4%;
  background:
    repeating-linear-gradient(96deg, rgba(255, 255, 255, 0.055) 0 2px, rgba(255, 255, 255, 0) 2px 11px),
    repeating-linear-gradient(93deg, rgba(0, 0, 0, 0.05) 0 3px, rgba(0, 0, 0, 0) 3px 26px);
  animation:
    texturaEntra 1.6s 0.15s cubic-bezier(0.22, 0.7, 0.2, 1) both,
    texturaFlutua 24s 1.8s ease-in-out infinite;
}

/* varredura de luz que cruza o hero uma vez, na abertura */
.hero__luz {
  position: absolute;
  inset: -25% -45%;
  pointer-events: none;
  background: linear-gradient(102deg, transparent 42%, rgba(255, 255, 255, 0.17) 50%, transparent 58%);
  animation: luzVarre 2.1s 0.4s cubic-bezier(0.3, 0, 0.2, 1) both;
}

/* as ondas passam na frente da foto, como na bandeira */
.hero__ondas {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: min(46%, 460px);
  display: block;
  pointer-events: none;
}

/* cada faixa entra deslizando, uma depois da outra */
.hero__ondas path {
  animation: ondaEntra 1.1s cubic-bezier(0.18, 0.85, 0.25, 1) both;
}

.hero__ondas path:nth-child(1) { animation-delay: 0.30s; }
.hero__ondas path:nth-child(2) { animation-delay: 0.42s; }
.hero__ondas path:nth-child(3) { animation-delay: 0.54s; }
.hero__ondas path:nth-child(4) { animation-delay: 0.72s; }
.hero__ondas path:nth-child(5) { animation-delay: 0.82s; }
.hero__ondas path:nth-child(6) { animation-delay: 0.92s; }

@keyframes fundoEntra {
  from { opacity: 0; transform: scale(1.14); }
  to { opacity: 1; transform: none; }
}

@keyframes brilhoEntra {
  0% { opacity: 0; transform: translate(-14%, -14%) scale(1.4); }
  55% { opacity: 1; }
  100% { opacity: 1; transform: none; }
}

@keyframes brilhoPulsa {
  0%, 100% { transform: none; }
  50% { transform: scale(1.07) translate(1.5%, 1%); }
}

@keyframes texturaEntra {
  from { opacity: 0; transform: translateX(-2.5%); }
  to { opacity: 1; transform: none; }
}

@keyframes texturaFlutua {
  0%, 100% { transform: none; }
  50% { transform: translateX(1.6%); }
}

@keyframes luzVarre {
  0% { transform: translateX(-72%); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translateX(78%); opacity: 0; }
}

@keyframes ondaEntra {
  from { opacity: 0; transform: translate(-170px, 165px); }
  to { opacity: 1; transform: none; }
}

/* --- Selo do partido --- */

.hero__partido {
  position: absolute;
  z-index: 4;
  top: clamp(1.1rem, 5vh, 3rem);
  right: max(1.25rem, calc((100% - 1400px) / 2));
  width: clamp(140px, 13.5vw, 205px);
}

/* --- Conteúdo --- */

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  align-items: start;
  min-height: 100vh;
  min-height: var(--palco);
}

@media (min-width: 1400px) {
  .hero__inner { width: min(1440px, 100% - 3rem); }
}

.hero__texto {
  position: relative;
  z-index: 4;
  padding-block: clamp(3.5rem, 10vh, 6.5rem) clamp(1.5rem, 4vh, 3rem);
  padding-left: clamp(0.5rem, 4vw, 4rem);
}

.hero__slogan {
  width: min(600px, 100%);
  margin-bottom: clamp(1.5rem, 5vh, 3.25rem);
  filter: drop-shadow(0 10px 22px rgba(6, 26, 62, 0.4));
}

.hero__slogan img { width: 100%; }

/* cartão branco com o lockup */
.hero__lockup {
  width: min(620px, 100%);
  background: var(--branco);
  border-radius: clamp(14px, 1.9vw, 26px);
  padding: clamp(0.9rem, 1.8vw, 1.6rem) clamp(1.1rem, 2.4vw, 2rem);
  box-shadow: 0 22px 44px rgba(6, 26, 62, 0.32);
}

.hero__lockup img { width: 100%; }

/* placa do número: mais larga que o cartão e deslocada para a direita */
.hero__numero {
  width: min(920px, 165%);
  margin-left: 33%;
  margin-top: clamp(-1.2rem, -1.4vw, -0.5rem);
  filter: drop-shadow(0 20px 40px rgba(6, 26, 62, 0.35));
}

.hero__numero img { width: 100%; }

.hero__foto {
  position: relative;
  z-index: 2;
  grid-row: 1;
  grid-column: 2;
  align-self: end;
  justify-self: end;
  width: min(860px, 118%);
}

/* a foto não pode esticar o hero além do palco, senão as faixas saem da tela */
.hero__foto img {
  width: auto;
  max-height: var(--palco);
  margin-left: auto;
}

/* ==========================================================================
   Quem é
   ========================================================================== */

/* Segunda seção: fundo celeste, tipografia azul e assinatura da marca
   (cores amostradas da arte oficial: fundo #96DAEE, texto #0453CE) */
.quem {
  position: relative;
  background: var(--celeste);
  padding-top: clamp(2rem, 3.5vw, 3.5rem);
  overflow: hidden;
}

.quem .titulo {
  text-transform: none;
  font-stretch: 100%;
  letter-spacing: -0.02em;
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  color: var(--azul);
  margin-bottom: 1.5rem;
}

/* a foto sangra na borda esquerda; o texto respeita o container */
.quem__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  align-items: end;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding-right: max(1.25rem, calc((100% - 1160px) / 2));
}

.quem__foto {
  position: relative;
  z-index: 2;
  align-self: end;
}

.quem__foto img {
  width: 100%;
  max-width: 640px;
  margin-bottom: -3.5rem;
  /* a base se dissolve na faixa, sem corte reto da foto */
  -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent 97%);
  mask-image: linear-gradient(180deg, #000 80%, transparent 97%);
  filter: drop-shadow(0 26px 44px rgba(2, 31, 85, 0.22));
}

.quem__content {
  color: var(--azul);
  align-self: center;
  padding-block: clamp(1rem, 3vw, 3rem);
}

.quem__content p + p { margin-top: 1.15rem; }
.quem__content strong { font-weight: 700; }

/* ---------- Assinatura (faixa + lockup + tagline) ---------- */

.assinatura {
  position: relative;
  z-index: 1;
  background: var(--branco);
  padding-top: clamp(88px, 12vw, 165px);
  padding-bottom: clamp(2rem, 4vw, 3.5rem);
}

.assinatura__faixa {
  position: absolute;
  inset: 0 0 auto 0;
  width: 100%;
  height: clamp(88px, 12vw, 165px);
  display: block;
}

/* o lockup sobe e cavalga a faixa, como na arte */
.assinatura__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(1.25rem, 3.5vw, 3rem);
  margin-top: clamp(-96px, -6.5vw, -44px);
}

.assinatura__logo {
  width: min(290px, 62vw);
  background: var(--branco);
  border-radius: 18px;
  padding: 1.1rem 1.4rem;
  box-shadow: 0 14px 34px rgba(2, 31, 85, 0.14);
}

.assinatura__slogan {
  width: min(346px, 74vw);
  padding-bottom: 0.6rem;
}

.assinatura__slogan img { width: 100%; }

/* selo do partido (arquivo oficial) */
.assinatura__partido {
  position: absolute;
  right: max(1.25rem, calc((100% - 1160px) / 2));
  top: clamp(-58px, -3.4vw, -26px);
  width: clamp(126px, 11vw, 168px);
}

/* ==========================================================================
   Bandeiras
   ========================================================================== */

.bandeiras {
  padding: 6rem 0;
}

.bandeiras .titulo { color: var(--branco); }

.bandeiras__deco {
  position: absolute;
  z-index: 0;
  width: 360px;
  height: 360px;
  right: -70px;
  top: -50px;
  rotate: 18deg;
  opacity: 0.12;
  filter: brightness(0) invert(1);
  pointer-events: none;
}

.bandeiras__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.bandeira {
  background: var(--branco);
  border-radius: var(--raio);
  padding: 2.25rem 1.9rem;
  box-shadow: 0 24px 48px rgba(4, 20, 52, 0.35);
  border-top: 8px solid var(--bd-azul-claro);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.bandeira:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 56px rgba(4, 20, 52, 0.45);
}

.bandeira--laranja { border-top-color: var(--bd-amarelo); }
.bandeira--verde { border-top-color: var(--bd-verde); }

.bandeira__icone {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  margin-bottom: 1.25rem;
  color: var(--azul);
  background: rgba(4, 83, 206, 0.10);
}

.bandeira--laranja .bandeira__icone { color: #8A5A05; background: rgba(250, 192, 22, 0.22); }
.bandeira--verde .bandeira__icone { color: var(--bd-verde); background: rgba(28, 157, 57, 0.14); }

.bandeira__icone svg { width: 30px; height: 30px; }

.bandeira h3 {
  font-family: var(--fonte-display);
  font-weight: 800;
  font-stretch: 98%;
  text-transform: uppercase;
  font-size: 1.1875rem;
  color: var(--azul-noite);
  margin-bottom: 0.6rem;
}

.bandeira p { color: var(--cinza); font-size: 1rem; }

/* ==========================================================================
   Propostas
   ========================================================================== */

.propostas {
  background: var(--celeste-claro);
  padding: 6rem 0;
}

.propostas .eyebrow { color: var(--azul); }

.propostas__sub {
  text-align: center;
  color: var(--cinza);
  max-width: 34rem;
  margin: 0 auto;
}

.propostas__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.proposta {
  background: var(--branco);
  border: 0;
  border-left: 6px solid var(--bd-azul-claro);
  border-radius: 6px var(--raio) var(--raio) 6px;
  padding: 2rem 1.75rem;
  box-shadow: 0 10px 26px rgba(2, 31, 85, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.proposta:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 38px rgba(2, 31, 85, 0.16);
}

.proposta:nth-child(3n-1) { border-left-color: var(--bd-amarelo); }
.proposta:nth-child(3n) { border-left-color: var(--bd-verde); }

.proposta__icone {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  margin-bottom: 1.1rem;
}

.proposta__icone svg { width: 26px; height: 26px; }

.proposta__icone--azul { color: var(--bd-azul); background: rgba(31, 111, 190, 0.12); }
.proposta__icone--laranja { color: #8A5A05; background: rgba(250, 192, 22, 0.22); }
.proposta__icone--verde { color: var(--bd-verde); background: rgba(28, 157, 57, 0.14); }

.proposta h3 {
  font-family: var(--fonte-display);
  font-weight: 800;
  font-stretch: 98%;
  text-transform: uppercase;
  font-size: 1.125rem;
  color: var(--azul-noite);
  margin-bottom: 0.5rem;
}

.proposta p { color: var(--cinza); font-size: 0.9875rem; }

/* ==========================================================================
   Como votar / Urna
   ========================================================================== */

.votar {
  color: rgba(255, 255, 255, 0.9);
  padding: 6rem 0;
}

.votar__inner {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 4rem;
  align-items: center;
}

.votar__content .titulo { margin-bottom: 1rem; }
.votar__content p { margin-bottom: 2rem; max-width: 30rem; }
.votar__content strong { color: #5FE08C; }

.votar__digitos {
  color: var(--bd-amarelo);
  white-space: nowrap;
}

/* --- Urna --- */

.urna__corpo {
  background: #E8E6DF;
  border-radius: 18px;
  padding: 1.25rem;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 1.1rem;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
  max-width: 620px;
  margin-left: auto;
}

.urna__tela {
  position: relative;
  background: #F2F6F3;
  border: 3px solid #C9C6BC;
  border-radius: 10px;
  padding: 1.1rem;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  color: #1D2A1F;
  overflow: hidden;
}

.urna__cargo {
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  border-bottom: 1.5px solid #B9C4BA;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.urna__slots { display: flex; gap: 0.45rem; margin-bottom: 1.1rem; }

.urna__slot {
  width: 42px;
  height: 52px;
  border: 2px solid #6B7A6C;
  border-radius: 6px;
  background: var(--branco);
  display: grid;
  place-items: center;
  font-family: var(--fonte-display);
  font-weight: 900;
  font-size: 1.75rem;
  color: #12233F;
}

.urna__slot:empty::after {
  content: "";
  width: 55%;
  height: 3px;
  background: #9AA89B;
  border-radius: 2px;
}

.urna__candidato {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  justify-content: space-between;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.urna__candidato.is-visible { opacity: 1; transform: none; }

.urna__info p {
  font-size: 0.8125rem;
  line-height: 1.5;
}

.urna__info span { color: #5B6B5D; }

.urna__info strong {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.urna__foto {
  width: 74px;
  height: 92px;
  object-fit: cover;
  object-position: top;
  border: 2px solid #6B7A6C;
  border-radius: 4px;
  background: var(--celeste-claro);
}

.urna__confirmado {
  position: absolute;
  inset: auto 0 0 0;
  background: var(--verde);
  color: var(--branco);
  font-family: var(--fonte-display);
  font-weight: 800;
  font-stretch: 110%;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.9375rem;
  text-align: center;
  padding: 0.7rem;
  transform: translateY(100%);
  transition: transform 0.35s ease;
}

.urna__confirmado.is-visible { transform: none; }

.urna__teclado {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  justify-content: center;
}

.urna__numeros {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
}

.urna__tecla {
  background: #23262B;
  color: var(--branco);
  font-family: var(--fonte-display);
  font-weight: 700;
  font-size: 1.05rem;
  text-align: center;
  padding: 0.55rem 0;
  border-radius: 7px;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.45);
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.urna__tecla--zero { grid-column: 2; }

.urna__tecla.is-active {
  background: var(--laranja);
  color: var(--azul-noite);
  transform: scale(1.08);
}

.urna__acoes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
}

.urna__acao {
  font-family: var(--fonte-display);
  font-weight: 700;
  font-size: 0.5625rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  padding: 0.65rem 0.2rem;
  border-radius: 7px;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.25);
}

.urna__acao--branco { background: #F4F4F2; color: #23262B; }
.urna__acao--corrige { background: #C74318; color: var(--branco); }
.urna__acao--confirma { background: #067A30; color: var(--branco); }

.urna__acao--confirma.is-active {
  background: #0CC24E;
  box-shadow: 0 0 0 4px rgba(12, 194, 78, 0.35), inset 0 -3px 0 rgba(0, 0, 0, 0.25);
}

/* ==========================================================================
   Participe
   ========================================================================== */

.participe {
  position: relative;
  background:
    radial-gradient(700px 400px at 15% 20%, rgba(255, 255, 255, 0.5), transparent 60%),
    var(--celeste);
  padding: 6rem 0 clamp(7rem, 12vw, 11rem);
  overflow: hidden;
}

/* faixa tricolor fechando a seção, como no rodapé da bandeira */
.participe__faixa {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: clamp(70px, 9vw, 130px);
  display: block;
}

.participe__inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.participe__foto {
  width: 158px;
  height: 158px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--branco);
  background: #D8F0FA;
  box-shadow: 0 18px 40px rgba(2, 31, 85, 0.25);
  margin-bottom: 1.5rem;
}

.participe .eyebrow { color: var(--azul); }
.participe .titulo { color: var(--azul-noite); }

.participe__sub {
  color: #1E3A5F;
  max-width: 32rem;
  margin-bottom: 2.25rem;
}

.participe__acoes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  color: rgba(255, 255, 255, 0.75);
  padding: 4rem 0 3rem;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer__logo { height: 110px; width: auto; margin-bottom: 2rem; }

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.75rem;
  margin-bottom: 2rem;
}

.footer__nav a {
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.2s ease;
}

.footer__nav a:hover { color: var(--bd-amarelo); }

.footer__divisor {
  width: 100%;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-bottom: 2rem;
}

.footer__legal {
  font-size: 0.875rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.55);
}

/* identificação obrigatória da propaganda eleitoral */
.footer__legal--oficial {
  font-family: var(--fonte-display);
  font-weight: 700;
  font-stretch: 105%;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  line-height: 1.7;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1rem;
}

/* ==========================================================================
   Animações de entrada
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--d, 0s);
}

.reveal.is-visible { opacity: 1; transform: none; }

/* variações de entrada */
.reveal--esq { transform: translateX(-48px); }
.reveal--dir { transform: translateX(48px); }
.reveal--zoom { transform: scale(0.92); }

/* a faixa se desenha da esquerda para a direita */
.reveal--faixa {
  opacity: 1;
  transform: none;
}

.faixa__linha {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.33, 0, 0.2, 1);
}

.reveal--faixa.is-visible .faixa__linha { stroke-dashoffset: 0; }
.reveal--faixa .faixa__linha:nth-of-type(2) { transition-delay: 0.12s; }
.reveal--faixa .faixa__linha:nth-of-type(3) { transition-delay: 0.24s; }

/* ==========================================================================
   Responsivo
   ========================================================================== */

@media (max-width: 1023px) {
  .quem__inner { gap: 2.5rem; }

  .votar__inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .urna__corpo { margin-inline: auto; }
}

@media (max-width: 860px) {
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--branco);
    padding: 0.75rem 1.25rem 1.5rem;
    box-shadow: 0 20px 30px rgba(2, 31, 85, 0.15);
    transform: translateY(-130%);
    transition: transform 0.3s ease;
    visibility: hidden;
  }

  .nav.is-open { transform: none; visibility: visible; }

  .nav__link {
    padding: 0.9rem 0.25rem;
    border-bottom: 1px solid var(--borda);
    font-size: 1.0625rem;
  }

  .nav__cta {
    margin-top: 1rem;
    text-align: center;
    padding: 0.9rem;
  }

  .header__toggle { display: flex; }

  /* com a topbar recolhida, só o hambúrguer fica flutuando sobre o hero */
  .header:not(.is-visible):not(.is-menu-open) .header__toggle {
    transform: translateY(var(--header-h));
    background: rgba(2, 31, 85, 0.32);
    box-shadow: 0 8px 20px rgba(2, 31, 85, 0.25);
  }

  .header:not(.is-visible):not(.is-menu-open) .header__toggle span { background: var(--branco); }

  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    min-height: 100svh;
    gap: 0;
    align-content: center;
  }

  .hero { --palco: 100svh; }

  .hero__foto img { width: 100%; max-height: none; }

  .hero__texto {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    padding: clamp(3.5rem, 11vh, 6rem) 0 clamp(1rem, 3vh, 2rem);
  }

  .hero__foto {
    grid-column: 1;
    grid-row: 2;
    width: min(520px, 106%);
    justify-self: center;
    align-self: end;
  }

  .hero__slogan {
    width: min(330px, 80%);
    margin-bottom: 1.1rem;
    margin-left: 1.25rem;
  }

  .hero__lockup {
    width: min(340px, 78%);
    margin-left: 1.25rem;
  }

  .hero__numero {
    width: min(340px, 88%);
    margin-left: 10%;
  }

  /* o hambúrguer flutua no canto direito: o selo do partido vai para a esquerda */
  .hero__partido {
    width: clamp(124px, 32vw, 165px);
    top: 1.1rem;
    right: auto;
    left: 1.25rem;
  }

  .hero__ondas { height: min(34%, 280px); }

  .quem { padding-top: 3rem; }

  .quem__inner {
    grid-template-columns: minmax(0, 1fr);
    padding-inline: 1.25rem;
    gap: 1.5rem;
  }

  .quem__foto { justify-self: center; }

  .quem__foto img {
    max-width: 380px;
    margin-inline: auto;
    margin-bottom: -1.5rem;
  }

  .quem__content { padding-block: 0 0.5rem; }

  /* o selo do partido continua sobre o celeste (o recorte traz esse fundo) */
  .assinatura__partido { top: -30px; }

  .bandeiras, .propostas, .votar, .participe { padding: 4.5rem 0; }

  .bandeiras__deco { width: 240px; height: 240px; right: -60px; }

  .bandeiras__grid,
  .propostas__grid { grid-template-columns: 1fr; }
}

/* Celular deitado: a tela fica baixa demais para empilhar — volta a duas colunas */
@media (max-width: 900px) and (orientation: landscape) and (max-height: 560px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    grid-template-rows: auto;
    align-items: center;
    min-height: 100svh;
  }

  .hero__texto {
    grid-column: 1;
    grid-row: 1;
    padding: clamp(3rem, 14vh, 4rem) 0 1rem;
  }

  .hero__foto {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    justify-self: end;
    width: min(330px, 100%);
    margin-bottom: 0;
  }

  .hero__slogan { width: min(250px, 94%); margin-left: 0.75rem; margin-bottom: 0.6rem; }
  .hero__lockup { width: min(215px, 80%); margin-left: 0.75rem; padding: 0.5rem 0.7rem; }
  .hero__numero { width: min(265px, 118%); margin-left: 16%; }
  .hero__partido { width: 104px; top: 0.6rem; }
  .hero__ondas { height: min(42%, 150px); }

  .quem__inner { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
  .quem__foto { justify-self: start; }
}

@media (max-width: 560px) {
  .urna__corpo { grid-template-columns: 1fr; }

  .urna__tela { min-height: 0; }

  .urna__slot { width: 38px; height: 48px; font-size: 1.5rem; }

  .footer__logo { height: 84px; }
}


/* ==========================================================================
   Tela "Site em desenvolvimento" (ativada pelo bloco no <head> do index)
   ========================================================================== */

html.em-obras,
html.em-obras body {
  height: 100%;
  overflow: hidden;
}

html.em-obras body > *:not(.obras) { display: none !important; }

html.em-obras .obras {
  display: flex;
  align-items: center;
  justify-content: center;
}

.obras {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  min-height: 100%;
  padding: clamp(1rem, 5vw, 3rem);
  overflow-y: auto;
  background: #f4f4f4;
  color: #202020;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.obras__painel {
  width: min(620px, 100%);
  margin: auto;
  padding: clamp(2rem, 6vw, 3.5rem) clamp(1.25rem, 6vw, 3.75rem);
  text-align: center;
  background: #ffffff;
  border: 1px solid #d8d8d8;
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.06);
}

.obras__eyebrow {
  margin: 0 0 1rem;
  color: #606060;
  font-size: clamp(0.72rem, 2vw, 0.82rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.obras h1 {
  margin: 0;
  color: #202020;
  font-family: inherit;
  font-size: clamp(1.75rem, 6vw, 2.65rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.obras__texto {
  margin: clamp(1.5rem, 5vw, 2.25rem) 0 0.8rem;
  color: #606060;
  font-size: clamp(0.9rem, 2.6vw, 1rem);
}

.obras__contador {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.35rem, 1.8vw, 0.75rem);
}

.obras__contador > span {
  min-width: 0;
  padding: clamp(0.75rem, 3vw, 1.15rem) clamp(0.25rem, 1.5vw, 0.75rem);
  background: #ffffff;
  border: 1px solid #dedede;
  border-radius: 8px;
}

.obras__contador b {
  display: block;
  color: #202020;
  font-size: clamp(1.4rem, 5.5vw, 2.25rem);
  font-weight: 650;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.obras__contador small {
  display: block;
  margin-top: 0.45rem;
  overflow: hidden;
  color: #606060;
  font-size: clamp(0.58rem, 2vw, 0.72rem);
  line-height: 1.2;
  text-overflow: ellipsis;
}

@media (max-width: 420px) {
  .obras { padding: 0.75rem; }

  .obras__painel {
    padding: 2rem 0.75rem;
  }

  .obras__contador { gap: 0.3rem; }
}

@media (max-width: 900px) and (max-height: 560px) and (orientation: landscape) {
  html.em-obras .obras {
    align-items: flex-start;
    padding-block: 0.75rem;
  }

  .obras__painel {
    width: min(520px, 100%);
    padding-block: 1.25rem;
  }

  .obras h1 { font-size: clamp(1.5rem, 5vw, 2rem); }

  .obras__texto { margin-top: 1rem; }
}

/* ==========================================================================
   Movimento reduzido
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }

  .reveal { opacity: 1; transform: none; }

  /* sem movimento, o fundo já entra no estado final */
  .hero__fundo,
  .hero__brilho,
  .hero__textura,
  .hero__luz,
  .hero__ondas,
  .hero__ondas path { animation: none; }

  .hero__luz { display: none; }
}
