/*
Theme Name: Carla Pinna
Theme URI: https://carlapinna.com
Author: Carla Pinna
Author URI: https://carlapinna.com
Description: Tema a blocchi (FSE) bilingue IT/EN per il sito personale di Carla Pinna — consulente AXO (Agentic Experience Optimization). Design minimale, scientifico, umano. Lato + Indigo/Tangerine/Charcoal/Paper. Mobile-first, WCAG AA+.
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 7.4
Version: 1.4.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: carlapinna
Tags: full-site-editing, block-styles, blog, one-column, translation-ready, accessibility-ready
*/

/* =========================================================================
   1. DESIGN TOKENS
   ========================================================================= */
:root {
  /* Brand colors */
  --cp-indigo:        #380788; /* testi, titoli, link, bottoni */
  --cp-tangerine:     #FFA800; /* SOLO accenti/segni, mai testo informativo su chiaro */
  --cp-charcoal:      #241F31; /* testo corrente */
  --cp-paper:         #F7F3EC; /* sfondo caldo, bg pagina default */

  /* Derivati funzionali */
  --cp-bg:            var(--cp-paper);
  --cp-surface:       #FFFFFF;
  --cp-text:          var(--cp-charcoal);
  --cp-heading:       var(--cp-indigo);
  --cp-accent:        var(--cp-tangerine);

  /* Bordi e regole */
  --cp-rule:          rgba(56, 7, 136, 0.15);
  --cp-border:        rgba(56, 7, 136, 0.20);
  --cp-border-strong: rgba(56, 7, 136, 0.30);

  /* Stati */
  --cp-link:          var(--cp-indigo);
  --cp-link-hover:    var(--cp-indigo);
  --cp-button-bg:     var(--cp-indigo);
  --cp-button-text:   #FFFFFF;
  --cp-button-hover-bg: #2A0466;

  /* Code background (Paper scuro) */
  --cp-code-bg:       #EAE3D3;

  /* Spaziatura (multipli di 4px) */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 20px; --sp-6: 24px; --sp-8: 32px; --sp-10: 40px;
  --sp-12: 48px; --sp-16: 64px; --sp-20: 80px; --sp-24: 96px;

  /* Container */
  --cp-content: 680px;
  --cp-content-wide: 960px;
  --cp-hero-width: 720px;

  /* Button radius — decisione Carla: 4px intermedio */
  --cp-radius: 4px;

  --cp-font: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

/* =========================================================================
   2. RESET / BASE
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--cp-font);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--cp-text);
  background-color: var(--cp-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--cp-font);
  color: var(--cp-heading);
  font-weight: 700;
  margin: 0;
}

p { margin: 0; }

a { color: var(--cp-link); text-decoration: none; }
a:hover { color: var(--cp-link-hover); }

/* Focus visibile globale — outline 2px Tangerine, offset 2px */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.cp-button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--cp-tangerine);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--cp-indigo);
  color: #fff;
  padding: 12px 16px;
  z-index: 1000;
  border-radius: var(--cp-radius);
}
.skip-link:focus { left: 16px; top: 16px; color: #fff; }

/* =========================================================================
   3. LAYOUT CONTAINER
   ========================================================================= */
.cp-container {
  width: 100%;
  max-width: var(--cp-content);
  margin-inline: auto;
  padding-inline: 24px;
}
.cp-container--hero { max-width: calc(var(--cp-hero-width) + 48px); }
.cp-container--wide { max-width: calc(var(--cp-content-wide) + 48px); }

@media (max-width: 1024px) { .cp-container { padding-inline: 32px; } }
@media (max-width: 768px)  { .cp-container { padding-inline: 20px; } }

/* =========================================================================
   4. HEADER
   ========================================================================= */
.cp-header {
  background: var(--cp-paper);
  border-bottom: 0.5px solid var(--cp-rule);
}
.cp-header__inner {
  max-width: var(--cp-content-wide);
  margin-inline: auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cp-logo { display: inline-flex; align-items: center; line-height: 0; }
.cp-logo img, .cp-logo svg { height: 28px; width: auto; }

.cp-nav-area { display: flex; align-items: center; gap: 24px; }

.cp-nav { display: flex; align-items: center; gap: 24px; }
.cp-nav a {
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--cp-indigo);
  text-decoration: none;
  transition: opacity 0.15s ease;
}
.cp-nav a:hover { opacity: 0.7; }
.cp-nav a[aria-current="page"],
.cp-nav a.current { font-weight: 700; text-decoration: underline; text-decoration-color: var(--cp-tangerine); text-underline-offset: 6px; text-decoration-thickness: 2px; }

/* CTA Contattami — bottone secondario */
.cp-cta-nav {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  color: var(--cp-indigo);
  border: 1px solid var(--cp-indigo);
  border-radius: var(--cp-radius);
  padding: 8px 16px;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.cp-cta-nav:hover { background: var(--cp-indigo); color: #fff; }

/* Language switcher */
.cp-lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 400;
  color: var(--cp-indigo);
  white-space: nowrap;
}
.cp-lang a { color: var(--cp-indigo); text-decoration: none; }
.cp-lang a:hover { text-decoration: underline; }
.cp-lang .current { font-weight: 700; }
.cp-lang .sep { opacity: 0.4; }

/* Hamburger (mobile) */
.cp-burger {
  display: none;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: var(--cp-indigo);
  width: 32px; height: 32px;
}
.cp-burger svg { width: 24px; height: 24px; display: block; }

/* Mobile drawer */
.cp-drawer {
  position: fixed;
  inset: 0;
  background: var(--cp-paper);
  box-shadow: -4px 0 24px rgba(56,7,136,0.10);
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
  padding: 24px 24px 48px;
  overflow-y: auto;
}
.cp-drawer.open { transform: translateX(0); }
.cp-drawer__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.cp-drawer__close { background: none; border: none; color: var(--cp-indigo); cursor: pointer; width: 32px; height: 32px; padding: 4px; }
.cp-drawer__close svg { width: 24px; height: 24px; display: block; }
.cp-drawer nav { display: flex; flex-direction: column; gap: 24px; }
.cp-drawer nav a {
  font-size: 20px;
  font-weight: 400;
  color: var(--cp-indigo);
  text-decoration: none;
}
.cp-drawer nav a[aria-current="page"] { font-weight: 700; }
.cp-drawer .cp-cta-nav { align-self: flex-start; font-size: 16px; padding: 12px 24px; margin-top: 8px; }
.cp-drawer .cp-lang { margin-top: 32px; font-size: 15px; }

/* La nav collassa in hamburger a <=1024px: le voci sono più lunghe
   ("AXO — la disciplina", "Il manifesto dell'AXO") e numerose. */
@media (max-width: 1024px) {
  .cp-nav { display: none; }
  .cp-header .cp-cta-nav.cp-cta-desktop { display: none; }
  .cp-burger { display: inline-flex; align-items: center; justify-content: center; }
  .cp-nav-area { gap: 16px; }
}
@media (max-width: 768px) {
  .cp-logo img, .cp-logo svg { height: 24px; }
}

/* =========================================================================
   5. FOOTER
   ========================================================================= */
.cp-footer {
  background: var(--cp-paper);
  border-top: 0.5px solid var(--cp-rule);
  padding: 64px 0 32px;
}
.cp-footer__inner {
  max-width: var(--cp-content);
  margin-inline: auto;
  padding-inline: 24px;
  text-align: center;
}
.cp-footer__contact { font-size: 18px; font-weight: 400; color: var(--cp-charcoal); margin-bottom: 8px; }
.cp-footer__email { font-size: 18px; font-weight: 700; color: var(--cp-indigo); text-decoration: none; }
.cp-footer__email:hover { text-decoration: underline; text-underline-offset: 3px; }

.cp-footer__social { margin-top: 16px; font-size: 14px; }
.cp-footer__social a { color: var(--cp-indigo); font-weight: 700; text-decoration: none; }
.cp-footer__social a:hover { text-decoration: underline; text-underline-offset: 3px; }

.cp-footer__links {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  font-size: 14px;
}
.cp-footer__links a { color: var(--cp-indigo); text-decoration: none; }
.cp-footer__links a:hover { text-decoration: underline; }
.cp-footer__links .sep { opacity: 0.4; }

.cp-footer__legal {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  font-size: 13px;
}
.cp-footer__legal a { color: var(--cp-charcoal); opacity: 0.8; text-decoration: none; }
.cp-footer__legal a:hover { opacity: 1; text-decoration: underline; }
.cp-footer__legal .sep { opacity: 0.4; }

.cp-footer__bottom {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 0.5px solid var(--cp-rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.cp-footer__copy { font-size: 13px; color: var(--cp-charcoal); opacity: 0.7; }

@media (max-width: 768px) {
  .cp-footer__links { flex-direction: column; gap: 14px; }
  .cp-footer__links .sep { display: none; }
  .cp-footer__bottom { flex-direction: column; text-align: center; }
}

/* =========================================================================
   6. BUTTONS / CTA
   ========================================================================= */
.cp-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cp-button-bg);
  color: var(--cp-button-text);
  padding: 14px 28px;
  border: none;
  border-radius: var(--cp-radius);
  font-family: var(--cp-font);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease;
}
.cp-button:hover { background: var(--cp-button-hover-bg); color: #fff; }

.cp-textlink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--cp-indigo);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}
.cp-textlink:hover { text-decoration: underline; text-underline-offset: 3px; }

.cp-cta-cluster { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }

/* =========================================================================
   7. HOME
   ========================================================================= */
.cp-hero {
  background: var(--cp-paper);
  padding: 96px 0 80px;
}
.cp-hero__inner {
  max-width: var(--cp-hero-width);
  margin-inline: auto;
  padding-inline: 24px;
  text-align: left;
}
.cp-hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--cp-indigo);
  margin-bottom: 32px;
}
.cp-hero__deck {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--cp-charcoal);
  max-width: 600px;
  margin-bottom: 40px;
}

