/* visual-refresh.css — restyling grafico del 13/11/2026, secondo passaggio del 14/11/2026.
   Caricato per ultimo nell'<head> di ogni pagina. Tre regole di convivenza:
   1. I token (--ink, --paper, --blue…) sono ridefiniti qui con html:root, che vince sui :root
      delle pagine: per cambiare la palette si tocca solo questo blocco.
   2. Le classi nuove hanno il prefisso vr-. Le regole su classi esistenti hanno «html» davanti
      per vincere sul CSS inline delle pagine senza !important.
   3. Gli !important presenti servono solo contro stili scritti nell'attributo style (banner cookie). */

/* ── 1. Token ── */
html:root{
  --ink:#101E32; --navy:#0B1625; --paper:#F5F2EB; --paper-warm:#ECE7DC; --white:#FFFFFF;
  --blue:#244B78; --blue-light:#9DB8D6; --muted:#566477; --border:#D9DDE3;
  --gold:#A1824A; --gold-light:#D6BC8C;
  --vr-sand:#C2A36B; --vr-pale:#EEF2F6; --vr-blue-dark:#1B3A5E; --vr-line:#D9D4C8; --vr-field:#B4BCC7;
  --vr-max:1200px; --vr-gutter:clamp(1.25rem,4vw,4rem);
  --vr-s1:.5rem; --vr-s2:1rem; --vr-s3:1.5rem; --vr-s4:2.5rem; --vr-s5:4rem; --vr-s6:6rem;
  --vr-radius:3px;
  --abn-bg:#FFFFFF;
}

