/* Pragme — sito.
   La lingua visiva e' quella del frontend nuovo dell'app (finflow-app, src/nuovo/stile/pv.css, novembre 2026): caratteri Figtree
   (testo) e Manrope (titoli e numeri grandi), angoli tondi, etichette piccole in maiuscolo, riquadri, i colori caldi in due versioni.
   Il sito aggiunge solo la regia: scene a tutta pagina, scorrimento che racconta, il prodotto come protagonista. Tema scuro di partenza.
   Colori e caratteri stanno nei token qui sotto; le forme (angoli, pulsanti, riquadri) nel blocco in fondo. */

/* ── Token ─────────────────────────────────────────────────── */
:root,
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111110;            /* la tela dell'app al buio (--pv-bg) */
  --bg-2: #161615;
  --paper: #1a1a19;         /* il pannello (--pv-panel): le finestre del prodotto */
  --paper-2: #232321;       /* la scheda (--pv-card) */
  --paper-3: #2b2b29;       /* --pv-card2 */
  --line: #2f2e2b;
  --line-2: #3a3935;
  --line-3: #4f4d48;
  --ink: #eeebe5;
  --ink-2: #cfc9bf;
  --ink-3: #a8a49c;         /* il grigio dei testi secondari (--pv-mute) */
  --ink-4: #8c8880;
  --ink-5: #615e58;
  --mint: #5fb894;          /* il verde del marchio al buio (--pv-brand) */
  --mint-soft: #1e3a2f;
  --mint-line: #2f5a49;
  --warn: #d4b073;
  --warn-soft: #332a1c;
  --rust: #f29478;          /* cio' che va male (--pv-neg) */
  --rust-soft: #3a2119;
  --solid: #2f7d6a;         /* il pulsante primario: verde con testo bianco, come nell'app */
  --solid-ink: #ffffff;
  --solid-hover: #3a8f79;
  --bubble: #2e2638;        /* la bolla di chi scrive (--pv-bubble) */
  --glass: rgba(20, 20, 19, 0.58);
  --glass-line: rgba(255, 255, 255, 0.10);
  --nav-glass: rgba(17, 17, 16, 0.74);
  --shade: 17, 17, 16;      /* rgb della tela, per le sfumature sulle foto */
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f2f0eb;            /* --pv-bg */
  --bg-2: #ece9e2;
  --paper: #fbfaf7;         /* --pv-panel */
  --paper-2: #f3f1ec;       /* --pv-card */
  --paper-3: #ece9e2;       /* --pv-card2 */
  --line: #e4e0d8;
  --line-2: #d8d4cb;
  --line-3: #bdb8ae;
  --ink: #1d1c1a;
  --ink-2: #3d3b37;
  --ink-3: #57534c;
  --ink-4: #6f6a62;
  --ink-5: #b8b3a9;
  --mint: #1e5a44;
  --mint-soft: #e3eee8;
  --mint-line: #b7cfc4;
  --warn: #8a6d1f;
  --warn-soft: #faf6ea;
  --rust: #9a3b26;
  --rust-soft: #f9efe9;
  --solid: #174a37;
  --solid-ink: #ffffff;
  --solid-hover: #123b2c;
  --bubble: #f1eaf8;
  --glass: rgba(251, 250, 247, 0.72);
  --glass-line: rgba(29, 28, 26, 0.12);
  --nav-glass: rgba(251, 250, 247, 0.82);
  --shade: 242, 240, 235;
  --shadow: 0 30px 80px rgba(30, 25, 15, 0.18);
}

:root {
  --f-sans: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: var(--f-sans);   /* niente piu' carattere a spaziatura fissa: come l'app, con i numeri tabulari */
  --f-display: "Manrope", ui-sans-serif, system-ui, -apple-system, sans-serif;   /* titoli e numeri grandi (--pv-serif) */
  --f-serif: var(--f-display);
  --wrap: 1240px;
  --gut: 32px;
  --nav-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  /* gli angoli dell'app: pulsanti 12, campi 14, riquadri 18-20, finestre 24, pillole tonde */
  --r-sm: 10px; --r-btn: 12px; --r-field: 14px; --r-box: 18px; --r-card: 20px; --r-win: 24px; --r-pill: 999px;
}

