/* =========================================================
   Osteria La De Jure — Via Giulia 51, Trieste
   Carta calda, inchiostro scuro e il rosso dell'insegna.
   Brygada 1918 (titoli) + Schibsted Grotesk (testi).
   Movimento: ingressi allo scroll, muro di foto, carosello,
   anteprime nel menu. Tutto spento con prefers-reduced-motion.
   ========================================================= */

/* ---------- Caratteri (ospitati sul sito, licenza SIL OFL) ---------- */
@font-face {
  font-family: "Brygada 1918";
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url("assets/fonts/brygada-1918-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Brygada 1918";
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url("assets/fonts/brygada-1918-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Brygada 1918";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/brygada-1918-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Brygada 1918";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/brygada-1918-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/schibsted-grotesk-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/schibsted-grotesk-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Token ---------- */
:root {
  --paper: #F6F1E7;
  --paper-2: #EDE5D5;
  --card: #FFFCF6;
  --ink: #1C1714;
  --ink-2: #5A524B;
  --night: #16120F;
  --wine: #35140F;
  --wine-deep: #24100C;
  --wine-bg:
    radial-gradient(60rem 42rem at 85% 5%, rgba(178, 49, 31, .6), transparent 65%),
    radial-gradient(50rem 36rem at 0% 100%, rgba(147, 38, 26, .5), transparent 65%),
    linear-gradient(160deg, #4A1A13 0%, var(--wine) 50%, var(--wine-deep) 100%);
  --night-2: #221C18;
  --hair: rgba(28, 23, 20, .14);
  --hair-light: rgba(246, 241, 231, .16);
  --red: #B2311F;
  --red-2: #93261A;
  --red-soft: #E9A28F;
  --sea: #17303F;

  --serif: "Brygada 1918", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Schibsted Grotesk", "Helvetica Neue", Arial, system-ui, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;

  --t-xs: .8125rem;
  --t-s: .9375rem;
  --t-m: 1.0625rem;
  --t-l: 1.25rem;
  --t-xl: clamp(1.3rem, 1.1rem + .8vw, 1.7rem);
  --t-2xl: clamp(1.75rem, 1.2rem + 1.9vw, 2.6rem);
  --t-3xl: clamp(2.3rem, 1.2rem + 4vw, 4.6rem);

  --wrap: 1320px;
  --gutter: clamp(1rem, 4vw, 3rem);
  --gap: clamp(.75rem, 2vw, 1.5rem);
  --section: clamp(4rem, 9vw, 8rem);
  --masthead: 4.5rem;
  --r-s: 10px;
  --r-m: 18px;
  --r-l: 28px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --shadow: 0 24px 60px -30px rgba(28, 23, 20, .45);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--masthead) + 1rem);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-m);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

html:has(dialog[open]) { overflow: hidden; }
[hidden] { display: none !important; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
address { font-style: normal; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }

::selection { background: var(--red); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--focus, var(--red));
  outline-offset: 3px;
  border-radius: 4px;
}
main:focus { outline: none; }

/* ---------- Utilità ---------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: 1rem; top: -10rem;
  z-index: 200;
  padding: .75rem 1rem;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  border-radius: var(--r-s);
}
.skip-link:focus { top: 1rem; }

.icon { width: 1.2em; height: 1.2em; flex: none; }

.link {
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  text-decoration: none;
  padding-bottom: 1px;
  transition: background-size .35s var(--ease), color .2s;
}
.link:hover { color: var(--red); background-size: 0 1px; background-position: 100% 100%; }

.lead {
  font-family: var(--serif);
  font-size: var(--t-xl);
  line-height: 1.35;
}

/* Barra di avanzamento */
.progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 120;
  height: 3px;
  pointer-events: none;
}
.progress span {
  display: block;
  height: 100%;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* ---------- Bottoni ---------- */
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 3rem;
  padding: .75rem 1.35rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: 600 var(--t-m)/1.2 var(--sans);
  text-align: center;
  text-decoration: none;
  transition: color .3s var(--ease), border-color .3s var(--ease), transform .35s var(--ease-out), box-shadow .3s var(--ease);
  will-change: transform;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--btn-fill, var(--ink));
  transform: scale(0, 1);
  transform-origin: 0 50%;
  transition: transform .45s var(--ease-out);
}
.btn:hover::before { transform: scale(1, 1); }
.btn:active { transform: scale(.97); }
.btn .icon--move { transition: transform .35s var(--ease-out); }
.btn:hover .icon--move { transform: translateX(4px); }

