/* =============================================================
   Communio Biblica — redesign grafico
   Caricato dopo style.css (vedi functions.php). Ridefinisce:
   home (cb-hp-*), articolo generico (.cb-blog-page), header, footer.
   NON tocca: single-audio.php, single-cantico.php, il player audio
   (.mejs-*, .cb-audio-*), l'archivio.

   Scala tipografica (cinque misure):
     display   clamp(2.25rem, 6.2vw, 6rem)    titolo del giorno
     titolo    clamp(2.25rem, 4.4vw, 4rem)    intestazioni di sezione
     scheda    1.75rem                        titoli delle schede
     testo     1.125rem / 1.25rem (articolo)
     piccolo   0.9375rem                      date e categorie
   Colori: sfondo bianco, inchiostro #14212b, azzurro #87b6d1 come campo
   (mai come testo), gradino di tono #eef4f8, link #2f6485.
   ============================================================= */

:root {
  --rd-ground: #ffffff;
  --rd-ink:    #14212b;
  --rd-muted:  #52606b;
  --rd-link:   #2f6485;
  --rd-azure:  #87b6d1;
  --rd-tone:   #eef4f8;
  --rd-display: 'Cormorant Garamond', 'Noto Serif Hebrew', Georgia, serif;
  --rd-text:    'Source Serif 4', 'Noto Serif Hebrew', Georgia, serif;
  --rd-ease:    cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Basi comuni ---------- */
.cb-hp-hero a,
.cb-hp-recent a,
.cb-hp-sec a,
.cb-blog-page a { text-decoration: none; }

.cb-hp-hero, .cb-hp-recent, .cb-hp-sec,
.cb-blog-page { font-family: var(--rd-text); color: var(--rd-ink); }

.cb-hp-hero a:focus-visible,
.cb-hp-recent a:focus-visible,
.cb-hp-sec a:focus-visible,
.cb-hp-sec input:focus-visible,
.cb-hp-sec button:focus-visible,
.cb-blog-page a:focus-visible,
.cb-blog-page input:focus-visible,
.cb-blog-page button:focus-visible,
.cb-footer a:focus-visible {
  outline: 3px solid var(--rd-azure);
  outline-offset: 3px;
}

.cb-hp-ph {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  background: var(--rd-azure);
}

.cb-hp-meta {
  font: 400 .9375rem/1.4 var(--rd-text);
  color: var(--rd-muted);
  margin: 10px 0 0;
}

.cb-hp-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
}

/* Bottoni piatti: una sola forma, pillola con angoli arrotondati */
.cb-hp-btn,
.cb-hp-cta,
.cb-hp-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: 100px;
  box-shadow: none;
  font: 600 1rem/1 var(--rd-text);
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, color .2s, transform .15s;
}
.cb-hp-btn { background: var(--rd-azure); color: var(--rd-ink); }
.cb-hp-btn--solid { background: #ffffff; }
.cb-hp-btn:hover { background: #ffffff; color: var(--rd-ink); text-decoration: none; }
.cb-hp-btn--solid:hover { background: var(--rd-azure); }
.cb-hp-cta,
.cb-hp-search-btn { background: var(--rd-ink); color: #ffffff; }
.cb-hp-cta:hover,
.cb-hp-search-btn:hover { background: var(--rd-link); color: #ffffff; text-decoration: none; }
.cb-hp-btn:active, .cb-hp-cta:active, .cb-hp-search-btn:active { transform: translateY(1px); }

.cb-hp-more {
  font: 600 1rem/1.2 var(--rd-text);
  letter-spacing: 0;
  text-transform: none;
  color: var(--rd-link);
  text-decoration: underline !important;
  text-decoration-thickness: 2px !important;
  text-underline-offset: 5px;
  white-space: nowrap;
}
.cb-hp-more:hover { color: var(--rd-ink); }

.cb-hp-h2 {
  font: 500 clamp(2.25rem, 4.4vw, 4rem)/1.05 var(--rd-display);
  letter-spacing: -.015em;
  color: inherit;
  text-transform: none;
  margin: 0;
}
.cb-hp-h3 {
  font: 600 1.75rem/1.15 var(--rd-display);
  letter-spacing: 0;
  text-transform: none;
  color: inherit;
  margin: 40px 0 16px;
}

/* ---------- Header (Astra) ---------- */
#masthead,
.site-header,
.ast-primary-header-bar,
.main-header-bar { border-bottom: 0 !important; box-shadow: none !important; }

.site-branding .site-title a,
.ast-site-identity .site-title a {
  font: 600 2rem/1 var(--rd-display);
  letter-spacing: 0;
  color: var(--rd-ink);
}
#masthead .main-header-menu > .menu-item > .menu-link,
#masthead .main-navigation a {
  font-family: var(--rd-text);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--rd-ink);
}
#masthead .main-header-menu > .menu-item > .menu-link:hover,
#masthead .main-navigation a:hover,
#masthead .main-header-menu > .current-menu-item > .menu-link {
  color: var(--rd-link);
  text-decoration: underline;
  text-underline-offset: 6px;
}

/* =============================================================
   HOMEPAGE
   ============================================================= */

/* ---------- Hero ---------- */
.cb-hp-hero { display: block; border: 0; background: var(--rd-ground); }
.cb-hp-hero-text {
  display: block;
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(32px, 5vw, 72px) clamp(20px, 4vw, 56px) clamp(24px, 3vw, 40px);
  border: 0;
}
.cb-hp-hero-title {
  font: 500 clamp(2.25rem, 6.2vw, 6rem)/1 var(--rd-display);
  letter-spacing: -.02em;
  text-transform: none;
  text-wrap: balance;
  color: var(--rd-ink);
  margin: 0 0 clamp(20px, 2.5vw, 32px);
}
.cb-hp-hero-title a { color: var(--rd-ink); }
.cb-hp-hero-title a:hover { color: var(--rd-link); text-decoration: none; }

.cb-hp-hero-aside {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px 40px;
}
.cb-hp-excerpt {
  font: 400 1.25rem/1.5 var(--rd-text);
  color: var(--rd-ink);
  max-width: 56ch;
  margin: 0;
}
.cb-hp-hero-img { overflow: hidden; }
.cb-hp-hero-img a { display: block; height: auto; }
.cb-hp-hero-img img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 21 / 9;
  max-height: 62vh;
  object-fit: cover;
  animation: cbDrift 18s var(--rd-ease) both;
}
.cb-hp-hero-img .cb-hp-ph { min-height: 320px; }

