/*
 * ============================================================
 *  Article Header + Page Layout
 *  Theme: Web Design Agency - giallo #ffcc00, grigio, bianco
 *  Font titoli: "Barlow Condensed" SemiBold/Bold
 *  Font corpo:  "Open Sans", "Helvetica Neue", Helvetica, Arial
 * ============================================================
 */

.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: 2rem 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--overlay,
.titolohover{
  position: absolute;
  bottom: 0;
  left: 0;
  margin: 1rem 0;
  width: 100%;
  z-index: 2;
}
.article-header--overlay .article-header__title,
.article-header--overlay .article-header__eyebrow,
.article-header--overlay .article-header__subtitle,
.titolohover, .titolohover .sottotitolo, .titolohover .occhiello{
  color: var(--palette-white, #ffffff);
  text-shadow: var(--text-shadow);
}

.article-header__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.65rem;
  padding: .15rem .4rem;
  background: var(--theme-color3-bg, var(--palette-blue-light, #4cb3d3));
  color: var(--theme-color3-txt, var(--palette-white, #ffffff));
  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(--theme-color3-bg, var(--palette-blue-light, #4cb3d3));
} */

.article-header__title {
  max-width: 920px;
  margin: 0 0 0.65rem;
  color: var(--theme-color2-bg, var(--palette-blue-deep, #10304a));
  /* font-family: var(--heading-font-family, "Barlow Condensed", "Helvetica Neue", sans-serif); */
  font-family: "Yeseva One", serif;
  font-size: 3rem;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0;
  text-wrap: balance;
}

.article-header__subtitle {
  max-width: 760px;
  margin: 0;
  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 .9rem;
  margin-top: .9rem;
  color: var(--article-header-muted);
  font-size: .9rem;
  line-height: 1.45;
}

.article-header__breadcrumbs {
  margin: 0 0 .5rem;
  font-size: 0.86rem;
  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: .28rem;
  height: .28rem;
  margin: 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;
} */

@media (max-width: 48rem) {
  .article-header {
    margin: .5rem 0;
    padding: .5rem .5rem 1rem .5rem;
  }
  .article-header__title {
    max-width: 100%;
    font-size: 2.2rem;
    line-height: 1.08;
  }
  .article-header__subtitle {
    font-size: 1rem;
    line-height: 1.6;
  }
  .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: .45rem;
  color: var(--palette-gray-700, #444444);
  font-family: var(--heading-font-family, "Barlow Condensed", "Helvetica Neue", sans-serif);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.15;
  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);
  }
}

