/* Mezzaparola: a night poster written in half words. Direction: DIRECTION.md.
   Mobile first (390 px). Colours come from the bar's own photos (dossier). */

@font-face { font-family: "Anybody"; src: url("/fonts/anybody-latin-standard-normal.woff2") format("woff2"); font-weight: 100 900; font-stretch: 50% 150%; font-display: swap;
  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: "Anybody"; src: url("/fonts/anybody-latin-ext-standard-normal.woff2") format("woff2"); font-weight: 100 900; font-stretch: 50% 150%; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Courier Prime"; src: url("/fonts/courier-prime-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("/fonts/courier-prime-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Sedgwick Ave Display"; src: url("/fonts/sedgwick-ave-display-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --notte: #120c0a;
  --carta: #f2efe9;
  --giallo: #eac951;
  --rosso: #c23a2c;
  --viola: #755dc8;
  --bianco: #ffffff;
  --griglia: rgba(18, 12, 10, 0.08);
  --f-d: "Anybody", "Arial Narrow", system-ui, sans-serif;
  --f-t: "Courier Prime", "Courier New", ui-monospace, monospace;
  --f-h: "Sedgwick Ave Display", "Comic Sans MS", cursive;
  --g: 16px;            /* side gutter */
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 40px; --s5: 64px; --s6: 104px;
  --k: 1;               /* scroll progress of a thing; site.js sets it */
  color-scheme: dark light;
}
@media (min-width: 700px) { :root { --g: 40px; } }
@media (min-width: 1100px) { :root { --g: 64px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 24px; }
body { margin: 0; background: var(--notte); color: var(--carta); font: 400 1.0625rem/1.55 var(--f-t); overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--giallo); outline-offset: 3px; border-radius: 2px; }
p, h1, h2, h3, ul, figure, blockquote, address { margin: 0; }
ul { padding: 0; list-style: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--g); top: -60px; z-index: 50; background: var(--giallo); color: var(--notte); padding: 10px 14px; font-weight: 700; }
.skip:focus { top: 10px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
main:focus { outline: none; }

/* ---------- Doodles: ballpoint and spray marks ---------- */
.doodle { position: absolute; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; overflow: visible; z-index: 1; }

/* ---------- The signature: a word in two halves ---------- */
/* The top half is the real text, painted only in the upper half of each line.
   The bottom half is a copy that arrives late, out of register, in another
   colour, and clicks into place as --k reaches 1. */
.mp { position: relative; font-family: var(--f-d); line-height: 0.9; --lh: 0.9em; --top: var(--carta); --bot: var(--giallo); --pull: 0;
  --ec: 0.6; --max: 20vw; font-size: min(var(--max), calc((100vw - 2 * var(--g) - var(--inset, 0px)) / (var(--n, 8) * var(--ec)))); }
.mp__t, .mp__b { display: block; color: transparent; -webkit-background-clip: text; background-clip: text; background-repeat: repeat-y; background-size: 100% var(--lh); }
.mp__t { background-image: linear-gradient(var(--top) 0 50%, transparent 50% 100%); }
.mp__b { position: absolute; inset: 0; background-image: linear-gradient(transparent 0 50%, var(--bot) 50% 100%);
  transform: translate(calc((1 - var(--k)) * -0.42em + var(--pull) * 0.14em), calc((1 - var(--k)) * 0.16em)); will-change: transform; }
@media (forced-colors: active) {
  .mp__t { color: CanvasText; background: none; }
  .mp__b { display: none; }
}

/* ---------- Language tag and the call sticker ---------- */
.lingua { position: absolute; top: 14px; right: var(--g); z-index: 20; display: flex; gap: 2px; font: 700 0.875rem/1 var(--f-d); letter-spacing: 0.06em; }
.lingua a { display: inline-block; padding: 10px 10px; text-decoration: none; color: var(--carta); }
.lingua a[aria-current] { background: var(--carta); color: var(--notte); transform: rotate(-4deg); }
.legale .lingua a { color: var(--notte); }
.legale .lingua a[aria-current] { background: var(--notte); color: var(--carta); }

.adesivo-call { position: fixed; right: max(12px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom)); z-index: 30;
  display: grid; place-content: center; text-align: center; width: 92px; height: 84px; padding: 6px; text-decoration: none;
  background: var(--giallo); color: var(--notte); border-radius: 52% 48% 46% 54% / 50% 56% 44% 50%;
  box-shadow: 0 0 0 4px var(--bianco), 3px 6px 0 4px rgba(0, 0, 0, 0.35);
  transform: rotate(-9deg) translateY(160%); transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.3); }
