/* =====================================================================
   TEMA DE NATAL — entra sozinho no período configurado no painel
   (Datas especiais). Só é carregado quando o tema está valendo, então
   nada daqui pesa no site o resto do ano.
   Cores: o verde da marca + vermelho de Natal + dourado.
   ===================================================================== */
:root{--natal-verm:#c8102e;--natal-verm-esc:#8e0b1f;--natal-ouro:#f2c14e;--natal-ouro-esc:#c9962a}

/* ---------- neve caindo (leve: só move uma camada com transform) ---------- */
.tema-neve{position:fixed;inset:0;z-index:49;pointer-events:none;overflow:hidden}
.tema-neve::before,.tema-neve::after{content:"";position:absolute;left:0;right:0;top:-100%;height:200%;will-change:transform;
  background-image:
    radial-gradient(circle at 20px 30px,#fff 0 2px,transparent 3px),
    radial-gradient(circle at 140px 90px,#fff 0 1.5px,transparent 2.5px),
    radial-gradient(circle at 260px 20px,#fff 0 2.5px,transparent 3.5px),
    radial-gradient(circle at 80px 200px,#fff 0 1.5px,transparent 2.5px),
    radial-gradient(circle at 210px 250px,#fff 0 2px,transparent 3px),
    radial-gradient(circle at 300px 160px,#fff 0 1px,transparent 2px);
  background-size:320px 300px;opacity:.55;animation:neve 22s linear infinite}
.tema-neve::after{background-size:220px 240px;opacity:.35;animation-duration:34s;filter:blur(.6px);left:-60px}
@keyframes neve{to{transform:translate3d(30px,50%,0)}}

/* ---------- faixa do topo ---------- */
.tema-faixa{position:relative;z-index:51;text-align:center;color:#fff;font-size:.9rem;font-weight:700;padding:9px 0;
  background:linear-gradient(90deg,var(--natal-verm-esc),var(--natal-verm) 30%,var(--natal-verm) 70%,var(--natal-verm-esc))}
.tema-faixa .wrap{width:min(1220px,92%);margin-inline:auto}

/* ---------- pisca-pisca embaixo do cabeçalho ---------- */
.tema-luzes{position:absolute;left:0;right:0;bottom:-15px;height:22px;display:flex;justify-content:space-between;padding:0 6px;pointer-events:none;overflow:hidden}
.tema-luzes::before{content:"";position:absolute;left:0;right:0;top:0;height:7px;
  background:radial-gradient(ellipse 22px 7px at 11px 0,transparent 5px,#0d2418 5.5px 7px,transparent 7.5px) 0 0/22px 7px repeat-x}
.tema-luzes i{position:relative;top:4px;width:9px;height:14px;border-radius:50% 50% 50% 50%/40% 40% 60% 60%;background:var(--natal-verm);
  box-shadow:0 0 10px 2px var(--natal-verm);animation:pisca 1.6s ease-in-out infinite}
.tema-luzes i::before{content:"";position:absolute;left:2px;top:-3px;width:5px;height:4px;border-radius:1px;background:#0d2418}
.tema-luzes i:nth-child(4n+2){background:var(--natal-ouro);box-shadow:0 0 10px 2px var(--natal-ouro);animation-delay:.4s}
.tema-luzes i:nth-child(4n+3){background:#3ad07a;box-shadow:0 0 10px 2px #3ad07a;animation-delay:.8s}
.tema-luzes i:nth-child(4n+4){background:#4fb3ff;box-shadow:0 0 10px 2px #4fb3ff;animation-delay:1.2s}
.tema-luzes i:nth-child(odd){transform:rotate(8deg)}
.tema-luzes i:nth-child(even){transform:rotate(-8deg)}
@keyframes pisca{50%{opacity:.35;box-shadow:none}}

/* ---------- hero: bolas penduradas na foto, etiqueta vermelha, fita listrada ---------- */
.tema-bolas{position:absolute;left:0;right:0;top:0;height:0;z-index:3}
.tema-bolas span{position:absolute;top:-70px;width:2px;background:rgba(255,255,255,.55);transform-origin:50% 0;animation:bola 4s ease-in-out infinite}
.tema-bolas span::before{content:"";position:absolute;left:50%;top:100%;width:12px;height:9px;margin-left:-6px;border-radius:2px;background:linear-gradient(90deg,var(--natal-ouro-esc),var(--natal-ouro),var(--natal-ouro-esc))}
.tema-bolas span::after{content:"";position:absolute;left:50%;top:calc(100% + 6px);width:46px;height:46px;margin-left:-23px;border-radius:50%;
  background:radial-gradient(circle at 34% 30%,rgba(255,255,255,.85) 0 6%,transparent 22%),radial-gradient(circle at 50% 50%,var(--cor) 0 55%,var(--cor-esc) 100%);
  box-shadow:0 12px 22px rgba(0,0,0,.35)}
.tema-bolas .b1{left:12%;height:120px;--cor:var(--natal-verm);--cor-esc:var(--natal-verm-esc)}
.tema-bolas .b2{left:27%;height:84px;--cor:var(--natal-ouro);--cor-esc:var(--natal-ouro-esc);animation-delay:-1.3s}
.tema-bolas .b2::after{width:36px;height:36px;margin-left:-18px}
.tema-bolas .b3{left:40%;height:140px;--cor:#e9eef2;--cor-esc:#9fb0bd;animation-delay:-2.6s}
.tema-bolas .b3::after{width:40px;height:40px;margin-left:-20px}
@keyframes bola{0%,100%{transform:rotate(4deg)}50%{transform:rotate(-4deg)}}

[data-tema=natal] .etiqueta{background:var(--natal-verm)}
[data-tema=natal] .etiqueta::before{background:var(--natal-ouro)}
[data-tema=natal] .tag.escura{color:#ffd77a}
[data-tema=natal] .tag.escura::before{background:var(--natal-ouro)}
[data-tema=natal] .fita{border-image:repeating-linear-gradient(-45deg,var(--natal-verm) 0 16px,#fff 16px 32px) 12}
[data-tema=natal] .progresso{background:var(--natal-verm)}

/* ---------- recado de boas festas ---------- */
.tema-recado{padding:70px 0 0}
.tema-cartao{position:relative;overflow:hidden;display:grid;grid-template-columns:230px 1fr;gap:48px;align-items:center;
  padding:52px 60px;border-radius:28px;color:#fff;
  background:radial-gradient(ellipse 70% 90% at 0% 0%,rgba(255,255,255,.12),transparent 60%),linear-gradient(135deg,var(--natal-verm) 0%,var(--natal-verm-esc) 100%);
  box-shadow:0 40px 80px -30px rgba(142,11,31,.6)}
.tema-cartao::before{content:"";position:absolute;inset:0;pointer-events:none;opacity:.5;
  background-image:radial-gradient(circle,rgba(255,255,255,.5) 0 1.5px,transparent 2px),radial-gradient(circle,rgba(255,255,255,.3) 0 1px,transparent 1.5px);
  background-size:46px 46px,29px 29px;background-position:0 0,14px 20px}
.tema-cartao::after{content:"";position:absolute;inset:12px;border:2px dashed rgba(242,193,78,.45);border-radius:20px;pointer-events:none}
.tema-texto{position:relative;z-index:1}
.tema-sobre{display:inline-flex;align-items:center;gap:8px;color:var(--natal-ouro);font-weight:800;font-size:.8rem;letter-spacing:.1em;text-transform:uppercase}
.tema-sobre::before{content:"★";font-size:1rem}
.tema-recado h2{font-family:Archivo,sans-serif;font-stretch:112%;font-weight:900;font-size:clamp(1.9rem,3.6vw,2.9rem);line-height:1.04;margin:12px 0 14px;letter-spacing:-.01em;color:#fff}
.tema-texto p{font-size:1.1rem;line-height:1.65;opacity:.92;max-width:640px}
.tema-texto .tema-horario{display:inline-flex;gap:12px;align-items:flex-start;margin-top:20px;padding:12px 18px;border-radius:12px;background:rgba(0,0,0,.18);font-size:.98rem;opacity:1}
.tema-horario svg{flex:none;width:22px;height:22px;fill:none;stroke:var(--natal-ouro);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.tema-texto small{display:block;margin-top:22px;color:var(--natal-ouro);font-weight:700;font-style:italic;font-size:.95rem}

/* árvore desenhada em CSS */
.tema-arvore{position:relative;z-index:1;width:200px;height:250px;justify-self:center}
.tema-arvore::before{content:"";position:absolute;left:50%;top:0;width:44px;height:44px;margin-left:-22px;z-index:2;background:var(--natal-ouro);
  clip-path:polygon(50% 0,61% 35%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 35%);
  filter:drop-shadow(0 0 12px rgba(242,193,78,.9));animation:estrela 2.4s ease-in-out infinite}
.tema-arvore i{position:absolute;left:50%;transform:translateX(-50%);clip-path:polygon(50% 0,100% 100%,0 100%);
  background:radial-gradient(circle at 30% 60%,var(--natal-ouro) 0 4px,transparent 5px),radial-gradient(circle at 70% 75%,#fff 0 3px,transparent 4px),radial-gradient(circle at 55% 40%,var(--natal-verm) 0 4px,transparent 5px),linear-gradient(180deg,#0f7a3d,#004d26)}
.tema-arvore i:nth-child(1){top:26px;width:110px;height:80px}
.tema-arvore i:nth-child(2){top:70px;width:150px;height:96px;background-size:auto,auto,auto,auto}
.tema-arvore i:nth-child(3){top:120px;width:196px;height:104px}
.tema-arvore b{position:absolute;left:50%;bottom:0;width:34px;height:30px;margin-left:-17px;border-radius:0 0 6px 6px;background:#5b3417}
@keyframes estrela{50%{transform:scale(1.12) rotate(8deg);filter:drop-shadow(0 0 20px rgba(242,193,78,1))}}

@media (max-width:900px){
  .tema-cartao{grid-template-columns:1fr;gap:26px;padding:40px 30px;text-align:center}
  .tema-arvore{width:150px;height:190px;transform:none}
  .tema-arvore i:nth-child(1){top:20px;width:84px;height:60px}
  .tema-arvore i:nth-child(2){top:52px;width:116px;height:74px}
  .tema-arvore i:nth-child(3){top:90px;width:150px;height:80px}
  .tema-arvore b{height:22px}
  .tema-texto p{margin-inline:auto}
  .tema-texto .tema-horario{text-align:left}
  /* foto embaixo do texto: os fios das bolas não sobem por cima do horário */
  .tema-bolas span{top:-18px}
  .tema-bolas .b1{height:70px}.tema-bolas .b2{height:40px}.tema-bolas .b3{height:90px}
}
@media (max-width:600px){
  .tema-faixa{font-size:.8rem;padding:8px 0}
  .tema-luzes i:nth-child(n+26){display:none}
  .tema-bolas span::after{transform:scale(.8)}
  .tema-cartao{padding:34px 22px;border-radius:22px}
  .tema-recado{padding-top:50px}
}
@media (prefers-reduced-motion:reduce){
  .tema-neve{display:none}
  .tema-luzes i,.tema-bolas span,.tema-arvore::before{animation:none}
}
