/* Longform reportage — impaginazione editoriale armoniosa */

.page-sprint-inner.blog main {
  width: 100%;
  max-width: none;
}

.page-sprint-inner.blog main > article > section.article-section--longform {
  border-top: 0;
  padding: 0 clamp(18px, 4vw, 40px) clamp(56px, 7vw, 96px);
  max-width: none;
  margin: 0;
}

.page-sprint-inner.blog .article-content.article-content--longform {
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.page-sprint-inner.blog .hero.hero-glass.hero--article-longform {
  padding-bottom: clamp(16px, 2.5vw, 28px);
}

.page-sprint-inner.blog .hero--article-longform .wrap {
  max-width: min(72rem, 100%);
}

.page-sprint-inner.blog .hero--article-longform .article-deck {
  max-width: 38rem;
  margin: 0.85rem 0 0;
  font-size: clamp(1.05rem, 2.1vw, 1.22rem);
  line-height: 1.58;
  color: rgba(255, 255, 255, 0.74);
}

.page-sprint-inner.blog .hero--article-longform .article-cover {
  margin: clamp(20px, 3vw, 32px) 0 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
  aspect-ratio: 21 / 9;
  max-height: min(52vh, 520px);
}

.page-sprint-inner.blog .hero--article-longform .article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* —— Canvas —— */
.lg-longform {
  --lf-accent: #6b92ff;
  --lf-accent-soft: rgba(107, 146, 255, 0.12);
  --lf-text: rgba(255, 255, 255, 0.9);
  --lf-text-soft: rgba(255, 255, 255, 0.72);
  --lf-muted: rgba(255, 255, 255, 0.52);
  --lf-line: rgba(255, 255, 255, 0.1);
  --lf-prose: min(40rem, 100%);
  --lf-wide: min(68rem, 100%);
  --lf-gap: clamp(2.5rem, 5vw, 4.5rem);
  color: var(--lf-text);
  font-size: clamp(1.02rem, 1.45vw, 1.1rem);
  line-height: 1.82;
}

.lg-longform .lf-canvas {
  max-width: var(--lf-wide);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--lf-gap);
}

/* —— Intro —— */
.lg-longform .lf-intro {
  max-width: var(--lf-prose);
  margin: 0 auto;
  width: 100%;
}

.lg-longform .lf-intro .lead {
  margin: 0;
  font-size: clamp(1.12rem, 2vw, 1.28rem);
  line-height: 1.72;
  color: var(--lf-text);
}

.lg-longform .lf-intro .lead::first-letter {
  float: left;
  font-family: var(--font-display, "Syne", sans-serif);
  font-size: 3.6rem;
  line-height: 0.78;
  font-weight: 800;
  padding: 0.18rem 0.55rem 0 0;
  color: var(--lf-accent);
}

/* —— Capitoli —— */
.lg-longform .lf-chapter {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2vw, 1.5rem);
}

.lg-longform .lf-chapter__head {
  max-width: var(--lf-prose);
  margin: 0 auto;
  width: 100%;
  padding-top: 0.25rem;
  border-top: 1px solid var(--lf-line);
}

.lg-longform .lf-chapter__head .lf-num {
  display: block;
  font-family: var(--font-mono, "IBM Plex Mono", ui-monospace, monospace);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lf-accent);
  font-weight: 600;
  margin-bottom: 0.55rem;
}

.lg-longform .lf-chapter__head h2,
.page-sprint-inner.blog .lg-longform h2 {
  margin: 0;
  font-family: var(--font-display, "Syne", sans-serif);
  font-size: clamp(1.55rem, 3.4vw, 2.15rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.98);
}

.lg-longform .lf-chapter__body {
  max-width: var(--lf-prose);
  margin: 0 auto;
  width: 100%;
}

.lg-longform .lf-chapter__body p {
  margin: 0 0 1.2rem;
}

.lg-longform .lf-chapter__body p:last-child {
  margin-bottom: 0;
}

.lg-longform .lf-chapter__body em {
  font-style: italic;
  color: rgba(255, 255, 255, 0.96);
}

/* —— Media —— */
.lg-longform .lf-media {
  margin: 0;
  width: 100%;
}

.lg-longform .lf-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.lg-longform .lf-media--wide img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.lg-longform .lf-media--opening {
  margin-top: calc(var(--lf-gap) * -0.35);
}

.lg-longform .lf-media figcaption {
  max-width: var(--lf-prose);
  margin: 0.85rem auto 0;
  font-family: var(--font-mono, "IBM Plex Mono", ui-monospace, monospace);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  line-height: 1.55;
  color: var(--lf-muted);
  text-transform: uppercase;
}

.lg-longform .lf-media figcaption b {
  color: var(--lf-text-soft);
  font-weight: 600;
}

/* —— Gallery —— */
.lg-longform .lf-media--grid .lf-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.55rem, 1.2vw, 0.85rem);
}

.lg-longform .lf-grid__cell {
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.lg-longform .lf-grid__cell img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
}

.lg-longform .lf-media--grid > figcaption {
  margin-top: 0.9rem;
}

/* —— Blockquote & callout —— */
.lg-longform blockquote {
  margin: clamp(1.5rem, 3vw, 2rem) 0;
  padding: 0 0 0 1.15rem;
  border-left: 3px solid var(--lf-accent);
}

.lg-longform blockquote p {
  margin: 0;
  font-family: var(--font-display, "Syne", sans-serif);
  font-size: clamp(1.2rem, 2.6vw, 1.55rem);
  line-height: 1.34;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.96);
}

.lg-longform .callout {
  margin: clamp(1.25rem, 2.5vw, 1.75rem) 0;
  padding: 1.2rem 1.35rem;
  border-radius: 14px;
  background: var(--lf-accent-soft);
  border: 1px solid rgba(107, 146, 255, 0.25);
}

.lg-longform .callout p {
  margin: 0;
  color: var(--lf-text-soft);
}

.lg-longform .callout p + p {
  margin-top: 0.75rem;
}

.lg-longform .endmark {
  margin: 2rem 0 0;
  color: var(--lf-accent);
  font-size: 1.1rem;
  font-weight: 800;
  text-align: center;
}

/* —— Elementi blog sotto l'articolo —— */
.page-sprint-inner.blog .article-content--longform .article-tags,
.page-sprint-inner.blog .article-content--longform > div[style] {
  max-width: var(--lf-prose, 40rem);
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 760px) {
  .lg-longform .lf-media--wide img {
    aspect-ratio: 4 / 3;
  }

  .lg-longform .lf-media--grid .lf-grid {
    grid-template-columns: 1fr;
  }

  .page-sprint-inner.blog .hero--article-longform .article-cover {
    aspect-ratio: 16 / 10;
    max-height: none;
  }
}

@media (min-width: 1100px) {
  .lg-longform .lf-media--wide {
    width: calc(100% + 4rem);
    margin-left: -2rem;
    margin-right: -2rem;
  }
}