.cp-home-body {
  background: var(--cp-surface); /* bianco — decisione Carla */
  padding: 96px 0;
  border-top: 0.5px solid var(--cp-rule);
  border-bottom: 0.5px solid var(--cp-rule);
}
.cp-home-body__inner { max-width: var(--cp-content); margin-inline: auto; padding-inline: 24px; }
.cp-home-body p { font-size: 17px; line-height: 1.7; color: var(--cp-charcoal); margin-bottom: 20px; }
.cp-home-body p:last-child { margin-bottom: 0; }
.cp-home-body .cp-claim {
  font-size: 24px;
  font-weight: 700;
  color: var(--cp-indigo);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 8px 0 20px;
}

@media (max-width: 768px) {
  .cp-hero { padding: 64px 0 48px; }
  .cp-hero__deck { font-size: 16px; }
  .cp-home-body { padding: 64px 0; }
  .cp-home-body p { font-size: 16px; }
}

/* Sottolineatura tangerine (segno, non colore di testo) su parola chiave dell'H1 */
.cp-mark {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--cp-tangerine);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
  text-decoration-skip-ink: none;
}

/* CTA secondaria dopo il corpo bianco */
.cp-home-body__cta { margin-top: 40px; }

/* Massima / citazione prima del footer */
.cp-maxim {
  background: var(--cp-paper);
  padding: 80px 0;
  text-align: center;
}
.cp-maxim__inner { max-width: 680px; margin-inline: auto; padding-inline: 24px; }
.cp-maxim__mark {
  display: block;
  width: 56px; height: 4px;
  background: var(--cp-tangerine);
  border-radius: 2px;
  margin: 0 auto 32px;
}
.cp-maxim p {
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 700;
  color: var(--cp-indigo);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
.cp-maxim__cta { align-items: center; margin-top: 40px; }
@media (max-width: 768px) { .cp-maxim { padding: 64px 0; } }

/* =========================================================================
   8. AXO PAGE
   ========================================================================= */
.cp-page { padding: 96px 0 0; background: var(--cp-paper); }
.cp-page__hero { max-width: var(--cp-hero-width); margin-inline: auto; padding-inline: 24px; }
.cp-page__body { max-width: var(--cp-content); margin-inline: auto; padding-inline: 24px; padding-bottom: 96px; }

.cp-axo h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--cp-indigo);
  margin-bottom: 24px;
}
.cp-axo__deck {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--cp-charcoal);
  max-width: 600px;
}
.cp-rule { border: none; border-top: 0.5px solid var(--cp-rule); height: 0; margin: 0; }
.cp-axo__deck-rule { margin-top: 52px; margin-bottom: 52px; }

