/* CCA Italia — veste dei libri online (essere-coach, pnl-che-ti-serve, wellness-coaching-per-professionisti)
   Caricato DOPO assets/book.css di ogni libro: stessi caratteri, colori e testata del sito. */

@font-face { font-family: "Libre Caslon Text"; src: url(../fonts/libre-caslon-text-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Libre Caslon Text"; src: url(../fonts/libre-caslon-text-latin-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Libre Caslon Text"; src: url(../fonts/libre-caslon-text-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url(../fonts/public-sans-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url(../fonts/public-sans-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

/* ---------- palette del sito (giorno / seppia / notte) */
:root, :root[data-theme="light"] {
  --paper: #FFFDF9; --paper-2: #F8F0E5; --ink: #2C1F1B; --muted: #7A685E; --line: #E8DCCD;
  --accent: #8C2F3E; --accent-soft: #E6CC9C; --deep: #4A1824; --figure-bg: #fff;
  --sunset: linear-gradient(90deg, #E6CC9C, #C0954F 45%, #8C2F3E);
  --serif: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wine: #4A1824; --wine-d: #3A121C; --gold: #C0954F; --gold-l: #E6CC9C; --ochre: #C49445; --cream: #F3E7DC;
}
:root[data-theme="sepia"] { --paper: #F4EAD7; --paper-2: #EBDDC4; --ink: #3A2A1E; --muted: #7D6A55; --line: #DCC9AA; --figure-bg: #FBF6EA; --deep: #4A1824; --accent: #8C2F3E; }
:root[data-theme="night"] { --paper: #1C1315; --paper-2: #271B1E; --ink: #E9DFD4; --muted: #A39388; --line: #3A2A2E; --accent: #D6A95C; --accent-soft: #5A3A22; --deep: #E6CC9C; --figure-bg: #EDE6DC; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) { --paper: #1C1315; --paper-2: #271B1E; --ink: #E9DFD4; --muted: #A39388; --line: #3A2A2E; --accent: #D6A95C; --accent-soft: #5A3A22; --deep: #E6CC9C; --figure-bg: #EDE6DC; }
}
:root { --fs: 19px; }
@media (max-width: 640px) { :root { --fs: 18px; } }

body { overflow-x: clip; }

/* ---------- testata del sito (scorre via: la barra di lettura resta in alto) */
.cca-strip { background: var(--wine-d); color: var(--cream); font-family: var(--sans); border-bottom: 2px solid var(--gold); }
.cca-strip-in { max-width: 1180px; margin: 0 auto; padding: .6rem 16px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.cca-logo { display: block; flex: none; }
.cca-logo img { display: block; height: 44px; width: auto; }
.cca-nav { display: flex; align-items: center; gap: clamp(.9rem, 2.4vw, 1.8rem); font-size: 14px; font-weight: 600; letter-spacing: .01em; }
.cca-nav a { color: var(--cream); text-decoration: none; padding: .35rem 0; border-bottom: 1px solid transparent; }
.cca-nav a:hover { color: var(--gold-l); border-bottom-color: var(--gold); }
@media (max-width: 560px) { .cca-nav .cca-opt { display: none; } .cca-logo img { height: 38px; } }

/* ---------- barra di lettura */
.bar { font-family: var(--sans); }
.brand span { font-weight: 600; }
.b-title { font-weight: 600 !important; letter-spacing: .14em; font-size: 12px; }
.tbtn, .seg, .settings, .pn, .jump, .toc-list a[aria-current], .langs a { border-radius: 3px; }
.tbtn { font-family: var(--sans); }
.aa { font-family: var(--serif); }
.tbtn.buy { background: var(--ochre); border-color: var(--ochre); color: #2E0F17; font-weight: 600; }
.tbtn.buy:hover { background: #D6A95C; }
.progress span { background: var(--sunset); }

/* ---------- copertina del libro (home): testata con la biblioteca, come il sito */
.home .bar { display: none; }
.home main { max-width: none; padding: 0; }
.home .hero {
  position: relative; isolation: isolate; color: var(--cream);
  padding: clamp(2.8rem, 6vw, 5rem) max(16px, calc((100% - 1148px) / 2)) clamp(2.8rem, 6vw, 4.6rem);
  background: linear-gradient(90deg, rgba(58,18,28,.95) 0%, rgba(58,18,28,.88) 45%, rgba(58,18,28,.72) 100%), url(../img/photo/biblioteca-1800.jpg) 50% 60% / cover no-repeat var(--wine-d);
  border-bottom: 2px solid var(--gold);
}
.home .hero .author { font: 600 13px/1.3 var(--sans); letter-spacing: .2em; color: var(--gold-l); }
.home .hero h1 { font-family: var(--serif); font-weight: 400; text-transform: none; letter-spacing: 0; line-height: 1.08; font-size: clamp(2.4rem, 5.4vw, 4rem); color: #fff; }
.home .hero h1::before { content: ""; display: block; width: 64px; height: 2px; background: var(--gold); margin-bottom: 1.3rem; }
.home .hero .subtitle { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--cream); }
.home .hero .subtitle::after { width: 64px; height: 2px; border-radius: 0; background: var(--gold); }
.home .hero .pitch { color: rgba(243,231,220,.92); }
.home .hero .pitch strong { color: #fff; }
.home .hero .stats, .home .hero .tnote { color: rgba(243,231,220,.72); }
.home .hero a:not(.btn) { color: var(--gold-l); }
.book { border-radius: 2px 4px 4px 2px; box-shadow: 0 30px 50px -18px rgba(0,0,0,.6), 0 10px 20px -10px rgba(0,0,0,.45); }
.book img { border-radius: 2px 4px 4px 2px; }

.btn { border-radius: 3px; font: 600 15px/1.15 var(--sans); letter-spacing: .01em; }
.btn.primary { background: var(--ochre); border-color: var(--ochre); color: #2E0F17; }
.btn.primary:hover { background: #D6A95C; border-color: #D6A95C; filter: none; }
.btn.amazon, .btn.resume { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; font-weight: 600; }
.btn.amazon:hover, .btn.resume:hover { background: #fff; color: var(--wine); filter: none; }

.home .quote, .home .toc, .home .about { padding-inline: 16px; }
.quote { border-color: var(--line); }
.quote p { font-family: var(--serif); color: var(--deep); }
.quote footer { font-weight: 600; letter-spacing: .14em; }
.toc > h2, .about h2 { font-family: var(--serif); font-weight: 400; text-transform: none; letter-spacing: 0; font-size: clamp(1.8rem, 3vw, 2.3rem); color: var(--deep); }
.toc > h2::before, .about h2::before { content: ""; display: block; width: 56px; height: 2px; background: var(--gold); margin-bottom: 1rem; }
.toc-group { font-weight: 600; color: var(--accent); }
.toc-list .n { font-weight: 600; }

/* autrice: ritratto rettangolare con cornice dorata sfalsata (come nel sito), mai a cerchio */
.about { grid-template-columns: 180px 1fr; gap: 2.4rem; }
.about img { width: 180px; height: 225px; border-radius: 0; filter: none; object-fit: cover; object-position: 50% 20%;
  box-shadow: 12px 12px 0 -1px var(--paper), 12px 12px 0 0 var(--gold); }
.text figure.portrait img { width: min(280px, 66vw); height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; border-radius: 0; padding: 0;
  box-shadow: 12px 12px 0 -1px var(--paper), 12px 12px 0 0 var(--gold); }
.text figure.portrait figcaption { margin-top: 1.4em; }

/* ---------- capitolo */
.kicker { font-weight: 600; letter-spacing: .2em; color: var(--accent); }
.ch-head h1 { font-family: var(--serif); font-weight: 400; color: var(--deep); line-height: 1.15; }
.ch-head::after, .subtitle::after { height: 2px; border-radius: 0; }
.ch-head::after { background: var(--gold); }
.text strong { font-weight: 700; }
.text h2.sub { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.2em; color: var(--deep); }
.text figure img { border-radius: 2px; }
.pn { border-radius: 0; border-top: 2px solid var(--gold); }
.pn span { font-weight: 600; }
.backtoc a { font-weight: 600; }

/* ---------- piede */
.foot { background: var(--wine-d); color: rgba(243,231,220,.75); border-top: 2px solid var(--gold); }
.foot a { color: var(--cream); }
.foot a:hover { color: var(--gold-l); }

@media (max-width: 760px) {
  .home .hero h1::before { margin-inline: auto; }
  .about { grid-template-columns: 1fr; }
  .about img { margin: 0 auto 1rem; width: 160px; height: 200px; }
}
@media print { .cca-strip { display: none !important; } }
