/* =========================================================
   GV Studio — la lavagna magnetica di reparto
   Smalto, griglia stampata, alluminio, cartellini a T,
   magneti, nastro da etichettatrice, pennarello blu.
   ========================================================= */

/* Font in locale (Barlow, Barlow Semi Condensed, Kalam — SIL Open Font License).
   Nessuna richiesta a Google: i visitatori non inviano il loro IP a terzi. */
/* latin-ext */
@font-face {
  font-family: 'Barlow';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/barlow-400-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Barlow';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/barlow-400-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/barlow-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/barlow-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/barlow-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/barlow-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/barlow-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/barlow-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/barlow-700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/barlow-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Barlow Semi Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/barlow-semi-condensed-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Barlow Semi Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/barlow-semi-condensed-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Barlow Semi Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/barlow-semi-condensed-700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Barlow Semi Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/barlow-semi-condensed-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Barlow Semi Condensed';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(fonts/barlow-semi-condensed-800-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Barlow Semi Condensed';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(fonts/barlow-semi-condensed-800-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Kalam';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/kalam-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Kalam';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/kalam-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Kalam';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/kalam-700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Kalam';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/kalam-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* materiali */
  --wall: #D3D8DB;
  --enamel: #F8FAF9;
  --grid: #E1E8EB;
  --alu-hi: #EEF0F2;
  --alu: #C8CDD2;
  --alu-lo: #9AA2A9;
  --tape: #1B1E22;
  --tape-text: #F4F4F0;

  /* inchiostri */
  --ink: #16191D;
  --ink-2: #3B434C;
  --muted: #59626C;
  --marker: #1E50C0;

  /* cartellini e magneti */
  --yellow: #F5D23C;
  --yellow-pale: #FBF1BF;
  --blue: #8EC3EC;
  --blue-pale: #E0EEF9;
  --scrap: #FDFDFA;
  --red: #D2352B;
  --green: #2F9D5C;

  --font: "Barlow", "Segoe UI", system-ui, sans-serif;
  --font-display: "Barlow Semi Condensed", "Barlow", "Segoe UI", system-ui, sans-serif;
  --font-hand: "Kalam", "Segoe Print", cursive;

  --fs-sm: .9375rem;
  --fs-base: 1.125rem;
  --fs-md: 1.3125rem;
  --fs-lg: 1.75rem;

  --wrap: 82rem;
  --gutter: clamp(1.1rem, 4vw, 3.5rem);
  --zone-y: clamp(4.5rem, 9vw, 8rem);
  --frame: clamp(0px, 1.1vw, 16px);

  --shadow-card: 0 1px 1px rgba(22, 25, 29, .10), 0 6px 14px -6px rgba(22, 25, 29, .28);
  --shadow-lift: 0 2px 3px rgba(22, 25, 29, .12), 0 16px 30px -12px rgba(22, 25, 29, .35);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

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

html {
  scrollbar-color: var(--alu-lo) var(--wall);
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--wall);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--marker);
}

::selection { background: var(--yellow); color: var(--ink); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--wall); }
::-webkit-scrollbar-thumb { background: var(--alu-lo); border-radius: 6px; border: 3px solid var(--wall); }

p, ul, ol, h1, h2, h3, h4, blockquote, figure, fieldset, legend { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { padding: 0; border: 0; min-width: 0; }
img, svg { display: block; max-width: 100%; }
p, li { text-wrap: pretty; }
a { color: inherit; }
b, strong { font-weight: 650; }

:focus-visible {
  outline: 3px solid var(--marker);
  outline-offset: 3px;
  border-radius: 3px;
}

.visually-hidden {
  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: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  padding: .7rem 1rem;
  background: var(--tape);
  color: var(--tape-text);
  text-decoration: none;
}
.skip:focus { top: 1rem; }

.nowrap { white-space: nowrap; }

.placeholder {
  display: inline;
  padding: .15em .5em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  border: 1px dashed currentColor;
  border-radius: 3px;
}

/* ---------- elementi del mondo ---------- */

/* nastro da etichettatrice: nomi letterali delle zone */
.tape {
  display: inline-block;
  padding: .32em .8em .3em;
  background: var(--tape);
  color: var(--tape-text);
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .015em;
  border-radius: 2px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .25);
  transform: rotate(-1deg);
}
.tape--small { font-size: .9375rem; padding: .28em .7em .26em; }

