/* =========================================================
   MATRIX-9 — Foglio di stile del sito
   Palette e tipografia coerenti con logo e report.
   ========================================================= */

/* ---------- Font (ospitati sul sito: nessuna chiamata a Google) ---------- */
@font-face { font-family: "Poppins"; font-weight: 300; font-style: normal; font-display: swap; src: url("../fonts/poppins-300.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Lora"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/lora-400.woff2") format("woff2"); }
@font-face { font-family: "Lora"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/lora-400-italic.woff2") format("woff2"); }

:root {
  --navy: #0A1F33;
  --navy-2: #12304B;
  --navy-3: #1B3D5C;
  --gold: #B89868;
  --gold-soft: #D8C3A0;
  --gold-ink: #86673A;      /* oro scuro leggibile su fondo chiaro */
  --ivory: #F7F3EC;
  --ivory-2: #EFE8DC;
  --paper: #FFFFFF;
  --ink: #16283A;
  --ink-2: #3E4D5C;
  --muted: #66727F;
  --line: #E4DCCD;
  --line-dark: rgba(216, 195, 160, .22);
  --sand: #F1EADD;
  --gold-wash: #FAF5EC;

  --t1: #488077; --t2: #B0446E; --t3: #AB2929; --t4: #633A76; --t5: #094A66;
  --t6: #DC5526; --t7: #F8AA3E; --t8: #606C44; --t9: #8C5725;

  --sans: "Poppins", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --serif: "Lora", Georgia, "Times New Roman", serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(10, 31, 51, .05), 0 8px 28px rgba(10, 31, 51, .07);
  --wrap: 1200px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ivory); color: var(--ink);
  font-family: var(--sans); font-weight: 400; font-size: 1.0625rem; line-height: 1.7;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--gold-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--sans); font-weight: 500; line-height: 1.2; color: var(--navy); margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 500; letter-spacing: -.02em; }
h2 { font-size: clamp(1.65rem, 3vw, 2.35rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.02rem; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.2em; margin: 0 0 1.1em; }
li { margin-bottom: .35em; }
strong { font-weight: 500; color: var(--navy); }
em { font-family: var(--serif); font-style: italic; }
hr { border: 0; border-top: 1px solid var(--line); margin: 3rem 0; }
.nw { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--navy); padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 40px, 820px); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-sm { padding: clamp(40px, 6vw, 72px) 0; }
.bg-paper { background: var(--paper); }
.bg-ivory-2 { background: var(--ivory-2); }
.bg-navy { background: var(--sand); color: var(--ink); }
.bg-navy a:not(.btn) { color: var(--gold-ink); }

/* ---------- Etichette, linee, testo ---------- */
.eyebrow {
  display: block;
  font-size: .72rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-ink);
  margin-bottom: 1rem;
}
.eyebrow::before { content: ""; display: inline-block; vertical-align: middle; width: 28px; height: 1px; background: currentColor; margin: -2px 12px 0 0; }

.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); line-height: 1.65; color: var(--ink-2); font-weight: 300; }

.rule { width: 56px; height: 2px; background: var(--gold); border: 0; margin: 0 0 1.6rem; }
.serif { font-family: var(--serif); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.center .rule { margin-inline: auto; }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-inline: auto; }

/* ---------- Pulsanti ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  font: 500 .95rem/1 var(--sans); letter-spacing: .01em; text-decoration: none;
  padding: 15px 24px; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn .arr { transition: transform .2s; }
.btn:hover .arr { transform: translateX(3px); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #C9AB7D; color: var(--navy); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-3); color: #fff; }
.btn-ghost { border-color: var(--navy); color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-sm { padding: 10px 18px; font-size: .85rem; }
.link-arrow { font-weight: 500; text-decoration: none; color: var(--navy); border-bottom: 1px solid var(--gold); padding-bottom: 2px; }
.link-arrow::after { content: " →"; color: var(--gold-ink); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line); box-shadow: 0 1px 0 rgba(255,255,255,.6);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); flex-shrink: 0; }
.brand img { width: 44px; height: 44px; }
.brand-name { font-weight: 500; font-size: 1.28rem; letter-spacing: .06em; line-height: 1; }
.brand-name b { color: var(--gold); font-weight: 400; }
.brand-tag { display: block; font-size: .5rem; letter-spacing: .34em; color: var(--gold-ink); margin-top: 5px; text-transform: uppercase; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav > ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 2px; }
.nav li { margin: 0; position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 6px; background: none; border: 0; cursor: pointer;
  color: var(--ink-2); font: 400 .88rem/1 var(--sans); text-decoration: none; padding: 10px 9px; border-radius: 8px; white-space: nowrap;
}
.nav-link:hover, .nav-link[aria-expanded="true"] { color: var(--navy); background: var(--ivory); }
.nav-link.is-active { color: var(--gold-ink); }
.nav-link .chev { width: 9px; height: 9px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .7; }
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 270px; background: var(--paper);
  border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(10, 31, 51, .12); padding: 10px; list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: .18s;
}
.has-dd.open > .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { display: flex; gap: 12px; align-items: center; padding: 9px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: .92rem; line-height: 1.35; }
.dropdown a:hover { background: var(--ivory); color: var(--navy); }
.dropdown .dd-sub { display: block; color: var(--muted); font-size: .78rem; }
.dropdown .sep { height: 1px; background: var(--line); margin: 6px 8px; }
.dropdown.dd-types { display: grid; grid-template-columns: 1fr 1fr; min-width: 480px; gap: 2px; }
.dropdown.dd-types .dd-wide { grid-column: 1 / -1; }
.nav-cta { margin-left: 10px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; color: var(--navy); padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: currentColor; margin: 5px 0; transition: .2s; }

@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: #fff; flex-direction: column; align-items: stretch;
    padding: 16px 20px 40px; overflow-y: auto; display: none;
  }
  .nav.open { display: flex; }
  .nav > ul { flex-direction: column; }
  .nav-link { width: 100%; justify-content: space-between; font-size: 1.05rem; padding: 14px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .dropdown, .dropdown.dd-types { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; display: none; background: transparent; min-width: 0; padding: 4px 0 12px 8px; grid-template-columns: 1fr; }
  .has-dd.open > .dropdown { display: block; }
  .dropdown a { color: var(--ink-2); }
  .dropdown a:hover { background: var(--ivory); color: var(--navy); }
  .dropdown .sep { background: var(--line); }
  .nav-cta { margin: 20px 0 0; }
  body.nav-open { overflow: hidden; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Badge Tipo ---------- */
