/*
 * Studio Legale Saltelli & Partners — Homepage sections
 * Estratto da .claude/knowledge/design/sessione-1/homepage-{desktop,mobile}.jsx
 *
 * Mobile-first. Tutti gli override desktop in @media (min-width: 768px+).
 * Naming: .sl-section--<nome> + componenti BEM-ish (__elem, --modifier).
 *
 * Ordine sezioni (Frame 1 — Homepage):
 *   1. .sl-header              — sticky, transparent → solid on scroll (.is-scrolled)
 *   2. .sl-hero                — 100vh, headline display + colophon a destra
 *   3. .sl-areas               — 19 aree, sticky preview, filter pillole
 *   4. .sl-studio              — prose editoriale + drop-cap + plate facciata
 *   5. .sl-team                — 4 avvocati, asimmetrici desktop / stack mobile
 *   6. .sl-cases               — casi rappresentativi tipografici
 *   7. .sl-press               — strip earned media su --surface
 *   8. .sl-contact             — contatti tipografici grandi
 *   9. .sl-footer              — tema scuro --primary, 3 colonne desktop
 */

/* =========================================================
 * 0. Wrapper + reveal scaffolding
 * ========================================================= */
.sl-revealable {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 700ms var(--ease-editorial),
    transform 700ms var(--ease-editorial);
  will-change: opacity, transform;
}
.sl-revealable.sl-revealed,
.sl-revealable.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
 * 1. HEADER
 * ========================================================= */
/* FIX F5 — Header sticky transition snappy
   v0.8.1 percepito >1s a state-change. Transizione passa da 300ms (--dur-base)
   a 180ms con curve ease-out (no cubic-bezier editorial) per snap netto.
   Aggiunto box-shadow micro per definizione visiva quando scrolled. */
.sl-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 180ms ease-out,
              border-color 180ms ease-out,
              box-shadow 180ms ease-out;
  will-change: background-color;
}
.sl-header.is-scrolled,
.sl-header[data-scrolled="true"] {
  background: var(--background);
  border-bottom-color: var(--border);
  box-shadow: 0 1px 0 rgba(27, 43, 75, 0.04);
}
.sl-header__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.sl-header__brand-title {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--primary);
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.sl-header__brand-sub {
  font-size: 10px;
  margin-top: 2px;
}
.sl-header__nav { display: none; }
.sl-header__phone {
  color: var(--primary);
  font-size: 11px;
}
.sl-header__menu-btn {
  background: none;
  border: 0;
  padding: 4px;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.sl-header__menu-btn span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--text);
}

@media (min-width: 1024px) {
  .sl-header__inner {
    /* D2 fidelity — JSX exact: padding fisso 24px 96px desktop (no clamp).
       Mobile resta padding 16px 20px del base. */
    padding: 24px 96px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 48px;
    align-items: center;
  }
  .sl-header__brand-title { font-size: 22px; }
  .sl-header__nav {
    display: flex;
    gap: 40px;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
  }
  .sl-header__phone { font-size: 12px; }
  .sl-header__menu-btn { display: none; }
}

/* Mobile menu overlay */
.sl-mobile-menu {
  display: none;
  position: fixed;
  inset: 60px 0 0 0;
  background: var(--background);
  z-index: 40;
  padding: 32px 20px;
  border-top: 1px solid var(--border);
}
.sl-mobile-menu.is-open { display: block; }
.sl-mobile-menu a {
  display: block;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--primary);
  letter-spacing: -0.01em;
}

/* =========================================================
 * 2. HERO
 * ========================================================= */
.sl-hero {
  position: relative;
  min-height: 100vh;
  padding-block: clamp(48px, 8vh, 120px);
  margin: 0 auto;
  overflow: visible;
}
.sl-hero__eyebrow { margin-bottom: 40px; font-size: 10px; }
.sl-hero__headline {
  font-size: 64px;
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-weight: 400;
  margin-bottom: 32px;
  font-family: var(--font-display);
  color: var(--primary);
}
.sl-hero__headline .sl-word {
  display: inline-block;
  margin-right: 12px;
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 700ms var(--ease-editorial),
    transform 700ms var(--ease-editorial);
}
.sl-hero__headline .sl-word.is-revealed { opacity: 1; transform: translateY(0); }
.sl-hero__headline .sl-word:nth-child(2) { transition-delay: 80ms; }
.sl-hero__headline .sl-word:nth-child(3) { transition-delay: 160ms; }
.sl-hero__headline .sl-word:nth-child(4) { transition-delay: 240ms; }

