/* Font ospitati sul sito (Fraunces, DM Sans e Caveat, SIL Open Font License):
   nessuna richiesta a Google Fonts, quindi nessun dato del visitatore inviato a terzi. */
@font-face { font-family: 'Caveat'; font-style: normal; font-weight: 500 600; font-display: swap; src: url(../fonts/caveat-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Caveat'; font-style: normal; font-weight: 500 600; font-display: swap; src: url(../fonts/caveat-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: 'DM Sans'; font-style: italic; font-weight: 300 700; font-display: swap; src: url(../fonts/dmsans-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'DM Sans'; font-style: italic; font-weight: 300 700; font-display: swap; src: url(../fonts/dmsans-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: 'DM Sans'; font-style: normal; font-weight: 300 700; font-display: swap; src: url(../fonts/dmsans-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 300 700; font-display: swap; src: url(../fonts/dmsans-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: 'Fraunces'; font-style: italic; font-weight: 300 800; font-display: swap; src: url(../fonts/fraunces-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Fraunces'; font-style: italic; font-weight: 300 800; font-display: swap; src: url(../fonts/fraunces-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: 'Fraunces'; font-style: normal; font-weight: 300 800; font-display: swap; src: url(../fonts/fraunces-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 300 800; font-display: swap; src: url(../fonts/fraunces-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; }

/* ==========================================================================
   Ghe sem · Concorezzo
   Palette ereditata dal sito originale: crema, bordeaux, inchiostro. In più un ocra.
   ========================================================================== */

:root {
  --cream: #F4EFE4;
  --cream-2: #EAE2D0;
  --paper: #FBF8F1;
  --wine: #6E1F2B;
  --wine-2: #8A2A39;
  --wine-deep: #3B0F17;
  --wine-ink: #220A0F;
  --ink: #2B2A28;
  --muted: #6F675B;
  --ochre: #DDA94B;
  --ochre-2: #EBC677;
  --green: #5CD28C;

  --ff-display: "Fraunces", Georgia, "Times New Roman", serif;
  --ff-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ff-hand: "Caveat", "Bradley Hand", cursive;

  --gut: clamp(20px, 4.2vw, 56px);
  --r-sec: clamp(28px, 4.5vw, 64px);
  --pad: clamp(72px, 10vw, 150px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--ff-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--wine-ink);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.no-scroll { overflow: hidden; }

/* grana di carta, appena percettibile */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 300;
  pointer-events: none;
  opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }

.wrap { width: min(1240px, 100% - 2 * var(--gut)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 400; background: var(--ochre); color: var(--wine-ink); padding: .6rem 1rem; border-radius: 99px; font-weight: 600; transition: top .2s; }
.skip:focus { top: 12px; }

:focus-visible { outline: 2.5px solid var(--ochre); outline-offset: 3px; border-radius: 6px; }
/* le sezioni ricevono il focus quando ci si arriva da un link interno: niente cornice intorno */
[tabindex="-1"]:focus { outline: none; }

/* ---------- tipografia ---------- */
h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -.02em;
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 70, "WONK" 1;
}
h2 { font-size: clamp(2.8rem, 7.2vw, 6.2rem); letter-spacing: -.035em; }
h2 em, h3 em { font-style: italic; font-weight: 400; color: var(--wine); }
.day h2 em, .wine h2 em { color: var(--ochre); }
.work h2 em { color: var(--wine); }

.kicker {
  display: flex; align-items: center; gap: .8rem; width: fit-content;
  font-size: .78rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--wine);
  margin-bottom: 1.4rem;
}
.kicker::before { content: ""; width: 34px; height: 1.5px; background: currentColor; }
.kicker-light { color: var(--cream); }
.k-city { white-space: nowrap; }
.kicker-ochre { color: var(--ochre); }
.kicker-ink { color: var(--wine-ink); }

.lede { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.6; max-width: 34em; }

.sec-head { margin-bottom: clamp(40px, 6vw, 80px); }
.sec-sub { max-width: 34em; margin-top: 1.6rem; font-size: 1.12rem; color: var(--muted); }
.sec-sub b { color: var(--wine); font-weight: 700; }
.sec-split { display: grid; gap: 1.6rem 4rem; align-items: end; }
.sec-split .sec-sub { margin: 0; }
@media (min-width: 900px) { .sec-split { grid-template-columns: 1.1fr .9fr; } }

/* sezioni sovrapposte con angoli arrotondati */
section, footer.foot { position: relative; padding-block: var(--pad) calc(var(--pad) + var(--r-sec)); overflow-x: clip; }
.stack {
  margin-top: calc(var(--r-sec) * -1);
  border-radius: var(--r-sec) var(--r-sec) 0 0;
  z-index: 1;
}

/* ---------- bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: 1rem 1.55rem;
  border-radius: 99px;
  border: 1.5px solid transparent;
  font-weight: 600; font-size: .95rem; line-height: 1; text-decoration: none;
  cursor: pointer;
  transition: transform .35s var(--ease), background .3s, color .3s, border-color .3s, box-shadow .3s;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .35s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover svg.arr { transform: translateX(4px); }
.btn-sm { padding: .8rem 1.15rem; font-size: .88rem; }
.btn-ochre { background: var(--ochre); color: var(--wine-ink); box-shadow: 0 8px 24px -10px rgba(221, 169, 75, .7); }
.btn-ochre:hover { background: var(--ochre-2); }
.btn-ghost { border-color: rgba(244, 239, 228, .5); color: var(--cream); }
.btn-ghost:hover { background: var(--cream); color: var(--wine); }
.btn-wine { background: var(--wine); color: var(--cream); }
.btn-wine:hover { background: var(--wine-2); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--cream); }

/* ---------- reveal ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .9s var(--ease), transform .9s var(--ease), clip-path 1.2s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal="zoom"] { transform: scale(.94) translateY(20px); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
/* il "sipario" va sull'immagine: un clip-path sull'elemento osservato lo renderebbe invisibile all'IntersectionObserver */
.js [data-reveal="clip"] { transform: none; opacity: 1; }
.js [data-reveal="clip"] img { clip-path: inset(0 0 100% 0); transition: clip-path 1.3s var(--ease) var(--d, 0ms), transform 1.1s var(--ease); }
.js [data-reveal="clip"].is-in img { clip-path: inset(0 0 0 0); }

/* ---------- barra di avanzamento ---------- */
#progress {
  position: fixed; left: 0; top: 0; right: 0; height: 3px; z-index: 200;
  background: linear-gradient(90deg, var(--ochre), var(--wine-2));
  transform: scaleX(0); transform-origin: left;
}

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 150;
  height: 88px;
  display: flex; align-items: center;
  color: var(--cream);
  transition: background .4s, color .4s, box-shadow .4s, height .4s;
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.nav.is-solid {
  height: 70px;
  background: rgba(244, 239, 228, .86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(43, 42, 40, .08);
}
/* il logo vero, ricalcato dall'insegna: una sola forma che prende il colore del testo,
   crema sopra le foto dell'hero e inchiostro sulla barra chiara */
.logo {
  display: block; flex: none;
  height: 62px; aspect-ratio: 459 / 253;
  background-color: currentColor;
  -webkit-mask: url("../img/logo-ghe-sem.svg") center / contain no-repeat;
          mask: url("../img/logo-ghe-sem.svg") center / contain no-repeat;
  transition: height .4s var(--ease);
}
.nav.is-solid .logo { height: 50px; }
.js .nav .logo { opacity: 0; pointer-events: none; }
.js .logo-docked .nav .logo, .js .menu-open .nav .logo { opacity: 1; pointer-events: auto; }
/* barra 88/70 px e logo 62/50 px: circa 12 px d'aria sopra e sotto il logo */
.nav-links { display: flex; gap: 2.2rem; font-size: .92rem; font-weight: 500; }
.nav-links a { position: relative; padding: .4rem 0; text-decoration: none; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta { padding: .8rem 1.2rem; }
.nav.is-solid .nav-cta { background: var(--wine); color: var(--cream); box-shadow: none; }

.burger { display: none; width: 46px; height: 46px; border: 0; background: none; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .4s var(--ease), top .4s var(--ease); }
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 26px; }
.menu-open .burger span:first-child { top: 22px; transform: rotate(45deg); }
.menu-open .burger span:last-child { top: 22px; transform: rotate(-45deg); }

.mnav {
  position: fixed; inset: 0; z-index: 140;
  background: var(--wine-ink); color: var(--cream);
  display: flex; flex-direction: column; justify-content: center; gap: 2.4rem;
  padding: 100px var(--gut) 40px;
  clip-path: circle(0 at calc(100% - 40px) 40px);
  visibility: hidden;
  transition: clip-path .7s var(--ease), visibility 0s .7s;
}
.menu-open .mnav { clip-path: circle(150% at calc(100% - 40px) 40px); visibility: visible; transition: clip-path .7s var(--ease), visibility 0s; }
.menu-open .nav { color: var(--cream); background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.mnav nav { display: grid; gap: .3rem; }
.mnav nav a {
  font-family: var(--ff-display); font-size: clamp(2.2rem, 9vw, 3.4rem); text-decoration: none; letter-spacing: -.03em;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  padding: .2rem 0; border-bottom: 1px solid rgba(244, 239, 228, .12);
}
.mnav-foot { color: rgba(244, 239, 228, .7); }
.mnav-foot a { color: var(--ochre); font-weight: 600; text-decoration: none; font-size: 1.3rem; }

@media (max-width: 899px) {
  .nav-links, .nav-cta { display: none; }
  .burger { display: block; margin-right: -8px; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  padding: 0;
  color: var(--cream);
  display: flex; align-items: flex-end;
  background: var(--wine-ink);
  isolation: isolate;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
/* Le foto sono impilate in ordine fisso: la prima sta sempre sotto ed è sempre opaca,
   ogni foto successiva sfuma sopra quelle già visibili (.is-on). Nessun buco scuro a
   metà dissolvenza e nessuno scambio di z-index, che su alcuni telefoni fa lampeggiare. */
.slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0;
  transform: scale(1.14);
  will-change: transform, opacity;
  transition: opacity 1.2s ease, transform 0s linear 1.2s;
}
.slide:first-child, .slide.is-on { opacity: 1; }
.slide.is-active { transform: scale(1); transition: opacity 1.2s ease, transform 9s ease-out; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(34, 10, 15, .9) 0%, rgba(34, 10, 15, .62) 42%, rgba(34, 10, 15, .12) 100%),
    linear-gradient(0deg, rgba(34, 10, 15, .92) 0%, rgba(34, 10, 15, 0) 42%),
    linear-gradient(180deg, rgba(34, 10, 15, .55) 0%, rgba(34, 10, 15, 0) 22%);
}
.hero-inner { padding: 140px 0 clamp(130px, 19vh, 190px); }

.hero-title { position: relative; display: inline-block; margin: .4rem 0 1.6rem; }
/* il logo al posto del titolo, grande quanto era la parola "Ghe".
   Scorrendo, js/main.js lo fa salire e rimpicciolire fino al suo posto nella barra. */
.hero-logo {
  display: block;
  width: clamp(8.1rem, 27.75vw, 25.5rem); aspect-ratio: 459 / 253;
  transform-origin: 0 0;
}
.hero-logo.is-docked { visibility: hidden; }
.hero-mark {
  display: block; width: 100%; height: 100%;
  background-color: var(--cream);
  -webkit-mask: url("../img/logo-ghe-sem.svg") center / contain no-repeat;
          mask: url("../img/logo-ghe-sem.svg") center / contain no-repeat;
  animation: logoIn 1.2s var(--ease) .15s both;
}
@keyframes logoIn { from { opacity: 0; transform: translateY(26px) scale(.96); } }


.hero-lede { font-size: clamp(1.15rem, 1.8vw, 1.5rem); max-width: 30em; color: rgba(244, 239, 228, .92); line-height: 1.5; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem; margin-top: 2rem; }

.status {
  display: inline-flex; align-items: center; gap: .65rem;
  padding: .62rem 1rem .62rem .85rem;
  border-radius: 99px;
  font-size: .88rem; font-weight: 500;
  background: rgba(244, 239, 228, .13);
  border: 1px solid rgba(244, 239, 228, .28);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.status .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ochre); flex: none; }
.status.is-open .dot { background: var(--green); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(92, 210, 140, .6); } 80%, 100% { box-shadow: 0 0 0 10px rgba(92, 210, 140, 0); } }
.status-dark { background: rgba(110, 31, 43, .07); border-color: rgba(110, 31, 43, .22); color: var(--wine); }

/* timbro rotante */
.badge {
  position: absolute; right: var(--gut); bottom: clamp(100px, 17vh, 170px);
  width: clamp(120px, 14vw, 190px); aspect-ratio: 1;
  display: grid; place-items: center; text-decoration: none;
  color: var(--cream);
  transition: transform .5s var(--ease);
}
.badge:hover { transform: scale(1.07) rotate(-4deg); }
.badge::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: rgba(34, 10, 15, .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid rgba(244, 239, 228, .25); }
.badge-ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 26s linear infinite; }
.badge-ring text { font-family: var(--ff-body); font-size: 13.4px; font-weight: 700; letter-spacing: .12em; fill: var(--cream); }
@keyframes spin { to { transform: rotate(360deg); } }
.badge-core { position: relative; display: flex; align-items: flex-start; font-family: var(--ff-display); color: var(--ochre); line-height: 1; font-variation-settings: "SOFT" 100, "WONK" 1; }
.badge-core b { font-size: clamp(2.6rem, 4.6vw, 4.2rem); font-weight: 600; letter-spacing: -.04em; }
.badge-core i { font-style: normal; font-size: clamp(1.2rem, 2vw, 1.8rem); margin: .35em 0 0 .08em; }

/* stories */
.stories {
  position: absolute; left: var(--gut); bottom: clamp(22px, 4.5vh, 44px); z-index: 3;
  display: flex; gap: 14px;
  width: min(560px, calc(100% - 2 * var(--gut)));
}
.story { flex: 1; text-align: left; background: none; border: 0; padding: 0; cursor: pointer; color: rgba(244, 239, 228, .55); transition: color .3s; }
.story:hover, .story.is-active { color: var(--cream); }
.story .bar { display: block; position: relative; height: 3px; border-radius: 3px; overflow: hidden; background: rgba(244, 239, 228, .25); margin-bottom: .75rem; }
.story .bar::after { content: ""; position: absolute; inset: 0; background: var(--cream); transform: scaleX(0); transform-origin: left; }
.story.is-done .bar::after { transform: scaleX(1); }
.hero.is-playing .story.is-active .bar::after { animation: fill 6s linear forwards; }
.hero.is-still .story.is-active .bar::after { animation: none; transform: scaleX(1); }
@keyframes fill { to { transform: scaleX(1); } }
.story .t { display: block; font-family: var(--ff-display); font-size: 1.25rem; font-weight: 500; line-height: 1; }
.story .l { display: block; font-size: .8rem; letter-spacing: .06em; margin-top: .25rem; opacity: .85; }

@media (max-width: 760px) {
  .br-d { display: none; }
  /* telefono: il logo sta al centro esatto della prima schermata, con "Café & bistrot /
     Concorezzo (MB)" sopra e il resto sotto. 3.54rem = le due righe del kicker e il suo margine. */
  .hero { align-items: flex-start; }
  .hero-inner {
    --logo-w: min(74vw, 300px);
    display: flex; flex-direction: column; align-items: center; text-align: center;
    padding: calc(50vh - var(--logo-w) * 253 / 459 / 2 - 3.54rem) 0 112px;
    padding-top: calc(50svh - var(--logo-w) * 253 / 459 / 2 - 3.54rem);
  }
  .hero .kicker { margin: 0 auto 1.2rem; line-height: 1.5; text-align: center; }
  .hero .kicker::before { display: none; }
  .k-city { display: block; }
  .k-sep { display: none; }
  .hero-title { margin: 0 0 1.6rem; }
  .hero-logo { width: var(--logo-w); }
  .hero-lede { font-size: 1rem; line-height: 1.5; max-width: 22em; }
  .hero-cta { justify-content: center; gap: .6rem; margin-top: 1.2rem; }
  .badge { width: 104px; bottom: auto; top: 98px; }
  .hero-cta .btn-ghost { display: none; }
}

@media (max-width: 400px) {
  .badge { width: 88px; top: 84px; }
  .badge-core b { font-size: 2.2rem; }
  .badge-core i { font-size: 1.05rem; }
}

/* ==========================================================================
   MARQUEE
   ========================================================================== */
.marquee { background: var(--wine); color: var(--cream); overflow: hidden; position: relative; z-index: 2; padding: 1.05rem 0; border-block: 1px solid rgba(255, 255, 255, .08); }
.marquee-track { display: flex; width: max-content; animation: mq 46s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-set { display: flex; align-items: center; }
.marquee-set span {
  font-family: var(--ff-display); font-style: italic; font-weight: 400; font-size: clamp(1.4rem, 2.5vw, 2.1rem);
  white-space: nowrap; padding-inline: 1.5rem;
  font-variation-settings: "SOFT" 100, "WONK" 1;
}
.marquee-set i { color: var(--ochre); font-style: normal; font-size: 1.1rem; }
@keyframes mq { to { transform: translateX(-50%); } }

/* ==========================================================================
   MANIFESTO
   ========================================================================== */
.manifesto { background: var(--cream); padding-bottom: calc(var(--pad) + var(--r-sec)); }
.manifesto-grid { display: grid; gap: 3.5rem; align-items: center; }
@media (min-width: 1000px) { .manifesto-grid { grid-template-columns: 1fr 340px; gap: 5rem; } }
.manifesto-text {
  font-family: var(--ff-display); font-weight: 400;
  font-size: clamp(1.9rem, 4.4vw, 3.9rem); line-height: 1.12; letter-spacing: -.025em;
  font-variation-settings: "SOFT" 60, "WONK" 1;
}
.manifesto-text b { font-weight: 600; font-style: italic; color: var(--wine); }
.js .manifesto-text .w { opacity: .16; transition: opacity .5s ease; }
.js .manifesto-text .w.on { opacity: 1; }

.dict {
  position: relative; background: var(--paper); border-radius: 6px;
  padding: 2rem 1.8rem 2.2rem; transform: rotate(2.2deg);
  box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 30px 50px -28px rgba(34, 10, 15, .45);
  border: 1px solid rgba(43, 42, 40, .08);
}
.dict::before { content: ""; position: absolute; inset: 9px; border: 1px dashed rgba(110, 31, 43, .3); border-radius: 3px; pointer-events: none; }
.dict-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .8rem; }
.dict-head b { font-family: var(--ff-display); font-size: 2rem; font-weight: 600; letter-spacing: -.03em; color: var(--wine); }
.dict-head i { font-size: .8rem; color: var(--muted); }
.dict-def { font-family: var(--ff-display); font-size: 3.4rem; font-style: italic; line-height: 1; margin: .7rem 0 .9rem; letter-spacing: -.04em; font-variation-settings: "SOFT" 100, "WONK" 1; }
.dict-note { font-size: .96rem; color: var(--muted); }
.dict-hand { position: absolute; right: 1.4rem; bottom: -1.5rem; font-family: var(--ff-hand); font-size: 1.7rem; font-weight: 600; color: var(--wine); transform: rotate(-6deg); }

.facts { display: grid; gap: 2.4rem; margin-top: clamp(64px, 9vw, 120px); padding-top: 2.6rem; border-top: 1px solid rgba(43, 42, 40, .15); }
@media (min-width: 760px) { .facts { grid-template-columns: repeat(3, 1fr); gap: 3rem; } }
.fact-n { font-family: var(--ff-display); font-weight: 500; font-size: clamp(4rem, 8.5vw, 7.5rem); line-height: .95; letter-spacing: -.05em; color: var(--wine); font-variation-settings: "SOFT" 100, "WONK" 1; }
.fact-n small { font-size: .38em; font-style: italic; margin-left: .15em; letter-spacing: -.01em; color: var(--ink); }
.fact-l { margin-top: .8rem; max-width: 18em; color: var(--muted); }

/* ==========================================================================
   UNA GIORNATA
   ========================================================================== */
.day { background: var(--wine-ink); color: var(--cream); }
.sec-head-light h2 { color: var(--cream); }
.day-grid { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 900px) { .day-grid { grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 6vw, 96px); } }

