/*
 * Eptamed — App (My Eptamed + PRO): due card affiancate.
 * Desktop: 2 colonne. Mobile (<768px): una sotto l'altra.
 */

.ept-apps-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
}

.ept-app-card {
  display: grid;
  grid-template-columns: 55% 45%;
  min-height: 390px;
  overflow: hidden;
  border-radius: 20px;
  box-sizing: border-box;
}

/* --- My Eptamed (pazienti): beige --- */
.ept-app-card--my {
  background: #F5F0E8;
}

.ept-app-card--my .ept-app-label {
  color: #BC5A29;
  border: 1px solid rgba(188, 90, 41, .45);
}

.ept-app-card--my .ept-app-desc {
  color: rgba(19, 65, 105, .72);
}

.ept-app-card--my .ept-app-store {
  background: #fff;
  color: #134169;
  border: 1px solid rgba(19, 65, 105, .15);
}

.ept-app-card--my .ept-app-cta {
  background: #BC5A29;
  color: #fff;
}

/* --- Eptamed PRO (professionisti): blu --- */
.ept-app-card--pro {
  background: #123653;
}

.ept-app-card--pro .ept-app-label {
  color: rgba(255, 255, 255, .90);
  border: 1px solid rgba(255, 255, 255, .28);
}

.ept-app-card--pro .ept-app-logo img {
  /* Logo bianco su fondo blu */
  filter: brightness(0) invert(1);
}

.ept-app-card--pro .ept-app-desc {
  color: rgba(255, 255, 255, .60);
}

.ept-app-card--pro .ept-app-store {
  background: rgba(255, 255, 255, .10);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .22);
}

.ept-app-card--pro .ept-app-cta {
  background: rgba(255, 255, 255, .10);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, .22);
  font-weight: 700;
}

/* --- Contenuto --- */
.ept-app-content {
  padding: 48px 20px 48px 48px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-sizing: border-box;
}

.ept-app-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 9px 18px;
  margin: 0 0 16px;
}

.ept-app-logo {
  display: flex;
  align-items: center;
  margin: 0 0 16px;
}

.ept-app-logo img {
  display: block;
  width: auto;
  height: auto;
  max-width: 210px;
  max-height: 88px;
  object-fit: contain;
  object-position: left center;
}

.ept-app-desc {
  font-size: 0.9375rem;
  line-height: 1.72;
  margin: 0 0 28px;
}

.ept-app-stores {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.ept-app-store {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

.ept-app-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 26px;
  border-radius: 10px;
  font-weight: 500;
  font-size: .9375rem;
  text-decoration: none;
  width: fit-content;
  box-sizing: border-box;
}

/* --- Telefono --- */
.ept-app-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
  padding: 30px 20px;
  box-sizing: border-box;
}

.ept-app-phone img {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
  object-fit: contain;
  margin: 0;
}

/* --- Mobile --- */
@media (max-width: 767px) {
  .ept-apps-duo {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .ept-app-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .ept-app-content {
    padding: 32px 24px 24px;
  }

  .ept-app-label {
    margin-bottom: 10px;
  }

  .ept-app-logo img {
    max-width: 190px;
    max-height: 52px;
  }

  .ept-app-desc {
    line-height: 1.65;
    margin-bottom: 22px;
  }

  .ept-app-stores {
    margin-bottom: 22px;
  }

  .ept-app-cta {
    width: 100%;
  }

  .ept-app-phone {
    padding: 10px 24px 30px;
  }

  .ept-app-phone img {
    max-width: 230px;
  }
}
