/* Visual do site institucional. Sem texto aqui: o texto vem de conteudo/<idioma>.json. */
@font-face {
  font-family: "Gabarito";
  src: url("/estatico/gabarito.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --noite: #24102b;
  --noite-2: #2f1538;
  --grena: #7a1e2c;
  --coral: #ff5a4e;
  --ambar: #f2a33a;
  --creme: #fff6e6;
  --texto: rgba(255, 246, 230, 0.74);
  --linha: rgba(255, 246, 230, 0.12);
  --raio: 20px;
  --largura: 1080px;
  --titulo: "Gabarito", system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(110% 70% at 50% -10%, #4a1630 0%, var(--noite) 58%) no-repeat, var(--noite);
  color: var(--creme);
  font: 400 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ambar); outline-offset: 3px; border-radius: 6px; }

.pular {
  position: absolute; left: 16px; top: -60px; z-index: 10;
  background: var(--creme); color: var(--noite); padding: 10px 16px; border-radius: 10px; font-weight: 700;
}
.pular:focus { top: 12px; }

.envelope { width: 100%; max-width: var(--largura); margin: 0 auto; padding: 0 20px; }

/* Topo */
.topo { border-bottom: 1px solid var(--linha); backdrop-filter: blur(8px); }
.topo .envelope { display: flex; align-items: center; gap: 24px; min-height: 72px; flex-wrap: wrap; }
.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 18px/1 var(--titulo); letter-spacing: -0.01em; }
.marca img { width: 34px; height: 34px; }
.menu { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.menu a, .idiomas a {
  text-decoration: none; color: var(--texto); padding: 8px 12px; border-radius: 999px; font-size: 15px;
  transition: color .2s, background-color .2s;
}
.menu a:hover, .idiomas a:hover { color: var(--creme); background: rgba(255, 246, 230, 0.06); }
.menu a[aria-current="page"] { color: var(--creme); background: rgba(255, 90, 78, 0.14); }
.idiomas { display: flex; gap: 2px; font-size: 13px; }
.idiomas a { padding: 6px 9px; letter-spacing: .06em; text-transform: uppercase; }
.idiomas a[aria-current="true"] { color: var(--ambar); }

/* Blocos */
main { flex: 1; }
section { padding: 72px 0; }
section + section { border-top: 1px solid var(--linha); }
h1, h2, h3 { font-family: var(--titulo); letter-spacing: -0.02em; line-height: 1.1; }
h1 { font-size: clamp(38px, 6.4vw, 72px); font-weight: 850; }
h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; margin-bottom: 32px; }
h3 { font-size: 21px; font-weight: 750; margin-bottom: 8px; }
.lead { color: var(--texto); font-size: clamp(18px, 2.2vw, 21px); max-width: 60ch; margin-top: 20px; }

.abertura { text-align: center; padding: 88px 0 96px; }
.abertura .logo { width: min(440px, 82vw); margin: 0 auto 44px; filter: drop-shadow(0 22px 48px rgba(255, 90, 78, 0.28)); }
.abertura .lead { margin: 22px auto 0; }
.selo {
  display: inline-block; margin-bottom: 22px; padding: 6px 14px; border: 1px solid rgba(242, 163, 58, 0.5);
  border-radius: 999px; color: var(--ambar); font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
}
.botao {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 34px; padding: 15px 26px;
  border-radius: 999px; background: var(--coral); color: #2a0b10; font-weight: 750; text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.botao:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(255, 90, 78, 0.35); }
.botao::after { content: "→"; }

.cabecalho { padding: 80px 0 48px; }

.grade { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.cartao {
  padding: 26px; border-radius: var(--raio); border: 1px solid var(--linha);
  background: linear-gradient(160deg, rgba(255, 246, 230, 0.06), rgba(255, 246, 230, 0.015));
}
.cartao p, .passos p, .perguntas p, .lista li { color: var(--texto); }

.passos { list-style: none; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); counter-reset: passo; }
.passos li { counter-increment: passo; padding: 24px 24px 24px 76px; position: relative; border-radius: var(--raio); border: 1px solid var(--linha); }
.passos li::before {
  content: counter(passo); position: absolute; left: 22px; top: 22px; width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center; background: var(--grena); color: var(--creme); font: 800 18px/1 var(--titulo);
}

.perguntas { display: grid; gap: 10px; max-width: 820px; }
.perguntas details { border: 1px solid var(--linha); border-radius: 16px; padding: 4px 22px; }
.perguntas summary {
  cursor: pointer; padding: 16px 0; font: 700 18px/1.35 var(--titulo); list-style: none;
  display: flex; justify-content: space-between; gap: 16px;
}
.perguntas summary::-webkit-details-marker { display: none; }
.perguntas summary::after { content: "+"; color: var(--coral); font-size: 24px; line-height: 1; transition: transform .2s; }
.perguntas details[open] summary { color: var(--ambar); }
.perguntas details[open] summary::after { transform: rotate(45deg); }
.perguntas p { padding: 0 0 18px; }

.lista { display: grid; gap: 12px; padding: 0; list-style: none; max-width: 820px; }
.lista li { padding-left: 34px; position: relative; }
.lista li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 12px; height: 12px; border-radius: 4px; background: var(--coral); transform: rotate(45deg); }

.destaque .caixa {
  padding: clamp(28px, 5vw, 56px); border-radius: 28px;
  background: linear-gradient(135deg, var(--grena), #4a1630 70%); border: 1px solid rgba(255, 90, 78, 0.3);
}
.destaque h2 { margin-bottom: 14px; }
.destaque .botao { background: var(--creme); }

/* Rodapé */
.rodape { border-top: 1px solid var(--linha); padding: 36px 0; color: var(--texto); font-size: 14px; }
.rodape .envelope { display: flex; gap: 16px 32px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.rodape nav { display: flex; gap: 18px; flex-wrap: wrap; }
.rodape a { text-decoration: none; }
.rodape a:hover { color: var(--creme); }

@media (max-width: 720px) {
  .topo .envelope { padding-top: 10px; padding-bottom: 10px; gap: 10px; }
  .menu { order: 3; width: 100%; margin: 0 -12px; }
  .idiomas { margin-left: auto; }
  section { padding: 56px 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .abertura > .envelope > * { animation: subir .8s cubic-bezier(.2, .7, .2, 1) both; }
  .abertura > .envelope > *:nth-child(2) { animation-delay: .08s; }
  .abertura > .envelope > *:nth-child(3) { animation-delay: .16s; }
  .abertura > .envelope > *:nth-child(4) { animation-delay: .24s; }
  @keyframes subir { from { opacity: 0; transform: translateY(14px); } }
}
