/* Blog — stile pulito e moderno (Fase 2, passo 2).
   Scope: solo componenti del blog (.blog-container, .blog-post-container, .related-posts).
   Il rosso viene dai token --color-primary-*; il testo rosso usa la tinta 400 (contrasto >= 4.5:1 sul nero). */
.blog-container,.blog-post-container,.related-posts{
  --mb-bg:#0b0b0c;--mb-surface:#141417;--mb-line:rgba(255,255,255,.10);
  --mb-text:#f5f5f6;--mb-muted:rgba(255,255,255,.72);--mb-r-sm:8px;--mb-r-md:12px;
}
/* Titoli: sentence case, tracking neutro, niente gradiente ne' glow */
html body .blog-container h1,html body .blog-container h2,html body .blog-container h3,
html body .blog-post-container h1,html body .blog-post-container h2,html body .blog-post-container h3,html body .blog-post-container h4,
html body .related-posts h2,html body .related-posts h3{
  text-transform:none !important;letter-spacing:-0.01em !important;text-shadow:none !important;filter:none !important;
  background:none !important;-webkit-text-fill-color:currentColor !important;font-weight:700 !important;
}
html body .blog-header h1{font-size:clamp(2rem,4.2vw,3rem) !important;line-height:1.1 !important}
html body .blog-header p{color:var(--mb-muted) !important;letter-spacing:0 !important}
/* Card: bordo sottile, nessun glow, nessun sollevamento */
html body .blog-card{
  background:var(--mb-surface) !important;border:1px solid var(--mb-line) !important;border-radius:var(--mb-r-md) !important;
  box-shadow:none !important;
  transition:border-color .2s ease !important;
}
html body .blog-card:hover{transform:none !important;box-shadow:none !important;border-color:rgba(var(--color-primary-400-rgb,220,80,96),.6) !important}
html body .blog-card__image img{transition:transform .4s ease !important}
html body .blog-card__title{
  font-size:1.25rem !important;line-height:1.3 !important;font-weight:600 !important;letter-spacing:-0.01em !important;
  text-transform:none !important;
}
html body .blog-card__title a:hover{color:var(--color-primary-400) !important}
html body .blog-card__meta{color:var(--mb-muted) !important}
html body .blog-card__excerpt{color:var(--mb-muted) !important;line-height:1.6 !important}
html body .blog-card__reading-time{color:var(--mb-muted) !important}
/* Categoria sulla foto: chip scuro e piatto invece della pill rossa con gradiente */
html body .blog-card__category,html body .blog-category-badge{
  background:rgba(11,11,12,.78) !important;background-image:none !important;color:#fff !important;
  border:1px solid var(--mb-line) !important;border-radius:6px !important;box-shadow:none !important;
  padding:5px 10px !important;font-size:.75rem !important;font-weight:600 !important;
  letter-spacing:.06em !important;text-transform:uppercase !important;
}
/* "Leggi tutto": bersaglio di tocco >= 44px, rosso leggibile */
html body .blog-card__read-more{
  color:var(--color-primary-400) !important;min-height:44px !important;display:inline-flex !important;
  align-items:center !important;letter-spacing:0 !important;text-transform:none !important;
}
html body .blog-card__read-more:hover{color:#fff !important}
html body .blog-card__read-more:focus-visible,html body .blog-card__title a:focus-visible{
  outline:3px solid var(--color-primary-400) !important;outline-offset:3px !important;border-radius:4px;
}
/* Paginazione */
html body .blog-pagination .page-link{border-radius:var(--mb-r-sm) !important;min-height:44px !important;min-width:44px !important;
  display:inline-flex !important;align-items:center !important;justify-content:center !important}
/* Articolo */
html body .blog-post__category{
  background:none !important;background-image:none !important;border:0 !important;box-shadow:none !important;
  padding:0 !important;border-radius:0 !important;color:var(--color-primary-400) !important;
  font-size:.8125rem !important;font-weight:600 !important;letter-spacing:.08em !important;text-transform:uppercase !important;
}
html body .blog-post__title{font-size:clamp(2rem,4.2vw,3rem) !important;line-height:1.15 !important}
html body .blog-post__meta{color:var(--mb-muted) !important}
html body .blog-post__content{
  color:rgba(255,255,255,.88) !important;line-height:1.75 !important;letter-spacing:0 !important;
}
html body .blog-post__content p,html body .blog-post__content li{max-width:70ch;letter-spacing:0 !important}
html body .blog-post__content h2{font-size:clamp(1.5rem,3vw,1.875rem) !important;line-height:1.2 !important}
html body .blog-post__content h3{font-size:1.25rem !important;line-height:1.3 !important}
html body .blog-post__content a{color:var(--color-primary-400) !important}
html body .blog-post__content blockquote{
  background:var(--mb-surface) !important;border-left:3px solid var(--color-primary-500) !important;
  border-radius:0 var(--mb-r-md) var(--mb-r-md) 0 !important;font-style:normal !important;
}
html body .blog-post__content img{border-radius:var(--mb-r-md) !important}
html body .blog-post__tag{
  background:var(--mb-surface) !important;border:1px solid var(--mb-line) !important;border-radius:6px !important;
  color:var(--mb-muted) !important;text-transform:none !important;letter-spacing:0 !important;
}
html body .related-post-card{
  background:var(--mb-surface) !important;border:1px solid var(--mb-line) !important;border-radius:var(--mb-r-md) !important;
  box-shadow:none !important;transition:border-color .2s ease !important;
}
html body .related-post-card:hover{transform:none !important;border-color:rgba(var(--color-primary-400-rgb,220,80,96),.6) !important}
@media (prefers-reduced-motion:reduce){
  html body .blog-card,html body .blog-card__image img,html body .related-post-card{transition:none !important}
  html body .blog-card:hover .blog-card__image img{transform:none !important}
}
/* --- 2a passata --- */
html body .blog-post__content{max-width:70ch !important;margin-left:auto !important;margin-right:auto !important}
html body .blog-post__content strong,html body .blog-post__content b{color:#fff !important;font-weight:700 !important}
html body .blog-post__content em,html body .blog-post__content i{color:inherit !important}
html body .blog-post__content a{text-decoration:underline !important;text-underline-offset:3px !important}
html body .blog-post__content a strong,html body .blog-post__content a b{color:inherit !important}
html body .blog-post__content a:hover{color:#fff !important}
html body .related-post-card__title,html body .related-post-card h3,html body .related-post-card h2{
  background:none !important;border:0 !important;box-shadow:none !important;padding:0 !important;border-radius:0 !important;
  font-size:1.0625rem !important;line-height:1.35 !important;font-weight:600 !important;
}
html body .related-post-card__content{padding:18px 20px !important}
html body .related-posts__title{font-size:clamp(1.375rem,2.5vw,1.75rem) !important;text-align:left !important}
/* --- 3a passata: specificita' contro le regole globali su strong e sui titoli --- */
html body .blog-post-container .blog-post__content strong,
html body .blog-post-container .blog-post__content b,
html body .blog-post-container .blog-post__content h2 strong,
html body .blog-post-container .blog-post__content h3 strong{
  background:none !important;background-image:none !important;
  -webkit-background-clip:border-box !important;background-clip:border-box !important;
  -webkit-text-fill-color:#fff !important;color:#fff !important;font-weight:700 !important;
}
html body .blog-post-container .blog-post__content a,
html body .blog-post-container .blog-post__content a strong{
  -webkit-text-fill-color:var(--color-primary-400) !important;color:var(--color-primary-400) !important;
}
html body .blog-post-container .blog-post__content{
  max-width:70ch !important;margin-left:auto !important;margin-right:auto !important;
}
html body .blog-post-container .related-posts .related-post-card h3.related-post-card__title,
html body .blog-post-container .related-posts .related-post-card .related-post-card__title a{
  background:none !important;background-image:none !important;border:0 !important;box-shadow:none !important;
  padding:0 !important;border-radius:0 !important;margin:0 !important;
}
html body .blog-post-container .related-posts .related-post-card__title a{color:#fff !important;-webkit-text-fill-color:#fff !important;text-decoration:none !important}
html body .blog-post-container .related-posts .related-post-card__title a:hover{color:var(--color-primary-400) !important;-webkit-text-fill-color:var(--color-primary-400) !important}
html body .related-post-card__content *,
html body .related-post-card__content *::before,
html body .related-post-card__content *::after{
  border:0 !important;background:none !important;box-shadow:none !important;outline:0 !important;
}
html body .related-post-card__content *::before,html body .related-post-card__content *::after{content:none !important;display:none !important}
