/* ==========================================================================
   Gustò Imperia — "Tavola di legno"
   Tavolo di rovere chiaro, fogli color carta e polaroid appuntate con puntine
   rosse, fasce di noce scuro per il contrasto.
   ========================================================================== */

:root {
  /* legno */
  --walnut: #2a180c;
  --ink: #24160d;
  --oak: #cfab7f;
  /* carta */
  --paper: #f7f1e6;
  --paper-2: #f5eee2;
  --paper-3: #efe5d4;
  --sand: #e6d9c3;
  /* accenti */
  --bordeaux: #7d1f1f;
  --bordeaux-deep: #641818;
  --gold: #e9c9a0;
  --wa: #367a45;
  --wa-deep: #2c6538;
  /* testo */
  --cream: #fff4e4;
  --cream-2: #f2eadc;
  --on-dark: #d9ccb7;
  --on-dark-2: #cdbfa9;
  --text: #4a3828;
  --text-2: #5a4633;
  --text-3: #6e5a46;
  --rule: #cdb998;
  --border: #d9c8ae;
  /* stato */
  --open: #5d8a3a;
  --open-on-dark: #8fbf6a;
  --closed: #b0443a;
  --closed-on-dark: #c0564a;

  /* ombre: tinte di noce, luce dall'alto */
  --sh-sm: 0 4px 10px rgba(70, 40, 15, .18);
  --sh-card: 0 14px 30px rgba(70, 40, 15, .28);
  --sh-lift: 0 24px 50px rgba(70, 40, 15, .35);
  --sh-high: 0 30px 60px rgba(70, 40, 15, .35);
  --sh-dark: 0 16px 30px rgba(0, 0, 0, .45);

  --f-display: 'Gloock', 'Georgia', serif;
  --f-sans: 'Instrument Sans', system-ui, sans-serif;
  --f-hand: 'Caveat', cursive;

  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-sheet: cubic-bezier(.77, 0, .18, 1);

  --wrap: 1280px;
  --gutter: clamp(16px, 3vw, 28px);
  --header-h: 58px;

  /* scala z-index */
  --z-header: 100;
  --z-menu: 150;
  --z-bar: 160;
  --z-list: 200;
  --z-lightbox: 500;
  --z-sheet: 900;
  --z-skip: 1000;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scrollbar-color: #8a5f38 var(--walnut); }
body {
  margin: 0;
  background: var(--oak) url(../img/wood-light.webp) center top / 1400px auto;
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.is-dark { background: var(--walnut) url(../img/wood-dark.webp) center top / 1400px auto; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--bordeaux); text-decoration: none; text-underline-offset: .2em; transition: color .2s ease; }
@media (hover: hover) and (pointer: fine) { a:hover { color: var(--ink); } }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
::selection { background: var(--bordeaux); color: var(--cream); }
:focus-visible { outline: 2px solid var(--bordeaux); outline-offset: 3px; }
.on-dark :focus-visible, .site-header :focus-visible, .mobile-menu :focus-visible,
.lightbox :focus-visible { outline-color: var(--gold); }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--walnut); }
::-webkit-scrollbar-thumb { background: #8a5f38; border: 3px solid var(--walnut); }
[hidden]:not(.list-bar) { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: var(--z-skip);
  background: var(--paper); color: var(--ink); padding: 12px 18px; font-weight: 700;
  transform: translateY(-160%); transition: transform .2s var(--ease-out);
}
.skip-link:focus { transform: none; }
.icon { width: 1.15em; height: 1.15em; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon--fill { fill: currentColor; stroke: none; }

/* ---------- layout ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.grid-auto { display: grid; gap: var(--gap, 26px); grid-template-columns: repeat(auto-fit, minmax(min(var(--min, 260px), 100%), 1fr)); }
.band-dark {
  background: #2a190d url(../img/wood-dark.webp) center / 1400px auto;
  color: var(--cream-2);
}
.band-dark p { color: var(--on-dark); }
.section { padding-top: 110px; padding-bottom: 110px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 40px; }

/* ---------- tipografia ---------- */
.display { font-size: clamp(44px, 6.4vw, 92px); line-height: .98; letter-spacing: -.015em; }
.h2 { font-size: clamp(38px, 5vw, 72px); line-height: 1; letter-spacing: -.01em; }
.h2--sm { font-size: clamp(34px, 4vw, 52px); line-height: 1.05; }
.hand { font-family: var(--f-hand); font-size: 32px; line-height: 1.1; color: var(--bordeaux); }
.on-dark .hand, .band-dark .hand { color: var(--gold); }
.lead { font-size: 18px; line-height: 1.65; color: var(--text-2); max-width: 34em; }
.band-dark .lead { color: var(--on-dark); }
.price { font-family: var(--f-hand); font-weight: 700; font-size: 28px; line-height: 1; color: var(--bordeaux); white-space: nowrap; }
.label { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #5a3a1f; }

/* ---------- carta, polaroid, puntine ---------- */
.paper { background: var(--paper); box-shadow: var(--sh-card); position: relative; }
.paper--lift { box-shadow: var(--sh-lift); }
.paper--high { box-shadow: var(--sh-high); }
.pad { padding: clamp(32px, 5vw, 56px) clamp(24px, 4.5vw, 52px); }
.tilt { transform: rotate(var(--r, 0deg)); }
.polaroid { background: #fff; padding: 12px 12px 44px; box-shadow: 0 20px 40px rgba(70, 40, 15, .35); position: relative; }
.polaroid--sm { padding: 10px 10px 34px; }
.on-dark .polaroid, .band-dark .polaroid { box-shadow: var(--sh-dark); }
.polaroid .ph { display: block; width: 100%; aspect-ratio: var(--ar, 1); object-fit: cover; background: var(--sand); }
.polaroid figcaption, .polaroid .cap {
  position: absolute; left: 16px; bottom: 8px;
  font-family: var(--f-hand); font-size: 24px; line-height: 1.2; color: var(--text-2);
}
.pin { position: absolute; top: -16px; width: 42px; height: auto; z-index: 2; pointer-events: none; filter: drop-shadow(0 3px 2px rgba(40, 20, 5, .25)); }
.pin--l { left: 28px; }
.pin--r { right: 28px; }
.pin--c { left: 50%; margin-left: -21px; }

/* ---------- bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; padding: 15px 26px; min-height: 48px;
  font-family: var(--f-sans); font-size: 14px; font-weight: 700; line-height: 1.2;
  background: var(--bordeaux); color: var(--cream);
  transition: background-color .2s ease, color .2s ease, transform .16s var(--ease-out), box-shadow .2s ease;
}
.btn:active { transform: scale(.97); }
.btn--ink { background: var(--ink); color: var(--paper-2); }
.btn--paper { background: var(--paper-2); color: var(--ink); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.band-dark .btn--ghost, .on-dark .btn--ghost { color: var(--paper-2); box-shadow: inset 0 0 0 1px rgba(245, 238, 226, .5); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--bordeaux-deep); color: var(--cream); }
  .btn--ink:hover { background: #3a2415; color: var(--paper-2); }
  .btn--paper:hover { background: #fff; color: var(--ink); }
  .btn--wa:hover { background: var(--wa-deep); color: #fff; }
  .btn--ghost:hover { background: rgba(36, 22, 13, .06); color: var(--ink); }
  .band-dark .btn--ghost:hover, .on-dark .btn--ghost:hover { background: rgba(245, 238, 226, .1); color: var(--paper-2); }
}
.link-line {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 2px 6px;
  font-size: 14px; font-weight: 700; color: var(--ink);
  border-bottom: 2px solid currentColor; transition: color .2s ease, border-color .2s ease;
}
.band-dark .link-line { color: var(--gold); border-bottom-width: 1px; }
@media (hover: hover) and (pointer: fine) {
  .link-line:hover { color: var(--bordeaux); }
  .band-dark .link-line:hover { color: var(--cream); }
}
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  border: 0; padding: 11px 18px; min-height: 44px; font-size: 14px; font-weight: 700;
  background: var(--paper); color: var(--ink); box-shadow: var(--sh-sm);
  transition: background-color .2s ease, color .2s ease, transform .16s var(--ease-out);
}
.chip:active { transform: scale(.97); }
.chip[aria-pressed="true"], .chip[aria-selected="true"] { background: var(--ink); color: var(--paper-2); }
@media (hover: hover) and (pointer: fine) { .chip:not([aria-pressed="true"]):not([aria-selected="true"]):hover { background: #fffaf1; } }
.on-dark .chip { background: rgba(245, 238, 226, .1); color: var(--paper-2); box-shadow: none; }
.on-dark .chip[aria-pressed="true"] { background: var(--paper-2); color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .on-dark .chip:not([aria-pressed="true"]):hover { background: rgba(245, 238, 226, .18); } }

/* stato aperto/chiuso */
.status { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--bordeaux); }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dot, var(--rule)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--dot, var(--rule)) 22%, transparent); }
.status[data-open="1"] { --dot: var(--open); }
.status[data-open="0"] { --dot: var(--closed); }
.band-dark .status { color: var(--cream); letter-spacing: .06em; font-size: 14px; }
.band-dark .status[data-open="1"] { --dot: var(--open-on-dark); }
.band-dark .status[data-open="0"] { --dot: var(--closed-on-dark); }