.tb {
  --tc: var(--navy); display: inline-grid; place-items: center; flex-shrink: 0;
  width: 30px; height: 30px; border-radius: 50%; background: var(--tc); color: #fff;
  font: 500 .85rem/1 var(--sans); box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--tc);
}
.tb-lg { width: 64px; height: 64px; font-size: 1.6rem; box-shadow: 0 0 0 3px #fff, 0 0 0 4.5px var(--tc); }
.tb-xl { width: 96px; height: 96px; font-size: 2.6rem; font-weight: 400; box-shadow: 0 0 0 5px #fff, 0 0 0 7px var(--tc), 0 18px 40px rgba(10, 31, 51, .12); }
.t1 { --tc: var(--t1); } .t2 { --tc: var(--t2); } .t3 { --tc: var(--t3); } .t4 { --tc: var(--t4); } .t5 { --tc: var(--t5); }
.t6 { --tc: var(--t6); } .t7 { --tc: var(--t7); } .t8 { --tc: var(--t8); } .t9 { --tc: var(--t9); }
.tb.t7 { color: var(--navy); }

/* ---------- Hero home ---------- */
.hero { position: relative; background: radial-gradient(ellipse at 78% 45%, #FFFFFF 0%, #FBF7F0 38%, var(--ivory) 70%); color: var(--ink); overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); }
.hero .wrap.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.hero-symbol { position: relative; max-width: 560px; width: 100%; justify-self: end; }
.hero-symbol::before { content: ""; position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle, rgba(184, 152, 104, .16), rgba(184, 152, 104, 0) 68%); z-index: -1; }
@media (prefers-reduced-motion: no-preference) { .hero-symbol .ennea { animation: m9-in 1.2s ease both; } .hero-symbol .node { animation: m9-pop .6s ease both; } }
@keyframes m9-in { from { opacity: 0; transform: scale(.96) rotate(-6deg); } to { opacity: 1; transform: none; } }
@keyframes m9-pop { from { opacity: 0; } to { opacity: 1; } }
.hero .wrap { min-height: min(82vh, 720px); padding: 64px 0 80px; }
.hero-copy { max-width: 620px; }
.hero h1 { color: var(--navy); font-size: clamp(2.7rem, 6vw, 4.8rem); line-height: 1.02; margin-bottom: .45em; }
.hero h1 .accent { color: var(--gold-ink); font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.hero .lead { color: var(--ink-2); max-width: 540px; margin-bottom: 2rem; }
.hero-note { margin-top: 1.4rem; font-size: .85rem; color: var(--muted); display: flex; gap: 18px; flex-wrap: wrap; }
.hero-note span::before { content: "·"; color: var(--gold); margin-right: 8px; }
.hero-note span:first-child::before { content: none; }
.hero-side { position: absolute; right: 40px; bottom: 36px; text-align: right; font-size: .66rem; letter-spacing: .3em; line-height: 2.1; color: var(--muted); text-transform: uppercase; }
.hero-side::before { content: ""; display: block; width: 40px; height: 1px; background: var(--gold); margin: 0 0 14px auto; }
@media (max-width: 860px) {
  .hero .wrap.hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-symbol { justify-self: center; max-width: 300px; margin-top: 8px; }
  .hero .wrap { min-height: 0; padding: 40px 0 48px; }
  .hero h1 { font-size: clamp(2.3rem, 11vw, 3rem); }
  .hero-side { display: none; }
}

/* ---------- Hero pagine interne ---------- */
.page-hero { position: relative; background: linear-gradient(180deg, #FFFFFF 0%, var(--ivory) 100%); color: var(--ink-2); overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero .wrap { padding: clamp(48px, 7vw, 88px) 0 clamp(44px, 6vw, 72px); position: relative; }
.page-hero h1 { color: var(--navy); max-width: 820px; }
.page-hero .lead { color: var(--ink-2); max-width: 720px; margin: 0; }
.page-hero .deco { position: absolute; right: -60px; top: 50%; transform: translateY(-50%); width: 400px; opacity: .45; pointer-events: none; }
.page-hero.has-badge .wrap { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center; }
@media (max-width: 700px) { .page-hero .deco { width: 260px; right: -110px; } .page-hero.has-badge .wrap { grid-template-columns: 1fr; gap: 20px; } }
.crumbs { font-size: .8rem; margin-bottom: 1.6rem; color: var(--muted); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--gold-ink); }
.crumbs span[aria-hidden] { margin: 0 8px; color: var(--gold); }

/* ---------- Griglie e card ---------- */
.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); } }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.split.wide-left { grid-template-columns: 1.15fr .85fr; }
@media (max-width: 900px) { .split, .split.wide-left { grid-template-columns: minmax(0, 1fr); } }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 2.6vw, 32px); }
.card h3 { margin-bottom: .45em; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card-link { text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: border-color .2s, transform .2s, box-shadow .2s; }
.card-link:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: var(--shadow); color: inherit; }
.card-link .link-arrow { margin-top: auto; padding-top: 14px; align-self: flex-start; border: 0; }
.card .num { font: 400 .78rem/1 var(--sans); letter-spacing: .18em; color: var(--gold-ink); margin-bottom: 14px; display: block; }
.card-ivory { background: var(--ivory); }
.bg-navy .card { background: var(--paper); }
.icon-circle { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--gold); display: grid; place-items: center; color: var(--gold-ink); margin-bottom: 18px; }
.icon-circle svg { width: 24px; height: 24px; }