/* magnete tondo */
.magnet {
  position: absolute;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 45%), var(--m, var(--tape));
  box-shadow: 0 2px 2px rgba(0, 0, 0, .25), 0 5px 9px -3px rgba(0, 0, 0, .35);
}
.magnet--ink { --m: var(--tape); }
.magnet--red { --m: var(--red); }
.magnet--green { --m: var(--green); }

/* cartellino */
.tcard {
  position: relative;
  border-radius: 5px;
  box-shadow: var(--shadow-card);
}
.tcard--yellow { background: var(--yellow); }

/* pulsante: striscia magnetica */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: .7rem 1.4rem;
  border: 0;
  border-radius: 6px;
  background: var(--tape);
  color: var(--tape-text);
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: .01em;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .25), 0 8px 16px -8px rgba(0, 0, 0, .45);
  transition: transform .15s var(--ease-out), box-shadow .15s var(--ease-out), background-color .15s ease;
}
.button:hover { transform: translateY(-1px); box-shadow: 0 2px 3px rgba(0, 0, 0, .25), 0 12px 20px -10px rgba(0, 0, 0, .5); background: #2A2F35; }
.button:active { transform: translateY(1px); box-shadow: 0 1px 1px rgba(0, 0, 0, .3); }
.button--small { min-height: 2.5rem; padding: .4rem 1rem; font-size: 1rem; }
.button--large { min-height: 3.5rem; padding: .85rem 2rem; font-size: 1.3125rem; }

.link {
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--marker);
  text-decoration-thickness: 2px;
  text-underline-offset: .28em;
}
.link:hover { color: var(--marker); }

.ticks li {
  position: relative;
  padding-left: 1.5rem;
  margin-top: .55rem;
  max-width: 62ch;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: .1rem;
  top: .72em;
  width: .8rem;
  height: 2px;
  background: currentColor;
  opacity: .7;
}

/* ---------- binario superiore (header) ---------- */

.rail {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--alu);
  border-bottom: 1px solid var(--alu-lo);
}

.rail__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
  padding: .55rem var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  margin-right: auto;
}
.logo-slot {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1.5px dashed var(--ink-2);
  border-radius: 6px;
  color: var(--ink-2);
  font-size: .68rem;
  font-weight: 600;
}
.brand__name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -.005em;
}

.nav { display: flex; gap: 1.75rem; font-weight: 600; font-size: 1rem; }
.nav a {
  padding: .35rem 0;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.nav a:hover { border-bottom-color: var(--ink); }
.nav a[aria-current="true"] { border-bottom-color: var(--marker); color: var(--ink); }

.rail__actions { display: flex; align-items: center; gap: .6rem; }

.menu-toggle {
  display: none;
  min-height: 2.75rem;
  min-width: 4.5rem;
  padding: .4rem .8rem;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  background: var(--alu-hi);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  font-weight: 650;
  cursor: pointer;
}

@media (max-width: 860px) {
  .rail__inner { gap: .6rem; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: .25rem var(--gutter) 1rem;
    background: var(--alu);
    border-bottom: 1px solid var(--alu-lo);
    box-shadow: 0 14px 24px -16px rgba(0, 0, 0, .5);
    font-size: 1.2rem;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .8rem 0; border-bottom: 1px solid rgba(22, 25, 29, .15); }
  .nav a:last-child { border-bottom: 0; }
}

@media (max-width: 400px) {
  .brand__name { font-size: 1.12rem; }
  .logo-slot { width: 2rem; height: 2rem; }
  .button--small { padding: .4rem .75rem; }
}

/* ---------- la lavagna ---------- */

.board {
  position: relative;
  margin: 0 var(--frame) var(--frame);
  background-color: var(--enamel);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: -1px -1px;
  border: var(--frame) solid var(--alu);
  border-top: 0;
  border-radius: 0 0 14px 14px;
  box-shadow: 0 0 0 1px var(--alu-lo), 0 22px 40px -24px rgba(0, 0, 0, .5);
}

/* ---------- primo schermo ---------- */

.hero {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(1rem, 2.5vw, 2.5rem);
  row-gap: clamp(1.5rem, 3vw, 2.5rem);
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 3.5rem) var(--gutter) clamp(2.5rem, 5vw, 4rem);
}

