:root {
  --font-primary: 'neue-haas-grotesk-display', 'Helvetica Neue', Arial, sans-serif;
  --blue-1: #214ecd;
  --blue-2: #163caa;
  --accent: var(--blue-1);
  --muted: #7a7a7a;
  --container: min(94vw, 1480px);
  --header-height: 64px;
  --page-gutter: 20px;
  --site-section-gap: clamp(3rem, 5vw, 5rem);
  --site-section-gap-compact: var(--site-section-gap);
}

.container {
  width: 100%;
  max-width: var(--container, 1480px);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--page-gutter);
  padding-right: var(--page-gutter);
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  margin: 0;
  color: #111;
}

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

.hero {
  padding: 0;
  margin-bottom: 0;
  background: #fff;
  position: relative;
  overflow: hidden;
}

.hero h1 {
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
  margin: 0 0 1rem;
  font-weight: 700;
  text-transform: none;
  color: var(--blue-1);
}

.container h1 {
  color: var(--blue-1);
}

.hero p {
  line-height: var(--lh-body-lg);
  color: rgba(255, 255, 255, 0.92);
  max-width: 720px;
  margin: 0 auto 0 0;
}

@media(min-width: 768px) {
  .hero h1 {
    font-size: var(--fs-h1);
  }

}

.hero-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  flex-direction: column;
}

.hero-content {
  color: #fff;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 30px 20px;
}

.hero .accent {
  color: inherit;
}

.hero-title-accent,
.hero .accent,
.quality-hero__accent {
  color: inherit;
  text-shadow: none;
}

.lead {
  opacity: 0.95;
  margin-top: 14px;
  font-size: var(--fs-body-lg);
}

p.lead {
  color: white;
}

.leone-history {
  background-color: #fff;
  overflow: hidden;
  font-family: var(--font-primary);
  --card-gap: 100px;
  padding: var(--site-section-gap) 0;
}

.history-row {
  display: grid;
  grid-template-columns: minmax(300px, 7fr) minmax(560px, 13fr);
  align-items: center;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--page-gutter);
  padding-right: var(--page-gutter);
  box-sizing: border-box;
  column-gap: clamp(1rem, 2vw, 2rem);
}

.row-top {
  margin-bottom: var(--site-section-gap-compact);
}

.history-text-col {
  grid-column: 1 / 2;
}

.align-right {
  text-align: left;
}

.history-text-col.align-right {
  grid-column: 2 / 3;
}

.marker {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

.marker .num {
  font-size: var(--fs-small);
  font-weight: 700;
  color: #333;
}

.marker .line {
  height: 1px;
  width: 60px;
  background-color: #333;
  display: inline-block;
}

.align-right .marker {
  justify-content: flex-end;
}

.main-title {
  font-size: var(--fs-h1);
  font-weight: 700;
  line-height: var(--lh-h1);
  color: #000;
  letter-spacing: 0;
  margin: 0;
  width: 467px;
}

.main-title .title-line {
  display: block;
}

.content-wrapper {
  padding: 0;
}

@media (min-width: 1025px) {
  .row-top .history-text-col .content-wrapper {
    padding-right: 0;
  }

  .row-bottom .history-text-col.align-right .content-wrapper {
    padding-right: 0;
    padding-left: 0;
  }
}

/* Accent only the phrase wrapped in .accent inside the title */
.main-title .title-line .accent {
  color: var(--blue-1);
}

.sub-title {
  font-size: var(--fs-h2);
  font-weight: 700;
  color: #121212;
  line-height: var(--lh-h2);
  letter-spacing: 0;
  margin-bottom: 1rem;
}

.description {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: #666;
  max-width: 62ch;
}

.history-img-col :is(img, video) {
  width: 100%;
  height: clamp(350px, 30vw, 430px);
  object-fit: cover;
  display: block;
}

.leone-history .history-cta {
  /* UX: spaziatura coerente tra testo e azione, migliora scan e “next step” */
  margin-top: 1.25rem;
  display: inline-flex;
}

.leone-history .history-cta.btn {
  /* UX: CTA “soft” in sezione editoriale (meno invasive rispetto ai CTA hero) */
  padding: 12px 24px;
  font-size: var(--fs-button);
  letter-spacing: var(--btn-letter-spacing);
  text-transform: uppercase;
  border-width: 1px;
}

.leone-history .history-cta.btn:hover,
.leone-history .history-cta.btn:focus {
  /* UX: evita effetto “call-to-action aggressiva” (niente salto/ombra) */
  transform: none;
  box-shadow: none;
}

.leone-history .align-right .history-cta {
  /* UX: allineamento coerente con il blocco 02, senza cambiare l'allineamento del testo */
  display: block;
  width: fit-content;
  margin-left: 0;
}

.row-top .history-img-col {
  grid-column: 2 / 3;
  position: relative;
}

/* Overlay for the first history image to match Hero style */
.row-top .history-img-col::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 22, 71, 0.2), rgba(6, 22, 71, 0.4));
  pointer-events: none;
  z-index: 1;
}


.row-bottom {
  grid-template-columns: minmax(560px, 13fr) minmax(300px, 7fr);
}

.row-bottom .history-img-col {
  grid-column: 1 / 2;
  grid-row: 1;
}

.row-bottom .history-text-col {
  grid-column: 2 / 3;
  grid-row: 1;
}

/* ====== SECTION COMMONS ====== */
.section {
  padding: var(--site-section-gap) 0;
}

.section-alt {
  background: #f8f9fa;
}

.section-dark {
  text-align: center;
  background: #0a2b4c;
  color: white;
}