.day-media {
  position: sticky; top: 86px; z-index: 2;
  height: calc(100vh - 120px); height: calc(100svh - 120px); max-height: 760px; min-height: 420px;
  border-radius: 30px; overflow: hidden; background: var(--wine-deep);
}
.day-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.1); transition: opacity 1s ease, transform 1.6s var(--ease); }
.day-img.is-active { opacity: 1; transform: scale(1); }
.day-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(34, 10, 15, .78) 0%, rgba(34, 10, 15, 0) 55%); }
.clock { position: absolute; left: 1.6rem; bottom: .6rem; height: clamp(5.6rem, 11vw, 9rem); width: 80%; overflow: hidden; }
.clock span {
  position: absolute; left: 0; bottom: 0;
  font-family: var(--ff-display); font-weight: 300; font-size: clamp(5rem, 10vw, 8.6rem); line-height: 1; letter-spacing: -.05em;
  color: var(--cream);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  transform: translateY(100%); opacity: 0; transition: transform .8s var(--ease), opacity .6s;
}
.clock span.is-active { transform: none; opacity: 1; }

.day-steps { padding-bottom: 10vh; }
.day-step {
  min-height: 78vh; min-height: 78svh; display: flex; flex-direction: column; justify-content: center;
  opacity: .28; transition: opacity .6s ease;
}
.day-step.is-active { opacity: 1; }
.step-n { font-size: .78rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--ochre); margin-bottom: 1.2rem; }
.day-step h3 { font-size: clamp(2.4rem, 5vw, 4.2rem); letter-spacing: -.035em; margin-bottom: 1.2rem; }
.day-step p:not(.step-n) { color: rgba(244, 239, 228, .78); font-size: 1.12rem; max-width: 26em; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.6rem; list-style: none; padding: 0; }
.chips li { padding: .45rem .95rem; border: 1px solid rgba(244, 239, 228, .28); border-radius: 99px; font-size: .85rem; font-weight: 500; }