.btn--red { background: var(--red); color: #fff; --btn-fill: var(--red-2); box-shadow: 0 10px 24px -12px rgba(178, 49, 31, .7); }
.btn--red:hover { color: #fff; box-shadow: 0 14px 30px -12px rgba(178, 49, 31, .85); }
.btn--ink { background: var(--ink); color: var(--paper); --btn-fill: var(--red); }
.btn--paper { background: var(--paper); color: var(--ink); --btn-fill: #fff; }
.btn--line { border-color: var(--ink); color: var(--ink); --btn-fill: var(--ink); }
.btn--line:hover { color: var(--paper); }
.btn--ghost { border-color: rgba(246, 241, 231, .45); color: var(--paper); --btn-fill: var(--paper); }
.btn--ghost:hover { color: var(--ink); border-color: var(--paper); }
.btn--sm { min-height: 2.75rem; padding: .5rem 1.05rem; font-size: var(--t-s); }
.btn--lg { min-height: 3.5rem; padding: .9rem 1.6rem; }
.btn--block { width: 100%; }

.actions { display: flex; flex-wrap: wrap; gap: .75rem; }
@media (max-width: 479px) {
  .actions .btn { flex: 1 1 100%; }
}

.icon-btn, .round-btn {
  display: inline-grid;
  place-items: center;
  width: 2.9rem; height: 2.9rem;
  flex: none;
  background: transparent;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  color: inherit;
  transition: background-color .25s, color .25s, border-color .25s, transform .3s var(--ease-out);
}
.icon-btn:hover, .round-btn:hover { transform: scale(1.06); }
.round-btn { width: 3.25rem; height: 3.25rem; border-color: var(--hair-light); color: var(--paper); }
.round-btn:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.round-btn:disabled { opacity: .35; pointer-events: none; }
.round-btn--ink { color: var(--ink); border-color: var(--hair); }
.round-btn--ink:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- Testata ---------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(246, 241, 231, .88);
  color: var(--ink);
  border-bottom: 1px solid var(--hair);
  transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), transform .45s var(--ease-out);
}
@supports (backdrop-filter: blur(1px)) {
  .masthead { backdrop-filter: blur(14px) saturate(1.4); }
}
.masthead--overlay {
  position: fixed;
  inset: 0 0 auto;
  background: transparent;
  color: var(--paper);
  border-bottom-color: transparent;
  --focus: var(--paper);
}
@supports (backdrop-filter: blur(1px)) {
  .masthead--overlay { backdrop-filter: none; }
}
/* Appena si scorre, sopra l'apertura: fondo vino traslucido, così il testo sotto non si confonde */
.masthead--overlay.is-scrolled:not(.is-solid) {
  background: rgba(53, 20, 15, .78);
  border-bottom-color: var(--hair-light);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .7);
}
@supports (backdrop-filter: blur(1px)) {
  .masthead--overlay.is-scrolled:not(.is-solid) { background: rgba(53, 20, 15, .62); backdrop-filter: blur(16px) saturate(1.3); }
}
.masthead--overlay.is-solid {
  background: rgba(246, 241, 231, .86);
  color: var(--ink);
  border-bottom-color: var(--hair);
  --focus: var(--red);
}
@supports (backdrop-filter: blur(1px)) {
  .masthead--overlay.is-solid { backdrop-filter: blur(14px) saturate(1.4); }
}
.masthead.is-hidden { transform: translateY(-100%); }

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: var(--masthead);
}
.brand { position: relative; display: flex; align-items: center; gap: .65rem; min-height: 2.75rem; flex: none; }
.brand__dark, .brand__light { display: flex; align-items: center; gap: .65rem; transition: opacity .35s var(--ease); }
.brand__light { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.masthead--overlay:not(.is-solid) .brand__dark { opacity: 0; }
.masthead--overlay:not(.is-solid) .brand__light { opacity: 1; }
.brand__mark { width: 2.4rem; transition: transform .6s var(--ease-out); }
.brand:hover .brand__mark { transform: rotate(-10deg) scale(1.05); }
.brand__word { width: clamp(7rem, 20vw, 9.25rem); }

.nav { position: relative; display: none; }
.nav__list { display: flex; gap: .25rem; }
.nav a {
  position: relative;
  z-index: 1;
  display: block;
  padding: .55rem .8rem;
  border-radius: 999px;
  font: 500 var(--t-s)/1 var(--sans);
  text-decoration: none;
  white-space: nowrap;
  transition: color .25s var(--ease);
}
.nav__ink {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: currentColor;
  opacity: 0;
  transition: transform .45s var(--ease-out), width .45s var(--ease-out), opacity .25s;
  pointer-events: none;
}
.nav__ink { background: rgba(28, 23, 20, .08); }
.masthead--overlay:not(.is-solid) .nav__ink { background: rgba(246, 241, 231, .14); }
.nav a[aria-current="true"] { color: var(--red); }
.masthead--overlay:not(.is-solid) .nav a[aria-current="true"] { color: var(--red-soft); }

.masthead__actions { display: flex; align-items: center; gap: .5rem; }
.masthead__book { display: none; }
.menu-btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 2.75rem;
  padding: .5rem 1rem;
  background: currentColor;
  border: 0;
  border-radius: 999px;
  font: 600 var(--t-s)/1 var(--sans);
}
.menu-btn .icon, .menu-btn span { color: var(--paper); }
.masthead--overlay:not(.is-solid) .menu-btn .icon,
.masthead--overlay:not(.is-solid) .menu-btn span { color: var(--ink); }

@media (max-width: 359px) {
  .masthead__call { display: none; }
  .brand__mark { width: 2rem; }
}
/* Telefoni stretti: logo e spazi più compatti perché ci stiano chiamata e menu */
@media (max-width: 399px) {
  .masthead__inner { gap: .5rem; }
  .brand, .brand__dark, .brand__light { gap: .45rem; }
  .brand__word { width: 6.25rem; }
  .masthead__actions { gap: .35rem; }
  .menu-btn { padding-inline: .8rem; }
}
@media (max-width: 519px) {
  .masthead__num { display: none; }
}
@media (min-width: 1180px) {
  .nav { display: block; }
  .menu-btn, .masthead__call { display: none; }
  .masthead__book { display: inline-flex; }
}

/* ---------- Menu mobile ---------- */
.drawer {
  width: 100%;
  max-width: 30rem;
  height: 100dvh;
  max-height: none;
  margin: 0 0 0 auto;
  padding: 0;
  border: 0;
  background: var(--wine-bg);
  color: var(--paper);
  --focus: var(--paper);
  transform: translateX(100%);
  transition-property: transform, display, overlay;
  transition-duration: .5s;
  transition-timing-function: var(--ease-out);
  transition-behavior: allow-discrete;
}
.drawer[open] { transform: none; }
@starting-style {
  .drawer[open] { transform: translateX(100%); }
}
.drawer::backdrop {
  background: rgba(22, 18, 15, 0);
  transition: background-color .4s, display .4s allow-discrete, overlay .4s allow-discrete;
}
.drawer[open]::backdrop { background: rgba(22, 18, 15, .55); }
@starting-style {
  .drawer[open]::backdrop { background: rgba(22, 18, 15, 0); }
}
.drawer__inner {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 0 var(--gutter) max(1.5rem, env(safe-area-inset-bottom));
}
.drawer__top { display: flex; align-items: center; justify-content: space-between; min-height: var(--masthead); }
.drawer__mark { width: 2.4rem; }
.icon-btn--light { color: var(--paper); border-color: var(--hair-light); }
.drawer__list { margin: 1.5rem 0 2rem; }
.drawer__list li { overflow: hidden; }
.drawer__list a {
  display: block;
  padding: .45rem 0;
  font: 500 clamp(1.9rem, 8vw, 2.6rem)/1.1 var(--serif);
  text-decoration: none;
  text-wrap: balance;
  overflow-wrap: anywhere;
  transition: color .25s, transform .35s var(--ease-out);
}
.drawer__list a:hover { color: var(--red-soft); transform: translateX(8px); }
.drawer[open] .drawer__list a { animation: slideUp .7s var(--ease-out) both; }
.drawer__list li:nth-child(1) a { animation-delay: .1s; }
.drawer__list li:nth-child(2) a { animation-delay: .14s; }
.drawer__list li:nth-child(3) a { animation-delay: .18s; }
.drawer__list li:nth-child(4) a { animation-delay: .22s; }
.drawer__list li:nth-child(5) a { animation-delay: .26s; }
.drawer__list li:nth-child(6) a { animation-delay: .3s; }
.drawer__list li:nth-child(7) a { animation-delay: .34s; }
/* Schermi bassi: il menu resta tutto visibile senza scorrere */
@media (max-height: 700px) {
  .drawer__list { margin: 1rem 0 1.25rem; }
  .drawer__list a { padding: .3rem 0; font-size: clamp(1.5rem, 6vw, 1.9rem); }
  .drawer__foot { gap: .6rem; }
}
/* Telefono in orizzontale: le voci su due colonne, così ci sta anche il pulsante */
@media (max-height: 560px) and (min-width: 380px) {
  .drawer__inner { padding-block-end: max(1rem, env(safe-area-inset-bottom)); }
  .drawer__top { min-height: 3.25rem; }
  .drawer__list { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem 1.5rem; align-items: start; margin: .5rem 0 .75rem; }
  .drawer__list a { font-size: clamp(1.25rem, 4.5vw, 1.6rem); line-height: 1.2; padding: .15rem 0; }
}
.drawer__foot { margin-top: auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: .75rem; }
.drawer__foot .btn .icon { flex: none; }
.drawer__foot p { margin: 0; text-align: center; font-size: var(--t-s); color: rgba(246, 241, 231, .7); }

