/*
 * Magazine v2 — articolo (handoff Claude Design «Proposta A», ottobre 2026).
 * Caricato solo sugli articoli col campo «layout_magazine» acceso (inc/magazine-v2.php).
 * Tutto sotto .mz2: main.css (Tailwind compilato) azzera titoli ed elenchi, qui si
 * rimettono solo dentro l'articolo.
 */

@font-face { font-family: "Plus Jakarta Sans"; font-weight: 400; font-display: swap; src: url("../fonts/PlusJakartaSans-400.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 500; font-display: swap; src: url("../fonts/PlusJakartaSans-500.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 600; font-display: swap; src: url("../fonts/PlusJakartaSans-600.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 700; font-display: swap; src: url("../fonts/PlusJakartaSans-700.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 800; font-display: swap; src: url("../fonts/PlusJakartaSans-800.woff2") format("woff2"); }

.mz2 {
  --mz2-fern: #1F4D37;
  --mz2-accent: #00B985;
  --mz2-accent-ink: #06301F;
  --mz2-lotus: #FDF4ED;
  --mz2-conchiglia: #F8E9DD;
  --mz2-mint: #BEEDE0;
  --mz2-card: #FFFFFF;
  --mz2-body: #24382E;
  --mz2-muted: #5C6B62;
  --mz2-inverse-muted: #C4D6CC;
  --mz2-bordo: #E7DCCF;
  --mz2-bordo-forte: #D8C9B8;
  --mz2-ombra: 0 6px 20px rgba(20, 40, 30, 0.06);
  --mz2-display: "Jokker-zeroc02", "Plus Jakarta Sans", system-ui, sans-serif;
  --mz2-sans: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --mz2-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  background: var(--mz2-lotus);
  color: var(--mz2-body);
  font-family: var(--mz2-sans);
  -webkit-font-smoothing: antialiased;
}

/* Scroll nativo: come per le landing, niente overflow sugli antenati, che
   impedirebbe al sommario e alla card di restare fermi (position: sticky). */
body.magazine-v2 { overflow: initial; background: #FDF4ED; }
body.magazine-v2 .smooth-scroll { overflow: initial !important; }
html:has(body.magazine-v2) { scroll-behavior: smooth; }

/* Un filtro del sito mette su ogni immagine di WordPress uno stile inline
   (es. «height:66.75%») calcolato sul formato originale: vincerebbe sul CSS qui
   sotto e lascerebbe le foto più basse del loro riquadro. */
.mz2 img[style] { max-width: 100% !important; }
.mz2 .mz2-hero__img, .mz2 .mz2-card__img img { width: 100% !important; height: 100% !important; }
.mz2 .mz2-foto img, .mz2 .mz2-servizio__img img { height: auto !important; }

/* Barra di avanzamento lettura: in cima alla finestra, sopra l'header. */
.mz2-progresso { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1000; pointer-events: none; }
.mz2-progresso > div { height: 100%; width: 0; background: #00B985; transition: width 80ms linear; }

.mz2 a { color: var(--mz2-fern); text-decoration: underline; text-decoration-color: var(--mz2-accent); text-decoration-thickness: 2px; text-underline-offset: 3px; transition: color 140ms var(--mz2-ease); }
.mz2 a:hover { color: var(--mz2-accent); }
.mz2 :focus-visible { outline: 3px solid var(--mz2-accent); outline-offset: 2px; border-radius: 6px; }
.mz2 h1, .mz2 h2, .mz2 h3 { font-family: var(--mz2-display); font-weight: 800; letter-spacing: -0.02em; color: var(--mz2-fern); margin: 0; }
.mz2 .mz2-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mz2-muted); }

/* ---------------------------------- Hero ---------------------------------- */
/* Altezza minima 640px, ma cresce con il contenuto: un abstract lungo non deve
   finire sotto l'header del sito (fisso, 146px). */
.mz2-hero { position: relative; min-height: 640px; overflow: hidden; background: var(--mz2-fern); display: flex; align-items: flex-end; }
.mz2-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Più scura dell'handoff (0 → 0.82 dal 30%): con abstract lunghi il titolo sale
   nella parte alta della foto, dove senza velo perdeva contrasto. */
.mz2-hero__scrim { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(20, 32, 26, 0.15) 0%, rgba(20, 32, 26, 0.5) 40%, rgba(20, 32, 26, 0.86) 100%); }
.mz2-hero__contenuto { position: relative; width: 100%; max-width: 1280px; margin: 0 auto; padding: 180px 32px 64px; display: grid; grid-template-columns: minmax(0, 820px); gap: 20px; }
.mz2-hero__briciole { display: flex; gap: 10px; align-items: center; font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mz2-lotus); }
.mz2-hero__briciole a { color: var(--mz2-lotus); text-decoration: none; }
.mz2-hero__briciole a.mz2-hero__categoria { color: var(--mz2-mint); }
.mz2-hero__briciole a:hover { color: var(--mz2-accent); }
.mz2-hero__briciole span { opacity: 0.6; }
.mz2 .mz2-hero h1 { font-size: 60px; line-height: 1.05; color: var(--mz2-lotus); text-wrap: balance; }
.mz2-hero__abstract { font-size: 20px; line-height: 1.55; color: var(--mz2-lotus); max-width: 680px; text-wrap: pretty; }
.mz2-hero__abstract p { margin: 0 0 0.6em; }
.mz2-hero__abstract p:last-child { margin-bottom: 0; }
.mz2-hero__abstract a { color: var(--mz2-lotus); }
.mz2-hero__meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 15px; color: var(--mz2-inverse-muted); }

