/* ==========================================================================
   Il Duca — Pizzeria · San Giorgio a Cremano
   Verde ducale + oro + crema, accento pomodoro · Playfair Display / Karla
   ========================================================================== */

:root {
  --green-950: #0F2219;
  --green-900: #16301F;
  --green-800: #1F3E2B;
  --green-700: #24513A;
  --gold-300: #E8D29C;
  --gold-400: #D4AE62;
  --gold-500: #BF9548;
  --gold-700: #8A5A0B;
  --tomato: #B3261E;
  --cream-50: #FCF9F3;
  --cream-100: #F7F1E6;
  --cream-200: #EEE4D2;
  --white: #FFFFFF;
  --ink: #17191A;
  --muted: #585E58;
  --line: rgba(23, 25, 26, 0.12);
  --line-strong: rgba(23, 25, 26, 0.28);
  --on-dark: #F7F1E6;
  --on-dark-muted: #BAC4BC;
  --line-dark: rgba(247, 241, 230, 0.14);

  --ok: #15803D;
  --soon: #B45309;
  --ko: #B91C1C;

  --font-display: "Playfair Display", "Times New Roman", Georgia, serif;
  --font-body: "Karla", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 26px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1240px;
  --header-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream-100);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
body.is-locked { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
::selection { background: var(--gold-400); color: var(--green-950); }

:focus-visible { outline: 2px solid var(--gold-400); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  padding: 12px 18px; border-radius: 999px;
  background: var(--gold-400); color: var(--green-950);
  font-weight: 700; text-decoration: none;
  transform: translateY(-160%); transition: transform .3s var(--ease-out);
}
.skip-link:focus { transform: none; }

.container { width: min(var(--maxw), 100% - 2 * var(--gutter)); margin-inline: auto; }

.icon, .pillar__icon, .feature__icon {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}

/* Grana leggera */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Bozza: segnaposto visibili finché <html> ha la classe "bozza" ---------- */
.bozza-tag { display: none; }
.bozza .bozza-tag {
  position: absolute; left: 50%; top: calc(var(--header-h) + 10px); z-index: 95; translate: -50% 0; white-space: nowrap;
  display: block; margin: 0; padding: 7px 12px; border-radius: 999px;
  background: #FDE68A; color: #422006; font-size: .74rem; font-weight: 700;
  letter-spacing: .02em; box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .5); pointer-events: none;
}
.todo { background: none; color: inherit; }
.bozza .todo {
  background: #FDE68A; color: #422006; padding: 0 .25em; border-radius: 4px;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.ph { position: relative; }
.bozza .ph::after {
  content: "Foto provvisoria"; position: absolute; right: 10px; top: 10px; z-index: 3;
  padding: 4px 9px; border-radius: 999px; background: rgba(15, 34, 25, .78); color: #FDE68A;
  font: 700 .66rem/1.2 var(--font-body); letter-spacing: .04em; pointer-events: none;
}
.bozza .hero__media.ph::after { top: auto; bottom: 120px; right: var(--gutter); }

/* ---------- Tipografia ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin: 0 0 18px;
  font-size: .78rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-700);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.eyebrow--light { color: var(--gold-400); }

.h2 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2.15rem, 1.3rem + 3.3vw, 4.25rem);
  line-height: 1.04; letter-spacing: -.022em; margin: 0 0 .55em; text-wrap: balance; max-width: 18ch;
}
.h2 em { font-style: italic; font-weight: 400; color: var(--gold-700); }
.h2--light { color: var(--on-dark); }
.h2--light em { color: var(--gold-400); }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px; padding: .8em 1.4em; border: 1px solid transparent; border-radius: 999px;
  font-family: var(--font-body); font-size: .95rem; font-weight: 700; letter-spacing: .02em; line-height: 1;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .3s var(--ease-out), color .3s var(--ease-out), border-color .3s var(--ease-out),
              box-shadow .3s var(--ease-out), transform .3s var(--ease-out), translate .35s var(--ease-out);
}
.btn .icon { width: 1.15em; height: 1.15em; }
.btn:active { transform: scale(.97); }
.btn--gold { background: var(--gold-400); color: var(--green-950); }
.btn--gold:hover { background: var(--gold-300); box-shadow: 0 14px 34px -14px rgba(212, 174, 98, .75); }
.btn--ghost {
  color: var(--on-dark); border-color: rgba(247, 241, 230, .38); background: rgba(247, 241, 230, .05);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.btn--ghost:hover { border-color: var(--on-dark); background: rgba(247, 241, 230, .12); }
.btn--dark { background: var(--green-950); color: var(--cream-50); }
.btn--dark:hover { background: var(--green-800); box-shadow: 0 14px 30px -16px rgba(15, 34, 25, .7); }
.btn--line { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn--line:hover { border-color: var(--ink); }
.btn--sm { min-height: 44px; padding: .65em 1.1em; font-size: .88rem; }
.btn--lg { min-height: 56px; padding: 1em 1.7em; font-size: 1rem; }

.link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  color: var(--gold-700); font-weight: 700; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 78% / 0 1px no-repeat;
  transition: background-size .4s var(--ease-out);
}
.link:hover { background-size: 100% 1px; }
.link .icon { width: 1em; height: 1em; }

/* ---------- Intro ---------- */
.intro { display: none; }
.js .intro {
  position: fixed; inset: 0; z-index: 120; display: grid; place-items: center;
  background: var(--green-950); color: var(--cream-100);
  animation: intro-out 1s var(--ease-in-out) 2.6s forwards;
}
.js .intro.is-done { animation: intro-out .95s var(--ease-in-out) forwards; }
.no-intro .intro { display: none !important; }
.intro__inner { display: grid; justify-items: center; gap: 10px; text-align: center; }
.intro__crest {
  width: 72px; height: 81px; color: var(--gold-400);
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 260; stroke-dashoffset: 260;
  animation: draw 1.3s var(--ease-out) forwards;
}
.intro__name {
  font-family: var(--font-display); font-size: clamp(2.6rem, 7vw, 3.8rem); font-weight: 500;
  letter-spacing: -.02em; line-height: 1; animation: intro-in .9s var(--ease-out) .2s both;
}
.intro__sub {
  font-size: .72rem; font-weight: 700; letter-spacing: .32em; text-transform: uppercase;
  color: var(--on-dark-muted); animation: intro-in .9s var(--ease-out) .32s both;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes intro-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes intro-out { to { transform: translateY(-100%); visibility: hidden; } }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 60; color: var(--on-dark);
  transition: background-color .45s var(--ease-out), color .45s var(--ease-out),
              box-shadow .45s var(--ease-out), transform .55s var(--ease-out);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: var(--header-h); width: min(1360px, 100% - 2 * var(--gutter)); margin-inline: auto;
}
.header.is-solid {
  color: var(--ink); background: rgba(247, 241, 230, .88);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.header.is-hidden { transform: translateY(-105%); }
.header.is-menu-open {
  color: var(--on-dark); background: transparent; box-shadow: none;
  -webkit-backdrop-filter: none; backdrop-filter: none; transform: none;
}

.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; color: inherit; }
.brand__crest {
  width: 34px; height: 38px; color: var(--gold-400);
  fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .6s var(--ease-out), color .45s;
}
.header.is-solid .brand__crest { color: var(--gold-700); }
.header.is-menu-open .brand__crest { color: var(--gold-400); }
.brand:hover .brand__crest { transform: rotate(-8deg); }
.brand__text { display: grid; line-height: 1.05; }
.brand__name { font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; letter-spacing: -.01em; }
.brand__sub { font-size: .62rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; opacity: .78; }

.nav__list { display: flex; gap: clamp(18px, 2.2vw, 34px); }
.nav__list a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px;
  font-size: .95rem; font-weight: 600; text-decoration: none;
}
.nav__list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 10px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out);
}
.nav__list a:hover::after, .nav__list a.is-current::after { transform: scaleX(1); transform-origin: left; }

.header__actions { display: flex; align-items: center; gap: 10px; }

