/* ============================================================================
   SCALESHIP — one page · design system
   ----------------------------------------------------------------------------
   Palette presa dalle creative ads: nero profondo, testo bianco, gradiente
   corallo → sabbia → salvia → menta per la parola chiave e le fasce.
   Font: Inter (stesso carattere geometrico delle creative).
   1. Token  2. Base  3. Tipografia  4. Componenti  5. Sezioni  6. Responsive
   ========================================================================== */

/* 1. TOKEN ------------------------------------------------------------------ */
:root {
  --bg: #0a0a0a;
  --bg-1: #101010;
  --bg-2: #161616;
  --bg-3: #1e1e1e;
  --bg-rgb: 10 10 10;
  --fg: #f6f6f4;
  --fg-1: #d2d2ce;
  --fg-2: #a0a09b;
  --fg-3: #8b8b87; /* ≥ 4.5:1 sul nero */
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.15);

  --coral: #ff6b4a;
  --coral-rgb: 255 107 74;
  --sand: #d59c6e;
  --sage: #8fbe8f;
  --mint: #3dd6a7;
  --mint-rgb: 61 214 167;
  --grad: linear-gradient(90deg, #ff6b4a 0%, #d59c6e 38%, #8fbe8f 66%, #3dd6a7 100%);
  --grad-soft: linear-gradient(90deg, rgba(255, 107, 74, 0.18), rgba(61, 214, 167, 0.18));

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --t-display: clamp(2.3rem, 1.1rem + 3.2vw, 4rem);
  --t-h2: clamp(1.9rem, 1.2rem + 2.8vw, 3.3rem);
  --t-h3: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem);
  --t-lead: clamp(1.05rem, 0.98rem + 0.4vw, 1.3rem);
  --t-body: 1rem;
  --t-small: 0.875rem;
  --t-xs: 0.75rem;

  --r-s: 10px;
  --r-m: 16px;
  --r-l: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  --maxw: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(72px, 9vw, 128px);
  --gap: clamp(14px, 2vw, 24px);
  --nav-h: 72px;

  --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 24px 60px -30px rgba(0, 0, 0, 0.9);
  --glow-coral: 0 20px 60px -24px rgba(var(--coral-rgb) / 0.55);
  --glow-mint: 0 20px 60px -24px rgba(var(--mint-rgb) / 0.55);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* 2. BASE ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { background: var(--bg); color-scheme: dark; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font); font-size: var(--t-body); line-height: 1.6; color: var(--fg-1);
  background: var(--bg); min-height: 100vh; overflow-x: clip;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, video, iframe { display: block; max-width: 100%; }
main { overflow-x: clip; }
[hidden] { display: none !important; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { padding: 0; list-style: none; }
strong, b { color: var(--fg); font-weight: 700; }
::selection { background: rgba(var(--mint-rgb) / 0.35); color: #fff; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 1000; padding: 10px 14px; background: #fff; color: #000; border-radius: var(--r-s); font-weight: 700; }
.skip:focus { top: 12px; }
.ic { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* 3. TIPOGRAFIA ------------------------------------------------------------- */
h1, h2, h3, h4 { color: var(--fg); font-weight: 700; line-height: 1.05; letter-spacing: -0.035em; text-wrap: balance; }
h1 { font-size: var(--t-display); letter-spacing: -0.045em; line-height: 0.98; font-weight: 800; }
h2 { font-size: var(--t-h2); letter-spacing: -0.04em; }
h3 { font-size: var(--t-h3); letter-spacing: -0.02em; line-height: 1.2; }
p { text-wrap: pretty; }
.lead { font-size: var(--t-lead); line-height: 1.55; color: var(--fg-1); }
.small { font-size: var(--t-small); }
.muted { color: var(--fg-2); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--t-xs); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-2);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--grad); }
.eyebrow.is-plain::before { display: none; }

