/* ============================================================
   menufigo — Notte palette
   Brand DNA: black + amber + white. Bold, confident, results-led.
   ============================================================ */

:root {
  --bg:           #0B0908;
  --bg-elev:      #14110D;
  --bg-card:      #1A150F;
  --bg-card-2:    #221C14;
  --ink:          #F3E9D2;
  --ink-soft:     #C7B999;
  --ink-muted:    #7A6E5A;
  --amber:        #F2A416;
  --amber-hot:    #FFC861;
  --amber-deep:   #B97A0E;
  --orange:       #FF8A1F;
  --line:         rgba(243, 233, 210, 0.10);
  --line-strong:  rgba(243, 233, 210, 0.22);
  --green:        #2EBD6B;

  --font-sans:    "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Oranienbaum", "Cormorant Garamond", serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;

  --space-section: clamp(5rem, 9vw, 8rem);
  --gutter:        clamp(1.25rem, 4vw, 2.5rem);
  --max:           1440px;

  --ease:        cubic-bezier(0.24, 0.43, 0.15, 0.97);
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
}

/* ============================================================
   Reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; scroll-behavior: auto; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  letter-spacing: -0.005em;
  font-weight: 400;
}
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--amber); color: var(--bg); }

body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  background:
    radial-gradient(80vw 80vh at 100% 0%, rgba(242,164,22,0.05), transparent 60%),
    radial-gradient(60vw 60vh at 0% 100%, rgba(255,138,31,0.04), transparent 60%);
}
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.95 0 0 0 0 0.9 0 0 0 0 0.8 0 0 0 0.4 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: 0.12;
  mix-blend-mode: screen;
}

/* ============================================================
   Type
   ============================================================ */
h1, h2, h3, h4, h5 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}
.display { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.025em; line-height: 0.95; }
h1 { font-size: clamp(2.6rem, 5.4vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); letter-spacing: -0.025em; }
h3 { font-size: clamp(1.3rem, 1.8vw, 1.6rem); letter-spacing: -0.015em; }
p { margin: 0; }

.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 500;
}
.kicker::before {
  content: ""; width: 8px; height: 8px;
  background: var(--amber);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--amber);
}

/* ============================================================
   Layout
   ============================================================ */
section { position: relative; z-index: 2; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.95rem; font-weight: 600;
  padding: 0.9rem 1.4rem;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  transition: background 0.3s var(--ease), color 0.3s, transform 0.3s var(--ease), border-color 0.3s;
  letter-spacing: -0.005em;
  cursor: pointer;
}
.btn--primary {
  background: var(--amber);
  color: #0B0908;
  border-color: var(--amber);
}
.btn--primary:hover { background: var(--amber-hot); border-color: var(--amber-hot); transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--ink); background: rgba(243, 233, 210, 0.04); }
.btn .arrow { transition: transform 0.3s var(--ease-out); display: inline-block; }
.btn:hover .arrow { transform: translateX(4px); }

/* ============================================================
   Nav
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1rem var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.4s var(--ease), padding 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-bottom-color: var(--line);
  padding-block: 0.8rem;
}
.nav-brand {
  display: inline-flex; align-items: center;
  transition: opacity 0.3s var(--ease);
}
.nav-brand:hover { opacity: 0.85; }
.nav-brand__img {
  height: 38px;
  width: auto;
  display: block;
  transition: height 0.3s var(--ease);
}
.nav.is-scrolled .nav-brand__img { height: 32px; }

.nav__menu {
  display: flex; gap: clamp(1.4rem, 2.6vw, 2.2rem);
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.nav__menu a {
  transition: color 0.3s;
  position: relative;
  padding: 0.3rem 0;
}
.nav__menu a:hover, .nav__menu a.is-active { color: var(--ink); }
.nav__menu a.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px;
  height: 1px; background: var(--amber);
}
.nav__cta {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}
.nav__cta:hover { background: var(--amber); border-color: var(--amber); color: var(--bg); }
.nav__cta.is-active { background: var(--amber); border-color: var(--amber); color: var(--bg); }

/* Hamburger button — hidden on desktop, shown on mobile */
.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(11,9,8,0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s;
}
.nav__toggle:hover { border-color: var(--ink); }
.nav__toggle span {
  position: absolute;
  left: 50%; top: 50%;
  width: 18px; height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transform-origin: center;
  transition: transform 0.45s cubic-bezier(0.65, 0, 0.35, 1),
              opacity 0.25s ease,
              background 0.3s ease;
}
.nav__toggle span:nth-child(1) { transform: translate(-50%, calc(-50% - 6px)); }
.nav__toggle span:nth-child(2) { transform: translate(-50%, -50%); }
.nav__toggle span:nth-child(3) { transform: translate(-50%, calc(-50% + 6px)); width: 12px; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: translate(-50%, -50%) scaleX(0); }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translate(-50%, -50%) rotate(-45deg); width: 18px; }

/* Mobile drawer */
.nav-drawer {
  position: fixed; inset: 0;
  z-index: 99;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0s 0.5s;
}
.nav-drawer.is-open {
  pointer-events: auto;
  visibility: visible;
  transition: visibility 0s;
}
.nav-drawer__panel {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-elev) 100%);
  display: flex; flex-direction: column;
  justify-content: space-between;
  padding: clamp(5.5rem, 14vw, 7rem) var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 2rem);
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
}
.nav-drawer.is-open .nav-drawer__panel { opacity: 1; transform: translateY(0); }
.nav-drawer__panel::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background: radial-gradient(70vw 50vh at 100% 0%, rgba(242,164,22,0.07), transparent 65%);
}
.nav-drawer__menu {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--line);
  position: relative;
  z-index: 1;
}
.nav-drawer__menu a {
  display: flex; align-items: center; justify-content: space-between;
  padding: clamp(1.1rem, 3.4vw, 1.5rem) 0.2rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 6vw, 2.2rem);
  letter-spacing: -0.02em;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.55s var(--ease) calc(var(--i, 0) * 60ms),
    transform 0.55s var(--ease) calc(var(--i, 0) * 60ms),
    color 0.3s;
}
.nav-drawer.is-open .nav-drawer__menu a { opacity: 1; transform: translateY(0); }
.nav-drawer__menu a:active,
.nav-drawer__menu a:focus-visible { color: var(--amber); }
.nav-drawer__menu a:nth-child(1) { --i: 1; }
.nav-drawer__menu a:nth-child(2) { --i: 2; }
.nav-drawer__menu a:nth-child(3) { --i: 3; }
.nav-drawer__menu a:nth-child(4) { --i: 4; }
.nav-drawer__menu a:nth-child(5) { --i: 5; }
.nav-drawer__menu a:nth-child(6) { --i: 6; }
.nav-drawer__arrow {
  font-family: var(--font-sans);
  font-size: 1.2rem;
  color: var(--amber);
  opacity: 0.7;
}
.nav-drawer__foot {
  position: relative;
  z-index: 1;
  display: flex; flex-direction: column; gap: 0.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease) 0.4s, transform 0.6s var(--ease) 0.4s;
}
.nav-drawer.is-open .nav-drawer__foot { opacity: 1; transform: translateY(0); }
.nav-drawer__phone {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 5vw, 1.8rem);
  letter-spacing: -0.015em;
  color: var(--amber);
}
.nav-drawer__meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
/* Lock body scroll when drawer open */
body.nav-locked { overflow: hidden; }