.sl-hero__lede {
  font-family: var(--font-display);
  font-size: 17px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 40px;
  max-width: 44ch;
}
.sl-hero__cta { display: inline-block; }
.sl-hero__colophon {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.sl-hero__colophon-label { margin-bottom: 6px; font-size: 9px; }
.sl-hero__colophon-body { font-size: 12px; line-height: 1.5; }

.sl-hero__scroll-indicator { display: none; }

@media (min-width: 1024px) {
  .sl-hero {
    min-height: 820px;
    /* F06 v0.14 — padding-inline azzerato: .sl-hero__inner ha class .sl-container
       (front-page.php:65) che già applica padding-inline: var(--container-pad).
       Doppio padding 72+72=144px → homepage scostata di ~72px vs altre pagine.
       F01 v0.14 — display:grid rimosso (collide con .sl-hero__inner 8fr/4fr).
       Layout grid resta ESCLUSIVAMENTE su .sl-hero__inner (riga 957 + 2820). */
    padding: 120px 0 80px;
  }
  .sl-hero__eyebrow { margin-bottom: 64px; }
  .sl-hero__headline {
    font-size: clamp(80px, 9vw, 132px);
    letter-spacing: -0.035em;
    margin-bottom: 56px;
  }
  .sl-hero__headline .sl-word {
    margin-right: 24px;
    transform: translateY(40px);
  }
  .sl-hero__lede { font-size: 22px; margin-bottom: 64px; }
  .sl-hero__colophon {
    align-self: end;
    border-top: 0;
    border-left: 1px solid var(--border);
    padding-left: 32px;
    padding-top: 0;
    margin-top: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    font-size: 13px;
    color: var(--text);
    line-height: 1.7;
  }
  .sl-hero__colophon-label { margin-bottom: 16px; }
  .sl-hero__colophon-body { font-size: 13px; line-height: 1.7; }
  .sl-hero__scroll-indicator {
    display: flex;
    position: absolute;
    bottom: 32px;
    left: var(--container-pad);
    align-items: center;
    gap: 12px;
  }
  .sl-hero__scroll-indicator::before {
    content: "";
    display: block;
    width: 1px;
    height: 32px;
    background: var(--text-muted);
  }
}

/* =========================================================
 * 3. AREAS — 19 aree di pratica
 * ========================================================= */
.sl-areas {
  /* v0.14.1 — padding-block ONLY: padding-inline e max-width sono delegati a .sl-container interno
     (front-page.php:120, archive-competenza.php:30). Era `padding: 80px 20px` hardcoded → conflitto
     col `--container-pad` clamp(24,5vw,96). Override successivo a riga 2761 ora ridondante ma lasciato. */
  padding-block: 80px;
}
.sl-areas__head {
  display: grid;
  gap: 16px;
  margin-bottom: 32px;
}
.sl-areas__title {
  font-size: 40px;
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-family: var(--font-display);
  color: var(--primary);
}
.sl-areas__title em {
  font-style: italic;
  color: var(--text-muted);
}
.sl-areas__filters {
  display: none;
}
.sl-areas__filter-btn {
  background: none;
  border: 0;
  cursor: pointer;
  padding: 4px 0;
  color: var(--text-muted);
  border-bottom: 1px solid transparent;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color var(--dur-fast) var(--ease-editorial),
              border-color var(--dur-fast) var(--ease-editorial);
}
.sl-areas__filter-btn.is-active {
  color: var(--primary);
  border-bottom-color: var(--accent);
}
.sl-areas__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
/* mobile: layout area più stretto */
.sl-areas .sl-area {
  grid-template-columns: 40px 1fr auto;
  padding: 20px 0;
  gap: 16px;
}
.sl-areas .sl-area .sl-area__num { font-size: 10px; }
.sl-areas .sl-area .sl-area__title { font-size: 22px; }
.sl-areas__preview { display: none; }
.sl-areas__more { padding-top: 32px; }

@media (min-width: 768px) {
  .sl-areas {
    padding: 128px var(--container-pad);
  }
  .sl-areas__head {
    grid-template-columns: auto 1fr;
    gap: 32px;
    align-items: baseline;
    margin-bottom: 64px;
  }
  .sl-areas__title { font-size: clamp(48px, 5vw, 72px); }
  .sl-areas__filters {
    display: flex;
    gap: 32px;
    margin-bottom: 48px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
  }
  .sl-areas__layout {
    display: grid;
    grid-template-columns: 8fr 4fr;
    gap: 64px;
    align-items: start;
  }
  .sl-areas .sl-area {
    grid-template-columns: 64px 1fr auto;
    padding: 28px 0;
    gap: 32px;
  }
  .sl-areas .sl-area .sl-area__num { font-size: 12px; }
  .sl-areas .sl-area .sl-area__title { font-size: clamp(28px, 3vw, 40px); }
  .sl-areas__preview {
    display: block;
    position: sticky;
    top: 120px;
    padding-top: 28px;
  }
  .sl-areas__preview-empty {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
    font-style: italic;
    font-family: var(--font-display);
  }
  .sl-areas__preview-cat { margin-bottom: 16px; }
  .sl-areas__preview-lead {
    font-family: var(--font-display);
    font-size: 28px;
    line-height: 1.25;
    color: var(--primary);
    margin-bottom: 16px;
    font-style: italic;
  }
  .sl-areas__more { display: none; }
}

/* =========================================================
 * 4. STUDIO — prose editoriale
 * ========================================================= */
.sl-studio {
  /* v0.14.1 — padding-block ONLY (delegato a .sl-container interno) */
  padding-block: 80px;
}
.sl-studio__head {
  display: grid;
  gap: 16px;
  margin-bottom: 32px;
}
.sl-studio__title {
  font-size: 36px;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-family: var(--font-display);
  color: var(--primary);
}
.sl-studio__prose {
  font-size: 16px;
  line-height: 1.7;
  display: grid;
  gap: 16px;
}
.sl-studio__prose p { margin: 0; }
.sl-studio__dropcap {
  font-family: var(--font-display);
  font-size: 60px;
  float: left;
  line-height: 0.85;
  margin-right: 12px;
  margin-top: 6px;
  color: var(--primary);
}
.sl-studio__plate {
  margin-top: 40px;
  height: 240px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.sl-studio__plate-label {
  position: absolute;
  top: 12px;
  left: 16px;
}
.sl-studio__plate-label--right {
  left: auto;
  right: 16px;
}
.sl-studio__plate-bottom {
  position: absolute;
  bottom: 12px;
  right: 16px;
}
.sl-studio__plate-caption {
  font-family: var(--font-display);
  font-size: 18px;
  font-style: italic;
  color: var(--text-muted);
  text-align: center;
}
.sl-studio__plate-meta { margin-top: 4px; text-align: center; }

@media (min-width: 1024px) {
  .sl-studio { padding-block: 128px; }
  .sl-studio__head {
    grid-template-columns: auto 1fr;
    gap: 32px;
    margin-bottom: 56px;
  }
  .sl-studio__title { font-size: clamp(48px, 5vw, 72px); }
  .sl-studio__prose {
    max-width: 640px;
    margin-left: 20%;
    font-size: 19px;
    line-height: 1.75;
    gap: 24px;
  }
  .sl-studio__dropcap {
    font-size: 84px;
    margin-right: 16px;
    margin-top: 8px;
  }
  .sl-studio__plate {
    margin-top: 96px;
    height: 480px;
  }
  .sl-studio__plate-label { top: 24px; left: 32px; }
  .sl-studio__plate-bottom { bottom: 24px; right: 32px; }
  .sl-studio__plate-caption { font-size: 32px; margin-bottom: 8px; }
}

/* =========================================================
 * 5. TEAM — Avvocati
 * ========================================================= */
.sl-team {
  /* v0.14.1 — padding-block ONLY (delegato a .sl-container interno) */
  padding-block: 80px;
}
.sl-team__head {
  display: grid;
  gap: 16px;
  margin-bottom: 48px;
}
.sl-team__title {
  font-size: 40px;
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-family: var(--font-display);
  color: var(--primary);
}
.sl-team__title em { font-style: italic; color: var(--text-muted); }
.sl-team__grid {
  display: grid;
  gap: 56px;
}
.sl-lawyer { /* layout default mobile */ }
.sl-lawyer:nth-child(odd) { margin-right: 32px; }
.sl-lawyer:nth-child(even) { margin-left: 32px; }
.sl-lawyer__portrait {
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #c8c5be 0%, #6e6c66 100%);
  margin-bottom: 16px;
  position: relative;
  border: 1px solid var(--border);
  overflow: hidden;
  filter: grayscale(1) contrast(1.05);
  transition:
    filter 600ms var(--ease-editorial),
    background 600ms var(--ease-editorial);
}
.sl-lawyer:hover .sl-lawyer__portrait {
  filter: grayscale(0);
  background: linear-gradient(135deg, #d4c8b0 0%, #8a7a5e 100%);
}
.sl-lawyer__portrait-meta {
  position: absolute;
  bottom: 12px;
  left: 12px;
  color: rgba(255, 255, 255, 0.85);
}
.sl-lawyer__role { margin-bottom: 6px; font-size: 10px; }
.sl-lawyer__name {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.1;
  color: var(--primary);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
  font-weight: 400;
}
.sl-lawyer__specs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.sl-lawyer__spec {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 4px 8px;
}

@media (min-width: 1024px) {
  .sl-team { padding-block: 128px; }
  .sl-team__head {
    grid-template-columns: auto 1fr;
    gap: 32px;
    margin-bottom: 96px;
  }
  .sl-team__title { font-size: clamp(48px, 5vw, 72px); }
  .sl-team__grid {
    grid-template-columns: repeat(12, 1fr);
    gap: 32px;
    row-gap: 96px;
  }
  /* asimmetria — match con homepage-desktop.jsx (col / span / offset) */
  .sl-lawyer { margin: 0; }
  .sl-lawyer:nth-child(odd),
  .sl-lawyer:nth-child(even) { margin: 0; }
  .sl-lawyer:nth-child(1) { grid-column: 1 / span 5; margin-top: 0; }
  .sl-lawyer:nth-child(2) { grid-column: 7 / span 5; margin-top: 96px; }
  .sl-lawyer:nth-child(3) { grid-column: 2 / span 5; margin-top: 64px; }
  .sl-lawyer:nth-child(4) { grid-column: 8 / span 4; margin-top: 32px; }

  .sl-lawyer__portrait { margin-bottom: 24px; }
  .sl-lawyer__portrait-meta {
    bottom: auto;
    left: auto;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 24px;
  }
  .sl-lawyer__role { margin-bottom: 8px; font-size: 12px; }
  .sl-lawyer__name { font-size: 36px; margin-bottom: 16px; }
  .sl-lawyer__specs { gap: 8px; }
  .sl-lawyer__spec { font-size: 11px; padding: 5px 10px; }
}

/* =========================================================
 * 6. CASES — Casi rappresentativi
 * ========================================================= */
.sl-cases {
  /* v0.14.1 — padding-block ONLY (delegato a .sl-container interno) */
  padding-block: 80px;
}
.sl-cases__head {
  display: grid;
  gap: 16px;
  margin-bottom: 32px;
}
.sl-cases__title {
  font-size: 36px;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-family: var(--font-display);
  color: var(--primary);
}
.sl-case {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.sl-case__id { font-size: 10px; }
.sl-case__desc {
  font-size: 17px;
  font-family: var(--font-display);
  line-height: 1.4;
  color: var(--primary);
  font-style: italic;
}
.sl-case__outcome {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--accent);
  letter-spacing: -0.01em;
}

@media (min-width: 1024px) {
  .sl-cases { padding-block: 128px; }
  .sl-cases__head {
    grid-template-columns: auto 1fr;
    gap: 32px;
    margin-bottom: 64px;
  }
  .sl-cases__title { font-size: clamp(48px, 5vw, 72px); }
  .sl-case {
    grid-template-columns: 200px 1fr 200px;
    gap: 48px;
    padding: 32px 0;
    align-items: baseline;
  }
  .sl-case__desc { font-size: 20px; }
  .sl-case__outcome { font-size: 24px; text-align: right; }
}

/* =========================================================
 * 7. PRESS — Earned media strip
 * ========================================================= */
.sl-press {
  /* v0.14.1 — padding-block ONLY (delegato a .sl-container interno) */
  padding-block: 64px;
  background: var(--surface);
}
.sl-press__inner {
  max-width: var(--container-max);
  margin: 0 auto;
}
.sl-press__label { color: var(--primary); margin-bottom: 24px; }
.sl-press__list {
  display: grid;
  gap: 12px;
}
.sl-press__item {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--text);
  font-style: italic;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

@media (min-width: 1024px) {
  .sl-press { padding-block: 96px; }
  .sl-press__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 48px;
  }
  .sl-press__label { margin: 0; }
  .sl-press__list {
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
    align-items: center;
  }
  .sl-press__item {
    font-size: 18px;
    border: 0;
    padding: 0;
  }
}

/* =========================================================
 * 8. CONTACT
 * ========================================================= */
.sl-contact {
  /* v0.14.1 — padding-block ONLY (delegato a .sl-container interno) */
  padding-block: 96px 64px;
}
.sl-contact__head {
  display: grid;
  gap: 16px;
  margin-bottom: 48px;
}
.sl-contact__title {
  font-size: 56px;
  letter-spacing: -0.025em;
  line-height: 0.95;
  font-family: var(--font-display);
  color: var(--primary);
}
.sl-contact__title em { font-style: italic; color: var(--accent); }
.sl-contact__grid {
  display: grid;
  gap: 32px;
}
.sl-contact__item-label { margin-bottom: 8px; font-size: 10px; }
.sl-contact__item-value {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.3;
  color: var(--primary);
  word-break: break-word;
}
.sl-contact__cta-wrap { margin-top: 48px; }

@media (min-width: 1024px) {
  .sl-contact { padding-block: 160px 128px; }
  .sl-contact__head {
    grid-template-columns: auto 1fr;
    gap: 32px;
    margin-bottom: 80px;
  }
  .sl-contact__title { font-size: clamp(56px, 6vw, 96px); line-height: 1; }
  .sl-contact__grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 64px;
    padding-left: 20%;
  }
  .sl-contact__item-label { margin-bottom: 16px; font-size: 12px; }
  .sl-contact__item-value { font-size: 24px; }
  .sl-contact__cta-wrap { margin-top: 96px; padding-left: 20%; }
}

/* =========================================================
 * 9. FOOTER — tema scuro --primary
 * ========================================================= */
.sl-footer {
  /* v0.14.1 — padding-block + .sl-footer__inner ha .sl-container-like behavior (max-width + margin auto + padding-inline)
     ma NON ha class .sl-container. Manteniamo padding-inline minimale a footer mobile (20px) per fallback. */
  background: var(--primary);
  color: var(--background);
  padding: 48px 20px 24px;
}
.sl-footer__inner { max-width: var(--container-max); margin: 0 auto; }
.sl-footer__brand {
  font-family: var(--font-display);
  font-size: 24px;
  margin-bottom: 24px;
  line-height: 1.1;
}
.sl-footer__col-label {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 12px;
}
.sl-footer__nav {
  font-size: 12px;
  line-height: 2;
  opacity: 0.85;
  margin-bottom: 24px;
}
.sl-footer__nav a {
  color: inherit;
  display: inline;
}
.sl-footer__contact {
  font-size: 12px;
  line-height: 1.85;
  opacity: 0.85;
  margin-bottom: 32px;
}
.sl-footer__legal {
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 9px;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.55;
}
.sl-footer__legal a { color: inherit; }
.sl-footer__areas-list {
  font-size: 13px;
  line-height: 2;
  opacity: 0.85;
  margin-bottom: 24px;
}
.sl-footer__areas-list a {
  color: inherit;
  display: block;
  break-inside: avoid;
}

@media (min-width: 1024px) {
  .sl-footer { padding: 96px 20px 32px; /* v0.14.1 — footer NON usa .sl-container, mantiene padding-inline 20px desktop */ }
  .sl-footer__cols {
    display: grid;
    grid-template-columns: 2fr 4fr 2fr;
    gap: 64px;
    padding-bottom: 64px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }
  .sl-footer__brand { font-size: 28px; margin-bottom: 24px; }
  .sl-footer__nav {
    font-size: 13px;
    line-height: 1.8;
    margin-bottom: 0;
    opacity: 0.7;
  }
  .sl-footer__nav a { display: block; }
  .sl-footer__col-label { margin-bottom: 24px; }
  .sl-footer__areas-list {
    column-count: 3;
    column-gap: 32px;
    font-size: 13px;
    line-height: 2;
    margin-bottom: 0;
  }
  .sl-footer__contact { font-size: 13px; margin-bottom: 0; }
  .sl-footer__legal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    font-size: 11px;
    opacity: 0.55;
  }
  .sl-footer__legal-links {
    display: flex;
    gap: 32px;
  }
}

