/* =====================================================================
   DETTAGLIO ARTICOLO — templates/single.html. Misure dalla schermata Stitch "Dettaglio Articolo" a 1280px.
   Corpo = solo testo (paragrafi e sottotitoli) scritto nell'editor: niente box/card/citazioni (scelta del cliente).
   Colonna laterale: solo il box contatto (sticky). Card correlate = .mm-news-card (62-news.css).
   Vedi design/DESIGN.md › Components › Dettaglio articolo.
   ===================================================================== */

/* --- Testata: breadcrumb, categorie a pillola, H1, sommario (= Riassunto dell'articolo); max 940px --- */
.wp-block-group.mm-section.mm-articolo-head { padding-top: 40px; } /* 32 di Stitch + 8 di stacco dall'header */
.wp-block-group.mm-articolo-head > * { max-width: 940px; }
.wp-block-group.mm-articolo-head > .mm-breadcrumbs { max-width: none; margin-bottom: 32px; }
.mm-articolo-head .mm-breadcrumbs [aria-current] { max-width: 448px; }
@media (max-width: 639px) { .mm-articolo-head .mm-breadcrumbs [aria-current] { max-width: 280px; } }

.wp-block-group.mm-articolo-head > .mm-articolo__cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.mm-articolo__cats .wp-block-post-terms__separator { display: none; }
.mm-articolo__cats a {
  padding: 6px 14px;
  border-radius: 9999px;
  background-color: var(--wp--preset--color--surface-blue);
  color: var(--wp--preset--color--primary);
  font-family: var(--wp--preset--font-family--plus-jakarta-sans);
  font-size: var(--wp--preset--font-size--label-caps);
  font-weight: 600;
  line-height: 1;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color .2s, color .2s;
}
.mm-articolo__cats a:hover { background-color: var(--wp--preset--color--primary); color: var(--wp--preset--color--surface); }

.wp-block-group.mm-articolo-head > .mm-articolo__title {
  margin-bottom: 24px;
  color: var(--wp--preset--color--on-surface);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.025em;
}
.mm-articolo__lead p { margin: 0; line-height: 1.625; }

/* --- Foto in evidenza: 16:9 fino a 560px di altezza, angoli 24px --- */
.wp-block-group.mm-section.mm-articolo-cover { padding-block: 0 64px; }
.mm-articolo__img.wp-block-post-featured-image {
  --mm-radius: 24px;
  margin: 0;
  overflow: hidden;
  border-radius: 24px;
  background-color: var(--wp--preset--color--surface-blue);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -2px rgba(0, 0, 0, .1);
}
.mm-articolo__img img { display: block; width: 100%; max-height: 560px; }