/* ---------- Apertura ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--wine-bg);
  color: var(--paper);
  --focus: var(--paper);
}
.hero__inner {
  display: grid;
  gap: 2.5rem var(--gap);
  min-height: 100svh;
  padding-top: calc(var(--masthead) + clamp(1.5rem, 4vw, 3rem));
  padding-bottom: clamp(3rem, 6vw, 4rem);
  align-items: center;
}
.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin: 0 0 1.5rem;
  padding: .45rem .9rem .45rem .7rem;
  border: 1px solid var(--hair-light);
  border-radius: 999px;
  background: rgba(246, 241, 231, .05);
  font: 500 var(--t-xs)/1.2 var(--sans);
  letter-spacing: .02em;
}
.pulse { position: relative; width: .55rem; height: .55rem; border-radius: 50%; background: #7BC67E; }
.pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: inherit;
  animation: pulse 2s var(--ease) infinite;
}
.hero__logo { margin: 0 0 1.5rem; }
.hero__logo img { width: clamp(8.5rem, 30vw, 12rem); }

.hero__title {
  margin: 0 0 1.25rem;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 1.4rem + 5vw, 5.4rem);
  font-weight: 600;
  line-height: .98;
  letter-spacing: -.03em;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: inline-block; }
.hero__title em { font-style: italic; font-weight: 500; color: var(--red-soft); }

.hero__lead { max-width: 30rem; margin-bottom: 2rem; font-size: var(--t-l); color: rgba(246, 241, 231, .8); }
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.5rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--hair-light);
  font-size: var(--t-s);
  color: rgba(246, 241, 231, .8);
}
.hero__meta li { display: inline-flex; align-items: center; gap: .45rem; }
.hero__meta .icon { color: var(--red-soft); }
.hero__meta a { text-decoration: none; }
.hero__meta a:hover { color: var(--paper); text-decoration: underline; text-underline-offset: .2em; }

/* Muro di foto */
.hero__wall {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  height: clamp(22rem, 70vw, 30rem);
  overflow: hidden;
  border-radius: var(--r-l);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 88%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 88%, transparent 100%);
  transform: rotate(-2deg);
}
.wall__col { overflow: hidden; }
.wall__track {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  animation: wallUp 48s linear infinite;
}
.wall__col--down .wall__track { animation-name: wallDown; animation-duration: 56s; }
.wall__col--slow .wall__track { animation-duration: 64s; }
.hero__wall:hover .wall__track { animation-play-state: paused; }
.wall__track img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--r-m);
  transition: transform .6s var(--ease-out), filter .6s;
  filter: saturate(.95);
}
.wall__track img:hover { transform: scale(1.03); filter: saturate(1.1); }

@media (min-width: 1000px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; }
  .hero__wall { height: calc(100svh - var(--masthead) - 2rem); max-height: 52rem; margin-right: calc(-1 * var(--gutter)); }
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  translate: -50% 0;
  font: 500 var(--t-xs)/1 var(--sans);
  letter-spacing: .15em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(246, 241, 231, .7);
}
.hero__scroll i { position: relative; width: 1.4rem; height: 2.2rem; border: 1.5px solid currentColor; border-radius: 999px; }
.hero__scroll i::after {
  content: "";
  position: absolute;
  left: 50%; top: .4rem;
  width: 3px; height: .45rem;
  margin-left: -1.5px;
  border-radius: 2px;
  background: currentColor;
  animation: wheel 1.8s var(--ease) infinite;
}
@media (min-width: 1000px) and (min-height: 700px) {
  .hero__scroll { display: flex; }
  .hero__inner { padding-bottom: 5.5rem; }
}

/* Ingresso della hero */
.hero__title .line > span {
  animation: lineUp 1.1s var(--ease-out) both;
  animation-delay: calc(.15s + var(--i) * .09s);
}
[data-intro] {
  animation: fadeUp .9s var(--ease-out) both;
  animation-delay: calc(.15s + var(--i) * .09s);
}
.hero__wall { animation: wallIn 1.4s var(--ease-out) both .2s; }

/* ---------- Sezioni ---------- */
.section { position: relative; padding-block: var(--section); overflow-x: clip; }
.section--tint { background: var(--paper-2); }
.section--dark { background: var(--wine-bg); color: var(--paper); --focus: var(--paper); }
.section--sea { background: var(--sea); color: var(--paper); --focus: var(--paper); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin: 0 0 1rem;
  font: 600 var(--t-xs)/1.35 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--red);
}
.eyebrow::before {
  content: "";
  width: .5rem; height: .5rem;
  border-radius: 50%;
  background: currentColor;
}
.section--dark .eyebrow, .section--sea .eyebrow, .eyebrow--light { color: var(--red-soft); }

.sec-head { margin-bottom: clamp(2.25rem, 5vw, 3.5rem); }
.sec-head--split { display: grid; gap: 1.25rem 3rem; align-items: end; }
@media (min-width: 900px) {
  .sec-head--split { grid-template-columns: 1.2fr 1fr; }
  .sec-head--split > :last-child { justify-self: end; }
}
.sec-head--center { max-width: 48rem; margin-inline: auto; text-align: center; }
.sec-head--center .sec-note { margin-inline: auto; }

.sec-title {
  font-family: var(--serif);
  font-size: var(--t-3xl);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.028em;
}
.sec-title em { font-style: italic; font-weight: 500; color: var(--red); }
.section--dark .sec-title em, .section--sea .sec-title em { color: var(--red-soft); }
.sec-note { max-width: 36rem; margin-top: 1rem; color: var(--ink-2); }
.sec-head--split .sec-note { margin-top: 0; }
.section--dark .sec-note, .section--sea .sec-note { color: rgba(246, 241, 231, .75); }

/* ---------- Regolamento ---------- */
.articles { display: grid; gap: var(--gap); }
.article {
  position: relative;
  overflow: hidden;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: var(--r-l);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), background-color .4s;
}
.article::after {
  content: "";
  position: absolute;
  inset: auto -30% -60% auto;
  width: 14rem; height: 14rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(178, 49, 31, .16), transparent 70%);
  transition: transform .7s var(--ease-out);
}
.article:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.article:hover::after { transform: scale(1.6); }
.article__num {
  display: inline-block;
  margin-bottom: 2.5rem;
  padding: .3rem .7rem;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font: 600 var(--t-xs)/1 var(--sans);
  letter-spacing: .08em;
}
.article__title { margin-bottom: .5rem; font-family: var(--serif); font-size: var(--t-xl); line-height: 1.15; }
.article p { color: var(--ink-2); }
@media (min-width: 760px) {
  .articles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Specialità (carosello) ---------- */
.carousel-ctrl { display: flex; gap: .6rem; }
.carousel { position: relative; }
.carousel__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(78vw, 24rem);
  gap: var(--gap);
  padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2));
  padding-bottom: .5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2));
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  cursor: grab;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.carousel__track.is-dragging * { pointer-events: none; }
.plate { scroll-snap-align: start; }
.plate__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  margin-bottom: 1.1rem;
  border-radius: var(--r-l);
}
.plate__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out);
}
.plate:hover .plate__media img { transform: scale(1.07); }
.plate__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(22, 18, 15, .55));
}
.plate__num {
  position: absolute;
  left: 1.1rem; bottom: .9rem;
  z-index: 1;
  font: italic 500 clamp(2.5rem, 5vw, 3.5rem)/1 var(--serif);
  color: var(--paper);
}
.plate__name { margin-bottom: .35rem; font: 600 var(--t-xl)/1.15 var(--serif); }
.plate__desc { font-size: var(--t-s); color: rgba(246, 241, 231, .72); }
.carousel__bar {
  height: 2px;
  margin-top: 2rem;
  background: var(--hair-light);
  border-radius: 2px;
  overflow: hidden;
}
.carousel__bar span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--red-soft);
  transform: scaleX(.2);
  transform-origin: 0 50%;
  transition: transform .2s linear;
}

