/* ============================================================
   INCONTRI-EXTRACONIUGALI — Blog CSS
   Allineato al design delle pagine categoria (/p/categories.css)
   ============================================================ */

/* ── Layout pagina blog ── */
.blog-page {
  padding: 30px 0 60px;
}

/* ── Back link ── */
.blog-back-link {
  display: inline-block;
  color: #aaa;
  font-size: 13px;
  margin-bottom: 20px;
  text-decoration: none;
  transition: color .2s;
}
.blog-back-link:hover,
.blog-back-link:focus {
  color: #fff;
  text-decoration: none;
}
.blog-back-link .fa {
  margin-right: 5px;
}

/* ── Card articolo ── */
.blog-post-card {
  background: #242424;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 24px;
}

/* ── Immagine hero del post ── */
.blog-post-img {
  margin: 0;
  overflow: hidden;
  max-height: 420px;
}
.blog-post-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.blog-post-img:hover img {
  transform: scale(1.03);
}

/* ── Titolo e meta (dentro la card, con padding) ── */
.blog-post-title {
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  padding: 24px 24px 8px;
  margin: 0;
}

.blog-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 0 24px 16px;
}

.blog-post-date {
  font-size: 12px;
  color: #888;
}
.blog-post-date .fa {
  margin-right: 4px;
}

.blog-tag-inline {
  display: inline-block;
  background: rgba(175,9,36,.15);
  color: #e03030;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid rgba(175,9,36,.3);
  transition: background .2s;
}
.blog-tag-inline:hover {
  background: rgba(175,9,36,.3);
  color: #ff4a4a;
  text-decoration: none;
}

/* ── Corpo articolo ── */
.blog-post-body {
  padding: 0 24px 28px;
  color: #ccc;
  font-size: 15px;
  line-height: 1.75;
}
.blog-post-body h2 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin: 28px 0 10px;
}
.blog-post-body h3 {
  font-size: 17px;
  font-weight: 600;
  color: #eee;
  margin: 22px 0 8px;
}
.blog-post-body p {
  margin-bottom: 14px;
  font-size: 15px;
  line-height: 1.75;
}
.blog-post-body p:empty,
.blog-post-body p:last-child:empty {
  display: none;
}
.blog-post-body a {
  color: #e03030;
  text-decoration: underline;
}
.blog-post-body a:hover {
  color: #ff5555;
}
.blog-post-body ul,
.blog-post-body ol {
  padding-left: 22px;
  margin-bottom: 14px;
}
.blog-post-body li {
  margin-bottom: 6px;
}
.blog-post-body img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 12px 0;
}
.blog-post-body strong,
.blog-post-body b {
  color: #fff;
  font-weight: 600;
}

