/*
 * Eptamed — ECM: sezioni "Come funziona" e "Perché conta".
 * Colori di sfondo, icone ed etichette dai controlli Elementor.
 */

.ept-ecm-steps,
.ept-ecm-why {
  box-sizing: border-box;
  font-family: var(--font-body, 'Familjen Grotesk', -apple-system, sans-serif);
}

.ept-ecm-steps *,
.ept-ecm-why * {
  box-sizing: border-box;
}

.ept-ecm-eyebrow {
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #134169;
  margin: 0 0 16px;
}

.ept-ecm-eyebrow-left {
  text-align: left;
}

/* COME FUNZIONA */
.ept-ecm-steps {
  padding: 80px 48px;
  background: #F8FAFA;
}

.ept-ecm-steps-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.ept-ecm-steps-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.ept-ecm-steps-head .ept-ecm-eyebrow {
  display: flex;
  justify-content: center;
}

.ept-ecm-steps-title,
.ept-ecm-why-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 2.8vw, 2.375rem);
  font-weight: 800;
  color: #0E2E4B;
  letter-spacing: -.03em;
  line-height: 1.15;
  margin: 0;
}

.ept-ecm-steps-title em,
.ept-ecm-why-title em {
  font-style: italic;
  color: #A0ABAB;
}

.ept-ecm-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.ept-ecm-step {
  background: #fff;
  border-radius: 18px;
  padding: 32px 28px;
  border: 1.5px solid #EBEFEF;
  min-width: 0;
}

.ept-ecm-step-number {
  display: block;
  font-size: .75rem;
  font-weight: 800;
  color: #A0ABAB;
  letter-spacing: .08em;
  margin-bottom: 18px;
}

.ept-ecm-step-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #EFF2F5;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
  color: #134169;
}

.ept-ecm-step h3 {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 800;
  color: #0E2E4B;
  margin: 0 0 10px;
  line-height: 1.3;
}

.ept-ecm-step p {
  font-size: .875rem;
  line-height: 1.65;
  color: #4E5655;
  margin: 0;
}

/* PERCHÉ CONTA */
.ept-ecm-why {
  padding: 80px 48px;
  background: #fff;
}

.ept-ecm-why-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.ept-ecm-why-title {
  margin-bottom: 20px;
}

.ept-ecm-why-intro {
  font-size: 1rem;
  line-height: 1.75;
  color: #4E5655;
  max-width: 640px;
  margin: 0;
}

.ept-ecm-why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.ept-ecm-why-item {
  padding: 28px 0;
  border-top: 2px solid #0E2E4B;
  min-width: 0;
}

.ept-ecm-why-item h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  color: #0E2E4B;
  margin: 0 0 10px;
  line-height: 1.3;
}

.ept-ecm-why-item p {
  font-size: .875rem;
  line-height: 1.65;
  color: #4E5655;
  margin: 0;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .ept-ecm-steps,
  .ept-ecm-why {
    padding: 64px 32px;
  }

  .ept-ecm-steps-grid {
    gap: 16px;
  }

  .ept-ecm-step {
    padding: 28px 22px;
  }

  .ept-ecm-why-grid {
    gap: 20px;
    margin-top: 36px;
  }

  .ept-ecm-why-item {
    padding: 24px 0;
  }
}

@media (max-width: 767px) {
  .ept-ecm-steps,
  .ept-ecm-why {
    padding: 48px 20px;
  }

  .ept-ecm-steps-head {
    margin-bottom: 32px;
  }

  .ept-ecm-eyebrow {
    margin-bottom: 12px;
  }

  .ept-ecm-steps-title,
  .ept-ecm-why-title {
    font-size: 1.75rem;
    line-height: 1.15;
  }

  .ept-ecm-steps-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .ept-ecm-step {
    padding: 24px;
    border-radius: 16px;
  }

  .ept-ecm-step-number {
    margin-bottom: 14px;
  }

  .ept-ecm-step-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 16px;
  }

  .ept-ecm-why-title {
    margin-bottom: 16px;
  }

  .ept-ecm-why-intro {
    font-size: .9375rem;
    line-height: 1.7;
  }

  .ept-ecm-why-grid {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 32px;
  }

  .ept-ecm-why-item {
    padding: 22px 0;
  }

  .ept-ecm-why-item h4 {
    margin-bottom: 8px;
  }
}

@media (max-width: 420px) {
  .ept-ecm-steps,
  .ept-ecm-why {
    padding: 42px 16px;
  }

  .ept-ecm-step {
    padding: 22px 20px;
  }

  .ept-ecm-steps-title,
  .ept-ecm-why-title {
    font-size: 1.6rem;
  }

  .ept-ecm-why-intro {
    font-size: .9rem;
  }
}