@media (max-width: 899px) {
  .day-media { top: 80px; height: 38vh; height: 38svh; min-height: 260px; border-radius: 22px; }
  .clock { height: 4.6rem; left: 1.1rem; }
  .clock span { font-size: 4.2rem; }
  .day-step { min-height: 56vh; min-height: 56svh; justify-content: flex-start; padding-top: 2.6rem; }
}

/* ==========================================================================
   VINO
   ========================================================================== */
.wine { background: radial-gradient(120% 90% at 20% 0%, #5a1827 0%, var(--wine-deep) 55%, var(--wine-ink) 100%); color: var(--cream); }
.wine-grid { display: grid; gap: 4rem; align-items: center; }
@media (min-width: 900px) { .wine-grid { grid-template-columns: .85fr 1.15fr; gap: clamp(48px, 7vw, 110px); } }
.wine-visual { position: relative; max-width: 480px; margin-inline: auto; width: 100%; }
.arch { aspect-ratio: 4 / 5.3; border-radius: 999px 999px 28px 28px; overflow: hidden; border: 1px solid rgba(244, 239, 228, .25); box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .7); }
.arch img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); will-change: transform; }
.round { position: absolute; right: -4%; bottom: 8%; width: 42%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 6px solid var(--wine-deep); box-shadow: 0 20px 40px -14px rgba(0, 0, 0, .7); }
.round img { width: 100%; height: 100%; object-fit: cover; }
.wine-hand { position: absolute; left: -4%; top: 6%; font-family: var(--ff-hand); font-size: 2.6rem; font-weight: 600; color: var(--ochre); transform: rotate(-12deg); }
.wine-copy .lede { color: rgba(244, 239, 228, .82); margin-top: 1.8rem; }
.drinks { list-style: none; padding: 0; margin-top: 2.6rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(244, 239, 228, .16); border: 1px solid rgba(244, 239, 228, .16); border-radius: 22px; overflow: hidden; }
.drinks li { background: rgba(34, 10, 15, .55); padding: 1.5rem 1.4rem; display: grid; gap: .25rem; transition: background .4s; }
.drinks li:hover { background: rgba(110, 31, 43, .6); }
.drinks svg { width: 34px; height: 34px; color: var(--ochre); margin-bottom: .6rem; }
.drinks b { font-family: var(--ff-display); font-weight: 500; font-size: 1.45rem; letter-spacing: -.02em; }
.drinks span { font-size: .92rem; color: rgba(244, 239, 228, .66); }
@media (max-width: 480px) { .drinks { grid-template-columns: 1fr; } }

