.mvpost{
  --primary:#1A73E8; --primary-hover:#1557B0; --primary-active:#11468C;
  --primary-surface:#E8F0FE; --on-primary:#FFFFFF;
  --cta:#FBBC04; --cta-hover:#F9AB00; --cta-active:#E89D00; --on-cta:#202124;
  --success:#34A853; --success-text:#15803D; --success-surface:#E8F5E9; --success-border:#D9EADF;
  --surface:#FFFFFF; --surface-alt:#F8F9FA; --border:#DADCE0; --border-soft:#E8EAED;
  --text:#202124; --text-2:#5F6368; --text-3:#80868B;
  --focus-ring:#0B57D0;
  --accent:#15803D; --accent-ico:#34A853; --accent-surface:#E8F5E9;
  --font:Verdana, Geneva, Tahoma, sans-serif;
  -webkit-text-size-adjust:100%; text-size-adjust:100%;
  --gutter:clamp(20px,3vw,32px);
  --container:1180px;
  --content:760px;
  --radius-card:12px;
  --shadow-1:0 1px 2px rgba(60,64,67,.12);
  --shadow-2:0 4px 8px -2px rgba(60,64,67,.10),0 2px 4px -2px rgba(60,64,67,.08);
  --shadow-3:0 12px 24px -8px rgba(60,64,67,.14),0 6px 12px -6px rgba(60,64,67,.10);
}

/* Full width: il layout Astra e' forzato a "stretched" via functions.php,
   quindi qui NON servono piu' i margini negativi (causavano overflow su mobile).
   Basta occupare tutto e blindare contro qualsiasi sfioramento orizzontale. */
.mvpost{ width:100%; max-width:100%; overflow-x:clip; box-sizing:border-box; font-family:var(--font); color:var(--text); }
.mvpost *, .mvpost *::before, .mvpost *::after{ box-sizing:border-box; }
.mvpost img{ max-width:100%; height:auto; display:block; }
.mvpost a{ color:inherit; text-decoration:none; }

.mvpost .wrap{ max-width:var(--container); margin:0 auto; padding-left:var(--gutter); padding-right:var(--gutter); }
.mvpost .wrap--narrow{ max-width:var(--content); }

.mvpost svg.ico{ width:1em; height:1em; vertical-align:-.15em; fill:none; stroke:currentColor; stroke-width:2;
  stroke-linecap:round; stroke-linejoin:round; display:inline-block; flex:none; }

/* ---------- bottoni (identici alle landing) ---------- */
.mvpost .mv-btn-primary,.mvpost .mv-btn-secondary{ display:inline-flex; align-items:center; gap:10px; justify-content:center;
  border-radius:999px; font-weight:700; font-size:16.5px; padding:15px 28px; transition:background .15s ease; }
.mvpost .mv-btn-primary{ background:var(--cta); color:var(--on-cta); }
.mvpost .mv-btn-primary:hover{ background:var(--cta-hover); color:var(--on-cta); }
.mvpost .mv-btn-secondary{ background:var(--primary); color:var(--on-primary); }
.mvpost .mv-btn-secondary:hover{ background:var(--primary-hover); color:var(--on-primary); }
.mvpost .mv-btn-primary:focus-visible,.mvpost .mv-btn-secondary:focus-visible{ outline:3px solid var(--focus-ring); outline-offset:3px; }
.mvpost .cta-row{ display:flex; gap:14px; flex-wrap:wrap; }
.mvpost .cta-row.center{ justify-content:center; }

