:root {
  --navy: #00283f;
  --light: #f0faff;
  --blue: #00517f;
  --steel: #36657f;
  --sky: #6dcbff;
  --ink: #040a1c;
  --text: #595758;
  --pale: #e2f5ff;
  --glass: rgba(0, 40, 63, .38);
  --glass-line: rgba(255, 255, 255, .18);
  --ease: cubic-bezier(.77, 0, .175, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur: 1000ms;
  --radius: 6px;

  /* Scala tipografica: 7 misure, usate in tutto il sito */
  --fs-h1: 4.2rem;     /* titolo principale */
  --fs-h2: 3.3rem;     /* titoli di sezione */
  --fs-h4: 1.85rem;    /* titoli delle schede */
  --fs-body: 1.05rem;  /* testo e sottotitoli */
  --fs-small: .9rem;   /* testo secondario */
  --fs-label: .75rem;  /* etichette in maiuscolo */
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: "Asap", sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  background: var(--navy);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; transition: color .3s, background-color .3s, border-color .3s, opacity .3s, transform .3s var(--ease-out); }
img { display: block; max-width: 100%; }
svg { width: 1em; height: 1em; flex: none; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--sky); color: var(--ink); }

h1, h2 {
  font-family: "Satisfy", cursive;
  font-weight: 400;
  line-height: 1.2;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); line-height: 1.1; color: #fff; }
h2 { font-size: var(--fs-h2); color: var(--ink); margin-bottom: 1.4rem; }