.show-call .adesivo-call { transform: rotate(-9deg); }
.show-call.going .adesivo-call { transform: rotate(-9deg) translateY(160%); }
.adesivo-call__l { font: 400 1.5rem/1 var(--f-h); }
.adesivo-call__n { font: 700 0.625rem/1.2 var(--f-t); letter-spacing: -0.03em; }
.adesivo-call:active { transform: rotate(-4deg) scale(0.96); }

.cta { display: inline-block; min-height: 52px; padding: 13px 26px 11px; font: 800 1.375rem/1 var(--f-d); font-stretch: 120%; letter-spacing: 0.02em; text-transform: uppercase; text-decoration: none;
  background: var(--giallo); color: var(--notte); box-shadow: 4px 4px 0 var(--rosso); transition: transform 0.15s, box-shadow 0.15s; }
.cta:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--rosso); }
.cta:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--rosso); }

/* ---------- 1. Hero: MEZZA / PAROLA behind the counter ---------- */
/* --fs is the size of the name, --pt the air above it. Short phones get a smaller
   name, so the open sign and the call button stay on the first screen. */
.hero { position: relative; --fs: min(36vw, 24svh); --pt: 56px; padding: var(--pt) var(--g) var(--s5); display: flex; flex-direction: column; --p: 1; }
.hero__h { position: relative; font-family: var(--f-d); font-weight: 900; text-transform: uppercase; line-height: 0.86; font-size: var(--fs); letter-spacing: -0.02em; margin-left: -0.03em; }
.hero__a { display: block; color: var(--giallo); font-stretch: 70%; }
.hero__b { position: relative; display: block; color: var(--rosso); font-stretch: 60%; padding-bottom: 0.56em; }
.hero__top { display: block; clip-path: inset(0 0 50% 0); }
.hero__bot { position: absolute; left: 0; top: 0; display: block; clip-path: inset(50% 0 0 0); color: #d9b843; transform: translateX(calc((1 - var(--p)) * -0.07em)); }
.banco { position: absolute; left: calc(var(--g) * -1 - 0.04em); right: calc(var(--g) * -1); top: 0.46em; height: 0.6em;
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.28), transparent 18%),
    repeating-linear-gradient(90deg, transparent 0 13px, var(--notte) 13px 16px),
    repeating-linear-gradient(0deg, transparent 0 13px, var(--notte) 13px 16px),
    repeating-conic-gradient(var(--rosso) 0 25%, #9b2a20 0 50%, var(--giallo) 0 75%, var(--rosso) 0 100%) 0 0 / 32px 32px;
  box-shadow: 0 -3px 0 var(--carta) inset, 0 -6px 0 var(--notte);
  transform: translateY(calc(var(--p) * 0.46em)); will-change: transform; }
.hero__scribble { position: absolute; right: var(--g); top: calc(var(--pt) + var(--fs) * 1.9); font: 400 1.25rem/1 var(--f-h); color: var(--carta); transform: rotate(-7deg); z-index: 3; }
.d-hero-arrow { width: 64px; height: 44px; right: calc(var(--g) + 160px); top: calc(var(--pt) - 16px + var(--fs) * 1.86); color: var(--viola); transform: rotate(160deg) scaleY(-1); }
.d-hero-spark { width: 36px; height: 36px; right: var(--g); top: calc(var(--pt) + 4px + var(--fs) * 0.9); color: var(--carta); }
.hero__copy { position: relative; margin-top: var(--s4); max-width: 34rem; }
.hero__kind { font: 800 1.5rem/1.08 var(--f-d); font-stretch: 92%; color: var(--carta); }
/* The open sign: poster type and a lamp. The lamp is full when we are open
   (site.js sets data-state), and a ring when we are not. */
