/* ═══════════════════════════════════════════════════
   CASA-ASTE.IT — Stili pagina Blog
   ═══════════════════════════════════════════════════ */

.blog-hero {
  background: linear-gradient(135deg, #0050B8 0%, #0273FC 55%, #2E9CFF 100%);
  color: white; padding: 56px 32px; text-align: center;
}
.blog-hero-inner { max-width: 640px; margin: 0 auto; }
.blog-hero .eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,.75); margin-bottom: 10px; }
.blog-hero h1 { font-size: 32px; font-weight: 700; margin-bottom: 10px; }
.blog-hero p { font-size: 14px; color: rgba(255,255,255,.85); }

.blog-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.blog-card { background: white; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s; }
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.blog-card-link { display: block; }
.blog-card-img { position: relative; height: 170px; background: var(--blue-ultra); overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 34px; opacity: .5; }
.blog-card-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--blue); color: white; font-size: 10px; font-weight: 700;
  padding: 4px 10px; border-radius: 8px; text-transform: uppercase; letter-spacing: .4px;
}
.blog-card-body { padding: 16px 18px 18px; }
.blog-card-date { font-size: 11px; color: var(--muted); margin-bottom: 6px; }
.blog-card-title { font-size: 16px; font-weight: 700; line-height: 1.35; margin-bottom: 8px; }
.blog-card-excerpt {
  font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 10px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.blog-card-author { font-size: 11px; color: var(--muted); font-weight: 600; }

.blog-pagination { display: flex; justify-content: center; gap: 6px; margin-top: 32px; }
.page-link {
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--muted); border: 1px solid var(--border);
}
.page-link.active, .page-link:hover { background: var(--blue); color: white; border-color: var(--blue); }

/* ─── Pagina articolo singolo ──────────────────────────────── */
.blog-article { max-width: 720px; margin: 0 auto; padding: 48px 24px; }
.blog-article-head { margin-bottom: 24px; }
.blog-article-head h1 { font-size: 30px; font-weight: 700; line-height: 1.3; margin: 12px 0 10px; }
.blog-article-meta { font-size: 12px; color: var(--muted); }
.blog-article-cover { border-radius: 16px; overflow: hidden; margin-bottom: 28px; box-shadow: var(--shadow-sm); }
.blog-article-cover img { width: 100%; max-height: 420px; object-fit: cover; }
.blog-article-body { font-size: 15px; line-height: 1.85; color: var(--text); }
.blog-article-body h2 { font-size: 20px; font-weight: 700; margin: 32px 0 12px; }
.blog-article-body h3 { font-size: 17px; font-weight: 700; margin: 24px 0 10px; }
.blog-article-body p { margin-bottom: 16px; }
.blog-article-body ul, .blog-article-body ol { margin: 0 0 16px 20px; }
.blog-article-body li { margin-bottom: 6px; }
.blog-article-body strong { color: var(--text); }

@media (max-width: 900px) {
  .blog-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-hero { padding: 40px 20px; }
  .blog-hero h1 { font-size: 24px; }
  .blog-article { padding: 32px 16px; }
  .blog-article-head h1 { font-size: 24px; }
}
