/* ── FONT LOCALI (Self-Hosted) ──────────────────────────── */

/* --- LATO --- */
@font-face {
  font-display: swap; 
  font-family: 'Lato';
  font-style: normal;
  font-weight: 300;
  src: url('fonts/lato-v25-latin-300.woff2') format('woff2'); 
}
@font-face {
  font-display: swap; 
  font-family: 'Lato';
  font-style: italic;
  font-weight: 300;
  src: url('fonts/lato-v25-latin-300italic.woff2') format('woff2'); 
}
@font-face {
  font-display: swap; 
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/lato-v25-latin-regular.woff2') format('woff2'); 
}
@font-face {
  font-display: swap; 
  font-family: 'Lato';
  font-style: italic;
  font-weight: 400;
  src: url('fonts/lato-v25-latin-italic.woff2') format('woff2'); 
}
@font-face {
  font-display: swap; 
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  src: url('fonts/lato-v25-latin-700.woff2') format('woff2'); 
}
@font-face {
  font-display: swap; 
  font-family: 'Lato';
  font-style: normal;
  font-weight: 900;
  src: url('fonts/lato-v25-latin-900.woff2') format('woff2'); 
}

/* --- PLAYFAIR DISPLAY --- */
@font-face {
  font-display: swap; 
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  src: url('fonts/playfair-display-v40-latin-700.woff2') format('woff2'); 
}
@font-face {
  font-display: swap; 
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 900;
  src: url('fonts/playfair-display-v40-latin-900.woff2') format('woff2'); 
}

/* ── VARIABILI DI SISTEMA ───────────────────────────────── */
:root {
  --red:        #e63946;
  --red-dark:   #c0303b;
  --red-pale:   #fdf0f1;
  --navy:       #1d3557;
  --navy-mid:   #2c3c65;
  --navy-light: #3e4c59;
  --body:       #2d3748;
  --muted:      #718096;
  --light:      #a0aec0;
  --border:     #e2e8f0;
  --paper:      #f4f2ed;
  --card:       #ffffff;
  --bg-soft:    #f7fafc;
  --sh-sm:  0 2px 8px rgba(0,0,0,0.06);
  --sh-md:  0 8px 28px rgba(0,0,0,0.09);
  --sh-lg:  0 24px 56px rgba(0,0,0,0.12);
}
*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; }
body {
  font-family:'Lato',sans-serif;
  background:var(--paper);
  color:var(--body);
  overflow-x:hidden;
  line-height:1.65;
  font-size:16px;
}

/* ── UTILITY ────────────────────────────────────────────── */
.container        { max-width:1160px; margin:0 auto; padding:0 2rem; }
.container-narrow { max-width:760px;  margin:0 auto; padding:0 2rem; }

.tag {
  display:inline-flex; align-items:center; gap:.5rem;
  font-size:.8rem; font-weight:700; letter-spacing:.12em; text-transform:uppercase;
  color:var(--red); margin-bottom:.85rem;
}
.tag::before { content:''; display:block; width:18px; height:2px; background:var(--red); border-radius:2px; }

h2.section-title {
  font-family:'Playfair Display', serif;
  font-size:clamp(1.9rem,3vw,2.7rem); font-weight:900; color:var(--navy);
  line-height:1.15; letter-spacing:-.01em;
}
h2.section-title .accent { color:var(--red); }
.section-sub { font-size:1rem; color:var(--muted); line-height:1.78; margin-top:.9rem; }

.fade-up { opacity:0; transform:translateY(28px); transition:opacity .6s ease,transform .6s ease; }
.fade-up.visible { opacity:1; transform:translateY(0); }

/* ── 2-COL FEATURE LAYOUT ───────────────────────────────── */
.feature-grid     { display:grid; grid-template-columns:1fr 1fr; gap:5rem; align-items:center; margin-bottom:2rem; }
.feature-grid-top { display:grid; grid-template-columns:1fr 1fr; gap:5rem; align-items:start;  margin-bottom:2rem; }

.light-bullets { display:flex; flex-direction:column; gap:.85rem; margin-top:1.75rem; margin-bottom:1.5rem; }
.light-bullet   { display:flex; gap:.75rem; align-items:flex-start; font-size:.95rem; color:var(--muted); line-height:1.65; }
.light-bullet span { color:var(--red); margin-top:5px; flex-shrink:0; font-size:.5rem; }

.light-card     { background:var(--card); border:1px solid var(--border); border-radius:20px; padding:2rem; box-shadow:var(--sh-md); }
.light-card-head{ font-size:.78rem; font-weight:700; text-transform:uppercase; letter-spacing:.1em; color:var(--muted); margin-bottom:1.5rem; }
.light-steps    { display:flex; flex-direction:column; }
.light-step     { display:flex; gap:1.1rem; align-items:flex-start; padding-bottom:1.4rem; position:relative; }
.light-step:last-child { padding-bottom:0; }
.light-step:not(:last-child)::after { content:''; position:absolute; left:17px; top:36px; width:2px; bottom:0; background:var(--border); }
.light-ico      { width:36px; height:36px; background:var(--red-pale); border:1px solid rgba(230,57,70,.15); border-radius:9px; display:flex; align-items:center; justify-content:center; font-size:.9rem; color:var(--red); flex-shrink:0; z-index:1; }
.light-step-t   { font-size:.95rem; font-weight:700; color:var(--navy); margin-bottom:.22rem; }
.light-step-d   { font-size:.88rem; color:var(--muted); line-height:1.65; }

/* ── TOPBAR ─────────────────────────────────────────────── */
.topbar {
  background:var(--navy); color:rgba(255,255,255,.75);
  font-size:.8rem; font-weight:600; letter-spacing:.05em;
  padding:.55rem 0; overflow:hidden;
}
.topbar-inner {
  display:inline-flex; gap:3rem; align-items:center;
  animation:marquee 40s linear infinite; white-space:nowrap;
}
@keyframes marquee { from{transform:translateX(100vw)} to{transform:translateX(-100%)} }
.topbar-dot { width:5px; height:5px; background:var(--red); border-radius:50%; display:inline-block; flex-shrink:0; }