/* 4. COMPONENTI -------------------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(44px, 6vw, 80px); }
.section-head { max-width: 780px; margin-bottom: clamp(32px, 5vw, 56px); display: grid; gap: 14px; }
.section-head.is-center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head .lead { max-width: 660px; }
.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* pill / tag */
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: var(--r-pill);
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.04); color: var(--fg-1);
  font-size: var(--t-small); font-weight: 600;
}
.pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(var(--mint-rgb) / 0.2); }
.tag { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: var(--r-pill); font-size: var(--t-xs); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; border: 1px solid var(--line-2); color: var(--fg-2); }
.tag--mint { color: var(--mint); border-color: rgba(var(--mint-rgb) / 0.35); background: rgba(var(--mint-rgb) / 0.08); }
.tag--coral { color: var(--coral); border-color: rgba(var(--coral-rgb) / 0.35); background: rgba(var(--coral-rgb) / 0.08); }

/* bottoni */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 48px; padding: 0.85em 1.5em; border-radius: var(--r-pill);
  background: #fff; color: #0a0a0a; font-weight: 700; font-size: 0.95rem; letter-spacing: -0.01em; white-space: nowrap;
  box-shadow: var(--glow-coral), var(--glow-mint);
  transition: transform 160ms var(--ease), box-shadow 200ms var(--ease), filter 160ms var(--ease), background 160ms var(--ease);
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.04); box-shadow: 0 24px 60px -20px rgba(var(--coral-rgb) / 0.6), 0 24px 60px -20px rgba(var(--mint-rgb) / 0.6); }
.btn:active { transform: translateY(0) scale(0.99); }
.btn--grad { background: var(--grad); color: #0a0a0a; }
.btn--dark { background: #0a0a0a; color: #fff; box-shadow: 0 16px 40px -18px rgba(0, 0, 0, 0.7); }
.btn--ghost { background: transparent; color: var(--fg); border: 1px solid var(--line-2); box-shadow: none; }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.28); box-shadow: none; }
.btn--lg { min-height: 56px; padding: 1em 1.9em; font-size: 1.05rem; }
.btn--sm { min-height: 40px; padding: 0.55em 1.1em; font-size: 0.875rem; }
.btn .ic { width: 1.1em; height: 1.1em; }
.link { color: var(--fg); font-weight: 600; border-bottom: 1px solid var(--line-2); transition: border-color 140ms; }
.link:hover { border-bottom-color: var(--mint); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--fg); font-size: var(--t-small); }
.link-arrow .ic { transition: transform 160ms var(--ease); }
.link-arrow:hover .ic { transform: translateX(3px); }

/* card */
.card {
  position: relative; padding: clamp(20px, 2.4vw, 30px); border-radius: var(--r-l);
  background: var(--bg-1); border: 1px solid var(--line); box-shadow: var(--shadow);
  display: grid; gap: 12px; align-content: start;
}
.card--hover { transition: transform 220ms var(--ease), border-color 220ms var(--ease); }
.card--hover:hover { transform: translateY(-3px); border-color: var(--line-2); }
.card h3 { margin-top: 4px; }
.card p { color: var(--fg-2); font-size: 0.97rem; }
.card--grad { border: 1px solid transparent; background: linear-gradient(var(--bg-1), var(--bg-1)) padding-box, var(--grad) border-box; }
.icon-box {
  display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-2); color: var(--fg);
}
.icon-box .ic { width: 22px; height: 22px; stroke-width: 1.8; }
.icon-box--coral { color: var(--coral); background: rgba(var(--coral-rgb) / 0.1); border-color: rgba(var(--coral-rgb) / 0.3); }
.icon-box--mint { color: var(--mint); background: rgba(var(--mint-rgb) / 0.1); border-color: rgba(var(--mint-rgb) / 0.3); }
.icon-box--sand { color: var(--sand); background: rgba(213, 156, 110, 0.1); border-color: rgba(213, 156, 110, 0.3); }
.icon-box--sage { color: var(--sage); background: rgba(143, 190, 143, 0.1); border-color: rgba(143, 190, 143, 0.3); }
.hook { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); font-size: var(--t-small); font-weight: 600; color: var(--fg); }
.hook .grad { font-weight: 700; }

/* liste con spunta */
.checks { display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; color: var(--fg-1); font-size: 0.97rem; line-height: 1.5; }
.checks .ic { width: 20px; height: 20px; margin-top: 2px; color: var(--mint); }
.checks--x .ic { color: var(--coral); }

/* reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }

/* 5. SEZIONI ----------------------------------------------------------------- */

