/* =========================================================
   Leonardo De Rubeis · sistema grafico "dossier tecnico"
   Token in :root, poi base, componenti condivisi, home, pagine interne.
   ========================================================= */
/* ---------- Font self-hosted (variabili, sottoinsieme latin): nessuna chiamata a terzi ---------- */
@font-face { font-family: "Geist"; src: url("../fonts/geist.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/geist-mono.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader-italic.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }

:root {
  /* Colori */
  --navy-900: #14162A;
  --navy-800: #1F2235;
  --navy-700: #262A42;
  --navy-600: #2C3050;
  --indigo-500: #2B3F8F;
  --blue-500: #0073CE;   /* accento su fondo chiaro */
  --blue-600: #005FAD;   /* accento al passaggio del mouse */
  --blue-300: #5AA2E6;
  --blue-200: #8EC5F5;   /* accento su fondo scuro */
  --blue-50:  #EAF3FB;   /* tinta per tasselli e badge */
  --paper: #F6F6F3;
  --white: #FFFFFF;
  --line: #E4E5EA;
  --line-strong: #D5D7DF;
  --ink: #1F2235;
  --ink-2: #3D4155;
  --muted: #5B5F73;
  --muted-2: #6B6F84;
  --on-dark-line: rgba(255,255,255,.14);
  --on-dark-muted: #A9ADC2;
  --on-dark-soft: #C5C8D8;

  /* Tipografia */
  --font-sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Newsreader", Georgia, serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --fs-display: clamp(52px, 8.6vw, 132px);
  --fs-h1: clamp(42px, 6.4vw, 96px);
  --fs-h2: clamp(32px, 4.2vw, 58px);
  --fs-h3: clamp(22px, 2vw, 28px);
  --fs-lead: clamp(17px, 1.45vw, 20px);
  --fs-body: 16px;
  --fs-small: 14px;
  --fs-label: 11.5px;

  /* Spaziature e misure */
  --container: 1320px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-y: clamp(72px, 9vw, 128px);
  --gap-l: clamp(32px, 5vw, 72px);
  --gap-m: clamp(20px, 2.4vw, 32px);
  --gap-s: 16px;
  --radius-s: 12px;
  --radius-m: 20px;
  --radius-l: 28px;
  --radius-pill: 999px;
  --shadow-1: 0 1px 2px rgba(20,22,42,.04), 0 8px 24px -12px rgba(20,22,42,.12);
  --shadow-2: 0 2px 4px rgba(20,22,42,.04), 0 28px 56px -28px rgba(20,22,42,.38);

  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-sans); font-size: var(--fs-body); line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 3px; border-radius: 6px; }
.on-dark :focus-visible { outline-color: var(--blue-200); }
.skip-link { position: absolute; left: -9999px; top: 12px; z-index: 100; background: var(--white); color: var(--ink); padding: 10px 16px; border-radius: var(--radius-pill); }
.skip-link:focus { left: 12px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }

/* ---------- Tipografia ---------- */
.serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0; font-family: var(--font-mono); font-size: var(--fs-label); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: .6; }
.on-dark .eyebrow { color: var(--blue-200); }
.h2 { margin: 0; font-weight: 500; font-size: var(--fs-h2); line-height: 1.02; letter-spacing: -0.04em; text-wrap: balance; }
.h3 { margin: 0; font-weight: 500; font-size: var(--fs-h3); line-height: 1.15; letter-spacing: -0.025em; }
.lead { margin: 0; font-size: var(--fs-lead); line-height: 1.55; color: var(--muted); max-width: 58ch; }
.on-dark .lead { color: var(--on-dark-soft); }
.prose p { margin: 0 0 16px; max-width: 66ch; font-size: 17px; line-height: 1.7; color: var(--ink-2); }
.prose p:last-child { margin-bottom: 0; }
.prose a:not(.link-arrow) { color: var(--blue-500); text-underline-offset: 3px; }
.on-dark .prose p { color: var(--on-dark-soft); }
.label { font-family: var(--font-mono); font-size: var(--fs-label); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Pulsanti e link ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: var(--radius-pill); font-weight: 600; font-size: 15px; line-height: 1; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .25s var(--ease), background-color .25s, color .25s, border-color .25s, box-shadow .25s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: 16px; }
.btn--light { background: var(--white); color: var(--navy-900); }
.btn--light:hover { background: var(--blue-200); }
.btn--ghost-light { border-color: rgba(255,255,255,.32); color: var(--white); font-weight: 500; }
.btn--ghost-light:hover { border-color: var(--white); background: rgba(255,255,255,.06); }
.btn--dark { background: var(--navy-800); color: var(--white); }
.btn--dark:hover { background: var(--blue-500); }
.btn--ghost { border-color: var(--line-strong); color: var(--ink); font-weight: 500; background: var(--white); }
.btn--ghost:hover { border-color: var(--ink); }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.link-arrow { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; font-size: 15px; text-decoration: none; color: inherit; border-bottom: 1px solid currentColor; padding-bottom: 3px; transition: color .2s, gap .25s var(--ease); }
.link-arrow:hover { gap: 12px; color: var(--blue-500); }
.on-dark .link-arrow:hover { color: var(--blue-200); }

/* Tassello icona: il segno ricorrente del sistema (icona al tratto + punto d'accento) */
.tile { position: relative; flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue-500); transition: background-color .3s, color .3s; }
.tile::after { content: ""; position: absolute; right: 9px; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .55; }
.tile .icon { width: 24px; height: 24px; stroke-width: 1.5; }
.tile--sm { width: 40px; height: 40px; border-radius: 11px; }
.tile--sm::after { right: 7px; top: 7px; width: 4px; height: 4px; }
.tile--sm .icon { width: 20px; height: 20px; }
.on-dark .tile { background: rgba(142,197,245,.12); color: var(--blue-200); }

/* ---------- Sezioni e ritmo verticale ---------- */
.sec { padding-block: var(--section-y); }
.sec--flush-b { padding-bottom: 0; }
.bg-white { background: var(--white); border-block: 1px solid var(--line); }
.bg-white + .bg-white { border-top: 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px; flex-wrap: wrap; margin-bottom: clamp(36px, 4vw, 56px); }
.section-head > div { display: flex; flex-direction: column; gap: 16px; max-width: 820px; }
.section-head--stack { flex-direction: column; align-items: flex-start; gap: 20px; }
.section-head--stack .lead { max-width: 64ch; }