.burger { display: none; position: relative; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.burger span {
  position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor;
  transition: transform .45s var(--ease-out), top .45s var(--ease-out);
}
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 26px; }
.burger[aria-expanded="true"] span:first-child { top: 21.5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21.5px; transform: rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: 0; z-index: 55; display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--header-h) + 32px) var(--gutter) calc(32px + env(safe-area-inset-bottom));
  background: var(--green-950); color: var(--on-dark);
  opacity: 0; visibility: hidden; transition: opacity .45s var(--ease-out), visibility 0s linear .45s; overflow-y: auto;
}
.mobile-nav[hidden] { display: none; }
.mobile-nav.is-open { opacity: 1; visibility: visible; transition: opacity .45s var(--ease-out); }
.mobile-nav__list { display: grid; gap: 4px; }
.mobile-nav__list a {
  display: block; padding: 8px 0; font-family: var(--font-display); font-size: clamp(2.1rem, 9vw, 3rem);
  line-height: 1.1; text-decoration: none; opacity: 0; transform: translateY(18px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out), color .3s;
}
.mobile-nav.is-open .mobile-nav__list a { opacity: 1; transform: none; }
.mobile-nav.is-open li:nth-child(2) a { transition-delay: .05s; }
.mobile-nav.is-open li:nth-child(3) a { transition-delay: .1s; }
.mobile-nav.is-open li:nth-child(4) a { transition-delay: .15s; }
.mobile-nav.is-open li:nth-child(5) a { transition-delay: .2s; }
.mobile-nav__list a:hover { color: var(--gold-400); }
.mobile-nav__foot { display: grid; gap: 12px; margin-top: 40px; }
.mobile-nav__addr { margin: 6px 0 0; font-size: .9rem; color: var(--on-dark-muted); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 100vh; min-height: 100svh; padding-top: calc(var(--header-h) + 40px);
  overflow: hidden; color: var(--on-dark); background: var(--green-950);
}
.hero__media { position: absolute; inset: -4% 0; z-index: -2; will-change: translate; }
.hero__img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 55%; }
.js .hero__img { transform: scale(1.14); }
.hero.is-ready .hero__img { animation: kenburns 16s var(--ease-out) forwards; }
@keyframes kenburns { from { transform: scale(1.14); } to { transform: scale(1.02); } }
.hero__veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(15, 34, 25, .92) 0%, rgba(15, 34, 25, .78) 34%, rgba(15, 34, 25, .38) 66%, rgba(15, 34, 25, .2) 100%),
    linear-gradient(180deg, rgba(15, 34, 25, .55) 0%, rgba(15, 34, 25, 0) 24%, rgba(15, 34, 25, 0) 58%, rgba(15, 34, 25, .94) 100%);
}
.hero__content { padding-bottom: clamp(28px, 5vh, 56px); }
.hero__title {
  font-family: var(--font-display); font-weight: 500; font-size: clamp(3rem, 1.2rem + 7.4vw, 8.4rem);
  line-height: .94; letter-spacing: -.035em; margin: .18em 0 .32em; max-width: 15ch;
}
.hero__title em { font-weight: 400; color: var(--gold-400); }
.hero__lead { max-width: 46ch; margin: 0; font-size: clamp(1.05rem, .95rem + .45vw, 1.32rem); color: rgba(247, 241, 230, .88); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.hero__bar {
  display: flex; flex-wrap: wrap; align-items: center; border-top: 1px solid var(--line-dark);
  padding: 20px 0 calc(26px + env(safe-area-inset-bottom));
}
.proof {
  display: flex; align-items: center; gap: 14px; min-height: 52px;
  padding-right: clamp(18px, 3vw, 36px); margin-right: clamp(18px, 3vw, 36px);
  border-right: 1px solid var(--line-dark); color: inherit; text-decoration: none;
}
.proof:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
a.proof:hover .proof__label { color: var(--on-dark); }
.proof__score { font-family: var(--font-display); font-size: 2.4rem; line-height: 1; }
.proof__body { display: grid; gap: 4px; }
.proof__label { font-size: .86rem; color: var(--on-dark-muted); transition: color .3s; }
.proof--status { flex-direction: column; align-items: flex-start; gap: 2px; }
.proof__link { font-size: .86rem; color: var(--on-dark-muted); }
.proof__link:hover { color: var(--gold-400); }

.stars { display: inline-flex; gap: 2px; }
.stars svg { width: 15px; height: 15px; fill: var(--gold-400); stroke: none; }
.stars .stars__p80 { fill: url(#g-p80); }
.stars .stars__p40 { fill: url(#g-p40); }

.hero__scroll {
  position: absolute; right: var(--gutter); bottom: 32px; display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-size: .7rem; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--on-dark-muted);
  text-decoration: none; writing-mode: vertical-rl;
}
.hero__scroll-line { position: relative; width: 1px; height: 64px; overflow: hidden; background: var(--line-dark); }
.hero__scroll-line::after { content: ""; position: absolute; inset: 0; background: var(--gold-400); animation: scroll-line 2.2s var(--ease-in-out) infinite; }
@keyframes scroll-line { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

.js .hero [data-hero-step] { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.js .hero.is-ready [data-hero-step] { opacity: 1; transform: none; }
.js .hero.is-ready .hero__lead { transition-delay: .55s; }
.js .hero.is-ready .hero__ctas { transition-delay: .7s; }
.js .hero.is-ready .hero__bar { transition-delay: .9s; }

.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .08em .14em 0; margin: 0 -.08em -.14em 0; }
.split .w > span { display: inline-block; transform: translateY(110%); transition: transform 1.15s var(--ease-out); transition-delay: calc(var(--wi, 0) * 70ms + var(--split-delay, 0ms)); }
.split.is-in .w > span { transform: none; }

/* Stato aperto/chiuso */
.status { display: inline-flex; align-items: center; gap: .55em; font-size: .92rem; font-weight: 700; }
.status__dot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: #9AA3AF; }
.status.is-open .status__dot { background: #4ADE80; }
.status.is-open .status__dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid #4ADE80; animation: ping 2s var(--ease-out) infinite; }
.status.is-soon .status__dot { background: #FBBF24; }
.status.is-closed .status__dot { background: #F87171; }
.status--dark { padding: 6px 12px; border-radius: 999px; background: var(--cream-100); border: 1px solid var(--line); }
.status--dark.is-open .status__dot { background: var(--ok); }
.status--dark.is-open .status__dot::after { border-color: var(--ok); }
.status--dark.is-soon .status__dot { background: var(--soon); }
.status--dark.is-closed .status__dot { background: var(--ko); }
@keyframes ping { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }

/* ---------- Marquee ---------- */
.marquee { position: relative; overflow: hidden; padding: 20px 0; background: var(--green-950); color: var(--gold-400); border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.marquee__track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; gap: 36px; padding-right: 36px; font-family: var(--font-display); font-style: italic; font-size: clamp(1.25rem, 1rem + 1vw, 1.9rem); white-space: nowrap; }
.marquee__sep { width: 7px; height: 7px; background: var(--tomato); transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sezioni ---------- */
.section { padding: clamp(84px, 11vw, 160px) 0; }
.section-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 8px 48px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head .eyebrow, .section-head .h2 { grid-column: 1; }
.section-head .h2 { margin-bottom: 0; }
.section-head__hint { grid-column: 2; grid-row: 2; max-width: 30ch; margin: 0; font-size: .92rem; color: var(--muted); text-align: right; }
.section-head--center { display: block; text-align: center; }
.section-head--center .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; }
.section-head--center .h2 { margin-inline: auto; }

/* ---------- La storia ---------- */
.story { background: var(--cream-100); }
.story__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px clamp(32px, 6vw, 96px); align-items: end; margin-bottom: clamp(48px, 7vw, 88px); }
.story__head .h2 { margin-bottom: 0; }
.story__intro { margin: 0; font-size: 1.12rem; color: var(--muted); }

.timeline { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.moment { position: relative; padding: 34px clamp(16px, 2.4vw, 32px) 0 0; }
.moment + .moment { padding-left: clamp(16px, 2.4vw, 32px); border-left: 1px solid var(--line); }
.moment::before {
  content: ""; position: absolute; top: -6px; left: 0; width: 11px; height: 11px; border-radius: 50%;
  background: var(--cream-100); border: 2px solid var(--gold-500);
}
.moment + .moment::before { left: -6px; }
.moment__year { display: block; font-family: var(--font-display); font-style: italic; font-size: 1.9rem; line-height: 1; color: var(--gold-700); }
.moment__title { margin: 14px 0 8px; font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; }
.moment p { margin: 0; color: var(--muted); }

.owners {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: center;
  margin-top: clamp(64px, 9vw, 120px); padding: clamp(28px, 4vw, 56px);
  border-radius: var(--radius-lg); background: var(--cream-50); border: 1px solid var(--line);
}
.owners__frame {
  position: relative; display: grid; place-items: center; aspect-ratio: 4 / 5; border-radius: var(--radius);
  background:
    repeating-linear-gradient(135deg, rgba(191, 149, 72, .09) 0 12px, transparent 12px 24px),
    var(--green-950);
  color: var(--gold-400); overflow: hidden;
}
.owners__crest { width: 38%; height: auto; aspect-ratio: 64 / 72; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.owners__frame-note { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--on-dark-muted); }
.owners__title { margin-bottom: 18px; font-family: var(--font-display); font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.6rem); font-weight: 500; line-height: 1.12; letter-spacing: -.015em; }
.owners__title em { color: var(--gold-700); font-weight: 400; }
.owners__text > p:not(.eyebrow):not(.owners__sign) { font-size: 1.08rem; color: var(--muted); max-width: 56ch; }
.owners__sign { margin-top: 22px; font-family: var(--font-display); font-style: italic; font-size: 1.2rem; color: var(--ink); }

/* ---------- La pizza ---------- */
.craft { background: var(--cream-50); }
.craft__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); align-items: center; }
.craft__text { grid-column: 1 / span 5; }
.craft__text p:not(.eyebrow) { font-size: 1.1rem; color: var(--muted); max-width: 48ch; }
.craft__media { grid-column: 7 / span 6; position: relative; min-height: clamp(380px, 44vw, 560px); }
.craft__fig { position: absolute; overflow: hidden; border-radius: var(--radius-lg); box-shadow: 0 34px 70px -36px rgba(15, 34, 25, .55); translate: 0 var(--py, 0px); }
.craft__fig img { width: 100%; height: 100%; object-fit: cover; }
.craft__fig--a { top: 0; left: 0; width: 56%; aspect-ratio: 4 / 5; }
.craft__fig--b { right: 0; bottom: 0; width: 52%; aspect-ratio: 1 / 1; border: 8px solid var(--cream-50); }

.pillars { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(40px, 7vw, 96px); border-top: 1px solid var(--line); }
.pillar { padding: 32px clamp(14px, 2.4vw, 32px) 0 0; }
.pillar + .pillar { padding-left: clamp(14px, 2.4vw, 32px); border-left: 1px solid var(--line); }
.pillar__icon { width: 34px; height: 34px; color: var(--gold-700); stroke-width: 1.3; }
.pillar__title { margin: 18px 0 8px; font-family: var(--font-display); font-size: 1.4rem; font-weight: 500; }
.pillar p { margin: 0; color: var(--muted); }

/* ---------- Galleria immersiva (da "Immersive Scroll Gallery", 21st.dev) ---------- */
.zoom { position: relative; background: var(--green-950); color: var(--on-dark); }
.zoom__sticky {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
  width: min(var(--maxw), 100% - 2 * var(--gutter)); margin-inline: auto; padding: clamp(84px, 11vw, 140px) 0;
}
.zoom__frame { overflow: hidden; border-radius: var(--radius-sm); aspect-ratio: 4 / 3; }
.zoom__frame img { width: 100%; height: 100%; object-fit: cover; }
.zoom__layer:first-child { grid-column: 1 / -1; }
.zoom__layer:first-child .zoom__frame { aspect-ratio: 16 / 9; }
.zoom__text { grid-column: 1 / -1; order: -1; margin-bottom: 32px; text-align: center; }
.zoom__text .h2 { margin-inline: auto; }
.zoom__p { max-width: 46ch; margin: 0 auto; color: var(--on-dark-muted); font-size: 1.1rem; }
.zoom__hint { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .js .zoom { height: 190vh; } /* più corta = si scorre meno per arrivare in fondo (prima 320vh, poi 230vh) */
  .js .zoom__sticky { position: sticky; top: 0; display: block; width: auto; height: 100vh; height: 100svh; padding: 0; overflow: hidden; }
  .js .zoom__layer { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; will-change: transform, opacity; pointer-events: none; }
  .js .zoom__frame { position: relative; border-radius: 0; aspect-ratio: auto; }
  .js .zoom__layer:first-child .zoom__frame { aspect-ratio: auto; }
  .js .zoom__frame--0 { width: 25vw; height: 25vh; }
  .js .zoom__frame--1 { width: 35vw; height: 30vh; top: -30vh; left: 5vw; }
  .js .zoom__frame--2 { width: 20vw; height: 55vh; top: -15vh; left: -25vw; }
  .js .zoom__frame--3 { width: 25vw; height: 25vh; left: 27.5vw; }
  .js .zoom__frame--4 { width: 20vw; height: 30vh; top: 30vh; left: 5vw; }
  .js .zoom__frame--5 { width: 30vw; height: 25vh; top: 27.5vh; left: -22.5vw; }
  .js .zoom__frame--6 { width: 15vw; height: 15vh; top: 22.5vh; left: 25vw; }
  .js .zoom__text {
    position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
    margin: 0; padding: 0 var(--gutter); opacity: 0; transform: scale(.85); will-change: opacity, transform;
  }
  .js .zoom__hint {
    position: absolute; left: 0; right: 0; bottom: 28px; display: block; margin: 0; text-align: center;
    font-size: .72rem; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: var(--on-dark);
  }
  .js .zoom__hint span { display: inline-block; padding: 9px 16px; border-radius: 999px; background: rgba(15, 34, 25, .8); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
  .bozza .zoom .ph::after { display: none; }
}

/* ---------- Le specialità (da "Reveal images", 21st.dev) ---------- */
.signature { background: var(--cream-100); }
.reveal-list { border-top: 1px solid var(--line); }
.reveal-item__link {
  position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: center; gap: 16px;
  padding: clamp(18px, 2.6vw, 30px) 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none;
}
.reveal-item__num { font-size: .85rem; font-weight: 700; letter-spacing: .12em; color: var(--gold-700); font-variant-numeric: tabular-nums; }
.reveal-item__body { min-width: 0; padding-right: clamp(0px, 16vw, 230px); }
.reveal-item__name {
  display: block; font-family: var(--font-display); font-size: clamp(1.9rem, 1.1rem + 3.6vw, 4.6rem);
  font-weight: 500; line-height: 1.04; letter-spacing: -.025em;
  transition: opacity .5s var(--ease-out), transform .6s var(--ease-out);
}
.reveal-item__meta { display: block; margin-top: 8px; font-size: .95rem; color: var(--muted); }
.reveal-item__pics {
  position: absolute; right: clamp(8px, 4vw, 64px); top: 50%; width: clamp(8rem, 13vw, 12.5rem); aspect-ratio: 4 / 5;
  translate: 0 -50%; pointer-events: none; z-index: 2;
}
.pic { position: absolute; inset: 0; transition: transform .5s var(--ease-out) .15s; }
.pic__in {
  position: absolute; inset: 0; overflow: hidden; border-radius: 14px; opacity: 0; transform: scale(0); transform-origin: 100% 0;
  transition: transform .5s var(--ease-out) .1s, opacity .5s var(--ease-out) .1s, box-shadow .5s var(--ease-out);
}
.pic--front .pic__in { transition-duration: .3s; }
.pic__in img { width: 100%; height: 100%; object-fit: cover; }

@media (hover: hover) and (pointer: fine) {
  .reveal-item__link:hover .reveal-item__name, .reveal-item__link:focus-visible .reveal-item__name { opacity: .4; transform: translateX(14px); }
  .reveal-item__link:hover .pic__in, .reveal-item__link:focus-visible .pic__in { opacity: 1; transform: scale(1); box-shadow: 0 26px 50px -14px rgba(15, 34, 25, .45); }
  .reveal-item__link:hover .pic--front, .reveal-item__link:focus-visible .pic--front { transform: translate(1.6rem, 1.4rem) rotate(10deg); }
  .reveal-item__link:hover .pic--back, .reveal-item__link:focus-visible .pic--back { transform: translate(-.6rem, -.4rem) rotate(-6deg); }
  .only-touch { display: none; }
}
@media (hover: none), (pointer: coarse) {
  .only-hover { display: none; }
  .reveal-item__link { grid-template-columns: 36px minmax(0, 1fr) 64px; }
  .reveal-item__body { padding-right: 0; }
  .reveal-item__pics { position: relative; right: auto; top: auto; translate: none; width: 64px; }
  .pic--back { display: none; }
  .pic__in { opacity: 1; transform: none; border-radius: 12px; }
}

/* ---------- Pizza Maxi ---------- */
.maxi { position: relative; isolation: isolate; overflow: hidden; padding: clamp(96px, 13vw, 180px) 0; color: var(--on-dark); background: var(--green-950); }
.maxi__media { position: absolute; inset: 0; z-index: -2; }
.maxi__media img { width: 100%; height: 115%; object-fit: cover; translate: 0 calc(-7% + var(--py, 0px)); }
.maxi::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(15, 34, 25, .95) 0%, rgba(15, 34, 25, .82) 45%, rgba(15, 34, 25, .45) 100%); }
.maxi__inner { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.maxi__badge {
  display: grid; place-items: center; align-content: center; width: clamp(140px, 17vw, 220px); aspect-ratio: 1;
  border-radius: 50%; border: 1px solid rgba(212, 174, 98, .6); color: var(--gold-400);
  box-shadow: inset 0 0 0 10px rgba(212, 174, 98, .08);
}
.maxi__badge span { font-family: var(--font-display); font-size: clamp(3.6rem, 2.4rem + 4vw, 6rem); line-height: .9; }
.maxi__badge small { font-size: .9rem; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; }
.maxi__text > p:not(.eyebrow) { max-width: 52ch; color: var(--on-dark-muted); font-size: 1.1rem; }

/* ---------- Il locale ---------- */
.place { background: var(--green-900); color: var(--on-dark); position: relative; overflow: hidden; }
.place::before { content: ""; position: absolute; inset: auto auto -40% -20%; width: 70vw; height: 70vw; border-radius: 50%; background: radial-gradient(circle, rgba(212, 174, 98, .12), transparent 60%); pointer-events: none; }
.place__grid { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.place__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius-lg); }
.place__media img { width: 100%; height: 112%; object-fit: cover; translate: 0 calc(-6% + var(--py, 0px)); }
.place__caption {
  position: absolute; left: 16px; bottom: 16px; padding: 10px 14px; border-radius: 999px;
  background: rgba(15, 34, 25, .72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: .85rem; font-weight: 600; color: var(--on-dark);
}
html:not(.bozza) .place__caption { display: none; }
.place__text > p:not(.eyebrow) { max-width: 50ch; color: var(--on-dark-muted); font-size: 1.1rem; }
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin-top: 28px; }
.feature { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 20px 0; border-top: 1px solid var(--line-dark); }
.feature__icon { width: 28px; height: 28px; color: var(--gold-400); stroke-width: 1.3; }
.feature h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 500; margin-bottom: 4px; }
.feature p { margin: 0; color: var(--on-dark-muted); font-size: .98rem; }
.feature a { color: var(--gold-400); }

/* ---------- Recensioni ---------- */
.reviews { background: var(--cream-50); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat + .stat { border-left: 1px solid var(--line); }
.stat a {
  display: grid; justify-items: center; align-content: start; gap: 4px; height: 100%; padding: 34px 16px 30px;
  text-align: center; text-decoration: none; transition: background-color .3s var(--ease-out);
}
.stat a:hover { background: rgba(212, 174, 98, .08); }
.stat__num { font-family: var(--font-display); font-size: clamp(3rem, 2.4rem + 2.2vw, 4.4rem); font-weight: 500; line-height: 1; letter-spacing: -.03em; font-variant-numeric: lining-nums tabular-nums; }
.stat__label { margin-top: 10px; font-size: .95rem; font-weight: 700; letter-spacing: .04em; transition: color .3s; }
.stat a:hover .stat__label { color: var(--gold-700); }
.stat__sub { font-size: .86rem; color: var(--muted); }

.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: clamp(40px, 6vw, 64px); }
.quote { display: flex; flex-direction: column; padding: 30px 28px 32px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); }
.quote__num { display: flex; align-items: center; gap: 14px; font-size: .8rem; font-weight: 700; letter-spacing: .14em; color: var(--gold-700); }
.quote__num::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.quote__title { margin: 20px 0 10px; font-family: var(--font-display); font-size: 1.45rem; font-weight: 500; line-height: 1.2; }
.quote p { margin: 0; color: var(--muted); }
.nowrap { white-space: nowrap; }


/* ---------- Dove siamo: tre riquadri della stessa altezza ---------- */
.visit { background: var(--cream-100); }
.visit__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.vcard {
  position: relative; display: flex; flex-direction: column; min-width: 0; padding: 30px 28px;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white);
}

.vinfo-group { flex: 1; display: grid; grid-template-rows: repeat(3, minmax(min-content, 1fr)); margin-bottom: 26px; }
.vinfo { display: flex; flex-direction: column; justify-content: center; padding: 18px 0; }
.vinfo:first-child { padding-top: 0; }
.vinfo + .vinfo { border-top: 1px solid var(--line); }
.vinfo__label {
  display: flex; align-items: center; gap: 10px; margin: 0 0 8px;
  font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-700);
}
.vinfo__label .icon { width: 1.15em; height: 1.15em; }
.vinfo__value { font-style: normal; font-size: 1.08rem; line-height: 1.55; }
.vinfo__big { font-family: var(--font-display); font-size: 1.9rem; line-height: 1.2; text-decoration: none; }
.vinfo__big:hover { color: var(--gold-700); }
.vinfo__note { margin: 4px 0 0; font-size: .9rem; color: var(--muted); }
.vinfo__mail { font-weight: 700; color: var(--gold-700); text-decoration: none; overflow-wrap: anywhere; }
.vinfo__mail:hover { text-decoration: underline; text-underline-offset: 3px; }
.vcard__cta { margin-top: auto; width: 100%; }

