/* =========================================================
   Cheese…tiamo — Cacioteca a Lucca
   Design system: toscano rustico-elegante
   ========================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  /* Palette (derivata dal logo) */
  --cream: #F5EDDF;
  --paper: #FBF7EF;
  --linen: #EBDFCA;
  --espresso: #241B14;
  --bark: #5B4C3E;
  --bark-deep: #33281F;
  --butter: #F4C95D;
  --gold: #E3A21F;
  --ochre: #8A5A12;
  --rose: #F2A08C;
  --rose-deep: #A94A36;
  --olive: #5E6236;

  /* Ruoli semantici */
  --bg: var(--cream);
  --surface: var(--paper);
  --text: var(--espresso);
  --text-soft: #5A4C40;
  --text-on-dark: #F5EDDF;
  --text-on-dark-soft: #CDBFAB;
  --accent: var(--ochre);
  --line: rgba(36, 27, 20, .14);
  --line-on-dark: rgba(245, 237, 223, .18);
  --focus: #1F6FEB;
  --success: #3F6B2A;
  --error: #A12F1F;

  /* Tipografia */
  --serif: 'Cormorant Garamond', 'Cormorant', Georgia, 'Times New Roman', serif;
  --sans: 'Jost', 'Helvetica Neue', Arial, system-ui, sans-serif;
  --fs-hero: clamp(3.1rem, 1.6rem + 6.4vw, 8.6rem);
  --fs-h1: clamp(2.8rem, 1.8rem + 4.2vw, 6.2rem);
  --fs-h2: clamp(2.2rem, 1.5rem + 2.5vw, 4.1rem);
  --fs-h3: clamp(1.55rem, 1.3rem + .9vw, 2.15rem);
  --fs-lead: clamp(1.04rem, .98rem + .22vw, 1.18rem);
  --fs-body: 1.0625rem;
  --fs-small: .9rem;
  --fs-label: .8rem;

  /* Spaziatura (scala 4/8) */
  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4rem; --s-9: 6rem;
  --gutter: clamp(1rem, 4vw, 3rem);
  --section: clamp(6rem, 4.6rem + 8vw, 13rem);
  --container: 1320px;

  /* Forme ed elevazione */
  --r-sm: 6px;
  --r-md: 14px;
  --r-lg: 24px;
  --r-pill: 999px;
  --arch: 999px 999px var(--r-md) var(--r-md);
  --shadow-1: 0 1px 2px rgba(36,27,20,.06), 0 4px 14px rgba(36,27,20,.06);
  --shadow-2: 0 10px 40px rgba(36,27,20,.14);
  --shadow-3: 0 30px 80px rgba(20,14,9,.35);

  /* Movimento */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --ease-in: cubic-bezier(.55, 0, 1, .45);
  --d-fast: 180ms;
  --d-med: 420ms;
  --d-slow: 800ms;

  /* Livelli */
  --z-header: 100;
  --z-menu: 200;
  --z-drawer: 300;
  --z-dialog: 400;
  --z-toast: 500;
  --z-loader: 600;

  --header-h: 76px;
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scrollbar-gutter: stable; overflow-x: hidden; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-variant-numeric: lining-nums;
  overflow-x: clip;
}
/* Grana carta: texture statica, nessun costo di scroll */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: .07;
  mix-blend-mode: multiply;
  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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .2 0 0 0 0 .15 0 0 0 0 .1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; touch-action: manipulation; }
a, button, select, label, summary { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
:where(ul[role="list"], ol[role="list"]) { list-style: none; padding: 0; }
::selection { background: var(--butter); color: var(--espresso); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}
.on-dark :focus-visible, .site-footer :focus-visible, .page-hero--image :focus-visible { outline-color: var(--butter); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: var(--s-4); top: var(--s-4); z-index: 10000;
  background: var(--espresso); color: var(--cream); padding: .8rem 1.2rem; border-radius: var(--r-pill);
  transform: translateY(-160%); transition: transform var(--d-fast) var(--ease-out);
}
.skip-link:focus { transform: none; }

/* ---------- 3. Tipografia ---------- */
.serif { font-family: var(--serif); }
h1, h2, h3, h4, .display {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -.015em;
  text-wrap: balance;
}
h1 em, h2 em, h3 em, h4 em, .display em { font-style: italic; font-weight: 400; }
.h1 { font-size: var(--fs-h1); }
.h2 { font-size: var(--fs-h2); font-weight: 400; letter-spacing: -.02em; line-height: 1.05; }
.h3 { font-size: var(--fs-h3); line-height: 1.12; }
.lead { font-size: var(--fs-lead); line-height: 1.7; color: var(--text-soft); max-width: 40ch; text-wrap: pretty; }
p { text-wrap: pretty; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .7rem;
  font-family: var(--sans);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: ''; width: 16px; height: 1px; background: currentColor; opacity: .45;
}
.on-dark .eyebrow, .page-hero--image .eyebrow { color: var(--butter); }
.accent-rose { color: var(--rose-deep); }
.on-dark { color: var(--text-on-dark); }
.on-dark .lead { color: var(--text-on-dark-soft); }

/* ---------- 4. Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: calc(var(--section) * .6); }
.section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: var(--s-5) var(--s-7); margin-bottom: clamp(3rem, 6vw, 5.5rem);
}
.section-head__text { max-width: 680px; display: grid; gap: 1.1rem; }
.bg-paper { background: var(--paper); }
.bg-linen { background: var(--linen); }
.bg-dark { background: var(--bark-deep); color: var(--text-on-dark); }
.bg-espresso { background: var(--espresso); color: var(--text-on-dark); }

/* ---------- 5. Icone ---------- */
.icon { width: 1.25em; height: 1.25em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon--fill { fill: currentColor; stroke: none; }

/* ---------- 6. Bottoni ---------- */
.btn {
  --btn-bg: var(--espresso); --btn-fg: var(--cream); --btn-fill: var(--bark); --btn-fill-fg: var(--cream);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .7rem;
  min-height: 52px; padding: .85rem 1.65rem;
  border-radius: var(--r-pill);
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--sans); font-size: .95rem; font-weight: 500; letter-spacing: .03em;
  line-height: 1.2; text-align: center;
  border: 1px solid transparent;
  transition: color var(--d-med) var(--ease-out), border-color var(--d-med) var(--ease-out), transform var(--d-fast) var(--ease-out);
  cursor: pointer;
  will-change: transform;
}
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--btn-fill);
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform var(--d-med) var(--ease-out);
}
.btn:active { transform: scale(.97); }
.btn .icon { transition: transform var(--d-med) var(--ease-out); }
@media (hover: hover) {
  .btn:hover::before { transform: translateY(0); }
  .btn:hover { color: var(--btn-fill-fg); }
  .btn:hover .icon--arrow { transform: translateX(4px); }
}
.btn--butter { --btn-bg: var(--butter); --btn-fg: var(--espresso); --btn-fill: var(--cream); --btn-fill-fg: var(--espresso); }
.btn--ghost-light { --btn-bg: transparent; --btn-fg: var(--cream); --btn-fill: var(--cream); --btn-fill-fg: var(--espresso); border-color: rgba(245,237,223,.5); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--espresso); --btn-fill: var(--espresso); --btn-fill-fg: var(--cream); border-color: rgba(36,27,20,.35); }
.btn--rose { --btn-bg: var(--rose); --btn-fg: var(--espresso); --btn-fill: var(--espresso); --btn-fill-fg: var(--cream); }
.btn--block { width: 100%; }
.btn--sm { min-height: 44px; padding: .6rem 1.15rem; font-size: .88rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; pointer-events: none; }

.link-underline {
  position: relative; display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 500; padding-block: .35rem;
}
.link-underline::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform-origin: right; transform: scaleX(1);
  transition: transform var(--d-med) var(--ease-out);
}
@media (hover: hover) {
  .link-underline:hover::after { animation: underline-run .7s var(--ease-out); }
  .link-underline:hover .icon--arrow { transform: translateX(4px); }
}
.link-underline .icon { transition: transform var(--d-med) var(--ease-out); }
@keyframes underline-run {
  0% { transform: scaleX(1); transform-origin: right; }
  45% { transform: scaleX(0); transform-origin: right; }
  46% { transform: scaleX(0); transform-origin: left; }
  100% { transform: scaleX(1); transform-origin: left; }
}

/* ---------- 7. Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-header);
  height: var(--header-h);
  color: var(--espresso);
  transition: transform var(--d-med) var(--ease-out), background-color var(--d-med) var(--ease-out), color var(--d-med) var(--ease-out), box-shadow var(--d-med) var(--ease-out);
}
.site-header::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: rgba(245, 237, 223, .86);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
  opacity: 1; transition: opacity var(--d-med) var(--ease-out);
}
[data-header="transparent"] .site-header:not(.is-scrolled) { color: var(--cream); }
[data-header="transparent"] .site-header:not(.is-scrolled)::before { opacity: 0; }
.site-header.is-hidden { transform: translateY(-100%); }
.menu-open .site-header { transform: none; color: var(--cream); z-index: calc(var(--z-menu) + 1); }
.menu-open .site-header::before { opacity: 0; }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); }

.brand { display: inline-flex; align-items: center; gap: .7rem; min-height: 44px; }
.brand__mark { width: 44px; height: 44px; flex: none; transition: transform var(--d-slow) var(--ease-out); }
.brand__word { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; line-height: 1; letter-spacing: -.01em; white-space: nowrap; }
.brand__word em { font-weight: 500; font-style: italic; }
@media (hover: hover) { .brand:hover .brand__mark { transform: rotate(-14deg) scale(1.05); } }

.nav-main { display: none; }
.nav-main ul { display: flex; gap: clamp(1.2rem, 2.4vw, 2.6rem); list-style: none; margin: 0; padding: 0; }
.nav-main a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px;
  font-size: var(--fs-label); font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
}
.nav-main a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform var(--d-med) var(--ease-out);
}
.nav-main a[aria-current="page"]::after { transform: scaleX(1); }
@media (hover: hover) { .nav-main a:hover::after { transform: scaleX(1); transform-origin: left; } }

.header-actions { display: flex; align-items: center; gap: .35rem; }
.lang-switch { display: inline-flex; align-items: center; border: 1px solid currentColor; border-radius: var(--r-pill); padding: 3px; opacity: .9; }
.lang-switch button {
  min-width: 38px; min-height: 34px; border-radius: var(--r-pill);
  font-size: .75rem; font-weight: 500; letter-spacing: .1em;
  transition: background-color var(--d-fast), color var(--d-fast);
}
.lang-switch button[aria-pressed="true"] { background: currentColor; }
.lang-switch button[aria-pressed="true"] span { color: var(--cream); }
[data-header="transparent"] .site-header:not(.is-scrolled) .lang-switch button[aria-pressed="true"] span,
.menu-open .site-header .lang-switch button[aria-pressed="true"] span { color: var(--espresso); }
.icon-btn {
  position: relative; display: inline-grid; place-items: center;
  width: 48px; height: 48px; border-radius: var(--r-pill);
  transition: background-color var(--d-fast);
}
.icon-btn .icon { width: 24px; height: 24px; }
@media (hover: hover) { .icon-btn:hover { background: rgba(127, 104, 80, .14); } }
.cart-count {
  position: absolute; top: 4px; right: 2px;
  min-width: 20px; height: 20px; padding: 0 5px; border-radius: var(--r-pill);
  background: var(--rose); color: var(--espresso);
  font-size: .72rem; font-weight: 600; line-height: 20px; text-align: center;
  font-variant-numeric: tabular-nums;
  transform: scale(0); transition: transform var(--d-med) var(--ease-out);
}
.cart-count.has-items { transform: scale(1); }
.cart-count.bump { animation: bump .5s var(--ease-out); }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.45); } 100% { transform: scale(1); } }

.menu-toggle .bars { position: relative; width: 22px; height: 12px; }
.menu-toggle .bars span {
  position: absolute; left: 0; width: 100%; height: 1.6px; background: currentColor; border-radius: 2px;
  transition: transform var(--d-med) var(--ease-out), top var(--d-med) var(--ease-out);
}
.menu-toggle .bars span:first-child { top: 0; }
.menu-toggle .bars span:last-child { top: 10px; }
.menu-open .menu-toggle .bars span:first-child { top: 5px; transform: rotate(45deg); }
.menu-open .menu-toggle .bars span:last-child { top: 5px; transform: rotate(-45deg); }

@media (min-width: 1024px) {
  .nav-main { display: block; }
  .menu-toggle { display: none; }
}
/* Telefoni: logo + lingua + carrello + menu devono stare in una riga anche a 360 px
   (prima occupavano 404 px e il menu usciva dallo schermo a destra; a misura piena servono ~442 px) */