/* ---------- Superfici scure con grana ---------- */
.field { position: relative; overflow: hidden; overflow: clip; background: var(--navy-900); color: var(--white); isolation: isolate; }
.field__glow { position: absolute; inset: 0; z-index: -2; }
.field__grain { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .18; mix-blend-mode: overlay; pointer-events: none; }
.field--plain { background: var(--navy-800); }

/* ---------- Header ---------- */
.site-header { position: fixed; top: 16px; left: 0; right: 0; z-index: 50; padding-inline: 16px; }
.site-header__bar { max-width: var(--container); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 8px 8px 22px; border-radius: var(--radius-pill); background: rgba(20,22,42,.78); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(20px) saturate(140%); -webkit-backdrop-filter: blur(20px) saturate(140%); color: var(--white); transition: background-color .3s, border-color .3s, color .3s, box-shadow .3s; }
.site-header.is-light .site-header__bar { background: rgba(255,255,255,.96); border-color: var(--line); color: var(--ink); box-shadow: var(--shadow-1); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg { height: 24px; width: auto; }
.brand__name { font-weight: 500; font-size: 17px; letter-spacing: -0.01em; }
.nav { display: flex; gap: 28px; font-size: 14px; }
.nav a { position: relative; text-decoration: none; opacity: .82; padding: 6px 0; transition: opacity .2s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.lang { font-size: 13px; opacity: .8; }
.lang a { text-decoration: none; }
.lang [aria-current="true"] { font-weight: 600; opacity: 1; }
.icon-link { display: flex; width: 36px; height: 36px; align-items: center; justify-content: center; opacity: .82; }
.icon-link:hover { opacity: 1; }
.site-header .btn { min-height: 44px; padding: 0 20px; font-size: 14px; }
.site-header.is-light .btn--light { background: var(--navy-800); color: var(--white); }
.site-header.is-light .btn--light:hover { background: var(--blue-500); }
.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.08); color: inherit; align-items: center; justify-content: center; cursor: pointer; }
.site-header.is-light .menu-toggle { border-color: var(--line-strong); background: var(--white); }
.mobile-menu { display: none; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--on-dark-line); padding-block: 48px 36px; font-size: 14px; color: var(--on-dark-muted); }
.site-footer a { color: var(--on-dark-soft); text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--white); }
.site-footer__top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 2fr); gap: 32px 48px; padding-bottom: 40px; }
.site-footer__brand { display: flex; flex-direction: column; gap: 16px; }
.site-footer__brand .brand { color: var(--white); align-self: flex-start; }
.site-footer__brand p { margin: 0; max-width: 38ch; line-height: 1.6; }
.site-footer__col { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.site-footer__title { margin: 0 0 6px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-muted); }
.site-footer__bottom { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; padding-top: 24px; border-top: 1px solid var(--on-dark-line); font-size: 13px; }
.site-footer__bottom nav { display: flex; gap: 20px; }

/* =========================================================
   HOME
   ========================================================= */

/* ---------- Hero ---------- */
.hero { min-height: max(720px, 100svh); display: flex; }
.hero .field__glow { background:
  radial-gradient(60% 55% at 78% 22%, var(--blue-500) 0%, rgba(0,115,206,0) 70%),
  radial-gradient(45% 50% at 18% 85%, var(--indigo-500) 0%, rgba(43,63,143,0) 70%),
  radial-gradient(40% 40% at 55% 70%, var(--blue-300) 0%, rgba(90,162,230,0) 70%),
  var(--navy-900); }
.hero__glow-anim { animation: drift 22s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1) translate(0,0); } to { transform: scale(1.12) translate(-3%, 2%); } }
.hero__dna { position: absolute; z-index: -1; left: 0; right: 0; top: 30%; height: 400px; pointer-events: none; }
.hero__dna canvas { width: 100%; height: 100%; display: block; }
.hero__inner { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 28px; padding-top: 136px; padding-bottom: 48px; width: 100%; pointer-events: none; }
.hero__inner a, .hero__inner button { pointer-events: auto; }
.hero .eyebrow { color: rgba(255,255,255,.75); }
.hero h1 { margin: 0; max-width: 1000px; font-weight: 500; font-size: var(--fs-display); line-height: .95; letter-spacing: -0.05em; }
.hero h1 .serif { display: block; }
.hero__sub { margin: 0; max-width: 620px; font-size: var(--fs-lead); line-height: 1.55; color: rgba(255,255,255,.84); }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.stats { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); border-top: 1px solid rgba(255,255,255,.2); }
.stats li { padding: 24px 16px 0; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.stats li + li { border-left: 1px solid rgba(255,255,255,.12); }
.stats strong { font-family: var(--font-serif); font-weight: 400; font-size: clamp(40px, 4.4vw, 60px); line-height: 1; font-variant-numeric: tabular-nums; }
.stats strong[data-plus]::after { content: "+"; }
.stats strong[data-pct]::after { content: "%"; }
.stats span { font-size: 13px; line-height: 1.4; color: rgba(255,255,255,.72); max-width: 22ch; }

/* ---------- Loghi clienti: fascia scura sotto l'hero ---------- */
.logos { background: var(--navy-900); border-top: 1px solid var(--on-dark-line); padding-block: clamp(36px, 4.5vw, 56px); }
.logos__inner { display: grid; grid-template-columns: minmax(180px, 220px) minmax(0, 1fr); gap: 24px 48px; align-items: center; }
.logos__label { margin: 0; font-size: 15px; line-height: 1.45; color: var(--on-dark-soft); }
.logos__label strong { display: block; margin-bottom: 4px; font-family: var(--font-mono); font-size: var(--fs-label); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-200); }
.marquee { --logo-scale: 1; display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; flex: none; align-items: center; gap: clamp(48px, 5.5vw, 88px); padding: 8px clamp(48px, 5.5vw, 88px) 8px 0; margin: 0; list-style: none; animation: marquee 60s linear infinite; }
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }
.marquee__track li { display: flex; align-items: center; height: 48px; }
/* Altezza ottica per logo (--h, calcolata su proporzione e densità del segno): pesi visivi uniformi */
.marquee__track img { height: calc(var(--h, 32px) * var(--logo-scale)); width: auto; max-width: none; filter: brightness(0) invert(1); opacity: .58; transition: opacity .3s; }
.marquee__track li:hover img { opacity: 1; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- Statement ---------- */
.statement p { margin: 0; max-width: 1120px; font-family: var(--font-serif); font-size: clamp(24px, 2.7vw, 40px); line-height: 1.28; letter-spacing: -0.02em; text-wrap: pretty; }
.statement .w { color: #B7B9C6; transition: color .4s; }
.statement .w.is-on { color: var(--ink); }

/* ---------- Tre schede dei servizi ---------- */
.ways__grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.way { position: relative; display: flex; flex-direction: column; gap: 20px; min-height: 440px; padding: clamp(24px, 2.4vw, 32px); border-radius: var(--radius-l); background: var(--white); border: 1px solid var(--line); text-decoration: none; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.way:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: color-mix(in srgb, var(--blue-500) 45%, var(--line)); }
.way:hover .tile { background: var(--blue-500); color: var(--white); }
.way__top { display: flex; justify-content: space-between; align-items: center; }
.way__arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); display: flex; align-items: center; justify-content: center; transition: background-color .3s, color .3s, transform .3s var(--ease), border-color .3s; }
.way:hover .way__arrow { background: var(--navy-800); border-color: var(--navy-800); color: var(--white); transform: rotate(45deg); }
.way h3 { margin: 8px 0 0; font-weight: 500; font-size: clamp(28px, 2.6vw, 36px); letter-spacing: -0.035em; line-height: 1.05; }
.way__claim { margin: 0; font-family: var(--font-serif); font-size: 21px; line-height: 1.35; color: var(--ink-2); }
.way ul { list-style: none; margin: auto 0 0; padding: 0; border-top: 1px solid var(--line); }
.way li { display: flex; gap: 10px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--ink-2); }
.way li::before { content: ""; flex: none; width: 5px; height: 5px; border-radius: 50%; background: var(--blue-500); transform: translateY(-2px); }
.way__link { font-size: 14px; font-weight: 600; }

