/* Sezione HERO complessiva */
.mh-hero {
  position: relative;
  height: 160vh;          /* meno lunga di prima, puoi provare 150/160 */
  --mh-progress: 0;
  --mh-center-y: 52%;
}

/* Parte sticky: sempre 100vh */
.mh-hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

/* Contenitore interno: 100vh come la sticky */
.mh-hero-inner {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 100vh;
  margin: 0 auto;
  overflow: hidden;
}

.mh-hero-card-wrap {
    position: absolute;
    left: 56%;
    right: auto;
    top: var(--mh-center-y);
    bottom: auto;
    width: min(30vw, 560px);
    transform: translateY(-50%);
    z-index: 10; /* sopra l’arancione */
}

/* Immagine assoluta in alto a sinistra, max 75% larghezza viewport */

.mh-hero-inner picture {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* sta sotto */
}

.mh-hero-img {
  width: 75vw;
  height: 100%;
  max-height: 72vh;
  object-fit: cover;
  display: block;
}

/* Card del titolo */
.mh-hero-card {
  position: relative;
  z-index: 20;
  text-align: left;
  width: 100%;
}

/* Rettangolo arancione */
.mh-hero-orange {
    position: absolute;
    right: 16vw;
    top: var(--mh-center-y);
    bottom: auto;
    padding: 0;
    z-index: 5;
    pointer-events: none;
    background: #ED8024;
    mix-blend-mode: multiply;
    transform-origin: center;
    transform: translateY(-50%) scaleX(calc(1.22 + 3.5 * var(--mh-progress)));
}

.mh-hero-orange::before {
    content: "";
    position: absolute;
    inset: -8.5rem -3.5rem; /* leggermente più alto */
    background: inherit;
}

.mh-hero-title {
    margin: 0 0 0 20px;
    max-width: none;
    width: 100%;
    --mh-line-h: clamp(78px, 9.2vw, 126px);
    --mh-line-baseline: 0.82em;
    font-size: clamp(2.4rem, 3.2vw, 3.4rem);
    line-height: 1.2;
    color: #ffffff;
    position: relative;
    text-align: left;
    margin-inline: 0;
    transform: translateX(-0.75rem);
}

.mh-hero-title:before {
    content: " ";
    position: absolute;
    left: -20px;
    top: calc(var(--mh-line-baseline) - var(--mh-line-h));
    transform: none;
    width: 2px;
    height: var(--mh-line-h);
    background-color: #fff;
}

/* MOBILE: niente sticky, niente effetto di espansione full-screen */
@media (max-width: 980px) {
  .mh-hero {
    height: auto;
  }

  .mh-hero-sticky {
    position: relative;
    height: auto;
    display: block;
  }

  .mh-hero-inner {
    height: clamp(340px, 58vh, 520px);
    min-height: 0;
    padding: 0;
    overflow: hidden;
  }

  .mh-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    object-fit: cover;
    object-position: center center;
  }

  .mh-hero-orange {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    right: auto;
    top: auto;
    bottom: auto;
    transform: none !important;
    mix-blend-mode: multiply;
  }

  .mh-hero-orange::before {
    content: none;
  }

  .mh-hero-card-wrap {
    position: relative;
    left: auto;
    width: 100%;
    height: 100%;
    right: auto;
    top: auto;
    bottom: auto;
    transform: none;
    margin: 0;
    z-index: 10;
    display: flex;
    align-items: flex-end;
  }

  .mh-hero-card {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 1.4rem 1rem 1.4rem 1.25rem;
    text-align: left;
  }

  .mh-hero-title {
    width: 100%;
    max-width: 15ch!important;
    --mh-line-h: clamp(62px, 13vw, 92px);
    --mh-line-baseline: 0.82em;
    transform: none;
    text-align: left;
    font-size: clamp(1.9rem, 6.4vw, 2.5rem);
    margin: 0 0 0 20px;
  }

  .mh-hero-title:before {
    top: calc(var(--mh-line-baseline) - var(--mh-line-h));
    height: var(--mh-line-h);
  }
}