.cp-axo p { font-size: 17px; font-weight: 400; line-height: 1.875; color: var(--cp-charcoal); margin-bottom: 18px; }
.cp-scene { margin-top: 64px; }
.cp-scene:first-child { margin-top: 0; }
.cp-axo__scenes-rule { margin-top: 64px; margin-bottom: 52px; }

/* Diagram */
.axo-diagram { margin: 36px 0; padding: 0; border: none; }
.axo-diagram figcaption {
  font-family: var(--cp-font);
  font-size: 13px;
  color: var(--cp-charcoal);
  opacity: 0.75;
  text-align: center;
  margin-top: 16px;
  line-height: 1.5;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

/* Bridge */
.cp-bridge { border-top: 0.5px solid var(--cp-rule); padding-top: 36px; margin-top: 52px; }
.cp-bridge p { font-size: 17px; font-weight: 400; color: var(--cp-charcoal); margin-bottom: 14px; }
.cp-bridge a { font-size: 16px; font-weight: 700; color: var(--cp-indigo); text-decoration: none; display: inline-flex; gap: 6px; }
.cp-bridge a:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 768px) {
  .cp-page { padding-top: 64px; }
  .cp-page__body { padding-bottom: 64px; }
}

/* =========================================================================
   8b. MANIFESTO
   ========================================================================= */
