/* ENEM POWER 2026 — Landing V12 (topo e rodapé conforme a referência do Peterson; Anota aí e inscrição mantidos da V11) */

@font-face { font-family: "Anybody"; src: url("/assets/fonts/anybody.woff") format("woff"); font-weight: 500 900; font-stretch: 100% 150%; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins-regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins-medium.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins-semibold.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins-bold.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins-extrabold.woff") format("woff"); font-weight: 800; font-display: swap; }

:root {
  /* cores medidas na referência */
  --laranja: #F77546;
  --vermelho: #E14934;       /* colunas laterais */
  --amarelo-fita: #E1D82D;   /* fita da data e faixa do local */
  --amarelo: #EDC24F;        /* bolinhas */
  --verde: #00AB91;
  --verde-faixa: #0FB09E;    /* quadriculado, botão e seção */
  --roxo: #472672;
  --marinho: #1F2A5A;
  --preto: #000;
  --branco: #fff;
  --cinza-claro: #F2F2F3;
  --erro: #C4001D;

  --fonte-larga: "Anybody", "Arial Black", sans-serif;
  --fonte-texto: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* 1 unidade = 1 pixel da referência (1366 px de largura); para de crescer em 1600 px */
  --u: calc(min(100vw, 1600px) / 1366);
  --coluna: max(12px, calc(40 * var(--u)));
  --quadriculado: max(30px, calc(56 * var(--u)));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
html, body { overflow-x: clip; }
a, button, input, select, label { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
section[id] { scroll-margin-top: 16px; }
body { margin: 0; font-family: var(--fonte-texto); font-size: 17px; line-height: 1.5; color: var(--preto); background: var(--vermelho); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.container { width: min(1120px, 100% - 2 * var(--coluna) - 40px); margin-inline: auto; position: relative; z-index: 2; }

.pular-link { position: absolute; left: 16px; top: -80px; z-index: 100; background: var(--amarelo-fita); color: var(--preto); border-radius: 10px; padding: 10px 16px; font-weight: 700; text-decoration: none; }
.pular-link:focus { top: 16px; outline: 3px solid var(--preto); outline-offset: 2px; }

/* ---------- Fundo de raios ---------- */
.fundo-raios { position: relative; background: var(--laranja) url("/assets/img/fundo-raios.webp") center / cover no-repeat; }
@media (max-width: 900px) { .fundo-raios { background-image: url("/assets/img/fundo-raios-1100.webp"); } }

/* ---------- Colunas vermelhas com bolinhas (só na parte de cima de cada bloco, como na referência) ---------- */
.coluna-bolinhas { position: absolute; top: 0; bottom: 0; z-index: 3; width: var(--coluna); background: var(--vermelho); pointer-events: none; }
.coluna-bolinhas.esquerda { left: 0; }
.coluna-bolinhas.direita { right: 0; }
.coluna-bolinhas::after {
  content: ""; position: absolute; left: 0; right: 0;
  top: var(--bolinhas-topo, 0px); bottom: var(--bolinhas-base, 0px);
  background: url("/assets/img/bolinhas-esq.svg") left top / 100% auto repeat-y;
}
.coluna-bolinhas.direita::after { background-image: url("/assets/img/bolinhas-dir.svg"); }

/* ---------- Botões ---------- */
.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--fonte-larga); font-weight: 800; font-stretch: 125%;
  text-decoration: none; text-transform: uppercase; letter-spacing: -0.01em;
  color: var(--preto); background: var(--verde-faixa);
  border: 3px solid var(--preto); border-radius: 999px;
  box-shadow: 0 5px 0 var(--preto);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.botao:hover { background: #19C2AE; transform: translateY(-2px); box-shadow: 0 7px 0 var(--preto); }
.botao:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--preto); }
.botao:focus-visible, .botao-inscrever:focus-visible, input:focus-visible, select:focus-visible, .rodape-fone:focus-visible { outline: 3px solid var(--branco); outline-offset: 3px; box-shadow: 0 0 0 6px var(--preto); }

/* ================= TOPO ================= */
.hero { --bolinhas-topo: calc(120 * var(--u)); --bolinhas-base: calc(158 * var(--u)); overflow: hidden; }
.hero-palco { position: relative; z-index: 2; width: calc(1366 * var(--u)); height: calc(780 * var(--u)); margin: 0 auto; }
:where(.hero-palco) :where(p, h1) { margin: 0; }
.h-info { display: contents; }

.h-raio { position: absolute; z-index: 1; height: auto; pointer-events: none; }
.h-raio-esq { left: calc(167 * var(--u)); top: calc(53 * var(--u)); width: calc(128 * var(--u)); transform: rotate(-14deg); }
.h-raio-dir { left: calc(655 * var(--u)); top: calc(-10 * var(--u)); width: calc(156 * var(--u)); transform: scaleX(-1) rotate(-6deg); }
.h-logo { position: absolute; z-index: 2; left: calc(124 * var(--u)); top: calc(207 * var(--u)); width: calc(559 * var(--u)); }
.h-logo img { width: 100%; }

.h-data-rotulo {
  position: absolute; left: calc(837 * var(--u)); top: calc(69 * var(--u)); width: calc(300 * var(--u));
  text-align: center; color: var(--branco);
  font-family: var(--fonte-larga); font-weight: 700; font-stretch: 130%; font-size: calc(23 * var(--u)); line-height: 1.2; letter-spacing: -0.02em;
}
.h-data-fita {
  position: absolute; left: calc(823 * var(--u)); top: calc(110 * var(--u)); width: calc(329 * var(--u)); height: calc(92 * var(--u));
  background: var(--amarelo-fita); transform: rotate(-5.5deg);
  display: grid; place-items: center;
}
.h-data-fita span { display: block; text-align: center; font-family: var(--fonte-larga); font-weight: 600; font-stretch: 130%; font-size: calc(26.5 * var(--u)); line-height: 1.12; letter-spacing: -0.02em; }
.h-horario {
  position: absolute; left: calc(900 * var(--u)); top: calc(227 * var(--u)); width: calc(175 * var(--u)); height: calc(63 * var(--u));
  background: var(--branco); border-radius: calc(18 * var(--u));
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: var(--fonte-larga); line-height: 1.04; letter-spacing: -0.03em;
}
.h-horario span { font-weight: 600; font-stretch: 125%; font-size: calc(21 * var(--u)); }
.h-horario strong { font-weight: 900; font-stretch: 135%; font-size: calc(21 * var(--u)); }
.h-aulao {
  position: absolute; left: calc(637 * var(--u)); top: calc(311 * var(--u)); width: calc(700 * var(--u));
  text-align: center; color: var(--branco);
  font-weight: 600; font-size: calc(20 * var(--u)); line-height: 1.38;
}
.h-aulao strong { display: block; font-weight: 800; font-size: calc(19.5 * var(--u)); }
.h-aulao b { font-weight: 800; }
.h-local {
  position: absolute; left: calc(736 * var(--u)); top: calc(414 * var(--u)); width: calc(501 * var(--u)); height: calc(41 * var(--u));
  background: var(--amarelo-fita);
  display: flex; align-items: center; justify-content: center; gap: calc(8 * var(--u));
  font-family: var(--fonte-larga); font-weight: 800; font-stretch: 125%; font-size: calc(21 * var(--u)); letter-spacing: -0.02em; white-space: nowrap;
}
.h-local-icone { width: calc(27 * var(--u)); height: calc(27 * var(--u)); flex: none; color: var(--preto); }
.botao-inscrever {
  position: absolute; left: calc(771 * var(--u)); top: calc(487 * var(--u)); width: calc(432 * var(--u)); height: calc(86 * var(--u));
  display: flex; align-items: center; justify-content: center;
  background: var(--verde-faixa); color: var(--preto); text-decoration: none;
  border: calc(5 * var(--u)) solid var(--preto); border-radius: 999px;
  box-shadow: 0 calc(8 * var(--u)) 0 var(--preto);
  transform: rotate(-1.8deg);
  font-family: var(--fonte-larga); font-weight: 900; font-stretch: 150%; font-size: calc(30 * var(--u)); letter-spacing: 0.02em; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.botao-inscrever:hover { background: #19C2AE; transform: rotate(-1.8deg) translateY(calc(-2 * var(--u))); box-shadow: 0 calc(10 * var(--u)) 0 var(--preto); }
.botao-inscrever:active { transform: rotate(-1.8deg) translateY(calc(5 * var(--u))); box-shadow: 0 calc(3 * var(--u)) 0 var(--preto); }
.h-ingresso {
  position: absolute; left: calc(767 * var(--u)); top: calc(612 * var(--u)); width: calc(440 * var(--u));
  text-align: center; color: var(--branco);
  font-family: var(--fonte-larga); font-weight: 800; font-stretch: 140%; font-size: max(10.5px, calc(12.2 * var(--u))); line-height: 1.15; letter-spacing: -0.02em;
}
.h-ingresso small { display: block; font-weight: 600; font-size: max(10px, calc(11 * var(--u))); }

.hero-cidade {
  position: absolute; z-index: 1; left: 0; right: 0; bottom: 0;
  height: calc(112 * var(--u));
  background: url("/assets/img/cidade.svg") var(--coluna) bottom / auto 100% repeat-x;
}

/* ---------- Celular: mesmos elementos, empilhados ---------- */
@media (max-width: 899px) {
  .hero { --bolinhas-topo: 90px; --bolinhas-base: 120px; }
  .hero-palco { width: calc(100% - 2 * var(--coluna) - 24px); height: auto; padding: 34px 0 120px; display: flex; flex-direction: column; align-items: center; }
  .h-info { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 440px; }
  .h-logo, .h-data-rotulo, .h-data-fita, .h-horario, .h-aulao, .h-local, .botao-inscrever, .h-ingresso { position: relative; left: auto; top: auto; }
  .h-logo { width: 94%; max-width: 470px; margin-top: 46px; }
  .h-raio-esq { left: 2%; top: 4px; width: 62px; }
  .h-raio-dir { left: auto; right: 0; top: -14px; width: 78px; }
  .h-info { margin-top: 26px; }
  .h-data-rotulo { width: 100%; font-size: 20px; }
  .h-data-fita { width: min(82%, 320px); height: auto; padding: 14px 8px; margin-top: 10px; }
  .h-data-fita span { font-size: clamp(19px, 5.6vw, 25px); }
  .h-horario { width: auto; height: auto; padding: 10px 22px; margin-top: 22px; border-radius: 16px; }
  .h-horario span, .h-horario strong { font-size: clamp(18px, 5.2vw, 22px); }
  .h-aulao br { display: none; }
  .h-aulao { width: 100%; margin-top: 18px; font-size: clamp(15px, 4.3vw, 18px); }
  .h-aulao strong { font-size: clamp(15px, 4.3vw, 18px); }
  .h-local { width: 100%; height: auto; padding: 9px 8px; margin-top: 18px; font-size: clamp(12px, 3.7vw, 19px); gap: 6px; }
  .h-local-icone { width: 1.3em; height: 1.3em; }
  .botao-inscrever { width: 92%; height: auto; padding: 16px 10px; margin-top: 22px; border-width: 4px; box-shadow: 0 6px 0 var(--preto); font-size: clamp(17px, 5.4vw, 28px); letter-spacing: 0; }
  .botao-inscrever:hover { transform: rotate(-1.8deg) translateY(-2px); box-shadow: 0 8px 0 var(--preto); }
  .botao-inscrever:active { transform: rotate(-1.8deg) translateY(4px); box-shadow: 0 2px 0 var(--preto); }
  .h-ingresso { width: 100%; margin-top: 24px; font-size: clamp(12px, 3.6vw, 15px); }
  .h-ingresso small { font-size: clamp(11px, 3.2vw, 13px); }
  .hero-cidade { height: 84px; }
}

/* ================= SEÇÕES ================= */
.secao { position: relative; padding: 100px 0; }
.titulo-secao {
  margin: 0 0 18px;
  font-family: var(--fonte-larga); font-weight: 900; font-stretch: 140%;
  font-size: clamp(32px, 4.6vw, 60px); line-height: 1.02; letter-spacing: -0.035em;
  color: var(--branco);
}

/* Anota aí: verde do quadriculado, com a faixa quadriculada em cima */
.secao-evento {
  background: var(--verde-faixa);
  padding-top: calc(var(--quadriculado) + 80px);
}
.secao-evento::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0;
  height: var(--quadriculado);
  background: var(--verde-faixa) url("/assets/img/quadriculado.svg") left top / auto 100% repeat-x;
}
.secao-evento .titulo-secao { text-shadow: 0 4px 0 var(--roxo); }
.grade-info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 34px 0 40px; }
.info-card {
  position: relative;
  background: var(--branco);
  border-radius: 26px;
  padding: 22px 22px 22px 94px;
  min-height: 112px;
  display: flex; flex-direction: column; justify-content: center;
}
.info-icone { position: absolute; left: 22px; top: 50%; width: 54px; height: 54px; transform: translateY(-50%); }
.info-rotulo { font-weight: 600; font-size: 14px; color: #5A5A5A; }
.info-card strong { font-family: var(--fonte-larga); font-weight: 800; font-stretch: 125%; font-size: 22px; line-height: 1.12; letter-spacing: -0.03em; }

.card-solidario {
  position: relative;
  display: grid; grid-template-columns: 118px 1fr; gap: 28px; align-items: center;
  background: var(--amarelo-fita);
  padding: 32px 40px;
  transform: rotate(-1.5deg);
  box-shadow: 0 8px 0 var(--roxo);
}
.solidario-icone { width: 118px; height: 110px; }
.card-solidario h3 { margin: 0 0 8px; font-family: var(--fonte-larga); font-weight: 900; font-stretch: 140%; font-size: clamp(24px, 2.8vw, 36px); line-height: 1.05; letter-spacing: -0.035em; }
.card-solidario p { margin: 0; font-size: 18px; max-width: 660px; }

/* ================= INSCRIÇÃO ================= */
.bloco-final { overflow: hidden; }
.secao-inscricao { padding-bottom: 60px; }
.grade-inscricao { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
.inscricao-texto { position: sticky; top: 30px; color: var(--branco); }
.inscricao-texto > p { font-size: 18px; font-weight: 500; margin: 0 0 22px; }
.nota-privacidade {
  border: 1.5px solid rgba(255,255,255,.9);
  border-radius: 20px;
  padding: 16px 18px;
  display: flex; flex-direction: column; gap: 4px;
  font-size: 15px;
}
.nota-privacidade strong { font-weight: 700; }
.raio-decor { position: absolute; z-index: 1; height: auto; pointer-events: none; }
.raio-decor-1 { width: clamp(90px, 11vw, 170px); left: calc(var(--coluna) + 2%); bottom: 18%; transform: rotate(-8deg); }
.raio-decor-2 { width: clamp(80px, 9vw, 150px); right: calc(var(--coluna) + 1%); top: 70px; transform: scaleX(-1) rotate(-6deg); }

.form-card {
  position: relative; z-index: 2;
  background: var(--branco);
  border-radius: 28px;
  padding: 34px;
  box-shadow: 0 10px 0 rgba(71,38,114,.35);
}
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; min-width: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { font-weight: 600; font-size: 15px; }
input[type="text"], input[type="tel"], input[type="email"], select {
  width: 100%;
  font: inherit; font-size: 16px;
  color: var(--preto);
  background: var(--cinza-claro);
  border: 2px solid #D9D9DE;
  border-radius: 12px;
  padding: 12px 14px;
  min-height: 52px;
  transition: border-color .15s ease, background-color .15s ease;
}
input::placeholder { color: #75757D; }
input:focus, select:focus { outline: none; background: var(--branco); border-color: var(--verde-faixa); box-shadow: 0 0 0 3px rgba(15,176,158,.25); }
select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
  padding-right: 44px;
}
select:disabled { opacity: .5; }
.error { color: var(--erro); font-weight: 600; font-size: 14px; }
.error:empty { display: none; }
.field.invalid input, .field.invalid select { border-color: var(--erro); background: #FFF2F3; }

.consents { margin: 6px 0 22px; display: flex; flex-direction: column; gap: 12px; }
.check-row { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; font-size: 15px; cursor: pointer; }
.check-row input { width: 22px; height: 22px; flex: none; margin: 2px 0 0; accent-color: var(--roxo); cursor: pointer; }
.consent-help { margin: 0; font-size: 13px; color: #5A5A5A; }

.botao-enviar { width: 100%; padding: 16px 18px; font-size: 21px; line-height: 1.1; font-weight: 900; font-stretch: 140%; }
.botao-enviar:disabled { opacity: .7; cursor: wait; transform: none; }
.spinner { width: 20px; height: 20px; border: 3px solid var(--preto); border-top-color: transparent; border-radius: 50%; animation: girar .8s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }

.form-message { margin-top: 14px; font-weight: 600; font-size: 15px; }
.form-message:empty { display: none; }
.form-message.error-message { color: var(--erro); background: #FFF2F3; border: 2px solid var(--erro); border-radius: 12px; padding: 10px 12px; }

.success-state { text-align: center; padding: 20px 6px; }
.success-icon { width: 84px; height: 84px; color: var(--verde-faixa); margin: 0 auto 12px; display: block; animation: girar 8s linear infinite; }
.success-state h3 { font-family: var(--fonte-larga); font-weight: 900; font-stretch: 140%; font-size: 32px; letter-spacing: -0.035em; margin: 0 0 8px; }
.success-state p { margin: 0 auto 22px; max-width: 440px; }
.botao-secundario { padding: 12px 22px; font-size: 16px; background: var(--amarelo-fita); }
.botao-secundario:hover { background: #EDE43F; }

/* ================= RODAPÉ (cidade + pílula + quadriculado, como na referência) ================= */
.bloco-final { --bolinhas-topo: 100px; --bolinhas-base: calc(var(--quadriculado) + 34px + 120 * var(--u)); overflow: hidden; }
.rodape { position: relative; padding-top: calc(60 * var(--u)); }
.rodape-cidade {
  position: absolute; z-index: 1; left: 0; right: 0; bottom: calc(var(--quadriculado) + 34px);
  height: calc(100 * var(--u));
  background: url("/assets/img/cidade.svg") left bottom / auto 100% repeat-x;
}
.rodape-pilula {
  position: relative; z-index: 5;
  width: max(300px, calc(426 * var(--u)));
  margin: 0 auto calc(-1 * max(26px, calc(50 * var(--u))));
  background: var(--branco);
  border-radius: calc(30 * var(--u));
  padding: calc(6 * var(--u)) calc(6 * var(--u)) calc(6 * var(--u)) calc(26 * var(--u));
  display: grid; grid-template-columns: 1fr 1.08fr; align-items: center; gap: calc(14 * var(--u));
  min-height: calc(105 * var(--u));
}
.rodape-logo { width: 100%; max-width: calc(190 * var(--u)); }
.rodape-contato {
  align-self: stretch;
  background: var(--cinza-claro); border-radius: calc(26 * var(--u));
  padding: calc(12 * var(--u)) calc(14 * var(--u));
  display: flex; flex-direction: column; justify-content: center; gap: 0;
  color: var(--marinho);
}
.rodape-rotulo { font-size: max(10px, calc(11 * var(--u))); font-weight: 500; line-height: 1.3; }
.rodape-fone { display: inline-flex; align-items: center; gap: calc(5 * var(--u)); font-size: max(15px, calc(18.5 * var(--u))); font-weight: 600; line-height: 1.2; text-decoration: none; letter-spacing: -0.01em; white-space: nowrap; }
.rodape-fone:hover { text-decoration: underline; }
.rodape-fone svg { width: 1em; height: 1em; flex: none; }
.rodape-endereco { margin-top: calc(7 * var(--u)); font-size: max(8.5px, calc(8.5 * var(--u))); line-height: 1.4; color: #5F6475; }
.rodape-quadriculado { position: relative; z-index: 4; height: var(--quadriculado); background: var(--verde-faixa) url("/assets/img/quadriculado.svg") left top / auto 100% repeat-x; }
.rodape-copy { position: relative; z-index: 4; margin: 0; padding: 8px 16px 10px; background: var(--verde-faixa); color: var(--branco); text-align: center; font-size: 13px; font-weight: 500; }

/* ================= RESPONSIVO ================= */
@media (max-width: 980px) {
  .grade-info { grid-template-columns: 1fr; }
  .grade-inscricao { grid-template-columns: 1fr; gap: 30px; }
  .inscricao-texto { position: static; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .container { width: calc(100% - 2 * var(--coluna) - 28px); }
  .secao { padding: 76px 0; }
  .secao-evento { padding-top: calc(var(--quadriculado) + 56px); }
  .rodape-pilula { width: min(340px, 100% - 2 * var(--coluna) - 24px); grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 16px 8px 8px; border-radius: 24px; gap: 10px; }
  .rodape-logo { max-width: 150px; }
  .rodape-contato { width: 100%; align-items: center; border-radius: 18px; padding: 10px 10px 12px; }
  .rodape-endereco { font-size: 10px; }
  .rodape-cidade { height: 70px; }
  .titulo-secao { font-size: 32px; }
  .info-card { padding: 18px 18px 18px 84px; min-height: 96px; border-radius: 22px; }
  .info-icone { left: 18px; width: 48px; height: 48px; }
  .info-card strong { font-size: 20px; }
  .card-solidario { grid-template-columns: 1fr; gap: 14px; padding: 26px 22px; transform: rotate(-1deg); }
  .solidario-icone { width: 84px; height: 78px; }
  .card-solidario p { font-size: 16px; }
  .form-card { padding: 22px 18px; border-radius: 22px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .botao-enviar { font-size: 15px; font-stretch: 120%; padding: 15px 10px; }
  .raio-decor-1 { display: none; }
  .raio-decor-2 { width: 70px; top: 30px; opacity: .9; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
