/*!
Theme Name: Landing RM
Author: RM
Description: Landing Theme layout
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: landing-rm

*/


/* Accessibility
--------------------------------------------- */

/* Text meant only for screen readers. */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* Do not show the outline on the skip link target. */
#primary[tabindex="-1"]:focus {
	outline: 0;
}

/* Alignments
--------------------------------------------- */
.alignleft {

	/*rtl:ignore*/
	float: left;

	/*rtl:ignore*/
	margin-right: 1.5em;
	margin-bottom: 1.5em;
}

.alignright {

	/*rtl:ignore*/
	float: right;

	/*rtl:ignore*/
	margin-left: 1.5em;
	margin-bottom: 1.5em;
}

.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 1.5em;
}

/* ===== Tokens (design system "Oltre i numeri") ===== */
:root{
  --surface-cream:#fdf6dc;
  --surface-white:#ffffff;
  --ink:#1a1a1a;
  --ink-muted:#5a5a55;
  --navy:#1a3a6b;
  --magenta:#ec0182;
  --magenta-ink:#c4006c;
  --cyan:#009de0;
  --blue-deep:#006eb9;
  --lime:#d3de22;
  --green:#8cc43d;
  --rule:#1a3a6b33;
  --on-navy:#ffffff;
  --focus:#c4006c;

  --font-sans:"Helvetica Neue",Helvetica,Arial,sans-serif;

  --space-1:4px;--space-2:8px;--space-3:16px;--space-4:24px;--space-5:40px;--space-6:64px;--space-7:112px;
  --radius-none:0;--radius-sm:2px;--radius-round:9999px;

  --gutter:var(--space-3);
  --section-y:var(--space-6);
  --max:1200px;
  --header-h:60px;
}
@media (min-width:768px){
  :root{--gutter:var(--space-5);--section-y:var(--space-7);--header-h:72px}
}

/* ===== Base ===== */
*,*::before,*::after{box-sizing:border-box}

main#main{overflow:hidden}
html{scroll-behavior:smooth;scroll-padding-top:var(--header-h);-webkit-text-size-adjust:100%}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
body{margin:0;background:var(--surface-cream);color:var(--ink);font-family:var(--font-sans);font-size:17px;line-height:1.6;overflow-x:hidden}
@media (min-width:768px){body{font-size:18px}}
img{display:block;max-width:100%;height:auto}
a{color:var(--blue-deep)}
:focus-visible{outline:2px solid var(--focus);outline-offset:3px}
.skip{position:absolute;left:-9999px;top:0;background:var(--navy);color:var(--on-navy);padding:var(--space-2) var(--space-3);z-index:100}
.skip:focus{left:var(--space-3);top:var(--space-2)}
.wrap{max-width:var(--max);margin:0 auto;padding:0 var(--gutter)}
.section{padding:var(--section-y) 0;position:relative}
.bg-white{background:var(--surface-white)}
.bg-cream{background:var(--surface-cream)}

/* Type */
.label{font-size: 16px !important;line-height:1.2;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--magenta-ink);margin:0 0 var(--space-3);display:flex;align-items:center;gap:var(--space-2)}
.label::before{content:"";width:10px;height:10px;border-radius:var(--radius-round);background:var(--magenta);flex:none}
.h1{font-size:clamp(34px,6vw,48px);line-height:1.05;font-weight:800;letter-spacing:-.01em;color:var(--navy);margin:0 0 var(--space-5)}
.h2{font-size:clamp(21px,2.4vw,26px);line-height:1.2;font-weight:700;color:var(--navy);margin:0}
.lead{font-size:clamp(19px,2.2vw,22px);line-height:1.45;font-weight:300;margin:0}
.caption{font-size:16px;line-height:1.45;color:var(--ink-muted);margin:0}
p{margin:0 0 1em}