@media (max-width: 760px) {
  .nav__menu { display: none; }
  .nav__cta { display: none; }
  .nav__toggle { display: inline-flex; align-items: center; justify-content: center; }
  /* Nav background is always slightly opaque on mobile so brand stays readable
     against the hero polaroids underneath */
  .nav {
    background: color-mix(in srgb, var(--bg) 70%, transparent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
}

/* ============================================================
   HERO — restored from original (Downloads/prototype-design)
   Massive title + scattered cream polaroids + click-swap. Notte palette.
   ============================================================ */
.hero {
  height: 100svh;
  min-height: 600px;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  padding:
    calc(clamp(6rem, 12vw, 9rem) + env(safe-area-inset-top, 0px))
    var(--gutter)
    calc(clamp(4rem, 7vw, 6rem) + env(safe-area-inset-bottom, 0px));
  overflow: hidden;
  z-index: 1;
  background: var(--bg);
}

.hero__center {
  display: flex; flex-direction: column;
  align-items: center;
  gap: clamp(0.6rem, 2vw, 1rem);
  position: relative;
  z-index: 3;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(5rem, 22vw, 22rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-align: center;
  margin: 0;
  position: relative;
  z-index: 3;
  color: var(--ink);
  white-space: nowrap;
  font-weight: 400;
  will-change: transform;
}
/* Kicker + subtitle are mobile-only — they fill the empty space around
   the title on phones. On desktop the giant title is enough. */
.hero__kicker,
.hero__subtitle { display: none; }
@media (max-width: 600px) {
  .hero__kicker {
    display: inline-flex; align-items: center;
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--amber);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.9s var(--ease) 0.8s, transform 0.9s var(--ease) 0.8s;
  }
  .hero.is-ready .hero__kicker {
    opacity: 1;
    transform: translateY(0);
  }
  .hero__subtitle {
    display: block;
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(1rem, 4.2vw, 1.25rem);
    color: var(--ink-soft);
    max-width: 22ch;
    text-align: center;
    line-height: 1.3;
    margin: 0;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.9s var(--ease) 1s, transform 0.9s var(--ease) 1s;
  }
  .hero.is-ready .hero__subtitle {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero__title .char {
  display: inline-block;
  opacity: 0; transform: translateY(120%);
  transition: transform 1.1s var(--ease) calc(0.05s * var(--i, 0)), opacity 1.1s var(--ease) calc(0.05s * var(--i, 0));
}
.hero.is-ready .hero__title .char { opacity: 1; transform: translateY(0); }

/* ------------------------------------------------------------------
   Titolo hero = wordmark del logo, vettoriale (tracciato dall'artwork).
   Proporzioni originali: MENU 626 + spazio 23 + FIGO 520 = 1169 unità.
   ------------------------------------------------------------------ */
.hero__title--logo {
  font-size: 0; line-height: 0;
  display: flex; justify-content: center;
}
.hero__title-sr {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}
.wordmark {
  display: flex; align-items: flex-start;
  width: min(92vw, 1180px);
  gap: 1.967%;               /* 23 / 1169 */
}
.wordmark__menu { width: 53.55%; color: var(--ink); }   /* 626 / 1169 */
.wordmark__figo { width: 44.48%; color: var(--amber); } /* 520 / 1169 */
.wordmark svg { display: block; width: 100%; height: auto; }
.wordmark__part {
  opacity: 0; transform: translateY(26%);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}
.wordmark__menu { transition-delay: 0.05s; }
.wordmark__figo { transition-delay: 0.22s; }
.hero.is-ready .wordmark__part { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .wordmark__part { transition: none; }
}
/* Titolo hero coi colori del logo: "menu" chiaro + "figo." ambra */
.hero__title .char--figo { color: var(--amber); }

.hero__cta {
  position: absolute;
  bottom: calc(clamp(2rem, 4vw, 3.2rem) + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  opacity: 0;
  transition: opacity 0.9s var(--ease) 1.2s, transform 0.9s var(--ease) 1.2s;
}
.hero.is-ready .hero__cta { opacity: 1; }
@media (max-width: 480px) {
  .hero__cta { width: calc(100% - var(--gutter) * 2); max-width: 360px; }
  .hero__cta .btn { width: 100%; justify-content: center; padding: 1rem 1.4rem; }
}

/* Scattered polaroids — 3-layer transform stack:
   .photo         → GSAP scroll drift
   .photo__mouse  → cursor parallax
   .photo__inner  → rest rotation + ambient sway (CSS keyframe)
*/
.hero__photos { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.photo {
  position: absolute;
  opacity: 0;
  transition: opacity 0.9s var(--ease);
  will-change: transform, opacity;
  pointer-events: auto;
  cursor: pointer;
}
.hero.is-ready .photo { opacity: 1; }
.photo__mouse {
  position: absolute; inset: 0;
  transform: translate3d(var(--mx, 0px), var(--my, 0px), 0);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.photo__inner {
  position: absolute; inset: 0;
  background: #F3E9D2;
  box-shadow: 0 28px 50px -16px rgba(0,0,0,0.55), 0 8px 16px -8px rgba(0,0,0,0.45);
  transform-origin: center;
  margin: 0;
  overflow: hidden;
  transition: box-shadow 0.5s var(--ease);
  will-change: transform;
}

/* Polaroid framing: 9px sides+top, 36px bottom border (cream visible) */
.photo__img {
  position: absolute;
  top: 9px;
  left: 9px;
  width: calc(100% - 18px);
  height: calc(100% - 9px - 36px);
  object-fit: cover;
  transition: opacity 0.8s cubic-bezier(0.65, 0, 0.35, 1), transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.photo__img--a { opacity: 1; transform: scale(1); }
.photo__img--b { opacity: 0; transform: scale(1.08); }
.hero__photos.is-swapped .photo__img--a { opacity: 0; transform: scale(1.08); }
.hero__photos.is-swapped .photo__img--b { opacity: 1; transform: scale(1); }

/* Positions + per-photo sway keyframes */
.photo--1 { top: 12%; left: 5%; width: 200px; height: 250px; }
.photo--1 .photo__inner { animation: sway-1 6.2s ease-in-out infinite alternate; }
@keyframes sway-1 {
  from { transform: rotate(-11deg) translateY(0px); }
  to   { transform: rotate(-8.5deg) translateY(-4px); }
}

.photo--2 { top: 8%; left: 30%; width: 200px; height: 230px; }
.photo--2 .photo__inner { animation: sway-2 7.4s ease-in-out infinite alternate; animation-delay: -1s; }
@keyframes sway-2 {
  from { transform: rotate(6deg) translateY(0px); }
  to   { transform: rotate(8.5deg) translateY(-3px); }
}

.photo--3 { top: 12%; right: 22%; width: 220px; height: 260px; }
.photo--3 .photo__inner { animation: sway-3 5.8s ease-in-out infinite alternate; animation-delay: -2.5s; }
@keyframes sway-3 {
  from { transform: rotate(-7deg) translateY(0px); }
  to   { transform: rotate(-4.5deg) translateY(-5px); }
}

.photo--4 { bottom: 18%; left: 14%; width: 220px; height: 240px; }
.photo--4 .photo__inner { animation: sway-4 6.8s ease-in-out infinite alternate; animation-delay: -3s; }
@keyframes sway-4 {
  from { transform: rotate(8deg) translateY(0px); }
  to   { transform: rotate(10.5deg) translateY(-4px); }
}

.photo--5 { bottom: 14%; right: 12%; width: 220px; height: 250px; }
.photo--5 .photo__inner { animation: sway-5 7.0s ease-in-out infinite alternate; animation-delay: -1.5s; }
@keyframes sway-5 {
  from { transform: rotate(-7deg) translateY(0px); }
  to   { transform: rotate(-4deg) translateY(-3px); }
}

/* Hover — pause sway, deeper shadow */
.photo:hover { z-index: 6; }
.photo:hover .photo__inner {
  animation-play-state: paused;
  box-shadow: 0 40px 70px -16px rgba(0,0,0,0.65), 0 12px 20px -8px rgba(0,0,0,0.5);
}

/* Tablet — keep all 5 photos but scale them down a touch */
@media (max-width: 1024px) {
  .photo--1 { top: 11%; left: 4%; width: 170px; height: 210px; }
  .photo--2 { top: 7%; left: 32%; width: 170px; height: 200px; }
  .photo--3 { top: 11%; right: 20%; width: 180px; height: 215px; }
  .photo--4 { bottom: 16%; left: 12%; width: 180px; height: 200px; }
  .photo--5 { bottom: 12%; right: 10%; width: 180px; height: 210px; }
  .hero__title { font-size: clamp(4.8rem, 16vw, 9rem); }
}
@media (max-width: 880px) {
  .photo--1 { top: 13%; left: 3%; width: 130px; height: 152px; }
  .photo--2 { top: 10%; left: 32%; width: 130px; height: 150px; }
  .photo--3 { top: 14%; right: 20%; width: 140px; height: 162px; }
  .photo--4 { bottom: 16%; left: 12%; width: 142px; height: 162px; }
  .photo--5 { bottom: 14%; right: 8%; width: 142px; height: 162px; }
  .hero__title { font-size: clamp(3.6rem, 17vw, 7rem); }
}
@media (max-width: 600px) {
  /* On phones (V1 / V3), 5 polaroids huddled close to the title — top
     cluster of 3 directly above the headline, 2 anchors below. Less
     horizontal spread than before so the composition reads as a tight
     collage instead of scattered far apart. V2 deck overrides below.

     Polaroid inner-image padding tightened on V1 / V3 mobile only —
     the default 9/9/36px frame is sized for big 200x250 desktop
     polaroids; on 80–100px mobile ones it eats most of the frame. */
  body.hv-v1 .photo__img,
  body.hv-v3 .photo__img {
    top: 4px;
    left: 4px;
    width: calc(100% - 8px);
    height: calc(100% - 4px - 16px);
  }

  .photo--2, .photo--3 { display: block; }

  .photo--1 {
    top: 15%; left: 10%;
    width: 80px; height: 94px;
    margin-left: 0; right: auto; bottom: auto;
  }
  .photo--2 {
    top: 11%; left: 38%;
    width: 72px; height: 84px;
  }
  .photo--3 {
    top: 17%; right: 10%;
    width: 84px; height: 98px;
  }
  .photo--4 {
    bottom: 22%; left: 12%;
    width: 92px; height: 108px;
    right: auto;
  }
  .photo--5 {
    bottom: 18%; right: 11%;
    width: 100px; height: 116px;
    left: auto;
  }
  .hero__title { font-size: clamp(2.8rem, 15vw, 4.5rem); }
  .hero { padding-top: clamp(6rem, 16vw, 8rem); }
}
@media (max-width: 380px) {
  /* Very narrow phones — shrink everything a touch + tighter cluster */
  .photo--1 { top: 15%; left: 8%;  width: 70px; height: 82px; }
  .photo--2 { top: 11%; left: 38%; width: 62px; height: 72px; }
  .photo--3 { top: 17%; right: 8%; width: 74px; height: 86px; }
  .photo--4 { bottom: 22%; left: 9%; width: 82px; height: 96px; }
  .photo--5 { bottom: 18%; right: 9%; width: 88px; height: 102px; }
  .hero__title { font-size: clamp(2.4rem, 14vw, 3.6rem); }
}

/* ============================================================
   HERO VERSION OVERRIDES — body.hv-v{N} scopes each variation.
   Default (V1) is the triangle layout already defined above.
   ============================================================ */

/* ----- Rotating slogan word (V1 + V2, ALL viewports) -------
   Below "menufigo." on desktop AND mobile.
   On mobile it also REPLACES the static kicker + subtitle. */
body.hv-v1 .hero__rotor,
body.hv-v2 .hero__rotor,
body.hv-v3 .hero__rotor {
  display: inline-block;
  position: relative;
  height: 1.4em;
  margin-top: clamp(0.6rem, 1.8vw, 1.5rem);
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(2rem, 4.6vw, 4.4rem);
  line-height: 1.2;
  color: var(--amber);
  text-align: center;
  min-width: 10ch;
}
body.hv-v1 .hero__rotor-word,
body.hv-v2 .hero__rotor-word,
body.hv-v3 .hero__rotor-word {
  position: absolute;
  left: 50%; top: 0;
  transform: translate(-50%, 60%);
  opacity: 0;
  white-space: nowrap;
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
}
body.hv-v1 .hero__rotor-word.is-on,
body.hv-v2 .hero__rotor-word.is-on,
body.hv-v3 .hero__rotor-word.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}
body.hv-v1 .hero__rotor-word.is-leaving,
body.hv-v2 .hero__rotor-word.is-leaving,
body.hv-v3 .hero__rotor-word.is-leaving {
  opacity: 0;
  transform: translate(-50%, -60%);
}
.hero__rotor { display: none; }
@media (max-width: 600px) {
  body.hv-v1 .hero__kicker,
  body.hv-v1 .hero__subtitle,
  body.hv-v2 .hero__kicker,
  body.hv-v2 .hero__subtitle,
  body.hv-v3 .hero__kicker,
  body.hv-v3 .hero__subtitle { display: none; }
  body.hv-v1 .hero__rotor,
  body.hv-v2 .hero__rotor,
  body.hv-v3 .hero__rotor {
    font-size: clamp(1.9rem, 8.5vw, 2.9rem);
  }
}

/* ----- V2: Polaroid Deck ----------------------------------- */
@media (max-width: 600px) {
  body.hv-v2 .photo--4,
  body.hv-v2 .photo--5 { display: none; }
  body.hv-v2 .photo--2,
  body.hv-v2 .photo--3 { display: block; }
  body.hv-v2 .photo--1,
  body.hv-v2 .photo--2,
  body.hv-v2 .photo--3 {
    top: 16%;
    left: 50%;
    bottom: auto; right: auto;
    margin-left: -110px;
    width: 220px;
    height: 260px;
  }
  body.hv-v2 .photo--3 { z-index: 1; }
  body.hv-v2 .photo--3 .photo__inner {
    animation: hvDeckSway3 7s ease-in-out infinite alternate;
  }
  body.hv-v2 .photo--2 { z-index: 2; }
  body.hv-v2 .photo--2 .photo__inner {
    animation: hvDeckSway2 7s ease-in-out infinite alternate;
  }
  body.hv-v2 .photo--1 { z-index: 3; }
  body.hv-v2 .photo--1 .photo__inner {
    animation: hvDeckSway1 7s ease-in-out infinite alternate;
  }
  @keyframes hvDeckSway1 {
    from { transform: rotate(-2.5deg) translateY(0); }
    to   { transform: rotate(-0.5deg) translateY(-3px); }
  }
  @keyframes hvDeckSway2 {
    from { transform: rotate(4deg) translateY(4px); }
    to   { transform: rotate(6deg) translateY(2px); }
  }
  @keyframes hvDeckSway3 {
    from { transform: rotate(-6.5deg) translateY(8px); }
    to   { transform: rotate(-4.5deg) translateY(6px); }
  }
  body.hv-v2 .hero__center { padding-top: clamp(18rem, 56vw, 22rem); }
}

/* ----- V3: Phone Hero -------------------------------------- */
body.hv-v3 .photo { display: none; }
.hv-hero-phone { display: none; }
body.hv-v3 .hv-hero-phone {
  display: block;
  position: relative;
  margin: clamp(1rem, 4vw, 2rem) 0;
  width: clamp(220px, 62vw, 280px);
  aspect-ratio: 9 / 18.5;
  border-radius: 36px;
  padding: 8px;
  background: #050402;
  box-shadow:
    0 40px 70px -25px rgba(0,0,0,0.7),
    0 0 0 1px rgba(243,233,210,0.12) inset,
    0 0 60px -10px rgba(242, 164, 22, 0.35);
  z-index: 3;
}
.hv-hero-phone__notch {
  position: absolute;
  top: 14px; left: 50%; transform: translateX(-50%);
  width: 72px; height: 18px;
  background: #050402;
  border-radius: 99px;
  z-index: 4;
}
.hv-hero-phone__screen {
  width: 100%; height: 100%;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(20,17,13,0.95) 0%, rgba(11,9,8,1) 100%);
  overflow: hidden;
  position: relative;
  padding: 36px 18px 18px;
  display: flex; flex-direction: column;
  text-align: center;
}
.hv-hero-phone__crest {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 6px;
}
.hv-hero-phone__brand {
  font-family: var(--font-display);
  font-size: 1.7rem;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.hv-hero-phone__brand em { font-style: italic; }
.hv-hero-phone__rule {
  width: 50%; height: 1px;
  background: var(--ink-muted);
  margin: 14px auto;
}
.hv-hero-phone__items {
  text-align: left;
  padding: 0 4px;
  flex: 1;
  display: flex; flex-direction: column; gap: 12px;
}
.hv-hero-phone__item {
  display: flex; justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-display);
  font-size: 0.92rem;
  color: var(--ink);
}
.hv-hero-phone__item small {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--amber);
}
.hv-hero-phone__cta {
  margin-top: 14px;
  background: var(--amber);
  color: #0B0908;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 9px 0;
  font-weight: 600;
  border-radius: 4px;
}
body.hv-v3 .hero {
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
}
@media (max-width: 600px) {
  body.hv-v3 .hero__title { font-size: clamp(1.9rem, 8vw, 2.6rem); margin-top: 0.4rem; }
  body.hv-v3 .hero__subtitle { font-size: 0.92rem; max-width: 24ch; }
  body.hv-v3 .hero__center { padding-top: 0; }
}

/* ----- V6: Prima / Dopo Slider ----------------------------- */
body.hv-v6 .photo { display: none; }
.hv-compare { display: none; }
body.hv-v6 .hv-compare {
  display: block;
  position: relative;
  z-index: 3;
  width: min(86vw, 540px);
  aspect-ratio: 4 / 5;
  margin: clamp(1.5rem, 4vw, 2rem) auto;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 60px -25px rgba(0,0,0,0.6);
  user-select: none;
  --pos: 50%;
}
.hv-compare__before,
.hv-compare__after {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
}
.hv-compare__before {
  background-image:
    linear-gradient(135deg, rgba(180,150,100,0.3), rgba(80,55,30,0.4)),
    url("https://images.unsplash.com/photo-1583932692577-9d2a3a87fad4?w=900&q=80&auto=format&fit=crop");
  filter: sepia(0.3) brightness(0.85);
}
.hv-compare__after {
  background-image:
    linear-gradient(180deg, rgba(11,9,8,0.0), rgba(11,9,8,0.4)),
    url("https://images.unsplash.com/photo-1556742393-d75f468bfcb0?w=900&q=80&auto=format&fit=crop");
  clip-path: inset(0 0 0 var(--pos));
}
.hv-compare__label {
  position: absolute;
  bottom: 16px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(11,9,8,0.65);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  pointer-events: none;
}
.hv-compare__label--before { left: 16px; }
.hv-compare__label--after {
  right: 16px;
  color: var(--amber);
  border-color: rgba(242,164,22,0.5);
}
.hv-compare__handle {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--pos);
  width: 2px;
  background: var(--amber);
  cursor: ew-resize;
  z-index: 5;
  transform: translateX(-50%);
}
.hv-compare__handle::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(242, 164, 22, 0.25), 0 8px 20px -6px rgba(0,0,0,0.6);
}
.hv-compare__handle::after {
  content: "⇆";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  color: #0B0908;
  font-weight: 800;
  font-size: 1rem;
  z-index: 1;
}
@media (max-width: 600px) {
  body.hv-v6 .hero__title { font-size: clamp(1.8rem, 8vw, 2.4rem); }
  body.hv-v6 .hero__subtitle { font-size: 0.9rem; }
}

/* ----- V8: Big Stat ---------------------------------------- */
body.hv-v8 .photo { display: none; }
.hv-stat { display: none; }
body.hv-v8 .hv-stat {
  display: flex; flex-direction: column; align-items: center;
  gap: 0.4rem;
  text-align: center;
  z-index: 3; position: relative;
}
.hv-stat__num {
  font-family: var(--font-display);
  font-size: clamp(8rem, 38vw, 18rem);
  line-height: 0.85;
  letter-spacing: -0.05em;
  background: linear-gradient(180deg, var(--amber) 0%, var(--amber-deep) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 400;
  position: relative;
}
.hv-stat__num::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(50% 50% at 50% 50%, rgba(242,164,22,0.22), transparent 70%);
  filter: blur(40px);
  z-index: -1;
}
.hv-stat__label {
  font-family: var(--font-mono);
  font-size: clamp(0.74rem, 2.4vw, 0.92rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  max-width: 30ch;
  line-height: 1.5;
}
.hv-stat__label strong { color: var(--ink); font-weight: 600; }
.hv-stat__strip {
  margin-top: clamp(1.6rem, 4vw, 2.4rem);
  display: flex; align-items: center; justify-content: center;
  gap: clamp(1rem, 3vw, 2rem);
  flex-wrap: wrap;
}
.hv-stat__strip-item {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(0.95rem, 3.5vw, 1.2rem);
  color: var(--ink);
  text-align: center;
}
.hv-stat__strip-item small {
  display: block;
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 4px;
}
.hv-stat__strip-sep {
  width: 1px; height: 30px;
  background: var(--line-strong);
}
@media (max-width: 600px) {
  body.hv-v8 .hero__title { font-size: clamp(1.6rem, 7vw, 2.2rem); }
  body.hv-v8 .hero__kicker { font-size: 0.6rem; }
  body.hv-v8 .hero__subtitle { display: none; }
}

/* ----- V4: Restaurant names marquee ------------------------ */
body.hv-v4 .photo { display: none; }
.hv-marquee { display: none; }
body.hv-v4 .hv-marquee {
  display: flex; flex-direction: column;
  gap: clamp(0.5rem, 1.5vw, 1rem);
  width: 100vw;
  margin-left: calc(50% - 50vw);
  position: relative;
  z-index: 2;
  margin-top: clamp(1rem, 3vw, 2rem);
  /* edge fade */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.hv-marquee__rail {
  overflow: hidden;
  display: flex;
}
.hv-marquee__track {
  display: inline-flex; align-items: center;
  gap: clamp(1.6rem, 4vw, 2.6rem);
  padding-right: clamp(1.6rem, 4vw, 2.6rem);
  flex: 0 0 auto;
  will-change: transform;
  white-space: nowrap;
}
.hv-marquee__track--ltr { animation: hvMarqueeLtr 36s linear infinite; }
.hv-marquee__track--rtl { animation: hvMarqueeRtl 42s linear infinite; }
@keyframes hvMarqueeLtr { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes hvMarqueeRtl { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.hv-marquee__item {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(2rem, 5.5vw, 3.6rem);
  color: var(--ink);
  letter-spacing: -0.02em;
  opacity: 0.95;
}
.hv-marquee__item--accent {
  color: var(--ink-muted);
  -webkit-text-stroke: 1px var(--amber);
  font-style: italic;
}
.hv-marquee__sep {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--amber);
  font-size: 0;
}
@media (prefers-reduced-motion: reduce) {
  .hv-marquee__track--ltr, .hv-marquee__track--rtl { animation: none; }
}
@media (max-width: 600px) {
  body.hv-v4 .hero__title { font-size: clamp(2.2rem, 9vw, 3rem); }
}

/* ----- V5: Interactive QR demo ----------------------------- */
body.hv-v5 .photo { display: none; }
.hv-qr { display: none; }
body.hv-v5 .hv-qr {
  display: flex; flex-direction: column; align-items: center;
  gap: clamp(0.8rem, 2vw, 1.2rem);
  margin: clamp(1.6rem, 4vw, 2.4rem) auto 0;
  position: relative;
  z-index: 3;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.hv-qr__frame {
  position: relative;
  padding: clamp(1.4rem, 4vw, 2rem);
  background: linear-gradient(135deg, rgba(242, 164, 22, 0.08), rgba(11, 9, 8, 0));
  border-radius: 18px;
  transition: transform 0.5s var(--ease);
}
.hv-qr:hover .hv-qr__frame { transform: scale(1.03); }
.hv-qr__corner {
  position: absolute;
  width: 26px; height: 26px;
  border-color: var(--amber);
  border-style: solid;
  border-width: 0;
}
.hv-qr__corner--tl { top: 8px; left: 8px; border-top-width: 3px; border-left-width: 3px; border-top-left-radius: 8px; }
.hv-qr__corner--tr { top: 8px; right: 8px; border-top-width: 3px; border-right-width: 3px; border-top-right-radius: 8px; }
.hv-qr__corner--bl { bottom: 8px; left: 8px; border-bottom-width: 3px; border-left-width: 3px; border-bottom-left-radius: 8px; }
.hv-qr__corner--br { bottom: 8px; right: 8px; border-bottom-width: 3px; border-right-width: 3px; border-bottom-right-radius: 8px; }
.hv-qr__code {
  width: clamp(180px, 50vw, 240px);
  height: clamp(180px, 50vw, 240px);
  padding: 12px;
  background: #F3E9D2;
  border-radius: 10px;
  box-shadow: 0 24px 50px -20px rgba(0,0,0,0.5), 0 0 60px -10px rgba(242,164,22,0.25);
  position: relative;
  overflow: hidden;
}
.hv-qr__code svg { width: 100%; height: 100%; display: block; }
.hv-qr__scanline {
  position: absolute;
  left: 24px; right: 24px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
  border-radius: 999px;
  pointer-events: none;
  animation: hvQrScan 2.6s ease-in-out infinite;
  filter: blur(0.5px);
  opacity: 0;
}
@keyframes hvQrScan {
  0%   { top: 18%; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { top: 82%; opacity: 0; }
}
.hv-qr:hover .hv-qr__scanline,
.hv-qr__scanline { opacity: 1; }
.hv-qr__caption {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  display: inline-flex; align-items: center; gap: 6px;
}
.hv-qr__caption-arrow { transition: transform 0.3s var(--ease); display: inline-block; }
.hv-qr:hover .hv-qr__caption-arrow { transform: translateX(4px); }
@media (max-width: 600px) {
  body.hv-v5 .hero__title { font-size: clamp(2rem, 9vw, 2.8rem); }
}

/* ----- V11: Logo Hero -------------------------------------- */
body.hv-v11 .photo { display: none; }
body.hv-v11 .hv-logo {
  display: block;
  margin: clamp(1rem, 3vw, 1.6rem) 0 0;
  width: 100%;
  max-width: clamp(280px, 70vw, 520px);
  position: relative;
  z-index: 3;
}
.hv-logo__img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.4)) drop-shadow(0 0 60px rgba(242,164,22,0.15));
  animation: hvLogoBreathe 5s ease-in-out infinite alternate;
}
@keyframes hvLogoBreathe {
  from { transform: translateY(-2px) scale(0.99); }
  to   { transform: translateY(2px)  scale(1.01); }
}
/* On this version, the giant "menufigo." text is redundant with the logo.
   Show it but smaller (or hide entirely on tight viewports). */
body.hv-v11 .hv-logo__title {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  margin-top: 0.6rem;
  opacity: 0.5;
  letter-spacing: 0;
}
@media (max-width: 600px) {
  body.hv-v11 .hv-logo__title { display: none; }
}
body.hv-v11 .hv-logo__sub {
  display: block !important;
  margin-top: 1.2rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1rem, 3vw, 1.4rem);
  color: var(--ink-soft);
  max-width: 30ch;
  text-align: center;
  line-height: 1.35;
}

/* ----- V14: Type reveal (rotating slogan word) ------------- */
body.hv-v14 .photo { display: none; }
.hv-type__title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 11vw, 7rem);
  line-height: 1;
  letter-spacing: -0.025em;
  display: flex; flex-direction: column;
  align-items: center;
  text-align: center;
  font-weight: 400;
  color: var(--ink);
  white-space: normal;
}
.hv-type__lead { color: var(--ink-soft); display: block; }
.hv-type__rotor {
  display: inline-block;
  position: relative;
  min-height: 1.05em;
  font-style: italic;
}
.hv-type__word {
  display: inline-block;
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  text-align: center;
  color: var(--amber);
  opacity: 0;
  transform: translateY(60%);
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
}
.hv-type__word.is-on {
  position: relative;
  opacity: 1;
  transform: translateY(0);
}
.hv-type__word.is-leaving {
  opacity: 0;
  transform: translateY(-60%);
}

/* ----- V16: Floating menu item chips ----------------------- */
body.hv-v16 .photo { display: none; }
.hv-chips { display: none; }
body.hv-v16 .hv-chips {
  display: block;
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}
.hv-chip {
  position: absolute;
  display: inline-flex; align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.95rem;
  background: rgba(243, 233, 210, 0.94);
  color: #1A150F;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: clamp(0.85rem, 2vw, 1.05rem);
  letter-spacing: -0.005em;
  box-shadow: 0 18px 40px -18px rgba(0,0,0,0.7), 0 0 0 1px rgba(11,9,8,0.05);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.hero.is-ready .hv-chip { opacity: 1; transform: translateY(0); }
.hv-chip em { font-style: italic; font-weight: 400; }
.hv-chip b {
  font-weight: 500;
  font-family: var(--font-mono);
  font-size: 0.78em;
  color: #8B4A1F;
}
/* Per-chip positions + float animation */
.hv-chip--1 { top: 14%; left: 6%;  animation: hvChipFloat1 8s ease-in-out infinite alternate; transition-delay: 0.1s; }
.hv-chip--2 { top: 18%; right: 5%; animation: hvChipFloat2 9s ease-in-out infinite alternate; transition-delay: 0.2s; }
.hv-chip--3 { top: 38%; left: 3%;  animation: hvChipFloat3 7.5s ease-in-out infinite alternate; transition-delay: 0.3s; }
.hv-chip--4 { top: 38%; right: 4%; animation: hvChipFloat4 8.5s ease-in-out infinite alternate; transition-delay: 0.4s; }
.hv-chip--5 { bottom: 24%; left: 7%; animation: hvChipFloat5 8s ease-in-out infinite alternate; transition-delay: 0.5s; }
.hv-chip--6 { bottom: 24%; right: 6%; animation: hvChipFloat6 9.5s ease-in-out infinite alternate; transition-delay: 0.6s; }

@keyframes hvChipFloat1 { from { transform: translate(0, 0) rotate(-2deg); } to { transform: translate(2px, -5px) rotate(-3deg); } }
@keyframes hvChipFloat2 { from { transform: translate(0, 0) rotate(3deg); }  to { transform: translate(-3px, -4px) rotate(4.5deg); } }
@keyframes hvChipFloat3 { from { transform: translate(0, 0) rotate(-3deg); } to { transform: translate(4px, -3px) rotate(-1deg); } }
@keyframes hvChipFloat4 { from { transform: translate(0, 0) rotate(2deg); }  to { transform: translate(-2px, -6px) rotate(4deg); } }
@keyframes hvChipFloat5 { from { transform: translate(0, 0) rotate(-2deg); } to { transform: translate(3px, -4px) rotate(-4deg); } }
@keyframes hvChipFloat6 { from { transform: translate(0, 0) rotate(3deg); }  to { transform: translate(-3px, -5px) rotate(2deg); } }

@media (max-width: 600px) {
  body.hv-v16 .hv-chip { font-size: 0.8rem; padding: 0.4rem 0.7rem; }
  .hv-chip--3, .hv-chip--4 { display: none; } /* drop the middle row on phones */
  .hv-chip--1 { top: 16%; left: 4%; }
  .hv-chip--2 { top: 16%; right: 4%; }
  .hv-chip--5 { bottom: 22%; left: 4%; }
  .hv-chip--6 { bottom: 22%; right: 4%; }
}

/* ============================================================
   §2 PRODOTTO — interactive phone with tabbed menu
   ============================================================ */
.prodotto {
  position: relative; z-index: 5;
  background: var(--bg);
  padding: var(--space-section) var(--gutter);
  border-top: 1px solid var(--line);
}
.prodotto__container {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.prodotto__copy {
  display: flex; flex-direction: column; gap: 1.6rem;
}
/* Outer wrapper handles the one-time entrance, inner img runs the perpetual float
   so the loop is visible immediately as the section enters view. */
.prodotto__mark {
  display: block;
  width: fit-content;
  margin: 0 auto clamp(1.6rem, 4vw, 2.6rem);
  opacity: 0;
  transform: translateY(24px) scale(0.88);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.prodotto.is-on .prodotto__mark {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.prodotto__mark-img {
  height: clamp(72px, 8vw, 96px);
  width: auto;
  display: block;
  /* Always running — visible the moment the parent fades in */
  animation: pmFloat 3.2s ease-in-out infinite alternate;
  transform-origin: center;
}
@keyframes pmFloat {
  from { transform: translateY(-2px) rotate(-5deg); }
  to   { transform: translateY(-12px) rotate(5deg); }
}
.prodotto__h {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  letter-spacing: -0.025em;
  line-height: 1.02;
  color: var(--ink);
  max-width: 16ch;
}
.prodotto__p {
  font-size: clamp(1.05rem, 1.3vw, 1.18rem);
  color: var(--ink-soft);
  max-width: 48ch;
  line-height: 1.55;
}
.prodotto__features {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 0.7rem;
}
.prodotto__features li {
  display: flex; align-items: center;
  gap: 0.8rem;
  color: var(--ink);
  font-size: 1rem;
  letter-spacing: -0.005em;
}
.prodotto__dot {
  flex: 0 0 auto;
  width: 6px; height: 6px;
  background: var(--amber);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--amber);
}
.prodotto__link {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--amber);
  transition: gap 0.3s var(--ease);
}
.prodotto__link:hover { gap: 0.7rem; }

.prodotto__device {
  position: relative;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: 1.2rem;
  min-height: 600px;
}
.prodotto__caption {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(11,9,8,0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.prodotto__dot--pulse {
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: liveBlink 2s ease-in-out infinite;
}
.prodotto__glow {
  position: absolute;
  inset: 10% 20%;
  background: radial-gradient(ellipse at center, rgba(242,164,22,0.18), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

.device {
  position: relative; z-index: 2;
  width: 290px;
  aspect-ratio: 9 / 19;
  background: #050402;
  border-radius: 40px;
  padding: 10px;
  box-shadow:
    0 50px 80px -25px rgba(0,0,0,0.7),
    0 0 0 1px rgba(243,233,210,0.1) inset,
    0 0 0 3px rgba(11,9,8,0.95) inset;
}
.device__notch {
  position: absolute;
  top: 18px; left: 50%;
  transform: translateX(-50%);
  width: 78px; height: 20px;
  background: #050402;
  border-radius: 99px;
  z-index: 4;
}
.device__bar {
  position: absolute;
  top: 5px; left: 0; right: 0;
  z-index: 3;
  display: flex; justify-content: space-between;
  padding: 8px 26px 0;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--ink);
}
.device__bar .device__time { letter-spacing: 0.04em; }
.device__sig { display: inline-flex; align-items: flex-end; gap: 2px; }
.device__sig i {
  width: 3px; background: var(--ink); display: inline-block;
}
.device__sig i:nth-child(1) { height: 4px; }
.device__sig i:nth-child(2) { height: 6px; }
.device__sig i:nth-child(3) { height: 8px; }
.device__sig i:nth-child(4) { height: 10px; }

.device__screen {
  width: 100%; height: 100%;
  border-radius: 32px;
  background: var(--bg-card);
  overflow: hidden;
  position: relative;
}

/* The designed menu inside the phone */
.dm {
  height: 100%;
  display: flex; flex-direction: column;
  color: var(--ink);
}
.dm__photo {
  position: relative;
  width: 100%;
  height: 96px;
  margin: 0;
  overflow: hidden;
  flex: 0 0 96px;
}
.dm__photo img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.9) contrast(0.95) brightness(0.85);
}
.dm__photo-veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(11,9,8,0.35) 0%,
    rgba(11,9,8,0.15) 40%,
    var(--bg-card) 100%);
  pointer-events: none;
}
.dm__hero {
  text-align: center;
  padding: 4px 18px 10px;
  margin-top: -10px;
  position: relative;
  z-index: 2;
}
.dm__tag {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.66rem;
  color: var(--ink-muted);
  margin-top: 4px;
}
.dm__crest {
  font-family: var(--font-mono);
  font-size: 0.52rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 6px;
}
.dm__brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 400;
  color: var(--ink);
}
.dm__brand em { font-style: italic; }
.dm__rule {
  display: flex; align-items: center; gap: 6px;
  margin-top: 6px;
  color: var(--amber);
  font-size: 0.7rem;
}
.dm__rule span {
  flex: 1; height: 1px; background: var(--ink-muted);
}

.dm__tabs {
  display: flex;
  padding: 6px 8px;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--line);
}
.dm__tabs::-webkit-scrollbar { display: none; }
.dm__tab {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--ink-muted);
  transition: background 0.3s, color 0.3s;
}
.dm__tab.is-on {
  background: var(--amber);
  color: #0B0908;
  font-weight: 600;
}

