/* ========================================
   Hair Rock Peluquería - Blog
   Eredita variabili CSS da ../styles.css
   Palette: brick-red + leather-brown + brass-gold + cream
   ======================================== */

/* ===== Hero blog ===== */
.blog-hero {
  background:
    linear-gradient(135deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.35) 100%),
    var(--bg-leather);
  color: var(--cream);
  padding: 180px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(184, 134, 11, 0.25);
}
.blog-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(184,134,11,0.18) 0, transparent 55%),
    radial-gradient(circle at 80% 70%, rgba(184,134,11,0.12) 0, transparent 50%);
  pointer-events: none;
}
.blog-hero .container { position: relative; z-index: 1; }

.blog-hero__overline {
  display: inline-block;
  font-family: var(--font-primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--brass-gold);
  margin-bottom: 18px;
}
.blog-hero__title {
  font-family: var(--font-primary);
  font-weight: 900;
  font-size: clamp(2.5rem, 6vw, 4.8rem);
  line-height: 1;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cream);
  margin: 0 0 24px;
}
.blog-hero__title .rock {
  font-family: var(--font-rock);
  color: var(--brass-gold);
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  transform: translateY(-4px);
}
.blog-hero__lead {
  max-width: 680px;
  margin: 0 auto;
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--cream);
  opacity: 0.92;
}
.blog-hero__divider {
  width: 80px;
  height: 2px;
  background: var(--brass-gold);
  margin: 28px auto;
  opacity: 0.85;
}

/* ===== Lista articoli (index) ===== */
.blog-list {
  padding: 80px 0 120px;
  background: var(--cream);
  color: var(--leather-brown);
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 36px;
  margin-top: 48px;
}
.blog-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(46, 23, 16, 0.10);
  transition: transform .35s ease, box-shadow .35s ease;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(184, 134, 11, 0.15);
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 36px rgba(46, 23, 16, 0.18);
  border-color: rgba(184, 134, 11, 0.35);
}
.blog-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.blog-card-img {
  aspect-ratio: 16 / 10;
  width: 100%;
  object-fit: cover;
  background: var(--cream);
  display: block;
}
.blog-card-body {
  padding: 26px 26px 30px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-card-cat {
  display: inline-block;
  font-family: var(--font-primary);
  font-size: 0.7rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--brick-red);
  font-weight: 700;
  margin-bottom: 12px;
}
.blog-card-title {
  font-family: var(--font-primary);
  font-size: 1.45rem;
  line-height: 1.3;
  font-weight: 700;
  color: var(--leather-brown);
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}
.blog-card-excerpt {
  font-size: 0.95rem;
  color: rgba(62, 39, 35, 0.78);
  line-height: 1.6;
  margin-bottom: 22px;
  flex: 1;
}
.blog-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: rgba(62, 39, 35, 0.6);
  border-top: 1px solid rgba(184, 134, 11, 0.2);
  padding-top: 16px;
  letter-spacing: 0.5px;
}
.blog-card-read {
  color: var(--brass-gold);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.blog-empty {
  text-align: center;
  padding: 60px 20px;
  color: rgba(62, 39, 35, 0.6);
  font-style: italic;
  grid-column: 1 / -1;
}

/* ===== Filtro categoria ===== */
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.blog-filter {
  background: transparent;
  border: 1.5px solid var(--leather-brown);
  color: var(--leather-brown);
  padding: 9px 20px;
  border-radius: 999px;
  font-family: var(--font-primary);
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  transition: all .25s ease;
}
.blog-filter:hover {
  background: var(--leather-brown);
  color: var(--cream);
}
.blog-filter.active {
  background: var(--brick-red);
  border-color: var(--brick-red);
  color: var(--cream);
}

/* ===== Articolo singolo ===== */
.article-hero {
  background: var(--cream);
  padding: 160px 0 0;
  border-bottom: 1px solid rgba(184, 134, 11, 0.18);
}
.article-hero .container {
  max-width: 820px;
}
.breadcrumbs {
  font-size: 0.78rem;
  color: rgba(62, 39, 35, 0.65);
  letter-spacing: 1px;
  margin-bottom: 24px;
  font-family: var(--font-primary);
}
.breadcrumbs a {
  color: var(--brass-gold);
  text-decoration: none;
  font-weight: 600;
}
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs .sep { margin: 0 10px; opacity: 0.5; }

.article-cat {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--brick-red);
  font-weight: 700;
  margin-bottom: 18px;
  font-family: var(--font-primary);
}
.article-title {
  font-family: var(--font-primary);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.18;
  color: var(--leather-brown);
  margin: 0 0 24px;
  letter-spacing: -0.01em;
}
.article-meta {
  display: flex;
  gap: 18px;
  font-size: 0.86rem;
  color: rgba(62, 39, 35, 0.7);
  align-items: center;
  flex-wrap: wrap;
  font-family: var(--font-primary);
}
.article-meta i { color: var(--brass-gold); margin-right: 6px; }
.article-meta .dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--brass-gold);
}

