/* Christmas edition: burgundy, warm paper, gold and snow. */
:root{--gold:#d5b67b}
header{position:sticky;border-bottom-color:#d5b67b66;isolation:isolate}
.nav{height:122px;position:relative}
.brand{display:flex;flex-direction:column;align-items:center;text-decoration:none;gap:7px}
.christmas-brand-note{font:300 italic 14px/1.1 var(--sans);color:#e9d7b8;letter-spacing:.13em}
.christmas-lights{position:absolute;inset:0 0 auto;height:30px;pointer-events:none;overflow:visible}
.christmas-lights svg{width:100%;height:25px;display:block}
.christmas-lights circle{r:2.5px;fill:var(--bulb);--bulb:#ffd281;filter:drop-shadow(0 0 3px var(--bulb));animation:festive-twinkle 1s ease-in-out infinite alternate}
.christmas-lights circle:nth-child(3n){--bulb:#ff9b8e;animation-delay:-.65s}
.christmas-lights circle:nth-child(3n + 1){--bulb:#fff7e2;animation-delay:-1.1s;animation-duration:1.25s}
@keyframes festive-twinkle{from{opacity:.35}to{opacity:1}}
.christmas-caption{text-align:center;font:300 italic 15px/1.4 var(--sans);text-transform:none;letter-spacing:.025em;margin:0 0 12px;color:#956d46}
.modulo{outline-color:#d5b67b88;box-shadow:0 12px 40px #46132518}
/* Keep the original illustrations. */
.lead:before{background-image:url('img/segno-pizza.svg');width:300px;height:300px;left:-220px;top:35px;transform:rotate(-22deg);opacity:.34}
.lead:after{background-image:url('img/rametto.svg');width:230px;height:290px;right:-210px;bottom:24px;transform:rotate(38deg);opacity:.31}
.modulo:before{mask-image:url('img/rametto.svg');-webkit-mask-image:url('img/rametto.svg');background:var(--red);opacity:.07}
.modulo:after{mask-image:url('img/segno-pizza.svg');-webkit-mask-image:url('img/segno-pizza.svg');width:104px;height:104px;transform:rotate(-18deg);opacity:.055}
.menu-section:before,.menu-section:after{mask-image:url('img/rametto.svg');-webkit-mask-image:url('img/rametto.svg');background-color:var(--red);width:150px;height:255px;opacity:.21}
.menu-box{border-top:1px solid #d5b67b99;border-bottom:1px solid #d5b67b66}
.menu-box:before,.menu-box:after{background-image:url('img/stella-natale.svg');width:65px;height:110px;opacity:.45;top:-1px;bottom:auto;transform:none}
.menu-box:before{left:16px}.menu-box:after{right:16px}
.category-open[data-menu]{position:relative;border-top:2px solid #b78b5655}
.category-open[data-menu=classiche]{--card-paper:#e9e1d6}
.category-open[data-menu=gourmet]{--card-paper:#e4c9c8}
.category-open[data-menu=focacce]{--card-paper:#e9dbbb}
.category-label:before{background:#a7804d88}
footer:after{background-image:url('img/rametto.svg');opacity:.18}
.christmas-wish{font:400 25px/1.4 var(--serif);text-align:center;color:#e9d7b8;margin:0 0 34px;padding-bottom:30px;border-bottom:1px solid #d5b67b44}
.return-booking{border-color:#d5b67b;box-shadow:0 5px 20px #32121a30}
/* A single loose string on the booking panel. */
.menu-box{overflow:visible}
.modulo{overflow:visible}
.menu-box:before{display:none}
#prenota>.booking-fairy-lights{position:absolute;left:-18px;top:-16px;z-index:3;width:240px;height:168px;pointer-events:none}
.booking-fairy-lights svg{display:block;width:100%;height:100%;overflow:visible}
.fairy-wire{fill:none;stroke:#b5997077;stroke-width:1}
.fairy-bulb{--bulb:#ffd58b;animation:festive-twinkle 1s var(--phase) ease-in-out infinite alternate}
.fairy-bulb path{fill:none;stroke:#bca16c;stroke-width:1}
.fairy-bulb ellipse{fill:var(--bulb);filter:drop-shadow(0 0 3px var(--bulb))}
.fairy-bulb-1{--bulb:#ffab97;animation-duration:1.2s}
.fairy-bulb-2{--bulb:#fff8e6;animation-duration:1.4s}
/* Soft piled snow rests above the edge and rounds naturally over the corner. */
.menu-box>.menu-snow-cap{position:absolute;right:-11px;top:-36px;z-index:4;width:205px;height:89px;background:url('img/neve-depositata.svg') top right/contain no-repeat;pointer-events:none}
/* Snowfall stays on red surfaces behind the content. */
header,.lead,footer{isolation:isolate}
.snow-field{position:absolute!important;inset:0;z-index:0!important;overflow:hidden;pointer-events:none;container-type:size;opacity:.65}
.snow-field i{position:absolute;left:var(--x);top:-8px;width:var(--size);height:var(--size);border-radius:50%;background:#fff7e8;opacity:.48;animation:snow-drift var(--duration) var(--delay) linear infinite}
@keyframes snow-drift{from{transform:translate3d(0,-12px,0)}to{transform:translate3d(var(--drift),calc(100cqh + 22px),0)}}
header>.nav,.lead>#prenota,footer>.footer-shell{position:relative;z-index:1}
header>.snow-field{opacity:.35}.menu-box>.snow-field{opacity:.65}
@media(max-width:760px){
 .nav{height:110px}.christmas-brand-note{font-size:12px}.brand{gap:6px}
 .christmas-caption{font-size:14px;margin-bottom:10px}
 .lead:before{width:150px;height:150px;left:-95px;top:14px;opacity:.27}
 .lead:after{width:120px;height:210px;right:-60px;bottom:0;opacity:.27}
 .menu-section:before,.menu-section:after{width:100px;height:170px;opacity:.18}
 .modulo:after{width:75px;height:75px}
 .menu-box:before,.menu-box:after{width:43px;height:72px;opacity:.36}
 .menu-box:before{left:5px}.menu-box:after{right:5px}
 .christmas-wish{font-size:22px;margin-bottom:25px;padding-bottom:24px}
 .menu-box>.menu-snow-cap{width:146px;height:64px;right:-8px;top:-26px}
 #prenota>.booking-fairy-lights{width:150px;height:105px;left:-10px;top:-10px}
 .snow-field i:nth-child(2n){display:none}.snow-field{opacity:.55}
}
@media(prefers-reduced-motion:reduce){.snow-field{display:none}.christmas-lights circle,.fairy-bulb{animation:none;opacity:.85}}

/* Crisp snow contours: gradients give volume without softening the silhouette. */
.menu-snow-cap{image-rendering:auto}
/* The hat lands on the final o of Rosso, then the short intro closes. */
.brand-intro{animation:brandIntroOut .35s 1.65s ease forwards}
.intro-lockup{position:relative;width:min(340px,66vw)}
.brand-intro .intro-lockup>img{width:100%;height:auto}
.intro-santa-hat{position:absolute;left:85%;top:-31%;width:20%;aspect-ratio:100/85;background:url('img/cappellino-natale.svg') center/contain no-repeat;transform-origin:50% 85%;animation:hat-hop .6s .5s cubic-bezier(.22,.7,.35,1) both}
@keyframes hat-hop{
 0%{opacity:0;transform:translateY(-65px) rotate(-24deg) scale(.8)}
 18%{opacity:1}
 58%{opacity:1;transform:translateY(3px) rotate(-2deg) scale(1.03,.96)}
 76%{transform:translateY(-9px) rotate(-12deg) scale(1)}
 91%{transform:translateY(1px) rotate(-6deg)}
 100%{opacity:1;transform:translateY(0) rotate(-8deg) scale(1)}
}
#prenota{animation-delay:1.7s}
@media(prefers-reduced-motion:reduce){.intro-santa-hat{animation:none;transform:rotate(-8deg)}.brand-intro{animation-delay:.45s}#prenota{animation-delay:.45s}}

/* Persistent header hat uses the same relative anchor as the intro. */
.header-logo-lockup{display:block;position:relative;width:180px}
.header-logo-lockup>img{width:100%}
.header-santa-hat{position:absolute;left:85%;top:-31%;width:20%;aspect-ratio:100/85;background:url('img/cappellino-natale.svg') center/contain no-repeat;transform:rotate(-8deg);pointer-events:none}
/* The opaque paper hides the centre of the wire, leaving the loose ends visible. */
#prenota{position:relative;isolation:isolate}
#prenota>.modulo{position:relative;z-index:1}
#prenota>.booking-fairy-lights{position:absolute;left:-28px;top:-29px;width:260px;height:180px;z-index:0;pointer-events:none}
.fairy-wire{stroke:#d9bd92;stroke-opacity:.75;stroke-width:1.15}
.fairy-bulb ellipse{filter:drop-shadow(0 0 3px var(--bulb)) drop-shadow(0 0 6px var(--bulb))}
@keyframes festive-twinkle{from{opacity:.6}to{opacity:1}}
/* The snow's rightmost contour and supporting plane meet the panel exactly. */
.menu-box>.menu-snow-cap{right:-1px;top:-40px;width:205px;height:89.13px}
@media(max-width:760px){
 .header-logo-lockup{width:158px}
 #prenota>.booking-fairy-lights{left:-16px;top:-19px;width:170px;height:117.7px}
 .menu-box>.menu-snow-cap{right:-1px;top:-28.5px;width:146px;height:63.48px}
}

/* The two ends now meet the panel edge; no free-floating cable. */
#prenota>.booking-fairy-lights{left:-28px;top:-29px;width:260px;height:180px}
.fairy-wire{stroke-width:1;stroke-opacity:.8}
@media(max-width:760px){#prenota>.booking-fairy-lights{left:-18.31px;top:-18.96px;width:170px;height:117.7px}}

/* A few small finishing details, leaving the central panels clear. */
.christmas-brand-note:before,.christmas-brand-note:after{content:'';display:inline-block;width:6px;height:6px;margin:0 10px 1px;background:#d5b67b;clip-path:polygon(50% 0,62% 38%,100% 50%,62% 62%,50% 100%,38% 62%,0 50%,38% 38%);opacity:.85}
.season-snowflake{position:absolute;background:url('img/fiocco-natale.svg') center/contain no-repeat;pointer-events:none;z-index:0}
.season-snowflake-one{width:37px;height:37px;right:-16px;top:17px;opacity:.38;transform:rotate(12deg)}
.season-snowflake-two{width:24px;height:24px;left:-42px;bottom:28px;opacity:.28;transform:rotate(-8deg)}
.christmas-wish:before{content:'';display:block;width:90px;height:24px;margin:0 auto 13px;background:url('img/stelle-feste.svg') center/contain no-repeat;opacity:.85}
@media(max-width:760px){.season-snowflake-one{width:26px;height:26px;right:-7px;top:4px;opacity:.3}.season-snowflake-two{width:18px;height:18px;left:-9px;bottom:9px;opacity:.25}.christmas-brand-note:before,.christmas-brand-note:after{margin-left:8px;margin-right:8px}.christmas-wish:before{margin-bottom:10px}}