/* ==========================================================================
   Header, menu mobile, barra in basso, foglio di transizione
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: var(--z-header);
  background: var(--walnut) url(../img/wood-dark.webp) center / 1400px auto;
  box-shadow: 0 6px 20px rgba(40, 20, 5, .35);
}
.site-header .wrap { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.header-spacer { height: var(--header-h); }
/* logo crema direttamente sul legno scuro, come un marchio a fuoco */
/* il cartello vero di Gustò, appeso al legno con due chiodi */
.logo-mark { display: flex; flex-shrink: 0; padding: 6px 0; transition: opacity .2s ease; }
.logo-mark .sign { position: relative; display: block; transform: rotate(-2deg); transform-origin: 50% 12%; transition: transform .25s var(--ease-out); }
.logo-mark img { height: 46px; width: auto; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .45)); }
.logo-mark:active .sign { transform: rotate(-2deg) scale(.97); }
@media (hover: hover) and (pointer: fine) { .logo-mark:hover .sign { transform: rotate(-3.5deg); } }
/* chiodi: testa di metallo battuta, sopra le viti del cartello */
.nail {
  position: absolute; top: 11.6%; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f4efe6 0 14%, #b9b2a6 30%, #6f675d 62%, #3a332c 100%);
  box-shadow: 0 1px 1.5px rgba(0, 0, 0, .55), inset 0 -1px 1px rgba(0, 0, 0, .35);
}
.nail--l { left: 14.4%; }
.nail--r { left: 85.6%; }
@media (hover: hover) and (pointer: fine) { .logo-mark:hover { opacity: .85; } }
.nav { flex: 1; display: flex; justify-content: center; gap: 4px; }
.nav a { position: relative; color: var(--cream-2); padding: 9px 14px; font-size: 14px; font-weight: 600; transition: background-color .2s ease, color .2s ease; }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px; background: var(--gold); }
@media (hover: hover) and (pointer: fine) { .nav a:hover { background: rgba(245, 238, 226, .1); color: var(--cream); } }
.phone-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; background: transparent; color: var(--cream); border: 1px solid rgba(233, 201, 160, .45); padding: 9px 16px; font-size: 13px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .16s var(--ease-out); }
.phone-pill .icon { color: var(--gold); }
.phone-pill:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .phone-pill:hover { background: var(--paper-2); border-color: var(--paper-2); color: var(--ink); } .phone-pill:hover .icon { color: var(--bordeaux); } }
.burger {
  display: none; margin-left: auto; height: 48px; padding: 0 2px 0 8px; border: 0; background: transparent;
  align-items: center; gap: 10px; color: var(--gold); transition: transform .16s var(--ease-out);
}
.burger:active { transform: scale(.95); }
/* etichetta scritta a mano: "menu" / "chiudi" */
.burger__label { display: grid; font-family: var(--f-hand); font-size: 24px; line-height: 1; }
.burger__label b { grid-area: 1 / 1; font-weight: 500; text-align: right; transition: opacity .25s ease, transform .35s var(--ease-out); }
.burger__label b + b { opacity: 0; transform: translateY(6px); }
.menu-open .burger__label b:first-child { opacity: 0; transform: translateY(-6px); }
.menu-open .burger__label b + b { opacity: 1; transform: none; }
.burger__lines { position: relative; width: 26px; height: 18px; }
.burger__lines i { position: absolute; left: 0; width: 100%; height: 2px; background: var(--paper-2); transition: transform .4s var(--ease-sheet), opacity .2s ease; }
.burger__lines i:nth-child(1) { top: 2px; }
.burger__lines i:nth-child(2) { top: 8px; }
.burger__lines i:nth-child(3) { top: 14px; }
/* il burger diventa una X */
.menu-open .burger__lines i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .burger__lines i:nth-child(2) { opacity: 0; }
.menu-open .burger__lines i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
/* col menu aperto l’header diventa trasparente e resta sopra il video */
.site-header { transition: background-color .4s ease, box-shadow .4s ease; }
.menu-open .site-header { z-index: calc(var(--z-menu) + 1); background: transparent; box-shadow: none; }