.stato { margin-top: 14px; padding-left: 22px; text-indent: -22px; font: 800 1.375rem/1.1 var(--f-d); font-stretch: 72%; letter-spacing: 0.01em; text-transform: uppercase; color: var(--giallo); }
.stato::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 10px; border-radius: 50%; border: 2px solid currentColor; vertical-align: 0; text-indent: 0; }
.stato[data-state="open"]::before { background: currentColor; animation: lampada 2.4s ease-in-out infinite; }
@keyframes lampada { 0%, 100% { box-shadow: 0 0 0 0 rgba(234, 201, 81, 0.55); } 60% { box-shadow: 0 0 0 9px rgba(234, 201, 81, 0); } }
.hero__via { margin-top: 2px; font-size: 0.9375rem; line-height: 1.2; }
.hero__via a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; }
.hero__via span { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.22em; }
.hero__via b { padding: 5px 8px 4px; font: 800 0.8125rem/1 var(--f-d); text-transform: uppercase; background: var(--carta); color: var(--notte); transform: rotate(-2deg); }
.hero__act { margin-top: 10px; display: flex; align-items: center; flex-wrap: wrap; gap: 14px 18px; }
.hero__num { font: 700 1.0625rem/1 var(--f-t); }
.hero__sub { margin-top: var(--s3); font-size: 0.9375rem; line-height: 1.5; color: #d8d2c8; }
@media (max-height: 600px) and (max-width: 899px) {
  .hero { --fs: min(36vw, 21svh); --pt: 48px; }
  .hero__copy { margin-top: var(--s3); }
}

@media (min-width: 900px) {
  .hero { min-height: 100svh; padding-top: 72px; display: grid; grid-template-columns: minmax(0, 1fr) 22rem; column-gap: var(--s4); align-items: end; }
  .hero__h { grid-column: 1; font-size: min(calc((100vw - 2 * var(--g) - 25rem) / 3.6), 27vh); }
  .hero__a { font-stretch: 100%; }
  .hero__b { font-stretch: 86%; }
  .hero__copy { grid-column: 2; grid-row: 1; align-self: end; margin: 0 0 var(--s3); }
  .banco { right: -1.5rem; }
  .hero__copy { position: relative; z-index: 2; }
  .hero__scribble { top: 74px; bottom: auto; left: auto; right: calc(22rem + var(--g) + var(--s4) - 2rem); font-size: 1.75rem; }
  .d-hero-arrow { top: 112px; left: auto; right: calc(22rem + var(--g) + var(--s4) + 1rem); transform: rotate(120deg); }
  .d-hero-spark { left: auto; right: 34%; top: 60px; width: 56px; height: 56px; }
}

/* ---------- 2. Ho già capito tutto: the joke of the name ---------- */
.capito { position: relative; background: var(--giallo); color: var(--notte); padding: var(--s6) var(--g) var(--s5); overflow: clip; }
.capito__l { font-family: var(--f-d); line-height: 0.92; text-transform: uppercase; }
/* Words that start squeezed to half their width and are said in full as you read. */
.capito__a { font-size: 14vw; font-weight: 900; font-stretch: calc(50% + var(--k) * 30%); }
.capito__b { font-size: 9.2vw; font-weight: 300; font-stretch: calc(60% + var(--k) * 52%); margin-top: 6px; }
.capito__h { margin-top: var(--s4); --ec: 0.52; --max: 17vw; font-weight: 900; font-stretch: 78%; text-transform: uppercase; --top: var(--notte); --bot: var(--rosso); }
.capito__d { margin-top: var(--s4); font-size: 8vw; font-weight: 500; font-stretch: 100%; text-transform: none; }
.capito__d b { display: block; font-weight: 900; font-size: 1.12em; font-stretch: 125%; letter-spacing: -0.03em; color: var(--rosso); }
.capito__note { margin-top: var(--s4); max-width: 32rem; font-size: 1rem; line-height: 1.55; }
.d-capito-ring { width: 72vw; height: 26vw; left: 4vw; bottom: calc(var(--s5) + 5.4rem); color: var(--viola); stroke-width: 4; }
.d-capito-star { width: 44px; height: 44px; right: var(--g); top: var(--s5); color: var(--rosso); stroke-width: 4; }
@media (min-width: 900px) {
  .capito { padding: 18vh var(--g) 14vh; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--s3); }
  .capito > * { grid-column: 1 / -1; }
  .capito__a { font-size: 10.5vw; }
  .capito__b { font-size: 6.6vw; grid-column: 3 / -1; }
  .capito__h { --max: 9.6vw; }
  .capito__d { font-size: 4.6vw; grid-column: 1 / 9; }
  .capito__note { grid-column: 9 / -1; align-self: end; font-size: 1.0625rem; }
  .d-capito-ring { width: 40vw; height: 13vw; left: -2vw; right: auto; bottom: 12vh; }
}

/* ---------- 3. Il quaderno: one page of the ring binder ---------- */
.quaderno { position: relative; color: var(--notte); padding: var(--s5) var(--g) var(--s6) calc(var(--g) + 30px);
  background:
    linear-gradient(90deg, transparent calc(var(--g) + 18px), rgba(194, 58, 44, 0.7) calc(var(--g) + 18px) calc(var(--g) + 20px), transparent calc(var(--g) + 20px)),
    repeating-linear-gradient(0deg, var(--griglia) 0 1px, transparent 1px 20px),
    repeating-linear-gradient(90deg, var(--griglia) 0 1px, transparent 1px 20px),
    var(--carta); }