.eyebrow {
  display: inline-block;
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .9rem;
}
.eyebrow::before, .eyebrow::after {
  content: "";
  display: inline-block;
  width: 22px;
  height: 1px;
  background: currentColor;
  vertical-align: middle;
  margin: 0 12px 3px;
  opacity: .5;
}
.content.left .eyebrow::before { display: none; }
.content.left .eyebrow::after { margin-right: 0; }
.blue .eyebrow, .steel .eyebrow, .navy .eyebrow { color: var(--sky); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 44px 46px 0;
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }
/* Logo: alone chiaro e sfumato, senza bordi, per leggerlo su qualsiasi sfondo */
.logo { position: relative; display: inline-block; isolation: isolate; }
.logo::before {
  content: "";
  position: absolute;
  inset: -26px -40px;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .78), rgba(255, 255, 255, .5) 55%, rgba(255, 255, 255, 0));
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  -webkit-mask-image: radial-gradient(closest-side, #000 45%, transparent);
  mask-image: radial-gradient(closest-side, #000 45%, transparent);
  pointer-events: none;
  transition: opacity .4s;
}
.logo img { height: 60px; width: auto; }
.logo:hover { transform: scale(1.02); }

.header-right { display: flex; align-items: center; gap: 12px; margin-right: -18px; }
.lang-btn, .header-cta {
  height: 44px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
}

/* Selettore lingua */
.lang { position: relative; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 12px 0 13px;
  color: #fff;
  cursor: pointer;
  transition: background .3s, border-color .3s;
}
.lang-btn .lang-ico { font-size: 1.3rem; }
.lang-btn .chev { font-size: .8rem; opacity: .75; transition: transform .35s var(--ease-out); }
.lang-btn:hover { background: rgba(0, 40, 63, .6); border-color: rgba(255, 255, 255, .35); }
.lang-btn[aria-expanded="true"] { background: #fff; color: var(--ink); border-color: #fff; }
.lang-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 196px;
  list-style: none;
  padding: 6px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 22px 50px -18px rgba(0, 20, 32, .55), 0 2px 8px rgba(0, 20, 32, .08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(.98);
  transform-origin: top right;
  transition: opacity .22s, transform .3s var(--ease-out), visibility .22s;
}
.lang.open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu a {
  display: grid;
  grid-template-columns: 1fr auto 16px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 9px;
  color: var(--ink);
  font-size: .95rem;
}
.lang-menu small { font-size: .7rem; letter-spacing: .12em; color: #8a9aa6; }
.lang-menu .check { font-size: 1rem; color: var(--blue); opacity: 0; }
.lang-menu a:hover, .lang-menu a:focus-visible { background: var(--light); outline: none; }
.lang-menu a[aria-checked="true"] { color: var(--blue); font-weight: 500; }
.lang-menu a[aria-checked="true"] .check { opacity: 1; }
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px 0 16px;
  color: #fff;
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .02em;
}
.header-cta svg { font-size: 1.05rem; color: var(--sky); }
.header-cta:hover { background: var(--sky); color: var(--ink); border-color: var(--sky); }
.header-cta:hover svg { color: var(--ink); }
/* il pulsante in header compare dopo la prima schermata (che ha già il suo) */
.header-cta { opacity: 0; transform: translateY(-6px); pointer-events: none; }
body.past-hero .header-cta { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- Multiscroll ---------- */
.ms { position: fixed; inset: 0; overflow: hidden; }
.ms-col {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  transition: transform var(--dur) var(--ease);
  will-change: transform;
}
.ms-left  { left: 0; }
.ms-right { right: 0; transform: translateY(-400vh); }

.ms-sec {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.ms-sec.light { background: var(--light); }
.ms-sec.navy  { background: radial-gradient(120% 90% at 50% 30%, #003a5a 0%, var(--navy) 60%); }
.ms-sec.blue  { background: linear-gradient(160deg, #005d91 0%, var(--blue) 55%, #00466e 100%); }
.ms-sec.steel { background: linear-gradient(160deg, #3d7090 0%, var(--steel) 60%, #2f5a72 100%); }

/* Foto: leggero zoom lento quando la sezione entra */
.ms-sec.img { background-size: cover; background-position: center; }
.ms-sec.img::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: inherit;
  background-size: cover;
  background-position: center;
  transform: scale(1.1);
  transition: transform 7s var(--ease-out);
}
.ms-sec.img.in::before { transform: scale(1); }
.ms-sec.img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 20, 32, .22) 0%, transparent 22%);
  pointer-events: none;
}

.content { position: relative; z-index: 2; padding: 120px 9% 80px; max-width: 760px; }
.content.left { text-align: left; }

.deco { position: absolute; left: 0; width: 100%; z-index: 1; pointer-events: none; transition: transform 1.6s var(--ease-out), opacity 1.6s; }
.deco.top { top: 0; }
.deco.bottom { bottom: 0; }
.ms-sec:not(.in) .deco.top { transform: translateY(-24px); opacity: .4; }
.ms-sec:not(.in) .deco.bottom { transform: translateX(40px); opacity: .4; }

/* I pesci nuotano: ondeggiano piano avanti e indietro, su e giù.
   Si usa "translate"/"rotate" (separati da "transform") così l'ingresso e il nuoto si sommano. */
.deco {
  animation: swim 7s ease-in-out infinite;
  will-change: translate, rotate;
}
.deco.top { animation-name: swim-top; animation-duration: 8.5s; }
#contatti .deco { animation-duration: 6.5s; animation-delay: -2s; }
#momenti .deco { animation-duration: 7.5s; animation-delay: -4s; }
.ms-sec:not(.in) .deco { animation-play-state: paused; }
@keyframes swim {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  25%      { translate: -10px -5px; rotate: -.6deg; }
  50%      { translate: -18px 2px; rotate: .3deg; }
  75%      { translate: -8px 6px; rotate: .6deg; }
}
@keyframes swim-top {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  30%      { translate: 12px 4px; rotate: .5deg; }
  60%      { translate: 20px -2px; rotate: -.3deg; }
  80%      { translate: 8px -5px; rotate: -.5deg; }
}

/* Sezioni chiare */
.light p { font-size: var(--fs-body); line-height: 1.85; }
.social {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 2.2rem;
  padding: 7px 22px 7px 7px;
  border-radius: 999px;
  border: 1px solid rgba(0, 81, 127, .16);
  background: rgba(255, 255, 255, .7);
  color: var(--ink);
  text-align: left;
  transition: background .35s, border-color .35s, color .35s, transform .35s var(--ease-out), box-shadow .35s;
}
.social-ico {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 1.25rem;
  transition: background .35s, color .35s;
}
.social-txt { display: grid; font-size: var(--fs-small); font-weight: 500; line-height: 1.25; letter-spacing: .01em; }
.social-txt small { font-size: .7rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--blue); opacity: .8; }
.social-arrow { font-size: 1rem; color: var(--blue); transition: transform .35s var(--ease-out); }
.social:hover {
  background: #fff;
  border-color: rgba(0, 81, 127, .3);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -18px rgba(0, 40, 63, .5);
}
.social:hover .social-ico { background: var(--sky); color: var(--ink); }
.social:hover .social-arrow { transform: translateX(4px); }

/* Sezioni scure */
.navy h2, .blue h2, .steel h2 { color: #fff; }
.blue p, .steel p { color: var(--pale); font-size: var(--fs-small); }

/* Hero */
.navy .content { padding-bottom: 140px; }
/* Titolo principale: "Trattoria · Lugano" piccolo sopra, il nome grande e luminoso, una pennellata gialla sotto */
.hero-title {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: center;
  align-items: center;
  column-gap: .9em;
  line-height: 1;
}
.ht-top {
  grid-row: 1;
  font-family: "Asap", sans-serif;
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--sky);
  animation: ht-in .9s var(--ease-out) both;
}
.ht-top:first-child::before, .ht-place::after {
  content: "";
  display: inline-block;
  width: 2.6em;
  height: 1px;
  margin: 0 1.1em;
  vertical-align: .32em;
  background: linear-gradient(90deg, transparent, rgba(109, 203, 255, .7));
}
.ht-place::after { background: linear-gradient(90deg, rgba(109, 203, 255, .7), transparent); margin-right: 0; }
.ht-top:first-child::before { margin-left: 0; }
.ht-top:first-child { margin-right: -.42em; } /* toglie lo spazio della spaziatura dopo l'ultima lettera */
.ht-place { display: inline-flex; align-items: center; }
.ht-place::before { content: "·"; margin-right: .9em; color: rgba(109, 203, 255, .6); letter-spacing: 0; }
.hero-title { column-gap: .9em; }
.ht-name {
  position: relative;
  grid-row: 2;
  grid-column: 1 / -1;
  justify-self: center;
  padding: .12em .25em .2em;
  font-size: clamp(3.6rem, calc(var(--fs-h1) * 1.6), 7rem);
  line-height: 1.05;
  /* Riflesso che passa lento sulla scritta */
  background: linear-gradient(105deg, #fff 0%, #fff 42%, #c9eeff 50%, #fff 58%, #fff 100%) 0 0 / 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 28px rgba(109, 203, 255, .35)) drop-shadow(0 6px 18px rgba(0, 0, 0, .35));
  animation: ht-name 1.2s var(--ease-out) .15s both, ht-shine 7s ease-in-out 1.6s infinite;
}
.ht-brush {
  position: absolute;
  left: 8%;
  bottom: -.02em;
  width: 84%;
  height: .2em;
  overflow: visible;
}
.ht-brush path {
  fill: none;
  stroke: #f6b52b;
  stroke-width: 5;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 320;
  stroke-dashoffset: 320;
  animation: ht-brush 1s var(--ease-out) .9s forwards;
}
@keyframes ht-in { from { opacity: 0; transform: translateY(10px); letter-spacing: .6em; } }
@keyframes ht-name { from { opacity: 0; transform: translateY(18px) scale(.96); filter: blur(8px); } }
@keyframes ht-shine { 0%, 55% { background-position: 100% 0; } 100% { background-position: -60% 0; } }
@keyframes ht-brush { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .ht-top, .ht-name { animation: none; }
  .ht-brush path { animation: none; stroke-dashoffset: 0; }
}
.sub {
  text-transform: uppercase;
  letter-spacing: .3em;
  font-size: var(--fs-label);
  font-weight: 500;
  color: var(--pale);
  margin: 3.2rem 0 1.6rem;
}
.scroll-hint {
  position: absolute;
  left: 46px;
  bottom: 40px;
  z-index: 3;
  display: grid;
  justify-items: center;
  gap: 10px;
  background: none;
  border: 0;
  color: rgba(255, 255, 255, .7);
  font-size: .68rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  cursor: pointer;
}
.scroll-hint span {
  width: 22px;
  height: 34px;
  border: 1.5px solid rgba(255, 255, 255, .55);
  border-radius: 12px;
  position: relative;
}
.scroll-hint span::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 7px;
  width: 3px;
  height: 7px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--sky);
  animation: wheel 1.8s ease-in-out infinite;
}
@keyframes wheel { 0% { opacity: 0; transform: translateY(-3px); } 30% { opacity: 1; } 80% { opacity: 0; transform: translateY(9px); } 100% { opacity: 0; } }
.scroll-hint:hover { color: #fff; }

/* Bottoni */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: "Asap", sans-serif;
  border-radius: var(--radius);
  text-align: center;
}
.btn svg { transition: transform .35s var(--ease-out); }
.btn-light {
  background: var(--sky);
  color: var(--ink);
  font-size: var(--fs-body);
  font-weight: 500;
  padding: 18px 34px 18px 44px;
  box-shadow: 0 14px 34px -14px rgba(109, 203, 255, .75);
}
.btn-light svg { font-size: 1.2rem; }
.btn-light:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 18px 40px -14px rgba(255, 255, 255, .6); }
.btn-light:hover svg { transform: translateX(4px); }
.btn-dark {
  background: var(--blue);
  color: #fff;
  font-size: var(--fs-small);
  padding: 14px 24px;
  box-shadow: 0 10px 24px -14px rgba(0, 81, 127, .9);
}
.btn-dark svg { font-size: 1.1rem; opacity: .8; }
.btn-dark:hover { background: var(--navy); transform: translateY(-2px); }
.menus { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 2.2rem; }

/* Momenti */
#momenti .content { padding: 150px 6% 180px; max-width: none; width: 100%; }
#momenti h2 { margin-bottom: 2rem; }
.offer { list-style: none; display: grid; gap: 1.1rem; }
.offer li {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 14px 16px;
  margin: 0 -16px;
  border-radius: 14px;
  transition: background .35s, transform .35s var(--ease-out);
}
.offer li:hover { background: rgba(255, 255, 255, .07); transform: translateX(4px); }
.ico {
  flex: none;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .2);
}
.ico img { width: 28px; height: 28px; filter: brightness(0) invert(1); }
.offer h3 { color: #fff; font-weight: 600; font-size: var(--fs-body); margin-bottom: .3rem; }
.offer p { font-size: var(--fs-small); line-height: 1.6; }

/* Contatti */
#contatti .content { padding: 120px 100px 200px; max-width: 760px; width: 100%; }
#contatti h2 { margin-bottom: 1.8rem; }

.info { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; text-align: left; }
.card {
  padding: 26px 26px 22px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.info h4 {
  font-family: "Satisfy", cursive;
  font-weight: 400;
  font-size: var(--fs-h4);
  color: #fff;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.hours { display: grid; gap: 14px; }
.hours dt { font-size: var(--fs-label); letter-spacing: .2em; text-transform: uppercase; color: var(--sky); font-weight: 600; }
.hours dd { color: var(--pale); font-size: var(--fs-small); line-height: 1.5; }
.hours strong { color: #fff; font-weight: 600; font-size: var(--fs-body); font-variant-numeric: tabular-nums; }
.contact { list-style: none; display: grid; gap: 4px; }
.contact a {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 8px 10px;
  margin: 0 -10px;
  border-radius: 10px;
  color: var(--pale);
  font-size: var(--fs-small);
  line-height: 1.45;
}
.contact svg { font-size: 1.15rem; color: var(--sky); margin-top: 2px; }
.contact small { display: block; color: var(--sky); font-size: .82rem; margin-top: 2px; }
.contact a:hover { background: rgba(255, 255, 255, .08); color: #fff; }

/* Nelle lingue tradotte i paragrafi scorrono liberi: righe equilibrate e di lunghezza comoda */
html:not([lang="it"]) .light p { max-width: 36em; margin-left: auto; margin-right: auto; text-wrap: pretty; }

/* Nota sotto i bottoni dei menù (solo nelle lingue diverse dall'italiano) */
.menus-note { margin-top: .9rem; font-size: var(--fs-label) !important; letter-spacing: .04em; color: #7a8a96; font-style: italic; }
.menus-note[hidden] { display: none; }
/* Nessun menù visibile nel pannello: niente bottoni né nota */
#cucina.no-menus .menus, #cucina.no-menus .menus-note { display: none !important; }
.quickbar a[hidden] { display: none !important; }
.scroll-hint b { font-weight: inherit; }

/* Firma finale, in fondo alla sezione contatti */
.credit {
  position: absolute;
  left: 40px;
  bottom: 30px;
  z-index: 2;
  display: grid;
  gap: 3px;
  text-align: left;
  font-size: .7rem;
  letter-spacing: .14em;
  color: rgba(226, 245, 255, .62);
}
.credit > span:first-child, .credit .secret-link span { color: #fff; font-weight: 600; text-transform: uppercase; letter-spacing: .2em; }
.credit .secret-link { color: inherit; cursor: default; }
.credit .secret-link:hover span { color: #fff; }
.credit a { color: var(--sky); }
.credit .credit-privacy { margin-top: 4px; color: rgba(226, 245, 255, .62); text-decoration: underline; text-underline-offset: 3px; }
.credit .credit-privacy:hover { color: #fff; }
.credit a:hover { color: #fff; }

/* Navigazione verticale */
.ms-nav {
  position: fixed;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 14px;
  padding: 16px 0 14px;
  width: 44px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  --nav: 255, 255, 255;
}
.ms-count { display: grid; justify-items: center; font-size: .68rem; line-height: 1.3; letter-spacing: .06em; color: #fff; font-variant-numeric: tabular-nums; }
.ms-count .cur { font-weight: 600; }
.ms-count .tot { opacity: .55; }
.ms-nav ul { list-style: none; display: grid; gap: 8px; justify-items: center; }
.ms-nav a { position: relative; display: block; width: 3px; height: 28px; border-radius: 3px; background: rgba(var(--nav), .35); transition: height .5s var(--ease-out), background .4s; }
.ms-nav a { height: 20px; }
.ms-nav a.active { height: 40px; background: var(--sky); }
.ms-nav a:hover { background: rgba(var(--nav), .8); }
.ms-nav a.active:hover { background: var(--sky); }
.ms-nav a span {
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translate(6px, -50%);
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: #fff;
  font-size: .78rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .3s var(--ease-out);
}
.ms-nav a:hover span { opacity: 1; transform: translate(0, -50%); }

/* Barra di avanzamento sottile in alto */
.progress { position: fixed; left: 0; top: 0; height: 2px; width: 100%; z-index: 60; background: var(--sky); transform-origin: left; transform: scaleX(.2); transition: transform var(--dur) var(--ease); }

/* Torna su */
.to-top {
  position: fixed;
  right: 40px;
  bottom: 40px;
  z-index: 40;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--glass-line);
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .4s, visibility .4s, transform .4s var(--ease-out), background .3s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--sky); color: var(--ink); }

/* Barra rapida mobile: nascosta su desktop */
.quickbar { display: none; }

/* Animazione d'ingresso dei contenuti */
.ms-sec .content > * { opacity: 0; transform: translateY(26px); filter: blur(4px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out), filter .9s var(--ease-out); }
.ms-sec.in .content > * { opacity: 1; transform: none; filter: none; transition-delay: .25s; }
.ms-sec.in .content > *:nth-child(2) { transition-delay: .35s; }
.ms-sec.in .content > *:nth-child(3) { transition-delay: .45s; }
.ms-sec.in .content > *:nth-child(4) { transition-delay: .55s; }
.ms-sec.in .content > *:nth-child(5) { transition-delay: .65s; }

/* ---------- Tablet e mobile: sezioni impilate ---------- */
/* ---------- Desktop: tutto si adatta anche all'ALTEZZA dello schermo ----------
   (portatili da 10–13", schermi 1280×720 / 1280×800 / 1366×768) */
@media (min-width: 1025px) and (min-height: 620px) {
  :root { --deco-max: 32vh; --head: clamp(88px, 13vh, 120px); }

  /* pesci decorativi: mai più alti di un terzo dello schermo, ancorati a destra */
  .deco { height: auto; max-height: var(--deco-max); object-fit: contain; }
  .deco.top { object-position: right top; }
  .deco.bottom { object-position: right bottom; }
  /* nella colonna destra in alto ci sono lingua e "Prenota": i pesci vanno a sinistra */
  #cucina .deco.top { object-position: left top; }

  :root {
    --fs-h1: clamp(2.8rem, 7.4vh, 4.2rem);
    --fs-h2: clamp(2.4rem, 5.8vh, 3.3rem);
    --fs-h4: clamp(1.45rem, 3.3vh, 1.85rem);
    --fs-body: clamp(.95rem, 1.9vh, 1.05rem);
  }
  h2 { margin-bottom: clamp(.8rem, 2.2vh, 1.4rem); }
  .eyebrow { margin-bottom: clamp(.4rem, 1.2vh, .9rem); }

  /* lo spazio riservato in alto/in basso segue la posizione dei pesci */
  .content { max-height: 100vh; }
  .light .content { padding-top: calc(var(--deco-max) * .78); padding-bottom: 5vh; }
  .navy .content { padding-top: var(--head); padding-bottom: calc(var(--deco-max) * .8); }
  #momenti .content { padding: var(--head) 6% calc(var(--deco-max) * .62); }
  #contatti .content { padding: var(--head) 100px calc(var(--deco-max) * .62); }

  .light p { line-height: 1.8; }
  .social { margin-top: clamp(1rem, 3vh, 2.2rem); }
  .menus { margin-top: clamp(1rem, 3vh, 2.2rem); }
  .sub { margin: clamp(1.4rem, 4.5vh, 3.2rem) 0 clamp(1rem, 2.5vh, 1.6rem); }
}

/* schermi bassi (≤ 860 px): impaginazione più compatta */
@media (min-width: 1025px) and (min-height: 620px) and (max-height: 860px) {
  .site-header { padding-top: clamp(18px, 3.5vh, 44px); }
  .logo img { height: clamp(44px, 6.5vh, 60px); }
  .lang-btn, .header-cta { height: 40px; }

  /* Momenti: le quattro voci su due colonne */
  .offer { grid-template-columns: 1fr 1fr; gap: 6px 18px; }
  .offer li { flex-direction: column; gap: 10px; padding: 10px 12px; margin: 0 -12px; }
  .ico { width: 42px; height: 42px; }
  .ico img { width: 22px; height: 22px; }
  :root { --fs-small: .84rem; }
  .offer p { line-height: 1.5; }

  /* Contatti: schede più compatte */
  #contatti h2 { margin-bottom: 1rem; }
  .card { padding: 18px 20px 14px; border-radius: 14px; }
  .info { gap: 12px; }
  .info h4 { margin-bottom: .6rem; }
  .hours { gap: 8px; }
  .contact a { padding: 6px 10px; }

  .btn-light { padding: 15px 28px 15px 36px; }
  .btn-dark { padding: 12px 20px; }
  .scroll-hint { bottom: 22px; }
}

@media (max-width: 1024px), (max-height: 619px) {
  :root { --fs-h1: 3.4rem; --fs-h2: 2.9rem; }
  html, body { height: auto; }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .ms { position: static; display: flex; flex-flow: row wrap; overflow: visible; }
  .ms-col { display: contents; transform: none !important; }
  .ms-sec { width: 100%; height: auto; min-height: 0; }
  .ms-sec.img { height: 70vw; max-height: 620px; }
  /* brindisi + pizza: affiancate come piccola galleria, così non ci sono due foto di fila */
  .ms-sec[data-m="8"], .ms-sec[data-m="9"] { width: 50%; height: 72vw; max-height: 640px; }
  .ms-sec[data-m="8"] { border-right: 2px solid var(--light); }
  .ms-sec.img::before { transform: scale(1.06); }
  .ms-sec[data-m="1"]  { order: 1; }
  .ms-sec[data-m="2"]  { order: 2; }
  .ms-sec[data-m="3"]  { order: 3; }
  .ms-sec[data-m="4"]  { order: 4; }
  .ms-sec[data-m="5"]  { order: 5; }
  .ms-sec[data-m="6"]  { order: 6; }
  .ms-sec[data-m="7"]  { order: 7; }
  .ms-sec[data-m="8"]  { order: 8; }
  .ms-sec[data-m="9"]  { order: 9; }
  .ms-sec[data-m="10"] { order: 10; }

  .site-header { position: absolute; padding: 32px 20px 0; }
  .header-right { margin-right: 0; }
  .header-cta, .ms-nav, .progress, .scroll-hint { display: none; }
  /* firma: nel flusso, centrata, sopra i pesci */
  #contatti { flex-direction: column; justify-content: flex-start; }
  .ms #contatti .content { padding-bottom: 28px; }
  .credit { position: static; order: 2; text-align: center; justify-items: center; margin: 0 auto calc(34vw + 10px); }
  .lang-btn { height: 42px; }

  .content, #momenti .content, #contatti .content { width: 100%; max-width: 820px; margin: 0 auto; }
  .content { padding: 90px 32px 80px; }
  .navy .content { padding-top: 170px; padding-bottom: 46vw; }
  .light .content { padding-top: 34vw; }
  #momenti .content, #contatti .content { padding: 90px 32px 46vw; }

  .quickbar {
    position: fixed;
    left: 12px;
    right: 12px;
    max-width: 520px;
    margin: 0 auto;
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 55;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 6px;
    padding: 6px;
    border-radius: 18px;
    background: rgba(0, 40, 63, .82);
    border: 1px solid var(--glass-line);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    backdrop-filter: blur(16px) saturate(1.4);
    box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .5);
  }
  .quickbar a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 46px;
    border-radius: 13px;
    color: #fff;
    font-size: .9rem;
    font-weight: 500;
  }
  .quickbar svg { font-size: 1.1rem; color: var(--sky); }
  .quickbar a.primary { background: var(--sky); color: var(--ink); }
  .quickbar a.primary svg { color: var(--ink); }
  .quickbar a:active { transform: scale(.97); }
  .to-top { right: 16px; bottom: calc(96px + env(safe-area-inset-bottom)); width: 46px; height: 46px; }
}

@media (max-width: 600px) {
  :root { --fs-h1: 2.7rem; --fs-h2: 2.5rem; --fs-h4: 1.6rem; --fs-body: 1rem; }
  .logo::before { inset: -18px -26px; }
  .logo img { height: 42px; }
  .content, #momenti .content, #contatti .content { padding-left: 16px; padding-right: 16px; }
  .light p br, #contatti h2 br { display: none; }
  .info { grid-template-columns: 1fr; gap: 12px; }
  .card { padding: 22px 20px 18px; }
  .offer li { gap: 16px; padding: 12px; margin: 0 -12px; }
  .ico { width: 48px; height: 48px; }
  .btn-light { padding: 16px 28px 16px 34px; }
}

/* ---------- Prenotazione online (finestra sopra la pagina) ---------- */
.booking {
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 40px 90px -30px rgba(0, 20, 32, .6);
  overflow: auto;
  overscroll-behavior: contain;
  opacity: 0;
  transform: translateY(14px) scale(.98);
  transition: opacity .3s, transform .4s var(--ease-out);
}
.booking.is-open { opacity: 1; transform: none; }
.booking::backdrop { background: rgba(0, 24, 38, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.booking-form { position: relative; display: grid; gap: 14px; padding: 34px 32px 28px; }
.booking-form .eyebrow { margin-bottom: 0; }
.booking-form .eyebrow::before { display: none; }
.booking-form .eyebrow::after { margin-right: 0; }
.booking-form h2 { font-size: 2.5rem; margin: -6px 0 0; color: var(--ink); }
.booking-intro { font-size: var(--fs-small); color: var(--text); margin-top: -4px; }
.booking-close {
  position: absolute; top: 16px; right: 16px;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(0, 81, 127, .15); background: var(--light); color: var(--ink);
  font-size: 1.1rem; cursor: pointer;
  transition: background .3s, color .3s;
}
.booking-close:hover { background: var(--navy); color: #fff; }
.booking-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.booking-form label { display: grid; gap: 6px; font-size: var(--fs-label); font-weight: 600; letter-spacing: .04em; color: var(--blue); }
.booking-form input:not([type=checkbox]):not([type=radio]), .booking-form select, .booking-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid rgba(0, 81, 127, .2);
  border-radius: 12px;
  background: var(--light);
  color: var(--ink);
  font: inherit;
  font-size: var(--fs-small);
  letter-spacing: normal;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.booking-form textarea { resize: vertical; min-height: 70px; }
.booking-form input:focus, .booking-form select:focus, .booking-form textarea:focus {
  outline: none; background: #fff; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(109, 203, 255, .35);
}
.booking-hint { font-size: var(--fs-small); color: var(--text); }
.booking-hint:empty { display: none; }
.booking-call { justify-self: start; }
.booking-call[hidden] { display: none; }
.booking-slots { display: grid; gap: 12px; }
.booking-slots:empty { display: none; }
.booking-slots fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.booking-slots legend { width: 100%; margin-bottom: 8px; font-size: var(--fs-label); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--blue); }
.booking-slots label { position: relative; display: block; }
.booking-slots input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.booking-slots span {
  display: block; min-width: 72px; padding: 9px 12px; text-align: center;
  border: 1px solid rgba(0, 81, 127, .2); border-radius: 999px;
  font-size: var(--fs-small); font-weight: 500; letter-spacing: normal; color: var(--ink);
  font-variant-numeric: tabular-nums;
  transition: background .2s, border-color .2s, color .2s;
}
.booking-slots label:hover span { border-color: var(--blue); }
.booking-slots input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.booking-slots input:focus-visible + span { box-shadow: 0 0 0 4px rgba(109, 203, 255, .45); }
.booking-details { display: grid; gap: 12px; padding-top: 6px; border-top: 1px solid rgba(0, 81, 127, .1); }
.booking-details[hidden] { display: none; }
.booking-website { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.booking-form .booking-check { display: flex; align-items: flex-start; gap: 10px; font-size: var(--fs-small); font-weight: 400; letter-spacing: normal; color: var(--text); line-height: 1.45; }
.booking-check input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--navy); }
.booking-send { justify-self: start; border: 0; cursor: pointer; margin-top: 4px; }
.booking-send:disabled { opacity: .6; cursor: wait; }
.booking-check a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.booking-check a:hover { color: var(--navy); }
/* Errori sul singolo campo */
.field-error { display: block; margin-top: -2px; font-size: .8rem; font-weight: 500; letter-spacing: normal; line-height: 1.4; color: #b42318; }
.field-error:empty { display: none; }
.booking-form [aria-invalid="true"]:not([type=checkbox]):not([type=radio]),
.booking-form .dmy:has(.dmy-native[aria-invalid="true"]) .dmy-text { border-color: #d92d20; background: #fff6f5; }
.booking-form [aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(217, 45, 32, .18); }
.booking-check input[aria-invalid="true"] { outline: 2px solid #d92d20; outline-offset: 2px; }
.booking-message-line { display: block; margin-top: 4px; font-weight: 600; }
.booking-message { font-size: var(--fs-small); font-weight: 500; }
/* Richiesta inviata: resta solo il messaggio di conferma */
.booking-form.is-sent .booking-intro,
.booking-form.is-sent .booking-when,
.booking-form.is-sent .booking-hint,
.booking-form.is-sent .booking-call,
.booking-form.is-sent .booking-slots,
.booking-form.is-sent .booking-details { display: none !important; }
.booking-message:empty { display: none; }
.booking-message.error { color: #b42318; }
.booking-message.success { padding: 14px 16px; border-radius: 12px; background: #e8f7ee; color: #146c3c; }

@media (max-width: 600px) {
  .booking { width: 100vw; max-width: 100vw; max-height: 92dvh; margin: auto 0 0; border-radius: 22px 22px 0 0; transform: translateY(40px); }
  .booking-form { padding: 28px 18px calc(22px + env(safe-area-inset-bottom)); }
  .booking-form h2 { font-size: 2.1rem; }
  .booking-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  :root { --dur: 0ms; }
  *, *::before, *::after { animation: none !important; transition-duration: 0ms !important; transition-delay: 0ms !important; }
  .ms-sec .content > * { filter: none; }
}

/* Campi data gg/mm/aaaa (datefield.js): testo visibile, calendario del browser nascosto sotto */
.dmy { position: relative; display: block; }
.dmy .dmy-text { width: 100%; padding-right: 44px; }
.dmy .dmy-native { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; min-height: 0; padding: 0; border: 0; opacity: 0; pointer-events: none; }
.dmy-btn { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; min-height: 0; padding: 0; display: grid; place-items: center; background: none; border: 0; border-radius: 8px; color: inherit; opacity: .65; cursor: pointer; }
.dmy-btn:hover { opacity: 1; }
.dmy-btn svg { width: 18px; height: 18px; }
.booking-form .dmy input.dmy-text { padding-right: 44px; }