/* ── CTA card interna al post ── */
.blog-cta-card {
  background: linear-gradient(135deg, #1a0a0d 0%, #2d0d14 100%);
  border: 1px solid rgba(175,9,36,.35);
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  margin-bottom: 24px;
}
.blog-cta-card p {
  color: #ddd;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
}
.btn-cta-blog {
  display: inline-block;
  background: #af0924;
  color: #fff !important;
  font-size: 15px;
  font-weight: 700;
  padding: 13px 32px;
  border-radius: 30px;
  text-decoration: none !important;
  transition: background .2s, transform .15s;
}
.btn-cta-blog:hover {
  background: #c80b29;
  transform: translateY(-1px);
  color: #fff !important;
}

/* ── Sidebar ── */
.blog-sidebar .aside-widget.category-card {
  margin-bottom: 20px;
}

/* Tag cloud nella sidebar ── */
.blog-tags-cloud {
  padding: 12px 16px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.blog-tag-pill {
  display: inline-block;
  background: #2a2a2a;
  color: #ccc;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 14px;
  text-decoration: none;
  border: 1px solid #3a3a3a;
  transition: background .2s, color .2s;
}
.blog-tag-pill:hover {
  background: rgba(175,9,36,.2);
  color: #fff;
  border-color: rgba(175,9,36,.4);
  text-decoration: none;
}

/* ── Override main.css IT: stili .aside-widget incompatibili ── */
.blog-sidebar .aside-widget.category-card header {
  border: none;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.blog-sidebar .aside-widget.category-card header h3 {
  color: #fff;
  font-size: 15px;
  padding: 0;
}
.blog-sidebar .aside-widget.categories li:before {
  display: none !important;
}
.blog-sidebar .aside-widget.categories li {
  padding-left: 0;
  position: static;
}

/* ── Listing pages: titolo ── */
.blog-listing-title {
  font-size: 26px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.blog-listing-title .red {
  color: #e84141;
  margin-right: 6px;
}

/* ── Listing pages: card articolo ── */
.news-teaser {
  background: #1e1e1e;
  border-radius: 6px;
  margin-bottom: 24px;
  overflow: hidden;
  transition: box-shadow .2s;
}
.news-teaser:hover {
  box-shadow: 0 4px 18px rgba(0,0,0,.45);
}
.news-teaser header {
  padding: 0 0 12px;
}
.news-teaser figure {
  margin: 0;
  overflow: hidden;
}
.news-teaser figure img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .4s ease;
}
.news-teaser:hover figure img {
  transform: scale(1.03);
}
.news-teaser h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 14px 16px 0;
  line-height: 1.4;
}
.news-teaser h3 a {
  color: #fff;
  text-decoration: none;
}
.news-teaser h3 a:hover {
  color: #e84141;
}
.news-teaser .time {
  display: block;
  margin: 0 16px 14px;
  font-size: 12px;
  color: #888;
}

/* ── Listing pages: excerpt e read-more ── */
.news-teaser .body {
  padding: 6px 16px 4px;
  font-size: 14px;
  color: #bbb;
  line-height: 1.6;
}
.news-teaser .clearfix {
  padding: 6px 16px 16px;
}
a.read-more {
  font-size: 13px;
  text-decoration: none;
  font-weight: 600;
}
a.read-more:hover {
  text-decoration: underline;
}
a.read-more::before {
  margin-right: 5px;
}

/* ── Listing pages: paginazione ── */
.blog-pagination {
  margin: 30px 0 10px;
  text-align: center;
}
.blog-pagination .pagination {
  margin: 0;
}
.blog-pagination .pagination li a,
.blog-pagination .pagination li span {
  background: #1e1e1e;
  border-color: #333;
  color: #ccc;
}
.blog-pagination .pagination li.active span {
  background: #e84141;
  border-color: #e84141;
  color: #fff;
}
.blog-pagination .pagination li a:hover {
  background: #e84141;
  border-color: #e84141;
  color: #fff;
}

/* ── Responsive tablet ── */
@media (max-width: 991px) {
  .blog-post-title {
    font-size: 22px;
  }
  .blog-sidebar {
    margin-top: 32px;
  }
}

/* ── Mobile ── */
@media (max-width: 767px) {
  .blog-page {
    padding: 16px 0 80px;
  }
  .blog-post-title {
    font-size: 20px;
    padding: 18px 16px 8px;
  }
  .blog-post-meta {
    padding: 0 16px 12px;
  }
  .blog-post-body {
    padding: 0 16px 20px;
    font-size: 14px;
  }
  .blog-post-body h2 {
    font-size: 18px;
  }
  .blog-cta-card {
    padding: 18px 16px;
  }
  .blog-listing-title {
    font-size: 20px;
    padding: 0 0 14px;
  }
  .news-teaser header {
    padding: 0 0 16px;
  }
  .blog-sidebar .aside-widget.categories li {
    padding-left: 0 !important;
    line-height: normal !important;
  }
  .blog-sidebar .aside-widget.categories li:before {
    display: none !important;
  }
  .blog-sidebar .aside-widget.categories li a {
    font-size: 14px !important;
  }
}