@media (max-width: 460px) {
  .header-inner { gap: .5rem; }
  .brand { gap: .5rem; }
  .brand__word { font-size: 1.35rem; }
  .brand__mark { width: 38px; height: 38px; }
  .header-actions { gap: .15rem; }
  .lang-switch button { min-width: 32px; }
  .site-header .icon-btn { width: 44px; height: 44px; }
}
@media (max-width: 370px) {
  .brand__word { font-size: 1.2rem; }
  .brand__mark { width: 34px; height: 34px; }
}
@media (max-width: 345px) {   /* telefoni molto piccoli: resta solo il marchio */
  .brand__word { display: none; }
}

/* ---------- 8. Menu mobile ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: var(--z-menu);
  background: var(--bark-deep); color: var(--cream);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--header-h) + 2rem) var(--gutter) max(2rem, env(safe-area-inset-bottom));
  clip-path: circle(0% at calc(100% - 40px) 38px);
  visibility: hidden;
  transition: clip-path .7s var(--ease-in-out), visibility 0s linear .7s;
}
.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 40px) 38px); visibility: visible; transition: clip-path .8s var(--ease-in-out), visibility 0s; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.mobile-menu li { overflow: hidden; }
.mobile-menu a.mobile-menu__link {
  display: flex; align-items: baseline; gap: 1rem; min-height: 48px;
  font-family: var(--serif); font-size: clamp(2.6rem, 11vw, 4.5rem); line-height: 1.05; font-weight: 500;
  transform: translateY(110%); transition: transform .7s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 60ms);
}
.mobile-menu a.mobile-menu__link small { font-family: var(--sans); font-size: .8rem; letter-spacing: .15em; color: var(--butter); }
.mobile-menu a[aria-current="page"] { font-style: italic; color: var(--butter); }
.menu-open .mobile-menu a.mobile-menu__link { transform: none; transition-delay: calc(.25s + var(--i, 0) * 70ms); }
.mobile-menu__foot {
  display: grid; gap: .3rem; color: var(--text-on-dark-soft); font-size: var(--fs-small);
  opacity: 0; transform: translateY(16px); transition: opacity .5s, transform .5s var(--ease-out);
}
.menu-open .mobile-menu__foot { opacity: 1; transform: none; transition-delay: .6s; }
.mobile-menu__foot a { color: var(--cream); text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 1024px) { .mobile-menu { display: none; } }

/* ---------- 9. Benvenuto (home): si entra da una porta delle Mura di Lucca ---------- */
/* Senza animazioni (o movimento ridotto) è un hero statico a tutto schermo col video;
   con .anim-ready diventa una scena "sticky": porta delle Mura col paesaggio, poi il video. */
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__media img { width: 100%; height: 115%; object-fit: cover; object-position: 30% 50%; will-change: transform; }
.hero__title { font-size: var(--fs-hero); font-weight: 500; line-height: .95; max-width: 12ch; }
.hero__title em { color: var(--butter); }
.hero__lead { font-size: var(--fs-lead); max-width: 44ch; color: #E7DCCB; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-2); }
.hero__badge { position: absolute; width: clamp(110px, 12vw, 150px); aspect-ratio: 1; }
.hero__badge svg.ring { width: 100%; height: 100%; animation: spin 26s linear infinite; }
.hero__badge svg.ring text { font-family: var(--sans); font-size: 10.4px; letter-spacing: .26em; fill: var(--cream); text-transform: uppercase; }
/* logo al centro del bollino: posizione e misura esplicite (con solo "inset" Safari su iPhone lascia l'SVG alla sua misura naturale e lo sposta) */
.hero__badge .badge-heart { position: absolute; left: 30%; top: 30%; width: 40%; height: 40%; margin: 0; display: block; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes scroll-line { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

.welcome { --welcome-run: 74vh; position: relative; background: var(--espresso); color: var(--cream); }
.welcome__stage { position: relative; height: 100vh; height: 100svh; overflow: hidden; isolation: isolate; }
.welcome__frame, .welcome__reveal, .welcome__media { position: absolute; inset: 0; }
.welcome__frame { overflow: hidden; z-index: 1; }
.welcome__video {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none;
  object-fit: cover; object-position: 50% 50%;
}
.welcome__shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(26,19,13,.95) 0%, rgba(26,19,13,.84) 34%, rgba(26,19,13,.55) 56%, rgba(26,19,13,.12) 76%, rgba(26,19,13,.4) 100%);
}
/* In verticale il pecorino (a sinistra nel video) viene centrato */
@media (orientation: portrait), (max-width: 767px) {
  .welcome__video { object-position: 22% 50%; }
}

.welcome__content {
  position: absolute; inset: 0 0 auto 0; height: 100vh; height: 100svh; z-index: 3;
  display: flex; align-items: flex-end;
  padding-top: calc(var(--header-h) + 2rem); padding-bottom: clamp(3rem, 8vh, 6rem);
}
.welcome__copy { display: grid; gap: var(--s-5); justify-items: start; }
.welcome .eyebrow { color: var(--butter); }
.welcome :focus-visible { outline-color: var(--butter); }

/* La porta delle Mura col paesaggio: solo nella versione animata (disegnata da main.js) */
.welcome__scene, .welcome__intro { display: none; }
.welcome__scene { position: absolute; inset: 0; z-index: 0; transform-origin: 50% 70%; }
.welcome__sky { position: absolute; inset: 0; background: #3a2a37; }
/* la foto della porta (posizione, luce e avvicinamento calcolati in main.js, initWelcomeScroll) */
.welcome__photo { position: absolute; inset: 0; transform-origin: 0 0; will-change: transform, opacity; }
.welcome__photo-ext { position: absolute; inset: 0; }
.welcome__photo-img { position: absolute; display: block; max-width: none; user-select: none; }
.welcome__grade, .welcome__vig, .welcome__glow { position: absolute; inset: 0; pointer-events: none; }
.welcome__glow { mix-blend-mode: screen; }
/* luna (solo di notte): tenue, mari appena accennati, ombra sul bordo, alone leggero */
.welcome__moon { position: absolute; display: none; border-radius: 50%; pointer-events: none;
  background:
    radial-gradient(circle at 63% 36%, rgba(118,116,110,.26) 0 9%, transparent 15%),
    radial-gradient(circle at 41% 58%, rgba(118,116,110,.22) 0 12%, transparent 19%),
    radial-gradient(circle at 31% 35%, rgba(126,124,118,.18) 0 7%, transparent 12%),
    radial-gradient(circle at 57% 72%, rgba(126,124,118,.15) 0 6%, transparent 10%),
    radial-gradient(circle at 40% 38%, #ece9df 0%, #d9d4c6 55%, #bdb7a8 100%);
  box-shadow: inset -5px -2px 9px rgba(28,34,60,.5), 0 0 6px 1px rgba(236,240,255,.22), 0 0 26px 6px rgba(170,186,236,.08); }
.welcome__intro { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.welcome__title {
  position: absolute; left: 0; right: 0; top: var(--title-y, 13vh); padding-inline: var(--gutter);
  display: grid; justify-items: center; gap: .1em; text-align: center;
  font-family: var(--serif); font-weight: 500; line-height: 1.02; letter-spacing: -.01em;
  text-shadow: var(--tsh, 0 2px 26px rgba(20,10,8,.55));
}
.welcome__word { white-space: nowrap; }
.welcome__word--a { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.8rem); font-style: italic; color: var(--w1, var(--cream)); }
/* min(…, 15.4vw): sui telefoni stretti (320–360 px) il nome resta su una riga dentro i margini */
.welcome__word--b { font-size: min(clamp(3.6rem, 1.6rem + 7.4vw, 8.8rem), 15.4vw); color: var(--w2, var(--butter)); }
/* schermi larghi (computer): misura di prima, così il nome resta tra la Torre Guinigi e la Torre delle Ore */
@media (min-aspect-ratio: 17/20) {
  .welcome__word--a { font-size: clamp(1.7rem, 1.1rem + 2.2vw, 3.2rem); }
  .welcome__word--b { font-size: clamp(3.1rem, 1.4rem + 6.2vw, 7.6rem); }
}
.welcome__word em { font-style: italic; }
.welcome__word .dots { letter-spacing: -.06em; margin-right: .04em; }
.welcome__word [class*="mask"] { padding: 0 .14em .16em; margin: 0 -.14em -.16em; }
.welcome__cue {
  position: absolute; left: 0; right: 0; bottom: clamp(1rem, 3.5vh, 2rem);
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  font-size: .72rem; letter-spacing: .28em; text-transform: uppercase; color: rgba(245,237,223,.92); text-shadow: 0 1px 8px rgba(0,0,0,.55);
}
.welcome__cue::after {
  content: ''; width: 1px; height: 30px; background: linear-gradient(var(--cream), transparent);
  animation: scroll-line 2.2s var(--ease-in-out) infinite; transform-origin: top;
}
/* Sigillo: in disparte, nell'angolo in basso */
.welcome__seal { position: absolute; left: var(--gutter); bottom: .9rem; width: clamp(58px, 8vw, 116px); aspect-ratio: 1; }
.welcome .welcome__badge { display: block; position: relative; inset: auto; width: 100%; height: 100%; }

/* Pausa / play del video (WCAG 2.2.2) */
.welcome__toggle {
  position: absolute; z-index: 4; right: var(--gutter); bottom: 1.1rem;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  color: var(--cream); background: rgba(26,19,13,.45); border: 1px solid rgba(245,237,223,.35);
  transition: background-color var(--d-fast), border-color var(--d-fast);
}
.welcome__toggle[hidden] { display: none; }
.welcome__toggle .icon { width: 18px; height: 18px; }
@media (hover: hover) { .welcome__toggle:hover { background: rgba(26,19,13,.7); border-color: var(--butter); } }

/* Telefoni: titolo della home più compatto, così tutto sta nello schermo */
@media (max-width: 767px) {
  .welcome__content { padding-top: calc(var(--header-h) + .5rem); padding-bottom: 2.2rem; }
  .welcome__copy { gap: var(--s-4); }
  .welcome .hero__title { font-size: clamp(2.5rem, 10.5vw, 3.6rem); max-width: 14ch; }
  .welcome .hero__lead { font-size: 1rem; }
}
/* Orizzontale: pecorino a sinistra, testi nella colonna destra (zona scura del video) */
@media (min-width: 640px) and (orientation: landscape) {
  .welcome__shade {
    background:
      linear-gradient(to left, rgba(26,19,13,.9) 0%, rgba(26,19,13,.6) 34%, rgba(26,19,13,0) 60%),
      linear-gradient(to top, rgba(26,19,13,.55) 0%, rgba(26,19,13,0) 34%),
      linear-gradient(to bottom, rgba(26,19,13,.5) 0%, rgba(26,19,13,0) 22%);
  }
  .welcome__content { align-items: center; padding-bottom: 2rem; }
  .welcome__copy { margin-left: auto; width: min(100%, 38rem, 54vw); }
  .welcome .hero__title { font-size: clamp(3.4rem, 1.2rem + 4.6vw, 7.2rem); }
  .welcome__toggle { top: auto; bottom: 1.5rem; }
}
/* Schermi bassi (telefoni piccoli, telefoni in orizzontale) */
@media (max-height: 700px) and (max-width: 767px), (max-height: 500px) {
  .welcome .hero__lead { display: none; }
  .welcome .hero__title { font-size: clamp(2.2rem, 6vh + 1rem, 3.2rem); }
}
@media (max-height: 500px) and (orientation: landscape) {
  .welcome__content { padding-top: calc(var(--header-h) + .25rem); padding-bottom: 1rem; }
  .welcome__toggle { left: auto; right: var(--gutter); bottom: 1rem; }
  .welcome__seal { display: none; }
  .welcome__word--a { font-size: 1.5rem; }
  .welcome__word--b { font-size: 3rem; }
  .welcome__cue { bottom: .6rem; }
  .welcome__cue::after { height: 18px; }
}

/* Versione animata: scena "sticky" lunga --welcome-run, guidata da GSAP */
.anim-ready .welcome { height: calc(100vh + var(--welcome-run)); }
.anim-ready .welcome__stage { position: sticky; top: 0; height: 100vh; height: 100svh; }
.anim-ready .welcome__scene, .anim-ready .welcome__intro { display: block; }
.anim-ready .welcome__frame { opacity: 0; clip-path: inset(50% 50% 50% 50%); will-change: clip-path, opacity; }  /* il video si vede solo in fondo al passaggio */
.anim-ready .welcome__scene, .anim-ready .welcome__shade, .anim-ready .welcome__copy > *,
.anim-ready [data-w-fade], .anim-ready .welcome__badge { opacity: 0; }
.anim-ready .welcome__word { visibility: hidden; }
.anim-ready .welcome__content { pointer-events: none; }
.anim-ready .welcome__content.is-open { pointer-events: auto; }

/* ---------- 10–11. Manifesto (con i quattro punti di "perché sceglierci") ---------- */
.manifesto__grid { display: grid; gap: clamp(3rem, 6vw, 5rem); align-items: center; }
.manifesto__text {
  font-family: var(--serif); font-size: clamp(1.9rem, 1.3rem + 2.3vw, 3.5rem); line-height: 1.14; font-weight: 400; letter-spacing: -.015em;
}
.manifesto__text em { color: var(--ochre); }
.mf-points {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 1.6rem 2.2rem;
  margin-top: clamp(2.2rem, 4vw, 3.2rem); padding-top: 2rem; border-top: 1px solid var(--line);
}
.mf-points li { display: flex; gap: 1rem; align-items: flex-start; }
.mf-points__icon { flex: none; width: 46px; height: 46px; color: var(--ochre); }
.mf-points__icon svg { width: 100%; height: 100%; }
.mf-points h3 { font-size: 1.28rem; font-weight: 500; line-height: 1.15; margin-bottom: .2rem; }
.mf-points p { font-size: .92rem; line-height: 1.55; color: var(--text-soft); }
.manifesto__sign { margin-top: 2.4rem; display: flex; align-items: center; gap: var(--s-4); color: var(--text-soft); }
.manifesto__sign svg { width: 52px; height: 52px; }
/* foto più grandi: colonna delle foto più larga, su telefono quasi a tutta larghezza */
.manifesto__media { position: relative; display: grid; grid-template-columns: 1fr .66fr; gap: var(--s-4); align-items: end; }
.frame { position: relative; overflow: hidden; border-radius: var(--r-md); background: var(--linen); }
.frame--arch { border-radius: var(--arch); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame[data-parallax] img { height: 118%; margin-top: -9%; will-change: transform; }
.manifesto__media .frame { box-shadow: 0 30px 60px -34px rgba(36,27,20,.45); }
.manifesto__media .frame:first-child { aspect-ratio: 3 / 4; }
.manifesto__media .frame:last-child { aspect-ratio: 3 / 4; margin-bottom: 18%; }
@media (max-width: 959px) { .manifesto__media { grid-template-columns: 1fr .6fr; margin-inline: calc(var(--gutter) * -1 + .5rem); gap: .6rem; } }
@media (min-width: 960px) { .manifesto__grid { grid-template-columns: 1fr 1.08fr; } }

/* parole del manifesto (scrub) */
.word { display: inline-block; }

/* ---------- 12. Card prodotto ---------- */
.product-grid { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem) clamp(1rem, 2vw, 1.75rem); grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); }
.product-card { display: flex; flex-direction: column; gap: var(--s-4); }
.product-card__media {
  position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: var(--r-md); background: var(--linen); cursor: pointer;
}
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.product-card__media::after {
  content: attr(data-label); position: absolute; left: 50%; bottom: 1rem;
  translate: -50% 12px; opacity: 0;
  padding: .55rem 1rem; border-radius: var(--r-pill); background: rgba(251,247,239,.92); color: var(--espresso);
  font-size: .8rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
  transition: opacity var(--d-med) var(--ease-out), translate var(--d-med) var(--ease-out);
}
@media (hover: hover) {
  .product-card__media:hover img { transform: scale(1.06); }
  .product-card__media:hover::after { opacity: 1; translate: -50% 0; }
}
.badge {
  position: absolute; top: .9rem; left: .9rem; z-index: 1;
  padding: .3rem .7rem; border-radius: var(--r-pill);
  background: var(--butter); color: var(--espresso);
  font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}
.product-card__body { display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.product-card__cat { font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); font-weight: 500; }
.product-card__title { font-family: var(--serif); font-size: 1.6rem; line-height: 1.1; font-weight: 600; }
.product-card__title button { text-align: left; }
@media (hover: hover) { .product-card__title button:hover { color: var(--accent); } }
.product-card__desc { color: var(--text-soft); font-size: .97rem; line-height: 1.55; }
.product-card__buy { margin-top: auto; padding-top: var(--s-3); display: grid; grid-template-columns: 1fr auto; gap: .6rem; align-items: center; }
.price { font-family: var(--serif); font-size: 1.55rem; font-weight: 600; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.price small { font-family: var(--sans); font-size: .78rem; color: var(--text-soft); font-weight: 400; margin-left: .25rem; }
.select {
  width: 100%; min-height: 48px; padding: .6rem 2.4rem .6rem 1rem;
  border: 1px solid var(--line); border-radius: var(--r-pill); background-color: var(--surface);
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23241B14' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center; background-size: 18px;
  font-size: 1rem; cursor: pointer;
  transition: border-color var(--d-fast);
}
.select:hover { border-color: rgba(36,27,20,.4); }
.product-card .btn { margin-top: .4rem; }
.btn.is-added { --btn-bg: var(--olive); }

/* carosello in evidenza: scroll-snap su mobile */
@media (max-width: 699px) {
  .featured-row {
    display: grid; grid-auto-flow: column; grid-auto-columns: 78%;
    grid-template-columns: none;
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
    padding-bottom: 1rem; scrollbar-width: thin;
  }
  .featured-row > * { scroll-snap-align: start; }
}
.swipe-hint { display: none; align-items: center; gap: .5rem; font-size: var(--fs-small); color: var(--text-soft); margin-top: var(--s-2); }
@media (max-width: 699px) { .swipe-hint { display: inline-flex; } }

/* I nostri consigli: una scheda per pecorino, con la sua foto tonda come su un piatto */
.tasting { margin-top: clamp(3.5rem, 6vw, 5.5rem); display: grid; gap: clamp(1.4rem, 2.6vw, 2rem); }
.tasting__intro { display: grid; gap: .45rem; max-width: 62ch; }
.tasting__title { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.15rem); font-weight: 500; }
.tasting__intro p { color: var(--text-soft); font-size: .98rem; }
.taste { display: grid; gap: 1rem; }
/* telefono: si sceglie il pecorino dalle foto, sotto c'è la sua scheda */
.taste__hint { display: flex; align-items: center; gap: .5rem; font-size: .88rem; color: var(--text-soft); }
.taste__hint .icon { width: 18px; height: 18px; color: var(--ochre); }
.taste__picks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .45rem; }
/* ogni pecorino è un pulsante vero: riquadro con bordo, ombra leggera e, se scelto, sfondo dorato con la spunta */
.taste__pick {
  position: relative; display: grid; justify-items: center; align-content: start; gap: .45rem; min-height: 120px;
  padding: .65rem .25rem .7rem; border-radius: var(--r-md); border: 1px solid rgba(36,27,20,.24); background: #E4D4B8;
  box-shadow: 0 6px 14px -9px rgba(36,27,20,.55);
  font-size: .78rem; line-height: 1.22; text-align: center; color: var(--text); -webkit-tap-highlight-color: transparent;
  transition: background-color var(--d-fast, .2s), border-color var(--d-fast, .2s), transform var(--d-fast, .2s) var(--ease-out), box-shadow var(--d-fast, .2s);
}
.taste__pick img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; background: var(--linen); }
.taste__mark {
  position: absolute; top: .35rem; right: .35rem; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid rgba(36,27,20,.35); background: #F3EADA;
}
.taste__mark .icon { width: 12px; height: 12px; stroke-width: 2.6; color: var(--cream); opacity: 0; }
.taste__pick[aria-selected="true"] { border-color: var(--gold); background: #F2CF78; box-shadow: inset 0 0 0 1px var(--gold), 0 8px 18px -9px rgba(138,90,18,.6); font-weight: 600; }
.taste__pick[aria-selected="true"] .taste__mark { background: var(--espresso); border-color: var(--espresso); }
.taste__pick[aria-selected="true"] .taste__mark .icon { opacity: 1; }
/* freccina che collega il pecorino scelto alla sua scheda */
.taste__pick[aria-selected="true"]::after {
  content: ''; position: absolute; left: 50%; bottom: -21px; width: 14px; height: 14px; margin-left: -7px; transform: rotate(45deg);
  background: #F3EADA; border-left: 1px solid rgba(36,27,20,.06); border-top: 1px solid rgba(36,27,20,.06);
}
.taste__pick:active { transform: scale(.97); }
.taste__pick:focus-visible { outline: 3px solid var(--focus, var(--gold)); outline-offset: 2px; }

.taste__cards { display: grid; margin-top: -3px; }
.taste__picks + .taste__cards .tcard { border-top-color: transparent; }
.tcard {
  position: relative; display: grid; align-content: start; gap: 1.1rem; padding: 1.4rem 1.3rem 1.5rem;
  border-radius: var(--r-lg); background: #F3EADA; border: 1px solid rgba(36,27,20,.06);
}
.tcard[hidden] { display: none; }
.tcard.is-in { animation: tcard-in .45s var(--ease-out) both; }
@keyframes tcard-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.tcard__photo { display: none; }
.tcard__head { display: grid; gap: .3rem; }
.tcard__type { font-size: .72rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.tcard__name { font-size: 1.45rem; font-weight: 500; line-height: 1.12; }
.tcard__list { display: grid; gap: .85rem; padding-top: 1.1rem; border-top: 1px dashed rgba(36,27,20,.2); }
.tcard__list li { display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: .75rem; align-items: center; }
.tcard__ic { grid-row: span 2; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); color: var(--ochre); }
.tcard__ic .icon { width: 19px; height: 19px; }
.tcard__k { align-self: end; font-size: .72rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; line-height: 1.4; color: var(--text-soft); }
.tcard__v { align-self: start; font-family: var(--serif); font-size: 1.12rem; font-weight: 500; line-height: 1.25; }

/* tablet e computer: le quattro schede affiancate, ognuna con la foto */
@media (min-width: 760px) {
  .taste__picks, .taste__hint { display: none; }
  .taste__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3.6rem 1.2rem; padding-top: 3rem; }
  .tcard[hidden] { display: grid; }
  .tcard { padding: 4.4rem 1.4rem 1.6rem; text-align: center; }
  .tcard__photo {
    display: block; position: absolute; left: 50%; top: 0; width: 104px; height: 104px; margin: -52px 0 0 -52px;
    border-radius: 50%; overflow: hidden; background: var(--linen);
    box-shadow: 0 0 0 5px var(--paper), 0 14px 26px -12px rgba(36,27,20,.45);
  }
  .tcard__photo img { width: 100%; height: 100%; object-fit: cover; }
  .tcard__list { text-align: left; }
}
@media (min-width: 1100px) { .taste__cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .tcard.is-in { animation: none; } }

