/* ============ Ilha da Aventura - estilo do site ============ */
:root {
  --ouro: #ffd24a;
  --ouro-escuro: #46240a;
  --fundo: #0b1424;
  --fundo2: #111d33;
  --cartao: #17243d;
  --borda: #2a3a5c;
  --texto: #e8edf7;
  --suave: #a3aec4;
  --verde: #4cb361;
  --azul: #4c84d9;
  --raio: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--fundo); color: var(--texto);
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: #8fc2ff; }
.pixel { font-family: "Press Start 2P", monospace; letter-spacing: .5px; }
.conteudo { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---------- topo ---------- */
.topo {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 22px; background: rgba(11, 20, 36, .72); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.marca { display: flex; align-items: center; gap: 10px; color: var(--ouro); text-decoration: none; font-weight: 800; }
.marca img { width: 38px; height: 38px; border-radius: 9px; image-rendering: pixelated; }
.marca span { font-size: .78rem; }
.menu { display: flex; align-items: center; gap: 22px; }
.menu a { color: var(--texto); text-decoration: none; font-weight: 700; opacity: .85; }
.menu a:hover { opacity: 1; color: var(--ouro); }
.icone-social { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center;
  border-radius: 9px; background: #1d2b47; }
.icone-social svg { width: 18px; height: 18px; fill: #fff; }
@media (max-width: 760px) { .menu a.opcional { display: none; } .marca span { display: none; } }

/* ---------- abertura ---------- */
.abertura { position: relative; height: min(92vh, 820px); min-height: 560px; overflow: hidden; }
#ilhaViva { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.abertura::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,20,36,.55) 0%, rgba(11,20,36,0) 30%, rgba(11,20,36,0) 65%, var(--fundo) 100%); }
.abertura .texto { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: flex-start; text-align: center; padding: 16vh 20px 40px; }
/* sombra suave atras do texto, para ler bem em cima da ilha */
.abertura .texto::before { content: ""; position: absolute; left: 50%; top: 12vh; width: min(900px, 96vw); height: 46vh;
  transform: translateX(-50%); z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(8,14,28,.62), rgba(8,14,28,0)); }
.titulo {
  margin: 0; color: var(--ouro); font-size: clamp(1.7rem, 5.6vw, 3.6rem); line-height: 1.25;
  text-shadow: 4px 4px 0 var(--ouro-escuro), -2px -2px 0 var(--ouro-escuro), 2px -2px 0 var(--ouro-escuro), -2px 2px 0 var(--ouro-escuro);
}
.slogan { max-width: 640px; margin: 22px auto 30px; font-size: clamp(1.05rem, 2.4vw, 1.3rem); font-weight: 700;
  text-shadow: 0 2px 8px rgba(0,0,0,.8); }
.botoes { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.botao {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 12px;
  font-weight: 800; text-decoration: none; color: #fff; border: 0; cursor: pointer;
  box-shadow: 0 6px 0 rgba(0,0,0,.35); transition: transform .08s, box-shadow .08s;
}
.botao:active { transform: translateY(4px); box-shadow: 0 2px 0 rgba(0,0,0,.35); }
.botao.play { background: #111; border: 2px solid #fff3; }
.botao.play small { display: block; font-size: .68rem; opacity: .8; font-weight: 700; line-height: 1; }
.botao.play b { display: block; font-size: 1.1rem; line-height: 1.2; }
.botao.verde { background: var(--verde); }
.botao.azul { background: var(--azul); }
.botao.cinza { background: #34405b; }
.selo-breve { margin-top: 14px; font-size: .9rem; color: var(--suave); }

/* ---------- secoes ---------- */
section { padding: 80px 0; }
.titulo-secao { text-align: center; margin: 0 0 12px; color: var(--ouro); font-size: clamp(1rem, 2.6vw, 1.4rem); line-height: 1.5;
  text-shadow: 3px 3px 0 var(--ouro-escuro); }
.sub-secao { text-align: center; color: var(--suave); max-width: 640px; margin: 0 auto 44px; }

.grade { display: grid; gap: 20px; }
.grade.tres { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grade.quatro { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.cartao { background: var(--cartao); border: 2px solid var(--borda); border-radius: var(--raio); padding: 22px;
  box-shadow: 0 10px 0 rgba(0,0,0,.25); }
.cartao h3 { margin: 10px 0 6px; font-size: 1.15rem; }
.cartao p { margin: 0; color: var(--suave); }
.emblema { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; font-size: 1.7rem;
  background: #22335a; box-shadow: inset 0 -4px 0 rgba(0,0,0,.25); }

/* classes */
.classe { text-align: center; }
.classe canvas { width: 128px; height: 128px; image-rendering: pixelated; margin: 4px auto 6px; display: block; }
.palco { width: 150px; height: 26px; margin: -18px auto 8px; border-radius: 50%; background: #3c7a2e;
  box-shadow: inset 0 -6px 0 #2a5a20, 0 8px 0 #5b3d22; }
.classe .etiqueta { display: inline-block; margin-top: 10px; padding: 4px 10px; border-radius: 999px;
  background: #0e1a2e; font-size: .85rem; color: var(--ouro); font-weight: 700; }

/* galeria */
.galeria { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.galeria figure { margin: 0; background: var(--cartao); border: 2px solid var(--borda); border-radius: var(--raio);
  overflow: hidden; cursor: zoom-in; transition: transform .15s; }
.galeria figure:hover { transform: translateY(-4px); }
.galeria img { width: 100%; aspect-ratio: 20 / 9; object-fit: cover; }
.galeria figcaption { padding: 10px 14px; font-weight: 700; color: var(--suave); }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.9); display: none;
  align-items: center; justify-content: center; padding: 20px; cursor: zoom-out; }
.lightbox.aberta { display: flex; }
.lightbox img { max-height: 90vh; border-radius: 10px; }

/* novidades */
.post { display: block; text-decoration: none; color: inherit; }
.post .data { font-size: .85rem; color: var(--ouro); font-weight: 800; }
.post h3 { margin: 6px 0; }

/* chamada */
.chamada { text-align: center; background: linear-gradient(135deg, #1b2c52, #14213b); border: 2px solid var(--borda);
  border-radius: 22px; padding: 44px 24px; }

/* paginas de texto */
.pagina { padding: 120px 0 60px; }
.pagina .conteudo { max-width: 820px; }
.pagina h1 { color: var(--ouro); text-shadow: 3px 3px 0 var(--ouro-escuro); font-size: clamp(1.1rem, 3vw, 1.6rem); line-height: 1.5; }
.pagina h2 { color: var(--ouro); margin-top: 34px; font-size: 1.2rem; }
.tabela { width: 100%; border-collapse: collapse; }
.tabela td { padding: 10px 12px; border-bottom: 1px solid var(--borda); }
.tabela td:first-child { color: var(--suave); width: 38%; }

/* rodape */
footer { padding: 40px 0 50px; border-top: 1px solid var(--borda); color: var(--suave); text-align: center; }
footer nav { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
footer a { color: var(--texto); text-decoration: none; font-weight: 700; }

/* aparece ao rolar */
.surgir { opacity: 0; transform: translateY(24px); transition: opacity .6s, transform .6s; }
.surgir.visivel { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .surgir { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
