/* === Stile condiviso sezione Blog === */
:root {
  --navy: #1E3A5F; --navy-dark: #0F1E36; --teal: #0D9488; --teal-dark: #0B7A6F;
  --amber: #F59E0B; --ivory: #F8FAFC; --grey-100: #E5E9ED; --grey-300: #C0C9D2;
  --grey-600: #5A6470; --grey-800: #2A3340; --white: #FFFFFF;
  --shadow-md: 0 4px 12px rgba(15, 30, 54, 0.08), 0 2px 4px rgba(15, 30, 54, 0.04);
  --radius: 12px; --content-max: 1140px;
  --transition: 200ms cubic-bezier(.4,0,.2,1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 78px; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px; line-height: 1.65; color: var(--grey-800); background: var(--white);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4 {
  font-family: 'Nunito', system-ui, sans-serif;
  color: var(--navy); line-height: 1.25; margin: 0 0 0.5em; font-weight: 700;
}
h1 { font-size: clamp(2.0rem, 4.5vw, 2.8rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); margin-top: 1.8em; }
h3 { font-size: 1.2rem; color: var(--navy-dark); margin-top: 1.4em; }
p { margin: 0 0 1em; }
a { color: var(--teal); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--teal-dark); text-decoration: underline; }
.container { max-width: var(--content-max); margin: 0 auto; padding: 0 24px; }

/* Header sticky (identico al sito) */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--grey-100);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-full { height: 52px; width: auto; display: block; }
.logo-monogram { height: 46px; width: auto; display: none; }
nav.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; align-items: center; }
nav.main-nav a { color: var(--grey-800); font-size: 14.5px; font-weight: 500; padding: 8px 0; }
nav.main-nav a:hover { color: var(--navy); text-decoration: none; }
nav.main-nav a.cta-button {
  background: var(--navy); color: var(--white); padding: 10px 18px; border-radius: 8px;
  transition: background var(--transition);
}
nav.main-nav a.cta-button:hover { background: var(--navy-dark); }
nav.main-nav a.active { color: var(--navy); font-weight: 700; }

/* Hero blog */
.blog-hero { background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%); padding: 64px 0 48px; border-bottom: 1px solid var(--grey-100); }
.blog-hero .kicker { color: var(--teal); font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 12px; }
.blog-hero h1 { color: var(--navy); margin-bottom: 14px; }
.blog-hero p { color: var(--grey-600); font-size: 17px; max-width: 720px; }

/* Grid articoli */
.articles-grid {
  padding: 56px 0 80px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}
.article-card {
  background: var(--white); border: 1px solid var(--grey-100); border-radius: var(--radius);
  padding: 28px; transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex; flex-direction: column;
}
.article-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--grey-300); }
.article-card .cat { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--teal); margin-bottom: 14px; }
.article-card h3 { font-size: 1.18rem; color: var(--navy); margin: 0 0 10px; line-height: 1.35; }
.article-card h3 a { color: inherit; }
.article-card h3 a:hover { color: var(--teal); text-decoration: none; }
.article-card .excerpt { color: var(--grey-600); font-size: 14.5px; margin-bottom: 18px; flex: 1; }
.article-card .meta { font-size: 12.5px; color: var(--grey-600); display: flex; gap: 14px; align-items: center; border-top: 1px solid var(--grey-100); padding-top: 14px; }
.article-card .meta .dot { width: 3px; height: 3px; background: var(--grey-300); border-radius: 50%; }
.article-card .read-more { font-size: 13px; font-weight: 600; color: var(--teal); margin-top: 14px; display: inline-block; }
.article-card .read-more::after { content: " \2192"; transition: margin-left var(--transition); }
.article-card:hover .read-more::after { margin-left: 4px; }

/* Pagina articolo */
.article-wrap { padding: 48px 0 80px; }
.breadcrumb { font-size: 13px; color: var(--grey-600); margin-bottom: 24px; }
.breadcrumb a { color: var(--grey-600); }
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb .sep { margin: 0 8px; color: var(--grey-300); }
.article-header { max-width: 760px; margin: 0 auto 40px; }
.article-header .cat { font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--teal); margin-bottom: 14px; }
.article-header h1 { color: var(--navy); margin-bottom: 18px; }
.article-header .article-meta { display: flex; gap: 14px; align-items: center; color: var(--grey-600); font-size: 14px; padding-bottom: 24px; border-bottom: 1px solid var(--grey-100); }
.article-header .article-meta .dot { width: 3px; height: 3px; background: var(--grey-300); border-radius: 50%; }
.article-body { max-width: 760px; margin: 0 auto; font-size: 17px; line-height: 1.75; color: var(--grey-800); }
.article-body p { margin: 0 0 1.2em; }
.article-body h2 { color: var(--navy); margin-top: 1.8em; }
.article-body h3 { color: var(--navy-dark); margin-top: 1.5em; font-size: 1.15rem; }
.article-body ul, .article-body ol { margin: 0 0 1.3em; padding-left: 1.4em; }
.article-body li { margin-bottom: 0.6em; }
.article-body blockquote {
  border-left: 3px solid var(--teal); padding: 4px 0 4px 22px; margin: 1.5em 0;
  color: var(--navy); font-family: 'Nunito', system-ui, sans-serif; font-size: 1.1rem;
  line-height: 1.55; font-style: italic;
}
.article-body strong { color: var(--navy); font-weight: 700; }
.article-disclaimer {
  max-width: 760px; margin: 56px auto 0; padding: 20px 24px;
  background: var(--ivory); border-left: 3px solid var(--amber); border-radius: 4px;
  font-size: 13.5px; color: var(--grey-600); line-height: 1.55;
}
.article-disclaimer strong { color: var(--navy-dark); }