/* ---------- Riquadri (come nel report) ---------- */
.callout { background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 20px 24px; margin: 1.8rem 0; }
.callout .label { display: block; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-ink); font-weight: 500; margin-bottom: 6px; }
.callout p:last-child { margin: 0; }
.callout.warn { border-left-color: var(--t6); }
.callout.info { border-left-color: var(--t5); }
.callout.navy { background: var(--gold-wash); color: var(--ink); border-color: #E9DCC4; border-left-color: var(--gold); }
.quote { font-family: var(--serif); font-style: italic; font-size: clamp(1.35rem, 2.4vw, 1.9rem); line-height: 1.45; color: var(--navy); margin: 0; }
.quote::before { content: "“"; display: block; font-size: 3.2rem; line-height: .6; color: var(--gold); margin-bottom: 10px; }

.quote-src { margin-top: 1rem; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-ink); }

/* ---------- Articolo con indice laterale ---------- */
.article { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 28px); font-size: .86rem; }
.toc p { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-ink); font-weight: 500; margin-bottom: 12px; }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--line); }
.toc li { margin: 0; }
.toc a { display: block; padding: 6px 0 6px 16px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.4; }
.toc a:hover, .toc a.is-current { color: var(--navy); border-left-color: var(--gold); }
@media (max-width: 960px) { .article { grid-template-columns: minmax(0, 1fr); } .toc { position: static; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; } }
.prose { max-width: 760px; }
.prose > h2 { margin-top: 3.2rem; padding-top: .2rem; }
.prose > h2:first-child { margin-top: 0; }
.prose > h3 { margin-top: 2.2rem; }
.prose .h-num { display: block; font-size: .72rem; letter-spacing: .22em; color: var(--gold-ink); font-weight: 500; margin-bottom: .6rem; text-transform: uppercase; }

/* ---------- Tabelle ---------- */
.table-wrap { overflow-x: auto; margin: 1.6rem 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
table { width: 100%; border-collapse: collapse; font-size: .93rem; line-height: 1.5; }
th, td { text-align: left; vertical-align: top; padding: 14px 18px; border-bottom: 1px solid var(--line); }
th { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; color: var(--gold-ink); background: var(--ivory); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 500; color: var(--navy); }
table.plain td:first-child { font-weight: 400; color: inherit; }

/* ---------- Chip e liste ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 1rem; }
.chips li { margin: 0; background: var(--ivory); border: 1px solid var(--line); border-radius: 999px; padding: 5px 13px; font-size: .86rem; line-height: 1.4; color: var(--ink-2); }
.chips.gold li { background: #F4ECDD; border-color: #E6D6BA; }
.chips.rose li { background: #F8ECEA; border-color: #EDD5D1; }
.chips.green li { background: #EEF2EA; border-color: #D8E0CF; }
.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 28px; margin-bottom: .7em; }
.checklist li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 12px; height: 7px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); }
.dotlist { list-style: none; padding: 0; }
.dotlist li { position: relative; padding-left: 22px; }
.dotlist li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }

/* ---------- Enneagramma SVG ---------- */
.ennea { width: 100%; height: auto; overflow: visible; }
.ennea .ring { fill: none; stroke: var(--gold); stroke-width: 2.4; }
.ennea .lines { fill: none; stroke: var(--gold); stroke-width: 2.2; stroke-linejoin: round; }
.ennea .node circle.halo { fill: #fff; }
.ennea .node text { font: 500 17px var(--sans); fill: #fff; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.ennea .node.t7 text { fill: var(--navy); }
.ennea .lbl { font: 400 17px var(--sans); fill: var(--ink-2); }
.ennea .lbl-name { font-weight: 500; fill: var(--navy); }
.ennea a .node { cursor: pointer; transition: transform .2s; transform-box: fill-box; transform-origin: center; }
.ennea a:hover .node, .ennea a:focus .node { transform: scale(1.12); }
.ennea.dark .lbl { fill: #B8C4CF; }
.ennea.dark .lbl-name { fill: #fff; }
.ennea.dark .node circle.halo { fill: var(--navy); }
.ennea .node { transition: opacity .3s; }
.ennea.dim .node { opacity: .22; }
.ennea.dim .node.on { opacity: 1; }
.ennea .hl { fill: none; stroke-width: 3; opacity: 0; transition: opacity .3s; }
.ennea .hl.on { opacity: .9; }
.ennea .wing { stroke: var(--gold-ink); stroke-width: 7; fill: none; stroke-linecap: round; opacity: .85; }
.ennea .conn { stroke-width: 3; fill: none; stroke-dasharray: 7 6; }

/* ---------- Home: blocchi specifici ---------- */
.principles { counter-reset: p; }
.principles .card { position: relative; }
.types-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.types-list a { display: grid; grid-template-columns: 40px 1fr auto; gap: 16px; align-items: center; padding: 12px 14px; border-radius: 12px; text-decoration: none; color: var(--ink); border: 1px solid transparent; transition: .2s; }
.types-list a:hover, .types-list a.hover { background: var(--paper); border-color: var(--line); color: var(--ink); }
.types-list .tn { font-weight: 500; color: var(--navy); display: block; line-height: 1.3; }
.types-list .tm { font-size: .85rem; color: var(--muted); line-height: 1.45; display: block; }
.types-list .go { color: var(--gold-ink); opacity: 0; transition: .2s; }
.types-list a:hover .go { opacity: 1; }
.circuit { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; position: relative; counter-reset: c; }
.circuit li { list-style: none; margin: 0; position: relative; padding: 0 18px; text-align: center; }
.circuit li::before { counter-increment: c; content: counter(c); display: grid; place-items: center; width: 44px; height: 44px; margin: 0 auto 16px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold); font-size: .95rem; background: var(--paper); position: relative; z-index: 1; color: var(--gold-ink); }
.circuit li::after { content: ""; position: absolute; top: 22px; left: 50%; width: 100%; height: 1px; background: var(--gold-soft); }
.circuit li:last-child::after { display: none; }
.circuit h4 { color: var(--navy); margin-bottom: .3em; }
.circuit p { font-size: .88rem; color: var(--ink-2); margin: 0; }
@media (max-width: 900px) {
  .circuit { grid-template-columns: 1fr; gap: 24px; }
  .circuit li { text-align: left; padding: 0 0 0 64px; }
  .circuit li::before { position: absolute; left: 0; top: 0; margin: 0; }
  .circuit li::after { top: 44px; left: 22px; width: 1px; height: calc(100% - 20px); }
}
.levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.levels > div { padding: 28px; background: var(--paper); border-right: 1px solid var(--line); position: relative; }
.levels > div:last-child { border-right: 0; }
.levels > div::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; }
.levels .l1::before { background: var(--t8); } .levels .l2::before { background: var(--gold); } .levels .l3::before { background: var(--t3); }
.levels .q { font-family: var(--serif); font-style: italic; color: var(--ink-2); }
@media (max-width: 800px) { .levels { grid-template-columns: 1fr; } .levels > div { border-right: 0; border-bottom: 1px solid var(--line); } }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.steps .step { position: relative; padding: 28px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.steps .step::before { counter-increment: s; content: "0" counter(s); display: block; font: 400 2.2rem/1 var(--serif); color: var(--gold-ink); margin-bottom: 16px; }
.steps .tag { display: inline-block; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--gold); color: var(--gold-ink); margin-bottom: 12px; }
.steps p { color: var(--ink-2); font-size: .94rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.not-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 40px; list-style: none; padding: 0; }
.not-list li { padding-left: 30px; position: relative; margin: 0; }
.not-list li::before { content: "×"; position: absolute; left: 0; top: -.05em; font-size: 1.3rem; color: var(--t6); line-height: 1.4; }
@media (max-width: 700px) { .not-list { grid-template-columns: 1fr; } }

/* ---------- Pagina Tipo ---------- */
.type-hero { --tc: var(--gold); }
.type-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--tc); }
.sig { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.4rem; }
.sig span { font-size: .78rem; border: 1px solid var(--line); background: var(--paper); color: var(--navy); padding: 6px 12px; border-radius: 999px; }
.sig span b { font-weight: 400; color: var(--gold-ink); margin-right: 6px; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; }
.kv { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 1.6rem 0; }
.kv .card { padding: 22px 24px; }
.kv .k { display: block; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-ink); font-weight: 500; margin-bottom: 8px; }
.kv p { margin: 0; }
@media (max-width: 700px) { .kv { grid-template-columns: 1fr; } }
.pfd { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 1.6rem 0; }
.pfd .card { border-top: 3px solid var(--tc, var(--gold)); }
.pfd .lab { font: 400 1.35rem/1.3 var(--serif); color: var(--navy); margin: 4px 0 10px; }
@media (max-width: 800px) { .pfd { grid-template-columns: 1fr; } }
.flow { list-style: none; padding: 0; margin: 1.6rem 0; display: grid; gap: 0; }
.flow li { display: grid; grid-template-columns: 170px 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); margin: 0; }
.flow li:last-child { border-bottom: 0; }
.flow .st { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-ink); font-weight: 500; padding-top: 4px; }
@media (max-width: 600px) { .flow li { grid-template-columns: 1fr; gap: 4px; } }
.intent { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--radius); overflow: hidden; margin: 1.6rem 0; border: 1px solid var(--line); }
.intent > div { padding: 22px 24px; background: var(--paper); }
.intent > div + div { background: #FBF4F1; border-left: 1px solid var(--line); }
.intent .k { display: block; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 500; margin-bottom: 8px; color: var(--t8); }
.intent > div + div .k { color: var(--t3); }
@media (max-width: 700px) { .intent { grid-template-columns: 1fr; } .intent > div + div { border-left: 0; border-top: 1px solid var(--line); } }
.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 1.6rem 0; }
.cols3 h4 { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-ink); }
@media (max-width: 800px) { .cols3 { grid-template-columns: 1fr; } }
.direction { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-family: var(--serif); font-size: 1.3rem; color: var(--navy); margin: 1rem 0; }
.direction .arrow { color: var(--gold); font-family: var(--sans); }