/* ── Base ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--f-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
::selection { background: var(--mint); color: var(--bg); }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }

/* ── Tipografia ────────────────────────────────────────────── */
.micro {
  font: 600 12px/1.4 var(--f-sans);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.micro .idx { color: var(--ink); margin-right: 10px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; color: var(--ink); }
h1 { font-size: clamp(40px, 6vw, 88px); line-height: 1; letter-spacing: -.035em; }
h2 { font-size: clamp(32px, 4.3vw, 60px); line-height: 1.05; letter-spacing: -.03em; }
h3 { font-size: 19px; line-height: 1.3; letter-spacing: -.02em; }
/* come nel saluto della chat dell'app: la seconda parte del titolo, dritta e attenuata (non piu' il corsivo) */
.serif { font-family: var(--f-display); font-style: normal; font-weight: 600; letter-spacing: inherit; }
h1 .serif, h2 .serif { color: var(--ink-3); }
.dim { color: var(--ink-3); }
.lede { font-size: clamp(17px, 1.45vw, 20px); line-height: 1.55; color: var(--ink-3); max-width: 56ch; }
.num { font-family: var(--f-display); font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.pos { color: var(--mint); }
.neg { color: var(--rust); }

.soon {
  display: inline-block;
  font: 500 9.5px/1 var(--f-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-4);
  border: 1px solid var(--line-2);
  padding: 4px 6px 3px;
  vertical-align: 2px;
  white-space: nowrap;
}

/* ── Bottoni ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 24px;
  font: 600 14px/1 var(--f-sans); letter-spacing: .01em;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background .2s, border-color .2s, color .2s, transform .2s var(--ease);
}
.btn-solid { background: var(--solid); color: var(--solid-ink); }
.btn-solid:hover { background: var(--solid-hover); }
.btn-line { border-color: var(--line-3); color: var(--ink); background: transparent; }
.btn-line:hover { border-color: var(--ink); }
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 13px; }

/* ── Navigazione: piena in cima, pillola fluttuante scorrendo ─ */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; pointer-events: none; }
.nav-bar {
  pointer-events: auto;
  margin: 0 auto; height: var(--nav-h);
  display: flex; align-items: center; gap: 28px;
  padding: 0 var(--gut);
  max-width: 100%;
  border: 1px solid transparent;
  transition: max-width .5s var(--ease), margin-top .5s var(--ease), background .4s, border-color .4s, height .4s;
}
.nav.is-floating .nav-bar {
  max-width: 1120px; margin-top: 12px; height: 56px;
  background: var(--nav-glass);
  border-color: var(--glass-line);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
}
.brand { display: flex; align-items: center; flex: none; }
.brand svg { height: 21px; width: auto; }
.brand svg path { fill: var(--ink); transition: fill .3s; }
.nav-links { display: flex; gap: 26px; margin-left: 12px; }
.nav-links a { font-size: 13.5px; font-weight: 500; color: var(--ink-3); transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.nav-login { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.nav-login:hover { color: var(--ink); }
.icon-btn {
  width: 34px; height: 34px; display: grid; place-items: center;
  background: transparent; border: 1px solid var(--line-2); cursor: pointer; color: var(--ink-3);
  transition: color .2s, border-color .2s;
}
.icon-btn:hover { color: var(--ink); border-color: var(--line-3); }
.icon-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
[data-theme="dark"] .i-sun, [data-theme="light"] .i-moon { display: none; }
.lang { display: flex; border: 1px solid var(--line-2); }
.lang button { background: none; border: 0; padding: 0 9px; height: 32px; font: 500 11px var(--f-mono); letter-spacing: .08em; color: var(--ink-4); cursor: pointer; }
.lang button.on { background: var(--ink); color: var(--bg); }
.burger { display: none; }
/* menu a tendina: sotto i 1100px le voci non stanno nella barra */
.mnav { display: none; pointer-events: auto; margin: 8px var(--gut) 0; padding: 8px 0; background: var(--nav-glass); border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px); }
.mnav.open { display: block; animation: rise .3s var(--ease); }
.mnav a { display: block; padding: 13px 20px; font-size: 16px; font-weight: 500; color: var(--ink); border-top: 1px solid var(--line); }
.mnav a:first-child { border-top: 0; }
.mnav .mnav-login { color: var(--mint); font-weight: 600; }
.mnav-theme { display: none; width: 100%; text-align: left; background: none; border: 0; border-top: 1px solid var(--line); padding: 13px 20px; font-size: 16px; font-weight: 500; color: var(--ink-3); cursor: pointer; }

/* sopra la foto d'apertura la barra resta leggibile anche col tema chiaro */
.nav.on-photo:not(.is-floating) .brand svg path { fill: #ededed; }
.nav.on-photo:not(.is-floating) .nav-links a,
.nav.on-photo:not(.is-floating) .nav-login { color: rgba(237, 237, 237, .78); }
.nav.on-photo:not(.is-floating) .nav-links a:hover { color: #fff; }
.nav.on-photo:not(.is-floating) .icon-btn,
.nav.on-photo:not(.is-floating) .lang { border-color: rgba(255, 255, 255, .22); color: rgba(237, 237, 237, .8); }
.nav.on-photo:not(.is-floating) .lang button { color: rgba(237, 237, 237, .7); }
.nav.on-photo:not(.is-floating) .lang button.on { background: #ededed; color: #111110; }

/* ── Scene ─────────────────────────────────────────────────── */
.scene { position: relative; padding: clamp(96px, 13vw, 168px) 0; border-top: 1px solid var(--line); }
.scene-head { max-width: 860px; margin-bottom: clamp(48px, 6vw, 80px); }
.scene-head .micro { margin-bottom: 22px; }
.scene-head h2 + .lede { margin-top: 24px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.center .lede { margin-left: auto; margin-right: auto; }

/* scena fotografica: sempre scura, a prescindere dal tema */
.photo { position: relative; color: #ededed; background: #111110; border-top: 0; overflow: hidden; }
.photo h1, .photo h2, .photo h3 { color: #ededed; }
.photo .lede { color: rgba(237, 237, 237, .74); }
.photo .micro { color: rgba(237, 237, 237, .55); }
.photo .micro .idx { color: #ededed; }
.photo .serif { color: rgba(238, 235, 229, .6); }
.media { position: absolute; inset: 0; }
.media img { width: 100%; height: 100%; object-fit: cover; }

/* ── 1 · Apertura ──────────────────────────────────────────── */
.hero { min-height: max(680px, 100svh); display: flex; flex-direction: column; justify-content: center; padding: calc(var(--nav-h) + 48px) 0 0; }
.hero .media img { object-position: 70% 50%; transform: scale(1.06); animation: hero-in 2.6s var(--ease) forwards; }
@keyframes hero-in { to { transform: scale(1); } }
.hero .shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 17, 16, .92) 0%, rgba(17, 17, 16, .70) 38%, rgba(17, 17, 16, .12) 72%, rgba(17, 17, 16, .30) 100%),
    linear-gradient(180deg, rgba(17, 17, 16, .55) 0%, rgba(17, 17, 16, 0) 22%, rgba(17, 17, 16, 0) 70%, rgba(17, 17, 16, 1) 100%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 48px; align-items: end; }
.hero-copy .micro { margin-bottom: 26px; }
.hero-copy h1 { margin-bottom: 28px; }
.hero-copy .lede { margin-bottom: 38px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.photo .btn-solid { background: #ededed; color: #111110; }
.photo .btn-solid:hover { background: #fff; }
.photo .btn-line { border-color: rgba(255, 255, 255, .32); color: #ededed; }
.photo .btn-line:hover { border-color: #fff; }

.glass {
  background: rgba(16, 16, 16, .55);
  border: 1px solid rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  backdrop-filter: blur(22px) saturate(140%);
}
.notif { padding: 22px 22px 18px; color: #ededed; opacity: 0; transform: translateY(16px); animation: rise .9s var(--ease) 1.1s forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
.notif-top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.live { width: 7px; height: 7px; background: var(--mint); flex: none; box-shadow: 0 0 0 0 rgba(127, 187, 157, .5); animation: live 2.2s infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(127, 187, 157, .55); } 70% { box-shadow: 0 0 0 8px rgba(127, 187, 157, 0); } 100% { box-shadow: 0 0 0 0 rgba(127, 187, 157, 0); } }
.notif-top .micro { color: rgba(237, 237, 237, .6); }
.notif-title { font-size: 17px; font-weight: 600; line-height: 1.35; margin-bottom: 8px; letter-spacing: -.01em; }
.notif p { font-size: 14px; color: rgba(237, 237, 237, .74); line-height: 1.55; }
.notif-figs { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid rgba(255, 255, 255, .12); margin: 16px 0 14px; }
.notif-figs > div { padding: 12px 0 0; }
.notif-figs > div + div { padding-left: 16px; border-left: 1px solid rgba(255, 255, 255, .12); }
.notif-figs .micro { display: block; margin-bottom: 4px; font-size: 10.5px; }
.notif-figs b { font: 500 19px/1.2 var(--f-mono); }
.notif-act { display: flex; gap: 8px; }
.notif-act span { font-size: 12.5px; font-weight: 600; padding: 9px 12px; background: #ededed; color: #111110; }
.notif-act span + span { background: transparent; color: rgba(237, 237, 237, .7); border: 1px solid rgba(255, 255, 255, .18); }

.hero-foot { position: relative; margin-top: clamp(56px, 9vh, 110px); padding-bottom: 28px; display: flex; gap: 28px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 22px; }
.hero-foot span { font: 500 11px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(237, 237, 237, .5); display: flex; align-items: center; gap: 9px; }
.hero-foot span::before { content: ""; width: 5px; height: 5px; background: var(--mint); }

/* ── 2 · Il problema ───────────────────────────────────────── */
.problem h2 { font-size: clamp(38px, 5.6vw, 84px); line-height: 1; max-width: 16ch; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(56px, 7vw, 96px); border-top: 1px solid var(--line-2); }
.trio > div { padding: 28px 32px 8px 0; }
.trio > div + div { padding-left: 32px; border-left: 1px solid var(--line); }
.trio h3 { margin-bottom: 10px; }
.trio p { color: var(--ink-3); font-size: 15px; }
.question { margin-top: clamp(64px, 8vw, 110px); font-size: clamp(24px, 2.6vw, 36px); line-height: 1.3; letter-spacing: -.02em; color: var(--ink-3); max-width: 30ch; }
.question .serif { color: var(--ink); font-size: 1.12em; }

/* ── Finestra del prodotto: la carta dell'app ──────────────── */
.app {
  background: var(--paper);
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .7);
  font-size: 13px;
  color: var(--ink);
  overflow: hidden;
}
[data-theme="light"] .app { box-shadow: 0 34px 70px -34px rgba(16, 36, 28, .35); }
.app-bar { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 16px; border-bottom: 1px solid var(--line); background: var(--paper-2); }
.app-bar .crumb { font-size: 12.5px; color: var(--ink-3); }
.app-bar .crumb b { color: var(--ink); font-weight: 600; }
.app-bar .right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.app-bar .micro { font-size: 10.5px; }

/* ── 3 · Agenti: scena fissata, lo scorrimento manda avanti il lavoro ─ */
.pin { height: 340vh; border-top: 1px solid var(--line); }
.pin-stage { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.pin-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: center; width: 100%; }
.pin-copy .micro { margin-bottom: 22px; }
.pin-copy h2 { margin-bottom: 22px; }
.pin-copy .lede { margin-bottom: 34px; font-size: 17px; }
.steps { list-style: none; border-top: 1px solid var(--line); }
.steps li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 8px 14px; align-items: baseline; padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--ink-5); transition: color .35s; }
.steps li .n { font: 500 11px var(--f-mono); letter-spacing: .08em; }
.steps li b { font-weight: 600; font-size: 15px; }
.steps li small { grid-column: 2 / 4; font-size: 13.5px; line-height: 1.5; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .45s var(--ease), opacity .35s; color: var(--ink-3); }
.steps li.done { color: var(--ink-3); }
.steps li.on { color: var(--ink); }
.steps li.on small { max-height: 80px; opacity: 1; }
.steps li .tick { width: 14px; height: 14px; opacity: 0; transition: opacity .3s; }
.steps li .tick path { fill: none; stroke: var(--mint); stroke-width: 1.8; }
.steps li.done .tick { opacity: 1; }
.pin-bar { height: 2px; background: var(--line); margin-top: 22px; position: relative; overflow: hidden; }
.pin-bar i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--ink); }

.agent-app .app-bar .right .num { font-size: 12px; color: var(--ink-2); }
.agent-kpi { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.agent-kpi > div { padding: 16px 18px 14px; }
.agent-kpi > div + div { border-left: 1px solid var(--line); }
.agent-kpi .micro { display: block; font-size: 10.5px; margin-bottom: 6px; }
.agent-kpi b { font: 500 24px/1.1 var(--f-mono); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.feed { height: 360px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.feed-row {
  display: grid; grid-template-columns: 54px 132px minmax(0, 1fr); gap: 12px; align-items: baseline;
  padding: 11px 18px; border-top: 1px solid var(--line);
  animation: feed-in .5s var(--ease);
}
@keyframes feed-in { from { opacity: 0; transform: translateY(10px); background: var(--paper-3); } to { opacity: 1; transform: none; } }
.feed-row .t { font: 400 11.5px var(--f-mono); color: var(--ink-5); }
.feed-row .who { font: 500 10px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-4); }
.feed-row .what { font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.feed-row .what b { color: var(--ink); font-weight: 600; }
.feed-row.warn .who { color: var(--warn); }
.feed-row.ask .who { color: var(--mint); }
.feed-row.ask { background: var(--mint-soft); }
.chip { display: inline-block; font: 500 10px var(--f-mono); letter-spacing: .06em; padding: 2px 6px; border: 1px solid var(--line-2); color: var(--ink-3); margin-left: 6px; vertical-align: 1px; }

/* ── 4 · Brain ─────────────────────────────────────────────── */
.brain-stage { position: relative; border: 1px solid var(--line); background: var(--bg-2); height: clamp(460px, 48vw, 620px); overflow: hidden; }
.brain-stage svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.brain-stage .edge { stroke: var(--line-2); stroke-width: 1; fill: none; transition: stroke .5s; }
.brain-stage .edge.hot { stroke: var(--mint); }
.brain-stage .node rect { fill: var(--paper); stroke: var(--line-3); stroke-width: 1; transition: fill .4s, stroke .4s; }
.brain-stage .node.hot rect { fill: var(--mint-soft); stroke: var(--mint); }
.brain-stage .node text { font: 500 10.5px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; fill: var(--ink-3); transition: fill .4s; }
.brain-stage .node.hot text { fill: var(--ink); }
.brain-stage .core rect { fill: var(--ink); stroke: none; }
.brain-stage .core text { fill: var(--bg); font-weight: 600; }
.brain-stage .pulse { fill: var(--mint); }
.brain-grid-bg { stroke: var(--line); stroke-width: 1; opacity: .5; }
.insight {
  position: absolute; right: 24px; bottom: 24px; width: min(420px, calc(100% - 48px));
  background: var(--paper); border: 1px solid var(--line-2); padding: 18px 20px;
  opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.insight.show { opacity: 1; transform: none; }
.insight .micro { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.insight p { font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.insight p b { color: var(--ink); font-weight: 600; }
.insight .src { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.insight .src span { font: 500 10px var(--f-mono); letter-spacing: .06em; padding: 3px 7px; border: 1px solid var(--line-2); color: var(--ink-3); }
.props { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-2); margin-top: clamp(48px, 6vw, 80px); }
.props > div { padding: 26px 32px 0 0; }
.props > div + div { padding-left: 32px; border-left: 1px solid var(--line); }
.props h3 { margin-bottom: 8px; }
.props p { color: var(--ink-3); font-size: 15px; }

/* ── 5 · Proattivita' ──────────────────────────────────────── */
.proact { padding: 0; min-height: max(760px, 100svh); display: flex; align-items: center; }
/* due foto, una per destinatario: il selettore le fa dissolvere l'una nell'altra.
   Al centro dell'inquadratura la persona cade a destra della colonna delle notifiche. */
.media-roles img { position: absolute; inset: 0; object-position: 50% 40%; opacity: 0; transition: opacity 1s var(--ease); }
.media-roles img.on { opacity: 1; }
.proact .shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 17, 16, .95) 0%, rgba(17, 17, 16, .82) 34%, rgba(17, 17, 16, .45) 58%, rgba(17, 17, 16, .05) 78%, rgba(17, 17, 16, .2) 100%),
    linear-gradient(180deg, rgba(17, 17, 16, 1) 0%, rgba(17, 17, 16, 0) 16%, rgba(17, 17, 16, 0) 84%, rgba(17, 17, 16, 1) 100%);
}
.proact-grid { position: relative; display: grid; grid-template-columns: minmax(0, 520px) 360px minmax(0, 1fr); gap: 56px; align-items: center; padding: 120px 0; }
/* la foto mette la persona a destra: il testo a sinistra, le notifiche nel mezzo, lei resta visibile */
.notes { position: relative; }
.notes-head { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.notes .phone-notes { position: static; display: flex; flex-direction: column; gap: 10px; min-height: 330px; justify-content: flex-start; }
.notes .pn { border-radius: 0; background: rgba(16, 16, 16, .58); border: 1px solid rgba(255, 255, 255, .12); padding: 14px 16px; }
.notes .pn p { font-size: 13.5px; }
.proact-copy .micro { margin-bottom: 22px; }
.proact-copy h2 { margin-bottom: 22px; }
.proact-copy .lede { margin-bottom: 32px; }
.roles { display: inline-flex; border: 1px solid rgba(255, 255, 255, .2); margin-bottom: 22px; }
.roles button { background: none; border: 0; color: rgba(237, 237, 237, .65); font-size: 13.5px; font-weight: 600; padding: 11px 18px; cursor: pointer; transition: background .25s, color .25s; }
.roles button.on { background: #ededed; color: #111110; }
.role-note { font-size: 15px; color: rgba(237, 237, 237, .74); max-width: 48ch; min-height: 3.2em; }
.channels { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); }
.channels span { font: 500 11px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: rgba(237, 237, 237, .75); display: flex; align-items: center; gap: 8px; }
.photo .soon { color: rgba(237, 237, 237, .55); border-color: rgba(255, 255, 255, .2); }

.phone {
  position: relative; width: 340px; height: 640px; justify-self: end;
  border-radius: 46px; padding: 12px;
  background: #050505; border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, .9);
}
.phone-screen { position: relative; height: 100%; border-radius: 36px; overflow: hidden; background: linear-gradient(180deg, #16201b 0%, #0d110f 100%); }
.phone-time { text-align: center; padding-top: 58px; color: rgba(255, 255, 255, .92); }
.phone-time b { display: block; font: 300 64px/1 var(--f-sans); letter-spacing: -.03em; }
.phone-time span { font-size: 14px; color: rgba(255, 255, 255, .7); }
.phone-notes { position: absolute; left: 12px; right: 12px; bottom: 26px; display: flex; flex-direction: column; gap: 8px; }
.pn {
  background: rgba(38, 38, 38, .72); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-radius: 18px; padding: 12px 14px; color: #ededed;
  animation: pn-in .6s var(--ease) both;
}
@keyframes pn-in { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
.pn-h { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.pn-h i { width: 20px; height: 20px; border-radius: 5px; background: #ededed; display: grid; place-items: center; flex: none; }
.pn-h i svg { width: 12px; height: 12px; }
.pn-h i svg path { fill: #111110; }
.pn-h b { font-size: 12.5px; font-weight: 600; }
.pn-h span { margin-left: auto; font-size: 11.5px; color: rgba(237, 237, 237, .55); }
.pn p { font-size: 13px; line-height: 1.4; color: rgba(237, 237, 237, .86); }

/* ── 6 · Chat ──────────────────────────────────────────────── */
.chat-app { max-width: 1000px; margin: 0 auto; }
.levels { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.levels button { background: none; border: 0; text-align: left; padding: 14px 18px 13px; cursor: pointer; border-right: 1px solid var(--line); position: relative; }
.levels button:last-child { border-right: 0; }
.levels button .micro { display: block; font-size: 10.5px; margin-bottom: 4px; }
.levels button b { font-size: 13.5px; font-weight: 600; color: var(--ink-3); transition: color .25s; }
.levels button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; }
.levels button.on b { color: var(--ink); }
.levels button.on::after { animation: lvl var(--lvl-dur, 12s) linear forwards; }
.levels button.on.hold::after { animation: none; transform: scaleX(1); }
@keyframes lvl { to { transform: scaleX(1); } }
.convo { height: 470px; padding: 26px 30px 10px; display: flex; flex-direction: column; justify-content: flex-end; gap: 18px; overflow: hidden; }
.m-user { align-self: flex-end; max-width: 78%; background: var(--bubble); padding: 12px 16px; font-size: 14.5px; line-height: 1.5; animation: feed-in .45s var(--ease); }
[data-theme="light"] .m-user { color: #1a1a18; }
.m-ai { max-width: 70ch; animation: feed-in .45s var(--ease); }
.m-ai .who { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; }
.m-ai .who .micro { font-size: 10.5px; }
.m-ai .txt { font-size: 14.5px; line-height: 1.62; color: var(--ink-2); }
.m-ai .txt b { color: var(--ink); font-weight: 600; }
.figs { display: flex; margin-top: 14px; border: 1px solid var(--line); width: fit-content; max-width: 100%; flex-wrap: wrap; }
.figs > div { padding: 10px 16px; min-width: 120px; }
.figs > div + div { border-left: 1px solid var(--line); }
.figs .micro { display: block; font-size: 10px; margin-bottom: 4px; }
.figs b { font: 500 16px var(--f-mono); font-variant-numeric: tabular-nums; }
.caret { display: inline-block; width: 7px; height: 15px; background: var(--ink); vertical-align: -2px; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.dots { display: inline-flex; gap: 5px; padding: 6px 0; }
.dots i { width: 6px; height: 6px; background: var(--ink-4); animation: dots 1.2s infinite; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dots { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }
.composer { display: flex; align-items: center; gap: 12px; margin: 10px 30px 22px; padding: 0 14px; height: 52px; border: 1px solid var(--line-2); background: var(--paper); }
.composer .ph { flex: 1; font-size: 14px; color: var(--ink-4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.composer .ph.typing { color: var(--ink); }
.composer .send { width: 32px; height: 32px; display: grid; place-items: center; background: var(--paper-3); transition: background .25s; }
.composer .send svg { width: 14px; height: 14px; fill: none; stroke: var(--ink-4); stroke-width: 2; }
.composer .send.hot { background: var(--ink); }
.composer .send.hot svg { stroke: var(--bg); }
.engine-note { display: flex; gap: 14px; align-items: flex-start; max-width: 1000px; margin: 22px auto 0; color: var(--ink-4); font-size: 13.5px; }
.engine-note b { color: var(--ink-2); font-weight: 600; }
.demo-flag { text-align: center; margin-top: 14px; font: 500 10px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-5); }

/* ── 7 · Come si parte ─────────────────────────────────────── */
.start { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-2); }
.start > div { padding: 30px 32px 6px 0; }
.start > div + div { padding-left: 32px; border-left: 1px solid var(--line); }
.start .big { font: 400 54px/1 var(--f-mono); letter-spacing: -.04em; color: var(--ink-5); margin-bottom: 26px; }
.start h3 { margin-bottom: 8px; }
.start p { color: var(--ink-3); font-size: 15px; }
.sources { display: flex; flex-wrap: wrap; gap: 0; margin-top: clamp(48px, 6vw, 72px); border: 1px solid var(--line); }
.sources span { flex: 1 1 180px; padding: 18px 20px; font-size: 14px; font-weight: 500; color: var(--ink-2); border-right: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sources span:last-child { border-right: 0; }
.sources span i { width: 6px; height: 6px; background: var(--mint); flex: none; }

/* ── 8 · Sicurezza ─────────────────────────────────────────── */
.safe { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-2); }
.safe > div { padding: 28px 28px 6px 0; }
.safe > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.safe svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 20px; }
.safe h3 { margin-bottom: 8px; font-size: 17px; }
.safe p { color: var(--ink-3); font-size: 14.5px; }

/* ── Accesso ───────────────────────────────────────────────── */
.access { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: clamp(40px, 6vw, 96px); align-items: start; }
.access .micro { margin-bottom: 22px; }
.access h2 { margin-bottom: 24px; }
.form { border: 1px solid var(--line-2); background: var(--paper); padding: 28px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.row .field:first-child { padding-right: 9px; } .row .field:last-child { padding-left: 9px; }
.field label { font: 500 10px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-4); }
.field input, .field select {
  height: 46px; padding: 0 14px; background: var(--bg); border: 1px solid var(--line-2); border-radius: 0;
  font-size: 15px; color: var(--ink); appearance: none; -webkit-appearance: none; outline: none; transition: border-color .2s;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--ink-4) 50%), linear-gradient(135deg, var(--ink-4) 50%, transparent 50%); background-position: calc(100% - 18px) 20px, calc(100% - 13px) 20px; background-size: 5px 5px; background-repeat: no-repeat; }
.field input:focus, .field select:focus { border-color: var(--ink); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-3); margin: 4px 0 22px; line-height: 1.5; }
.consent input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--mint); flex: none; }
.consent a { text-decoration: underline; text-underline-offset: 2px; }
.form .btn { width: 100%; }
.draft-note { margin-top: 14px; font: 500 10.5px/1.5 var(--f-mono); letter-spacing: .06em; color: var(--warn); }

/* ── Footer ────────────────────────────────────────────────── */
.foot { border-top: 1px solid var(--line); padding: 64px 0 40px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.foot-brand p { color: var(--ink-4); font-size: 14px; margin-top: 18px; max-width: 32ch; }
.foot h4 { font: 500 10.5px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 16px; font-weight: 500; }
.foot-col a { display: block; font-size: 14px; color: var(--ink-3); margin-bottom: 10px; }
.foot-col a:hover { color: var(--ink); }
.foot-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 26px; font: 400 12px var(--f-mono); color: var(--ink-5); }

/* ── Comparsa allo scorrimento ─────────────────────────────── */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv.d1 { transition-delay: .08s; } .rv.d2 { transition-delay: .16s; } .rv.d3 { transition-delay: .24s; }

/* ── Riduci movimento ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .rv { opacity: 1; transform: none; }
  .pin { height: auto; } .pin-stage { position: static; height: auto; padding: 120px 0; }
}

/* ── Schermi medi e piccoli ────────────────────────────────── */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .burger { display: grid; }
  .hero-grid, .pin-grid, .proact-grid, .access { grid-template-columns: 1fr; }
  .notif { max-width: 460px; }
  .notes { max-width: 460px; }
  /* niente scena fissata sui tablet: la sequenza va da sola */
  .pin { height: auto; }
  .pin-stage { position: static; height: auto; padding: clamp(96px, 13vw, 168px) 0; }
  .safe { grid-template-columns: 1fr 1fr; }
  .safe > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .safe > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  :root { --gut: 20px; --nav-h: 58px; }
  /* sul telefono la barra tiene solo logo, CTA e menu: il tema sta nel menu */
  .nav-login, .nav .lang, #themeBtn { display: none; }
  .mnav-theme { display: block; }
  .nav-bar { gap: 14px; }
  .nav .btn-sm { padding: 0 12px; }
  .trio, .props, .start, .safe { grid-template-columns: 1fr; }
  .trio > div, .props > div, .start > div, .safe > div { padding: 24px 0 8px !important; border-left: 0 !important; }
  .trio > div + div, .props > div + div, .start > div + div, .safe > div + div { border-top: 1px solid var(--line); }
  .levels { grid-template-columns: 1fr 1fr; }
  .levels button:nth-child(2) { border-right: 0; }
  .levels button:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .convo { height: 540px; padding: 20px 18px 8px; }
  .composer { margin: 10px 18px 18px; }
  .m-user { max-width: 92%; }
  .feed-row { grid-template-columns: 44px minmax(0, 1fr); }
  .feed-row .who { grid-column: 2; }
  .feed-row .what { grid-column: 1 / 3; }
  .agent-kpi b { font-size: 19px; }
  .notes .phone-notes { min-height: 0; }
  .form .row { grid-template-columns: 1fr; }
  .row .field:first-child, .row .field:last-child { padding: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .insight { right: 12px; bottom: 12px; width: calc(100% - 24px); }
  /* sul telefono la foto d'apertura sta tutta dietro il testo: un velo in piu' per leggerlo */
  .hero .shade {
    background:
      linear-gradient(90deg, rgba(17, 17, 16, .78) 0%, rgba(17, 17, 16, .55) 50%, rgba(17, 17, 16, .28) 100%),
      linear-gradient(180deg, rgba(17, 17, 16, .50) 0%, rgba(17, 17, 16, .05) 26%, rgba(17, 17, 16, .20) 60%, rgba(17, 17, 16, 1) 100%);
  }
}

/* ── Aggiunte: barra del Brain, menu, modulo ───────────────── */
.brain-bar { position: absolute; top: 0; left: 0; right: 0; z-index: 2; }
.mnav-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding: 6px 20px; }
.mnav-row .mnav-theme { display: block; width: auto; border: 0; padding: 8px 0; }
.nav .mnav .lang { display: flex; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-err { min-height: 1.4em; margin-top: 12px; font-size: 13.5px; color: var(--rust); }
.form-ok { border: 1px solid var(--line-2); background: var(--paper); padding: 30px 28px; animation: rise .5s var(--ease); }
.form-ok .micro { display: flex; align-items: center; gap: 9px; }
.form-ok h3 { font-size: 26px; letter-spacing: -.02em; margin: 16px 0 8px; }
.form-ok p { color: var(--ink-3); }

/* ═══ Le forme dell'app (novembre 2026) ═══════════════════════════
   Quello che il frontend nuovo dell'app fa con gli angoli e i riquadri, applicato qui. Valori da src/nuovo/stile/pv.css:
   pulsanti 12, campi 14, riquadri 18-20, finestre 24, pillole tonde; i numeri grandi nel carattere dei titoli; le colonne
   separate da un filetto diventano riquadri, come le schede del Gestionale. */

/* numeri grandi e cifre nel carattere dei titoli (--pv-serif), tabulari */
.notif-figs b, .agent-kpi b, .figs b, .start .big { font-family: var(--f-display); font-weight: 600; font-variant-numeric: tabular-nums; }
.notif-figs b { font-size: 21px; letter-spacing: -.03em; }
.agent-kpi b { font-size: 26px; letter-spacing: -.03em; }
.figs b { font-size: 18px; letter-spacing: -.02em; }
.start .big { font-size: 48px; letter-spacing: -.05em; }
.problem h2 { font-size: clamp(36px, 5vw, 76px); line-height: 1.02; }
.question .serif { font-size: 1em; color: var(--ink); }
.hero-foot span, .field label, .foot h4, .channels span, .feed-row .who { font-weight: 600; letter-spacing: .11em; }

/* pulsanti, icone, lingua, menu */
.btn { border-radius: var(--r-btn); font: 500 15px/1 var(--f-sans); letter-spacing: 0; }
.btn-solid { font-weight: 600; }
.btn-sm { height: 40px; font-size: 14px; }
.icon-btn { border-radius: var(--r-btn); }
.lang { border-radius: var(--r-sm); overflow: hidden; }
.nav.is-floating .nav-bar { border-radius: var(--r-pill); }
.mnav { border-radius: var(--r-card); overflow: hidden; }

/* riquadri e finestre */
.glass { border-radius: var(--r-card); }
.notif-act span { border-radius: var(--r-sm); }
.app { border-radius: var(--r-win); box-shadow: var(--shadow); }
[data-theme="light"] .app { box-shadow: var(--shadow); }
.brain-stage { border-radius: var(--r-win); }
.insight { border-radius: var(--r-box); box-shadow: var(--shadow); }
.notes .pn { border-radius: var(--r-box); }
.roles { border-radius: var(--r-btn); overflow: hidden; }
.sources { border-radius: var(--r-box); overflow: hidden; }
.figs { border-radius: var(--r-field); overflow: hidden; }
.composer { border-radius: var(--r-card); }
.m-user { border-radius: 18px 18px 6px 18px; }

/* pillole e pallini */
.chip, .insight .src span, .soon { border-radius: var(--r-pill); }
.chip { padding: 2px 8px; }
.soon { padding: 4px 8px 3px; }
.live, .hero-foot span::before, .sources span i, .dots i, .composer .send { border-radius: 50%; }
.caret { border-radius: 1px; }

/* il disegno del Brain: nodi con gli angoli tondi, etichette nel carattere del testo */
.brain-stage .node rect { rx: 10px; ry: 10px; }
.brain-stage .core rect { rx: 12px; ry: 12px; }
.brain-stage .pulse { rx: 3px; ry: 3px; }
.brain-stage .node text { font: 600 10.5px var(--f-sans); letter-spacing: .08em; }

/* modulo di accesso */
.form { border-radius: var(--r-win); box-shadow: var(--shadow); }
.field input, .field select { border-radius: var(--r-field); }
.form-ok { border-radius: var(--r-win); }

/* le colonne a filetto diventano riquadri (come le schede del Gestionale dell'app) */
.trio, .props, .start, .safe { gap: 14px; border-top: 0; }
.trio > div, .props > div, .start > div, .safe > div,
.trio > div + div, .props > div + div, .start > div + div, .safe > div + div {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card); padding: 28px 26px 26px;
}
.safe > div, .safe > div + div { padding: 26px 24px 24px; }
@media (max-width: 1100px) {
  .safe > div:nth-child(3) { padding-left: 24px; border-left: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .trio > div, .props > div, .start > div, .safe > div { padding: 22px 20px 20px !important; border-left: 1px solid var(--line) !important; }
  .start .big { font-size: 40px; }
}

/* le scene fotografiche sono scure anche nel tema chiaro: lì i verdi e i rossi restano quelli del tema scuro */
.photo { --mint: #5fb894; --mint-soft: #1e3a2f; --rust: #f29478; --ink: #eeebe5; --ink-3: #a8a49c; --ink-4: #8c8880; }