.buchi { position: absolute; left: 10px; top: 0; bottom: 0; display: flex; flex-direction: column; justify-content: space-around; padding: 12vh 0; pointer-events: none; }
.buchi i { width: 20px; height: 20px; border-radius: 50%; background: var(--notte); box-shadow: inset 2px 3px 0 rgba(255, 255, 255, 0.08); }
.quaderno__in { position: relative; max-width: 72rem; }
.quaderno__h { --ec: 0.52; --max: 17vw; --inset: 30px; font-weight: 900; font-stretch: 70%; text-transform: uppercase; --top: var(--notte); --bot: var(--viola); }
.quaderno__p { margin-top: var(--s3); max-width: 30rem; }
.avviso { margin-top: var(--s3); display: inline-block; padding: 10px 14px; background: var(--giallo); font-weight: 700; transform: rotate(-1.5deg); }
.strati-blk { position: relative; margin-top: var(--s5); }
/* The word SHOT poured in layers, like the shot itself. */
.strati { font: 900 min(30vw, calc((100vw - 2 * var(--g) - 30px) / (var(--n, 4) * 0.97)))/0.82 var(--f-d); font-stretch: 130%; text-transform: uppercase; letter-spacing: -0.03em; margin-left: -0.05em;
  color: transparent; -webkit-background-clip: text; background-clip: text;
  background-image: linear-gradient(var(--rosso) 0 34%, var(--giallo) 34% 50%, var(--viola) 50% 70%, var(--notte) 70% 100%);
  background-size: 100% calc(100% + (1 - var(--k)) * 140%); background-position: 0 100%; background-repeat: no-repeat; }
.strati__p { margin-top: var(--s2); max-width: 24rem; font-weight: 700; }
.strati__scribble { position: absolute; right: 0; top: -1.9rem; font: 400 1.5rem/1 var(--f-h); color: var(--viola); transform: rotate(8deg); }
.d-strati-arrow { width: 54px; height: 38px; right: 100px; top: -1.6rem; color: var(--viola); transform: rotate(150deg) scaleY(-1); }
.adesivo { position: relative; margin: 0; background: var(--bianco); padding: 6px; transform: rotate(var(--r, 0deg));
  clip-path: polygon(1% 3%, 22% 0, 48% 2%, 77% 0, 99% 2%, 100% 28%, 98% 55%, 100% 82%, 98% 100%, 70% 98%, 40% 100%, 12% 97%, 0 100%, 2% 70%, 0 42%, 2% 18%);
  filter: drop-shadow(3px 5px 0 rgba(18, 12, 10, 0.28)); }
.adesivo img { width: 100%; }
.adesivo--a { width: 74vw; margin: var(--s4) 0 0 auto; }
.menu { margin-top: var(--s5); display: grid; gap: var(--s4); }
.menu__h { font: 900 2.25rem/1 var(--f-d); font-stretch: 60%; text-transform: uppercase; border-bottom: 3px solid var(--notte); padding-bottom: 6px; }
.righe { columns: 2; column-gap: var(--s3); }
.righe li { break-inside: avoid; padding: 6px 0 5px; border-bottom: 1px dashed rgba(18, 12, 10, 0.35); font-size: 0.9375rem; line-height: 1.3; }
.righe li::before { content: "› "; color: var(--rosso); font-weight: 700; }
.menu__note { margin-top: var(--s2); font-size: 0.9375rem; }
.menu__prezzi { font-weight: 700; padding: 10px 12px; border: 2px solid var(--notte); transform: rotate(-0.8deg); }
.adesivi { margin-top: var(--s5); display: flex; flex-wrap: wrap; gap: var(--s4) var(--s3); justify-content: space-around; }
.adesivi li { width: 37vw; transform: rotate(var(--r)); }
.adesivi .adesivo { transform: none; clip-path: none; border-radius: 2px 6px 3px 5px; }
.adesivi img { aspect-ratio: 1; object-fit: cover; }
.adesivi figcaption { padding: 6px 2px 2px; font: 700 0.9375rem/1.2 var(--f-t); color: var(--notte); }
.nota { margin-top: var(--s5); max-width: 22rem; padding: var(--s3) var(--s3) var(--s2); background: var(--giallo); color: var(--notte); transform: rotate(-2deg); box-shadow: 3px 6px 0 rgba(18, 12, 10, 0.25); }
.nota__h { font: 400 1.75rem/1 var(--f-h); margin-bottom: var(--s1); }
.nota li + li { margin-top: var(--s2); }
.nota__until { font-size: 0.875rem; margin-top: 2px; }
.d-q-lemon { width: 78px; height: 52px; right: 0; top: var(--s4); color: #9b7a10; }
.d-q-shot { width: 46px; height: 62px; left: -6px; bottom: -40px; color: var(--viola); }
@media (min-width: 900px) {
  .quaderno { padding: var(--s6) var(--g) var(--s6) calc(var(--g) + 60px); }
  .buchi { left: 22px; }
  .buchi i { width: 26px; height: 26px; }
  .quaderno__in { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--s3); }
  .quaderno__in > * { grid-column: 1 / -1; }
  .quaderno__h { --max: 8vw; grid-column: 1 / 9; }
  .quaderno__p { grid-column: 9 / -1; align-self: end; }
  .strati-blk { grid-column: 1 / 8; }
  .strati { font-size: min(18vw, calc(52vw / (var(--n, 4) * 0.97))); }
  .adesivo--a { grid-column: 8 / -1; width: auto; align-self: center; margin: var(--s5) 0 0; }
  .menu { grid-column: 1 / 10; grid-template-columns: 1fr 1fr; column-gap: var(--s5); }
  .menu__prezzi { grid-column: 1 / -1; justify-self: start; }
  .adesivi { grid-column: 1 / -1; justify-content: flex-start; gap: var(--s5); }
  .adesivi li { width: 16rem; }
  .nota { grid-column: 10 / -1; grid-row: 4; align-self: start; }
}

