/* ═══════════════════════════════════════════════════════════════
   NoruCore – article.css  v4
   Body text full-width, aligned to cover image.
═══════════════════════════════════════════════════════════════ */

:root {
  --nc-bg:        #18181B;
  --nc-bg-warm:   #18181B;
  --nc-border:    rgba(240, 239, 238, 0.12);
  --nc-red:       #FF6B5E;
  --nc-mid:       #807F7F;
  --nc-text:      #F0EFEE;
  --nc-text-sec:  #A8A7A6;
  --nc-r:         8px;
}

/* ── READING PROGRESS BAR ───────────────────────────────────── */
.reading-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--nc-red);
  z-index: 9999;
  transition: width .1s linear;
}

/* ── ARTICLE CONTAINER ──────────────────────────────────────── */
.article-container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 40px var(--page-pad) 120px;
}

/* Back link */
.article-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--ff-sans);
  color: var(--nc-text-sec);
  margin-bottom: 28px;
  transition: color .2s;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.article-back:hover { color: var(--nc-text); }

/* ── COVER & HEADER OVERLAY ─────────────────────────────────── */
.article-top {
  position: relative;
  width: 100%;
  height: 560px;
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 64px;
}

.article-cover {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-header-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0)    0%,
    rgba(0,0,0,0.05) 30%,
    rgba(0,0,0,0.55) 65%,
    rgba(0,0,0,0.88) 100%
  );
  padding: 44px 52px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
}

.article-header-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.article-category-badge {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  padding: 5px 14px;
  border-radius: 100px;
  font-family: var(--ff-sans);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.article-date {
  font-family: var(--ff-sans);
  font-size: 13px;
  opacity: 0.6;
  letter-spacing: .02em;
}

.article-header-title {
  font-family: var(--ff-serif);
  font-size: clamp(30px, 4.2vw, 52px);
  font-weight: 400;
  line-height: 1.08;
  margin-bottom: 14px;
  letter-spacing: -.02em;
}

.article-header-subtitle {
  font-family: var(--ff-serif);
  font-size: clamp(16px, 1.4vw, 20px);
  font-weight: 400;
  font-style: italic;
  opacity: 0.75;
  max-width: 680px;
  line-height: 1.45;
  margin-bottom: 28px;
}

.article-author-info {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-sans);
  font-size: 13px;
  opacity: 0.6;
}
.article-author-icon { font-size: 14px; }

/* ── ARTICLE BODY ───────────────────────────────────────────── */
/*
  width: 100% — stesso ingombro della cover.
  Il padding laterale è già gestito da .article-container (var(--page-pad)).
  Nessun max-width, nessun margin: auto sui singoli elementi.
*/
.article-body {
  width: 100%;
}

.article-body-paragraph {
  font-family: var(--ff-serif);
  font-size: 19px;
  line-height: 1.78;
  color: #F0EFEE;
  margin-bottom: 32px;
  letter-spacing: .008em;
}

.article-body-heading {
  font-family: var(--ff-serif);
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 400;
  margin-top: 72px;
  margin-bottom: 24px;
  line-height: 1.15;
  letter-spacing: -.015em;
  color: var(--nc-text);
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(240,239,238,.12);
}

.article-body-subheading {
  font-family: var(--ff-serif);
  font-size: 21px;
  font-weight: 400;
  font-style: italic;
  margin-top: 40px;
  margin-bottom: 18px;
  color: var(--nc-text-sec);
}

/* Immagini inline — anch'esse full width del container */
.article-body-image {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  margin: 48px 0;
  border: 1px solid rgba(240,239,238,.12);
}
.article-body-image img {
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: cover;
  display: block;
}

/* List */
.article-body-list {
  margin-bottom: 32px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.article-body-list li {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  font-family: var(--ff-serif);
  font-size: 18px;
  line-height: 1.65;
  color: #F0EFEE;
  padding: 18px 0;
  border-bottom: 1px solid rgba(240,239,238,.12);
}
.article-body-list li:first-child {
  border-top: 1px solid rgba(240,239,238,.12);
}
.article-body-list li::before {
  content: '';
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--nc-red);
  flex-shrink: 0;
  margin-top: 12px;
}

/* Alert */
.article-body-alert {
  margin: 40px 0;
  padding: 18px 22px;
  border-radius: 12px;
  font-family: var(--ff-sans);
  font-size: 14px;
  line-height: 1.65;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.article-body-alert::before {
  content: '→';
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 1px;
  opacity: 0.5;
}
.alert-info {
  background: rgba(240,239,238,.05);
  border: 1px solid rgba(240,239,238,.12);
  color: #D0D0D0;
}
.alert-warning {
  background: var(--clr-amber-bg);
  border: 1px solid var(--clr-amber-border);
  color: var(--clr-amber);
}
.alert-error {
  background: var(--clr-red-bg);
  border: 1px solid var(--clr-red-border);
  color: var(--clr-red);
}

/* Loading / error */
.article-loading, .article-error {
  text-align: center;
  padding: 100px 0;
  font-family: var(--ff-serif);
  font-size: 22px;
  color: var(--nc-text-sec);
}

/* ── ARTICLE FOOTER / RELATED ───────────────────────────────── */
.article-footer {
  margin-top: 96px;
  padding-top: 48px;
  border-top: 1px solid rgba(240,239,238,.12);
}
.article-footer-title {
  font-family: var(--ff-serif);
  font-size: 28px;
  margin-bottom: 32px;
  font-weight: 400;
  letter-spacing: -.01em;
}

/* Related grid */
.related-grid {
  --related-gap: 14px;
  display: flex;
  gap: var(--related-gap);
}
.related-grid .bc {
  flex: 1;
  min-width: 0;
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .article-container { padding: 32px var(--page-pad) 80px; }
  .article-top { height: 440px; }
  .article-header-overlay { padding: 32px 36px; }
  .related-grid .bc:last-child { display: none; }
}
@media (max-width: 640px) {
  .article-container { padding: 24px var(--page-pad) 60px; }
  .article-top { height: 380px; border-radius: 16px; margin-bottom: 40px; }
  .article-header-overlay { padding: 24px 28px; }
  .article-header-title { font-size: clamp(24px, 7vw, 34px); }
  .article-body-paragraph { font-size: 17px; }
  .article-body-heading { font-size: 22px; margin-top: 52px; }
  .related-grid { flex-direction: column; }
  .related-grid .bc { flex: none; width: 100%; display: block; }
}