.dm__pages {
  flex: 1;
  position: relative;
  overflow: hidden;
}
.dm__page {
  position: absolute; inset: 0;
  padding: 14px 18px;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  pointer-events: none;
  scrollbar-width: none;
}
.dm__page::-webkit-scrollbar { display: none; }
.dm__page.is-on {
  opacity: 1; transform: translateY(0);
  pointer-events: auto;
}
.dm__item {
  display: flex; justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: -0.01em;
  margin-top: 10px;
}
.dm__item:first-child { margin-top: 0; }
.dm__item span:first-child { color: var(--ink); }
.dm__item span:last-child {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--amber);
}
.dm__page p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.72rem;
  color: var(--ink-muted);
  margin-top: 2px;
  line-height: 1.3;
}

.dm__scan {
  display: flex; align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  background: rgba(243,233,210,0.02);
}
.dm__scan strong { color: var(--ink); font-weight: 600; }
.dm__scan-qr {
  display: inline-block;
  width: 18px; height: 18px;
  background:
    repeating-linear-gradient(0deg, var(--amber) 0 3px, transparent 3px 6px),
    repeating-linear-gradient(90deg, var(--amber) 0 3px, transparent 3px 6px);
  background-color: var(--bg);
  border-radius: 2px;
  flex-shrink: 0;
}
.dm__actions {
  display: flex;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.dm__action {
  flex: 1;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px;
  padding: 12px 4px;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  transition: background 0.3s;
}
.dm__action svg { width: 14px; height: 14px; }
.dm__action--call { color: var(--amber); }
.dm__action--call:hover { background: rgba(242,164,22,0.1); }
.dm__action--rev { border-left: 1px solid var(--line); }
.dm__action--rev:hover { background: rgba(243,233,210,0.04); }

/* ============================================================
   Phone demo widget — label + countdown bar + nav dots
   Self-contained controls below the phone. Lets the user see
   what the spotlight means and jump to specific features.
   ============================================================ */
.dm-ctrl {
  margin-top: 1.4rem;
  width: 100%;
  max-width: 290px;
  display: flex; flex-direction: column;
  gap: 0.9rem;
  align-self: center;
}
.dm-ctrl__label {
  min-height: 3rem;
  text-align: center;
  position: relative;
}
.dm-ctrl__name,
.dm-ctrl__hint {
  display: block;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.dm-ctrl__name {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
}
.dm-ctrl__hint {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.35;
  margin-top: 0.3rem;
  max-width: 32ch;
  margin-inline: auto;
}
.dm-ctrl.is-changing .dm-ctrl__name,
.dm-ctrl.is-changing .dm-ctrl__hint {
  opacity: 0;
  transform: translateY(4px);
}

.dm-ctrl__bar {
  position: relative;
  height: 2px;
  background: var(--line-strong);
  border-radius: 2px;
  overflow: hidden;
}
.dm-ctrl__fill {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--amber), var(--orange));
  /* width transition is driven by JS — set instant on reset, then long on play */
}

