/* MONO — stile del sito.
   Impaginazione presa dalla home di riferimento (_lavoro/riferimenti/hp_chatgpt.webp):
   testata con linea, testo a sinistra sul video, titolo grande a righine al neon,
   link sottolineati con freccia, fascia informativa in basso. */
/* Font dei titoli: contorni + linea centrale, costruito da _lavoro/font/crea_font_inline.py */
@font-face { font-family: "MONO Inline"; src: url("../fonts/mono-inline.woff") format("woff"); font-display: swap; }
/* Josefin Sans (SIL Open Font License) caricato dal sito, non da Google Fonts: stesso carattere, nessun dato a Google.
   Font variabile: un file copre tutti i pesi (300–700). File da fonts.gstatic.com, v34. */
@font-face { font-family: "Josefin Sans"; font-style: normal; font-weight: 100 700; font-display: swap;
  src: url("../fonts/josefin-sans-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: "Josefin Sans"; font-style: normal; font-weight: 100 700; font-display: swap;
  src: url("../fonts/josefin-sans-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; }

:root {
  --bg: #14061c;            /* viola-nero delle riprese */
  --ink: #f6eef6;
  --muted: rgba(246, 238, 246, .68);
  --line: rgba(246, 238, 246, .32);
  --pink: #ff5fae;          /* neon "Bar MONO" */
  --glow: #ff3f9e;
  --title: #ffd3d6;
  --yellow: #f2c14e;
  --ease: cubic-bezier(.65, 0, .35, 1);
  --m: clamp(20px, 3.8vw, 60px);   /* margine laterale */
  --header-h: 92px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Josefin Sans", system-ui, sans-serif; font-weight: 300; line-height: 1.5;
  min-height: 100svh; overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Sfondo video ---------- */
#stage { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: var(--bg); }
.scene { position: absolute; inset: 0; background-size: cover; background-position: center; will-change: transform, opacity, filter; }
.scene video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity var(--loop-fade, 1s) linear;
}
.scene video.top { z-index: 1; }

/* velatura: scura a sinistra dove sta il testo, il video resta pieno a destra */
#veil {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(20,6,28,.82) 0%, rgba(20,6,28,.5) 32%, rgba(20,6,28,.08) 62%, rgba(20,6,28,0) 100%),
    linear-gradient(180deg, rgba(20,6,28,.55) 0%, rgba(20,6,28,0) 18%, rgba(20,6,28,0) 72%, rgba(20,6,28,.75) 100%);
}

/* clip di transizione girata (Kling) */
#clip { position: fixed; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .25s linear; }
#clip.on { opacity: 1; }
#clip video { width: 100%; height: 100%; object-fit: cover; }

/* transizione provvisoria: la "camera" avanza verso il punto della nuova stanza */
.scene.push-out {
  transition: transform 1.2s var(--ease), filter 1.2s var(--ease), opacity .7s linear .5s;
  transform: scale(1.45); filter: blur(10px) brightness(1.35); opacity: 0;
}
.scene.entering { opacity: 0; transform: scale(1.18); filter: blur(6px); }
.scene.arrive { transition: transform 1.3s var(--ease), filter 1.1s var(--ease), opacity .8s linear; opacity: 1; transform: scale(1); filter: blur(0); }
.scene.fade-only.entering { transform: none; filter: none; }
/* cambio di sfondo scorrendo (Il locale) */
.scene.swap-in { opacity: 0; transition: opacity 1s linear; }
.scene.swap-in.on { opacity: 1; }

/* ---------- Testata ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; padding: 0 var(--m);
}
.site-header::after { content: ""; position: absolute; left: var(--m); right: var(--m); bottom: 0; height: 1px; background: var(--line); }
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: rgba(20,6,28,.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  opacity: 0; transition: opacity .3s linear;
}
body.scrolled .site-header::before { opacity: 1; }
.brand { flex: none; }
.brand img { height: 50px; width: auto; }
.site-nav { display: flex; align-items: center; gap: clamp(22px, 3.2vw, 52px); }
.site-nav a { white-space: nowrap; text-decoration: none; font-size: 18px; font-weight: 400; letter-spacing: .1em; padding: 6px 0; position: relative; opacity: .9; }
.site-nav a:hover, .site-nav a[aria-current="page"] { opacity: 1; }
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--pink);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.site-nav a[aria-current="page"]::after, .site-nav a:hover::after { transform: scaleX(1); }
.site-nav .nav-cta { margin-left: clamp(10px, 4vw, 70px); }

/* tasto musica: barrette che si muovono mentre suona, una linea quando è spenta */
.site-nav { margin-left: auto; }
.music-toggle {
  margin-left: clamp(18px, 2.4vw, 36px); width: 40px; height: 40px; flex: none; display: grid; place-items: center;
  background: none; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); cursor: pointer; padding: 0;
  transition: border-color .2s, color .2s;
}
.music-toggle:hover { border-color: var(--pink); color: var(--pink); }
.music-toggle .eq { display: flex; align-items: flex-end; gap: 2.5px; height: 14px; }
.music-toggle .eq i { width: 2.5px; height: 4px; background: currentColor; border-radius: 1px; }
.music-toggle.playing .eq i { animation: eq .9s ease-in-out infinite; }
.music-toggle.playing .eq i:nth-child(2) { animation-delay: -.3s; }
.music-toggle.playing .eq i:nth-child(3) { animation-delay: -.6s; }
.music-toggle.playing .eq i:nth-child(4) { animation-delay: -.15s; }
.music-toggle.off { color: var(--muted); }
.music-toggle.off .eq { position: relative; }
.music-toggle.off .eq::after { content: ""; position: absolute; left: -3px; right: -3px; top: 50%; height: 1.5px; background: var(--pink); transform: rotate(-35deg); }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 14px; } }