/* =========================================================
 * COMPAT SHIM — Theme Architect templates
 * Mappa le classi reali usate in front-page.php / header.php
 * sulle stesse regole. Da consolidare in una passata di unificazione.
 * ========================================================= */

/* Header — burger / mobile / scrolled state — handled by F5 fix sopra */
.sl-header__brand-name {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--primary);
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.sl-header__burger {
  background: none;
  border: 0;
  padding: 4px;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.sl-header__burger-line {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--text);
}
.sl-header__mobile {
  display: none;
  position: fixed;
  inset: 60px 0 0 0;
  background: var(--background);
  z-index: 40;
  padding: 32px 20px;
  border-top: 1px solid var(--border);
}
.sl-header__mobile[hidden] { display: none; }
.sl-header__mobile.is-open,
.sl-header__mobile:not([hidden]) { display: block; }
.sl-header__mobile-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sl-header__mobile-menu a {
  display: block;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--primary);
  letter-spacing: -0.01em;
}
@media (min-width: 1024px) {
  .sl-header__burger { display: none; }
  .sl-header__brand-name { font-size: 22px; }
}

/* Hero — word reveal alt + subheadline alt
 * FIX P0.3: grid 1col mobile / 8fr 4fr desktop, align-content space-between
 * per evitare overlap tra eyebrow/headline/colophon durante scroll.
 */
.sl-hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  width: 100%;
  min-height: calc(100vh - clamp(96px, 16vh, 240px)); /* 100vh meno padding-block */
  align-content: space-between;
}
.sl-hero__main {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 100%;
}
.sl-hero__word {
  display: inline-block;
  margin-right: 12px;
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 700ms var(--ease-editorial),
    transform 700ms var(--ease-editorial);
}
.sl-hero__word.is-revealed { opacity: 1; transform: translateY(0); }
.sl-hero__word:nth-child(2) { transition-delay: 80ms; }
.sl-hero__word:nth-child(3) { transition-delay: 160ms; }
.sl-hero__word:nth-child(4) { transition-delay: 240ms; }
.sl-hero__subheadline {
  font-family: var(--font-display);
  font-size: 17px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 40px;
  max-width: 44ch;
}
.sl-hero__colophon-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  font-size: 13px;
  line-height: 1.7;
}
.sl-hero__colophon-item {
  display: grid;
  gap: 6px;
}
.sl-hero__scroll {
  display: none;
}
@media (min-width: 1024px) {
  .sl-hero__inner {
    grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
    gap: 64px;
    align-content: space-between;
    align-items: stretch;
  }
  .sl-hero__main {
    grid-column: 1;
    align-self: end;
    gap: 24px;
  }
  .sl-hero__colophon {
    grid-column: 2;
    align-self: end;
    border-left: 1px solid var(--border);
    padding-left: 32px;
  }
  .sl-hero__word {
    margin-right: 24px;
    transform: translateY(40px);
  }
  .sl-hero__subheadline { font-size: 22px; margin-bottom: 16px; }
  /* D9 fidelity — JSX exact: scroll indicator orizzontale absolute bottom-left.
     Mobile (<1024) display: none ereditato da .sl-hero__scroll base. */
  .sl-hero__scroll {
    position: absolute;
    bottom: 32px;
    left: 96px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 0;
    z-index: 5;
  }
  .sl-hero__scroll-line {
    display: block;
    width: 1px;
    height: 32px;
    background: var(--text-muted);
  }
}

/* Section head + title (usato da front-page.php) */
.sl-section-head {
  display: grid;
  gap: 16px;
  margin-bottom: 32px;
}
.sl-section-title {
  font-size: 36px;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-family: var(--font-display);
  color: var(--primary);
  margin: 0;
  font-weight: 400;
}
@media (min-width: 768px) {
  .sl-section-head {
    grid-template-columns: auto 1fr;
    gap: 32px;
    align-items: baseline;
    margin-bottom: 48px;
  }
  .sl-section-title { font-size: clamp(40px, 5vw, 72px); }
}

/* Areas — filter buttons & list (template naming) */
.sl-areas__filter {
  background: none;
  border: 0;
  cursor: pointer;
  padding: 4px 0;
  color: var(--text-muted);
  border-bottom: 1px solid transparent;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color var(--dur-fast) var(--ease-editorial),
              border-color var(--dur-fast) var(--ease-editorial);
}
.sl-areas__filter.is-active,
.sl-areas__filter[aria-pressed="true"] {
  color: var(--primary);
  border-bottom-color: var(--accent);
}
.sl-areas__list {
  display: grid;
  grid-template-columns: 1fr;
}
.sl-area__preview {
  display: none;
}
.sl-area__preview-empty {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
  font-style: italic;
  font-family: var(--font-display);
}
@media (min-width: 768px) {
  .sl-areas__grid {
    display: grid;
    grid-template-columns: 8fr 4fr;
    gap: 64px;
    align-items: start;
  }
  .sl-area__preview {
    display: block;
    position: sticky;
    top: 120px;
    padding-top: 28px;
  }
}

/* Studio — drop-cap helper */
.sl-studio__prose[data-drop-cap] > p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 60px;
  float: left;
  line-height: 0.85;
  margin-right: 12px;
  margin-top: 6px;
  color: var(--primary);
}
@media (min-width: 1024px) {
  .sl-studio__prose[data-drop-cap] > p:first-of-type::first-letter {
    font-size: 84px;
    margin-right: 16px;
    margin-top: 8px;
  }
}
.sl-studio__plate-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
}
.sl-studio__plate {
  position: relative;
  margin-top: 40px;
  height: 240px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.sl-studio__plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sl-studio__plate-tl { position: absolute; top: 12px; left: 16px; }
.sl-studio__plate-br { position: absolute; bottom: 12px; right: 16px; }
.sl-studio__plate-center { display: grid; gap: 4px; text-align: center; }
.sl-studio__plate-line {
  font-family: var(--font-display);
  font-size: 18px;
  font-style: italic;
  color: var(--text-muted);
}
@media (min-width: 1024px) {
  .sl-studio__plate { margin-top: 96px; height: 480px; }
  .sl-studio__plate-tl { top: 24px; left: 32px; }
  .sl-studio__plate-br { bottom: 24px; right: 32px; }
  .sl-studio__plate-line { font-size: 32px; }
}

/* Team — Theme Architect naming */
.sl-team__grid {
  display: grid;
  gap: 56px;
}
.sl-team__lawyer { display: flex; flex-direction: column; }
.sl-team__lawyer:nth-child(odd) { margin-right: 32px; }
.sl-team__lawyer:nth-child(even) { margin-left: 32px; }
.sl-team__portrait {
  display: block;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #c8c5be 0%, #6e6c66 100%);
  margin-bottom: 16px;
  position: relative;
  border: 1px solid var(--border);
  overflow: hidden;
  filter: grayscale(1) contrast(1.05);
  transition:
    filter 600ms var(--ease-editorial),
    background 600ms var(--ease-editorial);
}
.sl-team__lawyer:hover .sl-team__portrait,
.sl-team__portrait:hover {
  filter: grayscale(0);
  background: linear-gradient(135deg, #d4c8b0 0%, #8a7a5e 100%);
}
.sl-team__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sl-team__placeholder {
  position: absolute;
  bottom: 12px;
  left: 12px;
  color: rgba(255, 255, 255, 0.85);
}
.sl-team__role { margin-bottom: 6px; font-size: 10px; }
.sl-team__name {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.1;
  color: var(--primary);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
  font-weight: 400;
}
.sl-team__name a { color: inherit; }
.sl-team__specs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}
.sl-team__specs li {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 4px 8px;
}
@media (min-width: 1024px) {
  .sl-team__grid {
    grid-template-columns: repeat(12, 1fr);
    gap: 32px;
    row-gap: 96px;
  }
  .sl-team__lawyer { margin: 0; }
  .sl-team__lawyer:nth-child(odd),
  .sl-team__lawyer:nth-child(even) { margin: 0; }
  .sl-team__lawyer:nth-child(1) { grid-column: 1 / span 5; }
  .sl-team__lawyer:nth-child(2) { grid-column: 7 / span 5; margin-top: 96px; }
  .sl-team__lawyer:nth-child(3) { grid-column: 2 / span 5; margin-top: 64px; }
  .sl-team__lawyer:nth-child(4) { grid-column: 8 / span 4; margin-top: 32px; }
  .sl-team__portrait { margin-bottom: 24px; }
  .sl-team__role { margin-bottom: 8px; font-size: 12px; }
  .sl-team__name { font-size: 36px; margin-bottom: 16px; }
  .sl-team__specs { gap: 8px; }
  .sl-team__specs li { font-size: 11px; padding: 5px 10px; }
}

/* Cases — Theme Architect naming */
.sl-cases__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sl-cases__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.sl-cases__id { font-size: 10px; }
.sl-cases__desc {
  font-size: 17px;
  font-family: var(--font-display);
  line-height: 1.4;
  color: var(--primary);
  font-style: italic;
  margin: 0;
}
.sl-cases__outcome {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--accent);
  letter-spacing: -0.01em;
}
@media (min-width: 1024px) {
  .sl-cases__row {
    grid-template-columns: 200px 1fr 200px;
    gap: 48px;
    padding: 32px 0;
    align-items: baseline;
  }
  .sl-cases__desc { font-size: 20px; }
  .sl-cases__outcome { font-size: 24px; text-align: right; }
}

/* Press — Theme Architect naming */
.sl-press__outlets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.sl-press__outlet {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--text);
  font-style: italic;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}