/* ---------- L'osteria ---------- */
.osteria { display: grid; gap: 3rem; align-items: center; }
.osteria__media { position: relative; }
.osteria__media > img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--r-l);
}
.osteria__text .sec-title { margin-bottom: 1.5rem; }
.osteria__text .lead { margin-bottom: 1rem; }
.osteria__text > p:not(.lead):not(.eyebrow) { color: var(--ink-2); max-width: 40rem; }

.osteria__text .facts { margin-top: 2rem; }

.facts { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.facts > div { padding: 1rem 1.1rem; background: var(--paper-2); border-radius: var(--r-m); }
.facts dt { margin-bottom: .2rem; font: 600 var(--t-xs)/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.facts dd { font: 500 var(--t-m)/1.3 var(--serif); }
@media (max-width: 419px) {
  .facts { grid-template-columns: 1fr; }
}
@media (min-width: 900px) {
  .osteria { grid-template-columns: 5fr 6fr; gap: clamp(3rem, 7vw, 6rem); }
}
@media (min-width: 560px) and (max-width: 899px) {
  .osteria__media > img { aspect-ratio: 16 / 10; }
  .map:not(.map--wide) { aspect-ratio: 4 / 3; }
}

/* ---------- Mare e Mitteleuropa ---------- */
.tiles { display: grid; gap: var(--gap); }
.tile {
  position: relative;
  overflow: hidden;
  min-height: 26rem;
  border-radius: var(--r-l);
  transform-style: preserve-3d;
  transition: transform .4s var(--ease-out);
}
.tile img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out);
}
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23, 48, 63, 0) 35%, rgba(12, 26, 35, .92));
}
.tile:hover img { transform: scale(1.08); }
.tile__text { position: absolute; inset: auto 0 0; z-index: 1; padding: 1.5rem; }
.tile h3 { margin-bottom: .3rem; font: 600 var(--t-2xl)/1.1 var(--serif); overflow-wrap: anywhere; hyphens: auto; }
.tile p { color: rgba(246, 241, 231, .85); font-size: var(--t-s); }
@media (min-width: 800px) {
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tile { min-height: 32rem; }
  .tile:nth-child(2) { translate: 0 2.5rem; }
}

/* ---------- Al banco ---------- */
.banco { display: grid; gap: 3rem; align-items: center; }
.banco__text .sec-title { margin-bottom: 1.25rem; }
.banco__text .lead { margin-bottom: 1rem; }
.banco__text > p:not(.lead):not(.eyebrow) { color: var(--ink-2); max-width: 34rem; }

.banco__stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}
.banco__stack figure { overflow: hidden; border-radius: var(--r-l); }
.banco__stack img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.banco__stack figure:hover img { transform: scale(1.06); }
.banco__main { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
@media (min-width: 900px) {
  .banco { grid-template-columns: 5fr 6fr; gap: clamp(3rem, 6vw, 5rem); }
  .banco__text { order: 1; }
  .banco__stack { order: 2; }
}

/* ---------- Recensioni ---------- */
.reviews {
  position: relative;
  padding: clamp(1.75rem, 5vw, 3.5rem);
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: var(--r-l);
  overflow: hidden;
}
.reviews::before {
  content: "”";
  position: absolute;
  right: 1.5rem; top: -1.5rem;
  font: 600 clamp(10rem, 22vw, 18rem)/1 var(--serif);
  color: rgba(178, 49, 31, .08);
  pointer-events: none;
}
.reviews__viewport { display: grid; }
.review {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity .6s var(--ease), transform .8s var(--ease-out), visibility 0s .6s;
}
.review.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.review__stars { display: flex; gap: .2rem; margin-bottom: 1rem; color: #E0A43A; }
.review__stars svg { width: 1.2rem; height: 1.2rem; }
.review blockquote p {
  max-width: 48rem;
  font: 400 clamp(1.5rem, 1rem + 2.2vw, 2.6rem)/1.2 var(--serif);
  letter-spacing: -.01em;
}
.review figcaption { display: flex; align-items: center; gap: .8rem; margin-top: 1.5rem; font-size: var(--t-s); color: var(--ink-2); }
.review figcaption strong { color: var(--ink); }
.review__avatar {
  display: grid;
  place-items: center;
  width: 2.75rem; height: 2.75rem;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font: 600 var(--t-l)/1 var(--serif);
}
.reviews__ctrl { display: flex; align-items: center; gap: 1rem; margin-top: 2rem; }
@media (max-width: 399px) {
  .reviews__ctrl { gap: .6rem; }
  .reviews__ctrl .round-btn { width: 2.75rem; height: 2.75rem; }
  .reviews__ctrl .reviews__dots { gap: .3rem; }
  .reviews__ctrl .reviews__dots button[aria-current="true"] { width: 1.4rem; }
}
.reviews__dots { display: flex; gap: .4rem; }
.reviews__dots button {
  position: relative;
  width: .6rem; height: .6rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--hair);
  transition: width .4s var(--ease-out), background-color .3s;
}
.reviews__dots button[aria-current="true"] { width: 2rem; background: var(--red); }
/* Area di tocco più grande del pallino visibile */
.reviews__dots button::after { content: ""; position: absolute; inset: -1rem -.2rem; }
.js-none .reviews__ctrl { display: none; }
.reviews__more { margin-top: 1.5rem; color: var(--ink-2); }
/* Senza JS le recensioni si impilano */
html:not(.js) .review { position: static; opacity: 1; visibility: visible; transform: none; margin-bottom: 2rem; grid-area: auto; }
html:not(.js) .reviews__ctrl { display: none; }

/* ---------- Foto ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip {
  padding: .6rem 1.05rem;
  background: transparent;
  border: 1.5px solid var(--hair);
  border-radius: 999px;
  font: 600 var(--t-s)/1 var(--sans);
  transition: background-color .3s, color .3s, border-color .3s, transform .3s var(--ease-out);
}
.chip:hover { border-color: var(--ink); transform: translateY(-2px); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: clamp(8rem, 26vw, 11rem);
  grid-auto-flow: dense;
  gap: var(--gap);
}
@media (min-width: 700px) {
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: clamp(9rem, 17vw, 12rem); }
}
@media (min-width: 1100px) {
  .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.gallery__item { grid-row: span 1; }
.gallery__item--tall { grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }
.gallery__item.is-hidden { display: none; }

.gallery__btn {
  position: relative;
  display: block;
  width: 100%; height: 100%;
  padding: 0;
  overflow: hidden;
  background: var(--paper-2);
  border: 0;
  border-radius: var(--r-m);
  cursor: zoom-in;
}
.gallery__btn img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.gallery__btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(22, 18, 15, .75));
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.gallery__cap {
  position: absolute;
  left: .9rem; right: .9rem; bottom: .8rem;
  z-index: 1;
  font: 600 var(--t-s)/1.3 var(--sans);
  color: #fff;
  text-align: left;
  overflow-wrap: anywhere;
  hyphens: auto;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .4s var(--ease), transform .5s var(--ease-out);
}
.gallery__btn:hover img, .gallery__btn:focus-visible img { transform: scale(1.08); }
.gallery__btn:hover::after, .gallery__btn:focus-visible::after,
.gallery__btn:hover .gallery__cap, .gallery__btn:focus-visible .gallery__cap { opacity: 1; transform: none; }
@media (hover: none) {
  .gallery__btn::after, .gallery__cap { opacity: 1; transform: none; }
  .gallery__cap { font-size: var(--t-xs); }
}

/* Lightbox */
.lightbox {
  width: 100%;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 4.5rem clamp(.75rem, 7vw, 7rem);
  border: 0;
  background: rgba(16, 13, 11, .94);
  color: var(--paper);
  --focus: var(--paper);
  opacity: 0;
  transition-property: opacity, display, overlay;
  transition-duration: .35s;
  transition-behavior: allow-discrete;
}
.lightbox[open] { display: grid; place-items: center; opacity: 1; }
@starting-style {
  .lightbox[open] { opacity: 0; }
}
.lightbox::backdrop { background: rgba(0, 0, 0, .5); }
@supports (backdrop-filter: blur(1px)) {
  .lightbox { background: rgba(16, 13, 11, .82); backdrop-filter: blur(18px); }
}
.lightbox__figure { display: grid; gap: .9rem; justify-items: center; max-width: min(1400px, 100%); touch-action: pan-y; }
.lightbox__img {
  width: auto;
  max-width: 100%;
  max-height: calc(100dvh - 10rem);
  object-fit: contain;
  border-radius: var(--r-m);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8);
}
.lightbox[open] .lightbox__img { animation: zoomIn .5s var(--ease-out); }
.lightbox__img.is-changing { animation: swapIn .45s var(--ease-out); }
.lightbox__caption { display: flex; justify-content: space-between; gap: 1.5rem; width: 100%; margin: 0; font-size: var(--t-s); color: var(--paper); }
.lightbox__count { color: rgba(246, 241, 231, .6); white-space: nowrap; font-variant-numeric: tabular-nums; }
.lightbox__btn { position: fixed; background: rgba(22, 18, 15, .5); }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__prev { left: 1rem; bottom: 1rem; }
.lightbox__next { right: 1rem; bottom: 1rem; }
@media (min-width: 768px) {
  .lightbox__prev, .lightbox__next { top: 50%; bottom: auto; translate: 0 -50%; }
}

