/* Restyling riservato alla sezione servizi della home. */
#home-services {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #f7f5f0;
  background:
    radial-gradient(ellipse at 94% 3%, rgba(201, 168, 106, 0.12), transparent 48%),
    radial-gradient(ellipse at 0% 95%, rgba(68, 114, 118, 0.15), transparent 55%),
    linear-gradient(135deg, #142e34 0%, #10252b 55%, #0d2127 100%);
  border-top: 1px solid rgba(201, 168, 106, 0.3);
}

#home-services::before {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  width: 660px;
  height: 660px;
  top: -370px;
  right: -230px;
  border: 1px solid rgba(201, 168, 106, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(201, 168, 106, 0.035),
              0 0 0 140px rgba(201, 168, 106, 0.025);
}

#home-services .eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #d6b77f;
}

#home-services .eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: currentColor;
}

#home-services h2 {
  color: #f7f5f0;
}

#home-services .services {
  gap: 22px;
}

#home-services .services article {
  padding: 28px 24px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(201, 168, 106, 0.24);
  border-radius: 14px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.08);
  transition: transform 220ms ease, border-color 220ms ease, background-color 220ms ease, box-shadow 220ms ease;
}

#home-services .service-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 25px;
  color: #e2c48d;
  background: rgba(201, 168, 106, 0.08);
  border: 1px solid rgba(201, 168, 106, 0.36);
  box-shadow: none;
  font-size: 19px;
}

#home-services .services b {
  position: absolute;
  top: 37px;
  right: 24px;
  color: #c9b487;
  font-size: 16px;
}

#home-services .services h3 {
  margin: 0 0 12px;
  color: #f7f5f0;
  font-weight: 500;
  line-height: 1.45;
}

#home-services .services p {
  margin: 0;
  color: #b9c8c9;
  line-height: 1.7;
}

#home-services .backtop {
  margin-top: 34px;
  padding: 8px 0;
  color: #e2c48d;
  border-bottom: 1px solid rgba(201, 168, 106, 0.5);
  transition: color 180ms ease, border-color 180ms ease;
}

#home-services .backtop:focus-visible {
  outline: 2px solid #e2c48d;
  outline-offset: 7px;
  border-radius: 2px;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  #home-services .services article:hover {
    transform: translateY(-4px);
    background-color: rgba(201, 168, 106, 0.055);
    border-color: rgba(201, 168, 106, 0.6);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.15);
  }
}

#home-services .backtop:hover {
  color: #f3dab0;
  border-color: #f3dab0;
}

@media (max-width: 520px) {
  #home-services .services {
    margin-top: 36px;
    gap: 16px;
  }

  #home-services .services article {
    padding: 24px;
  }

  #home-services .services b {
    top: 33px;
  }

  #home-services .service-icon {
    margin-bottom: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #home-services .services article,
  #home-services .backtop {
    transition: none;
  }

  #home-services .services article:hover {
    transform: none;
  }
}
