/* Primavera al Lago
   Colori del marchio: blu del logo, grigio chiaro, bianco, quasi nero. */
:root {
  --tela: #f0f0f0;
  --carta: #ffffff;
  --blu: #3d7ab3;
  --ink: #1a1a1a;
  --muted: #5b6269;
  --ok: #2e9e5b;
  --no: #c32b2b;
  --line: rgba(26, 26, 26, .14);
  --display: "Bodoni Moda", "Bodoni 72", Didot, "Times New Roman", serif;
  --body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gut: clamp(20px, 4.5vw, 64px);
  --max: 1280px;
  --hh: 92px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --r-lg: 28px;
}

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .28s ease both; }
::view-transition-new(root) { animation: vt-in .5s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-14px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(22px); } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--tela);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible, .dark :focus-visible, .drawer :focus-visible, .site-footer :focus-visible { outline-color: #fff; }
::selection { background: var(--blu); color: #fff; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--carta); padding: .6rem 1rem; border-radius: 8px; }
.skip:focus { left: 8px; }

h2, .h2 {
  font: 600 clamp(2.3rem, 5.4vw, 4.5rem)/1 var(--display);
  letter-spacing: -.02em;
  font-variation-settings: "opsz" 36;
  text-wrap: balance;
}
.lede { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.5; max-width: 34em; }
.prose p + p { margin-top: 1em; }
.prose { max-width: 36em; color: color-mix(in srgb, var(--ink) 86%, transparent); }

svg.lucide, i[data-lucide] { width: 1.15em; height: 1.15em; flex: none; }
i[data-lucide] { display: inline-block; }

/* Pulsanti */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 52px; padding: .7em 1.5em;
  border-radius: 999px; border: 2px solid var(--blu);
  background: var(--blu); color: #fff;
  font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background .25s, border-color .25s, color .25s, transform .25s var(--ease);
}
.btn:hover { background: var(--ink); border-color: var(--ink); transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--ink); border-color: var(--ink); color: var(--tela); }
.btn-sm { min-height: 44px; padding: .4em 1.15em; font-size: .95rem; }
.on-dark .btn { background: #fff; border-color: #fff; color: var(--blu); }
.on-dark .btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.on-dark .btn-line { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.on-dark .btn-line:hover { background: #fff; border-color: #fff; color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.text-link {
  font-weight: 600; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat;
  padding-bottom: 3px; transition: background-size .35s var(--ease), color .2s;
}
.text-link:hover { color: var(--blu); background-size: 35% 2px; }

/* Logo: scritta e farfalla su due livelli */
.logo-mark { position: relative; display: block; aspect-ratio: 1254 / 770; }
.logo-mark .lm-s { width: 100%; height: 100%; }
.logo-mark .lm-f { position: absolute; left: 64.91%; top: 0; width: 32.85%; height: auto; transform-origin: 48% 62%; }
@keyframes flutter { from { scale: 1 1; } to { scale: .5 1; } }
@keyframes fly-in {
  0% { opacity: 0; transform: translate(160%, -190%) rotate(34deg); }
  25% { opacity: 1; }
  60% { transform: translate(-22%, 24%) rotate(-14deg); }
  100% { opacity: 1; transform: none; }
}

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  height: var(--hh); padding-inline: var(--gut);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  background: var(--blu); color: #fff;
  transition: box-shadow .3s;
  view-transition-name: site-header;
}
.site-header.scrolled { box-shadow: 0 10px 30px -14px rgba(26, 26, 26, .55); }
.logo { display: block; height: calc(var(--hh) - 16px); aspect-ratio: 1254 / 770; flex: none; }
.logo:hover .lm-f, .logo:focus-visible .lm-f { animation: flutter .2s ease-in-out 6 alternate; }
.nav { display: flex; gap: clamp(1.2rem, 2.6vw, 2.4rem); }
.nav a { position: relative; text-decoration: none; font-weight: 600; padding: .6rem 0; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .25rem; height: 2px;
  background: #fff; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.burger { display: none; }

/* Menu a tutto schermo (mobile) */
.drawer {
  position: fixed; inset: 0; z-index: 55;
  background: var(--blu); color: #fff;
  padding: calc(var(--hh) + 2rem) var(--gut) calc(2rem + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: circle(0 at calc(100% - 44px) 36px);
  visibility: hidden;
  transition: clip-path .65s var(--ease), visibility 0s .65s;
}
.drawer.open { clip-path: circle(150% at calc(100% - 44px) 36px); visibility: visible; transition: clip-path .65s var(--ease), visibility 0s; }
.drawer-links a {
  display: block; padding: .18em 0;
  font: italic 600 clamp(2.6rem, 13vw, 4.2rem)/1.1 var(--display); letter-spacing: -.02em;
  text-decoration: none;
  opacity: 0; translate: 0 30px;
  transition: opacity .5s, translate .6s var(--ease), color .2s;
}
.drawer.open .drawer-links a { opacity: .7; translate: none; transition-delay: calc(.12s + var(--i) * .06s); }
.drawer-links a { color: #fff; opacity: .7; }
.drawer.open .drawer-links a[aria-current="page"], .drawer.open .drawer-links a:hover { opacity: 1; }
.drawer-foot { display: grid; gap: .9rem; font-size: 1rem; color: #fff; }
.drawer-foot .btn { width: 100%; }
body.nav-open { overflow: hidden; }

/* Cartello appeso: aperto / chiuso */
.sign { display: inline-block; color: var(--ink); line-height: 1; }
.sign:empty { display: none; }
.sign-hang { position: relative; display: inline-grid; justify-items: center; padding-top: 4px; transform-origin: 50% 4px; }
.sign-hang::before { content: ""; position: absolute; top: 0; left: 50%; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: currentColor; }
.sign-rope { display: block; width: 100%; height: 26px; opacity: .75; }
.sign-board {
  display: grid; gap: .32em; justify-items: center; min-width: 9.6em; padding: .78em 1.25em .82em;
  border-radius: 9px; background: var(--blu); color: #fff; text-align: center;
  outline: 1px solid rgba(255, 255, 255, .6); outline-offset: -5px;
  box-shadow: 0 12px 20px -12px rgba(26, 26, 26, .6);
}
.sign-board b { font: 800 1.02rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; margin-right: -.16em; }
.sign-board small { font: 500 .84rem/1.15 var(--body); white-space: nowrap; }
.sign.closed .sign-board { background: var(--no); }
.on-dark .sign { color: #fff; }
.on-dark .sign-board { background: #fff; color: var(--blu); outline-color: color-mix(in srgb, var(--blu) 55%, transparent); }
.on-dark .sign.closed .sign-board { background: var(--no); color: #fff; outline-color: rgba(255, 255, 255, .6); }
@keyframes swing {
  0% { rotate: -9deg; } 22% { rotate: 6.5deg; } 44% { rotate: -4deg; } 66% { rotate: 2.2deg; } 84% { rotate: -1deg; } 100% { rotate: 0deg; }
}
html.anim.ready .hero .sign-hang, html.anim.ready .page-hero .sign-hang, [data-reveal].in .sign-hang, .drawer.open .sign-hang { animation: swing 2.6s .5s cubic-bezier(.36, 0, .4, 1) both; }

/* Piatti rotondi: la firma del sito */
.plate {
  position: relative; aspect-ratio: 1; border-radius: 50%;
  box-shadow: 0 34px 60px -26px rgba(26, 26, 26, .55), 0 0 0 1px rgba(26, 26, 26, .05);
}
.plate img {
  width: 100%; height: 100%; border-radius: 50%;
  object-fit: cover; object-position: var(--pos, 50% 50%);
  will-change: rotate;
}

/* Caricamento iniziale */
.loader { display: none; }
html.loading .loader {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: var(--blu); color: #fff;
  opacity: 1;
  transition: opacity .6s ease;
}
html.loading.loaded .loader { opacity: 0; pointer-events: none; }
.loader-in { display: grid; justify-items: center; gap: 2rem; }
.loader .logo-mark { width: min(64vw, 300px); }
.loader .lm-s { opacity: 0; animation: rise .9s .05s var(--ease) forwards; }
.loader .lm-f { opacity: 0; animation: fly-in 1.15s .2s cubic-bezier(.3, .7, .2, 1) forwards, flutter .16s .2s ease-in-out 9 alternate; }
.loader-bar { width: min(40vw, 150px); height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .3); overflow: hidden; }
.loader-bar::after { content: ""; display: block; height: 100%; background: #fff; transform-origin: left; transform: scaleX(0); animation: load-bar 1.3s cubic-bezier(.6, 0, .2, 1) forwards; }
@keyframes load-bar { to { transform: scaleX(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes plate-in { from { opacity: 0; transform: scale(.7) rotate(-50deg); } to { opacity: 1; transform: none; } }
@keyframes spin { to { rotate: 360deg; } }

/* Entrata di pagina e comparsa allo scroll (solo con JS attivo) */
html.anim:not(.ready) .enter, html.anim:not(.ready) .enter-plate { opacity: 0; }
html.anim.ready .enter { animation: rise 1s var(--ease) both; animation-delay: var(--d, 0s); }
html.anim.ready .enter-plate { animation: plate-in 1.3s var(--ease) both; animation-delay: var(--d, 0s); }
html.anim [data-reveal] { opacity: 0; translate: 0 34px; transition: opacity .9s var(--ease), translate .9s var(--ease); transition-delay: var(--d, 0s); }
html.anim [data-reveal].in { opacity: 1; translate: none; }
html.anim [data-reveal="clip"] { opacity: 1; translate: none; }
html.anim [data-reveal="clip"] img { clip-path: inset(100% 0 0 0); scale: 1.2; transition: clip-path 1.2s var(--ease), scale 1.6s var(--ease); transition-delay: var(--d, 0s); }
html.anim [data-reveal="clip"].in img { clip-path: inset(0 0 0 0); scale: 1; }

/* Hero home */
.hero { position: relative; padding: calc(var(--hh) + 2vh) var(--gut) clamp(2.5rem, 6vh, 5rem); overflow: hidden; }
.hero-in { position: relative; max-width: var(--max); margin-inline: auto; min-height: calc(100svh - var(--hh) - 8vh); display: flex; flex-direction: column; justify-content: center; }
.hero-title { position: relative; z-index: 2; font: italic 700 clamp(2.7rem, 6.8vw, 6.6rem)/.96 var(--display); letter-spacing: -.03em; margin-left: -.03em; }
.hero-title span { display: block; }
.hero-title .l2 { padding-left: .85em; }
.hero-copy { position: relative; z-index: 2; max-width: 31rem; margin-top: clamp(1.6rem, 5vh, 3.2rem); display: grid; gap: 1.5rem; }
.hero-plates { position: absolute; inset: 0; pointer-events: none; }
.hero .p-a { position: absolute; right: -3%; top: 50%; translate: 0 -48%; width: clamp(320px, 38vw, 520px); }
.hero .p-b { position: absolute; right: clamp(270px, 32vw, 450px); bottom: -1%; width: clamp(150px, 17vw, 240px); }

/* Nastro scorrevole */
/* Niente overflow sull'elemento ruotato: il ritaglio di un livello ruotato non viene antialiasato su mobile
   e il bordo esce seghettato. Lo sbordo orizzontale lo taglia il body (overflow-x: clip). */
.marquee { background: var(--blu) padding-box; border-block: 1px solid transparent; color: #fff; padding: clamp(.9rem, 2vw, 1.4rem) 0; rotate: -1.2deg; margin: 1rem -2vw 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee ul { display: flex; flex: none; }
.marquee li { display: flex; align-items: center; font: italic 600 clamp(1.5rem, 3.4vw, 2.6rem)/1 var(--display); white-space: nowrap; }
.marquee li::after { content: ""; width: .42em; height: .42em; border-radius: 50%; background: #fff; margin-inline: .9em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sezioni */
.sec { padding-block: clamp(4.5rem, 11vw, 9rem); }
.sec-tight { padding-block: clamp(3rem, 7vw, 5.5rem); }
.sec-flush { padding-top: 0; }
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.split-text { display: grid; gap: 1.5rem; justify-items: start; }
.split.flip > :first-child { order: 2; }

/* Collage foto giardino */
.collage { position: relative; padding-bottom: 16%; }
.collage .ph-main { width: 88%; }
.collage .ph-over { position: absolute; right: 0; bottom: 0; width: 52%; }
.collage .ph-over img { border: 8px solid var(--bg, var(--tela)); border-radius: calc(var(--r-lg) + 8px); }
.ph { border-radius: var(--r-lg); overflow: hidden; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph-tall { aspect-ratio: 4 / 5; }
.ph-sala { aspect-ratio: 4 / 5; max-width: 440px; }

/* Carosello piatti */
.rail-head { display: flex; align-items: end; gap: 1.2rem clamp(1.2rem, 2.5vw, 2.4rem); margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.rail-head h2 { flex: 0 1 auto; max-width: 9.5em; min-width: 0; }
.rail-head .btn { flex: none; margin-bottom: .35rem; }
.rail-nav { display: flex; gap: .6rem; flex: none; margin-left: auto; margin-bottom: .35rem; }
.rail-nav button {
  width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--ink); background: none;
  display: grid; place-items: center; cursor: pointer; transition: background .2s, color .2s, opacity .2s;
}
.rail-nav button:hover { background: var(--ink); color: var(--tela); }
.rail-nav button:disabled { opacity: .3; pointer-events: none; }
.rail {
  display: flex; gap: clamp(1.2rem, 3vw, 2.6rem);
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 1rem max(var(--gut), calc((100vw - var(--max)) / 2 + var(--gut))) 3.2rem;
  scroll-padding-inline: max(var(--gut), calc((100vw - var(--max)) / 2 + var(--gut)));
  cursor: grab;
}
.rail::-webkit-scrollbar { display: none; }
.rail.dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.rail.dragging a { pointer-events: none; }
.card { flex: none; width: clamp(230px, 24vw, 300px); scroll-snap-align: start; display: grid; gap: 1.2rem; align-content: start; }
.card:nth-child(even) { margin-top: 2.6rem; }
.card h3 { font: 600 1.55rem/1.1 var(--display); letter-spacing: -.01em; }
.card p { color: var(--muted); font-size: .98rem; line-height: 1.45; margin-top: .35rem; }
.price { font: italic 600 1.25rem/1 var(--display); color: var(--blu); white-space: nowrap; }

/* Fascia scura */
.dark { background: var(--blu); color: #fff; }
.dark .prose { color: #fff; }
.band { border-radius: clamp(28px, 5vw, 64px); margin-inline: clamp(8px, 1.4vw, 24px); }
.tags-wrap { justify-self: stretch; max-width: 31rem; }
.tags-label { font-weight: 600; font-size: .95rem; margin-bottom: .7rem; }
.tags { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(1rem, 3vw, 2rem); border-bottom: 1px solid rgba(255, 255, 255, .45); }
.tags li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.tags li { padding: .75rem 0; border-top: 1px solid rgba(255, 255, 255, .45); font: italic 600 clamp(1rem, 1.6vw, 1.3rem)/1.2 var(--display); }

/* Elenco servizi */
.rows li { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem clamp(1.5rem, 5vw, 5rem); align-items: baseline; padding: clamp(1.3rem, 2.6vw, 2.2rem) 0; border-top: 1px solid var(--line); }
.rows li:last-child { border-bottom: 1px solid var(--line); }
.rows h3 { font: 600 clamp(1.6rem, 3.2vw, 2.6rem)/1.08 var(--display); letter-spacing: -.015em; font-variation-settings: "opsz" 36; }
.rows p { color: var(--muted); max-width: 32em; }

/* Prenotazione */
.book {
  position: relative; background: var(--carta); border-radius: var(--r-lg);
  padding: clamp(1.6rem, 4vw, 3.6rem);
  display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: clamp(1.6rem, 3vw, 2.6rem) clamp(1.6rem, 4vw, 4.5rem); align-items: start;
}
.book h2 { grid-column: 1 / -1; font-size: clamp(2.2rem, 4.4vw, 3.8rem); padding-right: 11rem; }
.book > .sign { position: absolute; top: -5px; right: clamp(1.4rem, 4vw, 3.6rem); }
.btn-lg { min-height: 62px; padding: .8em 1.9em; font-size: 1.15rem; }
.book h3 { font: 700 .95rem/1.2 var(--body); color: var(--blu); margin-bottom: .6rem; }
.book-hours { margin: 0; }
.book-hours div { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px dashed var(--line); }
.book-hours dt { font-weight: 600; }
.book-hours dd { margin: 0; font-variant-numeric: tabular-nums; }
.book address { font-style: normal; margin-bottom: 1.1rem; }
.tel-big {
  display: inline-block; font: italic 700 clamp(2.9rem, 9.6vw, 8.4rem)/.9 var(--display); letter-spacing: -.035em;
  text-decoration: none; white-space: nowrap; transition: color .25s;
}
.tel-big:hover { color: var(--blu); }

/* Testata pagine interne */
.page-hero { padding: calc(var(--hh) + clamp(2.5rem, 8vw, 6rem)) 0 clamp(2rem, 5vw, 4rem); }
.page-hero h1 { font: italic 700 clamp(3.4rem, 12vw, 10.5rem)/.9 var(--display); letter-spacing: -.035em; margin-left: -.03em; }
.page-hero .lede { margin-top: clamp(1.2rem, 3vw, 2rem); }
.page-hero-row { display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; }

/* Il ristorante */
.wide-photo { aspect-ratio: 16 / 8; max-width: 900px; margin-inline: auto; }
.duo { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.duo .h2 { position: sticky; top: calc(var(--hh) + 2rem); }
.plates-row { display: flex; align-items: flex-start; justify-content: center; gap: clamp(.6rem, 2.5vw, 2.2rem); padding-inline: var(--gut); }
.plates-row .plate { flex: 1 1 0; max-width: 230px; min-width: 0; }
.plates-row .plate:nth-child(even) { margin-top: clamp(1.2rem, 4vw, 3.4rem); }

/* Menù */
.chips {
  position: sticky; top: var(--hh); z-index: 40;
  background: color-mix(in srgb, var(--tela) 90%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-block: 1px solid var(--line);
}
.chips ul { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; padding: .7rem var(--gut); max-width: calc(var(--max)); margin-inline: auto; }
.chips ul::-webkit-scrollbar { display: none; }
.chips ul { -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; touch-action: pan-x pan-y; cursor: grab; }
.chips li { flex: none; }
.chips a { user-select: none; -webkit-user-drag: none; }
.chips ul.dragging { cursor: grabbing; scroll-behavior: auto; user-select: none; }
.chips a {
  display: block; padding: .5em 1.1em; min-height: 44px; line-height: calc(44px - 1em - 2px);
  border-radius: 999px; border: 1px solid var(--line); background: var(--carta);
  text-decoration: none; font-weight: 500; font-size: .95rem; white-space: nowrap;
  transition: background .25s, color .25s, border-color .25s;
}
.chips a:hover { border-color: var(--ink); }
.chips a.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.menu-sec { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(1.5rem, 5vw, 5rem); padding-block: clamp(3rem, 7vw, 6rem); border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--hh) + 60px); }
.menu-sec:last-of-type { border-bottom: 0; }
.menu-side { position: sticky; top: calc(var(--hh) + 90px); align-self: start; display: grid; gap: 1.6rem; }
.menu-side h2 { font-size: clamp(2.2rem, 4.2vw, 3.6rem); }
.menu-side .note { color: var(--muted); font-size: .98rem; max-width: 22em; }
.menu-extras { background: var(--carta); border-radius: 16px; padding: 1.1rem 1.25rem 1.2rem; max-width: 24rem; }
.menu-extras h3 { font: 700 .95rem/1.2 var(--body); color: var(--blu); margin-bottom: .5rem; }
.menu-extras dl { margin: 0; }
.menu-extras dl div { display: flex; justify-content: space-between; gap: 1rem; padding: .38rem 0; font-size: .95rem; }
.menu-extras dl div + div { border-top: 1px solid var(--line); }
.menu-extras dd { margin: 0; white-space: nowrap; font-weight: 600; font-variant-numeric: tabular-nums; }
.menu-extras p { margin-top: .6rem; color: var(--muted); font-size: .85rem; line-height: 1.4; }
.menu-plates { display: flex; }
.menu-plates .plate { width: min(58%, 210px); }
.menu-plates .plate + .plate { width: min(40%, 150px); margin: auto 0 -6% -9%; }
.menu-groups { display: grid; gap: clamp(2.2rem, 4vw, 3.4rem); }
.menu-group h3 { font: italic 600 1.7rem/1.1 var(--display); color: var(--blu); margin-bottom: .8rem; }
.dishes.cols { columns: 2; column-gap: clamp(1.5rem, 4vw, 3.5rem); }
.dish { break-inside: avoid; padding: .85rem 0; border-bottom: 1px dashed var(--line); }
.dish-top { display: flex; align-items: baseline; gap: .8rem; justify-content: space-between; }
.dish-top h4 { margin: 0; font: 600 1.08rem/1.3 var(--body); }
.dish p { color: var(--muted); font-size: .95rem; line-height: 1.45; margin-top: .15rem; max-width: 34em; padding-right: 3.5rem; }
.allergeni { color: var(--muted); font-size: .95rem; max-width: 46em; }

/* Contatti */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 430px); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.contact-main { display: grid; gap: 2rem; justify-items: start; }
.contact-main .tel-big { font-size: clamp(2.9rem, 7.6vw, 6.4rem); }
.contact-main address { font: 600 clamp(1.5rem, 2.6vw, 2.1rem)/1.2 var(--display); font-style: normal; }
.hours-card { background: var(--blu); color: #fff; border-radius: var(--r-lg); padding: clamp(1.6rem, 3vw, 2.6rem); display: grid; gap: 1.2rem; }
.hours-card { grid-template-columns: 1fr auto; align-items: start; }
.hours-card h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); align-self: center; }
.hours-card .sign { justify-self: end; margin-top: -.4rem; }
.hours-card .hours { grid-column: 1 / -1; }
.hours { width: 100%; border-collapse: collapse; font-size: 1rem; }
.hours th, .hours td { padding: .62rem 0; border-bottom: 1px solid rgba(255, 255, 255, .16); text-align: left; font-weight: 400; vertical-align: top; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hours tr.today th, .hours tr.today td { font-weight: 700; }
.hours tr.today th::before { content: ""; display: inline-block; width: .5em; height: .5em; border-radius: 50%; background: #fff; margin-right: .5em; vertical-align: .1em; }
.facts { display: grid; gap: .8rem; }
.facts li { display: flex; gap: .7rem; align-items: flex-start; }
.facts svg, .facts i { margin-top: .22em; color: var(--blu); }
.socials { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.socials a { display: inline-flex; align-items: center; gap: .5em; }
.map {
  position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: clamp(320px, 46vw, 520px);
  background: var(--blu) url(img/giardino.webp) center / cover; display: grid; place-items: center;
}
.map::before { content: ""; position: absolute; inset: 0; background: rgba(26, 26, 26, .58); }
.map-cta { position: relative; display: grid; gap: 1rem; justify-items: center; text-align: center; color: #fff; padding: 2rem; }
.map-cta p { max-width: 26em; color: #fff; font-size: .95rem; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Footer */
.site-footer { background: var(--blu); color: #fff; margin-top: clamp(3rem, 8vw, 6rem); padding: clamp(3rem, 6vw, 5rem) 0 2rem; border-radius: clamp(28px, 5vw, 64px) clamp(28px, 5vw, 64px) 0 0; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1.3fr 1.1fr .9fr .9fr; gap: 2rem clamp(1.5rem, 4vw, 4rem); align-items: start; }
.foot-logo { width: min(100%, 230px); }
.foot-grid h2 { font: 600 .95rem/1.2 var(--body); letter-spacing: 0; font-variation-settings: normal; color: #fff; font-weight: 700; margin-bottom: .8rem; }
.foot-grid address { font-style: normal; }
.foot-grid li + li { margin-top: .35rem; }
.foot-grid a { text-decoration: none; }
.foot-grid a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot-legal { margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid rgba(255, 255, 255, .3); font-size: .88rem; color: #fff; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; }

/* Barra azioni mobile */
.bar { display: none; }

/* ---------- Tablet e mobile ---------- */
@media (max-width: 980px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
  .menu-sec { grid-template-columns: 1fr; }
  .menu-side { position: static; grid-template-columns: 1fr auto; align-items: center; }
  .menu-side h2 { font-size: clamp(2.2rem, 4.2vw, 3.6rem); }
.menu-side .note { grid-column: 1; }
  .menu-extras { grid-column: 1 / -1; }
  .menu-plates { grid-column: 2; grid-row: 1 / span 2; width: clamp(130px, 30vw, 240px); justify-content: flex-end; }
}

@media (max-width: 860px) {
  :root { --hh: 70px; }
  .nav, .header-cta { display: none; }
  .burger {
    display: grid; place-items: center; gap: 0; position: relative; z-index: 70;
    width: 48px; height: 48px; margin-right: -10px; border: 0; background: none; cursor: pointer;
  }
  .burger span { grid-area: 1 / 1; width: 26px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .4s var(--ease), background .2s; }
  .burger span:first-child { transform: translateY(-4.5px); }
  .burger span:last-child { transform: translateY(4.5px); }
  .nav-open .burger span:first-child { transform: rotate(45deg); }
  .nav-open .burger span:last-child { transform: rotate(-45deg); }
  .nav-open .site-header { box-shadow: none; }
  .logo { position: relative; z-index: 70; }

  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .bar {
    position: fixed; z-index: 50; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom));
    display: flex; gap: 10px; align-items: stretch;
    view-transition-name: bar;
    transition: translate .45s var(--ease);
  }
  .nav-open .bar { translate: 0 140%; }
  .bar-nav {
    flex: 1; display: grid; grid-template-columns: 1fr 1fr; padding: 5px;
    background: rgba(26, 26, 26, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-radius: 999px; box-shadow: 0 16px 34px -12px rgba(26, 26, 26, .7);
  }
  .bar a { display: flex; align-items: center; justify-content: center; gap: .45em; min-height: 48px; border-radius: 999px; color: #fff; text-decoration: none; font-weight: 600; font-size: .95rem; }
  .bar-nav a + a { position: relative; }
  .bar-nav a + a::before { content: ""; position: absolute; left: 0; top: 28%; bottom: 28%; width: 1px; background: rgba(255, 255, 255, .28); }
  .bar-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
  .bar-nav a:active { background: rgba(255, 255, 255, .16); }
  .bar .bar-call {
    flex: none; padding: 0 1.5rem; min-height: 58px;
    background: var(--blu); border: 2px solid #fff;
    box-shadow: 0 14px 28px -10px rgba(26, 26, 26, .75);
  }
  .bar .bar-call:active { background: var(--ink); }
  .site-footer { padding-bottom: 6.5rem; margin-bottom: calc(-68px - env(safe-area-inset-bottom)); }

  /* Hero home: vista aerea del ristorante come sfondo, testi in basso a sinistra */
  .hero { padding-top: var(--hh); padding-bottom: 0; color: #fff; background: var(--ink) url(img/vista-aerea.webp) center / cover no-repeat; }
  .hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(26, 26, 26, .3) 0%, rgba(26, 26, 26, .1) 28%, rgba(26, 26, 26, .6) 56%, rgba(26, 26, 26, .9) 100%); }
  .hero-in { min-height: calc(100svh - var(--hh) - 8.6rem); display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; text-align: left; padding-bottom: 2.8rem; }
  .hero-title { font-size: clamp(2.3rem, 11.4vw, 5.2rem); margin: 0; text-shadow: 0 2px 26px rgba(0, 0, 0, .4); }
  .hero-title .l2 { padding-left: 0; }
  .hero-copy { margin-top: 1rem; }
  .hero-copy .lede { font-size: 1.12rem; max-width: none; text-shadow: 0 1px 14px rgba(0, 0, 0, .45); }
  .hero-copy .actions { display: none; }
  .hero-plates { display: none; }
  .hero + .marquee { position: relative; z-index: 2; margin-top: -.9rem; }

  .split, .duo, .contact-grid { grid-template-columns: 1fr; }
  .book { grid-template-columns: 1fr; }
  .book h2 { padding: 5.6rem 0 0; }
  .book > .sign { right: auto; left: clamp(1.6rem, 4vw, 3.6rem); }
  .book .btn { width: 100%; }
  .split.flip > :first-child { order: 0; }
  .duo .h2 { position: static; }
  .rows li { grid-template-columns: 1fr; }
  .menu-plates { display: none; }
  .menu-side { grid-template-columns: 1fr; }
  .rail-head { flex-wrap: wrap; }
  .rail-head h2 { flex-basis: 100%; max-width: none; }
  .rail-nav button { width: 48px; height: 48px; }
  .card { width: 44vw; max-width: 220px; gap: .9rem; }
  .card:nth-child(even) { margin-top: 1rem; }
  .card h3 { font-size: 1.2rem; }
  .card p { font-size: .88rem; }
  .collage { width: 84%; }
  .collage .ph-tall { aspect-ratio: 1 / 1; }
  .split > .ph { aspect-ratio: 16 / 10; }
  .split > .ph-sala { aspect-ratio: 1 / 1; max-width: 78%; }
  .wide-photo { aspect-ratio: 4 / 3; }
  .contact-main .actions .btn { width: 100%; }
  .contact-main .actions { width: 100%; }
}

@media (max-width: 620px) {
  .dishes.cols { columns: 1; }
  .dish p { padding-right: 2.5rem; }
  .plates-row .plate:nth-child(n+4) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track, .sticker svg { animation: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  .drawer, .drawer-links a { transition: none; }
}