/* menu mobile a tutto schermo: si srotola dall’alto sopra un video di foto del locale */
.mobile-menu {
  position: fixed; inset: 0; z-index: var(--z-menu);
  background: var(--walnut);
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-h) + 24px) var(--gutter) calc(32px + env(safe-area-inset-bottom));
  overflow: auto; overscroll-behavior: contain;
  clip-path: inset(0 0 100% 0); visibility: hidden; pointer-events: none;
  transition: clip-path .6s var(--ease-sheet), visibility 0s linear .6s;
}
.mobile-menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; pointer-events: auto; transition: clip-path .6s var(--ease-sheet); }
.mobile-menu__bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.mobile-menu__bg video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.4s var(--ease-out); }
.mobile-menu.is-open .mobile-menu__bg video { transform: none; }
/* velo caldo di noce: il testo resta leggibile su qualsiasi foto */
.mobile-menu__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(26, 14, 6, .72) 0%, rgba(26, 14, 6, .5) 38%, rgba(26, 14, 6, .78) 78%, rgba(26, 14, 6, .94) 100%),
    rgba(42, 24, 12, .25);
}
.mobile-menu nav, .mobile-menu__foot { position: relative; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 10px 0; border-bottom: 1px solid rgba(233, 201, 160, .2);
  color: var(--cream); text-shadow: 0 2px 18px rgba(0, 0, 0, .45);
  opacity: 0; transform: translateY(28px);
  transition: opacity .45s var(--ease-out), transform .55s var(--ease-out), color .2s ease;
}
.mobile-menu nav a .t { font-family: var(--f-display); font-size: clamp(36px, 10.5vw, 52px); line-height: 1.05; letter-spacing: -.01em; }
.mobile-menu nav a .s { font-family: var(--f-hand); font-size: 22px; color: var(--gold); white-space: nowrap; }
.mobile-menu nav a[aria-current="page"] .t { color: var(--gold); }
.mobile-menu nav a:active { color: var(--gold); }
.mobile-menu.is-open nav a { opacity: 1; transform: none; transition-delay: calc(.18s + var(--i) * .06s); }
.mobile-menu__foot {
  margin-top: 28px; opacity: 0; transform: translateY(16px);
  transition: opacity .45s var(--ease-out), transform .55s var(--ease-out);
}
.mobile-menu.is-open .mobile-menu__foot { opacity: 1; transform: none; transition-delay: .75s; }
.mobile-menu .status { color: var(--cream); letter-spacing: .08em; }
.mobile-menu .status[data-open="1"] { --dot: var(--open-on-dark); }
.mobile-menu .status[data-open="0"] { --dot: var(--closed-on-dark); }
.mobile-menu address { margin-top: 10px; font-style: normal; font-size: 15px; line-height: 1.6; color: var(--on-dark); }
.mm-links { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 15px; font-weight: 600; }
.mm-links a { color: var(--gold); padding: 6px 0; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) {
  .mobile-menu, .mobile-menu.is-open { clip-path: none; }
  .mobile-menu nav a, .mobile-menu__foot { opacity: 1; transform: none; }
}


@media (max-width: 899px) {
  :root { --header-h: 52px; }
  .site-header .wrap { align-items: flex-start; }
  .logo-mark { padding: 5px 0 0; margin-left: 12px; }
  .logo-mark img { height: 74px; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .45)); }
  .nail { width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; }
  .burger { height: var(--header-h); }
  .nav, .site-header .phone-pill { display: none; }
  .burger { display: flex; }
}

/* foglio di transizione tra le pagine */
.sheet {
  position: fixed; inset: 0; z-index: var(--z-sheet);
  background: var(--walnut) url(../img/wood-dark.webp) center / 1400px auto;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  /* livello proprio sulla GPU: il movimento non ridisegna nulla */
  will-change: transform; backface-visibility: hidden; contain: layout;
  transform: translate3d(0, -101%, 0); visibility: hidden; pointer-events: none;
  transition: transform .6s var(--ease-sheet), visibility 0s linear .6s;
}
.sheet::after { content: ""; position: absolute; inset: auto 0 -24px; height: 32px; background: linear-gradient(#0c0603 0 8px, rgba(12, 6, 3, .35) 8px, rgba(12, 6, 3, 0)); }
.sheet__card { background: var(--paper-2); padding: 30px 40px; box-shadow: 0 18px 40px rgba(0, 0, 0, .45); position: relative; transform: rotate(-1.5deg); }
.sheet__card .pin { width: 40px; margin-left: -20px; }
.sheet__card img:not(.pin) { width: min(240px, 56vw); mix-blend-mode: multiply; }
.sheet__label { font-family: var(--f-hand); font-size: 32px; color: var(--gold); min-height: 40px; }
html.sheet-on .sheet, .sheet.is-down { transform: translate3d(0, 0, 0); visibility: visible; transition: transform .6s var(--ease-sheet); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { padding-top: 90px; padding-bottom: 40px; }
.site-footer .paper { padding: 32px; }
.footer-logo { height: 64px; width: auto; mix-blend-mode: multiply; }
.site-footer address { font-style: normal; margin-top: 18px; font-size: 15px; line-height: 1.7; color: var(--text); }
.site-footer .phones { margin-top: 12px; font-size: 15px; line-height: 1.8; font-weight: 600; font-variant-numeric: tabular-nums; }
.site-footer .phones a { display: block; width: fit-content; }
.site-footer .note { margin-top: 12px; font-size: 13px; color: var(--text-2); }
.hours { margin: 6px 0 0; padding: 0; list-style: none; }
.hours li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--border); font-size: 14px; font-variant-numeric: tabular-nums; }
.hours li.is-today { font-weight: 700; color: var(--bordeaux); }
.hours li.is-today span:first-child::after { content: " · oggi"; font-weight: 500; }
.map-card { padding: 10px !important; min-height: 300px; display: flex; }
.map-card iframe { flex: 1; width: 100%; min-width: 0; min-height: 280px; border: 0; filter: sepia(.25) saturate(.9); }
.footer-bottom { margin-top: 44px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: #3a2718; font-weight: 500; }
.footer-bottom nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-bottom a { color: #3a2718; text-decoration: underline; text-decoration-color: rgba(58, 39, 24, .35); }
@media (hover: hover) and (pointer: fine) { .footer-bottom a:hover { color: var(--bordeaux); text-decoration-color: currentColor; } }
.credit { opacity: .75; }
body.is-dark .site-footer-wrap { background: var(--oak) url(../img/wood-light.webp) center / 1400px auto; margin-top: 70px; }

/* ==========================================================================
   Componenti di pagina
   ========================================================================== */

/* hero Home */
.hero { padding-top: 72px; padding-bottom: 96px; --min: 360px; --gap: 56px; align-items: center; }
.hero-card { --r: -1deg; padding-bottom: 52px; }
.hero-card .lead { margin-top: 24px; }
.hero-card h1 { margin-top: 22px; }
.cta-row { margin-top: 32px; padding-top: 24px; border-top: 1px dashed var(--rule); display: flex; gap: 14px 22px; flex-wrap: wrap; align-items: center; }
.tag-hand { position: absolute; right: 36px; bottom: -26px; font-family: var(--f-hand); font-size: 30px; color: var(--ink); transform: rotate(-4deg); background: var(--paper); padding: 2px 12px; }
.hero-photos { position: relative; height: clamp(460px, 52vw, 580px); }
.hero-photos .p1 { position: absolute; right: 0; top: 0; width: min(62%, 340px); --r: 2.5deg; }
.hero-photos .p2 { position: absolute; left: 0; bottom: 0; width: 58%; --r: -3deg; box-shadow: 0 20px 40px rgba(70, 40, 15, .4); }
.video-ph { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--walnut); }
.sound-btn {
  position: absolute; top: 22px; right: 22px; z-index: 3; border: 0;
  background: rgba(36, 22, 13, .82); color: var(--paper-2); height: 40px; padding: 0 14px;
  display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .3); backdrop-filter: blur(6px);
  transition: background-color .2s ease, transform .16s var(--ease-out);
}
.sound-btn:active { transform: scale(.96); }
@media (hover: hover) and (pointer: fine) { .sound-btn:hover { background: rgba(36, 22, 13, .95); } }
.sound-btn .off { display: none; }
.sound-btn[aria-pressed="false"] .on { display: none; }
.sound-btn[aria-pressed="false"] .off { display: block; }

.quote-band { padding: 100px 0; text-align: center; }
.quote-band blockquote { margin: 16px auto 0; max-width: 960px; font-family: var(--f-display); font-size: clamp(30px, 3.6vw, 48px); line-height: 1.2; color: var(--cream); text-wrap: balance; }
.quote-band p { margin: 26px auto 0; max-width: 620px; font-size: 16px; line-height: 1.7; }
.quote-band .link-line { margin-top: 24px; }

.dish-card { padding: 26px 26px 22px; display: flex; flex-direction: column; gap: 6px; }
.dish-card .row { display: flex; align-items: baseline; gap: 10px; }
.dish-card h3 { flex: 1; font-size: 28px; line-height: 1.1; }
.dish-card p { font-size: 15px; color: var(--text-2); }
.cat { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--bordeaux); }

