/* Direzione A: premium scuro, con due sezioni chiare. Un carattere (Mona Sans, OFL), un accento solo per il focus. */

@font-face {
  font-family: "Mona";
  src: url("fonts/MonaSans-VF.woff2") format("woff2");
  font-weight: 300 700;
  font-stretch: 100% 112%;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0a0a0b;
  --bg-2: #101012;
  --bg-3: #16161a;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.2);
  --text: #f4f4f1;
  --text-2: #b4b4b8;
  --text-3: #7c7c82;
  --accent: #9fc2ff;
  --on-text: #0a0a0b;

  --r-media: 28px;
  --r-ctrl: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --f: "Mona", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --gut: clamp(16px, 3.4vw, 48px);
  --s-xl: clamp(104px, 11vw, 168px);
  --s-l: clamp(56px, 6.5vw, 96px);
  --s-m: clamp(28px, 3.2vw, 48px);
  --header: 68px;

  --tint: 255, 255, 255;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 8px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
p, h1, h2, h3, dl, dd, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: rgba(159, 194, 255, 0.35); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

html[data-legarage="nascondi"] [data-cliente="legarage"] { display: none !important; }

.wrap { max-width: 1520px; margin-inline: auto; padding-inline: var(--gut); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--text); color: var(--bg); padding: 10px 14px; border-radius: var(--r-ctrl); }
.skip:focus { top: 12px; }