/* ---------- 13. Viaggio (orizzontale) ---------- */
.journey { background: var(--bark-deep); color: var(--text-on-dark); overflow: hidden; position: relative; }
.journey__intro { padding-block: var(--section) var(--s-7); }
.journey__track { display: grid; gap: var(--s-8); padding-bottom: var(--section); }
.journey__panel { display: grid; gap: var(--s-5); }
.journey__num { font-family: var(--serif); font-style: italic; font-size: clamp(3.5rem, 3rem + 3vw, 6.5rem); line-height: 1; color: var(--butter); }
.journey__panel .frame { aspect-ratio: 4 / 5; max-height: 62vh; width: 100%; }
.journey__panel h3 { font-size: var(--fs-h3); }
.journey__panel p { color: var(--text-on-dark-soft); max-width: 38ch; }
.journey__progress { display: none; }
@media (min-width: 1024px) {
  .journey.is-horizontal { height: 100vh; }
  .journey.is-horizontal .journey__wrap { display: flex; align-items: center; height: 100%; width: max-content; will-change: transform; }
  .journey.is-horizontal .journey__intro { width: 40vw; padding: 0 4vw 0 var(--gutter); flex: none; }
  .journey.is-horizontal .journey__track { display: flex; gap: 6vw; padding: 0 8vw 0 0; align-items: center; }
  .journey.is-horizontal .journey__panel { width: min(30vw, 440px); flex: none; grid-template-rows: auto auto auto auto; }
  .journey.is-horizontal .journey__panel:nth-child(even) { margin-top: 12vh; }
  .journey.is-horizontal .journey__panel .frame { max-height: 46vh; aspect-ratio: 4 / 5; }
  .journey.is-horizontal .journey__progress {
    display: block; position: absolute; left: var(--gutter); right: var(--gutter); bottom: 5vh; height: 1px; background: var(--line-on-dark);
  }
  .journey.is-horizontal .journey__progress span { position: absolute; inset: 0; background: var(--butter); transform-origin: left; transform: scaleX(0); }
}
@media (min-width: 700px) and (max-width: 1023px) {
  .journey__track { grid-template-columns: 1fr 1fr; gap: var(--s-7) var(--s-6); }
  .journey__panel:nth-child(even) { margin-top: 5rem; }
}