.dm-ctrl__dots {
  display: flex; align-items: center; justify-content: center;
  gap: 0.7rem;
}
.dm-ctrl__dots button {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(243,233,210,0.18);
  border: 1px solid rgba(243,233,210,0.28);
  padding: 0;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
  position: relative;
}
.dm-ctrl__dots button::before {
  /* Larger invisible hit area for touch */
  content: ""; position: absolute;
  inset: -8px;
}
.dm-ctrl__dots button:hover {
  background: var(--ink-soft);
  border-color: var(--ink-soft);
}
.dm-ctrl__dots button.is-on {
  background: var(--amber);
  border-color: var(--amber);
  box-shadow: 0 0 12px var(--amber);
  transform: scale(1.35);
}

/* ============================================================
   Phone spotlight overlays — visual highlights driven by the
   matching feature bullet (scroll-into-view or hover).
   See .prodotto__features data-spot attrs + main.js sync code.
   ============================================================ */
/* "4 lingue" — small toast at top of phone with pulsing halo.
   Glassmorphism (dark bg + amber border + amber text) so it reads as a
   "notification" / "system chip", NOT a selected tab pill. */
.dm__langs {
  position: absolute;
  top: 10px; left: 50%;
  transform: translate(-50%, -12px);
  z-index: 5;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.22em;
  padding: 5px 12px;
  background: rgba(20, 17, 13, 0.85);
  color: var(--amber);
  border: 1px solid rgba(242, 164, 22, 0.8);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
  white-space: nowrap;
  font-weight: 500;
}
.dm.is-spot-lang .dm__langs {
  opacity: 1;
  transform: translate(-50%, 0);
  animation: dmPing 1.6s ease-out 0.3s infinite;
}
/* Universal "ping" pulse — radiates an amber halo around spotlighted
   elements. The element itself stays distinct from a "filled pill"
   (which means "selected" elsewhere on the phone) — it's the
   radiating ring that signals "look here". */
@keyframes dmPing {
  0%   { box-shadow: 0 0 0 0   rgba(242, 164, 22, 0.7),  0 0 12px rgba(242, 164, 22, 0.35); }
  60%  { box-shadow: 0 0 0 14px rgba(242, 164, 22, 0),    0 0 12px rgba(242, 164, 22, 0.35); }
  100% { box-shadow: 0 0 0 0   rgba(242, 164, 22, 0),    0 0 12px rgba(242, 164, 22, 0.35); }
}