/* ---------- Recenti ---------- */
.cb-hp-recent { background: var(--rd-tone); padding: clamp(40px, 5vw, 72px) 0; }
.cb-hp-recent-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 64px);
}
.cb-hp-recent-item { border: 0; padding: 0; }
.cb-hp-recent-title {
  font: 600 1.75rem/1.15 var(--rd-display);
  letter-spacing: 0;
  text-transform: none;
  margin: 0;
}
.cb-hp-recent-title a { color: var(--rd-ink); }
.cb-hp-recent-title a:hover { color: var(--rd-link); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Sezioni ---------- */
.cb-hp-sec { padding: clamp(56px, 8vw, 120px) 0; }
.cb-hp-sec--tight { padding-top: 0; }
.cb-hp-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 32px;
  margin-bottom: clamp(28px, 4vw, 56px);
}
.cb-hp-line, .cb-hp-rule { display: none; }

/* ---------- Podcast: campo scuro ---------- */
.cb-hp-podcast { background: var(--rd-ink); color: #ffffff; }
.cb-hp-podcast-grid {
  display: grid;
  grid-template-columns: minmax(260px, 4fr) 7fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.cb-hp-podcast-intro .cb-hp-more { display: inline-block; margin-top: 18px; color: #ffffff; }
.cb-hp-podcast-intro .cb-hp-more:hover { color: var(--rd-azure); }
.cb-hp-stream { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }

.cb-hp-pod-item {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 24px;
  align-items: center;
  padding: 18px 0;
  border: 0;
}
.cb-hp-pod-item:first-child { padding-top: 0; }
.cb-hp-pod-thumb { display: block; width: 112px; height: 112px; overflow: hidden; }
.cb-hp-pod-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cb-hp-podcast .cb-hp-ph { background: #2c4a60; }
.cb-hp-pod-title {
  font: 600 1.75rem/1.15 var(--rd-display);
  letter-spacing: 0;
  margin: 0;
}
.cb-hp-pod-title a { color: #ffffff; }
.cb-hp-pod-title a:hover { color: var(--rd-azure); text-decoration: underline; text-underline-offset: 4px; }
.cb-hp-podcast .cb-hp-meta { color: #b9c8d3; }

/* ---------- Salmi: una grande + elenco ---------- */
.cb-hp-feat {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.cb-hp-feat-img { display: block; aspect-ratio: 3 / 2; height: auto; overflow: hidden; margin-bottom: 24px; }
.cb-hp-feat-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .9s var(--rd-ease); }
.cb-hp-feat-img:hover img { transform: scale(1.03); }
.cb-hp-feat-title {
  font: 600 clamp(1.9rem, 3vw, 2.75rem)/1.1 var(--rd-display);
  letter-spacing: -.01em;
  margin: 0;
}
.cb-hp-feat-title a { color: var(--rd-ink); }
.cb-hp-feat-title a:hover { color: var(--rd-link); }
.cb-hp-feat-excerpt {
  font: 400 1.125rem/1.6 var(--rd-text);
  color: var(--rd-ink);
  max-width: 55ch;
  margin: 16px 0 0;
}
.cb-hp-feat-list { display: flex; flex-direction: column; }
.cb-hp-feat-list-item { padding: 20px 0; border: 0; }
.cb-hp-feat-list-item:first-child { padding-top: 0; }
.cb-hp-feat-list-item h3 { font: 600 1.75rem/1.15 var(--rd-display); letter-spacing: 0; margin: 0; }
.cb-hp-feat-list-item h3 a { color: var(--rd-ink); }
.cb-hp-feat-list-item h3 a:hover { color: var(--rd-link); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Schede ---------- */
.cb-hp-card-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; margin-bottom: 18px; }
.cb-hp-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .9s var(--rd-ease); }
.cb-hp-card:hover .cb-hp-card-img img { transform: scale(1.03); }
.cb-hp-card-title { font: 600 1.75rem/1.15 var(--rd-display); letter-spacing: 0; text-transform: none; margin: 0; }
.cb-hp-card-title a { color: inherit; }
.cb-hp-card-title a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* tre schede uguali */
.cb-hp-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 48px); }

/* una grande + due affiancate */
.cb-hp-grid-lead { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(24px, 3vw, 48px); }
.cb-hp-grid-lead .cb-hp-card:first-child { grid-row: 1 / span 2; }
.cb-hp-grid-lead .cb-hp-card:first-child .cb-hp-card-title { font-size: clamp(1.9rem, 3vw, 2.75rem); line-height: 1.1; }
.cb-hp-grid-lead .cb-hp-card:not(:first-child) {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  align-items: start;
}
.cb-hp-grid-lead .cb-hp-card:not(:first-child) .cb-hp-card-img { aspect-ratio: 1; margin-bottom: 0; }

/* righe su gradino di tono */
.cb-hp-tone { background: var(--rd-tone); }
.cb-hp-rows { display: grid; gap: clamp(24px, 3vw, 40px); }
.cb-hp-rows .cb-hp-card {
  display: grid;
  grid-template-columns: minmax(160px, 300px) 1fr;
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
}
.cb-hp-rows .cb-hp-card-img { aspect-ratio: 3 / 2; margin-bottom: 0; }
.cb-hp-rows .cb-hp-card-title { font-size: clamp(1.75rem, 2.6vw, 2.25rem); }

/* ---------- Cantico: campo azzurro ---------- */
.cb-hp-cantico { background: var(--rd-azure); color: var(--rd-ink); }
.cb-hp-cantico .cb-hp-more { color: var(--rd-ink); }
.cb-hp-cantico .cb-hp-more:hover { color: #ffffff; }
.cb-hp-cantico .cb-hp-meta { color: #1d3140; }

/* ---------- I più letti + cerca ---------- */
.cb-hp-pop {
  display: grid;
  grid-template-columns: 4fr 7fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.cb-hp-pop-item { display: block; padding: 0 0 28px; border: 0 !important; }
.cb-hp-pop-title { font: 600 1.75rem/1.15 var(--rd-display); letter-spacing: 0; margin: 0; }
.cb-hp-pop-title a { color: var(--rd-ink); }
.cb-hp-pop-title a:hover { color: var(--rd-link); text-decoration: underline; text-underline-offset: 4px; }

.cb-hp-search-form { display: flex; gap: 12px; margin: 0; }
.cb-hp-search-input {
  flex: 1;
  min-width: 0;
  min-height: 52px;
  padding: 0 22px;
  border: 0 !important;
  border-radius: 100px;
  box-shadow: none !important;
  background: var(--rd-tone);
  color: var(--rd-ink);
  font: 400 1rem/1 var(--rd-text);
}
.cb-hp-search-input::placeholder { color: var(--rd-muted); opacity: 1; }
.cb-hp-search-btn { width: auto; height: auto; border-radius: 100px; }

/* ---------- Entrate ---------- */
.cb-reveal {
  transition: opacity .7s var(--rd-ease), transform .7s var(--rd-ease);
}
.cb-js-ready .cb-reveal:not(.is-in) { opacity: 0; transform: translateY(24px); }
.cb-js-ready .cb-hp-hero .cb-reveal:not(.is-in) { opacity: 1; transform: none; }

.cb-hp-hero .cb-reveal { animation: cbRise .9s var(--rd-ease) both; }
.cb-hp-hero .cb-hp-hero-aside { animation-delay: .15s; }

.cb-hp-grid-3 .cb-reveal:nth-child(2), .cb-hp-grid-lead .cb-reveal:nth-child(2),
.cb-hp-rows .cb-reveal:nth-child(2), .cb-hp-recent-grid .cb-reveal:nth-child(2),
.cb-hp-podcast-list .cb-reveal:nth-child(2) { transition-delay: .08s; }
.cb-hp-grid-3 .cb-reveal:nth-child(3), .cb-hp-grid-lead .cb-reveal:nth-child(3),
.cb-hp-rows .cb-reveal:nth-child(3), .cb-hp-recent-grid .cb-reveal:nth-child(3),
.cb-hp-podcast-list .cb-reveal:nth-child(3) { transition-delay: .16s; }
.cb-hp-podcast-list .cb-reveal:nth-child(4) { transition-delay: .24s; }

@keyframes cbRise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes cbDrift { from { transform: scale(1.06); } to { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .cb-reveal { transition: none; }
  .cb-hp-hero .cb-reveal, .cb-hp-hero-img img { animation: none; }
  .cb-hp-feat-img img, .cb-hp-card-img img { transition: none; }
  .cb-hp-feat-img:hover img, .cb-hp-card:hover .cb-hp-card-img img { transform: none; }
}

/* =============================================================
   ARTICOLO GENERICO (single.php) — .cb-blog-page
   ============================================================= */
.cb-blog-page { --rd-overlap: clamp(70px, 9vw, 140px); }

.cb-blog-page .cb-blog-hero {
  background: var(--rd-azure);
  padding: clamp(40px, 6vw, 88px) clamp(20px, 4vw, 56px) 0;
  margin-bottom: calc(var(--rd-overlap) + 64px);
}
.cb-blog-page .cb-blog-hero-inner { max-width: 1280px; }
.cb-blog-page .cb-blog-navtop { display: none; }
.cb-blog-page .cb-blog-hero-cols { display: block; }
.cb-blog-page .cb-blog-hero-left { display: flex; flex-direction: column; flex: none; max-width: none; }
.cb-blog-page .cb-blog-title {
  order: 1;
  font: 500 clamp(2rem, 5.4vw, 5rem)/1.02 var(--rd-display);
  letter-spacing: -.02em;
  text-transform: none;
  text-wrap: balance;
  color: var(--rd-ink);
  margin: 0;
}
.cb-blog-page .cb-blog-cats { order: 2; gap: 6px 20px; margin: 20px 0 0; }
.cb-blog-page .cb-blog-cat {
  font: 600 1rem/1.3 var(--rd-text);
  letter-spacing: 0;
  text-transform: none;
  color: var(--rd-ink) !important;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.cb-blog-page .cb-blog-cat:hover { color: #ffffff !important; }
.cb-blog-page .cb-blog-hero-right {
  flex: none;
  max-width: none;
  margin: clamp(28px, 4vw, 48px) 0 calc(-1 * var(--rd-overlap));
}
.cb-blog-page .cb-blog-featured-img {
  border: 0;
  box-shadow: none;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  max-height: 70vh;
  object-fit: cover;
}
.cb-blog-page .cb-blog-featured-placeholder { height: 320px; border: 0; background: var(--rd-tone); }

.cb-blog-page .cb-blog-layout { max-width: 1280px; padding: 0 clamp(20px, 4vw, 56px) 96px; }
.cb-blog-page .cb-blog-layout-inner { justify-content: center; gap: clamp(40px, 6vw, 96px); }
.cb-blog-page .cb-blog-content-col { flex: 1 1 0; max-width: 46rem; }
.cb-blog-page .cb-blog-sidebar { flex: 0 0 300px; max-width: 300px; padding-top: 0; }

.cb-blog-page .cb-blog-subtitle {
  font: 400 1.375rem/1.45 var(--rd-text);
  text-align: left;
  color: var(--rd-ink);
  margin: 0 0 28px;
}
.cb-blog-page .cb-blog-share { justify-content: flex-start; margin-bottom: 40px; }
.cb-blog-page .cb-blog-share-btn { width: 44px; height: 44px; background: var(--rd-ink); color: #ffffff; }
.cb-blog-page .cb-blog-share-btn:hover { background: var(--rd-link); }

/* Corpo: testo di lettura (il player audio incorporato non viene toccato) */
.cb-blog-page .cb-blog-body,
.cb-blog-page .cb-blog-body p,
.cb-blog-page .cb-blog-body li,
.cb-blog-page .cb-blog-body td {
  font-family: var(--rd-text);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--rd-ink);
}
.cb-blog-page .cb-blog-body p { margin: 0 0 1.2em; }
.cb-blog-page .cb-blog-body li { margin-bottom: .5em; }
.cb-blog-page .cb-blog-body h2,
.cb-blog-page .cb-blog-body h3,
.cb-blog-page .cb-blog-body h4 {
  font-family: var(--rd-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--rd-ink);
  margin: 1.8em 0 .6em;
}
.cb-blog-page .cb-blog-body h2 { font-size: 2.25rem; }
.cb-blog-page .cb-blog-body h3 { font-size: 1.75rem; }
.cb-blog-page .cb-blog-body h4 { font-size: 1.5rem; }
.cb-blog-page .cb-blog-body a {
  color: var(--rd-link);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cb-blog-page .cb-blog-body a:hover { color: var(--rd-ink); }
.cb-blog-page .cb-blog-body blockquote {
  border: 0;
  background: var(--rd-tone);
  margin: 32px 0;
  padding: 24px 28px;
  font: italic 400 1.25rem/1.6 var(--rd-text);
  color: var(--rd-ink);
}
.cb-blog-page .cb-blog-body blockquote p { font-style: italic; margin-bottom: .6em; }
.cb-blog-page .cb-blog-body ul,
.cb-blog-page .cb-blog-body ol { padding-left: 1.4em; }

/* Tag */
.cb-blog-page .cb-blog-tags { margin: 40px 0 0; gap: 8px; }
.cb-blog-page .cb-blog-tags-label { font: 600 1rem/1 var(--rd-text); letter-spacing: 0; text-transform: none; color: var(--rd-ink); }
.cb-blog-page .cb-blog-tag {
  border: 0;
  background: var(--rd-tone);
  padding: 8px 16px;
  font: 400 .9375rem/1.2 var(--rd-text);
  letter-spacing: 0;
  text-transform: none;
  color: var(--rd-ink);
}
.cb-blog-page .cb-blog-tag:hover { opacity: 1; background: var(--rd-azure); }
.cb-blog-page .cb-blog-sep { display: none; }

/* Precedente / successivo */
.cb-blog-page .cb-blog-navbottom { margin: 56px 0; }
.cb-blog-page .cb-blog-navbottom-label { font: 400 .9375rem/1.4 var(--rd-text); color: var(--rd-muted); }
.cb-blog-page .cb-blog-navbottom-title {
  font: 600 1.5rem/1.2 var(--rd-display);
  text-transform: none;
  color: var(--rd-ink);
}
.cb-blog-page .cb-blog-navbottom-title:hover { color: var(--rd-link); text-decoration: underline; text-underline-offset: 4px; }

/* Autore */
.cb-blog-page .cb-blog-author-box { background: var(--rd-tone); margin-bottom: 72px; }
.cb-blog-page .cb-blog-author-name { font: 600 1.75rem/1.15 var(--rd-display); color: var(--rd-ink) !important; }
.cb-blog-page .cb-blog-author-bio { font: 400 1rem/1.55 var(--rd-text); color: var(--rd-ink) !important; }
.cb-blog-page .cb-blog-author-link {
  font: 600 1rem/1.2 var(--rd-text);
  letter-spacing: 0;
  text-transform: none;
  color: var(--rd-link) !important;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.cb-blog-page .cb-blog-author-link:hover { color: var(--rd-ink) !important; }

/* Correlati */
.cb-blog-page .cb-blog-related { margin-bottom: 72px; }
.cb-blog-page .cb-blog-related-heading {
  font: 500 2.25rem/1.1 var(--rd-display);
  text-transform: none;
  text-align: left;
  color: var(--rd-ink);
  margin-bottom: 28px;
}
.cb-blog-page .cb-blog-related-body { padding-top: 16px; }
.cb-blog-page .cb-blog-related-title { font: 600 1.5rem/1.2 var(--rd-display); }
.cb-blog-page .cb-blog-related-title a { color: var(--rd-ink); }
.cb-blog-page .cb-blog-related-title a:hover { color: var(--rd-link); text-decoration: underline; text-underline-offset: 4px; }
.cb-blog-page .cb-blog-related-cat {
  font: 400 .9375rem/1.4 var(--rd-text);
  text-transform: none;
  color: var(--rd-muted);
  margin: 8px 0 0;
}

/* Colonna laterale */
.cb-blog-page .cb-blog-sidebar-title { font: 600 1.75rem/1.15 var(--rd-display); text-align: left; margin-bottom: 16px; }
.cb-blog-page .cb-blog-podcast-links { align-items: flex-start; }
.cb-blog-page .cb-blog-sidebar-paypal { text-align: left; }
.cb-blog-page .cb-blog-paypal-btn {
  padding: 0 28px;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  background: var(--rd-ink);
  color: #ffffff !important;
  font: 600 1rem/1 var(--rd-text);
  border-radius: 100px;
}
.cb-blog-page .cb-blog-paypal-btn:hover { background: var(--rd-link); }
.cb-blog-page .cb-blog-search-input {
  min-height: 44px;
  background: var(--rd-tone);
  border: 0;
  box-shadow: none;
  font: 400 1rem/1 var(--rd-text);
}
.cb-blog-page .cb-blog-search-btn { width: 44px; height: 44px; border-radius: 50%; background: var(--rd-ink); }
.cb-blog-page .cb-blog-search-btn:hover { background: var(--rd-link); }

/* =============================================================
   FOOTER: il nome torna a tutta larghezza
   ============================================================= */
.cb-footer { background: var(--rd-ink); border: 0; color: #ffffff; }
.cb-footer .cb-footer-inner { max-width: 1280px; padding: 0 clamp(20px, 4vw, 56px); }
.cb-footer-top {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px 48px;
  padding: clamp(56px, 8vw, 112px) 0 clamp(32px, 4vw, 56px);
}
.cb-footer-logo { grid-column: 1 / -1; }
.cb-footer-wordmark {
  display: block;
  font: 500 clamp(3rem, 11vw, 10rem)/.9 var(--rd-display);
  letter-spacing: -.02em;
  color: #ffffff;
  text-decoration: none;
}
.cb-footer-wordmark:hover { color: var(--rd-azure); text-decoration: none; }
.cb-footer-menu { justify-content: flex-start; gap: 8px 32px; }
.cb-footer-menu li a {
  font: 400 1rem/1.4 var(--rd-text);
  letter-spacing: 0;
  text-transform: none;
  color: #dfe9ef;
}
.cb-footer-menu li a:hover,
.cb-footer-menu li.current-menu-item a { color: #ffffff; text-decoration: underline; text-underline-offset: 5px; }
.cb-footer-social { gap: 4px; }
.cb-footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  font-size: 1.25rem;
  color: #dfe9ef;
}
.cb-footer-social-link:hover { color: var(--rd-azure); }
.cb-footer-bottom { background: transparent; border: 0; padding: 0 0 36px; }
.cb-footer-bottom .cb-footer-inner { justify-content: flex-start; }
.cb-footer-copy { font: 400 .9375rem/1.4 var(--rd-text); letter-spacing: 0; text-transform: none; color: #b9c8d3; }

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 960px) {
  .cb-hp-recent-grid,
  .cb-hp-podcast-grid,
  .cb-hp-feat,
  .cb-hp-grid-3,
  .cb-hp-grid-lead,
  .cb-hp-pop { grid-template-columns: 1fr; }
  .cb-hp-grid-lead .cb-hp-card:first-child { grid-row: auto; }
  .cb-hp-rows .cb-hp-card { grid-template-columns: 1fr; }
  .cb-hp-hero-img img { aspect-ratio: 4 / 3; max-height: none; }

  .cb-blog-page .cb-blog-layout-inner { flex-direction: column; align-items: stretch; }
  .cb-blog-page .cb-blog-content-col,
  .cb-blog-page .cb-blog-sidebar { flex: none; max-width: none; width: 100%; }

  .cb-footer-top { grid-template-columns: 1fr; text-align: left; }
  .cb-footer-menu, .cb-footer-social { justify-content: flex-start; }
  .cb-footer-logo { display: block; }
}

@media (max-width: 767px) {
  .cb-hp-card-title,
  .cb-hp-pop-title,
  .cb-hp-pod-title,
  .cb-hp-recent-title,
  .cb-hp-feat-list-item h3,
  .cb-hp-feat-title,
  .cb-hp-rows .cb-hp-card-title,
  .cb-hp-grid-lead .cb-hp-card:first-child .cb-hp-card-title { font-size: 1.5rem; }
  .cb-blog-page .cb-blog-body,
  .cb-blog-page .cb-blog-body p,
  .cb-blog-page .cb-blog-body li,
  .cb-blog-page .cb-blog-body td { font-size: 1.125rem; }
  .cb-blog-page .cb-blog-subtitle { font-size: 1.25rem; }
  .cb-blog-page .cb-blog-body h2 { font-size: 1.875rem; }
  .cb-blog-page .cb-blog-related-grid { grid-template-columns: 1fr; }
  .cb-hp-pod-item { grid-template-columns: 84px 1fr; gap: 16px; }
  .cb-hp-pod-thumb { width: 84px; height: 84px; }
  .cb-hp-grid-lead .cb-hp-card:not(:first-child) { grid-template-columns: 96px 1fr; }
}

/* =============================================================
   Specificità: sulle pagine articolo il <body> porta la classe
   .cb-blog-body e style.css colora di azzurro ogni link
   (.cb-blog-body a). Questi selettori ripristinano bottoni e icone.
   ============================================================= */
body a.cb-hp-btn,
body a.cb-hp-btn:hover { color: var(--rd-ink); text-decoration: none; }
body a.cb-footer-social-link { color: #dfe9ef; text-decoration: none; }
body a.cb-footer-social-link:hover { color: var(--rd-azure); }

/* =============================================================
   COMMENTI AL CANTICO (single-cantico.php): solo il testo di lettura.
   Il corpo era Cormorant Garamond 18px peso 600 in 595px di colonna:
   un carattere da titoli, piccolo per il testo lungo.
   Il template e il resto della pagina non cambiano.
   ============================================================= */
.cb-single-cantico-body .cb-cantico-content-inner {
  width: min(46rem, 100%);
}
.cb-single-cantico-body .cb-cantico-body,
.cb-single-cantico-body .cb-cantico-body p,
.cb-single-cantico-body .cb-cantico-body li,
.cb-single-cantico-body .cb-cantico-body td {
  font-family: var(--rd-text);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--rd-ink);
}
.cb-single-cantico-body .cb-cantico-body p { margin: 0 0 1.2em; }
.cb-single-cantico-body .cb-cantico-body h2,
.cb-single-cantico-body .cb-cantico-body h3 {
  font-family: var(--rd-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--rd-ink);
  margin: 1.8em 0 .6em;
}
.cb-single-cantico-body .cb-cantico-body h2 { font-size: 2.25rem; }
.cb-single-cantico-body .cb-cantico-body h3 { font-size: 1.75rem; }
.cb-single-cantico-body .cb-cantico-body sup,
.cb-single-cantico-body .cb-cantico-body sup a { font-size: .75em; }
.cb-single-cantico-body .cb-cantico-body a { color: var(--rd-link); text-decoration: underline; text-underline-offset: 3px; }
.cb-single-cantico-body .cb-cantico-body figcaption { font-size: .9375rem; text-transform: none; letter-spacing: 0; }
@media (max-width: 767px) {
  .cb-single-cantico-body .cb-cantico-body,
  .cb-single-cantico-body .cb-cantico-body p,
  .cb-single-cantico-body .cb-cantico-body li { font-size: 1.125rem; }
}

/* =============================================================
   EBRAICO E TRASLITTERAZIONE
   Source Serif 4 e Cormorant non hanno l'ebraico: Noto Serif Hebrew
   è in coda a --rd-text e --rd-display, quindi il browser lo usa solo
   per le lettere ebraiche (con punti vocalici e accenti).
   Il caso trascrizione (ʾ ʿ š ḥ ṣ ô â) è coperto da Source Serif 4.
   ============================================================= */
.cb-blog-page .cb-blog-body td.has-text-align-right,
.cb-cantico-body td.has-text-align-right {
  font-size: 1.5rem;
  line-height: 1.8;
}
.cb-he {
  font-size: 1.15em;
  line-height: 1.7;
}
.cb-blog-body em, .cb-cantico-body em { font-synthesis: none; }
@media (max-width: 767px) {
  .cb-blog-page .cb-blog-body td.has-text-align-right,
  .cb-cantico-body td.has-text-align-right { font-size: 1.375rem; }
}

/* Tabella ebraico / traduzione / traslitterazione: ogni coppia di righe
   (traduzione + ebraico, traslitterazione + cella vuota) è un blocco solo.
   Si toglie il bordo tra le due righe; resta quello tra una coppia e la
   successiva. Vale solo per le tabelle che hanno celle ebraiche a destra. */
.cb-blog-body table:has(td.has-text-align-right),
.cb-cantico-body table:has(td.has-text-align-right) { border-collapse: collapse; }

.cb-blog-body table:has(td.has-text-align-right) tr:nth-child(odd) td,
.cb-cantico-body table:has(td.has-text-align-right) tr:nth-child(odd) td {
  border-bottom: 0;
  padding-bottom: .25rem;
}
.cb-blog-body table:has(td.has-text-align-right) tr:nth-child(even) td,
.cb-cantico-body table:has(td.has-text-align-right) tr:nth-child(even) td {
  border-top: 0;
  padding-top: .25rem;
}

/* =============================================================
   FOOTER nelle pagine del Cantico: stessa impaginazione del resto del
   sito (il nome a tutta larghezza), ma sul crema della sezione.
   ============================================================= */
.cb-single-cantico-body .cb-footer { background: #f5f0e8; color: var(--rd-ink); }
.cb-single-cantico-body .cb-footer-wordmark { color: var(--rd-ink); }
.cb-single-cantico-body .cb-footer-wordmark:hover { color: var(--rd-link); }
.cb-single-cantico-body .cb-footer-menu li a { color: var(--rd-ink); }
.cb-single-cantico-body .cb-footer-menu li a:hover,
.cb-single-cantico-body .cb-footer-menu li.current-menu-item a { color: var(--rd-link); }
body.cb-single-cantico-body a.cb-footer-social-link { color: var(--rd-ink); }
body.cb-single-cantico-body a.cb-footer-social-link:hover { color: var(--rd-link); }
.cb-single-cantico-body .cb-footer-copy { color: var(--rd-muted); }

/* =============================================================
   HEADER: una sola riga, allineato al contenuto
   Oltre i 1180px titolo e menu stanno affiancati; tra 922 e 1180px
   (sotto i 922 Astra passa all'hamburger) il menu va su una riga
   propria sotto il titolo, senza voci a capo.
   ============================================================= */
#masthead .site-primary-header-wrap {
  max-width: 1400px;
  padding-left: clamp(20px, 4vw, 56px);
  padding-right: clamp(20px, 4vw, 56px);
  box-sizing: border-box;
}
#ast-desktop-header .main-header-menu { flex-wrap: nowrap; }
#ast-desktop-header .main-header-menu > .menu-item > .menu-link { white-space: nowrap; }
#masthead .ast-mobile-svg { fill: var(--rd-ink); }

@media (min-width: 922px) and (max-width: 1360px) {
  #ast-desktop-header .main-header-menu > .menu-item > .menu-link {
    font-size: .9375rem;
    padding-left: .6em;
    padding-right: .6em;
  }
  .site-branding .site-title a,
  .ast-site-identity .site-title a { font-size: 1.75rem; }
}
@media (min-width: 922px) and (max-width: 1180px) {
  #ast-desktop-header .ast-builder-grid-row { grid-template-columns: 1fr; row-gap: 0; }
  #ast-desktop-header .site-header-primary-section-left { padding-top: 14px; }
  #ast-desktop-header .site-header-primary-section-right { justify-content: flex-start; padding-bottom: 6px; }
  #ast-desktop-header .main-header-menu > .menu-item:first-child > .menu-link { padding-left: 0; }
}

/* =============================================================
   LOGO: lucerna + nome al posto del testo in intestazione e footer.
   Il testo resta nel codice (lettori di schermo, motori di ricerca).
   I file SVG stanno nella cartella del tema, accanto a questo CSS.
   ============================================================= */
#masthead .site-branding .site-title a,
#masthead .ast-site-identity .site-title a {
  display: block;
  width: 384px;
  height: 60px;
  background: url("logo-communio-biblica-compatto.svg?v=2") left center / contain no-repeat;
  font-size: 0;
  line-height: 0;
  color: transparent;
  overflow: hidden;
  text-indent: -9999px;
}
@media (min-width: 922px) and (max-width: 1180px) {
  #masthead .site-branding .site-title a,
  #masthead .ast-site-identity .site-title a { width: 332px; height: 52px; }
}
@media (max-width: 921px) {
  #masthead .site-branding .site-title a,
  #masthead .ast-site-identity .site-title a { width: 269px; height: 42px; }
}
.cb-footer-logo a { display: block; }
.cb-footer-wordmark {
  width: min(720px, 100%);
  aspect-ratio: 633 / 115;
  background: url("logo-communio-biblica-per-sfondo-scuro.svg?v=2") left center / contain no-repeat;
  font-size: 0;
  line-height: 0;
  color: transparent;
  overflow: hidden;
  text-indent: -9999px;
}
.cb-footer-wordmark:hover { color: transparent; opacity: .85; }
.cb-single-cantico-body .cb-footer-wordmark { background-image: url("logo-communio-biblica.svg?v=2"); color: transparent; }
.cb-single-cantico-body .cb-footer-wordmark:hover { color: transparent; }
