/* NiroDeep — staging site
   Palette: navy #173246 (brand), teal #0E7C86 (accento), tinte chiare per le sezioni. */

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --navy-950: #0a1a26;
  --navy-900: #0f2534;
  --navy: #173246;
  --navy-700: #22445c;
  --navy-600: #2d5670;
  --slate: #496372;
  --teal: #0e7c86;
  --teal-700: #0b646c;
  --teal-400: #12a0ab;
  --teal-300: #5cc3cb;
  --teal-100: #dcefef;
  --teal-50: #eef7f7;
  --warm-100: #f7e6d3;
  --warm-700: #7a3f0e;
  --ink: #12212d;
  --text: #2a3a46;
  --muted: #586a76;
  --line: #d9e2e7;
  --line-soft: #e8eef1;
  --bg: #ffffff;
  --bg-tint: #f3f7f8;
  --on-dark: #e9f1f4;
  --on-dark-muted: #a9bfca;

  --font-head: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 37, 52, .06), 0 2px 8px rgba(15, 37, 52, .05);
  --shadow: 0 2px 4px rgba(15, 37, 52, .05), 0 12px 32px rgba(15, 37, 52, .09);
  --header-h: 72px;
  --gutter: 24px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
  text-wrap: balance;
}
h1 { font-size: clamp(2.35rem, 1.5rem + 3.3vw, 4rem); line-height: 1.04; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 1.25rem + 1.9vw, 2.7rem); line-height: 1.1; }
h3 { font-size: 1.2rem; font-weight: 750; line-height: 1.3; letter-spacing: -0.01em; }
h4 { font-size: 1.05rem; font-weight: 750; line-height: 1.35; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--teal-700); }
:focus-visible { outline: 3px solid var(--teal-400); outline-offset: 3px; border-radius: 4px; }
ul, ol { margin: 0; padding: 0; list-style: none; }
strong { font-weight: 650; color: var(--ink); }

.sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; color: #fff; }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }
.center { text-align: center; }

.ic { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Testi ricorrenti ---------- */
.kicker {
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 14px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: .9rem;
  color: var(--teal-300);
  margin: 0 0 22px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal-400); box-shadow: 0 0 0 5px rgba(18, 160, 171, .18); }
.lead { font-size: clamp(1.08rem, 1rem + .35vw, 1.22rem); line-height: 1.6; color: var(--muted); max-width: 46rem; }
.lead-wide { max-width: 52rem; }
.fine { font-size: .875rem; color: var(--muted); line-height: 1.55; }