/* --- nav --- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(var(--bg-rgb) / 0); border-bottom: 1px solid transparent;
  transition: background 240ms var(--ease), border-color 240ms var(--ease), backdrop-filter 240ms;
}
.nav.is-solid { background: rgba(var(--bg-rgb) / 0.78); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__logo img { height: 20px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a { font-size: var(--t-small); font-weight: 600; color: var(--fg-1); transition: color 140ms; }
.nav__links a:hover { color: var(--fg); }
.nav__cta { display: flex; align-items: center; gap: 12px; }
.nav__burger { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 12px; border: 1px solid var(--line-2); color: var(--fg); }
.nav__burger .ic { width: 22px; height: 22px; }
.nav__burger .ic--x, .nav.is-open .nav__burger .ic--menu { display: none; }
.nav.is-open .nav__burger .ic--x { display: block; }

/* --- hero --- */
.hero { position: relative; isolation: isolate; padding-top: calc(var(--nav-h) + clamp(40px, 8vh, 96px)); padding-bottom: clamp(48px, 8vw, 96px); overflow: clip; }
.hero::before, .hero::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(90px); pointer-events: none; opacity: 0.55; }
.hero::before { width: 60vw; height: 60vw; max-width: 760px; max-height: 760px; left: -18vw; top: -10vw; background: radial-gradient(circle, rgba(var(--coral-rgb) / 0.32), transparent 60%); }
.hero::after { width: 60vw; height: 60vw; max-width: 760px; max-height: 760px; right: -22vw; bottom: -18vw; background: radial-gradient(circle, rgba(var(--mint-rgb) / 0.3), transparent 60%); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__copy { display: grid; gap: 22px; justify-items: start; }
.hero__copy h1 { max-width: 18ch; }
.hero__copy .lead { max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero__note { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: var(--t-small); color: var(--fg-2); }
.hero__note span { display: inline-flex; align-items: center; gap: 6px; }
.hero__note .ic { width: 16px; height: 16px; color: var(--mint); }

/* feed dei contatti (visual della hero) */
.feed {
  position: relative; border-radius: var(--r-l); background: rgba(16, 16, 16, 0.92); border: 1px solid var(--line-2);
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.02), 0 40px 120px -40px rgba(var(--coral-rgb) / 0.25), 0 40px 120px -40px rgba(var(--mint-rgb) / 0.25);
  backdrop-filter: blur(10px); overflow: visible;
}
.feed__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.feed__title { display: flex; align-items: center; gap: 10px; font-size: var(--t-small); font-weight: 700; color: var(--fg); }
.feed__title img { height: 12px; width: auto; }
.feed__live { display: inline-flex; align-items: center; gap: 7px; font-size: var(--t-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-2); }
.feed__live i { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(var(--mint-rgb) / 0.2); animation: pulse 1.8s infinite; }
.feed__cols { display: grid; grid-template-columns: 1.4fr 0.9fr 1fr; gap: 10px; padding: 10px 18px 6px; font-size: var(--t-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-3); }
.feed__list { display: grid; padding: 0 10px 10px; min-height: 304px; align-content: start; }
.feed__row {
  display: grid; grid-template-columns: 1.4fr 0.9fr 1fr; gap: 10px; align-items: center; padding: 11px 8px; border-radius: 12px;
  font-size: var(--t-small); border-bottom: 1px solid var(--line); transition: background 300ms, opacity 400ms;
}
.feed__row:last-child { border-bottom: 0; }
.feed__row.is-new { animation: rowIn 500ms var(--ease) both; }
.feed__row.is-out { opacity: 0; }
.feed__who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.feed__avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #0a0a0a; background: var(--grad); flex: none; }
.feed__name { display: grid; gap: 1px; min-width: 0; }
.feed__name b { color: var(--fg); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed__name small { font-size: 11px; color: var(--fg-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed__score { display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; font-weight: 700; color: var(--fg-2); }
.feed__score i { width: 44px; height: 5px; border-radius: 3px; background: var(--bg-3); overflow: hidden; position: relative; flex: none; }
.feed__score i::after { content: ""; position: absolute; inset: 0; width: var(--w, 0%); border-radius: 3px; background: var(--c, var(--fg-3)); transition: width 900ms var(--ease); }
.feed__status { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 12px; color: var(--fg-3); white-space: nowrap; }
.feed__status .ic { width: 15px; height: 15px; }
.feed__status em { font-style: normal; }
.feed__row.is-ok .feed__status { color: var(--mint); }
.feed__row.is-ok .feed__score { color: var(--mint); }
.feed__row.is-ko { opacity: 0.55; }
.feed__row.is-ko .feed__status { color: var(--coral); }
.feed__row.is-ko .feed__name b, .feed__row.is-ko .feed__name small { text-decoration: line-through; text-decoration-color: rgba(var(--coral-rgb) / 0.7); }
.feed__row.is-wait .feed__status { color: var(--fg-3); }
.feed__foot { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 12px 18px 14px; border-top: 1px solid var(--line); font-size: var(--t-xs); color: var(--fg-2); }
.feed__foot b { font-variant-numeric: tabular-nums; }
.feed__foot .ok { color: var(--mint); }
.feed__foot .ko { color: var(--coral); }
.toast {
  position: absolute; right: -14px; bottom: -22px; width: min(320px, 92%); padding: 12px 14px; border-radius: 16px;
  background: #121212; border: 1px solid rgba(var(--mint-rgb) / 0.4); box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.5);
  display: grid; gap: 4px; font-size: 12px; color: var(--fg-1); transform: translateY(16px); opacity: 0; transition: transform 500ms var(--ease), opacity 500ms var(--ease); pointer-events: none;
}
.toast.is-on { transform: none; opacity: 1; }
.toast__t { display: flex; align-items: center; gap: 7px; font-weight: 700; color: var(--fg); }
.toast__t .ic { width: 15px; height: 15px; color: #f5c451; }
.toast__l { display: flex; align-items: center; gap: 7px; }
.toast__l .ic { width: 14px; height: 14px; color: var(--mint); }
.toast__l b { color: var(--mint); }
@keyframes rowIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 3px rgba(var(--mint-rgb) / 0.2); } 50% { box-shadow: 0 0 0 7px rgba(var(--mint-rgb) / 0.06); } }

/* --- numeri --- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r-l); background: var(--bg-1); overflow: hidden; }
.stat { padding: clamp(20px, 2.4vw, 30px); display: grid; gap: 6px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat__v { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--fg); }
.stat__v.grad { display: inline-block; }
.stat__l { font-size: var(--t-small); color: var(--fg-2); line-height: 1.4; }
.stat__l b { color: var(--fg-1); }
.stats__note { margin-top: 12px; font-size: var(--t-xs); color: var(--fg-3); }

/* --- fascia a nastro --- */
.ticker { position: relative; z-index: 2; overflow: hidden; background: var(--grad); color: #0a0a0a; transform: rotate(-1.4deg); margin: 10px -2vw 0; padding: 0.9rem 0; box-shadow: 0 20px 50px -20px rgba(var(--mint-rgb) / 0.5); }
.ticker__track { display: flex; width: max-content; align-items: center; gap: 1.8rem; animation: marquee 42s linear infinite; }
.ticker__item { font-weight: 800; letter-spacing: -0.02em; font-size: clamp(1.05rem, 0.9rem + 0.8vw, 1.5rem); white-space: nowrap; }
.ticker__sep { width: 8px; height: 8px; border-radius: 50%; background: #0a0a0a; opacity: 0.55; flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* --- problema --- */
.statement { margin-top: clamp(32px, 5vw, 56px); padding: clamp(24px, 4vw, 44px); border-radius: var(--r-xl); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent), var(--bg-1); display: grid; gap: 14px; justify-items: start; }
.statement h3 { font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.4rem); letter-spacing: -0.035em; max-width: 22ch; }
.statement p { max-width: 640px; color: var(--fg-1); }

/* --- metodo --- */
.steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.step { position: relative; display: grid; gap: 14px; padding: clamp(22px, 2.6vw, 32px); border-radius: var(--r-l); background: var(--bg-1); border: 1px solid var(--line); box-shadow: var(--shadow); }
.step__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.step__n { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--grad); color: #0a0a0a; font-weight: 800; font-size: 0.95rem; letter-spacing: -0.02em; }
.step__k { font-size: var(--t-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-3); }
.step p { color: var(--fg-2); }
.step .checks { margin-top: 2px; }
.step .checks li { font-size: var(--t-small); color: var(--fg-1); }
.loop { margin-top: var(--gap); display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-radius: var(--r-m); border: 1px dashed var(--line-2); color: var(--fg-1); font-size: var(--t-small); }
.loop .ic { width: 22px; height: 22px; color: var(--mint); flex: none; }

/* --- sistema (flusso) --- */
.flow { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.node { position: relative; display: grid; gap: 10px; padding: 18px 16px; border-radius: var(--r-m); background: var(--bg-1); border: 1px solid var(--line); min-height: 100%; }
.node__i { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-2); color: var(--fg); }
.node__i .ic { width: 20px; height: 20px; stroke-width: 1.8; }
.node__n { position: absolute; top: 12px; right: 14px; font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); }
.node h3 { font-size: 1rem; }
.node p { font-size: 13px; color: var(--fg-2); line-height: 1.5; }
.node--ai { border-color: transparent; background: linear-gradient(var(--bg-1), var(--bg-1)) padding-box, var(--grad) border-box; }
.node--ai .node__i { background: var(--grad); color: #0a0a0a; border: 0; }
.node::after { content: ""; position: absolute; top: 50%; right: -10px; width: 10px; height: 1px; background: var(--line-2); }
.node:last-child::after { display: none; }
.callout { margin-top: clamp(28px, 4vw, 44px); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(20px, 3vw, 40px); align-items: center; padding: clamp(22px, 3vw, 40px); border-radius: var(--r-xl); border: 1px solid transparent; background: linear-gradient(var(--bg-1), var(--bg-1)) padding-box, var(--grad) border-box; }
.callout h3 { font-size: clamp(1.3rem, 1rem + 1.4vw, 2rem); letter-spacing: -0.03em; }
.callout p { color: var(--fg-1); margin-top: 10px; }
.callout__kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: var(--t-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mint); }
.learn { display: grid; gap: 10px; }
.learn__row { display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); font-size: var(--t-small); }
.learn__row .ic { width: 18px; height: 18px; }
.learn__row b { font-variant-numeric: tabular-nums; }
.learn__row.is-ok .ic, .learn__row.is-ok b { color: var(--mint); }
.learn__row.is-ko { opacity: 0.6; }
.learn__row.is-ko .ic, .learn__row.is-ko b { color: var(--coral); }
.learn__row.is-ko span { text-decoration: line-through; }
.learn__meta { display: flex; align-items: center; gap: 8px; font-size: var(--t-xs); color: var(--fg-3); padding: 2px 4px; }
.learn__meta .ic { width: 14px; height: 14px; color: var(--mint); }

/* --- caso studio --- */
.case { display: grid; gap: var(--gap); }
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.cmp { padding: clamp(20px, 2.6vw, 30px); border-radius: var(--r-l); border: 1px solid var(--line); background: var(--bg-1); display: grid; gap: 16px; align-content: start; }
.cmp__h { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cmp__h h3 { font-size: 1.1rem; }
.cmp--before { border-color: rgba(var(--coral-rgb) / 0.3); }
.cmp--after { border-color: rgba(var(--mint-rgb) / 0.35); box-shadow: var(--glow-mint); }
.cmp__list { display: grid; gap: 12px; }
.cmp__list li { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: baseline; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: var(--t-small); color: var(--fg-2); }
.cmp__list li:last-child { border-bottom: 0; padding-bottom: 0; }
.cmp__list b { font-size: 1.25rem; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--fg); }
.cmp--before .cmp__list b { color: var(--coral); }
.cmp--after .cmp__list b { color: var(--mint); }
.cmp__list small { display: block; color: var(--fg-3); font-size: 12px; }
.video { position: relative; border-radius: var(--r-l); overflow: hidden; border: 1px solid var(--line-2); background: #000; aspect-ratio: 16 / 9; box-shadow: var(--shadow); }
.video img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__play { position: absolute; inset: 0; display: grid; place-items: center; gap: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.55)); color: #fff; }
.video__btn { display: inline-flex; align-items: center; gap: 12px; padding: 12px 22px 12px 14px; border-radius: var(--r-pill); background: #fff; color: #0a0a0a; font-weight: 700; box-shadow: var(--glow-coral), var(--glow-mint); transition: transform 160ms var(--ease); }
.video__btn i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--grad); }
.video__btn i .ic { width: 16px; height: 16px; fill: #0a0a0a; stroke: none; margin-left: 2px; }
.video__play:hover .video__btn { transform: scale(1.03); }
.video__badge { position: absolute; left: 16px; top: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: var(--r-pill); background: rgba(10, 10, 10, 0.75); border: 1px solid var(--line-2); font-size: var(--t-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg); backdrop-filter: blur(8px); }
.video__badge .ic { width: 14px; height: 14px; color: var(--mint); }
.video__dur { position: absolute; right: 16px; bottom: 16px; padding: 6px 10px; border-radius: 8px; background: rgba(10, 10, 10, 0.75); font-size: 12px; font-weight: 700; color: var(--fg); font-variant-numeric: tabular-nums; }
.video.is-playing .video__play, .video.is-playing .video__badge, .video.is-playing .video__dur, .video.is-playing img { display: none; }
.video.is-soon .video__btn { pointer-events: none; }
.case__cap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; font-size: var(--t-small); color: var(--fg-2); }
.case__cap img { height: 22px; width: auto; opacity: 0.9; }

