/*
 * Eptamed — Hero ECM.
 * Sfondo, colori del testo e titolo arrivano dai controlli Elementor.
 */

.ept-ecm-hero {
  position: relative;
  padding: 80px 48px 72px;
  overflow: hidden;
  font-family: var(--font-body);
  box-sizing: border-box;
}

/* Pattern di puntini sullo sfondo */
.ept-ecm-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

/* Alone in alto a destra */
.ept-ecm-glow {
  position: absolute;
  top: -140px;
  right: -140px;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(19, 65, 105, .55) 0%, transparent 70%);
  pointer-events: none;
}

.ept-ecm-inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
}

/* Etichetta */
.ept-ecm-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, .45);
  border-radius: 999px;
  padding: 7px 16px;
  margin-bottom: 24px;
}

.ept-ecm-label-dot {
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Titolo */
.ept-ecm-title {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 4vw, 3.375rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.035em;
  margin: 0 0 18px;
}

.ept-ecm-title em {
  font-style: italic;
}

/* Testo */
.ept-ecm-desc {
  font-size: 1.0625rem;
  line-height: 1.7;
  max-width: 480px;
  margin: 0;
}

/* Card */
.ept-ecm-card {
  background: rgba(255, 255, 255, .07);
  border: 1.5px solid rgba(255, 255, 255, .22);
  border-radius: 20px;
  padding: 32px;
  text-align: center;
  box-sizing: border-box;
}

.ept-ecm-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .10);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.ept-ecm-card h3 {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 6px;
}

.ept-ecm-card p {
  font-size: .8125rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, .75);
  margin: 0;
}

/* Tablet: testo e card in colonna */
@media (max-width: 900px) {
  .ept-ecm-inner {
    grid-template-columns: 1fr;
  }

  .ept-ecm-card {
    max-width: 320px;
  }
}

/* Mobile: sezione più stretta */
@media (max-width: 600px) {
  .ept-ecm-hero {
    padding: 64px 24px 60px;
  }

  .ept-ecm-card {
    max-width: 100%;
  }
}
