/* vendor/lenis.css */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis:not(.lenis-autoToggle).lenis-stopped {
  overflow: clip;
}

.lenis [data-lenis-prevent],
.lenis [data-lenis-prevent-wheel],
.lenis [data-lenis-prevent-touch],
.lenis [data-lenis-prevent-vertical],
.lenis [data-lenis-prevent-horizontal] {
  overscroll-behavior: contain;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

.lenis.lenis-autoToggle {
  transition-property: overflow;
  transition-duration: 1ms;
  transition-behavior: allow-discrete;
}

/* assets/css/base.css */
/* Stockroom landing — base layer (owner: main session; ask before changing).
   The look comes from the Stockroom brand book (../brand/design-system/project/, 03/12/2026):
   warm white «gesso» page, white cards, «inchiostro» dark bands, one typeface (Figtree), and three shape
   colours that each mean one phase: cielo = ordini (scatola), sole = foto (palla), menta = online (triangolo).
   Shape colours fill shapes, icons and soft backgrounds; they are never text (use --link, --pronto,
   --attenzione, --fermo). Layout and motion stay the ones of the La Mossa build.
   Sections add their own files (assets/css/<section>.css); shared tokens and parts live here only.
   Breakpoints: phone <= 809px, tablet 810-1199px, desktop >= 1200px. */

/* ---------- font (served by the site; Figtree, SIL OFL 1.1, variable 300-900, latin subset) ---------- */
@font-face { font-family: "Figtree"; src: url("../../fonts/Figtree-latin.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }

/* ---------- tokens ---------- */
:root {
  /* brand (names as in the brand book's tokens.json) */
  --cielo: #3FA9F5;  --cielo-soft: #E6F3FE;   /* scatola · ordini e gestionale */
  --sole: #FFC233;   --sole-soft: #FFF3D1;    /* palla · foto e set */
  --menta: #2CCB8F;  --menta-soft: #E3F7EE;   /* triangolo · online */
  --inchiostro: #15171C;  --gesso: #F7F7F4;
  --on-sole: #15171C;
  --on-inchiostro: #FFFFFF;  --on-inchiostro-muted: #B9BDC6;
  --on-gesso-muted: #5A5F6B;
  --surface: #FFFFFF;  --surface-muted: #EFEFEA;
  --ink-muted: #5A5F6B;
  --line-strong: #8C909A;
  --action: #15171C;  --on-action: #FFFFFF;
  --link: #0A6CC2;  --focus: #0A6CC2;
  --pronto: #0E7A52;  --attenzione: #8A5A00;  --fermo: #B8322A;  --fermo-soft: #FDE8E6;
  --focus-ring: 0 0 0 2px #FFFFFF, 0 0 0 4px #0A6CC2;

  /* the names the sections already use, mapped onto the brand */
  --bg: #F7F7F4;            /* page = gesso */
  --tray: #EFEFEA;          /* tray that holds white cards = surface-muted */
  --card: #FFFFFF;          /* card = surface */
  --card-2: #F7F7F4;        /* inset inside a card (fields, rows, inner panels) */
  --white: #FFFFFF;
  --dark: #15171C;          /* buttons, dark bands = inchiostro */
  --dark-2: #1A1C21;        /* raised surface on dark */

  --ink: #15171C;           /* headings, strong text */
  --ink-2: #2A2D35;
  --ink-3: #3A3E48;         /* body on white when it must be darker than muted */
  --muted: #5A5F6B;         /* body text: 6.0:1 on --bg */
  --on-dark: #FFFFFF;
  --on-dark-muted: #B9BDC6; /* 9.5:1 on --dark */

  --line: #E4E4DF;
  --line-2: rgba(21, 23, 28, .14);
  --line-dark: rgba(255, 255, 255, .12);

  /* accent: the old red is gone. Decoration only, never text: the order blue. Text that must stand out
     uses --accent-text (= link blue, 5.3:1 on white). */
  --accent: #3FA9F5;
  --accent-text: #0A6CC2;
  --accent-soft: #E6F3FE;

  --ok: #2CCB8F;  --ok-text: #0E7A52;  --ok-soft: #E3F7EE;
  --warn: #FFC233; --warn-text: #8A5A00; --warn-soft: #FFF3D1;
  --stop: #B8322A; --stop-text: #B8322A; --stop-soft: #FDE8E6;

  --r-pill: 999px;
  --r-tray: 24px;           /* radius-xl */
  --r-card: 16px;           /* radius-lg */
  --r-in: 12px;             /* radius-md */
  --r-sm: 8px;              /* radius-sm */
  --shadow-card: 0 1px 2px rgba(21, 23, 28, .06), 0 8px 24px -12px rgba(21, 23, 28, .18);
  --shadow-float: 0 2px 6px rgba(21, 23, 28, .08), 0 20px 48px -16px rgba(21, 23, 28, .28);

  --f-display: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif; /* one typeface: codes use tabular figures */

  --wrap: 1376px;
  --gutter: 32px;
  --sec-pad: 88px;          /* top and bottom padding of a section */
  --head-gap: 56px;         /* section head -> content */
  --nav-h: 80px;            /* room the fixed nav takes at the top */

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
}
@media (max-width: 1199px) { :root { --gutter: 24px; --sec-pad: 72px; --head-gap: 48px; } }
@media (max-width: 809px)  { :root { --gutter: 16px; --sec-pad: 56px; --head-gap: 36px; --r-tray: 20px; --r-card: 16px; --nav-h: 72px; } }

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--nav-h); }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink);
  font: 400 16px/1.5 var(--f-body); letter-spacing: 0;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video, canvas, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure, blockquote { margin: 0; }
::selection { background: var(--ink); color: var(--white); }
main { position: relative; display: block; }
[hidden] { display: none !important; }

/* ---------- type ---------- */
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); font-weight: 700; color: var(--ink); letter-spacing: -0.02em; line-height: 1.1; text-wrap: balance; }
h1, .t-h1 { font-size: 48px; }
h2, .t-h2 { font-size: 40px; }
.t-h3 { font-family: var(--f-display); font-weight: 700; font-size: 32px; line-height: 1.15; letter-spacing: -0.02em; }
.t-card { font-family: var(--f-display); font-weight: 650; font-size: 22px; line-height: 1.25; letter-spacing: -0.01em; color: var(--ink); }
.t-num { font-family: var(--f-display); font-weight: 700; font-size: 32px; line-height: 1.125; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.t-lead { font-size: 18px; line-height: 1.3; color: var(--muted); text-wrap: pretty; }
.t-body { font-size: 16px; line-height: 1.35; color: var(--muted); text-wrap: pretty; }
.t-small { font-size: 14px; line-height: 1.35; color: var(--muted); }
.t-tiny { font-size: 12px; line-height: 1.3; color: var(--muted); }
.t-strong { color: var(--ink); font-weight: 500; }
.mono { font-family: var(--f-mono); font-weight: 500; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.tnum { font-variant-numeric: tabular-nums; }
@media (max-width: 1199px) { h1, .t-h1 { font-size: 44px; } h2, .t-h2 { font-size: 36px; } }
@media (max-width: 809px) {
  h1, .t-h1 { font-size: 36px; } h2, .t-h2 { font-size: 30px; } .t-h3 { font-size: 26px; }
  .t-card { font-size: 21px; } .t-num { font-size: 28px; } .t-lead { font-size: 16px; }
}

/* ---------- layout ---------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2 * var(--gutter), 960px); margin-inline: auto; }
.sec { position: relative; padding-block: var(--sec-pad); }
/* the thin rule La Mossa draws between sections (opt in) */
.sec.has-rule::before { content: ""; position: absolute; top: 0; left: max(var(--gutter), calc((100% - var(--wrap)) / 2)); right: max(var(--gutter), calc((100% - var(--wrap)) / 2)); height: 1px; background: var(--line); }

/* section head: red-square label, two-line title, optional lead. Centred by default. */
.sec-head { display: grid; justify-items: center; text-align: center; gap: 16px; margin-bottom: var(--head-gap); }
.sec-head h2 { max-width: 22ch; }
.sec-head .t-lead { max-width: 480px; }
.sec-head--left { justify-items: start; text-align: left; grid-template-columns: 1fr auto; align-items: end; column-gap: 32px; }
.sec-head--left > :not(.sec-head-aside) { grid-column: 1; }
.sec-head--left .sec-head-aside { grid-column: 2; grid-row: 1 / span 3; align-self: end; }
@media (max-width: 809px) { .sec-head--left { grid-template-columns: 1fr; } .sec-head--left .sec-head-aside { grid-column: 1; grid-row: auto; } }
.label { display: inline-flex; align-items: center; gap: 8px; font: 500 14px/1.3 var(--f-body); color: var(--ink); }
.label::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }

/* ---------- trays and cards ---------- */
.tray { background: var(--tray); border-radius: var(--r-tray); padding: 8px; }
.card { position: relative; background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow-card); padding: 24px; }
.tray > .card, .tray .card { border-radius: calc(var(--r-tray) - 8px); }
.card--dark { background: var(--dark); color: var(--on-dark); box-shadow: none; }
.card--dark h2, .card--dark h3, .card--dark .t-card, .card--dark .t-h3, .card--dark .t-num { color: var(--on-dark); }
.card--dark .t-body, .card--dark .t-small, .card--dark .t-lead, .card--dark .t-tiny { color: var(--on-dark-muted); }
.inset { background: var(--card-2); border-radius: var(--r-in); }

