/* =========================================
   BLOG — numeri-lotto.com
   ========================================= */

/* Filters */
.blog-filters {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.blog-filter {
  padding: .45rem 1.1rem;
  border: 2px solid #e0e0e0;
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  font-size: .82rem;
  color: #555;
  transition: all .2s;
  font-family: inherit;
}
.blog-filter:hover,
.blog-filter.active {
  background: #e74c3c;
  border-color: #e74c3c;
  color: #fff;
}

/* Featured article */
.blog-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,.10);
  margin-bottom: 3rem;
  background: #fff;
}
.blog-featured__img {
  min-height: 340px;
  position: relative;
  display: block;
  text-decoration: none;
}
.blog-featured__img-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform .4s ease;
}
.blog-featured__img:hover .blog-featured__img-bg {
  transform: scale(1.04);
}
.blog-featured__body {
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.blog-featured__body .blog-cat {
  margin-bottom: .75rem;
}
.blog-featured__body h2 {
  font-size: 1.55rem;
  line-height: 1.3;
  margin: 0 0 .75rem;
  color: #1a1a1a;
}
.blog-featured__body h2 a {
  color: inherit;
  text-decoration: none;
}
.blog-featured__body h2 a:hover { color: #e74c3c; }
.blog-featured__body p {
  color: #555;
  line-height: 1.65;
  margin: 0 0 1.25rem;
  font-size: .97rem;
}
.blog-featured__body .blog-meta {
  margin-bottom: 1.5rem;
}
.blog-featured__cta {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: #e74c3c;
  color: #fff;
  padding: .65rem 1.4rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: .9rem;
  text-decoration: none;
  transition: background .2s;
  align-self: flex-start;
}
.blog-featured__cta:hover { background: #c0392b; }

/* Category badge */
.blog-cat {
  display: inline-block;
  background: #e74c3c;
  color: #fff;
  padding: .3rem .85rem;
  border-radius: 999px;
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
}
.blog-cat--stat  { background: #2980b9; }
.blog-cat--guida { background: #27ae60; }
.blog-cat--10el  { background: #8e44ad; }

/* Section heading */
.blog-section-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #1a1a1a;
  margin: 0 0 1.5rem;
  padding-bottom: .6rem;
  border-bottom: 3px solid #e74c3c;
  display: inline-block;
}

/* Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 900px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-featured { grid-template-columns: 1fr; }
  .blog-featured__img { min-height: 220px; }
}
@media (max-width: 580px) {
  .blog-grid { grid-template-columns: 1fr; }
}

/* Card */
.blog-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.blog-card:hover {
  box-shadow: 0 6px 28px rgba(0,0,0,.13);
  transform: translateY(-3px);
}
.blog-card__img-wrap {
  display: block;
  position: relative;
  overflow: hidden;
  height: 190px;
  text-decoration: none;
}
.blog-card__img-wrap .blog-cat {
  position: absolute;
  top: 12px;
  left: 14px;
  z-index: 2;
}
.blog-card__img-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform .4s ease;
}
.blog-card__img-wrap:hover .blog-card__img-bg {
  transform: scale(1.06);
}
.blog-card__body {
  padding: 1.1rem 1.2rem 1.3rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-card__title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 .5rem;
  line-height: 1.35;
}
.blog-card__title a {
  color: #1a1a1a;
  text-decoration: none;
}
.blog-card__title a:hover { color: #e74c3c; }
.blog-card__excerpt {
  color: #666;
  font-size: .875rem;
  line-height: 1.55;
  margin: 0 0 auto;
  padding-bottom: 1rem;
}
.blog-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: .78rem;
  color: #999;
}
.blog-meta svg {
  vertical-align: -2px;
  flex-shrink: 0;
}

/* Newsletter box */
.blog-newsletter {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: center;
  color: #fff;
  margin-top: 3rem;
}
.blog-newsletter h3 {
  font-size: 1.4rem;
  margin: 0 0 .5rem;
  color: #fff;
}
.blog-newsletter p {
  opacity: .9;
  margin: 0 0 1.5rem;
  font-size: .95rem;
}

/* Article page */
.blog-article__hero {
  width: 100%;
  height: 320px;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  margin-bottom: 2rem;
}
.blog-article__hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.blog-article__hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.45) 0%, rgba(0,0,0,.05) 60%);
}
.blog-article__hero-meta {
  position: absolute;
  bottom: 1.25rem;
  left: 1.5rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.blog-article__hero-meta .blog-meta {
  color: rgba(255,255,255,.9);
}
.blog-article__content {
  max-width: 780px;
}
.blog-article__content h2 {
  margin-top: 2rem;
}
.blog-article__content h3 {
  margin-top: 1.5rem;
}

/* Related posts */
.blog-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}
@media (max-width: 700px) {
  .blog-related-grid { grid-template-columns: 1fr; }
}
