/*
Theme Name: Management Academy Magazine
Theme URI: https://magazine.managementacademy.it
Author: Castro & Partners
Author URI: https://www.managementacademy.it
Description: Magazine SEO/GEO-oriented di Management Academy. Block theme FSE basato sul design system C&P. Ottimizzato per Google Search e per essere citato da generative engines (ChatGPT, Claude, Perplexity, Google AI Overviews) tramite structured data ricco (Person, FAQPage, HowTo, Course), llms.txt, robots.txt AI-friendly, performance budget aggressivo (LCP <2s, CLS <0.05).
Version: 1.2.0
Requires at least: 6.6
Tested up to: 6.9
Requires PHP: 8.1
License: Proprietary
License URI: https://www.managementacademy.it
Text Domain: wp-magazine
Tags: block-theme, full-site-editing, magazine, blog
*/

/* ============================================================
   wp-magazine — global styles
   Token canonici in theme.json (settings + styles).
   Qui aggiungiamo solo:
   - reset essenziale
   - utility per atomi non esprimibili in theme.json (eyebrow, tag, card hover, ph)
   - layout magazine-specific (toc, post-meta, author-box, lead-magnet block)
   ============================================================ */

/* ── Reset minimo (block theme già normalizza molto) ── */
*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; height: auto; display: block; }
a { transition: color 120ms ease; }

/* ── Atomi tipografici riusabili (eyebrow, tag, caps) ── */
.ma-eyebrow {
  font-family: var(--wp--preset--font-family--montserrat);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wp--preset--color--ma-navy);
  display: inline-block;
}
.ma-eyebrow--gold { color: var(--wp--preset--color--ma-gold); }
.ma-eyebrow--white { color: #fff; }

.ma-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: var(--wp--preset--color--ma-navy-tint);
  color: var(--wp--preset--color--ma-navy);
  font-family: var(--wp--preset--font-family--montserrat);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  text-decoration: none;
  transition: background 120ms ease;
}
.ma-tag:hover { background: var(--wp--preset--color--ma-navy); color: #fff; text-decoration: none; }

.ma-caps {
  font-family: var(--wp--preset--font-family--montserrat);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ── Card hover (per query loop / card pattern) ── */
.ma-card {
  background: #fff;
  border: 1px solid var(--wp--preset--color--ma-line);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 200ms ease, transform 200ms ease;
}
.ma-card:hover {
  box-shadow: 0 4px 12px rgba(15, 42, 68, 0.08);
  transform: translateY(-2px);
}
.ma-card a { text-decoration: none; color: inherit; }
.ma-card a:hover { color: var(--wp--preset--color--ma-navy); }

/* ── Placeholder per assenza featured image (visivo brand-coerente) ── */
.ma-placeholder {
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, rgba(15,42,68,0.08), rgba(15,42,68,0.02)),
    var(--wp--preset--color--ma-navy-tint);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--wp--preset--font-family--montserrat);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wp--preset--color--ma-navy);
}
.ma-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg, transparent 0, transparent 14px,
    rgba(15,42,68,0.04) 14px, rgba(15,42,68,0.04) 15px
  );
  pointer-events: none;
}

/* ── Header del sito (logo + nav + search) ── */
.ma-site-header {
  background: #fff;
  border-bottom: 1px solid var(--wp--preset--color--ma-line);
}
.ma-site-header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 18px 32px;
  max-width: 1240px;
  margin: 0 auto;
}
.ma-site-header__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.ma-site-header__brand-link {
  display: inline-flex; align-items: center; gap: 14px;
  text-decoration: none; color: inherit;
}
.ma-site-header__logo-img {
  display: block; height: 40px; width: auto; max-width: 220px;
}
.ma-site-header__title {
  font-family: var(--wp--preset--font-family--montserrat);
  font-weight: 700; font-size: 13px; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wp--preset--color--ma-ink-2); line-height: 1;
  padding-left: 14px; border-left: 1px solid var(--wp--preset--color--ma-line);
}
.ma-site-footer__brand-link { display: inline-block; text-decoration: none; }
.ma-site-footer__logo-img {
  display: block;
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  filter: invert(1) brightness(2);
}
.ma-site-header__nav { display: flex; gap: 22px; flex-wrap: wrap; justify-content: flex-end; }

/* ── Home: featured (Variant D: 1.3fr/1fr, scala calma) ── */
.ma-featured__grid {
  display: grid !important; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center;
}
.ma-featured__copy { min-width: 0; }
.ma-featured__copy .ma-tag { display: inline-block; }
.ma-featured__title { font-family: var(--wp--preset--font-family--montserrat); font-weight: 800;
  letter-spacing: -0.018em; line-height: 1.12; max-width: 22ch; }
.ma-featured__title a {
  font-family: var(--wp--preset--font-family--montserrat);
  font-weight: 800; letter-spacing: -0.018em;
  color: var(--wp--preset--color--ma-ink); text-decoration: none; line-height: 1.12;
}
.ma-featured__title a:hover { color: var(--wp--preset--color--ma-navy); }
.ma-featured__media { min-width: 0; position: relative; }
.ma-featured__media img { display: block; width: 100%; height: auto; border-radius: 12px; position: relative; z-index: 1; }
.ma-featured__media figure { margin: 0; position: relative; z-index: 1; }
/* Placeholder se manca la featured image: usiamo :not(:has(figure)) e :not(:has(img))
   per essere robusti al whitespace residuo del rendering WP. */