.direction small { display: block; font-family: var(--sans); font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-ink); }
.subtype-cards { display: grid; gap: 20px; margin: 1.6rem 0; }
.subtype { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.subtype > summary { list-style: none; cursor: pointer; padding: 22px 26px; display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; }
.subtype > summary::-webkit-details-marker { display: none; }
.subtype .code { font: 500 .78rem/1 var(--sans); letter-spacing: .08em; background: var(--ivory); border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; color: var(--navy); white-space: nowrap; }
.subtype .key { font: 400 1.35rem/1.25 var(--serif); color: var(--navy); display: block; }
.subtype .syn { font-size: .9rem; color: var(--muted); display: block; line-height: 1.5; margin-top: 3px; }
.subtype .plus { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--gold); position: relative; flex-shrink: 0; }
.subtype .plus::before, .subtype .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: var(--gold-ink); transform: translate(-50%, -50%); transition: .2s; }
.subtype .plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.subtype[open] .plus::after { transform: translate(-50%, -50%) rotate(0); }
.subtype .body { padding: 0 26px 26px; border-top: 1px solid var(--line); padding-top: 22px; }
.ct-flag { display: inline-block; font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--t6); border: 1px solid currentColor; padding: 2px 8px; border-radius: 999px; margin-left: 8px; vertical-align: middle; }
@media (max-width: 600px) { .subtype > summary { grid-template-columns: 1fr auto; } .subtype .code { grid-column: 1 / -1; justify-self: start; } }
.type-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.type-nav a { display: flex; align-items: center; gap: 14px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); text-decoration: none; color: var(--navy); }
.type-nav a:hover { border-color: var(--gold); }
.type-nav a.next { justify-content: flex-end; text-align: right; }
@media (max-width: 600px) { .type-nav { grid-template-columns: minmax(0, 1fr); } }
.type-nav small { display: block; color: var(--muted); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
.study { counter-reset: q; list-style: none; padding: 0; }
.study li { counter-increment: q; position: relative; padding: 14px 0 14px 46px; border-bottom: 1px solid var(--line); margin: 0; font-family: var(--serif); font-size: 1.05rem; color: var(--ink-2); }
.study li::before { content: counter(q); position: absolute; left: 0; top: 14px; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--gold); display: grid; place-items: center; font: 400 .8rem/1 var(--sans); color: var(--gold-ink); }