/* ---------- Servizi in dettaglio (accordion) ---------- */
.services__inner { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gap-l); }
.services__intro { display: flex; flex-direction: column; gap: 16px; align-self: start; position: sticky; top: 112px; }
.services__intro .lead { max-width: 36ch; }
.accordion { min-width: 0; border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-item h3 { margin: 0; }
.acc-btn { width: 100%; min-height: 80px; background: none; border: 0; padding: 20px 0; display: flex; align-items: center; gap: 18px; cursor: pointer; text-align: left; }
.acc-num { font-family: var(--font-mono); font-size: 12px; color: var(--muted); width: 22px; }
.acc-title { flex: 1; font-weight: 500; font-size: clamp(20px, 2vw, 26px); letter-spacing: -0.02em; transition: color .2s; }
.acc-btn:hover .acc-title { color: var(--blue-500); }
.acc-plus { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong); position: relative; flex: none; transition: background-color .3s, border-color .3s; }
.acc-plus::before, .acc-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; transform: translate(-50%,-50%); }
.acc-plus::after { transform: translate(-50%,-50%) rotate(90deg); transition: transform .3s var(--ease); }
.acc-btn[aria-expanded="true"] .acc-plus { background: var(--navy-800); color: var(--white); border-color: var(--navy-800); }
.acc-btn[aria-expanded="true"] .acc-plus::after { transform: translate(-50%,-50%) rotate(0); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.acc-panel > div { overflow: hidden; }
.acc-item.is-open .acc-panel { grid-template-rows: 1fr; }
.acc-cols { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px clamp(28px, 4vw, 56px); margin: 0; padding: 0 0 32px 98px; }
.acc-cols dt { font-family: var(--font-mono); font-size: var(--fs-label); font-weight: 500; letter-spacing: .12em; color: var(--blue-500); margin-bottom: 8px; }
.acc-cols dd { margin: 0; font-size: 16px; line-height: 1.65; color: var(--ink-2); }
.services__more { margin-top: 32px; }

/* ---------- AI su fondo scuro ---------- */
.ai .field__glow { background: radial-gradient(50% 45% at 85% 0%, var(--blue-500) 0%, rgba(0,115,206,0) 70%), radial-gradient(40% 40% at 0% 100%, var(--indigo-500) 0%, rgba(43,63,143,0) 70%), var(--navy-800); }
.ai__inner { display: flex; flex-direction: column; gap: clamp(40px, 5vw, 64px); }
.ai__head { display: flex; flex-direction: column; gap: 20px; max-width: 980px; }
.ai h2 { margin: 0; font-weight: 500; font-size: clamp(36px, 5.2vw, 76px); line-height: 1; letter-spacing: -0.045em; text-wrap: balance; }
.ai__head p:not(.eyebrow) { margin: 0; max-width: 760px; font-size: 18px; line-height: 1.6; color: var(--on-dark-soft); }
.vs { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.vs__card { border-radius: var(--radius-l); padding: clamp(24px, 2.6vw, 36px); border: 1px solid var(--on-dark-line); background: rgba(255,255,255,.03); }
.vs__card--good { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.26); backdrop-filter: blur(10px); }
.vs__card h3 { margin: 0 0 14px; font-family: var(--font-mono); font-weight: 500; font-size: var(--fs-label); letter-spacing: .14em; color: var(--on-dark-muted); }
.vs__card--good h3 { color: var(--blue-200); }
.vs__card ul { list-style: none; margin: 0; padding: 0; font-size: 16px; }
.vs__card li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.1); line-height: 1.5; color: var(--on-dark-muted); }
.vs__card li .icon { margin-top: 2px; }
.vs__card--good li { color: var(--white); border-color: rgba(255,255,255,.16); }
.vs__card li:last-child { border-bottom: 0; padding-bottom: 0; }
.vs__card--good .icon { stroke: var(--blue-200); stroke-width: 2; }

