/* ===========================
   MRM Impianti Elettrici
   Stylesheet SERVIZI
   =========================== */


/* ===========================
   SERVIZI PAGE
   =========================== */

/* HERO */
.page-hero {
  background: var(--navy);
  color: white;
  padding: 140px 0 60px;
}

@media (min-width: 768px) {
  .page-hero {
    padding: 160px 0 80px;
  }
}

.page-hero .back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.7);
  font-size: 14px;
  margin-bottom: 24px;
}

.page-hero h1 {
  font-size: clamp(28px,5vw,52px);
  font-weight: 800;
  margin-bottom: 16px;
}

.page-hero p {
  font-size: clamp(15px,2vw,18px);
  color: rgba(255,255,255,.85);
  max-width: 700px;
  line-height: 1.7;
}


/* ===========================
   SERVICES LIST
   =========================== */

.services-list {
  padding: 60px 0 80px;
}

.service-block {
  margin-bottom: 80px;
}

.service-block-grid {
  display: grid;
  gap: 32px;
  align-items: center;
}

@media (min-width: 768px) {
  .service-block-grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
}

/* IMMAGINE */
.service-block-img {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 32px rgba(0,0,0,.14);
  position: relative;
}

.service-block-img img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

@media (min-width: 768px) {
  .service-block-img img {
    height: 340px;
  }
}

.service-block-img .img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.6) 0%, transparent 50%);
}

/* LABEL */
.service-img-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
}

.service-img-icon-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.service-img-icon {
  width: 40px;
  height: 40px;
  background: rgba(37,99,235,.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-img-icon svg {
  width: 20px;
  height: 20px;
  stroke: white;
  fill: none;
}

/* TESTO */
.service-img-title h2 {
  font-size: 20px;
  font-weight: 700;
  color: white;
}

.service-img-title p {
  font-size: 13px;
  color: rgba(255,255,255,.75);
}

/* CONTENUTO */
.service-block-content p {
  color: var(--gray);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 24px;
}

/* FEATURES */
.service-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.feature-icon {
  width: 20px;
  height: 20px;
  stroke: var(--blue);
  fill: none;
  flex-shrink: 0;
  margin-top: 2px;
}

/* BUTTONS */
.btn-primary {
  background: var(--blue);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
  transition: opacity 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.4);
  padding: 10px 20px;
  border-radius: 6px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* LAYOUT REVERSED */
.reversed .service-block-img {
  order: 0;
}

@media (min-width: 768px) {
  .reversed .service-block-img {
    order: 2;
  }

  .reversed .service-block-content {
    order: 1;
  }
}

/* ===========================
   ANCHOR FIX (menu fisso)
   =========================== */

.service-anchor {
  width: 50px;
  height: 4px;
  background-color: #004187;
  border-radius: 2px;
  margin-top: 80px;
  margin-bottom: 20px;
  scroll-margin-top: 120px;
}