/* Buttons */
.btns{display:flex;flex-wrap:wrap;gap:var(--space-3)}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:var(--space-2);min-height:52px;padding:0 var(--space-4);border-radius:var(--radius-sm);font:700 16px/1.2 var(--font-sans);text-decoration:none;border:2px solid transparent;transition:background-color .15s,color .15s,border-color .15s}
.btn svg{width:14px;height:14px;flex:none}
.btn-primary{background:var(--magenta-ink);color:#fff}
.btn-primary:hover{background:var(--navy)}
.btn-secondary{background:transparent;color:var(--navy);border-color:var(--navy)}
.btn-secondary:hover{background:var(--navy);color:var(--on-navy)}
@media (max-width:479px){.btns .btn{flex:1 1 100%}}

/* ===== 1. Header ===== */
.site-header{position:sticky;top:0;z-index:50;background:rgba(253,246,220,.94);backdrop-filter:saturate(1.2) blur(8px);-webkit-backdrop-filter:saturate(1.2) blur(8px);border-bottom:1px solid var(--rule)}
.site-header .wrap{display:flex;align-items:center;justify-content:space-between;gap:var(--space-3);min-height:var(--header-h)}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--navy);font-weight:900;font-size:24px;letter-spacing:-.01em;text-transform:uppercase;white-space:nowrap}
.brand-mark{width:26px;height:26px;flex:none}
.nav-toggle{display:inline-flex;align-items:center;gap:var(--space-2);background:none;border:1px solid var(--navy);color:var(--navy);border-radius:var(--radius-sm);padding:8px 12px;font:700 13px/1 var(--font-sans);letter-spacing:.08em;text-transform:uppercase;cursor:pointer}
.nav-toggle svg{width:16px;height:16px}
.site-nav{display:none;position:absolute;left:0;right:0;top:100%;background:var(--surface-cream);border-bottom:1px solid var(--rule)}
.site-nav.open{display:block}
.site-nav ul{list-style:none;margin:0;padding:var(--space-2) var(--gutter) var(--space-3)}
.site-nav a{display:block;padding:12px 0;color:var(--navy);text-decoration:none;font-weight:700;font-size:16px;border-bottom:1px solid var(--rule)}
.site-nav li:last-child a{border-bottom:0}
.site-nav a.nav-cta{color:var(--magenta-ink)}
@media (min-width:768px){
  .nav-toggle{display:none}
  .site-nav{display:block;position:static;background:none;border:0}
  .site-nav ul{display:flex;align-items:center;gap:var(--space-4);padding:0}
  .site-nav a{padding:6px 0;border:0;font-size:20px;position:relative}
  .site-nav a::after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;background:var(--magenta);transform:scaleX(0);transform-origin:left;transition:transform .2s}
  .site-nav a:hover::after,.site-nav a.active::after{transform:scaleX(1)}
  .site-nav a.nav-cta{background:var(--magenta-ink);color:#fff;padding:10px 16px;border-radius:var(--radius-sm)}
  .site-nav a.nav-cta:hover,.site-nav a.nav-cta.active{background:var(--navy)}
  .site-nav a.nav-cta::after{display:none}
}

/* ===== 2. Hero ===== */
.hero{position:relative;overflow:hidden;padding:var(--space-5) 0 var(--space-6)}
@media (min-width:768px){.hero{padding:var(--space-6) 0 var(--space-7)}}
.hero-discs{position:absolute;inset:0;pointer-events:none}
.hero-discs span{position:absolute;border-radius:var(--radius-round)}
.hero-discs .d1{width:720px;height:720px;right:-260px;top:-180px;background:var(--magenta);opacity:.07}
.hero-discs .d2{width:420px;height:420px;right:-60px;top:120px;background:var(--lime);opacity:.18}
.hero-discs .d3{width:300px;height:300px;left:-150px;bottom:-170px;background:var(--cyan);opacity:.08}
.hero-grid{position:relative;display:grid;gap:var(--space-5);align-items:center}
@media (min-width:900px){.hero-grid{grid-template-columns:1.15fr .85fr;gap:var(--space-6)}}
.hero-author{font-size:clamp(20px,2.4vw,26px);font-weight:400;letter-spacing:.02em;text-transform:uppercase;color:var(--blue-deep);margin:0 0 var(--space-2)}
.hero-title{font-size:clamp(52px,10.5vw,112px);line-height:.9;font-weight:900;letter-spacing:-.025em;text-transform:uppercase;color:var(--navy);margin:0 0 var(--space-4)}
.hero-title span{display:block}
.hero .lead{max-width:30ch;margin-bottom:var(--space-3);color:var(--ink)}
.hero .caption{margin-bottom:var(--space-4)}
.badge{display:inline-flex;align-items:center;flex-wrap:wrap;gap:6px 10px;padding:8px 16px 8px 8px;border-radius:var(--radius-round);background:var(--surface-white);border:1px solid var(--rule);font-size:14px;line-height:1.3;font-weight:700;color:var(--navy);margin-bottom:var(--space-4)}
.badge .dot{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:var(--radius-round);background:var(--lime);flex:none}
.badge .dot svg{width:14px;height:14px;color:var(--navy)}
.badge .price{color:var(--magenta-ink)}
@media (max-width:479px){.badge{border-radius:20px}.badge .sep{display:none}}
.hero-book{display:flex;justify-content:center;perspective:1600px;padding:var(--space-3) 0}
.book{position:relative;width:min(78vw,380px);transform:rotateY(-18deg) rotateX(3deg);transform-style:preserve-3d;transition:transform .6s cubic-bezier(.2,.7,.2,1)}
.book:hover{transform:rotateY(-8deg) rotateX(2deg)}
@media (prefers-reduced-motion:reduce){.book,.book:hover{transition:none}}
.book img{position:relative;width:100%;border-radius:1px 3px 3px 1px;box-shadow:0 1px 0 rgba(0,0,0,.04),18px 28px 50px -12px rgba(26,58,107,.35),6px 8px 14px rgba(26,26,26,.12)}
.book::before{content:"";position:absolute;top:0;bottom:0;left:0;width:4%;background:linear-gradient(90deg,rgba(0,0,0,.14),rgba(255,255,255,.2) 45%,rgba(0,0,0,0));z-index:2;border-radius:1px 0 0 1px}
.book::after{content:"";position:absolute;top:1.2%;bottom:1.2%;right:-14px;width:14px;background:repeating-linear-gradient(180deg,#fbfaf6 0 2px,#e9e5da 2px 3px);transform:rotateY(90deg);transform-origin:left;box-shadow:inset 3px 0 6px rgba(0,0,0,.08)}

/* ===== 3. Il libro ===== */
.book-grid{display:grid;gap:var(--space-5)}
@media (min-width:900px){.book-grid{grid-template-columns:7fr 4fr;gap:var(--space-6)}}
.synopsis .lead{color:var(--navy);margin-bottom:var(--space-4)}
.synopsis p{max-width:62ch}
.pullquote{margin:var(--space-5) 0 0;padding:var(--space-4) 0 0;border-top:2px solid var(--navy);position:relative}
.pullquote::before{content:"";position:absolute;top:-13px;left:0;width:24px;height:24px;border-radius:var(--radius-round);background:var(--magenta)}
.pullquote p{font-size:clamp(23px,3vw,30px);line-height:1.25;font-weight:300;color:var(--navy);margin:0 0 var(--space-3);max-width:28ch}
.pullquote strong{font-weight:700}
.book-aside{display:flex;flex-direction:column;gap:var(--space-4)}
.flat-cover{position:relative;max-width:280px}
.flat-cover img{box-shadow:0 1px 0 var(--rule),0 18px 40px -18px rgba(26,58,107,.4)}
.cases{border-top:1px solid var(--rule);padding-top:var(--space-3)}
.cases h3{font-size:13px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--navy);margin:0 0 var(--space-2)}
.cases ol{list-style:none;margin:0;padding:0}
.cases li{display:grid;grid-template-columns:76px 1fr;gap:var(--space-3);padding:10px 0;border-bottom:1px solid var(--rule);font-size:15px;line-height:1.4}
.cases .yr{font-weight:900;color:var(--magenta-ink);font-variant-numeric:tabular-nums}
.foreword{font-size:15px;color:var(--ink-muted);margin:0}
.foreword strong{color:var(--navy)}

/* ===== 4. Indice ===== */
.toc-head{display:grid;gap:var(--space-3);margin-bottom:var(--space-5)}
@media (min-width:900px){.toc-head{grid-template-columns:1fr 1fr;align-items:end}.toc-head .h1{margin:0}}
.toc-head .lead{color:var(--ink-muted);max-width:44ch}
.toc{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr;border-top:2px solid var(--navy)}
@media (min-width:768px){.toc{grid-template-columns:1fr 1fr;column-gap:var(--space-5)}}
.toc li{display:grid;grid-template-columns:56px 1fr;gap:var(--space-3);align-items:baseline;padding:18px 0 18px;border-bottom:1px solid var(--rule)}
.toc .n{font-size:30px;line-height:1;font-weight:900;color:var(--magenta-ink);font-variant-numeric:tabular-nums;letter-spacing:-.02em}
.toc .t{font-size:17px;line-height:1.4;font-weight:700;color:var(--navy)}
.toc .t small{display:block;font-size:15px;font-weight:400;color:var(--ink-muted);margin-top:4px}
.toc .part{grid-column:1/-1;display:block;padding:var(--space-4) 0 var(--space-2);border-bottom:0;font-size:13px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--ink-muted)}
.toc li.post .n{color:var(--navy);font-size:20px;line-height:1.5}
span.n {align-self: center;}
li.toc-item {align-content: center;}
span.toc-arrow {align-self: center;}
span.t {align-self: center;}