.ma-featured__media:not(:has(figure)):not(:has(img)) {
  aspect-ratio: 4 / 3; border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(15,42,68,0.10), rgba(15,42,68,0.02)),
    var(--wp--preset--color--ma-navy-tint, #EAF1F8);
}
.ma-featured__media:not(:has(figure)):not(:has(img))::after {
  content: "Management Academy";
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--wp--preset--font-family--montserrat);
  font-weight: 700; font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(15,42,68,0.45);
}
.ma-featured__lede {
  font-family: var(--wp--preset--font-family--inter);
  font-size: 17px; line-height: 1.55;
  color: var(--wp--preset--color--ma-ink-2); max-width: 56ch; margin: 0;
}
.ma-featured__meta {
  font-family: var(--wp--preset--font-family--inter);
  font-size: 13px; color: var(--wp--preset--color--ma-ink-3);
  gap: 12px !important; align-items: center;
}
.ma-featured__meta .wp-block-post-author-name a,
.ma-featured__meta .wp-block-post-author-name {
  color: var(--wp--preset--color--ma-ink-2); font-weight: 600; text-decoration: none;
}
.ma-featured__meta .wp-block-post-date::before { content: '·'; margin-right: 12px; color: var(--wp--preset--color--ma-ink-3); }
.ma-featured__cta { gap: 10px !important; margin-top: 20px; }
.ma-featured__empty {
  font-family: var(--wp--preset--font-family--montserrat); font-weight: 600;
  color: var(--wp--preset--color--ma-ink-2); font-size: 16px; padding: 32px 0;
}
@media (max-width: 900px) {
  .ma-featured__grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ── Home: button atoms (pill, uppercase, tracked) ── */
.ma-btn .wp-block-button__link {
  font-family: var(--wp--preset--font-family--montserrat);
  font-weight: 700; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  border-radius: 999px; padding: 14px 28px; line-height: 1; border: 1px solid transparent;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}
.ma-btn--primary .wp-block-button__link {
  background: var(--wp--preset--color--ma-navy); color: #fff;
}
.ma-btn--primary .wp-block-button__link:hover {
  background: var(--wp--preset--color--ma-navy-ink); color: #fff;
}
.ma-btn--ghost .wp-block-button__link {
  background: transparent; color: var(--wp--preset--color--ma-navy);
  border-color: var(--wp--preset--color--ma-navy);
}
.ma-btn--ghost .wp-block-button__link:hover {
  background: var(--wp--preset--color--ma-navy); color: #fff;
}
.ma-btn--gold .wp-block-button__link {
  background: var(--wp--preset--color--ma-gold); color: var(--wp--preset--color--ma-navy-ink);
}
.ma-btn--gold .wp-block-button__link:hover {
  background: #B8902F; color: var(--wp--preset--color--ma-navy-ink);
}

/* ── Home: section per categoria (Variant D scala calma) ── */
.ma-section__head {
  align-items: baseline !important; padding-bottom: 12px;
  border-bottom: 2px solid var(--wp--preset--color--ma-navy);
  margin-bottom: 24px; flex-wrap: nowrap !important;
}
.ma-section__head .wp-block-heading {
  font-family: var(--wp--preset--font-family--montserrat); font-weight: 800;
  letter-spacing: -0.01em;
}
.ma-section__more { margin: 0; }
.ma-section__more a {
  font-family: var(--wp--preset--font-family--montserrat);
  font-weight: 700; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--wp--preset--color--ma-navy); text-decoration: none;
}
.ma-section__more a:hover { color: var(--wp--preset--color--ma-navy-ink); text-decoration: underline; }
.ma-section__empty {
  font-family: var(--wp--preset--font-family--inter);
  color: var(--wp--preset--color--ma-ink-3); font-size: 15px; padding: 24px 0; margin: 0;
}
.ma-cat-query .wp-block-post-template { gap: 28px !important; }

/* ── Home: card grid (stacked: img 16:9 sopra, copy sotto) — Variant D ── */
.ma-card { padding: 0; background: transparent; border: 0; border-radius: 0; min-width: 0; }
.ma-card:hover { box-shadow: none; transform: none; }
.ma-card .ma-card__img { position: relative; }
.ma-card .ma-card__img img { display: block; border-radius: 8px; width: 100%; height: auto; }
.ma-card .ma-card__img figure { margin: 0; }
/* Placeholder card: niente img → segnaposto navy-tint 16:9 (rispetta lo sketch D) */
.ma-card .ma-card__img:not(:has(figure)):not(:has(img)) {
  display: block; aspect-ratio: 16 / 9; border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(15,42,68,0.08), rgba(15,42,68,0.02)),
    var(--wp--preset--color--ma-navy-tint, #E8EFF6);
}
.ma-card .ma-card__img:not(:has(figure)):not(:has(img))::after {
  content: "Foto"; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--wp--preset--font-family--montserrat);
  font-weight: 700; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(15,42,68,0.35);
}
.ma-card .ma-tag { margin-top: 12px; align-self: flex-start; }
.ma-card .ma-card__title { line-height: 1.35; }
.ma-card .ma-card__title a {
  font-family: var(--wp--preset--font-family--montserrat);
  font-weight: 700; color: var(--wp--preset--color--ma-ink); text-decoration: none;
}
.ma-card .ma-card__title a:hover { color: var(--wp--preset--color--ma-navy); }
.ma-card__meta {
  gap: 10px !important; align-items: center !important;
  font-family: var(--wp--preset--font-family--inter); font-size: 13px;
  color: var(--wp--preset--color--ma-ink-3);
}
.ma-card__meta .wp-block-post-author-name { color: var(--wp--preset--color--ma-ink-2); font-weight: 600; }
.ma-card__meta .wp-block-post-date::before { content: '·'; margin-right: 10px; color: var(--wp--preset--color--ma-ink-3); }