/* black pill with a white icon (card headers) */
.icon-pill { display: inline-grid; place-items: center; width: 48px; height: 32px; border-radius: var(--r-pill); background: var(--dark); color: var(--white); }
.icon-pill svg { width: 18px; height: 18px; }
/* black pill with a number: 01 02 03 04 */
.num-pill { display: inline-grid; place-items: center; min-width: 52px; height: 36px; padding: 0 14px; border-radius: var(--r-pill); background: var(--dark); color: var(--white); font: 500 18px/1 var(--f-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
/* small white pill (project tags) */
.tag { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: var(--r-pill); background: var(--white); border: 1px solid var(--line); font: 500 12px/1 var(--f-body); color: var(--ink-3); white-space: nowrap; }
/* status chip with a dot: ok, warn, stop, info */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: var(--r-pill); font: 500 12px/1 var(--f-body); white-space: nowrap; background: var(--card-2); color: var(--ink-3); }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip--ok { background: var(--ok-soft); color: var(--ok-text); }
.chip--warn { background: var(--warn-soft); color: var(--warn-text); }
.chip--stop { background: var(--stop-soft); color: var(--stop-text); }

/* ---------- icons from the sprite ---------- */
.i { width: 18px; height: 18px; flex: none; }

/* ---------- buttons: pill, the arrow disc loops on hover ---------- */
.btn {
  --h: 48px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: var(--h); padding: 0 22px; border: 0; border-radius: var(--r-pill);
  font: 500 15px/1 var(--f-body); letter-spacing: -0.01em; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: background-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:has(.btn-arrow) { padding-right: 6px; }
.btn-dark { background: var(--dark); color: var(--white); }
.btn-dark:hover { background: #1b1d24; }
.btn-light { background: var(--white); color: var(--ink); box-shadow: 0 1px 2px rgba(10, 10, 10, .06); }
.btn-light:hover { background: #f4f5f7; }
.btn-arrow { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--white); color: var(--ink); overflow: hidden; }
.btn-light .btn-arrow { background: var(--dark); color: var(--white); }
.btn-arrow svg { width: 16px; height: 16px; }
.btn:hover .btn-arrow svg, .btn:focus-visible .btn-arrow svg { animation: sr-arrow-loop .6s var(--ease); }
@keyframes sr-arrow-loop { 0% { transform: none; } 45% { transform: translateX(160%); } 46% { transform: translateX(-160%); } 100% { transform: none; } }
.btn-sm { --h: 40px; font-size: 14px; padding: 0 18px; }
.btn-sm:has(.btn-arrow) { padding-right: 5px; }
.btn-sm .btn-arrow { width: 30px; height: 30px; }
.card--dark .btn-light:hover { background: #e9eaee; }

/* ---------- live windows (03/12 night): a Stockroom window that works by itself (SR.live) ----------
   <div class="win" data-live="name">
     <div class="win-bar"><span class="win-dots" aria-hidden="true"><i></i><i></i><i></i></span>
       <span class="win-title">Stockroom · Ordini</span><span class="win-tag">…</span></div>
     <div class="win-body"> … <span class="cur" aria-hidden="true"><svg><use href="#i-cursor"/></svg><i class="cur-ring"></i></span></div>
   </div>
   The HTML is the finished frame (what reduced motion and ?static show). The cursor is hidden without motion. */
.win { position: relative; overflow: hidden; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow-float); isolation: isolate; }
.win-bar { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 12px; border-bottom: 1px solid var(--line); background: var(--surface); font: 500 12px/16px var(--f-body); color: var(--ink-muted); }
.win-dots { display: inline-flex; gap: 6px; flex: none; }
.win-dots i { display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.win-title { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 600; color: var(--ink); }
.win-tag { margin-left: auto; flex: none; }
.win-body { position: relative; padding: 14px; }
.win--dark { background: var(--inchiostro); color: var(--on-inchiostro); }
.win--dark .win-bar { background: var(--inchiostro); border-color: rgba(255, 255, 255, .1); color: var(--on-inchiostro-muted); }
.win--dark .win-title { color: var(--on-inchiostro); }
.win--dark .win-dots i { background: rgba(255, 255, 255, .22); }
.cur { position: absolute; left: 0; top: 0; z-index: 20; width: 22px; height: 22px; pointer-events: none; opacity: 0; will-change: transform; }
.cur svg { display: block; width: 22px; height: 22px; filter: drop-shadow(0 2px 3px rgba(21, 23, 28, .35)); }
.cur-ring { position: absolute; left: -9px; top: -10px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--cielo); opacity: 0; }
html.motion:not(.motion-failsafe) .win .cur { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .cur { display: none !important; } }
html:not(.motion) .cur { display: none; }


/* ------------------------------------------------------------------ v11 (04/12): photos and phone, shared
   .ph   = a phone holding a phone photo (never wider than 300 px: the photos are 480 px wide).
   .shot = a finished shot in its frame (3:4). .cap = the small label that sits on a picture.
   .big-shape = a brand shape used as a drawing (any size): <svg class="big-shape"><use href="#s-palla"/></svg>. */
.ph { position: relative; display: block; width: var(--ph-w, 220px); max-width: 300px; aspect-ratio: 480 / 980; padding: 9px; border-radius: 34px; background: var(--inchiostro); box-shadow: 0 30px 60px -28px rgba(21, 23, 28, .5); }
.ph > img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 26px; background: #D9D9D6; }
.ph::before { content: ""; position: absolute; z-index: 1; top: 17px; left: 50%; width: 30%; height: 11px; transform: translateX(-50%); border-radius: 99px; background: var(--inchiostro); }
.shot { display: block; overflow: hidden; aspect-ratio: 3 / 4; border-radius: var(--r-tray); background: #ECECEA; }
.shot > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cap { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 13px; border-radius: 99px; background: rgba(255, 255, 255, .94); color: var(--ink); font: 600 13px/1 var(--f-body); white-space: nowrap; box-shadow: 0 1px 2px rgba(21, 23, 28, .08); }
.cap > svg { width: 11px; height: 11px; flex: none; }
.big-shape { display: block; overflow: visible; }

/* ---------- focus and accessibility ---------- */
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.btn:focus-visible { border-radius: var(--r-pill); }
.card--dark :focus-visible, .on-dark :focus-visible { outline-color: #6CC0FF; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 16px; top: -64px; z-index: 1000; padding: 12px 18px; border-radius: var(--r-pill); background: var(--dark); color: var(--white); text-decoration: none; transition: top .2s; }
.skip:focus { top: 16px; }

/* ---------- motion hooks (assets/js/motion.js) ----------
   html.motion is set in <head> when motion is allowed; motion.js reveals these.
   html.motion-failsafe (set if motion.js never loaded) shows everything. */
html.motion:not(.motion-failsafe) [data-appear],
html.motion:not(.motion-failsafe) [data-stagger] > * { opacity: 0; }
html.motion:not(.motion-failsafe) [data-split]:not(.is-split) { visibility: hidden; }
html.motion:not(.motion-failsafe):not(.motion-ready) [data-reveal] { clip-path: inset(14% 10% 14% 10% round var(--r-card)); }
.split-line { padding-bottom: .06em; margin-bottom: -.06em; } /* masks must not clip descenders */
[data-marquee] { display: flex; width: max-content; }
html.motion-paused [data-marquee] > * { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* assets/css/nav.css */
/* nav.css — owner: G8. The fixed top bar (logo pill left, white link pill right) and the phone panel menu.
   States set by core.js: .nav-bar.is-top (page at the very top: the logo sits bare on the page),
   .nav-bar.is-scrolled (soft shadow), .nav-bar.is-hidden (slid away while scrolling down), .nav-menu.is-open,
   .nav-menu.is-instant (no transitions: reduced motion), html.nav-lock.
   The logo is the brand book's file (media/brand/stockroom-logo.svg): 22 px tall on desktop (196 px wide),
   18 px on a phone (160 px wide, over the 96 px minimum). Clear space around it is at least one «scatola»
   (half the logo's height): the pill's padding keeps it. The white pill is the default, so the logo stays
   legible over any section even if core.js never runs. Colours are brand tokens only. */

.nav-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 91;
  pointer-events: none;
  transition: transform .6s var(--ease);
}
.nav-bar.is-hidden { transform: translate3d(0, calc(-100% - 12px), 0); }
.nav-in {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: min(100% - 2 * var(--gutter), var(--wrap)); height: var(--nav-h); margin-inline: auto;
}
.nav-in > * { pointer-events: auto; }

/* logo: its own white pill, as tall as the menu pill; bare on the page only at the very top */
.nav-logo {
  display: inline-flex; align-items: center; flex: none;
  height: 64px; padding: 0 24px; border-radius: var(--r-pill);
  background-color: var(--surface);
  text-decoration: none;
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease);
}
.nav-bar.is-top .nav-logo { background-color: transparent; }
.nav-logo-img { display: block; width: auto; height: 22px; }
.nav-logo:focus-visible { border-radius: var(--r-pill); outline-offset: 2px; }

/* the white pill: links + booking button */
.nav-pill {
  display: flex; align-items: center; gap: 16px;
  height: 64px; padding: 0 12px 0 16px; border-radius: var(--r-pill);
  background: var(--surface);
  transition: box-shadow .4s var(--ease);
}
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-link {
  position: relative; display: inline-flex; align-items: center;
  height: 40px; padding: 0 14px; border-radius: var(--r-pill);
  color: var(--ink-muted); text-decoration: none;
  font: 500 16px/1 var(--f-body); white-space: nowrap;
  transition: color .25s var(--ease), background-color .25s var(--ease);
}
.nav-link:hover { color: var(--ink); background: var(--gesso); }
.nav-link:focus-visible { border-radius: var(--r-pill); outline-offset: 0; }
/* the section on screen: ink text and a small ink dot under it */
.nav-link::after {
  content: ""; position: absolute; left: 50%; bottom: 3px;
  width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--ink);
  transform: scale(0); transition: transform .35s var(--ease);
}
.nav-link.is-on { color: var(--ink); }
.nav-link.is-on::after { transform: scale(1); }

/* round menu button (phone and narrow tablet) */
.nav-burger {
  display: none; place-items: center; flex: none;
  width: 56px; height: 56px; padding: 0; border: 0; border-radius: 50%;
  background: var(--surface); color: var(--ink);
  transition: box-shadow .4s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.nav-burger-disc {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--gesso); transition: background-color .25s var(--ease);
}
.nav-burger:hover .nav-burger-disc { background: var(--surface-muted); }
.nav-burger-icon { width: 22px; height: 22px; }
.nav-burger:focus-visible { border-radius: 50%; }

/* scrolled: soft shadow under every floating piece */
.nav-bar.is-scrolled .nav-logo { background-color: var(--surface); box-shadow: var(--shadow-card); }
.nav-bar.is-scrolled .nav-pill,
.nav-bar.is-scrolled .nav-burger { box-shadow: var(--shadow-card); }

/* ---------- full panel menu (below 960px) ---------- */
.nav-menu {
  --nav-o: calc(100% - var(--gutter) - 28px) calc(var(--nav-h) / 2);
  position: fixed; inset: 0; z-index: 90;
  display: flex; flex-direction: column;
  padding: calc(var(--nav-h) + 12px) var(--gutter) max(24px, env(safe-area-inset-bottom));
  background: var(--gesso);
  overflow-y: auto; overscroll-behavior: contain;
  clip-path: circle(0 at var(--nav-o));
  transition: clip-path .65s var(--ease-in-out);
}
.nav-menu.is-open { clip-path: circle(150% at var(--nav-o)); }
.nav-menu-in { display: flex; flex-direction: column; gap: 16px; flex: 1; width: 100%; max-width: 640px; margin-inline: auto; }
.nav-menu-list {
  padding: 8px; border-radius: var(--r-tray);
  background: var(--surface); box-shadow: var(--shadow-card);
}
.nav-menu-item {
  opacity: 0; transform: translate3d(0, 18px, 0);
  transition: opacity .5s var(--ease), transform .7s var(--ease);
}
.nav-menu.is-open .nav-menu-item {
  opacity: 1; transform: none;
  transition-delay: calc(var(--i, 0) * 45ms + 160ms);
}
.nav-menu-item + .nav-menu-item { border-top: 1px solid var(--line); }
.nav-menu-link {
  display: flex; align-items: baseline; gap: 16px;
  padding: 18px 16px; border-radius: var(--r-in);
  color: var(--ink); text-decoration: none;
  font: 700 28px/1.1 var(--f-display); letter-spacing: -0.02em;
  transition: background-color .2s var(--ease);
}
.nav-menu-link:hover, .nav-menu-link.is-on { background: var(--gesso); }
.nav-menu-num { min-width: 22px; font: 500 14px/1 var(--f-body); letter-spacing: 0; font-variant-numeric: tabular-nums; color: var(--ink-muted); }
.nav-menu-foot { display: grid; gap: 12px; margin-top: auto; padding-top: 8px; }
.nav-menu-foot .btn { --h: 56px; width: 100%; font-size: 16px; }
.nav-menu-cta { justify-content: space-between; padding-left: 24px; }
.nav-menu-cta .btn-arrow { width: 56px; height: 44px; border-radius: var(--r-pill); }
.nav-menu-sign { text-align: center; font: 500 14px/20px var(--f-body); color: var(--ink-muted); }

.nav-menu.is-instant, .nav-menu.is-instant .nav-menu-item { transition: none; }

/* scroll lock while the menu is open (Lenis is stopped too) */
.nav-lock { overflow: hidden; }

@media (max-width: 1199px) {
  .nav-pill { gap: 10px; padding-left: 10px; }
  .nav-link { padding: 0 11px; font-size: 15px; }
  .nav-logo { padding: 0 20px; }
  .nav-logo-img { height: 20px; }
}
@media (max-width: 959px) {
  .nav-pill { display: none; }
  .nav-burger { display: inline-grid; }
}
@media (min-width: 960px) {
  .nav-menu { display: none; }
}
@media (max-width: 809px) {
  .nav-logo { height: 56px; padding: 0 20px; }
  .nav-logo-img { height: 18px; }
  .nav-menu-link { font-size: 26px; padding: 16px 14px; }
}

/* assets/css/hero.css */
/* hero.css — owner: V1 (v11, 04/12). Opening #inizio (.hero-) and the demo layer #demo (.dm-: names fixed by demo.js).
   Two columns from 960 px (copy 44 %, composition 56 %); under it the copy comes first and the composition follows.
   The composition is a stage with a fixed ratio; every piece is placed in % of the stage, so it scales as one
   drawing. Two geometries: wide (780 x 640, from 810 px) and tall (358 x 400, phones), each with its own route line.
   No box holds text: only the base .cap labels sit on the shapes, the shot and the phone.
   Before hero.js runs, [data-hero-in] pieces are hidden when motion is on (no flash); .hero.is-js hands them to GSAP.
   With reduced motion / ?static nothing is hidden: the markup is the finished picture. */

/* ---------- section and copy ---------- */
.hero { padding-top: calc(var(--nav-h) + 24px); padding-bottom: 64px; }
.hero-in {
  display: grid; grid-template-columns: minmax(0, 44fr) minmax(0, 56fr); align-items: center; column-gap: 40px;
  min-height: min(680px, calc(100svh - var(--nav-h) - 88px));
}
.hero-copy { min-width: 0; }
.hero-badge { display: inline-flex; align-items: center; gap: 10px; font: 500 15px/1.3 var(--f-body); color: var(--ink-3); }
.hero-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--menta); box-shadow: 0 0 0 4px var(--menta-soft); }
.hero-title { margin-top: 20px; font-size: clamp(44px, 5.6vw, 84px); line-height: 1.02; letter-spacing: -0.03em; }
.hero-h1 { display: block; }
.hero-h1 + .hero-h1 { margin-top: .1em; }
.hero-lead { max-width: 31em; margin-top: 28px; font-size: 19px; line-height: 1.45; color: var(--muted); text-wrap: pretty; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-cta { --h: 54px; padding-inline: 26px; font-size: 16px; }
.hero-cta:has(.btn-arrow) { padding-right: 7px; }
.hero-cta .btn-arrow { width: 40px; height: 40px; }

/* ---------- composition: stage and layers ---------- */
.hero-art { min-width: 0; }
.hero-stage { position: relative; width: 100%; aspect-ratio: 780 / 640; }
.hero-layer { position: absolute; inset: 0; pointer-events: none; }
.hero-layer--back { z-index: 1; }
.hero-layer--mid { z-index: 2; }
.hero-layer--front { z-index: 3; }

/* route line: under the shapes, so it shows only between one stop and the next */
.hero-route { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: none; stroke: rgba(21, 23, 28, .2); stroke-width: 2.1; stroke-linecap: round; }
.hero-route--tall { display: none; }

/* shapes */
.hero-node { position: absolute; }
.hero-node > .big-shape { width: 100%; height: 100%; }
.hero-scatola { left: 1.03%; top: 1.56%; width: 18.97%; aspect-ratio: 1; }
.hero-palla { left: 16.92%; top: 16.41%; width: 61.54%; aspect-ratio: 1; }
.hero-tri { left: 79.49%; top: 70%; width: 20%; aspect-ratio: 29 / 33.25; }
.hero-ink { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: none; }
.hero-sheet-paper { fill: var(--white); }
.hero-sheet-fold { fill: var(--cielo-soft); }
.hero-sheet-line { stroke: var(--cielo); stroke-width: 4; stroke-linecap: round; }
.hero-check { stroke: var(--white); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }

/* finished shot (frames after the first are stacked on it) */
.hero-shot { position: absolute; left: 41.54%; top: 6.25%; width: 47.69%; margin: 0; isolation: isolate; }
.hero-shot .shot { position: relative; }
.hero-shot .shot > img + img { position: absolute; inset: 0; opacity: 0; }
.hero-shade { position: absolute; z-index: -1; inset: 12% 7% 1% 7%; border-radius: var(--r-tray); box-shadow: 0 34px 56px -18px rgba(21, 23, 28, .38); }

/* phone: the base .ph, with bezel and corners in % so it keeps its look at any size */
.hero-phone { position: absolute; left: 10.64%; top: 39.06%; width: 23.85%; margin: 0; transform: rotate(-6deg); }
.hero-phone .ph { --ph-w: 100%; width: 100%; padding: 4.8%; border-radius: 18% / 8.82%; }
.hero-phone .ph > img { border-radius: 14.5% / 6.74%; }
.hero-phone .ph > img + img { position: absolute; left: 4.8%; top: 2.35%; width: 90.4%; height: 95.3%; opacity: 0; }
.hero-phone .ph::before { top: 3.9%; height: 2.5%; }

/* arrow from the phone to the shot */
.hero-arrow { position: absolute; left: 33.08%; top: 40.94%; width: 8.46%; height: auto; aspect-ratio: 66 / 44; overflow: visible; fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* labels */
.hero-stage .cap { position: absolute; z-index: 2; }
.hero-scatola .cap, .hero-tri .cap, .hero-shot .cap { left: 0; right: 0; width: max-content; margin-inline: auto; }
.hero-scatola .cap { bottom: 7%; }
.hero-tri .cap { bottom: 6%; }
.hero-palla .cap { left: 18.5%; top: 15.5%; }
.hero-shot .cap { bottom: 4.2%; }
.hero-phone .cap { left: -10%; bottom: 9%; }

/* ---------- before hero.js: nothing flashes ---------- */
html.motion:not(.motion-failsafe) .hero:not(.is-js) [data-hero-in] { opacity: 0; }

/* ---------- tablet, two columns ---------- */
@media (max-width: 1199px) {
  .hero-in { column-gap: 28px; }
  .hero-lead { font-size: 18px; margin-top: 24px; }
  .hero-ctas { margin-top: 28px; }
  .hero-cta { --h: 50px; padding-inline: 22px; font-size: 15px; }
  .hero-cta .btn-arrow { width: 38px; height: 38px; }
  .hero-cta:has(.btn-arrow) { padding-right: 6px; }
  .hero-stage .cap { height: 26px; padding: 0 11px; font-size: 12px; }
}

/* ---------- under 960: copy first, composition under it ---------- */
@media (max-width: 959px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); row-gap: 48px; min-height: 0; }
  .hero-copy { max-width: 720px; margin-inline: auto; text-align: center; }
  .hero-lead { margin-inline: auto; }
  .hero-ctas { justify-content: center; }
  .hero-stage { width: min(100%, 660px); margin-inline: auto; }
}

/* ---------- phone: left-aligned copy, tall composition ---------- */
@media (max-width: 809px) {
  .hero { padding-top: calc(var(--nav-h) + 12px); padding-bottom: 40px; }
  .hero-in { row-gap: 36px; }
  .hero-copy { max-width: none; margin-inline: 0; text-align: left; }
  .hero-title { margin-top: 16px; }
  .hero-lead { margin-inline: 0; margin-top: 20px; font-size: 17px; }
  .hero-ctas { justify-content: flex-start; gap: 10px; margin-top: 24px; }
  .hero-cta { flex: 1 1 auto; padding-inline: 18px; }

  .hero-stage { width: min(100%, 430px); aspect-ratio: 358 / 400; }
  .hero-route--wide { display: none; }
  .hero-route--tall { display: block; stroke-width: 2; }
  .hero-scatola { left: .56%; top: .5%; width: 24.02%; }
  .hero-palla { left: 13.13%; top: 17.25%; width: 81.01%; }
  .hero-tri { left: 73.18%; top: 65.5%; width: 25.7%; }
  .hero-shot { left: 43.58%; top: 5.5%; width: 54.75%; }
  .hero-phone { left: 6.15%; top: 44%; width: 29.05%; }
  .hero-arrow { left: 34.08%; top: 50.85%; width: 9.5%; stroke-width: 4.5; }
  .hero-palla .cap { left: 16%; }
  .hero-shot .cap { left: 5%; right: auto; margin-inline: 0; bottom: 4.5%; }
  .hero-phone .cap { left: -12%; }
}

/* ---------- demo layer (assets/js/demo.js adds .is-live and .is-loaded) ---------- */
html.hero-demo-lock { overflow: hidden; }
.dm {
  position: fixed; inset: 0; z-index: 200;
  display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 12px;
  padding: 14px clamp(16px, 3vw, 40px) 24px;
  background: rgba(21, 23, 28, .84);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .35s var(--ease), visibility 0s linear .35s;
}
.dm.is-live { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .35s var(--ease), visibility 0s; }
.dm-bar { display: flex; justify-content: flex-end; gap: 8px; }
.dm-tool { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--surface); color: var(--ink); transition: background-color .3s var(--ease); }
.dm-tool:hover { background: var(--surface-muted); }
.dm-tool:focus-visible { border-radius: 50%; outline-color: #6CC0FF; }
.dm-tool svg { width: 18px; height: 18px; }
.dm-frame { position: relative; overflow: hidden; width: min(100%, 1680px); height: 100%; margin-inline: auto; border-radius: var(--r-tray); background: var(--surface); }
.dm-iframe { position: absolute; left: 0; top: 0; width: 1280px; max-width: none; height: 100%; border: 0; transform-origin: 0 0; background: var(--surface); opacity: 0; visibility: hidden; }
.dm.is-live.is-loaded .dm-iframe { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .4s var(--ease); }
.dm-frame:fullscreen { width: 100vw; height: 100vh; border-radius: 0; }
.dm-frame:-webkit-full-screen { width: 100vw; height: 100vh; border-radius: 0; }
/* while the demo loads: the three shapes, breathing */
.dm-load { position: absolute; left: 50%; top: 50%; display: flex; align-items: center; gap: 10px; transform: translate(-50%, -50%); }
.dm-load .big-shape { width: 18px; height: 18px; }
.dm.is-live:not(.is-loaded) .dm-load .big-shape { animation: hero-load .9s var(--ease-in-out) infinite alternate; }
.dm-load .big-shape:nth-child(2) { animation-delay: .15s; }
.dm-load .big-shape:nth-child(3) { animation-delay: .3s; }
.dm.is-loaded .dm-load { display: none; }
@keyframes hero-load { from { transform: translateY(3px); opacity: .45; } to { transform: translateY(-3px); opacity: 1; } }

/* assets/css/presentazione.css */
/* presentazione.css — owner: M2. #presentazione, right after the opening: one dark player (inchiostro, big-panel
   radius) on the chalk page. Screen 16:9 on top; under it the control row (play/pause, the chapter bar, time,
   audio switch); under that the four chapter chips with their phase sign. The player is as wide as the content,
   but never taller than the window: screen + control row always fit on one screen.
   The bar is split into the video's real parts (widths = seconds, --w): the opening, then Ordine and Gestionale
   (fill in --cielo), Set fotografico (--sole), E-commerce (--menta). Shape colours are fills here, never text.
   States: .pres-player.is-paused / .is-playing, .pres-chap[aria-current="true"]. Motion in presentazione.js
   (3D growth while entering); with reduced motion everything below is the final, flat state. */

.pres { overflow-x: clip; }
.pres-head { margin-bottom: 40px; }
.pres-head .label { gap: 8px; }
.pres-sep { color: var(--ink-muted); }
.pres-len { font-variant-numeric: tabular-nums; }

/* ---------- stage: perspective for the 3D growth, and a soft brand aura under the player ---------- */
.pres-stage { position: relative; perspective: 1800px; perspective-origin: 50% 0%; isolation: isolate; }
.pres-glow {
  position: absolute; z-index: -1; left: 8%; right: 8%; top: 18%; bottom: -2%;
  background:
    radial-gradient(42% 60% at 22% 62%, color-mix(in srgb, var(--cielo) 40%, transparent), transparent 72%),
    radial-gradient(38% 55% at 52% 78%, color-mix(in srgb, var(--sole) 34%, transparent), transparent 72%),
    radial-gradient(42% 60% at 80% 60%, color-mix(in srgb, var(--menta) 36%, transparent), transparent 72%);
  filter: blur(48px); opacity: .55; pointer-events: none;
}

/* ---------- the player ---------- */
.pres-player {
  --pad: 8px;
  position: relative; margin: 0 auto;
  width: min(100%, calc((100svh - var(--nav-h) - 96px) * 16 / 9 + 2 * var(--pad)));
  padding: var(--pad); border-radius: var(--r-tray);
  background: var(--inchiostro); color: var(--on-inchiostro);
  box-shadow: inset 0 0 0 1px var(--line-dark), var(--shadow-float);
  transform-origin: 50% 100%;
}
.pres-screen {
  position: relative; overflow: hidden; isolation: isolate; cursor: pointer;
  aspect-ratio: 16 / 9; border-radius: calc(var(--r-tray) - var(--pad));
  background: var(--inchiostro);
}
.pres-video { display: block; width: 100%; height: 100%; object-fit: cover; }

/* big play disc in the middle, only while paused (a pointer shortcut; the real button is in the bar) */
.pres-big {
  position: absolute; left: 50%; top: 50%; z-index: 1;
  display: grid; place-items: center; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%;
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow-float);
  opacity: 0; transform: scale(.8); pointer-events: none;
  transition: opacity .4s var(--ease), transform .5s var(--ease);
}
.pres-big svg { width: 24px; height: 24px; margin-left: 3px; }
.pres-player.is-paused .pres-big { opacity: 1; transform: none; }
.pres-screen:hover .pres-big { transform: scale(1.06); }
.pres-player.is-playing .pres-screen:hover .pres-big { opacity: 0; }

