/* =========================================================
   L'Artigiano della Pizza — style.css
   Palette: panna #f6f2ec · blu #3e79a3 · beige #c8b6a6 · ink #2a2a2a
   Font: SF Pro Compressed (Black 900 titoli · Bold 700 · Semibold 600 testi)
   ========================================================= */

@font-face { font-family: "SF Compressed"; src: url("../assets/fonts/SFCompressed-Semibold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "SF Compressed"; src: url("../assets/fonts/SFCompressed-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "SF Compressed"; src: url("../assets/fonts/SFCompressed-Black.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }

:root {
  --cream: #f6f2ec;
  --cream-2: #efe9e0;
  --cream-3: #e7dfd3;
  --blue: #3e79a3;
  --blue-deep: #2f5f82;
  --beige: #c8b6a6;
  --ink: #2a2a2a;
  --ink-2: #4a4a4a;
  --ink-3: #7a7672;
  --line: rgba(42,42,42,.12);

  --font: "SF Compressed", "SF Pro Display", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 80px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --radius: 22px;
  --overlap: 48px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
main { overflow-x: clip; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font);
  font-weight: 600;
  font-size: clamp(17px, .55vw + 11px, 22px);
  line-height: 1.45;
  letter-spacing: .012em;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.is-locked { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3 { font-weight: 900; line-height: .95; letter-spacing: -.005em; }
strong { font-weight: 700; }
em { font-style: normal; color: var(--blue); }
.thin { font-weight: 600; color: var(--ink); }
.blue { color: var(--blue); }
.muted { color: var(--ink-3); }

::selection { background: var(--blue); color: var(--cream); }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 14px;
  padding: 14px 22px 13px; border-radius: 999px;
  font-weight: 700; font-size: 1rem; letter-spacing: .02em; line-height: 1;
  border: 1.5px solid transparent; overflow: hidden; isolation: isolate;
  transition: color .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease);
}
.btn span { position: relative; z-index: 1; }
.btn__more { font-style: normal; }
.btn i {
  position: relative; z-index: 1; width: 20px; height: 20px; flex: 0 0 auto;
  background: currentColor; transition: transform .6s var(--ease);
  -webkit-mask: var(--btn-icon) center / contain no-repeat; mask: var(--btn-icon) center / contain no-repeat;
}
.btn--blue, .btn--dark { --btn-icon: url("../assets/img/icon-pizza.svg"); }
.btn--ghost { --btn-icon: url("../assets/img/icon-fiore.svg"); }
.btn--light { --btn-icon: url("../assets/img/icon-sole.svg"); }
.btn::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 0;
  transform: translateY(101%); transition: transform .5s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn:hover i { transform: rotate(120deg) scale(1.15); }
.btn:active { transform: scale(.97); }

.btn--blue { background: var(--blue); color: var(--cream); }
.btn--blue::before { background: var(--ink); }
.btn--dark { background: var(--ink); color: var(--cream); }
.btn--dark::before { background: var(--blue); }
.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost::before { background: var(--ink); }
.btn--ghost:hover { color: var(--cream); }
/* collegamenti esterni: freccia al posto dell'ornamento */
.btn[target="_blank"] i {
  -webkit-mask: none; mask: none; background: none;
  width: auto; height: auto; font-size: 1.15rem; line-height: 1; font-style: normal;
}
.btn[target="_blank"] i::before { content: "\2197"; }
.btn[target="_blank"]:hover i { transform: translate(3px, -3px) rotate(0deg) scale(1); }

.btn--light { border-color: var(--cream); color: var(--cream); }
.btn--light::before { background: var(--cream); }
.btn--light:hover { color: var(--ink); }
.btn--big { padding: 20px 30px 19px; font-size: 1.15rem; }

.round {
  width: 56px; height: 56px; border-radius: 50%; border: 1.5px solid var(--ink);
  font-size: 1.3rem; display: grid; place-items: center;
  transition: background .35s var(--ease), color .35s var(--ease), transform .35s var(--ease);
}
.round:hover { background: var(--ink); color: var(--cream); }
.round:active { transform: scale(.94); }

.link { position: relative; font-weight: 700; color: var(--blue); }
.link::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.link:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Intro ---------- */
.intro {
  position: fixed; inset: 0; z-index: 1000; background: var(--cream);
  display: grid; place-items: center;
  transition: transform 1s var(--ease-io);
}
.intro.is-done { transform: translateY(-100%); pointer-events: none; }
.intro.is-quick { transition: opacity .35s var(--ease); transform: none; }
.intro.is-quick.is-done { opacity: 0; transform: none; }
.intro__inner { display: grid; gap: 34px; justify-items: center; }
.intro__pct { margin-top: -22px; font-size: .78rem; font-weight: 700; letter-spacing: .14em; color: var(--ink-3); font-variant-numeric: tabular-nums; opacity: 0; animation: introMark .6s var(--ease) .4s forwards; }
.intro__mark { width: clamp(180px, 26vw, 300px); opacity: 0; transform: translateY(14px); animation: introMark .9s var(--ease) .15s forwards; }
.intro__line { width: 140px; height: 2px; background: var(--line); overflow: hidden; border-radius: 2px; }
.intro__line span { display: block; height: 100%; width: 100%; background: var(--blue); transform: translateX(-100%); }
@keyframes introMark { to { opacity: 1; transform: none; } }

/* ---------- Nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 960; padding: 18px var(--gutter); pointer-events: none; }
.nav__bar {
  pointer-events: auto; position: relative;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px;
  padding: 12px 28px 12px 22px; border-radius: 999px;
  background: rgba(255,255,255,0); border: 1.5px solid rgba(42,42,42,0);
  transition: background .6s var(--ease), border-color .6s var(--ease), padding .6s var(--ease), box-shadow .6s var(--ease), transform .6s var(--ease);
}
.nav.is-scrolled .nav__bar {
  background: rgba(255,255,255,.92); border-color: rgba(42,42,42,.08);
  backdrop-filter: blur(20px) saturate(1.3); -webkit-backdrop-filter: blur(20px) saturate(1.3);
  box-shadow: 0 24px 60px -30px rgba(42,42,42,.35);
  padding: 18px 36px 18px 34px;
}
.nav.is-scrolled { padding-top: 22px; }
.nav.is-hidden .nav__bar { transform: translateY(-150%); transition-duration: .6s; transition-timing-function: cubic-bezier(.5,0,.75,0); }   /* esce morbida */

/* logo impilato a sinistra */
.nav__logo { display: grid; justify-items: center; justify-self: start; gap: 5px; --w: 150px; transition: gap .6s var(--ease); }
.nav__icons { display: flex; gap: calc(var(--w) * .04); }
.nav__icons img { height: calc(var(--w) * .15); width: auto; transition: transform 1s var(--ease), height .6s var(--ease); transform-origin: 50% 50%; }
.nav__word { width: var(--w); height: auto; transition: width .6s var(--ease); }
/* allo scroll: il logo si restringe e le tre icone fanno un giro completo, una dopo l'altra */
.nav.is-scrolled .nav__logo { --w: 104px; gap: 4px; }
.nav.is-scrolled .nav__icons img { transform: rotate(360deg); }
.nav.is-scrolled .nav__icons img:nth-child(2) { transition-delay: .08s; }
.nav.is-scrolled .nav__icons img:nth-child(3) { transition-delay: .16s; }
/* al ritorno in cima girano indietro */
.nav:not(.is-scrolled) .nav__icons img { transform: rotate(0deg); }
.nav:not(.is-scrolled) .nav__icons img:nth-child(1) { transition-delay: .16s; }
.nav:not(.is-scrolled) .nav__icons img:nth-child(2) { transition-delay: .08s; }
/* passando col mouse sul logo le icone ondeggiano */
.nav__logo:hover .nav__icons img { animation: iconWiggle 1.2s var(--ease) both; }
.nav__logo:hover .nav__icons img:nth-child(2) { animation-delay: .1s; }
.nav__logo:hover .nav__icons img:nth-child(3) { animation-delay: .2s; }
@keyframes iconWiggle { 0% { transform: rotate(var(--r, 0deg)) scale(1); } 40% { transform: rotate(calc(var(--r, 0deg) + 25deg)) scale(1.18); } 100% { transform: rotate(calc(var(--r, 0deg) + 360deg)) scale(1); } }
.nav.is-scrolled .nav__icons img { --r: 360deg; }

/* voci centrali, grandi */
.nav__links { display: flex; justify-content: center; gap: clamp(22px, 2.6vw, 40px); }
.nav__links a { font-weight: 900; font-size: clamp(1.25rem, 1.5vw, 1.6rem); letter-spacing: .01em; line-height: 1; }

/* destra: prenota + menù digitale */
.nav__right { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.nav__menu-link { }

/* effetto roll sui link */
.roll { position: relative; display: inline-block; overflow: hidden; vertical-align: top; line-height: 1.15; }
.roll > span { display: block; transition: transform .5s var(--ease); }
.roll::after { content: attr(data-text); position: absolute; left: 0; top: 100%; display: block; color: var(--blue); transition: transform .5s var(--ease); }
.roll:hover > span, .is-active.roll > span { transform: translateY(-100%); }
.roll:hover::after, .is-active.roll::after { transform: translateY(-100%); }

/* telefono + hamburger (solo mobile) */
.nav__phone { display: none; height: 40px; padding: 0 16px; border-radius: 999px; background: var(--blue-deep); color: var(--cream); place-items: center; font-weight: 700; font-size: .95rem; letter-spacing: .02em; line-height: 1; }
.nav__menu { display: none; padding: 0; }
.nav__menu-ico { position: relative; display: block; width: 40px; height: 40px; }
.nav__menu-ico span { position: absolute; left: 9px; right: 9px; height: 2px; border-radius: 2px; background: var(--ink); transition: top .45s var(--ease), transform .45s var(--ease), opacity .3s var(--ease); }
.nav__menu-ico span:nth-child(1) { top: 13px; } .nav__menu-ico span:nth-child(2) { top: 19px; } .nav__menu-ico span:nth-child(3) { top: 25px; }
.nav.is-menu .nav__menu-ico span { top: 19px; }
.nav.is-menu .nav__menu-ico span:nth-child(1) { transform: rotate(45deg); }
.nav.is-menu .nav__menu-ico span:nth-child(2) { opacity: 0; transform: scaleX(.2); }
.nav.is-menu .nav__menu-ico span:nth-child(3) { transform: rotate(-45deg); }
.nav.is-menu .nav__bar { transform: none; background: rgba(255,255,255,.96); border-color: rgba(42,42,42,.08); backdrop-filter: blur(20px) saturate(1.3); -webkit-backdrop-filter: blur(20px) saturate(1.3); box-shadow: 0 24px 60px -30px rgba(42,42,42,.35); }

/* stato aperto/chiuso (nella hero) */

/* ---------- Menu mobile: foglio che scende ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 950; overflow: hidden;
  background: #e4d8c9; color: var(--blue-deep);
  transform: translateY(-101%); visibility: hidden;
  transition: transform .62s var(--ease-io), visibility 0s .62s;
  will-change: transform;
}
.overlay.is-open { transform: none; visibility: visible; transition: transform .62s var(--ease-io); }
.overlay::before {                                   /* texture del logo, appena percettibile */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("../assets/img/texture.svg") center / 300px 200px repeat; opacity: .07;
}
.overlay__inner { position: relative; height: 100%; display: flex; flex-direction: column; gap: 18px; padding: 108px 22px 26px; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; text-align: center; }
.overlay__head, .overlay__preview { display: none; }

.overlay__nav { display: flex; flex-direction: column; align-items: center; }
.overlay__nav a { display: flex; align-items: baseline; justify-content: center; gap: 12px; padding: 12px 0; font-weight: 900; font-size: clamp(1.8rem, 7.8vw, 2.4rem); line-height: 1; letter-spacing: -.01em; color: var(--blue); overflow: hidden; }
.overlay__nav a small { display: none; }        /* numeri nascosti: con il menu centrato toglievano l'asse ai titoli */
.overlay__nav a em { font-style: normal; font-size: .55em; vertical-align: .3em; margin-left: .1em; }
.overlay__nav a span { display: inline-block; transform: translateY(115%); transition: transform .7s var(--ease); }
.overlay__nav a.is-active { color: var(--blue-deep); }
.overlay__nav a:active span { opacity: .6; }
.overlay.is-open .overlay__nav a span { transform: none; }
.overlay.is-open .overlay__nav a:nth-child(1) span { transition-delay: .15s; }
.overlay.is-open .overlay__nav a:nth-child(2) span { transition-delay: .18s; }
.overlay.is-open .overlay__nav a:nth-child(3) span { transition-delay: .21s; }
.overlay.is-open .overlay__nav a:nth-child(4) span { transition-delay: .24s; }
.overlay.is-open .overlay__nav a:nth-child(5) span { transition-delay: .27s; }
.overlay.is-open .overlay__nav a:nth-child(6) span { transition-delay: .30s; }
.overlay.is-open .overlay__nav a:nth-child(7) span { transition-delay: .33s; }
.overlay.is-open .overlay__nav a:nth-child(8) span { transition-delay: .36s; }
.overlay.is-open .overlay__nav a:nth-child(9) span { transition-delay: .39s; }

.overlay__foot { margin-top: auto; display: grid; justify-items: center; gap: 14px; opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.overlay.is-open .overlay__foot { opacity: 1; transform: none; transition-delay: .34s; }
.overlay__call { display: inline-flex; margin: 0; }
.overlay__info { display: grid; justify-items: center; gap: 12px; }
.overlay__row { display: grid; justify-items: center; gap: 3px; font-size: .95rem; font-weight: 700; color: var(--blue-deep); }
.overlay__row--tel { display: none; }
.overlay__label { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); opacity: .75; }
.overlay__foot a:not(.btn) { color: var(--blue-deep); }   /* il bottone tiene i suoi colori */
.overlay__foot a:active { opacity: .6; }
.overlay__call { color: var(--cream); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; padding: calc(120px + 4vh) var(--gutter) 60px; display: flex; flex-direction: column; justify-content: center; }
.hero__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.hero__title { font-size: clamp(4.2rem, min(8vw, 15vh), 11.5rem); line-height: .88; letter-spacing: -.012em; margin-bottom: 36px; }
.line { display: block; overflow: hidden; padding-bottom: .04em; margin-bottom: -.04em; }
.word { display: inline-block; transform: translateY(110%); will-change: transform; }
.is-in .word { transform: none; transition: transform 1.1s var(--ease); }
.is-in .line:nth-child(2) .word { transition-delay: .1s; }
.is-in .line:nth-child(3) .word { transition-delay: .2s; }
h2.is-split .word { transition: transform 1.2s cubic-bezier(.16,1,.3,1); }
h2.is-split.is-in .word, .is-in h2.is-split .word { transform: none; }
h2.is-split .line:nth-child(2) .word { transition-delay: .12s; }
h2.is-split .line:nth-child(3) .word { transition-delay: .24s; }
/* sfondi che si tingono allo scroll */
[data-tint] { transition: background-color 1.2s ease; }
[data-tint].is-tinted { background-color: var(--tint); }
.hero__lead { max-width: 560px; font-size: clamp(1.05rem, 1.1vw, 1.35rem); line-height: 1.5; color: var(--ink-2); margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__media { position: relative; width: min(100%, calc((100svh - 170px) * .667)); margin-left: auto; }
.hero__frame {
  aspect-ratio: 2 / 3; width: 100%; border-radius: var(--radius); overflow: hidden;
  background: var(--cream-3);
  clip-path: inset(0 0 100% 0 round var(--radius));
  transition: clip-path 1.4s var(--ease) .3s;
}
.is-in .hero__frame { clip-path: inset(0 0 0 0 round var(--radius)); }
.hero__frame img { width: 100%; height: 100%; object-fit: cover; will-change: transform; transform: scale(1.06); transition: transform 1.6s var(--ease) .3s; }
.is-in .hero__frame img { transform: scale(1); }
/* video della hero: sopra la foto, compare in dissolvenza solo quando sta davvero girando */
.hero__frame { position: relative; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; opacity: 0; transform: scale(1.06); transition: opacity .9s var(--ease), transform 1.6s var(--ease) .3s; }
.is-in .hero__video { transform: scale(1); }
.hero__video.is-playing { opacity: 1; }
.hero__video::-webkit-media-controls,
.hero__video::-webkit-media-controls-panel,
.hero__video::-webkit-media-controls-start-playback-button,
.hero__video::-webkit-media-controls-overlay-play-button { display: none !important; -webkit-appearance: none; }

.hero__badge {
  position: absolute; left: -46px; bottom: 44px; width: 148px; height: 148px;
  display: grid; place-items: center; border-radius: 50%; background: var(--red);
  box-shadow: 0 20px 50px -20px rgba(183,22,42,.6);
  opacity: 0; transform: scale(.6); transition: opacity .8s var(--ease) 1s, transform .8s var(--ease) 1s;
}
.is-in .hero__badge { opacity: 1; transform: none; }
.hero__badge-ring { position: absolute; inset: 8px; animation: spin 24s linear infinite; }
.hero__badge-ring text { font-family: var(--font); font-weight: 700; font-size: 17.5px; letter-spacing: .12em; fill: #fff; text-transform: uppercase; }
.hero__badge-icon { width: 46px; }
@keyframes spin { to { transform: rotate(360deg); } }



/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-top: 1.5px solid var(--line); border-bottom: 1.5px solid var(--line); padding: 18px 0; background: #fff; width: 106%; margin: 34px 0 34px -3%; transform: rotate(-2deg); box-shadow: 0 18px 40px -30px rgba(42,42,42,.35); position: relative; z-index: 2; }
.marquee__track { display: flex; width: max-content; --dist: 0px; --dur: 40s; animation: marquee var(--dur) linear infinite; }
.marquee__group { display: flex; align-items: center; gap: 48px; padding-right: 48px; flex: 0 0 auto; }
.marquee__group span { font-weight: 900; font-size: clamp(1.4rem, 2vw, 2.2rem); white-space: nowrap; letter-spacing: .01em; }
.marquee__group img { height: 30px; width: auto; opacity: .85; }
@keyframes marquee { to { transform: translateX(calc(var(--dist) * -1)); } }

/* ---------- Texture con le icone del logo ---------- */
.has-texture { position: relative; isolation: isolate; }
.has-texture::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("../assets/img/texture.svg") center / 300px 200px repeat;
  opacity: .13;
  /* sfuma verso tutti i bordi: niente icone tagliate ai lati dello schermo */
  -webkit-mask-image: radial-gradient(75% 75% at 50% 50%, #000 25%, transparent 100%);
  mask-image: radial-gradient(75% 75% at 50% 50%, #000 25%, transparent 100%);
}
.contatti.has-texture::before { opacity: .11; -webkit-mask-image: radial-gradient(70% 60% at 50% 15%, #000 20%, transparent 100%); mask-image: radial-gradient(70% 60% at 50% 15%, #000 20%, transparent 100%); }

/* ---------- Manifesto ---------- */
.manifesto { padding: clamp(90px, 14vw, 200px) var(--gutter); }
.manifesto__text { max-width: 1250px; margin: 0 auto; font-weight: 900; font-size: clamp(2.2rem, 4.4vw, 5.6rem); line-height: 1.02; letter-spacing: -.005em; text-wrap: balance; }
.manifesto__text .w { display: inline-block; opacity: .12; transition: opacity .6s var(--ease); }
.manifesto__text .w.is-lit { opacity: 1; }

/* ---------- Section head ---------- */
.section-head { display: grid; gap: 10px; margin-bottom: clamp(40px, 6vw, 80px); }
.section-head__num { font-size: .85rem; font-weight: 700; letter-spacing: .16em; color: var(--blue); }
.section-head__num::before { content: "— "; }
.section-head h2 { font-size: clamp(3.2rem, 6.2vw, 8rem); line-height: .9; letter-spacing: -.01em; color: var(--blue); }
.premi .section-head h2 { color: var(--cream); }
.section-head__sub { max-width: 620px; color: var(--ink-2); font-size: 1.1rem; margin-top: 14px; }
.section-head--center { text-align: center; justify-items: center; }
.section-head--wide { padding: 0 var(--gutter); }

/* ---------- Storia ---------- */
.storia { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(30px, 6vw, 110px); padding: calc(clamp(70px, 9vw, 130px) + var(--overlap)) var(--gutter) clamp(90px, 12vw, 180px); margin-top: calc(-1 * var(--overlap)); align-items: start; background: #fff; border-radius: 48px 48px 0 0; }
.storia__sticky { position: sticky; top: 110px; }
.storia__portrait { border-radius: var(--radius); overflow: hidden; position: relative; aspect-ratio: 3 / 4; width: min(100%, calc((100svh - 150px) * .75)); }
.storia__portrait img { width: 100%; height: 100%; object-fit: cover; }
/* video del ritratto: avanza e torna indietro con lo scroll (main.js); finché non è pronto resta la foto */
.storia__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; opacity: 0; transition: opacity .6s var(--ease); }
.storia__video.is-ready { opacity: 1; }
.storia__video::-webkit-media-controls,
.storia__video::-webkit-media-controls-start-playback-button,
.storia__video::-webkit-media-controls-overlay-play-button { display: none !important; -webkit-appearance: none; }
.storia__portrait figcaption {
  position: absolute; left: 22px; bottom: 22px; right: 22px;
  padding: 16px 20px; border-radius: 14px; background: rgba(246,242,236,.9); backdrop-filter: blur(8px);
  font-size: .95rem; color: var(--ink-2); line-height: 1.3;
}
.storia__portrait figcaption span { display: block; font-weight: 900; font-size: 1.5rem; color: var(--ink); }
.storia__content { padding-top: 20px; }
.chapter { display: grid; grid-template-columns: 70px 1fr; gap: 10px 20px; padding: 40px 0; border-top: 1.5px solid var(--line); }
.chapter__num { display: grid; align-content: start; padding-top: 4px; }
.chapter__num img { width: 44px; height: auto; }
.chapter__num--team img { width: 76px; }
.chapter h3 { font-size: clamp(2rem, 2.8vw, 3.2rem); margin-bottom: 14px; }
.chapter p { grid-column: 2; color: var(--ink-2); max-width: 560px; }
.motto { margin-top: 40px; padding: 44px 48px; border-radius: var(--radius); background: var(--blue); color: var(--cream); position: relative; overflow: hidden; }
.motto::before { content: "“"; position: absolute; right: 22px; top: -30px; font-size: 14rem; font-weight: 900; line-height: 1; opacity: .12; }
.motto p { font-weight: 900; font-size: clamp(1.7rem, 2.1vw, 2.5rem); line-height: 1.08; margin-bottom: 18px; text-wrap: balance; }
.motto cite { font-style: normal; font-weight: 700; letter-spacing: .08em; opacity: .85; }

/* ---------- Filosofia ---------- */
.filosofia { padding: 0 var(--gutter) clamp(90px, 12vw, 180px); background: #fff; }
.filosofia__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar { padding: 44px 36px; border-radius: var(--radius); background: var(--cream-2); transition: transform .6s var(--ease), background .6s var(--ease); }
.pillar:hover { transform: translateY(-6px); background: var(--cream-3); }
.pillar img { height: 74px; width: auto; margin-bottom: 30px; transition: transform .8s var(--ease); }
.pillar:hover img { transform: rotate(18deg); }
.pillar h3 { font-size: 2.2rem; margin-bottom: 12px; }
.pillar p { color: var(--ink-2); }

/* ---------- Pizze ---------- */
.pizze { position: relative; z-index: 1; padding: calc(clamp(60px, 8vw, 120px) + var(--overlap)) 0 clamp(90px, 12vw, 180px); margin-top: calc(-1 * var(--overlap)); background: var(--cream-2); border-radius: 48px 48px 0 0; }
.scroller { overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-padding-left: var(--gutter); scrollbar-width: none; cursor: grab; padding: 20px var(--gutter) 60px; margin: -20px 0 -30px; }  /* spazio per ombra e sollevamento al passaggio */
.scroller::-webkit-scrollbar { display: none; }
.scroller.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.scroller__track { display: flex; gap: 22px; align-items: stretch; width: max-content; padding-bottom: 8px; user-select: none; -webkit-user-select: none; }
.scroller img, .reel__track img, .reel__track a { -webkit-user-drag: none; user-select: none; }
.card { color: inherit; text-decoration: none; flex: 0 0 auto; width: clamp(260px, 26vw, 360px); scroll-snap-align: start; display: flex; flex-direction: column; background: #fff; border-radius: 24px; padding: 10px 10px 0; box-shadow: 0 20px 40px -30px rgba(42,42,42,.35); transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.card:hover { transform: translateY(-6px); box-shadow: 0 34px 60px -30px rgba(42,42,42,.45); }
.card figure { position: relative; aspect-ratio: 5 / 4; border-radius: 16px; overflow: hidden; background: var(--cream-3); }
.card figure img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.01); transition: transform 1s var(--ease); }
.card:hover figure img { transform: scale(1.07); }
.card__body { padding: 18px 12px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 2px; }
.card h3 { font-size: 2rem; margin-bottom: 2px; }
.card p { font-size: .98rem; color: var(--ink-2); line-height: 1.4; padding-top: 10px; border-top: 1.5px solid var(--line); margin-top: 6px; }
.pizze__foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 40px var(--gutter) 0; }
.scroller__nav { display: flex; gap: 10px; }

/* ---------- Reel Instagram ---------- */
.reel { padding: clamp(90px, 12vw, 160px) 0 clamp(110px, 14vw, 200px); background: #fff; overflow: hidden; }
.reel__scroller { overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-padding-left: var(--gutter); scrollbar-width: none; cursor: grab; padding: 10px var(--gutter) 70px; margin-bottom: -40px; }
.reel__scroller::-webkit-scrollbar { display: none; }
.reel__scroller.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.reel__track { display: flex; gap: 22px; width: max-content; align-items: center; user-select: none; -webkit-user-select: none; }
.reelcard {
  position: relative; flex: 0 0 auto; width: clamp(220px, 19vw, 290px); aspect-ratio: 9 / 16; border-radius: 30px; overflow: hidden;
  background: var(--ink); scroll-snap-align: start; box-shadow: 0 30px 60px -30px rgba(42,42,42,.5);
  transform: scale(var(--s, 1)); transition: transform .5s var(--ease), box-shadow .5s var(--ease); will-change: transform;
}
.reelcard img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.reelcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,0) 50%, rgba(0,0,0,.25) 100%); }
.reelcard:hover img { transform: scale(1.06); }
.reelcard__play { position: absolute; left: 50%; top: 50%; z-index: 2; width: 66px; height: 66px; margin: -33px 0 0 -33px; border-radius: 50%; background: rgba(246,242,236,.92); backdrop-filter: blur(6px); transition: transform .5s var(--ease), background .4s var(--ease); }
.reelcard__play::after { content: ""; position: absolute; left: 55%; top: 50%; transform: translate(-50%, -50%); border-left: 20px solid var(--ink); border-top: 12px solid transparent; border-bottom: 12px solid transparent; transition: border-left-color .4s; }
.reelcard:hover .reelcard__play { transform: scale(1.12); background: var(--blue); }
.reelcard:hover .reelcard__play::after { border-left-color: var(--cream); }
.reelcard__cap { position: absolute; left: 20px; right: 20px; bottom: 20px; z-index: 2; color: var(--cream); font-weight: 900; font-size: 1.35rem; line-height: 1.05; display: grid; gap: 6px; }
.reelcard__cap small { font-weight: 700; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(246,242,236,.75); display: inline-flex; align-items: center; gap: 8px; }
.reelcard__cap small::before { content: ""; width: 14px; height: 14px; border-radius: 4px; border: 1.8px solid currentColor; box-shadow: inset 0 0 0 2.5px transparent; background: radial-gradient(circle at 50% 50%, currentColor 2.2px, transparent 2.6px); }
/* maschera Instagram sui reel */
.reelcard::after { background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 55%, rgba(0,0,0,.6) 100%); }
.igm { position: absolute; inset: 0; z-index: 3; color: #fff; font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif; pointer-events: none; text-shadow: 0 1px 6px rgba(0,0,0,.35); }
.igm__top { position: absolute; top: 16px; left: 18px; right: 18px; display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: .95rem; }
.igm__rail { position: absolute; right: 12px; bottom: 74px; display: grid; gap: 16px; justify-items: center; font-size: .72rem; font-weight: 600; }
.igm__rail > span { display: grid; justify-items: center; gap: 3px; }
.igm__rail svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.9; filter: drop-shadow(0 1px 4px rgba(0,0,0,.35)); }
.igm__heart { pointer-events: auto; cursor: pointer; transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
.igm__heart.is-on { transform: scale(1.15); }
.igm__heart.is-on svg { fill: #ff3040; stroke: #ff3040; }
.igm__bottom { position: absolute; left: 12px; right: 12px; bottom: 16px; display: grid; gap: 7px; font-size: .8rem; }
.igm__user { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: .68rem; white-space: nowrap; }
.igm__user img { width: 30px; height: 30px; flex: none; border-radius: 50%; background: #fff; padding: 3px; box-sizing: border-box; object-fit: contain; box-shadow: 0 1px 6px rgba(0,0,0,.25); }
.igm__follow { pointer-events: auto; cursor: pointer; font-style: normal; font-size: .66rem; background: var(--blue); color: #fff; text-shadow: none; border-radius: 7px; padding: 3px 8px; margin-left: 2px; }
.igm__cap { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.igm__big { position: absolute; left: 50%; top: 50%; width: 90px; height: 90px; margin: -45px; fill: #fff; opacity: 0; filter: drop-shadow(0 4px 14px rgba(0,0,0,.35)); }
.igm__big.pop { animation: igpop .9s ease both; }
@media (max-width: 860px) { .igm__user { font-size: .6rem; gap: 4px; } .igm__user img { width: 26px; height: 26px; padding: 2px; } .igm__follow { font-size: .58rem; padding: 2px 6px; } .igm__bottom { left: 10px; right: 8px; } }
@keyframes igpop { 0% { opacity: 0; transform: scale(.3); } 25% { opacity: 1; transform: scale(1.1); } 45% { transform: scale(.95); } 70% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: translateY(-20px); } }
.reel__foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 10px var(--gutter) 0; }

/* modal reel */
.reelbox { position: fixed; inset: 0; z-index: 985; background: rgba(28,26,24,.96); display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility 0s .5s; }
.reelbox.is-open { opacity: 1; visibility: visible; transition: opacity .5s var(--ease); }
.reelbox__inner { display: flex; align-items: center; gap: clamp(24px, 4vw, 60px); padding: 20px; }
.reelbox__phone { width: min(400px, 88vw); aspect-ratio: 9 / 16.6; max-height: 88vh; border-radius: 34px; overflow: hidden; background: #000; box-shadow: 0 40px 100px -30px rgba(0,0,0,.8); transform: translateY(20px) scale(.96); transition: transform .6s var(--ease); }
.reelbox.is-open .reelbox__phone { transform: none; }
.reelbox__phone iframe { width: 100%; height: 100%; border: 0; display: block; }
.reelbox__side { color: var(--cream); display: grid; gap: 14px; max-width: 320px; }
.reelbox__label { font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--beige); }
.reelbox__side h3 { font-size: clamp(2rem, 2.8vw, 3rem); line-height: 1; }
.reelbox__close { position: absolute; top: 22px; right: 22px; width: 54px; height: 54px; border-radius: 50%; border: 1.5px solid rgba(246,242,236,.35); transition: background .4s var(--ease); }
.reelbox__close span { position: absolute; left: 17px; right: 17px; top: 50%; height: 1.5px; background: var(--cream); }
.reelbox__close span:nth-child(1) { transform: rotate(45deg); } .reelbox__close span:nth-child(2) { transform: rotate(-45deg); }
.reelbox__close:hover { background: var(--blue); border-color: var(--blue); }

/* ---------- Premi (rosso Michelin) ---------- */
:root { --red: #b7162a; --red-deep: #8f0f20; --red-soft: #d23a4a; }
.premi {
  position: relative; overflow: clip; isolation: isolate;
  display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(30px, 6vw, 100px);
  padding: clamp(90px, 12vw, 180px) var(--gutter);
  background: radial-gradient(120% 90% at 85% 10%, var(--red-soft) 0%, var(--red) 45%, var(--red-deep) 100%);
  color: var(--cream); border-radius: 48px 48px 0 0; margin-top: -48px;
}
.premi::selection, .premi *::selection { background: var(--cream); color: var(--red); }
.premi__watermark {
  position: absolute; right: -6vw; top: -8vw; width: clamp(360px, 46vw, 760px); z-index: -1;
  filter: brightness(0) invert(1); opacity: .06; animation: spin 90s linear infinite;
}
.premi .section-head__num { color: rgba(246,242,236,.65); }
.premi__hero { display: grid; gap: 30px; margin-bottom: 60px; }
.premi__big { display: flex; align-items: flex-end; gap: 22px; }
.premi__count { font-weight: 900; font-size: clamp(7rem, 13vw, 15rem); line-height: .78; color: var(--cream); letter-spacing: -.03em; text-shadow: 0 30px 60px rgba(0,0,0,.25); }
.premi__count sup { font-size: .32em; vertical-align: top; position: relative; top: .35em; color: rgba(246,242,236,.55); }
.premi__big p { font-weight: 900; font-size: clamp(1.6rem, 2.1vw, 2.6rem); line-height: 1; padding-bottom: 10px; }
.premi__big .thin { color: rgba(246,242,236,.7); }
.premi__lead { max-width: 620px; color: rgba(246,242,236,.85); font-size: 1.15rem; }

/* road map */
.roadmap { list-style: none; position: relative; padding-left: 34px; --line: 0; }
.roadmap::before { content: ""; position: absolute; left: var(--line-x, 9px); top: var(--line-top, 18px); bottom: var(--line-bottom, 18px); width: 2px; background: rgba(246,242,236,.18); border-radius: 2px; }
.roadmap::after { content: ""; position: absolute; left: var(--line-x, 9px); top: var(--line-top, 18px); width: 2px; height: calc((100% - var(--line-top, 18px) - var(--line-bottom, 18px)) * var(--line)); background: var(--cream); border-radius: 2px; transition: height .2s linear; }
.roadmap__item { position: relative; display: grid; grid-template-columns: 84px 1fr 52px; gap: 20px; align-items: center; padding: 22px 0 22px 10px; }
.roadmap__item + .roadmap__item { border-top: 1px solid rgba(246,242,236,.12); }
.roadmap__dot { position: absolute; left: -34px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%; background: var(--red); border: 2px solid rgba(246,242,236,.5); box-shadow: 0 0 0 0 rgba(246,242,236,0); transition: background .5s var(--ease), border-color .5s var(--ease), box-shadow .6s var(--ease), transform .5s var(--ease); }
.roadmap__item.is-lit .roadmap__dot { background: var(--cream); border-color: var(--cream); box-shadow: 0 0 0 7px rgba(246,242,236,.15); transform: scale(1.1); }
.roadmap__item--last.is-lit .roadmap__dot { background: var(--blue); border-color: var(--cream); box-shadow: 0 0 0 9px rgba(246,242,236,.18); }
.roadmap__year { font-weight: 900; font-size: 2rem; letter-spacing: -.01em; color: rgba(246,242,236,.55); transition: color .5s var(--ease); line-height: 1; }
.roadmap__item.is-lit .roadmap__year { color: var(--cream); }
.roadmap__body h3 { font-size: 1.7rem; line-height: 1; margin-bottom: 4px; }
.roadmap__body p { color: rgba(246,242,236,.7); font-size: .95rem; }
.roadmap__ico { width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid rgba(246,242,236,.3); display: grid; place-items: center; transition: background .5s var(--ease), border-color .5s var(--ease), transform .8s var(--ease); }
.roadmap__ico svg { width: 32px; height: 32px; color: var(--cream); transition: color .5s var(--ease); }
.roadmap__item:hover .roadmap__ico { background: var(--cream); border-color: var(--cream); transform: rotate(15deg); }
.roadmap__item:hover .roadmap__ico svg { color: var(--red); }

.premi__side { position: sticky; top: clamp(90px, 12vh, 120px); align-self: start; width: min(100%, calc((100svh - 160px) * .667)); justify-self: end; }   /* larga quanto la foto: il timbro resta agganciato al suo angolo */
.premi__photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 2 / 3; width: 100%; box-shadow: 0 40px 80px -30px rgba(0,0,0,.45); }
.premi__photo img { width: 100%; height: 100%; object-fit: cover; }
.premi__stamp {
  position: absolute; left: -40px; bottom: -30px; width: 160px; height: 160px; border-radius: 50%;
  background: var(--cream); color: var(--red); display: grid; place-items: center;
  box-shadow: 0 24px 50px -20px rgba(0,0,0,.45); transform: rotate(-8deg);
}
.premi__stamp svg { position: absolute; inset: 8px; animation: spin 30s linear infinite reverse; }
.premi__stamp text { font-family: var(--font); font-weight: 700; font-size: 17px; letter-spacing: .12em; fill: var(--red); text-transform: uppercase; }
.premi__stamp > span { font-weight: 900; font-size: 3rem; line-height: .8; display: grid; justify-items: center; }
.premi__stamp-img { position: relative; height: 80px; width: auto; transform: rotate(8deg); filter: drop-shadow(0 4px 6px rgba(0,0,0,.25)); }
.premi__stamp > span small { font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin-top: 6px; }

/* ---------- Momenti (galleria) ---------- */
.momenti { padding: clamp(90px, 12vw, 180px) 0 clamp(60px, 7vw, 100px); background: #fff; border-radius: 48px 48px 0 0; margin-top: -48px; position: relative; z-index: 1; }
.mosaic { columns: 3; column-gap: 18px; padding: 0 var(--gutter); }
.mosaic__item { position: relative; display: block; break-inside: avoid; margin: 0 0 18px; border-radius: var(--radius); overflow: hidden; background: var(--cream-3); cursor: zoom-in; }
.mosaic__item img { width: 100%; height: auto; display: block; object-fit: cover; transition: transform 1.2s var(--ease); }
.mosaic__item:hover img { transform: scale(1.05); }
/* composizione asimmetrica */

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 980; background: rgba(28,26,24,.96); display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility 0s .5s; }
.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity .5s var(--ease); }
.lightbox__figure { max-width: min(92vw, 1200px); max-height: 86vh; display: grid; gap: 14px; justify-items: center; }
.lightbox__figure img { max-width: 100%; max-height: 78vh; border-radius: 18px; object-fit: contain; transform: scale(.94); opacity: 0; transition: transform .6s var(--ease), opacity .6s var(--ease); }
.lightbox.is-open .lightbox__figure img { transform: none; opacity: 1; }
.lightbox__figure figcaption { color: var(--cream); font-weight: 700; letter-spacing: .06em; font-size: .95rem; }
.lightbox__close { position: absolute; top: 22px; right: 22px; width: 54px; height: 54px; border-radius: 50%; border: 1.5px solid rgba(246,242,236,.35); transition: background .4s var(--ease); }
.lightbox__close span { position: absolute; left: 17px; right: 17px; top: 50%; height: 1.5px; background: var(--cream); }
.lightbox__close span:nth-child(1) { transform: rotate(45deg); } .lightbox__close span:nth-child(2) { transform: rotate(-45deg); }
.lightbox__close:hover, .lightbox__arrow:hover { background: var(--blue); border-color: var(--blue); }
.lightbox__arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; border-radius: 50%; border: 1.5px solid rgba(246,242,236,.35); color: var(--cream); font-size: 1.3rem; display: grid; place-items: center; transition: background .4s var(--ease), border-color .4s var(--ease); }
.lightbox__arrow--prev { left: 22px; } .lightbox__arrow--next { right: 22px; }
.lightbox__count { position: absolute; left: 26px; bottom: 22px; color: rgba(246,242,236,.6); font-weight: 700; letter-spacing: .12em; font-size: .85rem; }

/* ---------- Voci (recensioni Google) ---------- */
.voci { position: relative; z-index: 1; padding: clamp(60px, 8vw, 110px) 0 clamp(50px, 6vw, 90px); background: var(--cream); border-radius: 48px 48px 0 0; margin-top: -48px; overflow: hidden; }
.voci + .contatti { margin-top: -48px; }
.voci .section-head { padding: 0 var(--gutter); }
.voci__wrap { display: grid; gap: 18px; }
.gbadge { justify-self: center; display: inline-flex; align-items: center; gap: 12px; padding: 12px 20px 12px 14px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line); margin-bottom: 22px; font-size: 1rem; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.gbadge:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -24px rgba(42,42,42,.35); }
.gbadge__g { width: 30px; height: 30px; flex: 0 0 auto; }
.gbadge__stars { color: #f4b400; letter-spacing: .05em; font-size: 1.05rem; }
.gbadge b { font-weight: 900; font-size: 1.25rem; }
.gbadge__txt { color: var(--ink-3); font-weight: 700; }

.gmarquee { --dur: 75s; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.gmarquee__track { display: flex; gap: 18px; width: max-content; padding: 4px 0; animation: gscroll var(--dur) linear infinite; }
.gmarquee--rev .gmarquee__track { animation-direction: reverse; }
/* pausa al passaggio del mouse solo dove c'è un mouse: sul telefono il tocco lasciava le recensioni ferme */
@media (hover: hover) and (pointer: fine) { .gmarquee:hover .gmarquee__track { animation-play-state: paused; } }
@keyframes gscroll { to { transform: translateX(-50%); } }

.gcard { flex: 0 0 auto; width: clamp(280px, 26vw, 380px); display: flex; flex-direction: column; gap: 14px; padding: 26px 26px 22px; border-radius: 20px; background: #fff; border: 1.5px solid var(--line); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.gcard:hover { transform: translateY(-4px); box-shadow: 0 30px 50px -30px rgba(42,42,42,.35); }
.gcard__stars { color: #f4b400; letter-spacing: .08em; font-size: 1rem; }
.gcard p { font-size: 1rem; line-height: 1.45; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.gcard footer { display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1.5px solid var(--line); }
.gcard__avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--blue); color: var(--cream); display: grid; place-items: center; font-weight: 900; font-size: 1.1rem; flex: 0 0 auto; }
.gcard__who { display: grid; line-height: 1.15; }
.gcard__who b { font-weight: 700; font-size: 1rem; }
.gcard__who small { font-size: .8rem; color: var(--ink-3); font-weight: 600; }
.voci__foot { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 36px; padding: 0 var(--gutter); }

@media (prefers-reduced-motion: reduce) { .gmarquee__track { animation: none; } .gmarquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; } }

/* ---------- Rassegna stampa (lista editoriale) ---------- */
.stampa { position: relative; z-index: 1; padding: clamp(60px, 8vw, 110px) 0 clamp(90px, 12vw, 170px); background: var(--cream-2); border-radius: 48px 48px 0 0; margin-top: -48px; }
.press { border-top: 1.5px solid var(--line); }
.press__row {
  position: relative; isolation: isolate; overflow: hidden; color: inherit;
  display: grid; grid-template-columns: 54px minmax(150px, 15%) 1fr auto; align-items: center;
  gap: 10px 28px; padding: 26px var(--gutter); border-bottom: 1.5px solid var(--line);
  transition: color .45s var(--ease);
}
.press__row::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); transform: translateY(101%); transition: transform .6s var(--ease); }
.press__row:hover::before { transform: translateY(0); }
.press__row:hover { color: var(--cream); }
.press__n { font-weight: 900; font-size: .9rem; letter-spacing: .1em; color: var(--beige); transition: color .45s var(--ease); }
.press__row:hover .press__n { color: var(--blue); }
.press__testata { font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); transition: color .45s var(--ease), transform .6s var(--ease); }
.press__row:hover .press__testata { color: var(--beige); transform: translateX(6px); }
.press__title { font-weight: 900; font-size: clamp(1.3rem, 2.2vw, 2.3rem); line-height: 1.02; letter-spacing: -.01em; text-wrap: balance; transition: transform .6s var(--ease); }
.press__row:hover .press__title { transform: translateX(10px); }
.press__year { display: flex; align-items: center; gap: 14px; font-weight: 700; font-size: .9rem; color: var(--ink-3); transition: color .45s var(--ease); }
.press__row:hover .press__year { color: var(--cream); }
.press__year i { font-style: normal; font-size: 1.3rem; color: var(--blue); transform: translateX(-6px); opacity: .35; transition: transform .5s var(--ease), opacity .5s var(--ease); }
.press__row:hover .press__year i { transform: none; opacity: 1; }
.press__cursor {
  position: fixed; left: 0; top: 0; z-index: 80; width: 104px; height: 104px; border-radius: 50%;
  background: var(--blue); color: var(--cream); display: grid; place-items: center; text-align: center;
  font-size: .72rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; line-height: 1.3;
  pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(.3);
  transition: opacity .3s var(--ease), transform .25s var(--ease);
}
.press__cursor.is-on { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .press, .press * { cursor: none !important; } }
.stampa + .contatti { margin-top: -48px; }

/* ---------- Contatti ---------- */
.contatti { display: grid; grid-template-columns: 1.1fr .9fr; gap: 30px 60px; padding: clamp(80px, 10vw, 140px) var(--gutter) clamp(90px, 12vw, 160px); background: #fff; border-radius: 48px 48px 0 0; position: relative; z-index: 1; }
.contatti__title { font-size: clamp(3.6rem, 6.5vw, 8.5rem); line-height: .9; margin-bottom: 30px; color: var(--blue); }
.contatti__title .blue { color: var(--ink); }
.contatti__cta p { max-width: 520px; color: var(--ink-2); margin-bottom: 30px; }
.contatti__info { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; align-content: start; padding-top: 16px; }
.info__mail { overflow-wrap: anywhere; }
.info__label { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); margin-bottom: 12px; }
.info p { font-weight: 700; font-size: 1.1rem; line-height: 1.3; margin-bottom: 8px; }
.info .muted { font-weight: 600; font-size: 1rem; }
.map { grid-column: 1 / -1; position: relative; width: 100%; max-width: 100%; min-width: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 21 / 8; min-height: 380px; background: #fff; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Footer ---------- */
.footer { position: relative; z-index: 1; background: var(--ink); color: var(--cream); padding: calc(clamp(70px, 8vw, 120px) + var(--overlap)) var(--gutter) 28px; margin-top: calc(-1 * var(--overlap)); border-radius: 48px 48px 0 0; }
.footer__cta { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; padding-bottom: clamp(40px, 5vw, 70px); border-bottom: 1px solid rgba(246,242,236,.14); }
.footer__eyebrow { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--beige); margin-bottom: 14px; }
.footer__cta h2 { font-size: clamp(3.4rem, 6.2vw, 8rem); line-height: .9; letter-spacing: -.01em; }
.rotator__line { display: block; white-space: nowrap; perspective: 600px; }
.rotator__ch { display: inline-block; transform-origin: 50% 55%; }
.rotator__ch.is-flip { animation: flap-char .11s cubic-bezier(.3,0,.3,1); }
@keyframes flap-char { 0% { transform: rotateX(-88deg); opacity: .4; } 100% { transform: none; opacity: 1; } }
.footer__cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* contatore social (sotto il motto, accanto al logo) */
.social { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; }
.social__item { display: inline-flex; align-items: center; gap: 8px; color: var(--cream); font-weight: 700; font-size: 1.05rem; line-height: 1; transition: color .3s var(--ease), transform .4s var(--ease); }
.social__item svg { width: 22px; height: 22px; flex: 0 0 auto; transition: transform .5s var(--ease); }
.social__item:hover { color: var(--beige); }
.social__item:hover svg { transform: scale(1.12) rotate(-6deg); }

.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding: clamp(40px, 5vw, 70px) 0; border-bottom: 1px solid rgba(246,242,236,.14); }
.footer__logo { width: min(280px, 80%); margin-bottom: 22px; }
.footer__brand p { max-width: 340px; color: rgba(246,242,236,.7); font-size: 1rem; }

.footer__col { display: grid; gap: 10px; align-content: start; }
.footer__col a { font-weight: 700; opacity: .85; width: fit-content; transition: opacity .3s, transform .4s var(--ease), color .3s; }
.footer__col a:hover { opacity: 1; transform: translateX(4px); color: var(--beige); }
.footer__col p { font-weight: 700; line-height: 1.35; }
.footer__muted { font-weight: 600; color: rgba(246,242,236,.6); font-size: .95rem; }
.footer__label { font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--beige); margin-bottom: 6px; }
.footer__label--gap { margin-top: 18px; }

.footer__bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; padding-top: 24px; font-size: .9rem; color: rgba(246,242,236,.6); }
.footer__credit { color: rgba(246,242,236,.6); transition: color .3s; }
.footer__credit b { color: var(--cream); font-weight: 900; }
.footer__credit:hover, .footer__credit:hover b { color: var(--beige); }
.footer__top { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid rgba(246,242,236,.25); display: grid; place-items: center; color: var(--cream); font-size: 1.2rem; transition: background .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease); }
.footer__top:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); transform: translateY(-3px); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-img { clip-path: inset(6% 0 6% 0 round var(--radius)); opacity: 0; transition: clip-path 1.2s var(--ease), opacity 1s var(--ease); }
.reveal-img.is-in { clip-path: inset(0 0 0 0 round var(--radius)); opacity: 1; }
.reveal-img img { transform: scale(1.1); transition: transform 1.4s var(--ease); }
.reveal-img.is-in img { transform: scale(1); }
.mosaic__item.reveal-img.is-in img, .card figure img { transform: none; }
.mosaic__item.reveal-img { opacity: 1; }   /* le foto dei momenti si vedono subito piene, senza velo */

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-img, .word, .hero__frame, .hero__frame img, .hero__badge { transition: none !important; opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .marquee__track, .hero__badge-ring, .nav__icons img { animation: none !important; }
}