/* ---------- Strumenti interattivi (confronta, relazioni) ---------- */
.tool { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: clamp(20px, 3vw, 36px); box-shadow: var(--shadow); }
.picker { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: end; margin-bottom: 28px; }
.picker > div { min-width: 0; }
.picker label { display: block; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-ink); font-weight: 500; margin-bottom: 8px; }
.picker .vs { font: italic 400 1.2rem var(--serif); color: var(--gold-ink); padding-bottom: 12px; }
.select { width: 100%; appearance: none; font: 400 1rem var(--sans); color: var(--navy); background: var(--ivory) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2386673A' stroke-width='1.6' fill='none'/%3E%3C/svg%3E") no-repeat right 16px center; border: 1px solid var(--line); border-radius: 10px; padding: 14px 44px 14px 16px; cursor: pointer; }
.select:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(184, 152, 104, .25); }
@media (max-width: 640px) { .picker, #tool-relazioni .picker { grid-template-columns: minmax(0, 1fr) !important; } .picker .vs { padding: 0; text-align: center; } }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.pill { font: 400 .86rem/1 var(--sans); padding: 10px 16px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); color: var(--ink-2); cursor: pointer; }
.pill:hover { border-color: var(--gold); }
.pill[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.result-empty { color: var(--muted); font-style: italic; }
.rel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
#tool-relazioni .split { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); }
#tool-relazioni .rel-grid { grid-template-columns: 1fr; gap: 12px; }
#tool-relazioni .rel-grid .card { padding: 18px 22px; }
#tool-relazioni .rel-grid p { margin: 0; }
@media (max-width: 900px) { #tool-relazioni .split { grid-template-columns: minmax(0, 1fr); } }
.rel-grid .card { border-top: 3px solid var(--gold); }
.rel-grid .card:nth-child(1) { border-top-color: var(--t8); }
.rel-grid .card:nth-child(2) { border-top-color: var(--t3); }
.rel-grid .card:nth-child(3) { border-top-color: var(--t5); }
.rel-grid h4 { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-ink); }
@media (max-width: 800px) { .rel-grid { grid-template-columns: 1fr; } }
.matrix { border-collapse: separate; border-spacing: 4px; font-size: .8rem; }
.matrix th, .matrix td { border: 0; padding: 0; text-align: center; background: none; }
.matrix button { width: 100%; min-width: 42px; height: 42px; border-radius: 8px; border: 1px solid var(--line); background: var(--ivory); cursor: pointer; font: 500 .8rem var(--sans); color: var(--navy); }
.matrix button:hover, .matrix button.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.same { color: var(--t8); font-weight: 500; }


/* ---------- Sottotipi (versione sintetica) e rimandi al report ---------- */
.subtype-head { padding: 20px 24px; display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; }
@media (max-width: 600px) { .subtype-head { grid-template-columns: 1fr; gap: 10px; } .subtype-head .code { justify-self: start; } }
.report-teaser { background: var(--gold-wash); border: 1px dashed #D9C39E; border-radius: var(--radius); padding: 24px 28px; margin: 2.4rem 0 0; }
.report-teaser h3 { margin-bottom: .4em; }
.report-teaser ul { margin-bottom: 1rem; }
.rel-cat { display: inline-block; font: 500 .8rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); background: var(--gold-wash); border: 1px solid #E6D6BA; padding: 9px 14px; border-radius: 999px; margin: 0 0 14px; }

.rel-story p { font-family: var(--serif); font-size: 1.06rem; line-height: 1.7; color: var(--ink); margin: 0 0 .8em; }
.rel-cta { margin-top: 20px; background: var(--gold-wash); border: 1px solid #E6D6BA; border-radius: var(--radius); padding: 20px 22px; }
.rel-cta .eyebrow { margin-bottom: .6rem; }
.rel-cta p { font-size: .94rem; }

/* ---------- Offerta test e capitoli del report ---------- */
.offer { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.offer-card { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; }
.offer-card h3 { font-size: 1.5rem; margin-bottom: .2em; }
.offer-card .checklist { margin: 18px 0 24px; }
.offer-card .btn { margin-top: auto; align-self: flex-start; }
.offer-meta { font-size: .86rem; color: var(--muted); margin: 0; }
.offer-full { border-color: #E2CFAE; box-shadow: 0 1px 0 #fff inset, 0 20px 50px rgba(134, 103, 58, .12); background: linear-gradient(180deg, #FFFFFF 0%, var(--gold-wash) 100%); }
@media (max-width: 800px) { .offer { grid-template-columns: minmax(0, 1fr); } }
.chap-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 48px; }
.chap-group .eyebrow { margin-bottom: .4rem; }
.chap-list { list-style: none; padding: 0; margin: 10px 0 0; border-top: 1px solid var(--line); }
.chap-list li { display: grid; grid-template-columns: 36px 1fr; gap: 6px; padding: 12px 0; border-bottom: 1px solid var(--line); margin: 0; }
.chap-n { font: 400 .8rem/1.9 var(--sans); color: var(--gold-ink); font-variant-numeric: tabular-nums; }
.chap-list strong { display: block; font-weight: 500; color: var(--navy); line-height: 1.4; }
.chap-d { display: block; font-size: .9rem; color: var(--ink-2); line-height: 1.55; margin-top: 3px; }
@media (max-width: 800px) { .chap-groups { grid-template-columns: minmax(0, 1fr); } }
.person { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 32px; align-items: start; }
.monogram { width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--gold), 0 18px 40px rgba(10, 31, 51, .1); font: 400 2.4rem/1 var(--serif); color: var(--navy); letter-spacing: .02em; }
@media (max-width: 640px) { .person { grid-template-columns: minmax(0, 1fr); gap: 20px; } }
.copy-mail { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ---------- Fascia offerta sotto l'apertura ---------- */
.offer-strip { background: var(--paper); border-bottom: 1px solid var(--line); }
.offer-strip .wrap { display: grid; grid-template-columns: 1fr 1.25fr 1fr; }
.offer-strip a { position: relative; display: grid; gap: 2px; padding: 22px 48px 22px 26px; text-decoration: none; color: var(--ink); border-left: 1px solid var(--line); transition: background .2s; }
.offer-strip a:last-child { border-right: 1px solid var(--line); }
.offer-strip a:hover { background: var(--ivory); color: var(--ink); }
.offer-strip .os-main { background: var(--gold-wash); }
.offer-strip .os-main:hover { background: #F5ECDC; }
.os-k { font: 500 .66rem/1.3 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-ink); }
.os-t { font: 500 1.05rem/1.3 var(--sans); color: var(--navy); }
.os-d { font-size: .82rem; color: var(--muted); line-height: 1.4; }
.os-go { position: absolute; right: 22px; top: 50%; transform: translateY(-50%); color: var(--gold-ink); font-size: 1.1rem; transition: transform .2s; }
.offer-strip a:hover .os-go { transform: translate(4px, -50%); }
@media (max-width: 860px) { .offer-strip .wrap { grid-template-columns: minmax(0, 1fr); width: 100%; } .offer-strip a { border-left: 0; border-right: 0 !important; border-bottom: 1px solid var(--line); padding: 16px 48px 16px 20px; } }
.price-line { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 14px 0 0; }
.price-now { font: 400 2.2rem/1 var(--serif); color: var(--navy); }
.price-note { font: 500 .7rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); background: var(--gold-wash); border: 1px solid #E6D6BA; padding: 5px 10px; border-radius: 999px; }

/* ---------- MATRIX-9 Work ---------- */
.work-card { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: clamp(28px, 3.4vw, 44px); display: flex; flex-direction: column; position: relative; overflow: hidden; }
.work-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--gold); }
#people.work-card::before { background: var(--t1); }
.work-card h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: .15em; }
.accent-word { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--gold-ink); }
#people .accent-word { color: var(--t1); }
.work-sub { font-size: .9rem; color: var(--muted); margin-bottom: 1.2rem; }
.work-q { font-family: var(--serif); font-style: italic; font-size: 1.12rem; color: var(--navy); border-left: 2px solid var(--gold-soft); padding-left: 16px; margin: .4rem 0 1.6rem; }
.work-card .btn { margin-top: auto; align-self: flex-start; }
.work-col-title { font: 500 1.25rem/1.2 var(--sans); color: var(--navy); margin-bottom: .6rem; }
.flow-steps { list-style: none; padding: 0; margin: 1.4rem 0 0; counter-reset: w; }
.flow-steps li { counter-increment: w; position: relative; padding: 0 0 22px 52px; margin: 0; }
.flow-steps li::before { content: counter(w); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--paper); border: 1px solid var(--gold); display: grid; place-items: center; font: 500 .85rem/1 var(--sans); color: var(--gold-ink); }
.flow-steps li::after { content: ""; position: absolute; left: 17px; top: 40px; bottom: 6px; width: 1px; background: var(--gold-soft); }
.flow-steps li:last-child::after { display: none; }