/* ==========================================================================
   IL LOCALE
   ========================================================================== */
.locale { background: var(--cream); }
.bento { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 190px; }
.tile { position: relative; overflow: hidden; border: 0; padding: 0; border-radius: 24px; cursor: zoom-in; background: var(--cream-2); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.tile:hover img { transform: scale(1.07); }
.t1 { grid-column: span 2; grid-row: span 2; }
@media (min-width: 900px) {
  .bento { grid-template-columns: repeat(12, 1fr); grid-auto-rows: 150px; gap: 16px; }
  .t1 { grid-column: 1 / span 5; grid-row: 1 / span 4; }
  .t2 { grid-column: 6 / span 7; grid-row: 1 / span 2; }
  .t4 { grid-column: 6 / span 3; grid-row: 3 / span 2; }
  .t3 { grid-column: 9 / span 4; grid-row: 3 / span 2; }
  .t6 { grid-column: 1 / span 5; grid-row: 5 / span 2; }
  .t5 { grid-column: 6 / span 7; grid-row: 5 / span 2; }
}

/* ==========================================================================
   LAVORO
   ========================================================================== */
.work { background: var(--ochre); color: var(--wine-ink); overflow: hidden; }
.work-grid { display: grid; gap: 3.4rem; align-items: center; }
@media (min-width: 960px) { .work-grid { grid-template-columns: 1.05fr .95fr; gap: 5rem; } }
.work h2 { font-size: clamp(2.6rem, 6vw, 5.2rem); }
.work .lede { margin-top: 1.6rem; color: rgba(34, 10, 15, .85); }
.work-card { margin-top: 2.2rem; display: flex; align-items: center; gap: 1.2rem; background: rgba(251, 248, 241, .6); border: 1px solid rgba(34, 10, 15, .18); border-radius: 22px; padding: 1.1rem 1.3rem 1.1rem 1.1rem; max-width: 34rem; }
.work-card img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex: none; }
.work-card b { font-family: var(--ff-display); font-size: 1.35rem; font-weight: 600; letter-spacing: -.02em; display: block; line-height: 1.15; }
.work-card p { font-size: .94rem; margin: .25rem 0 .8rem; color: rgba(34, 10, 15, .75); }
@media (max-width: 520px) { .work-card { flex-direction: column; align-items: flex-start; } }