/* ---------- Cookie banner ---------- */
.cookieveil {
  position: fixed; inset: 0; z-index: 89; opacity: 0; pointer-events: none;
  background: rgba(42,42,42,.22);
  -webkit-backdrop-filter: blur(22px) saturate(1.1); backdrop-filter: blur(22px) saturate(1.1);
  transition: opacity .7s var(--ease);
}
.cookieveil.is-on { opacity: 1; pointer-events: auto; }
.cookiebox { position: fixed; left: max(16px, env(safe-area-inset-left)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 90; width: min(440px, calc(100vw - 32px)); display: flex; gap: 0; background: var(--blue-deep); color: var(--cream); border: 1.5px solid rgba(246,242,236,.18); border-radius: 28px; padding: 22px 24px 22px 22px; box-shadow: 0 30px 70px -30px rgba(62,121,163,.9); opacity: 0; transform: translateY(30px) rotate(-1.5deg); pointer-events: none; transition: opacity .7s var(--ease), transform .8s var(--ease); }
.cookiebox.is-open { opacity: 1; transform: none; pointer-events: auto; }
.cookiebox__pizza { position: absolute; top: -34px; right: 22px; width: 84px; height: 84px; border-radius: 50%; background: #fff; border: 1.5px solid var(--line); display: grid; place-items: center; box-shadow: 0 14px 30px -18px rgba(42,42,42,.5); transform: rotate(12deg); transition: transform .8s var(--ease); }
.cookiebox.is-open .cookiebox__pizza { animation: cookie-spin 1.1s var(--ease) both; }
.cookiebox__pizza img { width: 52px; height: auto; }
@keyframes cookie-spin { from { transform: rotate(-160deg) scale(.4); } to { transform: rotate(12deg) scale(1); } }
.cookiebox__eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #e6d8c9; margin-bottom: 8px; }
.cookiebox h2 { font-size: 1.8rem; line-height: 1; margin-bottom: 10px; padding-right: 56px; }
.cookiebox p:not(.cookiebox__eyebrow) { font-size: .95rem; line-height: 1.4; color: rgba(246,242,236,.85); margin-bottom: 16px; }
.cookiebox .btn--blue { background: var(--cream); color: var(--ink); }
.cookiebox .btn--blue::before { background: var(--ink); }
.cookiebox .btn--blue:hover { color: var(--cream); }
.cookiebox .btn--ghost { border-color: rgba(246,242,236,.6); color: var(--cream); }
.cookiebox .btn--ghost::before { background: var(--cream); }
.cookiebox .btn--ghost:hover { color: var(--ink); }
.cookiebox__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cookiebox__actions .btn { flex: 1 1 140px; justify-content: center; }
.cookiebox__link { display: inline-block; margin-top: 12px; font-size: .82rem; font-weight: 700; color: rgba(246,242,236,.92); text-decoration: underline; text-underline-offset: 3px; }
.cookiebox__link:hover { color: var(--cream); }
.footer__cookie { font-weight: 700; opacity: .85; width: fit-content; text-align: left; color: inherit; transition: opacity .3s, transform .4s var(--ease), color .3s; }
.footer__cookie:hover { opacity: 1; transform: translateX(4px); color: var(--beige); }

/* bottone fisso "preferenze cookie" (fetta di pizza) */
.cookiefab { position: fixed; left: max(16px, env(safe-area-inset-left)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 85; display: flex; align-items: center; gap: 0; height: 52px; padding: 0 8px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line); box-shadow: 0 16px 34px -20px rgba(42,42,42,.5); opacity: 0; transform: translateY(20px) scale(.8); pointer-events: none; transition: opacity .5s var(--ease), transform .6s var(--ease), box-shadow .4s var(--ease), gap .4s var(--ease), padding .4s var(--ease); }
.cookiefab.is-on { opacity: 1; transform: none; pointer-events: auto; }
.cookiefab img { width: 34px; height: auto; transition: transform .6s var(--ease); }
.cookiefab span { max-width: 0; overflow: hidden; white-space: nowrap; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); transition: max-width .5s var(--ease); }
.cookiefab:hover { gap: 10px; padding-right: 16px; box-shadow: 0 20px 40px -20px rgba(42,42,42,.6); }
.cookiefab:hover span { max-width: 80px; }
.cookiefab:hover img { transform: rotate(-30deg); }

/* mappa Google: caricata solo dopo il consenso */
.map__gate { position: absolute; inset: 0; z-index: 6; display: grid; place-content: center; justify-items: center; text-align: center; gap: 12px; padding: 30px; background: #e6eef4; transition: opacity .6s var(--ease); }
.map__gate::before { content: ""; position: absolute; inset: 0; background: url("../assets/img/texture.svg") center / 420px repeat; opacity: .07; pointer-events: none; }
.map__gate > * { position: relative; }
.map__gate.is-off { opacity: 0; pointer-events: none; }
.map__gate-icon { width: 54px; height: auto; opacity: .9; }
.map__gate p { font-size: 1.05rem; line-height: 1.35; max-width: 420px; }
.map__gate .link { font-size: .9rem; color: var(--ink-3); }
@media (max-width: 640px) {
  .cookiebox { left: 12px; right: 12px; width: auto; bottom: 12px; padding: 20px 18px 18px; }
  .cookiebox h2 { font-size: 1.6rem; }
  .map__gate { padding: 20px; }
}

/* ---------- Effetti mobile (≤ 860px) ---------- */
@media (max-width: 860px) {
  /* feedback al tocco */
  @media (hover: none) {
    .btn, .card, .reelcard, .mosaic__item, .gcard, .round, .cookiefab { transition-property: transform, box-shadow, background, color, border-color, opacity; }
    .btn:active, .card:active, .reelcard:active, .mosaic__item:active, .gcard:active, .round:active { transform: scale(.96); transition-duration: .12s; }
  }

  /* storia: il ritratto resta fermo e il racconto gli scorre sopra come una scheda */
  .storia { gap: 0; }
  .storia__sticky { position: static; }
  .storia { padding-top: calc(24px + var(--overlap)); }
  .storia__portrait { aspect-ratio: 3 / 4; width: 100%; border-radius: var(--radius); clip-path: none; margin-top: 0; }
  .storia__portrait img { transform: none; }
  .storia__portrait.reveal-img.is-in { clip-path: none; }
  .storia__portrait figcaption { bottom: 40px; }
  .storia__content { position: relative; z-index: 1; background: #fff; border-radius: 34px 34px 0 0; margin: -22px calc(-1 * var(--gutter)) 0; padding: 34px var(--gutter) 0; box-shadow: 0 -24px 60px -30px rgba(42,42,42,.45); }

  /* CTA a tutta larghezza */
  .hero__actions .btn,
  .pizze__foot .btn,
  .reel__foot .btn,
  .voci__foot .btn,
  .contatti__cta .btn,
  .footer__cta-actions .btn,
  .map__gate .btn { width: 100%; justify-content: center; }
  /* coppie di CTA: affiancate, metà schermo ciascuna */
  .hero__actions, .voci__foot, .footer__cta-actions { flex-wrap: nowrap; align-items: stretch; gap: 14px; width: 100%; }
  .hero__actions .btn, .voci__foot .btn, .footer__cta-actions .btn { flex: 1 1 0; width: auto; min-width: 0; padding-left: 12px; padding-right: 12px; gap: 8px; text-align: center; }
  .hero__actions .btn i, .voci__foot .btn i, .footer__cta-actions .btn i { width: 16px; height: 16px; }
  .footer__cta-actions .btn--big, .voci__foot .btn--big { font-size: 1rem; padding-top: 16px; padding-bottom: 15px; }
  .btn__more { display: none; }
  .pizze__foot, .reel__foot { flex-direction: column-reverse; align-items: stretch; }
  .scroller__nav { justify-content: center; }

  /* manifesto: testo a tutta larghezza */
  .manifesto { padding-left: var(--gutter); padding-right: var(--gutter); }
  .manifesto__text { max-width: none; font-size: clamp(2.3rem, 9.6vw, 3.4rem); line-height: 1; letter-spacing: -.01em; text-wrap: pretty; }

  /* scroller pizze: le card lontane dal centro si rimpiccioliscono */
  .card { transform: scale(var(--s, 1)); transform-origin: 50% 100%; }
  .card:hover { transform: scale(var(--s, 1)); }
  .reel__scroller, .scroller { scroll-snap-type: x mandatory; scroll-padding-left: 0; }
  .reelcard, .card { scroll-snap-align: center; }

  /* animazioni guidate dallo scroll (Safari 26+, Chrome): titoli, foto, numero premi */
  @supports (animation-timeline: view()) {
    /* titoli e sottotitoli */
    .section-head h2 { animation: fx-wipe linear both; animation-timeline: view(); animation-range: entry 10% entry 90%; }
    .section-head__sub, .manifesto + * { animation: fx-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 65%; }

    /* storia: capitoli che entrano da sinistra, icone che ruotano */
    .chapter { animation: fx-in-left linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
    .chapter__num img { animation: fx-spin linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
    .motto { animation: fx-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 65%; }

    /* filosofia */
    .pillar { animation: fx-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
    .pillar img { animation: fx-spin linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }

    /* pizze e reel: le card salgono entrando in scena */
    .card, .reelcard { animation: fx-card linear both; animation-timeline: view(); animation-range: entry 0% entry 85%; }

    /* premi */
    .premi__count { animation: fx-pop linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }
    .premi__big p, .premi__note { animation: fx-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
    .roadmap__item { animation: fx-in-left linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
    .premi__photo { animation: fx-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }

    /* momenti */
    /* niente animazioni sulle foto del mosaico: su iPhone le trasformazioni dentro le colonne
       lasciano riquadri vuoti (sfondo beige) al posto delle foto */
    .mosaic__item.reveal-img { clip-path: none; opacity: 1; }

    /* recensioni, rassegna stampa, contatti, footer */
    .gcard, .info { animation: fx-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
    .press__row { animation: fx-in-left linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
    .contatti__title { animation: fx-wipe linear both; animation-timeline: view(); animation-range: entry 10% entry 90%; }
    .contatti__cta p, .contatti__cta .btn, .map { animation: fx-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
    .footer__cta h2 { animation: fx-wipe linear both; animation-timeline: view(); animation-range: entry 10% entry 90%; }
    .footer__brand, .footer__col { animation: fx-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }

    /* le foto grandi respirano mentre scorrono */
    .storia__portrait img, .premi__photo img { animation: fx-breathe linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }

    /* niente doppia animazione con il reveal classico */
    .reveal, .reveal-img { opacity: 1 !important; transform: none !important; transition: none !important; }
    .reveal-img { clip-path: none !important; }
  }
}

@keyframes fx-in-left { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
@keyframes fx-card { from { opacity: 0; transform: translateY(46px) scale(.95); } to { opacity: 1; transform: none; } }
@keyframes fx-spin { from { transform: rotate(-70deg) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fx-breathe { from { transform: scale(1.1); } to { transform: scale(1); } }
@keyframes fx-wipe { from { clip-path: inset(0 100% 0 0); transform: translateX(-12px); } to { clip-path: inset(0 -2% 0 0); transform: none; } }
@keyframes fx-slide { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
@keyframes fx-tilt { from { opacity: 0; transform: translateY(40px) rotate(var(--tilt, -2.5deg)) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes fx-zoom { from { transform: scale(1.28); } to { transform: scale(1); } }
@keyframes fx-pop { from { opacity: 0; transform: scale(.55) translateY(30px); letter-spacing: .1em; } to { opacity: 1; transform: none; letter-spacing: -.03em; } }
@keyframes fx-rise { from { opacity: 0; transform: translateY(36px) scale(.97); } to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav__links { gap: 18px; }
  .nav__links a { font-size: 1.05rem; }
  .nav__bar { padding: 10px 20px 10px 18px; gap: 14px; }
  .nav__logo { --w: 128px; }
}

@media (max-width: 1100px) {
  .hero__grid { grid-template-columns: 1fr 1fr; }
  .storia { grid-template-columns: 1fr 1.3fr; }
  .contatti__info { grid-template-columns: repeat(2, 1fr); }
  .press__row { grid-template-columns: 44px 1fr auto; }
  .press__testata { grid-column: 2; grid-row: 1; }
  .press__title { grid-column: 2; grid-row: 2; }
}

@media (max-width: 860px) {
  body { font-size: 17px; }
  .nav { padding: 12px 14px; }
  .nav__bar { grid-template-columns: 1fr auto 1fr; padding: 8px; gap: 10px; }
  .nav__right { display: contents; }
  .nav__phone { order: -1; justify-self: start; }
  .nav__logo { justify-self: center; }
  .nav__menu { justify-self: end; }
  .nav__links, .nav__cta, .nav__menu-link { display: none; }
  .nav__logo { --w: 112px; }
  .nav.is-scrolled .nav__bar { padding: 10px; }
  .nav.is-scrolled .nav__logo { --w: 96px; }
  .overlay__nav a { font-size: clamp(1.55rem, 6.8vw, 2rem); padding: 9px 0; }
  .overlay__inner { padding-top: clamp(126px, 18vh, 168px); }
  .nav__phone { display: grid; }
  .nav__menu { display: block; }

  .hero { padding-top: 100px; min-height: auto; }
  .marquee { width: 110%; margin: 26px 0 26px -5%; transform: rotate(-3deg); }
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__title { font-size: clamp(4rem, 17vw, 7rem); }
  .hero__media { order: -1; margin-right: 0; width: 100%; }
  .hero__frame { aspect-ratio: 768 / 1200; width: 100%; }   /* stesse proporzioni del video: nessun taglio */
  .hero__frame img, .hero__video { height: 100%; transform: none !important; }
  .hero__badge { left: auto; right: -10px; bottom: -30px; width: 120px; height: 120px; }
  .hero__badge-ring text { font-size: 17px; letter-spacing: .08em; }
  
  .storia { grid-template-columns: 1fr; }
  .chapter { grid-template-columns: 1fr; }
  .chapter p { grid-column: 1; }
  .motto { padding: 34px 28px; }
  .filosofia__grid { grid-template-columns: 1fr; }
  .premi { grid-template-columns: 1fr; }
  .premi__side { position: relative; top: auto; width: 100%; }
  .premi__photo { aspect-ratio: 2 / 3; width: 100%; }
  .premi__stamp { left: auto; right: 14px; bottom: 14px; width: 116px; height: 116px; }
  .premi__stamp > span { font-size: 2.2rem; }
  .premi__stamp-img { height: 58px; }
  .premi__stamp text { font-size: 19px; }
  .roadmap { padding-left: 26px; }
  .roadmap__item { grid-template-columns: 1fr; gap: 6px; padding: 18px 0 18px 4px; }
  .roadmap__dot { left: -26px; top: 26px; margin-top: 0; width: 16px; height: 16px; }
  .roadmap__year { font-size: 1.3rem; }
  .roadmap__ico { display: none; }
  .premi__watermark { width: 320px; right: -120px; top: -60px; }
  .press__row { grid-template-columns: auto 1fr; gap: 6px 14px; padding: 22px var(--gutter); }
  .press__n { grid-row: 1; }
  .press__testata { grid-row: 1; }
  .press__title { grid-column: 1 / -1; font-size: 1.45rem; margin: 4px 0 2px; }
  .press__year { grid-column: 1 / -1; justify-content: space-between; }
  .press__year i { opacity: 1; transform: none; }
  .press__cursor { display: none; }
  .mosaic { columns: 2; column-gap: 10px; }
  .mosaic__item { margin-bottom: 10px; border-radius: 14px; }
  .lightbox__arrow { width: 44px; height: 44px; top: auto; bottom: 22px; transform: none; }
  .lightbox__arrow--prev { left: auto; right: 78px; }
  .lightbox__count { bottom: 34px; }
  .momenti { border-radius: 28px 28px 0 0; margin-top: -28px; }
  .gmarquee { --dur: 55s; }
  .gcard { width: 280px; padding: 20px; }
  .contatti { grid-template-columns: 1fr; }
  .contatti__info { grid-template-columns: 1fr 1fr; }
  .map { aspect-ratio: 4 / 3; min-height: 0; }
  .footer { text-align: center; padding-top: calc(40px + var(--overlap)); }
  .footer__grid { grid-template-columns: 1fr; gap: 36px; justify-items: center; }
  .social { justify-content: center; }
  .footer__brand { display: grid; justify-items: center; }
  .footer__brand p { max-width: 360px; }
  .footer__logo { margin-left: auto; margin-right: auto; width: min(190px, 55%); }
  .footer__col { justify-items: center; }
  .footer__col a, .footer__cookie { width: auto; text-align: center; }
  .footer__col a:hover, .footer__cookie:hover { transform: none; }
  .footer__cta { align-items: center; flex-direction: column; text-align: center; gap: 26px; }
  .footer__cta-actions { justify-content: center; }
  .footer__bottom { flex-direction: column; justify-content: center; text-align: center; }
  .footer__bottom > span { line-height: 1.6; }
  .reelcard { width: 210px; }
  .reel__scroller { padding-bottom: 66px; margin-bottom: -46px; }   /* spazio per l'ombra delle card, senza allontanare i pulsanti */
  .reel__foot { position: relative; }
  .reelbox__inner { flex-direction: column; gap: 16px; }
  .reelbox__phone { width: min(340px, 80vw); max-height: 70vh; }
  .reelbox__side { text-align: center; justify-items: center; }
  .reelbox__side h3 { font-size: 1.6rem; }
  .storia, .pizze, .premi, .voci, .stampa, .contatti, .footer { border-radius: 28px 28px 0 0; }
  :root { --overlap: 28px; }
  .voci { margin-top: -28px; padding-bottom: 80px; }
  .stampa { margin-top: -28px; padding-top: 44px; }
  .voci + .contatti { margin-top: -28px; }
  .premi { margin-top: -28px; }
}

/* ---------- Pagine legali (legale/*.html) ---------- */
.legal-page { background: var(--cream); }
.legal-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px var(--gutter); border-bottom: 1.5px solid var(--line); }
.legal-head__logo img { height: 46px; width: auto; display: block; }
.legal-head__nav { display: flex; gap: 6px; }
.legal-head__nav a { font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 9px 14px; border-radius: 999px; border: 1.5px solid transparent; transition: background .3s, border-color .3s, color .3s; }
.legal-head__nav a:hover { border-color: var(--line); }
.legal-head__nav a[aria-current="page"] { background: var(--ink); color: var(--cream); }
.legal { max-width: 860px; margin: 0 auto; padding: clamp(50px, 7vw, 100px) var(--gutter) clamp(70px, 8vw, 120px); font-size: clamp(17px, 1vw + 12px, 20px); }
.legal__eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
.legal h1 { font-size: clamp(3.4rem, 7vw, 6rem); line-height: .92; letter-spacing: -.01em; margin-bottom: 14px; }
.legal__meta { font-size: .9rem; color: var(--ink-3); margin-bottom: 34px; }
.legal__intro { font-size: 1.12em; line-height: 1.5; padding-bottom: 30px; border-bottom: 1.5px solid var(--line); margin-bottom: 30px; }
.legal__toc { background: var(--cream-2); border-radius: var(--radius); padding: 22px 26px; margin-bottom: 44px; }
.legal__toc ol { padding-left: 1.3em; display: grid; gap: 6px; font-weight: 700; }
.legal__toc a { color: var(--blue-deep); }
.legal__toc a:hover { text-decoration: underline; }
.legal section { margin-bottom: 44px; scroll-margin-top: 30px; }
.legal h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1.05; margin-bottom: 14px; }
.legal h3 { font-size: 1.25em; line-height: 1.2; margin: 22px 0 8px; color: var(--ink-2); }
.legal p { line-height: 1.5; margin-bottom: 14px; color: var(--ink-2); }
.legal p b, .legal li b { color: var(--ink); font-weight: 700; }
.legal ul, .legal ol { padding-left: 1.3em; margin-bottom: 14px; display: grid; gap: 6px; color: var(--ink-2); line-height: 1.45; }
.legal a { color: var(--blue-deep); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.legal a:hover { color: var(--blue); }
.legal__card { font-style: normal; line-height: 1.55; background: #fff; border-radius: 18px; padding: 22px 26px; margin: 14px 0 18px; box-shadow: 0 20px 40px -30px rgba(42,42,42,.35); }
.legal__todo { background: #ffe9a8; color: var(--ink); padding: 1px 6px; border-radius: 6px; font-weight: 700; }
.legal__table-wrap { overflow-x: auto; margin: 6px 0 16px; border-radius: 16px; border: 1.5px solid var(--line); }
.legal__table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: .88em; line-height: 1.4; background: #fff; }
.legal__table th, .legal__table td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1.5px solid var(--line); }
.legal__table th { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); background: var(--cream-2); }
.legal__table tr:last-child td { border-bottom: 0; }
.legal-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding: 24px var(--gutter) 34px; border-top: 1.5px solid var(--line); font-size: .9rem; color: var(--ink-3); }
.legal-foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.legal-foot a { font-weight: 700; color: var(--ink-2); }
.legal-foot a:hover { color: var(--blue); }
@media (max-width: 640px) {
  .legal-head { flex-direction: column; align-items: flex-start; }
  .legal-head__nav a { padding: 8px 12px; font-size: .76rem; }
  .legal__toc { padding: 18px 20px; }
}

@media (max-width: 900px) and (max-height: 740px) {
  .overlay__nav a { padding: 7px 0; }


}

/* sotto i 1000px la barra passa alla versione compatta: logo al centro, Prenota e menu ai lati */
@media (max-width: 1000px) {
  .nav__bar { grid-template-columns: 1fr auto 1fr; padding: 8px; gap: 10px; }
  .nav.is-scrolled .nav__bar { padding: 10px; }
  .nav__right { display: contents; }
  .nav__links, .nav__cta, .nav__menu-link { display: none; }
  .nav__phone { display: grid; order: -1; justify-self: start; }
  .nav__logo { justify-self: center; --w: 118px; }
  .nav.is-scrolled .nav__logo { --w: 100px; }
  .nav__menu { display: block; justify-self: end; }
}

/* cursore pixel (solo mouse: sui telefoni non si vede) */
html { cursor: url("../assets/img/cursor.png") 1 1, auto; cursor: -webkit-image-set(url("../assets/img/cursor.png") 1x, url("../assets/img/cursor@2x.png") 2x) 1 1, auto; cursor: image-set(url("../assets/img/cursor.png") 1x, url("../assets/img/cursor@2x.png") 2x) 1 1, auto; }
a, button, label, summary, [role="button"], .card, .reelcard, .press__row { cursor: url("../assets/img/cursor.png") 1 1, pointer; cursor: -webkit-image-set(url("../assets/img/cursor.png") 1x, url("../assets/img/cursor@2x.png") 2x) 1 1, pointer; cursor: image-set(url("../assets/img/cursor.png") 1x, url("../assets/img/cursor@2x.png") 2x) 1 1, pointer; }

/* selettore lingua: due bandierine tonde nella capsula */
.lang { display: flex; align-items: center; gap: 9px; padding: 5px 7px; border-radius: 999px; background: rgba(42,42,42,.06); }
.lang__opt { display: block; width: 22px; height: 22px; border-radius: 50%; overflow: hidden; opacity: .7; position: relative; box-shadow: 0 0 0 2px transparent; transition: opacity .25s, box-shadow .25s, transform .25s; }
.lang__opt svg { display: block; width: 100%; height: 100%; }
.lang__opt::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.14); }
.lang__opt:hover { opacity: 1; transform: scale(1.06); }
.lang__opt.is-on { opacity: 1; box-shadow: 0 0 0 2px var(--cream), 0 0 0 3.5px var(--blue); }
.lang--overlay { align-self: center; margin: 0 auto 14px; gap: 10px; padding: 6px; }
.lang--overlay .lang__opt { width: 34px; height: 34px; }
@media (max-width: 1000px) { .nav .lang { display: none; } }

/* mobile: stesso respiro sopra il titolo in tutte le sezioni (28px di sovrapposizione + 22px di spazio visibile) */
@media (max-width: 860px) {
  .pizze, .premi, .momenti, .voci, .stampa, .footer { padding-top: calc(var(--overlap) + 22px); }
  .storia__content { padding-top: 46px; }
  .reel { padding-top: 28px; }
  .contatti { padding-top: 70px; }
}

/* pizze vincitrici: timbro rotondo nell'angolo della foto (come il badge dell'Arcimboldo) e riga del premio nel testo */
.card__stamp { position: absolute; right: 12px; top: 12px; z-index: 2; width: 86px; height: 86px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: var(--cream); border: 1.5px solid rgba(246,242,236,.35); box-shadow: 0 12px 26px -12px rgba(143,15,32,.75); transform: rotate(-8deg); }
.card__stamp svg { position: absolute; inset: 3px; width: calc(100% - 6px); height: calc(100% - 6px); animation: spin 26s linear infinite; }
.card__stamp text { font-family: var(--font); font-weight: 700; font-size: 25px; letter-spacing: .08em; text-transform: uppercase; fill: currentColor; }
.card__stamp b { font-size: 1.7rem; line-height: 1; transform: rotate(8deg); }
@media (max-width: 860px) { .card__stamp { width: 72px; height: 72px; right: 10px; top: 10px; } .card__stamp b { font-size: 1.4rem; } }
@media (prefers-reduced-motion: reduce) { .card__stamp svg { animation: none; } }

/* ===== Arcimboldo 3D + lettera di Matteo ===== */
.arci { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; align-items: center; gap: clamp(20px, 4vw, 50px); margin-top: clamp(50px, 7vw, 90px); padding: clamp(18px, 2.5vw, 28px); border-radius: var(--radius); background: rgba(0,0,0,.14); border: 1px solid rgba(246,242,236,.14); }
.arci__stage { position: relative; aspect-ratio: 1 / 1.12; border-radius: calc(var(--radius) - 8px); background: radial-gradient(70% 60% at 50% 45%, rgba(255,214,140,.22), transparent 70%); touch-action: pan-y; transition: transform .5s var(--ease); }
.arci__stage canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; opacity: 0; transition: opacity .8s var(--ease); cursor: grab; }
.arci__stage.is-ready canvas { opacity: 1; }
.arci__stage.is-hover canvas { cursor: pointer; }
.arci__stage.is-pop { transform: scale(.96); }
.arci__fallback { position: absolute; left: 50%; bottom: 8%; height: 82%; width: auto; transform: translateX(-50%); filter: drop-shadow(0 18px 20px rgba(0,0,0,.35)); transition: opacity .6s; pointer-events: none; }
.arci__stage.is-ready .arci__fallback { opacity: 0; }
.arci__stage.is-fallback .arci__fallback { pointer-events: auto; cursor: pointer; }
.arci__tap { position: absolute; right: 8%; top: 8%; z-index: 2; padding: 7px 12px; border-radius: 999px; background: var(--cream); color: var(--red); font-weight: 700; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; pointer-events: none; animation: arci-bob 2s ease-in-out infinite; box-shadow: 0 10px 20px -10px rgba(0,0,0,.5); }
@keyframes arci-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
.arci__eyebrow { display: block; font-weight: 700; font-size: .9rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(246,242,236,.7); margin-bottom: 8px; }
.arci__title { font-weight: 900; font-size: clamp(2rem, 3.2vw, 3rem); line-height: .95; margin: 0 0 12px; }
.arci__text p { color: rgba(246,242,236,.85); margin: 0 0 22px; max-width: 42ch; }
@media (max-width: 860px) {
  .arci { grid-template-columns: 1fr; text-align: center; }
  .arci__stage { width: min(100%, 300px); margin: 0 auto; }
  .arci__text p { margin-left: auto; margin-right: auto; }
}
@media (prefers-reduced-motion: reduce) { .arci__tap { animation: none; } }

.lettera { position: fixed; inset: 0; z-index: 2000; display: flex; padding: clamp(16px, 4vh, 40px) 16px; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; visibility: hidden; pointer-events: none; }   /* scorre tutta la finestra, non il foglio: niente tagli */
.lettera.is-open { visibility: visible; pointer-events: auto; }
.lettera__veil { position: fixed; inset: 0; background: rgba(42,20,20,.6); opacity: 0; transition: opacity .5s var(--ease); }
.lettera.is-open .lettera__veil { opacity: 1; }
.lettera { perspective: 1600px; }
.lettera__paper { position: relative; width: min(100%, 560px); margin: auto; flex-shrink: 0; transform-style: preserve-3d;
  transform: translateY(40px) scale(.94); opacity: 0; transition: transform .8s var(--ease), opacity .4s var(--ease); }
.lettera.is-open .lettera__paper { transform: rotate(-.6deg); opacity: 1; }
.lettera__sheet { position: relative; padding: clamp(34px, 5vw, 56px) clamp(24px, 5vw, 56px) clamp(28px, 4vw, 44px); border-radius: 6px; color: var(--ink);
  background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,0) 30%), repeating-linear-gradient(0deg, transparent 0 31px, rgba(62,121,163,.08) 31px 32px), #f8f1e4;
  box-shadow: 0 50px 100px -30px rgba(0,0,0,.6), inset 0 0 0 1px rgba(0,0,0,.04); }
/* segni delle pieghe che restano sul foglio aperto */
.lettera__sheet::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, transparent calc(33.33% - 1px), rgba(0,0,0,.06) 33.33%, rgba(255,255,255,.5) calc(33.33% + 1px), transparent calc(33.33% + 4px), transparent calc(66.66% - 1px), rgba(0,0,0,.06) 66.66%, rgba(255,255,255,.5) calc(66.66% + 1px), transparent calc(66.66% + 4px)); }
.lettera.is-open .lettera__sheet { animation: letter-unfold 1.5s cubic-bezier(.45,0,.2,1) both; }
@keyframes letter-unfold {
  0%, 18% { clip-path: inset(33.33% 0 33.33% 0 round 6px); }
  52% { clip-path: inset(0 0 33.33% 0 round 6px); }
  92%, 100% { clip-path: inset(0 0 0 0 round 6px); }
}
/* i lembi: il retro del foglio, un po' più scuro, che ruota come carta vera */
.lettera__flap { position: absolute; left: 0; right: 0; height: 33.34%; opacity: 0; pointer-events: none; backface-visibility: visible;
  background: linear-gradient(180deg, #efe5d3, #e6dac4); box-shadow: inset 0 0 0 1px rgba(0,0,0,.05); }
.lettera__flap--top { top: 0; transform-origin: 50% 100%; border-radius: 6px 6px 0 0; }
.lettera__flap--bottom { bottom: 0; transform-origin: 50% 0; border-radius: 0 0 6px 6px; }
.lettera.is-open .lettera__flap--top { animation: flap-top 1.5s cubic-bezier(.45,0,.2,1) both; }
.lettera.is-open .lettera__flap--bottom { animation: flap-bottom 1.5s cubic-bezier(.45,0,.2,1) both; }
@keyframes flap-top {
  0%, 18% { transform: rotateX(-180deg); opacity: 1; background: linear-gradient(0deg, #e4d7bf, #efe5d3); }
  35% { transform: rotateX(-92deg); opacity: 1; }
  36%, 100% { transform: rotateX(-90deg); opacity: 0; }
}
@keyframes flap-bottom {
  0%, 45% { transform: rotateX(180deg); opacity: 1; background: linear-gradient(180deg, #e4d7bf, #efe5d3); }
  66% { transform: rotateX(92deg); opacity: 1; }
  67%, 100% { transform: rotateX(90deg); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .lettera.is-open .lettera__sheet, .lettera.is-open .lettera__flap { animation: none; } }
/* telefoni e tablet: niente 3D (su Safari mobile lascia riquadri scuri per un attimo);
   i lembi si aprono «schiacciandosi» verso la piega, l'effetto resta quello di un foglio che si apre */
@media (hover: none), (max-width: 860px) {
  .lettera { perspective: none; }
  .lettera__paper { transform-style: flat; }
  .lettera__flap { backface-visibility: hidden; will-change: transform, opacity; }
  .lettera.is-open .lettera__flap--top { animation-name: flap-top-2d; transform-origin: 50% 0; }
  .lettera.is-open .lettera__flap--bottom { animation-name: flap-bottom-2d; transform-origin: 50% 100%; }
}
@keyframes flap-top-2d {
  0%, 18% { transform: translateY(100%) scaleY(1); opacity: 1; background: linear-gradient(0deg, #e4d7bf, #efe5d3); }
  35% { transform: translateY(100%) scaleY(.02); opacity: 1; }
  36%, 100% { transform: translateY(100%) scaleY(0); opacity: 0; }
}
@keyframes flap-bottom-2d {
  0%, 45% { transform: translateY(-100%) scaleY(1); opacity: 1; background: linear-gradient(180deg, #e4d7bf, #efe5d3); }
  66% { transform: translateY(-100%) scaleY(.02); opacity: 1; }
  67%, 100% { transform: translateY(-100%) scaleY(0); opacity: 0; }
}
@keyframes letter-unfold-c {
  0%, 18% { clip-path: inset(33.33% 0 33.33% 0 round 6px); }
  52% { clip-path: inset(0 0 33.33% 0 round 6px); }
  92%, 100% { clip-path: inset(0 0 0 0 round 6px); }
}
@keyframes flap-top-c {
  0%, 18% { transform: rotateX(-180deg); opacity: 1; background: linear-gradient(0deg, #e4d7bf, #efe5d3); }
  35% { transform: rotateX(-92deg); opacity: 1; }
  36%, 100% { transform: rotateX(-90deg); opacity: 0; }
}
@keyframes flap-bottom-c {
  0%, 45% { transform: rotateX(180deg); opacity: 1; background: linear-gradient(180deg, #e4d7bf, #efe5d3); }
  66% { transform: rotateX(92deg); opacity: 1; }
  67%, 100% { transform: rotateX(90deg); opacity: 0; }
}
@keyframes flap-top-2d-c {
  0%, 18% { transform: translateY(100%) scaleY(1); opacity: 1; background: linear-gradient(0deg, #e4d7bf, #efe5d3); }
  35% { transform: translateY(100%) scaleY(.02); opacity: 1; }
  36%, 100% { transform: translateY(100%) scaleY(0); opacity: 0; }
}
@keyframes flap-bottom-2d-c {
  0%, 45% { transform: translateY(-100%) scaleY(1); opacity: 1; background: linear-gradient(180deg, #e4d7bf, #efe5d3); }
  66% { transform: translateY(-100%) scaleY(.02); opacity: 1; }
  67%, 100% { transform: translateY(-100%) scaleY(0); opacity: 0; }
}
/* chiusura: il foglio si ripiega (stesse animazioni al contrario), poi scivola via */
.lettera.is-closing .lettera__sheet { animation: letter-unfold-c 1.1s cubic-bezier(.45,0,.2,1) reverse both; }
.lettera.is-closing .lettera__flap--top { animation: flap-top-c 1.1s cubic-bezier(.45,0,.2,1) reverse both; }
.lettera.is-closing .lettera__flap--bottom { animation: flap-bottom-c 1.1s cubic-bezier(.45,0,.2,1) reverse both; }
.lettera.is-closing .lettera__paper { transform: translateY(60px) rotate(-4deg) scale(.9); opacity: 0; transition: transform .6s cubic-bezier(.5,0,.75,0) 1s, opacity .4s ease 1.15s; }
.lettera.is-closing .lettera__veil { opacity: 0; transition: opacity .5s ease 1s; }
.lettera.is-closing { pointer-events: none; }
@media (hover: none), (max-width: 860px) {
  .lettera.is-closing .lettera__flap--top { animation-name: flap-top-2d-c; transform-origin: 50% 0; }
  .lettera.is-closing .lettera__flap--bottom { animation-name: flap-bottom-2d-c; transform-origin: 50% 100%; }
}
@media (prefers-reduced-motion: reduce) { .lettera.is-closing .lettera__sheet, .lettera.is-closing .lettera__flap { animation: none; } }
.lettera__close { position: absolute; right: 14px; top: 14px; z-index: 2; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(42,42,42,.06); }
.lettera__close span { position: absolute; left: 11px; right: 11px; top: 19px; height: 2px; background: var(--ink); border-radius: 2px; transform: rotate(45deg); }
.lettera__close span + span { transform: rotate(-45deg); }
.lettera__seal { width: 54px; margin-bottom: 10px; filter: invert(20%) sepia(80%) saturate(3500%) hue-rotate(340deg) brightness(.8); }
.lettera__place { margin: 0; font-size: .9rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.lettera__title { font-weight: 900; font-size: clamp(1.9rem, 4.4vw, 2.6rem); line-height: 1; color: var(--red); margin: 0 0 18px; max-width: 16ch; padding-right: 40px; }
.lettera__body p { font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.6; margin: 0 0 14px; color: var(--ink-2); }
.lettera__sign { margin: 20px 0 4px; font-weight: 700; color: var(--ink); }
.lettera__firma { width: 170px; display: block; }
.lettera.is-open .lettera__body p { animation: e-letter-in .7s var(--ease) 1.1s both; }
.lettera.is-open .lettera__body p:nth-child(2) { animation-delay: 1.2s; } .lettera.is-open .lettera__body p:nth-child(3) { animation-delay: 1.3s; } .lettera.is-open .lettera__body p:nth-child(4) { animation-delay: 1.4s; }
@keyframes e-letter-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) { .lettera.is-open .lettera__paper { transform: none; } .lettera__close { position: sticky; top: 0; float: right; margin: -18px -10px 0 10px; background: #efe6d4; } }

/* sezione premi: nella colonna destra c'è l'Arcimboldo 3D al posto della foto */
.premi__side.arci { width: 100%; justify-self: stretch; grid-template-columns: 1fr; text-align: center; margin-top: 0; align-self: start; padding: clamp(20px, 2.5vw, 34px); }
.premi__side.arci .arci__stage { width: 100%; max-width: 420px; margin: 0 auto; aspect-ratio: 1 / 1.2; }
.premi__side.arci .arci__text p { margin-left: auto; margin-right: auto; }
@media (max-width: 860px) { .premi__side.arci { margin-top: 40px; } .premi__side.arci .arci__stage { max-width: 320px; } }

/* pulsante «Leggi la lettera»: fondo beige e scritte rosse */
#arciOpen { background: var(--cream); color: var(--red); border-color: var(--cream); }
#arciOpen::before { background: var(--red-deep); }
#arciOpen:hover { color: var(--cream); border-color: var(--cream); }

/* ===== Invito al gioco dell'impasto (sezione pizze): card blu ben visibile ===== */
.impasto-cta { padding: 34px var(--gutter) 0; }
.impasto-cta__btn { position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: center; gap: 18px; width: min(100%, 640px); padding: 20px 22px 20px 18px; border: 0; border-radius: 26px; background: var(--blue); color: var(--cream); font: inherit; text-align: left; box-shadow: 0 26px 50px -26px rgba(47,95,130,.8); transition: transform .5s var(--ease), box-shadow .5s var(--ease), background .4s; }
.impasto-cta__btn::before { content: ""; position: absolute; right: -40px; top: -60px; width: 220px; height: 220px; z-index: -1; background: url("../assets/img/icon-sole.svg") center / contain no-repeat; filter: brightness(0) invert(1); opacity: .08; animation: spin 40s linear infinite; }
.impasto-cta__btn:hover { background: var(--blue-deep); transform: translateY(-3px); box-shadow: 0 34px 60px -28px rgba(47,95,130,.9); }
.impasto-cta__btn:active { transform: scale(.98); }
.impasto-cta__icon { width: 64px; height: 64px; flex: 0 0 auto; padding: 12px; border-radius: 50%; background: var(--cream); box-shadow: 0 10px 20px -10px rgba(0,0,0,.4); animation: cta-wobble 4s ease-in-out infinite; }
@keyframes cta-wobble { 0%, 80%, 100% { transform: rotate(0); } 86% { transform: rotate(-18deg); } 92% { transform: rotate(12deg); } }
.impasto-cta__text { display: grid; gap: 4px; line-height: 1.2; }
.impasto-cta__text b { font-weight: 900; font-size: clamp(1.35rem, 2.2vw, 1.7rem); line-height: 1; }
.impasto-cta__text span { font-size: 1rem; color: rgba(246,242,236,.85); }
.impasto-cta__arrow { margin-left: auto; flex: 0 0 auto; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--cream); color: var(--blue); font-size: 1.3rem; transition: transform .45s var(--ease); }
.impasto-cta__btn:hover .impasto-cta__arrow { transform: translateX(4px); }
@media (prefers-reduced-motion: reduce) { .impasto-cta__icon, .impasto-cta__btn::before { animation: none; } }

/* ===== Finestra del gioco: a tutto schermo su mobile, pannello su desktop ===== */
.impasto { position: fixed; inset: 0; z-index: 2100; display: flex; visibility: hidden; pointer-events: none; }
.impasto.is-open { visibility: visible; pointer-events: auto; }
.impasto__veil { position: fixed; inset: 0; background: rgba(42,30,20,.55); opacity: 0; transition: opacity .45s var(--ease); }
.impasto.is-open .impasto__veil { opacity: 1; }
.impasto__panel { position: relative; margin: auto; width: min(100%, 980px); max-height: 100%; overflow-y: auto; overscroll-behavior: contain; background: var(--cream-2); color: var(--ink);
  display: grid; grid-template-columns: .9fr 1.1fr; grid-template-areas: "intro stage" "matteo stage"; column-gap: clamp(20px, 4vw, 50px); align-content: start;
  padding: clamp(24px, 4vw, 44px); border-radius: 28px; box-shadow: 0 50px 100px -30px rgba(0,0,0,.5);
  transform: translateY(40px) scale(.97); opacity: 0; transition: transform .6s var(--ease), opacity .4s var(--ease); }
.impasto.is-open .impasto__panel { transform: none; opacity: 1; }
.impasto__close { position: absolute; right: 14px; top: 14px; z-index: 3; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(42,42,42,.07); }
.impasto__close span { position: absolute; left: 12px; right: 12px; top: 20px; height: 2px; border-radius: 2px; background: var(--ink); transform: rotate(45deg); }
.impasto__close span + span { transform: rotate(-45deg); }
.impasto__intro { grid-area: intro; align-self: end; }
.impasto__eyebrow { font-weight: 700; font-size: .85rem; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); }
.impasto__title { font-weight: 900; font-size: clamp(2.2rem, 4.4vw, 3.8rem); line-height: .92; margin: 8px 0 10px; }
.impasto__title .blue { color: var(--blue); }
.impasto__text { margin: 0 0 18px; color: var(--ink-2); line-height: 1.45; }

.impasto .matteo { grid-area: matteo; display: flex; align-items: flex-end; gap: 12px; }
.impasto .matteo__face { flex: 0 0 auto; width: clamp(84px, 10vw, 118px); filter: drop-shadow(0 12px 16px rgba(60,30,10,.18)); transform-origin: 50% 90%; }
.impasto .matteo.is-talking .matteo__face { animation: m-nod 1.2s ease-in-out; }
@keyframes m-nod { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-4deg); } 65% { transform: rotate(3deg); } }
.impasto .matteo__mouth-open { opacity: 0; }
.impasto .matteo.is-talking .matteo__mouth-open { animation: m-talk .22s steps(2) 6; }
@keyframes m-talk { 0% { opacity: 0; } 50% { opacity: 1; } }
.impasto .matteo__blink { transform-origin: 70px 60px; animation: m-blink 4.5s infinite; }
@keyframes m-blink { 0%, 94%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }
.impasto .bubble { position: relative; flex: 1; min-height: 58px; padding: 12px 16px; border-radius: 18px 18px 18px 6px; background: #fff; box-shadow: 0 16px 30px -22px rgba(0,0,0,.35); font-weight: 700; font-size: clamp(.98rem, 1.2vw, 1.08rem); line-height: 1.35; margin-bottom: 8px; }
.impasto .bubble::before { content: ""; position: absolute; left: -7px; bottom: 12px; width: 14px; height: 14px; background: #fff; transform: rotate(45deg); border-radius: 3px; }
.impasto .bubble span { display: block; transition: opacity .35s ease, transform .5s var(--ease); }
.impasto .bubble.is-swap span { opacity: 0; transform: translateY(6px); }

.impasto .imp__stage { grid-area: stage; position: relative; aspect-ratio: 1; width: 100%; align-self: center; }
.impasto .imp__board { position: absolute; inset: 0; border-radius: 24px; background: radial-gradient(120% 90% at 30% 20%, rgba(255,255,255,.3), transparent 60%), repeating-linear-gradient(92deg, #c99a64 0 14px, #c2915a 14px 22px, #cfa26d 22px 34px), #c69660; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06), 0 30px 60px -34px rgba(60,30,10,.55); }
.impasto .imp__board::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(60% 60% at 50% 50%, transparent 55%, rgba(60,30,10,.22)); }
.impasto canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; border-radius: 24px; }
.impasto canvas.is-grab { cursor: grabbing; }
.impasto .imp__meters { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); display: grid; gap: 6px; padding: 9px 14px; border-radius: 14px; background: rgba(246,242,236,.95); box-shadow: 0 10px 24px -12px rgba(0,0,0,.4); font-weight: 700; font-size: .8rem; letter-spacing: .04em; white-space: nowrap; transition: opacity .6s, transform .6s var(--ease); }
.impasto .meter { display: grid; grid-template-columns: 76px 100px 36px; align-items: center; gap: 8px; }
.impasto .meter__bar { height: 6px; border-radius: 6px; background: rgba(42,42,42,.12); overflow: hidden; }
.impasto .meter__bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--blue); transition: width .25s ease, background .4s; }
.impasto .meter__bar i.is-ok { background: #3f8a52; }
.impasto .meter b { text-align: right; font-variant-numeric: tabular-nums; }
.impasto.is-done .imp__meters { opacity: 0; transform: translate(-50%, 10px); }

/* consiglio finale: finestra sopra il gioco */
.impasto .imp__result { position: fixed; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center; padding: 20px; visibility: hidden; pointer-events: none; }
.impasto.is-served .imp__result { visibility: visible; pointer-events: auto; }
.impasto .imp__result-veil { position: absolute; inset: 0; background: rgba(42,30,20,.5); opacity: 0; transition: opacity .5s var(--ease); }
.impasto.is-served .imp__result-veil { opacity: 1; }
.impasto .imp__card { position: relative; width: min(100%, 440px); max-height: calc(100svh - 40px); overflow-y: auto; overscroll-behavior: contain; border-radius: 26px; background: #fff; box-shadow: 0 50px 90px -30px rgba(0,0,0,.55);
  transform: translateY(30px) scale(.95); opacity: 0; transition: transform .7s var(--ease), opacity .45s var(--ease); }
.impasto.is-served .imp__card { transform: none; opacity: 1; }
.impasto .imp__photo { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--cream-3); }
.impasto .imp__photo img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.1); transition: transform 1.6s var(--ease); }
.impasto.is-served .imp__photo img { transform: scale(1); }
.impasto .imp__card small, .impasto .imp__card h3, .impasto .imp__card p, .impasto .imp__actions { margin-left: 22px; margin-right: 22px; }
.impasto .imp__card small { display: block; margin-top: 18px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red); font-size: .74rem; }
.impasto .imp__card h3 { font-weight: 900; font-size: clamp(2rem, 3vw, 2.6rem); line-height: 1; margin-top: 6px; margin-bottom: 8px; }
.impasto .imp__card p { margin-top: 0; margin-bottom: 16px; color: var(--ink-2); line-height: 1.45; }
.impasto .imp__actions { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-bottom: 20px; }
.impasto .imp__again { border: 0; background: none; font: inherit; font-weight: 700; color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; padding: 10px 6px; }
.impasto .imp__card-close { position: absolute; right: 12px; top: 12px; z-index: 2; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(246,242,236,.92); box-shadow: 0 6px 16px -8px rgba(0,0,0,.4); }
.impasto .imp__card-close span { position: absolute; left: 12px; right: 12px; top: 19px; height: 2px; border-radius: 2px; background: var(--ink); transform: rotate(45deg); }
.impasto .imp__card-close span + span { transform: rotate(-45deg); }

@media (max-width: 860px) {
  .impasto-cta__btn { width: 100%; gap: 14px; padding: 18px 16px 18px 14px; border-radius: 22px; }
  .impasto-cta__icon { width: 54px; height: 54px; padding: 10px; }
  .impasto-cta__arrow { width: 40px; height: 40px; }
  /* sul telefono il gioco occupa tutto lo schermo e si legge dall'alto in basso */
  .impasto__panel { width: 100%; height: 100%; max-height: none; border-radius: 0; padding: calc(18px + env(safe-area-inset-top)) 16px calc(24px + env(safe-area-inset-bottom));
    grid-template-columns: 1fr; grid-template-areas: "intro" "matteo" "stage"; transform: translateY(100%); opacity: 1; }
  .impasto__close { top: calc(10px + env(safe-area-inset-top)); right: 10px; }
  .impasto__title { font-size: clamp(2rem, 9vw, 2.6rem); padding-right: 50px; }
  .impasto__text { margin-bottom: 12px; font-size: .98rem; }
  .impasto .matteo { margin-bottom: 12px; }
  .impasto .matteo__face { width: 78px; }
  .impasto .imp__stage { width: min(100%, 460px); margin: 0 auto; }
  .impasto .imp__result { align-items: flex-end; padding: 0; }
  .impasto .imp__card { width: 100%; max-height: 88svh; border-radius: 26px 26px 0 0; padding-bottom: env(safe-area-inset-bottom); transform: translateY(100%); opacity: 1; }
  .impasto .imp__photo { aspect-ratio: 16 / 11; }
  .impasto .imp__actions .btn { flex: 1 1 100%; justify-content: center; }
  .impasto .imp__again { margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) { .impasto .matteo.is-talking .matteo__face, .impasto .matteo__blink { animation: none; } .impasto__panel { transition: none; } }

/* ===== Cambio lingua: sipario ===== */
html.is-lang-arrive body::after { content: ""; position: fixed; inset: 0; z-index: 5000; background: var(--blue); }
.lang-curtain { position: fixed; inset: 0; z-index: 5001; display: grid; place-items: center; background: var(--blue); color: var(--cream); pointer-events: none;
  transform: translateY(100%); border-radius: 0; transition: transform .8s cubic-bezier(.76,0,.24,1), border-radius .8s cubic-bezier(.76,0,.24,1); }
.lang-curtain.is-closing { transform: none; pointer-events: auto; }
.lang-curtain.is-closed { transform: none; transition: none; }
.lang-curtain.is-closed.is-leaving { transform: translateY(-100%); transition: transform .9s cubic-bezier(.76,0,.24,1) .15s; }
.lang-curtain__inner { display: grid; justify-items: center; gap: 18px; }
.lang-curtain img { width: clamp(64px, 9vw, 96px); filter: brightness(0) invert(1); animation: spin 1.6s cubic-bezier(.65,0,.35,1) infinite; }
.lang-curtain span { font-weight: 900; font-size: clamp(3rem, 9vw, 7rem); line-height: .9; letter-spacing: -.01em; overflow: hidden; }
.lang-curtain:not(.is-closed) .lang-curtain__inner { opacity: 0; transform: translateY(30px); transition: opacity .5s ease .35s, transform .7s var(--ease) .3s; }
.lang-curtain.is-closing .lang-curtain__inner { opacity: 1; transform: none; }
.lang-curtain.is-leaving .lang-curtain__inner { opacity: 0; transform: translateY(-30px); transition: opacity .3s ease, transform .5s var(--ease); }

/* tablet in verticale (iPad): foto e video non più alti dello schermo, centrati */
@media (min-width: 600px) and (max-width: 860px) {
  .hero__media { width: min(100%, calc(62svh * .64)); margin-left: auto; margin-right: auto; }
  .storia__portrait { width: min(100%, calc(66svh * .75)); margin-left: auto; margin-right: auto; }
  .storia__sticky { display: flex; justify-content: center; }
  .premi__side.arci .arci__stage { max-width: 360px; }
  .impasto-cta__btn { width: min(100%, 600px); margin: 0 auto; }
}
/* telefono in orizzontale: il video della hero non diventa minuscolo */
@media (min-width: 600px) and (max-width: 860px) and (max-height: 500px) {
  .hero__media { width: min(100%, 340px); }
  .storia__portrait { width: min(100%, 380px); }
}

/* angolo della pagina che si arriccia, in basso a destra (come le vecchie Mappe dell'iPhone):
   sotto la «pagina» c'è il blu del sito; tirando l'angolo verso l'alto a sinistra si arriccia di più */
.socialtab { --base: 64px; --pull: 0; --s: calc(var(--base) + var(--pull) * 150px); position: fixed; right: 0; bottom: 0; top: auto; z-index: 85; width: var(--s); height: var(--s); padding: 0; border: 0; background: none; font: inherit; touch-action: none; user-select: none; cursor: grab;
  opacity: 0; pointer-events: none; transition: width .55s cubic-bezier(.22,1,.36,1), height .55s cubic-bezier(.22,1,.36,1), opacity .5s ease; }
.socialtab.is-on { opacity: 1; pointer-events: auto; }
.socialtab.is-muted { opacity: 0; pointer-events: none; }
.socialtab.is-drag { transition: opacity .5s ease; cursor: grabbing; }
.socialtab:hover:not(.is-drag) { --pull: .12; }
.socialtab:focus-visible { --pull: .3; outline: none; }
.socialtab.is-on:not(.is-drag):not(:hover) { animation: curl-breathe 5s ease-in-out 2.5s infinite; }
@keyframes curl-breathe { 0%, 80%, 100% { --pull: 0; } 88% { --pull: .1; } }
@property --pull { syntax: "<number>"; inherits: true; initial-value: 0; }
/* l'arricciatura è disegnata in SVG: blu sotto, ombra lungo la piega, lembo di carta con la punta tonda */
.socialtab__curl { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; display: block; }
/* il pensiero, sopra l'angolo */
.socialtab__thought { position: absolute; right: calc(var(--s) - 20px); bottom: calc(var(--s) + 4px); pointer-events: none; opacity: 0; transform: translateY(8px) scale(.85); transform-origin: 100% 100%; transition: opacity .4s ease, transform .6s cubic-bezier(.34,1.56,.64,1), right .55s cubic-bezier(.22,1,.36,1), bottom .55s cubic-bezier(.22,1,.36,1); }
.socialtab.is-drag .socialtab__thought { transition: opacity .4s ease; }
.socialtab.is-thinking .socialtab__thought { opacity: 1; transform: none; }
.socialtab__cloud { display: block; padding: 9px 14px; border-radius: 22px; background: #fff; color: var(--ink); font-weight: 700; font-size: .92rem; white-space: nowrap; box-shadow: 0 12px 26px -14px rgba(0,0,0,.4); }
.socialtab__thought i { position: absolute; border-radius: 50%; background: #fff; box-shadow: 0 6px 12px -8px rgba(0,0,0,.4); }
.socialtab__thought i:nth-of-type(1) { width: 10px; height: 10px; right: -4px; bottom: -10px; }
.socialtab__thought i:nth-of-type(2) { width: 6px; height: 6px; right: -10px; bottom: -19px; }
.socialtab.is-thinking .socialtab__cloud { animation: cloud-bob 1.8s ease-in-out infinite; }
@keyframes cloud-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -3px; } }
@media (prefers-reduced-motion: reduce) { .socialtab, .socialtab__cloud { animation: none !important; } }

.lang-curtain span em { font-style: normal; display: inline-block; margin-left: .15em; font-size: .8em; vertical-align: .08em; animation: lang-emoji .9s cubic-bezier(.34,1.56,.64,1) .45s both; }
@keyframes lang-emoji { from { transform: scale(0) rotate(-30deg); opacity: 0; } to { transform: none; opacity: 1; } }

/* badge «Gioca» sulla card del gioco: un puntino che emette impulsi, come qualcosa di vivo */
.impasto-cta__badge { position: relative; justify-self: start; margin-bottom: 4px; display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px 5px 9px; border-radius: 999px; background: var(--red); color: #fff; font-weight: 900; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; line-height: 1; box-shadow: 0 8px 18px -8px rgba(143,15,32,.7); }
.impasto-cta__badge i { position: relative; width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.impasto-cta__badge i::before, .impasto-cta__badge i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #fff; animation: badge-pulse 1.8s cubic-bezier(.22,1,.36,1) infinite; }
.impasto-cta__badge i::after { animation-delay: .9s; }
@keyframes badge-pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(3.4); opacity: 0; } }
/* anche la card «respira» con un'onda leggera attorno (ombra della card stessa, così il sole resta ritagliato) */
.impasto-cta__btn { animation: cta-ring 2.6s ease-out infinite; }
@keyframes cta-ring { 0% { box-shadow: 0 26px 50px -26px rgba(47,95,130,.8), 0 0 0 0 rgba(62,121,163,.5); } 70%, 100% { box-shadow: 0 26px 50px -26px rgba(47,95,130,.8), 0 0 0 16px rgba(62,121,163,0); } }
@media (max-width: 860px) { .impasto-cta__badge { font-size: .64rem; padding: 4px 9px 4px 8px; } }
@media (prefers-reduced-motion: reduce) { .impasto-cta__badge i::before, .impasto-cta__badge i::after, .impasto-cta__btn { animation: none; } }

/* ===== Invito ai social: card verticale pulita (foto con titolo, testo, due righe-link con i follower) ===== */
.socialtoast { position: fixed; inset: 0; z-index: 1900; display: grid; place-items: center; padding: 20px; visibility: hidden; pointer-events: none; }
.socialtoast.is-open { visibility: visible; pointer-events: auto; }
.socialtoast.is-muted { visibility: hidden; pointer-events: none; }
.socialtoast__veil { position: absolute; inset: 0; background: rgba(30,22,16,.5); opacity: 0; transition: opacity .6s ease; }
.socialtoast.is-open .socialtoast__veil { opacity: 1; }
/* card blu netta: foto intera in alto, testi e link sotto */
.socialtoast__card { --sky: rgba(255,255,255,.16); position: relative; width: min(100%, 400px, max(280px, calc((100svh - 330px) * .8))); max-height: calc(100svh - 40px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; border-radius: 30px; background: var(--blue); color: #fff;
  box-shadow: 0 60px 120px -40px rgba(0,0,0,.6); opacity: 0; }
/* entrata «a scatto»: la card salta fuori, rimbalza e dondola come una notifica */
.socialtoast.is-open .socialtoast__card { animation: social-pop .95s cubic-bezier(.2,.9,.3,1) both; }
@keyframes social-pop {
  0% { opacity: 0; transform: translateY(80px) scale(.55) rotate(-8deg); }
  35% { opacity: 1; transform: translateY(-14px) scale(1.06) rotate(3deg); }
  52% { transform: translateY(4px) scale(.98) rotate(-2.5deg); }
  68% { transform: translateY(-2px) scale(1.01) rotate(1.5deg); }
  84% { transform: rotate(-.6deg); }
  100% { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .socialtoast.is-open .socialtoast__card { animation: none; opacity: 1; } }
.socialtoast__close { position: absolute; right: 14px; top: 14px; z-index: 3; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.85); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background .3s, transform .5s var(--ease); }
.socialtoast__close:hover { background: var(--ink); transform: rotate(90deg); }
.socialtoast__close span { position: absolute; left: 12px; right: 12px; top: 19px; height: 1.5px; background: var(--ink); transform: rotate(45deg); transition: background .3s; }
.socialtoast__close span + span { transform: rotate(-45deg); }
.socialtoast__close:hover span { background: #fff; }
.socialtoast__photo { position: relative; aspect-ratio: 900 / 1125; overflow: hidden; background: #d6d3d4; }
.socialtoast__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.2); transition: transform 2.2s cubic-bezier(.16,1,.3,1) .1s; }
.socialtoast.is-open .socialtoast__photo img { transform: scale(1); }
.socialtoast__body { padding: 22px 22px 22px; text-align: center; }
.socialtoast__links { text-align: left; }
.socialtoast__title { margin: 0 0 12px; font-weight: 900; font-size: clamp(2rem, 7vw, 2.5rem); line-height: .9; letter-spacing: -.01em; color: #fff; text-wrap: balance;
  opacity: 0; transform: translateY(24px); transition: opacity .6s ease .55s, transform 1s cubic-bezier(.16,1,.3,1) .55s; }
.socialtoast__title em { display: block; margin-top: 6px; font-style: normal; font-weight: 500; font-size: .5em; line-height: 1.1; color: var(--blue); }
.socialtoast.is-open .socialtoast__title { opacity: 1; transform: none; }
.socialtoast__text { margin: 0 0 18px; font-size: .98rem; line-height: 1.4; color: rgba(255,255,255,.82); max-width: 32ch; margin-inline: auto; }
.socialtoast__wink { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; font-weight: 700; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--beige); }
.socialtoast__wink i { font-style: normal; display: inline-block; animation: wink-point 1.4s ease-in-out infinite; }
@keyframes wink-point { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
.socialtoast__links { display: grid; gap: 8px; }
.socialtoast__row { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 12px; padding: 9px 10px 9px 9px; border-radius: 999px; background: #fff; color: var(--ink); text-decoration: none;
  opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .8s cubic-bezier(.16,1,.3,1), background .3s, color .3s; }
.socialtoast.is-open .socialtoast__row { opacity: 1; transform: none; }
.socialtoast.is-open .socialtoast__row:nth-child(1) { transition-delay: .7s, .7s, 0s, 0s; }
.socialtoast.is-open .socialtoast__row:nth-child(2) { transition-delay: .8s, .8s, 0s, 0s; }
.socialtoast__ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #fff; }
.socialtoast__ico--ig { background: #b59c83; }
.socialtoast__ico--fb { background: var(--blue); }
.socialtoast__ico svg { width: 19px; height: 19px; }
.socialtoast__name { display: grid; gap: 2px; min-width: 0; }
.socialtoast__name b { font-weight: 900; font-size: 1.1rem; line-height: 1; }
.socialtoast__name small { font-size: .74rem; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.socialtoast__count { display: grid; justify-items: end; gap: 2px; }
.socialtoast__count b { font-weight: 900; font-size: 1.1rem; line-height: 1; color: var(--blue); font-variant-numeric: tabular-nums; }
.socialtoast__count small { font-size: .58rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.socialtoast__go { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--cream-2); color: var(--ink); font-size: .95rem; transition: transform .5s var(--ease), background .3s, color .3s; }
@media (hover: hover) and (pointer: fine) {
  .socialtoast__row:hover .socialtoast__go { transform: rotate(45deg); background: var(--blue); color: #fff; }
}
@media (max-width: 640px) {
  /* sul telefono la card è più compatta */
  .socialtoast { padding: 16px; }
  .socialtoast__card { width: min(100%, 310px, max(240px, calc((100svh - 300px) * .8))); border-radius: 24px; }
  .socialtoast__close { width: 34px; height: 34px; right: 10px; top: 10px; }
  .socialtoast__close span { left: 10px; right: 10px; top: 16px; }
  .socialtoast__body { padding: 14px 14px 14px; }
  .socialtoast__title { font-size: 1.7rem; margin-bottom: 8px; }
  .socialtoast__text { font-size: .86rem; margin-bottom: 12px; }
  .socialtoast__wink { font-size: .64rem; margin-bottom: 8px; }
  .socialtoast__links { gap: 6px; }
  .socialtoast__row { gap: 9px; padding: 6px 8px 6px 6px; }
  .socialtoast__ico { width: 32px; height: 32px; }
  .socialtoast__ico svg { width: 15px; height: 15px; }
  .socialtoast__name b, .socialtoast__count b { font-size: .95rem; }
  .socialtoast__name small { display: none; }
  .socialtoast__count small { font-size: .52rem; }
  .socialtoast__go { width: 26px; height: 26px; font-size: .8rem; }
}
@media (prefers-reduced-motion: reduce) { .socialtoast__card, .socialtoast__photo img, .socialtoast__title, .socialtoast__row { transition: opacity .3s; transform: none; } .socialtoast__wink i { animation: none; } }

/* badge Google sotto «Dicono di noi»: più piccolo e compatto sul telefono */
@media (max-width: 640px) {
  .gbadge { gap: 5px; padding: 7px 11px 7px 8px; font-size: .74rem; margin-bottom: 14px; max-width: calc(100% - 40px); }
  .gbadge__g { width: 17px; height: 17px; }
  .gbadge__stars { font-size: .72rem; letter-spacing: -.02em; }
  .gbadge b { font-size: .9rem; }
  .gbadge__txt { white-space: nowrap; }
}
