/* =========================================================================
   Samedi Design Studio
   Bianco e nero, un solo accento verde acido. Ogni sezione è un "capitolo"
   a tutto campo; l'unico materiale non piatto è il vetro liquido.
   ========================================================================= */

/* Epilogue servito dal sito stesso: arriva subito, senza passare da Google */
@font-face { font-family: 'Epilogue'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(../fonts/Epilogue-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Epilogue'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(../fonts/Epilogue-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 {
  --paper: #ffffff;
  --ink: #0a0a0a;
  --acid: #c8ff1a;
  --acid-deep: #a9db00;
  --tone: #f0f0f0;          /* un passo dal bianco */
  --tone-2: #e2e2e2;
  --night: #1c1c1c;         /* un passo dal nero */
  --night-2: #2a2a2a;
  --soft-dark: #9b9b9b;     /* testo secondario su nero (contrasto 7:1) */
  --soft-light: #595959;    /* testo secondario su bianco (contrasto 7:1) */

  --step-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.375rem, 1.1rem + 0.9vw, 1.875rem);
  --step-sub: clamp(2.5rem, 1.4rem + 3vw, 4.25rem);
  --step-head: clamp(2.75rem, 1.2rem + 5.4vw, 6rem);
  --step-poster: clamp(4rem, 13vw, 14rem);
  --step-display: clamp(5.25rem, 19vw, 22rem);

  --m: clamp(16px, 2.6vw, 40px);       /* l'unica coppia di margini */
  --gap: 16px;
  --round: 999px;                       /* l'unico raggio dei controlli */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Epilogue", system-ui, sans-serif;
  font-size: var(--step-body);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
::selection { background: var(--acid); color: var(--ink); }
:focus-visible { outline: 3px solid var(--acid); outline-offset: 3px; }
.field--paper :focus-visible, .faq :focus-visible, .foot :focus-visible { outline-color: var(--ink); }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* --- campi colore ------------------------------------------------------ */
.field { position: relative; }
.field--black { background: var(--ink); color: var(--paper); }
.field--paper { background: var(--paper); color: var(--ink); }
.field--acid { background: var(--acid); color: var(--ink); }

/* --- tipografia --------------------------------------------------------- */
.h-sub {
  font-size: var(--step-sub);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.04em;
}
.h-head, .h-big {
  font-size: var(--step-head);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.04em;
}
.mask { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.mask > span { display: block; }

/* --- pulsanti ----------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px;
  border-radius: var(--round);
  font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: transform 0.35s var(--ease-spring), background-color 0.2s;
  will-change: transform;
}
.btn--small { min-height: 44px; padding: 0 20px; font-size: var(--step-small); }
.btn--acid { background: var(--acid); color: var(--ink); }
.btn--acid:hover { background: var(--paper); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--acid); color: var(--ink); }
.btn:active { transform: scale(0.95); }

/* --- navigazione -------------------------------------------------------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 32px;
  padding: 20px var(--m);
  font-size: var(--step-small);
  color: var(--paper);
  transition: color 0.3s, background-color 0.3s;
  pointer-events: none;
}
.nav > * { pointer-events: auto; }
.nav.is-solid { background: var(--ink); }
.nav__mark { margin-right: auto; display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav__logo { display: block; height: 30px; width: auto; overflow: visible; }
.logo-dot { fill: var(--acid); transform-box: fill-box; transform-origin: center; }
.nav.is-light .nav__logo .logo-dot { stroke: var(--ink); stroke-width: 6px; }
.nav.is-acid .nav__logo .logo-dot { fill: var(--ink); }
.nav__mark:hover .logo-dot { animation: hop 0.6s var(--ease-out); }
@keyframes hop { 40% { transform: translateY(-45%) scale(0.92, 1.08); } 70% { transform: translateY(0) scale(1.12, 0.88); } }
.nav__links { display: flex; gap: 28px; }
.nav__links a { text-decoration: none; position: relative; padding: 10px 0; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav.is-light { color: var(--ink); }
.nav.is-acid { color: var(--ink); }
.nav.is-acid .btn--acid, .nav.is-light .btn--acid { background: var(--ink); color: var(--paper); }
.nav.is-acid .btn--acid:hover, .nav.is-light .btn--acid:hover { background: var(--acid); color: var(--ink); }

/* =========================================================================
   HERO
   ========================================================================= */
.hero {
  min-height: 100svh;
  overflow: hidden;
  touch-action: pan-y;
  cursor: crosshair;
}
.hero__name {
  position: absolute; left: var(--m); top: 14svh;
  font-size: var(--step-display);
  font-weight: 900;
  line-height: 0.82;
  letter-spacing: -0.04em;
  white-space: nowrap;
  user-select: none;
}
.hero__line { display: block; overflow: hidden; padding: 0.04em 0 0.05em; }
.hero__inner { display: block; }
.hero__line--paper { color: var(--paper); }
.hero__line--acid { color: var(--acid); }
.hero__name .l { display: inline-block; font-weight: 900; }

.hero__side {
  position: absolute; right: var(--m); bottom: 40px;
  width: min(30ch, 38vw);
  display: grid; gap: 20px; justify-items: start; text-align: left;
}
.hero__clock { font-size: var(--step-small); color: var(--soft-dark); }
.hero__lead { font-size: var(--step-lead); font-weight: 500; line-height: 1.3; letter-spacing: -0.02em; text-wrap: pretty; }
.hint--touch { display: none; }
@media (hover: none) { .hint--pointer { display: none; } .hint--touch { display: inline; } }

/* --- la lente di vetro liquido ---------------------------------------- */
.lens {
  --size: clamp(140px, 15vw, 230px);
  position: absolute; left: 0; top: 0; z-index: 3;
  width: var(--size); height: var(--size);
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
  /* versione di riserva (Safari, Firefox): vetro smerigliato */
  -webkit-backdrop-filter: blur(3px) brightness(1.15) saturate(1.4); /* taste-skill-ignore: vetro liquido richiesto dal cliente; il toast è un overlay */
  backdrop-filter: blur(3px) brightness(1.15) saturate(1.4); /* taste-skill-ignore: vetro liquido richiesto dal cliente; il toast è un overlay */
  box-shadow: /* taste-skill-ignore: vetro liquido richiesto dal cliente; il toast è un overlay */
    inset 0 0 0 1px rgba(255, 255, 255, 0.32),
    inset 10px 14px 22px rgba(255, 255, 255, 0.16),
    inset -12px -16px 26px rgba(0, 0, 0, 0.5),
    0 24px 50px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.6s;
}
.lens.is-ready { opacity: 1; }
.lens { background-color: rgb(200 255 26 / var(--rest, 0)); }
.lens__shine { opacity: calc(1 - var(--rest, 0)); }
.lens.is-svg {
  -webkit-backdrop-filter: none; /* taste-skill-ignore: vetro liquido richiesto dal cliente; il toast è un overlay */
  backdrop-filter: url(#glass-hero) brightness(1.06) saturate(1.3); /* taste-skill-ignore: vetro liquido richiesto dal cliente; il toast è un overlay */
}
.lens__shine {
  position: absolute; inset: 7% 18% auto 14%; height: 26%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 70%); /* taste-skill-ignore: vetro liquido richiesto dal cliente; il toast è un overlay */
  filter: blur(1px);
}

/* =========================================================================
   TICKER
   ========================================================================= */
.ticker { overflow: hidden; padding: 3.2vw 0 2.4vw; }
.ticker__track { display: flex; width: max-content; will-change: transform; }
.ticker__row {
  display: flex; align-items: center; gap: 0.32em; padding-right: 0.32em;
  font-size: var(--step-poster);
  font-weight: 900; line-height: 1; letter-spacing: -0.045em; white-space: nowrap;
}
.ticker__dot {
  display: inline-block; width: 0.22em; height: 0.22em; border-radius: 50%;
  background: var(--ink); transform: translateY(-0.04em);
}

/* =========================================================================
   WORK
   ========================================================================= */
/* un lavoro alla volta: schede grandi che si impilano; nella finestra il sito vero */
.work { padding: 150px var(--m) 140px; }
.work__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 40px; align-items: end; margin-bottom: 56px; }
.work__lead { max-width: 38ch; color: var(--soft-dark); justify-self: end; }
.cases { display: grid; gap: 28px; margin: 0; padding: 0; list-style: none; }
.case { position: sticky; top: calc(84px + var(--i) * 14px); }
.case__card {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px;
  height: min(78svh, 760px); min-height: 520px; padding: 32px; border-radius: 26px;
  background: var(--bg); color: var(--fg);
  box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.08), 0 -30px 60px -30px rgba(0, 0, 0, 0.6);
  transform-origin: 50% 0; transform: scale(var(--shrink, 1)); transition: transform 0.2s linear;
  position: relative;
}
/* la scheda coperta si scurisce: i pezzi tagliati non si leggono più */
.case__card::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: #0a0a0a; opacity: var(--dim, 0); pointer-events: none; transition: opacity 0.2s linear; }
.case__info { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.case__txt { display: grid; gap: 14px; }
.case__kind { font-weight: 700; }
.case__name { font-size: clamp(2.6rem, 1.4rem + 3.6vw, 5.25rem); font-weight: 900; line-height: 0.92; letter-spacing: -0.04em; text-wrap: balance; }
.case__meta { font-size: var(--step-lead); font-weight: 500; line-height: 1.25; letter-spacing: -0.02em; }
.case__made { max-width: 30ch; opacity: 0.78; }
.case__go {
  align-self: flex-start; margin-top: auto; display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: var(--round);
  background: var(--acid); color: var(--ink); font-weight: 700; text-decoration: none; box-shadow: 0 0 0 1.5px var(--ink); transition: background-color 0.3s, color 0.3s;
}
.case__go svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform 0.4s var(--ease-out); }
.case__go:hover { background: var(--ink); color: var(--acid); }
.case__go:hover svg { transform: translate(3px, -3px); }
.case__frame { position: relative; display: grid; grid-template-rows: auto 1fr; min-height: 0; overflow: hidden; border-radius: 16px; background: #fff; text-decoration: none; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 24px 50px -28px rgba(0, 0, 0, 0.45); cursor: pointer; }
.case__bar { display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; background: #f1f1ef; border-bottom: 1px solid #e3e3e0; }
.case__bar i { width: 11px; height: 11px; border-radius: 50%; background: #d9d9d5; }
.case__url { margin: 0 auto; padding: 4px 16px; border-radius: var(--round); background: #fff; font-size: 0.8125rem; color: #595959; }
.case__view { position: relative; overflow: hidden; }
.case__shot { position: absolute; left: 0; top: 0; width: 100%; height: auto; max-width: none; transform: translate3d(0, var(--y, 0px), 0); transition: transform 0.9s var(--ease-out); }
.case__cursor {
  position: absolute; left: 0; top: 0; z-index: 3; display: inline-flex; align-items: center; gap: 4px; padding: 7px 12px 7px 14px; border-radius: var(--round);
  background: var(--acid); color: var(--ink); font-size: 0.8125rem; font-weight: 700; pointer-events: none;
  translate: calc(var(--cx, -200px) + 14px) calc(var(--cy, -200px) + 14px); scale: 0; transform-origin: 0 0; transition: scale 0.35s var(--ease-spring);
}
.case__cursor svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.case__frame.is-pointing .case__cursor { scale: 1; }
.case__frame:focus-visible { outline: 3px solid var(--acid); outline-offset: 4px; }

/* il resto dello studio, più piccolo */
.more { padding: 140px var(--m) 160px; }
.work__more { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px var(--gap); }
.work__more-head { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px var(--gap); align-items: start; }
.tile--still { cursor: default; }
.work__more .tile--still .tile__logo { top: 50%; width: 70%; }
.plans__draft { max-width: 40ch; margin-top: 20px; font-size: var(--step-body); color: var(--soft-light); }
.work__note { max-width: 40ch; color: var(--soft-light); }
.more__title { font-size: var(--step-lead); font-weight: 800; letter-spacing: -0.03em; }
.work__more .tile__media { aspect-ratio: 5 / 4; border-radius: 14px; }
.work__more .tile__logo { top: 26%; width: 62%; }

.tile { display: grid; gap: 14px; text-decoration: none; perspective: 900px; }
.tile__media {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 4 / 5; background: var(--brand);
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease-out);
  will-change: transform;
}
.tile--wide .tile__media { aspect-ratio: 3 / 2; }
.tile__logo {
  position: absolute; left: 50%; top: 23%; width: 70%; height: auto;
  translate: -50% -50%;
  transition: transform 0.7s var(--ease-out);
}
.tile--wide .tile__logo { top: 25%; width: 48%; }
.tile--e .tile__logo { width: 22%; top: 24%; }
.tile--c .tile__logo { width: 76%; }
.tile--a .tile__logo { width: 42%; }
.tile__logo--soon {
  width: auto; white-space: nowrap; color: var(--paper);
  font-size: var(--step-lead); font-weight: 900; letter-spacing: -0.03em;
}
.site {
  position: absolute; left: 9%; right: 9%; top: 44%; bottom: -24%;
  display: flex; flex-direction: column; gap: 10px;
  padding: 14px 16px;
  border-radius: 14px 14px 0 0;
  background: var(--site); color: var(--brand-ink);
  font-size: 13px; line-height: 1.3;
  transition: transform 0.7s var(--ease-out);
}
.tile:hover .site, .tile:focus-visible .site { transform: translateY(-16%); }
.tile:hover .tile__logo, .tile:focus-visible .tile__logo { transform: translateY(-14%) scale(0.94); }
.site__bar { display: flex; align-items: center; gap: 12px; }
.site__bar img { height: 20px; width: auto; }
.site__word { font-weight: 900; letter-spacing: -0.02em; }
.site__nav { display: flex; gap: 12px; margin-left: auto; }
.site__btn { padding: 4px 12px; border-radius: var(--round); background: var(--brand-acc); color: var(--site); }
.site__head { width: 80%; height: auto; margin: 8px 0 4px; }
.site__headtext { font-size: 28px; font-weight: 900; letter-spacing: -0.03em; line-height: 1; margin: 8px 0 4px; }
.w-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.w-chips span { padding: 5px 10px; border-radius: var(--round); background: color-mix(in srgb, var(--brand-ink) 9%, transparent); }
.w-chips .on { background: var(--brand-acc); color: var(--site); }
.w-row { display: flex; justify-content: space-between; gap: 8px; padding: 7px 10px; border-radius: 8px; background: color-mix(in srgb, var(--brand-ink) 7%, transparent); }
.w-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; }
.w-cal span { padding: 3px 0; border-radius: 6px; }
.w-cal .on { background: var(--brand-acc); color: var(--site); }
.w-cal .off { opacity: 0.72; text-decoration: line-through; }
.tile:not(.tile--wide) .site__nav { display: none; }
@media (max-width: 1080px) { .site__nav { display: none; } .site { left: 7%; right: 7%; } }
.tile__cap { display: grid; gap: 2px; }
.tile__name { font-weight: 500; }
.tile__meta, .tile__feat { font-size: var(--step-small); color: var(--soft-light); }
.tile__feat { margin-top: -10px; }

/* =========================================================================
   TRY IT
   ========================================================================= */
.try { min-height: 100svh; overflow: hidden; }
.try__stage {
  position: absolute; left: 58%; top: 50%;
  width: min(68vh, 760px); aspect-ratio: 1;
  transform: translate(-50%, -50%);
}
.blob { width: 100%; height: 100%; overflow: visible; }

.phone {
  --pw: min(25vh, 250px);
  position: absolute; left: 58%; top: 50%; z-index: 2;
  width: var(--pw); height: calc(var(--pw) * 2.05);
  translate: -50% -50%;
  padding: 12px;
  border-radius: 48px;
  -webkit-backdrop-filter: blur(6px) brightness(1.25); /* taste-skill-ignore: vetro liquido richiesto dal cliente; il toast è un overlay */
  backdrop-filter: blur(6px) brightness(1.25); /* taste-skill-ignore: vetro liquido richiesto dal cliente; il toast è un overlay */
  box-shadow: /* taste-skill-ignore: vetro liquido richiesto dal cliente; il toast è un overlay */
    inset 0 0 0 1px rgba(255, 255, 255, 0.4),
    inset 4px 6px 10px rgba(255, 255, 255, 0.35),
    inset -4px -6px 12px rgba(0, 0, 0, 0.35),
    0 40px 70px rgba(0, 0, 0, 0.6);
  transition: transform 0.6s var(--ease-spring);
}
.phone.is-svg {
  -webkit-backdrop-filter: none;
  backdrop-filter: url(#glass-phone) brightness(1.1) saturate(1.3);
}
.phone.is-bump { transform: scale(0.96) rotate(-2deg); }
.phone__screen {
  height: 100%; overflow: hidden; border-radius: 36px;
  background: var(--paper); color: var(--ink);
}

/* il mini sito dentro il telefono (interfaccia, scala ridotta) */
.mini { height: 100%; display: flex; flex-direction: column; gap: 10px; padding: 14px 12px; font-size: 13px; line-height: 1.35; transition: opacity 0.3s; }
.mini.is-out { opacity: 0; }
.mini__bar { display: flex; justify-content: space-between; align-items: center; font-weight: 900; letter-spacing: -0.02em; padding: 4px 4px 0; }
.mini__menu { font-weight: 500; font-size: 13px; }
.mini__hero {
  display: flex; align-items: flex-end; min-height: 120px; padding: 14px;
  border-radius: 18px; background: var(--mb, var(--ink)); color: var(--mbi, var(--paper));
  font-size: 24px; font-weight: 900; line-height: 0.95; letter-spacing: -0.04em; overflow-wrap: break-word;
}
.mini__title { font-size: 24px; font-weight: 900; line-height: 0.95; letter-spacing: -0.04em; overflow-wrap: break-word; }
.mini__text { font-size: 13px; color: #444; }
.mini__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mini__chips span { padding: 6px 10px; border-radius: var(--round); background: var(--tone); font-size: 13px; }
.mini__chips .is-on { background: var(--ink); color: var(--paper); }
.mini__row { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 14px; background: var(--tone); }
.mini__row b { font-weight: 900; }
.mini__cta { margin-top: auto; padding: 12px; border-radius: var(--round); background: var(--acid); text-align: center; font-weight: 500; }
.mini__cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; font-size: 13px; }
.mini__cal span { padding: 4px 0; border-radius: 8px; }
.mini__cal .is-on { background: var(--ink); color: var(--paper); }
.mini__cal .is-off { color: #9a9a9a; text-decoration: line-through; }
.mini--dark { background: var(--ink); color: var(--paper); }
.mini--dark .mini__text { color: #bdbdbd; }
.mini--dark .mini__row, .mini--dark .mini__chips span { background: var(--night-2); }

.try__side {
  position: absolute; z-index: 2;
  left: calc(58% + min(34vh, 380px) + 24px); top: 50%;
  width: min(22ch, calc(42% - min(34vh, 380px) - 24px - var(--m)));
  transform: translateY(-50%);
}
.try__fact { font-size: var(--step-body); transition: opacity 0.3s; }
.try__fact.is-out { opacity: 0; }

.try__controls {
  position: absolute; z-index: 2; left: var(--m); bottom: 64px;
  width: min(30vw, 420px);
  display: grid; gap: 18px;
}
.try__title { font-size: var(--step-sub); font-weight: 900; letter-spacing: -0.04em; line-height: 0.95; color: var(--paper); text-wrap: balance; }
.try__how { max-width: 34ch; color: var(--soft-dark); }
.try__input {
  height: 60px; padding: 0 24px; border: 0; border-radius: var(--round);
  background: var(--night); color: var(--paper); font-size: var(--step-body);
  transition: background-color 0.2s;
}
.try__input::placeholder { color: var(--soft-dark); }
.try__input:focus { background: var(--night-2); outline: none; }
.try__input:focus-visible { outline: 3px solid var(--acid); outline-offset: 3px; }
.try__list { display: grid; gap: 2px; }
.try__list button {
  padding: 2px 0; border: 0; background: none; cursor: pointer; text-align: left;
  font-size: var(--step-lead); font-weight: 900; letter-spacing: -0.03em; line-height: 1.15;
  color: var(--soft-dark);
  transition: color 0.2s, transform 0.35s var(--ease-spring);
}
.try__list button:hover { color: var(--paper); transform: translateX(8px); }
.try__list button[aria-selected="true"] { color: var(--acid); }

/* =========================================================================
   THE WEEK
   ========================================================================= */
.week { padding: 180px var(--m) 200px; }
.week__intro {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap);
  align-items: end;
}
.week__intro .h-head { grid-column: 1 / 7; }
.week__text { grid-column: 8 / 12; }
.days { display: flex; height: 540px; margin-top: 72px; }
.day {
  position: relative; flex: 1 1 0; min-width: 0; overflow: hidden;
  transition: flex-grow 0.45s var(--ease-out);
}
.day.is-open { flex-grow: 7; }
.day--1 { background: var(--ink); color: var(--paper); }
.day--2 { background: #262626; color: var(--paper); }
.day--3 { background: #444444; color: var(--paper); }
.day--4 { background: #8c8c8c; color: var(--ink); }
.day--5 { background: #d4d4d4; color: var(--ink); }
.day--6 { background: var(--acid); color: var(--ink); }
.day__tab {
  position: absolute; inset: 0; z-index: 1;
  border: 0; background: none; cursor: pointer; padding: 0;
}
.day__tab span {
  position: absolute; left: 50%; bottom: 28px;
  transform-origin: 0 0; rotate: -90deg; translate: -0.6em 0;
  font-size: var(--step-lead); font-weight: 900; letter-spacing: -0.03em; white-space: nowrap;
  transition: opacity 0.3s;
}
.day:hover .day__tab span { opacity: 0.75; }
.day.is-open .day__tab { visibility: hidden; }
.day.is-open .day__tab span { opacity: 0; }
.day__body {
  position: absolute; inset: 0; padding: 36px;
  display: flex; flex-direction: column; justify-content: space-between;
  width: max(520px, 100%);
  opacity: 0; transform: translateY(16px); visibility: hidden;
  transition: opacity 0.3s, transform 0.45s var(--ease-out), visibility 0s 0.3s;
}
.day.is-open .day__body { opacity: 1; transform: none; visibility: visible; transition-delay: 0.2s, 0.2s, 0s; }
.day__title { font-size: var(--step-sub); font-weight: 900; letter-spacing: -0.04em; line-height: 0.95; max-width: 12ch; }
.day__body p { max-width: 36ch; }

/* =========================================================================
   PRICING
   ========================================================================= */
.pricing { padding: 180px var(--m) 200px; }
.plans {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px;
  align-items: end;
}
.plans__head { grid-column: 1 / 9; grid-row: 1; align-self: start; z-index: 1; }
.plans__note { grid-column: 1 / 8; grid-row: 2; margin-top: 32px; max-width: 60ch; }
.plan {
  grid-row: 1; display: flex; flex-direction: column; justify-content: space-between;
}
.plan--1 { grid-column: 1 / 5; height: 420px; background: var(--tone); }
.plan--2 { grid-column: 5 / 9; height: 530px; background: var(--ink); color: var(--paper); }
.plan--3 { grid-column: 9 / 13; height: 640px; background: var(--acid); }
.plan__in { padding: 28px; display: grid; gap: 6px; align-content: start; }
.plan__name { font-size: var(--step-lead); font-weight: 900; letter-spacing: -0.03em; }
.plan__price { font-size: var(--step-head); font-weight: 900; letter-spacing: -0.04em; line-height: 1; margin-bottom: 18px; font-variant-numeric: tabular-nums; }
.plan__list li { padding: 3px 0; }
.plan__buy {
  display: flex; align-items: center; height: 64px; padding: 0 28px;
  font-weight: 500; text-decoration: none;
  transition: background-color 0.2s, padding 0.35s var(--ease-out);
}
.plan__buy::after { content: ''; width: 20px; height: 20px; margin-left: auto; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform 0.35s var(--ease-spring); }
.plan__buy:hover { padding-left: 36px; }
.plan__buy:hover::after { transform: translateX(6px); }
.plan--1 .plan__buy { background: var(--tone-2); }
.plan--2 .plan__buy { background: var(--night-2); }
.plan--3 .plan__buy { background: var(--acid-deep); }

/* =========================================================================
   FAQ
   ========================================================================= */
.faq__head {
  min-height: 40svh; display: flex; align-items: flex-end;
  padding: 0 var(--m) 40px;
}
.band {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap);
  padding: 56px var(--m);
  background: var(--paper);
}
.band--alt { background: var(--tone); }
.band__q { grid-column: 1 / 6; font-size: var(--step-lead); font-weight: 900; letter-spacing: -0.03em; line-height: 1.15; }
.band__a { grid-column: 7 / 13; max-width: 56ch; }

/* =========================================================================
   CONTACT
   ========================================================================= */
.contact { min-height: 70svh; padding: 140px 0 140px; overflow: hidden; }
.contact__body { padding: 0 var(--m); }
.cells {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
  margin-top: 40px;
}
.cell {
  height: 96px; border: 0; border-radius: var(--round);
  background: var(--night); color: var(--paper);
  text-align: center; font-size: var(--step-body);
  transition: background-color 0.2s, transform 0.35s var(--ease-spring);
}
.cell::placeholder { color: var(--soft-dark); }
.cell:focus { background: var(--night-2); outline: none; }
.cell:focus-visible { outline: 3px solid var(--acid); outline-offset: 3px; }
.cell--go { background: var(--acid); color: var(--ink); font-weight: 900; font-size: var(--step-lead); letter-spacing: -0.03em; cursor: pointer; }
.cell--go:hover { background: var(--paper); }
.contact__small {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
  margin-top: 14px; font-size: var(--step-small); color: var(--soft-dark);
}
.contact__small p:last-child { grid-column: 3; }
.contact__small a { color: var(--paper); }

/* =========================================================================
   FOOTER
   ========================================================================= */
.foot { padding: 120px var(--m) 32px; }
.foot__logo { color: var(--ink); }
.foot__svg { display: block; width: 100%; height: auto; overflow: visible; }
.foot__svg .logo-dot { stroke: var(--ink); stroke-width: 3px; }
.js .foot__logo .logo-dot { transform: translateY(-700%); }
.js .foot__logo.is-in .logo-dot { animation: drop 1.2s var(--ease-out) 0.2s forwards; }
.foot__logo.is-in:hover .logo-dot { animation: hop 0.6s var(--ease-out); transform: none; }
@keyframes drop {
  0% { transform: translateY(-700%); }
  50% { transform: translateY(0) scale(1.3, 0.7); }
  68% { transform: translateY(-55%) scale(0.92, 1.08); }
  84% { transform: translateY(0) scale(1.08, 0.92); }
  100% { transform: none; }
}
.foot__cols {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap);
  margin-top: 56px; font-size: var(--step-small);
}
.foot__cols ul:nth-child(1) { grid-column: 1 / 3; }
.foot__cols ul:nth-child(2) { grid-column: 3 / 5; }
.foot__cols li { padding: 4px 0; }
.foot__cols a { text-decoration: none; }
.foot__cols a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot__contact { grid-column: 9 / 13; display: grid; gap: 8px; }
.foot__last { display: flex; justify-content: space-between; align-items: center; margin-top: 40px; font-size: var(--step-small); }

/* --- toast ------------------------------------------------------------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 60;
  padding: 14px 22px; border-radius: var(--round);
  background: var(--ink); color: var(--paper); font-size: var(--step-small);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3); /* taste-skill-ignore: vetro liquido richiesto dal cliente; il toast è un overlay */
  transform: translate(-50%, 140%); opacity: 0;
  transition: transform 0.45s var(--ease-spring), opacity 0.3s;
  pointer-events: none;
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }

/* =========================================================================
   ENTRATE (solo se il JavaScript è attivo: senza, tutto resta visibile)
   ========================================================================= */
.js .reveal > *, .js .reveal.tile > * {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.js .reveal.is-in > * { opacity: 1; transform: none; }
.js .mask > span { transform: translateY(105%); transition: transform 0.9s var(--ease-out); transition-delay: calc(var(--i, 0) * 110ms); }
.js .is-in .mask > span, .js .mask.is-in > span { transform: none; }
.js .hero__inner { transform: translateY(105%); }
.js .hero.is-in .hero__inner { transform: none; transition: transform 1s var(--ease-out); }
.js .hero.is-in .hero__line--acid .hero__inner { transition-delay: 0.11s; }
.js .hero__side, .js .hero__hint { opacity: 0; transform: translateY(16px); }
.js .hero.is-in .hero__side, .js .hero.is-in .hero__hint { opacity: 1; transform: none; transition: opacity 0.7s 0.55s, transform 0.9s 0.55s var(--ease-out); }
.js .grow { opacity: 0; transform: translateY(60px); transition: opacity 0.6s var(--ease-out), transform 0.9s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
.js .grow.is-in { opacity: 1; transform: none; }

/* touch: niente filtri sul vetro che si muove (costano troppo al telefono) */
@media (hover: none) {
  .lens { -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4), 0 14px 30px rgba(0, 0, 0, 0.45); } /* taste-skill-ignore: vetro liquido richiesto dal cliente */
  .lens__shine { filter: none; }
  .case__shot { transition: none; }
  .case__frame.is-panning .case__shot { animation: pan 14s ease-in-out infinite alternate; }
  .js .reveal > *, .js .reveal.tile > * { transition-duration: 0.5s, 0.6s; transition-delay: calc(var(--i, 0) * 50ms); }
  .js .mask > span { transition-duration: 0.6s; transition-delay: calc(var(--i, 0) * 70ms); }
  .js .grow { transition-duration: 0.45s, 0.6s; transition-delay: calc(var(--i, 0) * 60ms); }
}
@keyframes pan { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, calc(var(--travel, 0px) * -1), 0); } }

@media (prefers-reduced-motion: reduce) {
  .case__frame.is-panning .case__shot { animation: none; }
  .case__card, .case__shot { transition: none; transform: none; }
  .case__card::after { display: none; }
  .case { position: static; }
  .js .reveal > *, .js .mask > span, .js .hero__inner, .js .hero__side, .js .hero__hint,
  .js .grow,   .day, .day__body { transition: none; }
  /* il nome è già al suo posto: niente entrata (vince sulla regola .is-in più specifica) */
  .js .hero__inner, .js .hero.is-in .hero__inner { transform: none; transition: none; }
}

/* =========================================================================
   TABLET
   ========================================================================= */
@media (max-width: 1080px) {
  .nav__hide-s { display: none; }
  .hero__side { width: min(30ch, 44vw); bottom: 72px; }
  .ticker { padding-top: 7vw; }
  .try__side { display: none; }
  .try__controls { width: min(36vw, 380px); }
  .try__stage, .phone { left: 64%; }
  .days { height: 500px; }
  .week__intro { grid-template-columns: 1fr; gap: 24px; }
  .week__intro .h-head, .week__text { grid-column: 1; max-width: 60ch; }
  .day__body { width: max(420px, 100%); }
}

/* =========================================================================
   TELEFONO: una composizione a sé
   ========================================================================= */
@media (max-width: 760px) {
  :root { --step-display: 22.5vw; --step-poster: 18vw; }
  .nav { gap: 16px; padding: 14px var(--m); }
  .nav__links { display: none; }

  .hero__name { top: 30svh; }
  .lens { --size: 132px; }
  .hero__side {
    left: var(--m); right: var(--m); bottom: 64px; width: auto;
    justify-items: start; text-align: left; gap: 14px;
  }

  /* al telefono: le schede in colonna, il sito scorre da solo quando la scheda è in vista */
  .work { padding: 100px var(--m) 96px; }
  .work__head { grid-template-columns: 1fr; margin-bottom: 36px; }
  .work__lead { justify-self: start; }
  .case { position: static; }
  .case__card { grid-template-columns: 1fr; grid-template-rows: auto auto; height: auto; min-height: 0; gap: 22px; padding: 22px; border-radius: 20px; transform: none; }
  .case__info { align-content: start; gap: 10px; }
  .case__name { font-size: 2.6rem; }
  .case__frame { height: 520px; cursor: pointer; }
  .case__cursor { display: none; }
  .work__more-head { grid-template-columns: 1fr; margin-bottom: 40px; }
  .work__more { grid-template-columns: 1fr; }
  .work__more .tile__media { aspect-ratio: 4 / 3; }
  .more { padding: 96px var(--m) 110px; }
  .tile__cap { flex-direction: column; gap: 2px; }
  .tile__feat { margin-top: -6px; }

  /* al telefono: prima il titolo e i comandi, poi il telefono sulla sua macchia, poi la frase */
  .try { min-height: auto; padding: 100px 0 64px; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "ctl" "stage" "fact"; }
  .try__controls { grid-area: ctl; position: static; width: auto; padding: 0 var(--m); }
  .try__stage {
    grid-area: stage; position: relative; left: auto; top: auto; transform: none;
    width: 100%; height: 470px; aspect-ratio: auto;
    display: grid; place-items: center;
  }
  .try__stage { height: 560px; margin-top: 48px; }
  .blob { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 680px; height: 680px; max-width: none; }
  .phone {
    --pw: 200px;
    grid-area: stage; position: relative; left: auto; top: auto; translate: none;
    justify-self: center; align-self: center;
  }
  .try__list { display: flex; flex-wrap: wrap; gap: 4px 20px; }
  .try__list li { flex: none; }
  .try__list button:hover { transform: none; }
  .try__side { grid-area: fact; display: block; position: static; transform: none; width: auto; padding: 0 var(--m); }
  .try__fact { font-size: var(--step-body); }

  .week { padding: 120px var(--m) 140px; }
  .week__intro { display: grid; grid-template-columns: 1fr; gap: 20px; }
  .week__intro .h-head, .week__text { grid-column: 1; }
  .days { flex-direction: column; height: auto; margin-top: 48px; }
  .day { flex: none; min-height: 64px; }
  .day__tab span { rotate: 0deg; translate: 0 0; left: 20px; top: 50%; bottom: auto; transform: translateY(-50%); }
  .day.is-open .day__tab { display: none; }
  .day__body { position: static; width: auto; padding: 24px 20px; gap: 16px; display: none; }
  .day.is-open .day__body { display: flex; }


  .pricing { padding: 120px var(--m) 140px; }
  .plans { grid-template-columns: 1fr; row-gap: 40px; }
  .plans__head, .plan, .plans__note { grid-column: 1 !important; grid-row: auto !important; }
  .plans__head { margin-bottom: 24px; }
  .plan { height: auto !important; }
  .plan__in { padding: 24px 20px 32px; }


  .faq__head { min-height: 30svh; padding-bottom: 28px; }
  .band { grid-template-columns: 1fr; gap: 12px; padding: 32px 20px; }
  .band__q, .band__a { grid-column: 1; }


  .cells { grid-template-columns: 1fr; }
  .cell { height: 60px; }
  .contact__small { grid-template-columns: 1fr; }
  .contact__small p:last-child { grid-column: 1; }

  .foot__cols { grid-template-columns: 1fr 1fr; }
  .foot__cols ul:nth-child(1), .foot__cols ul:nth-child(2) { grid-column: auto; }
  .foot__contact { grid-column: 1 / -1; }
}

.mini__cta { color: var(--ink); }
.mini--dark .mini__chips .is-on { background: var(--acid); color: var(--ink); }