/* ---------- Menu: link secondari su telefono ---------- */
.nav-mobile-extra { display: none; }
@media (max-width: 1080px) { .nav-mobile-extra { display: block; margin: 18px 0 0; font-size: .95rem; color: var(--muted); } .nav-mobile-extra a { color: var(--ink-2); text-decoration: none; } }

/* ---------- Condivisione ---------- */
.share { margin: 2rem 0; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.share-title { font: 500 .7rem/1.3 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-ink); margin: 0 0 12px; }
.share-row { display: flex; flex-wrap: wrap; gap: 8px; }
.share-btn { font: 500 .86rem/1 var(--sans); padding: 11px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--ivory); color: var(--navy); text-decoration: none; cursor: pointer; }
.share-btn:hover { border-color: var(--gold); color: var(--navy); }

/* ---------- Coppie di Tipi ---------- */
.pair-links { list-style: none; padding: 0; margin: 1.2rem 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pair-links li { margin: 0; }
.pair-links a { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); text-decoration: none; color: var(--ink); height: 100%; }
.pair-links a:hover { border-color: var(--gold); color: var(--ink); }
.pair-links .tb { grid-row: span 2; }
.pl-name { font-weight: 500; color: var(--navy); font-size: .92rem; line-height: 1.3; }
.pl-cat { font-size: .74rem; color: var(--muted); line-height: 1.3; }
.pair-links.compact { grid-template-columns: minmax(0, 1fr); gap: 4px; margin: 10px 0 0; }
.pair-links.compact a { padding: 8px 10px; border: 0; background: transparent; }
.pair-links.compact a:hover { background: var(--ivory); }
.pair-links.compact .tb { grid-row: auto; width: 26px; height: 26px; font-size: .75rem; }
@media (max-width: 800px) { .pair-links { grid-template-columns: minmax(0, 1fr); } }
.cat-s { color: var(--t8) !important; } .cat-c { color: var(--gold-ink) !important; } .cat-f { color: var(--t6) !important; }
.rel-cat.cat-s { background: #EEF2EA; border-color: #D8E0CF; } .rel-cat.cat-f { background: #FBEDE6; border-color: #F0D2C3; }
.pair-badges { display: flex; gap: 10px; margin-bottom: 18px; }
.pair-story p { font-family: var(--serif); font-size: 1.1rem; line-height: 1.75; }
.pair-story .rel-cta p, .pair-story .share p { font-family: var(--sans); font-size: .95rem; line-height: 1.6; }
.pair-layout { grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); }
@media (max-width: 900px) { .pair-layout { grid-template-columns: minmax(0, 1fr); } }
.pair-type { display: flex; gap: 14px; align-items: center; text-decoration: none; color: var(--navy); font-weight: 500; }
.pair-type small { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; }

/* ---------- Moduli ---------- */
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 640px) { .form-row { grid-template-columns: minmax(0, 1fr); } }
.form input[type=text], .form input[type=email], .form select, .form textarea { font-size: 16px; }
.form select { appearance: none; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2386673A' stroke-width='1.6' fill='none'/%3E%3C/svg%3E") no-repeat right 14px center; padding-right: 40px; }
.form .check { font-weight: 400; color: var(--ink-2); }

/* ---------- Chi c'è dietro, testimonianze, social ---------- */
.founder-strip { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 28px; align-items: center; max-width: 900px; margin: 0 auto; padding: 28px 32px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); }
.founder-strip .monogram { width: 96px; height: 96px; font-size: 2rem; }
.founder-quote { font: italic 400 1.2rem/1.55 var(--serif); color: var(--navy); margin: 0 0 10px; }
@media (max-width: 640px) { .founder-strip { grid-template-columns: minmax(0, 1fr); text-align: left; padding: 24px; } }
.person-photo { width: 160px; height: 160px; object-position: 50% 35%; background: var(--sand); border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--gold), 0 18px 40px rgba(10, 31, 51, .1); }
.founder-strip .person-photo { width: 96px; height: 96px; }
.testi blockquote { margin: 0 0 14px; font-size: 1.05rem; line-height: 1.6; color: var(--navy); }
.social { display: flex; gap: 10px; margin: 14px 0 0; }
.social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--navy); }
.social a:hover { border-color: var(--gold); color: var(--gold-ink); }
.social svg { width: 18px; height: 18px; }