/* ---------- Contenuto ---------- */
main { position: relative; z-index: 3; transition: opacity .45s linear, transform .6s var(--ease); }
body.leaving main, body.leaving .site-footer { opacity: 0; transform: translateY(-12px); pointer-events: none; }
body.arriving main { opacity: 0; transform: translateY(16px); }

.kicker { margin: 0 0 22px; color: var(--pink); font-size: clamp(13px, 1.2vw, 17px); font-weight: 600; letter-spacing: .38em; text-transform: uppercase; }
.title, .title-s {
  margin: 0; font-family: "MONO Inline", "Josefin Sans", sans-serif; font-weight: 400;
  text-transform: uppercase; line-height: 1.02; color: var(--title);
  text-shadow: 0 0 4px rgba(255,63,158,.8), 0 0 18px rgba(255,63,158,.75), 0 0 44px rgba(255,63,158,.45);
}
.title { font-size: clamp(64px, 12.5vw, 210px); }
.title-s { font-size: clamp(48px, 6.4vw, 104px); }
.lead { margin: 26px 0 0; font-size: clamp(18px, 1.75vw, 27px); font-weight: 300; max-width: 640px; text-shadow: 0 2px 16px rgba(0,0,0,.6); }
.links { display: flex; flex-wrap: wrap; gap: 14px clamp(28px, 4vw, 66px); margin-top: clamp(28px, 4vh, 48px); }
.tlink {
  text-decoration: none; font-size: clamp(18px, 1.7vw, 25px); font-weight: 400; letter-spacing: .08em;
  padding-bottom: 6px; border-bottom: 2px solid var(--pink); transition: color .2s, border-color .2s;
}
.tlink.yellow { color: var(--yellow); border-color: var(--yellow); }
.tlink:hover { color: #fff; border-color: #fff; }
.tlink span { display: inline-block; transition: transform .25s var(--ease); }
.tlink:hover span { transform: translate(3px, -3px); }

/* Home: testo di presentazione più lungo (testi del cliente), tutto deve stare nella prima schermata */
.page-home .title { font-size: clamp(60px, min(9.5vw, 16svh), 160px); }
.page-home .lead { font-size: clamp(16px, 1.2vw, 19px); max-width: 600px; margin-top: 20px; }
.page-home .lead-2 { margin-top: 12px; }
.page-home .lead b { font-weight: 600; color: var(--pink); }
.page-home .links { margin-top: clamp(20px, 3svh, 36px); }
.page-home .hero { padding-top: calc(var(--header-h) + 3vh); }
.page-home .hero-text { padding-bottom: 3vh; }

/* fascia informativa: linea sopra, tre colonne */
.strip {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  border-top: 1px solid var(--line); padding: 24px 0 30px;
  font-size: clamp(11px, 1.05vw, 15px); font-weight: 400; letter-spacing: .3em; text-transform: uppercase;
}
.strip span:nth-child(2) { text-align: center; }
.strip span:last-child { text-align: right; }
.strip a { text-decoration: none; }
.strip a:hover { color: var(--pink); }

/* ---------- Testata di pagina (hero) ---------- */
.hero {
  min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--header-h) + 6vh) var(--m) 0;
}
.hero-text { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-bottom: 6vh; }

