/* Tema di Natale (Amministrazione → Temi): si carica solo quando è acceso, dopo tutti gli altri stili. */

/* le luci dello sfondo diventano rosse e verdi, con il viola di sempre */
:root, :root[data-theme="dark"], :root[data-theme="light"] { --aurora-1: #d7323e; --aurora-2: #1f9d63; --aurora-3: #5e62e6; }

/* il bot col cappello: il cappello sporge dal riquadro del bot senza spostare il resto */
.bot-natale { overflow: visible; }
.sb-logo:has(.bot-natale) { width: auto; }
.sb-logo .bot-icon.bot-natale { width: 35px; height: 38.5px; }

/* il logo animato: il cappello cade dall'alto, il bot si schiaccia sotto il colpo, sbatte gli occhi e la neve gli si posa in testa */
.bot-natale.anima .nt-cade { animation: nt-cade .75s cubic-bezier(.55, 0, .75, .4) .55s both; }
@keyframes nt-cade { from { transform: translate(-40px, -560px) rotate(-38deg); opacity: 0; } 12% { opacity: 1; } to { transform: translate(0, 0) rotate(0); } }
.bot-natale.anima .nt-colpo { transform-origin: 0 10px; animation: nt-colpo .7s ease-out 1.3s both; }
@keyframes nt-colpo { 0% { transform: scale(1); } 18% { transform: scale(1.18, .72); } 45% { transform: scale(.92, 1.1) rotate(-4deg); } 70% { transform: scale(1.03, .97) rotate(2deg); } 100% { transform: scale(1); } }
.bot-natale.anima .nt-bot { transform-origin: 520px 652px; animation: nt-bot .6s ease-out 1.33s both; }
@keyframes nt-bot { 0% { transform: scale(1); } 22% { transform: scale(1.04, .93); } 55% { transform: scale(.985, 1.03); } 100% { transform: scale(1); } }
.bot-natale.anima .nt-posa { transform-origin: 520px 340px; animation: nt-posa 1.4s cubic-bezier(.2, .8, .2, 1) 2.4s both; }
@keyframes nt-posa { from { transform: scaleY(0); opacity: 0; } 30% { opacity: 1; } to { transform: scaleY(1); opacity: 1; } }
.bot-natale.anima .nt-occhi { transform-origin: 520px 467px; animation: nt-occhi 4.6s ease-in-out 1.55s infinite; }
@keyframes nt-occhi { 0%, 6%, 100% { transform: scaleY(1); } 3% { transform: scaleY(.08); } }
.nt-lampo { opacity: 0; }
.bot-natale.anima .nt-lampo { transform-origin: 632px 318px; animation: nt-lampo 1.6s ease-out 1.35s both; }
@keyframes nt-lampo { 0% { opacity: 0; transform: scale(.6); } 30% { opacity: .9; } 100% { opacity: 0; transform: scale(1.6); } }

@media (prefers-reduced-motion: reduce) { .bot-natale.anima *, .bot-natale.anima { animation: none !important; } }
@media print { .neve { display: none; } }