.article-cover {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  margin: 40px 0 0;
  display: block;
}

/* ===== Body articolo ===== */
.article-body-wrap {
  background: var(--white);
  padding: 70px 0 90px;
}
.article-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
  font-size: 1.06rem;
  line-height: 1.8;
  color: var(--leather-brown);
  font-family: var(--font-primary);
}
.article-body h2 {
  font-family: var(--font-primary);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--brick-red);
  margin: 48px 0 18px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.article-body h3 {
  font-family: var(--font-primary);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--leather-brown);
  margin: 36px 0 14px;
}
.article-body p { margin: 0 0 22px; }
.article-body ul, .article-body ol {
  margin: 0 0 24px 24px;
  padding-left: 8px;
}
.article-body li { margin-bottom: 10px; }
.article-body strong { color: var(--brick-red); font-weight: 700; }
.article-body em { color: rgba(62, 39, 35, 0.85); }
.article-body blockquote {
  border-left: 3px solid var(--brass-gold);
  margin: 32px 0;
  padding: 20px 24px 20px 28px;
  font-family: var(--font-primary);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--leather-brown);
  background: var(--cream);
  border-radius: 0 8px 8px 0;
}
.article-body a {
  color: var(--brick-red);
  text-decoration: underline;
  text-decoration-color: rgba(184, 134, 11, 0.5);
  text-underline-offset: 3px;
  font-weight: 600;
}
.article-body a:hover {
  color: var(--brass-gold);
  text-decoration-color: var(--brass-gold);
}

/* ===== CTA box dentro articolo ===== */
.cta-box {
  margin: 56px 0 0;
  padding: 44px 36px;
  background:
    linear-gradient(135deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.15) 100%),
    var(--bg-leather);
  color: var(--cream);
  border-radius: 10px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(184, 134, 11, 0.3);
}
.cta-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(184,134,11,0.22) 0, transparent 60%);
  pointer-events: none;
}
.cta-box > * { position: relative; z-index: 1; }
.cta-box h3 {
  font-family: var(--font-primary);
  font-size: 1.7rem;
  color: var(--cream);
  margin: 0 0 14px;
  font-weight: 700;
  line-height: 1.25;
}
.cta-box p {
  color: rgba(245, 245, 220, 0.92);
  margin: 0 0 24px;
  font-size: 1rem;
  line-height: 1.65;
}
.cta-box .btn--whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #fff;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.5px;
  border: none;
  transition: transform .25s ease, box-shadow .25s ease;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}
.cta-box .btn--whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.45);
}
.cta-box .btn--whatsapp i { font-size: 1.25rem; }

/* ===== Articoli correlati ===== */
.related {
  background: var(--cream);
  padding: 80px 0 100px;
  border-top: 1px solid rgba(184, 134, 11, 0.18);
}
.related h2 {
  font-family: var(--font-primary);
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  color: var(--brick-red);
  margin: 0 0 40px;
  letter-spacing: -0.01em;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
  .blog-hero { padding: 130px 0 70px; }
  .blog-list { padding: 56px 0 80px; }
  .blog-grid { gap: 24px; }
  .article-hero { padding: 130px 0 0; }
  .article-body-wrap { padding: 50px 0 70px; }
  .article-body { padding: 0 20px; font-size: 1rem; }
  .article-body h2 { font-size: 1.55rem; margin: 36px 0 14px; }
  .article-body h3 { font-size: 1.2rem; }
  .cta-box { padding: 32px 22px; }
  .cta-box h3 { font-size: 1.4rem; }
  .related { padding: 56px 0 70px; }
  .blog-filters { gap: 8px; }
  .blog-filter { padding: 7px 14px; font-size: 0.72rem; letter-spacing: 1px; }
}