/* ---------- Dove siamo ---------- */
.place { display: grid; gap: 3rem; align-items: start; }
.place__info .sec-title { margin-bottom: .25rem; }
.place__info .actions { margin-top: 1.75rem; }
.info-grid { display: grid; gap: var(--gap); margin-top: 2rem; }
@media (min-width: 560px) {
  .info-grid { grid-template-columns: 1fr 1fr; }
}
.info-card {
  padding: 1.35rem;
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: var(--r-l);
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
}
.info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.info-card__title { margin-bottom: .6rem; font: 600 var(--t-l)/1.2 var(--serif); }
.hours__fallback { margin-bottom: .5rem; font-weight: 600; }
.hours__status { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; }
.hours__status::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: #3F8A42; }
.hours__status.is-closed::before { background: var(--red); }
.hours__list { margin-top: .5rem; }
.hours__day { display: flex; justify-content: space-between; gap: 1rem; padding-block: .3rem; border-bottom: 1px dashed var(--hair); font-size: var(--t-s); }
.hours__day dd { font-variant-numeric: tabular-nums; }
.hours__day.is-today { font-weight: 600; color: var(--red); }
.hours__note { margin-top: .75rem; font-size: var(--t-s); color: var(--ink-2); }

.contacts > div { padding-block: .4rem; border-bottom: 1px dashed var(--hair); }
.contacts > div:last-child { border-bottom: 0; }
.contacts dt { font: 600 var(--t-xs)/1.3 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.contacts dd { font-weight: 500; overflow-wrap: anywhere; }
.contacts a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .35s var(--ease), color .2s; }
.contacts a:hover { color: var(--red); background-size: 100% 1px; }

.perks { display: grid; gap: .6rem; margin-top: var(--gap); }
@media (min-width: 560px) {
  .perks { grid-template-columns: 1fr 1fr; }
  .perk--pay { grid-column: 1 / -1; }
}
.perk {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .85rem;
  padding: .9rem 1rem;
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: var(--r-m);
  transition: transform .4s var(--ease-out), border-color .3s;
}
.perk:hover { transform: translateY(-3px); border-color: rgba(178, 49, 31, .35); }
.perk__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.75rem; height: 2.75rem;
  border-radius: 50%;
  background: rgba(178, 49, 31, .09);
  color: var(--red);
  transition: background-color .3s, color .3s, transform .5s var(--ease-out);
}
.perk__icon svg { width: 1.35rem; height: 1.35rem; }
.perk:hover .perk__icon { background: var(--red); color: #fff; transform: rotate(-8deg); }
.perk__text { display: grid; flex: 1; min-width: 10rem; line-height: 1.3; }
.perk__text strong { font-weight: 600; }
.perk__text span { font-size: var(--t-xs); color: var(--ink-2); }
.pay { display: flex; flex-wrap: wrap; gap: .4rem; width: 100%; padding-left: 3.6rem; }
.pay__badge { width: 3rem; height: auto; aspect-ratio: 38 / 24; border-radius: 4px; box-shadow: 0 2px 6px -3px rgba(28, 23, 20, .3); transition: transform .3s var(--ease-out); }
.pay__badge--plain {
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .07);
}
.pay__badge--plain img { width: 1.6rem; height: 1.6rem; }
.pay__badge:hover { transform: translateY(-2px); }
@media (min-width: 700px) {
  .pay { width: auto; padding-left: 0; margin-left: auto; }
}