.orbit { color: var(--wine-ink); max-width: 560px; width: 100%; margin-inline: auto; }
.orbit svg { width: 100%; height: auto; overflow: visible; }
.orbit .node circle { fill: var(--wine); transform-box: fill-box; transform-origin: center; animation: nodePulse 3.2s ease-in-out infinite; animation-delay: calc(var(--i) * .5s); }
.orbit .node text { fill: var(--wine-ink); }
@keyframes nodePulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.7); } }
.o-core circle { fill: var(--wine); }
.o-core text { fill: var(--cream); }
.orbit g[opacity] { transform-origin: 260px 260px; }
.orbit g[opacity] circle:nth-child(2) { transform-origin: 260px 260px; animation: spin 90s linear infinite; }

/* ==========================================================================
   EVENTI
   ========================================================================== */
/* subito sotto la striscia bordeaux che scorre: un bordeaux più scuro, così le due fasce non si fondono */
.events { background: var(--wine-deep); color: var(--cream); }
/* luce calda dall'alto, come in sala a fine giornata */
.events::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background:
    radial-gradient(80% 55% at 88% 0%, rgba(221, 169, 75, .16), transparent 65%),
    radial-gradient(70% 60% at 0% 100%, rgba(34, 10, 15, .45), transparent 70%);
}
.events > .wrap { position: relative; }
.events h2 { color: var(--cream); }
.events h2 em { color: var(--ochre); }
.events .sec-sub { color: rgba(244, 239, 228, .8); }