.bottega-band { background: var(--paper-2); border-block: 10px solid #8a5f38; }
.bottega-band .grid-auto { --min: 340px; --gap: 56px; align-items: center; }
.photo-tag { position: absolute; left: -10px; bottom: -22px; background: var(--oak) url(../img/wood-light.webp) center / 700px auto; padding: 14px 22px; font-family: var(--f-hand); font-size: 30px; font-weight: 700; color: var(--ink); box-shadow: 0 10px 20px rgba(70, 40, 15, .3); --r: -2deg; }
.cat-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 28px; }
.cat-links a { border: 1px solid var(--border); padding: 14px 16px; font-size: 15px; font-weight: 600; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 8px; transition: background-color .2s ease; }
.cat-links a .icon { color: var(--bordeaux); transition: transform .2s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .cat-links a:hover { background: var(--paper-3); color: var(--ink); } .cat-links a:hover .icon { transform: translateX(3px); } }
@media (max-width: 420px) { .cat-links { grid-template-columns: 1fr; } }

.split-card { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); }
.split-card .media { min-height: 520px; position: relative; }
.split-card .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.price-rows { margin-top: 26px; }
.price-rows div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 0; border-top: 1px dashed var(--rule); font-size: 16px; }
.price-rows div:last-child { border-bottom: 1px dashed var(--rule); }
@media (max-width: 600px) { .split-card .media { min-height: 300px; } }

.strip { --min: 220px; --gap: 26px; }
.strip a { display: block; transition: transform .3s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .strip a:hover { transform: rotate(0deg) translateY(-4px); } }

/* hero interne */
.page-hero { padding: 90px 0 110px; }
.page-hero .grid-auto { --min: 340px; --gap: 56px; align-items: center; }
.page-hero .display { margin-top: 10px; }
.page-hero .lead { margin-top: 24px; }
.page-hero .status { margin-top: 30px; }
.duo { position: relative; height: 480px; }
.duo .a { position: absolute; right: 0; top: 0; width: 74%; --r: 2deg; }
.duo .b { position: absolute; left: 0; bottom: 0; width: 54%; --r: -3deg; }
@media (max-width: 480px) { .duo { height: 380px; } }

