/* ==========================================================================
   Estilo da landing page Samuel Viana 4433.
   O cabeçalho do tema fica em style.css, na raiz; aqui é só folha de estilo.
   ========================================================================== */


/* ============================================================ Fontes ==
   Roboto Condensed (SIL Open Font License) faz o papel do grotesco
   condensado do layout. A licença acompanha em assets/fonts/OFL.txt.
   ==================================================================== */

@font-face {
  font-family: "Roboto Condensed";
  src: url("../fonts/roboto-condensed-light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roboto Condensed";
  src: url("../fonts/roboto-condensed-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roboto Condensed";
  src: url("../fonts/roboto-condensed-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roboto Condensed";
  src: url("../fonts/roboto-condensed-black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ============================================================ Marcas == */

:root {
  --azul: #2d4ddc;
  --azul-escuro: #1c3bb0;
  --azul-claro: #4a6ae8;
  --amarelo: #fabf01;
  --verde: #7ecd40;
  --verde-vivo: #3cce29;
  --cinza: #efeff1;
  --papel: #fcfcfe;
  --cinza-fundo: #e7e7e9;
  --tinta: #1c1c1e;
  --branco: #ffffff;

  --fonte: "Roboto Condensed", "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  /* Largura de referência da arte original. Tudo escala a partir dela. */
  --palco-max: none;
  --topo-altura: clamp(64px, 6.48vw, 105px);
  --topo-recuo-esq: 11.73vw;
  --topo-recuo-dir: 13.58vw;

  /* Grão de papel do layout, desenhado pelo próprio navegador: ruído
     esparso e preto, com alpha só na ponta alta da curva, para dar
     partícula visível sem escurecer a chapa. Calibrado contra as artes do
     designer (média 244, desvio 12). `color-interpolation-filters: sRGB`
     é essencial -- no linearRGB padrão o ruído sai lavado. `stitchTiles`
     fecha o ladrilho sem emenda. */
  --grao: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='table' tableValues='0%200%20.7'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23g)'/%3E%3C/svg%3E");
}

/* ============================================================== Base == */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--topo-altura);
}

body {
  margin: 0;
  background: var(--papel) var(--grao);
  color: var(--tinta);
  font-family: var(--fonte);
  font-size: 16px;
  line-height: 1.45;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3 {
  margin: 0;
  line-height: 1;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

a {
  color: var(--azul);
}

button {
  font: inherit;
  cursor: pointer;
}

/* ========================================================= Utilidades == */

.oculto-visual {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.pular {
  position: absolute;
  left: -9999px;
  z-index: 200;
}
.pular:focus {
  left: 12px;
  top: 12px;
  background: var(--branco);
  color: var(--azul);
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 700;
}

/* Setas e chevrons: formas do layout, desenhadas sem imagem. */
.setas {
  display: grid;
  justify-items: center;
}
.setas i {
  display: block;
  width: 100%;
  background: var(--amarelo);
}
.setas--seta i {
  aspect-ratio: 176 / 118;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.setas--triangulo i {
  aspect-ratio: 1 / 0.86;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.chevrons {
  display: grid;
  justify-items: center;
}
.chevrons i {
  display: block;
  width: 100%;
  aspect-ratio: 176 / 100;
  background: var(--amarelo);
  clip-path: polygon(0 0, 50% 42%, 100% 0, 100% 42%, 50% 84%, 0 42%);
}

/* ================================================= Barra de navegação == */

.topo {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--azul);
}

.topo__faixa {
  max-width: var(--palco-max);
  margin-inline: auto;
  min-height: var(--topo-altura);
  padding-inline: var(--topo-recuo-esq) var(--topo-recuo-dir);
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 56px);
}

.topo__marca {
  display: block;
  flex: none;
  line-height: 0;
}
.topo__marca img {
  height: clamp(44px, 5.93vw, 96px);
  width: auto;
}
.topo__marca .custom-logo {
  height: clamp(40px, 3.6vw, 56px);
}

.topo__menu {
  margin-left: auto;
}
.topo__menu ul {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.72vw, 48px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.topo__menu a {
  display: block;
  color: var(--branco);
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 400;
  font-size: clamp(0.85rem, 1.34vw, 1.5rem);
  letter-spacing: 0.01em;
  padding-block: 6px;
  border-bottom: 3px solid transparent;
}
.topo__menu a:hover,
.topo__menu a:focus-visible,
.topo__menu a[aria-current="true"] {
  border-bottom-color: var(--amarelo);
}

.topo__gatilho {
  display: none;
  margin-left: auto;
  width: 46px;
  height: 40px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  padding: 0;
  place-items: center;
}
.topo__hamburguer,
.topo__hamburguer::before,
.topo__hamburguer::after {
  display: block;
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: var(--branco);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.topo__hamburguer::before,
.topo__hamburguer::after {
  content: "";
  position: relative;
}
.topo__hamburguer::before { top: -8px; }
.topo__hamburguer::after { top: 5px; }

[aria-expanded="true"] .topo__hamburguer { background: transparent; }
[aria-expanded="true"] .topo__hamburguer::before { transform: translateY(8px) rotate(45deg); }
[aria-expanded="true"] .topo__hamburguer::after { transform: translateY(-5px) rotate(-45deg); }

/* ====================================================== Sistema palco ==
   O palco guarda a proporção da arte original e serve de referência para
   todas as medidas em cqw. Abaixo de 1024px ele deixa de ser palco.
   ==================================================================== */

.palco {
  position: relative;
  width: 100%;
  max-width: var(--palco-max);
  margin-inline: auto;
  container-type: inline-size;
  z-index: 1;
}

.palco--capa        { aspect-ratio: 1620 / 941; }

/* A arte da capa guarda a proporção 1620x941 (~1,72). Uma tela 16:9 é 1,78,
   então a capa saía mais alta que a janela e obrigava a rolar para ver o
   número — faltavam 106 a 140px nas resoluções mais comuns. Aqui o palco
   encolhe até a capa inteira caber na primeira tela, e o que sobra nas
   laterais é papel. Cortar não era opção: o 4433 encosta na borda de baixo
   da arte, e o "DEPUTADO FEDERAL" na de cima. */
@media (min-width: 1024px) {
  .capa {
    /* Largura que o palco pode ter sem a capa passar da primeira tela. */
    --capa-palco: min(100vw, (100svh - var(--topo-altura)) * 1.7216);

    /* Faixa de papel reservada na borda da tela, onde ficam a faixa
       listrada e o aviso legal. É este número que decide o quanto o
       formulário avança para o canto — aumente para trazê-lo de volta. */
    --capa-guarda: 64px;

    /* Sobra de papel de um lado, já descontada a guarda. Nunca negativa:
       em telas onde o palco ocupa a largura toda, o formulário fica onde
       está em vez de sair pela borda. */
    --capa-sobra: max(0px, (100vw - var(--capa-palco)) / 2 - var(--capa-guarda));
  }

  .palco--capa {
    max-width: calc((100vh - var(--topo-altura)) * 1.7216);
    max-width: var(--capa-palco);
  }

  /* O formulário avança para dentro da sobra, parando a --capa-guarda da
     borda da tela. Ganha distância do retrato sem cobrir a faixa nem o
     aviso legal.
     Seletor com dois níveis de propósito: a regra base de .ficha vem depois
     nesta folha, e sem isso ela venceria. */
  .capa .ficha {
    right: calc(-1 * var(--capa-sobra));
  }
}
.palco--mandato     { aspect-ratio: 1620 / 1906; }
.palco--quem        { aspect-ratio: 1620 / 964; }
.palco--objetivos   { aspect-ratio: 1620 / 947; }
.palco--realizacoes { aspect-ratio: 1620 / 962; }
.palco--propostas   { aspect-ratio: 1620 / 1479; }

/* ============================================================== Capa == */

.capa {
  position: relative;
  background: var(--papel) var(--grao);
}

/* Faixa azul listrada da direita. Presa à seção, não ao palco: como o palco
   encolhe para caber na janela, ela fica na sobra de papel, na borda da tela,
   e o canto do palco fica livre para o formulário. */
.capa::after {
  content: "";
  position: absolute;
  right: 0;
  top: 9.25%;
  width: clamp(12px, 1.98vw, 32px);
  height: 28.7%;
  background: repeating-linear-gradient(
    -45deg,
    var(--azul) 0 6px,
    var(--azul-claro) 6px 12px
  );
  z-index: 2;
}

/* A arte da capa é uma peça só, na largura inteira do palco: nome
   empilhado, retrato, fotos em duotone e o número. */
.capa__marca {
  position: absolute;
  inset: 0;
  width: 100%;
  margin: 0;
}
.capa__arte {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Aviso legal, na vertical. Fica fora do palco, preso à seção, para cair na
   sobra de papel da borda da tela — dentro do palco ele ficaria atrás do
   formulário, e a Lei 9.504/97 pede que esteja visível. */
.capa__aviso {
  position: absolute;
  right: 0.6%;
  top: 52%;
  width: 40cqw;
  transform: translate(50%, -50%) rotate(-90deg);
  transform-origin: center;
  text-align: center;
  font-size: 0.68cqw;
  color: #6a6a70;
  white-space: nowrap;
}

/* ------------------------------------------- Formulário de cadastro -- */

.ficha {
  position: absolute;
  right: 0;
  top: 9.17%;
  width: 38.27%;
  background: var(--azul);
  padding: 1.79cqw 2.28cqw 0 1.98cqw;
  color: var(--branco);
}

.ficha__titulo {
  font-size: 2.32cqw;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0;
}
.ficha__titulo strong {
  font-weight: 900;
}

.ficha__texto {
  margin-top: 2cqw;
  font-size: 1.3cqw;
  font-weight: 400;
  line-height: 1.35;
  text-align: justify;
}

.ficha__recado {
  margin-top: 0.9cqw;
  padding: 0.8cqw 1.2cqw;
  border-radius: 6px;
  font-size: 1.15cqw;
  font-weight: 700;
}
.ficha__recado--ok {
  background: var(--verde);
  color: #17330a;
}
.ficha__recado--erro {
  background: var(--amarelo);
  color: #3a2c00;
}

.ficha__form {
  margin-top: 2.96cqw;
  display: grid;
  gap: 0.99cqw;
}

.ficha__armadilha {
  position: absolute;
  left: -9999px;
}

.ficha__campo {
  position: relative;
}

.ficha__campo input,
.ficha__campo textarea {
  width: 100%;
  border: 2px solid transparent;
  background: var(--branco);
  color: var(--tinta);
  font: inherit;
  font-size: 1.15cqw;
  padding: 0.76cqw 1.4cqw;
  border-radius: 999px;
}
.ficha__campo textarea {
  border-radius: 1.6cqw;
  resize: vertical;
  min-height: 12.7cqw;
  line-height: 1.35;
}
.ficha__campo input::placeholder,
.ficha__campo textarea::placeholder {
  color: #7c7c85;
  opacity: 1;
}
.ficha__campo input:focus-visible,
.ficha__campo textarea:focus-visible {
  outline: 3px solid var(--amarelo);
  outline-offset: 2px;
}
.ficha__campo--erro input,
.ficha__campo--erro textarea {
  border-color: var(--amarelo);
}
.ficha__erro {
  display: block;
  padding: 0.3cqw 1.3cqw 0;
  font-size: 0.95cqw;
  font-weight: 700;
  color: var(--amarelo);
}

.ficha__envio {
  margin-top: 0.74cqw;
  margin-bottom: -1.36cqw; /* o botão passa abaixo do painel, como no layout */
  text-align: center;
}
.ficha__envio button {
  border: 0;
  background: var(--amarelo);
  color: var(--tinta);
  text-transform: uppercase;
  font-weight: 900;
  font-size: 2.4cqw;
  letter-spacing: 0.01em;
  padding: 0.25cqw 1.23cqw;
  transition: background-color 0.18s ease, transform 0.18s ease;
}
.ficha__envio button:hover,
.ficha__envio button:focus-visible {
  background: #ffd23f;
  transform: translateY(-1px);
}

/* ================================================== Primeiro mandato == */

.mandato {
  position: relative;
  background: var(--papel) var(--grao);
}

.mandato__retrato {
  position: absolute;
  left: -1.2%;
  top: -0.4%;
  height: 50.8%;
  width: auto;
  object-fit: contain;
  object-position: bottom left;
}

.mandato__titulo {
  position: absolute;
  right: 12.9%;
  top: 7.3%;
  text-align: right;
  color: var(--azul);
  display: grid;
  gap: 0.74cqw;
}
.mandato__titulo .linha {
  display: block;
  line-height: 0.86;
}
.mandato__titulo .linha--grande { font-size: 8.6cqw; }
.mandato__titulo .linha--pequeno { font-size: 4.15cqw; }

.mandato__texto {
  position: absolute;
  right: 12.8%;
  top: 37.2%;
  width: 29.6%;
  z-index: 3;
  display: grid;
  gap: 1.15cqw;
  font-size: 1.16cqw;
  font-weight: 400;
  line-height: 1.12;
  text-align: justify;
}

.mandato__remate {
  position: absolute;
  right: 12.8%;
  top: 54.4%;
  width: 34%;
  z-index: 3;
  text-align: right;
  text-transform: uppercase;
  font-weight: 900;
  font-size: 2.37cqw;
  line-height: 1.15;
}

.mandato__setas {
  position: absolute;
  left: 91.6%;
  top: 38.2%;
  width: 2.6%;
  gap: 1.05cqw;
  z-index: 3;
}

.mandato__mosaico {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
}
.mandato__mosaico img {
  width: 100%;
}

/* ======================================================= Quem sou eu == */

.quem {
  position: relative;
  background: var(--verde) url("../img/quem-sou-fundo.jpg") center / cover no-repeat;
  overflow: hidden;
}

.quem__retrato {
  position: absolute;
  left: -27.1%;
  top: -8.7%;
  height: 170%;
  width: auto;
  max-width: none;
}

.quem__texto {
  position: absolute;
  left: 49.9%;
  top: 14.2%;
  width: 37.1%;
  color: var(--branco);
}
.quem__texto h2 {
  font-size: 6.5cqw;
  line-height: 0.9;
  white-space: nowrap;
  text-align: right;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.14);
}
.quem__texto p {
  margin-top: 1.3cqw;
  font-size: 1.16cqw;
  font-weight: 400;
  line-height: 1.2;
  text-align: justify;
}
.quem__texto p:first-of-type {
  margin-top: 2.1cqw;
}

.quem__chevrons {
  position: absolute;
  left: 79%;
  top: 72%;
  width: 7.4%;
  gap: 0.5cqw;
}

/* ==================================================== Meus objetivos == */

.objetivos {
  position: relative;
  background: var(--papel) var(--grao);
}

.objetivos__mapa {
  position: absolute;
  left: 24.1%;
  top: 2%;
  width: 51.4%;
  height: 95%;
}
.objetivos__brasil {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.objetivos__traco {
  position: absolute;
}
.objetivos__traco--conexao {
  left: 16.1%;
  top: 34.9%;
  width: 50.5%;
}
.objetivos__traco--presenca {
  left: 65.9%;
  top: 38.4%;
  width: 35.4%;
}

.objetivo {
  position: absolute;
}
.objetivo h3 {
  color: var(--branco);
  font-size: 5.8cqw;
  line-height: 0.9;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}
.objetivo p {
  margin-top: 0.6cqw;
  font-size: 1.04cqw;
  font-style: italic;
  font-weight: 400;
  line-height: 1.45;
  color: #2f2f34;
}

.objetivo--presenca {
  left: 65.5%;
  top: 18.3%;
  width: 25.3%;
  text-align: right;
}
.objetivo--conexao {
  left: 8.9%;
  top: 48.7%;
  width: 25.5%;
}
.objetivo--resultado {
  left: 48.4%;
  top: 71%;
  width: 42.7%;
}
.objetivo--resultado h3 {
  font-size: 8.9cqw;
  color: rgba(255, 255, 255, 0.92);
}
.objetivo--presenca p {
  width: 67%;
  margin-left: auto;
}
.objetivo--conexao p {
  width: 86%;
}
.objetivo--resultado p {
  text-align: right;
  width: 74.5%;
  position: relative;
  left: 36.7%;
}

.objetivos__checks {
  position: absolute;
  left: 81.4%;
  top: 66.4%;
  width: 10.5%;
}

/* ==================================================== O que eu já fiz == */

.realizacoes {
  position: relative;
  background: var(--azul) url("../img/realizacoes-fundo.jpg") center / cover no-repeat;
}

.realizacoes__losango {
  position: absolute;
  left: 81.4%;
  top: 16.2%;
  width: 15%;
  aspect-ratio: 1;
  translate: -50% -50%;
  rotate: 45deg;
  background: var(--verde);
}

.realizacoes__titulo {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  top: 4.75%;
  text-align: center;
  color: var(--amarelo);
  font-size: 11.4cqw;
  line-height: 0.86;
  text-shadow: 0.35cqw 0.35cqw 0 rgba(20, 40, 130, 0.42);
}

.realizacoes__grade {
  position: absolute;
  left: 13.3%;
  top: 30.5%;
  width: 74.6%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.2cqw 3.4cqw;
  list-style: none;
  margin: 0;
  padding: 0;
}

.realizacao {
  background: var(--branco) var(--grao);
  padding: 1.2cqw 1.55cqw 1.35cqw;
  box-shadow: 0 0.5cqw 1.4cqw rgba(12, 26, 90, 0.16);
}
.realizacao h3 {
  color: var(--azul);
  text-align: center;
  font-size: 1.72cqw;
  line-height: 1.08;
}
.realizacao p {
  margin-top: 0.95cqw;
  font-size: 1.08cqw;
  font-weight: 400;
  line-height: 1.3;
  text-align: justify;
  color: #2a2a30;
}

/* ===================================================== Minhas propostas == */

.propostas {
  position: relative;
  background: var(--papel) var(--grao);
}
.propostas::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3.8%;
  background: var(--azul);
  z-index: 3;
}

.propostas__foto {
  position: absolute;
  object-fit: cover;
}
.propostas__foto--esporte {
  right: 0;
  top: 13.8%;
  width: 76.5%;
}
.propostas__foto--trabalho {
  left: 0;
  top: 57.5%;
  width: 43.5%;
}

.propostas__titulo {
  position: absolute;
  left: 12.2%;
  top: 4.4%;
  z-index: 2;
  color: var(--azul);
  display: grid;
}
.propostas__titulo .linha {
  display: block;
  line-height: 0.88;
}
.propostas__titulo .linha--fina {
  font-size: 5.8cqw;
  font-weight: 400;
}
.propostas__titulo .linha--grossa {
  font-size: 8.2cqw;
  font-weight: 900;
  text-shadow: 0.3cqw 0.28cqw 0 var(--branco);
}

.propostas__setas {
  position: absolute;
  left: -8.1cqw;
  top: 1.5cqw;
  display: flex;
  gap: 0.35cqw;
  width: 6.6cqw;
}
.propostas__setas i {
  flex: 1;
  aspect-ratio: 1 / 1.06;
  background: var(--verde-vivo);
  clip-path: polygon(0 0, 46% 0, 100% 50%, 46% 100%, 0 100%, 54% 50%);
}

.propostas__lista {
  position: absolute;
  z-index: 2;
  display: grid;
  gap: 1.55cqw;
  list-style: none;
  margin: 0;
  padding: 0;
}
.propostas__lista--alta {
  left: 9.7%;
  top: 25%;
  width: 41%;
}
.propostas__lista--baixa {
  left: 40.7%;
  top: 63.4%;
  width: 40.7%;
}

.proposta {
  background: var(--verde);
  padding: 0.55cqw 3.4cqw 0.65cqw 2.1cqw;
  clip-path: polygon(1.6% 0, 100% 0, 98.4% 100%, 0 100%);
}
.proposta h3 {
  color: var(--branco);
  font-size: 1.6cqw;
  line-height: 1;
}
.proposta p {
  margin-top: 0.45cqw;
  font-size: 1.08cqw;
  font-weight: 400;
  line-height: 1.28;
  color: #16300a;
  text-align: justify;
}

.propostas__triangulos {
  position: absolute;
  left: 92.2%;
  top: 61%;
  width: 2.8%;
  gap: 1.1cqw;
  z-index: 2;
}

/* ============================================================ Rodapé == */

.rodape {
  background: var(--azul);
  color: var(--branco);
}
.rodape__faixa {
  max-width: var(--palco-max);
  margin-inline: auto;
  padding: 28px clamp(16px, 2.2vw, 40px) 34px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 32px;
}
.rodape__marca {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
  background: var(--branco);
  padding: 10px 16px;
  border-radius: 8px;
}
.rodape__numero {
  color: var(--azul);
  font-weight: 900;
  font-size: 1.6rem;
  line-height: 1;
}
.rodape__textos {
  flex: 1 1 320px;
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.5;
  color: #dfe4ff;
}
.rodape__legal {
  font-weight: 400;
}
.rodape__creditos {
  margin-top: 6px;
  opacity: 0.75;
}
.rodape__rede {
  flex: none;
  color: var(--tinta);
  background: var(--amarelo);
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 900;
  padding: 12px 22px;
}
.rodape__rede:hover,
.rodape__rede:focus-visible {
  background: #ffd23f;
}

/* ================================================ Páginas jurídicas ==
   Política de Privacidade e Termos de Uso. Coluna única, medida em ch para
   a linha ficar no comprimento confortável de leitura, independentemente da
   largura da tela.
   ==================================================================== */

.juridico {
  background: var(--papel) var(--grao);
  padding: clamp(32px, 5vw, 76px) clamp(16px, 4vw, 40px) clamp(48px, 7vw, 96px);
}

.juridico__folha {
  max-width: 74ch;
  margin-inline: auto;
}

.juridico__cabecalho {
  border-bottom: 4px solid var(--azul);
  padding-bottom: clamp(14px, 2vw, 22px);
  margin-bottom: clamp(24px, 3.5vw, 44px);
}

.juridico__nome {
  color: var(--azul);
  font-size: clamp(2rem, 5.6vw, 3.4rem);
  line-height: 0.95;
}

.juridico__data {
  margin-top: 10px;
  font-size: 0.95rem;
  font-weight: 400;
  color: #5c5c64;
}

.juridico__texto {
  font-size: clamp(1rem, 1.15vw, 1.08rem);
  font-weight: 400;
  line-height: 1.62;
  color: #23232a;
}

.juridico__titulo {
  display: flex;
  align-items: baseline;
  gap: 0.6em;
  margin-top: clamp(28px, 3.6vw, 46px);
  color: var(--azul);
  font-size: clamp(1.25rem, 2.1vw, 1.6rem);
  line-height: 1.1;
}

/* O número fica em bloco amarelo, como os remates da landing page. */
.juridico__numero {
  flex: none;
  display: grid;
  place-items: center;
  min-width: 1.9em;
  padding: 0.12em 0.3em;
  background: var(--amarelo);
  color: var(--tinta);
  font-size: 0.78em;
}

.juridico__texto p {
  margin-top: 1em;
}

.juridico__texto ul {
  margin: 1em 0 0;
  padding-left: 1.3em;
}

.juridico__texto li {
  margin-top: 0.45em;
}

.juridico__texto a {
  color: var(--azul);
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

.juridico__voltar {
  margin-top: clamp(34px, 5vw, 60px);
  padding-top: clamp(18px, 2.6vw, 28px);
  border-top: 2px solid #d6d6dc;
}

.juridico__voltar a {
  display: inline-block;
  background: var(--azul);
  color: var(--branco);
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 900;
  padding: 12px 22px;
}

.juridico__voltar a:hover,
.juridico__voltar a:focus-visible {
  background: var(--azul-escuro);
}

/* Links jurídicos no rodapé. */
.rodape__juridico {
  margin-top: 8px;
  font-size: 0.85rem;
  font-weight: 400;
}

.rodape__juridico a {
  color: #dfe4ff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.rodape__juridico a:hover,
.rodape__juridico a:focus-visible {
  color: var(--branco);
}

.rodape__juridico span {
  opacity: 0.5;
  margin-inline: 4px;
}

/* ================================================= Entrada das seções ==
   Quem anima é o GSAP, em assets/js/sv-anim.js. Aqui ficam só as peças que
   o script cria em tempo de execução e o preparo das palavras fatiadas.
   Nada nesta folha esconde conteúdo: sem JS a página continua inteira.
   ==================================================================== */

/* Palavra e letra fatiadas pelo script. Precisam de inline-block para
   aceitar transform. A palavra continua sendo a unidade de quebra de linha,
   então o texto nunca parte no meio de uma palavra. */
.sv-w {
  display: inline-block;
  white-space: nowrap;
}
.sv-l {
  display: inline-block;
  will-change: transform, opacity;
}

/* Título com letras girando em 3D precisa de profundidade no contêiner. */
.mandato__titulo,
.quem__texto h2,
.realizacoes__titulo,
.propostas__titulo,
.ficha__titulo {
  perspective: 800px;
}

/* Número que conta. Tabular para a largura não dançar durante a contagem. */
.sv-num {
  font-variant-numeric: tabular-nums;
}

/* Anel que segue o cursor. Fica atrás de nada e não recebe clique. */
.sv-cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 250;
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  border: 2px solid var(--azul);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: multiply;
}

/* Pílula que desliza sob o item de menu da seção atual. */
.topo__menu ul { position: relative; }

.sv-nav-marca {
  position: absolute;
  left: 0;
  bottom: -3px;
  height: 3px;
  width: 0;
  background: var(--amarelo);
  opacity: 0;
  pointer-events: none;
}

/* Com a pílula em cena, o sublinhado fixo do item ativo sairia dobrado. */
.topo__menu a[aria-current="true"] {
  border-bottom-color: transparent;
}

/* Barra de leitura, presa no topo. Nasce encolhida e o scrub a estica. */
.sv-progresso {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 200;
  width: 100%;
  height: 4px;
  background: var(--amarelo);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

/* ---- Cortina de abertura ----
   Chapa azul cheia com o logotipo vertical ao centro, no espírito da
   referência: fundo saturado da marca, lockup centrado, nada mais. */
.sv-cortina {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  background: var(--azul) var(--grao);
}

.sv-cortina__marca {
  display: grid;
  justify-items: center;
  gap: clamp(10px, 1.6vh, 22px);
  padding: 5vh 20px;
}

/* O lockup é vertical (proporção ~4:7), então quem manda é a altura —
   por largura ele estouraria a tela em telas baixas. */
.sv-cortina__logo {
  height: min(56vh, 460px);
  width: auto;
  max-width: 78vw;
  object-fit: contain;
}

/* O número é tipografado (o logotipo oficial não o traz). Dimensionado
   para encostar na largura do lockup, senão lê como legenda solta. */
.sv-cortina__numero {
  color: var(--amarelo);
  font-size: clamp(3.2rem, 11vh, 7.4rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: 0.06em;
  text-indent: 0.06em; /* compensa o tracking do último algarismo */
}

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

  /* Cortina, barra de progresso e anel do cursor nascem no JS. Some com
     elas para quem pediu menos movimento — a não ser que o script tenha
     marcado o documento, o que significa que a animação completa está
     rodando de propósito (ver RESPEITAR_MOVIMENTO_REDUZIDO no sv-anim.js).
     Sem esse `:not`, as três eram criadas, animadas e ficavam invisíveis. */
  html:not(.sv-anim-completa) .sv-progresso,
  html:not(.sv-anim-completa) .sv-cortina,
  html:not(.sv-anim-completa) .sv-cursor { display: none; }
}

/* ================================================== Telas até 1023px ==
   O palco deixa de existir: as seções voltam ao fluxo normal, a arte de
   fundo dá lugar a cor chapada e cada bloco ganha respiro próprio.
   ==================================================================== */

@media (max-width: 1023px) {
  :root {
    --topo-altura: 64px;
    --topo-recuo-esq: 20px;
    --topo-recuo-dir: 20px;
  }

  .palco {
    container-type: normal;
    aspect-ratio: auto;
    max-width: 680px;
    padding-inline: 20px;
    display: flex;
    flex-direction: column;
    gap: 26px;
  }

  /* Tudo o que era posicionado no palco volta a ser um bloco do fluxo. */
  .capa__marca,
  .capa__aviso,
  .ficha,
  .mandato__retrato,
  .mandato__titulo,
  .mandato__texto,
  .mandato__remate,
  .mandato__mosaico,
  .quem__retrato,
  .quem__texto,
  .objetivos__mapa,
  .objetivo,
  .realizacoes__titulo,
  .realizacoes__grade,
  .propostas__foto,
  .propostas__titulo,
  .propostas__lista {
    position: static;
    inset: auto;
    width: auto;
    max-width: 100%;
    min-width: 0;
    height: auto;
    transform: none;
    text-align: left;
  }

  /* Enfeites que só fazem sentido na composição de tela larga. */
  .capa::after,
  .mandato__setas,
  .quem__chevrons,
  .objetivos__traco,
  .objetivos__checks,
  .realizacoes__losango,
  .propostas__setas,
  .propostas__triangulos,
  .propostas::after {
    display: none;
  }

  /* Blocos que sangram até a borda da tela. */
  .capa__marca,
  .mandato__mosaico,
  .propostas__foto {
    width: calc(100% + 40px);
    max-width: none;
    margin-inline: -20px;
  }

  .mandato__mosaico img,
  .propostas__foto {
    width: 100%;
    height: auto;
  }

  /* A arte da capa tem os 30% da direita vazios: é onde o formulário
     encaixa no desktop. No celular o formulário desce para baixo e essa
     faixa virava um vão de papel, jogando o retrato para o canto. O
     recorte descarta a sobra (o conteúdo termina em x=1129 de 1620) e a
     composição volta a ocupar a largura toda. */
  .capa__arte {
    width: 100%;
    height: auto;
    aspect-ratio: 1129 / 941;
    object-fit: cover;
    object-position: left center;
  }

  /* ---- Navegação ---- */

  .topo__faixa { position: relative; }
  .com-js .topo__gatilho { display: grid; }

  .topo__menu {
    margin: 0;
    background: var(--azul-escuro);
  }
  .com-js .topo__menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
  }
  .com-js .topo__menu.aberto { display: block; }

  /* Sem script, o menu desce inteiro abaixo da marca. */
  html:not(.com-js) .topo__faixa { flex-wrap: wrap; }
  html:not(.com-js) .topo__menu {
    flex-basis: 100%;
    margin-left: 0;
    margin-inline: calc(-1 * var(--topo-recuo-esq)) calc(-1 * var(--topo-recuo-dir));
  }
  .topo__menu ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 20px 18px;
  }
  .topo__menu a {
    font-size: 1rem;
    padding-block: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }
  .topo__menu li:last-child a { border-bottom: 0; }

  /* ---- Capa ---- */

  .palco--capa { padding-top: 0; padding-bottom: 34px; gap: 22px; }

  .capa__marca { position: relative; }
  .capa__aviso {
    order: 3;
    padding-inline: 20px;
    font-size: 0.72rem;
    line-height: 1.4;
    white-space: normal;
    color: #66666c;
  }

  .ficha { padding: 26px 22px 24px; }
  .ficha__titulo { font-size: 1.7rem; }
  .ficha__texto { margin-top: 12px; font-size: 0.95rem; line-height: 1.45; }
  .ficha__recado { margin-top: 14px; padding: 10px 14px; font-size: 0.95rem; }
  .ficha__form { margin-top: 20px; gap: 10px; }
  .ficha__campo input,
  .ficha__campo textarea {
    font-size: 1rem;
    padding: 13px 20px;
  }
  .ficha__campo textarea { border-radius: 20px; min-height: 110px; }
  .ficha__erro { font-size: 0.82rem; padding: 4px 20px 0; }
  .ficha__envio { margin-top: 6px; }
  .ficha__envio button {
    width: 100%;
    font-size: 1.25rem;
    padding: 14px 24px;
  }

  /* ---- Primeiro mandato ---- */

  .palco--mandato { padding-top: 42px; padding-bottom: 0; }

  .mandato__retrato {
    order: 2;
    width: min(300px, 70%);
    margin-inline: auto;
  }
  .mandato__titulo { order: 1; display: block; }
  .mandato__titulo .linha--grande { font-size: clamp(2.6rem, 11vw, 4.2rem); }
  .mandato__titulo .linha--pequeno { font-size: clamp(1.3rem, 5.3vw, 2rem); }
  .mandato__texto {
    order: 3;
    display: grid;
    gap: 14px;
    font-size: 1rem;
    line-height: 1.5;
  }
  .mandato__remate {
    order: 4;
    font-size: clamp(1.2rem, 5vw, 1.7rem);
  }
  .mandato__mosaico { order: 5; }

  /* ---- Quem sou eu ---- */

  .quem {
    background-image: none;
    background-color: var(--verde);
  }
  .palco--quem { padding-block: 42px 46px; }

  .quem__retrato {
    width: min(320px, 76%);
    margin-inline: auto;
  }
  .quem__texto h2 {
    font-size: clamp(2.4rem, 10vw, 3.6rem);
    white-space: normal;
    text-shadow: none;
  }
  .quem__texto p {
    margin-top: 14px;
    font-size: 1rem;
    line-height: 1.5;
  }
  .quem__texto p:first-of-type { margin-top: 18px; }

  /* ---- Meus objetivos ---- */

  .palco--objetivos { padding-block: 42px 48px; gap: 22px; }

  .objetivos__mapa {
    width: min(420px, 100%);
    margin-inline: auto;
  }
  .objetivos__brasil { height: auto; }

  .objetivo h3,
  .objetivo--resultado h3 {
    font-size: clamp(2rem, 9vw, 3rem);
    color: var(--azul);
    text-shadow: none;
  }
  .objetivo p,
  .objetivo--presenca p,
  .objetivo--conexao p,
  .objetivo--resultado p {
    position: static;
    width: auto;
    margin: 8px 0 0;
    font-size: 1rem;
    font-style: normal;
    text-align: left;
  }

  /* ---- O que eu já fiz ---- */

  .realizacoes {
    background-image: none;
    background-color: var(--azul);
  }
  .palco--realizacoes { padding-block: 42px 48px; }

  .realizacoes__titulo {
    font-size: clamp(2.6rem, 12vw, 4.4rem);
    text-align: center;
    text-shadow: 4px 4px 0 rgba(20, 40, 130, 0.42);
  }
  .realizacoes__grade {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .realizacao { padding: 22px 20px 24px; box-shadow: none; }
  .realizacao h3 { font-size: 1.25rem; text-align: center; }
  .realizacao p { margin-top: 12px; font-size: 0.98rem; line-height: 1.45; }

  /* ---- Minhas propostas ---- */

  .palco--propostas { padding-block: 42px 44px; }

  .propostas__foto--esporte { order: 2; }
  .propostas__foto--trabalho { order: 4; }
  .propostas__titulo { order: 1; display: block; }
  .propostas__lista--alta { order: 3; }
  .propostas__lista--baixa { order: 5; }

  .propostas__titulo .linha--fina,
  .propostas__titulo .linha--grossa {
    font-size: clamp(2.6rem, 12vw, 4.4rem);
  }
  .propostas__titulo .linha--grossa { text-shadow: 3px 3px 0 var(--branco); }

  .propostas__lista { gap: 12px; }
  .proposta {
    clip-path: none;
    padding: 16px 18px 18px;
  }
  .proposta h3 { font-size: 1.2rem; }
  .proposta p { margin-top: 8px; font-size: 0.98rem; line-height: 1.45; }

  /* ---- Rodapé ---- */

  .rodape__faixa { padding-block: 24px 28px; }
}

@media (max-width: 560px) {
  .palco { padding-inline: 16px; }
  .capa__marca,
  .mandato__mosaico,
  .propostas__foto {
    width: calc(100% + 32px);
    margin-inline: -16px;
  }
  .rodape__faixa { gap: 16px; }
  .rodape__rede { width: 100%; text-align: center; }
}
