/* ==========================================================================
   ValoreStabile — landing B2B
   Palette: blu elettrico (logo), blu profondo, ciano e giallo del marchio.
   ========================================================================== */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("/fonts/manrope-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("/fonts/manrope-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
}

:root {
  --electric: #0a0ef0;      /* fondo del logo */
  --electric-2: #2a33ff;
  --deep: #050a33;          /* blu profondo */
  --deep-2: #0a1250;
  --ink: #0b1233;
  --text: #2c3656;
  --muted: #5b6585;
  --line: #e3e7f2;
  --soft: #f4f6fc;
  --cyan: #1ef2ff;
  --cyan-ink: #007f8a;      /* ciano scurito per testo su bianco (contrasto AA) */
  --yellow: #fff200;
  --white: #ffffff;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 24px 60px -24px rgba(5, 10, 51, 0.35);
  --wrap: 1180px;
  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { color: var(--ink); font-weight: 800; line-height: 1.08; letter-spacing: -0.035em; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
.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; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--yellow); color: var(--deep); padding: 10px 16px; border-radius: 8px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }

.wrap { width: min(var(--wrap), calc(100% - 48px)); margin-inline: auto; }

/* ---------- Etichette ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12.5px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--electric);
  margin-bottom: 18px;
}
.kicker::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.on-dark .kicker, .kicker--light { color: var(--cyan); }
.accent-y { color: var(--yellow); }
.accent-c { color: var(--cyan); }
.accent-b { color: var(--electric); }

/* ---------- Pulsanti ---------- */
.btn {
  --bg: var(--electric); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 16px 26px; border-radius: 999px; border: 1.5px solid transparent;
  background: var(--bg); color: var(--fg);
  font-weight: 750; font-size: 15.5px; letter-spacing: -0.01em; text-decoration: none;
  cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(10, 14, 240, .55); }
.btn .arr { transition: transform .2s ease; }
.btn:hover .arr { transform: translateX(3px); }
.btn--yellow { --bg: var(--yellow); --fg: var(--deep); }
.btn--yellow:hover { box-shadow: 0 14px 34px -12px rgba(255, 242, 0, .55); }
.btn--ghost-light { --bg: transparent; --fg: #fff; border-color: rgba(255,255,255,.35); }
.btn--ghost-light:hover { border-color: var(--cyan); box-shadow: none; }
.btn--deep { --bg: var(--deep); --fg: #fff; }
.btn--sm { padding: 11px 18px; font-size: 14px; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(5,10,51,.4); }
.nav { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.brand { display: inline-flex; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.brand img { width: 132px; height: auto; }
.nav__links { display: flex; gap: 30px; margin-left: auto; }
.nav__links a { text-decoration: none; font-weight: 650; font-size: 15px; color: var(--text); position: relative; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px; background: var(--electric); transition: right .2s ease; }
.nav__links a:hover::after { right: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--deep); color: #c9d0f2;
  padding: clamp(64px, 9vw, 120px) 0 clamp(72px, 9vw, 120px);
}
.hero::before { /* griglia tecnica */
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 80%);
}
.hero::after { /* bagliore elettrico */
  content: ""; position: absolute; z-index: -1;
  width: 900px; height: 900px; right: -260px; top: -340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(10,14,240,.75) 0%, rgba(10,14,240,0) 65%);
}
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.hero__logo { display: inline-flex; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px rgba(30,242,255,.25), 0 18px 50px -12px rgba(10,14,240,.9); margin-bottom: 34px; }
.hero__logo img { width: clamp(190px, 22vw, 250px); height: auto; }
.hero h1 { color: #fff; font-size: clamp(40px, 5.6vw, 74px); letter-spacing: -0.045em; line-height: 1.02; margin-bottom: 26px; }
.hero h1 .line2 { display: block; color: var(--cyan); }
.hero__lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; max-width: 600px; color: #c9d0f2; margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 34px; font-family: var(--mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: #8f99c9; }
.hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--yellow); }

