/* ============================================================
   L'EQUILIBRIO IN TUTTO — stile pagine del libro
   Lettura comoda a schermo + stampa/PDF a contrasto massimo
   ============================================================ */

.book-hero {
  padding: clamp(56px, 8vw, 96px) 0 24px;
  text-align: center;
}
/* Titolo del libro al centro, in testa a ogni capitolo (stessi colori del libro) */
.book-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 0 auto 30px;
  font-family: var(--font-heading);
}
.book-heading-title {
  display: inline-block;
  font-size: clamp(1.5rem, 4.6vw, 2.2rem);
  font-weight: 900;
  line-height: 1.1;
}
.book-heading-slogan {
  display: block;
  margin-top: 8px;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
}
@media (max-width: 480px) {
  .book-heading-slogan { font-size: .7rem; letter-spacing: .13em; }
}
@media print {
  .book-heading-slogan { color: #8a6a10; }
}

.book-kicker {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.book-title {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 14px;
}
.book-slogan {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 8px;
}
.book-author {
  font-family: var(--font-heading);
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Indice capitoli */
.book-toc {
  max-width: 720px;
  margin: 40px auto 0;
  display: grid;
  gap: 16px;
}
.book-toc a {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.book-toc a:hover {
  background: var(--bg-card-hover);
  border-color: rgba(247, 198, 95, .4);
  transform: translateY(-2px);
}
.book-toc-num {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--gold);
  min-width: 44px;
}
.book-toc-title { font-family: var(--font-heading); font-weight: 800; font-size: 1.05rem; color: var(--white); }
.book-toc-desc { font-size: .9rem; color: var(--text-secondary); margin: 4px 0 0; }
.book-toc-soon {
  padding: 18px 22px;
  border-radius: var(--radius);
  border: 1px dashed rgba(255, 255, 255, .18);
  color: var(--text-muted);
  font-size: .92rem;
  text-align: center;
}

/* Sezione "Il libro" in evidenza nella home */
.book-feature {
  padding: clamp(56px, 8vw, 96px) 0;
  background: radial-gradient(ellipse at 20% 0%, rgba(247, 198, 95, .08), transparent 60%), var(--bg-dark);
  border-top: 1px solid rgba(247, 198, 95, .18);
  border-bottom: 1px solid rgba(247, 198, 95, .18);
}
.book-feature-inner {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  max-width: 1040px;
  margin: 0 auto;
}
.book-cover {
  position: relative;
  width: min(100%, 280px);
  aspect-ratio: 2 / 3;
  margin: 0 auto;
  padding: 28px 22px;
  border-radius: 6px 14px 14px 6px;
  background: linear-gradient(160deg, #0b1f19 0%, #040e0b 100%);
  border: 1px solid rgba(247, 198, 95, .45);
  box-shadow: -8px 0 0 rgba(247, 198, 95, .12) inset, 0 28px 60px rgba(0, 0, 0, .55), 0 0 40px rgba(247, 198, 95, .12);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}
.book-cover-logo { width: 54px; height: 54px; margin: 0 auto; }
.book-cover-title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.55rem;
  line-height: 1.1;
  color: var(--white);
}
.book-cover-title span { color: var(--gold); display: block; }
.book-cover-slogan { font-size: .8rem; color: var(--text-secondary); margin-top: 10px; }
.book-cover-author {
  font-family: var(--font-heading);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
}
.book-feature-text .book-kicker { margin-bottom: 12px; }
.book-feature-text h2 {
  font-size: clamp(1.8rem, 4.4vw, 2.8rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 16px;
}
.book-feature-text p { color: var(--text-secondary); line-height: 1.8; margin-bottom: 14px; }
.book-feature-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 24px;
}
.book-feature-meta span {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(247, 198, 95, .3);
  background: rgba(247, 198, 95, .06);
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .06em;
}
.book-feature-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.book-feature-note { margin-top: 14px; font-size: .82rem; color: var(--text-muted); }

/* Card «libro in omaggio con i pacchetti» — deve colpire l'occhio */
.gift-card {
  position: relative;
  margin: 22px 0 18px;
  padding: 22px 22px 24px;
  border-radius: 20px;
  border: 2px solid var(--gold);
  background: linear-gradient(135deg, rgba(247, 198, 95, .24), rgba(247, 198, 95, .06));
  text-align: center;
  animation: gift-glow 1.8s ease-in-out infinite;
}
.gift-card-badge {
  display: inline-block;
  padding: 5px 14px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: var(--gold);
  color: #1a1200;
  font-family: var(--font-heading);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.gift-card-icon {
  display: block;
  font-size: 2.4rem;
  line-height: 1;
  margin-bottom: 8px;
  animation: gift-bounce 1.4s ease-in-out infinite;
}
.gift-card-title {
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 3.6vw, 1.5rem);
  font-weight: 900;
  line-height: 1.25;
  color: #fff;
  margin: 0 0 8px;
}
.gift-card-title span { color: var(--gold); }
.gift-card-text { color: var(--text-secondary); font-size: 1rem; line-height: 1.6; margin: 0 0 16px !important; }
.gift-card-text strong { color: var(--gold); }
.gift-card .btn { width: 100%; max-width: 340px; justify-content: center; }
@keyframes gift-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(247, 198, 95, .55), 0 0 18px rgba(247, 198, 95, .25); }
  50% { box-shadow: 0 0 0 10px rgba(247, 198, 95, 0), 0 0 36px rgba(247, 198, 95, .6); }
}
@keyframes gift-bounce {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-6px) rotate(-8deg); }
  75% { transform: translateY(-3px) rotate(8deg); }
}
/* Con «riduci animazioni»: l'alone pulsante resta (delicato), il regalo che dondola si ferma */
@media (prefers-reduced-motion: reduce) {
  .gift-card { animation: gift-glow 1.8s ease-in-out infinite !important; }
  .gift-card-icon { animation: none !important; }
}
@media (max-width: 800px) {
  .book-feature-inner { grid-template-columns: 1fr; text-align: center; }
  .book-feature-meta, .book-feature-actions { justify-content: center; }
  .book-cover { width: min(70%, 240px); }
}