/* "Si apre in 2 secondi" — animated speed bars over the photo */
.dm__speed {
  position: absolute;
  top: 38px; right: 14px;
  z-index: 5;
  display: inline-flex; align-items: flex-end;
  gap: 3px;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.dm__speed-bar {
  width: 4px;
  background: var(--amber);
  border-radius: 1px;
  box-shadow: 0 0 6px var(--amber);
}
.dm__speed-bar:nth-child(1) { height: 6px; }
.dm__speed-bar:nth-child(2) { height: 10px; }
.dm__speed-bar:nth-child(3) { height: 14px; }
.dm.is-spot-speed .dm__speed { opacity: 1; }
.dm.is-spot-speed .dm__speed-bar {
  animation: dmSpeedPulse 1.1s ease-in-out infinite;
}
.dm.is-spot-speed .dm__speed-bar:nth-child(2) { animation-delay: 0.12s; }
.dm.is-spot-speed .dm__speed-bar:nth-child(3) { animation-delay: 0.24s; }
@keyframes dmSpeedPulse {
  0%, 100% { transform: scaleY(0.4); opacity: 0.5; }
  50%      { transform: scaleY(1);   opacity: 1; }
}

/* "Allergeni" — small G·L badge appears next to first dish */
.dm__allergen {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.12em;
  vertical-align: middle;
  background: rgba(242, 164, 22, 0.18);
  color: var(--amber);
  border: 1px solid rgba(242, 164, 22, 0.5);
  border-radius: 4px;
  opacity: 0;
  transform: translateY(-2px) scale(0.85);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.dm.is-spot-allergens .dm__allergen {
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: dmAllergenPing 1.6s ease-out 0.3s infinite;
}
@keyframes dmAllergenPing {
  0%   { box-shadow: 0 0 0 0 rgba(242, 164, 22, 0.6); }
  60%  { box-shadow: 0 0 0 10px rgba(242, 164, 22, 0); }
  100% { box-shadow: 0 0 0 0 rgba(242, 164, 22, 0); }
}

/* "Prenotazioni" — Prenota button gets a "selection halo": amber text
   + 2px amber outline + pulsing outer glow. NO solid amber fill (that
   reads as a selected tab elsewhere on the phone). */
.dm.is-spot-book .dm__action--call,
.dm.is-spot-reviews .dm__action--rev {
  color: var(--amber);
  font-weight: 700;
  background: rgba(242, 164, 22, 0.06);
  animation: dmActionPing 1.6s ease-out infinite;
  position: relative;
  z-index: 2;
}
@keyframes dmActionPing {
  0% {
    box-shadow:
      inset 0 0 0 1.5px var(--amber),
      0 0 0 0 rgba(242, 164, 22, 0.55),
      0 0 18px rgba(242, 164, 22, 0.18);
  }
  60% {
    box-shadow:
      inset 0 0 0 1.5px var(--amber),
      0 0 0 14px rgba(242, 164, 22, 0),
      0 0 24px rgba(242, 164, 22, 0.3);
  }
  100% {
    box-shadow:
      inset 0 0 0 1.5px var(--amber),
      0 0 0 0 rgba(242, 164, 22, 0),
      0 0 18px rgba(242, 164, 22, 0.18);
  }
}

/* Speed bars get a pulsing ring too when active */
.dm.is-spot-speed .dm__speed {
  padding: 4px;
  border-radius: 4px;
  background: rgba(11, 9, 8, 0.55);
  animation: dmPing 1.6s ease-out infinite;
}

/* Feature bullet — visual feedback when in focus/hover */
.prodotto__features li {
  cursor: default;
  padding: 0.2rem 0.4rem;
  margin-left: -0.4rem;
  border-radius: 6px;
  transition: background 0.3s var(--ease), color 0.3s;
}
.prodotto__features li.is-spot-on {
  background: rgba(242, 164, 22, 0.06);
}
.prodotto__features li.is-spot-on .prodotto__dot {
  box-shadow: 0 0 16px var(--amber);
  transform: scale(1.3);
}
.prodotto__features li .prodotto__dot {
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

@media (max-width: 1024px) {
  .prodotto__container {
    grid-template-columns: 1fr 0.95fr;
    gap: clamp(2rem, 4vw, 3rem);
  }
}
@media (max-width: 880px) {
  .prodotto__container {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  /* Flip the order on mobile — phone first (visual hook), copy below */
  .prodotto__copy { max-width: 560px; order: 2; }
  .prodotto__device {
    min-height: 540px;
    width: 100%;
    order: 1;
    /* Bullet list is replaced by visual annotations — hide on mobile */
  }
  .prodotto__features { display: none; }
}
@media (max-width: 480px) {
  .prodotto { padding-block: clamp(3.5rem, 8vw, 5rem); }
  .prodotto__mark-img { height: clamp(64px, 14vw, 80px); }
  .prodotto__device { min-height: 520px; }
  .device { width: 270px; }
}

/* ============================================================
   Prodotto annotations — thin amber leader lines pointing to
   specific phone UI elements. Mobile only — replace the bullet list.
   ============================================================ */
.prodotto__annotations { display: none; }
@media (max-width: 880px) {
  .prodotto__annotations {
    display: block;
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
  }
  .ann {
    position: absolute;
    display: inline-flex; align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink);
    opacity: 0;
    transform: translateX(0);
    transition:
      opacity 0.8s var(--ease) calc(var(--d, 0) * 0.15s + 0.3s),
      transform 0.8s var(--ease) calc(var(--d, 0) * 0.15s + 0.3s);
  }
  .prodotto.is-on .ann { opacity: 1; }

  .ann__label {
    padding: 0.35rem 0.7rem;
    background: rgba(20, 17, 13, 0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    white-space: nowrap;
  }
  .ann__line {
    display: inline-block;
    width: clamp(22px, 8vw, 50px);
    height: 1px;
    background: linear-gradient(90deg, var(--amber), rgba(242,164,22,0.25));
  }
  /* Reverse the gradient direction on lines pointing the other way so the
     bright end is always toward the phone */
  .ann--book .ann__line {
    background: linear-gradient(270deg, var(--amber), rgba(242,164,22,0.25));
  }
  .ann__dot {
    display: inline-block;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--amber);
    box-shadow: 0 0 10px var(--amber), 0 0 0 3px rgba(242,164,22,0.18);
    flex-shrink: 0;
  }

  /* Position-specific. Anchored to .prodotto__device which centers the phone.
     Each annotation enters from its side with a slight slide. */
  .ann--lang   { --d: 0; top: 18%;    right: 4%; }
  .ann--book   { --d: 1; bottom: 26%; left: 4%; }
  .ann--rev    { --d: 2; bottom: 26%; right: 4%; }

  .prodotto.is-on .ann--lang  { transform: translateX(0); }
  .prodotto.is-on .ann--book  { transform: translateX(0); }
  .prodotto.is-on .ann--rev   { transform: translateX(0); }

  .ann--lang   { transform: translateX(12px); }
  .ann--book   { transform: translateX(-12px); }
  .ann--rev    { transform: translateX(12px); }
}
@media (max-width: 380px) {
  /* Very narrow phones — shorten lines and tighten label padding */
  .ann__label { padding: 0.3rem 0.55rem; font-size: 0.58rem; }
  .ann__line { width: clamp(16px, 6vw, 28px); }
}

/* ============================================================
   §3 LAVORI — Pinned horizontal scroll reel
   ============================================================ */
.lavori {
  position: relative; z-index: 5;
  background: var(--bg-elev);
  border-top: 1px solid var(--line);
  padding: 0;
}
.lavori__head-wrap {
  padding: var(--space-section) var(--gutter) clamp(2rem, 4vw, 3rem);
  max-width: var(--max);
  margin: 0 auto;
}
.lavori__head-inner {
  max-width: 760px;
  display: flex; flex-direction: column; gap: 0.8rem;
}
.lavori__h {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  letter-spacing: -0.025em;
  line-height: 1.02;
  font-weight: 400;
}
.lavori__h em { color: var(--amber); font-style: italic; }
.lavori__sub {
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  line-height: 1.55;
  max-width: 52ch;
}

/* Reel wrapper — pinSpacing handles the runway, no explicit height needed */
.lavori__reel {
  position: relative;
}
.lavori__pin {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex; align-items: center;
  padding-bottom: 5rem;
}
.lavori__track {
  display: flex;
  gap: clamp(1rem, 2vw, 1.8rem);
  padding-inline: clamp(2rem, 6vw, 5rem);
  align-items: stretch;
  height: 72vh;
  will-change: transform;
}
.work {
  flex: 0 0 auto;
  width: clamp(320px, 30vw, 420px);
  height: 100%;
  position: relative;
  display: flex; flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.3s;
}
.work:hover { transform: translateY(-6px); border-color: var(--line-strong); }
.work__img {
  position: relative;
  flex: 1;
  overflow: hidden;
  background: var(--bg-elev);
}
.work__img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s var(--ease);
}
.work:hover .work__img img { transform: scale(1.06); }
.work__img::after {
  content: "";
  position: absolute; inset: auto 0 0 0;
  height: 50%;
  background: linear-gradient(180deg, transparent 0%, rgba(11,9,8,0.85) 100%);
  pointer-events: none;
}
.work__meta {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 2;
  padding: 1.4rem 1.5rem 1.5rem;
  color: var(--ink);
  display: flex; flex-direction: column; gap: 0.4rem;
}
.work__top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 0.4rem;
}
.work__num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--amber);
}
.work__live {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  display: inline-flex; align-items: center; gap: 5px;
}
.work__live i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: liveBlink 2s ease-in-out infinite;
}
@keyframes liveBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.work__name {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1.7vw, 1.7rem);
  letter-spacing: -0.015em;
  font-weight: 400;
  line-height: 1.1;
  color: var(--ink);
}
.work__loc {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}
.work__cta {
  margin-top: 0.7rem;
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  padding: 0.55rem 0.95rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(11,9,8,0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}
.work__cta:hover { background: var(--amber); border-color: var(--amber); color: var(--bg); }
.work__cta .arrow { transition: transform 0.3s var(--ease); }
.work__cta:hover .arrow { transform: translateX(3px); }

.work--end {
  background: linear-gradient(180deg, var(--bg-card-2) 0%, var(--bg-card) 100%);
  border-color: var(--amber-deep);
}
.work--end .work__img { display: none; }
.work__meta--end {
  position: relative;
  inset: auto;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  justify-content: center;
  height: 100%;
  text-align: left;
}
.work__num--end {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 6vw, 5.2rem);
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--amber);
  margin-bottom: 0.4rem;
}

/* Progress bar under the reel */
.lavori__progress {
  position: absolute;
  bottom: 2.4rem; left: 50%;
  transform: translateX(-50%);
  width: clamp(160px, 22vw, 280px);
  height: 2px;
  background: var(--line-strong);
  overflow: hidden;
  border-radius: 2px;
}
.lavori__progress-fill {
  display: block;
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--amber), var(--orange));
}
.lavori__hint {
  position: absolute;
  bottom: 1.2rem; left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  white-space: nowrap;
}
.lavori__hint--mobile { display: none; }
@media (max-width: 820px) {
  .lavori__hint--desktop { display: none; }
  .lavori__hint--mobile { display: inline; }
}

/* Mobile fallback — drop the pin, become a native swipe carousel.
   No scroll-snap (was fighting page scroll) — just free horizontal scroll
   with momentum, exactly like Instagram / a regular slider. */
@media (max-width: 820px) {
  .lavori__head-wrap { padding-bottom: 1.2rem; }
  .lavori__reel { height: auto; }
  .lavori__pin {
    height: auto;
    padding-bottom: 1.4rem;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain; /* don't trigger page back-swipe */
    scrollbar-width: none;
  }
  .lavori__pin::-webkit-scrollbar { display: none; }
  .lavori__track {
    height: auto;
    padding-inline: var(--gutter);
    padding-block: 0.5rem;
    gap: 1rem;
  }
  .work {
    flex: 0 0 84%;
    max-width: 360px;
    height: auto;
    aspect-ratio: 3 / 4;
    min-height: 0;
  }
  .work:hover { transform: none; }
  .lavori__progress { display: none; }
  .lavori__hint {
    position: relative;
    inset: auto; bottom: auto; left: auto;
    transform: none;
    text-align: center;
    margin-top: 0.6rem;
    padding: 0 var(--gutter);
    white-space: normal;
  }
}
@media (max-width: 480px) {
  .work {
    flex: 0 0 82%;
    aspect-ratio: 4 / 5;
  }
  .work__meta { padding: 1.2rem 1.2rem 1.3rem; }
}

/* ============================================================
   §3.5 STRIP — Infinite client-name marquee
   Restores rhythm between the dark Lavori reel and dark Servizi deck.
   Two duplicate tracks side-by-side animate -50% so the loop is seamless.
   ============================================================ */
.strip {
  position: relative; z-index: 5;
  background: var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(2rem, 5vw, 3rem) 0 clamp(1.2rem, 3vw, 1.6rem);
  overflow: hidden;
}
.strip__rail {
  position: relative;
  display: flex;
  width: 100%;
  /* Edge fade so names enter / exit through the gradient instead of popping */
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.strip__track {
  flex: 0 0 auto;
  display: inline-flex; align-items: center;
  gap: clamp(1.4rem, 3vw, 2.4rem);
  padding-right: clamp(1.4rem, 3vw, 2.4rem);
  animation: stripScroll 38s linear infinite;
  will-change: transform;
}
.strip:hover .strip__track { animation-play-state: paused; }
@keyframes stripScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}
.strip__item {
  display: inline-block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.8rem, 4.4vw, 2.8rem);
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
  opacity: 0.92;
  transition: color 0.4s, opacity 0.4s;
}
.strip__item:hover { color: var(--amber); opacity: 1; }
.strip__sep {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--amber);
  font-size: 0;
  flex-shrink: 0;
  opacity: 0.7;
}
.strip__caption {
  margin-top: clamp(0.6rem, 1.4vw, 1rem);
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.strip__caption span::before,
.strip__caption span::after {
  content: "—";
  display: inline-block;
  margin: 0 0.6rem;
  color: var(--line-strong);
}
@media (prefers-reduced-motion: reduce) {
  .strip__track { animation: none; }
}

/* ============================================================
   §4 SERVIZI — Pinned scrollytelling
   Giant scrubbing number on left, item cards take over the stage on right.
   ============================================================ */
.servizi {
  position: relative; z-index: 5;
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 0;
}
.servizi__intro {
  padding: clamp(4rem, 7vw, 6rem) var(--gutter) clamp(0.5rem, 1.4vw, 1rem);
  max-width: var(--max);
  margin: 0 auto;
}
.servizi__intro-inner {
  max-width: 760px;
  display: flex; flex-direction: column; gap: 0.8rem;
}
.servizi__h {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  letter-spacing: -0.025em;
  line-height: 1.02;
  font-weight: 400;
}
.servizi__h em { font-style: italic; color: var(--amber); }

/* ============================================================
   Servizi — Stacked card deck
   Each card sticks to the top of viewport as user scrolls,
   the next card slides up over it with a subtle rotation.
   ============================================================ */
.srvdeck {
  position: relative;
  padding: 0 var(--gutter) clamp(6rem, 12vw, 9rem);
  max-width: 1100px;
  margin: 0 auto;
}
.srvcard {
  position: sticky;
  top: clamp(80px, 12vh, 120px);
  margin-top: clamp(2.4rem, 4vw, 4rem);
  padding: 0;
}
.srvcard:first-child { margin-top: 0; }

.srvcard__inner {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(2rem, 4vw, 3.4rem) clamp(2rem, 4vw, 3.6rem);
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto auto auto;
  column-gap: clamp(1.5rem, 4vw, 3rem);
  row-gap: 0.9rem;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.7);
  transform-origin: top center;
  transition: transform 0.4s var(--ease);
  overflow: hidden;
}
/* Slight rotation per card so stacked deck reads visually */
.srvcard[data-card="0"] .srvcard__inner { transform: rotate(-0.25deg); }
.srvcard[data-card="1"] .srvcard__inner { transform: rotate(0.4deg); }
.srvcard[data-card="2"] .srvcard__inner { transform: rotate(-0.5deg); }
.srvcard[data-card="3"] .srvcard__inner { transform: rotate(0.35deg); }
.srvcard[data-card="4"] .srvcard__inner { transform: rotate(-0.3deg); }
.srvcard[data-card="5"] .srvcard__inner { transform: rotate(0.45deg); }
.srvcard[data-card="6"] .srvcard__inner { transform: rotate(-0.4deg); }
.srvcard[data-card="7"] .srvcard__inner { transform: rotate(0.3deg); }

/* Big number — spans rows on the left as a vertical anchor */
.srvcard__num {
  grid-column: 1;
  grid-row: 1 / 4;
  font-family: var(--font-display);
  font-size: clamp(4.6rem, 9vw, 8.4rem);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--amber);
  background: linear-gradient(180deg, var(--amber) 0%, var(--amber-deep) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  align-self: start;
  padding-top: 0.3rem;
  position: relative;
}
.srvcard__num::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(50% 50% at 50% 50%, rgba(242,164,22,0.18), transparent 70%);
  filter: blur(30px);
  z-index: -1;
  pointer-events: none;
}