/* ---------------------------------- Corpo --------------------------------- */
.mz2-corpo { max-width: 1280px; margin: 0 auto; padding: 72px 32px 96px; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; align-items: start; }
.mz2-corpo--servizio { grid-template-columns: 240px minmax(0, 1fr) 280px; }

/* Sommario */
.mz2-sommario { position: sticky; top: 88px; }
.mz2-sommario details > summary { list-style: none; margin-bottom: 18px; pointer-events: none; }
.mz2-sommario details > summary::-webkit-details-marker { display: none; }
.mz2-sommario ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; border-left: 2px solid var(--mz2-bordo); }
.mz2-sommario li a { display: block; margin-left: -2px; padding: 9px 0 9px 16px; border-left: 2px solid transparent; font-size: 15px; line-height: 1.4; font-weight: 500; color: var(--mz2-muted); text-decoration: none; transition: color 140ms var(--mz2-ease), border-color 140ms var(--mz2-ease); }
.mz2-sommario li a:hover { color: var(--mz2-fern); }
.mz2-sommario li a[aria-current="true"] { font-weight: 700; color: var(--mz2-fern); border-left-color: var(--mz2-accent); }
.mz2-sommario__letto { margin-top: 24px; font-size: 14px; color: var(--mz2-muted); }

/* Articolo */
.mz2-articolo { max-width: 700px; min-width: 0; }
.mz2-intro { margin: 0 0 40px; font-size: 21px; line-height: 1.65; color: var(--mz2-fern); text-wrap: pretty; }
.mz2-intro p { margin: 0 0 0.8em; }
.mz2-sezione { margin-bottom: 48px; scroll-margin-top: 88px; }
.mz2 .mz2-sezione h2 { font-size: 34px; line-height: 1.15; margin-bottom: 18px; }
.mz2-testo { font-size: 18px; line-height: 1.7; color: var(--mz2-body); }
.mz2-testo p { margin: 0 0 18px; text-wrap: pretty; }
.mz2-testo ul, .mz2-testo ol { margin: 0 0 18px; padding-left: 1.3em; }
.mz2-testo ul { list-style: disc; }
.mz2-testo ol { list-style: decimal; }
.mz2-testo li { margin-bottom: 10px; padding-left: 4px; }
.mz2-testo li::marker { color: var(--mz2-accent); }
.mz2-testo strong, .mz2-testo b { font-weight: 700; color: var(--mz2-fern); }
.mz2-testo h2, .mz2-testo h3 { font-size: 24px; line-height: 1.25; margin: 28px 0 12px; }
.mz2-testo > :last-child { margin-bottom: 0; }
.mz2-testo + .mz2-testo { margin-top: 18px; }
#scroll-fix.mz2 [id] { scroll-margin-top: 88px; }

