.motivi-intro {
  font-size: 0.95rem;
  color: #555;
}

/* Cards motivi */
.motivo-card {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f7f7f7;
  border: 1px solid #eee;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.motivo-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

.motivo-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #e4f0ec; /* leggero richiamo al verde farmacia */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.motivo-icon i {
  font-size: 18px;
  color: #48665a; /* tuo verde principale */
}

.motivo-text h6 {
  margin: 0 0 3px 0;
  font-weight: 600;
  font-size: 0.95rem;
  color:#004d72;
}

.motivo-text p {
  margin: 0;
  font-size:10px;
  color: #48665a;
}

/* Effetto bottom sheet */
.modal-bottom-sheet {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

/* Stato base: leggermente più giù e trasparente */
.motivi-modal {
  width: 100%;
  max-width: 640px;
  max-height: 78vh;
  overflow-y: auto;
  border-radius: 20px 20px 0 0;
  padding-bottom: 80px;
  transform: translateY(40px);
  opacity: 0;
}
.motivi-modal .modal-header {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #ffffff;
  padding-top: 8px;
  padding-bottom: 8px;
}
.motivi-modal .modal-header {
  border-bottom: 1px solid rgba(0,0,0,0.05);
}


/* Quando la modale è visibile: animazione bounce-up */
.modal.show .motivi-modal {
  animation: motiviBounceUp 0.38s cubic-bezier(.22, .61, .36, 1);
  opacity: 1;
}
/* Backdrop modale con blur leggero */
.modal-backdrop.show {
  background-color: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
}

@media (max-width: 576px) {

  .modal-bottom-sheet {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: flex-end;
  }

  .motivi-modal {
    border-radius: 20px 20px 0 0;
    max-height: 78vh;
    padding-bottom: 90px; /* spazio sopra la PWA bar */
  }
}


/* keyframes bounce-up */
@keyframes motiviBounceUp {
  0% {
    transform: translateY(40px);
    opacity: 0;
  }
  60% {
    transform: translateY(-6px);
    opacity: 1;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}


.modal.show .motivi-modal {
  transform: translateY(0);
  opacity: 1;
}

.motivi-handle {
  width: 55px;
  height: 6px;
  border-radius: 999px;
  background: #cccccc;
  margin: 10px auto 6px;
}

.motivo-card {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 16px;
  background: #f7f7f7;
  border: 1px solid #eee;
  transition: transform .15s ease, box-shadow .15s ease;
}

.motivo-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

.motivo-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #e4ece9; /* beige-verde tenue */
  display: flex;
  align-items: center;
  justify-content: center;
}

.motivo-icon i {
  font-size: 22px;
  color: #48665a; /* verde farmacia */
}

.motivo-text h6 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #48665a;
}

.motivo-text p {
  margin: 2px 0 0;
  font-size: .88rem;
  color: #555;
}


@media (max-width: 576px) {
  .motivi-dialog {
    margin: 0.75rem 0.75rem 90px;  /* ultimo valore = spazio sopra la barra */
  }

  /* opzionale: rendo la modale un po' più compatta */
  .motivi-modal .modal-body {
    padding-bottom: 0.75rem;
  }
  .motivi-modal .modal-footer {
    padding-top: 0.75rem;
  }
    .motivi-modal {
    border-radius: 20px 20px 0 0;
    padding-bottom: 90px; /* spazio per la barra installazione */
  }


}