/* Box CTA in fondo agli articoli */
.article-cta {
  max-width: 760px; margin: 40px auto 0; padding: 28px 32px;
  background: var(--navy); color: var(--white); border-radius: var(--radius);
  text-align: center;
}
.article-cta h3 { color: var(--white); margin-bottom: 8px; font-size: 1.15rem; }
.article-cta p { color: rgba(255,255,255,0.85); margin-bottom: 18px; font-size: 14.5px; }
.article-cta a {
  display: inline-block; background: var(--white); color: var(--navy);
  padding: 12px 22px; border-radius: 8px; font-weight: 600; font-size: 14.5px;
}
.article-cta a:hover { background: var(--ivory); text-decoration: none; }

/* Articoli correlati */
.related { max-width: 980px; margin: 64px auto 0; padding-top: 48px; border-top: 1px solid var(--grey-100); }
.related h4 { color: var(--grey-600); font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 600; margin-bottom: 24px; font-family: 'Inter', sans-serif; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.related-card { padding: 20px; background: var(--ivory); border-radius: 8px; transition: background var(--transition); }
.related-card:hover { background: #F0F2F5; }
.related-card .cat { font-size: 10.5px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--teal); margin-bottom: 10px; }
.related-card h5 { color: var(--navy); font-size: 14.5px; font-weight: 700; margin: 0; line-height: 1.4; font-family: 'Nunito', system-ui, sans-serif; }
.related-card a { color: inherit; }
.related-card a:hover { text-decoration: none; color: var(--teal); }

/* Footer (identico al sito) */
.site-footer { background: var(--navy-dark); color: var(--white); padding: 56px 0 30px; margin-top: 64px; }
.site-footer h4 { color: var(--white); font-family: 'Inter', sans-serif; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 16px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.site-footer p, .site-footer a, .site-footer li { color: rgba(255,255,255,0.75); font-size: 14px; }
.site-footer a:hover { color: var(--white); text-decoration: none; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.copyright { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 36px; padding-top: 22px; font-size: 12.5px; color: rgba(255,255,255,0.55); text-align: center; }

/* Responsive */
.mobile-toggle { display: none; background: none; border: 0; cursor: pointer; width: 40px; height: 40px; padding: 8px; }
.mobile-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 4px auto; }
@media (max-width: 880px) {
  .logo-full { display: none; }
  .logo-monogram { display: block; }
  nav.main-nav { display: none; position: absolute; top: 78px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--grey-100); }
  nav.main-nav.open { display: block; }
  nav.main-nav ul { flex-direction: column; gap: 0; padding: 16px 24px; }
  nav.main-nav li { width: 100%; border-bottom: 1px solid var(--grey-100); }
  nav.main-nav li:last-child { border: 0; }
  nav.main-nav a { display: block; padding: 14px 0; }
  .mobile-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---- Articoli con figure, video e tabelle (set. 2026) ---- */
.article-body figure { margin: 28px 0; }
.article-body figure img, .article-body figure video { width: 100%; height: auto; display: block; border-radius: 10px; background: var(--navy-dark); }
.article-body figcaption { font-size: 13.5px; color: var(--grey-600); margin-top: 10px; line-height: 1.55; font-style: italic; text-align: center; }
.article-body .table-scroll { overflow-x: auto; margin: 24px 0; }
.article-body table { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 520px; }
.article-body th, .article-body td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--grey-100); vertical-align: top; }
.article-body th { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--grey-600); font-weight: 600; }
.article-body td.num { font-weight: 700; color: var(--navy); white-space: nowrap; }
.article-body .note { background: var(--ivory); border: 1px solid var(--grey-100); border-radius: 10px; padding: 18px 20px; font-size: 15px; margin: 24px 0; }
.article-body .trial { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin: 24px 0; }
.article-body .trial > div { background: var(--ivory); border: 1px solid var(--grey-100); border-radius: 10px; padding: 16px 18px; }
.article-body .trial .n { font-family: 'Nunito', system-ui, sans-serif; font-weight: 800; font-size: 1.45rem; color: var(--teal); line-height: 1.1; }
.article-body .trial .l { font-size: 13.5px; color: var(--grey-600); margin-top: 6px; line-height: 1.5; }
.article-body ol.refs, .article-body p.refs { font-size: 14px; color: var(--grey-600); }
.article-body ol.refs li { margin-bottom: 8px; }