/* Passi */
.mz2-passi { list-style: none; margin: 8px 0 18px; padding: 0; display: grid; gap: 12px; }
.mz2-passi li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; padding: 18px 20px; background: var(--mz2-card); border: 1px solid var(--mz2-bordo); border-radius: 20px; }
.mz2-passi__n { width: 44px; height: 44px; border-radius: 999px; background: var(--mz2-mint); color: var(--mz2-fern); display: grid; place-items: center; font-family: var(--mz2-display); font-weight: 800; font-size: 18px; }
.mz2-passi__t { font-weight: 700; font-size: 17px; color: var(--mz2-fern); margin-bottom: 4px; }
.mz2-passi__d { font-size: 16px; line-height: 1.55; color: var(--mz2-body); }
.mz2-passi__d p { margin: 0; }

/* Foto: un solo trattamento per tutte le gallerie dell'articolo. */
.mz2-foto { display: grid; gap: 12px; margin: 24px 0 8px; }
.mz2-foto--1 { grid-template-columns: 1fr; }
.mz2-foto--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mz2-foto--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mz2-foto figure { margin: 0; }
.mz2 a.mz2-foto__apri { display: block; border-radius: 20px; overflow: hidden; cursor: zoom-in; text-decoration: none; }
.mz2 a.mz2-foto__apri img { transition: transform 380ms var(--mz2-ease); }
.mz2 a.mz2-foto__apri:hover img { transform: scale(1.03); }
.mz2-foto img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; background: var(--mz2-conchiglia); }
.mz2-foto--1 img { aspect-ratio: 16 / 10; }
.mz2-foto figcaption { margin-top: 8px; font-size: 14px; line-height: 1.45; color: var(--mz2-muted); }

/* Pulsanti */
.mz2-bottoni { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.mz2 .mz2-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; border-radius: 999px; border: 1.5px solid transparent; font: 600 15px/1 var(--mz2-sans); text-decoration: none; cursor: pointer; transition: filter 140ms var(--mz2-ease), transform 140ms var(--mz2-ease); }
.mz2 .mz2-btn:hover { filter: brightness(0.94); }
.mz2 .mz2-btn:active { transform: scale(0.97); }
.mz2 .mz2-btn--primario { background: var(--mz2-accent); color: var(--mz2-accent-ink); }
.mz2 .mz2-btn--primario:hover { color: var(--mz2-accent-ink); }
.mz2 .mz2-btn--secondario { background: transparent; color: var(--mz2-fern); border-color: var(--mz2-fern); }
.mz2 .mz2-btn--pieno { width: 100%; }

/* CTA nel flusso (blocchi «lancio») */
.mz2-cta { margin: 8px 0 48px; padding: 32px; border-radius: 24px; background: var(--mz2-fern); color: var(--mz2-lotus); }
.mz2-cta__titolo { font-family: var(--mz2-display); font-weight: 800; font-size: 26px; line-height: 1.2; letter-spacing: -0.01em; color: var(--mz2-lotus); }
.mz2-cta__testo { margin-top: 10px; font-size: 16px; line-height: 1.6; color: var(--mz2-inverse-muted); }
.mz2-cta__testo p { margin: 0; }
.mz2-cta .mz2-bottoni { margin-top: 22px; }
.mz2 .mz2-cta .mz2-btn--secondario { color: var(--mz2-lotus); border-color: rgba(253, 244, 237, 0.6); }
/* Link su fondo verde (card CTA, card servizio): il link di default è verde e
   sparirebbe. Chiaro, con la sottolineatura menta. */