/* ── Home: lead-magnet strip (eyebrow gold + form) ── */
.ma-magnet-strip { border-radius: 0; }
.ma-magnet-strip .ma-eyebrow--gold { margin-bottom: 8px; }
.ma-magnet-strip__form .ma-lead-magnet,
.ma-magnet-strip__form form {
  background: transparent; padding: 0;
}
.ma-magnet-strip__form input[type="email"],
.ma-magnet-strip__form input[type="text"] {
  width: 100%; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.25);
  color: #fff; border-radius: 10px; padding: 14px 16px; font-size: 15px;
  font-family: var(--wp--preset--font-family--inter); margin-bottom: 12px;
}
.ma-magnet-strip__form input::placeholder { color: rgba(255,255,255,0.55); }
.ma-magnet-strip__form button[type="submit"] {
  background: var(--wp--preset--color--ma-gold); color: var(--wp--preset--color--ma-navy-ink);
  border: 0; border-radius: 999px; padding: 14px 28px; cursor: pointer;
  font-family: var(--wp--preset--font-family--montserrat); font-weight: 700;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
}
.ma-magnet-strip__form button[type="submit"]:hover { background: #B8902F; }
.ma-magnet-strip__form .ma-lm { background: transparent; padding: 0; border: 0; }
.ma-magnet-strip__form .ma-lm__title {
  color: #fff; font-family: var(--wp--preset--font-family--montserrat);
  font-weight: 600; font-size: 14px; margin: 0 0 12px; letter-spacing: 0.02em;
}
.ma-magnet-strip__form .ma-lm__row { display: grid; grid-template-columns: 1fr; gap: 0; }
.ma-magnet-strip__form .ma-lm__input {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.25);
  color: #fff; border-radius: 10px; padding: 14px 16px; font-size: 15px;
  font-family: var(--wp--preset--font-family--inter); margin-bottom: 12px;
}
.ma-magnet-strip__form .ma-lm__input::placeholder { color: rgba(255,255,255,0.55); }
.ma-magnet-strip__form .ma-lm__consent {
  display: flex; gap: 10px; align-items: flex-start;
  font-family: var(--wp--preset--font-family--inter); font-size: 12px;
  color: rgba(255,255,255,0.7); line-height: 1.45; margin: 4px 0 14px;
}
.ma-magnet-strip__form .ma-lm__consent a { color: var(--wp--preset--color--ma-gold); text-decoration: underline; }
.ma-magnet-strip__form .ma-lm__btn {
  background: var(--wp--preset--color--ma-gold); color: var(--wp--preset--color--ma-navy-ink);
  border: 0; border-radius: 999px; padding: 14px 28px; cursor: pointer;
  font-family: var(--wp--preset--font-family--montserrat); font-weight: 700;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; width: 100%;
}
.ma-magnet-strip__form .ma-lm__btn:hover { background: #B8902F; }
.ma-magnet-strip__form .ma-lm__success {
  display: flex; gap: 14px; align-items: flex-start; color: #fff;
}
.ma-magnet-strip__form .ma-lm__success .check {
  background: var(--wp--preset--color--ma-gold); color: var(--wp--preset--color--ma-navy-ink);
  border-radius: 999px; width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700;
  flex-shrink: 0;
}
.ma-magnet-strip__form .ma-lm__success h4 { color: #fff; margin: 0 0 4px; }
.ma-magnet-strip__form .ma-lm__success p { color: rgba(255,255,255,0.78); margin: 0; font-size: 14px; }
.ma-magnet-strip__form .ma-lm__error {
  background: rgba(192,57,43,0.18); border: 1px solid rgba(192,57,43,0.4);
  color: #fff; padding: 12px 14px; border-radius: 8px; font-size: 13px; margin-top: 10px;
}
@media (max-width: 900px) {
  .ma-magnet-strip__grid { flex-direction: column !important; }
}
.ma-site-header__nav a {
  font-family: var(--wp--preset--font-family--montserrat);
  font-weight: 600; font-size: 13px;
  color: var(--wp--preset--color--ma-ink);
  text-decoration: none;
}
.ma-site-header__nav a:hover { color: var(--wp--preset--color--ma-navy); }

/* ── Article single layout: TOC sx + body 720 + meta dx ── */
.ma-article-layout { padding: 48px 0; }
.ma-article-layout__grid {
  max-width: 1280px; margin: 0 auto; padding: 0 32px;
  display: grid;
  grid-template-columns: 220px minmax(0, 720px) 280px;
  gap: 48px; align-items: start;
}
.ma-article-layout__body { min-width: 0; }

/* TOC sticky aside */
.ma-toc { position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow-y: auto; }
.ma-toc__label {
  font-family: var(--wp--preset--font-family--montserrat);
  font-weight: 700; font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--wp--preset--color--ma-ink-3);
  margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 2px solid var(--wp--preset--color--ma-navy);
}
.ma-toc ol { list-style: none; padding: 0; margin: 0; counter-reset: matoc; }
.ma-toc li { counter-increment: matoc; margin-bottom: 6px; }
.ma-toc a {
  display: flex; gap: 10px; padding: 8px 12px;
  border-radius: 8px;
  font-family: var(--wp--preset--font-family--inter);
  font-size: 14px; line-height: 1.4;
  color: var(--wp--preset--color--ma-ink-2);
  text-decoration: none; border-left: 2px solid transparent;
  transition: all 200ms ease;
}
.ma-toc a::before {
  content: counter(matoc, decimal-leading-zero);
  font-family: var(--wp--preset--font-family--montserrat);
  font-weight: 700; font-size: 11px;
  color: var(--wp--preset--color--ma-ink-3);
  flex-shrink: 0; padding-top: 2px;
}
.ma-toc a:hover { background: var(--wp--preset--color--ma-bg-alt); color: var(--wp--preset--color--ma-navy); }
.ma-toc a.is-active {
  background: var(--wp--preset--color--ma-navy-tint);
  color: var(--wp--preset--color--ma-navy);
  border-left-color: var(--wp--preset--color--ma-navy);
  font-weight: 600;
}
.ma-toc a.is-active::before { color: var(--wp--preset--color--ma-navy); }

/* Meta sidebar dx */
.ma-meta-card {
  position: sticky; top: 24px;
  padding: 24px;
  background: var(--wp--preset--color--ma-bg-alt);
  border: 1px solid var(--wp--preset--color--ma-line);
  border-radius: 12px;
}
.ma-meta-card__label {
  font-family: var(--wp--preset--font-family--montserrat);
  font-weight: 700; font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--wp--preset--color--ma-ink-3);
  margin-bottom: 12px; display: block;
}
.ma-meta-card__author {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--wp--preset--color--ma-line);
  margin-bottom: 16px;
}
.ma-meta-card__avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--wp--preset--color--ma-navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--wp--preset--font-family--montserrat);
  font-weight: 700; font-size: 16px;
}
.ma-meta-card__author strong {
  display: block; color: var(--wp--preset--color--ma-ink);
  font-family: var(--wp--preset--font-family--montserrat);
  font-weight: 700; font-size: 14px;
}
.ma-meta-card__author small {
  color: var(--wp--preset--color--ma-ink-3); font-size: 12px;
}
.ma-meta-card__row {
  display: flex; justify-content: space-between;
  padding: 8px 0;
  font-family: var(--wp--preset--font-family--inter); font-size: 13px;
}
.ma-meta-card__row .k { color: var(--wp--preset--color--ma-ink-3); }
.ma-meta-card__row .v { color: var(--wp--preset--color--ma-ink-2); font-weight: 500; }
.ma-meta-card__share {
  margin-top: 16px; padding-top: 16px;
  border-top: 1px solid var(--wp--preset--color--ma-line);
  display: flex; gap: 8px;
}
.ma-meta-card__share a {
  flex: 1; padding: 8px;
  border: 1px solid var(--wp--preset--color--ma-line);
  background: #fff; border-radius: 999px;
  font-family: var(--wp--preset--font-family--montserrat);
  font-weight: 700; font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wp--preset--color--ma-navy);
  text-align: center; text-decoration: none;
  transition: all 200ms ease;
}
.ma-meta-card__share a:hover {
  background: var(--wp--preset--color--ma-navy-tint);
  border-color: var(--wp--preset--color--ma-navy);
  text-decoration: none;
}