/* ---------- control row ---------- */
.pres-bar {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 16px;
  padding: 12px 6px 10px;
}
.pres-toggle {
  display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%;
  background: var(--surface); color: var(--ink); cursor: pointer;
  transition: transform .3s var(--ease);
}
.pres-toggle:hover { transform: scale(1.06); }
.pres-toggle:focus-visible { border-radius: 50%; }
.pres-toggle svg { width: 15px; height: 15px; }
.pres-toggle .pres-ic-play { margin-left: 2px; }
.pres-player .pres-toggle .pres-ic-play { display: none; }
.pres-player.is-paused .pres-toggle .pres-ic-play { display: block; }
.pres-player.is-paused .pres-toggle .pres-ic-pause { display: none; }

/* the chapter bar: one slider, segments as wide as their seconds */
.pres-track {
  position: relative; display: flex; align-items: center; gap: 3px;
  height: 28px; cursor: pointer; touch-action: none;
}
.pres-track:focus-visible { border-radius: 8px; outline-offset: 2px; }
.pres-seg {
  position: relative; flex: var(--w) 1 0; min-width: 0; height: 6px; overflow: hidden;
  border-radius: var(--r-pill); background: color-mix(in srgb, var(--on-inchiostro) 22%, transparent);
  transition: transform .3s var(--ease);
}
.pres-track:hover .pres-seg, .pres-track.is-drag .pres-seg { transform: scaleY(1.5); }
.pres-seg > i {
  position: absolute; inset: 0; border-radius: inherit; background: var(--on-inchiostro);
  transform: scaleX(0); transform-origin: 0 50%;
}
.pres-seg--cielo > i { background: var(--cielo); }
.pres-seg--sole > i { background: var(--sole); }
.pres-seg--menta > i { background: var(--menta); }
.pres-tip {
  position: absolute; left: 0; bottom: calc(100% + 6px); z-index: 2;
  padding: 6px 10px; border-radius: var(--r-sm); white-space: nowrap;
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow-float);
  font: 600 12px/16px var(--f-body); font-variant-numeric: tabular-nums;
  opacity: 0; pointer-events: none; transition: opacity .2s var(--ease);
}
.pres-tip.is-on { opacity: 1; }