/* Pannello illustrativo hero */
.dossier {
  position: relative;
  background: linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 22px; padding: 26px;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.6);
  backdrop-filter: blur(8px);
}
.dossier__head { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: #8f99c9; padding-bottom: 18px; border-bottom: 1px dashed rgba(255,255,255,.18); }
.dossier__dots { display: flex; gap: 6px; }
.dossier__dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.25); }
.dossier__dots i:first-child { background: var(--cyan); }
.dossier__dots i:nth-child(2) { background: var(--yellow); }
.dossier__steps { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.dossier__step {
  display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: center;
  padding: 16px; border-radius: 14px; background: rgba(5,10,51,.55); border: 1px solid rgba(255,255,255,.08);
}
.dossier__num { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; font-family: var(--mono); font-size: 13px; font-weight: 500; }
.dossier__step:nth-child(1) .dossier__num { background: rgba(30,242,255,.14); color: var(--cyan); }
.dossier__step:nth-child(2) .dossier__num { background: rgba(42,51,255,.35); color: #fff; }
.dossier__step:nth-child(3) .dossier__num { background: rgba(255,242,0,.14); color: var(--yellow); }
.dossier__step strong { display: block; color: #fff; font-size: 16px; letter-spacing: -0.01em; }
.dossier__step span { font-size: 14px; color: #a7b0db; }
.dossier__bars { display: flex; align-items: flex-end; gap: 7px; height: 70px; margin-top: 22px; padding: 0 4px; }
.dossier__bars i { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--electric-2), rgba(42,51,255,.2)); transform-origin: bottom; animation: grow 1.2s cubic-bezier(.2,.8,.2,1) both; }
.dossier__bars i:nth-child(odd) { background: linear-gradient(180deg, var(--cyan), rgba(30,242,255,.15)); }
.dossier__bars i:last-child { background: linear-gradient(180deg, var(--yellow), rgba(255,242,0,.15)); }
.dossier__note { margin: 14px 0 0; font-size: 12px; color: #7b85b8; font-family: var(--mono); letter-spacing: .04em; }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* ---------- Sezioni ---------- */
.section { padding: clamp(80px, 10vw, 128px) 0; position: relative; }
.section--soft { background: var(--soft); }
.section--deep { background: var(--deep); color: #c3cbee; }
.section--deep h2, .section--deep h3, .section--deep h4 { color: #fff; }
.section-head { max-width: 760px; margin-bottom: clamp(44px, 6vw, 68px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .kicker { justify-content: center; }
.section-head h2 { font-size: clamp(32px, 4.2vw, 54px); }
.section-head p { font-size: 18.5px; color: var(--muted); margin: 0; }
.section--deep .section-head p { color: #a9b2dc; }

/* ---------- Storia / numeri ---------- */
.story { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: end; }
.story h2 { font-size: clamp(32px, 4.2vw, 54px); }
.story p { font-size: 18px; color: var(--muted); max-width: 520px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--ink); }
.stat { padding: 28px 24px 8px 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat__value { display: block; font-size: clamp(42px, 5.4vw, 72px); font-weight: 800; letter-spacing: -0.05em; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat__value small { font-size: .45em; letter-spacing: -0.02em; color: var(--electric); margin-left: 4px; }
.stat__label { display: block; margin-top: 14px; font-weight: 650; color: var(--text); font-size: 16px; line-height: 1.4; }
.stat__bar { display: block; height: 4px; width: 46px; margin-top: 18px; border-radius: 4px; }
.stat:nth-child(1) .stat__bar { background: var(--electric); }
.stat:nth-child(2) .stat__bar { background: var(--cyan); }
.stat:nth-child(3) .stat__bar { background: var(--yellow); }
.footnote { margin-top: 34px; font-size: 13.5px; color: var(--muted); max-width: 760px; }

/* ---------- Problemi ---------- */
.problems { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.problem {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px 30px; display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.problem:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.problem__icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: var(--deep); color: var(--cyan); margin-bottom: 26px; }
.problem__icon svg { width: 26px; height: 26px; }
.problem__tag { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.problem h3 { font-size: 25px; }
.problem p { color: var(--muted); font-size: 16.5px; }
.problem__q { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); font-weight: 700; color: var(--ink); font-size: 15.5px; }
.problem__q a { color: var(--electric); text-decoration: none; white-space: nowrap; }
.problem__q a:hover { text-decoration: underline; }

/* ---------- Soluzioni ---------- */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.product__label { display: inline-flex; gap: 10px; align-items: center; font-family: var(--mono); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 22px; }
.product__label b { font-weight: 500; padding: 5px 10px; border-radius: 6px; }
.product__name { font-size: clamp(48px, 7vw, 92px); letter-spacing: -0.055em; line-height: .95; margin-bottom: 10px; }
.product__claim { font-size: clamp(21px, 2.2vw, 27px); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 22px; }
.product__desc { font-size: 17.5px; max-width: 560px; }
.checks { list-style: none; padding: 0; margin: 28px 0 34px; display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; font-size: 16.5px; }
.checks li::before { content: ""; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--c, var(--cyan)) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23050a33' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat; }

/* Affidex (sezione blu profondo) */
.affidex { overflow: hidden; }
.affidex::before { content: ""; position: absolute; inset: auto -20% -60% auto; width: 760px; height: 760px; border-radius: 50%; background: radial-gradient(circle, rgba(30,242,255,.16), transparent 65%); pointer-events: none; }
.affidex .product__label { color: var(--cyan); }
.affidex .product__label b { background: rgba(30,242,255,.12); }
.affidex .product__name .dot { color: var(--cyan); }
.affidex .product__claim { color: var(--cyan); }
.affidex .product__desc strong { color: #fff; }
.price {
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px;
  padding: 22px 24px; border-radius: var(--radius); border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
}
.price__amount { font-size: 40px; font-weight: 800; color: #fff; letter-spacing: -0.04em; line-height: 1; }
.price__amount small { font-size: 16px; font-weight: 600; color: #a9b2dc; letter-spacing: 0; margin-left: 4px; }
.price__note { display: block; font-size: 13px; color: #8f99c9; margin-top: 6px; letter-spacing: 0; font-weight: 500; }
.price .btn { margin-left: auto; }

.report {
  position: relative; background: #fff; color: var(--text);
  border-radius: 22px; padding: 30px; box-shadow: 0 50px 90px -40px rgba(0,0,0,.7);
  transform: rotate(-1.2deg);
}
.report::after { content: ""; position: absolute; inset: 14px -14px -14px 14px; z-index: -1; border-radius: 22px; background: var(--electric); transform: rotate(3deg); }
.report__top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.report__brand { font-weight: 800; font-size: 22px; letter-spacing: -0.04em; color: var(--ink); }
.report__brand span { color: var(--electric); }
.report__badge { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; background: var(--deep); color: var(--cyan); padding: 6px 10px; border-radius: 6px; }
.report__rows { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.report__rows li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: center; padding: 14px; border-radius: 12px; background: var(--soft); }
.report__rows .ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: #fff; color: var(--electric); border: 1px solid var(--line); }
.report__rows .ic svg { width: 20px; height: 20px; }
.report__rows strong { display: block; color: var(--ink); font-size: 15.5px; line-height: 1.3; }
.report__rows span { font-size: 13.5px; color: var(--muted); line-height: 1.35; display: block; }
.report__foot { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 12.5px; color: var(--muted); }

/* Scalata AI (sezione bianca) */
.scalata .product { grid-template-columns: 1fr 1fr; }
.scalata .product__visual { order: -1; }
.scalata .product__label { color: var(--electric); }
.scalata .product__label b { background: rgba(10,14,240,.08); }
.scalata .product__name .ai { display: inline-block; background: var(--electric); color: var(--yellow); padding: 0 .16em; border-radius: .14em; margin-left: .06em; }
.scalata .product__claim { color: var(--electric); }
.scalata .checks { --c: var(--yellow); }
.scalata .checks li::before { box-shadow: inset 0 0 0 1.5px rgba(5,10,51,.08); }
.for-who { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.for-who span { font-size: 14px; font-weight: 650; padding: 8px 14px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); color: var(--ink); }

.workspace {
  background: var(--deep); border-radius: 22px; padding: 22px; color: #c3cbee;
  box-shadow: 0 50px 90px -40px rgba(5,10,51,.6); position: relative; overflow: hidden;
}
.workspace::before { content: ""; position: absolute; width: 380px; height: 380px; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(10,14,240,.8), transparent 70%); }
.workspace > * { position: relative; }
.workspace__bar { display: flex; align-items: center; justify-content: space-between; padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,.1); font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: #8f99c9; }
.workspace__bar strong { color: #fff; font-family: var(--font); letter-spacing: -0.02em; text-transform: none; font-size: 16px; }
.workspace__bar strong span { color: var(--yellow); }
.workspace__body { display: grid; grid-template-columns: .8fr 1.2fr; gap: 14px; margin-top: 16px; }
.ws-docs { display: grid; gap: 8px; align-content: start; }
.ws-doc { display: flex; gap: 10px; align-items: center; padding: 11px 12px; border-radius: 10px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); font-size: 13.5px; color: #dfe4ff; }
.ws-doc i { width: 24px; height: 28px; border-radius: 4px; background: rgba(30,242,255,.18); border: 1px solid rgba(30,242,255,.4); flex-shrink: 0; }
.ws-doc:nth-child(2) i { background: rgba(255,242,0,.14); border-color: rgba(255,242,0,.4); }
.ws-chat { display: grid; gap: 10px; align-content: start; }
.bubble { padding: 12px 14px; border-radius: 14px; font-size: 14px; line-height: 1.45; }
.bubble--q { background: var(--electric); color: #fff; border-bottom-right-radius: 4px; justify-self: end; max-width: 92%; }
.bubble--a { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); color: #dfe4ff; border-bottom-left-radius: 4px; }
.bubble--a b { color: var(--cyan); font-weight: 700; }
.ws-chart { display: flex; align-items: flex-end; gap: 6px; height: 64px; margin-top: 4px; }
.ws-chart i { flex: 1; border-radius: 3px 3px 0 0; background: rgba(30,242,255,.5); }
.ws-chart i.y { background: var(--yellow); }
.workspace__note { margin: 16px 0 0; font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em; color: #7b85b8; }

/* ---------- Percorso complementare ---------- */
.journey { background: var(--electric); color: #dfe3ff; overflow: hidden; }
.journey::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(180deg, #000, transparent 70%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%); pointer-events: none; }
.journey .wrap { position: relative; }
.journey h2 { color: #fff; }
.journey .kicker { color: var(--yellow); }
.journey .section-head p { color: #dfe3ff; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; position: relative; }
.step { position: relative; padding: 0 28px 0 0; }
.step__node { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.step__num { flex-shrink: 0; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--deep); color: var(--cyan); font-family: var(--mono); font-size: 15px; border: 2px solid rgba(255,255,255,.25); }
.step:nth-child(3) .step__num { background: var(--yellow); color: var(--deep); border-color: var(--yellow); }
.step__line { flex: 1; height: 2px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.5) 0 8px, transparent 8px 14px); }
.step:last-child .step__line { display: none; }
.step h3 { font-size: clamp(34px, 3.6vw, 46px); color: #fff; margin-bottom: 12px; }
.step:nth-child(3) h3 { color: var(--yellow); }
.step__tool { display: inline-block; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--deep); background: var(--cyan); padding: 4px 9px; border-radius: 6px; margin-bottom: 14px; }
.step:nth-child(2) .step__tool { background: #fff; }
.step:nth-child(3) .step__tool { background: rgba(255,255,255,.16); color: #fff; }
.step p { font-size: 16.5px; color: #e4e7ff; max-width: 330px; }
.journey__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; margin-top: 56px; padding-top: 36px; border-top: 1px solid rgba(255,255,255,.22); }
.journey__cta p { margin: 0; color: #fff; font-weight: 650; font-size: 18px; max-width: 620px; }

/* ---------- Esempi interattivi ---------- */
.cases { display: grid; grid-template-columns: 340px 1fr; gap: 28px; align-items: start; }
.cases__tabs { display: grid; gap: 10px; }
.case-tab {
  text-align: left; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center;
  padding: 18px; border-radius: 14px; border: 1px solid var(--line); background: #fff; cursor: pointer;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.case-tab:hover { border-color: #c5cbe4; }
.case-tab__n { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-family: var(--mono); font-size: 13px; background: var(--soft); color: var(--muted); transition: background .2s, color .2s; }
.case-tab__t { font-weight: 750; color: var(--ink); line-height: 1.3; font-size: 16px; }
.case-tab__s { display: block; font-weight: 500; font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.case-tab[aria-selected="true"] { background: var(--deep); border-color: var(--deep); box-shadow: var(--shadow); }
.case-tab[aria-selected="true"] .case-tab__n { background: var(--yellow); color: var(--deep); }
.case-tab[aria-selected="true"] .case-tab__t { color: #fff; }
.case-tab[aria-selected="true"] .case-tab__s { color: #a9b2dc; }

.case-panel { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: clamp(26px, 4vw, 44px); box-shadow: var(--shadow); }
.case-panel[hidden] { display: none; }
.case-panel.is-entering { animation: fadeUp .4s ease both; }
.case-panel__scene { font-family: var(--mono); font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--electric); margin-bottom: 12px; }
.case-panel h3 { font-size: clamp(25px, 2.8vw, 34px); max-width: 720px; }
.case-panel__intro { font-size: 17px; color: var(--muted); max-width: 720px; }
.case-qs { list-style: none; padding: 0; margin: 22px 0 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.case-qs li { font-size: 14px; font-weight: 650; padding: 8px 14px; border-radius: 999px; background: var(--soft); color: var(--ink); border: 1px solid var(--line); }
.case-flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.case-flow > div { padding: 20px; border-radius: 14px; border: 1px solid var(--line); }
.case-flow h4 { font-size: 15px; letter-spacing: -0.01em; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.case-flow h4 i { width: 10px; height: 10px; border-radius: 3px; }
.case-flow p { font-size: 15px; color: var(--muted); margin: 0; line-height: 1.55; }
.case-flow .f1 h4 i { background: var(--cyan); }
.case-flow .f2 h4 i { background: var(--electric); }
.case-flow .f3 { background: var(--deep); border-color: var(--deep); }
.case-flow .f3 h4 { color: #fff; }
.case-flow .f3 h4 i { background: var(--yellow); }
.case-flow .f3 p { color: #c3cbee; }
.case-panel__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; }
.case-panel__cta small { color: var(--muted); font-size: 13px; max-width: 420px; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.faq__side { position: sticky; top: 110px; }
.faq__side h2 { font-size: clamp(32px, 4.2vw, 50px); }
.faq__side p { color: var(--muted); font-size: 17.5px; }
.faq__list { 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; align-items: center; gap: 20px;
  padding: 24px 0; font-weight: 750; font-size: 18.5px; color: var(--ink); letter-spacing: -0.015em; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%;
  background: var(--soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a0ef0' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform .25s ease, background-color .25s;
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--yellow); }
.faq details p { margin: -6px 0 24px; padding-right: 54px; color: var(--muted); font-size: 16.5px; }

/* ---------- Contatti ---------- */
.contact { background: var(--deep); color: #c3cbee; overflow: hidden; }
.contact::before { content: ""; position: absolute; width: 900px; height: 900px; left: -400px; bottom: -500px; border-radius: 50%; background: radial-gradient(circle, rgba(10,14,240,.7), transparent 65%); pointer-events: none; }
.contact .wrap { position: relative; }
.contact__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.contact h2 { color: #fff; font-size: clamp(32px, 4.2vw, 52px); }
.contact__lead { font-size: 18px; color: #a9b2dc; max-width: 480px; }
.contact__points { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 16px; }
.contact__points li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: center; color: #e4e7ff; font-weight: 600; }
.contact__points li span { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); font-family: var(--mono); font-size: 12.5px; color: var(--cyan); }

.form-card { background: #fff; color: var(--text); border-radius: 24px; padding: clamp(26px, 4vw, 44px); box-shadow: 0 50px 100px -40px rgba(0,0,0,.7); }
.form-card h3 { font-size: 26px; margin-bottom: 6px; }
.form-card > p { color: var(--muted); font-size: 15.5px; margin-bottom: 26px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 700; font-size: 14.5px; color: var(--ink); }
.field .opt { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1.5px solid #d5dbeb; background: #fbfcff;
  font-size: 16px; color: var(--ink); transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field select { appearance: none; -webkit-appearance: none; background: #fbfcff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b1233' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 14px center / 18px no-repeat; padding-right: 44px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--electric); background: #fff; box-shadow: 0 0 0 4px rgba(10,14,240,.12); }
.field input::placeholder, .field textarea::placeholder { color: #98a1bd; }
.field.has-error input, .field.has-error select { border-color: #c4122f; }
.field__err { font-size: 13px; color: #c4122f; font-weight: 600; display: none; }
.field.has-error .field__err { display: block; }

.choice-group { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.choice-group legend { margin-bottom: 8px; padding: 0; }
.choices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span { display: block; padding: 13px 14px; border-radius: 12px; border: 1.5px solid #d5dbeb; background: #fbfcff; font-weight: 700; font-size: 15px; color: var(--ink); transition: all .2s; line-height: 1.3; }
.choice span small { display: block; font-weight: 500; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.choice input:checked + span { border-color: var(--electric); background: rgba(10,14,240,.06); box-shadow: inset 0 0 0 1px var(--electric); }
.choice input:focus-visible + span { outline: 3px solid var(--cyan); outline-offset: 2px; }

.consent { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 14px; color: var(--muted); line-height: 1.5; }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--electric); }
.consent a { color: var(--electric); font-weight: 700; }
.form-privacy { margin: 4px 0 18px; padding: 14px 16px; border-radius: 12px; background: var(--soft); border: 1px solid var(--line); font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.form-privacy p + p { margin-top: 8px; }
.form-privacy strong { color: var(--ink); }
.form-privacy a { color: var(--electric); font-weight: 700; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-submit { width: 100%; margin-top: 6px; padding: 18px 26px; font-size: 16.5px; }
.form-submit[disabled] { opacity: .7; cursor: progress; transform: none; }
.form-foot { display: block; text-align: center; font-size: 13px; color: var(--muted); margin-top: 14px; }

/* ---------- Footer ---------- */
.footer { background: #030622; color: #8f99c9; padding: 64px 0 36px; font-size: 14.5px; }
.footer__grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer__brand img { width: 150px; height: auto; border-radius: 8px; margin-bottom: 18px; }
.footer h4 { color: #fff; font-size: 13px; font-family: var(--mono); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a { color: #c3cbee; text-decoration: none; }
.footer a:hover { color: var(--cyan); }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; padding-top: 28px; font-size: 13px; }
.placeholder { color: var(--yellow); }

/* ---------- CTA mobile ---------- */
.mobile-cta { display: none; }

/* ---------- Comparsa progressiva ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Pagine semplici (grazie, privacy, 404) ---------- */
.simple { min-height: 100vh; display: flex; flex-direction: column; }
.simple main { flex: 1; }
.thanks { background: var(--deep); color: #c3cbee; padding: clamp(80px, 12vw, 150px) 0; position: relative; overflow: hidden; min-height: calc(100vh - 77px); display: flex; align-items: center; }
.thanks::after { content: ""; position: absolute; width: 900px; height: 900px; right: -300px; top: -400px; border-radius: 50%; background: radial-gradient(circle, rgba(10,14,240,.75), transparent 65%); z-index: 0; }
.thanks .wrap { position: relative; z-index: 1; max-width: 820px; }
.thanks__icon { width: 76px; height: 76px; border-radius: 22px; display: grid; place-items: center; background: var(--yellow); color: var(--deep); margin-bottom: 32px; }
.thanks h1 { color: #fff; font-size: clamp(38px, 5.4vw, 64px); }
.thanks p { font-size: 18.5px; max-width: 620px; }
.next { list-style: none; padding: 0; margin: 40px 0 44px; display: grid; gap: 14px; counter-reset: n; }
.next li { counter-increment: n; display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: center; padding: 16px 18px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); color: #e4e7ff; }
.next li::before { content: "0" counter(n); width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(30,242,255,.12); color: var(--cyan); font-family: var(--mono); font-size: 13px; }
.legal { padding: clamp(56px, 8vw, 96px) 0; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(34px, 4.6vw, 52px); }
.legal h2 { font-size: 22px; margin-top: 40px; }
.legal p, .legal li { color: var(--text); }
.notice { padding: 18px 20px; border-radius: 14px; background: #fffbd1; border: 1px solid #efe36b; color: #4a4300; font-size: 15px; margin: 24px 0 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .hero__grid, .product, .scalata .product, .story, .faq, .contact__grid { grid-template-columns: 1fr; }
  .scalata .product__visual { order: 0; }
  .hero__visual { max-width: 560px; }
  .product__visual { max-width: 600px; }
  .cases { grid-template-columns: 1fr; }
  .cases__tabs { grid-template-columns: repeat(3, 1fr); }
  .case-tab { grid-template-columns: 1fr; gap: 10px; }
  .faq__side { position: static; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav .btn { margin-left: auto; }
  .problems { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 34px; }
  .step { padding: 0 0 0 78px; }
  .step__node { position: absolute; left: 0; top: 0; flex-direction: column; height: 100%; margin: 0; gap: 8px; }
  .step__line { width: 2px; flex: 1; background: repeating-linear-gradient(180deg, rgba(255,255,255,.5) 0 8px, transparent 8px 14px); }
  .step:last-child .step__line { display: none; }
  .case-flow { grid-template-columns: 1fr; }
  .mobile-cta {
    display: block; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
    transform: translateY(140%); transition: transform .3s ease;
  }
  .mobile-cta.is-visible { transform: none; }
  .mobile-cta .btn { width: 100%; box-shadow: 0 16px 40px -10px rgba(5,10,51,.6); }
  body { padding-bottom: env(safe-area-inset-bottom); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 36px); }
  .brand img { width: 112px; }
  .nav { min-height: 66px; }
  .stats { grid-template-columns: 1fr; border-top: 0; }
  .stat, .stat + .stat { padding: 22px 0; border-left: 0; border-top: 1px solid var(--line); }
  .stat:first-child { border-top: 2px solid var(--ink); }
  .cases__tabs { grid-template-columns: 1fr; }
  .case-tab { grid-template-columns: 44px 1fr; }
  .form-grid, .choices { grid-template-columns: 1fr; }
  .price .btn { margin-left: 0; width: 100%; }
  .workspace__body { grid-template-columns: 1fr; }
  .ws-docs { grid-template-columns: repeat(3, 1fr); }
  .ws-doc { flex-direction: column; text-align: center; font-size: 12px; padding: 10px 6px; }
  .report { transform: none; padding: 22px; }
  .report::after { display: none; }
  .hero__actions .btn { width: 100%; }
  .faq details p { padding-right: 0; }
  .footer__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
.placeholder-dark { background: #fffbd1; color: #4a4300; padding: 0 4px; border-radius: 4px; }

/* ==========================================================================
   Percorso per obiettivi (promo, selettore, Scalata, Affidex, modulo a passaggi)
   ========================================================================== */
[hidden] { display: none !important; }
.promo-bar { background: var(--yellow); color: var(--deep); font-size: 14px; font-weight: 700; }
.promo-bar__in p { margin: 0; padding: 9px 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.promo-bar a { color: var(--deep); text-underline-offset: 3px; }
.promo-bar__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--electric); }
.btn--lg { padding: 18px 30px; font-size: 17px; }
.btn--text { --bg: transparent; --fg: var(--ink); border-color: var(--line); }
.btn--text:hover { box-shadow: none; }
.hero__micro { margin: 12px 0 0; font-size: 15px; color: #a9b2dc; width: 100%; }
.offers { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 22px; padding: 24px; }
.offers__head { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--yellow); margin-bottom: 16px; }
.offers__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.offer { background: var(--deep); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 18px; }
.offer__tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 6px; color: var(--deep); margin-bottom: 8px; }
.offer__tag--c { background: var(--cyan); } .offer__tag--y { background: var(--yellow); }
.offer__main { color: #fff; font-weight: 750; font-size: 17px; margin-bottom: 6px; }
.offer__note, .offers__foot, .offers__expired { font-size: 13.5px; color: #a9b2dc; margin-bottom: 8px; }
.offer__link { color: var(--cyan); font-weight: 700; text-decoration: none; display: inline-block; padding: 6px 0; }
.offers__foot { margin: 14px 0 0; }

.goals { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.goal { position: relative; display: block; cursor: pointer; }
.goal input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.goal__card { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 22px; border-radius: 16px; border: 1.5px solid var(--line); background: #fff; transition: border-color .2s, box-shadow .2s; }
.goal:hover .goal__card { border-color: #c5cbe4; }
.goal__n { font-family: var(--mono); font-size: 13px; color: var(--electric); }
.goal__title { font-weight: 800; color: var(--ink); font-size: 17.5px; line-height: 1.3; }
.goal__text { font-size: 15px; color: var(--muted); line-height: 1.5; }
.goal__check { display: none; margin-top: auto; font-size: 13px; font-weight: 700; color: var(--deep); background: var(--yellow); padding: 4px 10px; border-radius: 999px; align-self: flex-start; }
.goal input:checked + .goal__card { border-color: var(--electric); box-shadow: inset 0 0 0 1.5px var(--electric), var(--shadow); }
.goal input:checked + .goal__card .goal__check { display: inline-block; }
.goal input:focus-visible + .goal__card { outline: 3px solid var(--cyan); outline-offset: 3px; }
.goal--advice .goal__card { background: var(--soft); }
.goals__nojs { margin-top: 20px; } .js .goals__nojs { display: none; }
.no-js .js-only { display: none !important; }
.goal-detail { margin-top: 24px; display: grid; grid-template-columns: 1.4fr .9fr; gap: 24px; padding: clamp(22px, 4vw, 36px); border-radius: 22px; background: var(--deep); color: #c3cbee; }
.goal-detail__kicker { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan); margin-bottom: 6px; }
.goal-detail__title { color: #fff; font-size: clamp(22px, 2.6vw, 30px); }
.goal-detail__list { margin: 18px 0; display: grid; gap: 14px; }
.goal-detail__list dt { color: var(--yellow); font-weight: 700; font-size: 14px; }
.goal-detail__list dd { margin: 2px 0 0; color: #e4e7ff; }
.goal-detail__side { display: flex; flex-direction: column; gap: 12px; }
.goal-detail__label { color: #fff; font-weight: 700; }
.goal-detail__side select { padding: 14px; border-radius: 12px; border: 0; font-size: 16px; background: #fff; color: var(--ink); }
.goal-detail__small { font-size: 13px; color: #8f99c9; margin: 0; }
.caveat { font-size: 14px; padding: 10px 14px; border-left: 3px solid var(--yellow); background: rgba(255,242,0,.1); border-radius: 0 8px 8px 0; color: inherit; }
.caveat--dark, .caveat--light { color: #e4e7ff; }

.pill { display: inline-block; font-size: 12.5px; font-weight: 700; padding: 5px 11px; border-radius: 999px; color: var(--deep); text-transform: none; letter-spacing: 0; font-family: var(--font); }
.pill--c { background: var(--cyan); } .pill--y { background: var(--yellow); }
.product__name .ai { display: inline-block; background: var(--electric); color: var(--yellow); padding: 0 .16em; border-radius: .14em; }
.product__name { font-size: clamp(40px, 5.6vw, 72px); }
.product__title { font-size: clamp(30px, 4vw, 50px); color: #fff; }
.define { margin-top: 24px; padding: 20px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.define__term { font-weight: 800; color: var(--ink); margin-bottom: 4px; }
.define__extra { font-size: 15px; color: var(--muted); margin: 8px 0 0; }
.de-card, .report { margin: 0; background: #fff; border-radius: 20px; padding: 24px; box-shadow: var(--shadow); border: 1px solid var(--line); transform: none; }
.report::after { display: none; }
.de-card__head { display: flex; gap: 12px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.de-card__head strong { display: block; color: var(--ink); } .de-card__head span { font-size: 13px; color: var(--muted); }
.de-card__avatar { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--deep); color: var(--cyan); font-weight: 800; }
.de-card__rows { margin: 14px 0 0; display: grid; gap: 10px; }
.de-card__rows dt { font-size: 12.5px; font-weight: 700; color: var(--electric); }
.de-card__rows dd { margin: 0; font-size: 15px; color: var(--text); }
.de-card__cap { margin-top: 14px; font-size: 12.5px; color: var(--muted); }
.report__n { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--deep); color: var(--yellow); font-weight: 800; }
.report__brand small { font-size: 13px; font-weight: 600; color: var(--muted); }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.tier { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.tier__label { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--electric); }
.tier--confirm .tier__label { color: #8a6d00; } .tier--try .tier__label { color: var(--cyan-ink); }
.tier h3 { font-size: 21px; }
.tier__src { font-size: 13px; color: var(--muted); margin: 12px 0 0; }
.ticks { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 24px; font-size: 15.5px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; border-radius: 3px; background: var(--cyan); }
.ticks--open li::before { background: transparent; border: 2px solid var(--muted); }
.ticks--dark li { color: #e4e7ff; } .ticks--dark li::before { background: var(--yellow); }
.promo-box { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; padding: clamp(22px, 4vw, 36px); border-radius: 22px; background: var(--electric); color: #e4e7ff; }
.promo-box > div { flex: 1 1 420px; } .promo-box h3 { color: #fff; font-size: clamp(22px, 2.6vw, 30px); }
.promo-box__tag { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--yellow); }
.price__amount { margin: 0; } .price__label { color: #fff; font-weight: 700; margin: 4px 0; }
.flow { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.flow__step { padding: 22px; border-radius: 16px; border: 1px solid var(--line); background: var(--soft); display: flex; flex-direction: column; gap: 6px; }
.flow__step strong { color: var(--ink); font-size: 17px; } .flow__step span:last-child { font-size: 14.5px; color: var(--muted); }
.flow__n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--deep); color: var(--cyan); font-weight: 800; }
.flow__caveat { margin-top: 20px; color: var(--text); }
.section--tight { padding: clamp(56px, 7vw, 88px) 0; }
.story .stats, .story .footnote { grid-column: 1 / -1; }
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 48px; }
.faq__h { font-size: 15px; font-family: var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--electric); margin: 0 0 6px; }
.faq summary { font-size: 17px; padding: 18px 0; }
.faq details p { padding-right: 0; font-size: 15.5px; }
.contact__safe { margin-top: 24px; font-size: 14.5px; color: #a9b2dc; }
.stepper { list-style: none; padding: 0; margin: 0 0 22px; display: flex; gap: 8px; }
.no-js .stepper { display: none; }
.stepper li { flex: 1; display: flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 700; color: var(--muted); padding-bottom: 10px; border-bottom: 3px solid var(--line); }
.stepper li span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); }
.stepper li.is-current { color: var(--ink); border-color: var(--electric); }
.stepper li.is-done { border-color: var(--cyan); }
.stepper li.is-current span { background: var(--electric); color: #fff; }
.fstep { border: 0; margin: 0 0 18px; padding: 0; display: grid; gap: 18px; }
.fstep__title { font-weight: 800; font-size: 22px; color: var(--ink); padding: 0; margin-bottom: 4px; }
.fstep__title:focus { outline: none; }
.fstep__count { display: block; font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.fstep__nav { display: flex; gap: 12px; justify-content: space-between; flex-wrap: wrap; }
.fstep__nav .btn:only-child { margin-left: auto; }
.field__label { font-weight: 700; font-size: 14.5px; color: var(--ink); }
.field__hint { font-size: 13px; color: var(--muted); margin: 0; }
.field.has-error textarea { border-color: #c4122f; }
.choice span b { display: block; }
.choices--inline { grid-template-columns: 1fr 1fr; }
.choices--three { grid-template-columns: repeat(3, 1fr); }
.cond { padding: 18px; border-radius: 14px; background: var(--soft); display: grid; gap: 16px; }
.cond__title { margin: 0; font-weight: 800; color: var(--electric); }
.summary { padding: 14px 16px; border-radius: 12px; border: 1px dashed var(--line); font-size: 14.5px; }
.summary__title { font-weight: 800; margin-bottom: 6px; color: var(--ink); }
.summary dl { margin: 0; display: grid; gap: 4px; } .summary dt { font-weight: 700; display: inline; } .summary dd { display: inline; margin: 0 0 0 6px; }
.form-error { padding: 14px 16px; border-radius: 12px; background: #fde8ec; color: #8a0d22; font-weight: 600; }
.form-submit { width: auto; flex: 1; }
.footer__h { color: #fff; font-size: 13px; font-family: var(--mono); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }

@media (max-width: 1040px) {
  .goals, .tiers { grid-template-columns: 1fr 1fr; }
  .goal-detail, .faq { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .goals, .tiers, .flow, .choices--three { grid-template-columns: 1fr; }
  .goal__card { padding: 18px; }
  .stepper li { font-size: 0; } .stepper li span { font-size: 13px; }
  .fstep__nav .btn { flex: 1; }
}

/* ==========================================================================
   Credibilità, percorsi, Affidex (casi, calcolatore, facsimile, offerta), storia
   ========================================================================== */
.footer__grid { grid-template-columns: 1.2fr 1fr 1fr 1fr; }
.cred { background: var(--deep-2); border-top: 1px solid rgba(255,255,255,.08); color: #c3cbee; }
.cred__in { display: flex; flex-wrap: wrap; gap: 0; }
.cred__item { flex: 1 1 200px; margin: 0; padding: 18px 20px; display: flex; flex-direction: column; gap: 2px; border-left: 1px solid rgba(255,255,255,.1); position: relative; }
.cred__item:first-child { border-left: 0; padding-left: 0; }
.cred__item strong { color: #fff; font-size: 20px; letter-spacing: -0.02em; }
.cred__item span { font-size: 14px; } .cred__item small { display: block; color: #8f99c9; font-size: 12px; }
.cred__item a { color: var(--cyan); }
.is-draft { outline: 2px dashed var(--yellow); outline-offset: -4px; }
.is-draft::before { content: attr(data-draft-label); position: absolute; top: 4px; right: 8px; font-size: 10.5px; font-weight: 700; background: var(--yellow); color: var(--deep); padding: 1px 6px; border-radius: 4px; }

.paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.path { display: flex; flex-direction: column; gap: 8px; padding: 26px; border-radius: 18px; background: #fff; border: 1px solid var(--line); text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.path:hover { border-color: var(--electric); box-shadow: var(--shadow); }
.path__n { font-family: var(--mono); font-size: 13px; color: var(--electric); }
.path__title { font-size: 22px; color: var(--ink); letter-spacing: -0.02em; line-height: 1.2; }
.path__tool { font-size: 13px; font-weight: 700; color: var(--cyan-ink); }
.path__text { font-size: 15.5px; color: var(--muted); }
.path__go { margin-top: auto; padding-top: 10px; font-weight: 750; color: var(--electric); }
.combine { margin-top: 48px; }
.combine h3 { font-size: clamp(24px, 3vw, 34px); }
.combine > p { color: var(--muted); max-width: 760px; }
.combine .flow__step { background: #fff; }

.affidex { overflow: hidden; }
.affidex__head { max-width: 860px; }
.affidex__lead { font-size: clamp(17px, 1.6vw, 20px); color: #c9d0f2; }
.affidex__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.affidex__h { color: #fff; font-size: clamp(22px, 2.6vw, 30px); }
.usecases { margin-top: clamp(48px, 6vw, 72px); }
.usecase-list { display: grid; gap: 10px; }
.usecase { border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); }
.usecase[open] { background: rgba(255,255,255,.08); border-color: rgba(30,242,255,.35); }
.usecase summary { list-style: none; cursor: pointer; display: flex; gap: 14px; align-items: center; padding: 18px 20px; color: #fff; font-weight: 750; font-size: 17px; line-height: 1.35; min-height: 56px; }
.usecase summary::-webkit-details-marker { display: none; }
.usecase summary::after { content: "+"; margin-left: auto; font-size: 22px; color: var(--cyan); }
.usecase[open] summary::after { content: "–"; }
.usecase__n { flex-shrink: 0; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--yellow); color: var(--deep); font-weight: 800; font-size: 14px; }
.usecase dl { margin: 0; padding: 0 20px 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.usecase dt { font-size: 12.5px; font-weight: 700; color: var(--cyan); text-transform: uppercase; letter-spacing: .06em; }
.usecase dd { margin: 4px 0 0; font-size: 15px; color: #e4e7ff; }

.differ { margin-top: clamp(48px, 6vw, 72px); display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; }
.differ__note { font-size: 14px; color: #a9b2dc; }
.differ__out { padding: 24px; border-radius: 18px; border: 1px solid rgba(255,255,255,.14); }
.differ__h { color: #fff; font-weight: 800; }
.xlist { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.xlist li { position: relative; padding-left: 22px; font-size: 14.5px; color: #c3cbee; }
.xlist li::before { content: "×"; position: absolute; left: 0; top: -1px; color: #ff8fa3; font-weight: 800; }
.differ__small { font-size: 13px; color: #8f99c9; margin: 0; }

.calc { margin-top: clamp(48px, 6vw, 72px); padding: clamp(22px, 4vw, 36px); border-radius: 22px; background: #fff; color: var(--text); }
.calc .affidex__h { color: var(--ink); }
.calc__body { display: grid; grid-template-columns: 1fr 1.4fr; gap: 24px; align-items: end; }
.calc__field label { display: block; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.calc__input { display: flex; align-items: center; border: 1.5px solid #d5dbeb; border-radius: 12px; background: #fbfcff; padding-right: 16px; }
.calc__input:focus-within { border-color: var(--electric); box-shadow: 0 0 0 4px rgba(10,14,240,.12); }
.calc__input input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 16px; font-size: 22px; font-weight: 800; color: var(--ink); outline: none; }
.calc__input span { font-weight: 800; color: var(--muted); }
.calc__out { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.calc__out > div { padding: 14px; border-radius: 12px; background: var(--soft); }
.calc__out dt { font-size: 13px; color: var(--muted); font-weight: 600; }
.calc__out dd { margin: 4px 0 0; font-size: 22px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.calc__res { background: var(--deep) !important; } .calc__res dt { color: #a9b2dc; } .calc__res dd { color: var(--yellow); }
.calc__disc { margin: 16px 0 0; font-size: 13.5px; color: var(--muted); }

.sample-offer { margin-top: clamp(48px, 6vw, 72px); display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: stretch; }
.sample > p { color: #c9d0f2; }
.sample__cover { display: block; text-decoration: none; margin: 20px 0; max-width: 340px; border-radius: 6px; }
.mini-cover { display: flex; flex-direction: column; gap: 10px; aspect-ratio: 210 / 297; padding: 26px 22px; border-radius: 6px; background: linear-gradient(170deg, #fff 0 62%, #eef1fa 62%); color: var(--ink); box-shadow: 0 30px 60px -24px rgba(0,0,0,.7); position: relative; transition: transform .25s ease; }
.sample__cover:hover .mini-cover { transform: translateY(-4px); }
.mini-cover__flag { align-self: flex-start; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: var(--yellow); color: var(--deep); padding: 3px 7px; border-radius: 3px; }
.mini-cover__brand { margin-top: 18%; font-size: 30px; font-weight: 800; letter-spacing: .02em; color: var(--deep); line-height: 1; }
.mini-cover__brand i { font-style: normal; font-weight: 500; font-size: 15px; letter-spacing: 0; color: var(--muted); }
.mini-cover__sub { font-size: 13px; color: var(--text); line-height: 1.35; border-top: 3px solid var(--deep); padding-top: 10px; }
.mini-cover__co { margin-top: auto; font-weight: 800; font-size: 14px; }
.mini-cover__pages { display: flex; gap: 4px; } .mini-cover__pages i { flex: 1; height: 4px; border-radius: 2px; background: var(--deep); opacity: .18; } .mini-cover__pages i:first-child { opacity: 1; }
.mini-cover__foot { font-size: 11px; color: var(--muted); }
.sample__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.sample__note { font-size: 13px; color: #8f99c9 !important; margin-top: 14px; }
.deal { padding: clamp(22px, 3vw, 32px); border-radius: 22px; background: var(--electric); color: #e4e7ff; display: flex; flex-direction: column; gap: 12px; }
.deal__tag { margin: 0; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--yellow); }
.deal__price { margin: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; }
.deal__price s { font-size: 22px; color: #b9c0f5; }
.deal__price strong { font-size: clamp(48px, 6vw, 64px); color: #fff; letter-spacing: -0.04em; line-height: 1; }
.deal__off { font-weight: 800; background: var(--yellow); color: var(--deep); padding: 4px 10px; border-radius: 8px; }
.deal__label { color: #fff; font-weight: 700; margin: 0; }
.countdown { padding: 14px 16px; border-radius: 14px; background: rgba(5,10,51,.35); }
.countdown p { margin: 0; } .countdown__label { font-size: 13px; color: #c9d0f2; }
.countdown__value { color: #fff; font-weight: 700; font-size: 17px; font-variant-numeric: tabular-nums; }
.countdown__value span { font-size: 26px; font-weight: 800; color: var(--yellow); }
.countdown__small { font-size: 12px; color: #b9c0f5; }
.deal__steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 15px; }
.deal__cta { width: 100%; }
.deal__small { font-size: 12.5px; color: #c9d0f2; margin: 0; }
.offer__price { margin: 0 0 6px; color: #fff; } .offer__price s { color: #8f99c9; } .offer__price strong { font-size: 20px; } .offer__price span { font-size: 12px; font-weight: 800; background: var(--yellow); color: var(--deep); padding: 2px 6px; border-radius: 5px; }

.story2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px clamp(40px, 6vw, 80px); }
.story2__intro h2 { font-size: clamp(30px, 4vw, 48px); }
.story2__intro > p { color: var(--muted); font-size: 17.5px; }
.principle { margin: 24px 0 0; padding: 18px 22px; border-left: 4px solid var(--yellow); background: var(--soft); border-radius: 0 14px 14px 0; font-size: 19px; font-weight: 750; color: var(--ink); }
.story2__result { position: relative; margin-top: 20px; padding: 18px; border-radius: 14px; border: 1px solid var(--line); }
.story2__result strong { display: block; font-size: 30px; color: var(--ink); } .story2__result span { font-size: 14.5px; color: var(--muted); }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 28px 28px; }
.timeline li::before { content: ""; position: absolute; left: -8px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--cyan); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.timeline li:last-child::before { background: var(--yellow); }
.timeline__when { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--electric); }
.timeline strong { display: block; font-size: 20px; color: var(--ink); margin: 2px 0 4px; }
.timeline p { color: var(--muted); margin: 0; font-size: 15.5px; }
.story2__bridge { grid-column: 1 / -1; padding: clamp(22px, 3vw, 32px); border-radius: 20px; background: var(--deep); color: #c3cbee; }
.story2__bridge > p:first-child { color: #fff; font-size: clamp(18px, 2vw, 22px); font-weight: 700; }
.bridge-links { list-style: none; margin: 16px 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.bridge-links a { display: block; padding: 14px 16px; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: #fff; font-weight: 700; text-decoration: none; }
.bridge-links a:hover { border-color: var(--cyan); }
.bridge-links span { display: block; font-size: 13px; font-weight: 600; color: var(--cyan); }
.story2__bridge .footnote { color: #8f99c9; margin: 0; }

@media (max-width: 1040px) {
  .paths, .bridge-links { grid-template-columns: 1fr; }
  .differ, .sample-offer, .story2, .calc__body { grid-template-columns: 1fr; }
  .usecase dl { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .cred__item { flex-basis: 50%; padding: 14px 12px; border-left: 0; } .cred__item:first-child { padding-left: 12px; }
  .usecase dl, .calc__out { grid-template-columns: 1fr; }
  .affidex__ctas .btn, .sample__actions .btn { width: 100%; white-space: normal; }
  .sample__cover { max-width: 260px; margin-inline: auto; }
  .footer__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Facsimile Affidex by Templar (/affidex-facsimile)
   Le pagine scalano con la larghezza (unità cqw); sotto i 13 px il testo si
   ferma e la pagina si allunga, per restare leggibile su iPhone.
   ========================================================================== */
.fx-body { background: #e9ecf5; }
.fx-main { padding: 40px 0 64px; }
.fx-intro { max-width: 860px; margin-bottom: 20px; }
.fx-intro h1 { font-size: clamp(28px, 4vw, 44px); }
.fx-intro p { color: var(--muted); }
.fx-intro__flag, .fx-flag { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: var(--yellow); color: var(--deep); padding: 4px 9px; border-radius: 4px; margin-bottom: 12px; }
.fx-toolbar { position: sticky; top: 76px; z-index: 20; width: min(860px, calc(100% - 32px)); margin: 0 auto 14px; display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 999px; background: var(--deep); color: #fff; box-shadow: var(--shadow); }
.fx-tb__btn, .fx-tb__print { min-width: 44px; min-height: 44px; border-radius: 999px; border: 0; background: rgba(255,255,255,.1); color: #fff; font-weight: 800; cursor: pointer; font-size: 18px; }
.fx-tb__print { margin-left: auto; padding: 0 18px; font-size: 14px; background: var(--yellow); color: var(--deep); }
.fx-tb__count { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.fx-track { width: min(860px, calc(100% - 32px)); margin: 0 auto; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; gap: 0; align-items: flex-start; container-type: inline-size; border-radius: 4px; scrollbar-width: thin; }
.no-js .fx-track { display: grid; gap: 24px; overflow: visible; }
.fx-page {
  flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 210 / 297; min-height: 0;
  position: relative; display: flex; flex-direction: column;
  background: #fff; color: #1d2540;
  --px: 18px; --pt: 22px; --pb: 54px;
  --px: max(18px, 6.5cqw); --pt: max(22px, 6.5cqw); --pb: max(54px, 9cqw);
  padding: var(--pt) var(--px) var(--pb); font-size: 13px; line-height: 1.5;
  font-size: max(13px, 1.7cqw);
  box-shadow: 0 20px 50px -30px rgba(5,10,51,.5);
}
.fx-page p { margin: 0 0 .8em; }
.fx-head { display: flex; justify-content: space-between; gap: 12px; padding-bottom: .7em; border-bottom: 2px solid #050a33; font-size: .82em; color: #5b6585; margin-bottom: 1.6em; }
.fx-head__brand { font-weight: 800; letter-spacing: .08em; color: #050a33; }
.fx-head__brand i { font-style: normal; font-weight: 500; letter-spacing: 0; color: #5b6585; }
.fx-sec { font-family: var(--mono); font-size: .85em; color: #0a0ef0; margin: 0 0 .2em !important; }
.fx-h { font-size: 2em; color: #050a33; margin-bottom: .6em; letter-spacing: -0.03em; }
.fx-h3 { font-size: 1.15em; color: #050a33; margin: 1.2em 0 .4em; }
.fx-lead { font-size: 1.12em; color: #2c3656; }
.fx-foot { position: absolute; left: var(--px); right: var(--px); bottom: max(16px, 3.5cqw); display: flex; justify-content: space-between; gap: 10px; padding-top: .6em; border-top: 1px solid #dfe3ee; font-size: .75em; color: #5b6585; }
.fx-foot span:first-child { font-weight: 700; color: #6b5800; }
.fx-cover__band { margin: auto calc(-1 * var(--px)) calc(-1 * var(--pb)); padding: 2em var(--px) var(--pb); background: #050a33; }
.fx-cover__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; font-size: .85em; color: #5b6585; }
.fx-cover__brand { margin-top: 18%; }
.fx-brand { font-size: 3.6em; font-weight: 800; letter-spacing: .03em; color: #050a33; line-height: 1; }
.fx-brand span { display: block; font-size: .36em; font-weight: 500; letter-spacing: .02em; color: #5b6585; margin-top: .3em; }
.fx-cover__sub { font-size: 1.3em; color: #2c3656; max-width: 30em; padding-top: .8em; border-top: 4px solid #050a33; margin-top: 1em !important; }
.fx-cover__meta { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1em 1.6em; color: #fff; }
.fx-cover__meta dt { font-size: .78em; text-transform: uppercase; letter-spacing: .08em; color: #1ef2ff; }
.fx-cover__meta dd { margin: .2em 0 0; font-weight: 700; }
.fx-cover__note { color: #a9b2dc; font-size: .8em; margin-top: 1.4em !important; }
.fx-cover .fx-foot { border-color: rgba(255,255,255,.15); color: #a9b2dc; }
.fx-cover .fx-foot span:first-child { color: #fff200; }
.fx-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7em; margin: 1.2em 0; }
.fx-kpi { padding: .9em; border-radius: 6px; background: #f2f4fa; border-top: 3px solid #050a33; }
.fx-kpi span { display: block; font-size: .78em; color: #5b6585; }
.fx-kpi strong { display: block; font-size: 1.5em; color: #050a33; letter-spacing: -0.02em; }
.fx-kpi em { font-style: normal; font-size: .78em; color: #2c3656; }
.fx-cols { display: grid; grid-template-columns: 1fr; gap: .8em; margin: .8em 0; }
.fx-box { padding: .9em 1em; border-radius: 6px; border: 1px solid #dfe3ee; }
.fx-box ul { margin: 0; padding-left: 1.1em; } .fx-box li { margin-bottom: .3em; }
.fx-box__t { font-weight: 800; color: #050a33; margin-bottom: .4em !important; }
.fx-box--pos { border-left: 4px solid #007f8a; } .fx-box--warn { border-left: 4px solid #d1a800; }
.fx-box--limits { background: #f7f8fc; }
.fx-summary { margin-top: auto; padding: 1em 1.1em; border-radius: 6px; background: #050a33; color: #dfe4ff; }
.fx-summary__t { color: #fff200; font-weight: 800; margin-bottom: .3em !important; }
.fx-summary p:last-child { margin: 0; }
.fx-table { width: 100%; border-collapse: collapse; font-size: .9em; font-variant-numeric: tabular-nums; margin-bottom: 1em; }
.fx-cap { text-align: left; font-weight: 800; color: #050a33; padding-bottom: .5em; }
.fx-table th, .fx-table td { padding: .42em .5em; border-bottom: 1px solid #e3e7f2; text-align: right; }
.fx-table th[scope="row"], .fx-table thead th:first-child { text-align: left; font-weight: 600; }
.fx-table thead th { background: #050a33; color: #fff; font-weight: 700; }
.fx-table--kv th, .fx-table--kv td { text-align: left; }
.fx-table--kv th { width: 40%; color: #5b6585; }
.fx-row-strong th, .fx-row-strong td { font-weight: 800; background: #f2f4fa; color: #050a33; }
.fx-t { font-size: .85em; font-weight: 700; padding: .1em .5em; border-radius: 4px; white-space: nowrap; }
.fx-t--down { background: #fff6cc; color: #6b5800; } .fx-t--warn { background: #fde8ec; color: #8a0d22; }
.fx-chartrow { display: grid; grid-template-columns: 1fr; gap: .8em; }
.fx-chart { margin: 0; } .fx-chart svg { width: 100%; height: auto; font-family: var(--font); }
.fx-chart figcaption { font-size: .78em; color: #5b6585; }
.fx-key { display: inline-block; width: .9em; height: .9em; border-radius: 2px; vertical-align: -1px; } .fx-key--b { background: #0a0ef0; } .fx-key--g { background: #9aa3c4; }
.fx-alerts { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: .6em; }
.fx-alerts li { padding: .7em .9em; border-radius: 6px; background: #f7f8fc; border: 1px solid #e3e7f2; }
.fx-alerts strong { display: block; color: #050a33; } .fx-alerts p { margin: .2em 0 0 !important; font-size: .92em; }
.fx-level { float: right; font-size: .72em; font-weight: 800; padding: .15em .55em; border-radius: 4px; margin-left: .6em; }
.fx-level--h { background: #fde8ec; color: #8a0d22; } .fx-level--m { background: #fff6cc; color: #6b5800; } .fx-level--l { background: #e3f6f7; color: #005961; }
.fx-disclaimer { font-size: .78em; color: #5b6585; margin-top: 1em !important; }
.fx-cta { max-width: 860px; margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 26px; border-radius: 20px; background: var(--deep); color: #c3cbee; }
.fx-cta h2 { color: #fff; font-size: clamp(20px, 2.4vw, 26px); margin-bottom: 6px; } .fx-cta p { margin: 0; } .fx-cta strong { color: #fff; }

@container (min-width: 600px) {
  .fx-kpis--4 { grid-template-columns: repeat(4, 1fr); }
  .fx-cols { grid-template-columns: 1fr 1fr; }
  .fx-chartrow { grid-template-columns: 1.2fr 1fr; align-items: start; }
}
@media (max-width: 640px) {
  .fx-toolbar { top: 66px; }
  .fx-head { flex-direction: column; gap: 2px; }
  .fx-table th, .fx-table td { padding: .4em .3em; }
  .fx-cover__meta { grid-template-columns: 1fr; }
  .fx-cta .btn { width: 100%; white-space: normal; }
}
@media print {
  @page { size: A4; margin: 0; }
  .fx-body { background: #fff; }
  .fx-header, .fx-intro, .fx-toolbar, .fx-cta, .fx-body > .footer { display: none !important; }
  .fx-main { padding: 0; }
  .fx-track { display: block; width: 210mm; overflow: visible; container-type: inline-size; }
  .fx-page { width: 210mm; height: 297mm; aspect-ratio: auto; box-shadow: none; break-after: page; page-break-after: always; overflow: hidden; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .fx-kpis--4 { grid-template-columns: repeat(4, 1fr); } .fx-cols { grid-template-columns: 1fr 1fr; } .fx-chartrow { grid-template-columns: 1.2fr 1fr; }
}

/* ==========================================================================
   Chi siamo, indicatori, community, footer istituzionale
   ========================================================================== */
.about__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(36px, 6vw, 90px); align-items: start; }
.about h2 { font-size: clamp(30px, 4vw, 50px); max-width: 640px; }
.about__brand { display: block; font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--electric); margin-bottom: 14px; }
.about__intro > p { color: var(--muted); font-size: 17.5px; max-width: 640px; }
.about__intro > .about__lead { color: var(--ink); font-size: clamp(18px, 1.7vw, 20.5px); font-weight: 600; line-height: 1.55; }
.about__side { padding-top: 8px; }
.about__side .principle { margin-top: 8px; }

.founder { display: inline-flex; align-items: center; gap: 16px; margin: 18px 0 0; padding: 10px 22px 10px 10px; border-radius: 999px; border: 1px solid var(--line); background: #fff; box-shadow: 0 16px 40px -28px rgba(5,10,51,.45); }
.founder__photo, .founder__initials { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.founder__initials { display: grid; place-items: center; background: linear-gradient(140deg, var(--electric), var(--deep)); color: #fff; font-weight: 800; font-size: 19px; letter-spacing: .02em; box-shadow: inset 0 0 0 3px rgba(30,242,255,.5); }
.founder__photo { background: var(--deep); box-shadow: 0 0 0 3px #fff, 0 0 0 4px rgba(30,242,255,.55); }
.founder figcaption { display: grid; line-height: 1.3; }
.founder strong { color: var(--ink); font-size: 16.5px; }
.founder figcaption span { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan-ink); margin-top: 3px; }

.metrics { margin: clamp(48px, 6vw, 72px) 0 clamp(28px, 4vw, 40px); }
.metrics__head { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; font-weight: 750; color: var(--ink); font-size: 15.5px; }
.metrics__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 5px rgba(30,242,255,.18); animation: vs-pulse 2.6s ease-in-out infinite; }
@keyframes vs-pulse { 50% { box-shadow: 0 0 0 9px rgba(30,242,255,0); } }
.metrics__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); border-radius: 22px; overflow: hidden; background: var(--deep); box-shadow: var(--shadow); }
.metric { position: relative; padding: clamp(22px, 2.4vw, 32px) clamp(18px, 2vw, 26px); display: flex; flex-direction: column; gap: 8px; color: #c3cbee; border-left: 1px solid rgba(255,255,255,.09); }
.metric:first-child { border-left: 0; }
.metric::before { content: ""; position: absolute; left: clamp(18px, 2vw, 26px); top: 0; width: 34px; height: 3px; border-radius: 0 0 3px 3px; background: var(--cyan); }
.metric:nth-child(2)::before { background: var(--yellow); }
.metric:nth-child(3)::before { background: #fff; }
.metric:nth-child(5)::before { background: var(--yellow); }
.metric__value { color: #fff; font-size: clamp(30px, 3.2vw, 44px); font-weight: 800; letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.metric__value small { font-size: .5em; color: var(--cyan); letter-spacing: -0.02em; margin-left: 2px; }
.metric__label { font-weight: 650; font-size: 14.5px; line-height: 1.4; color: #e4e7ff; }
.metric__note { font-size: 12px; color: #8f99c9; line-height: 1.4; }
.metric__link { margin-top: auto; font-size: 13px; font-weight: 700; color: var(--cyan); text-decoration: none; }
.metric__link:hover { text-decoration: underline; }
.about .story2__bridge { margin-top: 0; }

.community { overflow: hidden; }
.community::before { content: ""; position: absolute; width: 760px; height: 760px; right: -260px; top: -380px; border-radius: 50%; background: radial-gradient(circle, rgba(10,14,240,.75), transparent 65%); pointer-events: none; }
.community__in { position: relative; display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.community h2 { font-size: clamp(30px, 4vw, 50px); }
.community__text { font-size: 18px; color: #a9b2dc; max-width: 560px; margin: 0; }

.socials { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.social { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 42px; height: 42px; border-radius: 12px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.05); color: #fff; text-decoration: none; transition: border-color .2s, background .2s, transform .2s, color .2s; }
a.social:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-2px); }
.social.is-pending { opacity: .5; cursor: default; }
.social__name { font-weight: 700; font-size: 15px; }
.socials--lg { display: grid; gap: 12px; }
.socials--lg .social { width: 100%; height: auto; justify-content: flex-start; padding: 16px 20px; border-radius: 16px; }
.socials--lg .social.is-pending { opacity: .62; }
.footer .socials { margin-top: 18px; }
.footer a.social { color: #c3cbee; }

.footer__grid--4 { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
.footer__brand p { max-width: 340px; }
.footer__discreet { opacity: .85; }
.footer__simple { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px 28px; }
.footer__simple img { width: 120px; height: auto; border-radius: 8px; }
.footer__links { list-style: none; margin: 0; padding: 0; display: flex !important; flex-wrap: wrap; gap: 8px 22px; }
.footer__simple + .footer__legal { margin-top: 28px; border-top: 1px solid rgba(255,255,255,.1); }

.contact__direct { margin-top: 30px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: 15px; color: #a9b2dc; }
.contact__direct p { margin: 0 0 6px; }
.contact__direct a { color: var(--cyan); font-weight: 700; text-underline-offset: 3px; }

/* Pagine legali: indice e note da completare */
.legal__meta { font-family: var(--mono); font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.legal__toc { margin: 28px 0 8px; padding: 20px 24px; border-radius: 16px; background: var(--soft); border: 1px solid var(--line); }
.legal__toc strong { display: block; font-size: 14px; color: var(--ink); margin-bottom: 8px; }
.legal__toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; font-size: 15px; }
.legal__toc a { color: var(--electric); text-decoration: none; }
.legal__toc a:hover { text-decoration: underline; }
.legal h3 { font-size: 17px; margin: 22px 0 6px; letter-spacing: -0.015em; }
.legal h2 { scroll-margin-top: 96px; }
.legal a { color: var(--electric); }
.legal .todo { display: block; margin: 10px 0 14px; padding: 12px 14px; border-radius: 10px; background: #fffbd1; border: 1px dashed #d9c93a; color: #4a4300; font-size: 14.5px; }
.legal .todo::before { content: "Da completare · "; font-weight: 800; }
.legal__base { font-size: 15px; color: var(--muted); }
.legal table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 12px 0 20px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.legal th { color: var(--ink); background: var(--soft); }

/* ==========================================================================
   Pagina Lavora con noi | Careers
   ========================================================================== */
.careers { background: var(--deep); color: #c3cbee; }
.careers .header { background: rgba(5,10,51,.78); }
.careers .header.is-scrolled { border-color: rgba(255,255,255,.08); box-shadow: none; }
.careers main { position: relative; overflow: hidden; }
.careers h1, .careers h2, .careers h3 { color: #fff; }
.careers .kicker { color: var(--cyan); }
.careers .btn--sm.btn--ghost-light { padding: 10px 18px; margin-left: auto; }

.cr-hero { position: relative; padding: clamp(80px, 12vw, 160px) 0 clamp(70px, 9vw, 120px); isolation: isolate; }
.cr-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background:
  radial-gradient(900px 600px at 85% 10%, rgba(10,14,240,.75), transparent 65%),
  radial-gradient(700px 500px at 0% 100%, rgba(30,242,255,.12), transparent 60%); }
.cr-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 64px 64px; -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 70%); mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 70%); }
.cr-hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 70px); align-items: center; }
.cr-hero__brand { display: inline-flex; border-radius: 10px; overflow: hidden; margin-bottom: 34px; box-shadow: 0 20px 50px -20px rgba(10,14,240,.8); }
.cr-hero__brand img { width: 180px; height: auto; }
.cr-hero h1 { font-size: clamp(40px, 6vw, 78px); letter-spacing: -0.045em; line-height: 1.02; margin-bottom: 26px; }
.cr-hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--cyan), #fff 70%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cr-hero__lead { font-size: clamp(17.5px, 1.6vw, 20px); color: #b9c2ea; max-width: 620px; margin-bottom: 36px; }
.cr-hero__meta { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 10px 26px; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #8f99c9; }
.cr-hero__meta span { display: inline-flex; align-items: center; gap: 10px; }
.cr-hero__meta span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); }

.cr-orbit { position: relative; aspect-ratio: 1; width: 100%; max-width: 460px; justify-self: end; }
.cr-orbit svg { width: 100%; height: 100%; overflow: visible; }
.cr-orbit__ring { transform-origin: 50% 50%; animation: cr-spin 80s linear infinite; }
.cr-orbit__ring--b { animation-duration: 120s; animation-direction: reverse; }
.cr-orbit__label { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; fill: #a9b2dc; }
.cr-orbit__dot { fill: var(--cyan); }
.cr-orbit__dot--y { fill: var(--yellow); }
.cr-orbit__pulse { fill: none; stroke: var(--cyan); stroke-width: 1; opacity: .7; transform-box: fill-box; transform-origin: center; animation: cr-ping 3.2s ease-out infinite; }
@keyframes cr-spin { to { transform: rotate(360deg); } }
@keyframes cr-ping { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(3.2); opacity: 0; } }

.cr-section { position: relative; padding: clamp(72px, 9vw, 120px) 0; }
.cr-section--line { border-top: 1px solid rgba(255,255,255,.08); }
.cr-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.cr-head h2 { font-size: clamp(30px, 4.2vw, 52px); }
.cr-head p { font-size: 18px; color: #a9b2dc; margin: 0; }

.cities { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.city { position: relative; aspect-ratio: 4 / 5.4; border-radius: 22px; overflow: hidden; background: var(--deep-2); border: 1px solid rgba(255,255,255,.1); isolation: isolate; }
.city img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.02); transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.city::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5,10,51,.1) 25%, rgba(5,10,51,.55) 55%, rgba(5,10,51,.96) 100%); }
.city:hover img { transform: scale(1.08); }
.city__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px; display: grid; gap: 4px; }
.city__tag { justify-self: start; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--deep); background: var(--cyan); padding: 4px 8px; border-radius: 6px; margin-bottom: 8px; }
.city h3 { font-size: clamp(22px, 2vw, 28px); margin: 0; letter-spacing: -0.03em; }
.city__country { color: #e4e7ff; font-weight: 650; font-size: 15px; }
.city__area { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; color: #a9b2dc; text-transform: uppercase; }
.city__coord { position: absolute; top: 16px; left: 20px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; color: rgba(255,255,255,.75); }
.cr-note { margin: 22px 0 0; font-size: 13.5px; color: #8f99c9; max-width: 820px; }

.areas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: area; }
.area { counter-increment: area; position: relative; padding: clamp(24px, 2.6vw, 34px); border-radius: 22px; background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.1); transition: border-color .3s, transform .3s, background .3s; overflow: hidden; }
.area::before { content: "0" counter(area); display: block; font-family: var(--mono); font-size: 12.5px; letter-spacing: .14em; color: var(--cyan); margin-bottom: 30px; }
.area::after { content: ""; position: absolute; right: -60px; top: -60px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, rgba(10,14,240,.55), transparent 70%); opacity: 0; transition: opacity .4s; }
.area:hover { border-color: rgba(30,242,255,.45); transform: translateY(-4px); }
.area:hover::after { opacity: 1; }
.area h3 { font-size: clamp(19px, 1.7vw, 22px); line-height: 1.2; margin-bottom: 12px; letter-spacing: -0.025em; }
.area p { margin: 0; color: #a9b2dc; font-size: 15.5px; }
.area__tag { display: inline-block; margin-top: 22px; font-size: 12px; font-weight: 700; color: #e4e7ff; padding: 5px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); }

.apply { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.apply__intro h2 { font-size: clamp(30px, 4vw, 50px); }
.apply__intro p { color: #a9b2dc; font-size: 17.5px; }
.apply__facts { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 12px; }
.apply__facts li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; font-size: 15px; color: #c3cbee; }
.apply__facts li::before { content: ""; width: 18px; height: 18px; margin-top: 3px; border-radius: 6px; background: rgba(30,242,255,.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231ef2ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.apply__facts a { color: var(--cyan); }
.apply .form-card { position: relative; }
.apply .form-card h3 { font-size: 22px; }
.apply-form { display: grid; gap: 18px; }
.apply-form .form-grid { gap: 18px; }
.apply-form .field__hint { font-size: 13px; color: var(--muted); margin: 0; }
.apply-form .consent { margin-top: 4px; }
.apply-success { text-align: left; padding: 10px 0; }
.apply-success__icon { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--yellow); color: var(--deep); margin-bottom: 22px; }
.apply-success h3 { color: var(--ink); font-size: 26px; }
.apply-success p { color: var(--muted); }
.form-error { padding: 12px 14px; border-radius: 12px; background: #fdecef; color: #8a0f24; font-size: 14.5px; font-weight: 600; }

.careers .footer { border-top: 1px solid rgba(255,255,255,.08); }

@media (max-width: 1040px) {
  .about__grid, .community__in, .cr-hero__grid, .apply { grid-template-columns: 1fr; }
  .metrics__list { grid-template-columns: repeat(3, 1fr); }
  .metric:nth-child(4) { border-left: 0; }
  .metric:nth-child(n+4) { border-top: 1px solid rgba(255,255,255,.09); }
  .footer__grid--4 { grid-template-columns: 1fr 1fr 1fr; }
  .cr-orbit { justify-self: center; max-width: 360px; order: -1; display: none; }
  .cities { grid-template-columns: repeat(5, minmax(220px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; margin-inline: -24px; padding-inline: 24px; scroll-padding-inline: 24px; scrollbar-width: thin; }
  .city { scroll-snap-align: start; }
  .areas { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .careers .nav .btn { margin-left: auto; }
}
@media (max-width: 640px) {
  .metrics__list { grid-template-columns: 1fr 1fr; }
  .metric, .metric:nth-child(4) { border-left: 0; border-top: 1px solid rgba(255,255,255,.09); }
  .metric:nth-child(even) { border-left: 1px solid rgba(255,255,255,.09); }
  .metric:nth-child(-n+2) { border-top: 0; }
  .metric:last-child { grid-column: 1 / -1; border-left: 0; }
  .metric__value { font-size: 30px; }
  .footer__grid--4 { grid-template-columns: 1fr; }
  .founder { padding-right: 16px; }
  .legal__toc ol { columns: 1; }
  .cities { grid-template-columns: repeat(5, 76%); margin-inline: -18px; padding-inline: 18px; scroll-padding-inline: 18px; gap: 12px; }
  .areas { grid-template-columns: 1fr; }
  .cr-hero .btn { width: 100%; }
  .cr-hero__brand img { width: 150px; }
  .footer__simple { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .cr-orbit__ring, .cr-orbit__pulse, .metrics__dot { animation: none; }
}

/* ==========================================================================
   Promozione Scalata AI Enterprise (stessa struttura dell'offerta Affidex),
   informativa cookie, accessibilità e dimensionamento (revisione 5/11/2026)
   ========================================================================== */
/* Scheda promozione Scalata: riprende .deal di Affidex */
.deal--scalata { margin-top: 32px; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(20px, 3vw, 40px); align-items: start; padding: clamp(22px, 4vw, 40px); }
.deal--scalata .deal__col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.deal__badge { align-self: flex-start; margin: 0; font-size: 13px; font-weight: 800; letter-spacing: .06em; background: var(--yellow); color: var(--deep); padding: 6px 12px; border-radius: 8px; line-height: 1.2; }
.deal__title { margin: 0; color: #fff; font-size: clamp(24px, 3vw, 34px); line-height: 1.12; }
.deal__title span { display: block; margin-top: 6px; color: var(--yellow); font-size: .62em; letter-spacing: .06em; }
.deal__per { font-size: 18px; font-weight: 700; color: #fff; }
.deal__text { margin: 0; color: #e4e7ff; font-size: 16px; }
.deal__facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.deal__facts li { position: relative; padding: 10px 12px 10px 38px; border-radius: 12px; background: rgba(5,10,51,.35); color: #fff; font-weight: 650; font-size: 15.5px; line-height: 1.4; }
.deal__facts li::before { content: ""; position: absolute; left: 12px; top: 13px; width: 16px; height: 16px; border-radius: 50%; background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23050a33' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 10px no-repeat; }
.deal__cta { white-space: normal; text-align: center; }
.offer__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.offer__price span { align-self: center; }

/* Informativa cookie: barra compatta in basso, non modale */
.cookie-notice { position: fixed; z-index: 70; left: 0; right: 0; bottom: 0; padding: 0 12px calc(12px + env(safe-area-inset-bottom)); padding-left: calc(12px + env(safe-area-inset-left)); padding-right: calc(12px + env(safe-area-inset-right)); pointer-events: none; }
.cookie-notice:focus { outline: none; }
.cookie-notice__in { pointer-events: auto; max-width: 1180px; margin: 0 auto; display: flex; align-items: center; gap: 12px 22px; padding: 12px 14px 12px 20px; border-radius: 16px; background: var(--deep); color: #dfe4ff; border: 1px solid rgba(30,242,255,.28); box-shadow: 0 18px 50px -18px rgba(5,10,51,.7); font-size: 14.5px; line-height: 1.5; }
.cookie-notice__text { margin: 0; flex: 1 1 auto; }
.cookie-notice__text strong { color: #fff; margin-right: 4px; }
.cookie-notice__links { margin: 0; display: flex; flex-wrap: wrap; gap: 0 14px; flex-shrink: 0; }
.cookie-notice__links a { color: var(--cyan); font-weight: 700; text-underline-offset: 3px; display: inline-flex; align-items: center; min-height: 44px; }
.cookie-notice__ok { flex-shrink: 0; min-height: 44px; padding: 10px 22px; }
.has-cookie-notice body { padding-bottom: calc(var(--cookie-h, 0px) + 8px); }
.has-cookie-notice { scroll-padding-bottom: calc(var(--cookie-h, 0px) + 8px); }
.has-cookie-notice .mobile-cta { display: none !important; }
.footer__btn { font: inherit; color: #c3cbee; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: none; }
.footer__btn:hover { color: var(--cyan); }
.fx-body .footer__btn { color: inherit; text-decoration: underline; }

/* Aree di tocco dei controlli principali (almeno 44 × 44 px) */
.promo-bar__in p { padding: 0; min-height: 40px; flex-wrap: nowrap; }
.promo-bar__txt { flex: 0 1 auto; }
.promo-bar__short { display: none; }
.promo-bar a { flex-shrink: 0; }
.promo-bar a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }
.offer__link { display: inline-flex; align-items: center; min-height: 44px; padding: 0; }
.nav__links a { display: inline-flex; align-items: center; min-height: 44px; }
.nav__links a::after { bottom: 6px; }
.brand { overflow: visible; min-height: 44px; align-items: center; }
.brand img { border-radius: 8px; }
.btn--sm { min-height: 44px; }
.nav__cta-short { display: none; }
.footer ul a, .footer__btn { display: inline-flex; align-items: center; min-height: 44px; }
.footer ul { gap: 0; }
.footer__links { gap: 0 22px; }
.footer__simple > a { display: inline-flex; min-height: 44px; align-items: center; }
.metric__link, .tier__src a, .contact__direct a { display: inline-block; padding: 10px 0; }
.legal__toc a { display: inline-block; padding: 6px 0; }

/* Leggibilità di etichette piccole */
.tier__label { font-size: 12.5px; }
.de-card__head .de-card__avatar { color: var(--cyan); font-size: 15px; }
.city__tag, .city__coord { font-size: 12px; }
.city__area { font-size: 12.5px; }

/* Focus visibile anche su fondo chiaro: blu del logo su chiaro, ciano su scuro */
:focus-visible { outline: 3px solid var(--electric); outline-offset: 3px; }
.hero :focus-visible, .on-dark :focus-visible, .footer :focus-visible, .cred :focus-visible,
.goal-detail :focus-visible, .deal :focus-visible, .careers :focus-visible, .story2__bridge :focus-visible,
.metrics :focus-visible, .cookie-notice :focus-visible, .fx-toolbar :focus-visible, .fx-cta :focus-visible { outline-color: var(--cyan); }
.form-card :focus-visible, .calc :focus-visible { outline-color: var(--electric); }
.promo-bar :focus-visible { outline-color: var(--deep); }
.choice input:focus-visible + span, .goal input:focus-visible + .goal__card { outline-color: var(--electric); }
.goal-detail select:focus-visible { outline: 3px solid var(--cyan); }

/* Contenuti che non devono allargare la pagina */
.calc__body > *, .hero__grid > *, .cr-hero__grid > *, .contact__grid > *, .sample-offer > *, .product > * { min-width: 0; }
.calc__input input { width: 100%; }
.legal td, .legal th { overflow-wrap: anywhere; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 12px 0 20px; }
.table-scroll table { margin: 0; min-width: 480px; }
.table-scroll:focus-visible { outline-offset: 2px; }

/* Aree sicure (notch) con viewport-fit=cover, in orizzontale */
.wrap { width: min(var(--wrap), calc(100% - 48px - env(safe-area-inset-left) - env(safe-area-inset-right))); }

@media (max-width: 860px) {
  .deal--scalata { grid-template-columns: 1fr; }
  .mobile-cta { left: calc(12px + env(safe-area-inset-left)); right: calc(12px + env(safe-area-inset-right)); bottom: calc(12px + env(safe-area-inset-bottom)); }
  .mobile-cta .btn { min-height: 52px; white-space: normal; text-align: center; }
  /* Lo spazio sotto il footer impedisce alla CTA fissa di coprire gli ultimi collegamenti. */
  .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .cookie-notice__in { flex-wrap: wrap; padding: 14px 16px; }
  .cookie-notice__text { flex-basis: 100%; }
  .cookie-notice__links { flex: 1 1 auto; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 36px - env(safe-area-inset-left) - env(safe-area-inset-right)); }
  .btn--lg, .hero__actions .btn, .cr-hero .btn, .fx-cta .btn, .deal__cta { white-space: normal; text-align: center; }
  .deal__price strong { font-size: 56px; }
  .table-scroll table { min-width: 420px; }
  .cookie-notice { padding-left: calc(8px + env(safe-area-inset-left)); padding-right: calc(8px + env(safe-area-inset-right)); padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
  .cookie-notice__in { font-size: 14px; gap: 0 12px; padding: 10px 14px; line-height: 1.45; }
  .cookie-notice__links { gap: 0 12px; font-size: 13.5px; }
  .cookie-notice__ok { margin-left: auto; padding: 8px 18px; font-size: 14.5px; }
  .promo-bar { font-size: 13px; }
  .promo-bar__dot { display: none; }
  .promo-bar__long { display: none; }
  .promo-bar__short { display: inline; }
  .promo-bar__in p { line-height: 1.35; }
}
@media (max-width: 400px) {
  .nav { gap: 12px; }
  .brand img { width: 96px; }
  .nav__cta { padding: 10px 14px; font-size: 14px; }
  .nav__cta-long { display: none; }
  .nav__cta-short { display: inline; }
}
/* Telefoni in orizzontale: intestazione e CTA fissa più compatte */
@media (max-height: 500px) and (orientation: landscape) {
  .nav { min-height: 56px; }
  .brand img { width: 100px; }
  html { scroll-padding-top: 68px; }
  .mobile-cta .btn { min-height: 44px; padding: 10px 20px; }
  .fx-toolbar { top: 60px; }
}