/* ---------- Telefono: comodità di lettura e tocco ---------- */
@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .btn { padding: 15px 22px; }
  .btn-row .btn { width: 100%; }
  .pill { padding: 12px 16px; }
  .casi-grid .card { padding: 18px; }
  .tool { padding: 18px; border-radius: 16px; }
  .matrix button { min-width: 34px; height: 36px; font-size: .72rem; }
}

/* ---------- Glossario, FAQ ---------- */
.gloss { display: grid; grid-template-columns: 240px 1fr; gap: 0; border-top: 1px solid var(--line); }
.gloss dt, .gloss dd { padding: 18px 0; border-bottom: 1px solid var(--line); margin: 0; }
.gloss dt { font-weight: 500; color: var(--navy); padding-right: 20px; }
@media (max-width: 640px) { .gloss { grid-template-columns: 1fr; } .gloss dt { border-bottom: 0; padding-bottom: 0; } }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 48px 22px 0; font-weight: 500; color: var(--navy); position: relative; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font: 300 1.7rem/1 var(--sans); color: var(--gold-ink); transition: .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq .ans { padding: 0 0 22px; color: var(--ink-2); max-width: 760px; }
.faq h2 { margin-top: 2.6rem; font-size: 1.35rem; }

/* ---------- Report ---------- */
.report-shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.report-shots figure { margin: 0; }
.report-shots img { border-radius: 6px; box-shadow: 0 16px 40px rgba(10, 31, 51, .18); background: #fff; aspect-ratio: 595 / 842; object-fit: cover; }
.report-shots figcaption { font-size: .8rem; color: var(--muted); margin-top: 10px; }
@media (max-width: 900px) { .report-shots { grid-template-columns: repeat(2, 1fr); } }
.book { position: relative; max-width: 380px; margin: 0 auto; }
.book img { border-radius: 4px 10px 10px 4px; box-shadow: 24px 30px 60px rgba(10, 31, 51, .22); }
.chapters { columns: 2; column-gap: 48px; list-style: none; padding: 0; counter-reset: ch; }
.chapters li { break-inside: avoid; counter-increment: ch; display: grid; grid-template-columns: 38px 1fr; padding: 11px 0; border-bottom: 1px solid var(--line); margin: 0; }
.chapters li::before { content: counter(ch, decimal-leading-zero); color: var(--gold-ink); font-size: .82rem; padding-top: 2px; }
@media (max-width: 700px) { .chapters { columns: 1; } }
.price-card { background: var(--paper); color: var(--ink); border: 1px solid #E6D6BA; border-top: 4px solid var(--gold); border-radius: 20px; padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow); }
.price-card .price { font: 400 3rem/1 var(--serif); color: var(--navy); margin: 10px 0 6px; }
.price-card ul { margin: 22px 0 28px; }
.price-card li::before { border-color: var(--gold); }

/* ---------- Test ---------- */
.test-shell { max-width: 860px; margin: 0 auto; }
.consent { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; display: flex; gap: 14px; align-items: flex-start; font-size: .92rem; }
.consent input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--navy); flex-shrink: 0; }
.phase { display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.phase .ic { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--gold); font: 400 1.2rem var(--serif); color: var(--gold-ink); }
.phase .free { color: var(--t8); font-weight: 500; }

/* ---------- Form ---------- */
.form { display: grid; gap: 18px; }
.form label { display: block; font-size: .85rem; font-weight: 500; color: var(--navy); margin-bottom: 6px; }
.form input[type=text], .form input[type=email], .form textarea, .form select { width: 100%; font: 400 1rem var(--sans); padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); }
.form input:focus, .form textarea:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(184, 152, 104, .22); }
.form textarea { min-height: 150px; resize: vertical; }
.form .check { display: flex; gap: 10px; font-size: .88rem; align-items: flex-start; }
.form .check input { margin-top: 4px; accent-color: var(--navy); }