/* ---------- 4. Le serate: a red fly-poster ---------- */
.serate { position: relative; background: var(--rosso); color: var(--carta); padding: var(--s6) var(--g); overflow: clip; }
.serate__h { --ec: 0.76; --max: 19vw; font-weight: 900; font-stretch: 110%; text-transform: uppercase; letter-spacing: -0.04em; --top: var(--carta); --bot: var(--notte); }
.manifesto { margin-top: var(--s4); display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 0.32em; font-family: var(--f-d); text-transform: uppercase; line-height: 0.95; }
.manifesto li { display: inline-block; max-width: 100%; font-weight: 800; font-size: 9.5vw; clip-path: inset(0 calc((1 - min(1, var(--k) * 1.9)) * 100%) 0 0); }
.manifesto li:nth-child(3n + 1) { color: var(--giallo); font-stretch: 55%; font-size: 13vw; font-weight: 900; }
.manifesto li:nth-child(3n + 2) { color: var(--notte); font-stretch: 140%; font-weight: 300; }
.manifesto li:nth-child(3n) { color: var(--carta); font-stretch: 90%; font-weight: 700; }
.manifesto li:nth-child(4) { transform: rotate(-3deg); }
.manifesto li:nth-child(7) { transform: rotate(2deg); }
.striscia { margin-top: var(--s5); display: inline-block; max-width: 30rem; background: var(--carta); color: var(--notte); padding: var(--s2) var(--s3); transform: rotate(-1.2deg); box-shadow: 4px 5px 0 var(--notte); }
.striscia h3 { font: 400 1.6rem/1 var(--f-h); color: var(--rosso); margin-bottom: 6px; }
.striscia b { display: block; font: 800 1.25rem/1.15 var(--f-d); text-transform: capitalize; }
.serate__p { margin-top: var(--s4); max-width: 28rem; font-size: 1.0625rem; }
.serate__p a { font-weight: 700; }
.d-s-mic { width: 48px; height: 72px; right: var(--g); top: var(--s5); color: var(--giallo); }
.d-s-pawn { width: 44px; height: 66px; right: calc(var(--g) + 8px); bottom: var(--s5); color: var(--carta); }
.d-s-crown { width: 56px; height: 38px; left: calc(var(--g) + 30vw); top: calc(var(--s6) - 30px); color: var(--giallo); transform: rotate(-12deg); }
.d-s-drips { width: 40vw; height: 26px; left: calc(var(--g) + 2px); top: calc(var(--s6) + 2 * 0.9 * min(19vw, calc((100vw - 2 * var(--g)) / (6 * 0.76))) + 4px); color: var(--notte); stroke-width: 4; opacity: 0.8; }
@media (min-width: 900px) {
  .serate__h { --max: 13vw; }
  .manifesto li { font-size: 5.6vw; }
  .manifesto li:nth-child(3n + 1) { font-size: 7.6vw; }
  .serate__p { margin-left: auto; margin-right: 10vw; }
  .striscia { margin-left: 8vw; }
  .d-s-crown { left: calc(var(--g) + 9vw); top: calc(var(--s6) - 40px); }
  .d-s-drips { width: 24vw; top: calc(var(--s6) + 0.9 * 13vw + 6px); }
}