.cp-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cp-charcoal);
  margin-bottom: 12px;
}
.cp-manifesto .cp-page__hero h1 { margin-bottom: 24px; }

.cp-principle { margin-top: 56px; }
.cp-principle:first-of-type { margin-top: 0; }
.cp-principle__num {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--cp-indigo);
  margin: 0 0 8px;
}
.cp-principle__num::before {
  content: "";
  display: inline-block;
  width: 18px; height: 2px;
  background: var(--cp-tangerine);
  vertical-align: middle;
  margin-right: 10px;
  border-radius: 2px;
}
.cp-principle__title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--cp-indigo);
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.cp-manifesto__closing {
  border-top: 0.5px solid var(--cp-rule);
  margin-top: 64px;
  padding-top: 48px;
}
.cp-manifesto__closing p {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--cp-indigo);
  margin: 0;
}
@media (max-width: 768px) {
  .cp-principle { margin-top: 48px; }
  .cp-principle__title { font-size: 22px; }
  .cp-manifesto__closing p { font-size: 18px; }
}

/* =========================================================================
   9. CHI SONO / ABOUT
   ========================================================================= */
.cp-about h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--cp-indigo);
  margin-bottom: 12px;
}
.cp-about__subtitle { font-size: 18px; font-weight: 400; line-height: 1.5; color: var(--cp-charcoal); }
.cp-about__rule { margin: 48px 0; }
.cp-about h2 { font-size: 28px; font-weight: 700; line-height: 1.25; color: var(--cp-indigo); margin-bottom: 32px; letter-spacing: -0.01em; }
.cp-about p { font-size: 17px; font-weight: 400; line-height: 1.8; color: var(--cp-charcoal); margin-bottom: 24px; }
.cp-about p:last-of-type { margin-bottom: 0; }
.cp-about__cta { padding-top: 48px; border-top: 0.5px solid var(--cp-rule); margin-top: 64px; }
.cp-about__cta p { font-size: 17px; color: var(--cp-charcoal); margin-bottom: 16px; }

/* =========================================================================
   10. BLOG
   ========================================================================= */
.cp-blog-archive h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; color: var(--cp-indigo); margin-bottom: 12px; letter-spacing: -0.02em; }
.cp-blog-archive__subtitle { font-size: 18px; color: var(--cp-charcoal); margin-bottom: 16px; }

.cp-post-list { list-style: none; margin: 0; padding: 0; }
.cp-post-item { padding: 0; }
.cp-post-item + .cp-post-item { border-top: 0.5px solid var(--cp-rule); margin-top: 32px; padding-top: 32px; }
.cp-post-item h2, .cp-post-item .cp-post-title { font-size: 22px; font-weight: 700; line-height: 1.3; margin-bottom: 8px; }
.cp-post-item h2 a, .cp-post-item .cp-post-title a { color: var(--cp-indigo); text-decoration: none; }
.cp-post-item h2 a:hover, .cp-post-item .cp-post-title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.cp-post-meta { font-size: 13px; color: var(--cp-charcoal); opacity: 0.7; margin-bottom: 12px; }
.cp-post-excerpt { font-size: 16px; line-height: 1.6; color: var(--cp-charcoal); margin-bottom: 12px; }
.cp-post-readmore { font-size: 14px; font-weight: 700; color: var(--cp-indigo); text-decoration: none; }
.cp-post-readmore:hover { text-decoration: underline; }

/* Query Loop (block) — lista articoli */
.wp-block-post-template { list-style: none; margin: 0; padding: 0; }
.wp-block-post-template.is-layout-flow > li,
.wp-block-post-template > li { margin: 0; }
.wp-block-post-template > li + li {
  border-top: 0.5px solid var(--cp-rule);
  margin-top: 32px;
  padding-top: 32px;
}
.cp-post-item .cp-post-title { margin-bottom: 8px; line-height: 1.3; }
.cp-post-item .cp-post-title a { color: var(--cp-indigo); text-decoration: none; }
.cp-post-item .cp-post-title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.cp-post-item .cp-post-meta { font-size: 13px; color: var(--cp-charcoal); opacity: 0.7; margin: 0 0 12px; }
.cp-post-item .cp-post-excerpt { font-size: 16px; line-height: 1.6; color: var(--cp-charcoal); margin: 0; }
.cp-post-item .cp-post-excerpt .wp-block-post-excerpt__more-text,
.cp-post-item .cp-post-excerpt a { font-size: 14px; font-weight: 700; color: var(--cp-indigo); }

