/* ─── RESET BODY ─────────────────────────────────────────────────────────────── */
body { background: #fff !important; color: #1a1a1a !important; }

/* ─── NAV HELPERS ────────────────────────────────────────────────────────────── */
.nav-link-plain {
  font-size: 13px; font-weight: 500;
  color: rgba(0,0,0,0.55) !important;
  text-decoration: none; transition: color .2s;
}
.nav-link-plain:hover { color: #3aaa5c !important; }
.nav-mobile-cta-link {
  display: block; text-align: center;
  background: #3aaa5c; color: #fff !important;
  padding: 12px; border-radius: 8px;
  font-weight: 700; text-decoration: none;
}

/* ══════════════════════════════════════════════════════════════════════════════
   HERO — verde brand, Netflix-style articolo in evidenza
══════════════════════════════════════════════════════════════════════════════ */
.blog-hero {
  background: linear-gradient(135deg, #1d6b3a 0%, #3aaa5c 100%);
  margin-top: 70px;
  padding: 72px 0 80px;
  position: relative;
  overflow: hidden;
}

/* pattern a punti sottile */
.blog-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

/* sfumatura in basso verso bianco */
.blog-hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, #fff);
  pointer-events: none;
}

/* ── Layout split ── */
.blog-hero__inner {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 56px;
  align-items: center;
  position: relative; z-index: 1;
}

/* ── Testo sinistra ── */
.blog-hero__left { display: flex; flex-direction: column; }

.blog-hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 800;
  letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 20px;
}
.blog-hero__badge::before {
  content: '';
  display: inline-block;
  width: 8px; height: 8px;
  background: #fff;
  border-radius: 50%;
  animation: heroPulse 2s ease-in-out infinite;
}
@keyframes heroPulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.7); }
}

.blog-hero__title {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin: 0 0 20px;
}

.blog-hero__excerpt {
  font-size: 16px;
  color: rgba(255,255,255,0.78);
  line-height: 1.65;
  margin: 0 0 28px;
  max-width: 480px;
}

.blog-hero__meta {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 32px;
}

.blog-hero__tag {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.6px; text-transform: uppercase;
  color: #fff;
  padding: 4px 12px; border-radius: 20px;
}

.blog-hero__date {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
}

.blog-hero__cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff;
  color: #1d6b3a;
  font-size: 14px; font-weight: 800;
  padding: 14px 28px; border-radius: 100px;
  text-decoration: none;
  align-self: flex-start;
  transition: gap 0.2s, box-shadow 0.2s, transform 0.15s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.blog-hero__cta:hover {
  gap: 16px;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.2);
}

/* ── Poster destra ── */
.blog-hero__poster {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.3);
  background: rgba(255,255,255,0.1);
  transition: transform 0.3s ease;
  line-height: 0;
}
.blog-hero__poster:hover { transform: scale(1.02) rotate(0.4deg); }

.blog-hero__poster-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
}

.blog-hero__poster-icon {
  width: 100%; aspect-ratio: 16/9;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.2);
}
.blog-hero__poster-icon svg { width: 80px; height: 80px; }

/* ── Strip scorrevole ── */
.blog-hero__strip-wrap {
  position: relative; z-index: 1;
  padding-bottom: 8px;
  margin-top: 40px;
}

.blog-hero__strip {
  overflow: hidden;
}

.blog-hero__strip-inner {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
  /* nascondi scrollbar visivamente */
  scrollbar-width: none;
}
.blog-hero__strip-inner::-webkit-scrollbar { display: none; }

/* ── Strip card ── */
.hero-scard {
  flex: 0 0 220px;
  scroll-snap-align: start;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  display: flex; flex-direction: column;
  transition: background 0.2s, transform 0.2s;
  backdrop-filter: blur(4px);
}
.hero-scard:hover {
  background: rgba(255,255,255,0.22);
  transform: translateY(-3px);
}

.hero-scard__art {
  height: 120px;
  overflow: hidden;
  background: rgba(0,0,0,0.2);
  line-height: 0;
}

.hero-scard__img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.hero-scard:hover .hero-scard__img { transform: scale(1.05); }

