/* V2 Editorial — family books beyond the approved Manuale pilot.
   Lab only until final production gate. */
body.v2-editorial-book-family{background:var(--v2-canvas);color:var(--v2-ink)}
body.v2-editorial-book-family main{background:var(--v2-canvas)}
body.v2-editorial-book-family .breadcrumb{background:transparent}
body.v2-editorial-book-family :is(.section,.paper,.book-detail-prose-section){color:var(--v2-text)}
body.v2-editorial-book-family :is(.section,.paper,.book-detail-prose-section) h2{color:var(--v2-heading);font-family:var(--v2-serif);font-weight:600;letter-spacing:-.018em;text-wrap:balance}
body.v2-editorial-book-family :is(.section,.paper,.book-detail-prose-section) p{line-height:1.78;text-align:left;text-wrap:pretty}
body.v2-editorial-book-family :is(.section,.paper,.book-detail-prose-section) li{line-height:1.68}
body.v2-editorial-book-family a:not(.btn-store):not(.btn-w):not(.btn-o){text-underline-offset:.16em}
body.v2-editorial-book-family .v2-book-cover{margin:0}
body.v2-editorial-book-family .v2-book-cover__visual img{max-height:430px;object-fit:contain;background:#fff}
body.v2-editorial-book-family .v2-book-cover__meta{grid-template-columns:repeat(4,minmax(0,1fr))}
body.v2-editorial-book-family .v2-book-cover__meta span{line-height:1.35}
body.v2-editorial-book-family .v2-book-cover__actions a{line-height:1.25}
body.v2-editorial-book-family .v2-book-cover__summary{max-width:760px;margin:.2rem 0 1.25rem;color:rgba(255,255,255,.83);font-size:.94rem;line-height:1.65;text-wrap:pretty}
body.v2-editorial-book-family .v2-book-cover__note{max-width:760px;margin:.15rem 0 .95rem;color:rgba(255,255,255,.72);font-size:.73rem;line-height:1.55}
body.v2-editorial-book-family .v2-book-cover__note a{color:#fff}
body.v2-editorial-book-family .book-detail-prose-section,
body.v2-editorial-book-family .legacy-book-reading,
body.v2-editorial-book-family .professione-use-panel,
body.v2-editorial-book-family .totalita-audience-panel{max-width:1040px;margin-inline:auto}
body.v2-editorial-book-family .book-detail-prose-section{padding:clamp(3.5rem,6vw,5.6rem) 1.5rem}
body.v2-editorial-book-family .book-detail-prose-section>div{max-width:78ch;margin-inline:auto}
body.v2-editorial-book-family .book-detail-prose-section h2{font-size:clamp(2.1rem,4vw,3rem);line-height:1.05}
body.v2-editorial-book-family .book-store-preview{max-width:1040px;margin-inline:auto;border-radius:18px}
body.v2-editorial-book-family .legacy-book-reading,
body.v2-editorial-book-family .professione-use-panel,
body.v2-editorial-book-family .totalita-audience-panel,
body.v2-editorial-book-family main .paper{border:1px solid var(--v2-border);border-radius:18px;background:var(--v2-surface);box-shadow:var(--v2-shadow-card);padding:clamp(1.35rem,3vw,2rem)}
body.v2-editorial-book-family main .paper h2{margin-top:0;font-size:clamp(1.75rem,3vw,2.35rem);line-height:1.12}
body.v2-editorial-book-family .related .inner{max-width:1040px}
body.v2-editorial-book-family .related{background:var(--v2-surface-muted)}
@media(max-width:900px){body.v2-editorial-book-family .v2-book-cover__meta{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){body.v2-editorial-book-family .book-detail-prose-section{padding-left:1rem;padding-right:1rem}body.v2-editorial-book-family .v2-book-cover__summary,body.v2-editorial-book-family .v2-book-cover__note{text-align:center;margin-left:auto;margin-right:auto}body.v2-editorial-book-family main .paper{border-radius:15px}}

body.v2-editorial-book-family :is(.book-store-lead,.professione-section-lead){text-align:left!important;text-wrap:pretty;}

body.v2-editorial-book-family.page-book-detail .book-store-lead,body.v2-editorial-book-family.page-book-legacy-detail .book-store-lead,body.v2-editorial-book-family.page-book-legacy-detail .professione-section-lead{max-width:78ch!important;margin-left:auto!important;margin-right:auto!important;text-align:left!important;}

/* V2 reading measure: legacy overview panels keep a book-like line length inside the wider card. */
body.v2-editorial-book-family .legacy-book-overview p{max-width:78ch;margin-left:auto;margin-right:auto}
/* Final reading-measure refinement for the long Totalità overview. */
body.v2-editorial-book-family .legacy-book-overview p{max-width:760px}
/* Editorial measure hard cap: prose should remain comfortably scannable even when the font's ch metric is generous. */
body.v2-editorial-book-family .legacy-book-overview p{max-width:min(74ch,760px)!important}
body.famiglia-editoriale.v2-editorial-book-family main > .legacy-book-overview > p{max-width:760px!important;margin-left:auto!important;margin-right:auto!important}

/* V2 editorial alignment pass — family book detail sections */
body.v2-editorial-book-family .book-detail-prose-section>h2{
  max-width:78ch;
  margin-left:auto!important;
  margin-right:auto!important;
  text-align:center!important;
}


/* V2 final contrast/readability pass — book-family micro labels */
body.v2-editorial-book-family :is(.professione-card-kicker,.totalita-card-kicker,.totalita-video-kicker){
  color:var(--v2-gold-text)!important;
}
body.v2-editorial-book-family .v2-book-cover__note{font-size:.75rem!important}

/* V2 absolute minimum for compact book-family labels */
body.v2-editorial-book-family :is(.professione-card-kicker,.totalita-card-kicker,.totalita-video-kicker,.v2-book-cover__note){font-size:12px!important}
/* V2 final reading measure — long book-family leads */
body.v2-editorial-book-family :is(.book-store-lead,.professione-section-lead){max-width:760px!important;margin-left:auto!important;margin-right:auto!important}
/* Specificity-safe reading measure for legacy book overview cards. */
body.v2-editorial-book-family.page-book-legacy-detail main .paper > p{max-width:760px!important;margin-left:auto!important;margin-right:auto!important}

/* V2 final alignment — Educare: heading and prose share the same centered reading axis. */
body.v2-editorial-book-family.page-book-detail .book-detail-prose > h2{
  max-width:760px!important;
  margin-left:auto!important;
  margin-right:auto!important;
  text-align:center!important;
}
body.v2-editorial-book-family.page-book-detail .book-detail-prose > p{
  max-width:760px!important;
  margin-left:auto!important;
  margin-right:auto!important;
}
/* Semantic bridge: promoted section heading keeps the certified H3 visual scale. */
body.page-book-legacy-detail .legacy-book-reading h2.legacy-book-section-label-heading{font-family:var(--font-titoli)!important;font-size:22px!important;line-height:28.16px!important;font-weight:700!important;color:var(--blu-notte)!important;letter-spacing:normal!important;margin:0 0 12px!important;padding:0!important;border:0!important;text-wrap:wrap!important}