/* --- servizi --- */
.svc .tools { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.svc .tools span { font-size: 11px; font-weight: 600; padding: 4px 8px; border-radius: 6px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); color: var(--fg-2); }
.svc-note { margin-top: var(--gap); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding: 18px 22px; border-radius: var(--r-m); background: var(--bg-1); border: 1px solid var(--line); font-size: var(--t-small); color: var(--fg-1); }

/* --- per chi --- */
.fit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.fit .card { gap: 18px; }
.fit__h { display: flex; align-items: center; gap: 12px; }
.fit__h h3 { font-size: 1.2rem; }

/* --- chi siamo --- */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.about__photo { position: relative; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line-2); box-shadow: var(--shadow); aspect-ratio: 4 / 3; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__photo figcaption { position: absolute; left: 14px; bottom: 14px; padding: 8px 12px; border-radius: 10px; background: rgba(10, 10, 10, 0.72); backdrop-filter: blur(8px); font-size: 12px; color: var(--fg-1); border: 1px solid var(--line-2); }
.about__text { display: grid; gap: 18px; }
.about__text p { color: var(--fg-1); }
.founder { display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: center; padding: 16px 18px; border-radius: var(--r-m); background: var(--bg-1); border: 1px solid var(--line); }
.founder img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid var(--line-2); }
.founder b { display: block; color: var(--fg); }
.founder span { font-size: var(--t-small); color: var(--fg-2); }
.founder__stats { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 6px; font-size: 12px; color: var(--fg-2); }
.founder__stats b { display: inline; font-size: 13px; }
.logos { margin-top: clamp(36px, 5vw, 64px); display: grid; gap: 18px; }
.logos__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 22px 40px; padding: 22px 24px; border-radius: var(--r-l); border: 1px solid var(--line); background: var(--bg-1); }
.logos__row img { height: 28px; width: auto; opacity: 0.7; transition: opacity 160ms; }
.logos__row img:hover { opacity: 1; }
.logos__row .l-elogy { height: 34px; }
.logos__row .l-docm { height: 20px; }
.logos__row .l-hybrid { height: 24px; }
.logos__row .l-pigna { height: 24px; }
.logos__row .l-audrer { height: 22px; }
.logos__row .l-diabolique { height: 30px; }
.logos__row .l-superg { height: 30px; }
.logos__row .l-hotlead { height: 28px; }
.logos__row .word { font-weight: 800; letter-spacing: -0.03em; font-size: 1.2rem; color: var(--fg-1); opacity: 0.8; }