/* ===== 5. Autore ===== */
.author-grid{display:grid;gap:var(--space-5);align-items:start}
@media (min-width:900px){.author-grid{grid-template-columns:5fr 7fr;gap:var(--space-6)}}
.author-photo{position:relative;max-width:460px}
.author-photo img{position:relative;z-index:1;mix-blend-mode:multiply}
.author-name{font-size:clamp(36px,5vw,56px);line-height:1;font-weight:900;letter-spacing:-.02em;color:var(--navy);margin:0 0 var(--space-3)}
.author-role{font-size:clamp(18px,2vw,21px);line-height:1.4;font-weight:300;color:var(--ink);margin:0 0 var(--space-4)}
.author-role strong{font-weight:700;color:var(--navy)}
.career{list-style:none;margin:var(--space-4) 0 0;padding:0;border-top:2px solid var(--navy)}
.career li{display:grid;grid-template-columns:200px 1fr;gap:var(--space-3);padding:14px 0;border-bottom:1px solid var(--rule);font-size:16px;line-height:1.45}
@media (max-width:479px){.career li{grid-template-columns:1fr;gap:2px}}
.career .co{font-weight:900;color:var(--navy)}
.btn-autore {justify-self: center; margin-top: 20px;}

/* ===== 6. Stampa ===== */
.press-grid{display:grid;gap:var(--space-5)}
@media (min-width:900px){.press-grid{grid-template-columns:1fr;gap:var(--space-6)}}
.clipping{margin:0}
@media (min-width:900px){.clipping{position:sticky;top:calc(var(--header-h) + var(--space-4))}}
.clipping-frame{background:var(--surface-white);border:1px solid var(--rule);padding:var(--space-3);max-height:620px;overflow:auto}
.clipping-frame img{width:100%;max-width:340px;margin:0 auto}
.clipping figcaption{margin-top:var(--space-2)}
.press-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr;gap:1px;background:var(--rule);border:1px solid var(--rule)}
@media (min-width:600px){.press-list{grid-template-columns:1fr 1fr}}
@media (min-width:1100px){.press-list{grid-template-columns:1fr 1fr 1fr}}
.press-item{background:var(--surface-white)}
.press-item a{display:flex;flex-direction:column;justify-content:space-between;gap:var(--space-4);height:100%;min-height:150px;padding:var(--space-4);text-decoration:none;color:var(--navy);transition:background-color .15s}
.press-item a:hover{background:var(--surface-cream)}
.press-item .pub-line{display:flex;justify-content:space-between;align-items:center;gap:var(--space-2)}
.press-item .pub-line img{flex-shrink:0;max-width:100px;object-fit:contain}
.press-item .pub{font-size:20px;line-height:1.15;font-weight:800;letter-spacing:-.01em}
.press-item .read{display:inline-flex;align-items:center;gap:6px;font-size:14px;font-weight:700;color:var(--blue-deep)}
.press-item .read svg{width:12px;height:12px}
.press-item.featured a{background:var(--navy);color:var(--on-navy)}
.press-item.featured a:hover{background:#142f58}
.press-item.featured .read{color:var(--lime)}
.press-item.featured .kicker{font-size:12px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--lime);display:block;margin-bottom:6px}
.press-item a:focus-visible{outline-offset:-4px}
.press-item.featured a:focus-visible{outline-color:var(--lime)}
@media (min-width:1100px){li.press-item.featured:first-child{grid-column:span 3}}