/* menù */
.menu-layout { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; padding-top: 100px; padding-bottom: 40px; }
.menu-card { flex: 2 1 min(560px, 100%); min-width: 0; padding: clamp(36px, 5vw, 56px) clamp(22px, 5vw, 64px); }
.menu-card > header { text-align: center; }
.menu-card > header img { height: 70px; width: auto; margin: 0 auto; mix-blend-mode: multiply; }
.menu-card > header h2 { margin-top: 18px; font-size: clamp(44px, 5vw, 68px); line-height: 1; }
.tabs { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin: 32px 0 8px; }
.tab { border: 1px solid var(--ink); background: transparent; color: var(--ink); padding: 10px 16px; min-height: 44px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; transition: background-color .2s ease, color .2s ease, transform .16s var(--ease-out); }
.tab:active { transform: scale(.97); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--paper-2); }
@media (hover: hover) and (pointer: fine) { .tab[aria-selected="false"]:hover { background: rgba(36, 22, 13, .07); } }
.menu-section { margin-top: 40px; }
.menu-section[hidden] { display: none; }
.menu-section > h3 { display: flex; align-items: center; gap: 16px; font-family: var(--f-hand); font-weight: 700; font-size: 36px; color: var(--bordeaux); }
.menu-section > h3::before, .menu-section > h3::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.menu-item { display: flex; align-items: baseline; gap: 10px; padding: 14px 0; }
.menu-item h4 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: 24px; line-height: 1.2; }
.menu-item p { font-size: 14px; color: var(--text-3); margin-top: 2px; }
.menu-item .dots { flex: 1; min-width: 20px; border-bottom: 2px dotted var(--rule); transform: translateY(-6px); }
.menu-note { margin-top: 44px; text-align: center; font-size: 13px; color: var(--text-3); }
.menu-aside { flex: 1 1 280px; display: flex; flex-direction: column; gap: 30px; position: sticky; top: 90px; }
.daily { background: #fff; padding: 34px 30px 30px; box-shadow: 0 20px 40px rgba(70, 40, 15, .35); --r: 1.5deg; text-align: center; }
.daily img:not(.pin) { height: 44px; width: auto; margin: 0 auto; mix-blend-mode: multiply; }
.daily .t { margin-top: 10px; font-family: var(--f-hand); font-size: 32px; font-weight: 700; }
.daily .d { margin-top: 14px; font-family: var(--f-hand); font-size: 26px; line-height: 1.3; color: #3a2718; }
.daily .price { display: block; margin-top: 12px; font-size: 30px; }
.book-card { padding: 30px; box-shadow: 0 20px 40px rgba(40, 20, 5, .4); background-size: 900px auto; }
.book-card .btn { width: 100%; font-size: 16px; font-variant-numeric: tabular-nums; }
.book-card .btn + .btn { margin-top: 10px; }
@media (max-width: 899px) { .menu-aside { position: static; } }
.info-cards { padding-top: 80px; }
.info-cards .paper { padding: 30px; }
.info-cards .hand { font-size: 30px; font-weight: 700; }
.info-cards p { margin-top: 8px; font-size: 15px; color: var(--text); }

/* bottega */
.catalog { padding-top: 20px; padding-bottom: 60px; }
.catalog .chips { margin-bottom: 30px; }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 24px; }
.product { background: var(--paper); padding: 12px 12px 20px; box-shadow: 0 14px 30px rgba(70, 40, 15, .3); display: flex; flex-direction: column; }
.product .media { position: relative; aspect-ratio: 1; background: var(--sand); overflow: hidden; display: grid; place-items: center; }
.product .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.product .media .ph-text { font-family: var(--f-hand); font-size: 24px; color: #8a7358; }
.product .tag { position: absolute; top: 10px; left: 10px; background: var(--paper); padding: 4px 9px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--bordeaux); }
.product .body { padding: 16px 6px 0; flex: 1; }
.product h3 { font-size: 23px; line-height: 1.15; }
.product .body p { font-size: 14px; line-height: 1.5; color: #5e4a37; margin-top: 6px; }
.product .foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 6px 0; min-height: 56px; }
.product .add { padding: 11px 16px; min-height: 42px; font-size: 13px; }
.stepper { display: flex; align-items: center; border: 1px solid var(--ink); }
.stepper button { border: 0; background: transparent; width: 40px; height: 40px; display: grid; place-items: center; color: var(--ink); transition: background-color .15s ease; }
.stepper button:active { background: rgba(36, 22, 13, .1); }
.stepper output { min-width: 24px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.steps { padding: 90px 0; }
.steps .grid-auto { max-width: 1000px; margin: 0 auto; --min: 240px; --gap: 36px; text-align: center; }
.steps .n { font-family: var(--f-hand); font-size: 44px; line-height: 1; color: var(--gold); }
.steps h3 { font-family: var(--f-sans); font-size: 17px; font-weight: 700; margin-top: 8px; color: var(--cream); }
.steps p { font-size: 15px; margin-top: 6px; }
.list-bar {
  position: fixed; left: 50%; bottom: 20px; z-index: var(--z-list);
  width: min(680px, calc(100% - 32px)); background: var(--ink); color: var(--paper-2);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .45); padding: 12px 12px 12px 22px;
  display: flex; align-items: center; gap: 14px;
  transform: translate(-50%, 0); transition: transform .35s var(--ease-out), opacity .25s ease;
}
.list-bar[hidden] { display: flex; transform: translate(-50%, calc(100% + 120px)); opacity: 0; pointer-events: none; visibility: hidden; transition: transform .25s ease-in, opacity .2s ease, visibility 0s linear .25s; }
.list-bar .info { flex: 1; min-width: 0; }
.list-bar .count { font-size: 14px; font-weight: 700; }
.list-bar .summary { font-size: 13px; color: var(--on-dark-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-bar .clear { border: 0; background: transparent; color: var(--on-dark-2); font-size: 13px; font-weight: 600; padding: 10px 6px; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; }
.list-bar .btn { padding: 13px 16px; white-space: nowrap; }
@media (max-width: 899px) { .list-bar { bottom: calc(16px + env(safe-area-inset-bottom)); } }
@media (max-width: 480px) { .list-bar { padding-left: 14px; gap: 8px; } .list-bar .btn span { display: none; } .list-bar .btn { padding: 13px 14px; } }

/* la ciccia */
.boat-hero { position: relative; min-height: 82vh; min-height: 82dvh; display: flex; align-items: flex-end; background: #9fb3c2; overflow: hidden; }
.boat-hero video, .boat-hero .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.boat-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 11, 5, .2) 0%, rgba(20, 11, 5, 0) 35%, rgba(20, 11, 5, .75) 100%); pointer-events: none; }
.boat-hero .sound-btn { top: 20px; right: 20px; }
.boat-hero .wrap { position: relative; z-index: 2; width: 100%; padding-bottom: 60px; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.boat-card { padding: 28px 34px; max-width: 560px; box-shadow: 0 24px 50px rgba(0, 0, 0, .35); --r: -1deg; }
.boat-card .logo { width: 300px; mix-blend-mode: multiply; }
.boat-card h1 { margin-top: 18px; font-size: clamp(38px, 4.6vw, 62px); line-height: 1; }
.boat-card p { margin-top: 12px; color: var(--text); }
.boat-hero .btn { box-shadow: 0 10px 24px rgba(0, 0, 0, .35); font-size: 15px; }
.story { padding-top: 100px; padding-bottom: 60px; --min: 320px; --gap: 56px; align-items: start; }
.story h2 { margin-top: 8px; font-size: clamp(38px, 4.4vw, 60px); line-height: 1.02; }
.story p { margin-top: 18px; font-size: 17px; line-height: 1.7; color: var(--text); }
.feature-list { margin: 14px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.feature-list li { padding: 13px 0; border-bottom: 1px dashed var(--rule); font-size: 15px; font-weight: 500; display: flex; gap: 10px; align-items: center; }
.feature-list .icon { color: var(--bordeaux); }
.depart { margin-top: 22px; font-size: 14px; color: var(--text-2); display: flex; gap: 8px; align-items: flex-start; }
.depart .icon { color: var(--bordeaux); margin-top: 3px; }
.offer { background: #fff; box-shadow: var(--sh-lift); display: flex; flex-direction: column; }
.offer img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.offer .body { padding: 30px 32px 34px; }
.offer .row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 16px; flex-wrap: wrap; }
.offer h3 { font-size: 34px; line-height: 1.1; }
.offer .price { font-size: 36px; }
.offer .time { margin-top: 6px; font-size: 15px; font-weight: 700; color: #5a3a1f; font-variant-numeric: tabular-nums; }
.offer p { margin-top: 12px; font-size: 15px; line-height: 1.65; color: var(--text); }
.fine-print { margin-top: 22px; font-size: 14px; color: #3a2718; font-weight: 500; }
.two-lists { padding: 100px 0; }
.two-lists .grid-auto { --min: 300px; --gap: 56px; }
.two-lists h2 { margin: 6px 0 24px; color: var(--cream); }
.plain-list { margin: 0; padding: 0; list-style: none; }
.plain-list.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.plain-list li { padding: 12px 0; border-bottom: 1px solid rgba(233, 201, 160, .2); font-size: 16px; color: var(--cream-2); }
.routes li { display: flex; align-items: center; gap: 16px; font-size: 18px; font-weight: 600; color: var(--cream); }
.routes .n { font-family: var(--f-hand); font-size: 26px; font-weight: 500; color: var(--gold); width: 26px; }
.boat-photos { padding-top: 90px; --min: 200px; --gap: 22px; }
.boat-photos .polaroid { box-shadow: 0 14px 28px rgba(70, 40, 15, .35); }
.request { padding-top: 100px; scroll-margin-top: 70px; }
.request-card { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); background: var(--paper); box-shadow: var(--sh-high); position: relative; }
.request-card .side { padding: clamp(32px, 5vw, 52px) clamp(24px, 4.5vw, 48px); }
.request-card .side h2 { margin-top: 6px; color: var(--cream); }
.request-card .side p { margin-top: 18px; font-size: 16px; line-height: 1.7; }
.contact-lines { margin-top: 30px; display: flex; flex-direction: column; gap: 12px; font-size: 16px; font-weight: 600; }
.contact-lines a { color: var(--cream); display: inline-flex; gap: 10px; align-items: center; width: fit-content; font-variant-numeric: tabular-nums; }
.contact-lines a.mail { color: var(--gold); }
.contact-lines .icon { color: var(--gold); }
@media (hover: hover) and (pointer: fine) { .contact-lines a:hover { color: var(--gold); } .contact-lines a.mail:hover { color: var(--cream); } }
.form-side { padding: clamp(28px, 4.5vw, 48px); }
.form { display: flex; flex-direction: column; gap: 18px; }
.form .two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 420px) { .form .two { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > span, .field > legend { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #5a3a1f; padding: 0; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.input { width: 100%; min-width: 0; border: 1px solid var(--rule); background: #fff; padding: 12px; min-height: 46px; font-size: 16px; color: var(--ink); border-radius: 0; transition: border-color .2s ease, box-shadow .2s ease; }
.input::placeholder { color: #8a7358; }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(125, 31, 31, .15); }
.input[aria-invalid="true"] { border-color: var(--bordeaux); background: #fff7f5; }
textarea.input { resize: vertical; }
.err { font-size: 13px; font-weight: 600; color: var(--bordeaux); letter-spacing: 0; text-transform: none; }
.err:empty { display: none; }
.types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.types label { position: relative; }
.types input { position: absolute; opacity: 0; inset: 0; }
.types span { display: block; height: 100%; border: 1px solid var(--ink); padding: 12px 8px; text-align: center; font-size: 14px; font-weight: 700; line-height: 1.25; cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.types small { display: block; font-weight: 500; font-size: 12px; font-variant-numeric: tabular-nums; }
.types input:checked + span { background: var(--ink); color: var(--paper-2); }
.types input:focus-visible + span { outline: 2px solid var(--bordeaux); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .types input:not(:checked) + span:hover { background: rgba(36, 22, 13, .06); } }
.guest-stepper { display: flex; align-items: center; border: 1px solid var(--rule); background: #fff; min-height: 46px; }
.guest-stepper button { border: 0; background: transparent; width: 46px; height: 44px; display: grid; place-items: center; color: var(--ink); }
.guest-stepper button:disabled { opacity: .3; cursor: default; }
.guest-stepper output { flex: 1; text-align: center; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.form .btn { font-size: 15px; padding: 16px; }
.thanks { display: flex; flex-direction: column; justify-content: center; gap: 12px; height: 100%; }
.thanks[hidden] { display: none; }
.thanks .hand { font-size: 44px; font-weight: 700; }
.thanks p { font-size: 17px; color: var(--text); }
.thanks .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; }

/* chi siamo */
.about-hero { padding: 100px 0 120px; text-align: center; }
.about-hero blockquote { margin: 12px auto 0; max-width: 1100px; font-family: var(--f-display); font-size: clamp(36px, 5.2vw, 76px); line-height: 1.05; color: var(--cream); text-wrap: balance; }
.about-hero p { margin-top: 30px; font-size: 18px; }
.about-intro { margin-top: -60px; position: relative; --min: 320px; --gap: 48px; align-items: start; }
.about-intro .polaroid { --r: -1.5deg; padding: 14px 14px 50px; box-shadow: 0 30px 60px rgba(40, 20, 5, .45); }
.about-text { margin-top: 100px; }
.about-text p { font-size: 17px; line-height: 1.75; color: var(--text); }
.about-text p:first-child { font-size: 19px; line-height: 1.7; color: var(--ink); }
.about-text p + p { margin-top: 18px; }
@media (max-width: 760px) { .about-text { margin-top: 0; } }
.timeline { padding-top: 110px; }
.timeline h2 { margin-bottom: 40px; }
.timeline article { display: flex; flex-direction: column; }
.timeline article img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.timeline .body { padding: 24px 28px 30px; }
.timeline .body .hand { font-size: 40px; font-weight: 700; margin-top: 0; color: var(--bordeaux); }
.timeline .body p { margin-top: 6px; font-size: 15px; line-height: 1.65; color: var(--text); }
.timeline .body a { display: inline-flex; gap: 6px; align-items: center; margin-top: 12px; font-size: 14px; font-weight: 700; }
.timeline .first { justify-content: center; text-align: center; }
.timeline .first .body { padding: 40px 32px; }
.timeline .first .body .hand { font-size: 60px; }
.timeline .first .body .since { font-family: var(--f-hand); font-size: 24px; color: var(--text-2); margin-top: 0; }
.values { padding-top: 110px; }
.values .band-dark { padding: 56px clamp(24px, 4.5vw, 48px); --min: 240px; --gap: 40px; box-shadow: 0 24px 50px rgba(40, 20, 5, .4); }
.values p { margin-top: 8px; font-size: 15px; line-height: 1.7; }

/* galleria */
.gallery-head { padding-top: 80px; padding-bottom: 40px; display: flex; justify-content: space-between; align-items: end; gap: 28px; flex-wrap: wrap; }
.gallery-head .display { margin-top: 8px; color: var(--cream); }
.gallery-head a { font-family: var(--f-hand); font-size: 32px; color: var(--gold); }
@media (hover: hover) and (pointer: fine) { .gallery-head a:hover { color: var(--cream); } }
.masonry { columns: 4 240px; column-gap: 26px; margin-top: 40px; }
.shot { display: block; width: 100%; border: 0; margin: 0 0 26px; background: #fff; padding: 10px 10px 36px; box-shadow: var(--sh-dark); break-inside: avoid; position: relative; cursor: zoom-in; transition: transform .3s var(--ease-out); }
.shot[hidden] { display: none; }
.shot img { width: 100%; aspect-ratio: var(--ar); object-fit: cover; background: var(--sand); }
.shot .cap { position: absolute; left: 14px; bottom: 6px; font-family: var(--f-hand); font-size: 22px; color: var(--text-2); }
@media (hover: hover) and (pointer: fine) { .shot:hover { transform: rotate(0deg) scale(1.02); z-index: 2; } }
.lightbox {
  position: fixed; inset: 0; z-index: var(--z-lightbox);
  background: rgba(14, 8, 4, .94); display: flex; align-items: center; justify-content: center;
  padding: 60px 80px; opacity: 0; pointer-events: none;
  transition: opacity .22s var(--ease-out);
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; transform: scale(.97); transition: transform .25s var(--ease-out); }
.lightbox.is-open figure { transform: none; }
.lightbox img { max-width: 100%; max-height: calc(100dvh - 170px); width: auto; background: #fff; padding: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.lightbox figcaption { margin-top: 14px; font-family: var(--f-hand); font-size: 26px; color: var(--gold); }
.lightbox figcaption span { font-family: var(--f-sans); font-size: 13px; font-weight: 600; color: var(--on-dark-2); margin-left: 10px; font-variant-numeric: tabular-nums; }
.lb-btn { position: absolute; top: 50%; transform: translateY(-50%); border: 0; background: var(--paper-2); color: var(--ink); width: 48px; height: 48px; display: grid; place-items: center; transition: background-color .2s ease, transform .16s var(--ease-out); }
.lb-btn:active { transform: translateY(-50%) scale(.95); }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-close { position: absolute; top: 14px; right: 14px; border: 1px solid rgba(245, 238, 226, .35); background: transparent; color: var(--paper-2); width: 48px; height: 48px; display: grid; place-items: center; }
@media (max-width: 700px) {
  .lightbox { padding: 70px 12px 90px; }
  .lb-btn { top: auto; bottom: 20px; transform: none; }
  .lb-btn:active { transform: scale(.95); }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
}

/* privacy */
.legal { padding-top: 80px; }
.legal .paper { max-width: 820px; margin: 0 auto; }
.legal h1 { font-size: clamp(40px, 5vw, 64px); line-height: 1; }
.legal h2 { font-size: 26px; margin-top: 36px; }
.legal p, .legal li { font-size: 16px; line-height: 1.7; color: var(--text); max-width: 68ch; }
.legal p { margin-top: 12px; }
.legal ul { padding-left: 1.2em; }

/* 404 */
.notfound { min-height: 70vh; display: grid; place-items: center; padding: 80px var(--gutter); text-align: center; }
.notfound .paper { max-width: 560px; --r: -1deg; }
.notfound p { margin-top: 16px; color: var(--text-2); }
.notfound .btn { margin-top: 26px; }

/* ==========================================================================
   Movimento: "cade e si appunta" (solo con JS e senza reduced-motion)
   ========================================================================== */
html.motion .tilt:not(.in), html.motion .drop:not(.in) { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}


/* tira di polaroid nel menu mobile: si scorre col dito */
.mm-strip {
  position: relative; display: flex; gap: 14px; margin: 26px calc(var(--gutter) * -1) 0;
  padding: 14px var(--gutter) 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.mm-strip::-webkit-scrollbar { display: none; }
.mm-pola {
  flex: 0 0 auto; width: 118px; scroll-snap-align: start;
  background: #fff; padding: 7px 7px 28px; position: relative;
  box-shadow: 0 12px 24px rgba(0, 0, 0, .5);
  transform: rotate(var(--r, -2deg)); opacity: 0; translate: 0 24px;
  transition: opacity .45s var(--ease-out), translate .55s var(--ease-out), transform .2s var(--ease-out);
}
.mm-pola:nth-child(even) { --r: 2deg; }
.mm-pola img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--sand); }
.mm-pola span { position: absolute; left: 9px; bottom: 4px; font-family: var(--f-hand); font-size: 19px; color: var(--text-2); }
.mm-pola:active { transform: rotate(0deg) scale(.96); }
.mobile-menu.is-open .mm-pola { opacity: 1; translate: 0 0; transition-delay: calc(.5s + var(--i) * .07s); }
.mobile-menu nav a .t { font-size: clamp(32px, 9.5vw, 48px); }
@media (prefers-reduced-motion: reduce) { .mm-pola { opacity: 1; translate: none; } }
.mobile-menu nav, .mm-strip, .mobile-menu__foot { flex-shrink: 0; }
/* centrato in verticale ma, se lo schermo è basso, scorre senza tagliare la parte alta */
.mobile-menu { justify-content: flex-start; }
.mobile-menu nav { margin-top: auto; }
.mobile-menu__foot { margin-bottom: auto; }

/* ==========================================================================
   Pila di polaroid (La Ciccia): si trascinano, clic = ingrandisci
   ========================================================================== */
.pile-section { padding-top: 90px; }
.pile-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 24px; flex-wrap: wrap; }
.pile-head .hand { font-size: 26px; }
.pile { position: relative; height: clamp(460px, 62vh, 600px); margin-top: 12px; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.pile-card {
  position: absolute; left: 50%; top: 50%; width: clamp(150px, 38vw, 250px);
  border: 0; background: #fff; padding: 10px 10px 40px; cursor: grab;
  box-shadow: 0 22px 50px rgba(70, 40, 15, .38);
  transform: translate(-50%, -50%); will-change: transform;
  transition: transform .9s cubic-bezier(.22, 1, .36, 1), box-shadow .25s ease;
  touch-action: pan-y; -webkit-tap-highlight-color: transparent;
}
.pile-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--sand); pointer-events: none; -webkit-user-drag: none; }
.pile-card .cap { position: absolute; left: 0; right: 0; bottom: 6px; text-align: center; font-family: var(--f-hand); font-size: 23px; color: var(--bordeaux); }
.pile-card.is-dragging { cursor: grabbing; transition: box-shadow .25s ease; box-shadow: 0 34px 70px rgba(70, 40, 15, .45); }
@media (hover: hover) and (pointer: fine) { .pile-card:hover { box-shadow: 0 28px 60px rgba(70, 40, 15, .45); } }

/* ==========================================================================
   WhatsApp fluttuante in basso a destra
   ========================================================================== */
.wa-float {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 140;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 10px 26px rgba(20, 60, 30, .38), 0 2px 6px rgba(0, 0, 0, .18);
  transition: transform .2s var(--ease-out), box-shadow .2s ease, opacity .25s ease, visibility 0s;
  animation: wa-in .5s var(--ease-out) 1.2s backwards;
}
.wa-float .icon { width: 30px; height: 30px; }
.wa-float:active { transform: scale(.94); }
.wa-float:focus-visible { outline-color: var(--ink); }
.wa-float__tip {
  position: absolute; right: calc(100% + 12px); top: 50%; translate: 0 -50%;
  background: var(--ink); color: var(--cream); padding: 8px 12px; font-size: 13px; font-weight: 700; white-space: nowrap;
  opacity: 0; transform: translateX(6px); pointer-events: none; transition: opacity .2s ease, transform .2s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .wa-float:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(20, 60, 30, .45), 0 2px 6px rgba(0, 0, 0, .18); color: #fff; }
  .wa-float:hover .wa-float__tip { opacity: 1; transform: none; }
}
@keyframes wa-in { from { opacity: 0; transform: translateY(16px) scale(.9); } }
/* si fa da parte quando serve lo spazio: menu aperto, lista della bottega */
@media (prefers-reduced-motion: reduce) { .wa-float { animation: none; } }

/* ---------- ritocchi dalla revisione: bersagli tattili ≥ 44px ---------- */
.site-footer .phones a { padding: 12px 0; }
.site-footer .phones { line-height: 1.25; margin-top: 4px; }
.footer-bottom nav { gap: 4px 18px; }
.footer-bottom nav a { display: inline-block; padding: 12px 0; }
.contact-lines { gap: 2px; }
.contact-lines a { padding: 10px 0; }
.timeline .body a { padding: 11px 0; margin-top: 4px; }
@media (max-width: 600px) { .about-hero blockquote { font-size: 30px; line-height: 1.12; } }

/* mappa: immagine statica, Google Maps si carica solo al tocco (più veloce e rispettoso della privacy) */
.map-load { position: relative; flex: 1; display: block; width: 100%; min-height: 280px; padding: 0; border: 0; background: var(--sand); cursor: pointer; overflow: hidden; }
.map-load img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.map-load__cta {
  position: absolute; left: 50%; bottom: 16px; translate: -50% 0; display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: var(--cream); padding: 11px 16px; font-size: 13px; font-weight: 700; white-space: nowrap;
  box-shadow: 0 8px 18px rgba(40, 20, 5, .35); transition: background-color .2s ease;
}
.map-load__cta .icon { color: var(--gold); }
.map-load__osm { position: absolute; right: 4px; top: 4px; font-size: 10px; background: rgba(255, 255, 255, .8); color: #333; padding: 1px 4px; }
.map-load:active .map-load__cta { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .map-load:hover img { transform: scale(1.03); } .map-load:hover .map-load__cta { background: var(--bordeaux); } }

/* pulsante contatti: tocco → si aprono WhatsApp e Chiama (le prenotazioni sono solo al telefono) */
.fab { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 140; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; transition: opacity .25s ease, visibility 0s; }
.fab .wa-float { position: relative; right: auto; bottom: auto; border: 0; cursor: pointer; }
.fab__x { position: absolute; opacity: 0; transform: rotate(-90deg) scale(.6); transition: opacity .2s ease, transform .3s var(--ease-out); stroke-width: 2.2; }
.fab__wa { transition: opacity .2s ease, transform .3s var(--ease-out); }
.fab.is-open .fab__wa { opacity: 0; transform: rotate(90deg) scale(.6); }
.fab.is-open .fab__x { opacity: 1; transform: none; }
.fab.is-open .wa-float { background: var(--ink); box-shadow: 0 10px 26px rgba(20, 10, 5, .45); }
.fab.is-open .wa-float__tip { opacity: 0 !important; }
.fab__menu { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.fab__opt {
  display: flex; align-items: center; gap: 10px; color: var(--ink);
  opacity: 0; pointer-events: none; transform: translateY(10px) scale(.96); transform-origin: 100% 100%;
  transition: opacity .18s ease, transform .22s var(--ease-out);
}
.fab__opt span { background: var(--paper); padding: 10px 14px; font-size: 14px; font-weight: 700; white-space: nowrap; box-shadow: 0 8px 20px rgba(40, 20, 5, .3); font-variant-numeric: tabular-nums; }
.fab__opt i { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: 0 8px 20px rgba(40, 20, 5, .35); }
.fab__opt i .icon { width: 24px; height: 24px; }
.fab__opt--wa i { background: #25d366; }
.fab__opt--tel i { background: var(--bordeaux); }
.fab.is-open .fab__opt { opacity: 1; pointer-events: auto; transform: none; transition: opacity .2s ease, transform .28s var(--ease-out); transition-delay: calc(var(--i) * 50ms); }
.fab__opt:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .fab__opt:hover span { background: #fff; color: var(--ink); } }
.menu-open .fab, body:has(.list-bar:not([hidden])) .fab { opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility 0s linear .2s; }
.product .ask { font-family: var(--f-hand); font-size: 20px; color: var(--text-3); line-height: 1.1; }
.menu-item { padding: 12px 0; border-bottom: 1px dashed rgba(205, 185, 152, .6); }
.menu-section .menu-item:last-child { border-bottom: 0; }

/* recensioni: bigliettini appuntati sul legno */
.reviews { padding-bottom: 110px; }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(310px, 100%), 1fr)); gap: 34px 28px; align-items: start; }
.review { margin: 0; background: var(--paper); padding: 30px 26px 22px; box-shadow: var(--sh-card); position: relative; }
.review:nth-child(3n+2) { background: #fffaf0; }
.review blockquote { margin: 0; font-family: var(--f-display); font-size: 21px; line-height: 1.35; color: var(--ink); text-wrap: pretty; }
.review figcaption { margin-top: 16px; font-size: 13px; color: var(--text-2); }
.review .who { font-family: var(--f-hand); font-size: 24px; color: var(--bordeaux); }

/* ==========================================================================
   Cambio pagina dal menu mobile: il menu stesso fa da sipario
   1) clic: le voci svaniscono, compare il nome della pagina
   2) la pagina nuova si apre col menu ancora giù (html.menu-arrive)
   3) il menu si srotola verso l'alto e scopre la pagina
   ========================================================================== */
.mobile-menu__bg { background: var(--walnut) url(../img/poster-menu.webp) center / cover; }
.mobile-menu__bg video { transition: transform 1.4s var(--ease-out), opacity .35s ease; }
.mm-label {
  position: absolute; left: 0; right: 0; top: 50%; z-index: 2; margin: 0; translate: 0 -50%;
  text-align: center; font-family: var(--f-hand); font-size: 46px; line-height: 1.1; color: var(--gold);
  text-shadow: 0 2px 18px rgba(0, 0, 0, .5); padding: 0 var(--gutter);
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity .3s ease .35s, transform .4s var(--ease-out) .35s;
}
.mobile-menu nav, .mm-strip, .mobile-menu__foot { transition-property: opacity, transform; }
.mobile-menu.is-leaving nav, .mobile-menu.is-leaving .mm-strip, .mobile-menu.is-leaving .mobile-menu__foot {
  opacity: 0 !important; transform: translateY(-14px) !important; transition: opacity .22s ease, transform .3s var(--ease-out) !important;
}
.mobile-menu.is-leaving .mm-label { opacity: 1; transform: none; transition: opacity .3s ease .12s, transform .4s var(--ease-out) .12s; }
.mobile-menu.is-leaving .mobile-menu__bg video { opacity: 0; }

html.menu-arrive .mobile-menu { clip-path: inset(0 0 0 0); visibility: visible; pointer-events: none; transition: none; }
html.menu-arrive .mobile-menu nav, html.menu-arrive .mm-strip, html.menu-arrive .mobile-menu__foot { opacity: 0 !important; transition: none !important; }
html.menu-arrive .mobile-menu__bg video { opacity: 0; transform: none; }
html.menu-arrive .mm-label { opacity: 1; transform: none; transition: none; }