.srvcard__kicker {
  grid-column: 2;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  display: inline-flex; align-items: center; gap: 8px;
}
.srvcard__kicker::before {
  content: ""; width: 6px; height: 6px;
  background: var(--amber);
  border-radius: 50%;
}
.srvcard__h {
  grid-column: 2;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 3rem);
  letter-spacing: -0.025em;
  line-height: 1.02;
  font-weight: 400;
  color: var(--ink);
  margin: 0;
}
.srvcard__p {
  grid-column: 2;
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  color: var(--ink-soft);
  line-height: 1.55;
  max-width: 60ch;
}
.srvcard__bullets {
  grid-column: 2;
  list-style: none; padding: 0; margin: 0.4rem 0 0;
  display: flex; flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--line);
}
.srvcard__bullets li {
  position: relative;
  padding-left: 18px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.srvcard__bullets li::before {
  content: "→";
  position: absolute;
  left: 0; top: 0;
  color: var(--amber);
  font-family: var(--font-sans);
}

@media (max-width: 880px) {
  /* Disable sticky on tablet/mobile — partial reveals look broken */
  .srvcard { position: relative; top: auto; margin-top: clamp(1rem, 2.5vw, 1.6rem); }
  .srvcard__inner { transform: none !important; box-shadow: 0 18px 36px -22px rgba(0,0,0,0.55); }
}
@media (max-width: 760px) {
  .srvcard__inner {
    grid-template-columns: 1fr;
    padding: 1.8rem 1.5rem;
    column-gap: 0;
    row-gap: 0.7rem;
  }
  .srvcard__num {
    grid-column: 1; grid-row: auto;
    font-size: clamp(3.6rem, 14vw, 5rem);
    line-height: 0.85;
    margin-bottom: 0.2rem;
  }
  .srvcard__kicker, .srvcard__h, .srvcard__p, .srvcard__bullets { grid-column: 1; }
  .srvcard__h { font-size: clamp(1.6rem, 7vw, 2.1rem); }
  .srvcard__bullets { gap: 0.45rem 1rem; padding-top: 0.9rem; }
}

/* ============================================================
   §5 COME FUNZIONA — Cream paper section (breaks the wall of dark)
   ============================================================ */
.come {
  position: relative; z-index: 5;
  /* Brand-color banner — amber bg with dark cards inside */
  background: var(--amber);
  color: #0B0908;
  padding: var(--space-section) var(--gutter);
  border-top: 1px solid rgba(0,0,0,0.18);
  border-bottom: 1px solid rgba(0,0,0,0.18);
  overflow: hidden;
}
.come::before {
  /* Subtle warm grain so the amber doesn't feel flat */
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.05 0 0 0 0 0 0 0 0 0.45 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  opacity: 0.12;
  pointer-events: none;
  mix-blend-mode: multiply;
}
.come .kicker { color: #0B0908; background: none; }
.come .kicker::before { background: #0B0908; box-shadow: none; }
.come .come__h { color: #0B0908; }

.come .step {
  --step-accent: var(--amber);
  background: var(--bg);
  border: 1px solid rgba(0,0,0,0.25);
  color: var(--ink);
}
.come .step:hover {
  border-color: var(--amber);
  box-shadow: 0 28px 50px -22px rgba(0,0,0,0.55), 0 8px 18px -10px rgba(0,0,0,0.35);
}
.come .step::before { background: var(--amber); }

.come .step__num-big {
  color: var(--ink);
  opacity: 0.22;
}
.come .step:hover .step__num-big {
  opacity: 0.4;
}

.come .step__h { color: var(--ink); }
.come .step__h::after { background: var(--amber); }
.come .step p { color: var(--ink-soft); }

.come .step__icon {
  background: rgba(242, 164, 22, 0.10);
  border-color: rgba(242, 164, 22, 0.32);
  color: var(--amber);
}
.come .step:hover .step__icon {
  background: rgba(242, 164, 22, 0.22);
  border-color: var(--amber);
  color: var(--amber);
}
.come__container {
  max-width: var(--max);
  margin: 0 auto;
}
.come__head {
  display: flex; flex-direction: column; gap: 0.8rem;
  margin-bottom: 3rem;
  max-width: 720px;
}
.come__h {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  letter-spacing: -0.025em;
  line-height: 1.02;
  font-weight: 400;
}

.come__steps {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 1.8vw, 1.6rem);
  position: relative;
}

.step {
  --step-accent: var(--ink-local, #1A150F);
  position: relative;
  display: flex; flex-direction: column;
  gap: 0.9rem;
  padding: 2rem 1.7rem 1.8rem;
  background: var(--card-local, var(--bg-card));
  border: 1px solid var(--line-local, var(--line));
  border-radius: 14px;
  transition:
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.45s var(--ease),
    border-color 0.4s,
    background 0.4s;
  z-index: 1;
  overflow: hidden;
  opacity: 0;
  transform: translateY(28px);
}
.step:hover {
  --step-accent: var(--amber);
  transform: translateY(-8px);
  box-shadow: 0 24px 40px -22px rgba(26, 21, 15, 0.35), 0 8px 16px -12px rgba(26, 21, 15, 0.20);
  border-color: var(--step-accent);
}
/* Top accent bar — dark by default, amber-coloured + full-width on hover */
.step::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--step-accent);
  transform: scaleX(0.18);
  transform-origin: left;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), background 0.4s;
}
.step:hover::before { transform: scaleX(1); }

/* Faded number watermark — only visible on hover, then in amber */
.step__num-big {
  position: absolute;
  top: 18px; right: 22px;
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 4.2rem);
  letter-spacing: -0.03em;
  line-height: 0.9;
  color: var(--step-accent);
  opacity: 0.10;
  pointer-events: none;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), color 0.4s;
}
.step:hover .step__num-big {
  opacity: 0.35;
  transform: translateY(-2px) scale(1.06);
}

/* Icon: dark by default, amber on hover */
.step__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px;
  border-radius: 10px;
  background: rgba(26, 21, 15, 0.06);
  border: 1px solid rgba(26, 21, 15, 0.18);
  color: var(--ink-local, var(--ink));
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), background 0.4s, border-color 0.4s, color 0.4s;
  flex-shrink: 0;
}
.step__icon svg { width: 22px; height: 22px; }
.step:hover .step__icon {
  background: color-mix(in srgb, var(--step-accent) 18%, transparent);
  border-color: var(--step-accent);
  color: var(--step-accent);
  transform: rotate(-10deg) scale(1.08);
}

.step__h {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2vw, 1.7rem);
  letter-spacing: -0.02em;
  font-weight: 400;
  line-height: 1.05;
  color: var(--ink-local, var(--ink));
  margin-top: 0.4rem;
  position: relative;
  display: inline-block;
  transition: color 0.3s;
}
.step__h::after {
  content: "";
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--step-accent);
  transition: width 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.step:hover .step__h::after { width: 100%; }

.step p {
  font-size: 0.96rem;
  color: var(--ink-soft-local, var(--ink-soft));
  line-height: 1.6;
}

/* Scroll-in stagger */
.come.is-visible .step { animation: stepRise 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.come.is-visible .step:nth-child(1) { animation-delay: 0.05s; }
.come.is-visible .step:nth-child(2) { animation-delay: 0.18s; }
.come.is-visible .step:nth-child(3) { animation-delay: 0.31s; }
@keyframes stepRise {
  to { opacity: 1; transform: translateY(0); }
}

/* Phase pill + duration tag — visible on all sizes but more prominent on mobile */
.step__phase {
  display: none; /* desktop hides it — the giant 01/02/03 already conveys order */
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(0,0,0,0.25);
  border-radius: 999px;
  align-self: flex-start;
  background: rgba(11,9,8,0.05);
}
.come .step__phase {
  color: var(--ink);
  border-color: rgba(0,0,0,0.18);
  background: rgba(11,9,8,0.04);
}
.step__duration {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-top: auto;
  padding-top: 1rem;
}
.step__duration::before {
  content: "→";
  font-family: var(--font-sans);
  font-size: 0.9rem;
}

@media (max-width: 1024px) {
  .come__steps { grid-template-columns: repeat(2, 1fr); }
  /* Third card spans full width — it's the launch/payoff step */
  .come__steps .step:nth-child(3) { grid-column: 1 / -1; }
  .come__steps .step:nth-child(3) .step__num-big { font-size: clamp(3.4rem, 8vw, 5rem); }
}

/* ============================================================
   Mobile (≤620px) — STICKY scrollytelling on amber bg.
   Section keeps its desktop amber background (gives the section
   identity vs. the dark Servizi above). Cards are dark, rounded,
   float on amber with side/top gutters so amber peeks around each.
   Each card is ~78vh sticky so it pins, then the next slides over.
   Big "01" watermark removed — the FASE pill conveys step number
   cleanly without the awkward "01 standing there" look.
   ============================================================ */
@media (max-width: 620px) {
  .come {
    background: var(--amber);
    padding: clamp(3rem, 8vw, 4.5rem) 0;
    overflow: visible;
  }

  .come__container { max-width: none; padding: 0; }
  .come__head {
    padding: 0 var(--gutter) clamp(1.4rem, 4vw, 2rem);
    margin-bottom: 0;
    background: transparent;
  }
  .come__head .kicker { color: #0B0908; }
  .come__head .kicker::before { background: #0B0908; box-shadow: none; }
  .come .come__h { color: #0B0908; }

  .come__steps {
    grid-template-columns: 1fr;
    gap: 0.8rem;
    padding: 0 var(--gutter);
    margin: 0;
  }
  .come__steps .step:nth-child(3) { grid-column: 1; }

  /* Cards: dark, rounded, sticky. Sized to fit the content with minimal
     empty space. Amber visible above & below. */
  .step {
    position: sticky;
    top: 5vh;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: clamp(1.6rem, 5vw, 2.2rem) clamp(1.4rem, 4.5vw, 1.8rem) clamp(2.4rem, 6vw, 3rem);
    border: 1px solid rgba(0,0,0,0.18);
    border-radius: 20px;
    background: var(--bg-card);
    box-shadow: 0 24px 40px -22px rgba(0,0,0,0.45);
    display: flex; flex-direction: column;
    justify-content: flex-start;
    gap: clamp(0.7rem, 2.4vw, 1.1rem);
    opacity: 1;
    transform: none;
    overflow: hidden;
  }
  .step:hover { transform: none; box-shadow: 0 24px 40px -22px rgba(0,0,0,0.45); }

  /* Each step needs scroll-distance to "page" while sticky. The extra
     space below each card (margin-bottom) is what gives the next card
     room to slide up and overlap. The LAST card gets a smaller margin —
     just enough for card 2 → card 3 to overlap briefly without leaving
     a wide amber tail at the bottom of the section. */
  .come__steps .step {
    margin-bottom: 45vh;
  }
  .come__steps .step:last-child {
    margin-bottom: 8vh;
  }

  /* Z-index ascending so later cards slide over earlier ones */
  .come__steps .step:nth-child(1) { z-index: 1; }
  .come__steps .step:nth-child(2) { z-index: 2; }
  .come__steps .step:nth-child(3) { z-index: 3; }

  /* Remove top accent bar and watermark — they create awkward "floating
     01" look. The FASE pill is the step number indicator. */
  .step::before { display: none; }
  .step__num-big { display: none; }

  /* Phase pill */
  .step__phase { display: inline-flex; }
  .come .step__phase {
    color: var(--amber);
    border-color: rgba(242,164,22,0.4);
    background: rgba(242,164,22,0.10);
  }

  /* Icon — distinct, amber-tinted */
  .come .step__icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    background: rgba(242, 164, 22, 0.14);
    border-color: rgba(242, 164, 22, 0.4);
    color: var(--amber);
  }
  .come .step__icon svg { width: 28px; height: 28px; }

  .step__h {
    font-size: clamp(1.7rem, 7vw, 2.2rem);
    margin-top: 0.2rem;
  }
  .step p {
    font-size: clamp(0.98rem, 4vw, 1.08rem);
    line-height: 1.5;
    max-width: 34ch;
  }
  .step__duration {
    margin-top: 0.6rem;
    padding-top: 0;
    font-size: 0.74rem;
  }

  /* Decorative scroll cue — small chevron at the bottom of each step
     except the last, hinting that there's more below */
  .come__steps .step:not(:last-child)::after {
    content: "↓";
    position: absolute;
    bottom: clamp(1rem, 3vw, 1.4rem); left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--amber);
    opacity: 0.6;
    animation: stepCue 2s ease-in-out infinite;
  }
  @keyframes stepCue {
    0%, 100% { transform: translate(-50%, 0); opacity: 0.4; }
    50%      { transform: translate(-50%, 6px); opacity: 0.85; }
  }
}

/* ============================================================
   §6 PREZZI
   ============================================================ */
.prezzi {
  position: relative; z-index: 5;
  background: var(--bg);
  padding: var(--space-section) var(--gutter);
  border-top: 1px solid var(--line);
}
.prezzi__container {
  max-width: var(--max);
  margin: 0 auto;
}
.prezzi__head {
  display: flex; flex-direction: column; gap: 0.8rem;
  margin-bottom: 3rem;
  text-align: center;
  align-items: center;
}
.prezzi__h {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  letter-spacing: -0.025em;
  line-height: 1.02;
  font-weight: 400;
}
.prezzi__lead {
  max-width: 62ch;
  margin: 0.9rem auto 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-soft, var(--ink-muted));
}
.prezzi__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  max-width: 980px;
  margin: 0 auto;
}
.tier {
  position: relative;
  display: flex; flex-direction: column;
  gap: 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 2.4rem 2rem;
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.tier:hover { transform: translateY(-3px); }
.tier--feat {
  background: linear-gradient(180deg, var(--bg-card-2) 0%, var(--bg-card) 100%);
  border-color: var(--amber-deep);
}
.tier--feat:hover { border-color: var(--amber); }
.tier__flag {
  position: absolute;
  top: -10px; left: 50%;
  transform: translateX(-50%);
  background: var(--amber);
  color: #0B0908;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
}
.tier header { display: flex; flex-direction: column; gap: 0.5rem; }
.tier h3 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  letter-spacing: -0.02em;
  font-weight: 400;
}
.tier__sub {
  font-size: 0.92rem;
  color: var(--ink-muted);
  max-width: 38ch;
}
.tier__price {
  display: flex; align-items: baseline; gap: 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3rem);
  letter-spacing: -0.025em;
  color: var(--ink);
  line-height: 1;
}
.tier__price small {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.tier__list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 0.7rem;
  flex: 1;
}
.tier__list li {
  position: relative;
  padding-left: 22px;
  font-size: 0.97rem;
  color: var(--ink-soft);
  line-height: 1.45;
}
.tier__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 12px; height: 6px;
  border-left: 1.6px solid var(--amber);
  border-bottom: 1.6px solid var(--amber);
  transform: rotate(-45deg);
}
.tier .btn { align-self: flex-start; margin-top: 0.4rem; }
@media (max-width: 760px) {
  .prezzi__grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .tier { padding: 2rem 1.5rem; }
  .tier .btn { width: 100%; justify-content: center; }
}