/* ---------- 5. Ci si capisce: the peak, guests' words pasted up ---------- */
.lingue { position: relative; background: var(--notte); color: var(--carta); height: 280svh; --p: 1; }
.lingue__stage { position: sticky; top: 0; height: 100svh; padding: 56px var(--g) var(--s3); display: flex; flex-direction: column; overflow: hidden; }
.lingue__h { --ec: 0.5; --max: 13vw; font-weight: 900; font-stretch: 74%; text-transform: uppercase; --top: var(--carta); --bot: var(--giallo); }
.lingue__p { margin-top: 18px; font-size: 0.9375rem; color: #d8d2c8; }
.parete { position: relative; flex: 1; margin-top: var(--s2); }
.parete li { position: absolute; left: 0; right: 0; top: calc(var(--i) * 10.2%); padding: 10px 12px 8px; background: var(--carta); color: var(--notte);
  transform: rotate(var(--r)) scale(1.5); opacity: 0; transition: transform 0.38s cubic-bezier(0.2, 1.4, 0.4, 1), opacity 0.2s; box-shadow: 0 -2px 0 rgba(0, 0, 0, 0.25), 3px 5px 0 rgba(0, 0, 0, 0.45); }
.parete li.is-on { transform: rotate(var(--r)) scale(1); opacity: 1; }
.parete li:nth-child(3n + 2) { background: var(--giallo); }
.parete li:nth-child(3n) { background: var(--viola); color: var(--bianco); }
.parete li:nth-child(odd) { left: 8vw; }
.parete li:nth-child(even) { right: 6vw; }
.parete blockquote p { font: 800 1.125rem/1.12 var(--f-d); font-stretch: 88%; }
.parete__tr { margin-top: 3px; font-size: 0.8125rem; line-height: 1.3; }
.parete__src { margin-top: 2px; font-size: 0.6875rem; letter-spacing: 0.02em; opacity: 0.85; }
.lingue__more { position: absolute; left: var(--g); bottom: 78px; font: 400 1.5rem/1 var(--f-h); color: var(--giallo); transform: rotate(-6deg); opacity: calc(var(--p) * 3 - 2); }
.voto { position: relative; z-index: 2; margin-top: var(--s2); font-size: 0.8125rem; line-height: 1.4; max-width: 30rem; color: #d8d2c8; }
.voto strong { font: 900 1.6rem/1 var(--f-d); color: var(--giallo); }
.d-l-under { width: 62vw; height: 18px; left: var(--g); top: calc(48px + 2 * 0.9 * min(13vw, calc((100vw - 2 * var(--g)) / (7 * 0.5)))); color: var(--viola); stroke-width: 4; }
.d-l-spark { width: 40px; height: 40px; right: var(--g); top: 40px; color: var(--giallo); }
@media (min-width: 900px) {
  .lingue { height: 300vh; }
  .lingue__stage { padding: 56px var(--g) var(--s4); }
  .lingue__h { --max: 7.4vw; max-width: 80vw; }
  .parete li { width: 30vw; right: auto; margin: 0 !important; }
  .parete li:nth-child(1) { left: 0; top: 2%; }
  .parete li:nth-child(2) { left: 34vw; top: 0; }
  .parete li:nth-child(3) { left: 62vw; top: 8%; }
  .parete li:nth-child(4) { left: 6vw; top: 36%; }
  .parete li:nth-child(5) { left: 38vw; top: 30%; }
  .parete li:nth-child(6) { left: 60vw; top: 46%; }
  .parete li:nth-child(7) { left: 20vw; top: 62%; }
  .parete blockquote p { font-size: 1.6rem; }
  .parete__tr { font-size: 0.9375rem; }
  .d-l-under { width: 40vw; top: calc(56px + 7.6vw); }
}

@media (max-width: 899px) {
  .parete { display: flex; flex-direction: column; gap: 0; }
  .parete li { position: relative; top: auto; left: auto !important; right: auto !important; margin: 0 0 -4px; visibility: hidden; }
  .parete li:nth-child(odd) { margin-left: 6vw; }
  .parete li:nth-child(even) { margin-right: 4vw; }
  .parete li.is-on { visibility: visible; }
  .moves .parete li.is-on:not(.is-last) .parete__tr, .moves .parete li.is-on:not(.is-last) .parete__src { display: none; }
  .moves .parete li:not(.is-on) .parete__tr, .moves .parete li:not(.is-on) .parete__src { display: none; }
  .parete blockquote p { font-size: 1.0625rem; line-height: 1.08; }
  .lingue__more { display: none; }
}

/* ---------- 6. Le fotografie: two empty frames, two names ---------- */
.foto { position: relative; background: var(--carta); color: var(--notte); padding: var(--s6) var(--g); }
.foto__h { --ec: 0.58; --max: 15vw; font-weight: 300; font-stretch: 100%; text-transform: uppercase; letter-spacing: -0.03em; --top: var(--notte); --bot: var(--rosso); }
.foto__p { margin-top: var(--s3); max-width: 32rem; }
.cornici { margin-top: var(--s4); display: grid; grid-template-columns: 1fr 1.15fr; gap: var(--s3); align-items: end; }
.cornice { width: auto; }
.cornice--b { margin-bottom: var(--s4); }
.cornice__vuota { display: block; aspect-ratio: 4 / 5; border: 2px solid var(--notte); outline: 1px solid var(--notte); outline-offset: 10px; background: repeating-linear-gradient(135deg, transparent 0 18px, rgba(18, 12, 10, 0.05) 18px 19px); }
.cornice--b .cornice__vuota { aspect-ratio: 5 / 4; }
.cornice figcaption { margin-top: 22px; font-size: 0.875rem; line-height: 1.35; border-left: 3px solid var(--rosso); padding-left: 10px; }
.cornice figcaption b { display: block; font-size: 1rem; }
.foto__ask { margin-top: var(--s5); font: 800 1.75rem/1.1 var(--f-d); font-stretch: 80%; max-width: 26rem; }
.foto__scribble { position: absolute; right: calc(var(--g) + 4px); bottom: calc(var(--s6) + 4.8rem); font: 400 1.5rem/1 var(--f-h); color: var(--rosso); transform: rotate(-8deg); }
.d-f-arrow { width: 64px; height: 44px; right: calc(var(--g) + 30px); bottom: calc(var(--s6) + 6.4rem); color: var(--rosso); transform: rotate(-110deg); }
@media (min-width: 900px) {
  .foto { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--s3); }
  .foto > * { grid-column: 1 / -1; }
  .foto__h { --max: 8.4vw; }
  .foto__p { grid-column: 1 / 6; }
  .cornici { grid-column: 6 / -1; grid-row: 2 / span 2; margin-top: var(--s3); grid-template-columns: 1fr 1.2fr; align-items: end; }
  .cornice, .cornice--b { width: auto; margin: 0; }
  .foto__ask { grid-column: 1 / 6; align-self: end; }
}

/* ---------- 7. Dove e quando ---------- */
.dove { position: relative; background: var(--notte); color: var(--carta); padding: var(--s6) var(--g) var(--s5); }
.dove__h { --ec: 0.45; --max: 18vw; font-weight: 900; font-stretch: 60%; text-transform: uppercase; --top: var(--carta); --bot: var(--rosso); }
.dove__p { margin-top: var(--s3); max-width: 32rem; }
.dove__k { margin-top: var(--s4); font: 400 1.6rem/1 var(--f-h); color: var(--giallo); }
.dove__ore { margin-top: var(--s1); font: 800 7.2vw/1.04 var(--f-d); font-stretch: 72%; text-transform: uppercase; max-width: 15em; }
.dove__addr { margin-top: var(--s3); font-style: normal; font-size: 1.0625rem; }
.dove__addr a { font-weight: 700; }
.dove__book { margin-top: var(--s2); }
.mappa { position: relative; margin-top: var(--s4); }
.mappa a { display: block; text-decoration: none; border: 2px solid var(--carta); }
.mappa__go { position: absolute; left: 12px; bottom: 44px; background: var(--giallo); color: var(--notte); padding: 8px 12px; font: 800 1rem/1 var(--f-d); text-transform: uppercase; }
.mappa figcaption { margin-top: 6px; font-size: 0.75rem; color: #d8d2c8; }
.mappa__scribble { position: absolute; left: 52%; top: 4%; font: 400 1.75rem/1 var(--f-h); color: var(--giallo); transform: rotate(-10deg); }
.adesivo--sedie { width: 70vw; margin: var(--s5) 0 0 auto; }
.fatti { margin-top: var(--s4); display: flex; flex-wrap: wrap; gap: 10px; }
.fatti li { padding: 6px 10px; border: 2px solid var(--carta); font-size: 0.875rem; transform: rotate(var(--r)); }
.faq { margin-top: var(--s5); max-width: 40rem; }
.faq h3 { font: 900 2rem/1 var(--f-d); font-stretch: 60%; text-transform: uppercase; color: var(--giallo); margin-bottom: var(--s2); }
.faq details { border-top: 1px solid rgba(242, 239, 233, 0.3); }
.faq details:last-child { border-bottom: 1px solid rgba(242, 239, 233, 0.3); }
.faq summary { cursor: pointer; padding: 14px 28px 14px 0; font-weight: 700; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font: 800 1.4rem/1 var(--f-d); color: var(--giallo); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 16px; color: #d8d2c8; }
@media (min-width: 900px) {
  .dove { display: grid; grid-template-columns: 5fr 7fr; column-gap: var(--s5); align-items: start; }
  .dove__h { grid-column: 1 / -1; --max: 10vw; }
  .dove__ore { font-size: 3.2vw; }
  .mappa { margin-top: var(--s3); }
  .adesivo--sedie { width: 60%; margin-top: var(--s4); }
  .faq { grid-column: 1 / -1; }
}

/* ---------- 8. The close: the page goes quiet ---------- */
.fine { background: var(--carta); color: var(--notte); padding: var(--s6) var(--g) var(--s5); text-align: left; }
.fine__h { font: 700 1rem/1.3 var(--f-t); }
.fine__p { margin-top: 4px; font-size: 1rem; }
.fine__p a { font-weight: 700; text-decoration-thickness: 2px; text-decoration-color: var(--rosso); }
.fine__cta { margin-top: var(--s3); }
.cta--small { font-size: 1rem; min-height: 44px; padding: 12px 18px 10px; }
@media (min-width: 900px) { .fine { padding: 22vh var(--g) 16vh 52vw; } }

.piede { background: var(--carta); color: var(--notte); padding: 0 var(--g) calc(var(--s5) + 90px); font-size: 0.8125rem; line-height: 1.5; border-top: 1px dashed rgba(18, 12, 10, 0.35); padding-top: var(--s3); }
.piede p + p { margin-top: 6px; }
.piede a, .piede__btn { margin-right: 12px; }
.piede__btn { font: inherit; color: inherit; background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 0.18em; cursor: pointer; min-height: 24px; }

/* ---------- The cookie sticker sheet ---------- */
.foglio { position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 40; max-width: 26rem; padding: var(--s3) var(--s3) var(--s2);
  background: var(--carta); color: var(--notte); border: 2px dashed rgba(18, 12, 10, 0.4); box-shadow: 0 0 0 6px var(--carta), 4px 8px 0 6px rgba(0, 0, 0, 0.4); }
.foglio[hidden] { display: none; }
/* On the home page the sheet waits for the first scroll or key (site.js adds
   .chiesto), so the first screen is the name, the open sign and the call. */
.js body:not(.legale) .foglio { visibility: hidden; transform: translateY(40px); opacity: 0; transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.2), opacity 0.25s, visibility 0s 0.4s; }
.js body.chiesto .foglio { visibility: visible; transform: none; opacity: 1; transition-delay: 0s; }
.foglio__k { font: 400 1.25rem/1 var(--f-h); color: var(--rosso); }
.foglio__h { margin-top: 6px; font: 900 1.375rem/1.05 var(--f-d); font-stretch: 80%; }
.foglio__p { margin-top: var(--s1); font-size: 0.875rem; line-height: 1.45; }
.foglio__b { margin-top: var(--s2); display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.foglio__b button { min-height: 52px; font: 800 1rem/1 var(--f-d); text-transform: uppercase; color: var(--notte); background: var(--giallo); border: 0; cursor: pointer;
  border-radius: 48% 52% 50% 50% / 56% 50% 50% 44%; box-shadow: 0 0 0 3px var(--bianco), 2px 4px 0 3px rgba(0, 0, 0, 0.25); }
.foglio__b button:first-child { transform: rotate(-2deg); }
.foglio__b button:last-child { transform: rotate(2deg); }

/* ---------- Privacy page ---------- */
.legale { background: var(--carta); color: var(--notte); }
.legale main { max-width: 40rem; padding: 72px var(--g) var(--s6); }
.legale h1 { font: 900 3rem/1 var(--f-d); font-stretch: 70%; text-transform: uppercase; margin: var(--s3) 0; }
.legale main p + p { margin-top: var(--s2); }
.legale__home { font-weight: 700; }

/* ---------- Reduced motion: the same page, standing still ---------- */
@media (prefers-reduced-motion: reduce) {
  :root { --k: 1 !important; }
  [data-k] { --k: 1 !important; }
  .hero, .lingue { --p: 1 !important; }
  .mp__b { transform: none !important; }
  .adesivo-call, .cta, .parete li, .foglio { transition: none !important; }
  .stato::before { animation: none !important; }
  .lingue { height: auto; }
  .lingue__stage { position: static; height: auto; overflow: visible; }
  .parete { flex: none; }
  .parete li { position: relative; top: auto; left: auto !important; width: auto !important; margin: 0 0 14px !important; opacity: 1; transform: rotate(var(--r)); }
  .lingue__more { position: static; opacity: 1; margin-top: var(--s2); }
}