/* ===== 7. Acquista ===== */
.buy{background:var(--navy);color:var(--on-navy);overflow:hidden}
.buy-discs span{position:absolute;border-radius:var(--radius-round)}
.buy-discs .d1{width:520px;height:520px;right:-200px;top:-140px;background:var(--magenta)}
.buy-discs .d2{width:320px;height:320px;right:40px;top:80px;background:var(--lime)}
.buy-discs .d3{width:180px;height:180px;right:160px;top:150px;background:var(--cyan)}
.buy-discs .d4{width:70px;height:70px;right:215px;top:205px;background:var(--blue-deep)}
@media (max-width:899px){.buy-discs{opacity:.25}}
.buy .wrap{position:relative}
.buy-inner{max-width:620px}
.buy .label{color:var(--lime)}
.buy .label::before{background:var(--lime)}
.buy-title{font-size:clamp(44px,8vw,88px);line-height:.92;font-weight:900;letter-spacing:-.025em;text-transform:uppercase;margin:0 0 var(--space-4);color:var(--on-navy)}
.buy .lead{margin-bottom:var(--space-5);max-width:34ch}
.buy .lead strong{font-weight:700;color:var(--lime)}
.btn-lg{min-height:60px;padding:0 var(--space-5);font-size:17px}
.btn-on-navy{background:var(--on-navy);color:var(--navy)}
.btn-on-navy:hover{background:var(--lime)}
.btn-ghost-on-navy{background:transparent;color:var(--on-navy);border-color:var(--on-navy)}
.btn-ghost-on-navy:hover{background:var(--on-navy);color:var(--navy)}
.buy :focus-visible{outline-color:var(--lime)}
.buy-note{margin-top:var(--space-4);font-size:16px;color:#c9d3e3}

/* ===== 8. Footer ===== */
.site-footer{background:#11284c;color:#c9d3e3;padding:var(--space-5) 0;font-size:14px;line-height:1.5}
.site-footer .wrap{display:grid;gap:var(--space-4)}
@media (min-width:768px){.site-footer .wrap{grid-template-columns:1fr auto;align-items:end}}
.site-footer .brand{color:var(--on-navy);margin-bottom:var(--space-2)}
.site-footer p{margin:0}
.site-footer ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:var(--space-2) var(--space-4)}
.site-footer a{color:var(--on-navy);font-weight:700;text-decoration:none;border-bottom:1px solid rgba(255,255,255,.35)}
.site-footer a:hover{border-color:var(--lime)}
.site-footer a.brand{border:0}
.site-footer :focus-visible{outline-color:var(--lime)}

.pt-20{padding-top:20px}





/* =========================================
   INDICE CAPITOLI
========================================= */

.toc { column-count: initial; columns: initial; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(7, auto); grid-auto-flow: column; column-gap: 48px;
    .toc-item { display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; align-items: start; column-gap: 18px;
        .n { grid-column: 1; grid-row: 1; }
        .t { grid-column: 2; grid-row: 1; min-width: 0;
            a { color: inherit; text-decoration: none; transition: color .3s ease;
                &:hover { color: #c90065; }
            }
            small { display: block; }
        }
        .toc-arrow { grid-column: 3; grid-row: 1; display: flex; align-items: flex-start; justify-content: flex-end; color: #c90065;
            svg { display: block; width: 36px; height: 36px; transition: transform .3s ease; }
        }
        &:has(.t a:hover) .toc-arrow svg { transform: rotate(45deg); }
    }
}

/* =========================================
   SINGLE CAPITOLO - HERO
========================================= */

.chapter-hero { position: relative; overflow: hidden; padding: 110px 0 110px;
    .wrap { position: relative; z-index: 2; }
    .buy-discs { position: absolute; inset: 0; z-index: 0; transform: scale(.65); transform-origin: top right; pointer-events: none;
        span { position: absolute; display: block; border-radius: 50%; }
    }
}

.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 90px; font-size: 13px; color: #687184;
    a { color: inherit; text-decoration: none;
        &:hover { color: var(--navy); }
    }
    [aria-current="page"] { color: var(--navy); }
}

.chapter-heading { max-width: 850px; }
.chapter-number { display: inline-block; margin: 0 0 20px; color: #c4006c; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.chapter-title { max-width: 850px; margin: 0; color: var(--navy); font-size: 48px; line-height: 1.04; letter-spacing: -.045em; font-weight: 800; }
.chapter-subtitle { max-width: 680px; margin: 28px 0 0; font-size: clamp(20px, 2.5vw, 26px); line-height: 1.45; color: #596276; }
.chapter-meta { display: flex; gap: 12px; margin-top: 35px; font-size: 16px; color: #687184; }

/* =========================================
   CONTENUTO E SIDEBAR
========================================= */

.chapter-preview-section { padding: 90px 0 110px; }
.chapter-content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 65px; align-items: start; }

.chapter-preview { min-width: 0; max-width: 100%; margin: 0 auto;
    > .label { margin-bottom: 40px; }
}

.chapter-preview-text { width: 100%; color: #30394a; font-size: 19px; line-height: 1.9;
    p { margin: 0 0 28px; }
    h2, h3 { color: var(--navy); margin: 45px 0 20px; }
}

/* =========================================
   TESTO SFUMATO
========================================= */

.chapter-blur { position: relative; max-height: 230px; overflow: hidden; margin-top: 5px; color: #30394a; font-size: 19px; line-height: 1.9; filter: blur(3px); opacity: .65; user-select: none; pointer-events: none;
    p { margin: 0 0 28px; }
    &::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,.25) 30%, rgba(255,255,255,.85) 75%, #fff 100%); }
}

/* =========================================
   SIDEBAR - INDICE CAPITOLI
========================================= */

.chapter-sidebar { width: 100%; box-sizing: border-box; padding: 30px; background: #fff; border: 1px solid rgba(0, 0, 0, .08); border-radius: 4px; position: sticky; top: 30px; }

.sidebar-header { padding-bottom: 20px; border-bottom: 1px solid #e8e3da;
    h3 { margin: 8px 0 0; font-size: 23px; }
}

.sidebar-chapters { display: flex; flex-direction: column; }

.sidebar-chapter { display: grid; grid-template-columns: 32px minmax(0, 1fr) 8px; align-items: center; gap: 12px; padding: 15px 10px; border-bottom: 1px solid #eeeae4; color: #333; text-decoration: none; transition: background .25s ease, color .25s ease;
    &:last-child { border-bottom: none; }
    &:hover, &.active { background: #fdf6dc; color: #c4006c; }
    &.active { font-weight: 600; }
}

.sidebar-chapter-number { color: #c4006c; font-weight: 600; }
.sidebar-chapter-title { font-size: 14px; line-height: 1.45; }
.sidebar-indicator { width: 7px; height: 7px; border-radius: 50%; background: #c4006c; }

/* =========================================
   BLOCCO ACQUISTO CAPITOLO
========================================= */

.chapter-unlock { position: relative; isolation: isolate; overflow: hidden; margin-top: -20px; padding: 60px 55px; background: var(--navy); color: var(--on-navy); border-radius: var(--radius-sm); text-align: left;
    .chapter-unlock-inner { position: relative; z-index: 2; max-width: 650px; }
    .unlock-content { display: flex; align-items: center; justify-content: space-between; gap: 35px; margin-bottom: 32px; }
    .unlock-text { flex: 1 1 0; min-width: 0; }
    .book-cover { flex: 0 0 150px; width: 150px;
        img { display: block; width: 100%; height: auto; border-radius: 4px; box-shadow: 0 12px 30px rgba(0,0,0,.3); }
    }
    .label { margin-bottom: 22px; color: var(--lime);
        &::before { background: var(--lime); }
    }
    .buy-title { margin: 0 0 25px; color: var(--on-navy); font-size: clamp(42px, 5vw, 66px); font-weight: 900; line-height: .98; letter-spacing: -.04em; text-transform: uppercase; }
    .lead { max-width: 42ch; margin: 0 0 32px; color: var(--on-navy); font-size: 19px; line-height: 1.55;
        strong { color: var(--lime); font-weight: 700; }
    }
    .btns { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 14px; }
    .btn-lg { min-height: 56px; padding: 0 24px; font-size: 15px; width: calc(50% - 7px)}
    .btn-on-navy { background: var(--on-navy); color: var(--navy); border-color: var(--on-navy); width: calc(50% - 7px);
        &:hover { background: var(--lime); border-color: var(--lime); }
    }
    .btn-ghost-on-navy { background: transparent; color: var(--on-navy); border-color: rgba(255,255,255,.65);
        &:hover { background: var(--on-navy); color: var(--navy); border-color: var(--on-navy); }
    }
    .buy-note { position: relative; z-index: 2; margin: 30px 0 0; color: #c9d3e3; font-size: 13px; line-height: 1.6; }
    .buy-discs { position: absolute; inset: 0; z-index: 0; transform: scale(.65); transform-origin: top right; pointer-events: none;
        span { position: absolute; display: block; border-radius: 50%; }
    }
    :focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; }
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1000px) {
    .chapter-content-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 30px; }
    .chapter-sidebar { padding: 22px; }
}

@media (max-width: 900px) {
    .chapter-unlock { padding: 42px 30px;
        .chapter-unlock-inner { max-width: 100%; }
        .unlock-content { gap: 24px; }
        .book-cover { flex-basis: 120px; width: 120px; }
        .buy-title { font-size: clamp(36px, 5vw, 46px); }
        .lead { font-size: 16px; }
        .btns { gap: 10px; }
        .btn-lg { padding: 0 16px; font-size: 13px; }
    }
}

@media (max-width: 767px) {
    .chapter-content-layout { grid-template-columns: 1fr; gap: 45px; }
    .chapter-sidebar { position: static; padding: 25px 20px; }
    .toc { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; }
}

@media (max-width: 600px) {
    .toc .toc-item { grid-template-columns: 40px minmax(0, 1fr) 36px; column-gap: 12px;
        .toc-arrow svg { width: 32px; height: 32px; }
    }
    .chapter-hero { padding: 75px 0 75px; }
    .breadcrumb { margin-bottom: 65px; gap: 8px; font-size: 11px; }
    .chapter-title { font-size: 43px; }
    .chapter-preview-section { padding: 65px 0 75px; }
    .chapter-preview-text, .chapter-blur { font-size: 16px; line-height: 1.8; }
    .chapter-unlock { margin-top: -10px; padding: 38px 24px;
        .unlock-content { flex-direction: column; align-items: flex-start; gap: 24px; }
        .book-cover { flex: 0 0 auto; width: 120px; }
        .buy-title { margin-bottom: 20px; font-size: 40px; }
        .lead { margin-bottom: 26px; font-size: 17px; }
        .btns { flex-direction: column; align-items: stretch; }
        .btn { width: 100%; box-sizing: border-box; justify-content: center; }
        .buy-note { margin-top: 24px; }
        .buy-discs { opacity: .16; }
    }
}

/* =========================================
   PAGINA AUTORE
========================================= */

.author-page { overflow: hidden; }

/* HERO */

.author-hero { position: relative; padding: 110px 0; background: #fdf6dc;
    .wrap { position: relative; z-index: 2; }
}
.author-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr); gap: 80px; align-items: center; }
.author-hero-content { max-width: 650px; }
.author-eyebrow { display: inline-block; margin-bottom: 25px; color: #b32776; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.author-title { margin: 0; color: var(--navy); font-size: clamp(48px, 7vw, 70px); line-height: .98; letter-spacing: -.05em; font-weight: 900; }
.author-role { margin: 25px 0 0; color: #b32776; font-size: 19px; font-weight: 600; line-height: 1.5; }
.author-intro { max-width: 580px; margin-top: 30px; color: #596276; font-size: 20px; line-height: 1.7; }
.author-hero-image { position: relative; max-width: 400px; justify-self: end;
    img { position: relative; z-index: 1; display: block; width: 100%; height: 400px; object-fit: cover; border-radius: var(--radius-sm); }
}

/* BIOGRAFIA */

.author-bio-section { padding: 110px 0; }
.author-bio-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); gap: 100px; align-items: start; }
.author-bio-heading {
    .label { margin-bottom: 20px; }
    h2 { margin: 0; color: var(--navy); font-size: clamp(36px, 5vw, 48px); line-height: 1.08; letter-spacing: -.04em; }
}
.author-bio-content { color: #30394a; font-size: 18px; line-height: 1.9; }
.author-bio-list { list-style: none; padding: 0; margin: 0;
    li { position: relative; padding: 16px 0 16px 28px; border-bottom: 1px solid rgba(26, 58, 107, .15); font-size: 17px; line-height: 1.7;
        &:first-child { padding-top: 0; }
        &:last-child { border-bottom: 0; }
        &::before { content: "●"; position: absolute; left: 0; top: 16px; color: #ec0182; font-weight: 700; font-size: 17px; }
        &:first-child::before { top: 0; }
    }
}


/* =========================================
   ESPERIENZE - TIMELINE COMPATTA
========================================= */

.author-career-section { padding: 80px 0; background: var(--cream); color: var(--navy);
    .career-container { width: min(1180px, 90%); margin: 0 auto; }

    /* Intestazione */
    .career-heading { margin-bottom: 45px;
        .section-eyebrow { display: block; margin-bottom: 15px; }
        h2 { margin: 0; }
    }

    /* Timeline */
    .career-timeline { position: relative; display: flex; flex-direction: column; gap: 14px;
        &::before { content: ""; position: absolute; top: 20px; bottom: 20px; left: 170px; width: 1px; background: currentColor; opacity: 0.2; }
    }

    /* Singola esperienza */
    .timeline-item { position: relative; display: grid; grid-template-columns: 140px 60px minmax(0, 1fr); align-items: start; padding: 0; border: none; background: transparent;
        .timeline-year { padding-top: 22px; text-align: right; opacity: 0.7; }
        .timeline-marker { position: relative; z-index: 1; justify-self: center; width: 11px; height: 11px; margin-top: 27px; border: 2px solid var(--cream); border-radius: 50%; background: var(--navy); }
        &.current {
            .timeline-marker { background: var(--magenta); }
            .timeline-year { opacity: 1; }
        }
    }

    /* Box esperienza */
    .timeline-content { min-width: 0; padding: 20px 24px; border: 1px solid rgba(20, 36, 58, 0.12); border-radius: 0; background: #fff;
        h3 { margin: 0 0 5px; color: #c4006c; }
        h4 { margin: 0 0 10px; }
        p { margin: 0 0 8px; line-height: 1.65;
            &:last-child { margin-bottom: 0; }
        }
    }
}

/* =========================================
   RESPONSIVE TABLET E MOBILE
========================================= */

@media (max-width: 768px) {
    .author-career-section { padding: 60px 0; }
    .career-container { width: min(100% - 32px, 600px); }
    .career-heading { margin-bottom: 30px; }

    .career-timeline::before { left: 8px; top: 20px; bottom: 20px; }

    .timeline-item { grid-template-columns: 24px minmax(0, 1fr); row-gap: 8px;
        .timeline-marker { grid-column: 1; grid-row: 1 / span 2; justify-self: center; margin-top: 4px; width: 10px; height: 10px; }
        .timeline-year { grid-column: 2; text-align: left; padding: 0; }
        .timeline-content { grid-column: 2; padding: 16px; }
    }
}

/* =========================================
   SMARTPHONE
========================================= */

@media (max-width: 480px) {
    .author-career-section { padding: 50px 0; }
    .career-heading { margin-bottom: 25px; }
    .career-timeline { gap: 12px; }
    .timeline-content { padding: 14px; }
}

/* =========================================
   ACCESSIBILITÀ
========================================= */

@media (prefers-reduced-motion: reduce) {
    .timeline-item, .timeline-content, .timeline-marker { transition: none; }
}


/* ATTIVITÀ ACCADEMICA */

.author-academic-section { padding: 110px 0; background: #fff; }
.author-academic-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 85px; align-items: center;
    .label { margin-bottom: 20px; }
    h2 { margin: 0 0 25px; color: var(--navy); font-size: clamp(36px, 4.5vw, 48px); line-height: 1.08; letter-spacing: -.04em; }
}
.author-academic-content { color: #30394a; font-size: 18px; line-height: 1.9;
    p { margin: 0 0 25px; }
    p:last-child { margin-bottom: 0; }
}
.author-academic-image { position: relative; width: 100%; height: 390px; overflow: hidden; background: var(--surface-cream);
    img { display: block; width: 100%; height: 100%; object-fit: cover; }
}

/* LIBRO */

.author-book-section { padding: 110px 0; background: #fdf6dc; }
.author-book-grid { display: grid; grid-template-columns: minmax(250px, .7fr) minmax(0, 1.3fr); gap: 100px; align-items: center; }
.author-book-cover { max-width: 400px; margin: 0 auto;
    img { display: block; width: 100%; height: auto; filter: drop-shadow(15px 20px 18px rgba(0,0,0,.15)); }
}
.author-book-content {
    .label { margin-bottom: 20px; }
    h2 { margin: 0; color: var(--navy); font-size: clamp(46px, 6vw, 48px); line-height: 1; letter-spacing: -.05em; }
    > p:not(.label) { color: #30394a; font-size: 17px; line-height: 1.8; }
    .author-book-subtitle { margin: 15px 0 30px; color: #b32776; font-size: 21px; font-weight: 600; }
    .author-book-foreword { margin-top: 30px; }
    .btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
}

/* RESPONSIVE */

/* TABLET */

@media (max-width: 991px) {
    .author-hero { padding: 80px 0;
        &-grid { grid-template-columns: minmax(0, 1fr) minmax(260px, .8fr); gap: 45px; }
        &-image img { height: 400px; }
    }
    .author-bio-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); gap: 50px; }
    .author-career-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .author-academic-grid { gap: 45px; }
    .author-academic-image { height: 330px; }
    .author-book-grid { gap: 55px; }
    .author-book-cover { max-width: 300px; }
}

/* MOBILE */

@media (max-width: 767px) {
    .author-hero { padding: 65px 0;
        &-grid { grid-template-columns: 1fr; gap: 35px; }
        &-content { max-width: 100%; }
        &-image { width: 100%; max-width: 100%;
            img { height: auto; max-height: 480px; object-fit: cover; object-position: center 30%; }
        }
    }
    .author-title { font-size: clamp(48px, 12vw, 70px); }
    .author-role { font-size: 17px; }
    .author-intro { font-size: 17px; margin-top: 20px; }
    .author-bio-section, .author-career-section, .author-academic-section, .author-book-section { padding: 70px 0; }
    .author-bio-grid { grid-template-columns: 1fr; gap: 35px; }
    .author-bio-heading h2 { font-size: clamp(34px, 8vw, 46px); }
    .author-bio-content { font-size: 16px; }
    .author-bio-list li { font-size: 16px; padding: 15px 0 15px 25px; }
    .author-career-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .career-item { min-height: 155px; padding: 20px; }
    .career-company {
        h3 { font-size: 21px; }
        p { font-size: 13px; }
    }
    .author-academic-grid { grid-template-columns: 1fr; gap: 35px; }
    .author-academic-image { grid-row: 1; height: 300px; }
    .author-academic-content h2 { font-size: clamp(34px, 8vw, 46px); }
    .author-book-grid { grid-template-columns: 1fr; gap: 40px; }
    .author-book-cover { max-width: 230px; }
    .author-book-content h2 { font-size: 48px; }
}

/* SMARTPHONE PICCOLI */

@media (max-width: 479px) {
    .author-hero { padding: 50px 0; }
    .author-career-list { grid-template-columns: 1fr; }
    .career-item { min-height: 130px; }
    .author-academic-image { height: 240px; }
    .author-book-content {
        .btns { flex-direction: column; align-items: stretch; }
        .btn { width: 100%; box-sizing: border-box; justify-content: center; }
    }
}

/* =========================================
   CITAZIONE AUTORE
========================================= */

.author-quote-section { padding: 100px 0; background: #ffffff;
    .author-quote-content { position: relative; max-width: 900px; margin: 0 auto; text-align: center; }
    .author-quote-mark { display: block; color: var(--magenta); font-family: Georgia, "Times New Roman", serif; font-size: 100px; font-weight: 700; line-height: .7; margin-bottom: 30px; }
    .author-quote { margin: 0;
        p { margin: 0; color: var(--navy); font-size: clamp(28px, 4.5vw, 48px); font-weight: 500; line-height: 1.3; letter-spacing: -.03em; }
    }
    .author-quote-author { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 35px;
        .author-quote-line { width: 30px; height: 2px; background: var(--magenta); }
        p { margin: 0; color: var(--magenta-ink); font-size: 15px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
    }
}

/* RESPONSIVE */

@media (max-width: 767px) {
    .author-quote-section { padding: 70px 0; }
    .author-quote-mark { font-size: 76px; margin-bottom: 22px; }
    .author-quote p { font-size: clamp(27px, 8vw, 36px); }
    .author-quote-author { margin-top: 28px; }
}

/* =========================================
   FIX RESPONSIVE HERO
========================================= */

@media(max-width:900px){
.author-page .author-hero-grid{display:flex;flex-direction:column;gap:32px;align-items:stretch;}
.author-page .hero{padding:55px 0 65px;}
.author-page .hero-grid{grid-template-columns:1fr;gap:35px;text-align:center;}
.author-page .hero-grid>div:first-child{display:flex;flex-direction:column;align-items:center;}
.author-page .hero-title{font-size:clamp(48px,9vw,76px);}
.author-page .hero .lead{max-width:38ch;}
.author-page .hero-book{width:100%;padding:10px 0 20px;}
.author-page .book{width:min(65vw,320px);transform:rotateY(-10deg) rotateX(2deg);}
.author-page .book:hover{transform:rotateY(-5deg) rotateX(1deg);}
.author-page .hero-discs .d1{width:500px;height:500px;right:-220px;top:-100px;}
.author-page .hero-discs .d2{width:300px;height:300px;right:-100px;top:100px;}
}

@media(max-width:600px){
.author-page .hero{padding:40px 0 50px;}
.author-page .hero-grid{gap:25px;}
.author-page .hero-author{font-size:19px;}
.author-page .hero-title{font-size:clamp(44px,12vw,60px);margin-bottom:20px;}
.author-page .hero .lead{font-size:19px;}
.author-page .hero .caption{font-size:14px;margin-bottom:25px;}
.author-page .hero .btns{width:100%;flex-direction:column;gap:12px;}
.author-page .hero .btn{width:100%;}
.author-page .hero-book{padding:10px 0 15px;}
.author-page .book{width:min(72vw,260px);transform:rotateY(-7deg) rotateX(2deg);}
.author-page .book:hover{transform:rotateY(-7deg) rotateX(2deg);}
.author-page .book::after{right:-10px;width:10px;}
.author-page .hero-discs .d1{width:350px;height:350px;right:-190px;top:-50px;}
.author-page .hero-discs .d2{width:230px;height:230px;right:-110px;top:100px;}
}

/* =========================================
   FIX RESPONSIVE TIMELINE
========================================= */

@media(max-width:768px){
.author-page .author-career-section{padding:60px 0;}
.author-page .author-career-section .career-container{width:100%;max-width:600px;margin:0 auto;padding:0 16px;}
.author-page .author-career-section .career-heading{margin-bottom:30px;}
.author-page .author-career-section .career-timeline{gap:18px;}
.author-page .author-career-section .career-timeline::before{left:9px;top:5px;bottom:5px;}
.author-page .author-career-section .timeline-item{display:grid;grid-template-columns:24px minmax(0,1fr);column-gap:12px;row-gap:8px;align-items:start;}
.author-page .author-career-section .timeline-item .timeline-marker{grid-column:1;grid-row:1/3;justify-self:center;width:11px;height:11px;margin-top:5px;}
.author-page .author-career-section .timeline-item .timeline-year{grid-column:2;grid-row:1;padding:0;text-align:left;font-size:14px;line-height:1.4;}
.author-page .author-career-section .timeline-item .timeline-content{grid-column:2;grid-row:2;width:100%;min-width:0;padding:18px 20px;box-sizing:border-box;}
.author-page .author-career-section .timeline-content h3{font-size:19px;line-height:1.3;}
.author-page .author-career-section .timeline-content h4{font-size:16px;line-height:1.4;}
.author-page .author-career-section .timeline-content p{font-size:15px;line-height:1.6;}
}

@media(max-width:480px){
.author-page .author-career-section{padding:45px 0;}
.author-page .author-career-section .career-container{padding:0 16px;}
.author-page .author-career-section .career-heading{margin-bottom:25px;}
.author-page .author-career-section .career-timeline{gap:15px;}
.author-page .author-career-section .timeline-item{grid-template-columns:20px minmax(0,1fr);column-gap:10px;}
.author-page .author-career-section .timeline-item .timeline-marker{width:10px;height:10px;margin-top:5px;}
.author-page .author-career-section .timeline-item .timeline-content{padding:15px;}
.author-page .author-career-section .timeline-content h3{font-size:18px;}
.author-page .author-career-section .timeline-content h4{font-size:15px;}
.author-page .author-career-section .timeline-content p{font-size:14px;}
}