.hero__text { grid-column: 1 / span 8; }
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 1rem + 5vw, 6rem);
  font-weight: 800;
  line-height: .96;
  letter-spacing: -.02em;
}
.hero__title span { display: block; text-wrap: balance; }
.hero__lead {
  margin-top: 1.25rem;
  max-width: 44ch;
  font-size: var(--fs-md);
  line-height: 1.45;
  color: var(--ink-2);
}

.hero__card {
  grid-column: 9 / span 4;
  align-self: start;
  margin-top: .5rem;
  padding: 2rem 1.6rem 1.6rem;
  transform: rotate(.6deg);
}
.hero__card .magnet { top: -.55rem; left: 50%; margin-left: -.75rem; }
.hero__card-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.12;
  margin-bottom: .6rem;
}
.hero__card p:not(.hero__card-title) { font-size: 1.0625rem; color: #2E2A16; }
.hero__card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-top: 1.25rem; }

/* ---------- la fascia che si riordina ---------- */

.sorter { grid-column: 1 / -1; }

.sorter__field {
  position: relative;
  container-type: size;
  aspect-ratio: 4.1 / 1;
  border-top: 2px solid rgba(22, 25, 29, .7);
  border-bottom: 2px solid rgba(22, 25, 29, .7);
}

.ghost,
.slip {
  position: absolute;
  left: 0;
  top: 0;
  width: 21cqw;
  min-height: 5.4rem;
}

.ghost {
  border: 2px dashed var(--marker);
  border-radius: 5px;
  opacity: 0;
  transform: translate(calc(var(--ax) * 1cqw), calc(var(--ay) * 1cqh));
}

.slip {
  display: grid;
  border-radius: 5px;
  background: transparent;
  box-shadow: none;
  transform: translate(calc(var(--ax) * 1cqw), calc(var(--ay) * 1cqh));
}
.slip::before {
  /* magnete: verde quando il passaggio è a posto */
  content: "";
  position: absolute;
  top: -.5rem;
  left: 50%;
  width: 1.15rem;
  height: 1.15rem;
  margin-left: -.575rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 45%), var(--green);
  box-shadow: 0 2px 2px rgba(0, 0, 0, .25), 0 4px 7px -3px rgba(0, 0, 0, .35);
}
.slip__messy,
.slip__clean { grid-area: 1 / 1; padding: .85rem 1rem .8rem; }
.slip__messy {
  align-self: center;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--ink-2);
  opacity: 0;
}
.slip__clean { display: flex; flex-direction: column; padding: 0; }
/* cartellino a T: testa piena, corpo più stretto */
.slip__clean b {
  display: block;
  padding: .75rem .9rem .6rem;
  background: var(--yellow-pale);
  border-radius: 5px 5px 0 0;
  box-shadow: var(--shadow-card);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.12;
}
.slip__clean span {
  display: block;
  margin: 0 .6rem;
  padding: .45rem .7rem .55rem;
  background: var(--scrap);
  border-radius: 0 0 5px 5px;
  box-shadow: var(--shadow-card);
  font-size: 1rem;
  color: var(--ink-2);
}

/* freccia a pennarello verso il passaggio successivo */
.c1::after, .c2::after, .c4::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  width: 4cqw;
  height: 22px;
  margin-top: -11px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 22'%3E%3Cpath d='M3 12c12-2 28-1 48-1' fill='none' stroke='%231E50C0' stroke-width='3' stroke-linecap='round'/%3E%3Cpath d='M42 3l13 8-13 8' fill='none' stroke='%231E50C0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 1;
}

.slip--extra { opacity: 0; }

.scribble {
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-hand);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--marker);
  white-space: nowrap;
  opacity: 0;
  transform: translate(calc(var(--sx) * 1cqw), calc(var(--sy) * 1cqh)) rotate(var(--sr));
}

/* posizioni: --b* prima, --a* dopo (in percentuale del campo) */
.c1, .g1 { --ax: 1.5;  --ay: 32; }
.c2, .g2 { --ax: 26.5; --ay: 32; }
.c3      { --ax: 26.5; --ay: 32; }
.c4, .g3 { --ax: 51.5; --ay: 32; }
.c5, .g4 { --ax: 76.5; --ay: 32; }
.c6      { --ax: 76.5; --ay: 32; }