/* ── NAV ────────────────────────────────────────────────── */
nav {
  position:sticky; top:0; z-index:50;
  background:rgba(244,242,237,.96); backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(29,53,87,.06);
  box-shadow:0 4px 20px rgba(0,0,0,.03);
}
.nav-inner {
  display: flex; /* Cambiato da grid a flex */
  justify-content: space-between; /* Spinge logo a sx e nav-right a dx */
  align-items: center;
  height: 66px; 
  padding: 0 2rem; 
  max-width: 1160px; 
  margin: 0 auto;
}
.logo { font-family:'Playfair Display',serif; font-size:1.4rem; font-weight:900; letter-spacing:-.01em; color:var(--navy); text-decoration:none; justify-self:start; display:inline-flex; align-items:center; gap:.4rem; }
.logo .logo-word { color:var(--navy); }
.logo .logo-accent { color:var(--red); }
footer .logo .logo-word { color:#fff; }
footer .logo .logo-accent { color:var(--red); }
.nav-pill { display:flex; align-items:center; background:rgba(29,53,87,.06); border-radius:50px; padding:.35rem .4rem; gap:.1rem; justify-self:center; }
.nav-pill a { text-decoration:none; font-size:.82rem; font-weight:700; color:var(--navy-light); padding:.45rem 1.1rem; border-radius:50px; transition:all .2s; }
.nav-pill a:hover { background:var(--card); color:var(--navy); box-shadow:var(--sh-sm); }
.nav-right { 
  display: flex; 
  justify-content: flex-end; 
  align-items: center; 
}

/* ── LANGUAGE SWITCHER ──────────────────────────────────── */
.lang-switch {
  display: flex;
  align-items: center;
  background: rgba(29,53,87,.06);
  border-radius: 50px;
  padding: .2rem;
  margin-right: 1.2rem; /* Distanza dall'hamburger */
}
.lang-switch a {
  text-decoration: none;
  font-size: .75rem;
  font-weight: 700;
  color: var(--navy-light);
  padding: .35rem .65rem;
  border-radius: 50px;
  transition: all .2s;
  line-height: 1;
}
.lang-switch a.active {
  background: var(--card);
  color: var(--navy);
  box-shadow: var(--sh-sm);
}
.lang-switch a:not(.active):hover {
  color: var(--navy);
}

/* Adattamento su mobile per non rubare troppo spazio */
@media (max-width: 600px) {
  .lang-switch { margin-right: .6rem; }
  .lang-switch a { padding: .3rem .5rem; font-size: .7rem; }
}

/* ── HERO ───────────────────────────────────────────────── */
.hero { padding:5rem 0 0; background:linear-gradient(160deg,#eef2f8 0%,var(--paper) 50%,#fdf0f1 100%); overflow:hidden; position:relative; }
.hero::before { content:''; position:absolute; top:-60px; right:-100px; width:560px; height:560px; background:radial-gradient(circle,rgba(230,57,70,.08) 0%,transparent 68%); pointer-events:none; }
.hero-grid { 
  display: grid; 
  grid-template-columns: 1.35fr 1fr; /* Il testo prende il 57% dello spazio, le card il 43% */
  gap: 2.5rem; /* Riduciamo lo spazio vuoto in mezzo */
  align-items: center; 
  padding-bottom: 4rem; 
}

.hero-badge { display:inline-flex; align-items:center; gap:.5rem; background:var(--red-pale); color:var(--red); font-size:.8rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; padding:.4rem 1rem; border-radius:50px; border:1px solid rgba(230,57,70,.2); margin-bottom:1.3rem; }
.hero-badge::before { content:'●'; font-size:.5rem; }

.hero h1 { font-family:'Playfair Display',serif; font-size:clamp(2.3rem,4vw,3.4rem); font-weight:900; color:var(--navy); line-height:1.1; letter-spacing:-.01em; margin-bottom:1.3rem; }
.hero h1 .accent { color:var(--red); }

.hero-lead { 
  font-size: 1.05rem; color: var(--muted); line-height: 1.78; 
  max-width: 560px; /* Prima era 480px, ora respira di più */
  margin-bottom: .75rem; 
}

.hero-disclaimer {
  font-size: .88rem; color: var(--muted); line-height: 1.65;
  max-width: 580px; /* Prima era 460px */
  margin-bottom: 2.2rem;
  padding: .75rem 1rem;
  background: rgba(29,53,87,.04);
  border-left: 3px solid rgba(29,53,87,.15);
  border-radius: 0 6px 6px 0;
}
.hero-btns { display:flex; gap:.85rem; flex-wrap:wrap; margin-bottom:2.8rem; }

.btn-primary { display:inline-flex; align-items:center; gap:.45rem; background:var(--red); color:#fff; text-decoration:none; font-size:.95rem; font-weight:700; padding:.9rem 2rem; border-radius:12px; border:none; cursor:pointer; transition:all .24s; box-shadow:0 4px 16px rgba(230,57,70,.35); }
.btn-primary:hover { background:var(--red-dark); transform:translateY(-2px); box-shadow:0 8px 24px rgba(230,57,70,.42); }
.btn-ghost { display:inline-flex; align-items:center; gap:.45rem; background:transparent; color:var(--navy); text-decoration:none; font-size:.95rem; font-weight:700; padding:.9rem 2rem; border-radius:12px; border:2px solid rgba(29,53,87,.15); transition:all .22s; }
.btn-ghost:hover { border-color:var(--navy); background:rgba(29,53,87,.04); }

.hero-trust { display:flex; flex-wrap:wrap; gap:1rem; padding-top:1.8rem; border-top:1px solid rgba(29,53,87,.1); }
.trust-pill { display:inline-flex; align-items:center; gap:.5rem; background:rgba(29,53,87,.05); border:1px solid rgba(29,53,87,.09); border-radius:50px; padding:.45rem 1rem; font-size:.85rem; font-weight:700; color:var(--navy-light); }
.trust-pill i { color:var(--red); font-size:.82rem; }

/* ── PREVIEW CARD ───────────────────────────────────────── */
.hero-visual { 
  display: flex; 
  justify-content: flex-end; /* Sposta le card verso destra */
  align-items: flex-end; 
}
.preview-card { background:var(--card); border-radius:24px; box-shadow:var(--sh-lg); border:1px solid rgba(29,53,87,.06); width:100%; max-width:390px; overflow:hidden; animation:float 7s ease-in-out infinite; transform-origin:center bottom; }
@keyframes float { 0%,100%{transform:translateY(0) rotate(-.4deg)} 50%{transform:translateY(-16px) rotate(.4deg)} }

.pc-header  { background:var(--navy); padding:1.15rem 1.5rem; display:flex; align-items:center; gap:.75rem; }
.pc-icon    { width:38px; height:38px; background:rgba(255,255,255,.1); border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:1rem; color:rgba(255,255,255,.8); }
.pc-title   { font-weight:700; font-size:.95rem; color:#fff; }
.pc-sub     { font-size:.8rem; color:rgba(255,255,255,.5); margin-top:.15rem; }

.pc-body    { padding:1.4rem 1.5rem; }
.pc-row     { display:flex; justify-content:space-between; align-items:center; padding:.65rem 0; border-bottom:1px solid var(--border); font-size:.9rem; }
.pc-row:last-of-type { border-bottom:none; }
.pc-label   { color:var(--muted); }
.pc-val     { font-weight:700; color:var(--navy); }

.pc-val-range { display:flex; align-items:center; gap:.25rem; }
.pc-val-range .pc-range-main { font-weight:700; color:var(--navy); font-size:.9rem; white-space:nowrap; }
.pc-val-range .pc-range-sep  { display:none; }

.pc-total        { margin-top:1.1rem; background:var(--red); border-radius:12px; padding:1rem 1.25rem; }
.pc-total-label  { font-size:.8rem; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:rgba(255,255,255,.75); margin-bottom:.55rem; text-align:center; }
.pc-total-range  { display:flex; align-items:baseline; justify-content:center; gap:.35rem; }
.pc-range-low    { font-size:1.35rem; font-weight:900; color:#fff; }
.pc-range-dash   { font-size:1rem; color:rgba(255,255,255,.5); }
.pc-range-high   { font-size:1.35rem; font-weight:900; color:#fff; }
.pc-range-note   { font-size:.78rem; color:rgba(255,255,255,.58); margin-top:.5rem; line-height:1.5; text-align:center; }
.pc-disclaimer   { background:#f7fafc; border-top:1px solid var(--border); padding:.85rem 1.5rem; font-size:.8rem; color:var(--muted); line-height:1.6; }

/* ── HERO CARD STACK ────────────────────────────────────── */
.hero-carousel-wrap {
  display:flex; flex-direction:column; gap:1.5rem;
  width:100%; max-width:420px;
}

/* Stack container */
.hc-stack {
  position:relative;
  padding-bottom:18px;
}

/* Ogni card nello stack è posizionata in assoluto */
.hc-stack .preview-card {
  position:absolute; top:0; left:0; right:0;
  max-width:none; width:100%;
  border-radius:24px; box-shadow:var(--sh-lg);
  border:1px solid rgba(29,53,87,.08);
  animation:none;
  transform-origin:center bottom;
  transition:
    transform .45s cubic-bezier(.34,1.28,.64,1),
    opacity   .35s ease,
    box-shadow .35s ease;
  will-change:transform, opacity;
  backface-visibility:hidden;
}

/* Card attiva — in cima */
.hc-stack .preview-card.hc-active {
  position:relative; 
  z-index:4;
  transform:translateY(0) scale(1);
  opacity:1;
  box-shadow:0 20px 50px rgba(29,53,87,.18);
}

/* Card "sotto" */
.hc-stack .preview-card.hc-under1 {
  z-index:3;
  transform:translateY(8px) scale(.97);
  opacity:1;
  pointer-events:none;
  box-shadow:0 10px 30px rgba(29,53,87,.1);
}
.hc-stack .preview-card.hc-under2 {
  z-index:2;
  transform:translateY(15px) scale(.94);
  opacity:1;
  pointer-events:none;
  box-shadow:0 6px 18px rgba(29,53,87,.07);
}

/* Card uscente — animazione via */
.hc-stack .preview-card.hc-exit-left {
  z-index:5;
  transform:translateX(-110%) rotate(-6deg) scale(.92);
  opacity:0;
  pointer-events:none;
}
.hc-stack .preview-card.hc-exit-right {
  z-index:5;
  transform:translateX(110%) rotate(6deg) scale(.92);
  opacity:0;
  pointer-events:none;
}

/* Card entrante da destra */
.hc-stack .preview-card.hc-enter {
  z-index:3;
  transform:translateX(60px) scale(.96);
  opacity:0;
  pointer-events:none;
}

/* Card nascoste */
.hc-stack .preview-card.hc-hidden {
  z-index:1;
  transform:translateY(15px) scale(.94);
  opacity:0;
  pointer-events:none;
  transition:none;
}

/* Nav row */
.hero-carousel-nav {
  display:flex; align-items:center; justify-content:space-between;
  padding:0 .25rem;
}
.hc-dots { display:flex; gap:.5rem; align-items:center; }
.hc-dot {
  width:7px; height:7px; border-radius:50%;
  background:rgba(29,53,87,.18); border:none; padding:0; cursor:pointer;
  transition:all .25s;
}
.hc-dot.active { width:22px; border-radius:4px; background:var(--red); }
.hc-btn {
  width:36px; height:36px; border-radius:50%;
  border:1.5px solid rgba(29,53,87,.15);
  background:var(--card); color:var(--navy); cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  font-size:.78rem; transition:all .2s; box-shadow:var(--sh-sm); flex-shrink:0;
}
.hc-btn:hover { background:var(--red); color:#fff; border-color:var(--red); box-shadow:0 4px 12px rgba(230,57,70,.3); }
.hc-btn:disabled { opacity:.3; cursor:default; pointer-events:none; }

@media (max-width:960px) {
  .hero-carousel-wrap { max-width:100%; }
}

/* ── SECTION RHYTHM ─────────────────────────────────────── */
.section { padding:6rem 0; position:relative; }
.section-dark  { background:var(--navy); }
.section-paper { background:var(--paper); }
.section-white { background:var(--card); }
.section-white,.section-paper,.section-dark,.cta-section { border-radius:32px 32px 0 0; margin-top:-32px; position:relative; }
.section-white,.section-paper,.section-dark { padding-top:calc(6rem + 16px); }
.cta-section { padding-top:calc(7rem + 16px); }
#calcolatori{z-index:3}#radar{z-index:4}#processo{z-index:5}#garanzia{z-index:6}#sicurezza{z-index:7}#modello{z-index:8}#faq{z-index:9}.cta-section{z-index:10}footer{position:relative;z-index:11}

/* ── AUDIENCE TOGGLE (PRIVATI / BUSINESS) ───────────────── */
.audience-toggle-wrapper { display: flex; justify-content: flex-start; margin: 2.5rem 0 1.5rem 0; }
.audience-toggle { position: relative; display: inline-flex; background-color: var(--bg-soft); border-radius: 50px; padding: 4px; border: 1px solid var(--border); }
.toggle-btn { position: relative; z-index: 2; background: transparent; border: none; outline: none; padding: 10px 24px; font-family: 'Lato', sans-serif; font-size: 0.95rem; font-weight: 700; color: var(--muted); cursor: pointer; border-radius: 50px; transition: color 0.3s ease; }
.toggle-btn.active { color: var(--navy); }
.toggle-selector { position: absolute; top: 4px; left: 4px; bottom: 4px; width: calc(50% - 4px); background-color: #ffffff; border-radius: 50px; box-shadow: var(--sh-sm); transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); z-index: 1; }
.audience-toggle[data-active="business"] .toggle-selector { transform: translateX(100%); }
.calc-card.is-hidden { display: none !important; }

@media (max-width: 600px) {
  .audience-toggle-wrapper { justify-content: center; }
  .toggle-btn { padding: 10px 16px; font-size: 0.85rem; }
}

/* ── CALCOLATORI ────────────────────────────────────────── */
.calc-grid {
  display:grid; grid-template-columns:repeat(2,1fr);
  gap:1.25rem; margin-top:1rem;
}
.calc-card {
  background:var(--card); border:1px solid var(--border); border-radius:16px;
  padding:1.5rem 1.75rem;
  display:flex; flex-direction:column; gap:.85rem;
  text-decoration:none; color:inherit; transition:all .22s;
  position:relative; overflow:hidden; box-shadow:var(--sh-sm);
}
.calc-card::after {
  content:''; position:absolute; left:0; top:0; bottom:0; width:3px;
  background:var(--red); transform:scaleY(0); transform-origin:bottom; transition:transform .3s;
}
.calc-card:hover { transform:translateY(-3px); box-shadow:var(--sh-md); border-color:rgba(230,57,70,.2); }
.calc-card:hover::after { transform:scaleY(1); }

/* Header orizzontale */
.calc-head {
  display:flex; align-items:center; gap:.9rem;
}
.calc-icon-wrap {
  width:42px; height:42px; background:var(--red-pale); border-radius:11px; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  font-size:1rem; color:var(--red); transition:all .2s;
}
.calc-card:hover .calc-icon-wrap { background:rgba(230,57,70,.14); color:var(--red-dark); }
.calc-head-text { display:flex; flex-direction:column; gap:.1rem; }
.calc-num  { font-size:.68rem; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--light); line-height:1; }
.calc-name { font-size:.97rem; font-weight:900; color:var(--navy); line-height:1.25; }

/* Descrizione */
.calc-desc {
  font-size:.85rem; color:var(--muted); line-height:1.6;
  display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden;
}
.calc-tags { display:flex; flex-wrap:wrap; gap:.3rem; margin-top:auto; padding-top:.25rem; }
.calc-tag  {
  font-size:.65rem; font-weight:700; letter-spacing:.04em; text-transform:uppercase;
  color:var(--navy-light); background:#eef2f7; padding:.2rem .55rem; border-radius:4px;
}
.calc-arrow {
  font-size:.8rem; font-weight:700; color:var(--red);
  display:flex; align-items:center; gap:.35rem;
  opacity:0; transform:translateX(-8px); transition:opacity .2s,transform .2s;
  margin-top:.1rem;
}
.calc-card:hover .calc-arrow { opacity:1; transform:translateX(0); }

.radar-scenario-list { display:flex; flex-direction:column; gap:.55rem; }
.radar-scenario-item { display:flex; align-items:center; gap:.75rem; }
.radar-scenario-item .radar-flag { flex-shrink:0; }
.radar-scenario-note { font-size:.8rem; color:var(--muted); line-height:1.4; }

/* Scenario tab badges */
.radar-scenario-tabs { display:flex; flex-wrap:wrap; gap:.5rem; }
.rst-badge {
  display:inline-flex; align-items:center; gap:.4rem;
  font-size:.75rem; font-weight:700; letter-spacing:.04em; text-transform:uppercase;
  padding:.32rem .7rem; border-radius:6px; border:none; cursor:pointer;
  color:#fff !important;
  transition:all .2s; opacity:.55;
}
.rst-badge:hover  { opacity:.85; transform:translateY(-1px); }
.rst-badge.active { opacity:1; box-shadow:0 3px 10px rgba(0,0,0,.15); transform:translateY(-1px); }

/* Pannello scenario */
.rst-panel {
  background:var(--card); border:1px solid var(--border);
  border-radius:18px; padding:1.5rem;
  box-shadow:var(--sh-sm);
  min-height:200px;
  position:relative; overflow:hidden;
}
.rst-panel-inner {
  animation:rstFadeIn .3s ease;
}
@keyframes rstFadeIn {
  from { opacity:0; transform:translateY(8px); }
  to   { opacity:1; transform:translateY(0); }
}
.rst-panel-header {
  display:flex; align-items:flex-start; gap:.85rem; margin-bottom:1.1rem;
  padding-bottom:1rem; border-bottom:1px solid var(--border);
}
.rst-panel-icon {
  width:40px; height:40px; border-radius:11px; flex-shrink:0;
  display:flex; align-items:center; justify-content:center; font-size:.95rem;
}
.rst-icon-red   { background:var(--red-pale); color:var(--red); }
.rst-icon-amber { background:rgba(255,193,7,.12); color:#9a6b00; }
.rst-icon-blue  { background:rgba(29,53,87,.08); color:var(--navy); }
.rst-icon-teal  { background:rgba(0,142,126,.1); color:#007a6e; }
.rst-panel-title   { font-size:1rem; font-weight:900; color:var(--navy); margin-bottom:.15rem; line-height:1.2; }
.rst-panel-sub     { font-size:.78rem; color:var(--muted); }
.rst-panel-body    { font-size:.88rem; color:var(--muted); line-height:1.72; margin-bottom:1.1rem; }
.rst-panel-pills   { display:flex; flex-wrap:wrap; gap:.4rem; margin-bottom:1rem; }
.rst-pill {
  font-size:.68rem; font-weight:700; letter-spacing:.05em; text-transform:uppercase;
  padding:.22rem .6rem; border-radius:5px;
  background:#eef2f7; color:var(--navy-light);
}
.rst-urgency {
  display:flex; align-items:center; gap:.6rem;
  padding:.7rem .9rem; border-radius:10px;
  font-size:.8rem; font-weight:700; line-height:1.4;
}
.rst-urgency i { font-size:.85rem; flex-shrink:0; }
.rst-urg-high   { background:var(--red-pale);           color:#b02030; }
.rst-urg-medium { background:rgba(255,193,7,.12);        color:#8a5e00; }
.rst-urg-low    { background:rgba(29,53,87,.06);         color:var(--navy-light); }

/* ── RADAR ──────────────────────────────────────────────── */
.radar-visual-wrap { background:var(--navy); border-radius:20px; padding:2rem; position:relative; overflow:hidden; margin-top:3.5rem; }
.radar-visual-wrap::before { content:''; position:absolute; inset:0; background:radial-gradient(circle at 30% 70%,rgba(230,57,70,.12) 0%,transparent 60%); pointer-events:none; }
.radar-label-row { display:flex; justify-content:space-between; align-items:center; margin-bottom:1rem; }
.radar-axis-title { font-size:.75rem; font-weight:700; text-transform:uppercase; letter-spacing:.08em; color:rgba(255,255,255,.35); }

.radar-matrix { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.radar-cell   { border-radius:14px; padding:1.5rem 1.6rem; display:flex; flex-direction:column; gap:.6rem; min-height:130px; }
.rc-q1 { background:rgba(0,190,160,.13); border:1px solid rgba(0,200,180,.18); }
.rc-q2 { background:rgba(230,57,70,.13); border:1px solid rgba(230,57,70,.2); }
.rc-q3 { background:rgba(255,193,7,.1);  border:1px solid rgba(255,193,7,.16); }
.rc-q4 { background:rgba(100,116,139,.08); border:1px solid rgba(255,255,255,.06); }

.rc-badge { display:inline-flex; align-items:center; gap:.35rem; font-size:.7rem; font-weight:700; text-transform:uppercase; letter-spacing:.06em; padding:.28rem .65rem; border-radius:5px; width:fit-content; color:#fff; }
.rc-q1 .rc-badge { background:rgba(0,180,160,.75); }
.rc-q2 .rc-badge { background:rgba(220,50,60,.8); }
.rc-q3 .rc-badge { background:rgba(180,135,0,.75); }
.rc-q4 .rc-badge { background:rgba(100,116,139,.45); }

.rc-title { font-size:.95rem; font-weight:700; line-height:1.3; }
.rc-q1 .rc-title { color:#fff; }
.rc-q2 .rc-title { color:#fff; }
.rc-q3 .rc-title { color:rgba(255,255,255,.85); }
.rc-q4 .rc-title { color:rgba(255,255,255,.45); }
.rc-sub { font-size:.85rem; line-height:1.5; }
.rc-q1 .rc-sub { color:rgba(255,255,255,.55); }
.rc-q2 .rc-sub { color:rgba(255,255,255,.5); }
.rc-q3 .rc-sub { color:rgba(255,255,255,.42); }
.rc-q4 .rc-sub { color:rgba(255,255,255,.28); }

.radar-flags { display:flex; flex-wrap:wrap; gap:.5rem; margin-top:1.1rem; }
.radar-flag  { display:inline-flex; align-items:center; gap:.4rem; font-size:.75rem; font-weight:700; letter-spacing:.04em; text-transform:uppercase; padding:.32rem .7rem; border-radius:6px; color:#fff; border:none; }
.rf-red   { background:#c0303b; }
.rf-amber { background:#9a6b00; }
.rf-blue  { background:#2c3c65; }
.rf-teal  { background:#007a6e; }

.radar-cta-strip { margin-top:1.1rem; padding:1.25rem 1.5rem; background:var(--navy); border-radius:16px; display:flex; flex-direction:column; gap:1rem; }
.radar-cta-strip p { font-size:.95rem; color:rgba(255,255,255,.65); line-height:1.55; }
.radar-cta-strip strong { color:#fff; }
.radar-cta-strip .btn-primary { align-self:flex-start; }

.radar-features   { display:flex; flex-direction:column; gap:1rem; }
.radar-feature    { display:flex; gap:1rem; align-items:flex-start; padding:1.2rem; background:var(--card); border:1px solid var(--border); border-radius:16px; box-shadow:var(--sh-sm); transition:box-shadow .2s; }
.radar-feature:hover { box-shadow:var(--sh-md); }
.radar-feat-icon  { min-width:38px; height:38px; background:var(--red-pale); border-radius:10px; display:flex; align-items:center; justify-content:center; color:var(--red); font-size:.9rem; flex-shrink:0; }
.radar-feat-title { font-size:.95rem; font-weight:700; color:var(--navy); margin-bottom:.22rem; }
.radar-feat-text  { font-size:.9rem; color:var(--muted); line-height:1.65; }

/* ── PROCESSO ───────────────────────────────────────────── */
.steps { display:flex; flex-direction:column; }
.step  { display:flex; gap:1.5rem; padding:1.5rem 0; border-bottom:1px solid rgba(29,53,87,.09); opacity:0; transform:translateX(-20px); transition:opacity .5s,transform .5s; }
.step.visible { opacity:1; transform:translateX(0); }
.step:last-child { border-bottom:none; }
.step-num   { min-width:42px; height:42px; background:var(--navy); color:#fff; font-size:.9rem; font-weight:900; border-radius:12px; display:flex; align-items:center; justify-content:center; flex-shrink:0; margin-top:2px; }
.step-title { font-size:1rem; font-weight:700; color:var(--navy); margin-bottom:.4rem; }
.step-text  { font-size:.92rem; color:var(--muted); line-height:1.72; }

.aside-card  { background:var(--card); border:1px solid var(--border); border-radius:20px; padding:1.75rem; box-shadow:var(--sh-sm); }
.aside-title { font-size:.78rem; font-weight:700; text-transform:uppercase; letter-spacing:.1em; color:var(--navy); margin-bottom:1.15rem; display:flex; align-items:center; gap:.5rem; }
.aside-title::before { content:''; display:block; width:3px; height:14px; background:var(--red); border-radius:2px; }

.prescr-item { display:flex; gap:.8rem; padding:.65rem 0; border-bottom:1px dashed var(--border); }
.prescr-item:last-child { border-bottom:none; }
.dot     { width:8px; height:8px; border-radius:50%; background:var(--red); margin-top:6px; flex-shrink:0; }
.dot.dim { background:var(--border); }
.pl      { font-size:.75rem; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--light); }
.pv      { font-size:.92rem; font-weight:600; color:var(--navy-light); margin-top:.1rem; }
.pv.faded{ color:var(--light); font-weight:400; }

.warn-box  { margin-top:.8rem; padding:.9rem 1.1rem; background:var(--red-pale); border-left:4px solid var(--red); border-radius:0 10px 10px 0; font-size:.88rem; color:#7a1e25; line-height:1.6; }
.checklist { display:flex; flex-direction:column; gap:.7rem; }
.check-row { display:flex; align-items:center; gap:.7rem; font-size:.92rem; color:var(--muted); }
.check-row .ck { color:var(--red); font-size:.88rem; flex-shrink:0; }

/* ── GARANZIA ───────────────────────────────────────────── */
.garanzia-steps      { display:flex; flex-direction:column; gap:.85rem; }
.garanzia-step       { display:flex; gap:.85rem; align-items:flex-start; }
.garanzia-step-icon  { min-width:36px; height:36px; background:var(--red-pale); border-radius:10px; display:flex; align-items:center; justify-content:center; color:var(--red); font-size:.9rem; flex-shrink:0; }
.garanzia-step-title { font-size:.97rem; font-weight:700; color:var(--navy); margin-bottom:.2rem; }
.garanzia-step-text  { font-size:.92rem; color:var(--muted); line-height:1.65; }

/* ── FLOW CARD ──────────────────────────────────────────── */
.flow-card      { background:var(--navy); border-radius:20px; overflow:hidden; }
.flow-card-body { padding:2.2rem 2.2rem 2rem; }
.flow-head      { font-size:.78rem; font-weight:700; text-transform:uppercase; letter-spacing:.1em; color:rgba(255,255,255,.4); margin-bottom:1.5rem; }
.flow-steps     { display:flex; flex-direction:column; }
.flow-step      { display:flex; gap:1rem; align-items:flex-start; padding-bottom:1.25rem; position:relative; }
.flow-step:last-child { padding-bottom:0; }
.flow-step:not(:last-child)::after { content:''; position:absolute; left:17px; top:36px; width:2px; bottom:0; background:rgba(255,255,255,.08); }
.flow-ico       { min-width:36px; height:36px; background:rgba(230,57,70,.15); border:1px solid rgba(230,57,70,.3); border-radius:9px; display:flex; align-items:center; justify-content:center; font-size:.9rem; color:rgba(230,57,70,.85); flex-shrink:0; z-index:1; }
.flow-title     { font-size:.95rem; font-weight:700; color:#fff; margin-bottom:.2rem; }
.flow-text      { font-size:.88rem; color:rgba(255,255,255,.58); line-height:1.6; }
.flow-footer    { background:var(--red); padding:1rem 2.2rem; display:flex; align-items:center; gap:.75rem; }
.flow-footer i  { color:rgba(255,255,255,.85); font-size:.9rem; flex-shrink:0; }
.flow-footer span { font-size:.9rem; color:#fff; font-weight:700; line-height:1.45; }

/* ── SICUREZZA ──────────────────────────────────────────── */
.sec-bullets { display:flex; flex-direction:column; gap:.85rem; margin-top:1.75rem; margin-bottom:1.5rem; }
.sec-bullet  { display:flex; gap:.75rem; align-items:flex-start; font-size:.95rem; color:rgba(255,255,255,.65); line-height:1.65; }
.sec-bullet span { color:var(--red); margin-top:5px; flex-shrink:0; font-size:.5rem; }

.arch-card   { background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.08); border-radius:20px; padding:2rem; }
.arch-head   { font-size:.78rem; font-weight:700; text-transform:uppercase; letter-spacing:.1em; color:rgba(255,255,255,.38); margin-bottom:1.5rem; }
.arch-steps  { display:flex; flex-direction:column; }
.arch-step   { display:flex; gap:1.1rem; align-items:flex-start; padding-bottom:1.4rem; position:relative; }
.arch-step:last-child { padding-bottom:0; }
.arch-step:not(:last-child)::after { content:''; position:absolute; left:17px; top:36px; width:2px; bottom:0; background:rgba(255,255,255,.07); }
.arch-ico    { width:36px; height:36px; background:rgba(230,57,70,.14); border:1px solid rgba(230,57,70,.3); border-radius:9px; display:flex; align-items:center; justify-content:center; font-size:.9rem; color:rgba(230,57,70,.85); flex-shrink:0; z-index:1; }
.arch-step-t { font-size:.95rem; font-weight:700; color:#fff; margin-bottom:.22rem; }
.arch-step-d { font-size:.88rem; color:rgba(255,255,255,.52); line-height:1.65; }
.arch-step-d code { background:rgba(255,255,255,.08); padding:.08rem .32rem; border-radius:4px; font-family:monospace; font-size:.88em; color:#a8d8ea; }

.priv-grid  { display:grid; grid-template-columns:repeat(3,1fr); gap:1.1rem; }
.priv-card  { background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.07); border-radius:16px; padding:1.6rem; transition:all .22s; }
.priv-card:hover { border-color:rgba(230,57,70,.35); background:rgba(230,57,70,.04); }
.priv-ico   { font-size:1.15rem; margin-bottom:.8rem; color:rgba(255,255,255,.55); }
.priv-title { font-size:.97rem; font-weight:700; color:#fff; margin-bottom:.4rem; }
.priv-text  { font-size:.88rem; color:rgba(255,255,255,.5); line-height:1.65; }

/* ── MODELLO ────────────────────────────────────────────── */
.modello-grid { display:grid; grid-template-columns:1fr 1fr; gap:5rem; align-items:start; }
.modello-statement { background:var(--navy); border-radius:20px; padding:2.5rem; position:sticky; top:82px; overflow:hidden; }
.modello-statement::before { content:'\201C'; font-family:'Playfair Display',serif; font-size:8rem; font-weight:900; color:rgba(230,57,70,.12); position:absolute; top:-1.5rem; left:1.5rem; line-height:1; pointer-events:none; }
.modello-quote { font-family:'Playfair Display',serif; font-size:1.18rem; font-weight:700; color:#fff; line-height:1.55; position:relative; z-index:1; }
.modello-quote em { color:var(--red); font-style:normal; }
.modello-sub   { font-size:.92rem; color:rgba(255,255,255,.52); line-height:1.72; margin-top:1.25rem; position:relative; z-index:1; }

.modello-steps      { display:flex; flex-direction:column; gap:1.1rem; }
.modello-step       { display:flex; gap:1rem; align-items:flex-start; padding:1.25rem; background:var(--card); border:1px solid var(--border); border-radius:16px; box-shadow:var(--sh-sm); transition:box-shadow .2s; }
.modello-step:hover { box-shadow:var(--sh-md); }
.modello-step-ico   { min-width:40px; height:40px; border-radius:11px; display:flex; align-items:center; justify-content:center; font-size:.95rem; flex-shrink:0; }
.msi-green { background:rgba(16,185,129,.12); color:#10b981; }
.msi-red   { background:var(--red-pale); color:var(--red); }
.msi-blue  { background:rgba(29,53,87,.08); color:var(--navy); }
.modello-step-title { font-size:.97rem; font-weight:700; color:var(--navy); margin-bottom:.22rem; }
.modello-step-text  { font-size:.9rem; color:var(--muted); line-height:1.65; }
.modello-divider    { display:flex; align-items:center; gap:.75rem; margin:.25rem 0; padding:0 1.25rem; }
.modello-divider-line  { flex:1; height:1px; background:var(--border); }
.modello-divider-icon  { font-size:.78rem; color:var(--light); }

/* ── FAQ ────────────────────────────────────────────────── */
.faq-wrap { max-width:740px; margin:3.5rem auto 0; }
.faq-item { border-bottom:1px solid var(--border); }
.faq-q    { width:100%; background:none; border:none; cursor:pointer; display:flex; justify-content:space-between; align-items:center; padding:1.3rem 0; font-family:'Lato',sans-serif; font-size:1rem; font-weight:700; color:var(--navy); text-align:left; gap:1rem; transition:color .2s; }
.faq-q:hover { color:var(--red); }
.faq-ch   { font-size:.85rem; color:var(--red); transition:transform .3s; flex-shrink:0; }
.faq-item.open .faq-ch { transform:rotate(180deg); }
.faq-a    { max-height:0; overflow:hidden; transition:max-height .4s ease; font-size:.95rem; color:var(--muted); line-height:1.76; }
.faq-item.open .faq-a { max-height:500px; }
.faq-inner{ padding-bottom:1.25rem; }

/* ── CTA ────────────────────────────────────────────────── */
.cta-section { background:linear-gradient(135deg,var(--navy) 0%,#12253f 100%); padding:7rem 0; text-align:center; overflow:hidden; }
.cta-section::before { content:''; position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); width:700px; height:700px; background:radial-gradient(circle,rgba(230,57,70,.14) 0%,transparent 65%); pointer-events:none; }
.cta-section h2 { font-family:'Playfair Display',serif; font-size:clamp(2.1rem,4vw,3.2rem); font-weight:900; color:#fff; line-height:1.16; margin-bottom:1.1rem; letter-spacing:-.01em; position:relative; }
.cta-section p  { font-size:1rem; color:rgba(255,255,255,.6); max-width:520px; margin:0 auto 2.8rem; position:relative; line-height:1.7; }
.cta-btns { display:flex; justify-content:center; gap:1rem; flex-wrap:wrap; position:relative; }
.btn-cta  { display:inline-flex; align-items:center; gap:.5rem; background:var(--red); color:#fff; padding:1rem 2.6rem; font-size:.95rem; font-weight:700; border-radius:12px; text-decoration:none; transition:all .24s; box-shadow:0 4px 22px rgba(230,57,70,.42); }
.btn-cta:hover { background:var(--red-dark); transform:translateY(-2px); box-shadow:0 8px 30px rgba(230,57,70,.52); }
.btn-cta-ghost { display:inline-flex; align-items:center; gap:.5rem; background:transparent; color:rgba(255,255,255,.85); padding:1rem 2.6rem; font-size:.95rem; font-weight:700; border:2px solid rgba(255,255,255,.25); border-radius:12px; text-decoration:none; transition:all .22s; }
.btn-cta-ghost:hover { border-color:rgba(255,255,255,.6); color:#fff; }

/* ── FOOTER ─────────────────────────────────────────────── */
footer       { background:#0d1f33; color:rgba(255,255,255,.3); padding:3rem 0; }
.footer-top  { display:flex; justify-content:space-between; align-items:flex-start; flex-wrap:wrap; gap:2rem; padding-bottom:2rem; border-bottom:1px solid rgba(255,255,255,.05); }
footer .logo { color:#fff; }
footer .logo span { color:var(--red); }
.footer-desc { font-size:.88rem; margin-top:.5rem; max-width:270px; line-height:1.65; }
.footer-links{ display:flex; gap:1.5rem; flex-wrap:wrap; align-items:center; }
.footer-links a { color:rgba(255,255,255,.4); text-decoration:none; font-size:.8rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase; transition:color .2s; }
.footer-links a:hover { color:#fff; }
.footer-legal { padding-top:1.5rem; font-size:.8rem; line-height:1.72; color:rgba(255,255,255,.45); }
.footer-legal strong { color:rgba(255,255,255,.42); }

/* ── MODALI ─────────────────────────────────────────────── */
.modal-overlay { position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(29,53,87,.65); backdrop-filter:blur(5px); z-index:999; display:flex; align-items:center; justify-content:center; opacity:0; pointer-events:none; transition:opacity .3s ease; }
.modal-overlay.active { opacity:1; pointer-events:auto; }
.modal-content { background:var(--card); width:100%; max-width:580px; max-height:85vh; overflow-y:auto; border-radius:24px; padding:3rem 2.5rem; position:relative; transform:translateY(20px) scale(0.95); transition:transform .3s ease; box-shadow:var(--sh-lg); }
.modal-overlay.active .modal-content { transform:translateY(0) scale(1); }
/* Sostituisci la vecchia riga .modal-close con questo blocco */
.modal-close {
  /* Posizionamento Sticky */
  position: -webkit-sticky;
  position: sticky;
  
  /* Equidistanza dai bordi (es. 1rem da sopra e 1rem da destra) */
  top: -1rem; 
  /* Usiamo float + margin per "estrarla" dal flusso del titolo */
  float: right;
  
  /* Margini negativi per annullare il padding del modale e incollarla al bordo */
  /* Se il padding del tuo modale è 1.5rem, questi valori la portano nell'angolo */
  margin-top: -0.5rem; 
  margin-right: -0.5rem;
  margin-bottom: 0.5rem;
  
  /* Forma Circolare */
  width: 36px;
  height: 36px;
  border-radius: 50%;
  
  /* Stile */
  background: white;
  border: 1px solid var(--border);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  
  cursor: pointer;
  z-index: 999; /* Sempre sopra al titolo */
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: var(--red);
  color: white;
  border-color: var(--red);
  transform: scale(1.1);
}

.modal-close:hover { background:var(--red-pale); color:var(--red); border-color:rgba(230,57,70,.2); }
.modal-dark .modal-content { background:var(--navy); color:#fff; border:1px solid rgba(255,255,255,.1); max-width:760px; }
.modal-dark .modal-close   { background:rgba(255,255,255,.1); color:#fff; border-color:rgba(255,255,255,.2); }
.modal-dark .modal-close:hover { background:var(--red); border-color:var(--red); }
#modal-sicurezza .priv-grid { grid-template-columns:repeat(2,1fr); gap:1rem; margin-top:0; }

.btn-modal-trigger { display:inline-flex; align-items:center; gap:.5rem; background:transparent; color:var(--navy); font-size:.92rem; font-weight:700; padding:.9rem 1.8rem; border-radius:12px; border:2px solid var(--border); cursor:pointer; transition:all .2s; margin-top:1.5rem; }
.btn-modal-trigger:hover { border-color:var(--navy-light); background:var(--bg-soft); }
.btn-modal-trigger i { color:var(--red); }
.btn-modal-trigger.dark-trigger { color:#fff; border-color:rgba(255,255,255,.3); }
.btn-modal-trigger.dark-trigger:hover { border-color:rgba(255,255,255,.6); background:rgba(255,255,255,.05); }

/* ── HAMBURGER MENU ─────────────────────────────────────── */
.hamburger {
  display:flex;
  flex-direction:column; justify-content:center; align-items:center;
  gap:5px; width:42px; height:42px;
  background:none; border:1.5px solid rgba(29,53,87,.15);
  border-radius:10px; cursor:pointer; transition:all .2s;
  flex-shrink:0;
}
.hamburger:hover { background:rgba(29,53,87,.05); border-color:rgba(29,53,87,.28); }
.hamburger.is-open { background:var(--red-pale); border-color:rgba(230,57,70,.25); }
.ham-line {
  display:block; width:18px; height:1.5px;
  background:var(--navy); border-radius:2px;
  transition:transform .3s ease, opacity .2s ease;
  transform-origin:center;
}
.hamburger.is-open .ham-line:nth-child(1) { transform:translateY(6.5px) rotate(45deg); }
.hamburger.is-open .ham-line:nth-child(2) { opacity:0; transform:scaleX(0); }
.hamburger.is-open .ham-line:nth-child(3) { transform:translateY(-6.5px) rotate(-45deg); }
.hamburger.is-open .ham-line { background:var(--red); }

/* Drawer overlay */
.menu-overlay {
  position:fixed; inset:0; z-index:98;
  background:rgba(29,53,87,.35); backdrop-filter:blur(4px);
  opacity:0; pointer-events:none; transition:opacity .3s ease;
}
.menu-overlay.is-open { opacity:1; pointer-events:auto; }

/* Drawer panel */
.menu-drawer {
  position:fixed; top:0; right:0; bottom:0; z-index:99;
  width:min(360px, 92vw);
  background:var(--card);
  box-shadow:-20px 0 60px rgba(29,53,87,.15);
  display:flex; flex-direction:column;
  transform:translateX(100%); transition:transform .35s cubic-bezier(.4,0,.2,1);
  overflow-y:auto;
}
.menu-drawer.is-open { transform:translateX(0); }

/* Drawer header */
.menu-drawer-head {
  display:flex; align-items:center; justify-content:space-between;
  padding:1.25rem 1.5rem;
  border-bottom:1px solid var(--border);
  position:sticky; top:0; background:var(--card); z-index:2;
}
.menu-drawer-logo {
  font-family:'Playfair Display',serif; font-size:1.25rem; font-weight:900;
  color:var(--navy); text-decoration:none; letter-spacing:-.01em;
  display:inline-flex; align-items:center; gap:.5rem;
}
.menu-drawer-logo .logo-word { color:var(--navy); }
.menu-drawer-logo .logo-accent { color:var(--red); }
.menu-drawer-close {
  width:36px; height:36px; border-radius:50%;
  background:var(--bg-soft); border:1px solid var(--border);
  display:flex; align-items:center; justify-content:center;
  cursor:pointer; font-size:.85rem; color:var(--navy-light);
  transition:all .2s; flex-shrink:0;
}
.menu-drawer-close:hover { background:var(--red-pale); color:var(--red); border-color:rgba(230,57,70,.2); }

/* Drawer body */
.menu-drawer-body { flex:1; padding:1.5rem; display:flex; flex-direction:column; gap:2rem; }

/* Nav group */
.menu-group-label {
  font-size:.68rem; font-weight:700; letter-spacing:.14em; text-transform:uppercase;
  color:var(--light); margin-bottom:.6rem; display:flex; align-items:center; gap:.5rem;
}
.menu-group-label::after { content:''; flex:1; height:1px; background:var(--border); }

.menu-links { display:flex; flex-direction:column; gap:.15rem; }
.menu-link {
  display:flex; align-items:center; gap:.85rem;
  padding:.75rem .9rem; border-radius:12px;
  text-decoration:none; color:var(--navy); font-size:.95rem; font-weight:600;
  transition:all .18s;
}
.menu-link:hover { background:var(--bg-soft); color:var(--navy); }
.menu-link-icon {
  width:34px; height:34px; border-radius:9px; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  font-size:.82rem;
}
.mli-red   { background:var(--red-pale); color:var(--red); }
.mli-navy  { background:rgba(29,53,87,.08); color:var(--navy); }
.mli-teal  { background:rgba(0,142,126,.1); color:#008c7e; }
.mli-amber { background:rgba(255,193,7,.12); color:#b07d00; }
.mli-slate { background:rgba(100,116,139,.1); color:#4a5568; }
.menu-link-text { flex:1; }
.menu-link-title { display:block; font-size:.92rem; font-weight:700; color:var(--navy); line-height:1.3; }
.menu-link-sub   { display:block; font-size:.78rem; color:var(--muted); font-weight:400; margin-top:.1rem; line-height:1.4; }
.menu-link-arrow { font-size:.72rem; color:var(--light); flex-shrink:0; transition:transform .18s; }
.menu-link:hover .menu-link-arrow { transform:translateX(3px); color:var(--red); }

/* External badge */
.menu-ext {
  font-size:.62rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase;
  background:rgba(29,53,87,.07); color:var(--light);
  padding:.18rem .45rem; border-radius:4px; flex-shrink:0;
}

/* Drawer footer */
.menu-drawer-foot {
  padding:1.25rem 1.5rem;
  border-top:1px solid var(--border);
  background:var(--bg-soft);
}
.menu-foot-note {
  font-size:.75rem; color:var(--light); line-height:1.6; text-align:center;
}
.menu-foot-note a { color:var(--muted); text-decoration:none; }
.menu-foot-note a:hover { color:var(--navy); }

/* ── CALCOLATORI TAB SYSTEM ─────────────────────────────── */
.calc-tabs-wrap {
  margin-top:2.5rem; margin-bottom:2rem;
}

/* Desktop: riga di tab */
.calc-tabs {
  display:flex; gap:.35rem; flex-wrap:wrap;
  background:rgba(29,53,87,.05); border-radius:14px;
  padding:.4rem; margin-bottom:2rem;
}
.calc-tab-btn {
  display:inline-flex; align-items:center; gap:.5rem;
  padding:.55rem 1.1rem; border-radius:10px; border:none;
  background:transparent; cursor:pointer;
  font-family:'Lato',sans-serif; font-size:.85rem; font-weight:700;
  color:var(--muted); transition:all .2s; white-space:nowrap;
}
.calc-tab-btn:hover { color:var(--navy); background:rgba(29,53,87,.05); }
.calc-tab-btn.active {
  background:var(--card); color:var(--navy);
  box-shadow:var(--sh-sm);
}
.calc-tab-btn i { font-size:.82rem; }
.calc-tab-btn.active i { color:var(--red); }
.calc-tab-count {
  font-size:.65rem; font-weight:700; letter-spacing:.04em;
  background:rgba(29,53,87,.08); color:var(--light);
  padding:.1rem .4rem; border-radius:4px;
}
.calc-tab-btn.active .calc-tab-count {
  background:var(--red-pale); color:var(--red);
}

/* Pannelli */
.calc-tab-panel { display:none; }
.calc-tab-panel.active { display:block; }

/* Badge "In arrivo" */
.calc-coming-soon {
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:1rem; padding:3rem 2rem; text-align:center;
  border:2px dashed var(--border); border-radius:16px;
  color:var(--light);
}
.calc-coming-soon i { font-size:1.8rem; color:var(--border); }
.calc-coming-soon strong { font-size:1rem; color:var(--light); font-weight:700; }
.calc-coming-soon span { font-size:.85rem; color:var(--light); line-height:1.6; max-width:400px; }
.calc-soon-badge {
  display:inline-flex; align-items:center; gap:.4rem;
  font-size:.7rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase;
  background:rgba(29,53,87,.06); color:var(--light);
  padding:.3rem .75rem; border-radius:20px; border:1px solid var(--border);
}

/* Mobile: accordion */
@media (max-width:768px) {
  .calc-tabs { display:none; }
  .calc-tab-panel { display:block; }
  .calc-accordion-head {
    display:flex; align-items:center; justify-content:space-between;
    padding:1rem 1.25rem; background:rgba(29,53,87,.05);
    border-radius:12px; cursor:pointer; margin-bottom:0;
    border:1px solid transparent; transition:all .2s;
    font-size:.92rem; font-weight:700; color:var(--navy);
    gap:.75rem;
  }
  .calc-accordion-head:hover { border-color:rgba(29,53,87,.12); }
  .calc-accordion-head.active {
    background:var(--card); border-color:rgba(29,53,87,.1);
    box-shadow:var(--sh-sm); border-radius:12px 12px 0 0;
  }
  .calc-accordion-head i.acc-icon { font-size:.85rem; color:var(--red); flex-shrink:0; }
  .calc-accordion-head .acc-chevron { font-size:.72rem; color:var(--light); transition:transform .3s; flex-shrink:0; }
  .calc-accordion-head.active .acc-chevron { transform:rotate(180deg); }
  .calc-accordion-body {
    display:none;
    border:1px solid rgba(29,53,87,.1); border-top:none;
    border-radius:0 0 12px 12px; background:var(--card);
    padding:.75rem .75rem .75rem;
  }
  .calc-accordion-body.open { display:block; }
  .calc-tab-panel { margin-bottom:.5rem; }
}

/* ── REDUCED MOTION ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration:0.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:0.01ms !important;
    scroll-behavior:auto !important;
  }
}

/* Tab disabilitati — aree senza calcolatori */
.calc-tab-btn[disabled] {
  opacity:.45; cursor:not-allowed; pointer-events:none;
}
.calc-tab-btn[disabled] .calc-tab-count {
  background:rgba(29,53,87,.05); color:var(--border);
}
.calc-tab-btn[disabled] .calc-soon-mini {
  display:inline-flex;
}
.calc-soon-mini {
  display:none;
  font-size:.6rem; font-weight:700; letter-spacing:.05em; text-transform:uppercase;
  background:rgba(29,53,87,.07); color:var(--light);
  padding:.1rem .4rem; border-radius:4px;
}
/* Accordion head disabilitati su mobile */
.calc-accordion-head.disabled {
  opacity:.45; cursor:not-allowed; pointer-events:none;
}
.calc-accordion-head.disabled::after {
  content:'In arrivo';
  font-size:.6rem; font-weight:700; letter-spacing:.05em; text-transform:uppercase;
  background:rgba(29,53,87,.07); color:var(--light);
  padding:.12rem .45rem; border-radius:4px; margin-left:auto;
}

@media (max-width:960px) {
  .nav-pill  { display:none; }
  .nav-inner { grid-template-columns:1fr auto; }
  .hero-grid { grid-template-columns:1fr; padding-bottom:3rem; gap:2.5rem; }
  .hero-visual { justify-content:flex-start; }
  .preview-card { max-width:100%; animation:none; transform:none; }
  .calc-grid { grid-template-columns:repeat(2,1fr); }
  .feature-grid,
  .feature-grid-top { grid-template-columns:1fr; gap:2.5rem; }
  .modello-grid { grid-template-columns:1fr; gap:2.5rem; }
  .modello-statement { position:relative; top:auto; }
  .section { padding:4rem 0; }
  .section-white,.section-paper,.section-dark { padding-top:calc(4rem + 16px); }
  .cta-section { padding-top:calc(5rem + 16px); }
  .container,.container-narrow { padding:0 1.25rem; }
  #radarRight { padding-top:0 !important; }
  .radar-scenario-item { flex-wrap:wrap; gap:.45rem; }
}

@media (max-width:768px) {
  .modal-overlay { align-items:flex-end; }
  .modal-content { border-radius:28px 28px 0 0; padding:2.5rem 1.5rem 3.5rem; transform:translateY(100%) scale(1); max-height:90vh; }
}

@media (max-width:600px) {
  .radar-matrix { grid-template-columns:1fr; }
  .radar-cell   { min-height:auto; }
  .calc-grid    { grid-template-columns:1fr; }
  #modal-sicurezza .priv-grid { grid-template-columns:1fr; }
  .hero-trust   { gap:.6rem; }
  .hero-btns    { gap:.6rem; }
  .btn-primary,.btn-ghost { padding:.85rem 1.5rem; }
}

/* ── SOS FLOATING BUTTON + MODAL ────────────────────────── */

/* Il pulsante circolare con solo testo SOS */
.sos-fab {
  position: fixed; 
  bottom: 1.5rem; 
  right: 1.5rem; 
  z-index: 997; /* Sotto l'overlay quando attivo */
  width: 48px; 
  height: 48px; 
  border-radius: 50%;
  background: var(--red); 
  color: #fff;
  border: none; 
  cursor: pointer;
  display: flex; 
  align-items: center; 
  justify-content: center;
  
  /* Testo SOS */
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1;
  
  box-shadow: 0 4px 15px rgba(230,57,70,.4);
  transition: all .25s cubic-bezier(0.4, 0, 0.2, 1);
  animation: sos-pulse 2s infinite;
}

.sos-fab:hover { 
  background: var(--red-dark); 
  transform: scale(1.1); 
  box-shadow: 0 6px 20px rgba(230,57,70,.5); 
}

/* Animazione di pulsazione per attirare l'attenzione */
@keyframes sos-pulse {
  0% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.6); }
  70% { box-shadow: 0 0 0 12px rgba(230, 57, 70, 0); }
  100% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0); }
}

/* Overlay di sfondo */
.sos-overlay {
  position: fixed; 
  inset: 0; 
  z-index: 998;
  background: rgba(29,53,87,.75); 
  backdrop-filter: blur(6px);
  opacity: 0; 
  pointer-events: none; 
  transition: opacity .3s ease;
}

.sos-overlay.active { 
  opacity: 1; 
  pointer-events: auto; 
}

/* Pannello laterale che scorre da destra */
.sos-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1000; /* Sopra l'overlay */
  width: min(480px, 100vw);
  height: 100dvh;
  background: var(--card);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4, 0, .2, 1);
  overflow-y: auto; 
  -webkit-overflow-scrolling: touch;
  box-shadow: -5px 0 30px rgba(0,0,0,0.2);
}

.sos-overlay.active .sos-panel { 
  transform: translateX(0); 
}

/* Ottimizzazione per Mobile: pannello a tutta larghezza */
@media (max-width: 480px) {
  .sos-panel {
    width: 100vw;
  }
  .sos-fab {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    font-size: 0.85rem;
  }
}

/* BLOCCO INTESTAZIONE SOS (Sticky) */
.sos-head {
  background: var(--red);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* Posizionamento fisso durante lo scroll */
  position: -webkit-sticky; 
  position: sticky;
  top: 0;
  z-index: 100; 
  /* Ombra per dare profondità quando il testo scorre sotto */
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.sos-head-left { display:flex; align-items:center; gap:.75rem; }
.sos-head-icon { font-size:1.2rem; color:#fff; }
.sos-head-title { font-family:'Playfair Display',serif; font-size:1.1rem; font-weight:900; color:#fff; line-height:1.2; }
.sos-head-sub   { font-size:.75rem; color:rgba(255,255,255,.7); margin-top:.1rem; }
.sos-close {
  width:36px; height:36px; border-radius:50%;
  background:rgba(255,255,255,.15); border:1px solid rgba(255,255,255,.25);
  color:#fff; cursor:pointer; font-size:.85rem;
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
  transition:all .2s;
}
.sos-close:hover { background:rgba(255,255,255,.3); }

.sos-body { padding:1.5rem; display:flex; flex-direction:column; gap:1.5rem; flex:1; }

.sos-section-label {
  font-size:.65rem; font-weight:700; letter-spacing:.14em; text-transform:uppercase;
  color:var(--light); margin-bottom:.6rem;
  display:flex; align-items:center; gap:.5rem;
}
.sos-section-label::after { content:''; flex:1; height:1px; background:var(--border); }

.sos-entries { display:flex; flex-direction:column; gap:.5rem; }
.sos-entry {
  display:flex; align-items:center; gap:.85rem;
  padding:.85rem 1rem; border-radius:12px;
  border:1px solid var(--border); background:var(--bg-soft);
  text-decoration:none; transition:all .18s;
}
.sos-entry:hover { border-color:var(--red); background:var(--red-pale); }
.sos-entry-ico {
  width:38px; height:38px; border-radius:10px; flex-shrink:0;
  display:flex; align-items:center; justify-content:center; font-size:.9rem;
}
.sei-red   { background:var(--red-pale); color:var(--red); }
.sei-navy  { background:rgba(29,53,87,.08); color:var(--navy); }
.sei-teal  { background:rgba(0,142,126,.1); color:#007a6e; }
.sei-amber { background:rgba(255,193,7,.12); color:#9a6b00; }
.sei-slate { background:rgba(100,116,139,.1); color:#4a5568; }
.sos-entry-body { flex:1; }
.sos-entry-name { font-size:.9rem; font-weight:700; color:var(--navy); line-height:1.2; }
.sos-entry-desc { font-size:.75rem; color:var(--muted); margin-top:.1rem; line-height:1.4; }
.sos-entry-badge {
  font-size:.68rem; font-weight:900; letter-spacing:.04em;
  padding:.22rem .55rem; border-radius:5px; flex-shrink:0; white-space:nowrap;
}
.seb-phone { background:#e8f5e9; color:#2e7d32; }
.seb-web   { background:#e3f2fd; color:#1565c0; }
.seb-email { background:#fce4ec; color:#c62828; }

.sos-disclaimer {
  margin-top:auto; padding:1rem 1.5rem;
  border-top:1px solid var(--border);
  font-size:.75rem; color:var(--light); line-height:1.6; text-align:center;
}

/* ── PAGINE LEGALI E DOCUMENTALI ────────────────────────── */
.page-hero { padding: 5rem 0 4rem; background: linear-gradient(160deg, #eef2f8 0%, var(--paper) 60%, #fdf0f1 100%); border-bottom: 1px solid var(--border); }
.page-hero-inner { max-width: 720px; }
.page-hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; color: var(--navy); line-height: 1.15; letter-spacing: -.01em; margin-bottom: 1rem; }
.page-hero h1 .accent { color: var(--red); }
.page-hero-lead { font-size: 1.05rem; color: var(--muted); line-height: 1.78; max-width: 600px; }
.page-hero-meta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.page-meta-pill { display: inline-flex; align-items: center; gap: .45rem; background: rgba(29,53,87,.06); border: 1px solid rgba(29,53,87,.1); border-radius: 50px; padding: .35rem .9rem; font-size: .78rem; font-weight: 700; color: var(--navy-light); }
.page-meta-pill i { color: var(--red); font-size: .72rem; }

.page-body { padding: 4rem 0 6rem; }
.page-layout { display: grid; grid-template-columns: 1fr 280px; gap: 4rem; }
.page-content { align-self: start; display: flex; flex-direction: column; gap: 3.5rem; }

/* Sommario (TOC) */
.page-toc { position: sticky; top: 82px; z-index: 10; background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 1.5rem; box-shadow: var(--sh-sm); }
.page-toc-head { font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--light); margin-bottom: 1rem; display: flex; align-items: center; gap: .5rem; }
.page-toc-head::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.page-toc-list { display: flex; flex-direction: column; gap: .15rem; list-style: none; }
.page-toc-list a { display: flex; align-items: center; gap: .6rem; padding: .5rem .65rem; border-radius: 8px; text-decoration: none; font-size: .82rem; font-weight: 600; color: var(--muted); transition: all .18s; }
.page-toc-list a:hover { background: var(--bg-soft); color: var(--navy); }
.page-toc-list a.active { background: var(--red-pale); color: var(--red); }
.page-toc-list a i { font-size: .7rem; flex-shrink: 0; width: 14px; text-align: center; }
.toc-back { display: flex; align-items: center; gap: .5rem; padding: .65rem; border-radius: 8px; text-decoration: none; font-size: .82rem; font-weight: 700; color: var(--navy); background: var(--bg-soft); border: 1px solid var(--border); margin-top: 1.25rem; transition: all .18s; }
.toc-back:hover { border-color: var(--navy); }

/* Contenuto Testuale */
.doc-section { scroll-margin-top: 120px; }
.doc-section-head { display: flex; align-items: center; gap: .85rem; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 2px solid var(--border); }
.doc-section-num { width: 36px; height: 36px; border-radius: 10px; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 900; flex-shrink: 0; }
.doc-section-title { font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 900; color: var(--navy); line-height: 1.2; }
.doc-section-ref { font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--light); background: var(--bg-soft); border: 1px solid var(--border); padding: .18rem .5rem; border-radius: 4px; margin-left: auto; white-space: nowrap; }
.doc-prose { font-size: .95rem; color: var(--muted); line-height: 1.8; margin-bottom: 1.25rem; }
.doc-prose strong { color: var(--navy); font-weight: 700; }
.doc-prose em { color: var(--navy-light); font-style: italic; }
.doc-prose a { color: var(--red); font-weight: 700; text-decoration: none; }
.doc-prose a:hover { text-decoration: underline; }

/* Box e Liste */
.doc-norm-box { background: rgba(29,53,87,.04); border-left: 3px solid var(--navy); border-radius: 0 10px 10px 0; padding: 1rem 1.25rem; margin: 1.25rem 0; font-size: .88rem; color: var(--navy-light); line-height: 1.7; }
.doc-norm-box strong { color: var(--navy); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; display: block; margin-bottom: .35rem; }
.doc-warn-box { background: var(--red-pale); border-left: 3px solid var(--red); border-radius: 0 10px 10px 0; padding: 1rem 1.25rem; margin: 1.25rem 0; font-size: .88rem; color: #7a1e25; line-height: 1.7; }
.doc-warn-box strong { font-weight: 700; }
.doc-ok-box { background: rgba(16,185,129,.07); border-left: 3px solid #10b981; border-radius: 0 10px 10px 0; padding: 1rem 1.25rem; margin: 1.25rem 0; font-size: .88rem; color: #065f46; line-height: 1.7; }
.doc-ok-box strong { font-weight: 700; }

.doc-checklist { display: flex; flex-direction: column; gap: .65rem; margin: 1.25rem 0; }
.doc-check-row { display: flex; align-items: flex-start; gap: .75rem; font-size: .92rem; color: var(--muted); line-height: 1.6; }
.doc-check-row .ck { color: var(--red); font-size: .82rem; flex-shrink: 0; margin-top: 3px; }
.doc-check-row .ck-green { color: #10b981; font-size: .82rem; flex-shrink: 0; margin-top: 3px; }

/* Tabelle Documentali - Ottimizzazione base */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.25rem 0; border-radius: 10px; }
.doc-table { width: 100%; border-collapse: collapse; min-width: 520px; font-size: .88rem; margin: 0; }
.doc-table th { background: var(--navy); color: #fff; padding: .75rem 1rem; text-align: left; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.doc-table th:first-child { border-radius: 10px 0 0 0; }
.doc-table th:last-child  { border-radius: 0 10px 0 0; }
.doc-table td { padding: .8rem 1rem; border-bottom: 1px solid var(--border); color: var(--muted); vertical-align: top; line-height: 1.5; }
.doc-table tr:last-child td { border-bottom: none; }
.doc-table tr:nth-child(even) td { background: var(--bg-soft); }
.doc-table .td-yes { color: #065f46; font-weight: 700; }
.doc-table .td-no  { color: #7a1e25; font-weight: 700; }

.doc-update { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border); font-size: .8rem; color: var(--light); line-height: 1.6; }

/* Responsive Pagine Legali */
.toc-details { display: none; }
.toc-static  { display: block; position: sticky; top: 82px; }

@media (max-width: 960px) {
  .page-layout { grid-template-columns: 1fr; gap: 2rem; }
  .page-toc { position: static; order: -1; }
  .toc-details { display: block; }
  .toc-static  { display: none; }
  .nav-back-label { display: none; }
}

@media (max-width: 768px) {
  .page-hero { padding: 3rem 0 2rem; }
  .page-hero h1 { font-size: 1.7rem; }
  .page-hero-lead { font-size: .92rem; }
  .page-hero-meta { gap: .45rem; }
  .page-meta-pill { font-size: .7rem; padding: .25rem .65rem; }
  .page-body { padding: 2rem 0 3.5rem; }
  .doc-section-title { font-size: 1.05rem; }
  .doc-section-ref { display: none; }
  .doc-prose { font-size: .9rem; line-height: 1.72; }
  .doc-norm-box, .doc-ok-box, .doc-warn-box { font-size: .85rem; padding: .85rem 1rem; }
  .doc-check-row { font-size: .88rem; }

  /* Tabelle -> Card Stack su Mobile (Corretto e blindato) */
  .table-scroll { overflow: visible; margin: 1rem 0; }
  .doc-table thead { display: none; }
  .doc-table, .doc-table tbody, .doc-table tr, .doc-table td {
    display: block; width: 100%; box-sizing: border-box;
  }
  .doc-table { min-width: 100%; }
  .doc-table tr {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
  }
  .doc-table tr:nth-child(even) td { background: transparent; }
  .doc-table td {
    padding: .75rem 1rem;
    border-bottom: 1px solid var(--border);
    font-size: .88rem;
    display: flex; flex-direction: column; gap: .25rem;
  }
  .doc-table td:last-child { border-bottom: none; }
  .doc-table td::before {
    content: attr(data-label);
    font-size: .65rem; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase;
    color: var(--light); display: block;
  }
}

@media (max-width: 600px) {
  .page-toc { padding: 0; border-radius: 12px; overflow: hidden; }
  .toc-details summary { padding: .85rem 1.1rem; background: var(--card); font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; }
  .toc-details summary::after { content: '▼'; font-size: .7rem; color: var(--light); transition: transform .25s; }
  .toc-details[open] summary::after { transform: rotate(180deg); }
  .toc-details .page-toc-list { padding: .5rem .75rem .85rem; }
  .toc-details .toc-back { margin: .5rem .75rem .75rem; }
  .doc-section-head { gap: .6rem; }
  .doc-section-num { width: 30px; height: 30px; font-size: .72rem; }
}

/* Layout Do & Don't CalcuLegal */
.do-dont-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
}

.do-box, .dont-box {
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid;
}

.do-box {
    background: rgba(16, 185, 129, 0.05);
    border-color: rgba(16, 185, 129, 0.2);
}

.dont-box {
    background: rgba(230, 57, 70, 0.05);
    border-color: rgba(230, 57, 70, 0.2);
}

.do-box h4, .dont-box h4 {
    margin-top: 0;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.do-box h4 { color: #10b981; }
.dont-box h4 { color: #e63946; }

@media (max-width: 600px) {
    .do-dont-container { grid-template-columns: 1fr; }
}