/* ---------- Dossier: schede dei casi di studio (home e pagine servizio) ---------- */
.dossier-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; counter-reset: dossier; }
.dossier { position: relative; display: flex; flex-direction: column; min-height: 420px; padding: clamp(24px, 2.4vw, 32px); border-radius: var(--radius-l); background: var(--white); border: 1px solid var(--line); color: var(--ink); text-decoration: none; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.dossier::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--blue-500); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.dossier:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--line-strong); }
.dossier:hover::before { transform: scaleX(1); }
.dossier__top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.dossier__n { font-family: var(--font-serif); font-style: italic; font-size: 40px; line-height: .9; color: var(--blue-500); font-variant-numeric: tabular-nums; }
.dossier__sector { font-family: var(--font-mono); font-size: var(--fs-label); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); text-align: right; }
.dossier h3 { margin: 24px 0 12px; font-weight: 500; font-size: clamp(23px, 2.1vw, 28px); line-height: 1.12; letter-spacing: -0.03em; text-wrap: balance; }
.dossier p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.dossier__facts { display: grid; grid-template-columns: repeat(3, minmax(0, auto)); justify-content: start; gap: 6px 32px; margin: auto 0 0; padding-top: 28px; }
.dossier__facts dt { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); grid-row: 1; }
.dossier__facts dd { margin: 0; font-family: var(--font-mono); font-size: 15px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); grid-row: 2; white-space: nowrap; }
.dossier__cta { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.dossier__cta .icon { box-sizing: border-box; width: 40px; height: 40px; padding: 10px; border-radius: 50%; border: 1px solid var(--line-strong); transition: transform .3s var(--ease), background-color .3s, color .3s, border-color .3s; }
.dossier:hover .dossier__cta .icon { background: var(--navy-800); border-color: var(--navy-800); color: var(--white); transform: rotate(45deg); }

/* ---------- Metodo (4 fasi) ---------- */
.steps { list-style: none; margin: 0; padding: 0; position: relative; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 32px; }
.steps::before { content: ""; position: absolute; left: 6px; right: 0; top: 6px; height: 1px; background: var(--line-strong); }
.steps__progress { position: absolute; left: 6px; top: 6px; height: 1px; background: var(--blue-500); width: 0; transition: width 1.2s var(--ease); }
.steps.is-in .steps__progress { width: calc(100% - 6px); }
.step { position: relative; display: flex; flex-direction: column; gap: 10px; }
.step__dot { width: 13px; height: 13px; border-radius: 50%; background: var(--white); border: 1px solid var(--blue-500); transition: background-color .4s; }
.steps.is-in .step__dot { background: var(--blue-500); }
.step:nth-child(3) .step__dot { transition-delay: .3s; } .step:nth-child(4) .step__dot { transition-delay: .6s; } .step:nth-child(5) .step__dot { transition-delay: .9s; }
.step__n { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; color: var(--muted); margin-top: 14px; }
.step h3 { margin: 0; font-weight: 500; font-size: 24px; letter-spacing: -0.03em; }
.step p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.method__more { margin-top: 48px; }

/* ---------- Ritratto: sfondo da studio chiaro con griglia ---------- */
.portrait { position: relative; overflow: hidden; border-radius: var(--radius-l); aspect-ratio: 4 / 5; background:
  radial-gradient(60% 45% at 50% 30%, rgba(142,197,245,.55), rgba(142,197,245,0) 70%),
  linear-gradient(180deg, #EEF2F8 0%, #D9E1EE 100%); isolation: isolate; }
.portrait::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(31,34,53,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(31,34,53,.06) 1px, transparent 1px); background-size: 32px 32px; -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 85%); mask-image: linear-gradient(180deg, #000 30%, transparent 85%); }
.portrait img, .portrait picture { width: 100%; height: 100%; }
.portrait img { object-fit: cover; object-position: 50% 0; transform: scale(1.12); transform-origin: 50% 20%; filter: saturate(.92) contrast(1.02); }
.portrait__tag { position: absolute; left: 14px; bottom: 14px; padding: 8px 12px; border-radius: var(--radius-pill); background: rgba(255,255,255,.88); backdrop-filter: blur(8px); font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }

/* ---------- Chi sono (striscia) ---------- */
.about { display: grid; grid-template-columns: minmax(180px, 280px) minmax(0, 1fr); gap: var(--gap-l); align-items: center; }
.about__text { display: flex; flex-direction: column; gap: 18px; max-width: 760px; }
.about__text .h2 { font-size: clamp(28px, 3.2vw, 44px); }
.about__text > p:not(.eyebrow) { margin: 0; font-size: 17px; line-height: 1.7; color: var(--ink-2); }

/* ---------- Chiedilo a un'AI ---------- */
.ask__box { border-radius: var(--radius-l); border: 1px solid var(--line); background: var(--white); padding: clamp(28px, 4vw, 48px); display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between; }
.ask__box h2 { margin: 12px 0 0; font-weight: 500; font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -0.03em; line-height: 1.12; }
.ask__btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Contatti ---------- */
.contact .field__glow { background: radial-gradient(55% 60% at 10% 100%, var(--blue-500) 0%, rgba(0,115,206,0) 70%), radial-gradient(40% 50% at 95% 10%, var(--indigo-500) 0%, rgba(43,63,143,0) 70%), var(--navy-900); }
.contact__inner { padding-block: var(--section-y) 56px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap-l); align-items: start; }
.contact__info { display: flex; flex-direction: column; gap: 26px; }
.contact h2 { margin: 0; font-weight: 500; font-size: clamp(40px, 5.4vw, 80px); line-height: .98; letter-spacing: -0.045em; }
.contact__data { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; margin: 8px 0 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.18); }
.contact__data dt { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-muted); }
.contact__data dd { margin: 6px 0 0; font-size: 15px; }
.contact__data a { text-decoration: none; }
.contact__data a:hover { color: var(--blue-200); }
.form { border-radius: var(--radius-l); background: var(--white); color: var(--ink); padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 20px; box-shadow: 0 40px 80px -40px rgba(0,0,0,.5); }
.form__title { margin: 0 0 4px; font-weight: 500; font-size: 28px; letter-spacing: -0.02em; }
.field-row { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.field-row input, .field-row textarea { height: 50px; border-radius: var(--radius-s); border: 1px solid var(--line-strong); padding: 0 14px; font-size: 16px; font-weight: 400; color: var(--ink); background: var(--paper); transition: border-color .2s, background-color .2s, box-shadow .2s; }
.field-row textarea { height: auto; padding: 12px 14px; resize: vertical; }
.field-row input:focus, .field-row textarea:focus { border-color: var(--blue-500); background: var(--white); outline: none; box-shadow: 0 0 0 3px rgba(0,115,206,.15); }
.field-pair { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.form__done { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }

/* =========================================================
   PAGINE INTERNE
   ========================================================= */

/* ---------- Intestazione con disegno "blueprint" ---------- */
.page-hero { padding: clamp(128px, 12vw, 168px) 0 clamp(56px, 6vw, 88px); }
.page-hero .field__glow { background: radial-gradient(55% 70% at 85% 30%, rgba(0,115,206,.75) 0%, rgba(0,115,206,0) 70%), radial-gradient(40% 60% at 5% 100%, rgba(43,63,143,.8) 0%, rgba(43,63,143,0) 70%), var(--navy-900); }
.page-hero__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center; }
.page-hero__text { display: flex; flex-direction: column; gap: 24px; max-width: 900px; }
.page-hero h1 { margin: 0; font-weight: 500; font-size: var(--fs-h1); line-height: .98; letter-spacing: -0.05em; text-wrap: balance; }
.page-hero h1 .serif { display: block; }
.page-hero .hero__sub { max-width: 640px; }
.blueprint { width: clamp(220px, 24vw, 340px); height: auto; color: var(--blue-200); overflow: visible; }
.blueprint .bp-line { fill: none; stroke: currentColor; stroke-width: .6; opacity: .45; }
.blueprint .bp-faint { fill: none; stroke: currentColor; stroke-width: .5; opacity: .18; stroke-dasharray: 2 3; }
.blueprint .bp-glyph { fill: none; stroke: var(--white); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.blueprint .bp-dot { fill: currentColor; }
.blueprint text { font-family: var(--font-mono); font-size: 6.5px; letter-spacing: .1em; fill: currentColor; opacity: .7; }
.blueprint .bp-spin { transform-origin: 120px 120px; animation: bp-spin 60s linear infinite; }
@keyframes bp-spin { to { transform: rotate(360deg); } }

/* Indice della pagina */
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; padding: 0; list-style: none; }
.toc a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: var(--radius-pill); border: 1px solid rgba(255,255,255,.22); font-size: 13px; color: var(--on-dark-soft); text-decoration: none; transition: border-color .2s, color .2s, background-color .2s; }
.toc a:hover { border-color: var(--white); color: var(--white); background: rgba(255,255,255,.06); }