.c1 { --bx: 6;  --by: 58; --br: 4deg; }
.c2 { --bx: 2;  --by: 8;  --br: -5deg; }
.c3 { --bx: 31; --by: 58; --br: -3deg; }
.c4 { --bx: 35; --by: 12; --br: 6deg; }
.c5 { --bx: 59; --by: 50; --br: -4deg; }
.c6 { --bx: 77; --by: 10; --br: 5deg; }

.s1 { --sx: 83;  --sy: 76; --sr: -4deg; }
.s2 { --sx: 60;  --sy: 30; --sr: 3deg; }
.s3 { --sx: 7;   --sy: 37; --sr: -6deg; }

.c1 { --i: 0; } .c2 { --i: 1; } .c3 { --i: 1; } .c4 { --i: 2; } .c5 { --i: 3; } .c6 { --i: 3; }

/* stato "prima": disordine */
.sorter[data-state="before"] .slip {
  background: var(--scrap);
  box-shadow: var(--shadow-card);
  transform: translate(calc(var(--bx) * 1cqw), calc(var(--by) * 1cqh)) rotate(var(--br));
}
.sorter[data-state="before"] .slip::before { background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 45%), var(--red); }
.sorter[data-state="before"] .slip__messy { opacity: 1; }
.sorter[data-state="before"] .slip__clean { opacity: 0; }
.sorter[data-state="before"] .slip--extra { opacity: 1; }
.sorter[data-state="before"] .slip::after { opacity: 0; }
.sorter[data-state="before"] .scribble { opacity: 1; }
.sorter[data-state="before"] .ghost { opacity: .45; }

@media (prefers-reduced-motion: no-preference) {
  /* verso "dopo": scritte via, cartellini al loro posto, poi le frecce */
  .scribble { transition: opacity .3s ease; }
  .ghost { transition: opacity .4s ease .9s; }
  .slip {
    transition:
      transform .95s var(--ease-out) calc(.25s + var(--i, 0) * .07s),
      background-color .3s ease calc(.6s + var(--i, 0) * .07s);
  }
  .slip::before { transition: background .2s ease calc(.95s + var(--i, 0) * .07s); }
  .slip__messy { transition: opacity .25s ease calc(.55s + var(--i, 0) * .07s); }
  .slip__clean { transition: opacity .3s ease calc(.7s + var(--i, 0) * .07s); }
  .slip--extra { transition: transform .95s var(--ease-out) calc(.25s + var(--i, 0) * .07s), opacity .3s ease .8s; }
  .slip::after { transition: opacity .35s ease 1.35s; }

  /* verso "prima": più rapido */
  .sorter[data-state="before"] .slip { transition: transform .6s var(--ease-out), background-color .2s ease; }
  .sorter[data-state="before"] .slip::before { transition: background .15s ease; }
  .sorter[data-state="before"] .slip__messy,
  .sorter[data-state="before"] .slip__clean,
  .sorter[data-state="before"] .slip::after { transition: opacity .2s ease; }
  .sorter[data-state="before"] .slip--extra { transition: transform .6s var(--ease-out), opacity .2s ease; }
  .sorter[data-state="before"] .scribble { transition: opacity .3s ease .45s; }
  .sorter[data-state="before"] .ghost { transition: opacity .3s ease .3s; }
}

.sorter__caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.25rem;
}

.switch { display: inline-flex; gap: 1.25rem; }
.switch button {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 2.75rem;
  padding: 0 .25rem 0 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.switch button::before {
  content: "";
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  border: 2px solid var(--alu-lo);
  background: transparent;
  transition: background-color .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.switch button:hover::before { border-color: var(--ink-2); }
.switch button[aria-pressed="true"]::before {
  border-color: transparent;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 45%), var(--m);
  box-shadow: 0 2px 2px rgba(0, 0, 0, .25), 0 5px 9px -3px rgba(0, 0, 0, .35);
}
.switch [data-sort="before"] { --m: var(--red); }
.switch [data-sort="after"] { --m: var(--green); }
.switch .tape { transform: rotate(-1deg); }

/* ---------- zone ---------- */

.zone {
  position: relative;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: var(--zone-y) auto 0;
  padding: clamp(3rem, 6vw, 4.5rem) var(--gutter) 0;
}
/* la riga tracciata sulla lavagna e il nastro che fa da insegna della zona */
.zone::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  height: 2px;
  background: rgba(22, 25, 29, .7);
}
.zone__tape {
  position: absolute;
  top: 0;
  left: var(--gutter);
  transform: translateY(-50%) rotate(-1deg);
}