.ev-grid { display: grid; gap: 22px; }
@media (min-width: 700px) {
  .ev-grid { grid-template-columns: repeat(2, 1fr); }
  .ev-invite { grid-column: 1 / -1; margin-top: 1.4rem; }
}
@media (min-width: 1080px) {
  .ev-grid { grid-template-columns: 1fr 1fr 1.05fr; gap: 26px; }
  .ev-invite { grid-column: auto; margin-top: 0; }
}

.ev-card {
  display: flex; flex-direction: column;
  background: rgba(34, 10, 15, .32);
  border: 1px solid rgba(244, 239, 228, .14);
  border-radius: 28px; overflow: hidden;
}
.ev-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--wine-deep); }
.ev-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.ev-card:hover .ev-media img { transform: scale(1.05); }
.ev-tag {
  position: absolute; left: 1rem; top: 1rem;
  padding: .45rem .85rem; border-radius: 99px;
  background: var(--ochre); color: var(--wine-ink);
  font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; line-height: 1.2;
}
.ev-body { padding: 1.6rem 1.6rem 1.9rem; }
.ev-body h3 { font-size: clamp(2rem, 3.2vw, 2.6rem); letter-spacing: -.03em; }
.ev-body p { margin-top: .8rem; color: rgba(244, 239, 228, .78); }
.ev-body .chips { margin-top: 1.3rem; }

/* il biglietto: carta, bordo tratteggiato, appena storto come il dizionario e lo scontrino */
.invite {
  position: relative; height: 100%;
  background: var(--paper); color: var(--ink);
  border-radius: 6px;
  padding: 2.3rem 2rem 2.2rem;
  transform: rotate(1.4deg);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 40px 60px -30px rgba(0, 0, 0, .65);
  transition: transform .6s var(--ease);
}
.invite:hover { transform: rotate(0); }
.invite::before { content: ""; position: absolute; inset: 10px; border: 1px dashed rgba(110, 31, 43, .32); border-radius: 3px; pointer-events: none; }
.inv-kicker { font-size: .72rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--wine); }
.invite h3 { font-size: clamp(2rem, 3vw, 2.5rem); letter-spacing: -.03em; margin-top: .7rem; }
.inv-steps { list-style: none; padding: 0; margin: 1.5rem 0 1.7rem; }
.inv-steps li { display: grid; grid-template-columns: 2.4rem 1fr; gap: .9rem; padding: 1rem 0; border-top: 2px dotted rgba(43, 42, 40, .22); }
.inv-steps li:last-child { border-bottom: 2px dotted rgba(43, 42, 40, .22); }
.inv-n { font-family: var(--ff-display); font-style: italic; font-size: 1.6rem; line-height: 1; color: var(--wine); font-variation-settings: "SOFT" 100, "WONK" 1; }
.inv-steps b { display: block; font-family: var(--ff-display); font-size: 1.2rem; font-weight: 600; letter-spacing: -.015em; line-height: 1.2; }
.inv-steps p { font-size: .93rem; line-height: 1.5; color: var(--muted); margin-top: .2rem; }
.inv-foot { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; }
.inv-hand { font-family: var(--ff-hand); font-size: 1.8rem; font-weight: 600; line-height: 1; color: var(--wine); transform: rotate(-6deg); }