.mz2 .mz2-cta__testo a, .mz2 .mz2-servizio p a { color: var(--mz2-lotus); text-decoration-color: var(--mz2-mint); }
.mz2 .mz2-cta__testo a:hover, .mz2 .mz2-servizio p a:hover { color: var(--mz2-mint); }

/* Citazione (blocchi «caption») */
.mz2-citazione { margin: 8px 0 48px; padding: 4px 0 4px 24px; border-left: 3px solid var(--mz2-accent); }
.mz2-citazione blockquote { margin: 0; font-family: var(--mz2-display); font-weight: 700; font-size: 26px; line-height: 1.35; color: var(--mz2-fern); }
.mz2-citazione figcaption { margin-top: 12px; font-size: 15px; color: var(--mz2-muted); }

/* Autore e fonti */
.mz2-autore { margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--mz2-bordo-forte); display: grid; gap: 28px; scroll-margin-top: 88px; }
.mz2-autore__chi { display: flex; gap: 16px; align-items: center; }
.mz2-autore__avatar { flex: none; width: 56px; height: 56px; border-radius: 999px; background: var(--mz2-fern); color: var(--mz2-lotus); display: grid; place-items: center; font-family: var(--mz2-display); font-weight: 800; font-size: 18px; }
.mz2-autore__nome { font-weight: 700; font-size: 17px; color: var(--mz2-fern); }
.mz2-autore__nome a { text-decoration: none; }
.mz2-autore__date { font-size: 15px; color: var(--mz2-muted); }
.mz2-fonti { margin: 12px 0 0; padding-left: 20px; list-style: decimal; display: grid; gap: 8px; font-size: 15px; line-height: 1.5; }

/* FAQ */
.mz2-sezione--faq { margin-top: 64px; }
.mz2 .mz2-sezione--faq h2 { margin-bottom: 20px; }
.mz2-faq { display: grid; gap: 10px; }
.mz2-faq__voce { background: var(--mz2-card); border: 1px solid var(--mz2-bordo); border-radius: 20px; overflow: hidden; }
.mz2 .mz2-faq h3 { font: inherit; letter-spacing: normal; }
.mz2-faq button { width: 100%; border: 0; background: transparent; cursor: pointer; padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; text-align: left; font: 700 17px/1.4 var(--mz2-sans); color: var(--mz2-fern); }
.mz2-faq__icona { flex: none; width: 32px; height: 32px; border-radius: 999px; background: var(--mz2-conchiglia); position: relative; }
.mz2-faq__icona::before, .mz2-faq__icona::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: var(--mz2-fern); border-radius: 2px; transition: transform 220ms var(--mz2-ease); }
.mz2-faq__icona::after { transform: rotate(90deg); }
.mz2-faq button[aria-expanded="true"] .mz2-faq__icona::after { transform: rotate(0deg); }
.mz2-faq__risposta { padding: 0 24px 22px; font-size: 16px; line-height: 1.65; color: var(--mz2-body); }
.mz2-faq__risposta p { margin: 0 0 10px; }
.mz2-faq__risposta > :last-child { margin-bottom: 0; }

/* Card servizio collegato */
.mz2-servizio { background: var(--mz2-fern); color: var(--mz2-lotus); border-radius: 24px; padding: 28px; display: grid; gap: 16px; }
.mz2-servizio--laterale { position: sticky; top: 88px; }
.mz2-servizio--in-linea { display: none; margin: 8px 0 0; }
.mz2-servizio__img { background: var(--mz2-lotus); border-radius: 18px; padding: 12px; display: grid; place-items: center; }
.mz2-servizio__img img { width: 100%; max-width: 180px; height: auto; }
.mz2-servizio .mz2-eyebrow { color: var(--mz2-mint); }
.mz2-servizio__titolo { font-family: var(--mz2-display); font-weight: 800; font-size: 24px; line-height: 1.2; letter-spacing: -0.01em; }
.mz2-servizio p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--mz2-inverse-muted); }
.mz2-servizio__voce { display: grid; gap: 14px; }
.mz2-servizio--piu .mz2-servizio__voce + .mz2-servizio__voce { padding-top: 20px; border-top: 1px solid rgba(253, 244, 237, 0.18); }
/* Con due servizi la card resta più bassa della finestra (è sticky): illustrazione
   piccola accanto al titolo, testo e pulsanti sotto a tutta larghezza. */