/* ---------- Layout "indice + contenuto" ---------- */
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gap-l); }
.split__head { display: flex; flex-direction: column; gap: 16px; align-self: start; position: sticky; top: 112px; }
.split__head .h2 { font-size: clamp(30px, 3.4vw, 46px); }
.split__head .lead { font-size: 17px; max-width: 34ch; }
.split__body { min-width: 0; }

/* Schede problema numerate (Quando serve) */
.problems { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: pb; }
.problems li { counter-increment: pb; position: relative; display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: var(--radius-m); background: var(--white); border: 1px solid var(--line); transition: border-color .3s, box-shadow .3s; }
.problems li:hover { border-color: var(--line-strong); box-shadow: var(--shadow-1); }
.problems li::before { content: counter(pb, decimal-leading-zero); font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; color: var(--blue-500); }
.problems strong { font-weight: 500; font-size: 19px; line-height: 1.3; letter-spacing: -0.015em; }
.problems span { font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.problems a { color: var(--blue-500); text-underline-offset: 3px; }

/* Griglia di attività con icone (Cosa faccio) */
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 48px; margin: 0; padding: 0; list-style: none; }
.features li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 18px; }
.features .tile { grid-row: span 2; }
.features strong { align-self: end; font-weight: 500; font-size: 19px; line-height: 1.3; letter-spacing: -0.015em; }
.features span { font-size: 15px; line-height: 1.6; color: var(--ink-2); }

/* Checklist su fondo scuro (Cosa ottieni) */
.outcomes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; margin: 0; padding: 0; list-style: none; }
.outcomes li { display: flex; gap: 16px; align-items: flex-start; padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,.12); font-size: 18px; line-height: 1.5; color: var(--white); }
.outcomes li:nth-last-child(-n+2) { border-bottom: 0; }
.outcomes .check { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(142,197,245,.14); color: var(--blue-200); }
.outcomes .check .icon { width: 16px; height: 16px; stroke-width: 2.2; }
.outcomes--light li { color: var(--ink); border-color: var(--line); }
.outcomes--light .check { background: var(--blue-50); color: var(--blue-500); }

/* Mini fasi (Come lavoriamo) */
.phases { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 32px 0 0; padding: 0; list-style: none; }
.phases li { display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: var(--radius-s); background: var(--white); border: 1px solid var(--line); font-weight: 500; font-size: 15px; line-height: 1.3; }
.phases li span { font-family: var(--font-mono); font-size: 11px; font-weight: 400; letter-spacing: .1em; color: var(--blue-500); }

/* Citazione / testo in evidenza */
.pull { margin: 0 0 24px; font-family: var(--font-serif); font-size: clamp(24px, 2.4vw, 32px); line-height: 1.3; letter-spacing: -0.02em; color: var(--ink); text-wrap: pretty; }
.on-dark .pull { color: var(--white); }

/* Scheda link verso altre pagine */
.next-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.next { display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-radius: var(--radius-m); background: var(--white); border: 1px solid var(--line); text-decoration: none; transition: border-color .3s, box-shadow .3s, transform .3s var(--ease); }
.next:hover { border-color: var(--line-strong); box-shadow: var(--shadow-1); transform: translateY(-2px); }
.next strong { flex: 1; font-weight: 500; font-size: 17px; line-height: 1.3; }
.next .icon:last-child { color: var(--muted); transition: transform .3s var(--ease), color .3s; }
.next:hover .icon:last-child { color: var(--blue-500); transform: translate(2px, -2px); }