.cp-pagination { margin-top: 48px; text-align: center; font-size: 14px; color: var(--cp-indigo); }
.cp-pagination .wp-block-query-pagination-previous,
.cp-pagination .wp-block-query-pagination-next,
.cp-pagination .page-numbers { color: var(--cp-indigo); text-decoration: none; }
.cp-pagination .wp-block-query-pagination-numbers .current { font-weight: 700; }
.cp-pagination a, .cp-pagination .page-numbers { color: var(--cp-indigo); text-decoration: none; padding: 0 8px; }
.cp-pagination .current { font-weight: 700; }
.cp-pagination a:hover { text-decoration: underline; }

/* Blog single */
.cp-single__header { max-width: var(--cp-hero-width); margin-inline: auto; padding-inline: 24px; }
.cp-single__header h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; line-height: 1.2; color: var(--cp-indigo); margin-bottom: 12px; letter-spacing: -0.02em; }
.cp-single__meta { font-size: 13px; color: var(--cp-charcoal); opacity: 0.7; }
.cp-single__body { max-width: var(--cp-content); margin-inline: auto; padding-inline: 24px; margin-top: 48px; }
.cp-single__body p { font-size: 17px; font-weight: 400; line-height: 1.8; color: var(--cp-charcoal); margin-bottom: 24px; }
.cp-single__body h2 { font-size: 24px; font-weight: 700; color: var(--cp-indigo); margin-top: 48px; margin-bottom: 16px; }
.cp-single__body h3 { font-size: 18px; font-weight: 700; color: var(--cp-indigo); margin-top: 32px; margin-bottom: 12px; }
.cp-single__body blockquote {
  font-size: 18px; font-style: italic; font-weight: 400; color: var(--cp-indigo);
  border-left: 3px solid var(--cp-tangerine); padding-left: 24px; margin: 24px 0;
}
.cp-single__body a { color: var(--cp-indigo); font-weight: 700; text-decoration: underline; }
.cp-single__body ul, .cp-single__body ol { padding-left: 24px; margin: 16px 0; }
.cp-single__body li { margin-bottom: 8px; }
.cp-single__body code {
  background: var(--cp-code-bg);
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  font-size: 15px;
}
.cp-single__body img { border-radius: var(--cp-radius); }
.cp-single__end { max-width: var(--cp-content); margin: 64px auto 0; padding: 48px 24px 0; border-top: 0.5px solid var(--cp-rule); }
.cp-single__end a { font-weight: 700; color: var(--cp-indigo); }

/* =========================================================================
   10b. PAGINE LEGALI (Privacy / Cookie) — blocchi nativi
   ========================================================================= */
.cp-legal { padding-top: 96px; padding-bottom: 96px; }
.cp-legal h1 { letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 24px; }
.cp-legal h2 { margin-top: 48px; margin-bottom: 16px; line-height: 1.25; letter-spacing: -0.01em; }
.cp-legal h3 { margin-top: 32px; margin-bottom: 12px; }
.cp-legal p { line-height: 1.8; margin-bottom: 20px; }
.cp-legal ul, .cp-legal ol { padding-left: 24px; margin: 16px 0; }
.cp-legal li { margin-bottom: 10px; line-height: 1.7; }
.cp-legal a { color: var(--cp-indigo); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.cp-legal .cp-legal__meta { font-size: 14px; color: var(--cp-charcoal); opacity: 0.7; margin-bottom: 32px; }
.cp-legal .wp-block-table { margin: 16px 0 8px; font-size: 15px; }
.cp-legal .wp-block-table table { border-collapse: collapse; width: 100%; }
.cp-legal .wp-block-table th,
.cp-legal .wp-block-table td { border: 0.5px solid var(--cp-border); padding: 10px 12px; text-align: left; vertical-align: top; }
.cp-legal .wp-block-table th { color: var(--cp-indigo); font-weight: 700; }
.cp-legal .wp-element-caption { font-size: 13px; opacity: 0.7; margin-top: 8px; }
@media (max-width: 768px) { .cp-legal { padding-top: 64px; padding-bottom: 64px; } }

/* =========================================================================
   11. UTILITIES
   ========================================================================= */
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.cp-pb-96 { padding-bottom: 96px; }
@media (max-width: 768px) { .cp-pb-96 { padding-bottom: 64px; } }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
