/* ============================================================
   PARQUE SICÍLIA — Portal do Condomínio
   Identidade: verde (logo 2026) + grafite + off-white
   ============================================================ */

:root{
  --green:      #2e9e3f;
  --green-dark: #1d6e2c;
  --lime:       #8dc63f;
  --slate:      #3d444d;
  --ink:        #22272e;
  --bg:         #f4f6f2;
  --surface:    #ffffff;
  --surface-2:  #eef2ea;
  --text:       #2a3038;
  --muted:      #626a74;
  --line:       #dde3d8;
  --shadow:     0 12px 40px rgba(34,48,38,.12);
  --radius:     20px;
  --font-head:  "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body:  "Manrope", system-ui, sans-serif;
  --grad:       linear-gradient(120deg, var(--green) 0%, var(--lime) 100%);
}
html[data-theme="dark"]{
  --bg:        #14181c;
  --surface:   #1d2329;
  --surface-2: #232a31;
  --text:      #e8ecee;
  --muted:     #9aa4ad;
  --line:      #2e363e;
  --ink:       #e8ecee;
  --shadow:    0 12px 40px rgba(0,0,0,.45);
}

*{ margin:0; padding:0; box-sizing:border-box; }
/* REGRA DE OURO: [hidden] SEMPRE esconde, custe o que custar.
   Sem isso, classes com display (ex.: .admin-bar{display:flex})
   anulam o atributo hidden e vazam elementos restritos. */
[hidden]{ display:none !important; }
html{ scroll-behavior:smooth; }
body{
  font-family:var(--font-body);
  background:var(--bg);
  color:var(--text);
  line-height:1.65;
  overflow-x:hidden;
  transition:background .4s, color .4s;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
h1,h2,h3{ font-family:var(--font-head); line-height:1.15; color:var(--ink); }
.container{ width:min(1180px, 92%); margin-inline:auto; }
.grad-text{
  background:var(--grad);
  -webkit-background-clip:text; background-clip:text;
  -webkit-text-fill-color:transparent; color:transparent;
}

/* ============ ÍCONES LUCIDE ============ */
svg.lucide{ width:1.15em; height:1.15em; vertical-align:-.2em; flex:none; }
.btn svg.lucide{ width:19px; height:19px; }
.info-ico svg.lucide, .cc-ico svg.lucide{ width:23px; height:23px; color:var(--green); }
.hour-ico svg.lucide{ width:25px; height:25px; color:var(--green); }
.rule-ico svg.lucide{ width:36px; height:36px; color:var(--green); }
.amenity svg.lucide{ width:20px; height:20px; color:var(--green); }
.hero-float svg.lucide{ width:17px; height:17px; color:var(--green); }
.hero-chip svg.lucide, .hero-address svg.lucide, .h-hint svg.lucide{ width:16px; height:16px; }
.inline-ico{ width:14px !important; height:14px !important; }

/* ============ PRELOADER ============ */
#preloader{
  position:fixed; inset:0; z-index:1000;
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:22px;
  background:#14181c;
  transition:opacity .6s, visibility .6s;
}
#preloader.done{ opacity:0; visibility:hidden; }
.pre-ring{
  width:110px; height:110px; border-radius:50%;
  display:grid; place-items:center;
  position:relative;
}
.pre-ring::before{
  content:""; position:absolute; inset:-8px; border-radius:50%;
  border:3px solid transparent; border-top-color:var(--lime); border-right-color:var(--green);
  animation:spin 1s linear infinite;
}
.pre-ring img{ width:90px; height:90px; object-fit:contain; animation:pulse 1.6s ease-in-out infinite; }
.pre-text{
  font-family:var(--font-head); font-weight:800; letter-spacing:.45em; font-size:.85rem;
  color:#8dc63f;
}
@keyframes spin{ to{ transform:rotate(360deg); } }
@keyframes pulse{ 0%,100%{ transform:scale(1);} 50%{ transform:scale(1.07);} }

/* ============ SCROLL PROGRESS ============ */
#scroll-progress{
  position:fixed; top:0; left:0; height:4px; width:0;
  background:var(--grad); z-index:900;
  box-shadow:0 0 12px rgba(141,198,63,.7);
}

/* ============ HEADER ============ */
#header{
  position:fixed; top:0; left:0; right:0; z-index:800;
  transition:background .35s, box-shadow .35s, backdrop-filter .35s;
}
#header.scrolled{
  background:color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter:blur(14px);
  box-shadow:0 6px 24px rgba(0,0,0,.10);
}
/* o topo tem 8 links + marca + ações: usa um container próprio, mais largo
   que o das seções, e links compactos SEM quebra de linha */
.nav.container{ width:min(1360px, 96%); }
.nav{ display:flex; align-items:center; justify-content:space-between; padding:14px 0; gap:12px; flex-wrap:nowrap; }
.nav-brand{ display:flex; align-items:center; gap:10px; font-family:var(--font-head); font-size:1.05rem; white-space:nowrap; flex:none; }
.nav-brand img{ width:42px; height:42px; object-fit:contain; filter:drop-shadow(0 2px 6px rgba(0,0,0,.25)); }
.nav-brand b{ color:var(--green); }
.nav-links{ display:flex; gap:2px; list-style:none; flex-wrap:nowrap; }
.nav-links a{
  display:inline-block; white-space:nowrap;
  padding:8px 12px; border-radius:999px; font-weight:500; font-size:.9rem;
  transition:background .25s, color .25s;
}
.nav-links a:hover{ background:color-mix(in srgb, var(--green) 14%, transparent); color:var(--green); }
.nav-links a.active{ background:var(--grad); color:#fff; box-shadow:0 4px 14px rgba(46,158,63,.4); }
.nav-actions{ display:flex; align-items:center; gap:8px; flex:none; white-space:nowrap; }
#theme-toggle{
  width:40px; height:40px; border-radius:50%; border:1px solid var(--line);
  background:var(--surface); color:var(--slate); cursor:pointer; font-size:1rem;
  display:grid; place-items:center;
  transition:transform .25s, background .25s, border-color .25s, color .25s;
}
#theme-toggle svg.lucide{ width:19px; height:19px; }
#theme-toggle:hover{ transform:rotate(20deg) scale(1.08); border-color:var(--green); color:var(--green); }

/* O ícone mostra PARA ONDE o clique leva, não onde está:
   tema claro  -> aparece a LUA (clicar escurece)
   tema escuro -> aparece o SOL (clicar clareia) */
#theme-toggle .sun{ display:none; }
#theme-toggle .moon{ display:block; }
html[data-theme="dark"] #theme-toggle .moon{ display:none; }
html[data-theme="dark"] #theme-toggle .sun{ display:block; }

/* no escuro o botão ganha um âmbar quente: o sol destaca em vez de sumir
   no fundo (antes era surface escuro sobre header escuro) */
html[data-theme="dark"] #theme-toggle{
  background:rgba(255,201,77,.14); border-color:rgba(255,201,77,.45); color:#ffc94d;
}
html[data-theme="dark"] #theme-toggle:hover{
  background:rgba(255,201,77,.26); border-color:#ffc94d; color:#ffd97a;
}
#nav-burger{ display:none; flex-direction:column; gap:5px; background:none; border:0; cursor:pointer; padding:8px; }
#nav-burger span{ width:24px; height:2.5px; background:var(--text); border-radius:2px; transition:.3s; }

