/* ───────────────────────────────────────────────────
   BLOG · stili specifici (usa i token di ../styles.css)
   ─────────────────────────────────────────────────── */

/* Hero index */
.blog-hero {
  padding: 160px 0 48px;
  text-align: center;
}
.blog-hero .label-eyebrow { margin-bottom: 16px; }
.blog-hero h1 {
  font-family: 'Sora', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin: 0 auto 20px;
  max-width: 720px;
}
.blog-hero h1 em {
  font-family: 'Noto Serif', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}
.blog-hero p {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: clamp(15.5px, 1.5vw, 18px);
  color: var(--muted);
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto;
}

/* Section labels inside index */
.blog-section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; margin: 0 0 24px;
}
.blog-section-head h2 {
  font-family: 'Sora', system-ui, sans-serif;
  font-weight: 600; font-size: 22px; letter-spacing: -0.025em; color: var(--ink);
}
.blog-section-head .blog-section-sub { font-size: 14px; color: var(--muted); }

/* Card grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .blog-grid { grid-template-columns: 1fr; } }

.blog-card {
  display: flex; flex-direction: column;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.blog-card:hover {
  border-color: var(--ink-soft);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}
.blog-card-media {
  aspect-ratio: 16 / 9;
  background: var(--paper-2);
  overflow: hidden;
}
.blog-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.blog-card-cat {
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 10px;
}
.blog-card-title {
  font-family: 'Sora', system-ui, sans-serif;
  font-weight: 600; font-size: 17px; line-height: 1.25;
  letter-spacing: -0.02em; color: var(--ink); margin-bottom: 8px;
}
.blog-card-excerpt {
  font-size: 13.5px; line-height: 1.55; color: var(--muted); flex: 1;
}
.blog-card-meta {
  display: flex; align-items: center; gap: 8px;
  margin-top: 16px; font-size: 12px; color: var(--muted);
}
.blog-card-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line); }

/* Compact list (confronti) */
.blog-compare-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
@media (max-width: 700px) { .blog-compare-grid { grid-template-columns: 1fr; } }
.blog-compare-item {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 20px; background: white;
  border: 1px solid var(--line); border-radius: 12px;
  text-decoration: none; transition: border-color 0.2s ease, transform 0.2s ease;
}
.blog-compare-item:hover { border-color: var(--ink); transform: translateX(3px); }
.blog-compare-item span:first-child {
  font-family: 'Sora', system-ui, sans-serif; font-weight: 600; font-size: 14.5px;
  letter-spacing: -0.015em; color: var(--ink);
}
.blog-compare-item i { color: var(--accent); font-size: 14px; }

/* ───────── Article page ───────── */
.article-wrap { padding: 130px 0 40px; }
.article-head { max-width: 760px; margin: 0 auto 40px; }
.article-breadcrumb {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 13px; color: var(--muted); margin-bottom: 24px;
}
.article-breadcrumb a { color: var(--muted); }
.article-breadcrumb a:hover { color: var(--ink); }
.article-breadcrumb i { font-size: 11px; opacity: 0.6; }
.article-cat {
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.article-title {
  font-family: 'Sora', system-ui, sans-serif;
  font-weight: 700; font-size: clamp(28px, 4vw, 42px); line-height: 1.12;
  letter-spacing: -0.035em; color: var(--ink); margin-bottom: 18px;
}
.article-meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 13.5px; color: var(--muted);
}
.article-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line); }
.article-cover {
  max-width: 960px; margin: 0 auto 48px;
  border-radius: 18px; overflow: hidden; border: 1px solid var(--line);
}
.article-cover img { width: 100%; display: block; }