/* ---------- 14. Dispensa (bento) ---------- */
.bento { display: grid; gap: var(--s-4); grid-template-columns: 1fr 1fr; grid-auto-rows: minmax(180px, 26vw); }
.bento__tile {
  position: relative; overflow: hidden; border-radius: var(--r-md); isolation: isolate;
  display: flex; align-items: flex-end; padding: clamp(1rem, 2.5vw, 1.8rem); color: var(--cream);
  background: var(--bark);
}
.bento__tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease-out); }
.bento__tile::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(26,19,13,.82), rgba(26,19,13,.1) 60%); transition: opacity var(--d-med); }
.bento__tile:first-child { grid-column: 1 / -1; }
.bento__label { display: flex; width: 100%; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.bento__label h3 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.6rem); }
.bento__label p { font-size: .9rem; color: #E7DCCB; margin-top: .3rem; max-width: 30ch; }
.bento__arrow {
  flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(245,237,223,.55);
  transition: background-color var(--d-med) var(--ease-out), color var(--d-med) var(--ease-out), transform var(--d-med) var(--ease-out);
}
@media (hover: hover) {
  .bento__tile:hover img { transform: scale(1.07); }
  .bento__tile:hover .bento__arrow { background: var(--butter); color: var(--espresso); border-color: var(--butter); transform: rotate(-45deg); }
}
@media (max-width: 559px) {
  .bento__label p { display: none; }
  .bento { grid-auto-rows: 210px; }
  .bento__tile:nth-child(4) img { object-position: 50% 45%; }   /* salumi */
}
@media (max-width: 899px) {
  /* due colonne: prima e ultima a tutta larghezza (niente riquadro da solo a metà riga) */
  .bento__tile:first-child, .bento__tile:last-child:nth-child(even) { grid-column: 1 / -1; }
}
@media (min-width: 900px) {
  .bento { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 290px; }
  .bento__tile:first-child { grid-column: 1 / 3; grid-row: 1 / 3; }
  .bento__tile:nth-child(2) { grid-column: 3 / 5; }
  .bento__tile:nth-child(n+5) { grid-column: span 2; }   /* sughi e vini: mezza riga ciascuno */
}

/* ---------- 15. Idee regalo: cesti pronti divisi in piccoli, medi e grandi + "Crealo tu" (cesto su misura in tre scelte) ---------- */
.gs { display: grid; gap: clamp(1.4rem, 3vw, 2.2rem); }

/* scelta della misura */
.gs-sizes { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.gs-size {
  position: relative; display: grid; justify-items: center; align-content: end; gap: .35rem;
  min-height: 132px; padding: 1rem .5rem .9rem; border-radius: var(--r-md);
  background: var(--paper); border: 1px solid var(--line); color: var(--text);
  cursor: pointer; text-align: center; -webkit-tap-highlight-color: transparent;
  transition: background-color var(--d-med) var(--ease-out), color var(--d-med) var(--ease-out), border-color var(--d-med), transform var(--d-fast);
}
.gs-size:active { transform: scale(.98); }
@media (hover: hover) { .gs-size:hover { border-color: rgba(36,27,20,.4); } }
.gs-size[aria-selected="true"] { background: var(--espresso); color: var(--cream); border-color: var(--espresso); }
.gs-size:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.gs-size svg { display: block; color: var(--ochre); transition: color var(--d-med); }
.gs-size[aria-selected="true"] svg { color: var(--butter); }
.gs-size__name { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; line-height: 1; }
.gs-size__sub { font-size: .74rem; letter-spacing: .06em; color: var(--text-soft); transition: color var(--d-med); }
.gs-size[aria-selected="true"] .gs-size__sub { color: var(--text-on-dark-soft); }

/* i cesti della misura scelta: scorrono di lato su telefono, affiancati su computer */
.gs-panel { min-width: 0; }
.gs-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 84%; gap: .9rem; align-items: start;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  margin-inline: calc(var(--gutter) * -1); padding: .2rem var(--gutter) 1rem; scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.gs-track::-webkit-scrollbar { display: none; }
@media (min-width: 700px) { .gs-track { grid-auto-columns: calc((100% - .9rem) / 2); margin-inline: 0; padding-inline: 0; scroll-padding-inline: 0; } }
@media (min-width: 1100px) {
  .gs-track { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: unset; overflow: visible; gap: 1.4rem; }
  .gs-track[data-n="2"] { grid-template-columns: repeat(2, 1fr); }
  .gs-track[data-n="4"] { grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
  .gs-track[data-n="4"] .gs-card__name { font-size: 1.5rem; }
  .gs-sizes { max-width: 760px; }
}
.gs-card {
  scroll-snap-align: start; display: flex; flex-direction: column; min-width: 0;
  background: var(--paper); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-1);
  animation: gs-in .55s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 70ms);
}
@keyframes gs-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .gs-card { animation: none; } }
.gs-card__media { position: relative; aspect-ratio: 3 / 2; background: var(--linen); overflow: hidden; }
.gs-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--ease-out); }
@media (hover: hover) { .gs-card:hover .gs-card__media img { transform: scale(1.04); } }
.gs-tag {
  position: absolute; left: .75rem; top: .75rem; display: inline-flex; align-items: center; gap: .35rem;
  padding: .3rem .7rem .3rem .55rem; border-radius: var(--r-pill);
  background: rgba(251,247,239,.92); color: var(--rose-deep); font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
}
.gs-tag svg { width: 13px; height: 13px; }
.gs-count { position: absolute; right: .75rem; bottom: .75rem; padding: .3rem .7rem; border-radius: var(--r-pill); background: rgba(36,27,20,.78); color: var(--cream); font-size: .76rem; font-weight: 500; }
.gs-card__body { display: flex; flex-direction: column; gap: .55rem; padding: 1.1rem 1.15rem 1.15rem; flex: 1; }
.gs-card__name { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; line-height: 1.05; }
.gs-card__line { font-size: .92rem; color: var(--text-soft); line-height: 1.45; }
.gs-plus { white-space: nowrap; color: var(--ochre); font-weight: 500; }
.gs-more { align-self: flex-start; display: inline-flex; align-items: center; gap: .35rem; min-height: 32px; padding: 0; border: 0; background: none; font: inherit; font-size: .85rem; font-weight: 500; color: var(--ochre); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.gs-more .icon { width: 14px; height: 14px; transform: rotate(90deg); transition: transform var(--d-med) var(--ease-out); }
.gs-more[aria-expanded="true"] .icon { transform: rotate(-90deg); }
.gs-list { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--d-med) var(--ease-out); }
.gs-list.is-open { grid-template-rows: 1fr; }
.gs-list > div { overflow: hidden; }
.gs-list ul { list-style: none; margin: 0; padding: .2rem 0; display: grid; gap: .3rem; }
.gs-list li { display: flex; align-items: flex-start; gap: .5rem; font-size: .9rem; }
.gs-list li::before { content: ''; flex: none; width: 5px; height: 5px; margin-top: .55em; border-radius: 50%; background: var(--ochre); }
/* "Cambia": il pulsante è una tendina nativa trasparente sopra l'etichetta (sul telefono apre la lista del sistema) */
.gs-hint { margin: .3rem 0 .45rem; font-size: .8rem; line-height: 1.4; color: var(--text-soft); }
.gs-list li.gs-item { align-items: center; gap: .6rem; padding: .2rem 0; border-bottom: 1px dashed var(--line); }
.gs-list li.gs-item:last-child { border-bottom: 0; }
.gs-list li.gs-item::before { margin-top: 0; align-self: center; }
.gs-item__txt { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.gs-item__txt small { font-size: .75rem; color: var(--text-soft); }
.gs-item.is-changed .gs-item__name { font-weight: 600; }
.gs-item.is-changed::before { background: var(--text); }
.gs-swap { position: relative; flex: none; display: inline-flex; align-items: center; gap: .3rem; min-height: 36px; padding: 0 .7rem; border: 1px solid var(--line); border-radius: 999px; font-size: .78rem; font-weight: 500; color: var(--ochre); background: transparent; cursor: pointer; transition: background-color var(--d-fast, .15s) ease, border-color var(--d-fast, .15s) ease; }
.gs-swap svg { width: 13px; height: 13px; flex: none; }
.gs-swap:hover { border-color: var(--ochre); }
.gs-swap:focus-within { outline: 2px solid var(--ochre); outline-offset: 2px; }
.gs-swap__sel { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; font-size: 16px; -webkit-appearance: none; appearance: none; }
.gs-reset { margin: .35rem 0 .1rem; min-height: 32px; padding: 0; border: 0; background: none; font: inherit; font-size: .82rem; color: var(--ochre); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.gs-reset[hidden] { display: none; }
.gs-card__foot { margin-top: auto; padding-top: .8rem; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.gs-price { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.gs-price--ask { font-family: var(--sans); font-size: .85rem; font-weight: 500; color: var(--text-soft); }
.gs-card__foot .btn { flex: none; }
.gs-dots { display: flex; justify-content: center; gap: .45rem; }
.gs-dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(36,27,20,.22); transition: background-color var(--d-fast), width var(--d-med) var(--ease-out); }
.gs-dots span.is-on { width: 20px; border-radius: 4px; background: var(--espresso); }
@media (min-width: 1100px) { .gs-dots { display: none; } }

/* su misura: striscia scura che apre il modulo «Crealo tu» */
.gs-make { display: grid; gap: 1rem; align-items: center; padding: clamp(1.3rem, 3vw, 2rem); border-radius: var(--r-lg); background: var(--espresso); color: var(--cream); }
@media (min-width: 700px) { .gs-make { grid-template-columns: 1fr auto; } }
.gs-make h3 { font-family: var(--serif); font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); font-weight: 600; line-height: 1.05; color: var(--cream); }
.gs-make h3 em { color: var(--butter); }
.gs-make p { color: var(--text-on-dark-soft); font-size: .95rem; margin-top: .35rem; }
.gs-make .btn { justify-self: start; }
@media (max-width: 479px) { .gs-make .btn { justify-self: stretch; } }
.gs-promise { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.4rem; font-size: .82rem; color: var(--text-soft); }
.gs-promise span { display: inline-flex; align-items: center; gap: .4rem; }
.gs-promise svg { width: 16px; height: 16px; color: var(--ochre); }
.gx__more { justify-self: start; }
.gx__more .icon { width: 16px; height: 16px; }


/* il cesto su misura: una sola schermata, tre righe di scelte */
.gmake {
  display: grid; gap: 1.4rem; padding: clamp(1.3rem, 4vw, 2.6rem); border-radius: var(--r-lg); background: var(--paper);
  box-shadow: 0 28px 56px -34px rgba(36,27,20,.45), 0 2px 8px rgba(36,27,20,.05); scroll-margin-top: calc(var(--header-h, 72px) + 1rem);
}
.gmake[hidden] { display: none; }
.gmake.is-in { animation: gmake-in .5s var(--ease-out) both; }
@keyframes gmake-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.gmake__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.gmake__title { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); font-weight: 500; line-height: 1.08; outline: none; }
.gmake__title em { color: var(--ochre); }
.gmake__close { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); color: var(--text-soft); }
@media (hover: hover) { .gmake__close:hover { color: var(--text); border-color: rgba(36,27,20,.4); } }
.grow { min-width: 0; margin: 0; padding: 0; border: 0; display: grid; gap: .7rem; }
.grow__legend { display: flex; align-items: baseline; gap: .6rem; padding: 0; margin-bottom: .1rem; font-size: .74rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--text-soft); }
.grow__legend b { font-family: var(--serif); font-style: italic; font-size: 1.3rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ochre); }
.grow__chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.gmake__foot { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.4rem; padding-top: 1.3rem; border-top: 1px solid var(--line); }
.gmake__foot p { font-size: .88rem; color: var(--text-soft); max-width: 38ch; }
@media (max-width: 479px) { .gmake__foot .btn { width: 100%; } }

@media (prefers-reduced-motion: reduce) { .gmake.is-in { animation: none; } }