/* --- Corpo (8 colonne, max 720px) + colonna laterale (4 colonne, sticky) --- */
.wp-block-group.mm-section.mm-articolo-body { padding-block: 0 96px; }
.wp-block-group.mm-articolo__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; align-items: start; }
.wp-block-group.mm-articolo__grid > * { margin: 0; }
.wp-block-group.mm-articolo__main { max-width: 720px; }
.wp-block-group.mm-articolo__main > * { margin: 0; }
@media (min-width: 1024px) {
  .wp-block-group.mm-articolo__grid { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
  .wp-block-group.mm-articolo__aside { position: sticky; top: 160px; } /* sotto l'header fisso (136px) */
}

/* Testo dell'articolo: primo paragrafo in evidenza, poi paragrafi 16px e sottotitoli H2 Blu Notte */
.mm-articolo__content > * { margin: 0; }
.mm-articolo__content > * + * { margin-top: 24px; }
.mm-articolo__content p {
  color: var(--wp--preset--color--on-surface-variant);
  font-size: var(--wp--preset--font-size--body-md);
  line-height: 1.625;
}
.mm-articolo__content > p:first-child {
  color: var(--wp--preset--color--on-surface);
  font-size: var(--wp--preset--font-size--body-lg);
  font-weight: 500;
}
.mm-articolo__content > p:first-child + * { margin-top: 40px; }
.mm-articolo__content h2 {
  color: var(--wp--preset--color--primary-deep);
  font-size: var(--wp--preset--font-size--headline-md);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.025em;
}
.mm-articolo__content > h2:not(:first-child) { margin-top: 48px; }
.mm-articolo__content h3 { color: var(--wp--preset--color--primary-deep); font-size: var(--wp--preset--font-size--headline-sm); }
.mm-articolo__content strong { color: var(--wp--preset--color--on-surface); }

/* Tag: "TAG:" + pillole */
.wp-block-group.mm-articolo__main > .mm-articolo__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 48px; }
.mm-articolo__tags .wp-block-post-terms__separator { display: none; }
.mm-articolo__tags .wp-block-post-terms__prefix {
  margin-right: 8px;
  color: var(--wp--preset--color--on-surface-variant);
  font-family: var(--wp--preset--font-family--plus-jakarta-sans);
  font-size: var(--wp--preset--font-size--label-caps);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.mm-articolo__tags a {
  padding: 4px 12px;
  border-radius: 9999px;
  background-color: var(--wp--preset--color--surface-blue);
  color: var(--wp--preset--color--primary);
  font-size: var(--wp--preset--font-size--label-caps);
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  transition: background-color .2s, color .2s;
}
.mm-articolo__tags a:hover { background-color: var(--wp--preset--color--primary); color: var(--wp--preset--color--surface); }

/* Condividi (blocco mm/condividi, inc/condividi.php): "CONDIVIDI L'ARTICOLO" come il prefisso dei tag + icone tonde Ghiaccio 40px */
.wp-block-group.mm-articolo__main > .mm-condividi { margin-top: 48px; }
.wp-block-group.mm-articolo__main > .mm-articolo__tags + .mm-condividi { margin-top: 24px; }
.mm-condividi { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.mm-condividi__titolo {
  margin: 0;
  color: var(--wp--preset--color--on-surface-variant);
  font-family: var(--wp--preset--font-family--plus-jakarta-sans);
  font-size: var(--wp--preset--font-size--label-caps);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.mm-condividi__links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.mm-condividi__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--wp--preset--color--surface-blue);
  color: var(--wp--preset--color--primary);
  transition: background-color .2s, color .2s;
}
.mm-condividi__link svg { width: 20px; height: 20px; fill: currentColor; }
.mm-condividi__link:hover,
.mm-condividi__link:focus-visible { background-color: var(--wp--preset--color--primary); color: var(--wp--preset--color--surface); }
.mm-condividi__link:focus-visible { outline: 2px solid var(--wp--preset--color--primary); outline-offset: 2px; }

/* --- Box contatto laterale: icona fulmine in riquadro Ghiaccio 48px, titolo, testo, due bottoni a tutta larghezza --- */
.wp-block-group.mm-aside-card {
  --mm-tile-size: 48px;
  --mm-tile-inset: 28px auto auto 28px;
  padding: 92px 28px 28px; /* 28 + riquadro 48 + 16 */
  border-radius: 24px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}
.wp-block-group.mm-aside-card > * { margin: 0; }
.mm-aside-card > .mm-aside-card__title { margin-bottom: 8px; color: var(--wp--preset--color--on-surface); font-weight: 700; line-height: 1.25; letter-spacing: -.025em; }
.mm-aside-card > .mm-aside-card__text { margin-bottom: 24px; line-height: 1.625; }
.wp-block-buttons.mm-aside-card__actions { gap: 12px; }
.mm-aside-card__actions > .wp-block-button { width: 100%; margin: 0; }
.mm-aside-card__actions .wp-block-button__link { justify-content: center; width: 100%; }
.wp-block-button.mm-btn-soft > .wp-block-button__link {
  background-color: var(--wp--preset--color--surface-blue);
  box-shadow: none;
  color: var(--wp--preset--color--primary);
  font-weight: 600;
  --mm-ico-size: 18px;
}
.wp-block-button.mm-btn-soft > .wp-block-button__link:hover,
.wp-block-button.mm-btn-soft > .wp-block-button__link:focus-visible {
  background-color: var(--wp--preset--color--primary-soft);
  color: var(--wp--preset--color--primary-deep);
}

/* --- "Potrebbero interessarti anche": fascia Ghiaccio a tutta larghezza con 3 card --- */
.wp-block-group.mm-correlati { margin-block: 0; padding-block: 64px; }
.mm-correlati :is(h2, h3, p) { text-wrap: wrap; } /* stessi a capo delle card della pagina News (TT5 usa "pretty") */
.wp-block-group.mm-correlati > .mm-correlati__head { margin-bottom: 40px; }
.mm-correlati__eyebrow {
  color: var(--wp--preset--color--primary-bright);
  font-family: var(--wp--preset--font-family--plus-jakarta-sans);
  font-size: var(--wp--preset--font-size--label-caps);
  font-weight: 700;
  line-height: 1;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.mm-head__titles > .mm-correlati__title { font-weight: 700; line-height: 1.15; letter-spacing: -.025em; }
.mm-correlati__all a { color: var(--wp--preset--color--primary); font-size: var(--wp--preset--font-size--body-md); }
.mm-correlati__all a:hover { color: var(--wp--preset--color--primary-bright); }
.wp-block-query.mm-news-query.alignwide { margin-top: 0; }
/* la CTA finale segue la fascia: 48px di stacco come nelle altre pagine */
.mm-correlati + .wp-block-group.mm-section.mm-cta { padding-top: 48px; }