.pres-time { margin: 0; font: 500 14px/20px var(--f-body); color: var(--on-inchiostro-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pres-now { color: var(--on-inchiostro); }

/* audio switch: two halves, a white pill slides under the chosen one (same pattern as the old video card) */
.pres-sound {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: var(--r-pill);
  background: var(--dark-2); box-shadow: inset 0 0 0 1px var(--line-dark);
}
.pres-sound-pill {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px);
  border-radius: var(--r-pill); background: var(--surface);
  transition: transform .45s var(--ease);
}
.pres-sound[data-on="on"] .pres-sound-pill { transform: translateX(100%); }
.pres-sound-btn {
  position: relative; z-index: 1; height: 32px; padding: 0 14px; border: 0; border-radius: var(--r-pill);
  background: none; color: var(--on-inchiostro); white-space: nowrap; cursor: pointer;
  font: 500 14px/1 var(--f-body); transition: color .3s var(--ease);
}
.pres-sound-btn.is-on { color: var(--ink); }
.pres-sound-btn:focus-visible { border-radius: var(--r-pill); outline-offset: 1px; }
.pres-sound-btn::after { content: ""; position: absolute; inset: -4px 0; }

/* ---------- chapter chips ---------- */
.pres-chaps {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px;
  margin: 0; padding: 2px 0 0; list-style: none;
}
.pres-chap {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 10px; width: 100%;
  height: 44px; padding: 0 16px; border: 0; border-radius: var(--r-in);
  background: transparent; color: var(--on-inchiostro); box-shadow: inset 0 0 0 1px var(--line-dark);
  font: 500 14px/1 var(--f-body); text-align: left; cursor: pointer;
  transition: background-color .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
}
.pres-chap:hover { background: var(--dark-2); }
.pres-chap:focus-visible { border-radius: var(--r-in); }
.pres-chap[aria-current="true"] { background: var(--surface); color: var(--ink); box-shadow: none; }
.pres-ph { flex: none; width: 12px; height: 12px; }
.pres-chap-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.pres-chap-t { flex: none; color: var(--on-inchiostro-muted); font-variant-numeric: tabular-nums; transition: color .35s var(--ease); }
.pres-chap[aria-current="true"] .pres-chap-t { color: var(--ink-muted); }
.pres-chap-fill {
  position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  transform: scaleX(0); transform-origin: 0 50%; pointer-events: none;
}
.pres-fill--cielo { background: var(--cielo); }
.pres-fill--sole { background: var(--sole); }
.pres-fill--menta { background: var(--menta); }

/* ---------- tablet ---------- */
@media (max-width: 1199px) {
  .pres-head { margin-bottom: 32px; }
  .pres-bar { gap: 12px; }
}

/* ---------- phone: bar on its own line, chips two by two ---------- */
@media (max-width: 809px) {
  .pres-head { margin-bottom: 24px; }
  .pres-player { --pad: 6px; width: 100%; }
  .pres-big { width: 60px; height: 60px; margin: -30px 0 0 -30px; }
  .pres-big svg { width: 20px; height: 20px; }
  .pres-bar {
    grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "track track track" "play time sound";
    row-gap: 4px; column-gap: 12px; padding: 6px 4px 8px;
  }
  .pres-track { grid-area: track; }
  .pres-toggle { grid-area: play; width: 44px; height: 44px; }
  .pres-time { grid-area: time; font-size: 13px; }
  .pres-sound { grid-area: sound; }
  .pres-sound-btn { height: 36px; padding: 0 12px; font-size: 13px; }
  .pres-chaps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .pres-chap {
    display: grid; grid-template-columns: 12px minmax(0, 1fr); align-content: center; column-gap: 8px; row-gap: 2px;
    height: 52px; padding: 0 12px; font-size: 13px; line-height: 16px;
  }
  .pres-chap .pres-ph { grid-row: 1 / span 2; align-self: center; }
  .pres-chap-t { font-size: 12px; line-height: 14px; }
  .pres-glow { left: 0; right: 0; filter: blur(32px); }
}
@media (max-width: 429px) { .pres-of { display: none; } }

/* assets/css/percorso.css */
/* percorso.css — owner: V2 (v11, 04/12). #percorso «Cosa fa, in tre passaggi.»
   Three wide rows, picture and text side by side on alternate sides; the picture column takes 57.6 % of the
   width. No cards: the text sits on the page, the pictures are drawings made with the three brand shapes and
   photos of the Barbour jacket.
   Stage (.pc-pic): 800 × 740 design px. Its pieces are absolute, placed in % of the stage and sized in cqw
   (1cqw = 8 design px), so the same drawing holds from 792 px (desktop) down to 358 px (phone).
   Route (.pc-route): one SVG stretched over the three rows. It lines up with the shapes because the rows are
   equal (grid-auto-rows: 1fr), the column gap is a percentage (4 %) and every row is as tall as its stage.
   Motion is in percorso.js; everything here is the finished state (reduced motion, ?static, no JS).
   Phone (<= 809px): picture on top, text under it; the route becomes a short stroke between the rows. */

.pc { overflow-x: clip; }
.pc-title { max-width: 14em; margin: 0 auto clamp(12px, 2vw, 28px); font-size: clamp(34px, 4.4vw, 64px); text-align: center; }

/* ---------- rows and route ---------- */
.pc-rows { position: relative; display: grid; grid-auto-rows: 1fr; }
.pc-route { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; max-width: none; overflow: visible; pointer-events: none; }
.pc-route path { fill: none; stroke: rgba(21, 23, 28, .2); stroke-width: 2; stroke-linecap: round; }

.pc-row { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 60fr) minmax(0, 40fr); column-gap: 4%; align-items: center; }
.pc-row--foto { grid-template-columns: minmax(0, 40fr) minmax(0, 60fr); }
.pc-row--foto > .pc-pic { order: 2; }