/* scelte a pillola del cesto su misura */
.pick { position: relative; display: block; min-width: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pick__input { position: absolute; top: 0; left: 0; width: 1px; height: 1px; margin: 0; opacity: 0; }
.pick__box {
  position: relative; display: grid; align-content: start; gap: .2rem; height: 100%; min-height: 66px;
  padding: .8rem 2.3rem .8rem .9rem; border: 1px solid rgba(36,27,20,.16); border-radius: var(--r-md); background: var(--surface);
  transition: border-color var(--d-fast), background-color var(--d-fast), box-shadow var(--d-fast), transform var(--d-fast) var(--ease-out);
}
.pick__name { font-size: .95rem; font-weight: 500; line-height: 1.25; overflow-wrap: anywhere; }
.pick__sub { font-size: .8rem; line-height: 1.35; color: var(--text-soft); }
.pick__mark {
  position: absolute; top: .7rem; right: .7rem; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; border: 1.5px solid rgba(36,27,20,.28); transition: background-color var(--d-fast), border-color var(--d-fast);
}
.pick__mark .icon { width: 13px; height: 13px; opacity: 0; color: var(--cream); stroke-width: 2.6; }
.pick__input:checked + .pick__box { border-color: var(--gold); background: #FBF0D2; box-shadow: inset 0 0 0 1px var(--gold); }
.pick__input:checked + .pick__box .pick__mark { background: var(--espresso); border-color: var(--espresso); }
.pick__input:checked + .pick__box .pick__mark .icon { opacity: 1; }
.pick__input:focus-visible + .pick__box { outline: 3px solid var(--focus); outline-offset: 2px; }
.pick:active .pick__box { transform: scale(.98); }
@media (hover: hover) { .pick:hover .pick__box { border-color: rgba(36,27,20,.42); } }
.pick--pill .pick__box { display: flex; align-items: center; gap: .55rem; min-height: 48px; padding: .55rem 1.1rem .55rem .7rem; border-radius: var(--r-pill); }
.pick--pill .pick__mark { position: static; flex: none; width: 20px; height: 20px; }

/* ---------- 16. Icone tonde (valori nella storia, schede dei contatti) ---------- */
.why-item__icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--linen); color: var(--ochre); }
.why-item__icon .icon { width: 26px; height: 26px; }

/* ---------- 17. Visita ---------- */
.visit { position: relative; min-height: 92vh; display: flex; align-items: center; overflow: hidden; isolation: isolate; color: var(--cream); background: var(--espresso); }
.visit__bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.visit__bg img { width: 100%; height: 125%; object-fit: cover; margin-top: -12%; will-change: transform; }
.visit::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(26,19,13,.88) 0%, rgba(26,19,13,.6) 45%, rgba(26,19,13,.15) 100%); }
.visit__card { max-width: 560px; display: grid; gap: var(--s-5); padding-block: var(--section); }
.info-list { display: grid; gap: var(--s-4); }
.info-list li { display: grid; grid-template-columns: 28px 1fr; gap: .9rem; align-items: start; }
.info-list .icon { width: 24px; height: 24px; color: var(--butter); margin-top: .2rem; }
.info-list strong { display: block; font-weight: 500; }
.info-list span, .info-list a { color: var(--text-on-dark-soft); }
.info-list a { text-decoration: underline; text-decoration-color: rgba(245,237,223,.35); text-underline-offset: 4px; transition: color var(--d-fast), text-decoration-color var(--d-fast); }
.info-list a:hover { color: var(--cream); text-decoration-color: var(--butter); }
.open-status { display: inline-flex; align-items: center; gap: .55rem; padding: .4rem .85rem; border-radius: var(--r-pill); font-size: .85rem; font-weight: 500; background: rgba(245,237,223,.12); width: fit-content; }
.open-status::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: #8BC34A; box-shadow: 0 0 0 0 rgba(139,195,74,.6); animation: pulse 2s infinite; }
.open-status.is-closed::before { background: var(--rose); animation: none; }
.bg-paper .open-status, .contact-card .open-status { background: var(--linen); color: var(--espresso); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(139,195,74,.55); } 70% { box-shadow: 0 0 0 10px rgba(139,195,74,0); } 100% { box-shadow: 0 0 0 0 rgba(139,195,74,0); } }

/* ---------- 18. Instagram CTA ---------- */
.ig-cta { text-align: center; display: grid; justify-items: center; gap: var(--s-5); }
.ig-cta__handle {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(2.6rem, 1.4rem + 6vw, 7.5rem); line-height: 1; letter-spacing: -.02em;
  display: inline-flex; align-items: center; gap: .2em; position: relative; padding-bottom: .1em;
  overflow-wrap: anywhere;
}
.ig-cta__handle::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--rose); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease-out); }
@media (hover: hover) { .ig-cta__handle:hover::after { transform: scaleX(1); } }
.ig-cta__handle .heart { width: .55em; height: .55em; color: var(--rose); }
/* Video della bottega */
.reels-wrap { position: relative; width: 100%; max-width: 1100px; padding-bottom: 1.5rem; }
.reels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.6rem, 1.6vw, 1.25rem); }
.reel { position: relative; aspect-ratio: 2 / 3; overflow: hidden; border-radius: var(--r-md); background: var(--linen); box-shadow: var(--shadow-1); }
.reel video { width: 100%; height: 100%; object-fit: cover; display: block; }
.reel:nth-child(odd) { transform: translateY(1.5rem); }
.reels__toggle {
  position: absolute; right: 0; bottom: -1.6rem; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; background: var(--paper); color: var(--espresso); box-shadow: var(--shadow-1); cursor: pointer;
}
.reels__toggle .icon { width: 18px; height: 18px; }
@media (max-width: 699px) {
  /* Telefono: fila scorrevole con aggancio */
  .reels-wrap { padding-bottom: 0; display: grid; justify-items: end; gap: .6rem; }
  .reels {
    width: calc(100% + 2 * var(--gutter)); margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) .25rem; scroll-padding-inline: var(--gutter);
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 62%; overflow-x: auto; scroll-snap-type: x mandatory;
    scrollbar-width: none; overscroll-behavior-x: contain;
  }
  .reels::-webkit-scrollbar { display: none; }
  .reel { scroll-snap-align: start; }
  .reel:nth-child(odd) { transform: none; }
  .reels__toggle { position: static; }
}

/* ---------- 19. Footer ---------- */
.site-footer { background: var(--espresso); color: var(--text-on-dark); padding-top: clamp(4rem, 8vw, 7rem); overflow: hidden; }
.footer-top { display: grid; gap: var(--s-7); }
.footer-cols { display: grid; gap: var(--s-6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.footer-col h2 { font-family: var(--sans); font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--butter); font-weight: 500; margin-bottom: var(--s-4); }
.footer-col p, .footer-col li { color: var(--text-on-dark-soft); font-size: .97rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .25rem; }
.footer-col a { display: inline-flex; align-items: center; gap: .5rem; min-height: 40px; transition: color var(--d-fast); }
.footer-col a:hover { color: var(--cream); }
.footer-lead { font-family: var(--serif); font-size: clamp(1.8rem, 1.3rem + 2vw, 3rem); line-height: 1.1; max-width: 18ch; }
.footer-lead em { color: var(--butter); }
/* Marchio gigante: lettere piene (il contorno mostrava le sovrapposizioni interne dei glifi) */
.footer-word {
  font-family: var(--serif); font-weight: 500; letter-spacing: -.02em; line-height: .9;
  font-size: clamp(3.4rem, 15.5vw, 17rem); white-space: nowrap; text-align: center;
  color: rgba(244, 201, 93, .2);
  margin-top: clamp(3rem, 6vw, 5rem); padding-bottom: .04em; user-select: none;
}
.footer-word em { font-style: italic; font-weight: 500; color: rgba(244, 201, 93, .34); }
.footer-word .dots { letter-spacing: -.08em; margin-right: .03em; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 1.5rem; padding-block: 1.6rem max(1.6rem, env(safe-area-inset-bottom)); border-top: 1px solid var(--line-on-dark); font-size: .85rem; color: var(--text-on-dark-soft); }
.footer-bottom a { color: var(--cream); text-decoration: underline; text-underline-offset: 3px; min-height: 24px; }

/* Pagine legali (privacy) e 404 */
.legal { max-width: 760px; }
html[lang="en"] .legal > [lang="it"], html:not([lang="en"]) .legal > [lang="en"] { display: none; }
.legal h2 { margin: 2.4rem 0 .8rem; font-size: clamp(1.5rem, 1.3rem + .8vw, 1.95rem); font-weight: 600; line-height: 1.15; }
.legal p, .legal li { color: var(--text-soft); }
.legal p + p { margin-top: .8rem; }
.legal ul { display: grid; gap: .45rem; margin: .6rem 0 .8rem; padding-left: 1.2rem; }
.legal strong { color: var(--text); font-weight: 500; }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal__updated { font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
.not-found { min-height: 80vh; min-height: 80svh; display: grid; align-content: center; }
.not-found__mark { width: 84px; height: 84px; }

/* ---------- 20. Hero pagine interne ---------- */
.page-hero { padding-top: calc(var(--header-h) + clamp(3rem, 8vw, 7rem)); padding-bottom: clamp(3rem, 6vw, 5rem); }
.page-hero__inner { display: grid; gap: var(--s-5); }
.page-hero h1 { font-size: var(--fs-h1); max-width: 14ch; }
.page-hero h1 em { color: var(--rose-deep); }
.page-hero--image { position: relative; min-height: 86vh; min-height: 86svh; display: flex; align-items: flex-end; color: var(--cream); overflow: hidden; isolation: isolate; background: var(--espresso); }
.page-hero--image .hero__media img { height: 120%; }
.page-hero--image::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(26,19,13,.9), rgba(26,19,13,.2) 65%, rgba(26,19,13,.4)); }
.page-hero--image h1 em { color: var(--butter); }
.page-hero--image .lead { color: #E7DCCB; }

/* ---------- 21. Shop ---------- */
.steps { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); counter-reset: step; }
.step { display: flex; gap: 1rem; align-items: flex-start; padding: 1.3rem 1.4rem; border-radius: var(--r-md); background: var(--paper); border: 1px solid var(--line); }
.step__n { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--butter); font-family: var(--serif); font-weight: 600; font-size: 1.3rem; }
.step h2 { font-family: var(--sans); font-size: 1rem; font-weight: 600; margin-bottom: .2rem; line-height: 1.3; letter-spacing: 0; }
.step p { font-size: .93rem; color: var(--text-soft); line-height: 1.5; }

.shop-toolbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  padding-block: 1rem; margin-bottom: var(--s-6);
  background: rgba(245,237,223,.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: top var(--d-med) var(--ease-out);
}
.header-visible .shop-toolbar { top: var(--header-h); }
.chips { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; }
.chips::-webkit-scrollbar { display: none; }
@media (min-width: 960px) { .chips { flex-wrap: wrap; overflow: visible; } }
.chip {
  flex: none; min-height: 44px; padding: .5rem 1.15rem; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--paper);
  font-size: .9rem; font-weight: 500; white-space: nowrap;
  transition: background-color var(--d-fast), color var(--d-fast), border-color var(--d-fast);
}
.chip:hover { border-color: rgba(36,27,20,.4); }
.chip[aria-pressed="true"] { background: var(--espresso); color: var(--cream); border-color: var(--espresso); }
.chip .count { opacity: .6; margin-left: .35rem; font-variant-numeric: tabular-nums; }
.shop-count { font-size: var(--fs-small); color: var(--text-soft); }
/* Ricerca + banner regalo */
.shop-search { position: relative; max-width: 460px; margin-bottom: .75rem; }
.shop-search .icon { position: absolute; left: 1rem; top: 50%; translate: 0 -50%; width: 20px; height: 20px; color: var(--text-soft); pointer-events: none; }
.shop-search .input { padding-left: 2.8rem; border-radius: var(--r-pill); background: var(--paper); }
.gift-banner { display: flex; gap: .8rem; align-items: flex-start; margin-bottom: 1rem; padding: 1rem 1.2rem; border-radius: var(--r-md); background: rgba(244,201,93,.24); border: 1px solid rgba(227,162,31,.45); font-size: .95rem; }
.gift-banner .icon { color: var(--ochre); width: 22px; height: 22px; margin-top: .1rem; }
.gift-banner[hidden] { display: none; }
.gift-banner > span { flex: 1; }
.gift-banner__off { flex: none; align-self: center; min-height: 40px; padding: .3rem .9rem; border-radius: var(--r-pill); border: 1px solid rgba(36,27,20,.25); font-size: .82rem; font-weight: 500; white-space: nowrap; }
@media (hover: hover) { .gift-banner__off:hover { background: rgba(36,27,20,.06); } }
@media (max-width: 559px) {
  .gift-banner { flex-wrap: wrap; }
  .gift-banner > span { flex-basis: calc(100% - 2.4rem); }
  .gift-banner__off { margin-left: 2.1rem; }
}