.mz2-servizio--piu .mz2-servizio__voce { grid-template-columns: 64px minmax(0, 1fr); gap: 10px 14px; align-items: center; }
.mz2-servizio--piu .mz2-servizio__voce > :not(.mz2-servizio__img):not(.mz2-servizio__titolo) { grid-column: 1 / -1; }
.mz2-servizio--piu .mz2-servizio__voce:not(:has(.mz2-servizio__img)) .mz2-servizio__titolo { grid-column: 1 / -1; }
.mz2-servizio--piu .mz2-servizio__img { width: 64px; height: 64px; padding: 6px; border-radius: 14px; }
.mz2-servizio--piu .mz2-servizio__img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.mz2-servizio--piu .mz2-servizio__titolo { font-size: 19px; }
.mz2 .mz2-servizio .mz2-btn { padding: 0 16px; font-size: 14px; text-align: center; }
.mz2 .mz2-btn--chiaro { background: transparent; color: var(--mz2-lotus); border-color: rgba(253, 244, 237, 0.6); }
.mz2 .mz2-btn--chiaro:hover { color: var(--mz2-lotus); }

/* Tabelle: modulo «Tabella» e tabelle scritte nell'editor. Scorrono in orizzontale
   quando non stanno nella colonna; nelle tabelle di confronto la prima colonna resta ferma. */