/* ---------- Contenuti sotto la testata ---------- */
.sheet {
  background: linear-gradient(180deg, rgba(20,6,28,.3), rgba(20,6,28,.58) 260px);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  padding: 0 var(--m) 40px;
}
.block {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px clamp(24px, 5vw, 90px);
  padding: clamp(48px, 8vh, 96px) 0; border-bottom: 1px solid var(--line);
  scroll-margin-top: var(--header-h);
}
.block-head { align-self: start; position: sticky; top: calc(var(--header-h) + 32px); }
.block-head .kicker { margin-bottom: 16px; }
.block-body { padding-top: 8px; max-width: 760px; }
.txt { margin: 0 0 16px; font-size: clamp(17px, 1.4vw, 21px); }
.txt a { text-decoration-color: var(--pink); text-underline-offset: 5px; }
.note { margin: 0 0 20px; color: var(--muted); font-size: 15px; letter-spacing: .06em; }
.items { border-top: 1px solid rgba(246,238,246,.14); }
.item { padding: 14px 0; border-bottom: 1px solid rgba(246,238,246,.14); }
.item-row { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; }
.item-name { min-width: 0; overflow-wrap: anywhere; font-size: 16px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.item-price { white-space: nowrap; color: var(--yellow); font-size: 16px; letter-spacing: .06em; }
.item-desc { color: var(--muted); font-size: 15px; margin-top: 3px; }
.sheet .txt, .sheet .item, .menu-col .item { text-shadow: 0 1px 10px rgba(0,0,0,.55); }
.big-price { margin: 0 0 18px; font-size: clamp(44px, 5vw, 72px); font-weight: 300; color: var(--yellow); line-height: 1; }
.big-price span { font-size: .3em; letter-spacing: .3em; text-transform: uppercase; color: var(--ink); margin-left: 10px; }
.allergeni { color: var(--muted); font-size: 14px; max-width: 760px; margin: 40px 0 0; font-style: italic; }
.tbd { background: rgba(255,95,174,.16); color: #ffb3d7; border-radius: 3px; padding: 0 6px; font-size: .9em; letter-spacing: normal; text-transform: none; }

/* Il locale: ogni capitolo è una testata a tutta altezza */
.chapter .title { font-size: clamp(60px, 11vw, 180px); }
/* Vieni al MONO → Contatti: a tutto schermo sul video "bar" (neon Bar MONO), centrati sotto la scritta.
   Nel fotogramma 1920×1080 l'insegna è al centro in orizzontale e finisce a y≈335: con il ritaglio "cover"
   sullo schermo il suo bordo basso cade a max(17.45vw, 31.02vh) + (100vh − max(56.25vw, 100vh)) / 2. */
.contatti { scroll-margin-top: 0; display: block; text-align: center;
  padding-top: calc(max(17.45vw, 31.02svh) + (100svh - max(56.25vw, 100svh)) / 2 + clamp(20px, 4svh, 48px)); }
.contatti .hero-text { display: block; padding-bottom: 8svh; }
.contatti .lead { margin-left: auto; margin-right: auto; }
.contatti .items { max-width: 620px; margin: 30px auto 0; text-align: left; }
.contatti .item { text-shadow: 0 1px 10px rgba(0,0,0,.6); }

/* ---------- Gallerie di storie: Eventi (dentro la vetrina) e Porta Venezia ---------- */
body[data-page="eventi"], body[data-page="portavenezia"] { overflow: hidden; overscroll-behavior: none; }
body[data-page="eventi"] .site-footer, body[data-page="portavenezia"] .site-footer { display: none; }
.eventi { position: relative; height: 100svh; }
.eventi-text {
  position: absolute; left: var(--m); top: var(--header-h); bottom: 0; width: var(--col, 420px);
  display: flex; flex-direction: column; justify-content: center; padding: 3vh 0;
}
.eventi .title { font-size: clamp(54px, min(7vw, calc(var(--col, 420px) / 3.2)), 136px); }
.eventi .lead { font-size: clamp(16px, 1.35vw, 21px); margin-top: 18px; max-width: 440px; }
.cats { display: flex; flex-direction: column; gap: 6px; margin-top: clamp(20px, 4vh, 40px); }
.cat {
  display: grid; grid-template-columns: 58px 1fr; grid-template-rows: auto auto; column-gap: 16px; align-items: center;
  background: none; border: 0; padding: 4px 0; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.cat-ring {
  grid-row: span 2; width: 58px; height: 58px; border-radius: 50%; padding: 2px;
  background: rgba(246,238,246,.35); transition: background .3s;
}
.cat-ring img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid var(--bg); }
.cat.on .cat-ring, .cat:hover .cat-ring { background: linear-gradient(45deg, var(--yellow), var(--pink) 55%, #8a5cff); }
.cat-name { font-size: 15px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; align-self: end; }
.cat-n { font-size: 13px; color: var(--muted); letter-spacing: .06em; align-self: start; }
.cat.on .cat-name { color: var(--pink); }
.hint { margin: 22px 0 0; font-size: 13px; color: var(--muted); letter-spacing: .06em; }

/* Gallery: link Instagram a destra della vetrina, centrato (posizione da storie.js) */
.eventi-side { position: fixed; z-index: 4; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.eventi-side[hidden], .eventi.compact .eventi-side { display: none; }
.side-ig { pointer-events: auto; font-size: clamp(17px, 1.4vw, 21px); white-space: nowrap; text-shadow: 0 2px 14px rgba(0,0,0,.75); }
body.leaving .eventi-side, body.arriving .eventi-side { opacity: 0; }

/* lettore 9:16 (posizione calcolata da storie.js) */
.story {
  position: fixed; z-index: 4; overflow: hidden; border-radius: 10px; background: #0b0410 center / cover no-repeat;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  transition: opacity .45s linear;
}
body.leaving .story, body.arriving .story, body.leaving .story-glow, body.arriving .story-glow { opacity: 0; }
/* neon arcobaleno intorno al lettore: bordo (::after) + alone sfocato dietro (.story-glow); i colori girano piano */
@property --neon-a { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes neon-gira { to { --neon-a: 360deg; } }
.story::after, .story-glow {
  background: conic-gradient(from var(--neon-a), #e40303, #ff8c00, #ffed00, #008026, #24408e, #732982, #e40303);
  animation: neon-gira 9s linear infinite;
}
.story::after {
  content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; padding: 3px; pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.story-glow { position: fixed; z-index: 4; border-radius: 14px; filter: blur(20px); opacity: .95; pointer-events: none; transition: opacity .45s linear; }
@media (prefers-reduced-motion: reduce) { .story::after, .story-glow { animation: none; } }
.story-media { position: absolute; inset: 0; background: center / cover no-repeat; }
.story-media video, .story-media img { width: 100%; height: 100%; object-fit: cover; display: block; max-width: none; }
.story-shade { position: absolute; inset: 0 0 auto; height: 110px; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.6), rgba(0,0,0,0)); }
.story-tap { position: absolute; inset: 0; cursor: pointer; }
.story-top { position: absolute; left: 0; right: 0; top: 0; padding: 10px 10px 0; pointer-events: none; }
.story-bars { display: flex; gap: 4px; }
.story-bars span { flex: 1; height: 2.5px; border-radius: 2px; background: rgba(255,255,255,.35); overflow: hidden; }
.story-bars i { display: block; height: 100%; background: #fff; transform: scaleX(0); transform-origin: left; }
.story-head { display: flex; align-items: center; gap: 9px; margin-top: 10px; font-size: 14px; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.story-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; overflow: hidden; flex: none;
  box-shadow: 0 0 0 1.5px var(--pink); }
.story-avatar img { width: 80%; }
.story-cat { font-weight: 600; letter-spacing: .04em; white-space: nowrap; }
.story-date { color: rgba(255,255,255,.75); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.story-head button {
  pointer-events: auto; width: 34px; height: 34px; padding: 6px; border: 0; background: none; color: #fff; cursor: pointer;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,.6));
}
.story-pause { margin-left: auto; }
.story-head svg { width: 100%; height: 100%; fill: currentColor; }
.story-pause .i-play, .story.paused .story-pause .i-pause { display: none; }
.story.paused .story-pause .i-play { display: inline; }
.story-sound .i-on, .story-sound.on .i-off { display: none; }
.story-sound.on .i-on { display: inline; }
.story[data-kind="i"] .story-sound { visibility: hidden; }

/* impaginazione compatta (telefono, finestre strette): titolo in alto, raccolte in colonna a sinistra,
   lettore grande a destra (posizioni da storie.js) */
.eventi.compact .eventi-text { position: fixed; z-index: 5; inset: var(--header-h) 0 auto; width: auto; padding: 12px var(--m) 0; display: block; }
.eventi.compact .kicker { margin-bottom: 4px; font-size: 11px; letter-spacing: .3em; }
.eventi.compact .title { font-size: clamp(36px, 9vw, 64px); }
.eventi.compact .title br { display: none; }
.eventi.compact .lead, .eventi.compact .hint { display: none; }
.eventi.compact .cats {
  position: fixed; left: var(--m); top: var(--top, 200px); bottom: 12px; width: 64px; margin: 0;
  flex-direction: column; gap: 12px; overflow-y: auto; scrollbar-width: none;
}
.eventi.compact .cats::-webkit-scrollbar { display: none; }
.eventi.compact .cat { grid-template-columns: 1fr; justify-items: center; row-gap: 4px; flex: none; width: 64px; padding: 0; }
.eventi.compact .cat-ring { grid-row: auto; width: 54px; height: 54px; }
.eventi.compact .cat-name { font-size: 10px; letter-spacing: .02em; text-transform: none; text-align: center; line-height: 1.15;
  max-width: 64px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.eventi.compact .cat-n { display: none; }

/* ---------- Vieni al MONO: mappa 3D (assets/js/mappa.js) ---------- */
.mappa-sez {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px clamp(24px, 5vw, 90px);
  padding: clamp(48px, 8vh, 96px) 0; border-bottom: 1px solid var(--line); scroll-margin-top: var(--header-h);
}
.mappa-sez .block-head { position: static; }
.mappa-sez .txt { margin-top: 20px; }
.mappa {
  height: clamp(420px, 70vh, 680px); border-radius: 6px; overflow: hidden; background: #120518;
  box-shadow: 0 0 0 1px rgba(255,95,174,.35), 0 0 40px rgba(255,63,158,.18);
}
.mappa.mappa-off::after { content: "Mappa non disponibile: usa il link a Google Maps."; display: grid; place-items: center; height: 100%; color: var(--muted); }
.mappa .maplibregl-ctrl-attrib, .mappa .maplibregl-ctrl-attrib.maplibregl-compact { background: rgba(20,6,28,.75) !important; color: var(--muted); font-size: 11px; }
.mappa .maplibregl-ctrl-attrib-button { filter: invert(1); background-color: transparent !important; }
.mappa .maplibregl-ctrl-attrib a { color: var(--muted); }
.mappa .maplibregl-cooperative-gesture-screen { font-family: "Josefin Sans", sans-serif; background: rgba(20,6,28,.7); }

/* segnaposto "3D": cartellino in prospettiva con scritta estrusa, asta e ombra a terra */
.pin { text-decoration: none; cursor: pointer; }
.pin-in { display: flex; flex-direction: column; align-items: center; animation: pin-float 3.2s ease-in-out infinite; }
.pin-card {
  transform: perspective(300px) rotateX(14deg); transform-origin: bottom center;
  padding: 10px 16px 8px; border-radius: 8px; background: linear-gradient(180deg, #2b0f3a, #14061c);
  border: 1.5px solid var(--pink);
  box-shadow: 0 0 18px rgba(255,63,158,.7), 0 6px 0 #5c1640, 0 12px 22px rgba(0,0,0,.6);
}
.pin-logo {
  display: block; font-family: "MONO Inline", "Josefin Sans", sans-serif; font-size: 44px; line-height: 1; color: #ffe3ef;
  text-shadow: 0 1px 0 #ff9cc9, 0 2px 0 #ff6fb2, 0 3px 0 #e8488f, 0 4px 0 #c22f73, 0 5px 0 #8f1f55,
               0 6px 8px rgba(0,0,0,.6), 0 0 18px rgba(255,63,158,.9);
}
.pin-stem { width: 3px; height: 34px; background: linear-gradient(var(--pink), rgba(255,95,174,.1)); }
.pin-dot {
  width: 22px; height: 8px; border-radius: 50%; background: rgba(255,63,158,.6); filter: blur(1px);
  box-shadow: 0 0 14px 4px rgba(255,63,158,.6); animation: pin-pulse 3.2s ease-in-out infinite;
}
.pin-pv .pin-card {
  display: flex; align-items: center; gap: 8px; padding: 7px 12px 9px; position: relative; overflow: hidden;
  border-color: #fff; background: linear-gradient(180deg, #2a2135, #120a1a);
  box-shadow: 0 0 14px rgba(255,255,255,.35), 0 5px 0 #3a2c48, 0 10px 18px rgba(0,0,0,.6);
}
.pin-pv b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 5px; background: #e2231a; color: #fff;
  font: 700 14px/1 "Josefin Sans", sans-serif; box-shadow: 0 3px 0 #8d140e; }
.pin-pv span { font-size: 14px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #fff; white-space: nowrap; }
.pin-rainbow { position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: linear-gradient(90deg, #e40303, #ff8c00, #ffed00, #008026, #24408e, #732982); }
.pin-pv .pin-stem { background: linear-gradient(#fff, rgba(255,255,255,.1)); height: 26px; }
.pin-pv .pin-dot { background: rgba(255,255,255,.5); box-shadow: 0 0 12px 3px rgba(255,255,255,.4); }
@keyframes pin-float { 50% { transform: translateY(-6px); } }
@keyframes pin-pulse { 50% { transform: scale(.75); opacity: .6; } }
@media (max-width: 1100px) { .mappa-sez { grid-template-columns: 1fr; } .pin-logo { font-size: 34px; } }

/* ---------- Menu: colonna verticale a destra sul video della bartender ---------- */
/* sul Menu la velatura scura sta solo in basso a sinistra, dietro il titolo: la bartender resta visibile */
body[data-page="menu"] #veil { background: linear-gradient(180deg, rgba(20,6,28,.5) 0%, rgba(20,6,28,0) 16%); }
.menu-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(400px, 40vw); min-height: 100svh; }
.menu-head { padding-bottom: 46px; margin-bottom: 46px; border-bottom: 1px solid var(--line); }
.menu-head .title { font-size: clamp(64px, 6.5vw, 128px); }
.menu-head .lead { margin-top: 16px; }
.menu-index { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; }
.menu-index a { text-decoration: none; font-size: 14px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase;
  padding-bottom: 3px; border-bottom: 1px solid rgba(255,95,174,.5); }
.menu-index a:hover { color: var(--pink); border-color: var(--pink); }
.menu-col {
  padding: calc(var(--header-h) + 36px) clamp(24px, 3vw, 48px) 60px;
  background: linear-gradient(90deg, rgba(20,6,28,.18), rgba(20,6,28,.5) 14%, rgba(20,6,28,.5));
  backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
  border-left: 1px solid rgba(246,238,246,.14);
}
.msec { padding: 0 0 52px; scroll-margin-top: calc(var(--header-h) + 20px); }
.msec .kicker { margin-bottom: 10px; }
.msec .title-s { font-size: clamp(40px, 3.6vw, 64px); margin-bottom: 18px; }
.menu-col .allergeni { margin-top: 0; }
@media (max-width: 1100px) {
  .menu-split { grid-template-columns: minmax(0, 1fr); }
  .menu-side { min-height: 62svh; }
  .menu-col { border-left: 0; padding-top: 40px;
    background: linear-gradient(180deg, rgba(20,6,28,.2), rgba(20,6,28,.55) 200px); }
}

/* ---------- Staff: persone al neon che ballano sul tavolino (assets/js/staff.js) ---------- */
body[data-page="staff"] .site-footer { display: none; }
body[data-page="staff"] .scene, body[data-page="staff"] .scene video { background-position: var(--staff-pos-x, 50%) 50%; object-position: var(--staff-pos-x, 50%) 50%; }
body[data-page="staff"] #veil { background: linear-gradient(180deg, rgba(20,6,28,.55) 0%, rgba(20,6,28,0) 18%),
  linear-gradient(270deg, rgba(20,6,28,.6) 0%, rgba(20,6,28,0) 34%); }
html:has(body[data-page="staff"]) { scroll-snap-type: y mandatory; }
.staff { position: relative; height: calc(var(--n) * 100svh); }
/* iPhone: quando la barra di Safari si nasconde lo schermo diventa più alto (100lvh) e l'ultima persona
   non si raggiungeva del tutto (lo scatto dello scorrimento "rimbalzava"): l'ultimo spazio è alto quanto lo schermo grande */
@supports (height: 100lvh) { .staff { height: calc((var(--n) - 1) * 100svh + 100lvh); } }
.fig.attesa { visibility: hidden !important; animation: none !important; }
.fig.attesa::after { animation: none !important; }
.staff-slot { height: 100svh; scroll-snap-align: start; }
.staff-slot + .staff-slot { margin: 0; }
.staff-stage { position: fixed; inset: 0; pointer-events: none; }
.staff-stage .staff-text, .staff-stage .fig { pointer-events: auto; }

/* pozza di luce rosa sul tavolino */
.staff-floor {
  position: absolute; left: var(--fx); bottom: calc(var(--fb) - 18px); width: calc(var(--fw) * .9); height: 46px;
  transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,95,174,.45), rgba(255,63,158,.15) 60%, transparent);
  filter: blur(6px); animation: floor-beat .5s ease-in-out infinite alternate;
}
@keyframes floor-beat { to { opacity: .6; transform: translateX(-50%) scaleX(.9); } }

.staff-figs { position: absolute; inset: 0; }
.fig {
  position: absolute; margin: 0;   /* posizione e misure da staff.js, per persona */
  transform-origin: 50% 100%; visibility: hidden; cursor: pointer;
  /* contorno al neon che segue la sagoma (rosa + un filo azzurro, come nell'esempio) */
  filter: drop-shadow(0 0 4px rgba(255,95,174,.85)) drop-shadow(0 0 14px rgba(255,63,158,.6)) drop-shadow(0 0 26px rgba(90,160,255,.45));
}
.fig.on, .fig.out { visibility: visible; }
.fig img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; max-width: none; }

/* cambio persona: chi esce si smaterializza dall'alto, chi entra appare dai piedi in su con una riga di luce */
.fig.out { animation: holo-out .7s cubic-bezier(.6,0,.4,1) forwards; }
.fig.in { animation: holo-in .95s cubic-bezier(.3,0,.2,1) both; }
.fig.first { animation: holo-in 1.2s cubic-bezier(.3,0,.2,1) .25s both; }
.fig::after {
  content: ""; position: absolute; left: -12%; right: -12%; height: 3px; top: 100%; opacity: 0; pointer-events: none;
  background: linear-gradient(90deg, transparent, #fff 20%, #9fd8ff 50%, #fff 80%, transparent);
  box-shadow: 0 0 18px 6px rgba(255,95,174,.8);
}
.fig.in::after { animation: scan-up .95s cubic-bezier(.3,0,.2,1) both; }
.fig.first::after { animation: scan-up 1.2s cubic-bezier(.3,0,.2,1) .25s both; }
.fig.out::after { animation: scan-down .7s cubic-bezier(.6,0,.4,1) both; }
@keyframes holo-in {
  0% { clip-path: inset(100% -20% 0 -20%); opacity: .2; }
  70% { opacity: 1; }
  85% { clip-path: inset(0 -20% 0 -20%); opacity: .55; }
  100% { clip-path: inset(-10% -20% 0 -20%); opacity: 1; }
}
@keyframes holo-out {
  0% { clip-path: inset(-10% -20% 0 -20%); opacity: 1; }
  30% { opacity: .5; }
  100% { clip-path: inset(100% -20% 0 -20%); opacity: 0; }
}
@keyframes scan-up { 0% { top: 100%; opacity: 1; } 85% { top: 0; opacity: 1; } 100% { top: 0; opacity: 0; } }
@keyframes scan-down { 0% { top: 0; opacity: 1; } 100% { top: 100%; opacity: 0; } }

/* nome e ruolo */
.staff-text { position: absolute; top: 50%; transform: translateY(-50%); }
.staff-names { list-style: none; margin: 0; padding: 0; display: grid; }
.staff-names li { grid-area: 1 / 1; opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .6s var(--ease); }
.staff-names li.on { opacity: 1; transform: none; transition-delay: .25s; }
.staff-n { display: block; font-size: 13px; letter-spacing: .3em; color: var(--muted); margin-bottom: 6px; }
.staff-text .title { font-size: clamp(64px, 8vw, 150px); }
.staff-role { margin: 10px 0 0; font-size: clamp(16px, 1.4vw, 22px); font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: var(--yellow); }
.staff-dots { display: flex; gap: 10px; margin-top: 34px; }
.staff-dots button { width: 34px; height: 4px; padding: 0; border: 0; border-radius: 2px; background: rgba(246,238,246,.3); cursor: pointer; }
.staff-dots button[aria-current="true"] { background: var(--pink); box-shadow: 0 0 10px var(--glow); }
.staff-text .hint { margin-top: 18px; }
/* telefono in verticale: testo in alto, persona sotto */
.staff.portrait .staff-text { top: calc(var(--header-h) + 14px); left: var(--m); right: var(--m); transform: none; }
.staff.portrait .staff-text .title { font-size: clamp(46px, 13vw, 80px); }
.staff.portrait .staff-dots { margin-top: 14px; }
.staff.portrait .hint { display: none; }
@media (prefers-reduced-motion: reduce) { .staff-floor { animation: none !important; } }

/* ---------- Serate: in programma + archivio a timeline (assets/js/serate.js) ----------
   Tutto centrato nella pagina: locandina grande a sinistra, descrizione a destra.
   L'archivio ha la linea al centro, tra locandine e testi; su telefono tutto in colonna. */
.prog { display: block; }
.prog .block-head, .archivio .block-head { position: static; text-align: center; margin: 0 auto clamp(36px, 6vh, 64px); }
.prog .block-body { max-width: none; padding: 0; }
.prog-list, .timeline { max-width: 1120px; margin: 0 auto; }
.prog-list { display: grid; gap: clamp(48px, 8vh, 90px); }
.prog-card, .tl-voce {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 clamp(40px, 6vw, 96px); align-items: center;
}
.prog-img, .tl-img {
  justify-self: end; width: min(100%, 460px); display: block; padding: 0; border: 0; background: rgba(20,6,28,.5);
  cursor: zoom-in; overflow: hidden; border-radius: 6px;   /* niente formato fisso: la locandina si vede intera */
  box-shadow: 0 0 0 1px rgba(246,238,246,.12), 0 20px 60px rgba(0,0,0,.5);
}
.prog-img img, .tl-img img { width: 100%; height: auto; transition: transform .5s var(--ease); }
.prog-img:hover img, .tl-img:hover img { transform: scale(1.03); }
.prog-img.senza, .tl-img.senza { aspect-ratio: 4 / 5; display: grid; place-items: center; cursor: default; font-family: "MONO Inline", sans-serif; font-size: 56px; color: rgba(255,211,214,.35); }
.prog-info, .tl-info { justify-self: start; max-width: 480px; }
.prog-data { margin: 0 0 14px; display: flex; align-items: baseline; gap: 10px; text-transform: uppercase; letter-spacing: .16em; font-size: 15px; color: var(--muted); }
.prog-data b { font-family: "Josefin Sans", sans-serif; font-weight: 300; font-size: clamp(56px, 6vw, 88px); line-height: 1; letter-spacing: 0; color: var(--title); text-shadow: 0 0 16px var(--glow); }
.prog-data span { color: var(--pink); font-weight: 600; }
.prog-titolo, .tl-titolo { margin: 0; font-size: clamp(24px, 2.4vw, 36px); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; line-height: 1.15; }
.prog-sotto, .tl-sotto { margin: 12px 0 0; font-size: clamp(17px, 1.4vw, 21px); color: var(--yellow); letter-spacing: .04em; }
.prog-ora { margin: 10px 0 0; color: var(--muted); font-size: 16px; letter-spacing: .06em; }
.prog-testo { margin: 18px 0 0; font-size: 17px; }
.prog-vuoto { margin: 0 auto; max-width: 560px; text-align: center; font-size: 19px; color: var(--muted); }

.archivio { padding: clamp(48px, 8vh, 96px) 0; border-bottom: 1px solid var(--line); scroll-margin-top: var(--header-h); }
.timeline { list-style: none; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px;
  background: linear-gradient(180deg, var(--pink), rgba(255,95,174,.12)); box-shadow: 0 0 12px var(--glow); }
.tl-voce { position: relative; padding: 0 0 clamp(48px, 8vh, 84px); }
.tl-voce:has(.tl-anno) { padding-top: 86px; }
.tl-anno { position: absolute; top: 0; left: 50%; transform: translateX(-50%); padding: 6px 18px; border-radius: 30px;
  background: var(--bg); box-shadow: 0 0 0 1px rgba(255,95,174,.5), 0 0 18px rgba(255,63,158,.35);
  font-family: "Josefin Sans", sans-serif; font-weight: 300; font-size: 26px; letter-spacing: .14em; color: var(--title); }
.tl-punto { position: absolute; left: 50%; top: calc(50% - (clamp(48px, 8vh, 84px)) / 2); width: 14px; height: 14px; margin: -7px 0 0 -7px;
  border-radius: 50%; background: var(--pink); box-shadow: 0 0 12px 3px var(--glow); }
.tl-voce:has(.tl-anno) .tl-punto { top: calc(86px + (100% - 86px - clamp(48px, 8vh, 84px)) / 2); }
.tl-data { margin: 0 0 10px; font-size: 14px; letter-spacing: .2em; text-transform: uppercase; color: var(--pink); }
.archivio .more { display: table; margin: 10px auto 0; background: none; border-top: 0; border-left: 0; border-right: 0; color: var(--ink); cursor: pointer; font-family: inherit; }

@media (max-width: 760px) {
  .prog-card, .tl-voce { grid-template-columns: 1fr; gap: 18px; }
  .prog-img, .tl-img { justify-self: stretch; width: 100%; }
  .prog-info, .tl-info { max-width: none; }
  .timeline { padding-left: 30px; }
  .timeline::before { left: 8px; }
  .tl-anno { left: -30px; transform: none; }
  .tl-punto, .tl-voce:has(.tl-anno) .tl-punto { left: -22px; top: 30px; }
  .tl-voce:has(.tl-anno) .tl-punto { top: 116px; }
}

.locandina-box { border: 0; padding: 0; background: transparent; max-width: min(92vw, 900px); max-height: 92svh; overflow: visible; }
.locandina-box::backdrop { background: rgba(10,3,14,.88); backdrop-filter: blur(6px); }
.locandina-box img { display: block; max-width: min(92vw, 900px); max-height: 88svh; width: auto; height: auto; border-radius: 4px; box-shadow: 0 0 60px rgba(255,63,158,.35); }
.locandina-box .chiudi { position: absolute; top: -44px; right: 0; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%;
  background: rgba(20,6,28,.7); color: var(--ink); font-size: 24px; line-height: 1; cursor: pointer; }

/* ---------- Location: affitto per foto e video ---------- */
.usi, .spazi { padding: clamp(48px, 8vh, 96px) 0; border-bottom: 1px solid var(--line); scroll-margin-top: var(--header-h); }
.usi .block-head, .spazi .block-head { position: static; text-align: center; margin: 0 auto clamp(32px, 5vh, 56px); }
.spazi .note { margin-top: 14px; }
.usi-lista { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); max-width: 1240px; margin: 0 auto; }
.uso-t { margin: 20px 0 10px; font-size: clamp(19px, 1.6vw, 24px); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--title); }
.foto { display: block; width: 100%; padding: 0; border: 0; background: rgba(20,6,28,.5); cursor: zoom-in; overflow: hidden; border-radius: 6px;
  box-shadow: 0 0 0 1px rgba(246,238,246,.1), 0 18px 50px rgba(0,0,0,.45); }
.foto img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .6s var(--ease); }
.foto:hover img { transform: scale(1.04); }
.galleria { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: dense; align-items: start; gap: clamp(18px, 2.2vw, 34px); max-width: 1320px; margin: 0 auto; }
.spazio { margin: 0; }
.spazio.largo { grid-column: span 2; grid-row: span 2; }
.spazio figcaption { display: grid; gap: 4px; padding: 14px 2px 0; }
.spazio figcaption b { font-size: 15px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--pink); }
.spazio figcaption span { font-size: 15px; color: var(--muted); }
.page-location .block .links { margin-top: 26px; }
@media (max-width: 1000px) {
  .usi-lista { grid-template-columns: 1fr; max-width: 640px; }
  .galleria { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .galleria { grid-template-columns: 1fr; }
  .spazio.largo { grid-column: auto; grid-row: auto; }
}

/* Aperitivo: le due foto del tagliere affiancate, stessa altezza (flex proporzionale al formato) */
.tagliere-foto { display: flex; gap: clamp(12px, 1.4vw, 20px); margin-top: 28px; }
.tagliere-foto + .tagliere-foto { margin-top: clamp(12px, 1.4vw, 20px); }
.drink-griglia { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 16px); margin: 28px 0 6px; }
.drink-griglia .t-foto { aspect-ratio: 1; }
@media (max-width: 640px) { .drink-griglia { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.t-foto { display: block; min-width: 0; padding: 0; border: 0; background: none; cursor: zoom-in; overflow: hidden; border-radius: 6px;
  box-shadow: 0 0 0 1px rgba(246,238,246,.1), 0 18px 50px rgba(0,0,0,.45); }
.t-foto img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.t-foto:hover img { transform: scale(1.03); }
@media (max-width: 760px) { .tagliere-foto { flex-direction: column; } .t-foto { flex: none !important; width: 100%; } }

/* ---------- Footer ---------- */
.site-footer { position: relative; z-index: 3; padding: 0 var(--m); background: rgba(20,6,28,.7); transition: opacity .45s linear; }
.site-footer .strip { color: var(--muted); }
body[data-page="home"] .site-footer, body[data-page="locale"] .site-footer { display: none; }

/* ---------- Intro al primo caricamento ---------- */
#curtain { position: fixed; inset: 0; z-index: 20; background: var(--bg); display: grid; place-items: center; transition: opacity 1s linear .2s; }
#curtain img { width: 160px; opacity: .9; animation: pulse 1.6s ease-in-out infinite; }
#curtain.gone { opacity: 0; pointer-events: none; }
@keyframes pulse { 50% { opacity: .35; } }

/* schermi medi: con 8 voci il menu si stringe un po' prima di passare alla tendina */
@media (max-width: 1560px) {
  .site-nav { gap: clamp(16px, 1.9vw, 34px); }
  .site-nav a { font-size: 16px; letter-spacing: .08em; }
  .site-nav .nav-cta { margin-left: clamp(8px, 1.6vw, 28px); }
}
/* ---------- Telefono e tablet ---------- */
.nav-toggle { display: none; }
@media (max-width: 1280px) {
  :root { --header-h: 72px; }
  .brand img { height: 38px; }
  .music-toggle { order: 1; margin-left: auto; margin-right: 14px; position: relative; z-index: 12; }
  .nav-toggle { order: 2; }
  .nav-toggle {
    display: grid; place-content: center; gap: 7px; width: 44px; height: 44px; margin-right: -10px;
    background: none; border: 0; cursor: pointer; position: relative; z-index: 12;
  }
  .nav-toggle span { display: block; width: 26px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease); }
  body.nav-open .nav-toggle span:first-child { transform: translateY(4.5px) rotate(45deg); }
  body.nav-open .nav-toggle span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
  .site-nav {
    position: fixed; inset: 0; z-index: 11; flex-direction: column; justify-content: center; align-items: flex-start;
    gap: 18px; padding: 0 var(--m); background: rgba(20,6,28,.97);
    opacity: 0; visibility: hidden; transition: opacity .3s linear, visibility 0s .3s;
  }
  body.nav-open .site-nav { opacity: 1; visibility: visible; transition: opacity .3s linear; }
  .site-nav a { font-family: "MONO Inline", "Josefin Sans", sans-serif; text-transform: uppercase; letter-spacing: 0; font-size: 64px; line-height: 1; color: var(--title); text-shadow: 0 0 18px var(--glow); }
  .site-nav a::after { display: none; }
  .site-nav .nav-cta { margin: 24px 0 0; font-family: "Josefin Sans", sans-serif; font-size: 20px; letter-spacing: .12em; text-transform: none; text-shadow: none; border-bottom: 2px solid var(--pink); padding-bottom: 6px; }
  .block { grid-template-columns: 1fr; }
  .block-head { position: static; }
}
@media (max-width: 640px) {
  .strip { grid-template-columns: 1fr; gap: 8px; letter-spacing: .2em; }
  .strip span:nth-child(2), .strip span:last-child { text-align: left; }
  #veil { background:
    linear-gradient(180deg, rgba(20,6,28,.55) 0%, rgba(20,6,28,.15) 25%, rgba(20,6,28,.55) 55%, rgba(20,6,28,.9) 100%); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01s !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* fondo pagina: dati dell'attività (compare quando sono compilati in build.py) */
.dati-societa { margin: 6px 0 0; text-align: center; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

/* ---------- Selettore lingua (intestazione) ---------- */
.lang-switch { position: relative; margin-left: clamp(14px, 2vw, 30px); z-index: 12; }
.lang-switch summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); font-size: 13px; font-weight: 600; letter-spacing: .08em; color: var(--ink); }
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary:hover, .lang-switch[open] summary { border-color: var(--pink); color: var(--pink); }
.lang-list { position: absolute; right: 0; top: calc(100% + 10px); display: grid; min-width: 150px; padding: 8px;
  background: rgba(20,6,28,.96); border: 1px solid var(--line); border-radius: 12px; backdrop-filter: blur(12px); }
.lang-list a { padding: 9px 12px; border-radius: 8px; text-decoration: none; font-size: 16px; letter-spacing: .06em; }
.lang-list a:hover { background: rgba(255,95,174,.14); }
.lang-list a[aria-current="true"] { color: var(--pink); }
@media (max-width: 1280px) { .lang-switch { order: 1; margin-left: auto; margin-right: 10px; } }

/* ---------- Cinese: Josefin Sans e MONO Inline non hanno gli ideogrammi → caratteri di sistema per quelli ---------- */
:lang(zh) body, html:lang(zh) { font-family: "Josefin Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", sans-serif; }
html:lang(zh) .title, html:lang(zh) .title-s, html:lang(zh) .site-nav a, html:lang(zh) .cat-name {
  font-family: "MONO Inline", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif; }
html:lang(zh) .title, html:lang(zh) .title-s { font-weight: 300; letter-spacing: .04em; }
html:lang(zh) .kicker, html:lang(zh) .tlink, html:lang(zh) .strip span { letter-spacing: .08em; }
