/* ===== Tema de Natal — camada extra (remover as 2 linhas no index.html pra desligar) ===== */
.xmas-snow { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 140; }

/* Papai Noel + renas */
.xmas-santa { position: fixed; top: 20%; left: 0; z-index: 130; pointer-events: none; width: clamp(240px, 36vw, 440px); will-change: transform; display: none; filter: drop-shadow(0 6px 14px rgba(0,0,0,.55)); }
.xmas-santa svg { width: 100%; height: auto; display: block; overflow: visible; animation: santaBob 1.1s ease-in-out infinite; }
.xmas-santa .leg { animation: legSwing .45s ease-in-out infinite alternate; }
.xmas-santa .leg.b { animation-direction: alternate-reverse; }
.xmas-santa .nose-glow { animation: noseGlow 1s ease-in-out infinite alternate; }
@keyframes santaBob { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-9px) rotate(1deg); } }
@keyframes legSwing { from { transform: rotate(-26deg); } to { transform: rotate(26deg); } }
@keyframes noseGlow { from { opacity: .25; } to { opacity: .85; } }

/* Pisca-pisca */
.xmas-lights { position: absolute; top: 100%; left: 0; right: 0; height: 0; pointer-events: none; z-index: 1; }
.xmas-wire { position: absolute; top: -1px; left: 0; right: 0; height: 18px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='48' height='18'><path d='M0 1 Q24 19 48 1' fill='none' stroke='%2339404a' stroke-width='1.6'/></svg>") repeat-x; }
.xmas-lights i { position: absolute; width: 9px; height: 13px; border-radius: 50% 50% 55% 55%; background: var(--c); top: 11px; transform: translateX(-50%);
  box-shadow: 0 0 10px 2px var(--c); animation: twinkle 1.6s ease-in-out infinite; }
.xmas-lights i::before { content: ""; position: absolute; top: -4px; left: 50%; width: 5px; height: 5px; background: #2a2f36; border-radius: 1px; transform: translateX(-50%); }
@keyframes twinkle { 0%, 100% { opacity: 1; filter: brightness(1.25); } 50% { opacity: .35; filter: brightness(.7); } }

/* Bolas penduradas */
.xmas-bauble { position: absolute; top: 16px; width: 0; transform-origin: top center; animation: swing 3.4s ease-in-out infinite; }
.xmas-bauble::before { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: var(--len, 36px); background: rgba(230,195,106,.7); }
.xmas-bauble::after { content: ""; position: absolute; left: calc(var(--d, 30px) / -2); top: var(--len, 36px); width: var(--d, 30px); height: var(--d, 30px); border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, rgba(255,255,255,.95) 0 6%, transparent 22%), radial-gradient(circle at 50% 60%, var(--b1) 0%, var(--b2) 100%);
  box-shadow: 0 6px 14px rgba(0,0,0,.5), inset 0 -4px 8px rgba(0,0,0,.3); }
@keyframes swing { 0%, 100% { transform: rotate(5deg); } 50% { transform: rotate(-5deg); } }

/* Detalhes festivos */
.xmas-chip { display: table; margin-bottom: 14px; padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: #fff; background: linear-gradient(135deg, #c8102e, #8f0a20); border: 1px solid rgba(255,255,255,.35); box-shadow: 0 4px 16px rgba(200,16,46,.35); }
.pole { background: repeating-linear-gradient(-45deg, #fff 0 10px, #c8102e 10px 20px) !important; }
.plan-card::after, .testi-card::after, .location-card::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 11px; pointer-events: none; opacity: .92;
  background: radial-gradient(circle at 11px 0, #fff 10px, transparent 11px) 0 0 / 22px 11px repeat-x; }
.location-card { position: relative; overflow: hidden; }
footer { position: relative; }
footer::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px;
  background: radial-gradient(circle at 15px 14px, #f2f6fb 14px, transparent 15px) 0 0 / 30px 14px repeat-x; }

/* Botão pra ligar/desligar */
.xmas-toggle { position: fixed; left: 20px; bottom: 24px; z-index: 160; width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  background: rgba(10,13,16,.85); color: #fff; border: 1px solid rgba(255,255,255,.35); font-size: 20px; line-height: 1; backdrop-filter: blur(6px); }
.xmas-toggle:hover { border-color: #fff; }
body.xmas-off .xmas-snow, body.xmas-off .xmas-santa, body.xmas-off .xmas-lights, body.xmas-off .xmas-chip { display: none !important; }
body.xmas-off .plan-card::after, body.xmas-off .testi-card::after, body.xmas-off .location-card::after, body.xmas-off footer::before { display: none; }
body.xmas-off .pole { background: repeating-linear-gradient(-45deg, #f2f2f2 0 10px, #0A0D10 10px 20px, #8E949B 20px 30px, #0A0D10 30px 40px) !important; }

@media (max-width: 640px) { .xmas-bauble.hide-m { display: none; } .xmas-toggle { width: 40px; height: 40px; bottom: 90px; } }
@media (prefers-reduced-motion: reduce) { .xmas-santa, .xmas-bauble, .xmas-lights i { animation: none !important; } .xmas-santa { display: none !important; } }
.xmas-chip { margin-top: 22px; }

.xmas-sound { left: 72px; }
body.xmas-off .xmas-sound { display: none; }
@media (max-width: 640px) { .xmas-sound { left: 68px; } }