/* Listino per categorie */
.catalog { display: grid; gap: clamp(2.75rem, 5vw, 4.5rem); }
.cat-block__head { display: grid; gap: .35rem; margin-bottom: .4rem; padding-bottom: .9rem; border-bottom: 2px solid var(--espresso); scroll-margin-top: 140px; }
.cat-block__title { font-family: var(--serif); font-size: clamp(2rem, 1.5rem + 1.6vw, 2.9rem); font-weight: 600; line-height: 1.05; }
.cat-block__intro { color: var(--text-soft); font-size: .95rem; max-width: 62ch; }
/* avviso "riservata ai maggiorenni" (vini e liquori): discreto, nessuna casella */
.age-note { margin: .4rem 0 0; font-size: .8rem; line-height: 1.45; color: var(--text-soft); }
.age-note::before { content: '18+'; display: inline-block; margin-right: .45em; padding: .05em .4em; border: 1px solid currentColor; border-radius: 4px; font-size: .72rem; font-weight: 600; letter-spacing: .02em; vertical-align: .08em; }
.order-summary .age-note { margin-top: .35rem; }
.item-list { display: grid; column-gap: clamp(1.5rem, 4vw, 3.5rem); }
@media (min-width: 960px) { .item-list { grid-template-columns: 1fr 1fr; } }
.item {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name price" "info actions";
  gap: .35rem 1.1rem; align-items: start; padding-block: 1.05rem; border-bottom: 1px solid var(--line);
}
.item__name { grid-area: name; font-family: var(--serif); font-size: 1.32rem; font-weight: 600; line-height: 1.15; }
.item__price { grid-area: price; }
.item__info { grid-area: info; align-self: center; }
.item__actions { grid-area: actions; align-self: end; }
.item__badge { display: inline-block; vertical-align: .22em; margin-left: .2rem; padding: .18rem .45rem; border-radius: 4px; background: var(--butter); color: var(--espresso); font-family: var(--sans); font-size: .62rem; font-weight: 600; letter-spacing: .12em; }
.item__meta { font-size: .88rem; color: var(--text-soft); }
.item__allergens { margin-top: .15rem; font-size: .78rem; color: var(--ochre); }
/* tasto «Info e abbinamenti» (prodotti con abbina nel listino): apre la scheda del prodotto */
.item__more { display: inline-flex; align-items: center; gap: .4rem; margin-top: .45rem; min-height: 34px; padding: .3rem .85rem .3rem .6rem; border: 1px solid rgba(36,27,20,.22); border-radius: var(--r-pill); background: transparent; color: var(--text); font: inherit; font-size: .82rem; font-weight: 500; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: border-color .2s, background-color .2s; }
.item__more svg { width: 16px; height: 16px; flex: none; color: var(--ochre); }
.item__more:active { transform: scale(.98); }
@media (hover: hover) { .item__more:hover { border-color: rgba(36,27,20,.5); background: rgba(36,27,20,.04); } }
.item__price { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; line-height: 1.1; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums lining-nums; }
.item__price small { display: block; font-family: var(--sans); font-size: .74rem; font-weight: 500; color: var(--text-soft); }
.item__price small.pre { display: inline; margin-right: .3rem; }
.item__price small.deal { color: var(--rose-deep); }
.item__price.is-ask { font-family: var(--sans); font-size: .85rem; font-weight: 500; font-style: italic; color: var(--text-soft); }
.item__actions { display: flex; justify-content: flex-end; align-items: center; gap: .5rem; }
.select--sm { min-height: 44px; width: auto; max-width: 220px; padding-block: .4rem; font-size: 1rem; /* 16px: niente zoom su iPhone */ }
.item__add { white-space: nowrap; }
@media (max-width: 559px) {
  .item { grid-template-areas: "name price" "info info" "actions actions"; row-gap: .5rem; }
  .item__actions { justify-content: stretch; }
  .select--sm { flex: 1 1 auto; max-width: none; min-width: 0; text-overflow: ellipsis; }
  .item__actions { min-width: 0; }
  .item__actions .item__add:only-child { margin-left: auto; }
}
/* Righe con foto */
.item--thumb { grid-template-columns: 76px minmax(0, 1fr) auto; grid-template-areas: "thumb name price" "thumb info actions"; column-gap: 1rem; }
/* Con il menu dei formati i comandi vanno su una riga propria, così il nome resta largo */
.item--thumb.item--fmt { grid-template-areas: "thumb name price" "thumb info info" "thumb actions actions"; }
.item__thumb {
  grid-area: thumb; align-self: start; display: block; width: 100%; aspect-ratio: 4 / 5; padding: 0; border: 0;
  border-radius: var(--r-sm); overflow: hidden; background: var(--linen); cursor: zoom-in;
}
.item__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
@media (hover: hover) { .item__thumb:hover img { transform: scale(1.06); } }
.item__thumb.is-empty { display: grid; place-items: center; cursor: default; }
.item__thumb.is-empty svg { width: 42%; height: auto; opacity: .22; filter: grayscale(1); }
.item__line { display: flex; align-items: center; gap: .35rem; margin-bottom: .2rem; font-size: .72rem; font-weight: 600; letter-spacing: .06em; color: var(--ochre); }
.item__line svg { width: 15px; height: 15px; flex: none; }
.item__line span { white-space: nowrap; }
@media (max-width: 559px) {
  /* da telefono la foto del prodotto è più grande: si riconosce il formaggio o il salume a colpo d'occhio */
  .item--thumb, .item--thumb.item--fmt { grid-template-columns: 96px minmax(0, 1fr) auto; grid-template-areas: "thumb name price" "thumb info info" "actions actions actions"; column-gap: .9rem; }
  .item__thumb { border-radius: var(--r-md); }
}
.shop-empty { display: grid; gap: 1rem; justify-items: start; padding-block: 2rem; color: var(--text-soft); }
.shop-note { margin-top: var(--s-7); padding: 1.4rem 1.6rem; border-radius: var(--r-md); background: var(--linen); display: flex; gap: 1rem; align-items: flex-start; font-size: .95rem; color: var(--text-soft); }
.shop-note .icon { color: var(--ochre); width: 24px; height: 24px; margin-top: .1rem; }