@media (max-width: 1100px) {
  .ma-article-layout__grid { grid-template-columns: minmax(0, 720px) 280px; }
  .ma-toc { display: none; }
}
@media (max-width: 900px) {
  .ma-article-layout__grid { grid-template-columns: 1fr; gap: 32px; }
  .ma-meta-card { position: static; }
}

/* ── Article body (typography long-form) ── */
.ma-article-body h2 {
  font-family: var(--wp--preset--font-family--montserrat);
  font-weight: 700; color: var(--wp--preset--color--ma-ink);
  font-size: 28px; line-height: 1.2;
  margin: 48px 0 20px; scroll-margin-top: 80px;
}
.ma-article-body h3 {
  font-family: var(--wp--preset--font-family--montserrat);
  font-weight: 700; color: var(--wp--preset--color--ma-ink);
  font-size: 21px; line-height: 1.3;
  margin: 32px 0 14px; scroll-margin-top: 80px;
}
.ma-article-body p {
  font-family: var(--wp--preset--font-family--inter);
  font-size: 18px; line-height: 1.7;
  color: var(--wp--preset--color--ma-ink-2);
  margin: 0 0 24px; text-wrap: pretty;
}
.ma-article-body ul, .ma-article-body ol {
  margin: 0 0 24px; padding-left: 24px;
  font-family: var(--wp--preset--font-family--inter); font-size: 18px;
  line-height: 1.7; color: var(--wp--preset--color--ma-ink-2);
}
.ma-article-body li { margin-bottom: 8px; }
.ma-article-body blockquote {
  margin: 32px 0; padding: 16px 24px;
  border-left: 4px solid var(--wp--preset--color--ma-gold);
  background: var(--wp--preset--color--ma-bg-warm);
  color: var(--wp--preset--color--ma-ink);
  font-style: italic; font-size: 18px; line-height: 1.55;
}
.ma-article-body a {
  color: var(--wp--preset--color--ma-navy-soft);
  text-decoration: underline; text-underline-offset: 3px;
}
.ma-article-body a:hover { color: var(--wp--preset--color--ma-navy); }

/* ── Author box (E-E-A-T) ── */
.ma-author-box {
  max-width: 720px;
  margin: 64px auto 32px !important;
  padding: 40px;
  background: var(--wp--preset--color--ma-bg-alt);
  border: 1px solid var(--wp--preset--color--ma-line);
  border-radius: 12px;
  text-align: center;
}
.ma-author-box__label {
  font-family: var(--wp--preset--font-family--montserrat);
  font-weight: 700; font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--wp--preset--color--ma-navy); margin-bottom: 10px;
}
.ma-author-box__name {
  font-family: var(--wp--preset--font-family--montserrat);
  font-weight: 800; font-size: 24px;
  color: var(--wp--preset--color--ma-ink); margin-bottom: 16px;
}
.ma-author-box__name a { color: inherit; text-decoration: none; }
.ma-author-box__name a:hover { color: var(--wp--preset--color--ma-navy); }
.ma-author-box__bio {
  font-family: var(--wp--preset--font-family--inter); font-size: 15px;
  line-height: 1.65; color: var(--wp--preset--color--ma-ink-2);
  margin: 0 auto 24px; max-width: 560px;
}
.ma-author-box__cta {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 20px;
}
.ma-author-box__cta-primary {
  display: inline-block;
  padding: 12px 24px;
  background: var(--wp--preset--color--ma-navy);
  color: #fff !important;
  border-radius: 999px;
  font-family: var(--wp--preset--font-family--montserrat);
  font-weight: 700; font-size: 12px;
  letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none;
  transition: background 0.15s ease;
}
.ma-author-box__cta-primary:hover { background: var(--wp--preset--color--ma-navy-soft); }
.ma-author-box__cta-secondary {
  font-family: var(--wp--preset--font-family--montserrat);
  font-weight: 700; font-size: 12px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--wp--preset--color--ma-navy); text-decoration: none;
}
.ma-author-box__cta-secondary:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 600px) {
  .ma-author-box { padding: 28px 20px; }
  .ma-author-box__cta { flex-direction: column; gap: 12px; }
  .ma-author-box__cta-primary { width: 100%; text-align: center; }
}