@media (min-width: 1024px) {
  .sl-press__outlets {
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
    align-items: center;
  }
  .sl-press__outlet {
    font-size: 18px;
    border: 0;
    padding: 0;
  }
}

/* Contact — Theme Architect naming */
.sl-contact__title { letter-spacing: -0.025em; }
.sl-contact__big {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.3;
  color: var(--primary);
  word-break: break-word;
  margin: 0;
}
.sl-contact__big a { color: inherit; }
.sl-contact__cta { margin-top: 48px; }
@media (min-width: 1024px) {
  .sl-contact__big { font-size: 24px; }
  .sl-contact__cta { margin-top: 96px; padding-left: 20%; }
}

/* Site footer (footer.php usa naming legacy) */
.site-footer {
  background: var(--primary);
  color: var(--background);
  padding: 48px 20px 24px;
  margin-top: 64px;
}
.site-footer .container {
  display: grid;
  gap: 40px;
}
.site-footer h3 {
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 400;
  margin: 0 0 12px;
}
.site-footer .footer-col p {
  font-size: 13px;
  line-height: 1.85;
  opacity: 0.85;
  margin: 0;
}
.site-footer .footer-col a { color: inherit; }
.site-footer .menu--footer {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  line-height: 2;
  opacity: 0.85;
}
.site-footer .copyright {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.55;
}
@media (min-width: 1024px) {
  .site-footer { padding: 96px var(--container-pad) 32px; }
  .site-footer .container {
    grid-template-columns: 2fr 3fr 2fr 2fr;
    gap: 64px;
  }
}

/* =========================================================
 * WhatsApp mini editorial — visibile solo mobile
 * ========================================================= */
.sl-whatsapp {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 30;
  background: var(--background);
  border: 1px solid var(--border);
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}
@media (min-width: 1024px) {
  .sl-whatsapp { display: none; }
}

/* ═══════════════════════════════════════════════════════════════
   FIX A — Header navigation: forza display flex inline
   per i menu emessi da wp_nav_menu (con classe .menu o variations)
   ═══════════════════════════════════════════════════════════════ */
.sl-header__nav ul,
.sl-header__nav .menu,
.sl-header__menu {
  list-style: none !important;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
}

.sl-header__nav li,
.sl-header__nav .menu-item {
  list-style: none !important;
  display: block;
}

.sl-header__nav li::marker {
  content: '';
}

.sl-header__nav a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color var(--dur-fast) var(--ease-editorial);
}

.sl-header__nav a:hover {
  color: var(--accent);
}

