/* Layout: una colonna pensata per lo smartphone (max 560px). Apertura a tutto schermo con foto,
   poi sezioni "agganciate" (sticky) che si animano con lo scorrimento. Colori e caratteri dal prototipo. */
:root {
  --bg: #F3F5F9;
  --surface: #FFFFFF;
  --ink: #0E2440;
  --ink-2: #48566B;
  --muted: #7A8597;
  --navy: #123F73;
  --blue: #2F86EE;
  --blue-soft: #E4F1FF;
  --line: #DFE5EE;
  --on-blue: #FFFFFF;
  --on-photo: #FFFFFF;
  --shadow: 0 10px 30px rgba(18, 63, 115, .14);
  --nia: linear-gradient(120deg, #F06139, #D43998 30%, #8B1EBA 62%, #1E42BA);

  --f-display: 'DM Serif Text', Georgia, 'Times New Roman', serif;
  --f-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --r-card: 32px;
  --r-pill: 100px;
  --col: 560px;
  --bar: 60px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B1424; --surface: #132038; --ink: #EEF3FA; --ink-2: #B5C1D3; --muted: #8391A6;
    --navy: #A9CEFF; --blue: #5FA8FF; --blue-soft: #16304F; --line: #22324D; --on-blue: #06162B;
    --shadow: 0 10px 30px rgba(0, 0, 0, .45);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0B1424; --surface: #132038; --ink: #EEF3FA; --ink-2: #B5C1D3; --muted: #8391A6;
  --navy: #A9CEFF; --blue: #5FA8FF; --blue-soft: #16304F; --line: #22324D; --on-blue: #06162B;
  --shadow: 0 10px 30px rgba(0, 0, 0, .45);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

/* ---------- Tipografia ---------- */
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; color: var(--navy); margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 11vw, 3.2rem); line-height: 1.02; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 8.4vw, 2.5rem); line-height: 1.08; }
h3 { font-size: 1.55rem; line-height: 1.12; }
h1 em, h2 em, h3 em { font-style: italic; }
p { margin: 0; text-wrap: pretty; }

/* ---------- Barra in alto ---------- */

.brand-mark {
  width: 30px; height: 30px; background: var(--navy);
  -webkit-mask: url(../img/logo.png) center / contain no-repeat; mask: url(../img/logo.png) center / contain no-repeat;
}

/* ---------- Pulsanti ---------- */

/* ---------- Apertura: foto a tutto schermo, solo il titolo ---------- */

@keyframes settle { from { transform: scale(1.08); } }

/* Barra in alto trasparente sopra la foto */

/* ---------- Dock in basso: tre voci allo stesso livello ---------- */

/* ---------- Sezioni ---------- */
.section { padding-block: 64px 8px; }

/* ---------- L'idea: card impilate che si scartano scorrendo ---------- */

/* ---------- Il percorso: tappe che si completano scorrendo ---------- */

/* ---------- Introduzione: schermata di app che si uniscono ---------- */

@keyframes float { 50% { transform: translateY(-6px) rotate(var(--r)); } }

@keyframes nudge { 50% { transform: translateY(4px); } }

/* ---------- Nia: la mappa per scoprire ---------- */
.nia { position: fixed; inset: 0; z-index: 50; background: var(--bg); animation: rise .35s cubic-bezier(.2,.9,.3,1); }
@keyframes rise { from { transform: translateY(30px); opacity: 0; } }

.map { position: relative; flex: none; width: 100%; aspect-ratio: 1; max-width: 100%; border-radius: 28px; overflow: hidden;
  background: radial-gradient(circle at 50% 50%, var(--blue-soft) 0%, var(--surface) 70%); box-shadow: inset 0 0 0 1px var(--line); }
.map-bg { position: absolute; inset: 0; width: 100%; height: 100%; }