/* ---------- text beside the picture ---------- */
.pc-text { max-width: 480px; }
.pc-phase { display: flex; align-items: center; gap: 16px; font: 650 clamp(18px, 1.5vw, 22px)/1 var(--f-display); letter-spacing: -0.01em; color: var(--ink); }
.pc-mark { flex: none; width: 72px; height: 72px; }
.pc-h { margin-top: clamp(20px, 2vw, 28px); font-size: clamp(28px, 3vw, 44px); line-height: 1.08; letter-spacing: -0.025em; }
.pc-p { margin-top: clamp(14px, 1.4vw, 20px); font-size: 19px; line-height: 1.5; color: var(--ink-3); text-wrap: pretty; }
.pc-proof { margin-top: clamp(18px, 1.8vw, 26px); padding-top: clamp(14px, 1.2vw, 18px); border-top: 1px solid var(--line-2); font-size: 15px; line-height: 1.4; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- the stage ---------- */
.pc-pic { position: relative; container-type: inline-size; aspect-ratio: 800 / 740; }
.pc-pic > * { position: absolute; margin: 0; }
.pc-pic > .pc-bg { z-index: 0; }
.pc-bg > .big-shape { width: 100%; height: 100%; max-width: none; }

/* round sign with a check: ink on the order, menta on the shop */
.pc-ok { z-index: 4; display: grid; place-items: center; border-radius: 50%; background: var(--inchiostro); color: #FFFFFF; }
.pc-ok > svg { width: 56%; height: 56%; }

/* ---------- 1 · Ordini: scatola 460 × 460, centre (496, 330) ---------- */
.pc-ord > .pc-bg { left: 33.25%; top: 13.51%; width: 57.5%; aspect-ratio: 1; }
.pc-ord-sheet { z-index: 1; left: 8.25%; top: 17%; width: 31.25%; height: auto; overflow: visible; transform: rotate(-8deg); filter: drop-shadow(0 2.2cqw 2.4cqw rgba(21, 23, 28, .16)); }
.pc-ord-rows { z-index: 1; left: 48.5%; top: 22.6%; width: 37.5%; height: auto; overflow: visible; }
.pc-ord-eq { z-index: 3; left: 1%; top: 67.6%; font: 700 8.6vw/1 var(--f-display); font-size: 15cqw; letter-spacing: -0.04em; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pc-ord-ok { left: 57%; top: 70.4%; width: 9.5cqw; height: 9.5cqw; }

/* ---------- 2 · Foto: palla Ø 540, centre (400, 370) ---------- */
.pc-foto > .pc-bg { left: 16.25%; top: 13.51%; width: 67.5%; aspect-ratio: 1; }
.pc-pic > .pc-foto-ph { position: absolute; z-index: 3; left: 1.25%; top: 25.5%; --ph-w: 23.75%; padding: 1.1cqw; border-radius: 4.25cqw; transform: rotate(-5deg); }
.pc-foto-ph > img { border-radius: 3.2cqw; }
.pc-foto-ph::before { top: 2.1cqw; height: 1.35cqw; }
.pc-foto-shot { z-index: 1; width: 34%; border-radius: 2.5cqw; box-shadow: 0 3cqw 5cqw -3cqw rgba(21, 23, 28, .42); }
.pc-foto-shot--a { z-index: 2; left: 45%; top: 19.7%; width: 42%; }
.pc-foto-shot--b { left: 28.5%; top: 25%; transform: rotate(-4deg); }
.pc-foto-shot--c { left: 66%; top: 25%; transform: rotate(4deg); }

/* ---------- 3 · Online: triangolo 558 × 640, apex at (319, 94) ---------- */
.pc-web > .pc-bg { left: 5%; top: 6.76%; width: 69.75%; aspect-ratio: 29 / 33.25; }
.pc-web-win { z-index: 1; left: 25%; top: 32.4%; width: 73.75%; overflow: hidden; border-radius: 2.25cqw; background: #FFFFFF; box-shadow: 0 4cqw 7cqw -4cqw rgba(21, 23, 28, .38); }
.pc-web-bar { display: flex; align-items: center; gap: .9cqw; height: 4.5cqw; padding: 0 1.75cqw; border-bottom: 1px solid var(--line); }
.pc-web-bar > i { flex: none; width: 1.25cqw; height: 1.25cqw; border-radius: 50%; background: #D2D4D9; }
.pc-web-bar > b { flex: none; width: 42%; height: 1.75cqw; margin-left: 1.5cqw; border-radius: 99px; background: var(--surface-muted); }
.pc-web-body { display: grid; grid-template-columns: 50% minmax(0, 1fr); gap: 3.25cqw; align-items: center; padding: 2.75cqw; }
.pc-web-shot { border-radius: 1.5cqw; }
.pc-web-side { display: grid; gap: 1.9cqw; justify-items: start; align-content: center; }
.pc-web-side > i { display: block; border-radius: 99px; }
.pc-web-t { width: 78%; height: 3.5cqw; background: var(--ink-3); }
.pc-web-l { width: 100%; height: 1.75cqw; background: #DCDDD8; }
.pc-web-l--s { width: 64%; }
.pc-web-sizes { display: flex; gap: 1.25cqw; margin-top: 2.75cqw; }
.pc-web-sizes > i { display: block; width: 6.75cqw; height: 4.25cqw; border: .3cqw solid #C4C7CE; border-radius: 99px; }
.pc-web-btn { width: 100%; height: 6cqw; margin-top: 1.25cqw; background: var(--inchiostro); }
.pc-web-ok { left: 87.5%; top: 26.5%; width: 10.5cqw; height: 10.5cqw; background: var(--menta); color: var(--inchiostro); }

/* ---------- closing line ---------- */
.pc-close { display: grid; justify-items: center; gap: clamp(18px, 2vw, 28px); max-width: 23em; margin: clamp(40px, 6vw, 96px) auto 0; font: 650 clamp(24px, 2.6vw, 36px)/1.22 var(--f-display); letter-spacing: -0.02em; color: var(--ink); text-align: center; text-wrap: balance; }
.pc-pause { width: clamp(52px, 4.6vw, 68px); height: auto; }

/* ---------- tablet ---------- */
@media (max-width: 1199px) {
  .pc-p { font-size: 18px; }
  .pc-mark { width: 64px; height: 64px; }
}

/* ---------- phone: picture on top, text under it ---------- */
@media (max-width: 809px) {
  .pc-rows { display: block; }
  .pc-route { display: none; }
  .pc-row, .pc-row--foto { grid-template-columns: minmax(0, 1fr); row-gap: 8px; }
  .pc-row--foto > .pc-pic { order: 0; }
  .pc-row + .pc-row { margin-top: 28px; padding-top: 64px; }
  .pc-row + .pc-row::before { content: ""; position: absolute; top: 0; left: 50%; width: 2px; height: 48px; margin-left: -1px; border-radius: 2px; background: rgba(21, 23, 28, .2); }
  .pc-text { max-width: none; }
  .pc-phase { gap: 14px; }
  .pc-mark { width: 56px; height: 56px; }
  .pc-p { font-size: 17px; }
  .pc-close { margin-top: 64px; }
}

/* assets/css/capi.css */
/* capi.css — owner: V3 (v11, 04/12/2026). #capi «Una giacca Barbour, prima e dopo».
   One before/after stage and no cards: the phone with the photo taken in the shop (left), an arrow drawn
   through a palla (middle), the finished shot as tall as the stage and the seven shots as thumbnails (right).
   Text sits on the page; the only frames are .ph, .shot and .cap from base.css.
   Desktop >= 1200: the stage height --capi-h drives everything (phone, shot, thumbnails).
   Tablet 810-1199: same three columns, the shot thumbnails go under the shot.
   Phone <= 809: the big phone and the big shot are hidden; the two toolbars become scroll-snap strips of
   full pictures (phone photos inside .ph, shots at 78vw) with the captions under.
   capi.js toggles .is-on on the big pictures; with motion it cross-fades them with inline styles. */

.capi {
  --capi-h: 640px;        /* stage height (desktop) */
  --capi-phw: 236px;      /* width of the big phone */
  --capi-screen: #0D0E12; /* the phone screen around a photo */
}

/* ---------- head ---------- */
.capi-head { display: grid; gap: 20px; margin-bottom: var(--head-gap); }
.capi-title { font-size: clamp(34px, 4.4vw, 64px); line-height: 1.04; letter-spacing: -0.03em; max-width: 13em; }
.capi-lead { max-width: 34em; font-size: 18px; line-height: 1.45; color: var(--muted); text-wrap: pretty; }

/* ---------- parts shared by every layout ---------- */
.capi-col { position: relative; }
.capi-cap { position: absolute; z-index: 5; }

/* the big phone: the whole photo on a dark screen, with the shutter of the camera under it */
.capi-ph { --ph-w: var(--capi-phw); }
.capi-screen { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; isolation: isolate; border-radius: 26px; background: var(--capi-screen); }
.capi-screen::after { content: ""; position: absolute; z-index: 3; left: 0; right: 0; bottom: 4.6%; width: 13%; aspect-ratio: 1; margin-inline: auto; border-radius: 50%; background: #FFFFFF; box-shadow: 0 0 0 3px var(--capi-screen), 0 0 0 5px rgba(255, 255, 255, .85); }
.capi-screen .capi-pic { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }

/* the big shot */
.capi-shot { position: relative; }
.capi-stack { position: absolute; inset: 0; isolation: isolate; }
.capi-stack .capi-pic { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* stacked pictures: one is shown (capi.js sets inline opacity when it cross-fades) */
.capi-pic { opacity: 0; }
.capi-pic.is-on { opacity: 1; }

/* thumbnails: a picture and its name under it, no box */
.capi-th { display: grid; justify-items: center; align-content: start; gap: 6px; min-width: 0; padding: 0; border: 0; background: none; color: var(--muted); text-align: center; -webkit-tap-highlight-color: transparent; }
.capi-th-pic { width: 100%; }
.capi-th-name { display: block; font: 500 12px/16px var(--f-body); white-space: nowrap; }
.capi-th[aria-pressed="true"] { color: var(--ink); }
.capi-th[aria-pressed="true"] .capi-th-name { font-weight: 650; }
.capi-th:focus-visible { outline-offset: 5px; border-radius: 12px; }

/* the arrow through the palla */
.capi-arrow { position: relative; color: var(--ink); }
.capi-palla { position: absolute; inset: 0; display: grid; place-items: center; }
.capi-palla .big-shape { width: var(--capi-palla, 96px); height: var(--capi-palla, 96px); }
.capi-draw { position: absolute; inset: 0; display: block; }
.capi-line { position: absolute; display: block; border-radius: 2px; background: currentColor; }
.capi-tip { position: absolute; width: 12px; height: 20px; }

/* ---------- foot: the fact and the link, on one line over a thin rule ---------- */
.capi-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px; margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.capi-fact { font-size: 19px; line-height: 1.4; color: var(--muted); }
.capi-fact strong { font-weight: 650; color: var(--ink); }
.capi-more { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font: 600 19px/1.3 var(--f-body); color: var(--ink); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; text-decoration-color: rgba(21, 23, 28, .28); }
.capi-more:hover { text-decoration-color: currentColor; }
.capi-more .i { width: 20px; height: 20px; transition: transform .3s var(--ease); }
.capi-more:hover .i { transform: translateX(4px); }

/* ---------- tablet and desktop: three columns ---------- */
@media (min-width: 810px) {
  .capi-stage { display: grid; grid-template-columns: auto minmax(88px, 300px) auto; justify-content: space-between; align-items: start; }

  /* before */
  .capi-col--foto { display: grid; justify-items: center; align-content: start; gap: 22px; }
  .capi-col--foto .capi-cap { left: 0; top: calc(var(--capi-phw) * 0.172); }
  .capi-strip--foto { display: grid; grid-template-columns: repeat(5, var(--capi-fw, 44px)); gap: 8px; }
  /* a phone photo as a small thumbnail: the .ph frame is only used on phones */
  .capi-strip--foto .capi-th-pic { display: block; max-width: none; padding: 0; overflow: hidden; aspect-ratio: 480 / 721; border-radius: 9px; background: #D9D9D6; box-shadow: none; }
  .capi-strip--foto .capi-th-pic::before { content: none; }
  .capi-strip--foto .capi-th-pic > img { border-radius: 0; }

  /* middle: the arrow sits at the middle of the phone */
  .capi-mid { align-self: start; padding-inline: 18px; margin-top: calc(var(--capi-phw) * 1.0208 - var(--capi-palla, 96px) / 2); }
  .capi-arrow { height: var(--capi-palla, 96px); }
  .capi-line { left: 0; right: 1px; top: 50%; height: 2px; margin-top: -1px; }
  .capi-tip { right: 0; top: 50%; margin-top: -10px; }

  /* after */
  .capi-col--scatti .capi-cap { left: 16px; top: 16px; }
  .capi-strip--scatti .capi-th-pic { border-radius: 10px; }

  /* the chosen thumbnail: a ring */
  .capi-th[aria-pressed="true"] .capi-th-pic { outline: 2px solid var(--ink); outline-offset: 3px; }
  .capi-th-pic { transition: transform .35s var(--ease); }
}
@media (min-width: 810px) and (hover: hover) {
  .capi-th[aria-pressed="false"]:hover .capi-th-pic { transform: translateY(-3px); }
}

/* tablet: the seven thumbnails go under the shot */
@media (min-width: 810px) and (max-width: 1199px) {
  .capi { --capi-sw: clamp(380px, 100vw - 2 * var(--gutter) - 362px, 450px); --capi-palla: clamp(56px, 7vw, 80px); }
  .capi-mid { padding-inline: 8px; }
  .capi-col--scatti { display: grid; gap: 14px; width: var(--capi-sw); }
  .capi-shot { width: 100%; }
  .capi-strip--scatti { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
  .capi-strip--scatti .capi-th-name { font-size: 11px; line-height: 13px; white-space: normal; }
}

/* desktop: the shot is as tall as the stage, the thumbnails stand beside it two by two */
@media (min-width: 1200px) {
  .capi {
    --capi-h: clamp(520px, min(100vh - 150px, (100vw - 2 * var(--gutter) - 500px) / 1.125), 720px);
    --capi-phw: calc((var(--capi-h) - 150px) * 0.4898);
    --capi-fw: 56px;
    --capi-tw: calc((var(--capi-h) - 124px) * 0.1875);
  }
  .capi-head { grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: 48px; }
  .capi-lead { max-width: 26em; font-size: 19px; text-wrap: balance; }
  .capi-stage { grid-template-columns: 320px minmax(120px, 1fr) auto; }
  .capi-strip--foto { gap: 10px; }
  .capi-col--scatti { display: grid; grid-template-columns: auto auto; column-gap: 24px; align-items: start; }
  .capi-shot { width: calc(var(--capi-h) * 0.75); }
  .capi-strip--scatti { display: grid; grid-template-columns: repeat(2, var(--capi-tw)); gap: 12px; align-content: start; }
  .capi-strip--scatti .capi-th-name { font-size: 13px; }
}

/* ---------- phone: two scroll-snap strips of full pictures ---------- */
@media (max-width: 809px) {
  .capi-ph, .capi-shot { display: none; }
  .capi-cap { position: static; margin-bottom: 14px; }
  .capi-strip { position: relative; display: flex; align-items: flex-start; gap: 12px; margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 6px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .capi-strip::-webkit-scrollbar { display: none; }
  .capi-th { flex: none; gap: 10px; scroll-snap-align: start; }
  .capi-th-name { font-size: 14px; line-height: 18px; }
  .capi-th:focus-visible { outline-offset: 2px; }

  /* phone photos: each one inside its phone */
  .capi-strip--foto .capi-th { width: clamp(140px, 40vw, 180px); }
  .capi-strip--foto .capi-th-pic { width: 100%; padding: 6px; border-radius: 24px; box-shadow: 0 14px 22px -16px rgba(21, 23, 28, .5); }
  .capi-strip--foto .capi-th-pic::before { top: 12px; height: 8px; }
  .capi-strip--foto .capi-th-pic > img { object-fit: contain; border-radius: 18px; background: var(--capi-screen); }

  /* shots: 78vw each */
  .capi-strip--scatti .capi-th { width: 78vw; }

  /* the arrow points down */
  .capi-mid { margin: 26px 0 30px; }
  .capi-arrow { --capi-palla: 72px; width: 72px; height: 116px; margin-inline: auto; }
  .capi-line { top: 0; bottom: 1px; left: 50%; width: 2px; margin-left: -1px; }
  .capi-tip { left: 50%; bottom: -4px; margin-left: -6px; transform: rotate(90deg); }

  .capi-foot { display: grid; justify-content: stretch; gap: 4px; margin-top: 32px; }
  .capi-lead, .capi-fact, .capi-more { font-size: 17px; }
}
@media (min-width: 1400px) { .capi-lead { max-width: 30em; } }

/* assets/css/numeri.css */
/* numeri.css — owner: V4 (04/12/2026, brief v11). Section #numeri: four giant numbers set on the page.
   No cards: the text sits on the page background and the four numbers are divided only by thin rule lines
   (.num-rule: one across the top of every number, one floating between the two columns).
   Each number = .num-mark (its brand shape, 40 px) · .num-row (.num-fig, the giant figure in its mask, and
   .num-sign, the small drawing or the two real pictures beside it) · .num-cap · .num-date.
   Two columns from 810 px, one column on phones. numeri.js adds the entrance; without it this is the page.
   .num-pill is NOT ours: it belongs to base.css. */

.num {
  --num-fs: clamp(64px, 9vw, 148px);        /* the giant figure */
  --num-sign: clamp(84px, 11.5vw, 140px);   /* the drawing beside it (square box) */
  --num-col: 48px;                          /* air between the middle rule and the text */
  --num-line: rgba(21, 23, 28, .16);
}

.num-title {
  max-width: 18ch; margin: 0 auto var(--head-gap); text-align: center;
  font-size: clamp(34px, 4.4vw, 64px); line-height: 1.05; letter-spacing: -0.03em;
}

/* ---------- the grid and its rule lines ---------- */
.num-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.num-item {
  position: relative; min-width: 0;
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 36px var(--num-col) 68px 0;
}
.num-item:nth-child(even) { padding-left: var(--num-col); padding-right: 0; }
.num-item:nth-last-child(-n+2) { padding-bottom: 8px; }

.num-rule { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--num-line); transform-origin: 0 50%; }
.num-rule--v { right: auto; top: 36px; bottom: 68px; width: 1px; height: auto; transform-origin: 50% 0; }
.num-item:nth-last-child(-n+2) .num-rule--v { bottom: 8px; }

/* ---------- one number ---------- */
.num-mark { flex: none; width: 40px; height: 40px; margin-bottom: 24px; }
.num-item--online .num-mark { width: 35px; }   /* the triangolo is 29 : 33.25, its edge sits on the text edge */

.num-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; min-height: var(--num-sign); }

/* the mask the figure rises from: the padding keeps the tight letter-spacing from clipping the last glyph;
   the negative margin takes back the first digit's side bearing (--num-lsb), so the ink starts on the text edge */
.num-fig {
  flex: none; overflow: hidden; margin-left: calc(-.02em - var(--num-lsb, .044em)); padding: .03em .05em .03em .02em;
  font: 700 var(--num-fs)/1 var(--f-display); letter-spacing: -0.035em; white-space: nowrap;
  color: var(--ink); font-variant-numeric: tabular-nums;
}
.num-val { display: inline-block; }
.num-item--ordini { --num-lsb: .033em; }
.num-item--online { --num-lsb: .047em; }
.num-item--ordini .num-val { word-spacing: -.08em; }
.num-item--tempo .num-val { word-spacing: -.15em; }
.num-unit { font-size: .36em; letter-spacing: -0.01em; margin-right: .32em; }
.num-unit:last-child { margin-right: 0; }

.num-cap { margin-top: 24px; max-width: 34ch; font-size: 20px; line-height: 1.35; color: var(--ink-2); text-wrap: balance; }
.num-date { margin-top: 10px; font-size: 14px; line-height: 1.3; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- the drawing beside the number: the brand shape with a white sign on it ---------- */
.num-sign { position: relative; flex: none; width: var(--num-sign); height: var(--num-sign); }
.num-sign-shape, .num-ink { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.num-ink { overflow: visible; }
/* the order sheet rises inside the scatola: the drawing is cut on the shape's own corners (7 / 27 of the side) */
.num-sign--foglio .num-ink { clip-path: inset(0 round 25.9%); }
.num-ink-paper, .num-ink-face { fill: var(--white); }
.num-ink-fold { fill: var(--cielo-soft); }
.num-ink-line { fill: none; stroke: var(--cielo); stroke-width: 6; stroke-linecap: round; }
.num-ink-tick { fill: none; stroke: var(--sole); stroke-width: 4; stroke-linecap: round; }
.num-ink-hand { fill: none; stroke: var(--inchiostro); stroke-width: 6; stroke-linecap: round; }
.num-ink-hand--sec { stroke-width: 4.5; }
.num-ink-hub { fill: var(--inchiostro); }
.num-ink-check { fill: none; stroke: var(--white); stroke-width: 10; stroke-linecap: round; stroke-linejoin: round; }

/* the triangolo keeps its own width, so its right corner sits on the column edge; the check stays centred on it */
.num-sign--spunta { width: calc(var(--num-sign) * .872); }
.num-sign--spunta .num-ink { left: 50%; width: var(--num-sign); margin-left: calc(var(--num-sign) / -2); }

/* «5 → 7»: the real phone photo and the real shot, small, in front of the palla */
.num-sign--foto { width: calc(var(--num-sign) * 1.5); }
.num-sign--foto .num-sign-shape { left: 50%; width: var(--num-sign); margin-left: calc(var(--num-sign) / -2); }
.num-ph {
  --ph-w: calc(var(--num-sign) * .46);
  position: absolute; left: 0; top: calc(var(--num-sign) * .03); rotate: -6deg;
  padding: calc(var(--ph-w) * .05); border-radius: calc(var(--ph-w) * .19);
  box-shadow: 0 12px 20px -12px rgba(21, 23, 28, .5);
}
.num-ph > img { border-radius: calc(var(--ph-w) * .14); }
.num-ph::before { top: calc(var(--ph-w) * .09); height: calc(var(--ph-w) * .05); }
.num-shot {
  position: absolute; right: 0; top: calc(var(--num-sign) * .06); width: calc(var(--num-sign) * .66); rotate: 3deg;
  border-radius: calc(var(--num-sign) * .075); box-shadow: 0 12px 20px -14px rgba(21, 23, 28, .45);
}

/* nothing flashes before numeri.js has set the entrance (motion.js adds .motion-ready after the section scripts) */
html.motion:not(.motion-failsafe):not(.motion-ready) .num-grid { visibility: hidden; }

/* ---------- tablet ---------- */
@media (max-width: 1199px) {
  .num { --num-col: 32px; }
  .num-item { padding-top: 32px; padding-bottom: 56px; }
  .num-rule--v { top: 32px; bottom: 56px; }
  .num-row { gap: 16px; }
  .num-cap { font-size: 18px; }
}

/* ---------- phone: one column ---------- */
@media (max-width: 809px) {
  .num { --num-sign: clamp(72px, 26vw, 132px); --num-col: 0px; }
  .num-grid { grid-template-columns: minmax(0, 1fr); }
  .num-item, .num-item:nth-last-child(-n+2) { padding-top: 28px; padding-bottom: 44px; }
  .num-item:last-child { padding-bottom: 0; }
  .num-rule--v { display: none; }
  .num-mark { width: 32px; height: 32px; margin-bottom: 16px; }
  .num-item--online .num-mark { width: 28px; }
  .num-cap { margin-top: 18px; max-width: 32ch; font-size: 17px; }
  .num-date { margin-top: 8px; }
}
@media (max-width: 349px) { .num { --num-sign: 64px; } }

/* assets/css/domande.css */
/* domande.css — owner: V5 (v11, 04/12/2026). #domande: four questions on rule lines, no heading, no boxes.
   Two columns from 810 px (rows stay aligned: 1|2, 3|4), one column on phones. The sign of each question is a
   brand shape holding a plus that turns when the answer is open.
   Without JS (.faq-list has no data-faq="on") every answer shows and the signs are hidden.
   The list keeps the height of its tallest state (set by domande.js), so nothing under it ever moves: an answer
   opens with a clip-path and the rows below follow with a transform. */

.faq-list {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(40px, 5.6vw, 88px);
  align-items: start; align-content: start;
}
.faq-item { position: relative; }
.faq-rule { display: block; height: 1px; background: var(--ink); opacity: .16; transform-origin: 0 50%; }
.faq-in { position: relative; }

.faq-q { margin: 0; font: inherit; letter-spacing: 0; }
.faq-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  width: 100%; min-height: 96px; padding: 20px 0; border: 0; background: none;
  text-align: left; color: var(--ink); cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.faq-q-text {
  font: 650 clamp(20px, 1.75vw, 26px)/1.2 var(--f-display); letter-spacing: -0.015em; text-wrap: balance;
}
.faq-btn:focus-visible { outline-offset: -2px; border-radius: var(--r-sm); }

/* the sign: shape + plus (both absolute, so the plus always paints over the shape, turned or not) */
.faq-ico { position: relative; flex: none; width: 52px; height: 52px; }
.faq-shape { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform .5s var(--ease); }
.faq-plus { position: absolute; inset: 0; margin: auto; width: 20px; height: 20px; color: var(--inchiostro); transition: transform .5s var(--ease); }
.faq-item--triangolo .faq-plus { top: 13px; width: 17px; height: 17px; } /* the triangle's weight sits low */
.faq-btn[aria-expanded="true"] .faq-plus { transform: rotate(135deg); }
.faq-btn[aria-expanded="true"] .faq-shape { transform: rotate(-8deg); }
@media (hover: hover) and (pointer: fine) {
  .faq-btn:hover .faq-shape { transform: scale(1.1) rotate(-8deg); }
  .faq-btn[aria-expanded="true"]:hover .faq-shape { transform: scale(1.1) rotate(0deg); }
}

/* the answer */
.faq-panel { padding: 0 76px 30px 0; }
.faq-a { max-width: 30em; font-size: clamp(17px, 1.3vw, 19px); line-height: 1.5; color: var(--muted); text-wrap: pretty; }
/* a closing answer leaves the flow at once and folds away under its question (domande.js) */
.faq-panel.is-leaving { position: absolute; top: 100%; left: 0; right: 0; pointer-events: none; }

/* no JS: plain questions and answers */
.faq-list:not([data-faq="on"]) .faq-ico { display: none; }
.faq-list:not([data-faq="on"]) .faq-btn { cursor: default; }

@media (max-width: 809px) {
  .faq-list { grid-template-columns: minmax(0, 1fr); }
  .faq-btn { min-height: 80px; padding: 16px 0; gap: 16px; }
  .faq-ico { width: 44px; height: 44px; }
  .faq-plus { width: 18px; height: 18px; }
  .faq-item--triangolo .faq-plus { top: 11px; width: 15px; height: 15px; }
  .faq-panel { padding: 0 8px 24px 0; }
}

/* assets/css/prenota.css */
/* prenota.css — owner: V5 (v11, 04/12/2026). #contatti: one dark band that closes the page.
   From 1000 px: headline, paragraph, button and signature on the left (the column is as wide as the headline,
   which stays on two lines); on the right the three brand shapes, big, stacked in a zigzag and overlapping a
   little, each with its short line beside it. Under 1000 px: the copy, then the shapes in a row with the lines
   under them. No cards: the band is the only frame.
   .bk-card is only the hook assets/js/core.js looks for (.is-ping / .is-ring when a booking link scrolls here). */

.bk { padding-top: calc(var(--sec-pad) * .45); }

.bk-band {
  --bk-s: clamp(118px, 12.5vw, 184px);                 /* side of a shape */
  --bk-pad-x: clamp(48px, calc(11vw - 62px), 96px);
  --bk-pad-y: clamp(64px, 6.7vw, 96px);
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; align-items: center;
  padding: var(--bk-pad-y) var(--bk-pad-x);
  border-radius: var(--r-tray); background: var(--inchiostro); color: var(--on-inchiostro);
}
.bk-band :focus-visible { outline-color: #6CC0FF; }

/* ---------- left: the invitation ---------- */
.bk-title { font-size: clamp(40px, 5vw, 76px); line-height: 1.03; letter-spacing: -0.03em; color: var(--on-inchiostro); }
.bk-lead {
  margin-top: clamp(20px, 2vw, 30px); max-width: 32em;
  font-size: clamp(17px, 1.35vw, 20px); line-height: 1.45; color: rgba(255, 255, 255, .78); text-wrap: pretty;
}
.bk-act { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 26px; margin-top: clamp(28px, 2.8vw, 42px); }
.bk-cta { --h: 64px; gap: 16px; padding: 0 30px; font-size: 18px; font-weight: 600; }
.bk-cta:has(.btn-arrow) { padding-right: 8px; }
.bk-cta .btn-arrow { width: 48px; height: 48px; }
.bk-cta .btn-arrow svg { width: 20px; height: 20px; }
.bk-band .bk-cta:hover { background: #ECEDF0; }
.bk-sign { font-size: 15px; line-height: 1.3; color: rgba(255, 255, 255, .66); }

/* status lines of the booking button (core.js): a fixed slot, so the button never moves when one shows */
.bk-notes { margin-top: 14px; min-height: 42px; }
.bk-note { max-width: 34em; font-size: 15px; line-height: 1.4; color: rgba(255, 255, 255, .78); }
.bk-wait.is-new { animation: bk-note-in .5s var(--ease) both; }
.bk-wait-link { padding-block: 12px; color: var(--on-inchiostro); text-decoration: underline; text-underline-offset: 3px; }
@keyframes bk-note-in { from { opacity: 0; transform: translateY(8px); } }

/* a booking link elsewhere on the page has scrolled here: the button answers */
.bk-cta::after { content: ""; position: absolute; inset: 0; border: 2px solid #FFFFFF; border-radius: inherit; opacity: 0; pointer-events: none; }
.bk-card.is-ping .bk-cta::after { animation: bk-ping 1.3s var(--ease) both; }
.bk-card.is-ping .bk-draw { animation: bk-pop .7s var(--ease) both; }
.bk-card.is-ping .bk-step:nth-child(2) .bk-draw { animation-delay: .12s; }
.bk-card.is-ping .bk-step:nth-child(3) .bk-draw { animation-delay: .24s; }
.bk-card.is-ring .bk-cta { outline: 3px solid #FFFFFF; outline-offset: 5px; }
@keyframes bk-ping { from { opacity: .85; transform: scale(1); } to { opacity: 0; transform: scale(1.2, 1.65); } }
@keyframes bk-pop { 0%, 100% { transform: scale(1); } 40% { transform: scale(1.22); } }

/* ---------- right: three shapes, three lines ---------- */
.bk-steps { display: grid; }
.bk-step { display: grid; align-items: center; }
.bk-fig { position: relative; display: block; width: var(--bk-s); aspect-ratio: 1; }
.bk-step--triangolo .bk-fig { width: calc(var(--bk-s) * .94); aspect-ratio: 29 / 33.25; justify-self: center; }
/* the layers are absolute: they paint in the order of the HTML (halo, shape, drawing) and one step over the one before */
.bk-float { position: absolute; inset: 0; display: block; }
/* a slightly larger copy in the colour of the band sits behind each shape: it only shows where one shape lies
   on another, and cuts them apart */
.bk-halo, .bk-shape { position: absolute; inset: 0; width: 100%; height: 100%; }
.bk-halo { transform: scale(1.06); --cielo: var(--inchiostro); --sole: var(--inchiostro); --menta: var(--inchiostro); }
.bk-draw { position: absolute; inset: 0; margin: auto; width: 42%; height: 42%; color: var(--inchiostro); }
.bk-step--triangolo .bk-draw { top: 21%; width: 36%; height: 36%; } /* the triangle's weight sits low */
.bk-line { font: 600 clamp(20px, 1.46vw, 21px)/1.22 var(--f-display); letter-spacing: -0.01em; color: var(--on-inchiostro); text-wrap: balance; }

@media (min-width: 1000px) {
  .bk-band { grid-template-columns: auto minmax(0, 1fr); column-gap: clamp(32px, 3.9vw, 56px); }
  .bk-title { white-space: nowrap; }
  /* these three take the width of the headline and never widen the column */
  .bk-lead, .bk-act, .bk-notes { width: 0; min-width: 100%; }
  .bk-step { grid-template-columns: var(--bk-s) minmax(0, 1fr); column-gap: clamp(14px, 1.5vw, 22px); }
  .bk-step + .bk-step { margin-top: calc(var(--bk-s) * -.13); }
  .bk-step:nth-child(2) { margin-left: calc(var(--bk-s) * .2); }
  .bk-step:nth-child(3) { margin-left: calc(var(--bk-s) * .03); }
}

@media (max-width: 999px) {
  .bk-band {
    --bk-s: clamp(84px, 15.5vw, 150px);
    --bk-pad-x: clamp(18px, 6vw, 56px);
    --bk-pad-y: clamp(44px, 8vw, 72px);
    grid-template-columns: minmax(0, 1fr); row-gap: clamp(40px, 7vw, 64px);
  }
  .bk-title { text-wrap: balance; }
  .bk-notes { margin-top: 0; min-height: 0; }
  .bk-note { margin-top: 14px; }
  .bk-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(8px, 3vw, 32px); }
  /* every shape stands on the same line, whatever its height; its line starts under it */
  .bk-step { grid-template-columns: minmax(0, 1fr); grid-template-rows: calc(var(--bk-s) * 1.08) auto; row-gap: 14px; align-items: start; }
  .bk-fig { align-self: end; }
  .bk-step--triangolo .bk-fig { justify-self: start; }
  .bk-line { font-size: clamp(15px, 2.6vw, 20px); }
}

@media (max-width: 559px) {
  .bk-band { --bk-pad-x: 18px; }
  .bk-steps { column-gap: 8px; }
  .bk-cta { width: 100%; --h: 60px; justify-content: space-between; padding-left: 26px; }
  .bk-act { gap: 14px; }
}

/* assets/css/footer.css */
/* footer.css — owner: G8. Dark «inchiostro» panel as wide as the page's content (big-panel radius): brand block
   left (white logo, 26 px tall = 231 px wide; one «scatola» of clear space kept by the gaps), two link columns
   right, a bottom row with the small print, the motion switch and «Torna su». Brand tokens only. */

.ft {
  width: min(100% - 2 * var(--gutter), var(--wrap)); margin: 16px auto var(--gutter);
  border-radius: var(--r-tray);
  background: var(--inchiostro); color: var(--on-inchiostro);
}
.ft-in { display: grid; gap: 56px; padding: 56px 0 28px; }
.ft-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; }

.ft-logo { display: inline-flex; align-items: center; padding: 8px 0; text-decoration: none; }
.ft-logo-img { display: block; width: auto; height: 26px; }
.ft-logo:focus-visible { border-radius: var(--r-sm); outline-offset: 6px; }
.ft-claim { max-width: 420px; margin-top: 24px; font: 400 16px/24px var(--f-body); color: var(--on-inchiostro-muted); text-wrap: pretty; }
.ft-maker { margin-top: 16px; font: 500 16px/24px var(--f-body); color: var(--on-inchiostro); }
.ft-maker-link {
  display: inline-block; padding: 10px 0; margin: -10px 0; /* 44px tall hit area inside the line */
  color: var(--on-inchiostro); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
}
.ft-maker-link:hover { text-decoration-thickness: 2px; }
.ft-sign { margin-top: 8px; font: 500 14px/20px var(--f-body); color: var(--on-inchiostro-muted); }

.ft-cols { display: grid; grid-template-columns: repeat(2, minmax(170px, auto)); gap: 72px; }
.ft-h { margin-bottom: 20px; font: 600 16px/24px var(--f-body); color: var(--on-inchiostro); }
.ft-list { display: grid; gap: 12px; }
.ft-link {
  color: var(--on-inchiostro-muted); text-decoration: none; font: 500 15px/20px var(--f-body);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: color .25s var(--ease), background-size .35s var(--ease);
}
.ft-link:hover { color: var(--on-inchiostro); background-size: 100% 1px; }

.ft-bottom {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px;
  padding-top: 24px; border-top: 1px solid var(--line-dark);
}
.ft-small { margin-right: auto; font: 500 14px/20px var(--f-body); color: var(--on-inchiostro-muted); }
.ft-motion {
  display: inline-flex; align-items: center; gap: 10px;
  height: 40px; padding: 0 16px 0 6px; border: 0; border-radius: var(--r-pill);
  background: var(--dark-2); color: var(--on-inchiostro); box-shadow: inset 0 0 0 1px var(--line-dark);
  font: 500 14px/1 var(--f-body);
  transition: background-color .25s var(--ease);
}
.ft-motion:hover { background: var(--ink-2); }
.ft-motion:focus-visible { border-radius: var(--r-pill); }
.ft-motion-ic { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--surface); color: var(--ink); }
.ft-motion-ic svg { width: 11px; height: 11px; }
.ft-ic-play { display: none; }
.ft-motion[aria-pressed="true"] .ft-ic-play { display: block; }
.ft-motion[aria-pressed="true"] .ft-ic-pause { display: none; }
.ft-up { color: var(--on-inchiostro-muted); text-decoration: none; font: 500 14px/20px var(--f-body); }
.ft-up:hover { color: var(--on-inchiostro); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1199px) {
  .ft-in { padding-top: 48px; }
  .ft-cols { gap: 40px; }
}
@media (max-width: 809px) {
  .ft { width: calc(100% - 16px); margin: 8px auto 8px; }
  .ft-in { gap: 36px; padding: 36px 0 20px; }
  .ft-top { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .ft-logo-img { height: 20px; }
  .ft-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .ft-bottom { gap: 8px 16px; }
  .ft-small { flex-basis: 100%; }
  /* touch: every link and the switch at least 44px tall */
  .ft-logo { min-height: 44px; }
  .ft-h { margin-bottom: 4px; }
  .ft-list { gap: 0; }
  .ft-link { display: flex; align-items: center; min-height: 44px; background-image: none; }
  .ft-motion { height: 44px; padding-left: 8px; }
  .ft-up { display: inline-flex; align-items: center; min-height: 44px; }
}