.hours__title { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.6rem; font-weight: 500; }
.hours__title .icon { color: var(--gold-700); }
.vcard--hours .status { align-self: flex-start; margin: 14px 0 10px; }
.hours__table { width: 100%; border-collapse: collapse; }
.hours__table th, .hours__table td { padding: 11px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.hours__table td { text-align: right; font-variant-numeric: tabular-nums; }
.hours__table th { color: var(--muted); }
.hours__table tr:last-child th, .hours__table tr:last-child td { border-bottom: 0; }
.hours__table .is-closed { color: var(--ko); font-weight: 700; }
.hours__table tr.is-today th, .hours__table tr.is-today td { color: var(--ink); font-weight: 700; }
.hours__table tr.is-today td.is-closed { color: var(--ko); }
.hours__table tr.is-today th::after {
  content: "oggi"; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: var(--gold-400); color: var(--green-950);
  font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; vertical-align: 2px;
}
.hours__note { margin: auto 0 0; padding-top: 14px; font-size: .85rem; color: var(--muted); }

.map { position: relative; min-height: 480px; padding: 0; overflow: hidden; border: 0; background: var(--green-950); color: var(--cream-100); }
.map__placeholder { position: absolute; inset: 0; }
.map__art { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--cream-100); }
.map__label { font-family: var(--font-body); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; fill: currentColor; fill-opacity: .5; }
.map__panel {
  position: absolute; left: 14px; right: 14px; bottom: 14px; padding: 16px 18px; border-radius: var(--radius);
  background: rgba(252, 249, 243, .96); color: var(--ink); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.map__name { margin: 0; font-family: var(--font-display); font-size: 1.25rem; }
.map__addr { margin: 2px 0 12px; font-size: .9rem; color: var(--muted); }
.map__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.map__actions .btn { flex: 1 1 auto; }
.map__note { margin: 10px 0 0; font-size: .875rem; color: var(--muted); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.services li {
  display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 64px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--cream-50); font-size: .92rem; text-align: center;
}
.services .icon { color: var(--gold-700); }

/* ---------- CTA finale ---------- */
.final { position: relative; isolation: isolate; overflow: hidden; padding: clamp(100px, 14vw, 190px) 0; text-align: center; color: var(--on-dark); background: var(--green-950); }
.final__media { position: absolute; inset: -8%; z-index: -2; opacity: .6; }
.final__media img { width: 100%; height: 100%; object-fit: cover; filter: blur(22px) saturate(1.2); transform: scale(1.1); }
.final::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 70% at 50% 50%, rgba(15, 34, 25, .5), rgba(15, 34, 25, .93)); }
.final__crest { width: 56px; height: 63px; margin: 0 auto 22px; color: var(--gold-400); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.final__title { max-width: 13ch; margin: 0 auto .35em; font-family: var(--font-display); font-size: clamp(2.8rem, 1.3rem + 6vw, 7rem); font-weight: 500; line-height: 1; letter-spacing: -.03em; }
.final__title em { font-weight: 400; color: var(--gold-400); }
.final__text { max-width: 44ch; margin: 0 auto 34px; font-size: 1.15rem; color: var(--on-dark-muted); }
.final__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- Footer ---------- */
.footer { padding: 72px 0 calc(28px + env(safe-area-inset-bottom)); background: var(--green-950); color: var(--on-dark-muted); border-top: 1px solid var(--line-dark); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1.2fr 1.1fr .7fr; gap: 40px; }
.brand--footer { color: var(--on-dark); }
.footer .footer__tag { max-width: 30ch; margin-top: 18px; }
.footer__h { margin-bottom: 14px; font-size: .76rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-400); }
.footer p { margin: 0 0 8px; }
.footer a { color: var(--on-dark); text-decoration: none; }
.footer a:hover { color: var(--gold-400); }
.social { display: flex; gap: 10px; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-dark); border-radius: 50%; transition: border-color .3s, color .3s; }
.social a:hover { border-color: var(--gold-400); }
.footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line-dark); font-size: .85rem; }
.footer__bottom p { margin: 0; }