.statement {
  max-width: 22ch;
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.05rem + 2.9vw, 3.75rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.012em;
  text-wrap: balance;
}
.statement--short { max-width: 26ch; }

.lane__label {
  display: block;
  width: 100%;
  margin-bottom: 1rem;
  padding-bottom: .45rem;
  border-bottom: 2px solid var(--ink);
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--ink);
}

.marker-note {
  font-family: var(--font-hand);
  font-size: 1.1875rem;
  line-height: 1.4;
  color: var(--marker);
}

/* ---------- il problema ---------- */

.problem__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 5rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.problem__intro p { max-width: 54ch; color: var(--ink-2); }
.problem__intro p + p { margin-top: 1rem; }

.symptoms__title {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}
.symptoms__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem clamp(1.5rem, 3vw, 2.5rem);
}
.blocked { margin-top: 1rem; }
.blocked li {
  position: relative;
  padding: .55rem 0 .55rem 2.1rem;
  border-bottom: 1px solid var(--grid);
}
.blocked li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .78rem;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 45%), var(--red);
  box-shadow: 0 2px 2px rgba(0, 0, 0, .22), 0 4px 7px -3px rgba(0, 0, 0, .3);
}
.symptoms .marker-note { margin-top: 1.5rem; max-width: 46ch; transform: rotate(-.6deg); }

/* ---------- da dove partire ---------- */

.chooser__board {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  align-items: start;
}

.option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 3.5rem;
  margin-top: .6rem;
  padding: .75rem 1rem .75rem 3.1rem;
  border-radius: 5px;
  background: var(--scrap);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: background-color .2s ease, transform .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.option:hover { transform: translateY(-1px); box-shadow: var(--shadow-lift); }
.option input {
  position: absolute;
  left: 1rem;
  top: 50%;
  width: 1.3rem;
  height: 1.3rem;
  margin: -.65rem 0 0;
  appearance: none;
  -webkit-appearance: none;
  border: 2px solid var(--muted);
  border-radius: 50%;
  background: var(--enamel);
  cursor: pointer;
}
.option input:checked {
  border-color: transparent;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 45%), var(--tape);
  box-shadow: 0 2px 2px rgba(0, 0, 0, .25), 0 4px 7px -3px rgba(0, 0, 0, .35);
  animation: snap .25s var(--ease-out);
}
.option input:focus-visible { outline: 3px solid var(--marker); outline-offset: 3px; }
.option:has(input:checked) { background: var(--yellow-pale); }
.option__text { flex: 1; font-weight: 500; }
.option__dest {
  font-family: var(--font-hand);
  font-size: 1.0625rem;
  color: var(--muted);
  white-space: nowrap;
  transition: color .15s ease;
}
.option:hover .option__dest,
.option:has(input:checked) .option__dest,
.option:has(input:focus-visible) .option__dest { color: var(--marker); }