/* ============================================================
   §7 RECENSIONE — Cream paper testimonial card
   ============================================================ */
.rec {
  position: relative; z-index: 5;
  background: #F3E9D2;
  color: #1A150F;
  padding: var(--space-section) var(--gutter);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.rec::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.2 0 0 0 0 0.15 0 0 0 0 0.1 0 0 0 0.4 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  opacity: 0.08;
  pointer-events: none;
  mix-blend-mode: multiply;
}
.rec__container {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.rec__head {
  text-align: center;
  margin-bottom: clamp(2rem, 5vw, 3.4rem);
  display: flex; flex-direction: column; gap: 0.8rem; align-items: center;
}
.rec .kicker { color: #8B4A1F; }
.rec .kicker::before { background: #8B4A1F; box-shadow: 0 0 8px rgba(139,74,31,0.4); }
.rec__h {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.025em;
  line-height: 1.02;
  color: #1A150F;
  font-weight: 400;
  max-width: 22ch;
}

/* Card stack — desktop: 3 across, slightly offset rotation, hover lifts.
   The cards feel like polaroid quote cards laid on a table. */
.rec__stack {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.4rem, 2.6vw, 2rem);
  align-items: start;
}
.rec__card {
  position: relative;
  margin: 0;
  background: #FAF1DC;
  border: 1px solid rgba(26,21,15,0.10);
  border-radius: 10px;
  padding: clamp(1.6rem, 3vw, 2.2rem) clamp(1.4rem, 2.6vw, 2rem);
  box-shadow:
    0 22px 40px -24px rgba(26,21,15,0.25),
    0 4px 10px -6px rgba(26,21,15,0.15);
  display: flex; flex-direction: column;
  gap: 1.4rem;
  opacity: 0;
  transform: translateY(36px) rotate(0deg);
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.45s var(--ease);
}
.rec.is-visible .rec__card { opacity: 1; }
.rec.is-visible .rec__card[data-rec="0"] { transform: translateY(0) rotate(-1.2deg); transition-delay: 0.05s; }
.rec.is-visible .rec__card[data-rec="1"] { transform: translateY(-6px) rotate(0.6deg); transition-delay: 0.18s; }
.rec.is-visible .rec__card[data-rec="2"] { transform: translateY(0) rotate(-0.4deg); transition-delay: 0.31s; }
.rec__card:hover {
  transform: translateY(-6px) rotate(0deg) !important;
  box-shadow:
    0 36px 60px -28px rgba(26,21,15,0.4),
    0 8px 16px -8px rgba(26,21,15,0.2);
}
.rec__card::before {
  /* Per-card subtle open-quote */
  content: "\201C";
  position: absolute;
  top: -0.6rem; left: 1rem;
  font-family: var(--font-display);
  font-size: clamp(3.6rem, 6vw, 5rem);
  line-height: 1;
  color: #8B4A1F;
  opacity: 0.18;
  pointer-events: none;
}
.rec__card p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: #1A150F;
  position: relative;
  z-index: 1;
}
.rec__card p em {
  font-style: italic;
  color: #8B4A1F;
}
.rec__card footer {
  display: inline-flex; align-items: center;
  gap: 0.8rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px dashed rgba(26,21,15,0.18);
}
/* Il finto URL del QR ora è un link alla home, ma resta identico nell'aspetto */
.dm__scan-link { color: inherit; text-decoration: none; display: inline-flex; align-items: center; }
.dm__scan-link:hover strong { color: var(--amber); }

.rec__photo {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(26,21,15,0.12);
  flex-shrink: 0;
}
.rec__who {
  font-family: var(--font-sans);
  font-size: 0.86rem;
  line-height: 1.35;
  color: #7A6E5A;
}
.rec__who strong {
  color: #1A150F; font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.005em;
}
.rec__loc {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: #7A6E5A;
}

/* Mobile — keep the stacked-card feel as a single column with snap-y feel.
   Stagger the rotation/offset so cards look like a hand of cards on a table. */
@media (max-width: 880px) {
  .rec__stack { grid-template-columns: 1fr; gap: 1.2rem; }
  .rec__card { padding: 1.5rem 1.4rem; }
  .rec.is-visible .rec__card[data-rec="0"] { transform: translateY(0) rotate(-1deg); }
  .rec.is-visible .rec__card[data-rec="1"] { transform: translateY(0) rotate(0.8deg); }
  .rec.is-visible .rec__card[data-rec="2"] { transform: translateY(0) rotate(-0.6deg); }
}
@media (max-width: 480px) {
  .rec__card p { font-size: 1.1rem; }
}

/* ============================================================
   §8 FAQ — native details/summary
   ============================================================ */
.faq {
  position: relative; z-index: 5;
  background: var(--bg);
  padding: var(--space-section) var(--gutter);
  border-top: 1px solid var(--line);
}
.faq__container {
  max-width: 900px;
  margin: 0 auto;
}
.faq__head {
  display: flex; flex-direction: column; gap: 0.8rem;
  margin-bottom: 2.6rem;
}
.faq__h {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.025em;
  line-height: 1.02;
  font-weight: 400;
}
.faq__list {
  border-top: 1px solid var(--line);
}
.qa {
  border-bottom: 1px solid var(--line);
}
.qa summary {
  list-style: none;
  cursor: pointer;
  padding: 1.4rem 2.4rem 1.4rem 0.4rem;
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.7vw, 1.45rem);
  letter-spacing: -0.015em;
  color: var(--ink);
  transition: color 0.3s;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "+";
  position: absolute;
  right: 0.4rem; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--amber);
  transition: transform 0.3s var(--ease);
}
.qa[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.qa[open] summary { color: var(--amber); }
.qa summary:hover { color: var(--amber); }
.qa p {
  padding: 0 4rem 1.6rem 0.4rem;
  font-size: 1rem;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 70ch;
}
@media (max-width: 600px) {
  .qa summary { padding: 1.1rem 2.2rem 1.1rem 0.2rem; }
  .qa p { padding: 0 0.2rem 1.3rem; }
}

/* ============================================================
   §9 CTA + FOOTER
   ============================================================ */
.cta {
  position: relative; z-index: 5;
  background: var(--bg);
  padding: clamp(5rem, 10vw, 8rem) var(--gutter);
  text-align: center;
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.cta__container {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  display: flex; flex-direction: column;
  gap: 1.6rem;
  align-items: center;
}
.cta__h {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.4vw, 4.4rem);
  letter-spacing: -0.025em;
  line-height: 1;
  font-weight: 400;
  color: var(--ink);
}
.cta__h em { font-style: italic; }
.cta__p {
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  color: var(--ink-soft);
  max-width: 50ch;
  line-height: 1.55;
}
.cta__actions {
  display: inline-flex; align-items: center; gap: clamp(1.2rem, 2vw, 2rem);
  flex-wrap: wrap; justify-content: center;
  margin-top: 0.8rem;
}
.cta__phone {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  font-weight: 500;
}
.cta__phone svg { display: block; }
@media (max-width: 540px) {
  .cta__actions { flex-direction: column; gap: 0.8rem; width: 100%; max-width: 340px; }
  .cta__actions .btn { width: 100%; justify-content: center; padding: 1rem 1.2rem; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.foot {
  position: relative; z-index: 5;
  background: var(--bg-card);
  padding: clamp(3rem, 6vw, 5rem) var(--gutter) 1.6rem;
  border-top: 1px solid var(--line);
}
.foot__container {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: clamp(1.6rem, 4vw, 3rem);
}
.foot__col--brand {
  display: flex; flex-direction: column; gap: 1rem;
}
.foot__brand-link { display: inline-flex; align-self: flex-start; transition: opacity 0.3s var(--ease); }
.foot__brand-link:hover { opacity: 0.85; }
.foot__brand-img {
  height: 56px;
  width: auto;
  display: block;
}
.foot__addr {
  color: var(--ink-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}
.foot__col h5 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 500;
  margin-bottom: 1rem;
}
.foot__col ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 0.55rem;
}
.foot__col a {
  color: var(--ink-soft);
  font-size: 0.92rem;
  transition: color 0.3s;
}
.foot__col a:hover { color: var(--amber); }
.foot__bottom {
  max-width: var(--max);
  margin: 2.4rem auto 0;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}
.foot__social-icon { display: none; }

@media (max-width: 1024px) {
  .foot__container { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
@media (max-width: 880px) {
  /* Brand spans the top, then the three link columns sit in a tidy row.
     The "Social" col gets hidden on mobile — its single Instagram link
     moves to an icon in the bottom row, where it reads as a hallmark of
     premium sites instead of a wasted column. */
  .foot__container {
    grid-template-columns: 1fr 1fr;
    gap: clamp(1.6rem, 4vw, 2.2rem) clamp(1.2rem, 4vw, 2rem);
  }
  .foot__col--brand { grid-column: 1 / -1; }
  .foot__col--social { display: none; }
  .foot__social-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    color: var(--ink-soft);
    transition: color 0.3s, border-color 0.3s, background 0.3s;
  }
  .foot__social-icon:hover { color: var(--amber); border-color: var(--amber); background: rgba(242,164,22,0.08); }
  .foot__bottom {
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
  }
}
@media (max-width: 480px) {
  .foot__bottom {
    flex-direction: column-reverse;
    text-align: center;
    gap: 0.8rem;
  }
  .foot__brand-img { height: 48px; }
}

/* ============================================================
   Loader — cinematic logo assembly + curtain exit
   Phone rises, MENU + FIGO slide from sides, slogan fades up,
   then two-panel curtain splits open along the horizontal seam
   revealing the page beneath.
   ============================================================ */
.loader {
  position: fixed;
  top: 0; left: 0; right: 0;
  /* Use the small viewport height so the logo centers in the visible
     area on mobile — `inset: 0` resolves to 100vh, which on iOS/Android
     is taller than the visible viewport when the URL bar is showing,
     pushing the centered logo below the visual center. */
  height: 100vh;
  height: 100svh;
  z-index: 10000;
  pointer-events: none;
  overflow: hidden;
  background: transparent;
  /* Centratura reale del lockup: flex invece di left:50% + translate(-50%),
     che su Safari iOS poteva sfasare il logo di qualche pixel. */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Two-panel curtain — meet exactly at viewport vertical center */
.loader__panel {
  position: absolute;
  left: 0; right: 0;
  height: 50%;
  background: var(--bg);
  transition: transform 1.1s cubic-bezier(0.76, 0, 0.24, 1);
}
.loader__panel--top    { top: 0;    transform-origin: top; }
.loader__panel--bottom { bottom: 0; transform-origin: bottom; }

/* Subtle amber halo behind the panels */
.loader__panel--top::after,
.loader__panel--bottom::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 50vh;
  background: radial-gradient(40vw 40vh at 50% 100%, rgba(242,164,22,0.10), transparent 70%);
  pointer-events: none;
  opacity: 0.6;
}
.loader__panel--top::after { bottom: 0; }
.loader__panel--bottom::after {
  background: radial-gradient(40vw 40vh at 50% 0%, rgba(242,164,22,0.10), transparent 70%);
  top: 0;
}

/* Logo stage sits on top of both panels, vertically centered at the seam */
.loader__stage {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  z-index: 2;
  box-sizing: border-box;
  padding-inline: 16px;
  max-width: 100%;

  /* Single source of truth for the wordmark scale. The row width is roughly
     7.6 × this height plus gaps; capped so phone + MENU + FIGO never overflows
     the viewport (verified down to 320px). */
  --logo-h: clamp(32px, 10vw, 72px);
  gap: calc(var(--logo-h) * 0.28);

  /* Subtle scale-up at end so logo "lifts away" before fade */
  animation: loadStageFade 0.5s cubic-bezier(0.7, 0, 0.84, 0) 2.05s forwards;
}
@keyframes loadStageFade {
  to { opacity: 0; transform: scale(1.06); }
}

/* Curtain exit — panels slide apart along the horizontal seam */
.loader.is-done .loader__panel--top    { transform: translateY(-100%); }
.loader.is-done .loader__panel--bottom { transform: translateY(100%); }

.loader__row {
  display: flex; align-items: center;
  gap: calc(var(--logo-h) * 0.32);
  max-width: 100%;
}
.loader__col {
  display: flex; flex-direction: column;
  align-items: center;
  gap: calc(var(--logo-h) * 0.18);
}

/* Phone icon — rises in once, lands clean, no re-tilt.
   Width is declared via aspect-ratio (355×403) so the row reserves
   the correct space even before the image finishes downloading —
   otherwise the inline-flex parent sizes to 0 until load, the slide-in
   animation runs against the wrong layout, and overflow: hidden on
   .loader__words ends up clipping FIGO permanently. */
.loader__phone {
  height: calc(var(--logo-h) * 1.3);
  width: calc(var(--logo-h) * 1.3 * (355 / 403));
  aspect-ratio: 355 / 403;
  display: block;
  flex-shrink: 0;
  opacity: 0;
  transform: translateY(34px) scale(0.7);
  animation: loadPhone 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
  transform-origin: center;
}
@keyframes loadPhone {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.loader__words {
  display: inline-flex; align-items: center;
  position: relative;
  /* niente overflow:hidden: era l'unico punto in cui FIGO poteva
     essere ritagliato via (succedeva su Safari iOS). */
}
/* MENU e FIGO del loader sono SVG inline: nessuna immagine da scaricare,
   quindi non possono mancare o arrivare in ritardo. */
.loader__menu svg, .loader__figo svg { display: block; width: 100%; height: 100%; }
.loader__menu { color: #fff; }
.loader__figo { color: var(--amber); }

/* MENU — slides in from left after phone settles.
   Width declared explicitly (642×182) so .loader__words sizes
   correctly even if MENU loads before FIGO. */
.loader__menu {
  display: block;
  height: var(--logo-h);
  width: calc(var(--logo-h) * (642 / 182));
  aspect-ratio: 642 / 182;
  display: block;
  flex-shrink: 0;
  opacity: 0;
  transform: translateX(-28px);
  animation: loadMenu 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards;
}
@keyframes loadMenu {
  to { opacity: 1; transform: translateX(0); }
}

/* FIGO — slides in from right slightly after MENU.
   Explicit width (536×182) is critical — without it, before this image
   loads .loader__words has no width budget for FIGO, and overflow:hidden
   ends up clipping it after the animation runs. */
.loader__figo {
  display: block;
  height: var(--logo-h);
  width: calc(var(--logo-h) * (536 / 182));
  aspect-ratio: 536 / 182;
  display: block;
  flex-shrink: 0;
  margin-left: calc(var(--logo-h) * 0.05);
  opacity: 0;
  transform: translateX(28px);
  animation: loadFigo 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.85s forwards;
}
@keyframes loadFigo {
  to { opacity: 1; transform: translateX(0); }
}

/* Slogan — fades up below */
.loader__slogan {
  height: calc(var(--logo-h) * 0.32);
  width: calc(var(--logo-h) * 0.32 * (868 / 61));
  aspect-ratio: 868 / 61;
  max-width: 100%;
  display: block;
  opacity: 0;
  transform: translateY(8px);
  animation: loadSlogan 0.7s var(--ease) 1.3s forwards;
}
@keyframes loadSlogan {
  to { opacity: 1; transform: translateY(0); }
}

/* After curtain panels finish sliding (1.1s), remove loader from layout */
.loader.is-done { visibility: hidden; transition: visibility 0s 1.2s; }

/* ============================================================
   Reveal utility (used by contatti / faq pages)
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Word-by-word reveal — heading splits into words on JS init */
.reveal-words .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.6em);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1) calc(var(--i, 0) * 60ms),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) calc(var(--i, 0) * 60ms);
}
.reveal-words.is-on .word {
  opacity: 1;
  transform: translateY(0);
}

/* Simple fade-up reveal */
.reveal-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal-up.is-on { opacity: 1; transform: translateY(0); }
.reveal-up.is-on.r-delay-1 { transition-delay: 0.08s; }
.reveal-up.is-on.r-delay-2 { transition-delay: 0.16s; }
.reveal-up.is-on.r-delay-3 { transition-delay: 0.24s; }

/* ============================================================
   Contatti page
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 2;
}
.page-head {
  padding: clamp(8rem, 14vw, 11rem) 0 clamp(3rem, 5vw, 4rem);
}
.page-head h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.4vw, 4.5rem);
  letter-spacing: -0.04em;
  line-height: 0.95;
  font-weight: 400;
  margin-bottom: 1.2rem;
}
.page-head p {
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.3vw, 1.18rem);
  max-width: 56ch;
  line-height: 1.55;
}
.contact-wrap { padding-bottom: var(--space-section); }
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2.5rem, 5vw, 4rem);
}
.contact-info { display: flex; flex-direction: column; gap: 1.2rem; }
.contact-info h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  letter-spacing: -0.02em;
  font-weight: 400;
  color: var(--ink);
}
.contact-info p { color: var(--ink-soft); max-width: 40ch; }
.contact-detail {
  display: flex; flex-direction: column; gap: 0.2rem;
  padding-block: 0.6rem;
  border-top: 1px solid var(--line);
}
.contact-detail__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
}
.contact-detail__value {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--ink);
  letter-spacing: -0.015em;
  transition: color 0.3s;
}
a.contact-detail__value:hover { color: var(--amber); }

.form {
  background: var(--bg-card);
  border: 1px solid var(--line);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  border-radius: var(--r-lg);
  display: flex; flex-direction: column; gap: 1.2rem;
}
.form__success {
  display: none;
  padding: 1rem 1.2rem;
  background: rgba(46,189,107,0.12);
  border: 1px solid var(--green);
  color: var(--green);
  border-radius: var(--r-md);
  font-size: 0.95rem;
}
.form.is-sent .form__success { display: block; }
.form.is-sent .form__fields { display: none; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--bg-elev);
  color: var(--ink);
  transition: border-color 0.3s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none; border-color: var(--amber);
}
.form__submit { align-self: flex-start; }
.form__meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
}
.map-block {
  margin-top: 3rem;
  position: relative;
  height: 220px;
  border-radius: var(--r-md);
  background:
    linear-gradient(180deg, rgba(11,9,8,0.6), rgba(11,9,8,0.85)),
    repeating-linear-gradient(0deg, transparent 0 32px, var(--line) 32px 33px),
    repeating-linear-gradient(90deg, transparent 0 32px, var(--line) 32px 33px),
    var(--bg-elev);
  border: 1px solid var(--line);
  overflow: hidden;
}
.map-pin {
  position: absolute;
  top: 50%; left: 50%;
  width: 16px; height: 16px;
  background: var(--amber);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow:
    0 0 0 4px rgba(242,164,22,0.2),
    0 0 0 12px rgba(242,164,22,0.1);
  animation: pingPin 2s ease-out infinite;
}
@keyframes pingPin {
  0%, 100% { box-shadow: 0 0 0 4px rgba(242,164,22,0.2), 0 0 0 12px rgba(242,164,22,0.05); }
  50% { box-shadow: 0 0 0 8px rgba(242,164,22,0.25), 0 0 0 24px rgba(242,164,22,0.08); }
}
.map-label {
  position: absolute;
  bottom: 1rem; left: 1rem;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}
.map-label strong { color: var(--ink); font-weight: 600; }
@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
}

/* ============================================================
   Palette switch (debug control)
   ============================================================ */
.palette-switch {
  position: fixed; bottom: 1rem; right: 1rem;
  z-index: 200;
  display: inline-flex;
  gap: 4px;
  padding: 6px;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.palette-switch__btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  transition: background 0.3s, color 0.3s;
}
.palette-switch__btn:hover { color: var(--ink); }
.palette-switch__btn.is-on { background: rgba(243,233,210,0.06); color: var(--ink); }
.palette-switch__dot {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--swatch, var(--amber));
  border: 1px solid rgba(243,233,210,0.2);
}
@media (max-width: 760px) {
  .palette-switch { display: none; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ============================================================
   §3.6 Video — reel wall of client videos + full-video dialog
   ============================================================ */
.video {
  position: relative; z-index: 5;
  background: var(--bg-elev);
  padding: var(--space-section) var(--gutter);
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.video__container { max-width: var(--max); margin: 0 auto; }
.video__head {
  display: flex; flex-direction: column; gap: 0.8rem;
  max-width: 760px;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.video__h {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  letter-spacing: -0.025em;
  line-height: 1.02;
  font-weight: 400;
}
.video__h em { color: var(--amber); font-style: italic; }
.video__sub {
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  line-height: 1.55;
  max-width: 56ch;
}
.video__tags {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  list-style: none; margin: 0.4rem 0 0; padding: 0;
}
.video__tags li {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}
.video__grid {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.4vw, 1.2rem);
}
.vcard {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-card);
  text-align: left;
  isolation: isolate;
  transition: transform 0.4s var(--ease), border-color 0.3s;
}
.vcard:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.vcard:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.vcard__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
}
/* Bottom scrim so the labels stay legible on any frame */
.vcard::after {
  content: "";
  position: absolute; inset: 50% 0 0 0;
  background: linear-gradient(to top, rgba(11, 9, 8, 0.9), rgba(11, 9, 8, 0));
  pointer-events: none;
}
.vcard__meta {
  position: absolute; left: 0; right: 0; bottom: 0;
  z-index: 1;
  display: flex; flex-direction: column; gap: 0.3rem;
  padding: 0.9rem 0.9rem 1rem;
}
.vcard__name {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.35vw, 1.3rem);
  line-height: 1.1;
  color: #F3E9D2;
}
.vcard__loc {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  color: rgba(243, 233, 210, 0.75);
}
.vcard__play {
  position: absolute; top: 0.75rem; right: 0.75rem;
  z-index: 1;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(11, 9, 8, 0.55);
  border: 1px solid rgba(243, 233, 210, 0.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #F3E9D2;
  transition: background 0.3s, color 0.3s, transform 0.3s var(--ease);
}
.vcard__play svg { width: 14px; height: 14px; margin-left: 2px; }
.vcard:hover .vcard__play,
.vcard:focus-visible .vcard__play { background: var(--amber); color: #0B0908; transform: scale(1.08); }
.video__hint { display: none; }
.video__cta { margin-top: clamp(2rem, 4vw, 3rem); }
.qa p a { color: var(--amber); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1024px) {
  .video__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .video__tags li { font-size: 0.62rem; letter-spacing: 0.08em; padding: 0.4rem 0.7rem; }
  /* Swipeable rail, one card peeking on each side */
  .video__rail {
    margin-inline: calc(var(--gutter) * -1);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }
  .video__rail::-webkit-scrollbar { display: none; }
  .video__grid {
    display: flex;
    gap: 0.75rem;
    width: max-content;
    padding-inline: var(--gutter);
  }
  .video__grid > li { width: 62vw; flex: 0 0 auto; scroll-snap-align: center; }
  .video__hint {
    display: block;
    margin-top: 1rem;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-muted);
  }
}

/* Full video with sound */
.vmodal {
  width: 100%; height: 100%;
  max-width: none; max-height: none;
  margin: 0; padding: 0;
  border: 0;
  background: transparent;
  color: #F3E9D2;
}
.vmodal[open] { display: grid; place-items: center; }
.vmodal::backdrop {
  background: rgba(11, 9, 8, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.vmodal__box { display: flex; flex-direction: column; align-items: center; gap: 0.8rem; }
.vmodal__video {
  display: block;
  width: min(92vw, calc(84vh * 9 / 16), 540px);
  aspect-ratio: 9 / 16;
  height: auto;
  border-radius: var(--r-md);
  background: #000;
}
.vmodal__title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(243, 233, 210, 0.8);
}
.vmodal__close {
  position: fixed; top: 1rem; right: 1rem;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(243, 233, 210, 0.1);
  border: 1px solid rgba(243, 233, 210, 0.25);
  color: #F3E9D2;
  transition: background 0.3s, color 0.3s;
}
.vmodal__close:hover { background: var(--amber); color: #0B0908; }

/* "Senza app" spot: the QR line pings (replaces the old speed bars) */
.dm.is-spot-speed .dm__scan {
  position: relative; z-index: 1;
  color: var(--ink);
  animation: dmPing 1.6s ease-out infinite;
}

/* FAQ answers with a bullet list + CTA */
.qa__list {
  margin: 0; padding: 0 4rem 1.2rem 1.6rem;
  max-width: 70ch;
  color: var(--ink-soft);
  line-height: 1.6;
}
.qa__list li { margin-bottom: 0.35rem; }
.qa__list li::marker { color: var(--amber); }
.qa__cta { padding: 0 0.4rem 1.8rem; }
@media (max-width: 600px) {
  .qa__list { padding: 0 0.2rem 1rem 1.3rem; }
  .qa__cta { padding: 0 0.2rem 1.4rem; }
}

/* ============================================================
   §9.5 Partner — light band so the partner's dark logo reads
   ============================================================ */
.partner {
  position: relative; z-index: 5;
  background: #F3E9D2;
  color: #1A150F;
  padding: clamp(4rem, 8vw, 6.5rem) var(--gutter);
  border-top: 1px solid var(--line);
}
.partner__container {
  max-width: 1200px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.partner__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.partner__kicker { color: #B97A0E; }
.partner__h {
  color: #1A150F;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.025em;
  line-height: 1.04;
  font-weight: 400;
}
.partner__h em { font-style: italic; color: #B97A0E; }
.partner__p { font-size: clamp(1rem, 1.2vw, 1.12rem); line-height: 1.6; color: #4A3F30; max-width: 52ch; }
.partner__btn {
  margin-top: 0.4rem;
  background: #1A150F; color: #F3E9D2; border-color: #1A150F;
}
.partner__btn:hover { background: #0B57D0; border-color: #0B57D0; color: #fff; }
.partner__logo {
  display: grid; place-items: center;
  background: #fff;
  border-radius: var(--r-lg);
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 3rem);
  box-shadow: 0 20px 50px -24px rgba(26, 21, 15, 0.35);
  transition: transform 0.4s var(--ease);
}
.partner__logo:hover { transform: translateY(-4px); }
.partner__logo img { width: 100%; max-width: 440px; height: auto; display: block; }
@media (max-width: 820px) {
  .partner__container { grid-template-columns: 1fr; }
  .partner__logo { order: -1; }
}