/* Link di testo: area di tocco più alta sui telefoni, senza spostare il testo */
@media (pointer: coarse) {
  .proof__link, .vinfo__mail, .feature p a, .footer p a, .footer__bottom a { padding-block: 10px; }
}
.footer__top { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.footer__top .icon { width: 1em; height: 1em; transform: rotate(-90deg); }

/* ---------- Barra azioni (mobile) ---------- */
.action-bar {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 50;
  display: none; grid-template-columns: 1fr 1fr 1.35fr; gap: 6px; padding: 6px; border-radius: 22px;
  background: rgba(15, 34, 25, .94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 24px 48px -20px rgba(0, 0, 0, .65); transform: translateY(160%); transition: transform .55s var(--ease-out);
}
.action-bar.is-visible { transform: none; }
.action-bar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 54px; border-radius: 16px;
  color: var(--cream-100); font-size: .76rem; font-weight: 700; text-decoration: none;
}
.action-bar a:active { background: rgba(247, 241, 230, .08); }
.action-bar .icon { width: 20px; height: 20px; }
.action-bar__primary { flex-direction: row !important; gap: 8px !important; background: var(--gold-400); color: var(--green-950) !important; font-size: .95rem !important; }

/* ---------- Comparsa allo scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .95s var(--ease-out), transform .95s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .visit__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vcard--map { grid-column: 1 / -1; min-height: 0; aspect-ratio: 16 / 9; }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .header__call span { display: none; }
  .header__call { width: 44px; padding: 0; }
}
@media (max-width: 1023px) {
  .nav { display: none; }
  .burger { display: block; }
  .header__call { display: none; }
  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .moment:nth-child(3) { padding-left: 0; border-left: 0; }
  .moment:nth-child(3)::before { left: 0; }
  .moment:nth-child(n+3) { margin-top: 36px; border-top: 1px solid var(--line); }
}
@media (max-width: 900px) {
  .story__head, .owners, .place__grid, .quotes { grid-template-columns: 1fr; }
  .craft__text, .craft__media { grid-column: 1 / -1; }
  .craft__media { min-height: clamp(320px, 80vw, 520px); }
  .owners__portrait { max-width: 360px; }
  .place__media { aspect-ratio: 4 / 3; }
  .maxi__inner { grid-template-columns: 1fr; }
  .section-head { grid-template-columns: 1fr; }
  .section-head__hint { grid-column: 1; grid-row: auto; text-align: left; margin-top: 10px; }
}
@media (max-width: 767px) {
  :root { --header-h: 68px; }
  .brand__sub { display: none; }
  .hero__veil { background: linear-gradient(180deg, rgba(15, 34, 25, .66) 0%, rgba(15, 34, 25, .6) 40%, rgba(15, 34, 25, .95) 100%); }
  .hero__scroll { display: none; }
  .hero__bar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 0; }
  .proof { margin-right: 0; padding-right: 0; border-right: 0; gap: 10px; }
  .proof:first-child { padding-right: 12px; margin-right: 12px; border-right: 1px solid var(--line-dark); }
  .proof__label { font-size: .8rem; line-height: 1.35; }
  .proof--status { grid-column: 1 / -1; flex-direction: column; align-items: flex-start; gap: 4px; padding-top: 14px; border-top: 1px solid var(--line-dark); }
  .bozza .hero__media.ph::after { display: none; }
  .timeline, .pillars { grid-template-columns: 1fr; }
  .moment, .moment + .moment, .pillar, .pillar + .pillar { padding: 28px 0 0; border-left: 0; margin-top: 0; }
  .moment + .moment, .pillar + .pillar { margin-top: 28px; border-top: 1px solid var(--line); }
  .moment + .moment::before { left: 0; }
  .features { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stat a { padding: 26px 10px 24px; }
  .visit__grid { grid-template-columns: 1fr; }
  .vcard { padding: 26px 22px; }
  .vcard--map { aspect-ratio: auto; padding: 0; }
  .vcard--map .map__placeholder { position: relative; inset: auto; display: flex; flex-direction: column; }
  .vcard--map .map__art { position: relative; inset: auto; height: auto; aspect-ratio: 4 / 3; }
  .vcard--map .map__panel { position: relative; left: auto; right: auto; bottom: auto; border-radius: 0; background: var(--cream-50); }
  .vcard--map.is-loaded { aspect-ratio: 4 / 5; }
  .services { grid-template-columns: 1fr; gap: 10px; }
  .services li { justify-content: flex-start; text-align: left; min-height: 56px; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 420px) {
  .hero__ctas .btn, .final__ctas .btn { width: 100%; }
  .proof__score { font-size: 2rem; }
}

/* ---------- Movimento ridotto ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  .js .intro { display: none !important; }
  .js .reveal, .js .hero [data-hero-step] { opacity: 1; transform: none; }
  .split .w > span { transform: none; }
  .js .hero__img { transform: none; }
  .marquee__track { animation: none; }
}

/* ==========================================================================
   AGGIUNTE (novembre 2026)
   ========================================================================== */

/* Le foto vere stanno in <picture> (AVIF + JPEG): qui il <picture> non deve fare da riquadro */
.hero__media picture, .craft__fig picture, .zoom__frame picture, .place__media picture,
.final__media picture, .owners__frame picture { display: contents; }

/* ---------- Scritta-logo, composta come l'insegna: maiuscole romane e "uca" onciale ---------- */
.brand__name { white-space: nowrap; }
.lockup { display: inline-grid; grid-template-columns: auto auto auto; align-items: end; column-gap: .2em; line-height: 1; }
.lockup__name { font-family: var(--font-display); font-weight: 600; letter-spacing: -.005em; white-space: nowrap; }
.lockup__small { font-family: var(--font-display); font-weight: 600; font-size: .3em; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.lockup__small--top { align-self: start; margin-top: .45em; }
.lockup__small--bot { margin-bottom: .12em; }
.intro__lockup { font-size: clamp(2.3rem, 9.5vw, 4.6rem); animation: intro-in .9s var(--ease-out) .2s both; }
.final__lockup { margin-bottom: 26px; font-size: clamp(2.4rem, 5vw, 3.2rem); color: var(--gold-400); }

/* ---------- La foto dei titolari ---------- */
.owners__frame--foto { aspect-ratio: 1 / 1; background: var(--green-950); }
.owners__frame--foto img { width: 100%; height: 100%; object-fit: cover; }
.owners__caption { margin-top: 12px; text-align: center; font-size: .9rem; color: var(--muted); }

/* ---------- Stelle dei voti ---------- */
.stars-bar {
  --voto: 5;
  display: block; width: 6.6em; height: 1.15em; font-size: .95rem;
  background: linear-gradient(90deg, var(--gold-500) calc(var(--voto) / 5 * 100%), rgba(23, 25, 26, .16) 0);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 24'%3E%3Cpath d='M13 1.5l3.1 6.3 6.9 1-5 4.9 1.2 6.9L13 17.3l-6.2 3.3L8 13.7 3 8.8l6.9-1z'/%3E%3C/svg%3E") 0 0 / 1.32em 1.15em repeat-x;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 24'%3E%3Cpath d='M13 1.5l3.1 6.3 6.9 1-5 4.9 1.2 6.9L13 17.3l-6.2 3.3L8 13.7 3 8.8l6.9-1z'/%3E%3C/svg%3E") 0 0 / 1.32em 1.15em repeat-x;
}
.stat .stars-bar { margin: 8px auto 2px; }

.reviews__cta .btn { max-width: 100%; white-space: normal; text-align: center; }

/* ---------- Rifiniture: cornice sottile sulle foto, apertura più leggibile ---------- */
.craft__fig::after, .place__media::after, .owners__frame--foto::after {
  content: ""; position: absolute; inset: 10px; z-index: 1; pointer-events: none;
  border: 1px solid rgba(232, 210, 156, .55); border-radius: calc(var(--radius-lg) - 10px);
}
.owners__frame--foto::after { border-radius: calc(var(--radius) - 8px); }
.hero__img { object-position: 50% 30%; }
.hero__title, .hero__lead { text-shadow: 0 2px 28px rgba(15, 34, 25, .5); }


/* ---------- "Dove siamo" nel piede: indirizzo, telefono, orari ---------- */
@media (min-width: 1024px) { .footer__grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.footer__brand .social { margin-top: 18px; }
.footer__more { display: inline-flex; align-items: center; gap: 8px; }
.footer__more .icon { width: 1em; height: 1em; color: var(--gold-400); }
.footer__tel { font-family: var(--font-display); font-size: 1.7rem; line-height: 1.1; }
.footer__note { font-size: .86rem; }
.footer .status { margin-bottom: 4px; color: var(--on-dark); }

/* ---------- Recensioni nello stile del widget dei Vesuviani ---------- */
.reviews { background: var(--green-950); color: var(--on-dark); }
.reviews .stars-bar { background: linear-gradient(90deg, var(--gold-400) calc(var(--voto) / 5 * 100%), rgba(247, 241, 230, .22) 0); }
.rw { display: grid; grid-template-columns: minmax(200px, 250px) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; margin-top: clamp(40px, 6vw, 64px); }
.rw__sums { display: grid; gap: 40px; }
.rw__sum { display: grid; justify-items: center; gap: 8px; text-align: center; color: var(--on-dark); text-decoration: none; }
.rw__word { font-size: 1.35rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.rw__bigstars { font-size: 1.45rem; }
.rw__count { font-size: .95rem; color: var(--on-dark-muted); }
.rw__count b { color: var(--on-dark); }
.rw__brand { font-size: 1.65rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.1; }
.rw__brand--google span:nth-child(1), .rw__brand--google span:nth-child(4) { color: #4285F4; }
.rw__brand--google span:nth-child(2), .rw__brand--google span:nth-child(6) { color: #EA4335; }
.rw__brand--google span:nth-child(3) { color: #FBBC05; }
.rw__brand--google span:nth-child(5) { color: #34A853; }
.rw__brand--justeat { color: #FF8000; }
.rw__sum:hover .rw__count { color: var(--on-dark); }
.rw__carousel { position: relative; min-width: 0; }
.rw__track { display: flex; gap: 22px; padding: 4px 2px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.rw__track::-webkit-scrollbar { display: none; }
.rw__card {
  flex: 0 0 calc((100% - 44px) / 3); scroll-snap-align: start; display: flex; flex-direction: column; gap: 12px;
  padding: 24px 22px; border-radius: var(--radius); background: rgba(247, 241, 230, .045); border: 1px solid var(--line-dark);
}
.rw__head { display: flex; align-items: center; gap: 12px; }
.rw__avatar { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--c, var(--gold-500)); color: #fff; font-weight: 700; font-size: 1.15rem; }
.rw__who { display: grid; flex: 1; min-width: 0; }
.rw__name { font-weight: 700; line-height: 1.25; color: var(--on-dark); }
.rw__date { font-size: .85rem; color: var(--on-dark-muted); }
.rw__g { flex: none; align-self: flex-start; width: 22px; height: 22px; }
.rw__src { flex: none; align-self: flex-start; font-size: .75rem; font-weight: 700; color: var(--on-dark-muted); }
.rw__stars { font-size: 1rem; }
.rw__text { margin: 0; color: rgba(247, 241, 230, .9); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.rw__card.is-open .rw__text { display: block; -webkit-line-clamp: unset; }
.rw__readmore { align-self: flex-start; min-height: 32px; padding: 0; border: 0; background: none; color: var(--on-dark-muted); font: inherit; font-size: .9rem; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.rw__arrow {
  position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; margin-top: -22px; padding: 0;
  border: 1px solid var(--line-dark); border-radius: 50%; background: var(--green-900); color: var(--on-dark); cursor: pointer; transition: border-color .2s;
}
.rw__arrow:hover { border-color: var(--gold-400); }
.rw__arrow--prev { left: -22px; }
.rw__arrow--prev .icon { transform: rotate(180deg); }
.rw__arrow--next { right: -22px; }
.rw__arrow[hidden] { display: none; }
.rw__more { max-width: 62ch; margin: 30px auto 0; text-align: center; font-size: .95rem; color: var(--on-dark-muted); }
.reviews__cta { margin: 22px 0 0; text-align: center; }
@media (max-width: 1023px) {
  .rw { grid-template-columns: 1fr; }
  .rw__sums { grid-template-columns: 1fr 1fr; gap: 20px; }
  .rw__card { flex-basis: calc((100% - 22px) / 2); }
}
@media (max-width: 640px) {
  .rw__card { flex-basis: 86%; }
  .rw__arrow { display: none; }
  .rw__word { font-size: 1.05rem; }
  .rw__bigstars { font-size: 1.1rem; }
  .rw__brand { font-size: 1.3rem; }
}
.rw__card--link { justify-content: center; gap: 8px; color: var(--on-dark); text-decoration: none; transition: border-color .2s, background-color .2s; }
.rw__card--link:hover { border-color: var(--gold-400); background: rgba(247, 241, 230, .07); }
.rw__bigicon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 6px; border-radius: 50%; background: #fff; }
.rw__g--big { width: 28px; height: 28px; }
.rw__bigicon--je { background: #FF8000; color: #fff; font-weight: 800; font-size: 1.05rem; }
.rw__go { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: .9rem; font-weight: 700; color: var(--gold-400); }

/* ---------- La storia, compatta: la foto dei titolari accanto al racconto ---------- */
.story__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.story__photo { justify-self: center; width: min(100%, 470px); margin: 0; }
.story__text .h2 { margin-bottom: 22px; }
.story__text > p:not(.eyebrow):not(.owners__sign) { max-width: 54ch; font-size: 1.1rem; color: var(--muted); }
.story__text .owners__sign { margin-top: 20px; }
@media (max-width: 860px) {
  .story__grid { grid-template-columns: 1fr; gap: 26px; }
  .story__photo { width: 100%; }
  .story__photo .owners__frame--foto { aspect-ratio: 4 / 3; }
  .story__photo img { object-position: 50% 12%; }
}

/* ---------- Racconto: storia e pizza in una sezione ----------
   Adattato da due componenti di 21st.dev: "Scroll Reveal Content A" (linea che cresce scorrendo,
   scena accanto che cambia con il capitolo) e "Portfolio Hero" (figura scontornata, titoli che compaiono sfocati). */
.tale { background: var(--cream-100); }
.tale__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: clamp(40px, 6vw, 104px); }
.tale__ch { position: relative; grid-column: 1; padding-left: clamp(26px, 3vw, 44px); }
.tale__ch--1 { grid-row: 1; }
.tale__ch--2 { grid-row: 2; }
.tale__ch .h2 { margin-bottom: 22px; }
.tale__ch > p:not(.eyebrow):not(.owners__sign) { max-width: 54ch; font-size: 1.1rem; color: var(--muted); }
.tale__ch .owners__sign { margin-top: 20px; }

/* La linea d'oro a sinistra di ogni capitolo si riempie mentre si legge */
.tale__rail { position: absolute; left: 0; top: .3rem; bottom: 0; width: 2px; border-radius: 2px; background: var(--line); }
.tale__fill { position: relative; display: block; width: 100%; height: calc(var(--p, 0) * 100%); border-radius: inherit; background: linear-gradient(var(--gold-400), var(--gold-700)); }
.tale__fill::after {
  content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; border-radius: 50%; translate: -50% 0;
  background: var(--gold-500); box-shadow: 0 0 0 5px rgba(212, 174, 98, .22); opacity: calc(var(--p, 0) * 40);
}

/* Le scene: i titolari davanti a una pizza disegnata che ruota, poi il banco e la Margherita */
.tale__scene { position: relative; margin: 0; width: min(100%, 520px); aspect-ratio: 1 / 1.08; justify-self: center; }
.tale__halo { position: absolute; left: 50%; top: 2%; width: 94%; height: auto; translate: -50% 0; overflow: visible; }
.tale__ring, .tale__pizza { transform-origin: 200px 200px; transform-box: view-box; }
.tale__ring text { font-family: var(--font-body); font-size: 12.5px; font-weight: 700; letter-spacing: .2em; fill: var(--gold-700); }
.tale__pizza { color: var(--gold-700); }
.tale__line, .tale__crust, .tale__sauce, .tale__leaf { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.tale__line--thin { stroke-width: 1; opacity: .55; }
.tale__crust { stroke-width: 1.4; fill: rgba(212, 174, 98, .3); }
.tale__sauce { stroke-width: 1.2; fill: #F3DDCB; }
.tale__line--cut { stroke-width: 1; stroke-dasharray: 2 5; opacity: .7; }
.tale__moz { stroke-width: 1.2; fill: rgba(247, 241, 230, .9); }
.tale__tom { stroke-width: 1.2; stroke: #B3261E; fill: rgba(179, 38, 30, .1); }
.tale__dot { fill: rgba(179, 38, 30, .45); }
.tale__leaf { stroke: #3F6B45; stroke-width: 1.2; fill: rgba(63, 107, 69, .14); }
.tale__rib { stroke: #3F6B45; stroke-width: .9; opacity: .8; }
@media (prefers-reduced-motion: no-preference) {
  .tale__pizza { animation: tale-spin 70s linear infinite; }
  .tale__ring { animation: tale-spin 110s linear infinite reverse; }
}
@keyframes tale-spin { to { transform: rotate(360deg); } }
.tale__cut { position: absolute; inset: 0; }
/* In basso titolari e pizza sfumano insieme nel colore della sezione */
.tale__scene--owners::after {
  content: ""; position: absolute; left: -4%; right: -4%; bottom: -1px; height: 24%; pointer-events: none;
  background: linear-gradient(to bottom, rgba(247, 241, 230, 0), var(--cream-100) 82%);
}
.tale__cut picture { display: contents; }
.tale__cut img { position: absolute; left: 5%; bottom: 0; width: 90%; height: auto; }

/* Titoli che compaiono parola per parola, sfocati (da "Portfolio Hero") */
.js .reveal.split--blur { opacity: 1; transform: none; }
.split--blur .w { overflow: visible; }
.split--blur .w > span { opacity: 0; filter: blur(10px); transform: translateY(-.3em); transition: opacity .7s var(--ease-out), filter .7s var(--ease-out), transform .7s var(--ease-out); transition-delay: calc(var(--wi, 0) * 80ms); }
.split--blur.is-in .w > span { opacity: 1; filter: none; transform: none; }

@media (min-width: 901px) {
  .tale { padding-block: clamp(40px, 6vw, 96px); }
  .tale__ch { min-height: 82vh; display: flex; flex-direction: column; justify-content: center; padding-block: 8vh; }
  .tale__scene {
    grid-column: 2; grid-row: 1 / 3; align-self: start; position: sticky; top: calc(var(--header-h) + 6vh);
    width: min(100%, 520px, calc((88vh - var(--header-h)) / 1.08));
  }
  .tale--js .tale__scene { opacity: 0; visibility: hidden; transition: opacity .6s var(--ease-out), transform .9s var(--ease-out), visibility 0s .6s; }
  .tale--js .tale__scene--owners { transform: translateY(-28px) scale(.97); }
  .tale--js .tale__scene--pizza { transform: translateY(36px) scale(.97); }
  .tale--js .tale__scene.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .6s var(--ease-out), transform .9s var(--ease-out), visibility 0s; }
  .tale--js .tale__ch { opacity: .35; transition: opacity .6s var(--ease-out); }
  .tale--js .tale__ch.is-active { opacity: 1; }
}
@media (max-width: 900px) {
  .tale__grid { grid-template-columns: 1fr; }
  .tale__ch, .tale__scene { grid-column: 1; grid-row: auto; }
  .tale__scene--owners { width: min(100%, 420px); aspect-ratio: 1 / .96; margin: 18px auto 56px; }
  .tale__scene--pizza { width: min(100%, 460px); aspect-ratio: 1 / .96; margin: 30px auto 0; }
}
@media (prefers-reduced-motion: reduce) {
  .tale--js .tale__scene, .tale--js .tale__ch { transition: none; }
}

/* Firma di chi ha realizzato il sito: una riga in fondo al piede, piccola ma in evidenza (nome e contatti in oro) */
.credit {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 22px;
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-dark);
  font-size: .9rem; text-align: center;
}
.footer .credit .credit__by { display: flex; align-items: center; min-height: 40px; margin: 0; padding: 0; line-height: 1.2; color: var(--on-dark); }
.credit__by strong { font-weight: 700; color: var(--gold-400); }
.footer .credit__link { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; line-height: 1.2; color: var(--gold-300); font-weight: 700; }
.footer .credit__link:hover { color: var(--gold-400); text-decoration: underline; text-underline-offset: 3px; }
.credit__link .icon { width: 1.05em; height: 1.05em; }

/* ---------- Scena della pizza: due foto che si scoprono come un sipario ----------
   Disposizione: due cornici uguali, affiancate e sfalsate, con la didascalia sotto (non si coprono mai).
   Effetto (solo dove il browser sa legare le animazioni allo scorrimento, e senza "riduci movimento"):
   la foto si scopre come un sipario (il pizzaiolo dal basso, la Margherita dall'alto) mentre l'immagine passa da un leggero
   ingrandimento alla misura giusta; poi arriva la didascalia; scorrendo ancora, l'immagine si sposta appena nella cornice.
   Altrove le foto sono semplicemente ferme e complete. */
.dp { position: absolute; margin: 0; width: 47%; display: flex; flex-direction: column; gap: 12px; }
.dp--a { left: 0; top: 6%; }
.dp--b { right: 0; top: 20%; }
.dp__frame { position: relative; display: block; aspect-ratio: 4 / 5; }
.dp__frame::before {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px -34px rgba(15, 34, 25, .55);
}
.dp__clip { position: absolute; inset: 0; overflow: hidden; border-radius: var(--radius-lg); background: var(--cream-200); }
.dp__clip::after {
  content: ""; position: absolute; inset: 10px; pointer-events: none;
  border: 1px solid rgba(232, 210, 156, .6); border-radius: calc(var(--radius-lg) - 10px);
}
.dp picture { display: contents; }
.dp__img { width: 100%; height: 100%; object-fit: cover; scale: 1.08; }
.dp__cap { display: flex; align-items: center; gap: 10px; padding-left: 4px; font-family: var(--font-display); font-style: italic; font-size: 1.1rem; line-height: 1; color: var(--gold-700); }
.dp__line { display: block; width: 22px; height: 1px; background: var(--gold-500); transform-origin: left center; }
@media (max-width: 900px) {
  .tale__scene--pizza { aspect-ratio: 1 / .92; }
  .dp { width: 48%; gap: 8px; }
  .dp--a { top: 0; }
  .dp--b { top: 13%; }
  .dp__cap { font-size: .98rem; }
}

/* La linea del tempo: sul computer è il secondo capitolo (#pizza) che scorre mentre la scena resta ferma accanto;
   sul telefono è la scena stessa che attraversa lo schermo. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .js .tale__grid { timeline-scope: --pz; }
    .js #pizza { view-timeline: --pz block; }
    .js .dp--a .dp__clip  { animation: dp-open-up linear both;   animation-timeline: --pz; animation-range: cover 22% cover 42%; }
    .js .dp--b .dp__clip  { animation: dp-open-down linear both; animation-timeline: --pz; animation-range: cover 30% cover 50%; }
    .js .dp--a .dp__frame::before { animation: dp-shade linear both; animation-timeline: --pz; animation-range: cover 22% cover 42%; }
    .js .dp--b .dp__frame::before { animation: dp-shade linear both; animation-timeline: --pz; animation-range: cover 30% cover 50%; }
    .js .dp--a .dp__img   { animation: dp-settle linear both, dp-drift linear both; animation-timeline: --pz, --pz; animation-range: cover 22% cover 46%, cover 20% cover 100%; }
    .js .dp--b .dp__img   { animation: dp-settle linear both, dp-drift-b linear both; animation-timeline: --pz, --pz; animation-range: cover 30% cover 54%, cover 20% cover 100%; }
    .js .dp--a .dp__line  { animation: dp-line linear both; animation-timeline: --pz; animation-range: cover 38% cover 46%; }
    .js .dp--b .dp__line  { animation: dp-line linear both; animation-timeline: --pz; animation-range: cover 46% cover 54%; }
    .js .dp--a .dp__txt   { animation: dp-text linear both; animation-timeline: --pz; animation-range: cover 40% cover 48%; }
    .js .dp--b .dp__txt   { animation: dp-text linear both; animation-timeline: --pz; animation-range: cover 48% cover 56%; }
  }
  @media (prefers-reduced-motion: no-preference) and (max-width: 900px) {
    .js #pizza { view-timeline: none; }
    .js .tale__scene--pizza { view-timeline: --pz block; }
    .js .dp--a .dp__clip, .js .dp--a .dp__frame::before { animation-range: cover 14% cover 38%; }
    .js .dp--b .dp__clip, .js .dp--b .dp__frame::before { animation-range: cover 22% cover 46%; }
    .js .dp--a .dp__img { animation-range: cover 14% cover 42%, cover 0% cover 100%; }
    .js .dp--b .dp__img { animation-range: cover 22% cover 50%, cover 0% cover 100%; }
    .js .dp--a .dp__line { animation-range: cover 34% cover 42%; }
    .js .dp--b .dp__line { animation-range: cover 42% cover 50%; }
    .js .dp--a .dp__txt  { animation-range: cover 36% cover 44%; }
    .js .dp--b .dp__txt  { animation-range: cover 44% cover 52%; }
  }
}
@keyframes dp-open-up   { from { clip-path: inset(100% 0 0 0 round 22px); } to { clip-path: inset(0 0 0 0 round 22px); } }
@keyframes dp-open-down { from { clip-path: inset(0 0 100% 0 round 22px); } to { clip-path: inset(0 0 0 0 round 22px); } }
@keyframes dp-shade     { from { opacity: 0; } to { opacity: 1; } }
@keyframes dp-settle    { from { scale: 1.32; } to { scale: 1.08; } }
@keyframes dp-drift     { from { translate: 0 -3%; } to { translate: 0 3%; } }
@keyframes dp-drift-b   { from { translate: 0 3%; } to { translate: 0 -3%; } }
@keyframes dp-line      { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes dp-text      { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Galleria sul telefono (schermo in verticale): le cornici hanno misure in vw con proporzioni vere (prima, in vw e vh,
   diventavano strisce strette e altissime), disposte sopra, sotto e ai lati della foto centrale; niente sfocatura sul suggerimento. */
@media (prefers-reduced-motion: no-preference) and (max-width: 700px) {
  .js .zoom { height: 170vh; } /* sul telefono (prima 270vh, poi 200vh) */
  .js .zoom__frame--0 { width: 46vw; height: 58vw; }
  .js .zoom__frame--1 { width: 40vw; height: 34vw; top: -58vw; left: -23vw; }
  .js .zoom__frame--2 { width: 34vw; height: 44vw; top: -62vw; left: 24vw; }
  .js .zoom__frame--3 { width: 22vw; height: 30vw; top: 0; left: -37vw; }
  .js .zoom__frame--4 { width: 36vw; height: 44vw; top: 60vw; left: -26vw; }
  .js .zoom__frame--5 { width: 42vw; height: 34vw; top: 57vw; left: 22vw; }
  .js .zoom__frame--6 { width: 22vw; height: 30vw; top: 0; left: 37vw; }
  .js .zoom__hint span { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(15, 34, 25, .9); }
}

/* Galleria fluida: dove il browser lo sa fare (Safari 26+, Chrome 115+), lo zoom segue lo scorrimento con le animazioni CSS
   legate allo scorrimento, calcolate dal browser stesso senza JavaScript: niente scatti, nemmeno con lo scorrimento a inerzia.
   L'avanzamento va da quando la galleria copre tutto lo schermo a quando sta per uscirne ("contain"), come prima in main.js. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .js .zoom { view-timeline: --zoom block; }
    .js .zoom__layer {
      animation: zoom-grow linear both, zoom-fade linear both;
      animation-timeline: --zoom, --zoom;
      animation-range: contain 0% contain 100%, contain 55% contain 85%;
    }
    .js .zoom__text { animation: zoom-text linear both; animation-timeline: --zoom; animation-range: contain 60% contain 85%; }
    .js .zoom__hint { animation: zoom-hint linear both; animation-timeline: --zoom; animation-range: contain 0% contain 12%; }
  }
}
@keyframes zoom-grow { from { transform: translateZ(0) scale(1); } to { transform: translateZ(0) scale(var(--zs)); } }
@keyframes zoom-fade { from { opacity: 1; } to { opacity: var(--zo); } }
@keyframes zoom-text { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
@keyframes zoom-hint { from { opacity: 1; } to { opacity: 0; } }
