.article-header {
  --article-header-accent:       var(--palette-yellow, #ffcc00);
  --article-header-primary:      var(--body-color, #1a1a1a);
  --article-header-primary-dark: var(--palette-gray-900, #1a1a1a);
  --article-header-muted:        var(--body-color-light, #666666);
  margin: 1.5rem 0;
  padding: 1rem 0;
  font-family: var(--body-font-family, "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif);
  color: var(--article-header-primary);
}
.article-header__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.65rem;
  color: var(--article-header-muted);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: uppercase;
}
.article-header__eyebrow::before {
  content: "";
  flex: 0 0 auto;
  width: 18px;
  height: 3px;
  background: var(--article-header-accent);
}
.article-header__title {
  max-width: 1920px;
  margin: 0 0 0.65rem;
  color: var(--article-header-primary-dark);
  font-family: var(--heading-font-family, "Helvetica Neue", sans-serif);
  font-size: clamp(2.75rem, 1.78rem + 4.13vw, 5.5rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: 0;
  text-wrap: balance;
}
.article-header__subtitle {
  max-width: 760px;
  margin: 0;
  color: var(--article-header-muted);
  font-size: 1.08rem;
  font-weight: 400;
  line-height: 1.62;
  text-wrap: pretty;
}
.article-header__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.9rem;
  margin-top: 0.9rem;
  color: var(--article-header-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}
.article-header__breadcrumbs {
  margin: 0 0 0.8rem;
  font-size: 0.86rem;
  line-height: 1.4;
  color: var(--palette-gray-400, #999999);
}
.article-header__breadcrumbs a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s;
}
.article-header__breadcrumbs a:hover,
.article-header__breadcrumbs a:focus-visible {
  color: var(--article-header-primary-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article-header__author strong {
  color: var(--article-header-primary-dark);
  font-weight: 700;
}
.article-header__date::before {
  content: "";
  display: inline-block;
  width: 0.28rem;
  height: 0.28rem;
  margin: 0 0.75rem 0 0;
  border-radius: 999px;
  background: var(--article-header-accent);
  vertical-align: middle;
}
.article-header--compact-title .article-header__title {
  max-width: 840px;
  font-size: 2.35rem;
}
.article-header--overlay {
  position: relative;
  z-index: 2;
  margin-top: -4rem;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-left: 4px solid var(--article-header-accent);
  border-radius: 0 0.5rem 0.5rem 0;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.10);
}

@media (max-width: 48rem) {
  .article-header{
    margin: 1.5rem 0;
    padding: 0.75rem 0 0.9rem 0.75rem;
  }
  .article-header__title{
    max-width: 100%;
    font-size: 2.75rem;
    line-height: 1.08;
  }
  .article-header__subtitle {
    font-size: 1rem;
    line-height: 1.58;
  }
  .article-header__meta {
    display: block;
    font-size: 0.86rem;
  }
  .article-header__author,
  .article-header__date {
    display: block;
  }
  .article-header__date::before {
    display: none;
  }
  .article-header--overlay {
    margin-top: -2rem;
    padding: 1rem;
  }
}

/* Layout wrapper */
.pagetext-wrap {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 2rem;
}

.maintext {
  flex: 1 1 0;
  min-width: 0;
  font-family: var(--body-font-family, "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif);
  font-size: 1rem;
  line-height: var(--line-height, 1.55);
  color: var(--body-color, #1a1a1a);
}

.maintext p,
.maintext ul,
.maintext ol {
  margin-top: 0;
  margin-bottom: 1.15rem;
}

.maintext li {
  margin-bottom: 0.35rem;
}

.maintext > :last-child {
  margin-bottom: 0;
}

.sidetext-card {
  flex: 0 0 25%;
  position: sticky;
  top: 1.5rem;
  align-self: flex-start;
  padding: 1.15rem 1.2rem 1.15rem 1rem;
  background: var(--palette-gray-50, #f8f8f8);
  border-left: 3px solid var(--palette-yellow, #ffcc00);
  border-radius: var(--border-radius, 0.3rem);
  box-shadow: var(--box-shadow-md, 0 0.25rem 0.75rem rgba(0,0,0,0.12));
  font-size: 0.93rem;
  line-height: 1.55;
  color: var(--body-color, #1a1a1a);
}

.sidetext-card strong,
.sidetext-card b {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--palette-gray-700, #444444);
  font-family: var(--heading-font-family, "Helvetica Neue", sans-serif);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0;
  text-transform: uppercase;
}

@media (max-width: 767px) {
  .pagetext-wrap {
    flex-direction: column;
    gap: 1.25rem;
  }

  .sidetext-card {
    flex: 0 0 auto;
    width: 100%;
    position: static;
    border-left: none;
    border-top: 3px solid var(--palette-yellow, #ffcc00);
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  }
}

h1, h2, h3, h4 {
  /* font-family: var(--heading-font-family, "Helvetica Neue", sans-serif); */
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0;
  color: var(--palette-gray-900, #1a1a1a);
}

h1 {
  margin: 0 0 1rem;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.75rem, 1.78rem + 4.13vw, 5.5rem);
  font-family: var(--heading-font-family, "Helvetica Neue", sans-serif);
}

h2 {
  margin: 1.8rem 0 0.85rem;
  font-size: clamp(1.3rem, 0.64rem + 1.83vw, 2.15rem);
}

h2:first-child {
  margin-top: 0;
}

h3 {
  /* margin: 1.5rem 0 0.7rem; */
  font-size: 1.65rem;
}

h4 {
  /* margin: 1.25rem 0 0.6rem; */
  font-size: 1.28rem;
}

h1 .piccolo {
  display: block;
  margin-top: 0.35rem;
  color: var(--body-color-light, #666666);
  font-family: var(--body-font-family, "Open Sans", "Helvetica Neue", Arial, sans-serif);
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0;
  text-transform: none;
}

.occhiello {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  color: var(--body-color-light, #666666);
  font-family: var(--body-font-family, "Open Sans", "Helvetica Neue", Arial, sans-serif);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: uppercase;
}

.occhiello::before {
  content: "";
  flex: 0 0 auto;
  width: 18px;
  height: 3px;
  background: var(--palette-yellow, #ffcc00);
}

.sottotitolo {
  max-width: 760px;
  font-size: 1.1rem;
  font-weight: 400;
}

h1 + .sottotitolo {
  margin: 0.2rem 0 2.25rem;
}

@media (max-width: 48rem) {
  h1 {
    font-size: 2.3rem;
  }

  h2 {
    margin-top: 1.5rem;
    font-size: 1.85rem;
  }

  h3 {
    font-size: 1.45rem;
  }

  h4 {
    font-size: 1.18rem;
  }

  .sottotitolo {
    font-size: 1rem;
    line-height: 1.58;
  }
}