/* Skip link visibile only on focus */
.sl-skip-link {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
.sl-skip-link:focus {
  position: fixed !important;
  left: 8px !important;
  top: 8px !important;
  width: auto !important;
  height: auto !important;
  z-index: 9999 !important;
  padding: 8px 16px !important;
  background: var(--primary) !important;
  color: var(--background) !important;
  text-decoration: none !important;
}

/* ═══════════════════════════════════════════════════════════════
   FIX A2 — Empty state per liste vuote (CPT non popolati)
   Quando 0 risultati, mostro un placeholder editoriale
   ═══════════════════════════════════════════════════════════════ */
.sl-areas__list:empty::before {
  content: 'Le 19 aree saranno popolate prossimamente. Nel frattempo, contattaci direttamente per la tua pratica.';
  display: block;
  padding: 48px 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-style: italic;
  color: var(--text-muted);
  max-width: 60ch;
}

.sl-team__grid:empty::before {
  content: 'I quattro profili degli avvocati saranno presto disponibili.';
  display: block;
  padding: 48px 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-style: italic;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════════
   FIX D — Fallback no-JS / pre-GSAP per reveal elements
   Quando GSAP è pronto, main.js aggiunge .js-reveal-ready su <html>
   e questi override decadono, permettendo a GSAP di gestire l'opacity.
   Senza JS / con GSAP non disponibile, le parole restano visibili.
   ═══════════════════════════════════════════════════════════════ */

html:not(.js-reveal-ready) .sl-hero__word,
html:not(.js-reveal-ready) [data-split-reveal] .sl-hero__word,
html:not(.js-reveal-ready) [data-split-reveal] > span {
  opacity: 1;
  transform: none;
}

html:not(.js-reveal-ready) .sl-revealable,
html:not(.js-reveal-ready) [data-reveal] {
  opacity: 1;
  transform: none;
}

/* ═══════════════════════════════════════════════════════════════
   FIX D2 — Hero headline width: forza 3 righe
   con max-width: 12ch sulla h1 in modo che le 3 parole
   "Diritto," "con" "misura." vadano a capo come da JSX
   ═══════════════════════════════════════════════════════════════ */

.sl-hero__headline {
  max-width: 12ch;
}

@media (max-width: 768px) {
  .sl-hero__headline {
    max-width: 100%;
  }
}

/* ═══════════════════════════════════════════════════════════════
   FIX M3 — Sticky avvocato: position safe, mai overlap con foto
   I bottoni TEL/EMAIL/WhatsApp ancorati a sinistra del viewport
   con offset fisso di 8px (era clamp(16px,3vw,48px) → finiva sopra
   foto a 1440px). Width fisso 56px desktop / auto mobile.
   ═══════════════════════════════════════════════════════════════ */

.sl-attorney__sticky {
    position: fixed;
    top: 50%;
    left: 8px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 50;
    pointer-events: auto;
}

@media (max-width: 1023px) {
    .sl-attorney__sticky {
        position: static;
        flex-direction: row;
        gap: 8px;
        margin-block: 24px;
        transform: none;
        padding-inline: 24px;
        left: auto;
    }
}

.sl-attorney__sticky-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    min-height: 32px;
    padding: 4px 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: all var(--dur-fast) var(--ease-editorial);
    border-radius: 0;
}

.sl-attorney__sticky-btn:hover,
.sl-attorney__sticky-btn:focus-visible {
    background: var(--primary);
    color: var(--background);
    border-color: var(--primary);
    transform: translateX(2px);
}

@media (max-width: 1023px) {
    .sl-attorney__sticky-btn {
        width: auto;
        flex: 1;
        min-height: 44px;
        font-size: 11px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   AUDIT ALIGNMENT — Dropdown menu primary (Aree di Pratica)
   Sub-menu emesso da wp_nav_menu con classi menu-item-has-children + sub-menu
   ═══════════════════════════════════════════════════════════════ */
.sl-header__nav .menu-item-has-children {
    position: relative;
}
.sl-header__nav .menu-item-has-children > a::after {
    content: " ↓";
    font-size: 10px;
    margin-left: 4px;
    opacity: 0.6;
}
.sl-header__nav .sub-menu {
    list-style: none;
    margin: 0;
    padding: 16px 20px;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: var(--background);
    border: 1px solid var(--border);
    display: none;
    flex-direction: column;
    gap: 4px;
    z-index: 100;
    box-shadow: 0 8px 32px rgba(27, 43, 75, 0.08);
}
.sl-header__nav .menu-item-has-children:hover > .sub-menu,
.sl-header__nav .menu-item-has-children:focus-within > .sub-menu {
    display: flex;
}
.sl-header__nav .sub-menu li {
    list-style: none;
    margin: 0;
}
.sl-header__nav .sub-menu a {
    display: block;
    font-size: 13px;
    padding: 6px 0;
    white-space: nowrap;
    color: var(--text);
    transition: color var(--dur-fast) var(--ease-editorial);
}
.sl-header__nav .sub-menu a:hover,
.sl-header__nav .sub-menu a:focus-visible {
    color: var(--accent);
}

/* Mobile / tablet: stack inline, no overlay positioning */
@media (max-width: 1023px) {
    .sl-header__nav .menu-item-has-children > a::after {
        content: "";
    }
    .sl-header__nav .sub-menu {
        position: static;
        display: flex;
        border: none;
        box-shadow: none;
        padding: 8px 0 8px 16px;
        background: transparent;
        min-width: 0;
    }
}

/* ═══════════════════════════════════════════════════════════════
   FIX P1.4 — Subline "consulenza gratuita" softer italic serif
   Hero + Competenza CTA: serif italic 15px, tone editoriale.
   Contact eyebrow: mono ridotto (mantiene coerenza con § 06 — CONTATTI).
   ═══════════════════════════════════════════════════════════════ */
.sl-hero__cta-note,
.sl-competenza__cta-note {
    margin-top: 16px;
    color: var(--text-muted);
    font-family: var(--font-display);
    font-style: italic;
    font-size: 15px;
    letter-spacing: 0;
    text-transform: none;
    line-height: 1.5;
}
.sl-competenza__cta-note {
    margin-top: 12px;
}

.sl-contact__eyebrow {
    margin-top: 0;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════════════════
   FIX P0.2 — h2 nel content competenza: scala più contenuta + no transform
   I content da source page possono contenere h2/h3 con kerning Playfair
   troppo display. Riduciamo a max 48px + reset text-transform.
   ═══════════════════════════════════════════════════════════════ */
.sl-competenza__prose h2,
.sl-competenza__prose h3,
.sl-page__prose h2,
.sl-page__prose h3,
.entry-content h2,
.entry-content h3 {
    text-transform: none;
    font-family: var(--font-display);
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--primary);
    font-weight: 400;
}
.sl-competenza__prose h2,
.sl-page__prose h2,
.entry-content h2 {
    font-size: clamp(28px, 3.5vw, 44px);
    margin-block: 80px 24px;
    max-width: 24ch;
    line-height: 1.15;
}
.sl-competenza__prose h3,
.sl-page__prose h3,
.entry-content h3 {
    font-size: clamp(22px, 2vw, 32px);
    margin-block: 56px 16px;
    max-width: 28ch;
}

/* FIX F6 — Tier-1 H2 sub-section sovrapposti (post v0.8.1)
   Issue: in diritto-di-famiglia-lgbtq (5 H2 consecutive senza respiro),
   margin-block 56px 20px troppo stretto vs font Playfair 48px → letti
   come paragrafi continui. Up a 80px 24px + adjacent sibling rule per
   ridurre spazio quando h2 segue immediatamente h2/h3 (no body tra). */
.sl-competenza__prose h2 + h2,
.sl-competenza__prose h3 + h2,
.sl-page__prose h2 + h2,
.entry-content h2 + h2 {
    margin-top: 40px;
}
.sl-competenza__prose h2:first-child,
.sl-page__prose h2:first-child,
.entry-content h2:first-child {
    margin-top: 0;
}

/* ═══════════════════════════════════════════════════════════════
   FIX P0.1 — Pagina standard (page.php) layout editoriale centrato
   page.php usa .sl-page > .sl-page__hero / .sl-page__content > .sl-container
   ═══════════════════════════════════════════════════════════════ */

.sl-page {
    padding-block: clamp(64px, 8vw, 128px);
}
.sl-page__hero {
    margin-bottom: 48px;
}
.sl-page__breadcrumb {
    margin-bottom: 24px;
    color: var(--text-muted);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.sl-page__breadcrumb a {
    color: inherit;
    border-bottom: 1px solid transparent;
    transition: border-color var(--dur-fast) var(--ease-editorial);
}
.sl-page__breadcrumb a:hover { border-bottom-color: var(--accent); }
.sl-page__title {
    font-family: var(--font-display);
    font-size: clamp(48px, 6vw, 96px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--primary);
    margin: 0;
    max-width: 18ch;
    font-weight: 400;
}
.sl-page__prose {
    max-width: 1100px;
    margin-inline: auto;
}

/* ═══════════════════════════════════════════════════════════════
   FIX F4 — /costi/ layout regression recovery (post v0.8.1)
   ═══════════════════════════════════════════════════════════════
   Issue v0.8.1: section max-width 1100px + body 1fr ~836px →
   percezione visiva di body troppo wide, sbilancio rispetto a eyebrow
   200px sticky. Vuoto enorme tra sezioni causato da margin-block
   ereditato da .sl-page__prose h2 (56px) sovrapposto a .sl-costi__section h2
   (16px), creando computed inconsistency.
   Fix: reset section max-width a 960px (più editoriale), gap 80px desktop,
   max-width 60ch su body (lettura ottimale), margin-block uniforme.
   .sl-costi__section h2 wins su .sl-page__prose h2 via cascade order.
   ─────────────────────────────────────────────────────────────── */
.sl-costi__intro {
    max-width: 720px;
    margin: 0 auto;  /* F03 v0.14 — bottom margin rimosso, gap globale --sl-space-7 (80px) gestisce */
}
.sl-costi__capsule {
    font-family: var(--font-display);
    font-size: clamp(20px, 2vw, 28px);
    font-style: italic;
    line-height: 1.55;
    color: var(--primary);
    margin: 0;
}
.sl-costi__section {
    max-width: 720px;
    margin: 0 auto;  /* F03 v0.14 — bottom margin rimosso, --sl-space-7 globale (riga 2802) gestisce */
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
.sl-costi__section h2 {
    font-family: var(--font-display);
    font-size: clamp(28px, 3vw, 44px);
    color: var(--primary);
    letter-spacing: -0.02em;
    margin-block: 8px 24px;
    font-weight: 400;
    line-height: 1.15;
}
.sl-costi__section p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    margin-block: 16px;
    max-width: 60ch;
}
.sl-costi__section ul {
    padding-left: 24px;
    margin-block: 16px;
    max-width: 60ch;
}
.sl-costi__section li {
    margin-bottom: 8px;
    line-height: 1.7;
    font-size: 16px;
}
.sl-costi__section > details,
.sl-costi__section > .sl-acc {
    max-width: 60ch;
}

@media (min-width: 1024px) {
    .sl-costi__section {
        grid-template-columns: 200px minmax(0, 1fr);
        gap: 80px;
        max-width: 960px;
        /* F03 v0.14 — margin-bottom 96px rimosso. --sl-space-7 globale (80px) basta. */
    }
    .sl-costi__section > .sl-mono {
        grid-column: 1;
        grid-row: 1 / span 99;
        text-align: right;
        padding-top: 12px;
        align-self: start;
        position: sticky;
        top: 120px;
    }
    .sl-costi__section > h2,
    .sl-costi__section > h3,
    .sl-costi__section > p,
    .sl-costi__section > ul,
    .sl-costi__section > ol,
    .sl-costi__section > details,
    .sl-costi__section > .sl-acc,
    .sl-costi__section > .sl-faq {
        grid-column: 2;
    }
}

.sl-costi__cta {
    max-width: 960px;
    margin: 120px auto 0;
    padding: 64px clamp(24px, 5vw, 96px);
    background: var(--surface);
    text-align: center;
}
.sl-costi__cta h2 {
    font-family: var(--font-display);
    font-size: clamp(28px, 3vw, 44px);
    color: var(--primary);
    margin-bottom: 16px;
    font-weight: 400;
    letter-spacing: -0.02em;
}
.sl-costi__cta p {
    color: var(--text-muted);
    margin-bottom: 24px;
}
.sl-costi__cta .sl-btn {
    margin-top: 8px;
}

/* ═══════════════════════════════════════════════════════════════
   STEP E · TASK 0 — MOBILE FIX CRITICI (post visual walkthrough v0.7.0)
   ═══════════════════════════════════════════════════════════════ */

/* ───────────────────────────────────────────────────────────────
   FIX M1 — Mobile (≤1023px): tag .sl-area__meta sotto titolo
   Il tag "TIER 1 · APPROFONDIMENTO →" non deve sovrapporsi al titolo
   serif gigante. Forziamo flex column, meta in order:2 sotto title.
   Vince in cascade su .sl-areas .sl-area (sections.css §3) e .sl-area
   (components.css base) perché viene dopo nello stesso file.
   ─────────────────────────────────────────────────────────────── */
@media (max-width: 1023px) {
    .sl-area,
    .sl-areas .sl-area,
    .sl-areas-archive .sl-area {
        display: flex;
        flex-direction: column;
        gap: 4px;
        padding-block: 24px;
        grid-template-columns: none;
    }

    .sl-area .sl-area__num,
    .sl-areas .sl-area .sl-area__num,
    .sl-areas-archive .sl-area .sl-area__num {
        display: none;
    }

    .sl-area .sl-area__title,
    .sl-areas .sl-area .sl-area__title,
    .sl-areas-archive .sl-area .sl-area__title {
        order: 1;
        font-size: clamp(28px, 6vw, 36px);
        line-height: 1.2;
    }

    .sl-area .sl-area__meta,
    .sl-areas .sl-area .sl-area__meta,
    .sl-areas-archive .sl-area .sl-area__meta {
        order: 2;
        position: static;
        margin-top: 4px;
        font-size: 11px;
        color: var(--text-muted);
        letter-spacing: 0.06em;
        opacity: 0.85;
        text-transform: uppercase;
    }

    .sl-area .sl-area__lead,
    .sl-areas .sl-area .sl-area__lead,
    .sl-areas-archive .sl-area .sl-area__lead {
        order: 3;
    }
}

/* ───────────────────────────────────────────────────────────────
   FIX M2 — Mobile (≤767px): hero headline forza wrap su 3 righe
   Ogni .sl-hero__word diventa block per garantire un word-per-line.
   Risolve il pattern attuale "Diritto, con" + "misura." (2 righe)
   richiesto dal design "Diritto," / "con" / "misura." (3 righe).
   ─────────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
    .sl-hero__headline {
        font-size: clamp(56px, 14vw, 80px);
        line-height: 1.05;
        letter-spacing: -0.02em;
    }
    .sl-hero__headline .sl-hero__word,
    .sl-hero__headline .sl-word {
        display: block;
        margin-right: 0;
    }
}

/* ═══════════════════════════════════════════════════════════════
   FIX F3 — Single-avvocato portrait (riscrittura post-walkthrough v0.8.1)
   ═══════════════════════════════════════════════════════════════
   Issue: il fix v0.8.1 con .sl-attorney__portrait (specificità 0,1,0)
   è stato bypassato — sul placeholder il box rendeva ~600px+ wide invece
   dei 480px max-width dichiarati. Sticky TEL/EMAIL si sovrapponeva.

   Fix definitivo: selettore tag.class `figure.sl-attorney__portrait`
   (specificità 0,1,1) + !important strategico per battere ogni eventuale
   regola successiva. Mobile (≤1023): max-width: 100% per stack normale.

   No template change. Foto reale Emiliano (img reale 600x800) rispetta
   max-width 480 + aspect-ratio 3/4 + object-fit cover.
   ─────────────────────────────────────────────────────────────── */
figure.sl-attorney__portrait {
    display: block !important;
    width: 100% !important;
    max-width: 480px !important;
    aspect-ratio: 3 / 4 !important;
    margin: 0 0 32px 0 !important;
    padding: 0 !important;
    position: relative !important;
    background: linear-gradient(135deg, #c8c5be 0%, #6e6c66 100%);
    border: 1px solid var(--border);
    overflow: hidden;
    filter: grayscale(1) contrast(1.05);
    transition:
        filter 600ms var(--ease-editorial),
        background 600ms var(--ease-editorial);
}
figure.sl-attorney__portrait:hover {
    filter: grayscale(0);
    background: linear-gradient(135deg, #d4c8b0 0%, #8a7a5e 100%);
}

figure.sl-attorney__portrait img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center top;
    display: block;
    max-width: none;
}

figure.sl-attorney__portrait .sl-team__placeholder,
figure.sl-attorney__portrait .sl-attorney__placeholder {
    position: absolute !important;
    inset: auto auto 16px 16px !important;
    bottom: 16px;
    left: 16px;
    color: rgba(255, 255, 255, 0.78);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

@media (max-width: 1023px) {
    figure.sl-attorney__portrait {
        max-width: 100% !important;
        margin: 0 0 24px 0 !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   FIX F1 — Archive /competenze/ + /tipo-area/* hero non overflow
   ═══════════════════════════════════════════════════════════════
   Issue v0.8.1: .sl-section-head usa grid `auto 1fr` con auto-flow
   row → 3 figli (mono+h1+p) andavano in righe sbagliate (p sotto mono,
   h1 senza max-width). Headline italic Playfair "Tre presidiate…" su
   72px andava out-of-viewport.
   Fix: grid-template-areas esplicito mobile single col + desktop
   240px+1fr con eyebrow sticky-style colonna stretta sx, headline+lede
   in colonna larga dx. max-width 18ch su title forza wrap.
   ─────────────────────────────────────────────────────────────── */
.sl-areas--archive .sl-areas__archive-head,
.sl-areas-archive .sl-areas__archive-head {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
        "eyebrow"
        "title"
        "lede";
    gap: 16px;
    margin-bottom: 64px;
    align-items: start;
}
.sl-areas--archive .sl-areas__archive-head > .sl-mono,
.sl-areas-archive .sl-areas__archive-head > .sl-mono {
    grid-area: eyebrow;
}
.sl-areas--archive .sl-areas__archive-head > .sl-page__breadcrumb {
    grid-area: eyebrow;
    margin-bottom: 8px;
}
.sl-areas--archive .sl-areas__archive-head > h1,
.sl-areas-archive .sl-areas__archive-head > h1,
.sl-areas--archive .sl-areas__archive-head > .sl-section-title,
.sl-areas-archive .sl-areas__archive-head > .sl-section-title {
    grid-area: title;
    font-family: var(--font-display);
    font-size: clamp(40px, 5vw, 84px);
    line-height: 1.05;
    color: var(--primary);
    letter-spacing: -0.02em;
    margin: 0;
    max-width: 18ch;
    font-weight: 400;
}
.sl-areas--archive .sl-areas__archive-head > .sl-areas__archive-lede,
.sl-areas-archive .sl-areas__archive-head > .sl-areas__archive-lede {
    grid-area: lede;
    font-family: var(--font-display);
    font-size: clamp(15px, 1.5vw, 18px);
    font-style: italic;
    line-height: 1.55;
    color: var(--text);
    max-width: 56ch;
    margin: 8px 0 0;
}

@media (min-width: 1024px) {
    .sl-areas--archive .sl-areas__archive-head,
    .sl-areas-archive .sl-areas__archive-head {
        grid-template-columns: 240px 1fr;
        grid-template-areas:
            "eyebrow title"
            "eyebrow lede";
        gap: 16px 64px;
    }
    .sl-areas--archive .sl-areas__archive-head > .sl-mono,
    .sl-areas-archive .sl-areas__archive-head > .sl-mono {
        align-self: start;
        padding-top: 16px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   FIX F2 — Archive /avvocati/ tutti 4 lawyer visibili
   ═══════════════════════════════════════════════════════════════
   Issue v0.8.1: archive-avvocato.php usa lo stesso markup .sl-team__lawyer
   della homepage. Su desktop (≥1024px) il pattern asimmetrico ereditato
   distribuisce i 4 lawyer su 2 righe con offset cumulativi 0+96+64+32px →
   la riga 2 inizia ~700-900px sotto la riga 1 nel viewport, fuori dallo
   screenshot above-fold.
   Fix: override scoped a .sl-team--archive (classe applicata SOLO sull'archive,
   NON sulla homepage) con grid 2x2 simmetrica e margin-top reset.
   ─────────────────────────────────────────────────────────────── */
.sl-team--archive .sl-team__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 56px;
    max-width: 1200px;
    margin: 0 auto;
}
.sl-team--archive .sl-team__lawyer {
    margin: 0;
    grid-column: auto;
}

@media (min-width: 768px) {
    .sl-team--archive .sl-team__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 80px 48px;
    }
    .sl-team--archive .sl-team__lawyer:nth-child(odd),
    .sl-team--archive .sl-team__lawyer:nth-child(even) {
        margin: 0;
    }
    .sl-team--archive .sl-team__lawyer:nth-child(1),
    .sl-team--archive .sl-team__lawyer:nth-child(2),
    .sl-team--archive .sl-team__lawyer:nth-child(3),
    .sl-team--archive .sl-team__lawyer:nth-child(4) {
        grid-column: auto;
        margin-top: 0;
    }
}

/* ═══════════════════════════════════════════════════════════════
   EDITORIAL REFINEMENT v0.10.0 — Wall of text breaker
   Pattern target: rivista (Aeon / Atlantic / Bick Law) NON blog WP std
   ═══════════════════════════════════════════════════════════════ */

/* ───────────────────────────────────────────────────────────────
   A1 — H1 ↔ lede ↔ first paragraph respiro + drop-cap
   ─────────────────────────────────────────────────────────────── */
.sl-post__title,
.sl-post__hero h1,
.sl-page__title {
    margin-bottom: 32px;
}

/* Lede: primo paragrafo del body OR .sl-post__lede esplicito.
   Italic Playfair medio per stacco gerarchico H1 vs body. */
.sl-post__lede,
.sl-post__body > p:first-of-type,
.entry-content > p:first-of-type {
    font-family: var(--font-display);
    font-size: clamp(20px, 1.6vw, 24px);
    font-style: italic;
    line-height: 1.55;
    color: var(--text);
    margin-block: 0 56px;
    max-width: 56ch;
    font-weight: 400;
}

/* Drop-cap solo su single blog post (non su CPT, non su page).
   `+ p` permette di trattare il SECONDO p come dropcap se primo è lede. */
body.single-post .sl-post__body > p:first-of-type::first-letter,
body.single-post .entry-content > p:first-of-type::first-letter {
    font-family: var(--font-display);
    float: left;
    font-size: 4.2em;
    line-height: 0.85;
    margin: 8px 14px 0 0;
    color: var(--primary);
    font-weight: 400;
}

/* ───────────────────────────────────────────────────────────────
   A3 — Lists editoriali con em-dash accent (no bullet std)
   v0.11.0 R3: scope esteso a .sl-competenza__prose/__body/__content.
   Esclusioni liste meta tema (areas/articles/specs/blog/menu/footer)
   gestite con regola SEPARATA `content: none` in fondo (più robusto
   di `:not()` chain anti-leak quando markup nested).
   ─────────────────────────────────────────────────────────────── */
.sl-post__body ul,
.sl-post__body ol,
.entry-content ul,
.entry-content ol,
.sl-page__prose ul,
.sl-page__prose ol,
.sl-competenza__prose ul,
.sl-competenza__prose ol,
.sl-competenza__body ul,
.sl-competenza__body ol,
.sl-competenza__content ul,
.sl-competenza__content ol {
    margin-block: 32px;
    padding-left: 28px;
    max-width: 60ch;
}

.sl-post__body ul li,
.entry-content ul li,
.sl-page__prose ul li,
.sl-competenza__prose ul li,
.sl-competenza__body ul li,
.sl-competenza__content ul li {
    list-style: none;
    position: relative;
    margin-bottom: 12px;
    line-height: 1.7;
}

.sl-post__body ul li::before,
.entry-content ul li::before,
.sl-page__prose ul li::before,
.sl-competenza__prose ul li::before,
.sl-competenza__body ul li::before,
.sl-competenza__content ul li::before {
    content: "—";
    position: absolute;
    left: -28px;
    color: var(--accent);
    font-weight: 400;
}

.sl-post__body ol li,
.entry-content ol li,
.sl-page__prose ol li,
.sl-competenza__prose ol li,
.sl-competenza__body ol li,
.sl-competenza__content ol li {
    margin-bottom: 12px;
    line-height: 1.7;
}

.sl-post__body ol li::marker,
.entry-content ol li::marker,
.sl-page__prose ol li::marker,
.sl-competenza__prose ol li::marker,
.sl-competenza__body ol li::marker,
.sl-competenza__content ol li::marker {
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.9em;
}

/* Liste meta del tema: reset esplicito per non ereditare em-dash A3.
   Vince per cascade order (viene dopo) e per padding/margin override. */
.sl-areas__list,
.sl-articles,
.sl-team__specs,
.sl-attorney__specs,
.sl-blog__list,
.sl-mobile-menu,
.sl-header__nav .menu,
.sl-footer__nav,
.sl-footer .menu,
.sl-faq {
    list-style: none;
    padding-left: 0;
    max-width: none;
}

.sl-areas__list li,
.sl-articles li,
.sl-team__specs li,
.sl-attorney__specs li,
.sl-blog__list li,
.sl-mobile-menu li,
.sl-header__nav .menu li,
.sl-footer__nav li,
.sl-footer .menu li,
.sl-faq li {
    list-style: none;
    margin-bottom: 0;
    padding-left: 0;
}

.sl-areas__list li::before,
.sl-articles li::before,
.sl-team__specs li::before,
.sl-attorney__specs li::before,
.sl-blog__list li::before,
.sl-mobile-menu li::before,
.sl-header__nav .menu li::before,
.sl-footer__nav li::before,
.sl-footer .menu li::before,
.sl-faq li::before {
    content: none;
}

/* ───────────────────────────────────────────────────────────────
   A4 — Body paragraph max-width 60ch + blockquote pull-quote
   ─────────────────────────────────────────────────────────────── */
.sl-post__body > p,
.entry-content > p,
.sl-page__prose > p {
    max-width: 60ch;
    line-height: 1.75;
    margin-block: 0 24px;
}

/* Blockquote pull-quote pattern editoriale */
.sl-post__body blockquote,
.entry-content blockquote,
.sl-page__prose blockquote {
    margin-block: 56px;
    padding: 0 0 0 32px;
    border-left: 2px solid var(--accent);
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(22px, 2vw, 28px);
    line-height: 1.5;
    color: var(--primary);
    max-width: 60ch;
}

.sl-post__body blockquote p,
.entry-content blockquote p,
.sl-page__prose blockquote p {
    max-width: none;
    margin-block: 0 16px;
    font-size: inherit;
    line-height: inherit;
    font-style: inherit;
}

.sl-post__body blockquote p:last-child,
.entry-content blockquote p:last-child {
    margin-bottom: 0;
}

/* Strong/em treatment editoriale */
.sl-post__body strong,
.entry-content strong,
.sl-page__prose strong {
    font-weight: 500;
    color: var(--primary);
}

.sl-post__body em,
.entry-content em,
.sl-page__prose em {
    font-style: italic;
    color: var(--text);
}

/* ───────────────────────────────────────────────────────────────
   B1 — Inline images: cornice editoriale + caption mono
   Scope esclusivo body post (NON applica a foto avvocato/team).
   ─────────────────────────────────────────────────────────────── */
.sl-post__body img:not(.attachment-saltelli-attorney-square):not(.attachment-saltelli-attorney-portrait):not(.alignleft):not(.alignright),
.entry-content img:not(.attachment-saltelli-attorney-square):not(.attachment-saltelli-attorney-portrait):not(.alignleft):not(.alignright) {
    display: block;
    max-width: min(720px, 100%);
    height: auto;
    margin: 56px auto;
    border: 1px solid var(--border);
    background: var(--surface);
}

.sl-post__body figure:not(.sl-post__featured):not(.sl-post__author-portrait),
.entry-content figure:not(.sl-post__featured):not(.sl-post__author-portrait) {
    max-width: 720px;
    margin: 56px auto;
}

.sl-post__body figure img,
.entry-content figure img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    border: 0;
    background: transparent;
}

.sl-post__body figcaption,
.entry-content figcaption,
.wp-caption-text {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: center;
    margin-top: 16px;
    padding-inline: 16px;
}

/* ───────────────────────────────────────────────────────────────
   B2 — Featured image hero ridimensionata (anti gigantismo)
   Stock images del cliente: NON sostituite, SOLO ridimensionate.
   Aspect ratio 16/9 forzato per coerenza visuale (foto verticali
   come quella PNG 764x1080 vengono croppate al centro).
   ─────────────────────────────────────────────────────────────── */
.sl-post__featured {
    max-width: 960px;
    margin: 32px auto 56px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--surface);
}

.sl-post__featured img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    margin: 0;
    border: 0;
    max-width: none;
}

/* ───────────────────────────────────────────────────────────────
   B3 — Author bio card piccolo (foto 80x80 + nome + ruolo + link)
   Sostituisce il rendering full-width della foto Emiliano in fondo.
   Markup template: <section class="sl-post__author-card">
                      <a class="sl-team__portrait sl-post__author-portrait">
                        <img class="attachment-saltelli-attorney-square">
                      </a>
                      <div class="sl-post__author-text">...</div>
                    </section>
   ─────────────────────────────────────────────────────────────── */
.sl-post__author-card {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 24px;
    align-items: start;
    max-width: 60ch;
    margin: 80px auto 48px;
    padding: 32px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

/* Override portrait wrapper SOLO dentro author-card (preserva archive/single avvocato).
   Specificità: .sl-post__author-card .sl-team__portrait (0,2,0) batte .sl-team__portrait (0,1,0). */
.sl-post__author-card .sl-team__portrait,
.sl-post__author-card .sl-post__author-portrait {
    width: 80px !important;
    height: 80px !important;
    aspect-ratio: 1 / 1 !important;
    margin: 0 !important;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: 0;
    flex-shrink: 0;
    filter: grayscale(0.2);
    transition: filter 200ms var(--ease-editorial);
}

.sl-post__author-card .sl-team__portrait:hover,
.sl-post__author-card .sl-post__author-portrait:hover {
    filter: grayscale(0);
}

.sl-post__author-card .sl-team__portrait img,
.sl-post__author-card .sl-post__author-portrait img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center top;
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
    max-width: none !important;
    display: block;
}

.sl-post__author-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sl-post__author-text .sl-mono {
    font-size: 10px;
    margin-bottom: 4px;
}

.sl-post__author-text .sl-team__name {
    font-family: var(--font-display);
    font-size: 18px;
    margin: 0;
    font-weight: 400;
    line-height: 1.2;
}

.sl-post__author-text .sl-team__name a {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 200ms var(--ease-editorial);
}

.sl-post__author-text .sl-team__name a:hover {
    border-bottom-color: var(--accent);
}

.sl-post__author-text p {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 4px 0 0;
    max-width: 50ch;
}

/* ───────────────────────────────────────────────────────────────
   C3 — /contatti/ map embed + CTA editoriale
   Render condizionale via is_page('contatti') in page.php.
   ─────────────────────────────────────────────────────────────── */
.sl-page-contatti__map {
    margin-top: 80px;
    padding-block: clamp(48px, 6vw, 96px);
    background: var(--surface);
}

.sl-page-contatti__map .sl-mono {
    margin-bottom: 16px;
}

.sl-page-contatti__map h2 {
    font-family: var(--font-display);
    font-size: clamp(28px, 3vw, 44px);
    color: var(--primary);
    letter-spacing: -0.02em;
    margin: 0 0 24px;
    font-weight: 400;
    max-width: 24ch;
}

.sl-page-contatti__map-lede {
    font-family: var(--font-display);
    font-size: clamp(16px, 1.4vw, 18px);
    font-style: italic;
    line-height: 1.55;
    color: var(--text);
    max-width: 60ch;
    margin: 0 0 40px;
}

.sl-page-contatti__map-wrap {
    border: 1px solid var(--border);
    overflow: hidden;
    margin-bottom: 24px;
    background: var(--background);
}

.sl-page-contatti__map-wrap iframe {
    display: block;
    border: 0;
}

.sl-page-contatti__map-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: baseline;
    justify-content: space-between;
    font-size: 11px;
}

.sl-page-contatti__map-link {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 200ms var(--ease-editorial);
}

.sl-page-contatti__map-link:hover {
    border-bottom-color: var(--accent);
}

.sl-page-contatti__cta {
    padding-block: clamp(64px, 8vw, 128px);
    text-align: center;
}

.sl-page-contatti__cta .sl-contact__eyebrow {
    margin-bottom: 24px;
    display: block;
    color: var(--accent);
    font-size: 11px;
    letter-spacing: 0.06em;
}

.sl-page-contatti__cta h2 {
    font-family: var(--font-display);
    font-size: clamp(32px, 4vw, 56px);
    color: var(--primary);
    letter-spacing: -0.02em;
    margin: 0 auto 24px;
    font-weight: 400;
    line-height: 1.1;
    max-width: 18ch;
}

.sl-page-contatti__cta-lede {
    font-family: var(--font-display);
    font-size: clamp(16px, 1.4vw, 18px);
    font-style: italic;
    line-height: 1.55;
    color: var(--text-muted);
    max-width: 56ch;
    margin: 0 auto 48px;
}

.sl-page-contatti__cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
}

/* ───────────────────────────────────────────────────────────────
   C2 — /blog/ archive layout (template index.php)
   Markup: <section class="sl-blog sl-blog--archive">
             <ul class="sl-blog__list">
               <li class="sl-blog__row"><a class="sl-blog__row-inner">...</a></li>
   ─────────────────────────────────────────────────────────────── */
.sl-blog {
    padding-block: clamp(64px, 8vw, 128px);
}

.sl-blog__list {
    list-style: none;
    margin: 64px 0 0;
    padding: 0;
    max-width: 1100px;
}

.sl-blog__row {
    border-top: 1px solid var(--border);
}

.sl-blog__row:last-child {
    border-bottom: 1px solid var(--border);
}

.sl-blog__row-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 32px 0;
    text-decoration: none;
    color: inherit;
    transition: padding 200ms var(--ease-editorial);
}

.sl-blog__row:hover .sl-blog__row-inner {
    padding-left: 16px;
}

.sl-blog__date,
.sl-blog__cat {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.sl-blog__cat {
    color: var(--accent);
}

.sl-blog__title {
    font-family: var(--font-display);
    font-size: clamp(22px, 2vw, 30px);
    font-weight: 400;
    line-height: 1.2;
    color: var(--primary);
    margin: 8px 0 0;
    letter-spacing: -0.01em;
    max-width: 32ch;
}

.sl-blog__excerpt {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 8px 0 0;
    max-width: 60ch;
}

@media (min-width: 768px) {
    .sl-blog__row-inner {
        grid-template-columns: 160px 160px 1fr;
        gap: 32px;
        align-items: baseline;
    }
    .sl-blog__date {
        grid-column: 1;
    }
    .sl-blog__cat {
        grid-column: 2;
    }
    .sl-blog__title,
    .sl-blog__excerpt {
        grid-column: 3;
    }
    .sl-blog__title {
        margin: 0;
    }
}

.sl-blog__pagination {
    margin-top: 64px;
    text-align: center;
}

.sl-blog__pagination .nav-links {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.sl-blog__pagination a,
.sl-blog__pagination .current,
.sl-blog__pagination .dots {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    text-decoration: none;
    padding: 8px 12px;
    border: 1px solid transparent;
    transition: border-color 200ms var(--ease-editorial),
                color 200ms var(--ease-editorial);
}

.sl-blog__pagination a:hover {
    color: var(--primary);
    border-bottom-color: var(--accent);
}

.sl-blog__pagination .current {
    color: var(--primary);
    border-bottom-color: var(--accent);
}

/* ═══════════════════════════════════════════════════════════════
   LAYOUT HARMONIZATION v0.12.0 — Container + Spacing system-wide
   ═══════════════════════════════════════════════════════════════
   Cross-reference audit CRO (target ≥8/10):
   §2.5 "Margin/padding scala definita" → --sl-space-1..9 (8px scale)
   §3.1 "Container 1100/1200px incoerente" → --sl-container-max 1440
   §2.5 "Whitespace verticale 80-120px sezioni" → --space-hero-top
   §6.2 "Padding-inline coerente" → clamp(24,5vw,96) ovunque
   ═══════════════════════════════════════════════════════════════ */

/* TASK 1 — Container UNIFICATO (un solo wrapper layout) */
.sl-container {
    width: 100%;
    max-width: var(--sl-container-max);
    margin-inline: auto;
    padding-inline: var(--sl-container-pad);
    box-sizing: border-box;
}

/* Sections wrapper esterne (padding-block ONLY, padding-inline delegato a .sl-container interno).
   Desktop: il padding-inline 20px ereditato dal pre-existing pattern andava in conflitto col
   .sl-container interno → causa dei "5 valori diversi padding-left" segnalati dal walkthrough. */
.sl-areas,
.sl-team,
.sl-cases,
.sl-press,
.sl-contact,
.sl-blog,
.sl-areas-archive,
.sl-areas--archive,
.sl-team--archive,
.sl-blog--archive {
    padding-inline: 0;
}

/* TASK 2 — Spacing verticale tokenizzato (8px scale) */

/* Hero/eyebrow gap — first element della page deve respirare dall'header */
.sl-page__hero,
.sl-areas-archive .sl-section-head,
.sl-areas--archive .sl-section-head,
.sl-team--archive .sl-section-head,
.sl-blog .sl-section-head,
.sl-blog-archive .sl-section-head,
.sl-page-contatti__map,
.sl-post__hero {
    padding-top: var(--space-hero-top);
}

/* Page hero standard (page.php) — bottom padding per stacco da content */
.sl-page__hero {
    padding-bottom: var(--space-hero-bottom);
}

/* Eyebrow → titolo dentro hero */
.sl-page__breadcrumb {
    margin-bottom: var(--sl-space-3);  /* 24px */
}

/* Page title margin-bottom unificato */
.sl-page__title {
    margin-bottom: 0;  /* hero padding-bottom gestisce gap */
}

/* Section→Section: gap 80px tra sections sequenziali */
.sl-page > section + section,
.sl-page-contatti__map + .sl-page-contatti__cta {
    margin-top: 0;  /* padding-top hero ha già spacing */
}

/* Body content spacing (paragraph rhythm) — già coperto da A1/A4 v0.10.0 */
.sl-post__body > * + h2,
.sl-page__prose > * + h2,
.sl-competenza__prose > * + h2,
.entry-content > * + h2 {
    margin-top: var(--sl-space-7);  /* 80px sopra h2 sezione */
}
.sl-post__body > * + h3,
.sl-page__prose > * + h3,
.sl-competenza__prose > * + h3,
.entry-content > * + h3 {
    margin-top: var(--sl-space-6);  /* 64px sopra h3 sub-sezione */
}

/* HOMEPAGE FIDELITY v0.13.5 — Return-to-source vs Claude Design JSX
   Sostituisce il blocco TASK 5 v0.12 che batteva i valori JSX-esatti
   già presenti a riga 147-252. Restoring D3 + D4 + D8 fidelity:
   D3 .sl-hero min-height 820px desktop (era calc 100vh override)
   D4 .sl-hero__headline clamp(80,9vw,132) lh 0.98 ls -0.035 (era clamp 116)
   D8 .sl-hero__colophon align-self: end (era start) + grid 8fr/4fr
   Mobile mantiene .sl-hero base (riga 147-200) coerente col design responsive.
*/

@media (min-width: 1024px) {
    .sl-hero__inner {
        display: grid;
        grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
        column-gap: 64px;
        align-items: stretch;
    }
    .sl-hero__main {
        grid-column: 1;
        align-self: end;
    }
    .sl-hero__colophon {
        grid-column: 2;
        align-self: end;
        padding-top: 0;
        margin-top: 0;
    }
}

/* ═══════════════════════════════════════════════════════════════
   IA UNIFICATION v0.13.0 — Breadcrumb cross-template consistency
   Audit CRO §1.3.1: "breadcrumb diverso da pagina a pagina va unificato".
   Helper saltelli_render_breadcrumb() emette markup uniforme su 11/12 template.
   Schema BreadcrumbList già delegato a meta-tags.php (12/12 pagine).
   ═══════════════════════════════════════════════════════════════ */
.sl-page__breadcrumb {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: var(--sl-space-3);
    display: block;
    line-height: 1.4;
}
.sl-page__breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color var(--dur-fast) var(--ease-editorial),
                border-color var(--dur-fast) var(--ease-editorial);
}
.sl-page__breadcrumb a:hover,
.sl-page__breadcrumb a:focus-visible {
    color: var(--accent);
    border-bottom-color: var(--accent);
}
.sl-page__breadcrumb-sep {
    color: var(--text-muted);
    opacity: 0.5;
    margin-inline: 4px;
    font-size: 11px;
}
.sl-page__breadcrumb [aria-current="page"] {
    color: var(--primary);
    font-weight: 500;
}

/* TASK 6 — Touch target 48×48 minimo mobile (audit CRO §12.3 compliance)
   Garantisce che CTA, link nav, breadcrumb hanno area cliccabile sufficiente
   su touch device. Padding-block 12px assicura 24+ height per testo 16px. */
@media (max-width: 1023px) {
    .sl-btn,
    .sl-link,
    .sl-header__nav a,
    .sl-mobile-menu a,
    .sl-footer__nav a,
    .sl-footer .menu a,
    .sl-attorney__sticky-btn,
    .sl-page__breadcrumb a,
    .sl-page-contatti__map-link,
    .sl-blog__pagination a,
    .sl-areas__filter {
        min-height: 48px;
        display: inline-flex;
        align-items: center;
    }
}

/* ═══════════════════════════════════════════════════════════════
   CONVERSION QUICKWIN v0.13.6 — WhatsApp sticky mobile (audit CRO §3 #5)
   Visible solo mobile (<1024px). Brand WhatsApp green #25D366.
   Touch target 56x56 mobile-friendly. NO bordo/shadow per editorial feel.
   ═══════════════════════════════════════════════════════════════ */
.sl-whatsapp-sticky {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #25D366;
    color: #FFFFFF;
    border-radius: 50%;
    display: none; /* default hidden, mostrato in mobile media query */
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 100;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.32);
    transition: transform var(--dur-fast) var(--ease-editorial),
                box-shadow var(--dur-fast) var(--ease-editorial);
}
.sl-whatsapp-sticky:hover,
.sl-whatsapp-sticky:focus-visible {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.42);
    outline: none;
}
.sl-whatsapp-sticky__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Mobile only — display:flex sotto 1024 */
@media (max-width: 1023px) {
    .sl-whatsapp-sticky {
        display: flex;
    }
}

/* ═══════════════════════════════════════════════════════════════
   CONVERSION QUICKWIN v0.13.6 — Contact form CF7 editorial styling
   Audit CRO §3 #4. Form sobrio, tipografia coerente Playfair+DM Sans.
   ═══════════════════════════════════════════════════════════════ */
.sl-page-contatti__form {
    padding-block: clamp(64px, 8vw, 128px);
    background: var(--background);
    border-bottom: 1px solid var(--border);
}
.sl-page-contatti__form .sl-mono {
    margin-bottom: 16px;
}
.sl-page-contatti__form h2 {
    font-family: var(--font-display);
    font-size: clamp(28px, 3vw, 44px);
    color: var(--primary);
    letter-spacing: -0.02em;
    margin: 0 0 24px;
    font-weight: 400;
    max-width: 24ch;
    line-height: 1.15;
}
.sl-page-contatti__form-lede {
    font-family: var(--font-display);
    font-size: clamp(16px, 1.4vw, 18px);
    font-style: italic;
    line-height: 1.55;
    color: var(--text);
    max-width: 60ch;
    margin: 0 0 48px;
}

/* CF7 form base */
.sl-form,
.wpcf7-form {
    max-width: 640px;
}
.sl-form__row,
.wpcf7-form > p {
    margin-block: 0 24px;
}
.sl-form__row label,
.wpcf7-form label {
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.sl-form__required {
    color: var(--accent);
    margin-left: 2px;
}
.sl-form__input,
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form select,
.wpcf7-form textarea {
    width: 100%;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--text);
    transition: border-color var(--dur-fast) var(--ease-editorial);
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 0;
}
.wpcf7-form select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236B6B6B' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 4px center;
    padding-right: 32px;
}
.sl-form__input:focus,
.wpcf7-form input:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
    outline: none;
    border-bottom-color: var(--accent);
    border-bottom-width: 2px;
    padding-bottom: 11px; /* compensa border 2px */
}
.wpcf7-form textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.6;
}

