/*
 * Soul Blog — front-end
 *
 * Nessun font aggiuntivo (Inter è già caricato dal tema), nessuna
 * libreria, nessun JavaScript per il rendering: solo CSS, caricato
 * esclusivamente sulle viste blog.
 *
 * Token allineati al tema Soul Studio:
 *   fondo    #0a0a0a   superfici #111 / #151515
 *   bordi    #1e1e1e   testo muto #888 / #666
 *   accento  linear-gradient(135deg, #8b1a22, #c0313c)
 */

.sb-wrap {
  --sb-bg: #0a0a0a;
  --sb-surface: #111;
  --sb-surface-2: #151515;
  --sb-border: #1e1e1e;
  --sb-text: #fff;
  --sb-muted: #888;
  --sb-muted-2: #666;
  --sb-accent: #c0313c;
  --sb-accent-deep: #8b1a22;
  --sb-radius: 14px;

  background: var(--sb-bg);
  color: var(--sb-text);
}

.container-soul--narrow {
  max-width: 780px;
}

/* ========== HERO ARCHIVIO ========== */
.sb-hero {
  padding: 56px 0 32px;
  position: relative;
  overflow: hidden;
}

.sb-hero::before {
  content: "";
  position: absolute;
  top: -220px;
  right: -140px;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 26, 34, 0.45) 0%, transparent 70%);
  pointer-events: none;
}

.sb-hero > .container-soul {
  position: relative;
  z-index: 1;
}

.sb-hero__kicker {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 600;
  color: #555;
}

.sb-hero__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sb-accent);
}

.sb-hero__title {
  font-size: 52px;
  line-height: 1.06;
  letter-spacing: -1px;
  font-weight: 800;
  margin-bottom: 16px;
  max-width: 15ch;
}

.sb-hero__intro {
  font-size: 17px;
  line-height: 1.7;
  color: var(--sb-muted-2);
  max-width: 62ch;
}

/* ========== BREADCRUMB ========== */
.sb-breadcrumbs,
.sb-wrap .sseo-breadcrumbs {
  margin-bottom: 22px;
  font-size: 11px;
  color: var(--sb-muted-2);
}

.sb-breadcrumbs ol,
.sb-wrap .sseo-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sb-breadcrumbs li + li::before,
.sb-wrap .sseo-breadcrumbs li + li::before {
  content: "/";
  margin-right: 6px;
  color: #333;
}

.sb-breadcrumbs a:hover,
.sb-wrap .sseo-breadcrumbs a:hover {
  color: #fff;
}

.sb-breadcrumbs [aria-current="page"],
.sb-wrap .sseo-breadcrumbs [aria-current="page"] {
  color: var(--sb-muted);
}

/* ========== FILTRO CATEGORIE ========== */
.sb-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.sb-topics__item {
  padding: 7px 16px;
  border: 1px solid var(--sb-border);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--sb-muted);
  transition: border-color 0.2s, color 0.2s;
}

.sb-topics__item:hover,
.sb-topics__item:focus-visible {
  border-color: var(--sb-accent-deep);
  color: #fff;
}

.sb-topics__item.is-active {
  background: linear-gradient(135deg, var(--sb-accent-deep), var(--sb-accent));
  border-color: transparent;
  color: #fff;
}

/* ========== GRIGLIA ========== */
.sb-list {
  padding: 8px 0 80px;
}

.sb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.sb-card {
  background: var(--sb-surface);
  border: 1px solid var(--sb-border);
  border-radius: var(--sb-radius);
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s;
}

.sb-card:hover {
  transform: translateY(-4px);
  border-color: #2c2c2c;
}

.sb-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.sb-card__media {
  aspect-ratio: 16 / 9;
  background: var(--sb-surface-2);
  overflow: hidden;
}

.sb-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.sb-card:hover .sb-card__img {
  transform: scale(1.04);
}

.sb-card__placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #16090b, #2a0e12);
}

.sb-card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.sb-card__cat {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--sb-accent);
}

.sb-card__title {
  font-size: 19px;
  line-height: 1.3;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.sb-card__excerpt {
  font-size: 14px;
  line-height: 1.65;
  color: var(--sb-muted-2);
  margin: 0;
  flex: 1;
}

.sb-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #4a4a4a;
  padding-top: 10px;
  border-top: 1px solid var(--sb-border);
}

.sb-card__cta {
  font-weight: 700;
  color: var(--sb-muted);
}

.sb-card:hover .sb-card__cta {
  color: var(--sb-accent);
}

.sb-empty {
  color: var(--sb-muted-2);
  padding: 40px 0;
}

/* ========== PAGINAZIONE ========== */
.sb-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}

.sb-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--sb-border);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--sb-muted);
}

.sb-pagination .page-numbers:hover {
  border-color: var(--sb-accent-deep);
  color: #fff;
}

.sb-pagination .page-numbers.current {
  background: linear-gradient(135deg, var(--sb-accent-deep), var(--sb-accent));
  border-color: transparent;
  color: #fff;
}

/* ========== ARTICOLO ========== */
.sb-article__head {
  padding: 48px 0 24px;
}

.sb-article__cat {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--sb-accent);
  margin-bottom: 14px;
}

.sb-article__title {
  font-size: 46px;
  line-height: 1.08;
  letter-spacing: -1px;
  font-weight: 800;
  margin-bottom: 18px;
}

.sb-article__standfirst {
  font-size: 19px;
  line-height: 1.65;
  color: var(--sb-muted);
  margin-bottom: 22px;
}