/* ---------- 22. Drawer carrello ---------- */
.scrim {
  position: fixed; inset: 0; z-index: calc(var(--z-drawer) - 1);
  background: rgba(20,14,9,.55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden; transition: opacity var(--d-med) var(--ease-out), visibility 0s linear var(--d-med);
}
.scrim.is-open { opacity: 1; visibility: visible; transition: opacity var(--d-med) var(--ease-out), visibility 0s; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: var(--z-drawer);
  width: min(100%, 480px); background: var(--paper); color: var(--espresso);
  display: flex; flex-direction: column;
  transform: translateX(100%); visibility: hidden;
  transition: transform .55s var(--ease-out), visibility 0s linear .55s;
  box-shadow: var(--shadow-3);
}
.drawer.is-open { transform: none; visibility: visible; transition: transform .6s var(--ease-out), visibility 0s; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1rem 1rem 1.5rem; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-size: 1.9rem; font-weight: 600; }
.drawer__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 1.25rem 1.5rem; }
.drawer__foot { padding: 1.25rem 1.5rem max(1.25rem, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: grid; gap: .9rem; background: var(--paper); }
.drawer__total { display: flex; justify-content: space-between; align-items: baseline; }
.drawer__total span { font-size: .85rem; letter-spacing: .15em; text-transform: uppercase; color: var(--text-soft); }
.drawer__total strong { font-family: var(--serif); font-size: 2rem; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; line-height: 1.1; }
.drawer__total strong small { display: block; font-family: var(--sans); font-size: .78rem; font-weight: 500; color: var(--text-soft); }
.drawer__hint { font-size: .85rem; color: var(--text-soft); line-height: 1.5; }
.drawer__view { display: none; }
.drawer__view.is-active { display: contents; }
.drawer__view.is-active > * { animation: view-in .5s var(--ease-out) both; }
@keyframes view-in { from { opacity: 0; transform: translateX(24px); } }

.cart-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.cart-item { display: grid; grid-template-columns: 76px 1fr auto; gap: 1rem; align-items: start; padding-bottom: 1.1rem; border-bottom: 1px solid var(--line); animation: view-in .45s var(--ease-out) both; }
.cart-item img { width: 76px; height: 92px; border-radius: var(--r-sm); object-fit: cover; background: var(--linen); }
.cart-item__ph { width: 76px; height: 92px; border-radius: var(--r-sm); background: var(--linen); display: grid; place-items: center; align-content: center; gap: .35rem; padding: .4rem; text-align: center; }
.cart-item__ph svg { width: 34px; height: 34px; }
.cart-item__ph small { font-size: .58rem; line-height: 1.2; letter-spacing: .08em; text-transform: uppercase; color: var(--text-soft); }
.cart-item__price.is-ask { max-width: 6.5rem; font-family: var(--sans); font-size: .8rem; font-weight: 500; text-align: right; white-space: normal; color: var(--text-soft); }
.cart-item h3 { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; line-height: 1.15; }
.cart-item__fmt { font-size: .85rem; color: var(--text-soft); }
.cart-item__price { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cart-item__actions { display: flex; align-items: center; gap: .6rem; margin-top: .6rem; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r-pill); }
.qty button { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; }
.qty button:hover { background: var(--linen); }
.qty output { min-width: 26px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 500; }
.remove-btn { font-size: .85rem; color: var(--text-soft); text-decoration: underline; text-underline-offset: 3px; min-height: 40px; padding-inline: .3rem; }
.remove-btn:hover { color: var(--error); }
.cart-empty { text-align: center; display: grid; justify-items: center; gap: 1rem; padding-block: 3rem; }
.cart-empty svg.empty-mark { width: 96px; height: 96px; opacity: .9; }
.cart-empty h3 { font-size: 1.8rem; }
.cart-empty p { color: var(--text-soft); max-width: 30ch; }

/* Form */
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .4rem; align-content: start; }
.field label, .field legend { font-size: .9rem; font-weight: 500; }
.field .req { color: var(--rose-deep); }
.input, .textarea {
  width: 100%; min-height: 50px; padding: .75rem 1rem;
  border: 1px solid rgba(36,27,20,.25); border-radius: var(--r-sm); background: #fff;
  font-size: 1rem; transition: border-color var(--d-fast), box-shadow var(--d-fast);
}
.textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--ochre); box-shadow: 0 0 0 3px rgba(227,162,31,.3); }
.input:focus-visible, .textarea:focus-visible, .select:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.field.has-error .input, .field.has-error .textarea { border-color: var(--error); }
.field__error { font-size: .85rem; color: var(--error); display: none; align-items: center; gap: .35rem; }
.field.has-error .field__error { display: flex; }
.field__help { font-size: .82rem; color: var(--text-soft); }
fieldset.field { border: 0; padding: 0; margin: 0; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.segmented label {
  position: relative; display: flex; align-items: center; gap: .6rem; min-height: 52px; padding: .7rem 1rem;
  border: 1px solid rgba(36,27,20,.25); border-radius: var(--r-sm); background: #fff; cursor: pointer; font-weight: 500; font-size: .93rem;
  transition: border-color var(--d-fast), background-color var(--d-fast);
}
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label:has(input:checked) { border-color: var(--espresso); background: var(--linen); box-shadow: inset 0 0 0 1px var(--espresso); }
.segmented label:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.checkbox { display: flex; gap: .7rem; align-items: flex-start; font-size: .88rem; color: var(--text-soft); cursor: pointer; }
.checkbox input { width: 22px; height: 22px; margin: .1rem 0 0; accent-color: var(--espresso); flex: none; }
.checkbox a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.gift-field .checkbox strong { color: var(--text); font-weight: 500; }
.form-row { display: grid; gap: 1.1rem; }
@media (min-width: 560px) { .form-row--2 { grid-template-columns: 1fr 1fr; } }
.is-collapsible { display: grid; grid-template-rows: 1fr; transition: grid-template-rows var(--d-med) var(--ease-out), opacity var(--d-med); }
.is-collapsible > div { overflow: hidden; }
.is-collapsible.is-collapsed { grid-template-rows: 0fr; opacity: 0; }
.order-summary { background: var(--linen); border-radius: var(--r-sm); padding: .9rem 1rem; font-size: .9rem; display: grid; gap: .25rem; }
.order-summary div { display: flex; justify-content: space-between; gap: 1rem; }
.order-summary strong { font-variant-numeric: tabular-nums; }
.order-summary__deal { color: var(--rose-deep); }
/* riga dello sconto delle offerte miste nel carrello */
.cart-deal { display: flex; align-items: center; gap: .55rem; margin-top: 1.1rem; padding: .7rem .9rem; border-radius: var(--r-sm); background: var(--linen); font-size: .88rem; color: var(--text); }
.cart-deal svg { width: 18px; height: 18px; flex: none; color: var(--rose-deep); }
.cart-deal span { flex: 1; min-width: 0; }
.cart-deal strong { font-variant-numeric: tabular-nums; color: var(--rose-deep); white-space: nowrap; }
.success { text-align: center; display: grid; justify-items: center; gap: 1rem; padding-block: 2.5rem 1rem; }
.success__check { width: 84px; height: 84px; border-radius: 50%; background: var(--olive); color: var(--cream); display: grid; place-items: center; }
.success__check svg { width: 40px; height: 40px; stroke-width: 2.2; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .7s .2s var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.success h3 { font-size: 2rem; }
.success p { color: var(--text-soft); max-width: 34ch; }
.back-btn { display: inline-flex; align-items: center; gap: .4rem; font-size: .9rem; min-height: 44px; color: var(--text-soft); }
.back-btn:hover { color: var(--espresso); }

/* ---------- 23. Dialog quick view ---------- */
.qv {
  position: fixed; inset: 0; z-index: var(--z-dialog);
  display: grid; place-items: center; padding: var(--s-4);
  visibility: hidden; pointer-events: none;
}
.qv.is-open { visibility: visible; pointer-events: auto; }
.qv__scrim { position: absolute; inset: 0; background: rgba(20,14,9,.6); opacity: 0; transition: opacity var(--d-med) var(--ease-out); }
.qv.is-open .qv__scrim { opacity: 1; }
.qv__panel {
  position: relative; width: min(100%, 1000px); max-height: min(92vh, 760px); overflow: auto; overscroll-behavior: contain;
  background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow-3);
  display: block; opacity: 0; transform: translateY(30px) scale(.97);
  transition: opacity var(--d-med) var(--ease-out), transform var(--d-med) var(--ease-out);
}
.qv.is-open .qv__panel { opacity: 1; transform: none; }
.qv__media { aspect-ratio: 1 / 1; max-height: 52vh; overflow: hidden; background: var(--linen); }
.qv__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.qv__content { padding: clamp(1.5rem, 4vw, 3rem); display: grid; gap: 1rem; align-content: start; }
.qv__content h2 { font-size: clamp(2rem, 1.6rem + 1.6vw, 3rem); }
.qv__content > p { color: var(--text-soft); }
.qv__facts { display: grid; grid-template-columns: auto 1fr; gap: .5rem 1.2rem; font-size: .93rem; padding-block: 1rem; border-block: 1px solid var(--line); }
.qv__facts dt { color: var(--text-soft); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; padding-top: .15rem; }
.qv__facts dd { font-weight: 500; }
.qv__pair { padding-block: 1rem; border-bottom: 1px solid var(--line); }
.qv__pair-title { color: var(--text-soft); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .6rem; }
.qv__pair ul { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; margin: 0; padding: 0; }
.qv__pair li { padding: .35rem .8rem; border-radius: var(--r-pill); background: var(--linen); font-size: .9rem; }
.qv__buy { display: grid; grid-template-columns: 1fr auto; gap: .8rem; align-items: center; }
.qv__close { position: absolute; top: .8rem; right: .8rem; z-index: 2; background: rgba(251,247,239,.92); box-shadow: var(--shadow-1); }
@media (min-width: 800px) {
  .qv__panel { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; }
  .qv__media { aspect-ratio: auto; height: 100%; min-height: 560px; max-height: none; }
  .qv__content { overflow-y: auto; max-height: min(92vh, 760px); }
}

/* ---------- 23b. Quiz "Il prodotto giusto per te" ---------- */
.quiz {
  position: fixed; inset: 0; z-index: var(--z-dialog);
  display: grid; place-items: center; padding: var(--s-4);
  visibility: hidden; pointer-events: none;
}
.quiz.is-open { visibility: visible; pointer-events: auto; }
.quiz__scrim { position: absolute; inset: 0; background: rgba(20,14,9,.65); opacity: 0; transition: opacity var(--d-med) var(--ease-out); }
.quiz.is-open .quiz__scrim { opacity: 1; }
.quiz__panel {
  position: relative; width: min(100%, 720px); max-height: min(92vh, 820px); overflow: auto; overscroll-behavior: contain;
  background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow-3);
  padding: clamp(1.25rem, 3.5vw, 2.5rem); padding-top: clamp(1rem, 2.5vw, 1.5rem);
  opacity: 0; transform: translateY(30px) scale(.97);
  transition: opacity var(--d-med) var(--ease-out), transform var(--d-med) var(--ease-out);
}
.quiz.is-open .quiz__panel { opacity: 1; transform: none; }
.quiz__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.quiz__progress { height: 3px; margin: .6rem 0 1.6rem; border-radius: 3px; background: var(--line); overflow: hidden; }
.quiz__progress span { display: block; height: 100%; background: var(--gold); transform-origin: left; transform: scaleX(0); transition: transform .5s var(--ease-out); }
.quiz__count { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-soft); }
.quiz__q { margin: .4rem 0 1.4rem; font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.8rem); font-weight: 600; line-height: 1.08; }
.quiz__q:focus { outline: none; }
.quiz__opts { display: grid; gap: .75rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .quiz__opts { grid-template-columns: 1fr 1fr; } }
.quiz__opt {
  display: flex; align-items: center; gap: .9rem; min-height: 64px; padding: 1rem 1.1rem; text-align: left;
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface);
  font-size: 1rem; font-weight: 500; line-height: 1.3;
  transition: border-color var(--d-fast), background-color var(--d-fast), transform var(--d-fast);
}
.quiz__opt:active { transform: scale(.98); }
@media (hover: hover) { .quiz__opt:hover { border-color: var(--ochre); background: #fff; } }
.quiz__opt[aria-pressed="true"] { border-color: var(--espresso); background: var(--espresso); color: var(--cream); }
.quiz__ic { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--linen); color: var(--ochre); }
.quiz__opt[aria-pressed="true"] .quiz__ic { background: rgba(244,201,93,.18); color: var(--butter); }
.quiz__ic .icon { width: 22px; height: 22px; }
/* 5 fasce di prezzo: due colonne anche su telefono, l'ultima («fino a 80 €») a tutta larghezza */
.quiz__opts--budget { grid-template-columns: 1fr 1fr; }
.quiz__opts--budget .quiz__opt:last-child:nth-child(odd) { grid-column: 1 / -1; }
.quiz__opts--budget .quiz__opt { justify-content: center; font-family: var(--serif); font-size: 1.45rem; font-weight: 600; }
.quiz__back { margin-top: 1.2rem; }
.quiz__lead { margin: -.6rem 0 1.2rem; color: var(--text-soft); }
.quiz__results { display: grid; gap: .4rem; }
.quiz__pick { padding-top: .6rem; }
.quiz__pick .item { border-bottom: 1px solid var(--line); padding-top: .4rem; }
.quiz__why { display: flex; align-items: center; gap: .4rem; font-size: .78rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--olive); }
.quiz__why .icon { width: 16px; height: 16px; }
.quiz__total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 1.2rem; }
.quiz__total span { font-size: .82rem; letter-spacing: .15em; text-transform: uppercase; color: var(--text-soft); }
.quiz__total strong { font-family: var(--serif); font-size: 1.9rem; font-weight: 600; font-variant-numeric: tabular-nums lining-nums; }
.quiz__actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.2rem; }
.quiz__shop { margin-top: 1.2rem; }
@media (max-width: 559px) {
  .quiz { padding: 0; align-items: end; }
  .quiz__panel { width: 100%; max-height: 94vh; max-height: 94dvh; border-radius: var(--r-lg) var(--r-lg) 0 0; padding-bottom: max(1.5rem, env(safe-area-inset-bottom)); }
  .quiz__actions .btn { flex: 1 1 100%; }
}

/* Invito al quiz: sezione in home e riquadro in bottega */
.quiz-teaser { background: var(--bark-deep); overflow: hidden; }
.quiz-teaser__grid { display: grid; gap: clamp(2.5rem, 5vw, 5rem); align-items: center; }
@media (min-width: 960px) { .quiz-teaser__grid { grid-template-columns: 1.1fr 1fr; } }
.quiz-teaser .lead { color: var(--text-on-dark-soft); max-width: 48ch; }
.quiz-teaser .h2 em { color: var(--butter); }
.quiz-teaser__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 2rem; }
.quiz-teaser__time { display: inline-flex; align-items: center; gap: .5rem; font-size: .9rem; color: var(--text-on-dark-soft); }
.quiz-teaser__time .icon { width: 18px; height: 18px; color: var(--butter); }
.quiz-teaser__preview { display: grid; gap: .8rem; grid-template-columns: 1fr 1fr; }
.quiz-teaser__card {
  display: flex; flex-direction: column; justify-content: space-between; gap: 1.6rem; min-height: 132px; padding: 1.2rem;
  border-radius: var(--r-md); border: 1px solid var(--line-on-dark); background: rgba(245,237,223,.04);
  font-size: 1rem; font-weight: 500; line-height: 1.3; color: var(--cream);
}
.quiz-teaser__card .icon { width: 26px; height: 26px; color: var(--butter); }
.quiz-teaser__card.is-on { background: var(--butter); border-color: var(--butter); color: var(--espresso); transform: rotate(-2deg); box-shadow: var(--shadow-3); }
.quiz-teaser__card.is-on .icon { color: var(--espresso); }
.quiz-card {
  display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.1rem; margin-bottom: 1.1rem; padding: 1rem 1.2rem;
  border-radius: var(--r-md); background: var(--espresso); color: var(--cream);
}
.quiz-card p { flex: 1 1 260px; font-size: .95rem; color: var(--text-on-dark-soft); }
.quiz-card p strong { color: var(--cream); font-weight: 500; }
.quiz-card__ic { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(244,201,93,.16); color: var(--butter); }
.quiz-card .btn { --btn-bg: var(--butter); --btn-fg: var(--espresso); --btn-fill: var(--cream); --btn-fill-fg: var(--espresso); }
@media (max-width: 559px) {
  .qv { padding: 0; place-items: end center; }
  .qv__panel { border-radius: var(--r-lg) var(--r-lg) 0 0; max-height: 92vh; transform: translateY(100%); }
  .qv.is-open .qv__panel { transform: none; }
  .qv__buy { grid-template-columns: 1fr; }
}

/* ---------- 24. Pagina storia ---------- */
.story-block { display: grid; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.story-block + .story-block { margin-top: var(--section); }
.story-block .frame { aspect-ratio: 4 / 5; }
.story-block__text { display: grid; gap: var(--s-5); max-width: 560px; }
.story-block__caption { margin-top: .9rem; text-align: center; font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--text-soft); }
.story-block__caption span::before, .story-block__caption span::after { content: '—'; margin-inline: .5rem; color: var(--rose); font-style: normal; }
.story-block__text p { color: var(--text-soft); font-size: 1.08rem; }
.story-block__text .big-quote { font-family: var(--serif); font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.3rem); line-height: 1.25; color: var(--espresso); font-style: italic; padding-left: 1.4rem; border-left: 2px solid var(--rose); }
@media (min-width: 960px) {
  .story-block { grid-template-columns: 1fr 1fr; }
  .story-block--rev .story-block__media { order: 2; }
}
.origins { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-on-dark); }
.origin {
  display: grid; grid-template-columns: auto 1fr; gap: .2rem 1.5rem; align-items: baseline;
  padding-block: clamp(1.3rem, 2.5vw, 2rem); border-bottom: 1px solid var(--line-on-dark);
  transition: padding-left var(--d-med) var(--ease-out);
}
.origin__n { font-family: var(--serif); font-style: italic; color: var(--butter); font-size: 1.2rem; grid-row: span 2; }
.origin h3 { font-size: clamp(1.9rem, 1.4rem + 2.2vw, 3.6rem); font-weight: 500; }
.origin p { color: var(--text-on-dark-soft); }
@media (min-width: 800px) {
  .origin { grid-template-columns: 4rem 1fr 1fr; }
  .origin__n { grid-row: auto; }
  .origin p { text-align: right; }
}
@media (hover: hover) { .origin:hover { padding-left: 1rem; } .origin:hover h3 { font-style: italic; } }
.values { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.value-card { padding: clamp(1.5rem, 3vw, 2.2rem); background: var(--paper); border-radius: var(--r-md); border: 1px solid var(--line); display: grid; gap: .8rem; align-content: start; transition: transform var(--d-med) var(--ease-out), box-shadow var(--d-med) var(--ease-out); }
@media (hover: hover) { .value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); } }
.value-card .why-item__icon { background: var(--linen); }
.value-card h3 { font-size: 1.6rem; font-weight: 600; }
.value-card p { color: var(--text-soft); font-size: .97rem; }