/* ── Lead-magnet inline block (sketch 004-A: panel navy-tint) ── */
.ma-lm {
  margin: 48px 0;
  padding: 40px;
  background: var(--wp--preset--color--ma-navy-tint);
  border-radius: 12px;
  position: relative; overflow: hidden;
}
.ma-lm::before {
  content: ''; position: absolute; top: 0; left: 0; bottom: 0;
  width: 4px; background: var(--wp--preset--color--ma-navy);
}
.ma-lm__title {
  font-family: var(--wp--preset--font-family--montserrat);
  font-weight: 800; font-size: 26px; line-height: 1.2;
  color: var(--wp--preset--color--ma-ink); margin: 12px 0;
}
.ma-lm__desc {
  font-family: var(--wp--preset--font-family--inter); font-size: 16px;
  color: var(--wp--preset--color--ma-ink-2); margin-bottom: 24px;
  max-width: 480px; line-height: 1.55;
}
.ma-lm__form { display: flex; flex-direction: column; gap: 12px; max-width: 480px; }
.ma-lm__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ma-lm__input {
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid var(--wp--preset--color--ma-line);
  background: #fff;
  font-family: var(--wp--preset--font-family--inter); font-size: 15px;
  color: var(--wp--preset--color--ma-ink);
  transition: border-color 200ms ease;
}
.ma-lm__input:focus { outline: 0; border-color: var(--wp--preset--color--ma-navy); }
.ma-lm__consent {
  display: flex; gap: 10px; align-items: flex-start;
  font-family: var(--wp--preset--font-family--inter); font-size: 13px;
  color: var(--wp--preset--color--ma-ink-3); line-height: 1.5;
}
.ma-lm__consent input { margin-top: 3px; flex-shrink: 0; accent-color: var(--wp--preset--color--ma-navy); }
.ma-lm__consent a { color: var(--wp--preset--color--ma-navy-soft); text-decoration: underline; }
.ma-lm__btn {
  align-self: flex-start;
  padding: 14px 24px;
  border-radius: 999px;
  border: 0; background: var(--wp--preset--color--ma-navy); color: #fff;
  font-family: var(--wp--preset--font-family--montserrat);
  font-weight: 700; font-size: 13px;
  letter-spacing: 0.12em; text-transform: uppercase;
  cursor: pointer; transition: background 200ms ease;
}
.ma-lm__btn:hover { background: var(--wp--preset--color--ma-navy-deep); }
.ma-lm__btn:disabled { opacity: 0.6; cursor: wait; }
.ma-lm__success {
  background: var(--wp--preset--color--ma-bg-warm);
  border: 1px solid var(--wp--preset--color--ma-gold-soft);
  border-radius: 8px; padding: 20px;
  display: flex; gap: 14px; align-items: flex-start;
  margin-top: 16px;
}
.ma-lm__success .check {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--wp--preset--color--ma-gold);
  color: var(--wp--preset--color--ma-navy-ink);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--wp--preset--font-family--montserrat);
  font-weight: 800; flex-shrink: 0;
}
.ma-lm__success h4 {
  font-family: var(--wp--preset--font-family--montserrat);
  font-weight: 700; font-size: 15px;
  color: var(--wp--preset--color--ma-ink); margin: 0 0 4px;
}
.ma-lm__success p {
  font-family: var(--wp--preset--font-family--inter); font-size: 14px;
  color: var(--wp--preset--color--ma-ink-2); margin: 0;
}
.ma-lm__success a { color: var(--wp--preset--color--ma-navy); font-weight: 600; }
.ma-lm__error {
  background: #FEE; border: 1px solid #FCC; border-radius: 8px;
  padding: 12px 16px; margin-top: 12px;
  font-family: var(--wp--preset--font-family--inter); font-size: 14px;
  color: var(--wp--preset--color--ma-red);
}
@media (max-width: 700px) {
  .ma-lm { padding: 28px 24px; }
  .ma-lm__row { grid-template-columns: 1fr; }
}

/* ── CTA Product block ── */
.ma-cta-product {
  margin: 32px 0;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--wp--preset--color--ma-line);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(15,42,68,0.06);
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
}
.ma-cta-product__text { display: flex; flex-direction: column; gap: 6px; }
.ma-cta-product__eyebrow {
  font-family: var(--wp--preset--font-family--montserrat);
  font-weight: 700; font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--wp--preset--color--ma-gold);
}
.ma-cta-product__title {
  font-family: var(--wp--preset--font-family--montserrat);
  font-weight: 700; font-size: 20px; line-height: 1.25;
  color: var(--wp--preset--color--ma-ink); margin: 0;
}
.ma-cta-product__desc {
  font-family: var(--wp--preset--font-family--inter); font-size: 14px;
  color: var(--wp--preset--color--ma-ink-2); margin: 0;
}
.ma-cta-product__btn {
  padding: 14px 24px; border-radius: 999px;
  background: var(--wp--preset--color--ma-navy); color: #fff;
  font-family: var(--wp--preset--font-family--montserrat);
  font-weight: 700; font-size: 13px;
  letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; transition: background 200ms ease;
  white-space: nowrap;
}
.ma-cta-product__btn:hover { background: var(--wp--preset--color--ma-navy-deep); text-decoration: none; }
@media (max-width: 600px) {
  .ma-cta-product { grid-template-columns: 1fr; }
  .ma-cta-product__btn { text-align: center; }
}

