/* ========== Hero Contatti (mobile-first) ========== */

/*
 * Contatti: header in document flow (non assoluto), così l'hero
 * inizia sotto la barra bianca — come nello statico .page--contatti.
 */
@media (min-width: 1025px) {
  body.has-hero-contact .site-header {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    width: 100%;
    height: var(--header-height);
    transform: none;
  }
}

.hero-contact {
  width: 100%;
  background-color: var(--color-text);
  background-image:
    linear-gradient(90deg, rgba(42, 41, 43, 0.4) 0%, rgba(255, 255, 255, 0) 100%),
    var(
      --hero-contact-bg-image-mobile,
      var(--hero-contact-bg-image-desktop, url("../img/contatti-hero.webp"))
    );
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-contact__inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-block: var(--section-pad-y);
}

.hero-contact__content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.hero-contact__headings {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-contact__badge {
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 10px;
  background-color: var(--color-bg);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: var(--font-weight-semibold);
  line-height: 15.6px;
  color: var(--color-primary);
}

.hero-contact__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: var(--font-weight-bold);
  line-height: 46.8px;
  color: var(--color-bg);
  overflow-wrap: normal;
  hyphens: none;
}

.hero-contact__subtitle {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: var(--font-weight-bold);
  line-height: 25.2px;
  color: var(--color-bg);
}

.hero-contact__cta {
  align-self: flex-start;
  font-size: 15px;
  line-height: 18px;
}

@media (min-width: 1025px) {
  .hero-contact {
    position: relative;
    isolation: isolate;
    background: none;
  }

  .hero-contact::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    right: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    background-color: var(--color-text);
    background-image:
      linear-gradient(90deg, rgba(42, 41, 43, 0.4) 0%, rgba(255, 255, 255, 0) 100%),
      var(
        --hero-contact-bg-image-desktop,
        var(--hero-contact-bg-image-mobile, url("../img/contatti-hero.webp"))
      );
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

  .hero-contact__inner {
    gap: 40px;
    min-height: 724px;
    padding-top: 160px;
    padding-bottom: var(--section-pad-y);
  }

  .hero-contact__content {
    gap: 40px;
    max-width: 820px;
  }

  .hero-contact__headings {
    gap: 24px;
  }

  .hero-contact__badge {
    padding: 8px 16px;
  }

  .hero-contact__title {
    font-size: 84px;
    line-height: 71.4px;
  }

  .hero-contact__subtitle {
    font-size: 24px;
    line-height: 1.2;
  }

  .hero-contact__cta {
    font-size: 16px;
    line-height: 19.2px;
  }
}