.map {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--r-l);
  background: var(--night);
  color: var(--paper);
  --focus: var(--paper);
}
.map__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; transition: transform 1.2s var(--ease-out); }
.map:hover .map__photo { transform: scale(1.05); }
.map::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(16, 13, 11, .92) 0%, rgba(16, 13, 11, .5) 45%, rgba(16, 13, 11, .05) 100%);
}
.map__frame { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; border: 0; background: var(--paper-2); }
.map__placeholder {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1.25rem, 4vw, 2.25rem);
}
.map__pin {
  position: relative;
  display: grid;
  place-items: center;
  width: 3rem; height: 3rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
}
.map__pin::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--red);
  animation: ripple 2.2s var(--ease) infinite;
  z-index: -1;
}
.map__street { margin: 0; font: 600 var(--t-2xl)/1.1 var(--serif); }
.map__city { margin: .3rem 0 1.25rem; color: rgba(246, 241, 231, .8); }
.map__note { max-width: 24rem; margin: .9rem 0 0; font-size: var(--t-xs); color: rgba(246, 241, 231, .7); }
.map__links { margin-top: .75rem; font-size: var(--t-s); color: var(--ink-2); }

@media (min-width: 900px) {
  .place { grid-template-columns: 6fr 5fr; gap: clamp(3rem, 6vw, 5rem); }
  .place__map { position: sticky; top: calc(var(--masthead) + 1.5rem); }
  .map { max-height: calc(100vh - var(--masthead) - 5rem); width: 100%; }
}

/* ---------- Il conto ---------- */
.bill {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: var(--section);
  background: var(--wine);
  color: var(--paper);
  --focus: var(--paper);
}
.bill__bg { position: absolute; inset: -15% 0; z-index: -1; }
.bill__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .28; filter: saturate(.8); }
.bill::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(53, 20, 15, .95) 30%, rgba(74, 26, 19, .6));
}
.bill__grid { display: grid; gap: 3rem var(--gap); align-items: center; }
.bill__title {
  margin-bottom: 1rem;
  font-family: var(--serif);
  font-size: clamp(2.8rem, 1.4rem + 5.5vw, 6rem);
  line-height: .95;
  letter-spacing: -.03em;
}
.bill__title em { font-style: italic; font-weight: 500; color: var(--red-soft); }
.bill__text > p { max-width: 30rem; font-size: var(--t-l); color: rgba(246, 241, 231, .8); }
.bill__text .actions { margin-top: 2rem; }

.receipt-wrap { position: relative; justify-self: center; width: min(100%, 20rem); padding-top: .6rem; }
.receipt-slot {
  position: absolute;
  top: 0; left: -1rem; right: -1rem;
  z-index: 2;
  height: 1rem;
  border-radius: 999px;
  background: #0B0907;
  box-shadow: inset 0 3px 6px rgba(0, 0, 0, .8), 0 1px 0 rgba(246, 241, 231, .12);
}
.receipt {
  --z: 9px;
  position: relative;
  padding: 2rem 1.4rem 2.25rem;
  background: #FFFDF8;
  font: 400 .875rem/1.55 var(--mono);
  color: var(--ink);
  -webkit-mask:
    conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / calc(2 * var(--z)) 51% repeat-x,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(2 * var(--z)) 51% repeat-x;
  mask:
    conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / calc(2 * var(--z)) 51% repeat-x,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(2 * var(--z)) 51% repeat-x;
  transform-origin: 50% 0;
}
.receipt-wrap::after {
  content: "";
  position: absolute;
  inset: 2rem 1rem -1rem;
  z-index: -1;
  background: rgba(0, 0, 0, .5);
  filter: blur(20px);
}
.receipt__logo { width: 7rem; margin: 0 auto .6rem; }
.receipt__head { text-align: center; padding-bottom: .75rem; border-bottom: 1px dashed var(--ink-2); }
.receipt__lines { padding-block: .75rem; border-bottom: 1px dashed var(--ink-2); }
.receipt__lines > div { display: flex; }
.receipt__lines dt { flex: 1; display: flex; }
.receipt__lines dt::after { content: ""; flex: 1; margin: 0 .5ch .35em; border-bottom: 1px dotted var(--ink-2); }
.receipt__total { font-weight: 700; }
.receipt__foot { margin: .75rem 0 0; text-align: center; }
/* Stampa dello scontrino */
.receipt-clip { position: relative; overflow: hidden; padding-bottom: 2px; }
.js-ready .receipt { transform: translateY(-101%); }
.js-ready .receipt-wrap.is-in .receipt { transform: none; transition: transform 2.2s steps(22, end) .2s; }

@media (min-width: 900px) {
  .bill__grid { grid-template-columns: 7fr 5fr; }
}

/* ---------- Footer ---------- */
.footer {
  padding-block: clamp(3rem, 6vw, 5rem) 2rem;
  background: var(--wine-deep);
  color: rgba(246, 241, 231, .75);
  border-top: 1px solid var(--hair-light);
  --focus: var(--paper);
}
.footer a { color: var(--paper); text-decoration: none; transition: color .2s; }
.footer a:hover { color: var(--red-soft); }
.footer__grid { display: grid; gap: 2rem var(--gap); grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); }
.footer__brand img { width: 9.5rem; margin-bottom: .75rem; }
.footer__brand p { font: italic 400 var(--t-l)/1.3 var(--serif); color: var(--paper); }
.footer__title { margin-bottom: .6rem; font: 600 var(--t-xs)/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--red-soft); }
.footer ul { display: grid; gap: .35rem; }
.footer__bottom { margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid var(--hair-light); font-size: var(--t-s); }
.footer__bottom p { margin: 0; }
@media (min-width: 1000px) {
  .footer__grid { grid-template-columns: 1.4fr repeat(4, 1fr); }
}

/* ---------- Torna su ---------- */
.to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 45;
  display: grid;
  place-items: center;
  width: 3.25rem; height: 3.25rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow);
  opacity: 0;
  translate: 0 1rem;
  pointer-events: none;
  transition: opacity .35s var(--ease), translate .45s var(--ease-out), background-color .25s;
  --focus: var(--red);
}
.to-top.is-visible { opacity: 1; translate: 0 0; pointer-events: auto; }
.to-top:hover { background: var(--red); }
.to-top > .icon, .to-top > svg:not(.to-top__ring) { grid-area: 1 / 1; }
.to-top__ring { grid-area: 1 / 1; width: 100%; height: 100%; rotate: -90deg; }
.to-top__ring circle { fill: none; stroke: var(--red-soft); stroke-width: 2.5; stroke-dasharray: 100; stroke-dashoffset: 100; }
@media (max-width: 899px) {
  .to-top { bottom: calc(4.5rem + env(safe-area-inset-bottom)); }
}

