/* =========================================================
   HOME — HERO ISPIRATO AL RIFERIMENTO DEL CLIENTE
   Caricato dopo css/style.css
   ========================================================= */

.home-hero {
  position: relative;
  min-height: clamp(520px, 53vw, 690px);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background: #f7f9fb;
}

.home-hero__background {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("../images/banner-home.jpg");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(250, 252, 254, 0.99) 0%,
    rgba(250, 252, 254, 0.96) 27%,
    rgba(250, 252, 254, 0.74) 43%,
    rgba(250, 252, 254, 0.08) 63%,
    rgba(250, 252, 254, 0) 100%
  );
}

.home-hero__inner {
  width: 100%;
  padding-top: clamp(3.5rem, 7vw, 6.5rem);
  padding-bottom: clamp(3.5rem, 7vw, 6.5rem);
}

.home-hero__copy {
  max-width: 610px;
  color: #31283a;
}

.home-hero__kicker {
  display: inline-block;
  margin-bottom: 1rem;
  color: #7e5791;
  font-size: clamp(0.72rem, 1vw, 0.84rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-hero h1 {
  max-width: 590px;
  margin: 0;
  color: #302638;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3rem, 5.3vw, 5.25rem);
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: -0.035em;
  
}

.home-hero h1 strong {
  display: inline-block;
  color: #4f385e;
  font-weight: 700;
}

.home-hero__rule {
  display: block;
  width: 64px;
  height: 3px;
  margin: 1.55rem 0 1.45rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #744d88, #ae79bc);
}

.home-hero__copy p {
  max-width: 520px;
  margin: 0 0 1.8rem;
  color: #54495a;
  font-size: clamp(1rem, 1.35vw, 1.16rem);
  line-height: 1.72;
}

.home-hero__copy p strong {
  color: #5f3f70;
  font-weight: 800;
}

.home-hero__button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 0.85rem 1.35rem;
  border: 1px solid #79518d;
  border-radius: 3px;
  background: linear-gradient(135deg, #7c5590, #5a3d6b);
  box-shadow: 0 12px 25px rgba(83, 54, 98, 0.18);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.home-hero__button:hover,
.home-hero__button:focus {
  color: #fff;
  transform: translateY(-2px);
  background: linear-gradient(135deg, #6d477f, #4e345d);
  box-shadow: 0 15px 30px rgba(83, 54, 98, 0.24);
}

.home-value-band {
  position: relative;
  z-index: 2;
  background: linear-gradient(110deg, #4c315c 0%, #684179 48%, #825497 100%);
  color: #fff;
  box-shadow: 0 14px 34px rgba(67, 42, 80, 0.2);
}

.home-value-band__row {
  min-height: 132px;
  align-items: stretch;
}

.home-value-band__row > div {
  display: flex;
}

.home-value-item {
  position: relative;
  display: grid;
  width: 100%;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  padding: 1.7rem 1.45rem;
}

.home-value-band__row > div:not(:last-child) .home-value-item::after {
  content: "";
  position: absolute;
  top: 24%;
  right: 0;
  bottom: 24%;
  width: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.home-value-item__icon {
  display: inline-flex;
  width: 54px;
  height: 54px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  color: #fff;
  font-size: 1.35rem;
}

.home-value-item h2 {
  margin: 0 0 0.3rem;
  color: #fff;
  font-family: "Manrope", sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.home-value-item p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.72rem;
  line-height: 1.55;
}

@media (max-width: 1199.98px) {
  .home-hero {
    min-height: 590px;
  }

  .home-hero__background {
    background-position: 58% center;
  }

  .home-hero::before {
    background: linear-gradient(
      90deg,
      rgba(250, 252, 254, 0.99) 0%,
      rgba(250, 252, 254, 0.94) 38%,
      rgba(250, 252, 254, 0.42) 62%,
      rgba(250, 252, 254, 0.02) 100%
    );
  }

  .home-value-band__row > div:nth-child(2) .home-value-item::after {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .home-hero {
    min-height: auto;
    display: block;
    padding-top: min(66vw, 430px);
    background: #fff;
  }

  .home-hero__background {
    height: min(66vw, 430px);
    bottom: auto;
    background-position: 69% center;
  }

  .home-hero::before {
    height: min(66vw, 430px);
    bottom: auto;
    background: linear-gradient(180deg, rgba(255,255,255,0) 58%, rgba(255,255,255,0.95) 100%);
  }

  .home-hero__inner {
    position: relative;
    padding-top: 1.5rem;
    padding-bottom: 2.6rem;
    background: #fff;
  }

  .home-hero__copy {
    max-width: none;
  }

  .home-hero h1 {
    font-size: clamp(2.15rem, 10vw, 3.5rem);
  }

  .home-hero__copy p br {
    display: none !important;
  }

  .home-value-band__row > div .home-value-item::after {
    display: none;
  }

  .home-value-band__row > div:not(:last-child) .home-value-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }
}

@media (max-width: 575.98px) {
  .home-value-item {
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 0.85rem;
    padding: 1.25rem 0.6rem;
  }

  .home-value-item__icon {
    width: 48px;
    height: 48px;
    font-size: 1.15rem;
  }

  .home-value-item h2 {
    font-size: 0.76rem;
  }

  .home-value-item p {
    font-size: 0.7rem;
  }
}


/* Compatibilità con il contenitore double-hero esistente */
.double-hero > .home-hero,
.double-hero > .home-value-band {
  width: 100%;
}