/* FAQ */
.faq { display: grid; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item:first-child { border-top: 1px solid var(--line); }
.faq__item summary { list-style: none; cursor: pointer; padding: 22px 48px 22px 0; position: relative; font-weight: 500; font-size: 18px; line-height: 1.4; transition: color .2s; }
.faq__item summary:hover { color: var(--blue-500); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: ""; position: absolute; right: 0; top: 50%; width: 32px; height: 32px; margin-top: -16px; border-radius: 50%; border: 1px solid var(--line-strong); background: linear-gradient(currentColor, currentColor) center / 11px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 11px no-repeat; color: var(--ink); transition: transform .3s var(--ease), background-color .3s; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { margin: 0 0 24px; max-width: 66ch; font-size: 16px; line-height: 1.7; color: var(--ink-2); }

/* Elenco decisionale (indice servizi) */
.decide { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.decide li { border-bottom: 1px solid var(--line); }
.decide a { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 16px 32px; align-items: center; padding: 22px 0; text-decoration: none; transition: color .2s; }
.decide a:hover { color: var(--blue-500); }
.decide strong { font-weight: 500; font-size: 18px; line-height: 1.35; }
.decide span { font-size: 15px; color: var(--muted); }
.decide .icon { color: var(--muted); transition: transform .3s var(--ease), color .3s; }
.decide a:hover .icon { color: var(--blue-500); transform: translate(2px, -2px); }

/* Card di modalità / formazione */
.cards-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.card { display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: var(--radius-m); background: var(--white); border: 1px solid var(--line); }
.card strong { font-weight: 500; font-size: 20px; line-height: 1.25; letter-spacing: -0.02em; }
.card span, .card p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.on-dark .card { background: rgba(255,255,255,.05); border-color: var(--on-dark-line); }
.on-dark .card span, .on-dark .card p { color: var(--on-dark-soft); }

/* Timeline verticale (percorso, quattro fasi) */
.timeline { margin: 0; padding: 0; list-style: none; position: relative; }
.timeline li:not(:last-child)::before { content: ""; position: absolute; left: 27px; top: 56px; bottom: 0; width: 1px; background: var(--line-strong); }
.timeline li { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 24px; padding-bottom: 40px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline__mark { position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--white); border: 1px solid var(--line-strong); font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: var(--blue-500); }
.timeline h3 { margin: 12px 0 8px; font-weight: 500; font-size: 22px; line-height: 1.25; letter-spacing: -0.02em; }
.timeline p { margin: 0; max-width: 62ch; font-size: 16px; line-height: 1.65; color: var(--ink-2); }
.timeline .outcome { display: inline-flex; gap: 8px; margin-top: 14px; padding: 8px 14px; border-radius: var(--radius-s); background: var(--blue-50); font-size: 14px; line-height: 1.45; color: var(--ink); }
.timeline .outcome b { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-500); padding-top: 2px; }

/* Numeri su fondo scuro */
.figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.2); }
.figures li { padding: 28px 24px 0; display: flex; flex-direction: column; gap: 8px; }
.figures li + li { border-left: 1px solid rgba(255,255,255,.12); }
.figures strong { font-family: var(--font-serif); font-weight: 400; font-size: clamp(52px, 6vw, 88px); line-height: 1; }
.figures span { font-size: 15px; color: var(--on-dark-soft); }

/* Tag */
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 12px 0 0; padding: 0; }
.tags li { padding: 8px 14px; border-radius: var(--radius-pill); border: 1px solid var(--line-strong); background: var(--white); font-size: 14px; }
.tags--solid li { background: var(--navy-800); color: var(--white); border-color: var(--navy-800); }

/* Intro con ritratto (chi sono) */
.profile { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap-l); align-items: center; }