/* ---------- HERO dell'articolo ---------- */
.mvpost .post-hero{ background:linear-gradient(180deg,var(--primary-surface) 0%,#fff 100%);
  padding:clamp(22px,4vw,40px) 0 clamp(20px,3vw,32px); }
.mvpost .post-hero .wrap{ max-width:900px; }
.mvpost .crumbs{ font-size:13px; color:var(--text-2); line-height:1.5; }
.mvpost .crumbs a:hover{ color:var(--primary-hover); }
.mvpost .crumbs .sep{ margin:0 6px; color:var(--border); }
.mvpost .eyebrow{ display:inline-flex; align-items:center; gap:8px; background:#fff; color:var(--primary-hover);
  font-weight:700; font-size:13px; padding:7px 16px; border-radius:999px; box-shadow:var(--shadow-1); margin:16px 0 4px; }
.mvpost .eyebrow i{ width:8px; height:8px; border-radius:50%; background:var(--primary); }
.mvpost .post-hero h1{ font-weight:700; margin-top:16px; line-height:1.18; }
.mvpost .post-meta{ display:flex; flex-wrap:wrap; align-items:center; gap:10px 16px; margin-top:20px; }
.mvpost .post-author{ display:inline-flex; align-items:center; gap:10px; }
.mvpost .post-author img{ width:44px; height:44px; border-radius:50%; object-fit:cover; box-shadow:var(--shadow-1); flex:none; }
.mvpost .post-author .pa-id{ display:inline-flex; align-items:baseline; flex-wrap:wrap; gap:2px 8px; }
.mvpost .post-author .pa-name{ font-size:14.5px; color:var(--text); font-weight:700; line-height:1.3; white-space:nowrap; }
.mvpost .post-author .pa-sep{ color:var(--border); font-weight:700; }
.mvpost .post-author .pa-role{ font-size:12.5px; color:var(--text-2); font-weight:600; line-height:1.3; }
.mvpost .post-meta .mi{ display:inline-flex; align-items:center; gap:6px; font-size:13px; color:var(--text-2); font-weight:600; }
.mvpost .post-meta .mi .ico{ color:var(--primary); font-size:16px; }

/* ---------- featured image ---------- */
.mvpost .post-featured{ margin-top:clamp(20px,3vw,28px); }
.mvpost .post-featured .wrap{ max-width:980px; }
.mvpost .post-featured figure{ border-radius:16px; overflow:hidden; box-shadow:var(--shadow-3); background:var(--surface-alt); }
.mvpost .post-featured img{ width:100%; height:auto; aspect-ratio:680/357; object-fit:cover; }

/* ---------- layout corpo + TOC ---------- */
/* Senza TOC: colonna singola centrata a larghezza contenuto.
   Con TOC (.has-toc, >=3 titoli) su desktop: due colonne indice + contenuto.
   Cosi' un articolo senza titoli NON finisce compresso nella colonna dell'indice. */
.mvpost .post-layout{ display:grid; grid-template-columns:minmax(0,var(--content)); justify-content:center;
  gap:clamp(28px,4vw,48px); padding-top:clamp(36px,5vw,56px); padding-bottom:clamp(48px,7vw,80px); }
@media (min-width:1040px){
  .mvpost .post-layout.has-toc{ grid-template-columns:270px minmax(0,var(--content)); align-items:start; }
}

/* TOC */
.mvpost .toc-box{ background:#fff; border:1px solid var(--border); border-radius:var(--radius-card);
  box-shadow:var(--shadow-1); overflow:hidden; }
.mvpost .toc-box > summary{ list-style:none; cursor:pointer; display:flex; align-items:center; justify-content:space-between;
  gap:12px; padding:16px 18px; font-weight:700; font-size:14px; color:var(--text); background:var(--surface-alt);
  border-bottom:1px solid var(--border-soft); }
.mvpost .toc-box > summary::-webkit-details-marker{ display:none; }
.mvpost .toc-box > summary .lbl{ display:inline-flex; align-items:center; gap:9px; }
.mvpost .toc-box > summary .lbl .ico{ color:var(--primary); font-size:18px; }
.mvpost .toc-box > summary .chev{ color:var(--text-3); transition:transform .2s ease; }
.mvpost .toc-box[open] > summary .chev{ transform:rotate(180deg); }
.mvpost .toc-nav{ padding:12px 8px; max-height:min(70vh,640px); overflow:auto; }
.mvpost .toc-nav a{ display:block; padding:8px 12px; border-radius:8px; font-size:13.5px; line-height:1.4;
  color:var(--text-2); font-weight:500; border-left:2px solid transparent; }
.mvpost .toc-nav a:hover{ background:var(--primary-surface); color:var(--primary-hover); }
.mvpost .toc-nav a.lvl-3{ padding-left:26px; font-weight:400; color:var(--text-2); font-size:13px; }
.mvpost .toc-nav a.is-active{ color:var(--primary-hover); background:var(--primary-surface); border-left-color:var(--primary); font-weight:700; }
@media (min-width:1040px){
  .mvpost .post-toc{ position:sticky; top:96px; }
}

/* ---------- PROSE (il contenuto dell'articolo) ---------- */
.mvpost .prose{ min-width:0; overflow-wrap:break-word; word-wrap:break-word; }
.mvpost .prose > *:first-child{ margin-top:0; }
.mvpost .prose p{ line-height:1.72; color:#33373b; margin:0 0 20px; }
.mvpost .prose .lead-in{ font-size:1.1em; color:var(--text-2); }
.mvpost .prose h2{ font-weight:700; line-height:1.25; margin:44px 0 16px; padding-top:8px; scroll-margin-top:96px; }
.mvpost .prose h2::before{ content:""; display:block; width:44px; height:4px; border-radius:999px;
  background:linear-gradient(90deg,var(--primary),#5b9bf5); margin-bottom:16px; }
.mvpost .prose h3{ font-weight:700; line-height:1.3; margin:32px 0 12px; color:var(--text); scroll-margin-top:96px; }
.mvpost .prose strong{ color:var(--text); font-weight:700; }
.mvpost .prose a{ color:var(--primary-hover); text-decoration:underline; text-underline-offset:2px;
  text-decoration-color:rgba(26,115,232,.35); transition:text-decoration-color .15s ease; }
.mvpost .prose a:hover{ text-decoration-color:var(--primary-hover); }
.mvpost .prose ul, .mvpost .prose ol{ margin:0 0 20px; padding-left:0; list-style:none; }
.mvpost .prose ul li, .mvpost .prose ol li{ position:relative; padding-left:30px; margin-bottom:11px;
  line-height:1.66; color:#33373b; }
.mvpost .prose ul li::before{ content:""; position:absolute; left:8px; top:.62em; width:8px; height:8px;
  border-radius:50%; background:var(--primary); }
.mvpost .prose ol{ counter-reset:mvol; }
.mvpost .prose ol li{ counter-increment:mvol; }
.mvpost .prose ol li::before{ content:counter(mvol); position:absolute; left:0; top:.05em; width:22px; height:22px;
  border-radius:50%; background:var(--primary-surface); color:var(--primary-hover); font-size:12px; font-weight:700;
  display:flex; align-items:center; justify-content:center; }
.mvpost .prose blockquote{ margin:24px 0; padding:18px 22px; background:var(--surface-alt);
  border-left:4px solid var(--primary); border-radius:0 var(--radius-card) var(--radius-card) 0; color:var(--text-2); }
.mvpost .prose img{ border-radius:12px; box-shadow:var(--shadow-1); margin:24px 0; }
.mvpost .prose hr{ border:0; border-top:1px solid var(--border-soft); margin:36px 0; }

/* box CTA testuale in coda all'articolo (before the green band) */
.mvpost .inline-cta{ margin:36px 0 8px; padding:24px 26px; background:var(--primary-surface);
  border:1px solid #D2E3FC; border-radius:var(--radius-card); }
.mvpost .inline-cta p{ margin:0 0 14px; color:var(--text); }
.mvpost .inline-cta strong{ color:var(--primary-active); }

/* ---------- AUTHOR BOX (foto dentro il box) + recensioni Google ---------- */
.mvpost .author-section{ padding:4px 0 clamp(40px,6vw,72px); }
.mvpost .author-section .wrap{ max-width:940px; }
.mvpost .author-card{ display:grid; grid-template-columns:200px 1fr; gap:clamp(24px,3.5vw,40px); align-items:start;
  background:#fff; border:1px solid var(--border); border-radius:16px; padding:clamp(24px,3vw,34px); box-shadow:var(--shadow-2); }
@media (max-width:720px){ .mvpost .author-card{ grid-template-columns:1fr; justify-items:center; text-align:center; } }

/* foto dentro il box, senza contorno (niente bordo, niente cornice) */
.mvpost .author-photo{ width:100%; max-width:200px; aspect-ratio:1/1.15; object-fit:cover; object-position:center top;
  border-radius:14px; display:block; }
@media (max-width:720px){ .mvpost .author-photo{ max-width:150px; } }

.mvpost .author-body{ min-width:0; }
.mvpost .author-kicker{ display:inline-block; font-size:12px; font-weight:700; letter-spacing:.06em;
  text-transform:uppercase; color:var(--primary-hover); margin-bottom:5px; }
.mvpost .author-name{ font-weight:700; line-height:1.2; margin:0 0 5px; font-size:1.32em; color:var(--text); }
.mvpost .author-role{ font-size:14px; font-weight:700; color:var(--text-2); margin:0 0 14px; line-height:1.45; }
.mvpost .author-bio{ font-size:15px; line-height:1.66; color:var(--text-2); margin:0 0 20px; }

/* Certificazioni e Albi */
.mvpost .author-certs{ margin:0 0 20px; }
.mvpost .certs-title{ display:block; font-size:12px; font-weight:700; letter-spacing:.05em; text-transform:uppercase;
  color:var(--primary-hover); margin-bottom:11px; }
.mvpost .certs-list{ list-style:none; display:grid; grid-template-columns:1fr 1fr; gap:9px 22px; }
@media (max-width:820px){ .mvpost .certs-list{ grid-template-columns:1fr; text-align:left; } }
.mvpost .certs-list li{ display:flex; align-items:flex-start; gap:8px; font-size:13px; line-height:1.42; color:var(--text); }
.mvpost .certs-list li .ico{ color:var(--success); font-size:16px; margin-top:1px; flex:none; }
.mvpost .certs-list li b{ color:var(--text-2); font-weight:700; white-space:nowrap; }

.mvpost .g-reviews{ display:inline-flex; width:fit-content; max-width:100%; flex-wrap:wrap; align-items:center; gap:11px;
  background:#fff; border:1px solid var(--border); border-radius:12px; padding:10px 16px; box-shadow:var(--shadow-1); text-decoration:none; }
@media (max-width:720px){ .mvpost .g-reviews{ margin:0 auto; } }
.mvpost a.g-reviews:hover{ box-shadow:var(--shadow-2); }
.mvpost .g-reviews .g-logo{ width:24px; height:24px; flex:none; display:block; }
.mvpost .g-reviews .g-num{ font-weight:700; font-size:18px; color:var(--text); line-height:1; }
.mvpost .g-reviews .g-stars{ display:inline-flex; gap:1px; }
.mvpost .g-reviews .g-stars svg{ width:15px; height:15px; fill:#FBBC04; stroke:none; display:block; }
.mvpost .g-reviews .g-txt{ font-size:12.5px; color:var(--text-2); font-weight:600; line-height:1.3; }
.mvpost .g-reviews .g-txt b{ color:var(--text); }


/* ---------- CTA BAND verde finale (identica alle landing) ---------- */
.mvpost .cta-band{ background:var(--success-surface); border-top:1px solid var(--success-border);
  border-bottom:1px solid var(--success-border); padding:clamp(48px,7vw,88px) 24px; text-align:center; }
.mvpost .cta-band .inner{ max-width:760px; margin:0 auto; }
.mvpost .cta-band h2{ font-weight:700; margin-bottom:14px; line-height:1.25; }
.mvpost .cta-band .lead{ color:var(--text-2); font-size:1.06em; line-height:1.65; margin-bottom:28px; }
.mvpost .cta-band .cta-row{ justify-content:center; }
.mvpost .cta-band .micro{ margin-top:18px; font-size:14px; color:var(--text-2); }
.mvpost .cta-band .micro a{ color:var(--primary-hover); font-weight:700; }

@media (prefers-reduced-motion: reduce){
  .mvpost *, .mvpost *::before, .mvpost *::after{ transition-duration:.01ms !important; }
}
@media (max-width:600px){
  .mvpost .cta-band .cta-row{ flex-direction:column; }
  .mvpost .cta-band .mv-btn-primary, .mvpost .cta-band .mv-btn-secondary{ width:100%; }

  /* author box compatto su mobile */
  .mvpost .author-section{ padding-bottom:40px; }
  .mvpost .author-card{ padding:22px 18px; }
  .mvpost .author-photo{ max-width:128px; }
  .mvpost .author-kicker{ font-size:11px; margin-bottom:3px; }
  .mvpost .author-name{ font-size:1.15em; margin-bottom:3px; }
  .mvpost .author-role{ font-size:12.5px; margin-bottom:12px; }
  .mvpost .author-bio{ font-size:13.5px; line-height:1.55; margin-bottom:16px; }
  .mvpost .certs-list li{ font-size:12.5px; }
  .mvpost .g-reviews{ gap:8px; padding:8px 12px; }
  .mvpost .g-reviews .g-logo{ width:20px; height:20px; }
  .mvpost .g-reviews .g-num{ font-size:15px; }
  .mvpost .g-reviews .g-stars svg{ width:13px; height:13px; }
  .mvpost .g-reviews .g-txt{ font-size:11px; }
}