/* Privacy checkbox row */
.sl-form__row--privacy,
.wpcf7-form .wpcf7-acceptance {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.sl-form__row--privacy label,
.wpcf7-form .wpcf7-acceptance label {
    font-family: var(--font-body);
    font-size: 14px;
    text-transform: none;
    letter-spacing: 0;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}
.wpcf7-form .wpcf7-acceptance input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    flex-shrink: 0;
    accent-color: var(--accent);
}
.sl-form__row--privacy a,
.wpcf7-form .wpcf7-acceptance a {
    color: var(--accent);
    border-bottom: 1px solid transparent;
    transition: border-color var(--dur-fast) var(--ease-editorial);
}
.sl-form__row--privacy a:hover,
.wpcf7-form .wpcf7-acceptance a:hover {
    border-bottom-color: var(--accent);
}

/* Submit button — usa .sl-btn editorial */
.sl-form__row--submit,
.wpcf7-form > p.submit {
    margin-top: 32px;
}
.wpcf7-form input[type="submit"],
.wpcf7-form .wpcf7-submit {
    background: var(--primary);
    color: var(--background);
    border: 0;
    padding: 16px 32px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background var(--dur-fast) var(--ease-editorial),
                transform var(--dur-fast) var(--ease-editorial);
    border-radius: 0;
    -webkit-appearance: none;
}
.wpcf7-form input[type="submit"]:hover,
.wpcf7-form .wpcf7-submit:hover {
    background: var(--accent);
    transform: translateX(2px);
}