.mz2-tabella { margin: 24px 0 8px; overflow-x: auto; border: 1px solid var(--mz2-bordo); border-radius: 20px; background: var(--mz2-card); -webkit-overflow-scrolling: touch; }
.mz2-tabella:focus-visible { outline: 3px solid var(--mz2-accent); outline-offset: 2px; }
.mz2-tabella table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15px; line-height: 1.5; color: var(--mz2-body); }
.mz2-tabella th, .mz2-tabella td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--mz2-bordo); }
.mz2-tabella tr:last-child > * { border-bottom: 0; }
.mz2-tabella thead th, .mz2-tabella tr:first-child > th:only-of-type { background: var(--mz2-fern); color: var(--mz2-lotus); font-weight: 700; font-size: 14px; letter-spacing: 0.01em; }
.mz2-tabella tbody tr:nth-child(even) { background: #FBF7F2; }
.mz2-tabella tbody th[scope="row"] { position: sticky; left: 0; background: var(--mz2-conchiglia); color: var(--mz2-fern); font-weight: 700; }
.mz2-tabella td p, .mz2-tabella th p { margin: 0; }
.mz2-tabella a { color: var(--mz2-fern); }
.mz2-tabella__nota { margin: 8px 0 0; font-size: 14px; color: var(--mz2-muted); }

/* Schede (blocchi «blocco viola» e «valori») */
.mz2-eyebrow--sezione { margin-bottom: 8px; color: var(--mz2-accent); }
.mz2-schede { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 20px; }
.mz2-scheda { background: var(--mz2-card); border: 1px solid var(--mz2-bordo); border-radius: 20px; padding: 20px; display: grid; gap: 8px; align-content: start; }
.mz2-scheda__icona img { width: 32px !important; height: 32px !important; object-fit: contain; }
.mz2-scheda__foto { margin: -20px -20px 6px; }
.mz2-scheda__foto img { width: 100% !important; height: auto !important; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px 20px 0 0; display: block; }
.mz2-scheda__titolo { font-weight: 700; font-size: 17px; line-height: 1.35; color: var(--mz2-fern); }
.mz2-scheda__titolo a { text-decoration: none; }
.mz2-scheda__testo { font-size: 15px; line-height: 1.55; }
.mz2-scheda__testo p { margin: 0 0 8px; }
.mz2-scheda__testo > :last-child { margin-bottom: 0; }
.mz2-scheda .mz2-bottoni { margin-top: 8px; }

/* Consigli di lettura e ascolto (blocco «podcast/libri») */
.mz2-consigli { display: grid; gap: 12px; margin-top: 20px; }
.mz2-consiglio { display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: start; background: var(--mz2-card); border: 1px solid var(--mz2-bordo); border-radius: 20px; padding: 16px; }
/* Senza immagine il testo prende tutta la larghezza, non la colonna da 96px. */
.mz2-consiglio:not(:has(.mz2-consiglio__img)) { grid-template-columns: minmax(0, 1fr); }
.mz2-consiglio__img img { width: 96px !important; height: 96px !important; object-fit: cover; border-radius: 14px; display: block; }
.mz2-consiglio .mz2-card__cat { margin-bottom: 4px; }

/* «Leggi anche» (blocco «lancio blog») */
.mz2-leggi { margin: 8px 0 48px; padding: 24px 28px; border-radius: 24px; background: var(--mz2-conchiglia); }
.mz2-leggi ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.mz2-leggi li a { font-weight: 600; font-size: 17px; }

/* Galleria a scorrimento (lightbox) */
html.mz2-lb-aperta { overflow: hidden; }
.mz2-lb { position: fixed; inset: 0; z-index: 2000; background: rgba(12, 22, 17, 0.98); display: grid; grid-template-columns: 72px minmax(0, 1fr) 72px; align-items: center; padding: 56px 16px; }
.mz2-lb[hidden] { display: none; }
.mz2-lb__foto { grid-column: 2; margin: 0; display: grid; justify-items: center; gap: 12px; max-height: 100%; }
.mz2-lb__foto img { max-width: 100%; max-height: calc(100vh - 160px); width: auto !important; height: auto !important; object-fit: contain; border-radius: 12px; }
.mz2-lb__foto figcaption { font-size: 15px; line-height: 1.45; color: var(--mz2-inverse-muted); text-align: center; max-width: 720px; }
.mz2-lb button { border: 0; cursor: pointer; background: rgba(253, 244, 237, 0.12); color: var(--mz2-lotus); border-radius: 999px; width: 48px; height: 48px; display: grid; place-items: center; transition: background 140ms var(--mz2-ease); }
.mz2-lb button:hover { background: rgba(253, 244, 237, 0.24); }
.mz2-lb button[hidden] { display: none; }
.mz2-lb__freccia--prec { grid-column: 1; justify-self: center; }
.mz2-lb__freccia--succ { grid-column: 3; justify-self: center; }
.mz2-lb__freccia::before { content: ""; width: 12px; height: 12px; border: solid var(--mz2-lotus); border-width: 0 2px 2px 0; transform: rotate(135deg); margin-left: 4px; }
.mz2-lb__freccia--succ::before { transform: rotate(-45deg); margin: 0 4px 0 0; }
.mz2-lb__chiudi { position: absolute; top: 16px; right: 16px; }
.mz2-lb__chiudi::before, .mz2-lb__chiudi::after { content: ""; position: absolute; width: 18px; height: 2px; background: var(--mz2-lotus); border-radius: 2px; transform: rotate(45deg); }
.mz2-lb__chiudi::after { transform: rotate(-45deg); }
.mz2-lb__conta { position: absolute; top: 28px; left: 0; right: 0; text-align: center; font-size: 14px; color: var(--mz2-inverse-muted); pointer-events: none; }
@media (max-width: 899px) {
  .mz2-lb { grid-template-columns: minmax(0, 1fr); padding: 64px 12px 80px; }
  .mz2-lb__foto { grid-column: 1; }
  .mz2-lb__freccia { position: absolute; bottom: 20px; }
  .mz2-lb__freccia--prec { left: calc(50% - 60px); }
  .mz2-lb__freccia--succ { right: calc(50% - 60px); }
}

/* Blocchi non ancora tradotti: il loro template, con il loro sfondo. */
.mz2-legacy { margin: 0 0 48px; border-radius: 24px; overflow: hidden; }

/* Correlati */
.mz2-correlati { background: var(--mz2-conchiglia); padding: 80px 32px 112px; }
.mz2-correlati__testa, .mz2-correlati__griglia { max-width: 1216px; margin: 0 auto; }
.mz2-correlati__testa { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 32px; }
.mz2 .mz2-correlati h2 { font-size: 36px; }
.mz2-correlati__testa a { font-weight: 600; font-size: 16px; }
.mz2-correlati__griglia { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.mz2 a.mz2-card { display: flex; flex-direction: column; background: var(--mz2-card); border-radius: 24px; overflow: hidden; box-shadow: var(--mz2-ombra); text-decoration: none; color: inherit; transition: transform 220ms var(--mz2-ease); }
.mz2 a.mz2-card:hover { transform: translateY(-3px); color: inherit; }
.mz2-card__img { height: 210px; background: var(--mz2-fern); }
.mz2-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mz2-card__corpo { padding: 22px 24px 26px; display: grid; gap: 10px; }
.mz2-card__cat { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mz2-accent); }
.mz2-card__titolo { font-family: var(--mz2-display); font-weight: 800; font-size: 22px; line-height: 1.25; letter-spacing: -0.01em; color: var(--mz2-fern); text-wrap: pretty; }
.mz2-card__tempo { font-size: 14px; color: var(--mz2-muted); }

/* -------------------------------- Responsive ------------------------------ */
@media (max-width: 1199px) {
  .mz2-corpo, .mz2-corpo--servizio { grid-template-columns: 200px minmax(0, 1fr); gap: 40px; }
  .mz2-servizio--laterale { display: none; }
  .mz2-servizio--in-linea { display: grid; }
}
@media (max-width: 999px) {
  .mz2 .mz2-hero h1 { font-size: 46px; }
}
/* Telefono e tablet stretto: una colonna, sommario come pannello apribile sotto la hero. */
@media (max-width: 899px) {
  .mz2-hero { min-height: 560px; }
  .mz2-hero__contenuto { padding: 140px 20px 40px; gap: 14px; }
  .mz2-hero__meta { gap: 2px 14px; }
  .mz2-hero__meta span[aria-hidden] { display: none; }
  .mz2 .mz2-hero h1 { font-size: 36px; }
  .mz2-hero__abstract { font-size: 17px; }
  .mz2-hero__meta { font-size: 14px; }
  .mz2-corpo, .mz2-corpo--servizio { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 32px 20px 64px; }
  .mz2-sommario { position: static; }
  .mz2-sommario details { background: var(--mz2-card); border: 1px solid var(--mz2-bordo); border-radius: 20px; padding: 16px 20px; }
  .mz2-sommario details > summary { pointer-events: auto; cursor: pointer; margin: 0; display: flex; justify-content: space-between; align-items: center; }
  .mz2-sommario details > summary::after { content: "+"; font-size: 20px; font-weight: 500; letter-spacing: 0; }
  .mz2-sommario details[open] > summary::after { content: "−"; }
  .mz2-sommario details[open] > summary { margin-bottom: 14px; }
  .mz2-sommario__letto { display: none; }
  .mz2-intro { font-size: 19px; }
  .mz2 .mz2-sezione h2 { font-size: 28px; }
  .mz2-testo { font-size: 17px; }
  .mz2-foto--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mz2-foto--3 figure:first-child { grid-column: 1 / -1; }
  .mz2-foto--3 figure:first-child img { aspect-ratio: 16 / 10; }
  .mz2-cta { padding: 24px; }
  .mz2-correlati { padding: 56px 20px 72px; }
  .mz2 .mz2-correlati h2 { font-size: 28px; }
  .mz2-correlati__griglia { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html:has(body.magazine-v2) { scroll-behavior: auto; }
  .mz2 *, .mz2-progresso > div { transition: none !important; }
}