/* --- faq --- */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: var(--r-m); background: var(--bg-1); transition: border-color 200ms; }
.faq details[open] { border-color: var(--line-2); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; font-weight: 700; color: var(--fg); font-size: 1.02rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { width: 20px; height: 20px; flex: none; color: var(--fg-2); transition: transform 240ms var(--ease); }
.faq details[open] summary .ic { transform: rotate(45deg); color: var(--mint); }
.faq__a { padding: 0 20px 20px; color: var(--fg-2); font-size: 0.97rem; }
.faq__a p + p { margin-top: 8px; }

/* --- contatti --- */
.close { position: relative; isolation: isolate; overflow: clip; }
.close::before { content: ""; position: absolute; inset: auto 0 0 0; height: 60%; z-index: -1; background: radial-gradient(ellipse 60% 70% at 50% 100%, rgba(var(--mint-rgb) / 0.16), transparent 70%); pointer-events: none; }
.close__panel { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); padding: clamp(22px, 3.5vw, 44px); border-radius: var(--r-xl); border: 1px solid transparent; background: linear-gradient(var(--bg-1), var(--bg-1)) padding-box, var(--grad) border-box; box-shadow: var(--shadow); }
.close__copy { display: grid; gap: 20px; align-content: start; }
.close__copy h2 { font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem); }
.close__copy .lead { color: var(--fg-1); }
.close__block { display: grid; gap: 10px; }
.close__block h3 { font-size: 0.95rem; letter-spacing: 0.02em; color: var(--fg-2); text-transform: uppercase; font-weight: 700; }
.close__block .checks li { font-size: var(--t-small); }
.booking { display: grid; gap: 10px; }
.booking__head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; }
.booking__who { display: flex; align-items: center; gap: 12px; }
.booking__who img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 2px solid var(--line-2); }
.booking__who b { display: block; color: var(--fg); font-size: var(--t-small); }
.booking__who small { font-size: 12px; color: var(--fg-3); }
.booking__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--fg-2); }
.booking__meta span { display: inline-flex; align-items: center; gap: 5px; }
.booking__meta .ic { width: 14px; height: 14px; color: var(--mint); }
.booking__frame { border-radius: var(--r-l); background: #fff; padding: 6px; min-height: 680px; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9); }
.booking__frame iframe { width: 100%; height: 680px; border: 0; border-radius: calc(var(--r-l) - 6px); background: #fff; }
.booking__alt { font-size: 12px; color: var(--fg-3); }

/* --- footer --- */
.foot { border-top: 1px solid var(--line); padding: clamp(36px, 5vw, 60px) 0 max(24px, env(safe-area-inset-bottom)); }
.foot__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(24px, 4vw, 56px); }
.foot__about { display: grid; gap: 14px; align-content: start; }
.foot__about img { height: 18px; width: auto; }
.foot__about p { font-size: var(--t-small); color: var(--fg-2); max-width: 36ch; }
.foot nav h2 { font-size: var(--t-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 12px; }
.foot nav ul { display: grid; gap: 8px; }
.foot nav a { font-size: var(--t-small); color: var(--fg-1); }
.foot nav a:hover { color: var(--fg); }
.foot__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; margin-top: clamp(28px, 4vw, 44px); padding-top: 18px; border-top: 1px solid var(--line); font-size: 12px; color: var(--fg-3); }


/* --- illustrazioni animate (fx): immagine Nano Banana + overlay SVG, vedi tools/fx.py --- */
.fx { margin: 0 auto clamp(28px, 4vw, 44px); max-width: 1040px; display: grid; gap: 12px; }
.fx__stage { position: relative; overflow: hidden; border-radius: var(--r-l); border: 1px solid var(--line-2); background: #0b0b0b; box-shadow: var(--shadow); isolation: isolate; }
.fx__stage img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.6s var(--ease); }
.fx__overlay { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity 0.8s 0.5s; filter: drop-shadow(0 0 7px rgba(var(--mint-rgb) / 0.55)); }
.fx.is-in .fx__stage img { transform: none; }
.fx.is-in .fx__overlay { opacity: 1; }
.fx figcaption { font-size: var(--t-small); color: var(--fg-3); text-align: center; max-width: 700px; margin-inline: auto; }
.hero__more { font-size: var(--t-small); color: var(--fg-2); }

/* --- servizi: card principale a tutta larghezza --- */
.svc--main { grid-column: 1 / -1; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(20px, 3vw, 40px); align-items: center; }
.svc--main .tag { justify-self: start; }
.svc--main .checks li { font-size: var(--t-small); }
.svc--main .svc__side { display: grid; gap: 14px; padding: 18px 20px; border-radius: var(--r-m); background: var(--bg-2); border: 1px solid var(--line); }
.svc--main .svc__side h4 { font-size: var(--t-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-3); }

/* --- cose costruite (screenshot veri, testi oscurati) --- */
.built { margin-top: clamp(36px, 5vw, 64px); display: grid; gap: 18px; }
.built__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; }
.built__head p { font-size: var(--t-small); color: var(--fg-3); }
.built__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.shot { margin: 0; display: grid; gap: 12px; align-content: start; }
.shot__frame { position: relative; border-radius: var(--r-m); overflow: hidden; border: 1px solid var(--line-2); background: #0b0b0b; aspect-ratio: 16 / 10; box-shadow: var(--shadow); }
.shot__frame img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.6s var(--ease); }
.shot:hover .shot__frame img { transform: scale(1.03); }
.shot figcaption b { display: block; color: var(--fg); font-size: var(--t-small); }
.shot figcaption span { display: block; font-size: 13px; color: var(--fg-2); line-height: 1.45; }