.sb-article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: #4a4a4a;
  padding-top: 16px;
  border-top: 1px solid var(--sb-border);
}

.sb-article__author {
  color: var(--sb-muted);
  font-weight: 600;
}

.sb-article__hero {
  margin: 12px 0 40px;
}

.sb-article__hero-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--sb-radius);
  display: block;
}

.sb-article__body {
  padding-bottom: 60px;
}

/* ========== CONTENUTO ========== */
.sb-content {
  font-size: 17px;
  line-height: 1.8;
  color: #c9c9c9;
}

.sb-content > * + * {
  margin-top: 22px;
}

.sb-content h2 {
  font-size: 28px;
  line-height: 1.25;
  font-weight: 800;
  color: #fff;
  margin-top: 48px;
  letter-spacing: -0.4px;
}

.sb-content h3 {
  font-size: 21px;
  line-height: 1.3;
  font-weight: 700;
  color: #fff;
  margin-top: 36px;
}

.sb-content h4 {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-top: 28px;
}

.sb-content p {
  margin: 0;
}

.sb-content strong {
  color: #fff;
  font-weight: 700;
}

.sb-content a {
  color: #e2707a;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.sb-content a:hover {
  color: #fff;
}

.sb-content ul,
.sb-content ol {
  padding-left: 22px;
}

.sb-content li + li {
  margin-top: 8px;
}

.sb-content ul li::marker {
  color: var(--sb-accent);
}

.sb-content ol li::marker {
  color: var(--sb-accent);
  font-weight: 700;
}

.sb-content blockquote {
  border-left: 2px solid var(--sb-accent);
  padding: 4px 0 4px 20px;
  color: var(--sb-muted);
  font-style: italic;
}

.sb-content blockquote p {
  margin: 0;
}

.sb-content img {
  border-radius: var(--sb-radius);
  height: auto;
}

.sb-content hr {
  border: 0;
  border-top: 1px solid var(--sb-border);
  margin: 40px 0;
}

.sb-content code {
  background: var(--sb-surface-2);
  border: 1px solid var(--sb-border);
  border-radius: 5px;
  padding: 2px 6px;
  font-size: 14px;
}

/* FAQ — sia il markup di Soul SEO Suite sia quello di fallback. */
.sb-content .sseo-faq__item,
.sb-content .sb-faq__item {
  background: var(--sb-surface);
  border: 1px solid var(--sb-border);
  border-radius: 10px;
  padding: 16px 18px;
}

.sb-content .sseo-faq__item + .sseo-faq__item,
.sb-content .sb-faq__item + .sb-faq__item {
  margin-top: 10px;
}

.sb-content .sseo-faq__question,
.sb-content .sb-faq__item summary {
  cursor: pointer;
  font-weight: 700;
  color: #fff;
  list-style: none;
}

.sb-content .sseo-faq__question::marker,
.sb-content .sb-faq__item summary::marker {
  content: "";
}

.sb-content .sseo-faq__answer,
.sb-content .sb-faq__answer {
  margin-top: 10px;
  color: #c9c9c9;
}

/* ========== CTA ========== */
.sb-cta {
  margin-top: 56px;
  padding: 32px;
  border: 1px solid var(--sb-border);
  border-radius: var(--sb-radius);
  background: linear-gradient(135deg, rgba(139, 26, 34, 0.18), rgba(17, 17, 17, 0.9));
}

.sb-cta__title {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
}

.sb-cta__text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--sb-muted);
  margin-bottom: 22px;
}

.sb-cta__btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--sb-accent-deep), var(--sb-accent));
  color: #fff;
  padding: 14px 32px;
  border-radius: 26px;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 6px 25px rgba(139, 26, 34, 0.4);
  transition: transform 0.2s;
}

.sb-cta__btn:hover {
  transform: scale(1.04);
  color: #fff;
}

/* ========== CORRELATI ========== */
.sb-related {
  padding: 56px 0;
  border-top: 1px solid var(--sb-border);
}

.sb-related__title {
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--sb-muted-2);
  margin-bottom: 26px;
}

.sb-backlink {
  padding: 0 0 70px;
  font-size: 13px;
  font-weight: 600;
  color: var(--sb-muted);
}

.sb-backlink a:hover {
  color: #fff;
}

/* ========== FOCUS VISIBILE (accessibilità) ========== */
.sb-wrap a:focus-visible,
.sb-wrap summary:focus-visible {
  outline: 2px solid var(--sb-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .sb-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sb-hero__title {
    font-size: 42px;
  }

  .sb-article__title {
    font-size: 38px;
  }
}

@media (max-width: 768px) {
  .sb-hero {
    padding: 36px 0 24px;
  }

  .sb-hero__title {
    font-size: 32px;
    max-width: none;
  }

  .sb-hero__intro,
  .sb-content {
    font-size: 16px;
  }

  .sb-article__head {
    padding: 30px 0 18px;
  }

  .sb-article__title {
    font-size: 29px;
  }

  .sb-article__standfirst {
    font-size: 17px;
  }

  .sb-content h2 {
    font-size: 23px;
    margin-top: 38px;
  }

  .sb-content h3 {
    font-size: 19px;
  }

  .sb-cta {
    padding: 24px 20px;
  }
}

@media (max-width: 560px) {
  .sb-grid {
    grid-template-columns: 1fr;
  }

  .sb-list {
    padding-bottom: 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sb-card,
  .sb-card__img,
  .sb-cta__btn {
    transition: none;
  }
}