/* Footer note + CF7 response messages */
.sl-form__note {
    margin-top: 16px;
    color: var(--text-muted);
    font-size: 11px;
}
.wpcf7-response-output {
    margin-top: 24px !important;
    padding: 16px 20px !important;
    border-width: 1px !important;
    border-radius: 0 !important;
    font-family: var(--font-body);
    font-size: 14px;
}
.wpcf7-form.sent .wpcf7-response-output {
    border-color: #2D7A4F !important;
    background: rgba(45, 122, 79, 0.06);
    color: #1F5234;
}
.wpcf7-form.invalid .wpcf7-response-output,
.wpcf7-form.failed .wpcf7-response-output {
    border-color: #B83232 !important;
    background: rgba(184, 50, 50, 0.06);
    color: #7A2222;
}
.wpcf7-not-valid-tip {
    color: #B83232;
    font-size: 12px;
    margin-top: 4px;
    display: block;
    font-family: var(--font-mono);
    letter-spacing: 0.04em;
}

/* ═══════════════════════════════════════════════════════════════
   F04 v0.14 — .sl-page__prose body spacing più ariato
   /chi-siamo/, /casi/, /contatti/ hanno H1 + lede + body troppo
   stretti. Aumentiamo respiro h2 (80/24 era 32/16), lede sotto h1
   (32px), spacing globale paragrafi (24px tra p).
   I valori cooperano con --sl-space-7 (riga 2802) ma incrementano
   il rhythm interno della prose dove --sl-space-7 non arriva
   (es. h1 → primo p, p → p, p → ul).
   ─────────────────────────────────────────────────────────────── */
.sl-page__prose h1 + p,
.sl-page__prose > .sl-page__title + p {
    margin-top: 32px;
}
.sl-page__prose p + p {
    margin-top: 16px;
}
.sl-page__prose p + h2,
.sl-page__prose ul + h2,
.sl-page__prose ol + h2,
.sl-page__prose blockquote + h2 {
    margin-top: 80px;
}
.sl-page__prose p + h3,
.sl-page__prose ul + h3,
.sl-page__prose ol + h3 {
    margin-top: 56px;
}
.sl-page__prose h2 + p,
.sl-page__prose h3 + p {
    margin-top: 24px;
}