/* Article body typography */
.article-body {
  max-width: 720px; margin: 0 auto;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 17px; line-height: 1.75; color: var(--ink-soft);
}
.article-body > p { margin-bottom: 22px; }
.article-body h2 {
  font-family: 'Sora', system-ui, sans-serif;
  font-weight: 600; font-size: clamp(22px, 2.6vw, 28px); line-height: 1.2;
  letter-spacing: -0.03em; color: var(--ink);
  margin: 48px 0 18px; scroll-margin-top: 100px;
}
.article-body h3 {
  font-family: 'Sora', system-ui, sans-serif;
  font-weight: 600; font-size: 19px; letter-spacing: -0.02em; color: var(--ink);
  margin: 32px 0 12px;
}
.article-body a { color: var(--accent); border-bottom: 1px solid rgba(79,70,229,0.25); }
.article-body a:hover { border-bottom-color: var(--accent); }
.article-body strong { color: var(--ink); font-weight: 600; }
.article-body em {
  font-family: 'Noto Serif', Georgia, serif; font-style: italic; color: var(--ink);
}
.article-body ul, .article-body ol { margin: 0 0 22px; padding-left: 0; list-style: none; }
.article-body ul li, .article-body ol li {
  position: relative; padding-left: 28px; margin-bottom: 12px; line-height: 1.65;
}
.article-body ul li::before {
  content: ''; position: absolute; left: 6px; top: 11px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.article-body ol { counter-reset: ol; }
.article-body ol li { counter-increment: ol; }
.article-body ol li::before {
  content: counter(ol); position: absolute; left: 0; top: 1px;
  width: 20px; height: 20px; border-radius: 6px; background: var(--accent-soft);
  color: var(--accent); font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Sora', system-ui, sans-serif;
}
.article-body blockquote {
  margin: 28px 0; padding: 18px 24px;
  border-left: 3px solid var(--accent); background: var(--paper-2);
  border-radius: 0 12px 12px 0;
  font-family: 'Noto Serif', Georgia, serif; font-style: italic;
  font-size: 18px; color: var(--ink); line-height: 1.6;
}
.article-body img { max-width: 100%; border-radius: 12px; margin: 28px 0; border: 1px solid var(--line); }
.article-body figure { margin: 28px 0; }
.article-body figcaption { font-size: 13px; color: var(--muted); text-align: center; margin-top: 8px; }
.article-body hr { border: none; border-top: 1px solid var(--line); margin: 40px 0; }

/* Callout / key box */
.article-callout {
  margin: 28px 0; padding: 20px 24px;
  background: var(--accent-soft); border: 1px solid rgba(79,70,229,0.18);
  border-radius: 14px; font-size: 15.5px; line-height: 1.6; color: var(--ink);
}
.article-callout strong { color: var(--ink); }

/* End-of-article CTA */
.article-cta {
  max-width: 720px; margin: 56px auto 0;
  background: var(--ink); color: white; border-radius: 20px;
  padding: 44px 40px; text-align: center; position: relative; overflow: hidden;
}
.article-cta::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.05) 0.8px, transparent 1px);
  background-size: 26px 26px; opacity: 0.7; pointer-events: none;
}
.article-cta > * { position: relative; z-index: 1; }
.article-cta h3 {
  font-family: 'Sora', system-ui, sans-serif; font-weight: 600;
  font-size: clamp(20px, 2.4vw, 26px); letter-spacing: -0.025em; color: white; margin-bottom: 10px;
}
.article-cta p { color: rgba(255,255,255,0.72); font-size: 15px; line-height: 1.6; margin-bottom: 24px; }

/* Related articles */
.article-related { max-width: 960px; margin: 64px auto 0; }
.article-related h2 {
  font-family: 'Sora', system-ui, sans-serif; font-weight: 600;
  font-size: 22px; letter-spacing: -0.025em; color: var(--ink); margin-bottom: 24px;
}

/* Tables (used by comparison articles) */
.article-body .table-wrap { overflow-x: auto; margin: 28px 0; }
.article-body table {
  width: 100%; border-collapse: collapse; font-size: 14.5px;
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
}
.article-body th, .article-body td {
  padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.article-body thead th {
  background: var(--paper-2); font-family: 'Sora', system-ui, sans-serif;
  font-weight: 600; font-size: 13px; color: var(--ink); letter-spacing: -0.01em;
}
.article-body tbody tr:last-child td { border-bottom: none; }
.article-body td:first-child { font-weight: 500; color: var(--ink); }

@media (max-width: 640px) {
  .article-wrap { padding: 110px 0 32px; }
  .article-body { font-size: 16px; }
  .article-cta { padding: 32px 22px; border-radius: 16px; }
}