@keyframes snap {
  0% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

.chooser__lane--answer { position: sticky; top: 6rem; }
.answer { padding: 2rem 1.75rem 1.75rem; }
.answer .magnet { top: -.55rem; left: 1.75rem; }
.answer__intro { font-size: 1.0625rem; color: #3D3714; }
.answer__service {
  margin: .15rem 0 .5rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 1.6rem + 2.4vw, 3.75rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
}
.answer__goal { font-size: var(--fs-md); line-height: 1.35; max-width: 26ch; }
.answer__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.25rem; margin-top: 1.5rem; }
.answer.is-updated { animation: settle .35s var(--ease-out); }
@keyframes settle {
  0% { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
  100% { transform: none; }
}

/* ---------- servizi: la rastrelliera dei cartellini ---------- */

.rack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3.5rem);
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  align-items: start;
}
.rack__lane--yellow { --card: var(--yellow); --card-pale: var(--yellow-pale); --card-ink: #3D3714; }
.rack__lane--blue { --card: var(--blue); --card-pale: var(--blue-pale); --card-ink: #17344D; }

.rack .lane__label { display: flex; align-items: center; gap: .6rem; }
.rack .lane__label::before {
  content: "";
  width: 1rem;
  height: 1rem;
  border-radius: 3px;
  background: var(--card);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .15);
}

.slot { margin-top: .75rem; }
.slot__head {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 2.25rem;
  column-gap: 1rem;
  align-items: center;
  padding: 1rem 1.1rem 1rem 1.25rem;
  border-radius: 5px;
  background: var(--card-pale);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  list-style: none;
  transition: background-color .2s ease, box-shadow .2s var(--ease-out), transform .2s var(--ease-out);
}
.slot__head::-webkit-details-marker { display: none; }
.slot__head:hover { background: var(--card); transform: translateY(-1px); box-shadow: var(--shadow-lift); }
.slot[open] .slot__head { background: var(--card); border-radius: 5px 5px 0 0; }
.slot__name {
  grid-column: 1;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.01em;
}
.slot__what { grid-column: 1; margin-top: .15rem; color: var(--card-ink); font-size: 1.0625rem; }
.slot__pull {
  grid-column: 2;
  grid-row: 1 / span 2;
  position: relative;
  width: 2.25rem;
  height: 2.25rem;
  border: 2px solid var(--ink);
  border-radius: 50%;
}
.slot__pull::before,
.slot__pull::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: .85rem;
  height: 2px;
  background: var(--ink);
  transform: translate(-50%, -50%);
}
.slot__pull::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .2s var(--ease-out); }
.slot[open] .slot__pull::after { transform: translate(-50%, -50%) rotate(0deg); }

/* il corpo del cartellino è più stretto della testa: la forma a T */
.slot__body {
  margin: 0 .9rem;
  padding: 1.4rem 1.4rem 1.5rem;
  background: var(--scrap);
  border-radius: 0 0 5px 5px;
  box-shadow: var(--shadow-card);
}
.slot[open] .slot__body { animation: pull .35s var(--ease-out); }
@keyframes pull {
  0% { opacity: 0; transform: translateY(-10px); }
  100% { opacity: 1; transform: none; }
}
.slot__intro { font-size: var(--fs-md); line-height: 1.4; margin-bottom: 1.1rem; }
.slot__h {
  margin-top: 1.1rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
}
.slot__body .ticks li { color: var(--ink-2); }
.slot__pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1.5rem;
}
.slot__pair p { margin-top: .3rem; color: var(--ink-2); font-size: 1.0625rem; }
.slot__cta {
  display: inline-block;
  margin-top: 1.4rem;
  font-weight: 650;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--marker);
  text-decoration-thickness: 2px;
  text-underline-offset: .28em;
}
.slot__cta:hover { color: var(--marker); }

.steps-small { counter-reset: s; margin-top: .3rem; }
.steps-small li {
  counter-increment: s;
  position: relative;
  padding: .35rem 0 .35rem 2.25rem;
  color: var(--ink-2);
}
.steps-small li b { color: var(--ink); }
.steps-small li::before {
  content: counter(s);
  position: absolute;
  left: 0;
  top: .45rem;
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--tape);
  color: var(--tape-text);
  font-size: .8125rem;
  font-weight: 700;
}

.fineprint {
  margin-top: 2rem;
  max-width: 78ch;
  font-size: var(--fs-sm);
  color: var(--muted);
}

/* ---------- come lavoriamo: stazioni fisse ---------- */

.stations {
  --gap: clamp(1.25rem, 3vw, 3rem);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.station { position: relative; }
.station:not(:last-child)::after {
  content: "";
  position: absolute;
  top: .55rem;
  left: calc(100% + .2rem);
  width: calc(var(--gap) - .4rem);
  height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 22'%3E%3Cpath d='M3 12c12-2 28-1 48-1' fill='none' stroke='%231E50C0' stroke-width='3' stroke-linecap='round'/%3E%3Cpath d='M42 3l13 8-13 8' fill='none' stroke='%231E50C0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.station__num {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .45), rgba(255, 255, 255, 0) 45%), var(--tape);
  color: var(--tape-text);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  box-shadow: 0 2px 2px rgba(0, 0, 0, .25), 0 5px 9px -3px rgba(0, 0, 0, .35);
}
.station__name {
  margin: 1rem 0 .5rem;
  padding-bottom: .4rem;
  border-bottom: 2px solid var(--ink);
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 800;
  line-height: 1.05;
}
.station p { color: var(--ink-2); max-width: 30ch; }