/* ---------- 25. Contatti ---------- */
.contact-photo { aspect-ratio: 4 / 3; margin-bottom: var(--s-6); }
.contact-photo img { object-position: 50% 30%; }
@media (min-width: 700px) { .contact-photo { aspect-ratio: 21 / 9; } }
.contact-grid { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.contact-card { padding: clamp(1.4rem, 3vw, 2rem); border-radius: var(--r-md); background: var(--paper); border: 1px solid var(--line); display: grid; gap: .7rem; align-content: start; }
.contact-card .why-item__icon { margin-bottom: .3rem; }
.contact-card h2 { font-family: var(--sans); font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); font-weight: 500; }
.contact-card p { font-family: var(--serif); font-size: 1.5rem; line-height: 1.2; font-weight: 500; }
.contact-card a.link-underline { width: fit-content; font-size: .95rem; }
.hours { width: 100%; border-collapse: collapse; font-size: .95rem; }
.hours td { padding: .35rem 0; border-bottom: 1px dashed var(--line); }
.hours td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.is-today td { font-weight: 600; color: var(--espresso); }
/* Mappa disegnata del centro di Lucca (main.js), con la striscia per caricare Google Maps sotto */
.map-wrap { position: relative; border-radius: var(--r-md); overflow: hidden; background: #e9dfc6; color: var(--cream); }
.map-wrap:has(iframe) { aspect-ratio: 16 / 11; }
.map-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: sepia(.25) saturate(.9); }
.map-consent { position: relative; display: block; }
.lucca-map { position: relative; width: 100%; }
.lucca-map svg { display: block; width: 100%; height: auto; max-width: none; aspect-ratio: 1000 / 625; }
.map-consent__inner {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; justify-items: start;
  gap: .9rem; padding: .85rem 1.1rem; background: var(--espresso);
}
.map-consent__inner .icon { width: 22px; height: 22px; color: var(--butter); }
.map-consent p { font-size: .8rem; line-height: 1.4; color: var(--text-on-dark-soft); }
@media (max-width: 559px) {
  .map-consent__inner { grid-template-columns: 1fr; }
  .map-consent__inner .icon { display: none; }
}
.contact-layout { display: grid; gap: clamp(2.5rem, 5vw, 5rem); }
@media (min-width: 960px) { .contact-layout { grid-template-columns: 1.1fr 1fr; align-items: start; } }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding-block: 1.25rem; min-height: 56px; cursor: pointer;
  font-family: var(--serif); font-size: clamp(1.3rem, 1.15rem + .6vw, 1.65rem); font-weight: 600; line-height: 1.2;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); transition: transform var(--d-med) var(--ease-out), background-color var(--d-med); }
.faq summary .plus::before, .faq summary .plus::after { content: ''; position: absolute; left: 50%; top: 50%; width: 13px; height: 1.5px; background: currentColor; translate: -50% -50%; }
.faq summary .plus::after { rotate: 90deg; transition: rotate var(--d-med) var(--ease-out); }
.faq details[open] summary .plus { background: var(--butter); border-color: var(--butter); }
.faq details[open] summary .plus::after { rotate: 0deg; }
.faq .faq__body { padding-bottom: 1.4rem; color: var(--text-soft); max-width: 62ch; }
.faq details[open] .faq__body { animation: faq-in .45s var(--ease-out); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- 26. Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: max(1.25rem, env(safe-area-inset-bottom)); z-index: var(--z-toast);
  display: flex; align-items: center; gap: .8rem; padding: .8rem .8rem .8rem 1.2rem;
  background: var(--espresso); color: var(--cream); border-radius: var(--r-pill); box-shadow: var(--shadow-3);
  font-size: .93rem; width: max-content; max-width: calc(100vw - 2rem);
  translate: -50% 150%; opacity: 0; transition: translate .5s var(--ease-out), opacity .3s;
}
.toast.is-visible { translate: -50% 0; opacity: 1; }
.toast .icon { color: var(--butter); }
.toast button { padding: .45rem .9rem; border-radius: var(--r-pill); background: var(--butter); color: var(--espresso); font-weight: 500; font-size: .85rem; min-height: 36px; white-space: nowrap; }
.fly-dot { position: fixed; z-index: var(--z-toast); width: 18px; height: 18px; border-radius: 50%; background: var(--rose); pointer-events: none; box-shadow: 0 0 0 4px rgba(242,160,140,.35); }

/* ---------- 27. Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: var(--z-loader); background: var(--bark);
  display: grid; place-items: center;
}
.preloader__mark { width: clamp(110px, 22vw, 170px); }
.preloader__word { position: absolute; bottom: 12vh; left: 0; right: 0; text-align: center; font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--butter); }
html:not(.show-preloader) .preloader { display: none; }

/* ---------- 28. Stato iniziale animazioni ---------- */
/* Gli elementi vengono nascosti solo se JS + GSAP sono pronti (classe .anim-ready) */
.anim-ready [data-reveal], .anim-ready [data-reveal-group] > * { opacity: 0; }
.anim-ready [data-clip] { clip-path: inset(100% 0 0 0); }
.anim-ready [data-split], .anim-ready .page-hero h1 { visibility: hidden; }
.anim-ready [data-hero-fade] { opacity: 0; }
[data-magnetic] { transition-property: color, border-color; }
.anim-ready .split-ready, .anim-ready h1.split-ready { visibility: visible; }

/* ---------- 29. View Transitions tra pagine ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .35s var(--ease-in) both; }
::view-transition-new(root) { animation: vt-in .6s var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-14px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(22px); } }

/* ---------- 29. Tocchi lucchesi ---------- */
/* Ornamento: profilo delle Mura con gli alberi e la Torre Guinigi, sopra alcuni titoli */
.ornament {
  display: block; width: 168px; height: 30px; margin-bottom: .2rem; opacity: .75;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 54' fill='none' stroke='%238A5A12' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 40H298M2 50H298M138 50V44a12 12 0 0 1 24 0v6'/%3E%3Cpath d='M8 40a8 8 0 0 1 15-2a7 7 0 0 1 13-1a8 8 0 0 1 15 1a7 7 0 0 1 13 0a8 8 0 0 1 15-1a7 7 0 0 1 13 1a8 8 0 0 1 14 2M172 40a8 8 0 0 1 14-2a7 7 0 0 1 12-1a6 6 0 0 1 9 1M232 40a8 8 0 0 1 14-2a7 7 0 0 1 13-1a8 8 0 0 1 15 1a6 6 0 0 1 10 2'/%3E%3Cpath d='M213 40V15h13v25M216 22h2M216 30h2'/%3E%3Cpath d='M210 15a5 5 0 0 1 6-6a5 5 0 0 1 9-1a5 5 0 0 1 6 7'/%3E%3C/svg%3E") no-repeat left center / contain;
}
/* lo stesso profilo, largo, in cima al piè di pagina */
.site-footer::before {
  content: ''; display: block; height: 46px; margin-bottom: 2.5rem; opacity: .32;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 54' fill='none' stroke='%23F4C95D' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M0 40H300M0 50H300M138 50V44a12 12 0 0 1 24 0v6'/%3E%3Cpath d='M0 40a8 8 0 0 1 15-2a7 7 0 0 1 13-1a8 8 0 0 1 15 1a7 7 0 0 1 13 0a8 8 0 0 1 15-1a7 7 0 0 1 13 1a8 8 0 0 1 14 2M172 40a8 8 0 0 1 14-2a7 7 0 0 1 12-1a6 6 0 0 1 9 1M232 40a8 8 0 0 1 14-2a7 7 0 0 1 13-1a8 8 0 0 1 15 1a8 8 0 0 1 26 2'/%3E%3Cpath d='M213 40V15h13v25'/%3E%3Cpath d='M210 15a5 5 0 0 1 6-6a5 5 0 0 1 9-1a5 5 0 0 1 6 7'/%3E%3C/svg%3E") repeat-x center bottom / auto 46px;
}

/* Passaggio morbido tra le pagine: la pagina nuova sfuma, uscendo un velo crema col logo (main.js) */
@keyframes pt-in { from { opacity: 0; } to { opacity: 1; } }
body { animation: pt-in .5s var(--ease-out) both; }
.pt {
  position: fixed; inset: 0; z-index: 10001; display: grid; place-items: center; background: var(--cream);
  opacity: 0; pointer-events: none; transition: opacity .3s var(--ease-out);
}
.pt svg { width: 64px; height: 64px; transform: scale(.9); transition: transform .5s var(--ease-out); }
.pt.is-on { opacity: 1; pointer-events: auto; }
.pt.is-on svg { transform: none; }

/* ---------- 29b. Telefono (la maggior parte delle visite) ---------- */
/* barra rapida: Chiama · WhatsApp · Indicazioni (main.js, initDock) */
.dock { display: none; }
.journey__hint { display: none; }
@media (max-width: 699px) {
  :root { --section: clamp(4.25rem, 3rem + 6vw, 5.5rem); }
  .section-head { margin-bottom: 2.25rem; }
  .eyebrow { font-size: .75rem; letter-spacing: .24em; }

  .dock {
    position: fixed; left: .75rem; right: .75rem; bottom: calc(.75rem + env(safe-area-inset-bottom)); z-index: 90;
    display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: .3rem; padding: .3rem;
    border-radius: var(--r-pill); background: rgba(36,27,20,.94); box-shadow: 0 18px 40px -12px rgba(20,14,9,.55);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    transform: translateY(calc(100% + 1.5rem)); visibility: hidden;
    transition: transform .45s var(--ease-out), visibility 0s linear .45s;
  }
  .dock.is-on { transform: none; visibility: visible; transition: transform .45s var(--ease-out); }
  .dock__btn {
    display: flex; align-items: center; justify-content: center; gap: .45rem; min-height: 50px; padding-inline: .5rem;
    border-radius: var(--r-pill); color: var(--cream); font-size: .86rem; font-weight: 500; letter-spacing: .02em; white-space: nowrap;
  }
  .dock__btn .icon { width: 19px; height: 19px; }
  .dock__btn--wa { background: var(--butter); color: var(--espresso); }
  .dock__btn:active { background: rgba(245,237,223,.12); }
  .dock__btn--wa:active { background: var(--gold); }
  .dock-on .toast { bottom: calc(5.25rem + env(safe-area-inset-bottom)); }

  /* il viaggio del pecorino: quattro tappe da sfogliare, non quattro schermate */
  .journey__intro { padding-bottom: 2rem; }
  .journey__track {
    grid-auto-flow: column; grid-auto-columns: 82%; gap: 1rem;
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
    padding-bottom: 1rem; scroll-padding-inline: var(--gutter);
  }
  .journey__track::-webkit-scrollbar { display: none; }
  .journey__panel { scroll-snap-align: start; gap: 1rem; }
  .journey__panel .frame { max-height: none; }
  .journey__num { font-size: 3rem; }
  .journey__hint { display: block; padding-bottom: var(--section); }
  .on-dark .swipe-hint { color: var(--text-on-dark-soft); }

  /* meno lunghezza: le card decorative del quiz restano su tablet e computer */
  .quiz-teaser__preview { display: none; }

  /* bersagli comodi per il pollice */
  .link-underline { min-height: 44px; }
  .footer-bottom a { display: inline-flex; align-items: center; min-height: 44px; }
  .contact-card p a { display: inline-block; padding-block: .45rem; }
}
/* lingua: area di tocco più ampia senza allargare il pulsante */
.lang-switch button { position: relative; }
.lang-switch button::after { content: ''; position: absolute; inset: -6px -2px; }

/* ---------- 30. Movimento ridotto ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  .hero__badge svg.ring { animation: none; }
  body { animation: none; }
  .pt { display: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* ---------- 31. Stampa ---------- */
@media print {
  .site-header, .mobile-menu, .drawer, .scrim, .toast, .pt, body::after { display: none !important; }
  body { background: #fff; }
}