.hero-scard__grad {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.hero-scard__icon { color: rgba(255,255,255,0.25); }
.hero-scard__icon svg { width: 40px; height: 40px; }

.hero-scard__body {
  padding: 12px 14px 14px;
  display: flex; flex-direction: column; gap: 5px;
}

.hero-scard__tag {
  font-size: 10px; font-weight: 800;
  letter-spacing: 1px; text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

.hero-scard__title {
  font-size: 13px; font-weight: 700;
  color: #fff; line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Responsive ── */
@media (max-width: 860px) {
  .blog-hero__inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .blog-hero__title { font-size: clamp(1.6rem, 5vw, 2.2rem); }
  .hero-scard { flex: 0 0 180px; }
}

@media (max-width: 540px) {
  .blog-hero { padding: 48px 0 56px; }
  .blog-hero__excerpt { font-size: 14px; }
  .hero-scard { flex: 0 0 160px; }
  .hero-scard__art { height: 90px; }
}

/* ══════════════════════════════════════════════════════════════════════════════
   SEZIONI CATEGORIA
══════════════════════════════════════════════════════════════════════════════ */
.blog-categories-wrap { padding-bottom: 80px; }

.bcat-section {
  padding: 56px 0;
  border-bottom: 1px solid #f0f0f0;
}
.bcat-section:last-child { border-bottom: none; }

/* ── HEADER sezione ── */
.bcat-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
}

.bcat-section-header__left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.bcat-section-header__icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: rgba(255,255,255,0.9);
}
.bcat-section-header__icon svg { width: 26px; height: 26px; }

.bcat-section-header__name {
  font-size: 20px; font-weight: 800;
  color: #111; margin: 0 0 2px;
}

.bcat-section-header__desc {
  font-size: 13px; color: #888;
  margin: 0; line-height: 1.4;
}

.bcat-section-header__count {
  font-size: 12px; font-weight: 600;
  color: #aaa; white-space: nowrap;
}

/* ── GRIGLIA articoli ── */
.bcat-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  align-content: start;
}

/* ── CARD articolo ── */
.bcat-card {
  text-decoration: none; color: inherit;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #eee;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex; flex-direction: column;
}
.bcat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,.1);
  border-color: transparent;
}

.bcat-card__art {
  height: 180px;
  position: relative;
  overflow: hidden;
  background: #f5f5f5;
}

.bcat-card__img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}
.bcat-card:hover .bcat-card__img { transform: scale(1.03); }

.bcat-card__art-gradient {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}

.bcat-card__art-icon {
  width: 52px; height: 52px;
  color: rgba(255,255,255,0.25);
}
.bcat-card__art-icon svg { width: 100%; height: 100%; }

.bcat-card__body {
  padding: 16px 18px 18px;
  flex: 1; display: flex; flex-direction: column; gap: 8px;
}

.bcat-card__title {
  font-size: 15px; font-weight: 700;
  color: #111; line-height: 1.4;
  margin: 0;
}

.bcat-card__excerpt {
  font-size: 13px; color: #666;
  line-height: 1.55; margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bcat-card__date {
  font-size: 11px; color: #bbb;
  margin-top: auto; padding-top: 4px;
}

/* empty */
.bcat-empty {
  text-align: center; color: #aaa;
  font-size: 15px; padding: 80px 20px;
}

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  .bcat-row { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
  .bcat-card__art { height: 150px; }
}

@media (max-width: 480px) {
  .bcat-row { grid-template-columns: 1fr 1fr; gap: 12px; }
  .bcat-card__art { height: 120px; }
  .bcat-card__excerpt { display: none; }
  .bcat-section-header__desc { display: none; }
}

/* ══════════════════════════════════════════════════════════════════════════════
   FEATURED — Apple App Store style (kept for potential future use)
══════════════════════════════════════════════════════════════════════════════ */
.blog-featured {
  max-width: 1100px; margin: 48px auto 0;
  padding: 0 20px;
}

.blog-featured__label {
  font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: #3aaa5c; margin-bottom: 14px;
}

.blog-featured__card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  display: flex; align-items: flex-end;
  min-height: 360px;
  text-decoration: none;
  color: #fff;
  transition: transform .3s ease, box-shadow .3s ease;
}
.blog-featured__card:hover {
  transform: scale(1.01);
  box-shadow: 0 24px 60px rgba(0,0,0,.22);
}

.blog-featured__bg {
  position: absolute; inset: 0;
  z-index: 0;
}
.blog-featured__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.blog-featured__bg--gradient {
  /* usato quando non c'è immagine */
}

.blog-featured__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.1) 60%);
  z-index: 1;
}

.blog-featured__content {
  position: relative; z-index: 2;
  padding: 36px 40px;
  width: 100%;
}

.blog-featured__tag {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  color: #fff;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  padding: 4px 12px;
  margin-bottom: 14px;
}

.blog-featured__title {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 800; line-height: 1.2;
  margin: 0 0 12px;
  max-width: 600px;
}

.blog-featured__excerpt {
  font-size: 14px;
  color: rgba(255,255,255,.7);
  max-width: 520px; line-height: 1.6;
  margin-bottom: 20px;
}

.blog-featured__meta {
  display: flex; align-items: center; gap: 16px;
  font-size: 12px; color: rgba(255,255,255,.5);
}