/* ── FAQ block (FAQPage schema) ── */
.ma-faq { margin: 48px 0; }
.ma-faq__title {
  font-family: var(--wp--preset--font-family--montserrat);
  font-weight: 700; font-size: 28px;
  color: var(--wp--preset--color--ma-ink);
  margin: 0 0 24px; padding-bottom: 16px;
  border-bottom: 2px solid var(--wp--preset--color--ma-navy);
}
.ma-faq__item {
  border-bottom: 1px solid var(--wp--preset--color--ma-line);
  padding: 20px 0;
}
.ma-faq__item:first-of-type { padding-top: 0; }
.ma-faq__item:last-of-type { border-bottom: 0; }
.ma-faq__q {
  font-family: var(--wp--preset--font-family--montserrat);
  font-weight: 700; font-size: 18px; line-height: 1.35;
  color: var(--wp--preset--color--ma-ink);
  margin: 0 0 12px; cursor: pointer;
  list-style: none; display: flex; align-items: flex-start; gap: 12px;
}
.ma-faq__q::-webkit-details-marker { display: none; }
.ma-faq__q::before {
  content: '+'; flex-shrink: 0;
  font-size: 24px; line-height: 1; color: var(--wp--preset--color--ma-navy);
  transition: transform 200ms ease;
}
details[open] .ma-faq__q::before { transform: rotate(45deg); }
.ma-faq__a {
  font-family: var(--wp--preset--font-family--inter); font-size: 16px;
  line-height: 1.7; color: var(--wp--preset--color--ma-ink-2);
  padding-left: 36px;
}
.ma-faq__a > * { margin: 0 0 12px; }
.ma-faq__a > *:last-child { margin-bottom: 0; }

/* ── HowTo block (HowTo schema) ── */
.ma-howto { margin: 48px 0; padding: 32px; background: var(--wp--preset--color--ma-bg-alt); border-radius: 12px; }
.ma-howto__title {
  font-family: var(--wp--preset--font-family--montserrat);
  font-weight: 700; font-size: 24px;
  color: var(--wp--preset--color--ma-ink); margin: 0 0 20px;
}
.ma-howto__steps { list-style: none; padding: 0; margin: 0; counter-reset: howstep; }
.ma-howto__step {
  counter-increment: howstep;
  padding: 16px 0 16px 56px;
  border-bottom: 1px solid var(--wp--preset--color--ma-line);
  position: relative;
}
.ma-howto__step:last-child { border-bottom: 0; }
.ma-howto__step::before {
  content: counter(howstep, decimal-leading-zero);
  position: absolute; top: 16px; left: 0;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--wp--preset--color--ma-navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--wp--preset--font-family--montserrat);
  font-weight: 700; font-size: 14px;
}
.ma-howto__step h3 {
  font-family: var(--wp--preset--font-family--montserrat);
  font-weight: 700; font-size: 18px;
  color: var(--wp--preset--color--ma-ink); margin: 0 0 6px;
}
.ma-howto__step p {
  font-family: var(--wp--preset--font-family--inter); font-size: 15px;
  line-height: 1.6; color: var(--wp--preset--color--ma-ink-2); margin: 0;
}

/* ── Key Takeaway block (citable from LLM) ── */
.ma-takeaway {
  margin: 32px 0;
  padding: 24px 28px;
  background: var(--wp--preset--color--ma-bg-warm);
  border-left: 4px solid var(--wp--preset--color--ma-gold);
  border-radius: 0 8px 8px 0;
}
.ma-takeaway__label {
  font-family: var(--wp--preset--font-family--montserrat);
  font-weight: 700; font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--wp--preset--color--ma-gold); margin-bottom: 12px;
}
.ma-takeaway ul { list-style: none; padding: 0; margin: 0; }
.ma-takeaway li {
  font-family: var(--wp--preset--font-family--inter); font-size: 16px;
  line-height: 1.55; color: var(--wp--preset--color--ma-ink);
  padding: 8px 0 8px 28px; position: relative;
}
.ma-takeaway li::before {
  content: '→'; position: absolute; left: 0; top: 8px;
  color: var(--wp--preset--color--ma-navy); font-weight: 700;
}
.ma-takeaway li strong {
  color: var(--wp--preset--color--ma-navy-ink); font-weight: 700;
}
.ma-takeaway__source {
  margin-top: 16px; padding-top: 12px;
  border-top: 1px solid rgba(212,163,58,0.3);
  font-family: var(--wp--preset--font-family--inter); font-size: 13px;
  color: var(--wp--preset--color--ma-ink-3);
}
.ma-takeaway__source a { color: var(--wp--preset--color--ma-navy-soft); }

/* ── Footer ── */
.ma-site-footer {
  background: var(--wp--preset--color--ma-navy-ink);
  color: rgba(232,239,246,0.8);
  padding: 48px 0 24px;
}
.ma-site-footer__inner { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.ma-site-footer__grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px;
}
.ma-site-footer h4 {
  color: var(--wp--preset--color--ma-gold);
  font-family: var(--wp--preset--font-family--montserrat);
  font-weight: 700; font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  margin: 0 0 14px;
}
.ma-site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.ma-site-footer a {
  color: rgba(232,239,246,0.8);
  font-family: var(--wp--preset--font-family--inter); font-size: 13px;
  text-decoration: none;
}
.ma-site-footer a:hover { color: #fff; }
.ma-site-footer__about {
  font-family: var(--wp--preset--font-family--inter); font-size: 14px;
  color: rgba(232,239,246,0.7); line-height: 1.55;
  max-width: 320px; margin-top: 16px;
}
.ma-site-footer__bottom {
  margin-top: 32px; padding-top: 20px;
  border-top: 1px solid var(--wp--preset--color--ma-navy-deep);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--wp--preset--font-family--inter); font-size: 12px;
  color: rgba(232,239,246,0.5);
}

/* PNRR / Regione Toscana compliance strip — banda istituzionale piccola,
   allineata a sinistra. Fondo bianco per leggibilità dei loghi originali. */