/* ============ BOTÕES ============ */
.btn{
  display:inline-flex; align-items:center; gap:10px;
  padding:14px 26px; border-radius:999px; font-weight:600; font-size:.98rem;
  border:0; cursor:pointer; transition:transform .25s, box-shadow .25s, background .25s;
  font-family:var(--font-head);
}
.btn .arrow{ transition:transform .25s; }
.btn:hover .arrow{ transform:translateX(4px); }
.btn-primary{ background:var(--grad); color:#fff; box-shadow:0 8px 24px rgba(46,158,63,.45); }
.btn-primary:hover{ transform:translateY(-3px); box-shadow:0 14px 32px rgba(46,158,63,.55); }
.btn-ghost{
  background:color-mix(in srgb, var(--surface) 55%, transparent);
  border:1.5px solid var(--line); color:var(--text); backdrop-filter:blur(6px);
}
.btn-ghost:hover{ transform:translateY(-3px); border-color:var(--green); color:var(--green); }
.btn-outline{ border:1.5px solid var(--green); color:var(--green); background:transparent; margin-top:18px; }
.btn-outline:hover{ background:var(--green); color:#fff; transform:translateY(-2px); }
.btn-game-mini{
  background:var(--slate); color:#fff; padding:9px 16px; border-radius:999px;
  font-weight:600; font-size:.9rem; display:inline-flex; gap:6px; align-items:center;
  line-height:1; white-space:nowrap;
  transition:transform .25s, background .25s;
}
.btn-game-mini:hover{ transform:translateY(-2px); background:var(--green); }

/* ============ HERO ============ */
.hero{
  min-height:100svh; position:relative; display:flex; align-items:center;
  padding:130px 0 90px; overflow:hidden;
}
.hero-bg{ position:absolute; inset:0; z-index:-1; }
.blob{ position:absolute; border-radius:50%; filter:blur(90px); opacity:.5; animation:drift 14s ease-in-out infinite alternate; }
.blob-1{ width:520px; height:520px; background:var(--green); top:-140px; right:-100px; }
.blob-2{ width:420px; height:420px; background:var(--lime); bottom:-160px; left:-120px; animation-delay:-5s; }
.blob-3{ width:280px; height:280px; background:#3d8b4f; top:40%; left:38%; opacity:.28; animation-delay:-9s; }
@keyframes drift{
  from{ transform:translate(0,0) scale(1); }
  to  { transform:translate(50px,-40px) scale(1.12); }
}
.hero-grid{
  position:absolute; inset:0;
  background-image:linear-gradient(var(--line) 1px, transparent 1px),
                   linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size:56px 56px; opacity:.35;
  mask-image:radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%);
  -webkit-mask-image:radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%);
}
#leaves-canvas{ position:absolute; inset:0; width:100%; height:100%; }

/* hero usa um container mais largo que as seções, para a foto 16:9 caber
   ~30% mais larga sem espremer o texto */
.hero .container{ width:min(1320px, 94%); }
.hero-inner{ display:grid; grid-template-columns:.75fr 1.25fr; gap:44px; align-items:center; }
.hero-chip{
  display:inline-block; padding:8px 18px; border-radius:999px; font-weight:600; font-size:.88rem;
  background:color-mix(in srgb, var(--green) 14%, transparent);
  color:var(--green-dark); border:1px solid color-mix(in srgb, var(--green) 35%, transparent);
  margin-bottom:22px;
}
html[data-theme="dark"] .hero-chip{ color:var(--lime); }
.hero h1{ font-size:clamp(2.6rem, 5.6vw, 4.3rem); font-weight:800; letter-spacing:-.02em; }
.hero-sub{ margin:22px 0 30px; font-size:1.1rem; color:var(--muted); max-width:520px; }
.hero-cta{ display:flex; gap:14px; flex-wrap:wrap; }
.hero-address{
  margin-top:30px; font-size:.9rem; color:var(--muted);
  padding:10px 16px; border-left:3px solid var(--lime);
  background:color-mix(in srgb, var(--surface) 65%, transparent); border-radius:0 12px 12px 0;
  display:inline-block;
}

.hero-visual{ position:relative; }
.hero-card{
  border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow);
  position:relative; border:1px solid var(--line);
}
/* imagem principal fixa, sem animação de tilt, e maior
   ("> img" = só a FOTO; o logo do selo tem regra própria) */
.hero-card-static{ transform:none !important; }
/* deitada 16:9: a coluna 30% mais larga define o tamanho e a altura
   acompanha a proporção (widescreen) */
.hero-card > img{ width:100%; aspect-ratio:16/9; height:auto; object-fit:cover; }
.hero-card-badge{
  position:absolute; left:16px; bottom:16px; display:flex; align-items:center; gap:12px;
  background:rgba(20,24,28,.78); backdrop-filter:blur(8px);
  color:#fff; padding:10px 18px 10px 12px; border-radius:14px;
}
.hero-card-badge img{ width:36px; height:36px; }
.hero-card-badge small{ display:block; opacity:.75; font-size:.75rem; }
.hero-float{
  position:absolute; padding:9px 16px; border-radius:999px; font-weight:600; font-size:.85rem;
  background:var(--surface); box-shadow:var(--shadow); border:1px solid var(--line);
  animation:floaty 4.5s ease-in-out infinite;
  display:flex; align-items:center; gap:8px;
}
.f1{ top:-16px; left:-8px; }
.f2{ top:32%; right:-22px; animation-delay:-1.2s; }
.f3{ bottom:22%; left:-30px; animation-delay:-2.4s; }
.f4{ bottom:-14px; right:14%; animation-delay:-3.4s; }
@keyframes floaty{ 0%,100%{ transform:translateY(0);} 50%{ transform:translateY(-12px);} }

.hero-scroll-hint{
  position:absolute; bottom:26px; left:50%; transform:translateX(-50%);
  width:26px; height:44px; border:2px solid var(--muted); border-radius:16px;
}
.hero-scroll-hint span{
  position:absolute; top:8px; left:50%; width:4px; height:8px; margin-left:-2px;
  background:var(--green); border-radius:4px; animation:wheel 1.6s ease-in-out infinite;
}
@keyframes wheel{ 0%{ opacity:1; transform:translateY(0);} 70%{ opacity:0; transform:translateY(16px);} 100%{ opacity:0;} }

/* ============ MARQUEE ============ */
/* faixa reta, em loop infinito contínuo: o texto some à esquerda e
   reaparece por trás, sem salto (o trilho tem 2 metades idênticas e
   desliza exatamente 50% antes de recomeçar) */
.marquee{
  background:var(--slate); color:#c9d6c2; overflow:hidden; padding:14px 0;
}
.marquee-track{
  display:flex; width:max-content; white-space:nowrap;
  animation:marquee 78s linear infinite; will-change:transform;
}
.marquee-track span{
  flex:none; font-family:var(--font-head); font-weight:700;
  letter-spacing:.2em; font-size:.9rem;
}
@keyframes marquee{ to{ transform:translateX(-50%); } }

/* ============ SEÇÕES ============ */
.section{ padding:110px 0; position:relative; }
.section-alt{ background:var(--surface-2); }
.section-head{ max-width:640px; margin-bottom:56px; }
.section-head h2{ font-size:clamp(1.9rem, 3.6vw, 2.8rem); font-weight:800; margin:10px 0 14px; }
.section-head p{ color:var(--muted); font-size:1.03rem; }
.kicker{
  font-family:var(--font-head); font-weight:700; letter-spacing:.28em; text-transform:uppercase;
  font-size:.74rem; color:var(--green);
}
.kicker-light{ color:var(--lime); }

/* ============ O CONDOMÍNIO ============ */
.condo-grid{ display:grid; grid-template-columns:.9fr 1.1fr; gap:36px; align-items:start; }
.condo-info{
  background:var(--surface); border:1px solid var(--line); border-radius:var(--radius);
  padding:34px; box-shadow:var(--shadow);
}
.info-row{ display:flex; gap:16px; padding:16px 0; border-bottom:1px dashed var(--line); }
.info-row:last-of-type{ border-bottom:0; }
.info-ico{
  width:46px; height:46px; flex:none; border-radius:14px; display:grid; place-items:center;
  font-size:1.3rem; background:color-mix(in srgb, var(--green) 12%, transparent);
}
.info-row b{ display:block; font-family:var(--font-head); }
.info-row small{ color:var(--muted); font-size:.9rem; line-height:1.5; display:block; margin-top:2px; }

