/* Pizzeria da Lello - VESTE NATALIZIA, versione A (01/12/2026)
   Vale solo con <html data-stagione="natale">, messo da assets/js/natale.js (date e interruttore li').
   Cambia solo colori, immagini di sfondo e decorazioni: testi, menu e struttura restano quelli del sito. */
html[data-stagione="natale"]{
  --abete:#1F4D3A; --oro-n:#B8860B; --oro-chiaro:#E8C766;
  --acc:var(--abete); --deco2:var(--abete); --basilico:var(--abete);
  --fondo-alt:#FBF1E4;
  --festone:repeating-linear-gradient(90deg,#B3261E 0 22px,#F5EBDD 22px 27px,#1F4D3A 27px 49px,#F5EBDD 49px 54px,#B8860B 54px 64px,#F5EBDD 64px 69px);
}
/* nastro festivo sotto la testata e sopra il footer */
html[data-stagione="natale"] .hdr::after{content:"";position:absolute;left:0;right:0;bottom:-5px;height:5px;background:var(--festone);pointer-events:none}
html[data-stagione="natale"] .ftr{border-top:6px solid transparent;border-image:var(--festone) 6}
/* titoli: il corsivo rosso resta, la parola evidenziata prende una stellina dorata */
html[data-stagione="natale"] .h2 em{position:relative}
html[data-stagione="natale"] .sec:not(#prenota) .h2 em::after{content:"";position:absolute;top:-.32em;right:-.62em;width:.5em;height:.5em;background:var(--oro-n);-webkit-mask:url(../bg/natale/stella.svg) center/contain no-repeat;mask:url(../bg/natale/stella.svg) center/contain no-repeat;opacity:.85}
html[data-stagione="natale"] #prenota .eyebrow{color:#fff}
html[data-stagione="natale"] .eyebrow{color:var(--abete)}

/* sfondi */
html[data-stagione="natale"] .hero{background:linear-gradient(180deg,rgba(245,235,221,.5) 0%,rgba(245,235,221,.2) 45%,rgba(245,235,221,.5) 100%),url(../img/sfondi/natale-golfo.webp) center 62%/cover no-repeat,var(--nero)}
html[data-stagione="natale"] #prenota,html[data-stagione="natale"] body[data-page="menu"] main > section.sec:last-of-type{background:linear-gradient(rgba(150,28,22,.84),rgba(150,28,22,.84)),url(../img/sfondi/natale-forno.webp) center 55%/cover no-repeat,var(--rosso)}
@media (max-width:980px){
  html[data-stagione="natale"] .hero{background-image:linear-gradient(180deg,rgba(245,235,221,.58) 0%,rgba(245,235,221,.3) 45%,rgba(245,235,221,.58) 100%),url(../img/sfondi/natale-golfo-m.webp);background-position:center,60% 70%}
  html[data-stagione="natale"] #prenota,html[data-stagione="natale"] body[data-page="menu"] main > section.sec:last-of-type{background-image:linear-gradient(rgba(150,28,22,.84),rgba(150,28,22,.84)),url(../img/sfondi/natale-forno-m.webp)}
}
/* decorazioni a linea: in parte rosse, in parte verde abete, qualcuna oro */
html[data-stagione="natale"] .deco-c3,html[data-stagione="natale"] .deco-c3n{background:var(--oro-n);opacity:.16}
html[data-stagione="natale"] #prenota .deco,html[data-stagione="natale"] body[data-page="menu"] main > section.sec:last-of-type .deco{background:#fff;opacity:.14}


/* ============ golfo innevato, ghirlande, palline, neve fitta ============ */
/* neve */
.neve{position:absolute;inset:0;z-index:0;overflow:hidden}
.neve i{position:absolute;top:-20px;width:var(--s,6px);height:var(--s,6px);border-radius:50%;background:#fff;box-shadow:0 0 0 1px rgba(110,130,160,.35),0 2px 6px rgba(70,80,110,.45);opacity:var(--o,.9);animation:nevica var(--d,12s) linear var(--r,0s) infinite}
.neve i.f{border-radius:0;box-shadow:none;background:#9DB6D2;-webkit-mask:url(../bg/natale/fiocco.svg) center/contain no-repeat;mask:url(../bg/natale/fiocco.svg) center/contain no-repeat}
@keyframes nevica{0%{transform:translate3d(0,-20px,0) rotate(0)}50%{transform:translate3d(var(--x,18px),50vh,0) rotate(160deg)}100%{transform:translate3d(0,105vh,0) rotate(320deg)}}
/* ghirlanda dipinta appesa sotto la testata, sopra "Prenota" e sopra il footer */
.ghirlanda{position:absolute;left:0;right:0;top:var(--hdr);height:clamp(58px,7.5vw,104px);z-index:2;background:url(../img/natale/ghirlanda.webp) center top/auto 100% repeat-x;filter:drop-shadow(0 4px 6px rgba(60,30,10,.18))}
.ghirlanda-sec,.ghirlanda-ftr{top:-6px}
.ghirlanda-ftr{height:clamp(48px,6vw,84px)}
html[data-stagione="natale"] .ftr{position:relative}
html[data-stagione="natale"] .hero{padding-top:calc(var(--hdr) + clamp(58px,7.5vw,104px) - 10px)}
html[data-stagione="natale"] .e404,html[data-stagione="natale"] main.legal{position:relative;overflow:hidden}
html[data-stagione="natale"] main.legal{padding-top:calc(var(--hdr) + clamp(58px,7.5vw,104px) + 30px)!important}
/* neve posata in fondo alla hero (stesso colore crema dello sfondo pagina, cosi non resta la striscia bianca) */
.cumulo{position:absolute;left:0;right:0;bottom:-1px;height:clamp(16px,2.6vw,34px);z-index:1;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 40' preserveAspectRatio='none'%3E%3Cpath d='M0 22C40 6 80 30 130 16S220 4 270 20 360 30 410 14 520 8 600 22V40H0Z' fill='%23F5EBDD'/%3E%3C/svg%3E") bottom/600px 100% repeat-x;filter:drop-shadow(0 -2px 3px rgba(120,90,60,.18))}
/* palline appese ai lati */
.appese{position:absolute;inset:0;z-index:1;overflow:hidden}
.pend{position:absolute;top:calc(var(--hdr) + 20px);width:var(--w,30px);transform-origin:50% 0;animation:dondola var(--t,4s) ease-in-out var(--dl,0s) infinite alternate}
.pend::before{content:"";display:block;width:1.5px;height:var(--l,60px);margin:0 auto;background:linear-gradient(#C9A227,rgba(140,100,40,.7))}
.pend svg{display:block;width:100%;height:auto;margin-top:-1px;filter:drop-shadow(0 3px 4px rgba(60,30,10,.25))}
.appese-sec{z-index:0;--rw:clamp(96px,13vw,190px)}
.appese-sec .pend{top:calc(var(--rw) * .1)}
@keyframes dondola{from{transform:rotate(-4deg)}to{transform:rotate(4deg)}}
/* rametto dipinto negli angoli alti delle sezioni */
.rametto{position:absolute;top:0;width:clamp(96px,13vw,190px);aspect-ratio:420/413;z-index:1;pointer-events:none;background:url(../img/natale/rametto.webp) left top/contain no-repeat;opacity:.95}
.rametto-l{left:0}
.rametto-r{right:0;transform:scaleX(-1)}
@media (max-width:700px){
  .ghirlanda{height:46px}
  html[data-stagione="natale"] .hero{padding-top:calc(var(--hdr) + 40px)}
  .pend{top:calc(var(--hdr) + 14px)}
  .appese-sec{--rw:78px}
  .rametto{width:78px;opacity:.9}
  .ghirlanda-ftr,.ghirlanda-sec{height:40px}
}
@media (prefers-reduced-motion:reduce){.neve{display:none}.pend{animation:none}}
@media print{.neve,.appese,.ghirlanda,.cumulo,.rametto{display:none}}