.me { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; background: var(--nia); color: #fff; font-weight: 700; font-size: .8rem;
  box-shadow: 0 0 0 6px color-mix(in srgb, #BB2DCE 18%, transparent), 0 6px 18px rgba(139,30,186,.35); }
.me::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(187,45,206,.5); animation: pulse 2.2s ease-out infinite; }
@keyframes pulse { to { transform: scale(2.2); opacity: 0; } }
.nodes { position: absolute; inset: 0; }
.node { position: absolute; left: 50%; top: 50%; width: var(--z, 44px); height: var(--z, 44px); margin: calc(var(--z, 44px) / -2) 0 0 calc(var(--z, 44px) / -2);
  padding: 0; border: 3px solid var(--surface); border-radius: 50%; overflow: hidden; cursor: pointer;
  background: var(--nia); box-shadow: 0 4px 14px rgba(18,63,115,.22);
  transition: left .8s cubic-bezier(.2,.8,.2,1), top .8s cubic-bezier(.2,.8,.2,1), width .4s, height .4s, margin .4s, opacity .5s, border-color .3s; }
.node img { width: 100%; height: 100%; object-fit: cover; }
.node b { display: grid; place-items: center; height: 100%; color: #fff; font-size: .9rem; }
.node:not(.lit) { border-width: 0; background: color-mix(in srgb, var(--muted) 55%, transparent); box-shadow: none; pointer-events: none; }
.node img, .node b { opacity: 0; transition: opacity .4s ease .25s; }
.node.lit img, .node.lit b { opacity: 1; }

.node.sel { border-color: var(--blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 30%, transparent), 0 6px 18px rgba(18,63,115,.3); z-index: 2; }

.pick { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px 14px; padding: 14px; border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); animation: rise .35s ease; }
.pick-img { width: 72px; height: 72px; border-radius: 18px; object-fit: cover; background: var(--nia); }
.pick-main { display: grid; gap: 3px; align-content: start; }
.pick-title { font-weight: 700; font-size: 1rem; line-height: 1.25; color: var(--ink); }
.pick-meta { font-size: .84rem; color: var(--muted); }
.aff { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: .8rem; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.aff i { flex: 1; height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.aff i::before { content: ""; display: block; height: 100%; width: var(--a); background: var(--nia); border-radius: 99px; transition: width .6s; }
.why { grid-column: 1 / -1; display: grid; gap: 8px; }
.why p { font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.why ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.why li { padding: 6px 11px; border-radius: 99px; background: var(--blue-soft); color: var(--navy); font-size: .84rem; }

@media (prefers-reduced-motion: reduce) {
   .nia, .pick, .node { transition: none; animation: none; }
   .me::after{ animation: none; }
}

/* ---------- Schede (tab) condivise ---------- */

.seg { display: grid; grid-template-columns: repeat(3, 1fr); padding: 4px; border-radius: 99px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }

/* ---------- Aziende ---------- */

/* Ciclo in 5 tappe */

/* ---------- Investitori: fascia scura ---------- */

.prove { margin-top: 10px; padding: 22px; border-radius: 28px; background: linear-gradient(150deg, rgba(240,97,57,.18), rgba(139,30,186,.2) 55%, rgba(30,66,186,.25)); box-shadow: inset 0 0 0 1px var(--band-line); display: grid; gap: 12px; }

/* ---------- Chi sono e contatti ---------- */
.contact { margin-top: 26px; padding: 26px 22px; border-radius: 30px; display: grid; gap: 10px; color: #fff;
  background: linear-gradient(140deg, #123F73, #1E42BA 55%, #8B1EBA); box-shadow: 0 18px 40px rgba(18,63,115,.3); }

/* ---------- Comparsa allo scorrimento (solo con JS attivo) ---------- */
html.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1); transition-delay: var(--dl, 0s); }
html.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- Menu nella barra in alto ---------- */

.menu { position: fixed; inset: 0; z-index: 60; background: var(--bg); overflow-y: auto; animation: fade .3s ease;
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
@keyframes fade { from { opacity: 0; } }

/* ---------- Indice dopo il titolo ---------- */

/* ---------- Dentro l'app: grafiche delle funzioni ---------- */

.feat { display: grid; gap: 12px; }
.feat h3 { font-size: 1.85rem; }
.feat > p { color: var(--ink-2); }
.viz { position: relative; padding: 18px; border-radius: 28px; background: var(--surface); box-shadow: var(--shadow); overflow: hidden; display: grid; gap: 10px; margin-top: 6px; }
.vf-cap { font-size: .78rem; color: var(--muted); }
.gain { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 4px 0 0; }
.gain div { padding: 12px 14px; border-radius: 18px; background: var(--blue-soft); }
.gain dt { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.gain dd { margin: 2px 0 0; font-size: .9rem; line-height: 1.35; color: var(--navy); }

.vf-row { display: grid; grid-template-columns: 40px minmax(0, 1fr); grid-template-rows: auto 6px; column-gap: 12px; row-gap: 6px; align-items: center; }
.vf-row img { grid-row: 1 / 3; width: 40px; height: 40px; border-radius: 12px; object-fit: cover; }
.vf-row span { font-weight: 700; font-size: .9rem; color: var(--ink); }
.vf-row i { display: block; height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; position: relative; }
.vf-row i::before { content: ""; position: absolute; inset: 0; width: var(--w); border-radius: 99px; background: var(--nia); transform-origin: left; transform: scaleX(0); transition: transform 1s cubic-bezier(.2,.8,.2,1) .2s; }
.feat.in .vf-row i::before, html:not(.js) .vf-row i::before { transform: none; }

.viz-group { height: 220px; }
.viz-group svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.viz-group path { fill: none; stroke: color-mix(in srgb, var(--blue) 45%, transparent); stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1s ease .5s; }
.feat.in .viz-group path, html:not(.js) .viz-group path { stroke-dashoffset: 0; }
.vg-core { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); z-index: 1; padding: 10px 16px; border-radius: 99px; background: var(--navy); color: var(--bg); font-weight: 700; font-size: .88rem; white-space: nowrap; }
.vg-p { position: absolute; z-index: 1; width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--surface); background: var(--c); box-shadow: 0 3px 10px rgba(0,0,0,.15);
  left: var(--x); top: var(--y); transform: translate(-50%, -50%) scale(0); transition: transform .5s cubic-bezier(.3,1.5,.5,1) var(--d); }
.feat.in .vg-p, html:not(.js) .vg-p { transform: translate(-50%, -50%) scale(1); }
.vg-p.p1 { --x: 20%; --y: 26%; --c: linear-gradient(135deg,#F06139,#F59A5B); --d: .1s; }
.vg-p.p2 { --x: 80%; --y: 24%; --c: linear-gradient(135deg,#2FB37A,#7AD9A8); --d: .25s; }
.vg-p.p3 { --x: 16%; --y: 66%; --c: linear-gradient(135deg,#6A3FD1,#A98CF2); --d: .4s; }
.vg-p.p4 { --x: 84%; --y: 68%; --c: linear-gradient(135deg,#2E9BD6,#86CDF2); --d: .55s; }
.vg-p.p5 { --x: 50%; --y: 70%; --c: linear-gradient(135deg,#D43998,#F27BC0); --d: .7s; }
.viz-group .vf-cap { position: absolute; left: 18px; right: 18px; bottom: 12px; text-align: center; }

.viz-spot { gap: 8px; }
.vs-q, .vs-a { max-width: 82%; padding: 10px 14px; border-radius: 18px; font-size: .9rem; line-height: 1.35; }
.vs-q { justify-self: start; background: var(--bg); color: var(--ink); border-bottom-left-radius: 6px; }
.vs-a { justify-self: end; background: var(--blue); color: var(--on-blue); border-bottom-right-radius: 6px; }
.vs-q.small { font-size: .85rem; }
html.js .viz-spot > p:not(.vf-cap) { opacity: 0; transform: translateY(8px); transition: opacity .4s ease, transform .4s ease; }
html.js .viz-spot > p:nth-child(2) { transition-delay: .5s; }
html.js .viz-spot > p:nth-child(3) { transition-delay: 1s; }
html.js .feat.in .viz-spot > p { opacity: 1; transform: none; }

.ve-k { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.ve-t { font-family: var(--f-display); font-size: 1.3rem; line-height: 1.15; color: var(--navy); }
.viz-explore ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.viz-explore li { position: relative; padding-left: 26px; font-size: .9rem; color: var(--ink-2); }
.viz-explore li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center;
  font-size: .7rem; font-weight: 700; color: #fff; background: #6ABD3D; }
.ve-dead { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; font-size: .82rem; color: var(--muted); }
.ve-dead i { height: 6px; border-radius: 99px; background: var(--line); position: relative; overflow: hidden; }
.ve-dead i::before { content: ""; position: absolute; inset: 0; width: 60%; background: #FEC458; border-radius: 99px; transform-origin: left; transform: scaleX(0); transition: transform 1s ease .3s; }
.feat.in .ve-dead i::before, html:not(.js) .ve-dead i::before { transform: none; }
.ve-dead b { color: var(--ink); }

.viz-home { grid-template-columns: 110px 1fr; align-items: center; column-gap: 18px; }
.vh-ring { position: relative; width: 110px; height: 110px; display: grid; place-items: center; }
.vh-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.vh-ring circle { fill: none; stroke: var(--line); stroke-width: 8; }
.vh-ring .vh-run { stroke: #6ABD3D; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.2s cubic-bezier(.2,.8,.2,1) .2s; }
.feat.in .vh-run, html:not(.js) .vh-run { stroke-dashoffset: .14; }
.vh-ring b { font-size: .9rem; color: var(--navy); }
.viz-home ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.viz-home li { display: flex; align-items: center; justify-content: space-between; font-size: .9rem; color: var(--ink-2); }
.viz-home li i { width: 12px; height: 12px; border-radius: 50%; }
.viz-home li i.ok { background: #6ABD3D; box-shadow: 0 0 0 4px rgba(106,189,61,.2); }
.viz-home li i.warn { background: #FEC458; box-shadow: 0 0 0 4px rgba(254,196,88,.25); }
.viz-home .vf-cap { grid-column: 1 / -1; }

/* ---------- Aziende: sintesi del pubblico ---------- */

/* ---------- Chi sono ---------- */

@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal], .vf-row i::before, .viz-group path, .vg-p, .ve-dead i::before, .vh-run{ transition: none; animation: none; }
}

/* ---------- Ritocchi: proporzioni di aziende, investitori, chi sono ---------- */

@keyframes dashv { to { background-position: 0 20px; } }

.prove { margin-top: 34px; }

.contact { margin-top: 40px; }

/* ---------- Aspetto nel menu ---------- */

/* ---------- Tocco su telefono ---------- */
a, button, .node{ touch-action: manipulation; -webkit-tap-highlight-color: transparent; }

/* ---------- Pagina Chi sono ---------- */

/* ---------- Per le aziende: ogni pannello è una card chiusa ---------- */

.seg { position: relative; z-index: 1; }
#aziende { padding-bottom: 8px; }

/* ---------- Dentro l'app: mazzo di card ---------- */

.viz-group .vf-cap { bottom: 10px; }

/* ---------- CEnTRO Insights ---------- */

/* Grafiche degli strumenti */

  
  

 

 

 

 

.viz .vf-cap { font-size: .78rem !important; color: var(--muted) !important; line-height: 1.35; }

/* ---------- CEnTRO in due parole ---------- */

/* ---------- Insights semplificato ---------- */

/* Foglio con gli strumenti */

/* ---------- Investitori: ricavi, crescita, prove ---------- */

@keyframes spin { to { stroke-dashoffset: -1; } }

.l1 { left: 50%; top: 4%; }
.l2 { left: 80%; top: 64%; }

/* ---------- Compatibilità immagini (Safari meno recenti) ---------- */

/* ---------- Intro: 21 app → 1 ---------- */

@keyframes absorb { 0% { opacity: 1; box-shadow: 0 0 0 0 rgba(255,255,255,.55); } 100% { opacity: 0; box-shadow: 0 0 0 22px rgba(255,255,255,0); } }

@keyframes glow { from { opacity: 0; transform: scale(.6); } 40% { opacity: 1; } to { opacity: .55; transform: scale(1.15); } }