.condo-gallery{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.gal-card{
  border-radius:var(--radius); overflow:hidden; position:relative; cursor:zoom-in;
  border:1px solid var(--line); box-shadow:var(--shadow); transform-style:preserve-3d;
}
.gal-card:first-child{ grid-column:1 / -1; }
.gal-card img{ width:100%; height:230px; object-fit:cover; transition:transform .6s; }
.gal-card:first-child img{ height:280px; }
.gal-card:hover img{ transform:scale(1.06); }
.gal-card figcaption{
  position:absolute; left:0; right:0; bottom:0; padding:26px 18px 12px; color:#fff;
  font-weight:600; font-size:.92rem;
  background:linear-gradient(transparent, rgba(15,20,15,.82));
}

.amenities{ display:flex; flex-wrap:wrap; gap:14px; margin-top:44px; }
.amenity{
  display:flex; align-items:center; gap:10px; padding:12px 22px; border-radius:999px;
  background:var(--surface); border:1px solid var(--line); font-weight:600; font-size:.94rem;
  transition:transform .25s, border-color .25s;
}
.amenity span{ font-size:1.2rem; }
.amenity:hover{ transform:translateY(-4px) scale(1.03); border-color:var(--green); }

/* ============ REGRAS — SCROLL LATERAL ============ */
.h-section{ position:relative; }
.h-sticky{
  position:sticky; top:0; min-height:100svh; overflow:hidden;
  display:flex; flex-direction:column; justify-content:center; gap:34px;
  background:
    radial-gradient(700px 380px at 85% 10%, color-mix(in srgb, var(--lime) 16%, transparent), transparent),
    var(--bg);
  padding:90px 0 40px;
}
.h-head h2{ font-size:clamp(1.9rem, 3.6vw, 2.8rem); font-weight:800; margin:10px 0 8px; }
.h-hint{ color:var(--muted); font-size:.95rem; }
.h-track{
  display:flex; gap:26px; padding-inline:max(4vw, calc((100vw - 1180px)/2));
  will-change:transform; width:max-content;
}
.rule-card{
  width:min(390px, 82vw); flex:none; position:relative;
  background:var(--surface); border:1px solid var(--line); border-radius:var(--radius);
  padding:34px 30px; box-shadow:var(--shadow);
  transition:border-color .3s, transform .3s;
}
.rule-card:hover{ border-color:var(--green); transform:translateY(-6px); }
.rule-num{
  position:absolute; top:18px; right:22px; font-family:var(--font-head); font-weight:800;
  font-size:2.6rem; color:color-mix(in srgb, var(--green) 22%, transparent);
}
.rule-ico{ font-size:2.2rem; margin-bottom:16px; }
.rule-card h3{ font-size:1.25rem; margin-bottom:10px; }
.rule-card p{ color:var(--muted); font-size:.96rem; }
.rule-card b{ color:var(--text); }
.rule-card-end{ background:var(--grad); border:0; }
.rule-card-end h3, .rule-card-end p, .rule-card-end b{ color:#fff; }
.rule-card-end p{ opacity:.92; margin-bottom:20px; }
.rule-card-end .btn{ background:#fff; color:var(--green-dark); box-shadow:0 8px 22px rgba(0,0,0,.2); }
.h-progress{
  width:min(420px, 70%); height:5px; margin:0 auto; border-radius:5px;
  background:var(--line); overflow:hidden;
}
.h-progress i{ display:block; height:100%; width:0; background:var(--grad); border-radius:5px; transition:width .1s linear; }
.h-spacer-active .h-hint{ animation:hintPulse 2s ease-in-out infinite; }
@keyframes hintPulse{ 0%,100%{ opacity:.65;} 50%{ opacity:1;} }

/* ============ HORÁRIOS ============ */
.hours-grid{ display:grid; grid-template-columns:repeat(3, 1fr); gap:22px; }
.hour-card{
  background:var(--surface); border:1px solid var(--line); border-radius:var(--radius);
  padding:28px 26px; box-shadow:var(--shadow); transition:transform .3s, border-color .3s;
}
.hour-card:hover{ transform:translateY(-8px); border-color:var(--green); }
.hour-top{ display:flex; justify-content:space-between; align-items:center; margin-bottom:16px; }
.hour-ico{
  width:52px; height:52px; border-radius:16px; display:grid; place-items:center; font-size:1.5rem;
  background:color-mix(in srgb, var(--green) 12%, transparent);
}
.badge-live{
  font-size:.74rem; font-weight:700; letter-spacing:.06em; padding:6px 12px; border-radius:999px;
  background:var(--surface-2); color:var(--muted);
}
.badge-live.open{ background:#e2f6e5; color:#1d6e2c; }
.badge-live.open::before{
  content:"●"; margin-right:6px; color:#2e9e3f; animation:blink 1.4s ease-in-out infinite;
}
.badge-live.closed{ background:#fdeaea; color:#b3413e; }
html[data-theme="dark"] .badge-live.open{ background:#1b3a22; color:#8dc63f; }
html[data-theme="dark"] .badge-live.closed{ background:#3a2222; color:#e88b88; }
@keyframes blink{ 50%{ opacity:.25; } }
.hour-card h3{ font-size:1.15rem; margin-bottom:10px; }
.hour-card ul{ list-style:none; color:var(--muted); font-size:.92rem; display:grid; gap:6px; }

/* ============ CONTATOS ============ */
.contact-tools{ display:grid; gap:18px; margin-bottom:38px; }
.search-wrap{ position:relative; }
.search-wrap > svg.lucide{
  position:absolute; left:20px; top:50%; transform:translateY(-50%);
  width:19px; height:19px; color:var(--muted); pointer-events:none;
}
.search-wrap #contact-search{ padding-left:52px; }
#contact-search{
  width:100%; padding:16px 22px; border-radius:16px; font-size:1rem;
  border:1.5px solid var(--line); background:var(--surface); color:var(--text);
  font-family:var(--font-body); transition:border-color .25s, box-shadow .25s;
}
#contact-search:focus{
  outline:none; border-color:var(--green);
  box-shadow:0 0 0 4px color-mix(in srgb, var(--green) 18%, transparent);
}
.contact-filters{ display:flex; gap:10px; flex-wrap:wrap; }
.chip{
  padding:9px 20px; border-radius:999px; border:1.5px solid var(--line); cursor:pointer;
  background:var(--surface); color:var(--muted); font-weight:600; font-size:.88rem;
  font-family:var(--font-head); transition:all .25s;
}
.chip:hover{ border-color:var(--green); color:var(--green); }
.chip.active{ background:var(--grad); border-color:transparent; color:#fff; box-shadow:0 4px 14px rgba(46,158,63,.35); }

.contact-grid{ display:grid; grid-template-columns:repeat(3, 1fr); gap:22px; }
.contact-card{
  background:var(--surface); border:1px solid var(--line); border-radius:var(--radius);
  padding:26px 24px; box-shadow:var(--shadow); transition:transform .3s, border-color .3s, opacity .3s;
}
.contact-card:hover{ transform:translateY(-6px); border-color:var(--green); }
.contact-card.hidden{ display:none; }
.cc-ico{
  width:50px; height:50px; border-radius:15px; display:grid; place-items:center; font-size:1.4rem;
  background:color-mix(in srgb, var(--green) 12%, transparent); margin-bottom:14px;
}
.contact-card h3{ font-size:1.06rem; margin-bottom:12px; }
.contact-card h3 small{ display:block; font-weight:500; color:var(--muted); font-size:.78rem; margin-top:2px; }
.cc-line{
  display:flex; align-items:center; gap:8px; flex-wrap:wrap;
  font-size:.93rem; padding:5px 0; color:var(--muted);
}
.cc-line a{ color:var(--green); font-weight:600; transition:color .2s; word-break:break-all; }
.cc-line a:hover{ color:var(--green-dark); text-decoration:underline; }
html[data-theme="dark"] .cc-line a:hover{ color:var(--lime); }
.copy{
  border:0; background:var(--surface-2); border-radius:8px; padding:4px 8px; cursor:pointer;
  font-size:.8rem; transition:transform .2s, background .2s;
}
.copy:hover{ transform:scale(1.15); background:color-mix(in srgb, var(--green) 20%, transparent); }
.no-results{ text-align:center; color:var(--muted); padding:40px 0; font-size:1.05rem; }

/* ============ GAME ============ */
.game-section{
  background:#101418; color:#dfe7ea; overflow:hidden; position:relative;
}
.game-bg{ position:absolute; inset:0; }
.game-stars{
  position:absolute; inset:0;
  background-image:
    radial-gradient(2px 2px at 12% 30%, rgba(141,198,63,.8), transparent),
    radial-gradient(1.5px 1.5px at 70% 15%, rgba(255,255,255,.5), transparent),
    radial-gradient(2px 2px at 85% 65%, rgba(141,198,63,.6), transparent),
    radial-gradient(1.5px 1.5px at 35% 80%, rgba(255,255,255,.4), transparent),
    radial-gradient(2px 2px at 55% 45%, rgba(255,255,255,.35), transparent);
  animation:starDrift 12s linear infinite alternate;
}
@keyframes starDrift{ to{ transform:translateY(-24px); } }
.game-inner{ position:relative; display:grid; grid-template-columns:1.05fr .95fr; gap:56px; align-items:center; }
.game-copy h2{ color:#fff; font-size:clamp(1.9rem, 3.6vw, 2.9rem); font-weight:800; margin:12px 0 18px; }
.grad-text-game{
  background:linear-gradient(120deg, #8dc63f, #38e07b);
  -webkit-background-clip:text; background-clip:text;
  -webkit-text-fill-color:transparent; color:transparent;
}
.game-copy p{ color:#9fb0b8; max-width:480px; }
.game-controls{ list-style:none; display:flex; flex-wrap:wrap; gap:12px 22px; margin:26px 0 30px; color:#9fb0b8; font-size:.9rem; }
.game-controls li{ display:flex; align-items:center; gap:7px; }
kbd{
  background:#1d252c; border:1px solid #35414b; border-bottom-width:3px; border-radius:7px;
  padding:3px 9px; font-family:var(--font-head); font-size:.78rem; color:#cfe3b8;
}
.btn-game{
  background:linear-gradient(120deg, #2e9e3f, #38e07b); color:#08210f;
  box-shadow:0 10px 34px rgba(56,224,123,.35); font-size:1.05rem; padding:16px 32px;
}
.btn-game:hover{ transform:translateY(-3px) scale(1.02); box-shadow:0 16px 44px rgba(56,224,123,.5); }
.game-note{ display:block; margin-top:16px; color:#67757d; font-size:.82rem; }

.game-frame{
  border-radius:18px; overflow:hidden; border:1px solid #2b333b;
  box-shadow:0 30px 80px rgba(0,0,0,.55); transform-style:preserve-3d;
  background:#151b21;
}
.gf-top{
  display:flex; align-items:center; gap:7px; padding:11px 15px; background:#1a2128;
  font-size:.78rem; color:#8a97a0; font-family:var(--font-head);
}
.gf-top i{ width:11px; height:11px; border-radius:50%; background:#3c4750; }
.gf-top i:nth-child(1){ background:#e0655f; } .gf-top i:nth-child(2){ background:#e5c04b; } .gf-top i:nth-child(3){ background:#57bb62; }
.gf-top span{ margin-left:8px; }
.gf-screen{
  position:relative; height:330px; overflow:hidden;
  background:linear-gradient(#0e2c4e 0%, #1c5a7a 45%, #2e9e3f00 72%), linear-gradient(#123, #1a5c2c 75%, #17471f);
}
.gf-sun{
  position:absolute; top:26px; right:40px; width:54px; height:54px; border-radius:50%;
  background:radial-gradient(circle at 35% 35%, #fff8d8, #ffd76e);
  box-shadow:0 0 42px rgba(255,215,110,.75); animation:floaty 6s ease-in-out infinite;
}
.gf-building{
  position:absolute; bottom:84px; background:linear-gradient(#e8dcc8, #cbb99b);
  border-radius:4px 4px 0 0;
  background-image:
    linear-gradient(#e8dcc8, #cbb99b),
    repeating-linear-gradient(0deg, transparent 0 18px, rgba(40,60,80,.55) 18px 26px);
  background-blend-mode:normal;
}
.gf-building::before{
  content:""; position:absolute; inset:10px 8px;
  background:repeating-linear-gradient(0deg, rgba(52,80,104,.85) 0 12px, transparent 12px 26px),
             repeating-linear-gradient(90deg, transparent 0 8px, rgba(232,220,200,1) 8px 14px);
  opacity:.8;
}
.b1{ left:8%; width:110px; height:170px; }
.b2{ left:38%; width:130px; height:200px; }
.b3{ right:9%; width:110px; height:150px; }
.gf-tree{
  position:absolute; bottom:80px; width:16px; height:34px;
  background:linear-gradient(#5b3d24, #4a2f1a); border-radius:3px;
}
.gf-tree::before{
  content:""; position:absolute; bottom:22px; left:50%; transform:translateX(-50%);
  width:52px; height:52px; border-radius:50%;
  background:radial-gradient(circle at 35% 30%, #8dc63f, #2e7c37);
}
.t1{ left:28%; } .t2{ right:30%; }
.gf-ground{
  position:absolute; bottom:0; width:100%; height:86px;
  background:linear-gradient(#2f9e40, #1e6e2c);
}
.gf-ground::before{
  content:""; position:absolute; top:34px; left:0; right:0; height:26px;
  background:#3a4149;
  border-top:3px dashed rgba(255,255,255,.5);
}
.gf-player{
  position:absolute; bottom:96px; left:12%; width:18px; height:30px; border-radius:6px 6px 3px 3px;
  background:linear-gradient(#f0c27b 30%, #2e9e3f 30%);
  animation:walk 7s linear infinite;
}
@keyframes walk{
  0%{ left:8%; transform:scaleX(1);} 46%{ left:78%; transform:scaleX(1);}
  50%{ left:78%; transform:scaleX(-1);} 96%{ left:8%; transform:scaleX(-1);} 100%{ left:8%; transform:scaleX(1);}
}
.gf-hud{
  position:absolute; top:14px; left:16px; font-family:var(--font-head); font-weight:800;
  font-size:.72rem; letter-spacing:.2em; color:#c8f5a0;
  background:rgba(10,20,12,.55); padding:6px 12px; border-radius:8px;
  animation:blink 1.6s step-end infinite;
}

/* ============ FOOTER ============ */
.footer{ background:var(--slate); color:#cfd6cc; }
.footer-grid{
  display:grid; grid-template-columns:1.2fr 1fr 1fr 1.2fr; gap:34px; padding:64px 0 40px;
}
.f-brand{ display:flex; gap:14px; align-items:center; }
.f-brand img{ width:56px; height:56px; }
.f-brand b{ font-family:var(--font-head); color:#fff; display:block; }
.f-brand small{ opacity:.7; }
.f-col b{ font-family:var(--font-head); color:#fff; display:block; margin-bottom:10px; }
.f-col p{ font-size:.92rem; opacity:.85; }
.f-col a{ color:#a9d977; }
.f-col a:hover{ text-decoration:underline; }
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.12); padding:20px 0; text-align:center;
  font-size:.85rem; opacity:.75;
}

/* ============ EXTRAS ============ */
#back-top{
  position:fixed; right:26px; bottom:26px; width:50px; height:50px; border-radius:50%;
  border:0; background:var(--grad); color:#fff; font-size:1.2rem; cursor:pointer; z-index:700;
  box-shadow:0 10px 26px rgba(46,158,63,.5);
  opacity:0; visibility:hidden; transform:translateY(16px);
  transition:opacity .3s, transform .3s, visibility .3s;
}
#back-top.show{ opacity:1; visibility:visible; transform:translateY(0); }
#back-top:hover{ transform:translateY(-4px); }

#toast{
  position:fixed; bottom:32px; left:50%; transform:translate(-50%, 20px); z-index:950;
  background:var(--ink); color:var(--bg); padding:13px 26px; border-radius:999px;
  font-weight:600; font-size:.92rem; opacity:0; visibility:hidden; pointer-events:none;
  transition:opacity .3s, transform .3s, visibility .3s;
  box-shadow:0 12px 34px rgba(0,0,0,.35);
}
#toast.show{ opacity:1; visibility:visible; transform:translate(-50%, 0); }
html[data-theme="dark"] #toast{ background:var(--lime); color:#14240c; }

#lightbox{
  position:fixed; inset:0; z-index:960; background:rgba(10,14,10,.92);
  display:grid; place-items:center; padding:4vw; backdrop-filter:blur(6px);
}
#lightbox[hidden]{ display:none; }
#lb-img{
  max-width:100%; max-height:90svh; border-radius:16px; box-shadow:0 30px 90px rgba(0,0,0,.6);
  transform:translate3d(0,0,0) scale(1); transform-origin:center center;
  transition:opacity .26s ease, transform .18s cubic-bezier(.22,.61,.36,1);
  touch-action:none; user-select:none; -webkit-user-drag:none;
}
/* IMPORTANTE: nada de will-change:transform fixo aqui. Ele promove a imagem a
   uma camada de GPU rasterizada UMA vez no tamanho exibido (~900px) — o zoom
   passava a esticar essa textura borrada em vez de re-renderizar do arquivo
   original. Sem ele, o navegador re-rasteriza a cada zoom e fica nítido.
   Durante o arrasto/pinça ligamos a camada só para o gesto ficar fluido,
   e ao soltar ela sai e a imagem volta a ser redesenhada em alta. */
#lb-img.dragging{ transition:opacity .26s ease; will-change:transform; }
#lb-close{
  position:absolute; top:22px; right:26px; width:46px; height:46px; border-radius:50%;
  border:0; background:rgba(255,255,255,.14); color:#fff; font-size:1.2rem; cursor:pointer;
  transition:background .25s, transform .25s;
}
#lb-close:hover{ background:var(--green); transform:rotate(90deg); }
#lb-cap{
  position:absolute; left:50%; top:24px; transform:translateX(-50%);
  max-width:70vw; text-align:center; color:#fff; font-family:var(--font-head);
  font-weight:600; font-size:.92rem; letter-spacing:.02em;
  padding:7px 16px; border-radius:999px; background:rgba(10,14,10,.55);
  backdrop-filter:blur(6px); pointer-events:none; z-index:2;
}
#lb-cap:empty{ display:none; }

/* ============ LOGIN ============ */
.btn-login{
  display:inline-flex; align-items:center; gap:7px; line-height:1;
  padding:9px 16px; border-radius:999px; border:1.5px solid var(--line);
  background:var(--surface); color:var(--text); font-weight:600; font-size:.9rem;
  font-family:var(--font-head); cursor:pointer; transition:all .25s;
  white-space:nowrap;
}
.btn-login svg.lucide{ width:16px; height:16px; }
.btn-login:hover{ border-color:var(--green); color:var(--green); transform:translateY(-2px); }
.btn-login.logged{ background:var(--grad); border-color:transparent; color:#fff; }

/* ============ MODAIS ============ */
.modal{
  position:fixed; inset:0; z-index:940; background:rgba(12,16,12,.72);
  display:grid; place-items:center; padding:20px; backdrop-filter:blur(8px);
  overflow-y:auto;
}
.modal[hidden]{ display:none; }
.modal-box{
  background:var(--surface); border:1px solid var(--line); border-radius:24px;
  padding:38px 34px; width:min(440px, 100%); position:relative;
  box-shadow:0 40px 100px rgba(0,0,0,.4);
  animation:modalIn .35s cubic-bezier(.22,.9,.3,1.2);
  margin:auto;
}
@keyframes modalIn{ from{ opacity:0; transform:translateY(26px) scale(.97);} to{ opacity:1; transform:none;} }
.modal-close{
  position:absolute; top:16px; right:16px; width:38px; height:38px; border-radius:50%;
  border:0; background:var(--surface-2); color:var(--muted); cursor:pointer;
  display:grid; place-items:center; transition:all .25s;
}
.modal-close:hover{ background:var(--green); color:#fff; transform:rotate(90deg); }
.modal-close svg.lucide{ width:17px; height:17px; }
.modal-head{ text-align:center; margin-bottom:26px; }
.modal-ico{
  width:60px; height:60px; margin:0 auto 14px; border-radius:18px;
  display:grid; place-items:center;
  background:color-mix(in srgb, var(--green) 14%, transparent);
}
.modal-ico svg.lucide{ width:28px; height:28px; color:var(--green); }
.modal-head h3{ font-size:1.3rem; }
.modal-head p{ color:var(--muted); font-size:.9rem; margin-top:6px; }

.field{ display:block; margin-bottom:16px; }
.field > span, .field-label{
  display:block; font-weight:700; font-size:.82rem; margin-bottom:7px;
  font-family:var(--font-head); color:var(--text);
}
.field-label{ margin-top:20px; }
.field-wrap{ position:relative; }
.field-wrap svg.lucide{
  position:absolute; left:15px; top:50%; transform:translateY(-50%);
  width:17px; height:17px; color:var(--muted); pointer-events:none;
}
.field-wrap input{
  width:100%; padding:13px 16px 13px 44px; border-radius:13px; font-size:.96rem;
  border:1.5px solid var(--line); background:var(--bg); color:var(--text);
  font-family:var(--font-body); transition:border-color .25s, box-shadow .25s;
}
.field-wrap input:focus{
  outline:none; border-color:var(--green);
  box-shadow:0 0 0 4px color-mix(in srgb, var(--green) 16%, transparent);
}
.login-error{ color:#c0433f; font-size:.86rem; font-weight:600; margin:4px 0 12px; }
.keep-row{
  display:flex; align-items:center; gap:9px; margin:2px 0 16px;
  font-size:.88rem; color:var(--muted); cursor:pointer; user-select:none;
}
.keep-row input[type="checkbox"]{
  width:17px; height:17px; accent-color:var(--green); cursor:pointer; flex:none;
}
.keep-row:hover{ color:var(--text); }
/* campo isca anti-bot: invisível para humanos, bots preenchem e se entregam */
.hp-field{
  position:absolute !important; left:-9999px !important; width:1px; height:1px;
  opacity:0; pointer-events:none;
}
.btn-full{ width:100%; justify-content:center; }

/* ============ QUADRO DE AVISOS ============ */
.board-section{ padding-top:150px; min-height:70svh; }
.admin-bar{
  display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap;
  background:color-mix(in srgb, var(--green) 9%, var(--surface));
  border:1.5px dashed var(--green); border-radius:var(--radius);
  padding:18px 24px; margin-bottom:34px;
}
.admin-badge{
  display:flex; align-items:center; gap:9px; font-weight:700; font-family:var(--font-head);
  color:var(--green-dark); font-size:.95rem;
}
html[data-theme="dark"] .admin-badge{ color:var(--lime); }
.admin-badge svg.lucide{ width:19px; height:19px; }

.posts-grid{ display:grid; gap:26px; }
.post-card{
  background:var(--surface); border:1px solid var(--line); border-radius:var(--radius);
  padding:32px 34px; box-shadow:var(--shadow); position:relative;
  animation:modalIn .4s ease both;
}
.post-top{ display:flex; justify-content:space-between; gap:16px; align-items:flex-start; flex-wrap:wrap; }
.post-meta{
  display:inline-flex; align-items:center; gap:7px; font-size:.8rem; color:var(--muted);
  font-weight:600; margin-bottom:10px;
}
.post-meta svg.lucide{ width:14px; height:14px; }
.post-card h3{ font-size:1.45rem; margin-bottom:14px; }
.post-body{ color:var(--text); font-size:.98rem; overflow-wrap:break-word; }
.post-body ul, .post-body ol{ padding-left:24px; }
.post-images{ display:flex; flex-wrap:wrap; gap:14px; margin-top:20px; }
.post-images img{
  border-radius:14px; border:1px solid var(--line); cursor:zoom-in;
  transition:transform .3s, box-shadow .3s; height:auto;
}
.post-images img:hover{ transform:scale(1.02); box-shadow:var(--shadow); }
.post-admin-actions{ display:flex; gap:8px; }
.icon-btn{
  width:38px; height:38px; border-radius:11px; border:1.5px solid var(--line);
  background:var(--surface); color:var(--muted); cursor:pointer;
  display:grid; place-items:center; transition:all .25s;
}
.icon-btn svg.lucide{ width:16px; height:16px; }
.icon-btn:hover{ border-color:var(--green); color:var(--green); transform:translateY(-2px); }
.icon-btn.danger:hover{ border-color:#c0433f; color:#c0433f; }
.post-pin{
  position:absolute; top:-11px; left:34px; background:var(--grad); color:#fff;
  font-size:.7rem; font-weight:800; letter-spacing:.1em; font-family:var(--font-head);
  padding:5px 14px; border-radius:999px; box-shadow:0 6px 16px rgba(46,158,63,.4);
}

/* ============ EDITOR (RTE) ============ */
.editor-box{ width:min(760px, 100%); }
.rte{ border:1.5px solid var(--line); border-radius:14px; overflow:hidden; background:var(--bg); }
.rte-toolbar{
  display:flex; flex-wrap:wrap; align-items:center; gap:4px;
  padding:9px 10px; background:var(--surface-2); border-bottom:1.5px solid var(--line);
}
.rte-toolbar button{
  width:34px; height:34px; border-radius:9px; border:0; background:transparent;
  color:var(--text); cursor:pointer; display:grid; place-items:center; transition:background .2s;
}
.rte-toolbar button:hover{ background:color-mix(in srgb, var(--green) 16%, transparent); color:var(--green); }
.rte-toolbar button svg.lucide{ width:16px; height:16px; }
.rte-toolbar select{
  height:34px; border-radius:9px; border:1.5px solid var(--line); background:var(--surface);
  color:var(--text); font-family:var(--font-body); font-size:.85rem; padding:0 8px; cursor:pointer;
}
.rte-sep{ width:1.5px; height:22px; background:var(--line); margin:0 5px; }
.rte-color{
  width:34px; height:34px; border-radius:9px; display:grid; place-items:center;
  cursor:pointer; position:relative; color:var(--text); transition:background .2s;
}
.rte-color:hover{ background:color-mix(in srgb, var(--green) 16%, transparent); }
.rte-color svg.lucide{ width:16px; height:16px; }
.rte-color input[type="color"]{
  position:absolute; inset:0; opacity:0; cursor:pointer; width:100%; height:100%;
}
.rte-area{
  min-height:190px; max-height:380px; overflow-y:auto; padding:18px 20px;
  font-size:.97rem; color:var(--text); outline:none;
}
.rte-area:empty::before{ content:attr(data-placeholder); color:var(--muted); }
.rte-area:focus{ background:color-mix(in srgb, var(--green) 3%, var(--bg)); }

/* anexos */
.attach-drop{
  display:flex; align-items:center; gap:14px; padding:18px 20px; cursor:pointer;
  border:2px dashed var(--line); border-radius:14px; color:var(--muted);
  transition:border-color .25s, background .25s; font-size:.92rem;
}
.attach-drop:hover, .attach-drop.drag{
  border-color:var(--green);
  background:color-mix(in srgb, var(--green) 7%, transparent);
}
.attach-drop svg.lucide{ width:26px; height:26px; color:var(--green); }
.attach-list{ display:grid; gap:14px; margin-top:14px; }
.attach-item{
  display:grid; grid-template-columns:88px 1fr auto; gap:16px; align-items:center;
  background:var(--surface-2); border:1px solid var(--line); border-radius:14px; padding:12px 14px;
}
.attach-item img{ width:88px; height:64px; object-fit:cover; border-radius:9px; }
.attach-size{ display:flex; flex-direction:column; gap:6px; }
.attach-size label{ font-size:.78rem; font-weight:700; color:var(--muted); font-family:var(--font-head); }
.attach-size input[type="range"]{ width:100%; accent-color:var(--green); }
.editor-actions{ display:flex; justify-content:flex-end; gap:12px; margin-top:26px; flex-wrap:wrap; }

/* copiar (contatos) */
.copy svg.lucide{ width:13px; height:13px; }

/* ============ DOCUMENTOS ============ */
.docs-grid{ display:grid; gap:16px; }
.doc-card{
  display:grid; grid-template-columns:auto 1fr auto; gap:18px; align-items:center;
  background:var(--surface); border:1px solid var(--line); border-radius:var(--radius);
  padding:20px 24px; box-shadow:var(--shadow);
  transition:transform .25s, border-color .25s;
  animation:modalIn .4s ease both;
}
.doc-card:hover{ transform:translateY(-3px); border-color:var(--green); }
.doc-ico{
  width:54px; height:54px; border-radius:15px; display:grid; place-items:center; flex:none;
}
.doc-ico svg.lucide{ width:26px; height:26px; }
.ext-pdf{ background:#fdecea; color:#c0433f; }
.ext-doc{ background:#e8f0fc; color:#2f6fd0; }
.ext-xls{ background:#e5f5e8; color:#1d6e2c; }
.ext-outro{ background:var(--surface-2); color:var(--muted); }
html[data-theme="dark"] .ext-pdf{ background:#3a2422; color:#ef9a95; }
html[data-theme="dark"] .ext-doc{ background:#20303f; color:#8ab6f2; }
html[data-theme="dark"] .ext-xls{ background:#1c3322; color:#8fd39a; }
.doc-info h3{ font-size:1.08rem; margin-bottom:4px; overflow-wrap:anywhere; }
.doc-meta{ font-size:.82rem; color:var(--muted); font-weight:600; }
.doc-actions{ display:flex; gap:8px; align-items:center; flex-wrap:wrap; justify-content:flex-end; }
.btn-sm{ padding:10px 18px; font-size:.86rem; margin-top:0; }
.doc-file-info{
  display:flex; align-items:center; gap:10px; margin-top:12px;
  padding:12px 16px; border-radius:12px; font-size:.88rem; font-weight:600;
  background:color-mix(in srgb, var(--green) 9%, transparent);
  color:var(--green-dark); overflow-wrap:anywhere;
}
html[data-theme="dark"] .doc-file-info{ color:var(--lime); }
.doc-file-info svg.lucide{ width:18px; height:18px; flex:none; }
.doc-file-info[hidden]{ display:none; }

/* ============ GALERIA POR CATEGORIA ============ */
.gallery-block{ margin-top:56px; }
.gallery-head{ display:flex; align-items:flex-end; justify-content:space-between; gap:20px; flex-wrap:wrap; margin-bottom:26px; }
.gallery-head h3{ font-size:clamp(1.4rem,2.6vw,1.9rem); font-weight:800; margin:8px 0 6px; }
.gallery-head p{ color:var(--muted); font-size:.98rem; }
.gallery-admin-add{ flex:none; }
.gallery-actions{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; flex:none; }

.cat-buttons{ display:flex; flex-wrap:wrap; gap:12px; }
.cat-btn{
  display:flex; align-items:center; gap:10px; padding:13px 20px; cursor:pointer;
  border-radius:15px; border:1.5px solid var(--line); background:var(--surface);
  color:var(--text); font-family:var(--font-head); font-weight:600; font-size:.92rem;
  transition:transform .22s, border-color .22s, box-shadow .22s, background .22s;
  position:relative; overflow:hidden;
}
.cat-btn .cat-thumb{
  width:38px; height:38px; border-radius:11px; flex:none;
  background-size:cover; background-position:center;
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.08);
}
.cat-btn:hover{ transform:translateY(-4px); border-color:var(--green); box-shadow:var(--shadow); }

/* ---- overlay da galeria ---- */
#gallery-overlay{
  position:fixed; inset:0; z-index:945; background:var(--bg);
  display:flex; flex-direction:column; animation:goIn .35s ease;
}
#gallery-overlay[hidden]{ display:none; }
@keyframes goIn{ from{ opacity:0; transform:scale(.99);} to{ opacity:1; transform:none;} }
.go-top{
  display:flex; align-items:center; gap:16px; flex-wrap:wrap;
  padding:16px clamp(16px, 4vw, 40px); border-bottom:1px solid var(--line);
  background:color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter:blur(10px);
  position:sticky; top:0; z-index:2;
}
.go-title{ display:flex; align-items:center; gap:9px; font-family:var(--font-head); font-weight:800; font-size:1.05rem; flex:none; }
.go-title svg.lucide{ width:20px; height:20px; color:var(--green); }
.go-title b{ color:var(--muted); font-weight:600; font-size:.85rem; }
.go-cats{ display:flex; gap:7px; overflow-x:auto; flex:1; padding-bottom:2px; scrollbar-width:thin; }
.go-cats::-webkit-scrollbar{ height:5px; }
.go-cat{
  flex:none; padding:7px 15px; border-radius:999px; cursor:pointer; white-space:nowrap;
  border:1.5px solid var(--line); background:var(--surface); color:var(--muted);
  font-family:var(--font-head); font-weight:600; font-size:.82rem; transition:all .2s;
}
.go-cat:hover{ border-color:var(--green); color:var(--green); }
.go-cat.active{ background:var(--grad); border-color:transparent; color:#fff; }
.go-actions{ display:flex; align-items:center; gap:10px; flex:none; }
.go-close{
  width:42px; height:42px; border-radius:12px; border:1.5px solid var(--line);
  background:var(--surface); color:var(--muted); cursor:pointer; display:grid; place-items:center;
  transition:all .25s;
}
.go-close:hover{ background:var(--green); color:#fff; border-color:transparent; transform:rotate(90deg); }
.go-close svg.lucide{ width:20px; height:20px; }

.go-grid{
  flex:1; overflow-y:auto; padding:clamp(16px, 4vw, 40px);
  display:grid; grid-template-columns:repeat(auto-fill, minmax(230px, 1fr)); gap:16px; align-content:start;
}
.go-item{
  position:relative; border-radius:16px; overflow:hidden; cursor:zoom-in; aspect-ratio:4/3;
  background:var(--surface-2); border:1px solid var(--line); box-shadow:var(--shadow);
  opacity:0; transform:translateY(14px); animation:goItem .5s ease forwards;
}
@keyframes goItem{ to{ opacity:1; transform:none; } }
.go-item img{ width:100%; height:100%; object-fit:cover; transition:transform .5s; }
.go-item:hover img{ transform:scale(1.08); }
.go-item::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(transparent 60%, rgba(15,20,15,.35));
  opacity:0; transition:opacity .3s;
}
.go-item:hover::after{ opacity:1; }
.go-del{
  position:absolute; top:10px; right:10px; z-index:2; width:38px; height:38px; border-radius:11px;
  border:0; background:rgba(220,60,55,.92); color:#fff; cursor:pointer; display:none; place-items:center;
  transition:transform .2s;
}
.go-del svg.lucide{ width:17px; height:17px; }
.go-del:hover{ transform:scale(1.12); }
body.is-admin .go-del{ display:grid; }
.go-empty{ grid-column:1/-1; text-align:center; color:var(--muted); padding:60px 0; }

/* ---- lightbox navegável ---- */
.lb-nav{
  position:absolute; top:50%; transform:translateY(-50%); z-index:2;
  width:54px; height:54px; border-radius:50%; border:0; cursor:pointer;
  background:rgba(255,255,255,.14); color:#fff; display:grid; place-items:center;
  transition:background .25s, transform .25s;
}
.lb-nav:hover{ background:var(--green); }
.lb-nav svg.lucide{ width:26px; height:26px; }
#lb-prev{ left:22px; } #lb-next{ right:22px; }
#lb-prev:hover{ transform:translateY(-50%) translateX(-3px); }
#lb-next:hover{ transform:translateY(-50%) translateX(3px); }
.lb-del{
  position:absolute; bottom:24px; left:50%; transform:translateX(-50%); z-index:2;
  display:flex; align-items:center; gap:8px; padding:11px 22px; border-radius:999px;
  border:0; background:rgba(220,60,55,.92); color:#fff; cursor:pointer;
  font-family:var(--font-head); font-weight:700; font-size:.9rem; transition:transform .2s;
}
.lb-del[hidden]{ display:none; }
.lb-del:hover{ transform:translateX(-50%) translateY(-2px); }

/* ============ BUSCA DENTRO DOS DOCUMENTOS ============ */
.doc-search{ margin-bottom:22px; }
.doc-search .search-wrap > svg.lucide{
  position:absolute; left:20px; top:50%; transform:translateY(-50%);
  width:19px; height:19px; color:var(--muted); pointer-events:none;
}
#doc-search{
  width:100%; padding:16px 22px 16px 52px; border-radius:16px; font-size:1rem;
  border:1.5px solid var(--line); background:var(--surface); color:var(--text);
  font-family:var(--font-body); transition:border-color .25s, box-shadow .25s;
}
#doc-search:focus{
  outline:none; border-color:var(--green);
  box-shadow:0 0 0 4px color-mix(in srgb, var(--green) 18%, transparent);
}
.doc-search-hint{
  display:flex; align-items:center; gap:8px; margin-top:10px;
  font-size:.84rem; color:var(--muted);
}
.doc-search-hint svg.lucide{ width:15px; height:15px; color:var(--green); flex:none; }
.doc-results{ display:grid; gap:12px; margin-bottom:34px; }
.dr-head{ font-size:.92rem; color:var(--muted); }
.dr-vazio{ color:var(--muted); padding:14px 0; }
.dr-item{
  display:grid; gap:6px; padding:16px 20px; border-radius:14px;
  background:var(--surface); border:1px solid var(--line);
  transition:border-color .25s, transform .25s;
}
.dr-item:hover{ border-color:var(--green); transform:translateX(4px); }
.dr-doc{
  display:flex; align-items:center; gap:8px; font-family:var(--font-head);
  font-weight:700; font-size:.9rem; color:var(--green);
}
.dr-doc svg.lucide{ width:15px; height:15px; flex:none; }
.dr-snippet{ font-size:.9rem; color:var(--muted); line-height:1.6; }
.dr-snippet mark{
  background:color-mix(in srgb, var(--lime) 45%, transparent);
  color:var(--ink); border-radius:4px; padding:1px 3px; font-weight:600;
}

/* ============ MODO EDIÇÃO (admin) ============ */
#edit-bar{
  position:fixed; bottom:22px; left:50%; transform:translateX(-50%); z-index:930;
  display:flex; align-items:center; gap:8px; flex-wrap:wrap; justify-content:center;
  background:var(--surface); border:1.5px solid var(--line); border-radius:999px;
  padding:9px 14px; box-shadow:0 18px 50px rgba(0,0,0,.28);
  max-width:calc(100vw - 32px);
}
#edit-bar[hidden]{ display:none; }
.eb-label{
  display:inline-flex; align-items:center; gap:7px; font-family:var(--font-head);
  font-weight:800; font-size:.82rem; color:var(--green); padding:0 6px;
}
.eb-label svg.lucide{ width:16px; height:16px; }
.eb-btn{
  display:inline-flex; align-items:center; gap:7px; padding:9px 16px; border-radius:999px;
  border:1.5px solid var(--line); background:var(--surface); color:var(--text);
  font-family:var(--font-head); font-weight:700; font-size:.84rem; cursor:pointer;
  transition:all .25s;
}
.eb-btn svg.lucide{ width:15px; height:15px; }
.eb-btn:hover{ border-color:var(--green); color:var(--green); transform:translateY(-2px); }
.eb-primary{ background:var(--grad); border-color:transparent; color:#fff; }
.eb-primary:hover{ color:#fff; box-shadow:0 8px 20px rgba(46,158,63,.45); }
.eb-danger:hover{ border-color:#c0433f; color:#c0433f; }

body.edit-mode [data-eid]{
  outline:1.5px dashed color-mix(in srgb, var(--green) 60%, transparent);
  outline-offset:3px; border-radius:6px; cursor:text;
  transition:outline-color .2s, background .2s;
}
body.edit-mode [data-eid]:hover{
  outline-color:var(--green);
  background:color-mix(in srgb, var(--green) 7%, transparent);
}
body.edit-mode [data-eid]:focus{
  outline:2px solid var(--green);
  background:color-mix(in srgb, var(--green) 9%, transparent);
  box-shadow:0 0 0 5px color-mix(in srgb, var(--green) 14%, transparent);
}

/* ============ REVEAL ============ */
.reveal{ opacity:0; transform:translateY(36px); transition:opacity .8s ease, transform .8s cubic-bezier(.22,.9,.3,1); }
.reveal.in{ opacity:1; transform:translateY(0); }
.delay-1{ transition-delay:.12s; } .delay-2{ transition-delay:.24s; } .delay-3{ transition-delay:.36s; }

/* ============================================================
   RESPONSIVO — organizado por faixa de tela
   ============================================================ */

/* ---------- Menu: telas médias-largas (1181px a 1420px) ---------- */
@media (max-width: 1420px) and (min-width: 1181px){
  .btn-game-mini span{ display:none; }
  .nav-brand span{ display:none; }        /* fica só o logo — sobra espaço com folga */
  /* compacta os 8 links para que TODOS (inclusive Comunicados e Documentos)
     caibam sem cortar/overflow nesta faixa de largura */
  .nav-links a{ padding:8px 9px; font-size:.86rem; }
  .nav{ gap:8px; }
}

/* ---------- Menu hambúrguer (até 1180px) ---------- */
@media (max-width: 1180px){
  .nav-links{
    position:fixed; inset:0 0 auto 0; top:68px; z-index:790;
    flex-direction:column; background:var(--surface); padding:16px;
    border-bottom:1px solid var(--line); box-shadow:0 24px 40px rgba(0,0,0,.18);
    transform:translateY(-130%); transition:transform .35s;
  }
  .nav-links.open{ transform:translateY(0); }
  .nav-links a{ display:block; padding:13px 18px; font-size:1rem; }
  #nav-burger{ display:flex; }
  #nav-burger.open span:nth-child(1){ transform:translateY(7.5px) rotate(45deg); }
  #nav-burger.open span:nth-child(2){ opacity:0; }
  #nav-burger.open span:nth-child(3){ transform:translateY(-7.5px) rotate(-45deg); }
  .btn-game-mini span, .btn-login span{ display:none; }
}

/* ---------- Tablets e telas médias (até 1020px) ---------- */
@media (max-width: 1020px){
  .hero-inner, .game-inner{ grid-template-columns:1fr; gap:44px; }
  .hero{ padding-top:120px; }
  /* coluna única: a proporção 16:9 da regra base define a altura */
  /* com o layout em coluna única, a imagem centraliza e os cartões
     flutuantes ficam POR CIMA da foto (sem vazar para fora da tela) */
  .hero-visual{ max-width:720px; width:100%; margin-inline:auto; }
  .hero-float{ z-index:2; }
  .f1{ top:14px; left:14px; }
  .f2{ top:14px; right:14px; }
  .f3{ bottom:14px; left:14px; }
  .f4{ bottom:14px; right:14px; }
  .condo-grid{ grid-template-columns:1fr; }
  .hours-grid{ grid-template-columns:repeat(2, 1fr); }
  .contact-grid{ grid-template-columns:repeat(2, 1fr); }
  .footer-grid{ grid-template-columns:1fr 1fr; }
}

/* ---------- Celular (até 720px) ---------- */
@media (max-width: 720px){

  /* — navegação (o menu hambúrguer já vem do breakpoint 1080px) — */
  .nav{ padding:10px 0; gap:10px; }
  .nav-brand img{ width:36px; height:36px; }
  .nav-brand span{ font-size:1rem; }
  .nav-actions{ gap:7px; }
  #theme-toggle{ width:36px; height:36px; }
  .btn-login, .btn-game-mini{ padding:8px 12px; }
  .nav-links{ top:60px; }

  /* — hero mais leve e compacto — */
  .hero{ padding:104px 0 64px; min-height:auto; }
  .hero-inner{ gap:34px; }
  .hero h1{ font-size:2.3rem; }
  .hero-sub{ font-size:1rem; margin:16px 0 22px; }
  .hero-cta{ flex-direction:column; }
  .hero-cta .btn{ width:100%; justify-content:center; }
  .hero-address{ display:block; font-size:.83rem; }
  /* mantém 16:9 também no celular (altura vem da proporção) */
  .hero-card-badge{ left:10px; bottom:14px; padding:8px 14px 8px 10px; }
  .hero-card-badge img{ width:30px; height:30px; }
  .f3{ bottom:72px; }                    /* Brinquedoteca acima do selo */
  /* cartões flutuantes menores, presos aos cantos da foto */
  .hero-float{ font-size:.75rem; padding:6px 11px; gap:6px; }
  .hero-float svg.lucide{ width:14px; height:14px; }
  .hero-scroll-hint{ display:none; }
  /* efeitos pesados desligados no celular (fluidez) */
  .blob{ filter:blur(55px); opacity:.35; }
  .blob-3{ display:none; }
  .hero-grid{ display:none; }
  #leaves-canvas{ display:none; }

  .marquee{ padding:10px 0; }
  .marquee-track span{ font-size:.78rem; }

  /* — seções — */
  .section{ padding:64px 0; }
  .section-head{ margin-bottom:36px; }
  .board-section{ padding-top:110px; }
  .condo-info{ padding:24px 20px; }
  .condo-gallery{ grid-template-columns:1fr; }
  .gal-card img, .gal-card:first-child img{ height:210px; }
  .amenities{ gap:10px; margin-top:30px; }
  .amenity{ padding:10px 16px; font-size:.88rem; }
  .hours-grid, .contact-grid{ grid-template-columns:1fr; gap:16px; }
  .hour-card{ padding:22px 20px; }
  .contact-card{ padding:22px 18px; }
  .footer-grid{ grid-template-columns:1fr; gap:26px; padding:48px 0 32px; }

  /* — regras: vira carrossel deslizável por toque — */
  .h-sticky{ position:static; min-height:auto; padding:64px 0 42px; gap:24px; }
  .h-track{
    width:auto; overflow-x:auto; padding-bottom:22px;
    -webkit-overflow-scrolling:touch; scroll-snap-type:x mandatory;
    transform:none !important;
  }
  .rule-card{ scroll-snap-align:center; padding:26px 22px; }
  .h-progress{ display:none; }
  .h-hint{ font-size:.86rem; }

  /* — galeria — */
  .gallery-block{ margin-top:44px; }
  .cat-buttons{ gap:9px; }
  .cat-btn{ padding:11px 15px; font-size:.85rem; gap:8px; }
  .cat-btn::before{ width:32px; height:32px; }
  .go-grid{ grid-template-columns:repeat(auto-fill, minmax(150px, 1fr)); gap:11px; }
  .go-top{ gap:11px; padding:12px 16px; }
  .go-title{ font-size:.95rem; }
  .lb-nav{ width:44px; height:44px; }
  #lb-prev{ left:10px; } #lb-next{ right:10px; }

  /* — game — */
  .game-controls{ gap:10px 16px; font-size:.82rem; }
  .btn-game{ width:100%; justify-content:center; font-size:.95rem; padding:15px 20px; }
  .gf-screen{ height:220px; }

  /* — modais e editor em tela cheia (usabilidade no toque) — */
  .modal{ padding:0; align-items:stretch; }
  .modal-box{
    padding:28px 18px 90px; border-radius:0; width:100%; min-height:100svh;
    margin:0; max-width:none;
  }
  .editor-box{ width:100%; }
  .rte-toolbar{ overflow-x:auto; flex-wrap:nowrap; scrollbar-width:none; }
  .rte-toolbar::-webkit-scrollbar{ display:none; }
  .rte-toolbar button, .rte-color{ flex:none; }
  .rte-area{ min-height:150px; max-height:260px; }
  .editor-actions{ justify-content:stretch; }
  .editor-actions .btn{ flex:1; justify-content:center; }
  .attach-item{ grid-template-columns:64px 1fr; }
  .attach-item img{ width:64px; height:48px; }
  .attach-item .icon-btn{ grid-column:2; justify-self:end; }

  /* — documentos — */
  .doc-card{ grid-template-columns:auto 1fr; padding:18px 16px; }
  .doc-actions{ grid-column:1 / -1; justify-content:stretch; }
  .doc-actions .btn-sm{ flex:1; justify-content:center; }

  /* — comunicados — */
  .post-card{ padding:24px 18px; }
  .post-card h3{ font-size:1.2rem; }
  .admin-bar{ padding:14px 16px; }
  .admin-bar .btn{ width:100%; justify-content:center; }

  /* — barra de edição e extras — */
  #edit-bar{
    bottom:calc(12px + env(safe-area-inset-bottom, 0px));
    padding:7px 10px; gap:6px;
  }
  .eb-btn{ padding:8px 12px; font-size:.78rem; }
  .eb-label{ font-size:.74rem; }
  #back-top{ right:14px; bottom:calc(72px + env(safe-area-inset-bottom, 0px)); width:44px; height:44px; }
  #toast{ width:max-content; max-width:calc(100vw - 28px); text-align:center; font-size:.85rem; }
}

/* ---------- Telas bem pequenas (até 400px) ---------- */
@media (max-width: 400px){
  .hero h1{ font-size:2rem; }
  .section-head h2{ font-size:1.65rem; }
  .rule-card{ width:86vw; }
  .contact-filters{ gap:7px; }
  .chip{ padding:8px 14px; font-size:.8rem; }
}

/* ---------- Acessibilidade: sem animações ---------- */
@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{ animation-duration:.01ms !important; transition-duration:.01ms !important; }
  html{ scroll-behavior:auto; }
}