.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 + .lead { margin-top: 18px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lead { margin-inline: auto; }

/* ---------- Bottoni e link ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 24px;
  border-radius: 999px; border: 1.5px solid transparent;
  font-family: var(--font-head); font-weight: 750; font-size: 1rem; letter-spacing: -.005em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn .ic { width: 20px; height: 20px; stroke-width: 2; }
.btn-sm { min-height: 42px; padding: 8px 18px; font-size: .92rem; }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 6px 18px rgba(14, 124, 134, .25); }
.btn-primary:hover { background: var(--teal-700); color: #fff; transform: translateY(-1px); }
.btn-ghost { border-color: rgba(233, 241, 244, .4); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); color: #fff; }
.btn-ghost-dark { border-color: var(--line); color: var(--navy); background: #fff; }
.btn-ghost-dark:hover { border-color: var(--navy); color: var(--navy); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.actions.center { justify-content: center; }

.link-arrow { display: inline; font-family: var(--font-head); font-weight: 750; text-decoration: none; color: var(--teal); }
.link-arrow .ic { display: inline-block; width: 20px; height: 20px; margin-left: 6px; vertical-align: -4px; stroke-width: 2; transition: transform .2s; }
.link-arrow:hover .ic { transform: translateX(4px); }
.after-link { margin-top: 36px; text-align: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line-soft); box-shadow: 0 4px 20px rgba(15, 37, 52, .06); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-family: var(--font-head); font-weight: 800; font-size: 1.32rem; letter-spacing: -.02em; }
.brand:hover { color: var(--navy); }
.brand b { font-weight: 800; color: var(--teal); }
.brand .mark { width: 30px; height: 30px; color: var(--navy); }
.brand-light, .brand-light:hover { color: #fff; }
.brand-light .mark { color: #fff; }
.brand-light b { color: var(--teal-300); }

.site-nav { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-list > li { position: relative; display: flex; align-items: center; }
.nav-list > li > a {
  display: block; padding: 10px 14px; border-radius: 999px;
  font-family: var(--font-head); font-weight: 700; font-size: .97rem;
  color: var(--navy); text-decoration: none;
}
.nav-list > li > a:hover { background: var(--bg-tint); color: var(--navy); }
.nav-list > li > a[aria-current="page"] { color: var(--teal); }
.has-sub > a { padding-right: 4px !important; }
.sub-toggle { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 36px; padding: 0; border: 0; background: none; color: var(--navy); cursor: pointer; border-radius: 8px; }
.sub-toggle .ic { width: 18px; height: 18px; stroke-width: 2.2; transition: transform .2s; }
.sub-toggle[aria-expanded="true"] .ic { transform: rotate(180deg); }
.nav-toggle { display: none; }

.sub {
  position: absolute; top: calc(100% + 10px); left: -16px;
  width: min(720px, 90vw);
  padding: 22px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line-soft); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.sub::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.has-sub:hover .sub, .has-sub:focus-within .sub, .has-sub.is-open .sub { opacity: 1; visibility: visible; transform: none; }
.sub-head { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 10px; font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-family: var(--font-head); }
.sub-grid { display: grid; grid-template-columns: 1fr 1fr; grid-auto-flow: column; grid-template-rows: repeat(3, auto); gap: 4px 12px; }
.sub-grid a { display: flex; gap: 12px; padding: 10px; border-radius: 12px; text-decoration: none; color: var(--text); }
.sub-grid a:hover, .sub-grid a[aria-current="page"] { background: var(--bg-tint); }
.sub-grid strong { display: block; font-family: var(--font-head); font-size: .95rem; color: var(--navy); }
.sub-grid small { display: block; font-size: .84rem; line-height: 1.4; color: var(--muted); }
.sub-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; flex: none; }
.sub-ic .ic { width: 20px; height: 20px; }
.sub-risultato { background: var(--teal-50); color: var(--teal); }
.sub-condizione { background: #eaf0f4; color: var(--navy); }
.sub-all { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 6px 10px; font-family: var(--font-head); font-weight: 750; font-size: .92rem; text-decoration: none; }
.sub-all .ic { width: 18px; height: 18px; stroke-width: 2; }

@media (max-width: 1060px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center; margin-left: auto;
    width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--navy); cursor: pointer;
  }
  .nav-toggle .ic-close { display: none; }
  .nav-toggle[aria-expanded="true"] .ic-open { display: none; }
  .nav-toggle[aria-expanded="true"] .ic-close { display: block; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 40;
    flex-direction: column; align-items: stretch; gap: 20px;
    padding: 16px var(--gutter) 32px; background: #fff; overflow-y: auto;
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .no-js .site-nav { position: static; display: flex; padding: 0 0 16px; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { flex-wrap: wrap; border-bottom: 1px solid var(--line-soft); }
  .nav-list > li > a { flex: 1; padding: 16px 4px; font-size: 1.12rem; border-radius: 0; }
  .nav-list > li > a:hover { background: none; }
  .sub-toggle { width: 46px; height: 46px; }
  .sub { position: static; width: 100%; padding: 0 0 12px; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; display: none; }
  .has-sub:hover .sub, .has-sub:focus-within .sub { display: none; }
  .has-sub.is-open .sub { display: block; }
  .sub-head { display: none; }
  .sub-grid { grid-template-columns: 1fr; grid-auto-flow: row; grid-template-rows: none; }
  .nav-cta { align-self: stretch; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Sezioni ---------- */
.section { padding-block: clamp(64px, 8vw, 112px); }
.section-tight { padding-block: clamp(44px, 5vw, 72px); }
.section-tint { background: var(--bg-tint); }
.section-dark { background: var(--navy-900); color: var(--on-dark); }
.section-dark h2, .section-dark h3, .section-dark h4, .section-dark strong { color: #fff; }
.section-dark .lead { color: var(--on-dark-muted); }
.section-dark .kicker { color: var(--teal-300); }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }

.card { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.card h3 { margin: 18px 0 10px; }
.card p { color: var(--muted); }
.card-ic { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--teal-50); color: var(--teal); }

/* ---------- Hero home ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 520px at 85% 30%, rgba(18, 160, 171, .22), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(45, 86, 112, .55), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-900) 55%, var(--navy-950) 100%);
  color: var(--on-dark);
  padding-block: clamp(56px, 8vw, 104px) clamp(64px, 8vw, 112px);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { color: #fff; }
.hero h1 span { display: block; color: var(--teal-300); }
.hero .lead { color: var(--on-dark-muted); margin-top: 26px; font-size: clamp(1.1rem, 1rem + .45vw, 1.28rem); }
.hero-visual { position: relative; }
.ring-legend { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 18px; margin: 14px 0 0; font-size: .88rem; color: var(--on-dark-muted); }
.lg { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 8px; vertical-align: -1px; }
.ring-legend > span { white-space: nowrap; }
.lg-in { background: var(--teal-400); }
.lg-out { background: #3a6584; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; margin-inline: auto; width: 100%; }
}

/* ---------- Anello ---------- */
.ring { display: block; width: 100%; height: auto; overflow: visible; }
.ring .seg-band { fill: none; transition: stroke .2s, opacity .2s; }
.ring .seg-label { font-family: var(--font-head); font-weight: 800; letter-spacing: .01em; pointer-events: none; }
.ring .seg-num { font-weight: 600; opacity: .72; }
.ring a { cursor: pointer; }
.ring a:focus-visible { outline: none; }
.ring a:focus-visible .seg-band { stroke-dasharray: 6 4; }
.ring-core-t { font-family: var(--font-head); font-weight: 800; font-size: 21px; letter-spacing: -.01em; }
/* tema scuro (hero) */
.ring-dark .ring-halo { fill: none; stroke: rgba(255, 255, 255, .12); stroke-width: 1.5; stroke-dasharray: 2 7; }
.ring-dark .seg-in .seg-band { stroke: #0e8c96; }
.ring-dark .seg-conoscenza .seg-band { stroke: #12a0ab; }
.ring-dark .seg-persone .seg-band { stroke: #0c7a83; }
.ring-dark .seg-out .seg-band { stroke: #2c5470; }
.ring-dark .seg-riservatezza .seg-band { stroke: #33617f; }
.ring-dark .seg-modelli .seg-band { stroke: #264a63; }
.ring-dark .seg-in .seg-label { fill: #fff; }
.ring-dark .seg-out .seg-label { fill: #e2edf2; }
.ring-dark a:hover .seg-band { stroke: #5cc3cb; }
.ring-dark .seg-out:hover .seg-band { stroke: #4b7c9c; }
.ring-dark .ring-core { fill: #fff; }
.ring-dark .ring-core-t { fill: var(--navy); }
/* tema chiaro (pagine interne) */
.ring-light .ring-halo { fill: none; stroke: var(--line); stroke-width: 1.5; stroke-dasharray: 2 7; }
.ring-light .seg-in .seg-band { stroke: var(--teal); }
.ring-light .seg-conoscenza .seg-band { stroke: var(--teal-400); }
.ring-light .seg-persone .seg-band { stroke: var(--teal-700); }
.ring-light .seg-out .seg-band { stroke: var(--navy-700); }
.ring-light .seg-riservatezza .seg-band { stroke: var(--navy-600); }
.ring-light .seg-modelli .seg-band { stroke: var(--navy); }
.ring-light .seg-label { fill: #fff; }
.ring-light a:hover .seg-band { opacity: .85; }
.ring-light .ring-core { fill: var(--navy); }
.ring-light .ring-core-t { fill: #fff; }
.ring.has-active .seg:not(.is-active) .seg-band { stroke: #dbe5ea; }
.ring.has-active .seg:not(.is-active) .seg-label { fill: #6d808c; }
.ring.has-active .seg:not(.is-active):hover .seg-band { stroke: #c6d5dc; opacity: 1; }

/* ---------- Tensione ---------- */
.tension .card { height: 100%; }
.turn { margin: clamp(40px, 5vw, 60px) auto 0; max-width: 880px; text-align: center; }
.turn-from { font-size: 1.1rem; color: var(--muted); margin-bottom: 6px; }
.turn-from span { text-decoration: line-through; text-decoration-color: rgba(88, 106, 118, .55); text-decoration-thickness: 2px; }
.turn-to { text-wrap: balance; font-family: var(--font-head); font-size: clamp(1.35rem, 1rem + 1.3vw, 2rem); line-height: 1.3; font-weight: 600; color: var(--navy); letter-spacing: -.015em; }
.turn-to strong { font-weight: 800; color: var(--teal); }

/* ---------- Lavori (Trovare / Preparare / Seguire) ---------- */
.job { position: relative; padding: 32px 28px 28px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line-soft); }
.job-n { position: absolute; top: 22px; right: 26px; font-family: var(--font-head); font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--teal-100); }
.job-ic { width: 30px; height: 30px; color: var(--teal); stroke-width: 1.8; }
.job h3 { font-size: 1.5rem; margin: 16px 0 8px; }
.job > p { color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tags li { font-size: .84rem; padding: 5px 12px; border-radius: 999px; background: var(--bg-tint); color: var(--slate); font-weight: 550; }

/* ---------- Sei impegni ---------- */
.commit-group + .commit-group { margin-top: 44px; }
.group-label { display: flex; align-items: center; font-size: .82rem; text-transform: uppercase; letter-spacing: .13em; color: var(--muted); margin-bottom: 18px; font-weight: 800; }
.commits > li { display: flex; }
.commit {
  display: flex; flex-direction: column; width: 100%;
  padding: 28px; border-radius: var(--radius);
  text-decoration: none; color: var(--text);
  background: #fff; border: 1px solid var(--line-soft);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.commit:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--text); }
.commit-risultato:hover { border-color: rgba(14, 124, 134, .35); }
.commit-condizione { background: linear-gradient(180deg, #f6f9fb, #fff 55%); }
.commit-condizione:hover { border-color: rgba(23, 50, 70, .3); }
.commit-top { display: flex; justify-content: space-between; align-items: flex-start; }
.commit-ic { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; flex: none; }
.commit-ic .ic { width: 26px; height: 26px; }
.commit-risultato .commit-ic, .map-risultato .commit-ic { background: var(--teal); color: #fff; }
.commit-condizione .commit-ic, .map-condizione .commit-ic { background: var(--navy); color: #fff; }
.commit-n { font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; color: var(--muted); }
.commit-k { margin-top: 22px; font-family: var(--font-head); font-weight: 800; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); }
.commit-condizione .commit-k { color: var(--navy-600); }
.commit-t { display: block; margin-top: 8px; font-family: var(--font-head); font-size: 1.32rem; line-height: 1.25; font-weight: 800; letter-spacing: -.015em; color: var(--ink); }
.commit-s { display: block; margin-top: 10px; color: var(--muted); font-size: .98rem; }
.commit-sols { margin: 18px 0 22px; padding-top: 16px; border-top: 1px solid var(--line-soft); display: grid; gap: 6px; }
.commit-sols li { display: flex; gap: 10px; font-size: .9rem; line-height: 1.4; color: var(--slate); }
.commit-sols span { font-family: var(--font-head); font-weight: 800; color: var(--muted); font-size: .82rem; min-width: 20px; }
.more { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 750; color: var(--teal); }
.more .ic { width: 18px; height: 18px; stroke-width: 2; transition: transform .2s; }
a:hover .more .ic, .commit:hover .more .ic { transform: translateX(4px); }

/* ---------- Personas ---------- */
.personas { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 32px; align-items: start; }
.ptabs { display: grid; gap: 10px; }
.ptab {
  display: flex; gap: 14px; align-items: center; width: 100%; text-align: left;
  padding: 16px 18px; border-radius: 14px; cursor: pointer;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); color: var(--on-dark);
  font: inherit; transition: background-color .2s, border-color .2s;
}
.ptab:hover { background: rgba(255, 255, 255, .08); }
.ptab[aria-selected="true"] { background: #fff; border-color: #fff; color: var(--text); }
.ptab-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(18, 160, 171, .16); color: var(--teal-300); flex: none; }
.ptab[aria-selected="true"] .ptab-ic { background: var(--teal); color: #fff; }
.ptab-txt strong { display: block; font-family: var(--font-head); font-weight: 800; font-size: 1.02rem; color: inherit; }
.ptab[aria-selected="true"] .ptab-txt strong { color: var(--ink); }
.ptab-txt small { display: block; font-size: .86rem; line-height: 1.4; color: var(--on-dark-muted); margin-top: 2px; }
.ptab[aria-selected="true"] .ptab-txt small { color: var(--muted); }
.ppanel { background: #fff; color: var(--text); border-radius: 20px; padding: clamp(26px, 4vw, 44px); }
.ppanel + .ppanel { margin-top: 20px; }
.js .ppanel + .ppanel { margin-top: 0; }
.ppanel[hidden] { display: none; }
.ppanel:focus-visible { outline-offset: 4px; }
.ppanel h3, .ppanel strong { color: var(--ink); }
.js .ppanel-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ppanel-name { margin-bottom: 16px; }
.pquote { position: relative; margin: 0 0 30px; padding: 0 0 0 52px; }
.pquote::before { content: "“"; position: absolute; left: 0; top: -14px; font-family: Georgia, "Times New Roman", serif; font-size: 5rem; line-height: 1; color: var(--teal-400); }
.pquote p { font-style: italic; font-size: clamp(1.15rem, 1rem + .6vw, 1.42rem); line-height: 1.5; color: var(--navy); }
.ppanel-k { font-family: var(--font-head); font-weight: 800; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin-bottom: 14px; }
.pchanges { display: grid; gap: 4px; counter-reset: pc; }
.pchanges li { position: relative; padding: 14px 0 14px 46px; border-top: 1px solid var(--line-soft); counter-increment: pc; }
.pchanges li::before { content: counter(pc); position: absolute; left: 0; top: 14px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--teal-50); color: var(--teal); font-family: var(--font-head); font-weight: 800; font-size: .9rem; }
.pchanges strong { display: block; font-family: var(--font-head); font-size: 1.06rem; }
.pchanges span { display: block; color: var(--muted); margin-top: 2px; }
.pfoot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line-soft); }
.pchips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pchips > span { font-size: .85rem; color: var(--muted); margin-right: 4px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 8px; border-radius: 999px; background: var(--bg-tint); color: var(--navy); font-family: var(--font-head); font-weight: 700; font-size: .88rem; text-decoration: none; }
.chip .ic { width: 18px; height: 18px; color: var(--teal); }
.chip:hover { background: var(--teal-50); color: var(--navy); }
@media (max-width: 900px) {
  .personas { grid-template-columns: 1fr; }
  .ptabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ptab { padding: 12px; }
  .ptab-txt small { display: none; }
}
@media (max-width: 520px) {
  .ptab { flex-direction: column; align-items: flex-start; gap: 8px; }
  .ptab-ic { width: 36px; height: 36px; }
  .ptab-txt strong { font-size: .92rem; line-height: 1.25; }
  .pquote { padding-left: 0; padding-top: 34px; }
  .pquote::before { top: -10px; font-size: 4rem; }
}

/* ---------- Attori AI / Regole / Persona ---------- */
.actor { display: inline-block; padding: 4px 11px; border-radius: 999px; font-family: var(--font-head); font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.actor-1 { background: var(--teal); color: #fff; }
.actor-2 { background: var(--navy); color: #fff; }
.actor-3 { background: var(--warm-100); color: var(--warm-700); }

/* ---------- Flusso esempio (home) ---------- */
.flow { display: grid; grid-template-columns: 1.1fr 1fr 1fr 1fr 1.1fr; gap: 0; align-items: stretch; counter-reset: fl; }
.flow > li { position: relative; padding: 24px 22px; background: #fff; border: 1px solid var(--line-soft); }
.flow > li + li { border-left: 0; }
.flow > li:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.flow > li:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.flow > li + li::before {
  content: ""; position: absolute; left: -11px; top: 50%; width: 20px; height: 20px; margin-top: -10px; z-index: 2;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e7c86' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center/14px no-repeat;
  border: 1px solid var(--line); border-radius: 50%;
}
.flow h3 { margin: 14px 0 8px; font-size: 1.12rem; }
.flow p { font-size: .95rem; color: var(--muted); }
.flow-io { background: var(--bg-tint) !important; }
.flow-out { background: var(--teal-50) !important; }
.flow-tag { font-family: var(--font-head); font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.flow + .fine { margin-top: 18px; }
.flow-mail { font-style: italic; color: var(--navy) !important; padding: 12px 14px; background: #fff; border-radius: 10px; border: 1px dashed var(--line); }
@media (max-width: 1000px) {
  .flow { grid-template-columns: 1fr; }
  .flow > li + li { border-left: 1px solid var(--line-soft); border-top: 0; }
  .flow > li:first-child { border-radius: var(--radius) var(--radius) 0 0; }
  .flow > li:last-child { border-radius: 0 0 var(--radius) var(--radius); }
  .flow > li + li::before { left: 50%; top: -11px; margin: 0 0 0 -10px; transform: rotate(90deg); }
}

/* ---------- Come si parte ---------- */
.steps4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.steps4 li { position: relative; padding: 26px 24px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line-soft); }
.step-n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; font-family: var(--font-head); font-weight: 800; }
.steps4 h3 { margin: 16px 0 8px; }
.steps4 p { color: var(--muted); font-size: .97rem; }
.levels { margin-top: 28px; padding: clamp(24px, 3vw, 36px); border-radius: 20px; background: var(--navy); color: var(--on-dark); }
.levels-k { font-family: var(--font-head); font-weight: 800; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-300); margin-bottom: 20px; }
.levels-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.levels-list li { position: relative; }
.levels-list li + li::before { content: ""; position: absolute; left: -16px; top: 22px; width: 6px; height: 6px; border-top: 2px solid var(--teal-300); border-right: 2px solid var(--teal-300); transform: rotate(45deg); }
.levels-list h3 { color: #fff; margin: 12px 0 6px; }
.levels-list p { color: var(--on-dark-muted); font-size: .97rem; }
.lvl-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(18, 160, 171, .18); color: var(--teal-300); }
@media (max-width: 1000px) { .steps4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .steps4, .levels-list { grid-template-columns: 1fr; }
  .levels-list li + li::before { display: none; }
}

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.faq-layout .section-head { margin-bottom: 24px; }
@media (max-width: 900px) { .faq-layout { grid-template-columns: 1fr; } }
.faq-list { display: grid; gap: 12px; }
.faq { background: #fff; border: 1px solid var(--line-soft); border-radius: 14px; transition: border-color .2s, box-shadow .2s; }
.faq[open] { border-color: var(--line); box-shadow: var(--shadow-sm); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; cursor: pointer; list-style: none; font-family: var(--font-head); font-weight: 750; font-size: 1.06rem; color: var(--ink); line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq-ic { width: 22px; height: 22px; color: var(--teal); stroke-width: 2; transition: transform .2s; }
.faq[open] .faq-ic { transform: rotate(45deg); }
.faq-body { padding: 0 22px 22px; }
.faq-body > p { color: var(--muted); }
.faq-body .mini { margin-top: 16px; }

/* mini triadi (dl) */
.mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; }
.mini > div { padding: 14px; border-radius: 12px; background: var(--bg-tint); }
.mini dt { font-family: var(--font-head); font-weight: 800; font-size: .93rem; color: var(--ink); margin-bottom: 4px; line-height: 1.3; }
.mini dd { margin: 0; font-size: .9rem; line-height: 1.45; color: var(--muted); }
@media (max-width: 640px) { .mini { grid-template-columns: 1fr; } }

/* ---------- Tabella costi ---------- */
.table-wrap { overflow-x: auto; margin-top: 16px; border: 1px solid var(--line-soft); border-radius: 12px; }
.cost { width: 100%; border-collapse: collapse; font-size: .94rem; }
.cost th, .cost td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.cost thead th { background: var(--bg-tint); font-family: var(--font-head); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.cost tbody tr:last-child th, .cost tbody tr:last-child td { border-bottom: 0; }
.cost th[scope="row"] { font-weight: 650; color: var(--ink); }
.cost .num { font-family: var(--font-head); font-weight: 800; color: var(--teal); white-space: nowrap; font-variant-numeric: tabular-nums; }
.faq-body .fine { margin-top: 10px; }

/* ---------- CTA finale ---------- */
.cta-band { background: radial-gradient(800px 400px at 50% 0%, rgba(18, 160, 171, .2), transparent 70%), var(--navy-900); }
.start-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.start-card { display: flex; flex-direction: column; gap: 8px; padding: 28px; border-radius: var(--radius); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); color: var(--on-dark-muted); text-decoration: none; transition: background-color .2s, border-color .2s, transform .2s; }
.start-card:hover { background: rgba(255, 255, 255, .09); border-color: rgba(92, 195, 203, .55); color: var(--on-dark-muted); transform: translateY(-2px); }
.start-card strong { font-family: var(--font-head); font-size: 1.22rem; font-weight: 800; color: #fff; margin-top: 10px; }
.start-card .more { margin-top: 14px; color: var(--teal-300); }
.start-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--teal); color: #fff; }
@media (max-width: 900px) { .start-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: var(--on-dark-muted); padding-top: 64px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.footer-claim { margin-top: 18px; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; color: #fff; line-height: 1.35; }
.footer-sub { color: var(--on-dark-muted); }
.footer-h { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-300); margin-bottom: 16px; font-weight: 800; }
.footer-list { display: grid; gap: 8px; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .btn-primary { color: #fff; margin: 4px 0 14px; }
.site-footer .btn-primary:hover { text-decoration: none; }
.footer-text { margin-bottom: 16px; }
.footer-mail a { display: inline-flex; align-items: center; gap: 8px; }
.footer-mail .ic { width: 18px; height: 18px; }
.footer-bottom p:last-child { white-space: nowrap; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding-block: 22px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .86rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Pagine interne: hero ---------- */
.page-hero { background: linear-gradient(180deg, var(--bg-tint), #fff); padding-block: clamp(36px, 5vw, 64px) clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--line-soft); }
.page-hero h1 { font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.4rem); max-width: 18em; }
.page-hero .lead { margin-top: 20px; }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.page-hero-visual { max-width: 420px; width: 100%; justify-self: end; }
@media (max-width: 900px) {
  .page-hero-grid { grid-template-columns: 1fr; }
  .page-hero-visual { justify-self: center; max-width: 340px; }
}
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 28px; font-size: .88rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--teal); text-decoration: underline; }
.macro-n { display: inline-grid; place-items: center; min-width: 34px; height: 26px; padding: 0 8px; margin-right: 10px; border-radius: 999px; background: var(--teal); color: #fff; letter-spacing: .02em; }
.macro-condizione .macro-n { background: var(--navy); }
.macro-condizione .kicker { color: var(--navy-600); }

/* equazione elementi -> risultato */
.equation { margin-top: 30px; display: inline-grid; gap: 10px; max-width: 100%; }
.eq-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.eq-item { padding: 9px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-family: var(--font-head); font-weight: 750; font-size: .95rem; color: var(--navy); }
.eq-op { font-family: var(--font-head); font-weight: 800; color: var(--teal); }
.eq-result { display: inline-flex; align-items: center; gap: 12px; padding: 12px 18px; border-radius: 14px; background: var(--teal); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.02rem; justify-self: start; }
.macro-condizione .eq-result { background: var(--navy); }
.eq-eq { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, .2); font-size: .95rem; }

/* ---------- Pagina macro ---------- */
.pain { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.pain h2 { font-size: clamp(1.5rem, 1.1rem + 1.3vw, 2.1rem); margin-bottom: 16px; }
.pain-copy p { color: var(--muted); font-size: 1.08rem; }
.pain-aside { padding: 24px; border-radius: var(--radius); background: var(--bg-tint); }
.aside-k { font-family: var(--font-head); font-size: .76rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.who { display: grid; gap: 8px; }
.who li { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 750; color: var(--navy); }
.who .ic { width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: #fff; color: var(--teal); }
@media (max-width: 860px) { .pain { grid-template-columns: 1fr; } }

.sol-layout > * { min-width: 0; }
.sol-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(32px, 4vw, 64px); align-items: start; padding-block: 16px clamp(48px, 6vw, 88px); }
.toc { position: sticky; top: calc(var(--header-h) + 24px); padding-top: 40px; }
.toc-k { font-family: var(--font-head); font-size: .76rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.toc ol { display: grid; gap: 2px; margin-bottom: 20px; }
.toc a { display: flex; gap: 10px; padding: 9px 12px; border-radius: 10px; font-size: .93rem; line-height: 1.35; color: var(--text); text-decoration: none; }
.toc a:hover { background: var(--bg-tint); }
.toc a.btn { display: inline-flex; padding: 8px 18px; border-radius: 999px; color: #fff; }
.toc a.btn:hover { background: var(--teal-700); color: #fff; }
.toc a.is-current { background: var(--teal-50); color: var(--teal-700); font-weight: 600; }
.sol-n { font-family: var(--font-head); font-weight: 800; color: var(--teal); font-size: .86rem; min-width: 22px; }
@media (max-width: 960px) {
  .sol-layout { grid-template-columns: 1fr; }
  .toc { position: sticky; top: var(--header-h); z-index: 5; margin-inline: calc(var(--gutter) * -1); padding: 10px var(--gutter); background: rgba(255, 255, 255, .95); border-bottom: 1px solid var(--line-soft); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
  .toc-k, .toc a.btn { display: none; }
  .toc ol { display: flex; gap: 6px; overflow-x: auto; margin: 0; scrollbar-width: none; }
  .toc ol::-webkit-scrollbar { display: none; }
  .toc a { white-space: nowrap; background: var(--bg-tint); border-radius: 999px; padding: 7px 14px; font-size: .86rem; }
}

.sol { padding-top: 40px; }
.sol + .sol { margin-top: 40px; border-top: 1px solid var(--line-soft); padding-top: 64px; }
.sol-head { max-width: 760px; margin-bottom: 28px; }
.sol-k { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-family: var(--font-head); font-weight: 800; font-size: .84rem; letter-spacing: .1em; text-transform: uppercase; color: var(--slate); margin-bottom: 12px; }
.sol-k .sol-n { display: inline-grid; place-items: center; height: 26px; padding: 0 9px; border-radius: 999px; background: var(--teal-50); letter-spacing: 0; }
.sol-head h2 { font-size: clamp(1.6rem, 1.15rem + 1.5vw, 2.3rem); }
.sol-head .lead { margin-top: 14px; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--warm-100); color: var(--warm-700); font-size: .72rem; letter-spacing: .06em; }

.triad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: t; }
.triad li { position: relative; padding: 22px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.triad h3 { font-size: 1.1rem; margin: 12px 0 6px; }
.triad p { color: var(--muted); font-size: .97rem; }
.triad .actor { margin-bottom: 4px; }
.triad .actor + .tri-n { display: none; }
.tri-n { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--teal-50); color: var(--teal); font-family: var(--font-head); font-weight: 800; font-size: .92rem; }
.triad-flow li + li::before {
  content: ""; position: absolute; left: -15px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e7c86' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 5l7 7-7 7'/%3E%3C/svg%3E") center/contain no-repeat;
}
.triad-cards li { background: var(--bg-tint); border-color: transparent; }
.section-tint .triad-cards li { background: #fff; border-color: var(--line-soft); }
.triad-cards h3 { margin-top: 0; }
@media (max-width: 760px) {
  .triad { grid-template-columns: 1fr; }
  .triad-flow li + li::before { left: 50%; top: -15px; margin: 0 0 0 -7px; transform: rotate(90deg); }
}

.demo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); margin-top: 24px; border-radius: 18px; overflow: hidden; background: var(--navy); color: var(--on-dark); }
.demo-side { padding: 28px; background: var(--navy-900); }
.demo-side h3 { color: #fff; font-size: 1.3rem; margin: 10px 0 10px; }
.demo-side p { color: var(--on-dark-muted); }
.demo-k { font-family: var(--font-head); font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-300) !important; }
.demo-rows { padding: 14px 28px; }
.demo-rows li { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.demo-rows li:last-child { border-bottom: 0; }
.demo-rows strong { color: #fff; font-family: var(--font-head); font-size: .98rem; }
.demo-rows span { color: var(--on-dark-muted); font-size: .95rem; }
.demo-act { grid-column: 1 / -1; display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 16px 28px; background: rgba(18, 160, 171, .14); color: var(--on-dark); font-size: .95rem; }
.demo-act .ic { color: var(--teal-300); width: 22px; height: 22px; stroke-width: 2.2; margin-top: 1px; }
@media (max-width: 760px) {
  .demo { grid-template-columns: 1fr; }
  .demo-rows li { grid-template-columns: 1fr; gap: 2px; }
}

.deep { margin-top: 32px; }
.deep-h { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.deep-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.deep-card { padding: 22px; border-radius: 14px; border: 1px solid var(--line-soft); background: #fff; }
.deep-card h4 { margin-bottom: 6px; }
.deep-card > p { font-size: .94rem; color: var(--muted); margin-bottom: 14px; }
.deep-card .mini { grid-template-columns: 1fr; gap: 6px; }
.deep-card .mini > div { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: 12px; padding: 10px 12px; }
.deep-card .mini dt { margin: 0; font-size: .88rem; }
.deep-card .mini dd { font-size: .88rem; }
@media (max-width: 760px) { .deep-grid { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .deep-card .mini > div { grid-template-columns: 1fr; gap: 2px; } }

.note { display: flex; gap: 12px; align-items: flex-start; margin-top: 24px; padding: 16px 18px; border-radius: 12px; background: var(--teal-50); font-size: .95rem; color: var(--text); max-width: 900px; }
.note .ic { color: var(--teal); width: 22px; height: 22px; margin-top: 1px; }

.how { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.how .section-head { margin-bottom: 28px; }
.condition { padding: 22px; border-radius: 14px; background: #fff; border: 1px solid var(--line-soft); }
.condition-k { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.condition-k .ic { color: var(--teal); }
.condition p:last-child { color: var(--muted); }
.fam-links { display: grid; gap: 10px; }
.fam-links a, .map-sols a { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px; background: #fff; border: 1px solid var(--line-soft); text-decoration: none; color: var(--ink); transition: border-color .2s, transform .2s; }
.fam-links a:hover, .map-sols a:hover { border-color: var(--teal-300); color: var(--ink); }
.fam-links a > span:nth-child(2), .map-sols a > span:nth-child(2) { flex: 1; font-family: var(--font-head); font-weight: 750; line-height: 1.35; }
.fam-links small, .map-sols small { display: block; font-family: var(--font-body); font-weight: 400; font-size: .9rem; color: var(--muted); margin-top: 2px; }
.fam-links .ic, .map-sols .ic { width: 20px; height: 20px; color: var(--teal); stroke-width: 2; transition: transform .2s; }
.fam-links a:hover .ic, .map-sols a:hover .ic { transform: translateX(3px); }
@media (max-width: 860px) { .how { grid-template-columns: 1fr; } }

.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-block: 40px; }
.pn { display: flex; flex-direction: column; padding: 18px 22px; border-radius: 14px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.pn:hover { border-color: var(--teal); color: var(--ink); }
.pn small { color: var(--muted); font-size: .85rem; }
.pn strong { font-family: var(--font-head); font-size: 1.1rem; }
.pn-next { text-align: right; grid-column: 2; }
.pn-prev small::before { content: "← "; }
.pn-next small::after { content: " →"; }

/* ---------- Mappa soluzioni ---------- */
.map { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.map-block { padding: 24px; border-radius: 18px; background: var(--bg-tint); }
.map-head { display: flex; gap: 16px; align-items: center; text-decoration: none; color: var(--ink); margin-bottom: 18px; }
.map-head:hover { color: var(--ink); }
.map-head:hover strong { color: var(--teal); }
.map-k { display: block; font-family: var(--font-head); font-size: .78rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: var(--teal); }
.map-condizione .map-k { color: var(--navy-600); }
.map-head strong { display: block; font-family: var(--font-head); font-size: 1.2rem; line-height: 1.3; transition: color .2s; }
.map-sols { display: grid; gap: 8px; }
@media (max-width: 860px) { .map { grid-template-columns: 1fr; } }
.aud { padding: 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line-soft); }
.aud h3 { font-size: 1.35rem; }
.aud > p { color: var(--muted); margin: 6px 0 16px; }
.aud ul { display: grid; gap: 4px; }
.aud a { display: flex; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line-soft); text-decoration: none; color: var(--ink); font-weight: 550; line-height: 1.4; }
.aud a:hover { color: var(--teal); }

/* ---------- Piattaforma ---------- */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 32px; max-width: 900px; }
.trio a { display: flex; flex-direction: column; gap: 4px; position: relative; padding: 18px 44px 18px 20px; border-radius: 14px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--muted); font-size: .94rem; line-height: 1.4; }
.trio a:hover { border-color: var(--teal); color: var(--muted); }
.trio strong { font-family: var(--font-head); font-size: 1.15rem; color: var(--ink); }
.trio .ic { position: absolute; right: 16px; top: 20px; width: 20px; height: 20px; color: var(--teal); transform: rotate(90deg); stroke-width: 2; }
@media (max-width: 760px) { .trio { grid-template-columns: 1fr; } }
.fam-group + .fam-group { padding-top: 0; }
.fam-group-head { margin-bottom: 28px; }
.fam-group-head .kicker { font-size: 1rem; }
.fam-group-head h2 { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem); }
.fams { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.fam { padding: 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 20px); }
.fam:target { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-100); }
.fam-k { display: flex; gap: 10px; font-family: var(--font-head); font-weight: 800; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); margin-bottom: 10px; line-height: 1.4; }
.fam h3 { font-size: 1.28rem; }
.fam-sub { color: var(--muted); margin: 8px 0 16px; font-size: .97rem; }
.fam .mini { grid-template-columns: 1fr; gap: 6px; }
.fam .mini > div { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.5fr); gap: 12px; padding: 10px 12px; }
.fam .mini dt { margin: 0; }
.fam-more { margin-top: 14px; }
.fam-more summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; list-style: none; font-family: var(--font-head); font-weight: 750; color: var(--teal); padding: 6px 0; }
.fam-more summary::-webkit-details-marker { display: none; }
.fam-more summary .ic { width: 18px; height: 18px; stroke-width: 2.2; transition: transform .2s; }
.fam-more[open] summary .ic { transform: rotate(180deg); }
.fam-details { display: grid; gap: 18px; margin-top: 12px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.fam-details h4 { font-size: 1rem; }
.fam-details > li > p { font-size: .92rem; color: var(--muted); margin: 4px 0 10px; }
@media (max-width: 860px) { .fams { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .fam .mini > div { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- FAQ page ---------- */
.pill-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.pill-nav a { display: inline-block; padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-family: var(--font-head); font-weight: 750; color: var(--navy); text-decoration: none; }
.pill-nav a:hover { border-color: var(--teal); color: var(--teal); }
.faq-page { max-width: 900px; padding-block: clamp(40px, 5vw, 72px) clamp(64px, 8vw, 104px); }
.faq-group + .faq-group { margin-top: 56px; }
.faq-group h2 { font-size: 1.6rem; margin-bottom: 18px; }

/* ---------- Copilot ---------- */
.cps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.cp { position: relative; padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line-soft); }
.cp-n { font-family: var(--font-head); font-weight: 800; font-size: .85rem; color: var(--teal); }
.cp h3 { font-size: 1.25rem; margin: 6px 0 8px; }
.cp > p { color: var(--muted); margin-bottom: 16px; }
.cp:last-child:nth-child(odd) { grid-column: 1 / -1; }
.cp .mini { grid-template-columns: 1fr; gap: 6px; }
.cp .mini > div { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.5fr); gap: 12px; padding: 10px 12px; }
.cp .mini dt { margin: 0; }
@media (max-width: 420px) { .cp .mini > div { grid-template-columns: 1fr; gap: 2px; } }
@media (max-width: 860px) { .cps { grid-template-columns: 1fr; } }

/* ---------- Come iniziare ---------- */
.path-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); }
.path { display: grid; gap: 0; }
.path li { position: relative; display: flex; gap: 20px; padding-bottom: 32px; }
.path li:not(:last-child)::before { content: ""; position: absolute; left: 19px; top: 44px; bottom: 4px; width: 2px; background: var(--line); }
.path h3 { margin: 6px 0 6px; }
.path p { color: var(--muted); }
.path .step-n { flex: none; }
@media (max-width: 860px) { .path-layout { grid-template-columns: 1fr; } }
.measure { margin-top: 28px; padding: 26px; border-radius: 18px; background: var(--navy); }
.measure h3 { color: #fff; margin-bottom: 16px; }
.measure .mini > div { background: rgba(255, 255, 255, .07); }
.measure .mini dt { color: #fff; }
.measure .mini dd { color: var(--on-dark-muted); }
.start-opt { display: flex; flex-direction: column; padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.start-opt h3 { font-size: 1.3rem; margin: 18px 0 8px; }
.start-opt p { color: var(--muted); margin-bottom: 18px; }
.start-opt .link-arrow { margin-top: auto; }

/* ---------- Contatti ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
.contact-form { padding: clamp(22px, 3vw, 36px); border-radius: 20px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm); }
.contact-form fieldset { border: 0; padding: 0; margin: 0 0 22px; }
.contact-form legend { font-family: var(--font-head); font-weight: 800; font-size: 1.12rem; color: var(--ink); margin-bottom: 14px; padding: 0; }
.radio-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 640px) { .radio-grid { grid-template-columns: 1fr; } }
.radio-card { position: relative; display: block; cursor: pointer; }
.radio-card input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.radio-card > span { display: block; height: 100%; padding: 14px; border-radius: 12px; border: 1.5px solid var(--line); transition: border-color .2s, background-color .2s; }
.radio-card strong { display: block; font-family: var(--font-head); font-size: .98rem; }
.radio-card small { display: block; font-size: .84rem; color: var(--muted); line-height: 1.4; margin-top: 4px; }
.radio-card input:checked + span { border-color: var(--teal); background: var(--teal-50); }
.radio-card input:focus-visible + span { outline: 3px solid var(--teal-400); outline-offset: 2px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: .95rem; color: var(--ink); }
.opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff;
  font: inherit; font-size: 1rem; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-100); }
.field input[aria-invalid="true"] { border-color: #b4372f; }
.form-error { color: #9c2d26; font-weight: 600; font-size: .95rem; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 8px; }
.form-actions .fine { flex: 1 1 260px; margin: 0; }
.aside-card { padding: 26px; border-radius: 18px; border: 1px solid var(--line-soft); }
.aside-card + .aside-card { margin-top: 16px; }
.aside-card h2 { font-size: 1.25rem; margin-bottom: 16px; }
.aside-tint { background: var(--bg-tint); border-color: transparent; }
.aside-tint .mini { grid-template-columns: 1fr; }
.aside-tint .mini > div { background: #fff; }
.moments { display: grid; gap: 0; counter-reset: mo; }
.moments li { position: relative; padding: 12px 0 12px 44px; counter-increment: mo; border-top: 1px solid var(--line-soft); }
.moments li:first-child { border-top: 0; }
.moments li::before { content: counter(mo); position: absolute; left: 0; top: 12px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: .9rem; }
.moments strong { display: block; font-family: var(--font-head); }
.moments span { color: var(--muted); font-size: .95rem; }

.notfound { min-height: 50vh; display: grid; align-items: center; }

/* ---------- Animazioni ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
  .js .reveal.in { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .cta-band, .toc { display: none; }
  .section-dark, .hero { background: #fff !important; color: #000; }
}