/* Home: due copertine (IT/EN) con pulsanti Ebook e Cartaceo */
.book-feature-inner.is-solo { grid-template-columns: 1fr; text-align: center; max-width: 760px; }
.book-feature-inner.is-solo .book-feature-meta,
.book-feature-inner.is-solo .book-feature-actions { justify-content: center; }
.editions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 300px));
  gap: clamp(24px, 5vw, 64px);
  justify-content: center;
  margin: clamp(36px, 6vw, 56px) auto 0;
}
.edition { text-align: center; }
.edition-flag {
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-heading);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
}
.edition canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 8;
  border-radius: 6px 12px 12px 6px;
  background: #10170f;
  border: 1px solid rgba(247, 198, 95, .45);
  box-shadow: 0 24px 50px rgba(0, 0, 0, .55), 0 0 36px rgba(247, 198, 95, .14);
}
.edition-buttons { display: flex; gap: 10px; margin-top: 18px; }
.edition-btn {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 11px 8px;
  border-radius: 12px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: .95rem;
  text-decoration: none;
  color: #1a1204;
  background: linear-gradient(135deg, #fff0bf, #f7c65f 55%, #c48f26);
  box-shadow: 0 6px 20px rgba(247, 198, 95, .25);
  transition: transform .2s, box-shadow .2s;
}
.edition-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(247, 198, 95, .4); }
.edition-btn-sub { font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.edition-btn.is-off {
  cursor: not-allowed;
  background: rgba(255, 255, 255, .06);
  color: var(--text-muted);
  border: 1px dashed rgba(255, 255, 255, .25);
  box-shadow: none;
}
.edition-btn.is-off:hover { transform: none; box-shadow: none; }
/* Card per ogni copertina: fascia colorata «per quali clienti» sopra i due bottoni.
   Italiana = oro, inglese = verde-acqua. */
.edition {
  padding: 14px 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(247, 198, 95, .35);
}
.edition--en { border-color: rgba(0, 240, 255, .4); }
.edition-for {
  display: block;
  margin-top: 16px;
  padding: 10px 8px;
  border-radius: 12px;
  font-family: var(--font-heading);
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1.25;
  color: #1a1204;
  background: #f7c65f;
}
.edition-for small {
  display: block;
  margin-top: 3px;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .04em;
  opacity: .8;
}
.edition--en .edition-for { background: #00f0ff; color: #02181a; }
.edition--en .edition-btn:not(.is-off),
.edition-btn--en:not(.is-off) {
  background: linear-gradient(135deg, #b8fbff, #00f0ff 55%, #00a9b8);
  color: #02181a;
  box-shadow: 0 6px 20px rgba(0, 240, 255, .25);
}
.edition--en .edition-btn:not(.is-off):hover,
.edition-btn--en:not(.is-off):hover { box-shadow: 0 10px 28px rgba(0, 240, 255, .4); }
.edition--en .edition-buttons,
.edition--it .edition-buttons { margin-top: 10px; }
@media (max-width: 560px) {
  .edition { padding: 10px 8px 12px; border-radius: 14px; }
  .edition-for { font-size: .68rem; letter-spacing: .04em; padding: 8px 4px; margin-top: 12px; }
  .edition-for small { font-size: .58rem; }
}

/* Due card «pagina autore» in fondo, al centro (una per Paese) */
.author-cards {
  grid-column: 1 / -1;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 664px;
  justify-self: center;
  margin-top: 8px;
}
.author-cards .edition-extra-title { grid-column: 1 / -1; flex: none; }
.author-card {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  text-decoration: none;
  text-align: left;
  color: var(--text-primary);
  background: linear-gradient(135deg, rgba(247, 198, 95, .16), rgba(0, 240, 255, .10));
  border: 1px solid rgba(247, 198, 95, .55);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35), 0 0 28px rgba(247, 198, 95, .12);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.author-card:hover { transform: translateY(-2px); border-color: #f7c65f; box-shadow: 0 14px 36px rgba(0, 0, 0, .4), 0 0 36px rgba(247, 198, 95, .25); }
.author-card-icon {
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 1.35rem;
  color: #1a1204;
  background: linear-gradient(135deg, #fff0bf, #f7c65f 55%, #c48f26);
}
.author-card-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.author-card-kicker { font-family: var(--font-heading); font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #00f0ff; }
.author-card--en { border-color: rgba(0, 240, 255, .5); background: linear-gradient(135deg, rgba(0, 240, 255, .14), rgba(247, 198, 95, .08)); }
.author-card--en .author-card-icon { background: linear-gradient(135deg, #b8fbff, #00f0ff 55%, #00a9b8); color: #02181a; }
.author-card--en .author-card-arrow { color: #00f0ff; }
.author-card-text strong { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 900; color: #fff; line-height: 1.2; }
.author-card-sub { font-size: .86rem; color: var(--text-secondary); line-height: 1.35; }
.author-card-arrow { flex: 0 0 auto; color: var(--gold); font-size: 1rem; }
@media (max-width: 560px) {
  .author-cards { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .author-card { padding: 12px 14px; gap: 12px; }
  .author-card-icon { width: 44px; height: 44px; font-size: 1.1rem; }
  .author-card-text strong { font-size: 1rem; }
  .author-card-sub { font-size: .78rem; }
}

/* Due bottoni in più, al centro sotto le due copertine (altro Paese) */
.edition-extra {
  grid-column: 1 / -1;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 4px;
}
.edition-extra-title {
  flex: 0 0 100%;
  text-align: center;
  font-family: var(--font-heading);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.edition-btn.edition-btn-wide {
  flex: 0 1 300px;
  min-width: 0;
  text-align: center;
  padding: 12px 14px;
}
@media (max-width: 560px) {
  .edition-extra { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .edition-extra-title { flex: none; }
  .edition-btn.edition-btn-wide { flex: none; width: 100%; font-size: .85rem; }
}
@media (max-width: 560px) {
  .editions { gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .edition-buttons { flex-direction: column; gap: 8px; }
  .edition-flag { font-size: .68rem; letter-spacing: .1em; }
  .edition-btn { font-size: .85rem; }
}

/* Articolo (capitolo) */
.book-article {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 0 40px;
}
.book-chapter-label {
  display: block;
  text-align: center;
  font-family: var(--font-heading);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.book-chapter-title {
  text-align: center;
  font-size: clamp(1.8rem, 4.6vw, 2.8rem);
  font-weight: 900;
  line-height: 1.12;
  margin-bottom: 40px;
}
.book-text p {
  font-size: 1.1rem;
  line-height: 1.95;
  color: #dcebe5;
  margin-bottom: 1.5em;
}

/* Sottotitoli dentro il capitolo */
.book-text h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 3.2vw, 1.55rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--gold);
  margin: 2.2em 0 .8em;
}

/* Link dentro il testo */
.book-text a {
  color: var(--gold);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Elenchi puntati dentro il capitolo */
.book-text ul {
  list-style: disc;
  padding-left: 1.4em;
  margin: 0 0 1.5em;
}
.book-text li {
  font-size: 1.1rem;
  line-height: 1.85;
  color: #dcebe5;
  margin-bottom: .7em;
}
.book-text li::marker {
  color: var(--gold);
}

/* Frase chiave */
.book-pull {
  margin: 44px 0;
  padding: 26px 28px;
  border-left: 3px solid var(--gold);
  background: rgba(247, 198, 95, .05);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--white);
}

/* Nota autore / disclaimer */
.book-note {
  margin-top: 48px;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: .88rem;
  line-height: 1.7;
}
.book-note a { color: var(--primary); font-weight: 700; }

/* Card che rimanda ai Protocolli (fine capitolo) */
.book-cta {
  margin: 48px 0 0;
  padding: 28px 26px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(247, 198, 95, .35);
  background: linear-gradient(135deg, rgba(247, 198, 95, .08), rgba(247, 198, 95, .02));
  text-align: center;
}
.book-cta-label {
  display: block;
  font-family: var(--font-heading);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.book-cta-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--white);
  margin: 0 0 12px;
}
.book-cta p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.75;
  margin: 0 auto 20px;
  max-width: 560px;
}
.book-cta small {
  display: block;
  margin-top: 14px;
  color: var(--text-secondary);
  font-size: .8rem;
  line-height: 1.6;
}

/* Azioni e navigazione tra capitoli */
.book-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 36px 0 0;
}
.book-pager {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  max-width: 720px;
  margin: 0 auto;
  padding: 10px 0 80px;
}
.book-pager a {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: .9rem;
  color: var(--gold);
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(247, 198, 95, .35);
  background: rgba(247, 198, 95, .06);
}
.book-pager a:hover { background: rgba(247, 198, 95, .14); }

/* Chiusura del libro (ultimo capitolo) */
.book-end {
  max-width: 720px;
  margin: 72px auto 8px;
  text-align: center;
}
.book-end-ornament {
  display: block;
  font-size: 1.4rem;
  letter-spacing: .6em;
  color: var(--gold);
  opacity: .8;
  margin-bottom: 28px;
  padding-left: .6em;
}
.book-end-slogan {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 4.2vw, 1.9rem);
  font-weight: 800;
  line-height: 1.3;
  color: var(--gold);
  margin: 0 0 18px;
}
.book-end-author {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--white);
  margin: 0 0 6px;
}
.book-end-fine {
  display: inline-block;
  margin-top: 26px;
  font-family: var(--font-heading);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .5em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding-left: .5em;
}

@media print {
  .book-end-ornament, .book-end-slogan, .book-end-author, .book-end-fine {
    color: #000 !important;
  }
  .book-end { page-break-inside: avoid; }
}

@media (max-width: 600px) {
  .book-text p { font-size: 1.04rem; line-height: 1.85; }
  .book-text li { font-size: 1.04rem; line-height: 1.8; }
  .book-pull { font-size: 1.05rem; padding: 20px 20px; }
  .book-pager { flex-direction: column; }
  .book-pager a { text-align: center; }
}

/* ===================== STAMPA / PDF ===================== */
@media print {
  @page { margin: 22mm 20mm; }
  html, body {
    background: #fff !important;
    color: #000 !important;
  }
  .navbar, .footer, #hero-ticker, .book-actions, .book-pager, .navbar-toggle {
    display: none !important;
  }
  .book-article { max-width: 100%; padding: 0; }
  .book-chapter-label, .book-kicker { color: #000 !important; }
  .book-chapter-title, .book-title {
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
    background: none !important;
    filter: none !important;
    font-weight: 900 !important;
    page-break-after: avoid;
  }
  .book-text p {
    color: #000 !important;
    font-size: 12pt !important;
    line-height: 1.8 !important;
    orphans: 3;
    widows: 3;
  }
  .book-text li {
    color: #000 !important;
    font-size: 12pt !important;
    line-height: 1.8 !important;
  }
  .book-text h2 {
    color: #000 !important;
    font-size: 15pt !important;
    page-break-after: avoid;
  }
  .book-pull {
    color: #000 !important;
    border-left: 3px solid #000 !important;
    background: #f5f5f5 !important;
    page-break-inside: avoid;
  }
  .book-note {
    color: #000 !important;
    border: 1px solid #000 !important;
    background: #f5f5f5 !important;
    page-break-inside: avoid;
  }
  .book-note a { color: #000 !important; }
  .book-cta { display: none !important; }
  .text-gradient {
    background: none !important;
    -webkit-text-fill-color: #000 !important;
    color: #000 !important;
    filter: none !important;
  }
}