.method__after {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  margin-top: clamp(3.5rem, 7vw, 5.5rem);
}
.method__note { max-width: 40ch; color: var(--ink-2); padding-top: 2rem; }

.sheet {
  position: relative;
  padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3.25rem);
  background: #FFFFFF;
  border-radius: 2px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .08), 0 18px 32px -18px rgba(0, 0, 0, .4);
  transform: rotate(-.5deg);
}
.sheet__m1 { top: -.6rem; left: 1.75rem; }
.sheet__m2 { top: -.6rem; right: 1.75rem; }
.sheet__title {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 800;
  line-height: 1.1;
}
.sheet__first {
  margin-top: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 2px solid var(--ink);
  font-size: var(--fs-md);
  line-height: 1.4;
}
.sheet__first b { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; display: block; line-height: 1.1; margin-bottom: .3rem; }
.sheet__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 2rem;
  margin-top: 1.25rem;
}
.sheet__list li { color: var(--ink-2); }
.sheet__list b { display: block; color: var(--ink); font-family: var(--font-display); font-size: 1.1875rem; font-weight: 700; margin-bottom: .2rem; }

/* ---------- chi siamo ---------- */

.team__lead { margin-top: 1.25rem; max-width: 62ch; font-size: var(--fs-md); color: var(--ink-2); line-height: 1.45; }
.team__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 5rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.person { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.person__photo {
  display: grid;
  place-items: center;
  width: 7.5rem;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 4px;
  background: var(--alu);
  color: var(--ink-2);
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 800;
  box-shadow: var(--shadow-card);
}
.person__name {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.05;
}
.person__role { margin: .35rem 0 1rem; font-weight: 600; color: var(--muted); }
.person__body > p:not(.person__role) { color: var(--ink-2); max-width: 58ch; }
.person__body .ticks { margin-top: .75rem; }
.person__body .ticks li { color: var(--ink-2); }
.person__quote {
  margin-top: 1.4rem;
  max-width: 34ch;
  font-family: var(--font-hand);
  font-size: 1.3125rem;
  line-height: 1.35;
  color: var(--marker);
  transform: rotate(-.8deg);
}

/* ---------- contatti ---------- */

.contact { padding-bottom: clamp(4rem, 8vw, 6.5rem); }
.contact__card {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(1.75rem, 5vw, 5rem);
  padding: clamp(2.25rem, 5vw, 4rem) clamp(1.5rem, 5vw, 4rem);
  transform: rotate(-.3deg);
}
.contact__m1 { top: -.6rem; left: 2.5rem; }
.contact__m2 { top: -.6rem; right: 2.5rem; }
.contact__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 1.2rem + 3.6vw, 4.5rem);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.02em;
  margin-bottom: 1.25rem;
  text-wrap: balance;
}
.contact__main p:not(.contact__title) { max-width: 44ch; font-size: var(--fs-md); line-height: 1.45; color: #2E2A16; }
.contact__hint { font-weight: 650; }
.contact__list { margin: .5rem 0 1.5rem; }
.contact__list li { position: relative; padding: .3rem 0 .3rem 1.5rem; color: #2E2A16; }
.contact__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .95rem;
  width: .8rem;
  height: 2px;
  background: var(--ink);
}
.contact__address { margin-top: 1.25rem; font-size: var(--fs-sm); color: #2E2A16; }
.address { font-weight: 650; border-bottom: 1px dashed currentColor; }
.copy {
  min-height: 2.75rem;
  margin-top: .6rem;
  padding: .35rem .95rem;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.copy:hover { background: rgba(255, 255, 255, .45); }
.copy__status { margin-left: .75rem; font-weight: 600; }

/* bordo inferiore della lavagna */
.tray {
  height: 1.25rem;
  margin: 0 calc(-1 * var(--frame)) calc(-1 * var(--frame));
  background: var(--alu);
  border-top: 1px solid var(--alu-lo);
  border-radius: 0 0 14px 14px;
}

/* ---------- piè di pagina (sul muro) ---------- */

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 2rem;
  justify-content: space-between;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 1.75rem var(--gutter) 2.25rem;
  font-size: var(--fs-sm);
  color: var(--ink-2);
}

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
  .hero__text { grid-column: 1 / -1; }
  .hero__card { grid-column: 1 / span 7; transform: rotate(.4deg); }
  .method__after { grid-template-columns: 1fr; }
  .method__note { padding-top: 0; }
}

@media (max-width: 960px) {
  .problem__grid,
  .chooser__board,
  .rack,
  .team__grid,
  .contact__card { grid-template-columns: 1fr; }
  .chooser__lane--answer { position: static; }
  .stations { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.5rem; }
  .station:nth-child(2)::after { display: none; }

  /* la fascia diventa verticale */
  .sorter__field { aspect-ratio: .64 / 1; max-width: 30rem; margin: 0 auto; }
  .ghost, .slip { width: 78cqw; min-height: 0; }
  .ghost { height: 16cqh; }
  .c1, .g1 { --ax: 11; --ay: 3; }
  .c2, .g2, .c3 { --ax: 11; --ay: 27; }
  .c4, .g3 { --ax: 11; --ay: 51; }
  .c5, .g4, .c6 { --ax: 11; --ay: 75; }
  .slip::before { left: 1.25rem; margin-left: 0; }
  .c2 { --bx: 2;  --by: 3;  --br: -5deg; }
  .c4 { --bx: 20; --by: 16; --br: 5deg; }
  .c5 { --bx: 3;  --by: 33; --br: -3deg; }
  .c1 { --bx: 21; --by: 49; --br: 4deg; }
  .c3 { --bx: 0;  --by: 63; --br: -4deg; }
  .c6 { --bx: 19; --by: 78; --br: 3deg; }
  .scribble { display: none; }
  .c1::after, .c2::after, .c4::after {
    left: 50%;
    top: 100%;
    width: 22px;
    height: 5.5cqh;
    margin: .35rem 0 0 -11px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 40'%3E%3Cpath d='M11 3c-1 10 0 20 0 28' fill='none' stroke='%231E50C0' stroke-width='3' stroke-linecap='round'/%3E%3Cpath d='M3 24l8 13 8-13' fill='none' stroke='%231E50C0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  }
  .slip__clean b { font-size: 1.1875rem; }
}

@media (max-width: 720px) {
  .hero__card { grid-column: 1 / -1; transform: none; }
  .contact__title { font-size: 2.25rem; text-wrap: wrap; }
  .symptoms__cols,
  .slot__pair,
  .sheet__list { grid-template-columns: 1fr; }
  .stations { grid-template-columns: 1fr; }
  .station:not(:last-child)::after { display: none; }
  .person { grid-template-columns: 1fr; }
  .person__photo { width: 6rem; }
  .sorter__caption { flex-direction: column; align-items: flex-start; }
  .slot__name { font-size: 1.5rem; }
  .option { padding-right: .85rem; flex-wrap: wrap; gap: .1rem .75rem; }
  .option__dest { flex-basis: 100%; }
}

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

/* ---------- informativa privacy ---------- */

.legal {
  max-width: calc(52rem + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 4rem) var(--gutter) clamp(4rem, 8vw, 6rem);
}
.legal__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 1.2rem + 3vw, 3.75rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.015em;
  margin-top: 1.25rem;
}
.legal__lead { margin-top: 1rem; max-width: 58ch; font-size: var(--fs-md); line-height: 1.45; color: var(--ink-2); }
.legal .sheet { margin-top: clamp(2.5rem, 5vw, 3.5rem); transform: rotate(-.25deg); }
.legal__section + .legal__section { margin-top: 2rem; padding-top: 1.75rem; border-top: 1px solid var(--grid); }
.legal__section h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.1;
}
.legal__section p, .legal__section ul { margin-top: .75rem; max-width: 68ch; color: var(--ink-2); }
.legal__section ul { padding-left: 1.2rem; list-style: disc; }
.legal__section li + li { margin-top: .35rem; }
.legal__section b { color: var(--ink); }
.legal__section a { color: var(--marker); }
.legal__updated { margin-top: 2rem; font-size: var(--fs-sm); color: var(--muted); }