/* ── 2. Base tipografica ── */
html body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility}
html :where(h1,h2,h3){text-wrap:balance}
html :where(p,li,figcaption){text-wrap:pretty}
/* niente gradiente sui titoli: il corsivo blu basta */
html h1 em,html h2 em{background:none;-webkit-background-clip:border-box;background-clip:border-box;-webkit-text-fill-color:currentcolor}
html ::selection{background:#244B78;color:#fff}

/* ── 3. Pulsanti e link d'azione ── */
html :where(.btn-primary,.btn-outline,.nav-cta,.cta-btn,.book-cta,.ccv-btn,.card-cta,.btn-outline-light,.fm-cta,.cc-install__btn){border-radius:var(--vr-radius)}
html .btn-primary,html .btn-outline,html .cta-btn{min-height:46px;display:inline-flex;align-items:center;justify-content:center;letter-spacing:.08em;font-size:.78rem}
html .btn-primary:hover,html .btn-outline:hover{transform:translateY(-1px)}
html .btn-primary:active,html .btn-outline:active,html .cta-btn:active,html .nav-cta:active{transform:none;filter:brightness(.94)}
html :where(a,button,input,select,textarea,summary,[tabindex]):focus-visible{outline:2px solid var(--blue);outline-offset:3px}
html :where(.cta-box,.preorder,.big-quote,.mission,footer.ccf,.book-hero) :where(a,button,input):focus-visible{outline-color:#fff}

/* ── 4. Etichette: meno spaziatura, niente formato microscopico ── */
html :where(.section-label,.hero-tag,.post-tag,.post-meta,.stat-label,.hero-route-tag,.hero-route-cta,.ccv-kicker,.part-label,.card-tag){letter-spacing:.1em}

/* ── 5. Header ── */
html .nav-links a{letter-spacing:.04em;font-size:.75rem}
html .nav-links a:hover{color:var(--ink)}
html .nav-cta{letter-spacing:.04em;font-size:.75rem;padding:.7rem 1.1rem}
html .nav-en{color:var(--blue) !important;border-color:var(--border)}
html .nav-en:hover{background:var(--vr-pale)}
@media (max-width:1300px){html .nav-links{gap:.95rem}html .nav-links a{letter-spacing:.02em}}
@media (max-width:1150px){html .nav-links{gap:.7rem}html .nav-links a{letter-spacing:.01em}html .nav-cta{padding:.65rem .8rem}}
@media (max-width:768px){
  html body>nav:not(.app-bottom-nav){gap:.6rem}
  html .nav-logo{font-size:.8rem;letter-spacing:.06em}
  html .nav-cta{font-size:.75rem;letter-spacing:.02em;padding:.6rem .7rem}
}
@media (max-width:400px){html .nav-logo{font-size:.72rem;letter-spacing:.04em}html .nav-cta{padding:.55rem .55rem}}

/* ── 6. Home: hero editoriale a due colonne ── */
html .vr-home .hero{min-height:0;grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);gap:clamp(2.5rem,5vw,5rem);align-items:center;
  padding:clamp(7.5rem,11vw,10rem) max(var(--vr-gutter),calc((100vw - var(--vr-max))/2)) clamp(3rem,6vw,5rem);border-bottom:0}
html .vr-home .hero::before{content:none}
html .vr-home .hero-tag{border-bottom:0;padding-bottom:0;margin-bottom:1.5rem;color:var(--muted);font-size:.78rem}
html .vr-home .hero h1{font-size:clamp(3rem,6.2vw,5.6rem);line-height:1.02;font-weight:400;letter-spacing:-.025em;margin-bottom:1.75rem}
html .vr-home .hero h1 em{font-weight:500;color:var(--blue)}
html .vr-home .hero-sub{font-size:clamp(1.05rem,1.35vw,1.2rem);line-height:1.65;color:#3A4658;max-width:34em;margin-bottom:2.5rem}
html .vr-home .hero-router{max-width:none;gap:1rem}
html .vr-home .hero-route{border-radius:var(--vr-radius);border:1px solid var(--vr-line);border-top:3px solid var(--blue);padding:1.4rem 1.5rem 1.3rem;gap:.6rem;min-height:100%;box-shadow:none}
html .vr-home .hero-route--agenzia{border-top-color:var(--vr-sand)}
html .vr-home .hero-route:hover{transform:translateY(-2px);box-shadow:0 10px 28px rgba(16,30,50,.07);border-color:#C9CED6;border-top-color:var(--blue)}
html .vr-home .hero-route--agenzia:hover{border-top-color:var(--vr-sand)}
html .vr-home .hero-route-tag{font-size:.74rem;color:var(--muted)}
html .vr-home .hero-route--agenzia .hero-route-tag{color:var(--muted)}
html .vr-home .hero-route-text{font-family:var(--ff-display);font-size:1.4rem;line-height:1.22;font-weight:500;color:var(--ink)}
html .vr-home .hero-route-cta{font-size:.78rem;letter-spacing:.06em;color:var(--blue);margin-top:auto;padding-top:.5rem}
html .vr-home .hero-book-link,html .vr-home .hero-en-link{display:flex;width:fit-content;font-size:.78rem;letter-spacing:.05em;color:var(--muted);opacity:1;margin-top:1.4rem}
html .vr-home .hero-en-link{margin-top:.55rem}
html .vr-home .hero-book-link:hover,html .vr-home .hero-en-link:hover{color:var(--blue);border-color:var(--blue)}
html .vr-home .hero-right{padding-bottom:0}
html .vr-home .hero-photo{aspect-ratio:4/5;object-position:58% 28%;margin-bottom:0;filter:none;border-radius:var(--vr-radius);max-height:min(78vh,720px)}
@media (max-width:1000px){html .vr-home .hero{padding-left:2rem;padding-right:2rem}}
@media (max-width:900px){
  html .vr-home .hero{grid-template-columns:1fr;gap:2.25rem;padding:6.5rem 1.25rem 2.5rem}
  html .vr-home .hero h1{font-size:clamp(2.7rem,12vw,3.6rem)}
  html .vr-home .hero-sub{font-size:1.06rem;margin-bottom:2rem}
  html .vr-home .hero-right{display:block}
  html .vr-home .hero-photo{grid-column:auto;aspect-ratio:5/4;object-position:58% 22%;border-bottom:0;max-height:none}
}
@media (max-width:560px){
  html .vr-home .hero-router{grid-template-columns:1fr}
  html .vr-home .hero-route{padding:1.2rem 1.25rem}
  html .vr-home .hero-route-text{font-size:1.3rem}
  html .vr-home .hero-photo{aspect-ratio:1/1}
}

/* fascia numeri e stampa sotto la hero */
html .vr-proof{border-top:1px solid var(--vr-line);border-bottom:1px solid var(--vr-line);background:var(--white)}
html .vr-proof-inner{max-width:var(--vr-max);margin:0 auto;padding:0 var(--vr-gutter)}
@media (min-width:1300px){html .vr-proof-inner{padding:0}}
html .vr-proof .hero-stat-block{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;border-top:0;padding:0;margin:0}
html .vr-proof .stat-item{padding:2.1rem 1.5rem 1.9rem;border:0;border-left:1px solid var(--border)}
html .vr-proof .stat-item:first-child{border-left:0;padding-left:0}
html .vr-proof .stat-number{font-size:clamp(2.4rem,4vw,3.4rem);font-weight:500;letter-spacing:-.01em;font-variant-numeric:lining-nums}
html .vr-proof .stat-number--accent{color:var(--blue)}
html .vr-proof .stat-label{font-size:.78rem;letter-spacing:.06em;margin-top:.55rem;line-height:1.35}
html .vr-proof .hero-press{display:flex;align-items:baseline;flex-wrap:wrap;gap:.5rem 1.5rem;border-top:1px solid var(--border);margin:0;padding:1rem 0 1.1rem}
html .vr-proof .hero-press-label{font-size:.72rem;letter-spacing:.1em;margin:0}
html .vr-proof .hero-press-list{gap:.3rem 1.5rem}
html .vr-proof .hero-press-list li{font-size:.76rem;letter-spacing:.05em;color:#3A4658}
@media (max-width:768px){
  html .vr-proof .hero-stat-block{grid-template-columns:repeat(2,minmax(0,1fr))}
  html .vr-proof .stat-item{padding:1.4rem 1rem 1.3rem;border-left:1px solid var(--border);border-top:0;border-right:0}
  html .vr-proof .stat-item:nth-child(odd){border-left:0;padding-left:0}
  html .vr-proof .stat-item:nth-child(n+3){border-top:1px solid var(--border)}
  html .vr-proof .stat-number{font-size:2.5rem}
  html .vr-proof .stat-label{font-size:.76rem}
}

/* ── 7. Sezioni: ritmo e larghezze di lettura ── */
html .section-label{margin-bottom:2.25rem;font-size:.76rem}
html :where(.post-body,.chap-body,.legal,.about-text) :where(p,li){max-width:70ch}
html .post-meta{letter-spacing:.06em}
html .post-body blockquote{color:var(--ink);border-left-color:var(--vr-sand)}
html .answer-box,html .cta-box,html .ccv,html .csbox{border-radius:var(--vr-radius)}
html .answer-box{background:var(--white);border-color:var(--vr-line);border-left-color:var(--blue)}
html .cta-box h3 em,html .cta-box p{color:var(--blue-light)}

/* ── 8. Moduli ── */
html :where(form) :where(input:not([type=radio]):not([type=checkbox]):not([type=hidden]):not([type=submit]),select,textarea){border-radius:var(--vr-radius)}
html .ccv-f input,html .ccv-f select{min-height:48px;border-color:var(--vr-field)}
html .ccv-f label{font-size:.76rem;letter-spacing:.05em}
html .ccv-opt span{border-color:var(--vr-field);border-radius:var(--vr-radius)}
html .ccv-btn{min-height:48px;letter-spacing:.02em}
html .ccv-bar i{height:4px}
html .ccv{border-color:var(--vr-line);box-shadow:0 1px 0 rgba(16,30,50,.03),0 12px 32px rgba(16,30,50,.05)}

/* ── 9. Footer ── */
html footer.ccf{background:#101E32}
html .ccf-claim{font-size:.95rem;color:#B6C0CE;max-width:34ch}
html .ccf-cols h3{font-size:.74rem;letter-spacing:.1em;color:#D6BC8C;margin-bottom:1.1rem}
html .ccf-cols a{font-size:.95rem;color:#D3D9E1}
html .ccf-cols li{margin-bottom:.65rem}
html .ccf-soc{border-radius:var(--vr-radius);background:#1A2B42;width:40px;height:40px}
html .ccf-soc:hover{background:var(--blue)}
html .ccf-legal{font-size:.82rem;letter-spacing:.01em;color:#A9B5C5;font-family:'DM Sans',system-ui,sans-serif}
html .ccf-legal a{color:#D3D9E1;text-decoration:underline;text-underline-offset:3px}

/* ── 10. Elementi fissi su telefono: banner cookie sopra la barra, WhatsApp non sotto il banner ── */
@media (max-width:768px){
  html body:has(.app-bottom-nav) #cc-cookie-banner{bottom:calc(var(--abn-h,58px) + env(safe-area-inset-bottom,0px)) !important;padding:14px 16px !important}
  html #cc-cookie-banner button{min-height:44px;flex:1 1 auto}
}
html body:has(#cc-cookie-banner[style*="display: block"]) :where(.wa-fab,.wa-popup,.cc-install,.cc-ios-hint,.ccv-sticky){visibility:hidden}
html #cc-cookie-banner{background:#101E32 !important}
html #cc-cookie-banner button{border-radius:var(--vr-radius) !important}
html .abn-label{letter-spacing:.02em}

/* ── 11. Movimento ── */
@media (prefers-reduced-motion:reduce){
  html *,html *::before,html *::after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important;scroll-behavior:auto !important}
}

/* ── 12. Correzioni dopo la prima verifica visiva ── */
/* gradiente del titolo definito in fondo a index.html con .hero h1 em */
html .hero h1 em{background:none;-webkit-background-clip:border-box;background-clip:border-box;-webkit-text-fill-color:currentcolor}
/* telefono: il pulsante in alto va su due righe, così il menu resta dentro lo schermo */
@media (max-width:480px){
  html .nav-cta{white-space:normal;width:min-content;line-height:1.15;text-align:center;font-size:.75rem;padding:.45rem .7rem}
}
/* barra in basso: cinque etichette intere anche a 360 px */
html .abn-label{font-family:'DM Sans',system-ui,sans-serif;font-size:.75rem;font-weight:600;letter-spacing:.01em}

/* ── 13. Testi su fondo navy: il grigio e il blu pensati per l'avorio qui non si leggono ── */
html :is(.mission-card p,.path-sub,.cta-strip p,.press-featured-source .press-outlet,.big-quote cite,.book-hero .book-author,.event-date-month,.cta-final .cta-second,.book-announce-stat .l,.hero-stat .l,.chap-meta,.hero .author,.quote-section .quote-author){color:#A9B5C5}
html .press-featured-source .press-date{color:#98A5B6}
html :is(.cta-strip,.mission,.press-featured,.book-announce,.social-section) :is(h2 em,h3 em){color:var(--blue-light)}
html .press-featured strong{color:var(--blue-light)}
html .cta-strip a:not([class]){color:var(--blue-light)}
html .cta-card-tag{color:#A9B5C5}
html .social-handle{color:#A9B5C5}
html .casavo-badge-brand{color:var(--blue)}
html .mission-card{background:#16263B}
html .mission-card:hover{background:#1A2B42;border-left-color:var(--vr-sand)}
html .cta-strip .path-sub,html .path-selector .path-sub{color:#A9B5C5}
html .cta-strip a:not([class]),html .cta-strip h2 em{color:var(--blue-light)}
/* pagine a fondo scuro (ebook, partner): il grigio dei testi secondari va schiarito */
html body.vr-dark{--muted:#A9B5C5}
html .vr-dark .cc-h{color:#fff}
html .vr-dark .privacy-note{color:#98A5B6}
html .vr-dark .cc-sub,html .vr-dark .cc-empty{color:#A9B5C5}
/* 1001-1099 px (tablet orizzontale): nove voci a 12 px, spaziature ridotte invece del carattere */
@media (min-width:1001px) and (max-width:1099px){
  html body>nav{padding-left:1rem;padding-right:1rem;gap:.5rem}
  html .nav-links{gap:.5rem}
  html .nav-links a{letter-spacing:0}
  html .nav-logo{font-size:.74rem;letter-spacing:.03em}
  html .nav-cta{letter-spacing:0;padding:.6rem .55rem}
  html .nav-en{padding:3px 5px !important}
}

/* ── 14. Gate del libro: riquadro di lettura, stessa logica ── */
html #nvp-gate{background:var(--white);border:1px solid var(--vr-line);border-radius:var(--vr-radius);padding:clamp(1.75rem,4vw,3rem) clamp(1.25rem,4vw,2.5rem);box-shadow:0 12px 32px rgba(16,30,50,.05)}
html #nvp-gate input{min-height:48px;border-color:var(--vr-field)}
html #nvp-gate button{min-height:48px;border-radius:var(--vr-radius)}

/* ══ SECONDO PASSAGGIO (14/11/2026) ══ */

/* ── 15. Home: continuità tra «Dove sono oggi» e i percorsi (la riga del link restava una striscia chiara fra due blocchi navy).
   Gli !important servono contro lo stile scritto nell'attributo del div. ── */
html .vr-home .mission + div{background:var(--ink);max-width:none !important;margin:0 !important;padding:0 4rem 3.5rem !important}
@media (max-width:1024px){html .vr-home .mission + div{padding:0 2rem 3rem !important}}
@media (max-width:768px){html .vr-home .mission + div{padding:0 1.25rem 2.5rem !important}}
html .vr-home .mission + div a{color:var(--blue-light) !important;border-bottom-color:rgba(157,184,214,.5) !important}
html .vr-home .mission{padding-bottom:2.5rem}
html .vr-proof .stat-item{display:flex;flex-direction:column;justify-content:flex-end}
html .vr-proof .stat-label{min-height:2.1em}

/* ── 16. Profilo: anche i principi accompagnano la lettura, come la foto ── */
@media (min-width:1025px){html .about-right{position:sticky;top:6rem;align-self:start}}

/* ── 17. Immagini su avorio: passe-partout bianco, così grafici e illustrazioni a fondo azzurro non toccano il fondo caldo ── */
html :is(.post-body,.chap-body) figure img,html .vr-mat{background:#fff;padding:clamp(6px,1.2vw,12px);border:1px solid var(--vr-line);border-radius:var(--vr-radius);box-sizing:border-box}
html .post-body figure figcaption{font-size:.8rem;letter-spacing:0;max-width:70ch}

/* ── 18. Blog: primo articolo in evidenza, schede con angoli sobri ── */
/* la copertina resta 16:9 intera (contiene testo): la scheda occupa due colonne e il titolo cresce */
@media (min-width:900px){
  html .grid > a.card:first-child{grid-column:span 2}
  html .grid > a.card:first-child .card-inner{padding:1.6rem 1.9rem 1.5rem}
  html .grid > a.card:first-child :is(h2,h3){font-size:clamp(1.7rem,2.3vw,2.2rem);line-height:1.14;max-width:22em}
}
html a.card{box-shadow:none}
html a.card:hover{box-shadow:0 10px 28px rgba(16,30,50,.07)}

/* ── 19. Pagina inglese: l'ottone come testo su fondo chiaro non si leggeva ── */
html :is(.m a,.type-idx,.social-grid-en .f,.type-card .type-action,.cap){color:#7A6232}
html .type-card .type-partner-note{color:var(--muted)}

/* ── 20. Ultimi contrasti sotto 4,5:1 ── */
html .book-badge{background:#0B7A57}
html nav small{color:#7A6232}
html .book-or{color:#A9B5C5}

/* 360 px: con il pulsante a 12 px il menu usciva di qualche pixel */
@media (max-width:400px){html body>nav:not(.app-bottom-nav){gap:.4rem;padding-left:1rem;padding-right:1rem}html .nav-cta{padding:.45rem .45rem;letter-spacing:0}}
