/* V124 — Services hero refined after review.
   Goal: use a pertinent background image and align the hero visually
   with Prodotti and Case Studies, avoiding the oversized framed image. */
.services-hero-v21 {
  position: relative;
  isolation: isolate;
  min-height: min(760px, 94svh);
  display: flex;
  align-items: center;
  padding: clamp(140px, 11vw, 168px) 0 88px;
  overflow: hidden;
  background: #071216 !important;
  background-image: none !important;
}

.services-hero-v21::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(4,13,16,.98) 0%, rgba(4,13,16,.95) 32%, rgba(4,13,16,.72) 58%, rgba(4,13,16,.44) 76%, rgba(4,13,16,.82) 100%),
    url('../img/products-hero.jpg') right center / cover no-repeat;
  filter: saturate(.9) brightness(.58);
  transform: scale(1.02);
  pointer-events: none;
}

.services-hero-v21::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 68% 20%, rgba(85, 210, 155, .11), transparent 26%),
    radial-gradient(circle at 78% 70%, rgba(88, 146, 255, .12), transparent 24%),
    linear-gradient(180deg, rgba(5,16,18,0) 0%, rgba(5,16,18,.24) 52%, rgba(5,16,18,.72) 100%);
  pointer-events: none;
}

.services-hero-v21 .services-v21-grid {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: center;
  position: relative;
  z-index: 1;
}

.services-hero-v21 .services-hero-copy {
  max-width: 760px;
  min-width: 0;
}

.services-hero-v21 .services-hero-kicker {
  margin: 0 0 22px;
  color: #a4eec3;
}

.services-hero-v21 h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(46px, 5.15vw, 80px);
  font-weight: 700;
  line-height: 1.035;
  letter-spacing: -.065em;
  margin: 0 0 24px;
  max-width: 760px;
  color: #f5fbf8;
}

.services-hero-v21 h1 span { color: inherit; }
.services-hero-v21 h1 em {
  font-style: normal;
  color: #8adfac;
}

.services-hero-v21 .services-hero-lead {
  max-width: 660px;
  font: 400 clamp(16px, 1.24vw, 19px)/1.72 'Inter', sans-serif;
  color: #c0d6ce;
  margin: 0;
}

.services-hero-v21 .services-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 30px 0 0;
}

.services-hero-v21 .services-hero-actions .btn,
.services-hero-v21 .services-hero-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 11px;
  font: 700 13px/1 'Inter', sans-serif;
  text-decoration: none !important;
  box-shadow: 0 12px 25px rgba(0,0,0,.12);
  transition: background .25s, border-color .25s, transform .25s, box-shadow .25s;
}

.services-hero-v21 .services-hero-actions .btn {
  background: #8adfac !important;
  color: #09241a !important;
  border: 1px solid #8adfac !important;
}

.services-hero-v21 .services-hero-contact {
  background: rgba(9, 27, 28, .64);
  color: #e6f5ec !important;
  border: 1px solid rgba(153, 225, 193, .31);
}

.services-hero-v21 .services-hero-actions .btn:hover {
  background: #b1f1ce !important;
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(50,155,108,.15);
}

.services-hero-v21 .services-hero-contact:hover {
  border-color: rgba(138,223,172,.72);
  background: rgba(20,59,48,.70);
  transform: translateY(-2px);
}

.services-hero-v21 .services-hero-actions a:focus-visible {
  outline: 2px solid #a8f6cb;
  outline-offset: 4px;
}

.services-hero-v21 .services-hero-actions i { font-size: 12px; }

.services-hero-v21 .services-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 11px 23px;
  margin: 40px 0 0;
  padding: 17px 0 0;
  max-width: 640px;
  border-top: 1px solid rgba(169,223,198,.20);
}

.services-hero-v21 .services-hero-tags span {
  border: 0;
  background: transparent;
  padding: 0;
  color: #acc2b8;
  border-radius: 0;
  font: 700 10px/1.55 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: .13em;
  backdrop-filter: none;
  box-shadow: none;
}

/* Hide the oversized framed media block and use the image as background instead. */
.services-hero-v21 .services-v21-media {
  display: none !important;
}

@media (max-width: 1100px) {
  .services-hero-v21 {
    min-height: 650px;
    padding: 132px 0 76px;
  }
  .services-hero-v21 h1 {
    font-size: clamp(42px, 5.5vw, 66px);
  }
  .services-hero-v21::before {
    background:
      linear-gradient(180deg, rgba(4,13,16,.92) 0%, rgba(4,13,16,.78) 44%, rgba(4,13,16,.9) 100%),
      url('../img/products-hero.jpg') center center / cover no-repeat;
    filter: saturate(.92) brightness(.46);
  }
}

@media (max-width: 800px) {
  .services-hero-v21 {
    min-height: 0;
    padding: 124px 0 64px;
  }
  .services-hero-v21 .services-hero-copy {
    max-width: 700px;
  }
  .services-hero-v21 .services-hero-tags {
    margin-top: 28px;
  }
}

@media (max-width: 520px) {
  .services-hero-v21 {
    padding: 114px 0 48px;
  }
  .services-hero-v21 h1 {
    font-size: clamp(38px, 9vw, 50px);
    line-height: 1.07;
    margin-bottom: 19px;
  }
  .services-hero-v21 .services-hero-kicker {
    margin-bottom: 17px;
  }
  .services-hero-v21 .services-hero-lead {
    font-size: 15px;
    line-height: 1.65;
  }
  .services-hero-v21 .services-hero-actions {
    gap: 10px;
    margin-top: 24px;
  }
  .services-hero-v21 .services-hero-actions .btn,
  .services-hero-v21 .services-hero-contact {
    min-height: 46px;
    padding: 0 16px;
    font-size: 12px;
    gap: 10px;
  }
  .services-hero-v21 .services-hero-tags {
    gap: 7px 16px;
    padding-top: 14px;
    margin-top: 24px;
  }
  .services-hero-v21 .services-hero-tags span {
    font-size: 9px;
    letter-spacing: .10em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .services-hero-v21 .services-hero-actions a {
    transition: none !important;
  }
}