/* --- caso studio: dietro le quinte --- */
.bts { display: grid; gap: 16px; margin-top: var(--gap); }
.bts__head { display: grid; gap: 6px; max-width: 760px; }
.bts__head p { color: var(--fg-2); font-size: var(--t-small); }
.bts__track { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.bts__item { margin: 0; display: grid; gap: 8px; align-content: start; }
.bts__item img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-s); border: 1px solid var(--line-2); background: #fff; }
.bts__item figcaption { font-size: 12px; color: var(--fg-2); line-height: 1.4; }
.bts__item figcaption b { display: block; color: var(--fg-1); }
@media (max-width: 960px) {
  .svc--main { grid-template-columns: 1fr; }
  .built__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bts__track { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 62%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
  .bts__item { scroll-snap-align: start; }
}
@media (max-width: 600px) {
  .fx__stage { border-radius: var(--r-m); }
  .fx figcaption { text-align: left; }
  .bts__track { grid-auto-columns: 78%; }
}
@media (prefers-reduced-motion: reduce) { .fx__overlay { display: none; } .fx__stage img { transform: none; } }

/* 6. RESPONSIVE --------------------------------------------------------------- */
@media (max-width: 1100px) {
  .flow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .node::after { display: none; }
}
@media (max-width: 960px) {
  .nav__links { display: none; }
  .nav__burger { display: inline-flex; }
  .nav__menu { position: fixed; inset: var(--nav-h) 0 0 0; z-index: 90; display: none; flex-direction: column; gap: 6px; padding: 20px var(--gutter) 40px; background: rgba(var(--bg-rgb) / 0.96); backdrop-filter: blur(16px); }
  .nav.is-open .nav__menu { display: flex; }
  .nav__menu .nav__links { display: flex; flex-direction: column; gap: 0; align-items: stretch; }
  .nav__menu .nav__links a { padding: 16px 6px; font-size: 1.25rem; font-weight: 700; color: var(--fg); border-bottom: 1px solid var(--line); }
  .nav__menu .btn { margin-top: 22px; justify-content: center; font-size: 1rem; color: #0a0a0a; }
  .nav__cta .btn { display: none; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__copy h1 { max-width: 14ch; }
  .steps, .compare, .fit, .about, .callout, .close__panel { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .grid-4, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot__inner { grid-template-columns: 1fr 1fr; }
  .foot__about { grid-column: 1 / -1; }
  .booking__frame iframe { height: 1180px; }
  .booking__frame { min-height: 0; }
}
@media (min-width: 961px) {
  .nav__menu { display: contents; }
  .nav__menu .btn { display: none; }
}
@media (max-width: 600px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .hero__actions .btn { width: 100%; }
  .hero .pill { font-size: 12px; padding: 6px 12px; }
  .feed__cols, .feed__row { grid-template-columns: minmax(0, 1.4fr) auto auto; gap: 8px; }
  .feed__row { font-size: 13px; padding: 10px 6px; }
  .feed__score i { display: none; }
  .feed__status .feed__more { display: none; }
  .feed__title img { display: none; }
  .feed__live { white-space: nowrap; font-size: 10px; }
  .feed__list { min-height: 0; }
  .toast { position: relative; right: auto; bottom: auto; width: auto; margin: 0 10px 12px; transform: none; opacity: 1; pointer-events: auto; }
  .toast:not(.is-on) { border-color: var(--line-2); }
  .ticker { margin-inline: -4vw; }
  .foot__inner { grid-template-columns: 1fr; }
  .node { padding: 14px; }
}
@media (max-width: 400px) {
  .flow { grid-template-columns: 1fr; }
  .feed__cols { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .ticker__track { animation: none; }
  .feed__row.is-new { animation: none; }
  .feed__live i { animation: none; }
  html { scroll-behavior: auto; }
}