.ma-pnrr-strip {
  margin-top: 32px;
  padding: 12px 16px;
  background: #ffffff;
  border-radius: 6px;
  display: inline-block;
  max-width: 100%;
}
.ma-pnrr-strip__img {
  display: block;
  width: auto;
  height: 28px;
  max-width: 100%;
}
@media (max-width: 700px) {
  .ma-site-footer__grid { grid-template-columns: 1fr 1fr; }
  .ma-site-footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ── Skip link a11y ── */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  padding: 12px 20px; background: var(--wp--preset--color--ma-navy); color: #fff;
  font-family: var(--wp--preset--font-family--montserrat); font-weight: 700;
  text-decoration: none; z-index: 99999;
}
.skip-link:focus { left: 16px; top: 16px; }

/* ── Featured image placeholder (post senza thumbnail) ──
   Iniettato da render_block_core/post-featured-image quando il post non ha
   _thumbnail_id. Mantiene il box del blocco con segnaposto brand-coerente. */
.ma-featured-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(15, 42, 68, 0.10), rgba(15, 42, 68, 0.02)),
    var(--wp--preset--color--ma-navy-tint, #E8EFF6);
  text-decoration: none;
  transition: filter 200ms ease;
}
.ma-featured-image-placeholder::before {
  /* hairline texture: ripples brand */
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg, transparent 0, transparent 14px,
    rgba(15, 42, 68, 0.04) 14px, rgba(15, 42, 68, 0.04) 15px
  );
  pointer-events: none;
}
.ma-featured-image-placeholder__label {
  position: relative;
  z-index: 1;
  font-family: var(--wp--preset--font-family--montserrat);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(15, 42, 68, 0.45);
}
a.ma-featured-image-placeholder:hover {
  filter: brightness(0.97);
}
a.ma-featured-image-placeholder:hover .ma-featured-image-placeholder__label {
  color: rgba(15, 42, 68, 0.65);
}

/* Variante per featured hero (più grande, label più visibile) */
.ma-featured__media .ma-featured-image-placeholder__label,
.ma-featured-image-placeholder.ma-featured__img .ma-featured-image-placeholder__label {
  font-size: 14px;
  letter-spacing: 0.22em;
}

/* ── Visually hidden (a11y) ── */
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute; width: 1px; word-wrap: normal !important;
}

/* ── Category / Archive / Index hero (editorial) ── */
.ma-cat-hero,
.ma-index-hero {
  /* nessun bg, hairline solo bottom via inline style; rely on warm bg page */
}
.ma-cat-hero__title,
.ma-index-hero__title {
  font-family: var(--wp--preset--font-family--montserrat);
  font-weight: 800;
  letter-spacing: -0.018em;
  color: var(--wp--preset--color--ma-ink);
  max-width: 22ch;
}
.ma-cat-hero__lede,
.ma-index-hero__lede {
  font-family: var(--wp--preset--font-family--inter);
  color: var(--wp--preset--color--ma-ink-2);
  max-width: 64ch;
}
.ma-cat-hero__nav,
.ma-index-hero__filters {
  gap: 8px !important;
}

/* Filter chip: variant of .ma-tag with more presence */
.ma-tag--filter {
  padding: 8px 14px;
  font-size: 11px;
  background: transparent;
  color: var(--wp--preset--color--ma-ink-2);
  border: 1px solid var(--wp--preset--color--ma-line);
}
.ma-tag--filter:hover {
  background: var(--wp--preset--color--ma-navy-tint);
  color: var(--wp--preset--color--ma-navy);
  border-color: var(--wp--preset--color--ma-navy-tint);
}
.ma-tag--filter.is-active {
  background: var(--wp--preset--color--ma-navy);
  color: #fff;
  border-color: var(--wp--preset--color--ma-navy);
}
.ma-tag--filter.is-active:hover {
  background: var(--wp--preset--color--ma-navy-ink);
  border-color: var(--wp--preset--color--ma-navy-ink);
  color: #fff;
}

/* Auto-highlight della categoria attiva: matchamo l'href sullo slug della cat
   corrente. Funziona perché WP aggiunge body.category-<slug> nelle archive. */
body.category-project-management   .ma-tag--filter[href="/category/project-management/"],
body.category-product-management   .ma-tag--filter[href="/category/product-management/"],
body.category-agile-scrum          .ma-tag--filter[href="/category/agile-scrum/"],
body.category-leadership           .ma-tag--filter[href="/category/leadership/"],
body.category-carriera-certificazioni .ma-tag--filter[href="/category/carriera-certificazioni/"] {
  background: var(--wp--preset--color--ma-navy);
  color: #fff;
  border-color: var(--wp--preset--color--ma-navy);
}

@media (max-width: 700px) {
  .ma-cat-hero__nav,
  .ma-index-hero__filters {
    overflow-x: auto;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }
  .ma-tag--filter { white-space: nowrap; }
}

/* ============================================================
   Responsive recovery (mobile + tablet)
   Motivazione: theme.json non definisce styles.spacing.padding,
   quindi --wp--style--root--padding-left/right è 0 → tutti i
   wrapper has-global-padding toccano i bordi schermo. Inoltre
   alcuni componenti (header inner, section head, article grid)
   avevano padding/gap hard-coded a 32px o flex-wrap:nowrap che
   causavano overflow sotto i 480px. Qui rimettiamo a posto solo
   ciò che era effettivamente rotto, senza toccare il markup.
   ============================================================ */

/* Anti-overflow globale: blocca scroll orizzontale anche se
   un blocco di terze parti (es. PBN injected content) sfora. */
html, body { overflow-x: hidden; }

/* Iniettiamo il root padding mancante via CSS vars così tutti
   gli has-global-padding ricevono i lateral gutter corretti.
   Scala: 16px su mobile, 20px su tablet, 32px su desktop. */
