/* =========================================================
   KNOWLEDGE BASE – MASTER PAGE
   Versione sobria editoriale
========================================================= */

.kb-master-page {
  background: #fff;
  color: #2f2f2f;
}

.kb-container {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

.kb-reading-width {
  max-width: 820px;
}

/* =========================================================
   HERO
========================================================= */

.kb-hero {
  padding: 135px 0 75px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.14);
}

.kb-eyebrow,
.kb-section-number {
  margin: 0 0 16px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.62;
}

.kb-title {
  max-width: 1000px;
  margin: 0;
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  line-height: 1.02;
  font-weight: 400;
}

.kb-subtitle {
  max-width: 680px;
  margin: 30px 0 0;
  font-size: clamp(1.1rem, 1.7vw, 1.45rem);
  line-height: 1.5;
}

.kb-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 34px;
  font-size: 0.8rem;
  opacity: 0.75;
}

/* =========================================================
   SEZIONI
========================================================= */

.kb-section {
  padding: 72px 0;
}

.kb-section-alt {
  background: #f7f7f5;
}

.kb-section-header {
  margin-bottom: 32px;
}

.kb-section-header h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 3rem);
  line-height: 1.15;
  font-weight: 400;
}

.kb-section-intro {
  max-width: 760px;
  margin: 20px 0 0;
  font-size: 1.08rem;
  line-height: 1.65;
}

.kb-content {
  font-size: 1.05rem;
  line-height: 1.75;
}

.kb-content p {
  margin: 0 0 1.5em;
}

.kb-content h3 {
  margin: 2.3em 0 0.7em;
  font-family: inherit;
  font-size: 1.45rem;
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: 0;
}

.kb-lead {
  font-size: 1.18rem;
  line-height: 1.75;
}

/* =========================================================
   INDICE
========================================================= */

.kb-contents {
  padding: 56px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.14);
}

.kb-contents h2 {
  margin: 0 0 28px;
  font-size: clamp(1.8rem, 2.5vw, 2.5rem);
  font-weight: 400;
}

.kb-contents ol {
  margin: 0;
  padding-left: 1.4rem;
  columns: 2;
  column-gap: 60px;
}

.kb-contents li {
  margin-bottom: 11px;
  break-inside: avoid;
  line-height: 1.45;
}

.kb-contents a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

/* =========================================================
   GRIGLIE
========================================================= */

.kb-grid {
  display: grid;
  gap: 24px;
}

.kb-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.kb-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* =========================================================
   CARD
========================================================= */

.kb-card,
.kb-link-card {
  padding: 26px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  background: #fff;
}

.kb-card h3,
.kb-link-card h3 {
  margin: 0 0 14px;
  font-family: inherit;
  font-size: 1.2rem;
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: 0;
}

.kb-card p,
.kb-link-card p {
  margin: 0;
  line-height: 1.65;
}

/* =========================================================
   TOPIC LIST
========================================================= */

.kb-topic-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 44px;
}

.kb-topic-list article {
  padding: 24px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.16);
}

.kb-topic-list h3 {
  margin: 0 0 12px;
  font-family: inherit;
  font-size: 1.25rem;
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: 0;
}

.kb-topic-list p {
  margin: 0;
  line-height: 1.65;
}

/* =========================================================
   PHOTOGRAPHER CARD
========================================================= */

.kb-profile-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 26px;
  padding: 24px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  background: #fff;
}

.kb-profile-image {
  display: grid;
  min-height: 210px;
  place-items: center;
  background: #f0f0ee;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.75;
}

.kb-profile-content h3 {
  margin: 0 0 14px;
  font-family: inherit;
  font-size: 1.3rem;
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: 0;
}

.kb-profile-content p {
  margin: 0;
  line-height: 1.65;
}

/* =========================================================
   REFERENCES
========================================================= */

.kb-reference-group + .kb-reference-group {
  margin-top: 38px;
}

.kb-reference-group h3 {
  font-family: inherit;
  font-size: 1.35rem;
  font-weight: 500;
}

.kb-reference-group ul {
  padding-left: 1.2rem;
}

.kb-reference-group li {
  margin-bottom: 10px;
  line-height: 1.6;
}

/* =========================================================
   PAOLO MAZZANTI
========================================================= */

.kb-mazzanti-section {
  background: #292929;
  color: #fff;
}

.kb-mazzanti-section .kb-section-number {
  color: #fff;
  opacity: 0.55;
}

.kb-mazzanti-section .kb-content {
  color: rgba(255, 255, 255, 0.88);
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 850px) {

  .kb-container {
    width: min(100% - 30px, 1200px);
  }

  .kb-hero {
    padding: 110px 0 60px;
  }

  .kb-title {
    font-size: clamp(2.4rem, 11vw, 3.8rem);
  }

  .kb-subtitle {
    margin-top: 24px;
  }

  .kb-section {
    padding: 56px 0;
  }

  .kb-grid-2,
  .kb-grid-3,
  .kb-topic-list {
    grid-template-columns: 1fr;
  }

  .kb-contents {
    padding: 46px 0;
  }

  .kb-contents ol {
    columns: 1;
  }

  .kb-profile-card {
    grid-template-columns: 1fr;
  }

  .kb-profile-image {
    min-height: 280px;
  }

}