/* ---------- Casi di studio: pagina dedicata ---------- */
.cs-toolbar { position: sticky; top: 84px; z-index: 5; padding-block: 14px; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filters__label { margin-right: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: var(--radius-pill); border: 1px solid var(--line-strong); background: var(--white); color: var(--ink); font-size: 14px; font-weight: 500; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--navy-800); border-color: var(--navy-800); color: var(--white); }
.chip span { font-family: var(--font-mono); font-size: 11px; opacity: .7; }
.cs-list { display: flex; flex-direction: column; }
.cs { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gap-l); padding-block: clamp(48px, 6vw, 88px); border-top: 1px solid var(--line); scroll-margin-top: 150px; }
.cs:first-child { border-top: 0; }
.cs__meta { display: flex; flex-direction: column; gap: 20px; align-self: start; position: sticky; top: 168px; }
.cs__index { display: flex; align-items: baseline; gap: 14px; }
.cs__n { font-family: var(--font-serif); font-style: italic; font-size: clamp(56px, 5.6vw, 80px); line-height: .85; color: var(--blue-500); font-variant-numeric: tabular-nums; }
.cs__of { font-family: var(--font-mono); font-size: 12px; color: var(--muted-2); }
.cs__sector { margin: 0; font-family: var(--font-mono); font-size: var(--fs-label); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.cs__facts { margin: 0; border-radius: var(--radius-m); background: var(--white); border: 1px solid var(--line); overflow: hidden; }
.cs__facts > div { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.cs__facts > div:last-child { border-bottom: 0; }
.cs__facts dt { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.cs__facts dd { margin: 0; font-size: 15px; line-height: 1.45; color: var(--ink); }
.cs__body h2 { margin: 0 0 24px; font-weight: 500; font-size: clamp(28px, 3.2vw, 44px); line-height: 1.06; letter-spacing: -0.035em; text-wrap: balance; }
.cs__body p { margin: 0 0 16px; max-width: 66ch; font-size: 17px; line-height: 1.7; color: var(--ink-2); }
.cs__body p:first-of-type { font-size: clamp(18px, 1.5vw, 20px); color: var(--ink); }
.cs__type { margin: 0 0 14px; font-size: 14px; color: var(--muted); }
.cs-empty { padding-block: 48px; color: var(--muted); }

/* ---------- Chiusura pagine (CTA) ---------- */
.cta .field__glow { background: radial-gradient(55% 60% at 10% 100%, var(--blue-500) 0%, rgba(0,115,206,0) 70%), radial-gradient(40% 50% at 95% 10%, var(--indigo-500) 0%, rgba(43,63,143,0) 70%), var(--navy-900); }
.cta__inner { padding-block: var(--section-y) 56px; display: flex; flex-direction: column; gap: 24px; }
.cta h2 { margin: 0; font-weight: 500; font-size: clamp(40px, 5.4vw, 80px); line-height: .98; letter-spacing: -0.045em; text-wrap: balance; }
.cta .hero__sub { max-width: 560px; }

/* ---------- Reveal allo scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE (mobile first nei contenuti, breakpoint per layout)
   ========================================================= */
@media (max-width: 1100px) {
  .nav { gap: 18px; }
  .ways__grid, .dossier-grid { grid-template-columns: 1fr; }
  .way, .dossier { min-height: 0; }
  .services__inner, .split, .cs { grid-template-columns: 1fr; gap: 32px; }
  .services__intro, .split__head, .cs__meta { position: static; }
  .cs__meta { flex-direction: row; flex-wrap: wrap; align-items: flex-end; gap: 16px 24px; }
  .cs__facts { flex: 1 1 100%; }
  .next-grid { grid-template-columns: 1fr; }
  .page-hero__inner { grid-template-columns: 1fr; }
  .blueprint { display: none; }
}
@media (max-width: 960px) {
  .nav, .header-actions .lang, .header-actions .icon-link, .site-header .btn--header { display: none; }
  .menu-toggle { display: flex; }
  .mobile-menu { position: fixed; inset: 0; z-index: 49; background: var(--navy-900); color: var(--white); padding: 110px var(--gutter) 40px; flex-direction: column; gap: 8px; overflow-y: auto; }
  .mobile-menu.is-open { display: flex; }
  .mobile-menu a { font-size: 30px; font-weight: 500; letter-spacing: -0.03em; text-decoration: none; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .mobile-menu .btn { margin-top: 24px; font-size: 16px; border-bottom: 0; }
  .mobile-menu__meta { margin-top: auto; display: flex; justify-content: space-between; color: var(--on-dark-muted); font-size: 14px; }
  .mobile-menu__meta a { font-size: 14px; border: 0; padding: 0; }
  .hero__dna { top: 92px !important; height: 150px; }
  .hero__inner { padding-top: 270px; }
  .stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .stats li:nth-child(3) { border-left: 0; }
  .stats li:nth-child(n+3) { padding-top: 20px; }
  .logos__inner { grid-template-columns: 1fr; gap: 20px; }
  .marquee { --logo-scale: .82; }
  .acc-cols { grid-template-columns: 1fr; padding-left: 0; gap: 16px; }
  .vs, .problems, .features, .outcomes, .cards-3, .figures { grid-template-columns: 1fr; }
  .outcomes li:nth-last-child(2) { border-bottom: 1px solid rgba(255,255,255,.12); }
  .outcomes--light li:nth-last-child(2) { border-bottom-color: var(--line); }
  .figures li + li { border-left: 0; border-top: 1px solid rgba(255,255,255,.12); }
  .figures li { padding: 22px 0; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps::before, .steps__progress { display: none; }
  .phases { grid-template-columns: 1fr 1fr; }
  .about, .profile, .contact__inner { grid-template-columns: 1fr; }
  .about .portrait { max-width: 240px; }
  .profile .portrait { max-width: 420px; }
  .decide a { grid-template-columns: minmax(0, 1fr) auto; }
  .decide span { grid-column: 1; }
  .decide .icon { grid-row: 1 / span 2; grid-column: 2; }
  .cs-toolbar { top: 72px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
}
@media (max-width: 560px) {
  .site-header { top: 10px; padding-inline: 10px; }
  .brand__name { font-size: 15px; }
  .hero__ctas .btn, .cta .hero__ctas .btn { flex: 1 1 100%; }
  .steps, .phases { grid-template-columns: 1fr; }
  .contact__data, .field-pair { grid-template-columns: 1fr; }
  .acc-btn { gap: 14px; }
  .problems li, .card { padding: 22px; }
  .timeline li:not(:last-child)::before { left: 21px; top: 44px; }
  .timeline li { grid-template-columns: 44px minmax(0, 1fr); gap: 16px; }
  .timeline__mark { width: 44px; height: 44px; font-size: 12px; }
  .timeline h3 { margin-top: 8px; }
  .dossier__facts { grid-template-columns: repeat(3, minmax(0, auto)); gap: 4px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .statement .w { color: inherit; }
}

/* ---------- Aggiunte di composizione ---------- */
.dossier-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dossier-grid--2 .dossier { min-height: 0; }
.dossier-grid--2 .dossier h3 { font-size: clamp(20px, 1.7vw, 23px); margin-bottom: 0; }
.blueprint .bp-glyph { stroke-width: 1.5; }
.blueprint .bp-node { fill: var(--navy-900); }
.blueprint .bp-fill { fill: var(--white); stroke: none; }
.on-dark .split__head .lead, .on-dark .section-head .lead { color: var(--on-dark-soft); }
.on-dark .tags--solid li { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); }
@media (max-width: 700px) { .dossier-grid--2 { grid-template-columns: 1fr; } }
.profile .pull { font-size: clamp(20px, 1.8vw, 24px); line-height: 1.4; }

/* =========================================================
   Seconda passata: rifiniture, movimento, accessibilità
   ========================================================= */
::selection { background: var(--blue-500); color: var(--white); }

/* Loghi: comando di pausa (WCAG 2.2.2) */
.logos__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.marquee-toggle { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(255,255,255,.22); background: transparent; color: var(--on-dark-soft); display: grid; place-items: center; cursor: pointer; transition: border-color .2s, color .2s; }
.marquee-toggle:hover { border-color: var(--white); color: var(--white); }
.marquee-toggle .icon { width: 14px; height: 14px; grid-area: 1 / 1; }
.marquee-toggle .i-play { fill: currentColor; stroke: none; display: none; }
.marquee-toggle[aria-pressed="true"] .i-play { display: block; }
.marquee-toggle[aria-pressed="true"] .i-pause { display: none; }
.marquee.is-paused .marquee__track { animation-play-state: paused; }

/* AI: freccia tra "come va di solito" e "come lavoro io" */
.vs__card--good { position: relative; }
.vs__card--good::before { content: "→"; position: absolute; z-index: 1; left: -30px; top: 50%; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; display: grid; place-items: center; background: var(--white); color: var(--navy-900); font-size: 18px; box-shadow: 0 8px 24px -8px rgba(0,0,0,.5); }

/* Casi: ambiti visibili su ogni caso */
.cs__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.cs__tags li { padding: 5px 10px; border-radius: var(--radius-pill); background: var(--blue-50); font-size: 12px; font-weight: 500; color: var(--blue-600); }

/* Ingressi in sequenza */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.hero__inner > *, .page-hero__text > * { animation: rise .9s var(--ease) both; }
.hero__inner > :nth-child(2), .page-hero__text > :nth-child(2) { animation-delay: .08s; }
.hero__inner > :nth-child(3), .page-hero__text > :nth-child(3) { animation-delay: .18s; }
.hero__inner > :nth-child(4), .page-hero__text > :nth-child(4) { animation-delay: .28s; }
.hero__inner > :nth-child(5) { animation-delay: .4s; }
.hero__dna, .blueprint { animation: fade-in 1.6s .3s both; }
.ways__grid > .reveal:nth-child(2), .dossier-grid > .reveal:nth-child(2), .next-grid > .reveal:nth-child(2), .vs > .reveal:nth-child(2) { transition-delay: .09s; }
.ways__grid > .reveal:nth-child(3), .dossier-grid > .reveal:nth-child(3), .next-grid > .reveal:nth-child(3) { transition-delay: .18s; }
.dossier-grid > .reveal:nth-child(4) { transition-delay: .27s; }

/* Passaggio tra le pagine: dissolvenza, header fermo */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }

@media (max-width: 960px) {
  .vs__card--good::before { content: "↓"; left: 50%; top: -30px; margin: 0 0 0 -22px; }
  .site-footer__top { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 420px) { .site-footer__top { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee__track { flex: 1 1 auto; flex-wrap: wrap; row-gap: 24px; padding-right: 0; }
  .marquee-toggle { display: none; }
}
.features li { grid-template-rows: auto 1fr; }
.features .tile { align-self: start; }
.features strong { align-self: start; padding-top: 2px; }

/* ---------- Intestazione pagine interne: quadrante con il nome della sezione ---------- */
.blueprint .bp-ticks { fill: none; stroke: currentColor; stroke-width: 5; stroke-dasharray: .6 9.26; opacity: .4; }
.blueprint .bp-arc { fill: none; stroke: var(--white); stroke-width: 1; stroke-linecap: round; stroke-dasharray: 118 49.55; opacity: .75; }
.blueprint .bp-dot--w { fill: var(--white); }
.blueprint .bp-spin--rev { animation: bp-spin 42s linear infinite reverse; }
.blueprint .bp-spin--slow { animation-duration: 90s; }
.blueprint .bp-word { font-family: var(--font-serif); font-style: italic; font-size: 27px; letter-spacing: -0.01em; fill: var(--white); opacity: 1; }
.blueprint .bp-word--2 { font-size: 23px; }

/* ---------- Ritratto: figura scontornata sulla pagina, senza riquadro ---------- */
.portrait { background: none; border-radius: 0; border-bottom: 1px solid var(--line-strong); }
.portrait::before { content: ""; display: block; position: absolute; inset: auto; left: 6%; top: 10%; width: 88%; height: auto; aspect-ratio: 1; z-index: -1; border-radius: 50%; background: linear-gradient(180deg, #D9E9FA 0%, #EDF4FC 100%); background-size: auto; -webkit-mask-image: none; mask-image: none; }
.portrait::after { content: ""; position: absolute; left: 0; top: 4.5%; width: 100%; aspect-ratio: 1; z-index: -1; border-radius: 50%; border: 1px solid rgba(0,115,206,.3); pointer-events: none; }
.portrait img { filter: saturate(.95) contrast(1.03); }
.portrait__tag { z-index: 2; background: var(--white); color: var(--ink); border: 1px solid var(--line); }

/* ---------- Rifiniture: nomi dei servizi, schede dei casi, elenchi, mobile ---------- */
.acc-group { margin: 0; padding: 28px 0 10px; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: var(--fs-label); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-500); }
.acc-group:first-child { padding-top: 18px; }
.dossier__sector { text-align: left; color: var(--blue-500); }
.outcomes li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.outcomes li:nth-last-child(2):nth-child(even) { border-bottom: 1px solid rgba(255,255,255,.12); }
.outcomes--light li:nth-last-child(2):nth-child(even) { border-bottom-color: var(--line); }
@media (max-width: 960px) {
  .cs__meta { display: contents; }
  .cs__index { order: 1; }
  .cs__sector { order: 2; }
  .cs__tags { order: 3; }
  .cs__body { order: 4; }
  .cs__facts { order: 5; }
  .cs { gap: 16px; }
  .cs__body { margin-top: 8px; }
  .cs__facts { margin-top: 8px; }
}

/* ---------- Riquadro del consenso ai cookie ---------- */
.cookie { position: fixed; left: 50%; bottom: 20px; z-index: 60; transform: translateX(-50%); display: flex; align-items: center; gap: 20px; width: min(720px, calc(100% - 32px)); padding: 16px 16px 16px 24px; border-radius: var(--radius-l); background: var(--navy-900); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 20px 60px rgba(10,12,28,.35); color: var(--white); }
.cookie p { margin: 0; flex: 1; font-size: 14px; line-height: 1.5; color: var(--on-dark-soft); }
.cookie a { color: var(--white); text-underline-offset: 3px; }
.cookie__actions { display: flex; gap: 8px; flex: none; }
.cookie .btn { min-height: 42px; padding: 0 20px; font-size: 14px; font-weight: 600; }
.cookie .btn--ghost-light { background: transparent; cursor: pointer; }
.cookie .btn--light { cursor: pointer; }
@media (max-width: 640px) {
  .cookie { flex-direction: column; align-items: stretch; gap: 14px; padding: 18px; bottom: 12px; }
  .cookie__actions .btn { flex: 1; }
}