body {
  --wp--style--root--padding-left: 16px;
  --wp--style--root--padding-right: 16px;
}
@media (min-width: 600px) {
  body {
    --wp--style--root--padding-left: 24px;
    --wp--style--root--padding-right: 24px;
  }
}
@media (min-width: 960px) {
  body {
    --wp--style--root--padding-left: 32px;
    --wp--style--root--padding-right: 32px;
  }
}

/* ── Header: su mobile rimpicciolisce il padding, riduce il gap
   e nasconde il sidecar "MAGAZINE" per fare spazio al
   pulsante hamburger del wp-block-navigation. */
@media (max-width: 700px) {
  .ma-site-header__inner {
    padding: 14px 16px;
    gap: 12px;
  }
  .ma-site-header__title {
    display: none;
  }
  .ma-site-header__logo-img {
    height: 32px;
    max-width: 160px;
  }
}

/* ── Section head: il forzato nowrap fa uscire titolo + link
   "Vedi tutti" dallo schermo. Sotto 600px lasciamo wrappare
   e stackare verticalmente (eyebrow del link sotto al titolo). */
@media (max-width: 600px) {
  .ma-section__head {
    flex-wrap: wrap !important;
    gap: 6px 16px;
  }
  .ma-section__head .wp-block-heading {
    font-size: 20px !important;
    flex: 1 1 100%;
  }
  .ma-section__more {
    flex: 0 0 auto;
  }
}

/* ── Article single layout: il grid già collassa a 1col sotto
   900px, ma il padding 0 32px va ridotto su mobile per non
   sommarsi al root padding. */
@media (max-width: 700px) {
  .ma-article-layout {
    padding: 24px 0;
  }
  .ma-article-layout__grid {
    padding: 0 16px;
    gap: 24px;
  }
}

/* ── Article body typography: riduciamo h2/h3/p su mobile.
   Mantiene gerarchia ma evita che h2 a 28px e p a 18px
   rendano i paragrafi troppo grossi rispetto allo schermo. */
@media (max-width: 600px) {
  .ma-article-body h2 { font-size: 24px; margin: 32px 0 16px; }
  .ma-article-body h3 { font-size: 19px; margin: 24px 0 10px; }
  .ma-article-body p,
  .ma-article-body ul,
  .ma-article-body ol { font-size: 17px; line-height: 1.65; }
  .ma-article-body blockquote { font-size: 17px; padding: 12px 18px; }
}

/* ── Featured: il media (immagine hero) sotto 900 va sotto il
   copy. Su mobile riduciamo anche il padding verticale e il
   titolo per non sprecare fold. */
@media (max-width: 600px) {
  .ma-featured__title { font-size: clamp(24px, 7vw, 30px) !important; }
  .ma-featured__lede { font-size: 16px; }
  .ma-featured__cta { gap: 8px !important; }
  .ma-featured__cta .wp-block-button { flex: 1 1 100%; }
  .ma-featured__cta .wp-block-button__link { width: 100%; text-align: center; }
}

/* ── Footer: a 700px collassa a 2col. Sotto 480px stackiamo
   tutto in 1 colonna così le voci hanno respiro. */
@media (max-width: 480px) {
  .ma-site-footer__grid { grid-template-columns: 1fr; gap: 24px; }
  .ma-site-footer__inner { padding: 0 16px; }
  .ma-site-footer { padding: 32px 0 20px; }
}

/* ── Lead-magnet strip in home (eyebrow gold + form 2col):
   wp-block-columns collassa nativamente a 781px, ma forziamo
   anche un padding più stretto per evitare overflow del form. */
@media (max-width: 600px) {
  .ma-magnet-strip { padding-top: 32px !important; padding-bottom: 32px !important; }
  .ma-magnet-strip__form input[type="email"],
  .ma-magnet-strip__form input[type="text"],
  .ma-magnet-strip__form .ma-lm__input { font-size: 16px; } /* >=16 evita zoom iOS */
}

/* ── Inputs vari: 16px font-size minimo per non triggerare
   l'auto-zoom di Safari iOS quando l'utente fa focus. */
@media (max-width: 600px) {
  .ma-lm__input { font-size: 16px; }
}

/* ── CTA product card: il grid 1fr+auto già collassa a 1fr
   sotto 600. Aggiungiamo solo un padding più sobrio su mobile. */
@media (max-width: 480px) {
  .ma-cta-product { padding: 20px; gap: 16px; }
  .ma-cta-product__btn { width: 100%; text-align: center; }
}

/* ── Card grid (home sezioni per categoria): WP genera
   .wp-block-post-template-is-layout-grid con columnCount:3 e
   ha una sua media query che collassa a 1col sotto 600px.
   Tra 600 e 900 forziamo 2 colonne per leggibilità tablet. */
@media (min-width: 600px) and (max-width: 899px) {
  .ma-cat-query .wp-block-post-template.is-layout-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* ── Author box: già responsive sotto 600px, ma aggiungiamo
   padding laterale sicuro sotto 480 in modo che il bordo del
   pannello non tocchi i bordi quando il parent ha padding 16. */
@media (max-width: 480px) {
  .ma-author-box { margin-left: 0; margin-right: 0; padding: 24px 18px; }
  .ma-author-box__name { font-size: 20px; }
}

/* ── Lead-magnet inline: già collassa il row a 1col sotto 700.
   Su <=480 riduciamo padding e font del titolo. */
@media (max-width: 480px) {
  .ma-lm { padding: 24px 18px; margin: 32px 0; }
  .ma-lm__title { font-size: 22px; }
  .ma-lm__btn { width: 100%; text-align: center; align-self: stretch; }
}

/* ── TOC: già sparisce sotto 1100px. Niente da fare. */

/* ── Meta card sotto 900px diventa static (già ok), riduciamo
   solo il padding su mobile estremo. */
@media (max-width: 480px) {
  .ma-meta-card { padding: 18px; }
}

