/* ════════════════════════════════════════════════════
   HOME.CSS — Blog listing (is_home)
   Stili specifici: hero, search, featured card, grid.
   Componenti condivisi in blog-shared.css.
   ════════════════════════════════════════════════════ */

/* ── Hero ─────────────────────────────────────────── */
.blog-page-hero {
  background: var(--bg-soft, #F7FAF9);
  padding: 64px 0;
  border-bottom: 1px solid var(--border, #E5EDEA);
}

.blog-page-h1 {
  font-family: var(--ff-head, 'Playfair Display', serif);
  font-size: clamp(30px, 3.8vw, 50px);
  font-weight: 700;
  color: var(--ink, #1A202C);
  line-height: 1.12;
  margin-bottom: 16px;
}

.blog-page-lead {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--ink-mid, #4A5568);
  max-width: 500px;
  margin: 0;
}

/* ── Search form ──────────────────────────────────── */
.blog-search-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  border: 1.5px solid var(--border, #E5EDEA);
  border-radius: 100px;
  padding: 10px 18px;
  width: 100%;
  max-width: 340px;
  color: var(--ink-light, #718096);
  transition: border-color .18s;
}
.blog-search-wrap:focus-within {
  border-color: var(--teal, #2E8B72);
  box-shadow: 0 0 0 3px rgba(46, 139, 114, .12);
}
.blog-search-wrap input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  color: var(--ink, #1A202C);
  flex: 1;
  min-width: 0;
}
.blog-search-wrap input::placeholder { color: var(--ink-light, #718096); }

/* ── Featured article ─────────────────────────────── */
.blog-featured-section {
  background: white;
  padding: 72px 0 0;
}

.article-card-featured {
  background: white;
  border: 1px solid var(--border, #E5EDEA);
  border-radius: var(--radius-xl, 20px);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, .06);
}

.featured-img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
}
.featured-img-placeholder {
  width: 100%;
  min-height: 320px;
  background: var(--bg-teal, #EBF5F2);
}

.featured-pill {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--orange, #E07240);
  background: #FEF0E8;
  padding: 4px 10px;
  border-radius: 100px;
}

.featured-title {
  font-family: var(--ff-head, 'Playfair Display', serif);
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 700;
  color: var(--ink, #1A202C);
  line-height: 1.25;
}
.featured-title a {
  color: inherit;
  text-decoration: none;
  transition: color .18s;
}
.featured-title a:hover { color: var(--teal, #2E8B72); }

.featured-excerpt {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-mid, #4A5568);
}

/* ── Grid section ─────────────────────────────────── */
.blog-grid-section {
  background: white;
  padding: 56px 0 88px;
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 991px) {
  .blog-page-hero { padding: 48px 0; }
  .blog-featured-section { padding: 48px 0 0; }
  .blog-grid-section { padding: 40px 0 64px; }
  .featured-img { min-height: 240px; }
  .article-card-featured .col-lg-6:last-child { padding: 32px !important; }
}
@media (max-width: 575px) {
  .blog-search-wrap { max-width: 100%; }
  .featured-img { min-height: 200px; }
}