/* ---------- Barra azioni (mobile) ---------- */
.actionbar {
  position: fixed;
  left: .75rem; right: .75rem;
  bottom: calc(.75rem + env(safe-area-inset-bottom));
  z-index: 40;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(53, 20, 15, .94);
  color: var(--paper);
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .6);
  transition: transform .5s var(--ease-out), opacity .3s;
  --focus: var(--paper);
}
@supports (backdrop-filter: blur(1px)) {
  .actionbar { background: rgba(53, 20, 15, .8); backdrop-filter: blur(14px); }
}
.js .actionbar { transform: translateY(calc(100% + 2rem)); }
.js .actionbar.is-visible { transform: none; }
.actionbar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-height: 3.25rem;
  font: 600 var(--t-s)/1 var(--sans);
  text-decoration: none;
}
.actionbar__call { background: var(--red); color: #fff; }
@media (max-width: 899px) {
  body { padding-bottom: calc(4.5rem + env(safe-area-inset-bottom)); }
}
@media (min-width: 900px) {
  .actionbar { display: none; }
}

/* ---------- Lingue ---------- */
.lang { display: none; align-items: center; gap: .15rem; font: 600 var(--t-xs)/1 var(--sans); letter-spacing: .08em; }
.lang a {
  display: grid;
  place-items: center;
  min-width: 2.25rem;
  min-height: 2.25rem;
  border-radius: 999px;
  text-decoration: none;
  opacity: .62;
  transition: opacity .2s, box-shadow .25s var(--ease);
}
.lang a:hover { opacity: 1; }
.lang a[aria-current="true"] { opacity: 1; box-shadow: inset 0 0 0 1.5px currentColor; }
@media (min-width: 600px) {
  .lang { display: flex; }
}
@media (min-width: 1180px) and (max-width: 1439px) {
  .masthead__num { display: none; }
}
@media (min-width: 1180px) and (max-width: 1339px) {
  .masthead__inner { gap: .75rem; }
  .nav a { padding-inline: .55rem; }
  .lang a { min-width: 2rem; }
}
.drawer__lang { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; }
.drawer__lang a {
  padding: .55rem .8rem;
  border: 1px solid var(--hair-light);
  border-radius: 999px;
  font: 600 var(--t-xs)/1 var(--sans);
  letter-spacing: .08em;
  text-decoration: none;
}
.drawer__lang a[aria-current="true"] { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.nav a[aria-current="page"] { color: var(--red); }
.masthead--overlay:not(.is-solid) .nav a[aria-current="page"] { color: var(--red-soft); }

/* Collegamenti verso le pagine interne */
.more { margin-top: clamp(2rem, 4vw, 3rem); }
@media (max-width: 479px) {
  .more .btn { width: 100%; }
}
.carousel + .wrap.more { margin-top: 2rem; }
.footer__lang { display: flex; flex-wrap: wrap; gap: .3rem .9rem; }
.footer__lang a[aria-current="true"] { color: var(--red-soft); }
.footer__legal { flex-basis: 100%; font-size: var(--t-xs); line-height: 1.5; color: rgba(246, 241, 231, .55); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; }

/* ---------- Pagine interne ---------- */
.hero--page .hero__inner {
  min-height: auto;
  padding-top: calc(var(--masthead) + clamp(2rem, 6vw, 4.5rem));
  padding-bottom: clamp(3rem, 7vw, 5.5rem);
}
.hero--page .hero__title { font-size: clamp(2.4rem, 1.2rem + 4.4vw, 4.8rem); }
.hero--page .hero__lead { max-width: 34rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.5rem; font-size: var(--t-xs); color: rgba(246, 241, 231, .7); }
.crumbs li + li::before { content: "/"; margin-right: .45rem; opacity: .5; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--paper); text-decoration: underline; text-underline-offset: .2em; }
.crumbs [aria-current] { color: var(--paper); }

.page-photo { position: relative; margin: 0; }
.page-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--r-l);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8);
}
.page-photo figcaption {
  position: absolute;
  left: 1rem; bottom: 1rem;
  max-width: calc(100% - 2rem);
  padding: .5rem .85rem;
  border-radius: 999px;
  background: rgba(22, 18, 15, .72);
  font: 500 var(--t-xs)/1.3 var(--sans);
  color: var(--paper);
}
@supports (backdrop-filter: blur(1px)) {
  .page-photo figcaption { backdrop-filter: blur(10px); }
}
@media (max-width: 999px) {
  .page-photo img { aspect-ratio: 4 / 3; }
}
@media (min-width: 1000px) {
  .hero--page .hero__inner { grid-template-columns: 7fr 5fr; }
  .page-photo { rotate: 2deg; }
  .page-photo img { max-height: 36rem; }
}

/* Introduzione */
.intro { display: grid; gap: 1.5rem clamp(2rem, 6vw, 5rem); }
.intro .sec-title { margin-bottom: 1.25rem; }
.intro__body p { color: var(--ink-2); max-width: 40rem; }
.intro__body .lead { color: var(--ink); margin-bottom: 1.25rem; }
@media (min-width: 900px) {
  .intro { grid-template-columns: 5fr 6fr; align-items: start; }
}

/* Piatti in righe alternate */
.courses { display: grid; gap: clamp(3.5rem, 8vw, 6.5rem); }
.course { display: grid; gap: 1.5rem clamp(2rem, 6vw, 5rem); align-items: center; }
.course__media { position: relative; overflow: hidden; aspect-ratio: 4 / 5; border-radius: var(--r-l); }
.course__media--land { aspect-ratio: 4 / 3; }
/* Tablet in verticale: una colonna larga, foto più basse per non riempire tutto lo schermo */
@media (min-width: 560px) and (max-width: 799px) {
  .course__media, .course__media--land { aspect-ratio: 16 / 10; }
}
.course__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.course:hover .course__media img { transform: scale(1.05); }
.course__num { display: block; margin-bottom: .75rem; font: italic 500 clamp(2.75rem, 5vw, 4rem)/1 var(--serif); color: var(--red); }
.course__title { margin-bottom: .9rem; font: 600 var(--t-2xl)/1.1 var(--serif); letter-spacing: -.015em; }
.course__text p { color: var(--ink-2); max-width: 36rem; }
.course__tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.25rem; }
.course__tags li { padding: .4rem .8rem; border: 1px solid var(--hair); border-radius: 999px; font: 600 var(--t-xs)/1.2 var(--sans); }
@media (min-width: 800px) {
  .course { grid-template-columns: 5fr 6fr; }
  .course:nth-child(even) { grid-template-columns: 6fr 5fr; }
  .course:nth-child(even) .course__media { order: 2; }
}