/* tablet: il biglietto va a tutta larghezza, titolo a sinistra e passaggi a destra */
@media (min-width: 700px) and (max-width: 1079px) {
  .invite { display: grid; grid-template-columns: .8fr 1.2fr; column-gap: 2.8rem; transform: rotate(.6deg); }
  .inv-head { grid-column: 1; }
  .inv-foot { grid-column: 1; align-self: end; }
  .inv-steps { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
}
@media (max-width: 699px) {
  .invite { padding: 2.1rem 1.6rem 2rem; transform: rotate(.8deg); }
  .ev-invite { margin-top: 1rem; }
}

/* ==========================================================================
   DOVE
   ========================================================================== */
.where { background: var(--paper); }
.where-grid { display: grid; gap: 3rem; align-items: stretch; }
@media (min-width: 960px) { .where-grid { grid-template-columns: .9fr 1.1fr; gap: 4.5rem; } }
address { font-style: normal; font-family: var(--ff-display); font-size: clamp(1.6rem, 2.8vw, 2.3rem); line-height: 1.15; letter-spacing: -.02em; }
.big-phone { display: inline-block; margin: 1.1rem 0 1.6rem; font-family: var(--ff-display); font-size: clamp(2.4rem, 5vw, 3.8rem); font-style: italic; letter-spacing: -.04em; color: var(--wine); text-decoration: none; border-bottom: 2px solid transparent; transition: border-color .3s; font-variation-settings: "SOFT" 100, "WONK" 1; }
.big-phone:hover { border-bottom-color: var(--wine); }
.hours { width: 100%; max-width: 30rem; border-collapse: collapse; margin: 1.8rem 0 1rem; font-variant-numeric: tabular-nums; }
.hours th, .hours td { padding: .7rem .9rem; text-align: left; border-bottom: 1px solid rgba(43, 42, 40, .12); font-size: 1rem; }
.hours th { font-weight: 500; }
.hours td { text-align: right; color: var(--muted); }
.hours tr.is-today th, .hours tr.is-today td { background: var(--wine); color: var(--cream); border-bottom-color: var(--wine); }
.hours tr.is-today td { font-weight: 600; box-shadow: -1px 0 0 var(--wine); } /* copre la giunzione tra le celle */
.hours tr.is-today th::after { content: "oggi"; margin-left: .7rem; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; background: var(--ochre); color: var(--wine-ink); padding: .15rem .5rem; border-radius: 99px; font-weight: 700; }
.hours tr.is-today th { border-radius: 12px 0 0 12px; }
.hours tr.is-today td { border-radius: 0 12px 12px 0; }
.park { max-width: 28rem; color: var(--muted); font-size: .96rem; }
.where-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }

.mapbox {
  position: relative; min-height: 420px; border-radius: 30px; overflow: hidden;
  background:
    radial-gradient(circle at 30% 30%, rgba(221, 169, 75, .25), transparent 40%),
    repeating-linear-gradient(0deg, transparent 0 38px, rgba(110, 31, 43, .08) 38px 39px),
    repeating-linear-gradient(90deg, transparent 0 38px, rgba(110, 31, 43, .08) 38px 39px),
    var(--cream-2);
  border: 1px solid rgba(43, 42, 40, .12);
}
.map-ph { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 1rem; text-align: center; padding: 1.5rem; }
.map-ph svg { width: 64px; height: 64px; color: var(--wine); animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px); } }
.map-ph p { font-size: 1.05rem; }
.map-ph b { font-family: var(--ff-display); font-size: 1.7rem; font-weight: 600; color: var(--wine); }
.map-ph small { color: var(--muted); max-width: 18em; }
.map-ph small a { color: var(--wine); }
.mapbox iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: sepia(.25) saturate(.9) contrast(1.02); }
.mapbox.is-loaded .map-ph { display: none; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer.foot { background: var(--wine-ink); color: var(--cream); padding-bottom: 2rem; overflow: hidden; }
.foot-top { display: grid; gap: 3rem; }
@media (min-width: 900px) { .foot-top { grid-template-columns: 1fr 1.2fr; align-items: end; } }
/* il logo sopra il saluto, crema come il resto del footer */
.foot-logo {
  display: block; width: clamp(200px, 22vw, 280px); aspect-ratio: 459 / 253; margin-bottom: 1.8rem;
  background-color: var(--cream);
  -webkit-mask: url("../img/logo-ghe-sem.svg") center / contain no-repeat;
          mask: url("../img/logo-ghe-sem.svg") center / contain no-repeat;
}
.foot-lede { font-family: var(--ff-display); font-size: clamp(2.2rem, 4.6vw, 4rem); font-style: italic; line-height: 1; letter-spacing: -.035em; font-variation-settings: "SOFT" 100, "WONK" 1; }
.foot-sub { margin-top: .8rem; color: rgba(244, 239, 228, .6); letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; }
.foot-cols { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.foot h4 { font-family: var(--ff-body); font-size: .72rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--ochre); margin-bottom: .8rem; }
.foot-cols p { color: rgba(244, 239, 228, .82); font-size: .98rem; }
.foot a { text-decoration: none; }
.foot-cols a:hover { color: var(--ochre); }
.foot-legal { margin-top: clamp(56px, 7vw, 96px); padding-top: 1.2rem; border-top: 1px solid rgba(244, 239, 228, .14); font-size: .8rem; color: rgba(244, 239, 228, .5); }

.foot-legal a { color: rgba(244, 239, 228, .75); text-decoration: underline; text-underline-offset: 3px; }
.foot-legal a:hover { color: var(--ochre); }

/* ==========================================================================
   PAGINA PRIVACY E COOKIE
   ========================================================================== */
.legal-page { background: var(--paper); }
.legal-top { position: sticky; top: 0; z-index: 10; background: rgba(251, 248, 241, .96); border-bottom: 1px solid rgba(43, 42, 40, .1); }
.legal-top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 70px; }
.legal-logo {
  display: block; height: 50px; aspect-ratio: 459 / 253; background-color: var(--ink);
  -webkit-mask: url("../img/logo-ghe-sem.svg") center / contain no-repeat;
          mask: url("../img/logo-ghe-sem.svg") center / contain no-repeat;
}
.legal { padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 110px); }
.legal-wrap { max-width: 46rem; }
.legal h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); letter-spacing: -.035em; }
.legal-lede { margin-top: 1.2rem; font-size: 1.15rem; color: var(--muted); }
.legal h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -.02em; margin: 2.6rem 0 .8rem; }
.legal p + p { margin-top: .9rem; }
.legal ul { margin: 1rem 0 0; padding-left: 1.2rem; display: grid; gap: .7rem; }
.legal a { color: var(--wine); text-underline-offset: 3px; }
.legal b { font-weight: 600; }
.legal-date { margin-top: 3rem; font-size: .9rem; color: var(--muted); }
.legal-foot { padding: 1.6rem 0 2.4rem; border-top: 1px solid rgba(43, 42, 40, .12); font-size: .9rem; color: var(--muted); }