/* ---------- Pagine legali ---------- */
.legal h2 { font-size: 1.3rem; margin-top: 2.4rem; }
.legal h3 { font-size: 1.05rem; margin-top: 1.6rem; }
.fill { background: #FFF3C9; padding: 0 4px; border-radius: 3px; font-weight: 500; color: #6B4E00; }
.draft-banner { background: #FFF3C9; color: #5A4300; border: 1px solid #EBD58D; border-radius: 10px; padding: 14px 18px; font-size: .9rem; margin-bottom: 2rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--paper); color: var(--muted); font-size: .9rem; padding: 72px 0 32px; border-top: 1px solid var(--line); position: relative; }
.site-footer::before { content: ""; position: absolute; top: -1px; left: 50%; transform: translateX(-50%); width: 120px; height: 3px; background: var(--gold); }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--gold-ink); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 40px; }
.foot-grid h4 { color: var(--navy); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; margin-bottom: 18px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin-bottom: 10px; }
.foot-brand img { width: 170px; margin: -10px 0 10px -12px; }
.foot-brand p { max-width: 300px; }
.foot-legal { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; font-size: .78rem; color: var(--muted); }
.foot-legal p { margin: 0; max-width: 760px; }
@media (max-width: 1000px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* ---------- Animazione d'ingresso leggera ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
  .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

@media print {
  .site-header, .site-footer, .toc, .btn { display: none !important; }
  body { background: #fff; }
}

/* ---------- Da dove comincio, definizioni, tempo di lettura, continua a leggere ---------- */
.door { border-top: 3px solid var(--gold); }
.door-k { font: 500 .72rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 10px; }
.door h3 { margin-bottom: .4em; }
.gl { border-bottom: 1px dotted var(--gold); cursor: help; position: relative; }
.gl:focus { outline: none; background: var(--gold-wash); }
.gl::after { content: attr(data-def); position: absolute; left: 0; bottom: calc(100% + 8px); width: max-content; max-width: min(300px, 80vw);
  background: var(--navy); color: #fff; font: 400 .84rem/1.5 var(--sans); font-style: normal; letter-spacing: 0; text-transform: none;
  padding: 10px 14px; border-radius: 10px; box-shadow: 0 12px 30px rgba(10, 31, 51, .22); opacity: 0; visibility: hidden;
  transform: translateY(4px); transition: opacity .15s, transform .15s; z-index: 30; pointer-events: none; white-space: normal; }
.gl:hover::after, .gl:focus::after, .gl.open::after { opacity: 1; visibility: visible; transform: none; }
@media (max-width: 700px) {
  .gl::after { position: fixed; left: 16px; right: 16px; bottom: 16px; width: auto; max-width: none; font-size: .92rem; padding: 14px 16px; }
  .gl:hover::after { opacity: 0; visibility: hidden; }
  .gl.open::after { opacity: 1; visibility: visible; }
}
.read-time { margin: 14px 0 0; font: 500 .78rem/1 var(--sans); letter-spacing: .08em; color: var(--gold-ink); }
.continua { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 20px; align-items: center; max-width: 900px; margin: 0 auto;
  padding: 24px 28px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); text-decoration: none; color: inherit;
  transition: border-color .2s, box-shadow .2s; }
.continua:hover { border-color: var(--gold); box-shadow: var(--shadow); color: inherit; }
.continua .eyebrow { grid-column: 1; margin: 0 0 4px; }
.continua-t { grid-column: 1; font: 500 1.35rem/1.25 var(--sans); color: var(--navy); }
.continua-d { grid-column: 1; color: var(--ink-2); font-size: .95rem; }
.continua-go { grid-column: 2; grid-row: 1 / span 3; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: #fff; font-size: 1.3rem; }

/* ---------- Home orientata al test (versione vendita) ---------- */
.steps3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.step3 { position: relative; padding: 26px 24px 22px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.step3-n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold-ink); font: 400 1.1rem var(--serif); margin-bottom: 12px; }
.step3 h3 { margin-bottom: .3em; }
.step3 p { margin: 0; color: var(--ink-2); font-size: .97rem; }
@media (max-width: 760px) { .steps3 { grid-template-columns: minmax(0, 1fr); } }
.types9 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.type9 { display: grid; grid-template-columns: 64px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 16px; align-items: center; padding: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: border-color .2s, transform .2s, box-shadow .2s; }
.type9 .tb { grid-row: 1 / 3; }
.type9-name { font-weight: 500; color: var(--navy); align-self: end; }
.type9-m { font-size: .86rem; color: var(--muted); align-self: start; line-height: 1.45; }
.type9:hover { border-color: var(--tc); transform: translateY(-2px); box-shadow: var(--shadow); color: var(--ink); }
@media (max-width: 900px) { .types9 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .types9 { grid-template-columns: minmax(0, 1fr); } .type9 { grid-template-columns: 52px minmax(0, 1fr); padding: 14px; } .type9 .tb-lg { width: 48px; height: 48px; font-size: 1.2rem; } }
.center-cta { text-align: center; margin: 32px 0 0; }
.price-old { font: 400 1.3rem/1 var(--serif); color: var(--muted); text-decoration: line-through; }
.buy-box { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 32px; align-items: center; margin-top: 40px; padding: clamp(22px, 3vw, 34px); background: var(--paper); border: 1px solid #E2CFAE; border-radius: 18px; box-shadow: 0 20px 50px rgba(134, 103, 58, .12); }
.buy-cta { text-align: center; }
@media (max-width: 800px) { .buy-box { grid-template-columns: minmax(0, 1fr); } }
.faq-home { max-width: 820px; }
.work-strip { display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.work-strip p { color: var(--ink-2); max-width: 680px; }
.final-cta { text-align: center; }
.final-cta .lead { margin-bottom: 26px; }

/* ---------- Barra fissa su telefono ---------- */
.m9-sticky { display: none; }
@media (max-width: 760px) {
  .m9-sticky { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50; transform: translateY(140%); transition: transform .3s ease; }
  .m9-sticky.on { transform: none; }
  .m9-sticky .btn { width: 100%; justify-content: center; box-shadow: 0 12px 30px rgba(10, 31, 51, .25); }
  body.has-sticky .site-footer { padding-bottom: 90px; }
}

/* ---------- Telefono: tocco comodo, testi leggibili, tabelle comprensibili ---------- */
@media (max-width: 640px) {
  .eyebrow, .callout .label, .price-note, .sig span b, .m9-path-k { font-size: .74rem; }
  th, .table-wrap th { font-size: .78rem; }
  .types-list a { min-height: 48px; }
  #cmp-swap { min-width: 44px; min-height: 44px; font-size: 1.3rem; }
  .form .check, .consent { min-height: 44px; align-items: flex-start; }
  .form .check input, .consent input, input[type=checkbox] { width: 22px; height: 22px; flex-shrink: 0; }
  .faq summary { padding-top: 18px; padding-bottom: 18px; }
  /* Tabelle di esempio Work: una scheda per riga, con l'etichetta di ogni colonna */
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }
  table.stack thead { display: none; }
  table.stack tr { padding: 12px 14px; border-bottom: 1px solid var(--line); }
  table.stack tr:last-child { border-bottom: 0; }
  table.stack td { border: 0; padding: 4px 0; }
  table.stack td::before { content: attr(data-label); display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 2px; }
  /* Le altre tabelle scorrono: un'ombra a destra lo fa capire */
  .table-wrap.scrolls { background: linear-gradient(to right, var(--paper) 30%, rgba(255,255,255,0)), linear-gradient(to left, rgba(10,31,51,.10), rgba(10,31,51,0) 24px) right / 24px 100% no-repeat, var(--paper); }
  .table-hint { font-size: .78rem; color: var(--muted); margin: -1.1rem 0 .4rem; text-align: right; }
}
@media (max-width: 900px) { .nav .dropdown a, .nav-link, .nav-mobile-extra a { min-height: 44px; display: flex; align-items: center; } }