/* Schede di testo */
.notes { display: grid; gap: var(--gap); }
@media (min-width: 700px) {
  .notes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .notes--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.note {
  padding: clamp(1.4rem, 3vw, 2rem);
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: var(--r-l);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.note:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.note__kicker { margin-bottom: .6rem; font: 600 var(--t-xs)/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.note h3 { margin-bottom: .5rem; font: 600 var(--t-xl)/1.15 var(--serif); }
.note p { color: var(--ink-2); }
.section--sea .note, .section--dark .note { background: rgba(246, 241, 231, .06); border-color: var(--hair-light); }
.section--sea .note p, .section--dark .note p { color: rgba(246, 241, 231, .78); }
.section--sea .note__kicker, .section--dark .note__kicker { color: var(--red-soft); }

/* Recensione singola */
.quote { max-width: 56rem; margin-inline: auto; text-align: center; }
.quote .review__stars { justify-content: center; }
.quote blockquote p { font: 400 clamp(1.6rem, 1rem + 2.4vw, 2.8rem)/1.2 var(--serif); letter-spacing: -.01em; }
.quote figcaption { margin-top: 1.25rem; font-size: var(--t-s); color: var(--ink-2); }
.section--sea .quote figcaption, .section--dark .quote figcaption { color: rgba(246, 241, 231, .7); }
.quote figcaption strong { color: inherit; font-weight: 600; }

.facts--4 { margin-top: 2rem; }
@media (min-width: 900px) {
  .facts--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.facts dd a { text-decoration: none; }
.facts dd a:hover { color: var(--red); }

/* Altre pagine */
.related { display: grid; gap: var(--gap); }
@media (min-width: 760px) {
  .related { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.related__card {
  position: relative;
  isolation: isolate;
  display: block;
  overflow: hidden;
  min-height: 19rem;
  border-radius: var(--r-l);
  color: var(--paper);
  text-decoration: none;
  --focus: var(--red);
}
.related__card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.related__card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(22, 18, 15, .05) 30%, rgba(22, 18, 15, .88)); }
.related__card:hover img { transform: scale(1.07); }
.related__body { position: absolute; inset: auto 0 0; padding: 1.5rem; }
.related__kicker { margin-bottom: .5rem; font: 600 var(--t-xs)/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--red-soft); }
.related__title { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; font: 600 var(--t-xl)/1.15 var(--serif); overflow-wrap: anywhere; hyphens: auto; }
.related__title .icon { flex: none; }
.related__title .icon { transition: transform .35s var(--ease-out); }
.related__card:hover .related__title .icon { transform: translateX(5px); }

/* ---------- Contatti e come arrivare ---------- */
.contact-grid { display: grid; gap: var(--gap); }
@media (min-width: 700px) {
  .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1180px) {
  .contact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* Il numero con prefisso internazionale è lungo: dimensione contenuta e niente a capo a metà */
.contact-big { margin: .25rem 0 .75rem; font: 600 clamp(1.35rem, 1.1rem + 1vw, 1.65rem)/1.15 var(--serif); letter-spacing: -.01em; white-space: nowrap; }
.contact-big a { text-decoration: none; color: var(--red); }
.contact-big a:hover { text-decoration: underline; text-underline-offset: .15em; }
.contact-note { font-size: var(--t-s); color: var(--ink-2); }
.map--wide { aspect-ratio: 16 / 9; max-height: 34rem; }
@media (max-width: 699px) {
  .map--wide { aspect-ratio: 4 / 5; }
}
.note--icon .note__icon {
  display: grid;
  place-items: center;
  width: 3rem; height: 3rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: rgba(178, 49, 31, .09);
  color: var(--red);
  transition: background-color .3s, color .3s, transform .5s var(--ease-out);
}
.note--icon .note__icon svg { width: 1.5rem; height: 1.5rem; }
.note--icon:hover .note__icon { background: var(--red); color: #fff; transform: rotate(-8deg); }
.perks--page { margin-top: clamp(2rem, 4vw, 3rem); }
@media (min-width: 900px) {
  .perks--page { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .perks--page .perk--pay { grid-column: auto; }
}

/* ---------- Domande frequenti ---------- */
.faq-grid { display: grid; gap: 2rem clamp(2rem, 6vw, 5rem); align-items: start; }
@media (min-width: 900px) {
  .faq-grid { grid-template-columns: 5fr 7fr; }
  .faq-grid .sec-head { position: sticky; top: calc(var(--masthead) + 1.5rem); }
}
.faq { display: grid; gap: .6rem; }
.faq details {
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: var(--r-m);
  transition: border-color .3s, box-shadow .4s var(--ease-out);
}
.faq details:hover { border-color: rgba(178, 49, 31, .35); }
.faq details[open] { box-shadow: var(--shadow); border-color: rgba(178, 49, 31, .35); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  font: 600 var(--t-l)/1.3 var(--serif);
  list-style: none;
  cursor: pointer;
  border-radius: inherit;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  display: grid;
  place-items: center;
  flex: none;
  width: 2rem; height: 2rem;
  border-radius: 50%;
  background: rgba(178, 49, 31, .09);
  color: var(--red);
  font: 500 1.35rem/1 var(--sans);
  transition: rotate .35s var(--ease-out), background-color .3s, color .3s;
}
.faq details[open] summary::after { rotate: 45deg; background: var(--red); color: #fff; }
.faq__a { padding: 0 1.25rem 1.2rem; color: var(--ink-2); }
.faq__a a { color: var(--ink); }
.faq details[open] .faq__a { animation: fadeUp .45s var(--ease-out) both; }

.bill--short .bill__grid { grid-template-columns: 1fr; }
.bill--short .bill__text > p { max-width: 36rem; }

/* ---------- Ingressi allo scroll ---------- */
.js-ready [data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .9s var(--ease), transform 1.1s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js-ready [data-reveal].is-in { opacity: 1; transform: none; }
.js-ready [data-reveal="img"] {
  opacity: 1;
  transform: none;
  clip-path: inset(12% 8% 12% 8% round var(--r-l));
  transition: clip-path 1.4s var(--ease-out);
}
.js-ready [data-reveal="img"] img:first-child { scale: 1.15; transition: scale 1.8s var(--ease-out); }
.js-ready [data-reveal="img"].is-in { clip-path: inset(0 0 0 0 round var(--r-l)); }
.js-ready [data-reveal="img"].is-in img:first-child { scale: 1; }

/* ---------- Keyframes ---------- */
@keyframes lineUp { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(100%); } to { opacity: 1; transform: none; } }
@keyframes wallUp { from { transform: translateY(0); } to { transform: translateY(calc(-50% - var(--gap) / 2)); } }
@keyframes wallDown { from { transform: translateY(calc(-50% - var(--gap) / 2)); } to { transform: translateY(0); } }
@keyframes wallIn { from { opacity: 0; transform: rotate(-2deg) translateY(60px) scale(.96); } to { opacity: 1; transform: rotate(-2deg); } }
@keyframes pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(2.8); opacity: 0; } }
@keyframes ripple { 0% { transform: scale(1); opacity: .5; } 100% { transform: scale(2.2); opacity: 0; } }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(.8rem); opacity: 0; } }
@keyframes zoomIn { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
@keyframes swapIn { from { opacity: 0; transform: translateX(var(--dir, 20px)); } to { opacity: 1; transform: none; } }

/* ---------- Movimento ridotto ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .wall__track { animation: none !important; }
  .js-ready [data-reveal], .js-ready [data-reveal="img"] { opacity: 1; transform: none; clip-path: none; }
  .js-ready [data-reveal="img"] img { scale: 1 !important; }
  .js-ready .receipt { transform: none; }
}

/* ---------- Stampa ---------- */
@media print {
  .masthead, .actionbar, .to-top, .progress, .gallery, .map, .lightbox, .drawer, .hero__wall, .carousel-ctrl, .bill { display: none !important; }
  body { background: #fff; padding: 0; }
  .hero, .section--dark, .section--sea { background: none; color: #000; }
  .js-ready [data-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}