/* ==========================================================================
   BARRA MOBILE · LIGHTBOX
   ========================================================================== */
.mbar { display: none; }
@media (max-width: 759px) {
  .mbar {
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 130;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 6px;
    background: rgba(34, 10, 15, .92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-radius: 99px; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .6);
    transform: translateY(160%); transition: transform .5s var(--ease);
  }
  .mbar.is-on { transform: none; }
  .mbar a { display: flex; align-items: center; justify-content: center; gap: .45rem; padding: .85rem .4rem; border-radius: 99px; color: var(--cream); font-size: .85rem; font-weight: 600; text-decoration: none; }
  .mbar a:first-child { background: var(--ochre); color: var(--wine-ink); }
  .mbar svg { width: 16px; height: 16px; }
  footer.foot { padding-bottom: 6rem; }
}

.lightbox { position: fixed; inset: 0; z-index: 400; background: rgba(20, 6, 9, .94); display: grid; place-items: center; padding: 4vw; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: lbIn .35s ease; }
.lightbox[hidden] { display: none; }
@keyframes lbIn { from { opacity: 0; } }
.lightbox figure { max-width: min(1200px, 100%); max-height: 100%; display: grid; gap: .8rem; justify-items: center; }
.lightbox img { max-height: 80svh; width: auto; max-width: 100%; border-radius: 18px; box-shadow: 0 40px 80px -20px #000; }
.lightbox figcaption { color: var(--cream); font-family: var(--ff-display); font-style: italic; font-size: 1.2rem; }
.lb-close, .lb-nav { position: absolute; background: rgba(244, 239, 228, .12); color: var(--cream); border: 1px solid rgba(244, 239, 228, .25); width: 52px; height: 52px; border-radius: 50%; font-size: 1.9rem; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background .3s; padding: 0 0 .2rem; }
.lb-close:hover, .lb-nav:hover { background: var(--cream); color: var(--wine); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; }
.lb-next { right: 18px; top: 50%; }
@media (max-width: 640px) { .lb-prev, .lb-next { top: auto; bottom: 18px; } }

/* Le animazioni infinite (marquee, timbro, orbita, puntina) girano solo mentre il blocco
   è a schermo: fuori vista costringevano il telefono a ricalcolare lo stile a ogni frame. */
.js [data-live]:not(.is-live),
.js [data-live]:not(.is-live) *,
.js [data-live]:not(.is-live)::before,
.js [data-live]:not(.is-live) *::before,
.js [data-live]:not(.is-live) *::after { animation-play-state: paused !important; }

/* ---------- telefoni e dispositivi touch: meno lavoro per la GPU ----------
   Le animazioni sono le stesse del desktop. Qui si tolgono solo la grana a
   schermo intero e gli sfocati dietro ai pannelli: non si muovono, ma sui
   telefoni pesano molto e fanno scattare lo scroll. */
@media (max-width: 900px), (hover: none) {
  body::before { display: none; }
  .nav, .nav.is-solid { height: 74px; transition: background .3s, color .3s, box-shadow .3s; }
  .logo, .nav.is-solid .logo { height: 52px; }
  .status, .badge::before { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .status { background: rgba(34, 10, 15, .5); }
  .status-dark { background: rgba(110, 31, 43, .07); }
  .badge::before { background: rgba(34, 10, 15, .72); }
  .nav.is-solid { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(244, 239, 228, .97); }
  .mbar { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(34, 10, 15, .96); }
}

/* ---------- movimento ridotto ----------
   Con "Riduci movimento" (iPhone) o "Rimuovi animazioni" (Android) attivo, le
   animazioni del sito restano: si tolgono solo lo zoom lento delle foto e lo
   scorrimento morbido della pagina, i movimenti ampi che danno fastidio a chi
   soffre di vertigini. Il parallax si spegne in js/main.js. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slide, .slide.is-active { transform: none; transition: opacity 1.2s ease; }
  .day-img, .day-img.is-active { transform: none; }
}
