/* V25 — refinements for Servizi: cleaner process heading, continuous connectors, richer cards */

/* Remove extra numeric overline space if cached markup still contains it */
.services-process-overline { display: none !important; }
.services-process-heading { margin-bottom: 38px; }

/* Make the horizontal timeline continuous on desktop by drawing connectors per step */
@media (min-width: 1051px) {
  .services-process-steps::before { display: none !important; }
  .services-process-step {
    position: relative;
    gap: 20px;
  }
  .services-process-step::before {
    content: "";
    position: absolute;
    top: 25px;
    left: 25px;
    right: -22px;
    height: 2px;
    z-index: 0;
    background: linear-gradient(90deg,
      rgba(138,223,172,.42) 0%,
      rgba(138,223,172,.72) 35%,
      rgba(138,223,172,.42) 100%);
    opacity: .95;
  }
  .services-process-step:last-child::before { display: none; }
  .services-process-step .services-process-marker { position: relative; z-index: 2; }
  body.light-mode .services-process-step::before {
    background: linear-gradient(90deg,
      rgba(22,129,107,.34) 0%,
      rgba(22,129,107,.60) 35%,
      rgba(22,129,107,.34) 100%);
  }
}

/* Service cards: add more premium graphical accents without adding clutter */
.services-feature-section .service-feature-card {
  box-shadow: 0 22px 48px rgba(0,0,0,0.16);
}

.services-feature-section .service-feature-card::before {
  background:
    radial-gradient(circle at 88% 14%, rgba(138,223,172,0.16), transparent 23%),
    linear-gradient(135deg, rgba(138,223,172,0.10), transparent 36%, transparent 100%);
  opacity: .9;
}

.services-feature-section .service-feature-card::after {
  inset: auto 24px 0;
  height: 3px;
  box-shadow: 0 0 18px rgba(55,205,181,.18);
}

.services-feature-section .service-feature-card .service-feature-top::before {
  content: "";
  position: absolute;
  top: 8px;
  right: 0;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(138,223,172,.10) 0%, rgba(138,223,172,.04) 42%, transparent 72%);
  filter: blur(1px);
  opacity: .9;
  pointer-events: none;
}

.services-feature-section .service-feature-card .service-feature-top::after {
  width: 106px;
  height: 54px;
  top: 68px;
  right: -6px;
  opacity: .2;
  background:
    linear-gradient(90deg, transparent 44%, currentColor 44%, currentColor 46%, transparent 46%) 0 0/18px 18px,
    linear-gradient(0deg, transparent 45%, currentColor 45%, currentColor 47%, transparent 47%) 0 0/18px 18px;
}

.services-feature-section .service-feature-card:hover .service-feature-top::after {
  opacity: .42;
  transform: translateX(3px);
}

.services-feature-section .service-feature-icon {
  box-shadow: 0 8px 22px rgba(17,195,188,0.10), inset 0 1px 0 rgba(255,255,255,0.08);
}

.services-feature-section .service-feature-icon::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
  opacity: .8;
}

.services-feature-section .service-feature-card h3 {
  padding-right: 38px;
}

.services-feature-section .service-feature-card h3::after {
  content: "↗";
  position: absolute;
  top: 0;
  right: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  font-weight: 700;
  color: rgba(138,223,172,.9);
  background: rgba(138,223,172,.08);
  border: 1px solid rgba(138,223,172,.16);
  opacity: .8;
  transform: translateY(-2px);
}

.services-feature-section .service-feature-card p::before {
  content: "";
  display: block;
  width: 42px;
  height: 1px;
  margin-bottom: 14px;
  background: linear-gradient(90deg, rgba(138,223,172,.78), rgba(138,223,172,0));
}

body.light-mode .services-feature-section .service-feature-card {
  box-shadow: 0 18px 36px rgba(23,76,62,0.09);
}

body.light-mode .services-feature-section .service-feature-card::before {
  background:
    radial-gradient(circle at 88% 14%, rgba(19,138,128,0.11), transparent 23%),
    linear-gradient(135deg, rgba(19,138,128,0.08), transparent 36%, transparent 100%);
}

body.light-mode .services-feature-section .service-feature-card .service-feature-top::before {
  background: radial-gradient(circle, rgba(19,138,128,.10) 0%, rgba(19,138,128,.035) 42%, transparent 72%);
}

body.light-mode .services-feature-section .service-feature-card .service-feature-top::after {
  color: #117e71;
  opacity: .16;
}

body.light-mode .services-feature-section .service-feature-card h3::after {
  color: #11867a;
  background: rgba(19,138,128,.08);
  border-color: rgba(19,138,128,.14);
}

body.light-mode .services-feature-section .service-feature-card p::before {
  background: linear-gradient(90deg, rgba(19,138,128,.68), rgba(19,138,128,0));
}

@media (max-width: 700px) {
  .services-feature-section .service-feature-card h3 { padding-right: 34px; }
  .services-feature-section .service-feature-card .service-feature-top::before {
    width: 46px;
    height: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .services-process-step::before,
  .services-feature-section .service-feature-card::before,
  .services-feature-section .service-feature-card .service-feature-top::before,
  .services-feature-section .service-feature-card h3::after,
  .services-feature-section .service-feature-card p::before,
  .services-feature-section .service-feature-icon::before {
    transition: none;
  }
}