/* ---------- Tipografia ---------- */
.display, .h2, .ch-title { font-stretch: 103%; text-wrap: balance; }
.display {
  font-size: clamp(38px, 4.9vw, 82px);
  line-height: 1;
  letter-spacing: -0.027em;
  font-weight: 560;
}
.h2 {
  font-size: clamp(34px, 4vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.026em;
  font-weight: 550;
}
.h2--xl { font-size: clamp(38px, 4.8vw, 76px); }
.ch-title {
  font-size: clamp(34px, 3.9vw, 60px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 560;
}
.kicker { font-size: 14px; line-height: 1.3; color: var(--text-2); font-weight: 500; margin-bottom: 10px; letter-spacing: 0.002em; }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: var(--r-ctrl);
  font-size: 16px; font-weight: 560; letter-spacing: -0.005em; line-height: 1.1;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.btn--primary { background: var(--text); color: var(--on-text); }
.btn--primary:hover { opacity: 0.88; }
.btn--primary:active { transform: scale(0.98); }
.btn--primary:disabled { opacity: 0.35; cursor: default; transform: none; }
.btn--ghost { border-color: var(--line-2); color: var(--text); }
.btn--ghost:hover { border-color: var(--text-2); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14.5px; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 30;
  background: #0a0a0b;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.top.is-scrolled { border-bottom-color: var(--line); }
.top-in { height: var(--header); display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; min-height: 44px; }
.mark { width: 26px; height: 26px; flex: none; }
.brand-name { font-weight: 620; font-size: 17px; letter-spacing: -0.02em; font-stretch: 104%; }
.brand-desc { font-size: 14px; color: var(--text-3); padding-left: 12px; border-left: 1px solid var(--line-2); line-height: 1.1; }
.nav { display: flex; gap: 4px; font-size: 14.5px; color: var(--text-2); }
.nav a { padding: 10px 12px; border-radius: 8px; transition: color 0.2s var(--ease), background-color 0.2s var(--ease); }
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.motion {
  width: 44px; height: 44px; margin-right: -8px; border: 0; background: transparent; border-radius: 10px;
  display: grid; place-items: center; cursor: pointer; color: var(--text-2);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.motion:hover { background: rgba(255, 255, 255, 0.06); color: var(--text); }
.i-pause { width: 9px; height: 11px; border-left: 2.5px solid currentColor; border-right: 2.5px solid currentColor; }
.motion[aria-pressed="true"] .i-pause { width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor; margin-left: 3px; }

/* ---------- Dispositivi ---------- */
/* Il telefono è un container: la cornice sta in ::before, così i cqw sono relativi al telefono. */
.phone { container-type: inline-size; position: relative; width: 100%; }
.phone::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  border-radius: 15.5cqw;
  border: 0.9cqw solid transparent;
  background:
    linear-gradient(#050506, #050506) padding-box,
    linear-gradient(150deg, #8a8a90 0%, #3a3a3f 18%, #1b1b1e 45%, #2c2c30 70%, #7a7a80 100%) border-box;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.55),
    0 2cqw 5cqw rgba(0, 0, 0, 0.35),
    0 24cqw 40cqw -14cqw rgba(0, 0, 0, 0.75);
}
/* Tasti laterali */
.phone::after {
  content: ""; position: absolute; z-index: 0; left: -0.7cqw; top: 25cqw; width: 1cqw; height: 7cqw; border-radius: 1cqw 0 0 1cqw;
  background: #3a3a3f;
  box-shadow: 0 12cqw 0 0 #3a3a3f, 0 24cqw 0 0 #3a3a3f;
}
.screen {
  position: relative; z-index: 1; overflow: hidden;
  margin: 3.6cqw;
  border-radius: 12cqw;
  background: #000;
  aspect-ratio: 1170 / 2532;
  transform: translateZ(0);
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}
.screen > video, .screen > img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }

.window {
  border-radius: 14px; overflow: hidden; background: #fbfaf8;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.08),
    0 2px 6px rgba(0, 0, 0, 0.05),
    0 40px 80px -30px rgba(20, 30, 30, 0.35);
}
.window-bar { height: 34px; display: flex; align-items: center; gap: 7px; padding-left: 14px; background: #efeee9; border-bottom: 1px solid rgba(0, 0, 0, 0.06); }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: #d6d5cf; }
.window-screen { aspect-ratio: 1920 / 840; background: #f7f4ee; transform: translateZ(0); }
.window-screen video { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Palchi ---------- */
.stage {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: var(--r-media);
  background: var(--bg-2);
}
.stage::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(70% 60% at 50% 0%, rgba(var(--tint), 0.11), transparent 70%),
    radial-gradient(50% 45% at 50% 100%, rgba(var(--tint), 0.05), transparent 70%);
}

/* ---------- Hero ---------- */
.hero { padding-top: clamp(24px, 2.6vw, 44px); }
.hero-head { display: grid; gap: 18px; margin-bottom: clamp(24px, 2.4vw, 36px); }
.hero-side { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.hero-lead { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.5; color: var(--text-2); max-width: 34em; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.stage-hero {
  --tint: 190, 205, 255;
  --gap: clamp(20px, 3vw, 56px);
  padding: clamp(24px, 2.6vw, 40px) clamp(16px, 3vw, 48px) clamp(20px, 2vw, 30px);
}
.lineup { display: flex; justify-content: center; gap: var(--gap); }
.lu-item { width: min(clamp(168px, calc((100svh - 392px) / 2.24), 320px), calc((100% - 3 * var(--gap)) / 4)); }
.lu-link { display: flex; flex-direction: column; align-items: center; gap: 14px; border-radius: 16px; }
.lu-link .phone { transition: transform 0.5s var(--ease); }
.lu-link:hover .phone { transform: translateY(-6px); }
.cap { display: flex; flex-direction: column; align-items: center; text-align: center; font-size: 15px; line-height: 1.35; }
.cap b { font-weight: 580; letter-spacing: -0.01em; }
.cap span { color: var(--text-3); font-size: 14px; }

.hero-head, .stage-hero { animation: rise 0.9s var(--ease) both; }
.stage-hero { animation-delay: 0.12s; animation-duration: 1.1s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Lavori: struttura comune ---------- */
.works { padding-top: var(--s-xl); }
.works-head { display: flex; align-items: end; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; margin-bottom: var(--s-l); }
.works-head p { color: var(--text-2); max-width: 30em; font-size: 16px; }
.ch { padding-bottom: var(--s-xl); }
.cover { position: relative; z-index: 2; }
.cover--over { position: absolute; top: clamp(24px, 3vw, 44px); left: clamp(24px, 3vw, 44px); }
.info {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px clamp(32px, 4vw, 72px); margin-top: var(--s-m);
}
.info-lead { font-size: clamp(18px, 1.45vw, 21px); line-height: 1.5; letter-spacing: -0.008em; max-width: 30em; }
.spec, .facts { border-top: 1px solid var(--line); }
.spec > div { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; line-height: 1.45; }
.spec dt { color: var(--text-3); font-size: 13.5px; margin-bottom: 2px; }
.facts li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; line-height: 1.45; color: var(--text-2); }
.note { margin-top: 20px; font-size: 14px; color: var(--text-3); }

/* 1 · Le Garage: un telefono grande, due laterali */
.stage-lg { --tint: 255, 232, 214; padding: clamp(96px, 7vw, 120px) clamp(16px, 3vw, 48px) clamp(40px, 4vw, 64px); }
.lg-set { display: flex; align-items: center; justify-content: center; gap: clamp(24px, 4.2vw, 72px); }
.lg-set .phone--main { width: min(380px, 26vw, calc((100svh - 190px) / 2.2)); flex: none; }
.lg-set .phone--side { width: min(290px, 19vw, calc((100svh - 190px) / 2.9)); flex: none; }

/* 2 · Cassa: sezione chiara */
.light {
  --bg: #f1f0ec;
  --bg-2: #e6e5e0;
  --line: rgba(10, 10, 12, 0.1);
  --line-2: rgba(10, 10, 12, 0.22);
  --text: #111113;
  --text-2: #4b4b50;
  --text-3: #75757b;
  --on-text: #f4f4f1;
  --accent: #2f5fd0;
  color-scheme: light;
  background: var(--bg); color: var(--text);
  padding-top: var(--s-xl);
}
.ch--cassa { padding-bottom: var(--s-l); }
.stage-cassa { --tint: 255, 255, 255; padding: clamp(28px, 3vw, 44px) clamp(20px, 3vw, 48px) clamp(56px, 5vw, 80px); }
.stage-cassa::before { background: radial-gradient(70% 70% at 50% 20%, rgba(255, 255, 255, 0.55), transparent 70%); }
.stage-cassa .cover { margin-bottom: clamp(28px, 3vw, 44px); }
.cassa-set { position: relative; max-width: 1180px; margin-inline: auto; padding-right: 13%; }
.cassa-set .phone--float { position: absolute; right: 0; bottom: -36px; width: 25%; max-width: 280px; }
.swap > img { position: absolute; inset: 0; }
.swap > img + img { animation: swap 9s var(--ease) infinite; }
@keyframes swap { 0%, 40% { opacity: 0; } 50%, 90% { opacity: 1; } 100% { opacity: 0; } }
.is-still .swap > img + img { animation-play-state: paused; }
.light .phone::before { box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3), 0 2cqw 5cqw rgba(0, 0, 0, 0.18), 0 24cqw 40cqw -14cqw rgba(20, 30, 30, 0.45); }

/* Demo */
.demo { padding-bottom: var(--s-xl); }
.demo-head { display: flex; align-items: end; justify-content: space-between; gap: 20px 48px; flex-wrap: wrap; margin-bottom: var(--s-m); padding-top: var(--s-m); border-top: 1px solid var(--line); }
.demo-head p { color: var(--text-2); max-width: 32em; font-size: 17px; }
.demo-box {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: clamp(24px, 3vw, 56px); align-items: center;
  background: #fbfbf9; border-radius: var(--r-media); padding: clamp(24px, 3vw, 48px);
  box-shadow: 0 0 0 1px var(--line);
}
.ctrl-k { font-size: 13.5px; font-weight: 600; color: var(--text-2); margin-bottom: 12px; letter-spacing: 0.01em; }
.seg { display: grid; gap: 8px; }
.seg button, .chips button {
  min-height: 48px; padding: 12px 16px; text-align: left;
  border-radius: var(--r-ctrl); border: 1px solid var(--line-2); background: transparent;
  font-size: 15.5px; line-height: 1.25; color: var(--text); cursor: pointer; font-weight: 500;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), opacity 0.2s var(--ease);
}
.seg button:hover, .chips button:hover { border-color: var(--text-2); background: rgba(127, 127, 127, 0.06); }
.seg button[aria-pressed="true"], .chips button[aria-pressed="true"] { background: var(--text); color: var(--on-text); border-color: var(--text); }
.seg button:disabled { opacity: 0.45; cursor: default; }
.seg button[aria-pressed="true"]:disabled { opacity: 0.85; }
.demo-ctrl--d .seg { margin-bottom: 20px; }
.demo-status { margin-top: 14px; font-size: 14.5px; color: var(--text); min-height: 2.9em; }
.demo-note { margin-top: 8px; font-size: 13.5px; color: var(--text-3); }

.demo-stage { position: relative; display: flex; justify-content: center; }
.phone--live { width: min(320px, 26vw, calc((100svh - var(--header) - 150px) * 0.44)); flex: none; }

/* Documento di carta */
.paper {
  position: absolute; z-index: 4; top: 12%; right: calc(100% - 28px);
  width: 250px;
  background: #fff; color: #1d1d1f;
  border-radius: 6px; padding: 18px 18px 16px;
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.08);
  transform: rotate(-3deg) translateX(-16px);
  font-size: 10.5px; line-height: 1.45; overflow: hidden;
  opacity: 0; pointer-events: none;
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
}
.paper.is-on { opacity: 1; transform: rotate(-3deg) translateX(0); }
.paper.is-done { opacity: 0; transform: rotate(-3deg) translateX(40px) scale(0.92); }
.paper h4 { margin: 0 0 2px; font-size: 13px; letter-spacing: -0.01em; font-weight: 650; }
.paper .p-meta { color: #6b6b70; margin-bottom: 12px; }
.paper .p-doc { display: flex; justify-content: space-between; border-block: 1px solid #e3e1dc; padding: 6px 0; margin-bottom: 8px; font-weight: 600; }
.paper table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.paper th { text-align: left; font-weight: 500; color: #6b6b70; padding-bottom: 5px; }
.paper td { padding: 4px 0; border-top: 1px dashed #e3e1dc; vertical-align: top; }
.paper td:last-child, .paper th:last-child { text-align: right; }
.paper .p-tot { display: flex; justify-content: space-between; margin-top: 10px; padding-top: 8px; border-top: 1.5px solid #1d1d1f; font-weight: 650; font-size: 12px; }
.paper .p-foot { margin-top: 12px; color: #8a8a8f; font-size: 9.5px; }
.paper.is-receipt { width: 200px; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 10px; text-align: center; border-radius: 3px; }
.paper.is-receipt .p-row { display: flex; justify-content: space-between; text-align: left; }
.paper.is-receipt hr { border: 0; border-top: 1px dashed #bdbab3; margin: 7px 0; }
.scan {
  position: absolute; left: 0; right: 0; top: 0; height: 60px; pointer-events: none; opacity: 0;
  background: linear-gradient(to bottom, rgba(47, 140, 130, 0), rgba(47, 140, 130, 0.22) 80%, rgba(47, 140, 130, 0.85) 100%);
}
.paper.is-reading .scan { animation: scan 1.4s var(--ease) 1 both; }
@keyframes scan { 0% { transform: translateY(-60px); opacity: 1; } 90% { opacity: 1; } 100% { transform: translateY(420px); opacity: 0; } }

/* App ricostruita in HTML: disegnata a 320 px e scalata alla larghezza dello schermo */
.app {
  --brand: #134a4f; --brand-2: #1f6b70; --brand-soft: #e3efed;
  position: absolute; left: 0; top: 0; width: 320px; height: 693px;
  transform-origin: 0 0; transform: scale(var(--k, 1));
  background: #f3f4f2; color: #16181a;
  font-size: 13px; line-height: 1.35; overflow: hidden; font-stretch: 100%;
}
.app[data-v="ristorazione"] { --brand: #5b2a24; --brand-2: #8a3f33; --brand-soft: #f3e7e3; }
.app[data-v="benessere"] { --brand: #45304f; --brand-2: #6e4d7e; --brand-soft: #eee8f1; }
.app[data-v="generico"] { --brand: #23324a; --brand-2: #3a5277; --brand-soft: #e5eaf2; }
.app-top {
  height: 70px; padding: 26px 16px 0; display: flex; align-items: center; justify-content: space-between;
  background: var(--brand); color: #fff; transition: background-color 0.5s var(--ease);
}
.app-name { font-weight: 650; font-size: 16px; letter-spacing: -0.01em; }
.app-org { display: flex; align-items: center; gap: 7px; font-size: 12px; background: rgba(255, 255, 255, 0.14); padding: 4px 10px 4px 4px; border-radius: 99px; }
.app-logo { width: 20px; height: 20px; border-radius: 50%; background: #fff; color: var(--brand); display: grid; place-items: center; font-size: 8.5px; font-weight: 700; letter-spacing: 0.02em; transition: color 0.5s var(--ease); }
.app-demo { margin: 10px 14px 0; font-size: 10.5px; font-weight: 600; color: #6b6f72; background: #e8e9e6; border-radius: 6px; padding: 5px 8px; text-align: center; letter-spacing: 0.01em; }
.app-body { padding: 10px 14px 20px; }
.app-card { background: #fff; border-radius: 14px; padding: 14px 14px 12px; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04); }
.app-k { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: #6b6f72; font-weight: 600; }
.app-big { font-size: 30px; font-weight: 650; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; margin-top: 2px; transition: color 0.3s; }
.app-big.is-changed { color: var(--brand-2); }
.app-sub { font-size: 11.5px; color: #6b6f72; }
.app-h { margin: 14px 2px 8px; font-size: 11px; font-weight: 600; color: #6b6f72; letter-spacing: 0.02em; }
.app-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.app-chips span { font-size: 11px; padding: 4px 9px; border-radius: 99px; background: var(--brand-soft); color: var(--brand); font-weight: 550; transition: background-color 0.5s var(--ease), color 0.5s var(--ease); }
.app-chips span.is-hit { background: var(--brand); color: #fff; }
.app-mov { background: #fff; border-radius: 14px; overflow: hidden; }
.app-mov li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 10px 12px; border-top: 1px solid #eceeed; }
.app-mov li:first-child { border-top: 0; }
.app-mov .m-t { font-weight: 600; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-mov .m-c { font-size: 11px; color: #6b6f72; grid-column: 1; }
.app-mov .m-v { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-weight: 600; font-variant-numeric: tabular-nums; font-size: 12.5px; }
.app-mov .m-v.in { color: #1c7a4a; }
.app-mov li.is-new { animation: rowin 0.5s var(--ease) both; background: #fbfbf9; }
@keyframes rowin { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  background: #fff; border-radius: 18px 18px 0 0; padding: 16px 16px 26px;
  box-shadow: 0 -16px 40px rgba(0, 0, 0, 0.18);
  transform: translateY(105%); transition: transform 0.55s var(--ease);
}
.sheet.is-open { transform: none; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; font-weight: 650; font-size: 14px; margin-bottom: 10px; }
.tag { font-size: 9.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #9a5b00; background: #fff1d6; padding: 3px 7px; border-radius: 4px; transition: background-color 0.3s, color 0.3s; }
.tag.ok { color: #1c6b44; background: #dcf3e6; }
.sheet-fields { display: grid; margin-bottom: 14px; }
.sheet-fields > div { display: grid; grid-template-columns: 76px 1fr; gap: 8px; padding: 7px 0; border-top: 1px solid #eceeed; font-size: 12px; }
.sheet-fields dt { color: #6b6f72; }
.sheet-fields dd { font-weight: 600; min-height: 1.35em; position: relative; }
.sheet-fields dd.is-empty::after { content: ""; position: absolute; left: 0; top: 3px; height: 10px; width: 70%; border-radius: 4px; background: linear-gradient(90deg, #eceeed, #f7f8f7, #eceeed); background-size: 200% 100%; animation: shimmer 1.1s linear infinite; }
.sheet-fields dd.is-fill { animation: fillin 0.35s var(--ease) both; }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes fillin { from { opacity: 0; transform: translateX(-4px); } to { opacity: 1; transform: none; } }
.app-btn { width: 100%; height: 44px; border: 0; border-radius: 10px; background: var(--brand); color: #fff; font-weight: 650; font-size: 14px; cursor: pointer; transition: opacity 0.2s, background-color 0.5s var(--ease); }
.app-btn:disabled { opacity: 0.35; cursor: default; }
.app-btn:not(:disabled) { animation: nudge 1.6s var(--ease) 0.3s 2; }
@keyframes nudge { 0%, 100% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); } 50% { box-shadow: 0 0 0 5px var(--brand-soft); } }
.app-toast {
  position: absolute; left: 14px; right: 14px; bottom: 24px; z-index: 4;
  background: #16181a; color: #fff; border-radius: 12px; padding: 11px 14px; font-size: 12.5px; font-weight: 550;
  opacity: 0; transform: translateY(10px); transition: opacity 0.35s var(--ease), transform 0.35s var(--ease); pointer-events: none;
}
.app-toast.is-on { opacity: 1; transform: none; }

.demo-foot { margin-top: var(--s-m); display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.demo-foot p { font-size: clamp(20px, 1.9vw, 26px); letter-spacing: -0.02em; font-stretch: 103%; font-weight: 520; }

/* 3 · Picking: quattro passaggi */
.stage-pick { --tint: 205, 235, 90; padding: clamp(28px, 3vw, 44px) clamp(20px, 3vw, 48px) clamp(36px, 4vw, 56px); }
.stage-pick .cover { margin-bottom: clamp(32px, 3.4vw, 52px); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 44px); max-width: 1240px; margin-inline: auto; }
.step { display: flex; flex-direction: column; gap: 18px; }
.step .phone { max-width: 270px; margin-inline: auto; }
.step-t { font-size: 15px; line-height: 1.4; color: var(--text-2); min-height: 4.2em; max-width: 17em; }
.step-t b { display: block; color: var(--text); font-weight: 600; font-size: 13px; margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.step-t b::after { content: " / 4"; color: var(--text-3); font-weight: 500; }

/* 4 · INNervo: un telefono e la voce */
.stage-inn { --tint: 110, 150, 255; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(32px, 5vw, 96px); padding: clamp(28px, 3vw, 48px) clamp(24px, 5vw, 96px) clamp(28px, 3vw, 48px) clamp(24px, 3vw, 48px); }
.inn-copy { align-self: stretch; display: flex; flex-direction: column; max-width: 620px; }
.inn-line { margin-top: 20px; font-size: clamp(20px, 1.8vw, 26px); line-height: 1.35; letter-spacing: -0.015em; max-width: 20em; color: var(--text-2); }
.wave { margin-block: auto; padding-block: 36px; display: flex; align-items: center; gap: clamp(4px, 0.5vw, 7px); height: clamp(120px, 11vw, 170px); box-sizing: content-box; }
.inn-copy .spec { margin-top: 8px; }
.wave i { flex: 1 1 0; max-width: 8px; height: 100%; border-radius: 4px; background: linear-gradient(to top, rgba(140, 170, 255, 0.15), rgba(200, 215, 255, 0.55)); transform-origin: 50% 50%; transform: scaleY(0.12); animation: wv 2.4s ease-in-out infinite; }
.wave i:nth-child(6n+1) { animation-delay: -0.2s; animation-duration: 2.1s; }
.wave i:nth-child(6n+2) { animation-delay: -0.9s; animation-duration: 2.6s; }
.wave i:nth-child(6n+3) { animation-delay: -1.5s; animation-duration: 1.9s; }
.wave i:nth-child(6n+4) { animation-delay: -0.5s; animation-duration: 2.8s; }
.wave i:nth-child(6n+5) { animation-delay: -1.2s; animation-duration: 2.3s; }
.wave i:nth-child(7n) { animation-duration: 3.1s; }
@keyframes wv { 0%, 100% { transform: scaleY(0.12); } 30% { transform: scaleY(0.75); } 55% { transform: scaleY(0.3); } 75% { transform: scaleY(0.95); } }
.is-still .wave i { animation-play-state: paused; }
.phone--inn { width: min(300px, 23vw, calc((100svh - 200px) / 2.2)); }

/* ---------- Cosa costruisco (chiaro) ---------- */
.light--2 { padding-top: var(--s-xl); }
.build-head { display: flex; align-items: end; justify-content: space-between; gap: 16px 48px; flex-wrap: wrap; margin-bottom: var(--s-m); }
.build-head p { color: var(--text-2); font-size: 17px; }
.rows { border-top: 1px solid var(--line-2); }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) 180px; gap: 12px clamp(24px, 4vw, 72px); align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--line); }
.row h3 { font-size: clamp(22px, 2vw, 30px); font-weight: 540; letter-spacing: -0.022em; font-stretch: 103%; line-height: 1.15; }
.row p { color: var(--text-2); font-size: 16.5px; line-height: 1.5; max-width: 32em; }
.row a { justify-self: end; font-size: 15px; font-weight: 550; padding: 10px 0; background: linear-gradient(currentColor, currentColor) 0 calc(100% - 8px) / 100% 1px no-repeat; transition: background-size 0.3s var(--ease); }
.row a::after { content: " \2192"; }
.row a:hover { background-size: 0 1px; background-position: 100% calc(100% - 8px); }
.stack { margin-top: 28px; font-size: 14.5px; color: var(--text-3); }

/* ---------- Metodo (chiaro) ---------- */
.method { padding-block: var(--s-l) var(--s-xl); }
.method-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 40px clamp(40px, 6vw, 120px); padding-top: var(--s-l); background: linear-gradient(var(--line-2), var(--line-2)) var(--gut) 0 / calc(100% - 2 * var(--gut)) 1px no-repeat; }
.method-head p { margin-top: 24px; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; color: var(--text-2); max-width: 26em; }
.phases li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 4px 16px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.phases li:first-child { padding-top: 6px; }
.ph-n { grid-row: span 2; font-size: 15px; font-weight: 600; color: var(--text-3); font-variant-numeric: tabular-nums; padding-top: 4px; }
.phases h3 { font-size: 22px; font-weight: 560; letter-spacing: -0.018em; font-stretch: 103%; }
.phases p { color: var(--text-2); font-size: 16.5px; line-height: 1.55; max-width: 34em; }
.method-ai { margin-top: var(--s-m); font-size: 15px; color: var(--text-3); max-width: 60em; }

/* ---------- Contatti ---------- */
.contact { padding-block: var(--s-xl); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px clamp(40px, 6vw, 120px); align-items: start; }
.contact-sub { margin-top: 20px; font-size: clamp(18px, 1.5vw, 21px); color: var(--text-2); }
.contact-mail { margin-top: 36px; font-size: clamp(20px, 1.9vw, 26px); font-weight: 520; letter-spacing: -0.015em; }
.contact-mail a { display: inline-block; padding-block: 8px; background: linear-gradient(currentColor, currentColor) 0 calc(100% - 6px) / 100% 1px no-repeat; transition: background-size 0.3s var(--ease); overflow-wrap: anywhere; }
.contact-mail a:hover { background-size: 0 1px; background-position: 100% calc(100% - 6px); }
.brief { background: var(--bg-2); border-radius: var(--r-media); padding: clamp(22px, 3vw, 40px); box-shadow: 0 0 0 1px var(--line); }
.ctrl { border: 0; padding: 0; margin: 0 0 28px; min-width: 0; }
.ctrl legend { padding: 0; font-size: 14px; color: var(--text-2); margin-bottom: 12px; font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { min-height: 44px; padding: 10px 15px; font-size: 15px; }
.field { display: grid; gap: 12px; margin-bottom: 26px; }
.field span { font-size: 14px; color: var(--text-2); font-weight: 500; }
.field textarea {
  width: 100%; resize: vertical; min-height: 120px;
  background: var(--bg); color: var(--text); border: 1px solid var(--line-2); border-radius: var(--r-ctrl);
  padding: 14px 16px; font: inherit; font-size: 16px; line-height: 1.5;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea::placeholder { color: var(--text-3); }
.field textarea:hover { border-color: rgba(255, 255, 255, 0.34); }
.field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(159, 194, 255, 0.2); }
.brief-foot { display: flex; align-items: center; gap: 16px 20px; flex-wrap: wrap; }
.brief-foot p { font-size: 13.5px; color: var(--text-3); flex: 1 1 220px; }

/* ---------- Footer ---------- */
.foot { padding-block: 40px 48px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--text-3); }
.foot-in { display: flex; justify-content: space-between; align-items: end; gap: 24px 32px; flex-wrap: wrap; }
.foot-name { color: var(--text); font-weight: 600; font-stretch: 104%; letter-spacing: -0.015em; font-size: 16px; margin-bottom: 4px; }
.foot-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; }
.foot-links a { color: var(--text-2); padding-block: 12px; transition: color 0.2s var(--ease); }
.foot-links a:hover { color: var(--text); }

/* ---------- Privacy ---------- */
.legal { max-width: 720px; padding-block: clamp(56px, 8vw, 120px) var(--s-xl); }
.legal h1 { font-size: clamp(38px, 5vw, 64px); line-height: 1.02; letter-spacing: -0.034em; font-weight: 560; font-stretch: 103%; margin-bottom: 14px; }
.legal .updated { color: var(--text-3); font-size: 15px; margin-bottom: 48px; }
.legal h2 { font-size: 22px; letter-spacing: -0.02em; font-weight: 580; font-stretch: 103%; margin: 44px 0 12px; }
.legal p, .legal li { color: var(--text-2); font-size: 17px; line-height: 1.65; }
.legal p + p { margin-top: 12px; }
.legal ul { display: grid; gap: 8px; margin-top: 10px; padding-left: 20px; list-style: disc; }
.legal a { color: var(--text); background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav { display: none; }
  .info { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .info-lead { grid-column: 1 / -1; }
  .demo-box { grid-template-columns: minmax(0, 1fr) auto; }
  .demo-ctrl--v { grid-column: 1 / -1; }
  .demo-ctrl--v .seg { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .paper { right: auto; left: -40%; }
  .row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
  .row a, .row span { grid-column: 2; justify-self: start; }
  .method-grid, .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  :root { --header: 60px; --r-media: 22px; }
  body { font-size: 16px; }
  .brand-desc { display: none; }
  .top-in { gap: 12px; }
  .brand-name { font-size: 16px; }

  .hero { padding-top: 22px; }
  .hero-head { gap: 16px; margin-bottom: 20px; }
  .display { font-size: clamp(36px, 10.4vw, 46px); line-height: 1.02; }
  .hero-lead { font-size: 16.5px; }
  .hero-cta { display: none; }
  .stage-hero { padding: 18px 14px 20px; --gap: 12px; }
  .lineup { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .lu-item { width: auto; }
  .lu-link { gap: 10px; }
  .cap { font-size: 14px; }
  .cap span { font-size: 12.5px; }

  .works-head { margin-bottom: 36px; }
  .ch { padding-bottom: var(--s-l); }
  .cover--over { position: static; margin-bottom: 24px; }
  .stage-lg { padding: 24px 0 32px; }
  .stage-lg .cover { padding-inline: 20px; }
  .lg-set { gap: 14px; }
  .lg-set .phone--main { width: 60vw; }
  .lg-set .phone--side { width: 42vw; }
  .info { grid-template-columns: 1fr; gap: 20px; margin-top: 28px; }

  .stage-cassa { padding: 24px 16px 40px; }
  .cassa-set { padding-right: 0; }
  .window { border-radius: 9px; }
  .window-bar { height: 20px; gap: 5px; padding-left: 9px; }
  .window-bar i { width: 7px; height: 7px; }
  .cassa-set .phone--float { position: relative; right: auto; bottom: auto; width: 50%; margin: -18% 4% 0 auto; }

  .demo-box { grid-template-columns: 1fr; padding: 18px 16px 22px; gap: 20px; }
  .demo-ctrl--v .seg { grid-template-columns: 1fr 1fr; }
  .seg button { font-size: 14.5px; padding: 10px 12px; min-height: 46px; }
  .demo-ctrl--d .seg { grid-template-columns: 1fr 1fr; margin-bottom: 14px; }
  .phone--live { width: min(280px, 74vw, calc((100svh - var(--header) - 28px) * 0.44)); }
  .demo-stage { scroll-margin-top: calc(var(--header) + 10px); }
  .paper { top: 16%; left: 50%; right: auto; width: 74%; max-width: 250px; transform: translate(-50%, 14px) rotate(-2deg); }
  .paper.is-on { transform: translate(-50%, 0) rotate(-2deg); }
  .paper.is-done { transform: translate(-50%, -10px) rotate(-2deg) scale(0.95); }
  .paper.is-receipt { width: 62%; }
  .demo-foot { flex-direction: column; align-items: flex-start; }

  .stage-pick { padding: 24px 14px 28px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .step { gap: 12px; }
  .step-t { font-size: 13.5px; min-height: 5.6em; }

  .stage-inn { grid-template-columns: 1fr; padding: 24px 20px 28px; gap: 0; }
  .inn-copy { display: contents; }
  .inn-copy .cover { order: 1; }
  .inn-line { order: 2; }
  .phone--inn { order: 3; width: 64vw; margin: 28px auto 0; }
  .wave { order: 4; padding-block: 24px 8px; height: 56px; }
  .inn-copy .spec { order: 5; margin-top: 16px; }

  .row { grid-template-columns: 1fr; padding: 22px 0; gap: 8px; }
  .row a, .row span { grid-column: 1; }
  .phases li { grid-template-columns: 40px minmax(0, 1fr); }
  .foot-in { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .wave i { transform: scaleY(0.45); }
}

/* niente sbordamenti laterali su schermi stretti (iPhone SE) */
html { overflow-x: clip; }
.stage-lg { overflow: hidden; }