.blog-featured__cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; color: #1a1a1a;
  font-size: 13px; font-weight: 700;
  padding: 10px 20px; border-radius: 30px;
  text-decoration: none;
  transition: background .2s, transform .15s;
}
.blog-featured__cta:hover { background: #f0f0f0; transform: translateY(-1px); }
.blog-featured__cta svg { width: 14px; height: 14px; }

/* ══════════════════════════════════════════════════════════════════════════════
   FILTERS — Spotify chip style
══════════════════════════════════════════════════════════════════════════════ */
.blog-section {
  max-width: 1100px; margin: 48px auto 0; padding: 0 20px;
}

.blog-section__header {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.blog-section__title {
  font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: #3aaa5c;
}

.blog-filters {
  display: flex; gap: 8px; flex-wrap: wrap;
  padding: 0 0 32px;
}

.filter {
  display: inline-flex; align-items: center;
  background: #f0f0f0;
  border: none; border-radius: 30px;
  padding: 8px 18px;
  font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all .18s;
  color: #444;
  white-space: nowrap;
}
.filter:hover { background: #e0e0e0; }
.filter.active {
  background: #1a1a1a;
  color: #fff;
}

/* ══════════════════════════════════════════════════════════════════════════════
   GRID — Spotify card style
══════════════════════════════════════════════════════════════════════════════ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  padding-bottom: 72px;
}

.blog-card {
  text-decoration: none; color: inherit;
  border-radius: 12px;
  overflow: hidden;
  background: #f7f7f7;
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex; flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,.1);
}

/* Spotify album art — colore per categoria */
.blog-card__art {
  height: 150px;
  position: relative;
  display: flex; align-items: flex-end;
  padding: 16px;
  overflow: hidden;
}

/* icona decorativa in background */
.blog-card__art-icon {
  position: absolute;
  bottom: -10px; right: -10px;
  width: 80px; height: 80px;
  opacity: 0.15;
  transform: rotate(-15deg);
}

.blog-card__art-tag {
  position: relative; z-index: 1;
  font-size: 10px; font-weight: 800;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: rgba(255,255,255,.8);
  background: rgba(0,0,0,.25);
  backdrop-filter: blur(4px);
  border-radius: 20px;
  padding: 3px 10px;
}

.blog-card__body {
  padding: 14px 16px 18px;
  flex: 1; display: flex; flex-direction: column;
}

.blog-card__title {
  font-size: 14px; font-weight: 700;
  color: #1a1a1a; line-height: 1.35;
  margin: 0 0 6px;
}

.blog-card__date {
  font-size: 11px; color: #aaa;
  margin-top: auto; padding-top: 8px;
}

/* empty/loading */
.blog-empty {
  grid-column: 1/-1;
  text-align: center; color: #aaa;
  font-size: 14px; padding: 60px 0;
}

/* ══════════════════════════════════════════════════════════════════════════════
   ARTICOLO SINGOLO
══════════════════════════════════════════════════════════════════════════════ */
.post {
  max-width: 740px; margin: 0 auto;
  padding: 48px 20px 24px;
}
.post__header { margin-bottom: 28px; }
.post__header h1 {
  font-size: 2rem; font-weight: 800;
  color: #1a1a1a; margin: 12px 0 10px;
  line-height: 1.25;
}
.post__header time { color: #aaa; font-size: 13px; }
.post__cover {
  width: 100%; border-radius: 12px;
  margin-bottom: 36px; display: block;
}
.post__body {
  font-size: 17px; line-height: 1.85; color: #333;
}
.post__body h2 {
  font-size: 1.4rem; font-weight: 700;
  margin: 2em 0 .7em; color: #1a1a1a;
}
.post__body h3 {
  font-size: 1.15rem; font-weight: 700;
  margin: 1.5em 0 .5em; color: #1a1a1a;
}
.post__body a { color: #3aaa5c; }
.post__body a:hover { text-decoration: underline; }
.post__body code {
  background: #f4f4f4; padding: 2px 6px;
  border-radius: 4px; font-size: 14px;
}
.post__body pre {
  background: #f4f4f4; padding: 16px;
  border-radius: 8px; overflow-x: auto;
}
.post__body blockquote {
  border-left: 3px solid #3aaa5c;
  margin: 0; padding: 12px 20px;
  background: #f7fdf9; color: #555;
  border-radius: 0 8px 8px 0;
}
.post__loading {
  text-align: center; color: #aaa;
  padding: 80px 0; font-size: 15px;
}

/* CTA post */
.post-cta {
  text-align: center;
  background: #f7fdf9;
  border-top: 2px solid #d0ead9;
  padding: 52px 20px; margin-top: 48px;
}
.post-cta p {
  font-size: 1.25rem; font-weight: 700;
  margin-bottom: 20px; color: #1a1a1a;
}
.post-cta .btn-primary {
  display: inline-block; background: #3aaa5c;
  color: #fff; padding: 14px 32px; border-radius: 8px;
  font-weight: 700; font-size: 15px;
  text-decoration: none; transition: background .2s;
}
.post-cta .btn-primary:hover { background: #2d8a49; }

/* ══════════════════════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .blog-hero { min-height: 300px; padding: 70px 20px 56px; }
  .blog-featured__card { min-height: 280px; }
  .blog-featured__content { padding: 24px; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
@media (max-width: 480px) {
  .blog-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .blog-card__title { font-size: 13px; }
  .post__header h1 { font-size: 1.5rem; }
  .post__body { font-size: 16px; }
}
