/* CF Brain — design system v2
   Pagine chiare con fasce navy; il prodotto è mostrato con frammenti di interfaccia.
   Colori dal brand CF Brain (presentazioni Canva). Titoli in serif, testo in grotesk. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url("../fonts/archivo-latin-wdth.woff2") format("woff2-variations"), url("../fonts/archivo-latin-wdth.woff2") format("woff2");
}
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-display: swap;
  font-weight: 400 500;
  src: url("../fonts/newsreader-latin.woff2") format("woff2-variations"), url("../fonts/newsreader-latin.woff2") format("woff2");
}

:root {
  --navy: #021a3a;
  --navy-2: #0b2d63;
  --navy-3: #123c7d;
  --sky: #6ea8f0;
  --sky-light: #9cc4f6;
  --sky-ink: #2a68bd;
  --sky-wash: #eaf2fd;
  --paper: #ffffff;
  --mist: #f3f6fa;
  --line: #dfe6ef;
  --ink: #0c1b31;
  --slate: #50607a;
  --ok: #2f8f63;

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --t-xs: 0.8125rem;
  --t-sm: 1rem;
  --t-base: 1.0625rem;
  --t-md: 1.1875rem;
  --t-lg: 1.5rem;
  --t-xl: clamp(1.75rem, 2.6vw, 2.25rem);
  --t-2xl: clamp(2.25rem, 4vw, 3.25rem);
  --t-3xl: clamp(2.6rem, 5.4vw, 4.4rem);

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --max: 1200px;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;
  --shadow-ui: 0 1px 2px rgba(2, 26, 58, 0.06), 0 12px 32px -12px rgba(2, 26, 58, 0.22);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--t-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
img, svg, video { max-width: 100%; display: block; }
a { color: var(--sky-ink); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--paper); color: var(--navy); padding: .75rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.narrow { max-width: 760px; }

h1, h2, h3, h4 { margin: 0 0 .55em; text-wrap: balance; }
h1, h2 { font-family: var(--serif); font-weight: 450; letter-spacing: -0.015em; line-height: 1.08; }
h1 { font-size: var(--t-3xl); }
h2 { font-size: var(--t-2xl); }
h3 { font-size: var(--t-md); font-weight: 600; line-height: 1.3; letter-spacing: -0.005em; }
p { margin: 0 0 1em; }
.lead { font-size: var(--t-md); line-height: 1.55; color: var(--slate); max-width: 58ch; }
.kicker { display: inline-block; font-size: var(--t-sm); font-weight: 600; color: var(--sky-ink); margin-bottom: .9rem; }

@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("../fonts/caveat-latin-600.woff2") format("woff2");
}

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 68px; }
.logo { display: inline-flex; align-items: center; min-height: 44px; padding-block: 8px; color: var(--navy); }
.logo svg { width: 124px; height: auto; }
.wordmark { display: block; width: 132px; height: auto; }
@media (max-width: 400px) { .wordmark { width: 112px; } }
.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav ul { list-style: none; display: flex; gap: 1.4rem; margin: 0; padding: 0; }
.nav a { color: var(--slate); text-decoration: none; font-size: var(--t-sm); font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { box-shadow: 0 2px 0 var(--sky); }
.nav .login { color: var(--ink); }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: var(--r-sm); padding: .5rem .8rem; font: inherit; font-size: var(--t-sm); }
@media (max-width: 1200px) {
  .menu-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: .5rem var(--gutter) 1.5rem; }
  .nav.open { display: flex; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { display: block; padding: .85rem 0; border-bottom: 1px solid var(--line); font-size: var(--t-base); }
  .nav .login { padding: .85rem 0; }
  .nav .btn { justify-content: center; }
}

/* ---------- Bottoni ---------- */
.btn { display: inline-flex; align-items: center; gap: .5rem; font: inherit; font-weight: 600; font-size: var(--t-sm); text-decoration: none; cursor: pointer; padding: .8rem 1.3rem; border-radius: var(--r-pill); border: 1px solid transparent; transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-3); color: #fff; }
.btn-sky { background: var(--sky); color: var(--navy); }
.btn-sky:hover { background: var(--sky-light); color: var(--navy); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--paper); }
.btn-ghost:hover { border-color: var(--sky-ink); color: var(--ink); }
.navy .btn-ghost { background: transparent; color: #fff; border-color: rgba(156, 196, 246, .35); }
.navy .btn-ghost:hover { border-color: var(--sky); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.link-arrow { font-weight: 600; text-decoration: none; color: var(--sky-ink); font-size: var(--t-sm); }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Sezioni ---------- */
.section { padding-block: clamp(4rem, 8vw, 6.5rem); }
.section-sm { padding-block: clamp(2.5rem, 5vw, 3.75rem); }
.mist { background: var(--mist); }
.navy { background: radial-gradient(90% 120% at 85% 0%, var(--navy-3) 0%, transparent 60%), linear-gradient(180deg, var(--navy-2), var(--navy)); color: #fff; }
.navy p, .navy li { color: rgba(255, 255, 255, .8); }
.navy .lead { color: rgba(255, 255, 255, .8); }
.navy .kicker { color: var(--sky-light); }
.navy a:not(.btn) { color: var(--sky-light); }
.head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.head.center { margin-inline: auto; text-align: center; }
.head.center .lead { margin-inline: auto; }

/* ---------- Hero home ---------- */
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding-block: clamp(3.5rem, 7vw, 6rem) clamp(4rem, 8vw, 6.5rem); }
.hero h1 { color: #fff; }
.hero .lead { margin-bottom: 2rem; }
.hero-meta { margin-top: 1.4rem; font-size: var(--t-sm); color: rgba(255, 255, 255, .62) !important; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } }

/* Composizione di interfaccia nell'hero: vocale -> sintesi -> messaggio */
.flow { position: relative; display: grid; gap: 14px; max-width: 520px; justify-self: end; width: 100%; }
.flow .ui { position: relative; }
.flow .ui:nth-child(1) { width: 78%; }
.flow .ui:nth-child(2) { width: 92%; margin-left: 8%; }
.flow .ui:nth-child(3) { width: 84%; margin-left: 2%; }
@media (prefers-reduced-motion: no-preference) {
  .js .flow .ui { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
  .js .flow .ui:nth-child(2) { animation-delay: .35s; }
  .js .flow .ui:nth-child(3) { animation-delay: .7s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) { .flow { justify-self: stretch; max-width: none; } .flow .ui:nth-child(n) { width: 100%; margin-left: 0; } }

/* ---------- Frammenti di interfaccia ---------- */
.ui { background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-ui); font-size: .875rem; overflow: hidden; }
.navy .ui p, .navy .ui li { color: var(--ink); }
.ui-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .7rem 1rem; border-bottom: 1px solid var(--line); }
.ui-title { font-weight: 600; display: flex; align-items: center; gap: .55rem; }
.ui-label { font-size: var(--t-xs); color: var(--slate); }
.ui-body { padding: .9rem 1rem; }
.ui-body p { margin: 0 0 .5rem; line-height: 1.5; }
.ui-body p:last-child { margin-bottom: 0; }
.ui-foot { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .65rem 1rem; background: var(--mist); border-top: 1px solid var(--line); font-size: var(--t-xs); color: var(--slate); }
.chip { display: inline-flex; align-items: center; gap: .35rem; font-size: var(--t-xs); font-weight: 600; padding: .2rem .6rem; border-radius: var(--r-pill); background: var(--sky-wash); color: var(--navy-2); white-space: nowrap; }
.chip.ok { background: #e3f3eb; color: #1f6b49; }
.chip.warn { background: #fdf0de; color: #8a5414; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sky); flex: none; }
.mini-btn { display: inline-flex; font-size: var(--t-xs); font-weight: 600; padding: .35rem .75rem; border-radius: var(--r-pill); background: var(--navy); color: #fff; }
.mini-btn.light { background: var(--paper); color: var(--ink); border: 1px solid var(--line); }
.wave { display: flex; align-items: center; gap: 3px; height: 28px; flex: 1; }
.wave i { display: block; width: 3px; border-radius: 2px; background: var(--sky); }
.play-ic { width: 30px; height: 30px; border-radius: 50%; background: var(--navy); display: grid; place-items: center; flex: none; }
.play-ic::after { content: ""; border-left: 9px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 3px; }
.todo { list-style: none; margin: 0; padding: 0; }
.todo li { display: flex; gap: .6rem; align-items: baseline; padding: .3rem 0; }
.todo li::before { content: ""; width: 13px; height: 13px; border: 1.5px solid #9fb0c7; border-radius: 4px; flex: none; transform: translateY(2px); }
.todo .when { margin-left: auto; color: var(--slate); font-size: var(--t-xs); white-space: nowrap; }
.bubble { background: #e6f6ec; border-radius: 12px 12px 4px 12px; padding: .7rem .85rem; line-height: 1.5; }
.ui-table { width: 100%; border-collapse: collapse; font-size: var(--t-xs); }
.ui-table th, .ui-table td { text-align: left; padding: .55rem .75rem; border-bottom: 1px solid var(--line); }
.ui-table thead th { color: var(--slate); font-weight: 600; background: var(--mist); }
.ui-table td.num { font-variant-numeric: tabular-nums; }
.risk { display: inline-flex; gap: 2px; }
.risk i { width: 9px; height: 9px; border-radius: 2px; background: var(--line); }
.risk i.on { background: var(--sky-ink); }
.redact { background: var(--navy); color: transparent; border-radius: 3px; padding: 0 .2rem; user-select: none; }
.tag-anon { background: var(--sky-wash); color: var(--navy-2); border-radius: 4px; padding: 0 .3rem; font-weight: 600; }

/* ---------- Striscia di prova ---------- */
.proof { border-bottom: 1px solid var(--line); }
.proof .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.proof .item { padding: 1.75rem 1.5rem; border-left: 1px solid var(--line); }
.proof .item:first-child { border-left: 0; padding-left: 0; }
.proof strong { display: block; font-family: var(--serif); font-weight: 450; font-size: var(--t-xl); line-height: 1.1; margin-bottom: .3rem; }
.proof span { font-size: var(--t-sm); color: var(--slate); }
@media (max-width: 820px) {
  .proof .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof .item { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .proof .item:nth-child(-n+2) { border-top: 0; }
}

/* ---------- Bento dei servizi ---------- */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; }
.tile { grid-column: span 2; display: flex; flex-direction: column; background: var(--mist); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; text-decoration: none; color: inherit; }
.tile.wide { grid-column: span 3; }
.tile .copy { padding: 1.6rem 1.6rem 1.2rem; }
.tile h3 { font-family: var(--serif); font-weight: 500; font-size: var(--t-lg); letter-spacing: -0.01em; margin-bottom: .4rem; }
.tile p { color: var(--slate); margin-bottom: .9rem; }
.tile .stage { flex: 1; padding: .2rem 1.6rem 1.6rem; display: flex; flex-direction: column; justify-content: flex-start; gap: .75rem; }
.tile .stage .ui { width: 100%; border-radius: var(--r-md); box-shadow: 0 10px 28px -14px rgba(2, 26, 58, .25); }
.tile:hover h3 { color: var(--sky-ink); }
.tile.dark { background: var(--navy); border-color: var(--navy); color: #fff; }
.tile.dark p { color: rgba(255, 255, 255, .78); }
.tile.dark:hover h3 { color: var(--sky-light); }
.tile.dark .link-arrow { color: var(--sky-light); }
@media (max-width: 980px) { .tile, .tile.wide { grid-column: span 6; } }

/* ---------- Schede per fase ---------- */
.tabs-nav { display: inline-flex; gap: .25rem; padding: .3rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-pill); margin-bottom: 2rem; flex-wrap: wrap; }
.tabs-nav button { font: inherit; font-size: var(--t-sm); font-weight: 600; border: 0; background: none; color: var(--slate); padding: .6rem 1.1rem; border-radius: var(--r-pill); cursor: pointer; }
.tabs-nav button[aria-selected="true"] { background: var(--navy); color: #fff; }
.tab-panel { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.tab-panel + .tab-panel { margin-top: 3rem; }
.js .tab-panel + .tab-panel { margin-top: 0; }
.tab-panel h3 { font-family: var(--serif); font-weight: 500; font-size: var(--t-xl); letter-spacing: -0.01em; }
.tab-panel ul { margin: 0 0 1.5rem; padding: 0; list-style: none; }
.tab-panel li { padding: .7rem 0; border-top: 1px solid var(--line); }
.tab-panel li:last-child { border-bottom: 1px solid var(--line); }
.no-js .tabs-nav { display: none; }
@media (max-width: 900px) { .tab-panel { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Hero pagine interne ---------- */
.page-hero .wrap { padding-block: clamp(2.75rem, 6vw, 4.75rem) clamp(3rem, 6vw, 4.5rem); }
.page-hero.split .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 900px) { .page-hero.split .wrap { grid-template-columns: minmax(0, 1fr); } }
.page-hero h1 { font-size: var(--t-2xl); max-width: 22ch; }
.page-hero .btn-row { margin-top: 1.75rem; }
.crumbs { font-size: var(--t-xs); margin-bottom: 1.5rem; color: var(--slate); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.crumbs li + li::before { content: "/"; margin-right: .4rem; color: #a3b1c4; }
.crumbs a { color: var(--slate); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.navy .crumbs, .navy .crumbs a { color: rgba(255, 255, 255, .65) !important; }
.page-meta { margin-top: 1.25rem; font-size: var(--t-xs); color: var(--slate); }

/* ---------- In breve ---------- */
.brief { background: var(--sky-wash); border-radius: var(--r-lg); padding: clamp(1.4rem, 3vw, 2rem) clamp(1.4rem, 3vw, 2.25rem); max-width: 900px; }
.brief .label { font-family: var(--serif); font-size: var(--t-lg); line-height: 1.2; color: var(--navy-2); }
.brief h2 { font-family: var(--sans); font-size: var(--t-md); font-weight: 600; letter-spacing: 0; line-height: 1.35; margin-bottom: .6rem; }
.brief p:last-child { margin-bottom: 0; }
@media (max-width: 640px) { .brief { grid-template-columns: minmax(0, 1fr); gap: .5rem; } }

/* ---------- Due colonne ---------- */
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.two.center { align-items: center; }
@media (max-width: 860px) { .two { grid-template-columns: minmax(0, 1fr); } }

.facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.facts li { display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: 1rem; padding: .95rem 0; border-bottom: 1px solid var(--line); }
.facts li strong { font-weight: 600; }
.facts li span { color: var(--slate); }
.navy .facts, .navy .facts li { border-color: rgba(156, 196, 246, .2); }
.navy .facts li span { color: rgba(255, 255, 255, .8); }
@media (max-width: 560px) { .facts li { grid-template-columns: minmax(0, 1fr); gap: .15rem; } }

.check { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.check li { position: relative; padding-left: 1.7rem; margin-bottom: .65rem; }
.check li::before { content: ""; position: absolute; left: .1rem; top: .5em; width: .7rem; height: .38rem; border-left: 2px solid var(--sky-ink); border-bottom: 2px solid var(--sky-ink); transform: rotate(-45deg); }
.navy .check li::before { border-color: var(--sky); }

/* ---------- Tre colonne semplici ---------- */
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
@media (max-width: 860px) { .cols { grid-template-columns: minmax(0, 1fr); } }
.col h3 { margin-bottom: .4rem; }
.col p { color: var(--slate); margin: 0; }
.navy .col p { color: rgba(255, 255, 255, .78); }
.col .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--sky-wash); display: grid; place-items: center; margin-bottom: 1rem; color: var(--navy-2); }
.navy .col .ic { background: rgba(110, 168, 240, .16); color: var(--sky-light); }
.col .ic svg { width: 20px; height: 20px; }

/* ---------- Percorso: tappe ---------- */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; counter-reset: t; }
.timeline li { counter-increment: t; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.3rem 1.2rem; }
.timeline li::before { content: counter(t); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; font-size: var(--t-sm); margin-bottom: 1rem; }
.timeline .when { display: block; font-size: var(--t-xs); color: var(--sky-ink); font-weight: 600; margin-bottom: .35rem; }
.timeline h3 { font-size: var(--t-base); margin-bottom: .4rem; }
.timeline p { font-size: var(--t-sm); color: var(--slate); margin: 0; }
@media (max-width: 1000px) { .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .timeline { grid-template-columns: minmax(0, 1fr); } }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps > li { counter-increment: s; display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 1rem; padding: 1.4rem 0; border-top: 1px solid var(--line); }
.steps > li:last-child { border-bottom: 1px solid var(--line); }
.steps > li::before { content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--sky-ink); color: var(--sky-ink); font-weight: 700; font-size: var(--t-sm); }
.steps h3 { margin-bottom: .3rem; }
.steps p { margin: 0; color: var(--slate); max-width: 64ch; }

/* ---------- Tabelle di confronto ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); }
table.compare { border-collapse: collapse; width: 100%; min-width: 640px; font-size: var(--t-sm); }
table.compare th, table.compare td { text-align: left; vertical-align: top; padding: .95rem 1.15rem; border-bottom: 1px solid var(--line); }
table.compare thead th { background: var(--mist); font-size: var(--t-xs); color: var(--slate); font-weight: 600; }
table.compare tbody th { font-weight: 600; width: 22%; }
table.compare tr:last-child > * { border-bottom: 0; }
table.compare .us { background: var(--sky-wash); }
table.compare thead .us { color: var(--navy); }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 900px) { .team { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .team { grid-template-columns: minmax(0, 1fr); } }
.person .photo { aspect-ratio: 4 / 5; border-radius: var(--r-md); background: linear-gradient(160deg, var(--navy-3), var(--navy)); display: grid; place-items: center; margin-bottom: .9rem; overflow: hidden; color: var(--sky-light); font-family: var(--serif); font-size: 2.4rem; }
.person .photo img { width: 100%; height: 100%; object-fit: cover; }
.person h3 { margin-bottom: .1rem; }
.person p { color: var(--slate); font-size: var(--t-sm); margin: 0; }

/* ---------- Testimonianze video ---------- */
.videos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 900px) { .videos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .videos { grid-template-columns: minmax(0, 1fr); } }
.video-card figure { margin: 0; }
.video-frame { position: relative; aspect-ratio: 9 / 16; max-width: 100%; border-radius: var(--r-md); overflow: hidden; background: linear-gradient(170deg, var(--navy-3) 0%, var(--navy) 85%); display: grid; place-items: center; }
.video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; background: var(--navy); }
.videos { align-items: start; max-width: 60rem; margin-inline: auto; }
@media (min-width: 561px) and (max-width: 900px) { .videos > :last-child:nth-child(odd) { grid-column: 1 / -1; max-width: calc(50% - .625rem); justify-self: center; } }
.video-frame .play { width: 60px; height: 60px; border-radius: 50%; background: var(--sky); display: grid; place-items: center; }
.video-frame .play::after { content: ""; border-left: 17px solid var(--navy); border-top: 10px solid transparent; border-bottom: 10px solid transparent; margin-left: 5px; }
.video-frame .slot { position: absolute; left: 1rem; right: 1rem; bottom: 1rem; font-size: var(--t-xs); color: rgba(255, 255, 255, .65); text-align: center; }
.video-card figcaption { padding-top: 1rem; }
.video-card .quote { font-family: var(--serif); font-size: var(--t-lg); line-height: 1.25; margin-bottom: .5rem; color: inherit; }
.navy .video-card .quote { color: #fff; }
.video-card .who { font-size: var(--t-sm); color: var(--slate); margin: 0; }
.navy .video-card .who { color: rgba(255, 255, 255, .7); }
.video-card details { margin-top: .6rem; font-size: var(--t-sm); }
.video-card summary { cursor: pointer; color: var(--sky-ink); font-weight: 600; }
.navy .video-card summary { color: var(--sky-light); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1.5rem; align-items: baseline; padding: 1.25rem 0; font-weight: 600; font-size: var(--t-md); line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 1.5rem; line-height: 1; color: var(--sky-ink); flex: none; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 0 1.4rem; max-width: 70ch; color: var(--slate); }
.faq .a p:last-child { margin-bottom: 0; }
.faq-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(2rem, 5vw, 4rem); }
@media (max-width: 860px) { .faq-layout { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Garanzia ---------- */
.guarantee { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.guarantee .seal { width: clamp(104px, 12vw, 136px); aspect-ratio: 1; border-radius: 50%; border: 1.5px solid var(--sky); display: grid; place-items: center; text-align: center; font-family: var(--serif); font-size: var(--t-md); line-height: 1.15; padding: 1rem; color: var(--sky-light); }
.guarantee p.big { font-family: var(--serif); font-size: var(--t-xl); line-height: 1.25; color: #fff; margin: 0 0 .75rem; max-width: 36ch; }
@media (max-width: 560px) { .guarantee { grid-template-columns: minmax(0, 1fr); } }

/* ---------- CTA finale ---------- */
.cta .wrap { padding-block: clamp(4rem, 8vw, 6rem); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 2.5rem; align-items: end; }
.cta h2 { color: #fff; max-width: 20ch; margin-bottom: .4em; }
.cta p { max-width: 54ch; margin: 0; }
.cta .btn-row { justify-content: flex-end; }
@media (max-width: 860px) { .cta .wrap { grid-template-columns: minmax(0, 1fr); } .cta .btn-row { justify-content: flex-start; } }

/* ---------- Guide ---------- */
.doc { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 960px) { .doc { grid-template-columns: minmax(0, 1fr); } .toc { display: none; } }
.prose { max-width: 68ch; min-width: 0; font-size: 1.0938rem; line-height: 1.72; }
.prose h2 { font-size: var(--t-xl); margin-top: 2.3em; scroll-margin-top: 90px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: var(--t-md); margin-top: 1.8em; scroll-margin-top: 90px; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.25em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--sky-ink); }
.prose blockquote { margin: 1.75em 0; padding: .2rem 0 .2rem 1.25rem; border-left: 3px solid var(--sky); font-family: var(--serif); font-size: var(--t-lg); line-height: 1.3; }
.prose .note { background: var(--mist); border-radius: var(--r-md); padding: 1rem 1.25rem; font-size: var(--t-sm); margin: 1.75em 0; color: var(--slate); }
.prose .prompt { background: var(--navy); color: #e9f1fc; border-radius: var(--r-md); padding: 1rem 1.25rem; font-size: var(--t-sm); line-height: 1.6; margin: 1.4em 0; white-space: pre-wrap; }
.prose .prompt b { color: var(--sky-light); display: block; margin-bottom: .35rem; font-size: var(--t-xs); }
.prose .table-scroll { margin: 1.5em 0; }
.prose .sources { font-size: var(--t-sm); color: var(--slate); border-top: 1px solid var(--line); margin-top: 3em; padding-top: 1.5em; }
.prose .sources li { margin-bottom: .35em; }
.toc { position: sticky; top: 92px; font-size: var(--t-sm); }
.toc p { font-weight: 600; margin-bottom: .7rem; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc a { display: block; padding: .32rem 0 .32rem 1rem; color: var(--slate); text-decoration: none; margin-left: -2px; border-left: 2px solid transparent; }
.toc a:hover { color: var(--ink); border-left-color: var(--sky); }
.toc .toc-cta { margin-top: 2rem; padding: 1.2rem; background: var(--navy); color: #fff; border-radius: var(--r-md); }
.toc .toc-cta p { font-weight: 500; margin-bottom: .9rem; color: #fff; }

.guides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 760px) { .guides { grid-template-columns: minmax(0, 1fr); } }
.guide-item { display: flex; flex-direction: column; padding: 1.6rem; border: 1px solid var(--line); border-radius: var(--r-lg); text-decoration: none; color: inherit; background: var(--paper); }
.guide-item .kind { font-size: var(--t-xs); color: var(--sky-ink); font-weight: 600; margin-bottom: .6rem; }
.guide-item h3 { font-family: var(--serif); font-weight: 500; font-size: var(--t-lg); margin-bottom: .45rem; }
.guide-item p { color: var(--slate); margin: 0; }
.guide-item:hover { border-color: var(--sky); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .72); font-size: var(--t-sm); }
.site-footer .wrap { padding-block: 3.5rem 2.25rem; }
.site-footer .logo { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: minmax(0, 1fr); } }
.site-footer h2 { font-family: var(--sans); font-size: var(--t-sm); font-weight: 600; color: #fff; letter-spacing: 0; margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer a { color: rgba(255, 255, 255, .72); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.foot-about p { max-width: 38ch; margin-top: 1.1rem; }
.foot-legal { border-top: 1px solid rgba(156, 196, 246, .2); margin-top: 3rem; padding-top: 1.4rem; display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; font-size: var(--t-xs); color: rgba(255, 255, 255, .55); }

.small { font-size: var(--t-sm); }
.muted { color: var(--slate); }
.mt-2 { margin-top: 2rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tab-panel[hidden] { display: none; }
.hero h1 { font-size: clamp(2.4rem, 4.3vw, 3.55rem); }
@media (min-width: 901px) { .hero .wrap { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); } }
.nav .btn-primary, .nav .btn-primary:hover { color: #fff; }
.timeline-ui { list-style: none; margin: 0; padding: 0; }
.timeline-ui li { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: .75rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.timeline-ui li:last-child { border-bottom: 0; }
.timeline-ui .d { color: var(--slate); font-size: var(--t-xs); font-variant-numeric: tabular-nums; padding-top: .1rem; }

/* hero: quattro frammenti su due colonne sfalsate */
.flow.grid4 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; max-width: 600px; align-items: start; }
.flow.grid4 .ui:nth-child(n) { width: 100%; margin-left: 0; }
.flow.grid4 .col-b { display: grid; gap: 14px; margin-top: 44px; }
.flow.grid4 .col-a { display: grid; gap: 14px; }
@media (prefers-reduced-motion: no-preference) {
  .js .flow.grid4 .ui { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
  .js .flow.grid4 .col-a .ui:nth-child(2) { animation-delay: .25s; }
  .js .flow.grid4 .col-b .ui:nth-child(1) { animation-delay: .5s; }
  .js .flow.grid4 .col-b .ui:nth-child(2) { animation-delay: .75s; }
}
@media (max-width: 640px) { .flow.grid4 { grid-template-columns: minmax(0, 1fr); } .flow.grid4 .col-b { margin-top: 0; } }

/* informazioni sparse */
.sparse { position: relative; display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; padding: 1rem 0; }
.sparse .src { background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--shadow-ui); padding: .6rem .8rem; font-size: var(--t-sm); display: grid; gap: .1rem; max-width: 15rem; }
.sparse .src-k { font-size: var(--t-xs); font-weight: 600; color: var(--sky-ink); }
.sparse .src:nth-child(1) { transform: rotate(-3deg); }
.sparse .src:nth-child(2) { transform: rotate(2deg) translateY(10px); }
.sparse .src:nth-child(3) { transform: rotate(-1.5deg) translateY(-6px); }
.sparse .src:nth-child(4) { transform: rotate(3deg); }
.sparse .src:nth-child(5) { transform: rotate(-2.5deg) translateY(8px); }
.sparse .src:nth-child(6) { transform: rotate(1.5deg) translateY(-4px); }
.sparse .src:nth-child(7) { transform: rotate(-1deg) translateY(6px); }
.pain { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: .6rem; }
.pain li { position: relative; padding-left: 1.6rem; color: rgba(255, 255, 255, .85); }
.pain li::before { content: ""; position: absolute; left: 0; top: .55em; width: .65rem; height: .65rem; border-radius: 50%; border: 2px solid var(--sky); }
.navy .sparse .src span:not(.src-k) { color: var(--ink); }
.team.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .team.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .team.three { grid-template-columns: minmax(0, 1fr); } }
.tab-panel ul.long li { padding: .55rem 0; }
.flow.grid4 { max-width: 640px; }
.flow.grid4 .ui { font-size: .875rem; }
.flow.grid4 .ui-head { padding: .6rem .85rem; }
.flow.grid4 .ui-body { padding: .75rem .85rem; }
.ui-label, .ui-title { white-space: nowrap; }
.ui-head .ui-title { overflow: hidden; text-overflow: ellipsis; }
.mini-btn { white-space: nowrap; }
.ui-foot > span:first-child { min-width: 0; }

/* esempi per fase: elenco con icona e dettaglio a tendina */
.tab-panel.wide { display: block; }
.tab-panel.wide h3 { margin-bottom: 1.25rem; }
.ex-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem 1.25rem; align-items: start; }
@media (max-width: 760px) { .ex-grid { grid-template-columns: minmax(0, 1fr); } }
.ex { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); transition: border-color .15s ease, box-shadow .15s ease; }
.ex[open] { border-color: var(--sky); box-shadow: var(--shadow-ui); }
.ex summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .85rem; padding: .85rem 1rem; font-weight: 600; }
.ex summary::-webkit-details-marker { display: none; }
.ex summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--sky-ink); border-bottom: 2px solid var(--sky-ink); transform: rotate(45deg) translateY(-2px); transition: transform .2s ease; flex: none; }
.ex[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.ex-ic { width: 36px; height: 36px; border-radius: 10px; background: var(--sky-wash); color: var(--navy-2); display: grid; place-items: center; flex: none; }
.ex-ic svg { width: 19px; height: 19px; }
.ex p { margin: 0; padding: 0 1rem 1rem calc(1rem + 36px + .85rem); color: var(--slate); font-size: var(--t-sm); line-height: 1.6; }
@media (max-width: 460px) { .ex p { padding-left: 1rem; } }
@media (prefers-reduced-motion: no-preference) { .ex[open] p { animation: rise .25s ease-out; } }

/* riquadro di presentazione centrato */
.brief.center { margin-inline: auto; text-align: center; }
.brief.center p { margin-inline: auto; max-width: 70ch; }
.tab-panel[hidden] { display: none !important; }

/* provocazione nella pagina del percorso */
.provoke h2 { color: #fff; font-size: clamp(2rem, 3.6vw, 3rem); }
.chat { display: grid; gap: .6rem; }
.chat .msg { max-width: 85%; padding: .65rem .85rem; border-radius: 12px; line-height: 1.5; }
.chat .me { justify-self: end; background: var(--navy); color: #fff; border-bottom-right-radius: 4px; }
.chat .ai { justify-self: start; background: var(--mist); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.navy .chat .me { color: #fff; }

/* programma del percorso */
.plan { list-style: none; margin: 0; padding: 0; }
.plan li { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) auto; gap: .75rem; align-items: baseline; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.plan li:last-child { border-bottom: 0; }
.plan .w { font-size: var(--t-xs); font-weight: 600; color: var(--sky-ink); }
.plan .d { font-size: var(--t-xs); color: var(--slate); white-space: nowrap; }
@media (max-width: 460px) { .plan li { grid-template-columns: minmax(0, 1fr) auto; } .plan .w { grid-column: 1 / -1; } }

/* colonna CFBrain in evidenza nelle tabelle di confronto */
table.compare thead th.us { background: var(--navy); color: #fff; font-family: var(--serif); font-size: var(--t-lg); font-weight: 500; letter-spacing: -0.01em; vertical-align: middle; }
table.compare td.us { background: var(--sky-wash); color: var(--ink); font-weight: 600; font-size: var(--t-base); border-left: 2px solid var(--sky); border-right: 2px solid var(--sky); }
table.compare tbody tr:last-child td.us { border-bottom: 2px solid var(--sky); }

/* dato in evidenza unico */
.proof.single .wrap { display: flex; align-items: center; gap: clamp(1.25rem, 4vw, 3rem); padding-block: clamp(1.75rem, 4vw, 2.75rem); }
.proof.single strong { font-family: var(--serif); font-weight: 450; font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1; white-space: nowrap; color: var(--navy); }
.proof.single p { margin: 0; color: var(--slate); max-width: 62ch; font-size: var(--t-base); }
.proof.single .big-line { color: var(--ink); font-family: var(--serif); font-size: var(--t-lg); font-weight: 450; line-height: 1.25; margin-bottom: .35rem; }
.proof.single strong { padding-right: clamp(1.25rem, 4vw, 3rem); border-right: 1px solid var(--line); }
@media (max-width: 640px) { .proof.single strong { border-right: 0; padding-right: 0; } }
@media (max-width: 640px) { .proof.single .wrap { flex-direction: column; align-items: flex-start; gap: .75rem; } }

.person .photo { aspect-ratio: 560 / 582; background: var(--mist); }
.person .photo img { object-position: center top; }

.toc .toc-cta a.btn { display: inline-flex; color: var(--navy); border-left: 0; margin-left: 0; padding: .7rem 1.1rem; }
.toc .toc-cta a.btn:hover { color: var(--navy); }

.disclaimer { font-size: var(--t-xs); color: var(--slate); border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 2.5rem; }

.kid-example { max-width: 560px; margin: 1.5em 0; }
.prose .ui p { margin: 0 0 .5rem; }

/* dati di mercato */
.data-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 900px) { .data-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .data-grid { grid-template-columns: minmax(0, 1fr); } }
.data-card { margin: 0; padding: 1.5rem; border-radius: var(--r-lg); background: rgba(255, 255, 255, .06); border: 1px solid rgba(156, 196, 246, .2); display: flex; flex-direction: column; }
.data-card strong { font-family: var(--serif); font-weight: 450; font-size: clamp(2rem, 3.4vw, 2.75rem); line-height: 1.05; color: #fff; margin-bottom: .75rem; }
.data-card p { margin: 0 0 1rem; color: rgba(255, 255, 255, .85); }
.data-card .src { margin-top: auto; font-size: var(--t-xs); color: var(--sky-light) !important; }
.light .data-card { background: var(--paper); border-color: var(--line); }
.light .data-card strong { color: var(--navy); }
.light .data-card p { color: var(--slate); }
.light .data-card .src { color: var(--sky-ink) !important; }

/* newsletter */
.nl-form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--shadow-ui); }
.nl-form > label[for="nl-email"] { display: block; font-weight: 600; margin-bottom: .5rem; }
.nl-row { display: flex; gap: .6rem; flex-wrap: wrap; }
.nl-row input { flex: 1 1 14rem; min-width: 0; font: inherit; padding: .8rem 1rem; border: 1px solid #b9c6d8; border-radius: var(--r-pill); background: var(--paper); color: var(--ink); }
.nl-row input:focus-visible { outline: 3px solid var(--sky); outline-offset: 1px; }
.nl-note { margin: .9rem 0 0; font-size: var(--t-sm); line-height: 1.5; color: var(--slate); }
.nl-note a { color: var(--sky-ink); }
.nl-status { margin: .9rem 0 0; font-size: var(--t-sm); font-weight: 600; color: var(--ok); min-height: 1.2em; }
.nl-status.error { color: #b3261e; }
.hp { position: absolute; left: -9999px; }

/* autore */
.author { display: flex; gap: 1rem; align-items: center; margin-top: 2.5rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--mist); }
.author img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: center top; flex: none; }
.author p { margin: 0; font-size: var(--t-sm); color: var(--slate); line-height: 1.55; }
.author .who { color: var(--ink); margin-bottom: .25rem; }
.byline { display: inline-flex; align-items: center; gap: .6rem; }
.byline img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; object-position: center top; }

.prose .data-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 1.25em 0; }
@media (max-width: 560px) { .prose .data-grid { grid-template-columns: minmax(0, 1fr); } }
.prose .data-card strong { font-size: 2rem; }
.page-meta .byline { color: var(--slate); }

/* Dalla chat all'assistente */
.shift { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 1.25rem; align-items: stretch; margin-top: 2.5rem; }
.shift-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.4rem, 3vw, 2rem); }
.shift-card.after { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: 0 24px 48px -28px rgba(2, 26, 58, .55); }
.shift-label { font-family: var(--serif); font-size: var(--t-lg); line-height: 1.2; margin: 0 0 1.1rem; color: var(--ink); }
.shift-card.after .shift-label { color: #fff; }
.shift-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.shift-list li { position: relative; padding-left: 1.9rem; font-size: var(--t-sm); line-height: 1.5; color: var(--slate); }
.shift-card.after .shift-list li { color: rgba(255, 255, 255, .86); }
.shift-list li::before { content: ""; position: absolute; left: 0; top: .1rem; width: 1.2rem; height: 1.2rem; border-radius: 50%; }
.shift-list.no li::before { background: #eef1f5; box-shadow: inset 0 0 0 1px var(--line); }
.shift-list.no li::after { content: ""; position: absolute; left: .35rem; top: .66rem; width: .5rem; height: 2px; background: #8a97a8; }
.shift-list.yes li::before { background: var(--sky); }
.shift-list.yes li::after { content: ""; position: absolute; left: .42rem; top: .33rem; width: .3rem; height: .58rem; border: solid var(--navy); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.shift-arrow { align-self: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--sky); position: relative; }
.shift-arrow::after { content: ""; position: absolute; left: 50%; top: 50%; width: .6rem; height: .6rem; border: solid var(--navy); border-width: 2px 2px 0 0; transform: translate(-65%, -50%) rotate(45deg); }
@media (max-width: 760px) {
  .shift { grid-template-columns: minmax(0, 1fr); }
  .shift-arrow { justify-self: center; transform: rotate(90deg); }
}

/* Obiettivo su fondo scuro */
.navy.shift-section .head h2 { max-width: 22ch; }
.navy .shift-card { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16); }
.navy .shift-card .shift-label { color: #fff; }
.navy .shift-card .shift-list li { color: rgba(255, 255, 255, .78); }
.navy .shift-list.no li::before { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.navy .shift-list.no li::after { background: rgba(255, 255, 255, .6); }
.navy .shift-card.after { background: #fff; border-color: #fff; color: var(--ink); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.navy .shift-card.after .shift-label { color: var(--ink); }
.navy .shift-card.after .shift-list li { color: var(--slate); }
.shift-outcome { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.navy .shift-outcome { border-top-color: rgba(255, 255, 255, .16); }
.shift-outcome-title { font-size: var(--t-sm); font-weight: 600; letter-spacing: .02em; color: var(--sky-ink); margin: 0 0 1.1rem; }
.navy .shift-outcome-title { color: var(--sky-light); }
.shift-outcome ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.shift-outcome li { display: grid; gap: .35rem; }
.shift-outcome strong { font-family: var(--serif); font-weight: 400; font-size: var(--t-lg); line-height: 1.2; }
.shift-outcome span { font-size: var(--t-sm); line-height: 1.5; color: var(--slate); }
.navy .shift-outcome span { color: rgba(255, 255, 255, .75); }
@media (max-width: 760px) { .shift-outcome ul { grid-template-columns: minmax(0, 1fr); } }

/* Tasto per tornare indietro */
.back-link { display: inline-flex; align-items: center; gap: .55rem; margin-bottom: 1.1rem; padding: .45rem .95rem .45rem .5rem; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--paper); color: var(--ink); font-size: var(--t-sm); font-weight: 600; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.back-link:hover { border-color: var(--sky); box-shadow: 0 6px 16px -10px rgba(2, 26, 58, .4); }
.back-link:focus-visible { outline: 2px solid var(--sky-ink); outline-offset: 2px; }
.back-arrow { width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--navy); position: relative; flex: none; transition: transform .15s; }
.back-arrow::after { content: ""; position: absolute; left: 50%; top: 50%; width: .42rem; height: .42rem; border: solid #fff; border-width: 0 0 2px 2px; transform: translate(-35%, -50%) rotate(45deg); }
.back-link:hover .back-arrow { transform: translateX(-2px); }
.back-link + .crumbs { margin-top: 0; }

/* Chi seguiamo: etichette nella fascia «Oltre 100» */
.who-chips { list-style: none; margin: .6rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.who-chips li { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .8rem .35rem .4rem; border-radius: var(--r-pill); background: var(--sky-wash); color: var(--navy-2); font-size: var(--t-sm); font-weight: 600; }
.who-chips .ic { width: 1.6rem; height: 1.6rem; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.who-chips .ic svg { width: .95rem; height: .95rem; }

/* Dati di mercato come grafici */
.viz-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-top: 2rem; }
@media (max-width: 860px) { .viz-grid { grid-template-columns: minmax(0, 1fr); } }
.viz { margin: 0; padding: 1.6rem; border-radius: var(--r-lg); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); display: grid; grid-template-rows: 150px auto; gap: 1.25rem; }
.viz figcaption { font-size: var(--t-sm); line-height: 1.5; color: rgba(255, 255, 255, .78); }
.viz figcaption strong { display: block; font-family: var(--serif); font-weight: 400; font-size: var(--t-xl); line-height: 1.05; color: #fff; margin-bottom: .35rem; }
.viz .src { display: block; margin-top: .6rem; font-size: var(--t-xs); color: var(--sky-light); }
.viz .bar { display: block; background: rgba(255, 255, 255, .28); border-radius: 6px; }
.viz .bar.hi { background: var(--sky); }
.viz em { font-style: normal; font-weight: 600; font-size: var(--t-sm); color: #fff; }
.viz small { font-size: var(--t-xs); color: rgba(255, 255, 255, .65); }
.viz-bars { display: flex; align-items: flex-end; justify-content: center; gap: 2.2rem; height: 150px; }
.viz-bars > div { height: 100%; width: 3.4rem; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: .3rem; }
.viz-bars .bar { width: 100%; border-radius: 8px 8px 3px 3px; order: 1; }
.viz-bars em { order: 0; }
.viz-bars small { order: 2; }
.viz-ring { --p: 50; width: 140px; height: 140px; margin: 0 auto; border-radius: 50%; background: conic-gradient(var(--sky) calc(var(--p) * 1%), rgba(255, 255, 255, .16) 0); display: grid; place-items: center; position: relative; }
.viz-ring::before { content: ""; position: absolute; inset: 16px; border-radius: 50%; background: var(--navy); }
.viz-ring span { position: relative; font-family: var(--serif); font-size: 2rem; color: #fff; }
.viz-h { display: grid; align-content: center; gap: 1.1rem; height: 150px; }
.viz-h > div { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr) 2.6rem; align-items: center; gap: .6rem; }
.viz-h .bar { height: 1.1rem; min-width: 6px; }
.viz-h > div > .bar { justify-self: start; }
.viz-h em { text-align: right; }

/* Numeri grandi nella fascia di provocazione */
.stat-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.75rem; }
.stat-row > div { padding: 1.2rem 1.3rem; border-radius: var(--r-md); background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); }
.stat-row strong { display: block; font-family: var(--serif); font-weight: 400; font-size: var(--t-xl); line-height: 1.05; color: #fff; margin-bottom: .4rem; }
.stat-row span { display: block; font-size: var(--t-sm); line-height: 1.45; color: rgba(255, 255, 255, .78); }
.stat-row .src { display: inline-block; margin-top: .55rem; font-size: var(--t-xs); color: var(--sky-light); }
@media (max-width: 520px) { .stat-row { grid-template-columns: minmax(0, 1fr); } }

/* Riquadri della home su telefono: i titoli vanno a capo invece di essere tagliati */
@media (max-width: 560px) {
  .tile .stage { padding: .2rem 1rem 1rem; }
  .tile .ui-head { flex-wrap: wrap; row-gap: .35rem; }
  .tile .ui-head .ui-title { white-space: normal; overflow: visible; }
}


/* ---------- Apertura della home: vetrina dell'assistente AI ---------- */
.showcase { position: relative; width: 100%; max-width: 600px; justify-self: end; }
.sc-glow { position: absolute; inset: 8% -6% 4% -6%; background: radial-gradient(closest-side, rgba(110, 168, 240, .45), transparent 75%); filter: blur(30px); z-index: 0; pointer-events: none; }
.sc-window { position: relative; z-index: 1; border-radius: 22px; background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .06)); border: 1px solid rgba(255, 255, 255, .2); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .65); padding: .9rem; backdrop-filter: blur(6px); }
.sc-bar { display: flex; align-items: center; gap: .75rem; padding: .15rem .35rem .8rem; color: #fff; font-size: .875rem; }
.sc-dots { display: flex; gap: .35rem; }
.sc-dots i { width: .6rem; height: .6rem; border-radius: 50%; background: rgba(255, 255, 255, .28); }
.sc-name { display: flex; align-items: center; gap: .5rem; font-weight: 600; }
.sc-name img { border-radius: 5px; background: #fff; padding: 2px; }
.sc-live { margin-left: auto; display: inline-flex; align-items: center; gap: .4rem; font-size: .75rem; color: var(--sky-light); }
.sc-live::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: #4fd18b; box-shadow: 0 0 0 3px rgba(79, 209, 139, .25); }
.sc-prompt { display: flex; align-items: center; gap: .75rem; padding: .85rem 1rem; border-radius: 14px; background: #fff; color: var(--ink); box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .5); }
.sc-you { flex: none; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: .7rem; font-weight: 700; }
.sc-text { flex: 1; margin: 0; font-size: 1rem; font-weight: 500; line-height: 1.4; min-height: 2.8em; display: flex; align-items: center; flex-wrap: wrap; }
.sc-caret { display: inline-block; width: 2px; height: 1.15em; margin-left: 2px; background: var(--sky-ink); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.sc-send { flex: none; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--sky); position: relative; }
.sc-send::after { content: ""; position: absolute; left: 50%; top: 50%; width: .5rem; height: .5rem; border: solid var(--navy); border-width: 2px 2px 0 0; transform: translate(-65%, -50%) rotate(45deg); }
.sc-out { display: grid; margin-top: .8rem; }
.sc-scene { grid-area: 1 / 1; opacity: 0; transform: translateY(10px) scale(.985); transition: opacity .45s ease, transform .45s ease; visibility: hidden; }
.sc-scene.is-on { opacity: 1; transform: none; visibility: visible; }
.sc-scene .ui { box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .55); }
.sc-pills { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 1.1rem; }
.sc-pill { font: inherit; font-size: .875rem; font-weight: 600; padding: .45rem .95rem; border-radius: var(--r-pill); border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .06); color: #fff; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.sc-pill:hover { border-color: var(--sky-light); }
.sc-pill[aria-pressed="true"] { background: var(--sky); border-color: var(--sky); color: var(--navy); }
.sc-pill:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .sc-scene { transition: none; } .sc-caret { animation: none; } }
@media (max-width: 900px) { .showcase { justify-self: stretch; max-width: none; } }
@media (max-width: 480px) { .sc-window { padding: .6rem; } .sc-text { font-size: .9375rem; } .sc-live { display: none; } }
.hero .sc-prompt .sc-text { color: var(--ink); }
.sc-name img { background: var(--navy); }

.hero { overflow: hidden; }

/* Aperture scure con la vetrina (Percorso, Piattaforma) */
.navy .sc-prompt .sc-text { color: var(--ink); }
.page-hero.navy { overflow: hidden; }
.page-hero.navy h1 { color: #fff; }
.page-hero.navy .crumbs, .page-hero.navy .crumbs a { color: rgba(255, 255, 255, .7); }
.page-hero.navy .crumbs a:hover { color: #fff; }
.page-hero.navy .crumbs li + li::before { color: rgba(255, 255, 255, .4); }
.page-hero.navy .back-link { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .22); color: #fff; }
.page-hero.navy .back-arrow { background: var(--sky); }
.page-hero.navy .back-arrow::after { border-color: var(--navy); }
.page-hero.split .showcase { justify-self: stretch; }

/* La finestra si adatta all'esempio mostrato; lo spazio della vetrina resta fisso per non spostare la pagina */
.showcase.fit .sc-out { position: relative; transition: height .45s ease; }
.showcase.fit .sc-scene { position: absolute; top: 0; left: 0; right: 0; }
@media (prefers-reduced-motion: reduce) { .showcase.fit .sc-out { transition: none; } }
.sc-text { display: block; align-self: center; min-height: 0; }
.sc-caret { vertical-align: -0.2em; }

/* Pulsante «Prenota» nell'intestazione: fuori dal menu, nascosto finché si vede quello in apertura di pagina */
.site-header .wrap { justify-content: flex-start; }
.nav { margin-left: auto; }
.nav-cta { flex: none; transition: opacity .25s ease, transform .25s ease, visibility .25s; }
.site-header.cta-hidden .nav-cta { opacity: 0; visibility: hidden; transform: translateY(-4px); pointer-events: none; }
@media (max-width: 1200px) {
  .site-header .wrap { gap: .6rem; }
  .nav-cta { margin-left: auto; }
}
@media (max-width: 520px) {
  .nav-cta { padding: .55rem .9rem; font-size: .875rem; }
  .cta-long { display: none; }
  .menu-toggle { padding: .5rem .7rem; }
}
.hero h1 + .btn-row { margin-top: 2rem; }
.nav-cta { gap: 0; }

/* ---------- Modulo «Prenota la call» (finestra e pagina) ---------- */
.bk-dialog { width: min(560px, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); padding: 0; border: 0; border-radius: 22px; background: var(--paper); color: var(--ink); box-shadow: 0 40px 90px -30px rgba(2, 26, 58, .6); overflow: auto; }
.bk-dialog::backdrop { background: rgba(2, 26, 58, .55); backdrop-filter: blur(4px); }
.bk-dialog[open] { animation: bk-in .28s cubic-bezier(.2, .7, .2, 1); }
@keyframes bk-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.bk-box { position: relative; padding: clamp(1.5rem, 4vw, 2.25rem); }
.bk-box h2 { font-size: var(--t-xl); margin: .35rem 0 .5rem; }
.bk-intro { color: var(--slate); margin: 0 0 1.4rem; }
.bk-close { position: absolute; top: 1rem; right: 1rem; width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); cursor: pointer; }
.bk-close::before, .bk-close::after { content: ""; position: absolute; left: 50%; top: 50%; width: 1rem; height: 2px; background: var(--ink); }
.bk-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.bk-close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.bk-close:hover { border-color: var(--sky-ink); }
.bk-close:focus-visible, .bk-field input:focus-visible { outline: 2px solid var(--sky-ink); outline-offset: 2px; }
.bk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 520px) { .bk-grid { grid-template-columns: minmax(0, 1fr); } }
.bk-field { display: grid; gap: .4rem; }
.bk-field label { font-size: .875rem; font-weight: 600; color: var(--ink); }
.bk-field input { font: inherit; font-size: 1rem; padding: .8rem 1rem; border: 1px solid #c9d4e3; border-radius: 12px; background: #fff; color: var(--ink); width: 100%; }
.bk-field input:hover { border-color: #a9b8cc; }
.bk-submit { width: 100%; justify-content: center; margin-top: 1.25rem; padding-block: .95rem; }
.bk-note { margin: .9rem 0 0; font-size: .875rem; color: var(--slate); }
.bk-note a { color: var(--sky-ink); }
.bk-status { margin: .6rem 0 0; font-size: .875rem; font-weight: 600; min-height: 1.2em; }
.bk-status.error { color: #b42318; }
.bk-done { text-align: center; padding: 1rem 0 .5rem; }
.bk-done h3 { font-family: var(--serif); font-weight: 400; font-size: var(--t-lg); margin: 1rem 0 .4rem; }
.bk-done p { color: var(--slate); margin-bottom: 1.4rem; }
.bk-ok { display: inline-block; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: #e3f3eb; position: relative; }
.bk-ok::after { content: ""; position: absolute; left: 50%; top: 45%; width: .8rem; height: 1.4rem; border: solid #1f6b49; border-width: 0 3px 3px 0; transform: translate(-50%, -50%) rotate(45deg); }
.bk-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.25rem, 3vw, 1.75rem); box-shadow: var(--shadow-ui); }
body.bk-open { overflow: hidden; }
.bk-box [hidden] { display: none !important; }

.bk-phone { display: flex; align-items: stretch; border: 1px solid #c9d4e3; border-radius: 12px; background: #fff; overflow: hidden; }
.bk-phone:hover { border-color: #a9b8cc; }
.bk-phone:focus-within { outline: 2px solid var(--sky-ink); outline-offset: 2px; }
.bk-prefix { display: flex; align-items: center; padding: 0 .8rem; background: var(--mist); border-right: 1px solid #c9d4e3; font-weight: 600; color: var(--ink); }
.bk-phone input { border: 0; border-radius: 0; }
.bk-phone input:focus-visible { outline: none; }
.bk-hint { font-size: .8125rem; color: var(--slate); }
.bk-field.invalid .bk-phone, .bk-field.invalid > input { border-color: #b42318; }
.bk-field.invalid .bk-hint { color: #b42318; font-weight: 600; }
.bk-consent { display: flex; gap: .6rem; align-items: flex-start; margin-top: 1.1rem; font-size: .875rem; line-height: 1.45; color: var(--slate); cursor: pointer; }
.bk-consent input { margin-top: .2rem; width: 1.05rem; height: 1.05rem; flex: none; accent-color: var(--navy); }
.bk-field { align-content: start; }

/* Conferma dei campi compilati bene */
.bk-hint:empty { display: none; }
.bk-field { position: relative; }
.bk-field.valid > input, .bk-field.valid .bk-phone { border-color: #2e8b57; }
.bk-field.valid > input { padding-right: 2.6rem; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232e8b57' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") no-repeat right .9rem center / 1.1rem; }
.bk-field.valid .bk-phone input { padding-right: 2.6rem; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232e8b57' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") no-repeat right .9rem center / 1.1rem; }

/* Risultati raccontati dai consulenti */
.results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 0 auto 2rem; max-width: 60rem; }
.results > div { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.3rem 1.4rem; display: grid; gap: .35rem; align-content: start; }
.results strong { font-family: var(--serif); font-weight: 400; font-size: var(--t-xl); line-height: 1.05; color: var(--navy); }
.results span { font-size: var(--t-sm); line-height: 1.45; color: var(--ink); }
.results em { font-style: normal; font-size: .8125rem; color: var(--slate); }
@media (max-width: 760px) { .results { grid-template-columns: minmax(0, 1fr); } }
/* Aree cliccabili di almeno 24px per i link isolati (WCAG 2.2, 2.5.8) */
.link-arrow, .crumbs a, .viz .src, .stat-row .src, .faq-layout .lead a { display: inline-block; padding-block: .25rem; min-height: 24px; }

/* ---------- Calcolatore del tempo (bigliettini) ---------- */
.calc .head { max-width: 46rem; }
.calc-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .95fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; margin-top: 2rem; }
@media (max-width: 900px) { .calc-grid { grid-template-columns: minmax(0, 1fr); } }
.notes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 640px) { .notes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; } }
.cnote { --bg: #fff4b8; position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 9.5rem; padding: .85rem .85rem .7rem; background: var(--bg); color: #1d2433; border-radius: 4px 4px 14px 4px; box-shadow: 0 1px 0 rgba(0, 0, 0, .06), 0 14px 26px -16px rgba(0, 0, 0, .65); transform: rotate(var(--r, -1deg)); opacity: .55; transition: opacity .25s, transform .25s, box-shadow .25s; }
.cnote:nth-child(3n+2) { --r: 1.2deg; } .cnote:nth-child(4n+3) { --r: -.6deg; } .cnote:nth-child(5n+4) { --r: .8deg; }
.cnote.c1 { --bg: #dcebff; } .cnote.c2 { --bg: #ffe0ec; } .cnote.c3 { --bg: #dcf5e3; }
.cnote.on { opacity: 1; transform: rotate(var(--r, -1deg)) translateY(-3px); box-shadow: 0 2px 0 rgba(0, 0, 0, .06), 0 22px 34px -18px rgba(0, 0, 0, .7); }
.cnote::before { content: ""; position: absolute; top: -9px; left: 50%; width: 3.2rem; height: 1rem; transform: translateX(-50%) rotate(-2deg); background: rgba(255, 255, 255, .55); box-shadow: 0 1px 2px rgba(0, 0, 0, .1); }
.note-pick { all: unset; cursor: pointer; display: block; flex: 1; border-radius: 6px; }
.note-pick:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.note-t { display: block; font-family: "Caveat", "Comic Sans MS", cursive; font-weight: 600; font-size: 1.4rem; line-height: 1.1; }
.note-in { width: 100%; border: 0; border-bottom: 2px dashed rgba(29, 36, 51, .35); background: transparent; font-family: "Caveat", cursive; font-weight: 600; font-size: 1.4rem; color: #1d2433; padding: .1rem 0; }
.note-in:focus { outline: none; border-bottom-color: var(--navy); }
.note-in::placeholder { color: rgba(29, 36, 51, .55); }
.note-h { display: flex; align-items: center; gap: .35rem; margin-top: .6rem; }
.note-m, .note-p { width: 2rem; height: 2rem; border-radius: 50%; border: 1px solid rgba(29, 36, 51, .25); background: rgba(255, 255, 255, .7); color: #1d2433; font: inherit; font-weight: 700; font-size: 1.05rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.note-m:hover, .note-p:hover { background: #fff; }
.note-m:focus-visible, .note-p:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.note-v { min-width: 1.6rem; text-align: center; font-weight: 700; font-size: 1.05rem; }
.note-u { font-size: .8125rem; color: rgba(29, 36, 51, .7); margin-right: auto; }
.note-h .note-p { margin-left: auto; }
.note-h { justify-content: flex-start; }
.calc-out { position: sticky; top: 92px; border-radius: 22px; padding: clamp(1.25rem, 3vw, 1.75rem); background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .04)); border: 1px solid rgba(255, 255, 255, .18); display: grid; gap: 1rem; }
@media (max-width: 900px) { .calc-out { position: static; } }
.co-step { display: grid; gap: .15rem; }
.co-k { font-size: .8125rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--sky-light); }
.co-n { font-family: var(--sans); font-weight: 700; font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 1; color: #fff; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.co-u { font-size: 1rem; color: rgba(255, 255, 255, .85); }
.co-d { font-size: .9375rem; color: rgba(255, 255, 255, .75); }
.co-d b { color: #fff; }
.co-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.co-bars:empty { display: none; }
.co-bars li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .2rem .6rem; font-size: .8125rem; color: rgba(255, 255, 255, .85); }
.co-bars i { grid-column: 1 / -1; display: block; height: .45rem; border-radius: 99px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.co-bars i::after { content: ""; display: block; height: 100%; width: var(--w, 0%); border-radius: inherit; background: linear-gradient(90deg, var(--sky), #9cc4f6); transition: width .5s ease; }
.co-half { padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, .16); }
.co-q { font-family: var(--serif); font-size: var(--t-lg); line-height: 1.2; color: #fff; margin-bottom: .35rem; }
.co-old { font-size: 1.1rem; font-weight: 700; color: rgba(255, 255, 255, .45); text-decoration: line-through; }
.co-old:empty { display: none; }
.co-big { color: var(--sky-light); font-size: clamp(3rem, 7vw, 4.4rem); }
.co-cta { justify-content: center; }
.co-note { margin: 0; font-size: .8125rem; color: rgba(255, 255, 255, .6); }
.calc .co-half, .calc .co-year { transition: opacity .3s; }
.calc:not(.has-data) .co-half, .calc:not(.has-data) .co-year { opacity: .35; }
.calc .cnote, .calc .cnote .note-t, .calc .cnote .note-v, .calc .cnote .note-m, .calc .cnote .note-p { color: #1d2433; }
.calc .cnote .note-u { color: rgba(29, 36, 51, .7); }
.cnote { opacity: .78; filter: saturate(.55); }
.cnote.on { opacity: 1; filter: none; }
.cnote.on::after { content: ""; position: absolute; top: .55rem; right: .6rem; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: #1d2433 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") no-repeat center / .8rem; }
.note-t { padding-right: 1.4rem; }
.note-in { padding-right: 1.6rem; }

/* Voce di menu del calcolatore */
.nav a.nav-calc { color: var(--sky-ink); font-weight: 600; display: inline-flex; align-items: center; gap: .4rem; }
.nav a.nav-calc::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--sky); box-shadow: 0 0 0 3px rgba(110, 168, 240, .25); }
@media (min-width: 1201px) and (max-width: 1320px) { .nav ul { gap: 1rem; } .nav { gap: 1.1rem; } }

/* Pagina Sicurezza */
.sec-pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 820px) { .sec-pillars { grid-template-columns: minmax(0, 1fr); } }
.sec-card { padding: 1.6rem; border-radius: var(--r-lg); background: var(--mist); border: 1px solid var(--line); }
.sec-card h2 { font-size: var(--t-lg); margin: 1rem 0 .4rem; }
.sec-card p { margin: 0; color: var(--slate); }
.sec-ic { width: 3rem; height: 3rem; border-radius: 14px; background: var(--navy); color: #fff; display: grid; place-items: center; }
.sec-ic svg { width: 1.4rem; height: 1.4rem; }
.nav a { white-space: nowrap; }

/* Anteprima del calcolatore in home */
.calc-teaser .wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: center; padding-block: clamp(2.75rem, 6vw, 4.5rem); }
.calc-teaser h2 { color: #fff; }
.calc-teaser .lead { margin-bottom: 1.5rem; }
.ct-notes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
.ct-notes .cnote { min-height: 7.5rem; opacity: 1; filter: none; }
.ct-notes .cnote b { font-size: 1.1rem; color: #1d2433; }
.ct-notes .cnote .note-t { color: #1d2433; font-size: 1.3rem; }
.ct-notes .cnote:nth-child(2) { transform: rotate(2deg) translateY(10px); }
@media (max-width: 820px) { .calc-teaser .wrap { grid-template-columns: minmax(0, 1fr); } .ct-notes { order: 2; } }

/* ---------- La settimana del consulente ---------- */
.week { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
@media (max-width: 1100px) { .week { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .week { grid-template-columns: minmax(0, 1fr); } }
.wk { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.3rem; box-shadow: 0 12px 30px -24px rgba(2, 26, 58, .5); }
.wk-top { display: flex; align-items: center; gap: .6rem; margin-bottom: .9rem; }
.wk-ic { width: 2.2rem; height: 2.2rem; border-radius: 10px; background: var(--navy); color: #fff; display: grid; place-items: center; flex: none; }
.wk-ic svg { width: 1.1rem; height: 1.1rem; }
.wk-when { font-weight: 600; font-size: .875rem; color: var(--sky-ink); letter-spacing: .01em; }
.wk-sit { font-family: var(--serif); font-size: 1.2rem; line-height: 1.3; color: var(--ink); margin: 0 0 1rem; }
.wk-ba { margin: auto 0 0; display: grid; gap: .5rem; }
.wk-ba > div { padding: .7rem .8rem; border-radius: 12px; background: var(--mist); }
.wk-ba dt { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--slate); margin-bottom: .2rem; }
.wk-ba dd { margin: 0; font-size: .9375rem; line-height: 1.45; color: var(--slate); }
.wk-ba .wk-ai { background: var(--navy); }
.wk-ba .wk-ai dt { color: var(--sky-light); }
.wk-ba .wk-ai dd { color: #fff; }

/* ---------- Le obiezioni ---------- */
.objections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin-top: 2rem; }
@media (max-width: 760px) { .objections { grid-template-columns: minmax(0, 1fr); } }
.obj { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.4rem, 3vw, 2rem); display: grid; gap: .8rem; align-content: start; }
.obj-q { font-family: var(--serif); font-size: var(--t-xl); line-height: 1.15; color: var(--navy); margin: 0; }
.obj p:not(.obj-q) { margin: 0; color: var(--slate); }
.viz .src { display: block; }

/* ---------- Storia del cliente (Piattaforma) ---------- */
.cstory { margin-top: 2rem; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-ui); overflow: hidden; }
.cs-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.4rem; border-bottom: 1px solid var(--line); }
.cs-name { font-weight: 600; }
.cs-track { list-style: none; margin: 0; padding: 2rem 1.4rem 1.6rem; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; position: relative; }
.cs-track::before { content: ""; position: absolute; left: 2.2rem; right: 2.2rem; top: 2.45rem; height: 2px; background: linear-gradient(90deg, var(--line), var(--sky)); }
.cs-step { position: relative; padding-top: 1.6rem; display: grid; gap: .3rem; align-content: start; }
.cs-step::before { content: ""; position: absolute; top: .1rem; left: .2rem; width: .85rem; height: .85rem; border-radius: 50%; background: #fff; border: 2px solid var(--sky); }
.cs-y { font-size: .8125rem; font-weight: 700; color: var(--sky-ink); }
.cs-t { font-weight: 600; color: var(--ink); }
.cs-d { font-size: .9375rem; line-height: 1.45; color: var(--slate); }
.cs-step.key { background: #fff8e1; border-radius: 12px; padding: 1.6rem .7rem .7rem; margin: -.0rem -.3rem 0; }
.cs-step.key::before { border-color: #c98a00; background: #ffd666; left: .7rem; }
.cs-step.key .cs-y { color: #8a5414; }
.cs-step.now::before { background: var(--navy); border-color: var(--navy); box-shadow: 0 0 0 4px rgba(110, 168, 240, .35); }
.cs-foot { margin: 1.25rem 0 0; font-family: var(--serif); font-size: var(--t-lg); line-height: 1.3; color: var(--navy); max-width: 44rem; }
@media (max-width: 900px) {
  .cs-track { grid-template-columns: minmax(0, 1fr); gap: 1.1rem; padding-left: 2.6rem; }
  .cs-track::before { left: 1.75rem; right: auto; top: 2rem; bottom: 2rem; width: 2px; height: auto; background: linear-gradient(180deg, var(--line), var(--sky)); }
  .cs-step { padding-top: 0; }
  .cs-step::before { left: -1.25rem; top: .15rem; }
  .cs-step.key { padding: .7rem; margin: 0 -.7rem; }
  .cs-step.key::before { left: -.55rem; top: .85rem; }
}

/* Due fasce scure una dopo l'altra: la seconda parte dal colore con cui finisce la prima, senza stacco */
.navy + .navy { background: radial-gradient(80% 90% at 15% 100%, var(--navy-3) 0%, transparent 65%), linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%); }
.navy + .navy + .navy { background: linear-gradient(180deg, var(--navy-2) 0%, var(--navy) 100%); }
.page-hero.navy + .navy.section { padding-top: clamp(1rem, 3vw, 2.5rem); }

/* Vetrina: strumenti di mercato + metodo CFBrain */
.sc-spark { width: 18px; height: 18px; border-radius: 5px; background: linear-gradient(135deg, var(--sky), #9cc4f6); position: relative; flex: none; }
.sc-spark::after { content: "✦"; position: absolute; inset: 0; display: grid; place-items: center; font-size: .7rem; color: var(--navy); }
.sc-method { margin-left: auto; font-size: .75rem; font-weight: 600; padding: .2rem .6rem; border-radius: var(--r-pill); background: rgba(110, 168, 240, .18); color: var(--sky-light); white-space: nowrap; }
.sc-note { position: relative; z-index: 1; margin: 1rem auto 0; max-width: 34rem; text-align: center; font-size: .875rem; line-height: 1.5; color: rgba(255, 255, 255, .72); }
@media (max-width: 480px) { .sc-method { display: none; } }

.hero .hero-lead { margin: 1.25rem 0 0; max-width: 34rem; }
.hero .hero-lead + .btn-row { margin-top: 2rem; }

.stat-row .stat-wide { grid-column: 1 / -1; }

/* Testimonianze su telefono: scorrono di lato invece di stare una sotto l'altra */
@media (max-width: 560px) {
  .videos { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .75rem; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: thin; }
  .videos > * { scroll-snap-align: start; }
}
@media (max-width: 760px) { .tile .stage .ui + .ui { display: none; } }

/* ---------- Prompt collegati agli usi ---------- */
.pchip { display: inline-flex; align-items: center; gap: .5rem; margin: 0 1rem 1rem calc(1rem + 36px + .85rem); padding: .35rem .75rem .35rem .4rem; border-radius: var(--r-pill); background: var(--sky-wash); color: var(--navy-2); font-size: .875rem; font-weight: 600; text-decoration: none; }
.pchip:hover { background: #d7e7fb; }
.pchip-n { padding: .15rem .5rem; border-radius: var(--r-pill); background: var(--navy); color: #fff; font-size: .75rem; font-weight: 700; white-space: nowrap; }
@media (max-width: 760px) { .pchip { margin-left: 1rem; } }

/* ---------- Pagina Guide: raccolta di prompt ---------- */
.pf-grid { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
@media (max-width: 820px) { .pf-grid { grid-template-columns: minmax(0, 1fr); } .pf-cover { max-width: 220px; } }
.pf-cover img { width: 100%; height: auto; border-radius: 10px; box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .7); transform: rotate(-2deg); }
.pf-band h2 { color: #fff; }
.pf-form { margin-top: 1.5rem; background: #fff; color: var(--ink); border-radius: var(--r-lg); padding: clamp(1.1rem, 3vw, 1.5rem); }
.pf-form .pf-email { margin-top: 1rem; }
.pf-note { margin: .8rem 0 0; font-size: .875rem; color: var(--slate); }
.pf-note a { color: var(--sky-ink); }
.pf-done { text-align: center; padding: .5rem 0; }
.pf-ok { font-family: var(--serif); font-size: var(--t-lg); margin: 0 0 1rem; color: var(--ink); }
.pf-form [hidden] { display: none !important; }
.gu-jump { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0 1rem; }
.gu-jump a { padding: .45rem .95rem; border-radius: var(--r-pill); background: var(--mist); border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: .9375rem; text-decoration: none; }
.gu-jump a:hover { border-color: var(--sky-ink); }
.gu-phase { margin-top: 2.5rem; scroll-margin-top: 90px; }
.gu-ph-head h3 { font-family: var(--serif); font-weight: 400; font-size: var(--t-xl); margin: .1rem 0 1rem; }
.gu-ph-head .kicker { margin-bottom: 0; }
.gu-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.gu-row { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, .9fr); gap: .6rem 1rem; align-items: center; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); }
.gu-ic { width: 36px; height: 36px; border-radius: 10px; background: var(--sky-wash); color: var(--navy-2); display: grid; place-items: center; }
.gu-ic svg { width: 18px; height: 18px; }
.gu-use h4 { margin: 0 0 .15rem; font-size: 1rem; font-weight: 600; }
.gu-use p { margin: 0; font-size: .9375rem; color: var(--slate); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gu-prompt { display: inline-flex; align-items: center; gap: .55rem; justify-self: start; padding: .4rem .8rem .4rem .45rem; border-radius: var(--r-pill); background: var(--sky-wash); color: var(--navy-2); font-size: .875rem; font-weight: 600; text-decoration: none; }
.gu-prompt:hover { background: #d7e7fb; }
.gu-art { grid-column: 3; justify-self: start; font-size: .875rem; color: var(--sky-ink); font-weight: 600; }
@media (max-width: 760px) { .gu-row { grid-template-columns: auto minmax(0, 1fr); } .gu-prompt, .gu-art { grid-column: 2; } }
.pl { display: grid; gap: 1.25rem; align-content: start; }
.pl-k { margin: 0 0 .4rem; font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--sky-ink); }
.pl ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.pl li { display: flex; gap: .7rem; align-items: baseline; padding: .45rem 0; border-bottom: 1px solid var(--line); }
.pl-n { font-weight: 700; color: var(--navy); min-width: 1.6rem; }
.pl .btn { justify-self: start; }
.navy .pf-form p, .navy .pf-form label, .navy .pf-form span { color: var(--slate); }
.navy .pf-form .bk-field label { color: var(--ink); }
.navy .pf-form .pf-ok { color: var(--ink); }
.navy .pf-form a:not(.btn) { color: var(--sky-ink); }

/* Fascia della raccolta più compatta */
.pf-grid { grid-template-columns: minmax(0, 220px) minmax(0, 1fr); }
@media (max-width: 820px) { .pf-grid { grid-template-columns: minmax(0, 1fr); } .pf-cover { display: none; } }
.pf-band.section { padding-block: clamp(2.5rem, 5vw, 3.5rem); }

/* Home: titolo senza grafica accanto */
.hero.hero-solo .wrap { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; padding-block: clamp(4rem, 9vw, 7rem); }
.hero.hero-solo h1 { max-width: 20ch; margin-inline: auto; font-size: clamp(2.4rem, 5.2vw, 4.2rem); }
.hero.hero-solo .hero-lead { max-width: 38rem; margin-inline: auto; }
.hero.hero-solo .btn-row { justify-content: center; }
/* Home: card dei due servizi solo testo */
.bento-text .tile .copy { padding: 2rem 2rem 1.8rem; display: flex; flex-direction: column; height: 100%; }
.bento-text .tile .copy p { flex: 1; }
.pf-guide { margin-top: 1.4rem; }
.navy .pf-guide .link-arrow { color: var(--sky-light); }
.back-link { display: flex; width: fit-content; margin-bottom: 1.5rem; }

/* Pulsanti «Prenota consulenza gratuita»: bordo luminoso animato (adattato da Shiny Button) */
@property --gradient-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@property --gradient-angle-offset { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@property --gradient-percent { syntax: "<percentage>"; initial-value: 5%; inherits: false; }
@property --gradient-shine { syntax: "<color>"; initial-value: white; inherits: false; }
.btn:is([data-book], .btn-shiny) {
  --shiny-bg: var(--navy);
  --shiny-bg-subtle: var(--navy-2);
  --shiny-fg: #fff;
  --shiny-highlight: var(--sky);
  --shiny-highlight-subtle: var(--sky-light);
  --shiny-dots: rgba(255, 255, 255, .9);
  --duration: 3s;
  --shiny-transition: 800ms cubic-bezier(.25, 1, .5, 1);
  isolation: isolate; position: relative; overflow: hidden;
  color: var(--shiny-fg);
  border: 1px solid transparent;
  background:
    linear-gradient(var(--shiny-bg), var(--shiny-bg)) padding-box,
    conic-gradient(from calc(var(--gradient-angle) - var(--gradient-angle-offset)),
      transparent,
      var(--shiny-highlight) var(--gradient-percent),
      var(--gradient-shine) calc(var(--gradient-percent) * 2),
      var(--shiny-highlight) calc(var(--gradient-percent) * 3),
      transparent calc(var(--gradient-percent) * 4)) border-box;
  box-shadow: inset 0 0 0 1px var(--shiny-bg-subtle);
  transition: var(--shiny-transition);
  transition-property: --gradient-angle-offset, --gradient-percent, --gradient-shine, box-shadow, opacity, transform, visibility;
}
/* Variante chiara sulle sezioni blu */
.btn-sky:is([data-book], .btn-shiny) {
  --shiny-bg: var(--sky);
  --shiny-bg-subtle: var(--sky-light);
  --shiny-fg: var(--navy);
  --shiny-highlight: #fff;
  --shiny-highlight-subtle: var(--sky-wash);
  --shiny-dots: rgba(2, 26, 58, .55);
}
.btn:is([data-book], .btn-shiny):hover { color: var(--shiny-fg); }
.btn:is([data-book], .btn-shiny)::before, .btn:is([data-book], .btn-shiny)::after {
  content: ""; pointer-events: none; position: absolute;
  inset-inline-start: 50%; inset-block-start: 50%; translate: -50% -50%; z-index: -1;
}
/* Puntini che seguono la luce */
.btn:is([data-book], .btn-shiny)::before {
  --size: calc(100% - 6px);
  width: var(--size); height: var(--size);
  background: radial-gradient(circle at 2px 2px, var(--shiny-dots) .5px, transparent 0) padding-box;
  background-size: 4px 4px; background-repeat: space;
  mask-image: conic-gradient(from calc(var(--gradient-angle) + 45deg), black, transparent 10% 90%, black);
  border-radius: inherit; opacity: .35;
}
/* Riflesso interno */
.btn:is([data-book], .btn-shiny)::after {
  width: 100%; aspect-ratio: 1;
  background: linear-gradient(-50deg, transparent, var(--shiny-highlight), transparent);
  mask-image: radial-gradient(circle at bottom, transparent 40%, black);
  opacity: .5;
}
.btn:is([data-book], .btn-shiny) { animation: shiny-angle var(--duration) linear infinite, shiny-angle calc(var(--duration) / .4) linear infinite reverse paused; animation-composition: add; }
.btn:is([data-book], .btn-shiny)::before { animation: shiny-angle var(--duration) linear infinite, shiny-angle calc(var(--duration) / .4) linear infinite reverse paused; animation-composition: add; }
.btn:is([data-book], .btn-shiny)::after { animation: shiny-spin var(--duration) linear infinite, shiny-spin calc(var(--duration) / .4) linear infinite reverse paused; animation-composition: add; }
.btn:is([data-book], .btn-shiny):is(:hover, :focus-visible) {
  --gradient-percent: 20%;
  --gradient-angle-offset: 95deg;
  --gradient-shine: var(--shiny-highlight-subtle);
  box-shadow: inset 0 0 0 1px var(--shiny-bg-subtle), 0 8px 26px -10px var(--shiny-highlight);
}
.btn:is([data-book], .btn-shiny):is(:hover, :focus-visible),
.btn:is([data-book], .btn-shiny):is(:hover, :focus-visible)::before,
.btn:is([data-book], .btn-shiny):is(:hover, :focus-visible)::after { animation-play-state: running; }
.btn:is([data-book], .btn-shiny):active { translate: 0 1px; }
@keyframes shiny-angle { to { --gradient-angle: 360deg; } }
@keyframes shiny-spin { to { rotate: 360deg; } }
@media (prefers-reduced-motion: reduce) {
  .btn:is([data-book], .btn-shiny), .btn:is([data-book], .btn-shiny)::before, .btn:is([data-book], .btn-shiny)::after { animation: none; }
}

/* =====================================================================
   TEMA SCURO «UPSTART» CON I COLORI CF BRAIN
   Fondo quasi nero con riflessi blu, menu a pillola sospeso, titoli in Syne
   con l'ultima parola in corsivo serif, etichette a pillola, card scure.
   ===================================================================== */
@font-face { font-family: "Syne"; font-style: normal; font-display: swap; font-weight: 500; src: url("../fonts/syne-latin-500.woff2") format("woff2"); }
@font-face { font-family: "Syne"; font-style: normal; font-display: swap; font-weight: 600; src: url("../fonts/syne-latin-600.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: italic; font-display: swap; font-weight: 400; src: url("../fonts/newsreader-latin-italic.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  --bg: #021a3a;
  --navy: #02214a;
  --navy-2: #032a5d;
  --navy-3: #05336c;
  --accent: #4d86d6;
  --accent-hi: #6ea8f0;
  --sky: #6ea8f0;
  --sky-light: #9cc4f6;
  --sky-ink: #8dbaf4;
  --sky-wash: rgba(110, 168, 240, .12);
  --paper: #032a5d;
  --mist: #02214a;
  --line: rgba(156, 196, 247, .14);
  --ink: #eef2f8;
  --slate: #a7b3c6;
  --ok: #5fd39a;
  --display: "Syne", "Archivo", sans-serif;
  --shadow-ui: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 24px 48px -24px rgba(0, 0, 0, .7);
  --card: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012)), var(--paper);
}
body { background: var(--bg); color: var(--ink); }
a:hover { color: #fff; }
::selection { background: var(--accent); color: #fff; }

/* Titoli */
h1, h2 { font-family: var(--display); font-weight: 500; letter-spacing: -0.02em; line-height: 1.08; color: #fff; }
h3 { color: #fff; }
h1 em, h2 em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; font-size: 1.06em; color: #fff; }
.brief h2, .brief h2 em, .site-footer h2 { font-family: var(--sans); font-style: normal; font-size: inherit; }
.lead { color: var(--slate); }
.tile h3, .tab-panel h3, .guide-item h3, .shift-label, .video-card .quote, .brief .label { font-family: var(--display); font-weight: 500; letter-spacing: -0.01em; color: #fff; }
.video-card .quote { font-size: var(--t-md); line-height: 1.35; }

/* Etichette a pillola con stellina */
.kicker { display: inline-flex; align-items: center; gap: .45rem; padding: .32rem .85rem; border-radius: var(--r-pill); background: rgba(77, 134, 214, .16); border: 1px solid rgba(110, 168, 240, .28); color: #dce8fb; font-size: var(--t-xs); font-weight: 600; letter-spacing: .01em; }
.kicker::after { content: "✦"; color: var(--sky-light); font-size: .8em; }
.navy .kicker { color: #dce8fb; }

/* Menu a pillola sospeso */
.site-header { background: transparent; backdrop-filter: none; border-bottom: 0; padding-top: 12px; pointer-events: none; }
.site-header .wrap { pointer-events: auto; background: rgba(2, 33, 74, .72); backdrop-filter: saturate(150%) blur(16px); -webkit-backdrop-filter: saturate(150%) blur(16px); border: 1px solid var(--line); border-radius: var(--r-pill); min-height: 60px; padding: 0 .45rem 0 1.25rem; box-shadow: 0 16px 40px -24px rgba(0, 0, 0, .8); }
.logo { color: #fff; gap: .55rem; }
.logo .mark { width: 30px; height: auto; }
.site-footer .logo .mark { width: 34px; }
.nav ul { gap: .2rem; }
.nav a { color: #c9d3e3; }
.nav ul a { padding: .45rem .85rem; border-radius: var(--r-pill); }
.nav ul a:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.nav a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .08); box-shadow: none; }
.nav .login { color: #fff; }
.nav a.nav-calc { color: var(--sky-light); }
.menu-toggle { color: #fff; border-color: var(--line); border-radius: var(--r-pill); background: rgba(255, 255, 255, .04); }
@media (max-width: 1200px) {
  .site-header .wrap { position: relative; }
  .nav { top: calc(100% + 8px); left: 0; right: 0; background: rgba(2, 33, 74, .97); border: 1px solid var(--line); border-radius: 22px; padding: .5rem 1.25rem 1.25rem; box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .9); }
  .nav ul a { border-radius: 0; padding: .85rem 0; }
  .nav ul a:hover { background: none; }
}
@media (max-width: 400px) { .site-header .wrap { padding-left: .9rem; } .logo .mark { display: none; } }

/* Bottoni */
.btn-primary, .btn-sky { background: var(--accent); color: #fff; }
.btn-primary:hover, .btn-sky:hover { background: var(--accent-hi); color: #fff; }
.btn-ghost, .navy .btn-ghost { background: rgba(255, 255, 255, .03); color: #fff; border-color: rgba(156, 196, 247, .26); }
.btn-ghost:hover, .navy .btn-ghost:hover { border-color: var(--sky); color: #fff; background: rgba(255, 255, 255, .06); }
.btn:is([data-book], .btn-shiny), .btn-sky:is([data-book], .btn-shiny) {
  --shiny-bg: var(--accent); --shiny-bg-subtle: #6ea8f0; --shiny-fg: var(--on-accent);
  --shiny-highlight: #9cc4f7; --shiny-highlight-subtle: #dceafd; --shiny-dots: rgba(255, 255, 255, .85);
}
.toc .toc-cta a.btn, .toc .toc-cta a.btn:hover { color: #fff; }
.link-arrow { color: var(--sky-light); }
.link-arrow::after { content: " →"; }

/* Sezioni senza stacchi: fondo unico, riflessi blu */
.mist { background: radial-gradient(60% 50% at 50% 0%, rgba(77, 134, 214, .10), transparent 70%), var(--bg); }
.navy { background: radial-gradient(70% 60% at 50% 0%, rgba(77, 134, 214, .22), transparent 70%), var(--bg); color: var(--ink); }
.navy + .navy { background: var(--bg); }
.navy p, .navy li, .navy .lead { color: var(--slate); }
.section > .wrap > .head { margin-inline: auto; text-align: center; }
.section > .wrap > .head .lead { margin-inline: auto; }

/* Hero home: titolo centrato e riflesso dal basso */
.hero { position: relative; background: radial-gradient(55% 55% at 50% 108%, rgba(77, 134, 214, .65), rgba(5, 51, 108, .35) 45%, transparent 75%), var(--bg); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(156, 196, 247, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(156, 196, 247, .05) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(60% 60% at 50% 40%, black, transparent 80%); pointer-events: none; }
.hero .wrap { position: relative; }
.hero.hero-solo .wrap { padding-block: clamp(5rem, 11vw, 8.5rem) clamp(4rem, 8vw, 6rem); }
.hero.hero-solo h1 { font-size: clamp(2.3rem, 5.4vw, 4.4rem); max-width: 18ch; }
.hero .hero-lead { color: #c3cddc; }

/* Striscia che scorre */
.ticker-label { margin: 3rem 0 .9rem; font-size: var(--t-xs); color: #8f9db3 !important; }
.ticker { width: min(100%, 860px); margin-inline: auto; overflow: hidden; mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent); }
.ticker-track { display: flex; width: max-content; }
.ticker ul { list-style: none; display: flex; margin: 0; padding: 0; }
.ticker li { display: inline-flex; align-items: center; white-space: nowrap; font-family: var(--display); font-weight: 500; font-size: 1.05rem; color: #dbe3ef !important; padding-right: 2.2rem; }
.ticker li::before { content: "✦"; color: var(--sky); margin-right: 2.2rem; font-size: .8em; }
@media (prefers-reduced-motion: no-preference) { .ticker-track { animation: ticker 38s linear infinite; } }
@media (prefers-reduced-motion: reduce) { .ticker ul[aria-hidden] { display: none; } .ticker-track { flex-wrap: wrap; justify-content: center; width: auto; } }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Card scure con bordo sottile */
.tile, .tile.dark, .shift-card, .guide-item, .ex, .timeline li, .nl-form, .author, .table-scroll, .obj, .wk, .data-card, .light .data-card, .brief, .calc-out, .bk-box, .ui, .sparse .src {
  background: var(--card); border: 1px solid var(--line); color: var(--ink); box-shadow: var(--shadow-ui);
}
.tile, .shift-card, .guide-item, .nl-form, .obj, .wk, .data-card { border-radius: 20px; }
.tile.dark, .shift-card.after { background: radial-gradient(120% 90% at 0% 0%, rgba(77, 134, 214, .35), transparent 60%), var(--card); border-color: rgba(110, 168, 240, .3); }
.tile p, .tile.dark p { color: var(--slate); }
.tile:hover, .guide-item:hover { border-color: rgba(110, 168, 240, .45); }
.tile:hover h3, .tile.dark:hover h3 { color: var(--sky-light); }
.brief { background: radial-gradient(90% 120% at 0% 0%, rgba(77, 134, 214, .18), transparent 60%), var(--card); }
.brief .label { color: var(--sky-light); }
.data-card strong, .light .data-card strong { color: #fff; }
.data-card p, .light .data-card p { color: var(--slate); }
.shift-label { color: #fff; }

/* Dati e numeri */
.proof { border-bottom-color: var(--line); }
.proof.single strong { color: #fff; font-family: var(--display); font-weight: 500; }
.proof.single .big-line { color: #fff; }

/* Frammenti di interfaccia, chip e tabelle */
.ui-foot, .ui-table thead th, table.compare thead th { background: rgba(255, 255, 255, .03); }
.chip { color: var(--sky-light); }
.chip.ok { background: rgba(95, 211, 154, .14); color: #8be4b7; }
.chip.warn { background: rgba(240, 177, 92, .14); color: #f3c98b; }
.bubble { background: rgba(95, 211, 154, .12); }
.tag-anon { color: var(--sky-light); }
.mini-btn { background: var(--accent); }
.mini-btn.light { background: rgba(255, 255, 255, .04); }
.play-ic { background: var(--accent); }
.redact { background: #2a3550; }
table.compare .us, table.compare td.us { background: rgba(77, 134, 214, .14); }
table.compare thead th.us { background: var(--accent); }
table.compare thead .us { color: #fff; }
.timeline li::before { background: var(--accent); }
.steps > li::before { border-color: var(--sky); color: var(--sky-light); }
.check li::before { border-color: var(--sky); }
.col .ic, .ex-ic { background: rgba(77, 134, 214, .18); color: var(--sky-light); }
.who-chips .ic { background: rgba(255, 255, 255, .08); }
.tabs-nav { background: rgba(255, 255, 255, .03); }
.tabs-nav button[aria-selected="true"] { background: var(--accent); }
.chat .me { background: var(--accent); }
.chat .ai { background: rgba(255, 255, 255, .04); }
.prose .prompt { background: radial-gradient(100% 120% at 0% 0%, rgba(77, 134, 214, .25), transparent 60%), #0a1224; border: 1px solid rgba(110, 168, 240, .25); }
.prose .note { background: rgba(255, 255, 255, .04); }
.prose li::marker { color: var(--sky); }
.toc .toc-cta { background: radial-gradient(120% 100% at 0% 0%, rgba(77, 134, 214, .4), transparent 60%), var(--paper); border: 1px solid rgba(110, 168, 240, .3); }
.pchip:hover, .gu-prompt:hover { background: rgba(77, 134, 214, .22); }
.cs-step.key { background: rgba(255, 214, 102, .1); }

/* FAQ a schede */
.faq { border-top: 0; display: grid; gap: .65rem; }
.faq details { border: 1px solid var(--line); border-radius: 16px; background: var(--card); padding: 0 1.3rem; transition: border-color .2s ease, background .2s ease; }
.faq details[open] { background: radial-gradient(120% 140% at 0% 0%, rgba(77, 134, 214, .3), transparent 65%), var(--paper); border-color: rgba(110, 168, 240, .35); }
.faq summary { font-size: var(--t-base); padding: 1.1rem 0; }
.faq summary::after { content: "↗"; font-size: 1.05rem; color: var(--sky-light); }
.faq details[open] summary::after { transform: rotate(90deg); }

/* Moduli */
input, textarea, select { color-scheme: dark; }
.nl-row input, .bk-field input, .bk-phone, .pf-form input, .contact-form input, .contact-form textarea { background-color: #011630 !important; color: var(--ink); border-color: rgba(156, 196, 247, .24) !important; }
.bk-phone input { background: transparent !important; }
.bk-prefix { background: rgba(255, 255, 255, .05); color: var(--slate); border-color: rgba(156, 196, 247, .24); }
.bk-dialog { background: transparent; color: var(--ink); }
.bk-dialog::backdrop { background: rgba(1, 14, 32, .7); }
.bk-ok { background: rgba(95, 211, 154, .16); }

/* Hero delle pagine interne */
.page-hero, .page-hero.navy, .page-hero.mist { background: radial-gradient(60% 90% at 50% -10%, rgba(77, 134, 214, .35), transparent 70%), var(--bg); }
.page-hero h1 { color: #fff; }
.back-link { background: rgba(255, 255, 255, .04); border-color: var(--line); color: #fff; }

/* Footer con riflesso */
.site-footer { background: radial-gradient(60% 70% at 50% 120%, rgba(77, 134, 214, .4), transparent 70%), #011630; border-top: 1px solid var(--line); color: var(--slate); }
.site-footer a { color: #b9c4d6; }
.foot-legal { border-top-color: var(--line); color: #8f9db3; }

/* Correzioni del tema scuro */
.logo .wordmark { flex: none; width: 118px; }
.site-header .logo { flex: none; }
.nav .login { padding: .45rem .5rem; }
.skip { color: #fff; }
.who-chips li { background: rgba(255, 255, 255, .05); border: 1px solid var(--line); color: #dbe3ef; }
.who-chips .ic { color: var(--sky-light); }
.wk-sit { font-family: var(--sans); font-weight: 500; font-size: 1.08rem; line-height: 1.45; color: #fff; }
.obj-q, .cs-foot, .results strong { font-family: var(--display); font-weight: 500; color: #fff; }
.obj-q { font-size: var(--t-lg); }
.cs-step.now::before { background: var(--accent); border-color: var(--accent); }
.sc-spark::after { color: #fff; }
.pchip, .gu-prompt { color: #dbe3ef; }
.gu-ic { background: rgba(77, 134, 214, .18); color: var(--sky-light); }
.pl-n { color: var(--sky-light); }
.bk-consent input { accent-color: var(--accent); }
.page-hero.navy .back-arrow::after { border-color: #fff; }
/* riflessi sfumati su tutti i lati: nessuna linea netta tra le sezioni */
.mist { background: radial-gradient(50% 45% at 50% 50%, rgba(77, 134, 214, .09), transparent 100%), var(--bg); }
.navy { background: radial-gradient(55% 55% at 50% 50%, rgba(77, 134, 214, .2), transparent 100%), var(--bg); }
.navy + .navy { background: radial-gradient(55% 55% at 50% 50%, rgba(77, 134, 214, .12), transparent 100%), var(--bg); }
.proof { border-bottom: 0; }
.site-header .wrap { gap: .75rem; }
.nav ul a { padding: .45rem .7rem; }
.nav { gap: .9rem; }
@media (max-width: 1320px) and (min-width: 1201px) { .nav ul a { padding: .45rem .5rem; font-size: .9375rem; } }
@media (max-width: 560px) { .logo .mark { display: none; } .site-header .wrap { padding-left: 1rem; } }
.pf-form { background: var(--card); border: 1px solid var(--line); }
.navy .pf-form p, .navy .pf-form label, .navy .pf-form span { color: #c9d3e3; }
.pf-form label { color: #dbe3ef; }
.navy .shift-card.after .shift-label { color: #fff; }
.sc-prompt { background: #0d1528; border: 1px solid rgba(110, 168, 240, .3); }
.navy .shift-card.after { background: radial-gradient(120% 90% at 0% 0%, rgba(77, 134, 214, .35), transparent 60%), var(--card); border-color: rgba(110, 168, 240, .3); color: var(--ink); }
.cs-step::before { background: var(--bg); }
@media (max-width: 560px) {
  .site-header .wrap { gap: .45rem; padding-right: .35rem; }
  .logo .wordmark { width: 96px; }
  .nav-cta { padding: .5rem .8rem; font-size: .8125rem; }
  .menu-toggle { padding: .45rem .75rem; }
}
@media (max-width: 380px) {
  .site-header .wrap { width: calc(100% - 16px); padding-left: .8rem; }
  .logo .wordmark { width: 84px; }
  .nav-cta { padding: .45rem .7rem; font-size: .78rem; }
  .menu-toggle { padding: .42rem .6rem; font-size: .875rem; }
}
/* tutti i testi «display» in Syne; il serif resta solo per la parola in corsivo dei titoli */
:root { --serif: "Syne", "Archivo", sans-serif; --italic: "Newsreader", Georgia, serif; }
h1 em, h2 em { font-family: var(--italic); }
.site-header .wrap { width: min(100% - 2 * var(--gutter), 1280px); }
.nav ul a { padding: .45rem .6rem; }
@media (max-width: 1440px) { .nav-cta .cta-long { display: none; } }
.brief h2 em { font-weight: inherit; }
@media (max-width: 1280px) and (min-width: 1201px) { .nav ul a { font-size: .875rem; padding: .4rem .45rem; } .nav { gap: .5rem; } .logo .mark { display: none; } }
.hero.hero-solo .wrap > div { min-width: 0; width: 100%; }
@media (max-width: 1200px) { .site-header .nav { background: #032a5d; } .nav a.nav-calc { display: flex; } }

/* Menu: tutte le voci alla stessa altezza, stesso effetto al passaggio del mouse */
@media (min-width: 1201px) {
  .nav, .nav ul { align-items: center; }
  .nav ul li { display: flex; }
  .nav ul a, .nav .login { display: inline-flex; align-items: center; gap: .4rem; height: 38px; padding: 0 .7rem; line-height: 1; border-radius: var(--r-pill); font-size: var(--t-sm); font-weight: 500; transition: background-color .15s ease, color .15s ease; }
  .nav ul a:hover, .nav .login:hover { color: #fff; background: rgba(255, 255, 255, .07); text-decoration: none; }
  .nav .login { color: #fff; }
}
@media (max-width: 1280px) and (min-width: 1201px) { .nav ul a, .nav .login { padding: 0 .45rem; font-size: .875rem; } }

/* Home: titolo su tre righe */
@media (min-width: 900px) { .hero.hero-solo h1 { max-width: 25ch; font-size: clamp(2.6rem, 4.6vw, 4.1rem); } }
/* Home: titolo su tre righe fisse */
@media (min-width: 900px) {
  .hero.hero-solo h1 { max-width: none; font-size: clamp(2.4rem, 4.1vw, 4rem); }
  .hero.hero-solo h1 .l { display: block; white-space: nowrap; }
}
@media (min-width: 900px) { .hero.hero-solo h1 { font-size: clamp(2.4rem, 5.4vw, 4.9rem); } }

/* Menu centrato: la pillola si adatta al contenuto e si allarga quando compare «Prenota consulenza» */
@media (min-width: 1201px) {
  .site-header .wrap { width: fit-content; max-width: min(100% - 2 * var(--gutter), 1280px); justify-content: flex-start; gap: 1.25rem; padding: 0 .45rem 0 1.25rem; }
  .site-header .nav-cta {
    max-width: 320px; white-space: nowrap; overflow: hidden;
    transition: max-width .55s cubic-bezier(.22, 1, .36, 1), padding .55s cubic-bezier(.22, 1, .36, 1), margin .55s cubic-bezier(.22, 1, .36, 1), opacity .35s ease .1s, visibility 0s linear 0s, border-width .55s,
      --gradient-angle-offset 800ms cubic-bezier(.25, 1, .5, 1), --gradient-percent 800ms cubic-bezier(.25, 1, .5, 1), --gradient-shine 800ms cubic-bezier(.25, 1, .5, 1), box-shadow .3s;
  }
  .site-header.cta-hidden .nav-cta {
    max-width: 0; padding-inline: 0; margin-left: -1.25rem; border-width: 0; opacity: 0; visibility: hidden; transform: none;
    transition: max-width .5s cubic-bezier(.22, 1, .36, 1), padding .5s cubic-bezier(.22, 1, .36, 1), margin .5s cubic-bezier(.22, 1, .36, 1), opacity .2s ease, visibility 0s linear .5s, border-width .5s;
  }
  .site-header.cta-hidden .wrap { padding-right: 1.1rem; }
  .site-header .wrap { transition: padding .5s cubic-bezier(.22, 1, .36, 1); }
}
@media (min-width: 1201px) and (prefers-reduced-motion: reduce) {
  .site-header .nav-cta, .site-header.cta-hidden .nav-cta, .site-header .wrap { transition: none; }
}
@media (min-width: 1201px) { .site-header .wrap { max-width: min(100% - 2 * var(--gutter), 1400px); } }
@media (min-width: 1201px) { .site-header .nav-cta { flex: 0 0 auto; } .site-header .nav, .site-header .logo { flex: 0 0 auto; } }
@media (min-width: 1201px) { .site-header .nav { gap: .2rem; } }
/* Banda dei 20 prompt compatta: solo i pulsanti, i dati si inseriscono nella finestra */
.pf-compact { max-width: 980px; }
@media (min-width: 821px) { .pf-compact { grid-template-columns: minmax(0, 170px) minmax(0, 1fr); } }
.pf-compact h2 { font-size: var(--t-xl); }
.pf-compact .lead { margin-bottom: 1.5rem; }
.pf-band.section { padding-block: clamp(3rem, 6vw, 4.5rem); }
.center-row { display: flex; justify-content: center; }
.pf-dialog .bk-done .btn-row { justify-content: center; margin-top: 1rem; }

/* Libro 3D della raccolta di prompt (ispirato al componente «Book» di 21st.dev) */
.pf-book-wrap { display: grid; place-items: center; padding: 1rem 0; }
.book3d { --w: 200px; --h: 272px; --d: 30px; display: block; width: var(--w); height: var(--h); perspective: 1100px; text-decoration: none; cursor: pointer; position: relative; }
.book3d::after { content: ""; position: absolute; left: 6%; right: -6%; bottom: -26px; height: 26px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .65), transparent); filter: blur(6px); z-index: -1; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.book3d-inner { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateY(-22deg) rotateX(4deg); transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.book3d:hover .book3d-inner, .book3d:focus-visible .book3d-inner { transform: rotateY(-38deg) rotateX(6deg) translateY(-6px); }
.book3d:hover::after { transform: translateX(10px) scaleX(1.1); }
.b-cover, .b-back { position: absolute; inset: 0; border-radius: 3px 9px 9px 3px; }
.b-cover { transform: translateZ(calc(var(--d) / 2)); overflow: hidden; background: #f3f5f9; display: flex; flex-direction: column; box-shadow: inset 0 0 0 1px rgba(2, 26, 58, .08); }
.b-cover::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 14px; background: linear-gradient(90deg, rgba(0, 0, 0, .22), rgba(255, 255, 255, .18) 45%, rgba(0, 0, 0, .06) 70%, transparent); z-index: 2; }
.b-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(255, 255, 255, .35), transparent 35%, transparent 70%, rgba(0, 0, 0, .06)); pointer-events: none; }
.b-back { transform: translateZ(calc(var(--d) / -2)); background: #0d2560; }
.b-pages { position: absolute; top: 4px; height: calc(100% - 8px); width: calc(var(--d) - 2px); left: calc(var(--w) - var(--d) / 2 - 4px); transform: rotateY(90deg); background: repeating-linear-gradient(90deg, #fbfbf8 0 2px, #dfe3ea 2px 3px); }
.b-band { position: relative; flex: 0 0 44%; background: radial-gradient(120% 120% at 90% 0%, #4d86d6, #4d86d6 45%, #05336c); display: flex; align-items: flex-end; justify-content: space-between; padding: 0 16px 14px 24px; }
.b-band img { width: 46px; height: auto; opacity: .95; }
.b-tag { font-family: var(--display); font-weight: 600; font-size: .72rem; letter-spacing: .04em; color: #dceafd; text-transform: uppercase; }
.b-body { flex: 1; display: flex; flex-direction: column; justify-content: space-between; padding: 16px 16px 16px 24px; }
.b-title { font-family: var(--display); font-weight: 600; font-size: 1.02rem; line-height: 1.25; letter-spacing: -0.01em; color: #0c1b31; }
.b-logo { width: 84px; height: auto; }
@media (max-width: 820px) { .pf-compact .pf-cover.pf-book-wrap { display: grid; justify-self: start; } .book3d { --w: 150px; --h: 204px; --d: 22px; } .b-title { font-size: .8rem; } .b-band img { width: 34px; } .b-logo { width: 64px; } }
@media (prefers-reduced-motion: reduce) { .book3d-inner, .book3d::after { transition: none; } }
@media (min-width: 821px) { .pf-compact { grid-template-columns: minmax(0, 240px) minmax(0, 1fr); } }
@media (max-width: 820px) { .pf-compact { grid-template-columns: minmax(0, 1fr); } .pf-compact .pf-cover.pf-book-wrap { justify-self: center; } }
/* libro: immagini a misura (non ereditano lo stile della vecchia copertina) */
.pf-cover .book3d img { width: auto; transform: none; box-shadow: none; border-radius: 0; max-width: none; }
.b-band { flex-direction: column; align-items: flex-start; justify-content: space-between; padding: 16px 16px 14px 24px; }
.pf-cover .book3d .b-mark { width: 34px; height: auto; }
.b-big { font-family: var(--display); font-weight: 600; font-size: 2.05rem; line-height: .95; letter-spacing: -0.02em; color: #fff; }
.b-title { font-size: 1.05rem; }
.pf-cover .book3d .b-logo { width: 104px; height: auto; display: block; }
@media (max-width: 820px) { .b-big { font-size: 1.55rem; } .pf-cover .book3d .b-mark { width: 26px; } .pf-cover .book3d .b-logo { width: 80px; } .b-band { padding: 12px 12px 10px 18px; } .b-body { padding: 12px 12px 12px 18px; } }
.b-big { display: flex; flex-direction: column; }
.b-big .n { font-size: 1.7em; line-height: .85; }
@media (max-width: 820px) { .book3d .b-title { font-size: .8rem; } }
.b-body { justify-content: flex-end; }
.b-band { flex-basis: 64%; } .b-big { font-size: 2.3rem; } @media (max-width: 820px) { .b-big { font-size: 1.7rem; } }

/* Home: «I tuoi clienti chiedono già all'AI un portafoglio» — chat + tre KPI animati */
.shift-now { position: relative; }
.now-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 1rem; align-items: stretch; }
.now-chat { display: flex; }
.now-chat .ui { width: 100%; display: flex; flex-direction: column; border-radius: 20px; }
.now-chat .ui-body { flex: 1; display: grid; align-content: center; gap: .75rem; padding: 1.25rem; }
.now-chat .msg { font-size: .95rem; }
.now-chat .ui-foot { color: #f3c98b; background: rgba(240, 177, 92, .08); }
.now-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.kpi { margin: 0; padding: 1.3rem 1.4rem 1.2rem; border-radius: 20px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-ui); display: flex; flex-direction: column; }
.kpi-good { grid-column: 1 / -1; background: radial-gradient(120% 140% at 0% 0%, rgba(77, 134, 214, .32), transparent 60%), var(--card); border-color: rgba(110, 168, 240, .32); }
.kpi-k { margin: 0 0 .9rem; font-size: var(--t-xs); font-weight: 600; letter-spacing: .02em; color: var(--slate); }
.kpi-n { margin: 0 0 .9rem; font-family: var(--display); font-weight: 500; font-size: clamp(2.4rem, 4vw, 3.2rem); line-height: 1; letter-spacing: -0.03em; color: #fff; display: flex; align-items: baseline; gap: .35rem; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.kpi-from { font-size: .5em; color: #7f8ca3; text-decoration: line-through; text-decoration-thickness: 2px; }
.kpi-arrow { font-size: .45em; color: var(--sky); }
.kpi-vs { font-size: .38em; letter-spacing: 0; color: var(--slate); font-family: var(--sans); font-weight: 600; }
.kpi-bars { display: grid; gap: 6px; margin-bottom: 1rem; }
.kpi-bars i { display: block; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .07); position: relative; overflow: hidden; }
.kpi-bars i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--v); border-radius: inherit; background: rgba(156, 196, 247, .45); transform-origin: left; }
.kpi-bars i.hi::after { background: linear-gradient(90deg, var(--accent), var(--sky-light)); box-shadow: 0 0 14px rgba(110, 168, 240, .55); }
.kpi-s { margin: auto 0 0; font-size: var(--t-xs); color: #8f9db3; }
.kpi-s a { color: var(--sky-light); }
.now-more { text-align: center; margin: 1.75rem 0 0; }
@media (prefers-reduced-motion: no-preference) {
  .js [data-countup] .kpi-bars i::after { transform: scaleX(0); transition: transform 1.2s cubic-bezier(.2, .7, .2, 1) .15s; }
  .js [data-countup].in .kpi-bars i::after { transform: scaleX(1); }
}
@media (max-width: 900px) { .now-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .now-stats { grid-template-columns: minmax(0, 1fr); } }
.kpi-n { gap: 0; }
.kpi-from { margin-right: .3rem; }
.kpi-arrow { margin-right: .35rem; }
.kpi-vs { margin-left: .5rem; }
@media (max-width: 480px) { .now-chat .ui-label { display: none; } }

/* Card che si impilano una sopra l'altra mentre si scorre */
.now-stack-wrap { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.now-intro { position: sticky; top: 150px; }
.now-intro h2 { font-size: var(--t-2xl); }
.now-intro .now-more { text-align: left; margin-top: 1.5rem; }
.stack { list-style: none; margin: 0; padding: 0 0 2rem; }
.stack-card { position: sticky; top: calc(130px + var(--i) * 26px); margin-bottom: 22vh; transform-origin: 50% 0; will-change: transform; }
.stack-card:last-child { margin-bottom: 0; }
.stack-card > .ui, .stack-card > .kpi { min-height: 300px; box-shadow: 0 -18px 40px -24px rgba(0, 0, 0, .9), var(--shadow-ui); background-color: #032a5d; }
.stack-card .kpi { padding: 1.8rem 2rem 1.6rem; }
.stack-card .kpi-k { font-size: var(--t-sm); }
.stack-card .kpi-n { font-size: clamp(3.2rem, 7vw, 5.4rem); margin-bottom: 1.4rem; }
.stack-card .kpi-bars i { height: 8px; }
.now-chat .ui { min-height: 300px; }
@media (max-width: 900px) {
  .now-stack-wrap { grid-template-columns: minmax(0, 1fr); }
  .now-intro { position: static; }
  .stack-card { top: calc(88px + var(--i) * 16px); margin-bottom: 14vh; }
  .stack-card > .ui, .stack-card > .kpi { min-height: 260px; }
}
/* tutte le card della pila alla stessa altezza (misurata via JS): quella sotto non spunta */
.stack-card > .ui, .stack-card > .kpi { min-height: var(--stack-h, 300px); }
@media (max-width: 900px) { .now-chat .msg { font-size: .875rem; } .now-chat .ui-body { padding: 1rem; gap: .55rem; } }
.stack-card .kpi { justify-content: center; }
.stack-card .kpi-s { margin-top: .4rem; }
@media (max-width: 900px) { .stack-card .kpi-n { font-size: clamp(2.6rem, 14vw, 4.2rem); } }
@media (max-width: 340px) { .logo .wordmark { width: 74px; } .site-header .wrap { gap: .35rem; } }

/* Sezione «clienti e AI» v3: domanda grande, chat ferma a sinistra, dati che salgono e si impilano a destra */
.now-head { max-width: 860px; margin: 0 auto clamp(2.5rem, 5vw, 4rem); text-align: center; }
.now-head h2 { font-size: var(--t-2xl); }
.now-q { margin: 1.25rem auto 0; max-width: 34ch; font-family: var(--display); font-weight: 500; font-size: clamp(1.35rem, 2.4vw, 1.9rem); line-height: 1.3; letter-spacing: -0.01em; color: #dbe4f1 !important; }
.now-q span { font-family: var(--italic); font-style: italic; font-weight: 400; color: #fff; font-size: 1.08em; }
.now-stack-wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.25rem, 3vw, 2rem); }
.now-stack-wrap > .now-chat { position: sticky; top: 130px; display: block; }
.now-stack-wrap > .now-chat .ui { min-height: 0; }
.stack { padding-bottom: 0; }
.stack-card { top: calc(130px + var(--i) * 18px); margin-bottom: 9vh; }
.stack-card > .ui, .stack-card > .kpi { min-height: var(--stack-h, 0); }
.stack-card .kpi { padding: 1.5rem 1.75rem 1.4rem; justify-content: flex-start; }
.stack-card .kpi-k { margin-bottom: .6rem; }
.stack-card .kpi-n { font-size: clamp(3rem, 5.4vw, 4.4rem); margin-bottom: 1rem; }
.stack-card .kpi-s { margin-top: auto; padding-top: .3rem; }
.now-more { text-align: center; margin-top: 2.5rem; }
@media (max-width: 900px) {
  .now-stack-wrap > .now-chat { position: static; margin-bottom: 1rem; }
  .stack-card { top: calc(86px + var(--i) * 14px); margin-bottom: 8vh; }
  .stack-card .kpi-n { font-size: clamp(2.6rem, 13vw, 3.6rem); }
}
@media (max-width: 900px) { .now-stack-wrap { grid-template-columns: minmax(0, 1fr); } }
/* pila v4: card vicine, ognuna copre del tutto la precedente, la pila resta ferma un po' prima di andarsene */
.stack-card { top: 130px; margin-bottom: 2rem; }
.stack { padding-bottom: 32vh; }
.now-more { margin-top: 0; }
@media (max-width: 900px) { .stack-card { top: 86px; margin-bottom: 1.5rem; } .stack { padding-bottom: 26vh; } }

/* Card dei dati in stile «Statistics Card 2» (21st.dev), con i colori e i caratteri del sito */
.scard { position: relative; overflow: hidden; margin: 0; border-radius: 18px; padding: 1.4rem 1.6rem 1.25rem; color: #fff; display: flex; flex-direction: column; border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 -18px 40px -24px rgba(0, 0, 0, .9), 0 24px 48px -24px rgba(0, 0, 0, .7); }
.scard > :not(.scard-deco) { position: relative; z-index: 1; }
.scard-deco { position: absolute; right: 0; top: 0; height: 100%; width: 66%; pointer-events: none; z-index: 0; }
.sc-dark { background: #032a5d; }
.sc-blue { background: var(--accent); }
.sc-deep { background: linear-gradient(135deg, #05336c, #0b1a4a); border-color: rgba(110, 168, 240, .35); }
.scard-title { margin: 0 0 1.4rem; font-size: var(--t-sm); font-weight: 500; color: rgba(255, 255, 255, .9) !important; }
.scard-row { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.scard-val { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(2.8rem, 5vw, 3.8rem); line-height: 1; letter-spacing: -0.03em; color: #fff !important; font-variant-numeric: tabular-nums; }
.scard-badge { display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .6rem; border-radius: 8px; background: rgba(255, 255, 255, .2); font-size: var(--t-xs); font-weight: 600; color: #fff; white-space: nowrap; }
.scard-badge svg { width: 13px; height: 13px; }
.scard-foot { margin: auto 0 0; padding-top: .8rem; border-top: 1px solid rgba(255, 255, 255, .2); font-size: var(--t-xs); color: rgba(255, 255, 255, .8) !important; display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .4rem; }
.scard-foot strong { color: #fff; font-weight: 600; }
.scard-foot a { margin-left: auto; color: rgba(255, 255, 255, .85) !important; }
.stack-card > .scard { min-height: var(--stack-h, 0); }
.sc-blue { background: #1a52cc; } .sc-blue .scard-foot, .sc-blue .scard-title { color: #fff !important; }

/* Versione standard: niente pila né comparse, solo i numeri che salgono */
.stack-static { display: grid; gap: 1rem; padding-bottom: 0; }
.stack-static .stack-card { position: static; margin: 0; transform: none !important; filter: none !important; opacity: 1 !important; }
.now-stack-wrap { align-items: stretch; }
.now-stack-wrap > .now-chat { position: static; display: flex; }
.now-stack-wrap > .now-chat .ui { width: 100%; height: 100%; }
.stack-static .scard { padding: 1.2rem 1.5rem 1.1rem; }
.stack-static .scard-title { margin-bottom: .9rem; }
.stack-static .scard-row { margin-bottom: .8rem; }
.stack-static .scard-val { font-size: clamp(2.4rem, 4vw, 3.2rem); }
.now-more { margin-top: 2rem; }
@media (max-width: 900px) { .now-stack-wrap > .now-chat { margin-bottom: 0; } }
/* chat d'esempio più piena */
.now-chat .ui-body { align-content: start; gap: .6rem; }
.chat-miss { margin-top: .6rem; padding: .9rem 1rem; border-radius: 14px; background: rgba(240, 177, 92, .07); border: 1px dashed rgba(240, 177, 92, .4); }
.chat-miss-t { margin: 0 0 .6rem; font-size: var(--t-xs); font-weight: 600; color: #f3c98b !important; }
.chat-miss ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.chat-miss li { font-size: .8125rem; padding: .25rem .6rem; border-radius: 99px; background: rgba(240, 177, 92, .12); color: #f6dcb3 !important; }
.chat-miss li::before { content: "?"; font-weight: 700; margin-right: .35rem; color: #f3c98b; }

/* ---------- Revisione dopo la call con Marco ---------- */
/* Percorso: sintesi dentro il programma */
.plan-facts { margin: 2rem 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.25rem; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.plan-facts dt { font-size: var(--t-xs); font-weight: 600; color: var(--sky-light); margin-bottom: .35rem; }
.plan-facts dd { margin: 0; font-size: var(--t-sm); color: var(--slate); line-height: 1.5; }
@media (max-width: 1000px) { .plan-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .plan-facts { grid-template-columns: minmax(0, 1fr); } }

/* Hero: sfondo blu animato (aurora lenta) */
.hero::after { content: ""; position: absolute; inset: -20% -10% -10%; pointer-events: none; z-index: 0;
  background:
    radial-gradient(35% 40% at 30% 70%, rgba(77, 134, 214, .55), transparent 70%),
    radial-gradient(30% 35% at 70% 75%, rgba(110, 168, 240, .45), transparent 70%),
    radial-gradient(25% 30% at 50% 40%, rgba(110, 168, 240, .22), transparent 70%);
  filter: blur(40px); opacity: .9; }
@media (prefers-reduced-motion: no-preference) {
  .hero::after { animation: aurora 18s ease-in-out infinite alternate; }
}
@keyframes aurora {
  0% { transform: translate3d(-4%, 2%, 0) scale(1); }
  33% { transform: translate3d(5%, -3%, 0) scale(1.08) rotate(3deg); }
  66% { transform: translate3d(-2%, -5%, 0) scale(.96) rotate(-2deg); }
  100% { transform: translate3d(4%, 3%, 0) scale(1.05); }
}
.hero .wrap { z-index: 1; }

/* Chi siamo: foto più piccole e tonde */
.team, .team.three { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 2rem 1.5rem; }
.person { text-align: center; }
.person .photo { width: 140px; height: 140px; aspect-ratio: 1; border-radius: 50%; margin: 0 auto 1rem; border: 2px solid rgba(110, 168, 240, .35); box-shadow: 0 0 0 6px rgba(77, 134, 214, .08); }

/* Meno «quadratini»: settimana e obiezioni senza scatole */
.week .wk { background: none; border: 0; box-shadow: none; border-radius: 0; border-top: 2px solid var(--line); padding: 1.25rem 0 0; }
.week .wk:hover { border-top-color: var(--sky); }
.week .wk-ba > div { background: none !important; border: 0 !important; padding: .4rem 0 0 !important; }
.objections .obj { background: none; border: 0; box-shadow: none; border-radius: 0; border-left: 2px solid var(--sky); padding: .25rem 0 .25rem 1.5rem; }
.team, .team.three { display: flex; flex-wrap: wrap; justify-content: center; } .team .person { width: 210px; }
.person .photo .initials { font-family: var(--display); font-weight: 600; font-size: 2.4rem; color: var(--sky-light); letter-spacing: .02em; }
/* «Oltre 100» centrato */
.proof.single .wrap { justify-content: center; }
.proof.single .wrap > div { text-align: left; }
@media (max-width: 640px) { .proof.single .wrap { align-items: center; text-align: center; } .proof.single .wrap > div { text-align: center; } .proof.single .who-chips { justify-content: center; } }

/* Percorso: percorso + privacy (sostituisce la finestra con la chat) */
.pv { position: relative; display: grid; gap: 0; padding: 0 0 1.5rem; }
.pv-glow { position: absolute; inset: 10% -5% 0; background: radial-gradient(closest-side, rgba(77, 134, 214, .45), transparent 75%); filter: blur(30px); z-index: 0; }
.pv-card { position: relative; z-index: 1; border-radius: 20px; background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)), #032a5d; border: 1px solid rgba(156, 196, 247, .18); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9); padding: 1.1rem 1.25rem 1.2rem; }
.pv-path { width: 88%; }
.pv-priv { width: 78%; margin: -2.5rem 0 0 auto; border-color: rgba(95, 211, 154, .35); background: radial-gradient(120% 120% at 100% 0%, rgba(95, 211, 154, .12), transparent 55%), linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)), #032a5d; }
.pv-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .9rem; }
.pv-title { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--display); font-weight: 600; font-size: 1rem; color: #fff; }
.pv-prog { display: inline-flex; align-items: center; gap: .55rem; }
.pv-prog i { width: 80px; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .1); position: relative; overflow: hidden; }
.pv-prog i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p); background: linear-gradient(90deg, var(--accent), var(--sky-light)); border-radius: inherit; }
.pv-prog em { font-style: normal; font-size: var(--t-xs); color: var(--slate); }
.pv-steps { list-style: none; margin: 0; padding: 0; position: relative; }
.pv-steps::before { content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(var(--accent) 0 34%, rgba(255, 255, 255, .12) 34%); }
.pv-steps li { position: relative; display: grid; grid-template-columns: 16px 6.2rem minmax(0, 1fr) auto; align-items: center; gap: .7rem; padding: .42rem 0; font-size: .875rem; }
.pv-dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .25); background: #032a5d; position: relative; z-index: 1; }
.pv-done .pv-dot { background: var(--accent); border-color: var(--accent); }
.pv-done .pv-dot::after { content: ""; position: absolute; left: 4px; top: 1px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.pv-now .pv-dot { border-color: var(--sky-light); background: #032a5d; box-shadow: 0 0 0 5px rgba(110, 168, 240, .2); }
.pv-now .pv-dot::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--sky-light); }
.pv-w { font-size: var(--t-xs); color: #8f9db3; }
.pv-t { color: #c9d3e3; }
.pv-done .pv-t { color: #fff; }
.pv-now .pv-t { color: #fff; font-weight: 600; }
.pv-badge { font-size: .6875rem; font-weight: 600; padding: .15rem .5rem; border-radius: 99px; background: rgba(110, 168, 240, .18); color: var(--sky-light); white-space: nowrap; }
.pv-shield { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: rgba(95, 211, 154, .15); color: #8be4b7; }
.pv-shield svg { width: 16px; height: 16px; }
.pv-anon { list-style: none; margin: 0 0 .8rem; padding: 0; display: grid; gap: .45rem; }
.pv-anon li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: .6rem; font-size: .8125rem; padding: .45rem .6rem; border-radius: 10px; background: rgba(255, 255, 255, .04); }
.pv-anon s { color: #8f9db3; text-decoration-color: rgba(240, 120, 120, .7); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-arrow { color: var(--sky); }
.pv-anon b { font-weight: 600; color: #8be4b7; padding: .1rem .5rem; border-radius: 6px; background: rgba(95, 211, 154, .12); white-space: nowrap; }
.pv-foot { margin: 0; font-size: var(--t-xs); color: var(--slate) !important; }
@media (max-width: 900px) { .pv-path, .pv-priv { width: 100%; } .pv-priv { margin-top: 1rem; } }
@media (max-width: 480px) { .pv-steps li { grid-template-columns: 16px minmax(0, 1fr) auto; } .pv-w { display: none; } .pv-badge { display: none; } }
.pv-path { padding-bottom: 1.6rem; }
.pv-priv { margin-top: -1.1rem; }
.pv-steps li { grid-template-columns: 16px 6.6rem minmax(0, 1fr) auto; }
.pv-wrap .sc-note { text-align: center; margin-top: .5rem; }

/* Percorso: programma come cammino verticale che si illumina scorrendo */
.journey { position: relative; max-width: 760px; margin: 0 auto; padding: .5rem 0; --fill: 0; }
.jr-line { position: absolute; left: 15px; top: 1.6rem; bottom: 1.6rem; width: 3px; border-radius: 3px; background: rgba(255, 255, 255, .08); }
.jr-line i { position: absolute; inset: 0; border-radius: inherit; clip-path: inset(0 0 calc((1 - var(--fill)) * 100%) 0);
  background: linear-gradient(180deg, var(--accent) 0%, var(--sky) calc(var(--split, 75%) - 4%), #3fc58a calc(var(--split, 75%) + 2%), #5fd39a 100%);
  filter: drop-shadow(0 0 6px rgba(110, 168, 240, .6)); }
.jr-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.jr-step { position: relative; padding-left: 3.25rem; }
.jr-dot { position: absolute; left: 6px; top: 1.45rem; width: 21px; height: 21px; border-radius: 50%; background: var(--bg); border: 3px solid rgba(255, 255, 255, .2); transition: background .35s, border-color .35s, box-shadow .35s; z-index: 1; }
.jr-card { padding: 1.15rem 1.35rem 1.2rem; border-radius: 18px; background: var(--card); border: 1px solid var(--line); transition: border-color .4s, background .4s, opacity .4s; opacity: .55; }
.jr-meta { display: flex; justify-content: space-between; gap: 1rem; margin: 0 0 .35rem; font-size: var(--t-xs); font-weight: 600; }
.jr-meta span:last-child { color: #8f9db3; font-weight: 500; }
.jr-card h3 { font-family: var(--display); font-weight: 600; font-size: 1.2rem; margin: 0 0 .35rem; }
.jr-card p:not(.jr-meta) { margin: 0; color: var(--slate); font-size: var(--t-sm); line-height: 1.55; }
.jr-blue .jr-meta span:first-child { color: var(--sky-light); }
.jr-green .jr-meta span:first-child { color: #8be4b7; }
.jr-step.on .jr-card { opacity: 1; }
.jr-blue.on .jr-dot { background: var(--accent); border-color: var(--sky-light); box-shadow: 0 0 0 6px rgba(77, 134, 214, .22); }
.jr-blue.on .jr-card { border-color: rgba(110, 168, 240, .4); background: radial-gradient(120% 140% at 0% 0%, rgba(77, 134, 214, .22), transparent 60%), var(--card); }
.jr-green .jr-dot { border-color: rgba(95, 211, 154, .35); }
.jr-green.on .jr-dot { background: #2fae74; border-color: #8be4b7; box-shadow: 0 0 0 6px rgba(95, 211, 154, .2); }
.jr-green .jr-card { border-color: rgba(95, 211, 154, .25); }
.jr-green.on .jr-card { border-color: rgba(95, 211, 154, .5); background: radial-gradient(120% 140% at 0% 0%, rgba(95, 211, 154, .16), transparent 60%), var(--card); }
.jr-anon { list-style: none; margin: .75rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.jr-anon li { font-size: .8125rem; padding: .35rem .65rem; border-radius: 10px; background: rgba(255, 255, 255, .04); color: var(--sky); }
.jr-anon s { color: #8f9db3; text-decoration-color: rgba(240, 120, 120, .7); }
.jr-anon b { color: #8be4b7; font-weight: 600; }
.no-js .jr-card, .journey.static .jr-card { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .jr-card, .jr-dot { transition: none; } }
table.compare thead th:not(.us) { font-size: 1.0625rem; font-weight: 600; color: #dbe3ef; vertical-align: middle; }

/* ---------- Guide: indice editoriale ---------- */
.gx { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.gx li { border-bottom: 1px solid var(--line); }
.gx-row { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) 13rem 2.5rem; align-items: center; gap: 1.5rem; padding: 1.6rem .5rem; text-decoration: none; color: inherit; transition: padding .35s cubic-bezier(.2, .7, .2, 1), background-color .3s; border-radius: 4px; }
.gx-n { font-family: var(--display); font-weight: 500; font-size: 2.2rem; line-height: 1; color: rgba(156, 196, 247, .35); transition: color .3s; font-variant-numeric: tabular-nums; }
.gx-main { display: grid; gap: .3rem; }
.gx-kind { font-size: var(--t-xs); font-weight: 600; color: var(--sky-light); letter-spacing: .02em; }
.gx-t { font-family: var(--display); font-weight: 500; font-size: clamp(1.2rem, 2vw, 1.55rem); line-height: 1.2; color: #fff; letter-spacing: -0.01em; }
.gx-d { color: var(--slate); font-size: var(--t-sm); max-height: 0; overflow: hidden; opacity: 0; transition: max-height .4s ease, opacity .3s ease, margin .3s; }
.gx-meta { display: flex; align-items: center; gap: .7rem; font-size: var(--t-xs); color: #c9d3e3; line-height: 1.4; }
.gx-meta img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; object-position: center top; flex: none; border: 1px solid var(--line); }
.gx-meta em { font-style: normal; color: #8f9db3; }
.gx-arrow { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: background .3s, border-color .3s, transform .3s; }
.gx-arrow::after { content: "→"; color: #c9d3e3; transition: color .3s; }
.gx-row:hover, .gx-row:focus-visible { padding-left: 1.25rem; background: linear-gradient(90deg, rgba(77, 134, 214, .12), transparent 70%); }
.gx-row:hover .gx-n, .gx-row:focus-visible .gx-n { color: var(--sky-light); }
.gx-row:hover .gx-d, .gx-row:focus-visible .gx-d { max-height: 4.5em; opacity: 1; margin-top: .2rem; }
.gx-row:hover .gx-arrow, .gx-row:focus-visible .gx-arrow { background: var(--accent); border-color: var(--accent); transform: rotate(-45deg); }
.gx-row:hover .gx-arrow::after { color: #fff; }
@media (hover: none) { .gx-d { max-height: none; opacity: 1; margin-top: .2rem; } }
@media (max-width: 860px) {
  .gx-row { grid-template-columns: 3rem minmax(0, 1fr); gap: .5rem 1rem; padding: 1.3rem .25rem; }
  .gx-n { font-size: 1.6rem; align-self: start; }
  .gx-meta { grid-column: 2; }
  .gx-arrow { display: none; }
  .gx-d { max-height: none; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .gx-row, .gx-d, .gx-arrow { transition: none; } }

/* ---------- Guide: «in breve» come citazione ---------- */
.gbrief { margin: 0; max-width: 820px; padding: .4rem 0 .4rem 1.75rem; border-left: 3px solid var(--sky); font-size: 1.125rem; line-height: 1.65; color: #dbe3ef; }
.gbrief p { margin: 0; color: #dbe3ef !important; }
.gbrief .gbrief-q { font-family: var(--display); font-weight: 500; font-size: 1.35rem; line-height: 1.3; color: #fff !important; margin-bottom: .75rem; }

/* ---------- Guide: barra di lettura e indice che segue ---------- */
.read-bar { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 60; pointer-events: none; }
.read-bar i { position: absolute; inset: 0 auto 0 0; width: calc(var(--read, 0) * 100%); background: linear-gradient(90deg, var(--accent), var(--sky-light)); box-shadow: 0 0 10px rgba(110, 168, 240, .7); }
.read-left { position: fixed; right: 1rem; bottom: 1rem; padding: .4rem .8rem; border-radius: 99px; background: rgba(2, 33, 74, .85); border: 1px solid var(--line); backdrop-filter: blur(8px); font-size: var(--t-xs); color: #c9d3e3; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; }
.read-left.show { opacity: 1; transform: none; }
.toc ol { position: relative; }
.toc ol::before { content: ""; position: absolute; left: -2px; top: var(--mk-top, 0); height: var(--mk-h, 0); width: 2px; background: var(--sky-light); box-shadow: 0 0 10px rgba(110, 168, 240, .7); transition: top .35s cubic-bezier(.2, .7, .2, 1), height .35s; border-radius: 2px; }
.toc a.active { color: #fff; }
@media (prefers-reduced-motion: reduce) { .toc ol::before { transition: none; } }
.plan-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } @media (max-width: 1000px) { .plan-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } } @media (max-width: 520px) { .plan-facts { grid-template-columns: minmax(0, 1fr); } }
/* clienti e AI: una frase, due numeri */
.now-say { max-width: 880px; margin: 0 auto; text-align: center; font-size: clamp(1.15rem, 1.8vw, 1.4rem); line-height: 1.6; color: #c9d3e3 !important; }
.now-say b { font-family: var(--display); font-weight: 600; font-size: 1.6em; line-height: 1; color: #fff; padding: 0 .1em; background: linear-gradient(transparent 62%, rgba(77, 134, 214, .55) 62%); font-variant-numeric: tabular-nums; }
.now-src { text-align: center; margin: 1.75rem 0 0; font-size: var(--t-xs); color: #8f9db3 !important; }
.now-src a { color: var(--sky-light); }
.shift-now .now-head { margin-bottom: 2.25rem; }
@media (max-width: 560px) { .team .person { width: calc(50% - 1rem); } .person .photo { width: 120px; height: 120px; } .team, .team.three { gap: 1.75rem 1rem; } }

/* Home: due strade (Percorso e Piattaforma) */
.ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.way { position: relative; display: flex; flex-direction: column; padding: 2rem 2rem 1.75rem; border-radius: 22px; text-decoration: none; color: inherit; background: var(--card); border: 1px solid var(--line); overflow: hidden; transition: border-color .3s, transform .3s; }
.way::before { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 120% at 100% 0%, rgba(77, 134, 214, .28), transparent 60%); opacity: .6; transition: opacity .3s; pointer-events: none; }
.way > * { position: relative; }
.way-k { font-size: var(--t-xs); font-weight: 600; color: var(--sky-light); margin-bottom: .6rem; }
.way h3 { font-family: var(--display); font-weight: 500; font-size: clamp(1.4rem, 2.4vw, 1.8rem); line-height: 1.15; color: #fff; margin: 0 0 .7rem; }
.way p { color: var(--slate); margin: 0 0 1.4rem; max-width: 46ch; }
.way-go { margin-top: auto; display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; font-size: var(--t-sm); color: #fff; }
.way-go::after { content: "→"; transition: transform .3s; }
.way:hover, .way:focus-visible { border-color: rgba(110, 168, 240, .5); transform: translateY(-3px); }
.way:hover::before { opacity: 1; }
.way:hover .way-go::after { transform: translateX(4px); }
@media (max-width: 760px) { .ways { grid-template-columns: minmax(0, 1fr); } }
.shift-now .now-head h2 em { font-size: 1em; }
/* domanda finale su una riga */
.shift-now .now-head { max-width: 1000px; }
.shift-now .now-head h2 em.one-line { display: block; white-space: nowrap; }
@media (max-width: 760px) { .shift-now .now-head h2 em.one-line { white-space: normal; } }
/* etichette Percorso AI e Piattaforma più evidenti */
.way-k { display: inline-flex; align-self: flex-start; align-items: center; gap: .5rem; padding: .45rem 1rem; border-radius: 99px; background: var(--accent); color: #fff; font-family: var(--display); font-size: 1.05rem; font-weight: 600; letter-spacing: .01em; margin-bottom: 1.1rem; box-shadow: 0 8px 22px -10px rgba(77, 134, 214, .9); }
.ways-lead { max-width: 760px; margin: 0 auto 2rem; text-align: center; font-family: var(--display); font-weight: 500; font-size: clamp(1.25rem, 2.2vw, 1.7rem); line-height: 1.35; color: #fff !important; }
.ways-lead span { font-family: var(--italic); font-style: italic; font-weight: 400; }
.two-ways { padding-top: clamp(3.5rem, 7vw, 5.5rem); }

/* ===== Rifiniture esperienza d'uso ===== */
/* Menu su mobile: pulsante prenota dentro il menu, sfondo oscurato, pagina ferma */
.nav-menu-cta { display: none; }
@media (max-width: 1200px) {
  .nav.open .nav-menu-cta { display: flex; justify-content: center; margin-top: 1rem; color: #fff; }
  .nav .login { display: block; }
  body.menu-open { overflow: hidden; }
  body.menu-open::before { content: ""; position: fixed; inset: 0; background: rgba(1, 14, 32, .62); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); z-index: 40; }
  body.menu-open .site-header { z-index: 60; }
  .nav.open { max-height: calc(100dvh - 110px); overflow-y: auto; }
}
/* Domande frequenti: «+» che diventa «×» (non sono link esterni) */
.faq summary::after { content: "+"; font-size: 1.45rem; line-height: 1; color: var(--sky-light); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
/* Tasto indietro uguale su tutte le pagine */
.back-arrow, .page-hero.navy .back-arrow { background: var(--sky); }
.back-arrow::after, .page-hero.navy .back-arrow::after { border-color: #fff; }
/* Finestra prenotazione: l'etichetta in alto non finisce sotto la X */
dialog .kicker { margin-right: 3rem; }
/* Tabelle di confronto su mobile: prima colonna ferma e indicazione di scorrimento */
@media (max-width: 760px) {
  table.compare tbody th, table.compare thead th:first-child { position: sticky; left: 0; z-index: 1; background: #032a5d; box-shadow: 6px 0 12px -8px rgba(0, 0, 0, .7); }
  .table-scroll { position: relative; }
  .table-hint { display: block; font-size: var(--t-xs); color: var(--sky-light); margin: 0 0 .6rem; }
}
.table-hint { display: none; }
/* Calcolatore su mobile: totale sempre visibile mentre scegli le attività */
.calc-peek { display: none; }
@media (max-width: 900px) {
  .calc-peek { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30; display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .8rem 1rem; border-radius: 16px; background: rgba(3, 42, 93, .94); border: 1px solid rgba(110, 168, 240, .35); color: #fff; text-decoration: none; font-size: var(--t-sm); box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .8); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transform: translateY(140%); transition: transform .25s ease; }
  .calc-peek b { font-size: 1.05rem; }
  .calc-peek-go { color: var(--sky-light); font-weight: 600; white-space: nowrap; }
  .calc-peek.show { transform: none; }
}
@media (prefers-reduced-motion: reduce) { .calc-peek { transition: none; } }
.bk-box:focus { outline: none; }

/* ===== Identità CF Brain: font Plus Jakarta Sans e blu CF Brain su tutto il sito ===== */
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-display: swap; font-weight: 200 800; src: url("../fonts/plus-jakarta-sans-latin.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: italic; font-display: swap; font-weight: 200 800; src: url("../fonts/plus-jakarta-sans-latin-italic.woff2") format("woff2"); }
:root {
  --font-cf: "Plus Jakarta Sans", "Helvetica Neue", Arial, system-ui, sans-serif;
  --sans: var(--font-cf); --serif: var(--font-cf); --display: var(--font-cf); --italic: var(--font-cf);
  --on-accent: #021a3a;
}
body, button, input, select, textarea { font-family: var(--font-cf); }
h1, h2 { font-weight: 700; letter-spacing: -0.03em; }
h3, .tile h3, .tab-panel h3, .guide-item h3, .shift-label, .video-card .quote, .brief .label { font-weight: 600; letter-spacing: -0.015em; }
/* la parola evidenziata dei titoli: stesso font, in corsivo e in blu CF Brain */
h1 em, h2 em, .now-q span, .ways-lead span { font-family: var(--font-cf); font-style: italic; font-weight: inherit; font-size: 1em; letter-spacing: -0.03em; color: var(--sky); }
.brief h2 em { color: inherit; }
/* note del calcolatore */
.note-t, .note-in { font-family: var(--font-cf); font-weight: 600; font-size: 1.02rem; line-height: 1.25; letter-spacing: -0.01em; }
/* testo leggibile sui pieni blu CF Brain */
::selection { background: var(--accent); color: #fff; }
.btn-primary, .btn-sky, .btn-primary:hover, .btn-sky:hover, .btn-primary:focus-visible,
.tabs-nav button[aria-selected="true"], .way-k, table.compare thead th.us, .chat .me, .sc-blue, .mini-btn, .play-ic { color: var(--on-accent); }
.nav.open .nav-menu-cta { color: var(--on-accent); }
.btn:is([data-book], .btn-shiny) { --shiny-fg: var(--on-accent); }
/* Footer: colonne di link che su telefono si aprono con un tocco */
.foot-col summary { list-style: none; }
.foot-col summary::-webkit-details-marker { display: none; }
@media (min-width: 761px) { .foot-col summary { cursor: default; pointer-events: none; } }
@media (max-width: 760px) {
  .foot-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .foot-about { margin-bottom: 1.5rem; }
  .foot-col { border-top: 1px solid var(--line); }
  .foot-col:last-child { border-bottom: 1px solid var(--line); }
  .foot-col summary { display: flex; justify-content: space-between; align-items: center; cursor: pointer; padding: 1rem 0; min-height: 48px; }
  .foot-col summary h2 { margin: 0; font-size: var(--t-base); }
  .foot-col summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--sky-light); transition: transform .2s ease; }
  .foot-col[open] summary::after { transform: rotate(45deg); }
  .foot-col ul { padding-bottom: 1rem; }
}
/* Iscrizione facoltativa ai casi pratici nei moduli di prenotazione: più visibile, sempre da spuntare */
.bk-consent { gap: .75rem; align-items: flex-start; margin-top: 1.1rem; padding: .85rem 1rem; border: 1px solid rgba(110, 168, 240, .35); border-radius: 14px; background: rgba(77, 134, 214, .1); transition: border-color .15s, background .15s; }
.bk-consent:hover { border-color: var(--sky); }
.bk-consent:has(input:checked) { border-color: var(--sky); background: rgba(77, 134, 214, .2); }
.bk-consent input { width: 1.25rem; height: 1.25rem; margin-top: .1rem; }
.bk-consent strong { display: block; color: #fff; font-weight: 600; font-size: .95rem; }
.bk-consent small { display: block; margin-top: .15rem; color: var(--slate); font-size: .82rem; line-height: 1.4; }

/* Percorso, «Dal prospect alla revisione annuale»: selettore delle fasi centrato e più evidente */
.phases-center [data-tabs] > .tabs-nav { display: flex; width: fit-content; margin: 0 auto 2.25rem; padding: .4rem; gap: .35rem; background: rgba(77, 134, 214, .12); border: 1px solid rgba(110, 168, 240, .45); box-shadow: 0 0 0 6px rgba(77, 134, 214, .06), 0 18px 40px -20px rgba(77, 134, 214, .55); }
.phases-center .tabs-nav button { font-size: var(--t-base); padding: .75rem 1.5rem; color: var(--ink); }
.phases-center .tabs-nav button:hover { background: rgba(255, 255, 255, .06); }
.phases-center .tabs-nav button[aria-selected="true"] { color: var(--on-accent); box-shadow: 0 6px 18px -6px rgba(77, 134, 214, .8); }
@media (max-width: 480px) { .phases-center .tabs-nav button { padding: .65rem 1rem; font-size: .95rem; } }

/* ===== Sezioni senza stacchi: un solo fondo continuo, i riflessi blu svaniscono prima dei bordi ===== */
body { background: var(--bg); }
.mist, .navy, .navy + .navy { background: radial-gradient(closest-side at 50% 50%, rgba(77, 134, 214, .14), transparent) no-repeat, transparent; }
.mist { background: radial-gradient(closest-side at 50% 50%, rgba(77, 134, 214, .08), transparent) no-repeat, transparent; }
.hero { background: radial-gradient(closest-side at 50% 62%, rgba(77, 134, 214, .55), rgba(5, 51, 108, .28) 55%, transparent) no-repeat, transparent; }
.hero::before { mask-image: radial-gradient(closest-side at 50% 45%, black, transparent); -webkit-mask-image: radial-gradient(closest-side at 50% 45%, black, transparent); }
.page-hero, .page-hero.navy, .page-hero.mist { background: radial-gradient(70% 80% at 50% -10%, rgba(77, 134, 214, .32), transparent 100%) no-repeat, transparent; }
.proof, .proof.single, .section, .section-sm { border-top: 0; border-bottom: 0; }
.site-footer { background: radial-gradient(closest-side at 50% 100%, rgba(77, 134, 214, .28), transparent) no-repeat, transparent; border-top: 0; }
.hero::after { -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 62%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 62%, transparent 100%); }

/* ===== Logo del cervello CF Brain ===== */
/* accanto alla scritta CFBRAIN: intestazione (anche su telefono), footer, copertina della raccolta */
@media (max-width: 560px) { .logo .mark { display: block; width: 24px; } .site-header .logo .wordmark { width: 104px; height: auto; } }
@media (max-width: 400px) { .logo .mark { display: block; width: 20px; } .site-header .logo { gap: .4rem; } .site-header .logo .wordmark { width: 92px; } }
.b-sign { display: inline-flex; align-items: center; gap: 6px; }
.b-sign-mark { width: 18px; height: auto; flex: none; }
/* in basso a destra in ogni post-it */
/* filigrana leggera nelle card secondarie */
.way::after, .ui::after, .calc-out::after, .bk-box::after, .jr-card::after {
  content: ""; position: absolute; right: 14px; bottom: 12px; width: 34px; aspect-ratio: 300 / 260;
  background: url("../img/cfbrain-mark.png") no-repeat center / contain; opacity: .09; pointer-events: none;
}
.jr-card { position: relative; }
.calc-out::after { width: 40px; opacity: .1; }
.bk-box::after { width: 44px; right: 18px; bottom: 16px; opacity: .07; }
@media (max-width: 900px) { .calc-out { position: relative; } }
@media (max-width: 420px) { .site-header .logo { gap: .35rem; } .logo .mark { width: 18px; } .site-header .logo .wordmark { width: 80px; } }
@media (max-width: 380px) { .logo .mark { width: 16px; } .site-header .logo .wordmark { width: 72px; } }
@media (max-width: 340px) { .site-header .nav-cta { font-size: .68rem; padding: .4rem .5rem; } .menu-toggle { padding: .4rem .45rem; font-size: .78rem; } .site-header .wrap { padding-left: .75rem; gap: .25rem; } }
.book3d .b-body .b-sign { display: inline-flex; align-items: center; gap: 6px; }
.book3d .b-body .b-sign img.b-sign-mark { width: 16px; height: auto; max-width: 16px; flex: none; }
.book3d .b-body .b-sign img.b-logo { width: 84px; }
.pf-cover .book3d .b-body .b-sign img.b-logo { width: 92px; }
@media (max-width: 820px) { .book3d .b-body .b-sign img.b-sign-mark { width: 13px; max-width: 13px; } .pf-cover .book3d .b-body .b-sign img.b-logo { width: 70px; } }

/* Post-it: cervello CF Brain in alto a destra (la spunta di selezione gli sta accanto) */
.cnote { background: url("../img/cfbrain-mark-note.png") no-repeat right .6rem top .6rem / 20px auto, var(--bg); }
.cnote .note-t, .cnote .note-in { padding-right: 3.1rem; }
.cnote.on::after { right: 2.15rem; top: .5rem; }
.ct-notes .cnote .note-t { padding-right: 2.9rem; }
/* Logo nelle card del percorso e nella card «assistente» */
.cf-mark { width: 22px; height: auto; flex: none; opacity: .9; }
.pv-head { justify-content: flex-start; }
.pv-head .pv-title { margin-right: auto; }
.shift-card.after { position: relative; }
.shift-card.after .cf-corner { position: absolute; top: clamp(1.1rem, 2.6vw, 1.6rem); right: clamp(1.1rem, 2.6vw, 1.6rem); width: 26px; }
.shift-card.after .shift-label { padding-right: 2.4rem; }
/* Tabella di confronto: logo al posto della scritta «Percorso CFBrain» */
table.compare thead th.th-logo { vertical-align: middle; }
.th-logo-in { display: inline-flex; align-items: center; gap: .5rem; }
.th-logo-in .mark { width: 26px; height: auto; flex: none; }
.th-logo-in .wordmark { width: 104px; height: auto; }
/* Guide: al passaggio del mouse il numero diventa il cervello */
.gx-n { position: relative; display: inline-grid; place-items: center start; }
.gx-n .gx-num, .gx-n .gx-brain { grid-area: 1 / 1; transition: opacity .25s ease, transform .3s ease; }
.gx-n .gx-brain { width: 1.15em; height: auto; opacity: 0; transform: scale(.6) rotate(-12deg); }
.gx-row:hover .gx-n .gx-num, .gx-row:focus-visible .gx-n .gx-num { opacity: 0; transform: scale(.7); }
.gx-row:hover .gx-n .gx-brain, .gx-row:focus-visible .gx-n .gx-brain { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .gx-n .gx-num, .gx-n .gx-brain { transition: none; } }
/* Team: chi non ha ancora la foto mostra il cervello CF Brain */
.person .photo .initials.brain { display: grid; place-items: center; width: 100%; height: 100%; }
.person .photo .initials.brain img { width: 46%; height: auto; opacity: .85; }
.ct-notes .cnote .note-t { font-size: .98rem; line-height: 1.25; padding-right: 2.7rem; }
.ct-notes .cnote.on::after { display: none; } .ct-notes .cnote .note-t { padding-right: 1.7rem; }
@media (max-width: 480px) { .ct-notes .cnote { background-size: 15px auto, auto; background-position: right .45rem top .5rem, 0 0; } .ct-notes .cnote .note-t { font-size: .84rem; padding-right: 1.2rem; } }
/* Video testimonianze su telefono: ogni video si ferma centrato nello schermo */
@media (max-width: 560px) {
  .videos { grid-auto-columns: 78vw; gap: 4vw; margin-inline: calc(var(--gutter) * -1); padding-inline: 11vw; scroll-padding-inline: 11vw; width: 100vw; max-width: 100vw; box-sizing: border-box; }
  .videos > * { scroll-snap-align: center; scroll-snap-stop: always; }
}
/* Post-it selezionato: niente spunta, il cervello CF Brain si accende di azzurro */
.cnote.on { background: var(--bg); }
.cnote::after { content: ""; position: absolute; top: .55rem; right: .6rem; width: 20px; height: 17px; border-radius: 0; background: url("../img/cfbrain-mark-blue.png") center / contain no-repeat; opacity: 0; transform: scale(.7); transition: opacity .25s ease, transform .35s cubic-bezier(.34, 1.56, .64, 1), filter .35s ease; pointer-events: none; }
.cnote.on::after { content: ""; top: .5rem; right: .55rem; width: 23px; height: 20px; border-radius: 0; background: url("../img/cfbrain-mark-blue.png") center / contain no-repeat; opacity: 1; transform: scale(1); filter: drop-shadow(0 0 5px rgba(77, 134, 214, .85)) drop-shadow(0 0 12px rgba(110, 168, 240, .55)); }
.ct-notes .cnote.on::after { display: block; }
.cnote .note-t, .cnote .note-in { padding-right: 1.9rem; }
.ct-notes .cnote .note-t { padding-right: 1.7rem; }
@media (max-width: 480px) { .ct-notes .cnote.on::after { width: 17px; height: 15px; top: .45rem; right: .4rem; } .ct-notes .cnote .note-t { padding-right: 1.2rem; } }
@media (prefers-reduced-motion: reduce) { .cnote::after { transition: none; } }
.cnote.on::after { width: 26px; height: 22px; top: .45rem; right: .5rem; filter: drop-shadow(0 0 4px rgba(77, 134, 214, 1)) drop-shadow(0 0 10px rgba(110, 168, 240, .7)); }
@media (max-width: 480px) { .ct-notes .cnote.on::after { width: 18px; height: 16px; } }
.calc .calc-grid { margin-top: 0; }
.page-hero + .calc, .page-hero + section.calc { padding-top: clamp(.5rem, 2vw, 1.5rem); }


/* Calcolatore: post-it e risultato affiancati, alla stessa altezza, post-it centrati */
@media (min-width: 901px) {
  .calc .calc-grid { align-items: stretch; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); }
  .calc .notes { align-content: center; height: 100%; }
  .calc .calc-out { position: relative; top: auto; align-self: center; gap: .8rem; padding: 1.4rem 1.6rem; }
  .calc .co-n { font-size: clamp(2.1rem, 3.4vw, 2.8rem); }
  .calc .co-big { font-size: clamp(2.6rem, 4.2vw, 3.4rem); }
  .calc .co-q { font-size: 1rem; line-height: 1.3; }
  .calc .co-half { padding-top: .8rem; }
  .calc .co-bars li:nth-child(n+4) { display: none; }
  .calc .co-note { font-size: .75rem; }
}
@media (min-width: 901px) { .calc .co-bars { display: none; } }
/* «Cosa sta cambiando» su telefono: solo il titolo e il rimando all'analisi completa */
.now-more { display: none; }
@media (max-width: 760px) {
  #clienti-ai .now-say, #clienti-ai .now-src { display: none; }
  .now-more { display: block; margin: 1.5rem auto 0; max-width: 34rem; }
  .now-more a { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "t go" "m go"; align-items: center; gap: .15rem 1rem; padding: 1rem 1.15rem; border-radius: 16px; background: rgba(77, 134, 214, .12); border: 1px solid rgba(110, 168, 240, .35); color: #fff; text-decoration: none; text-align: left; }
  .now-more-t { grid-area: t; font-weight: 600; font-size: 1rem; line-height: 1.3; }
  .now-more-m { grid-area: m; font-size: .85rem; color: var(--sky-light); }
  .now-more-go { grid-area: go; width: 2.3rem; height: 2.3rem; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-weight: 700; }
}
/* Home su telefono: testi più asciutti */
.nl-short { display: none; }
@media (max-width: 760px) {
  .calc-teaser .ct-copy .lead { display: none; }
  .two-ways .way p { display: none; }
  .newsletter .lead { display: none; }
  .nl-long { display: none; }
  .nl-short { display: inline; }
}
/* Freccia del rimando alla guida: stessa grafica del tasto «Indietro», rivolta in avanti */
.back-arrow.fwd::after { transform: translate(-65%, -50%) rotate(-135deg); }
@media (max-width: 760px) {
  .now-more-go.back-arrow { width: 1.6rem; height: 1.6rem; display: block; border-radius: 50%; background: var(--sky); color: transparent; font-size: 0; }
  .now-more a:hover .back-arrow.fwd { transform: translateX(2px); }
}
/* «Quanto tempo perdi» su telefono: titolo, post-it, poi il tasto «Fai il conto» centrato */
@media (max-width: 820px) {
  .calc-teaser .ct-copy { display: contents; }
  .calc-teaser .ct-copy h2, .calc-teaser .ct-copy .lead { order: 1; }
  .calc-teaser .ct-notes { order: 2; }
  .calc-teaser .ct-copy .btn { order: 3; justify-self: center; }
  .calc-teaser .wrap { row-gap: 1.75rem; }
}

/* ===== Ottimizzazione mobile (e fascia sotto il menu) ===== */
/* Il riflesso della prima sezione parte da sotto il menu sospeso: niente stacco netto a 72px */
#main > .page-hero, #main > .hero, #main > .read-bar + .page-hero { margin-top: -72px; padding-top: 72px; }

/* Card «Il tuo percorso»: su telefono le voci occupano tutta la riga invece di andare a capo ogni due parole */
@media (max-width: 480px) {
  .pv-steps li { grid-template-columns: 16px minmax(0, 1fr) auto; gap: .6rem; }
  .pv-steps .pv-w, .pv-steps .pv-badge { display: none; }
}

@media (max-width: 760px) {
  /* ritmo verticale più compatto: meno vuoti tra una sezione e l'altra */
  .section { padding-block: clamp(2.75rem, 11vw, 3.5rem); }
  .section-sm { padding-block: 2rem; }
  .page-hero .wrap { padding-block: 1.5rem 2rem; }
  .two { gap: 1.25rem; }
  .head { margin-bottom: 1.5rem; }
  .cta .wrap { padding-block: 2.75rem; gap: 1.25rem; }
  .newsletter .wrap.two { gap: 1.25rem; }

  /* pulsanti principali: larghi quanto lo schermo, impilati, facili da toccare */
  .page-hero .btn-row, .cta .btn-row, .hero .btn-row { flex-direction: column; align-items: stretch; gap: .65rem; width: 100%; }
  .page-hero .btn-row .btn, .cta .btn-row .btn, .hero .btn-row .btn { width: 100%; justify-content: center; text-align: center; min-height: 50px; }
  .hero.hero-solo .btn-row { max-width: 22rem; margin-inline: auto; }

  /* moduli: campi alti 48px e testo a 16px (niente zoom automatico su iPhone) */
  .bk-field input, .nl-row input { min-height: 48px; font-size: 16px; }
  .nl-row { flex-direction: column; align-items: stretch; }
  .nl-row .btn { width: 100%; justify-content: center; min-height: 48px; }

  /* titoli di sezione: un po' più contenuti per evitare righe da una parola */
  .section h2, .cta h2 { font-size: clamp(1.75rem, 7.6vw, 2.2rem); }
}
@media (max-width: 760px) { .nl-row input { flex: none; height: 48px; width: 100%; } .nl-row .btn { flex: none; } }
/* Finestre «Prenota consulenza» e «20 prompt» su telefono: tutto il modulo in una schermata, senza scorrere */
@media (max-width: 600px) {
  .bk-dialog { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); border-radius: 18px; }
  .bk-dialog .bk-box { padding: 1rem 1rem .9rem; }
  .bk-dialog .kicker { font-size: .72rem; padding: .22rem .65rem; margin: 0 2.6rem .35rem 0; }
  .bk-dialog .bk-box h2 { font-size: 1.3rem; line-height: 1.15; margin: .1rem 2.6rem .7rem 0; }
  .bk-dialog .bk-intro { display: none; }
  .bk-dialog .bk-close { top: .7rem; right: .7rem; width: 2.2rem; height: 2.2rem; }
  .bk-dialog .bk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem .6rem; }
  .bk-dialog .bk-grid > .bk-field:nth-child(n+3) { grid-column: 1 / -1; }
  .bk-dialog .bk-field { gap: .25rem; }
  .bk-dialog .bk-field label { font-size: .8rem; }
  .bk-dialog .bk-field input { min-height: 44px; height: 44px; font-size: 16px; padding-block: 0; }
  .bk-dialog .bk-field:not(.invalid) .bk-hint { display: none; }
  .bk-dialog .bk-consent { margin-top: .7rem; padding: .6rem .75rem; gap: .6rem; }
  .bk-dialog .bk-consent small { display: none; }
  .bk-dialog .bk-consent strong { font-size: .875rem; }
  .bk-dialog .bk-submit { margin-top: .7rem; padding-block: .8rem; min-height: 48px; }
  .bk-dialog .bk-note { margin-top: .5rem; font-size: .72rem; line-height: 1.35; }
  .bk-dialog .bk-box::after { display: none; }
}
@media (max-width: 600px) and (max-height: 620px) { .bk-dialog .kicker { display: none; } .bk-dialog .bk-box h2 { font-size: 1.15rem; margin-bottom: .5rem; } .bk-dialog .bk-field input { min-height: 40px; height: 40px; } .bk-dialog .bk-grid { gap: .45rem .55rem; } .bk-dialog .bk-consent { margin-top: .5rem; padding: .45rem .65rem; } .bk-dialog .bk-submit { margin-top: .55rem; min-height: 44px; padding-block: .65rem; } }
