body { 
  font-family: 'Inter', system-ui, sans-serif; 
}
.hero-bg { 
  background: linear-gradient(135deg, #7c3aed 0%, #db2777 100%); 
}
.modal {
  animation: fadeIn 0.2s ease-out;
}
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
.app-card {
  transition: all 0.3s ease;
}
.app-card:hover {
  transform: translateY(-4px);
}

/* Ottimizzazione per mobile 2 colonne */
@media (max-width: 640px) {
  .app-card h3 {
    font-size: 1.1rem;
    line-height: 1.2;
  }
  .app-card p {
    font-size: 0.75rem;
  }
  .app-card .p-6 {
    padding: 1rem;
  }
  .app-card button {
    padding: 0.5rem;
    font-size: 0.8rem;
    border-radius: 0.75rem;
  }
}

/* Sfondo scuro Overlay */
.custom-alert-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.25s ease;
}

/* Card popup (Supporto nativo Dark Mode) */
.custom-alert-box {
  background: #fff;
  border-radius: 18px;
  padding: 20px;
  max-width: 340px;
  width: 90%;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  text-align: left;
  transform: scale(0.95);
  animation: scaleIn 0.25s ease forwards;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Inversione colori per la modale se attiva la classe .dark sul body */
.dark .custom-alert-box {
  background: #18181b; /* zinc-900 */
  border: 1px solid #27272a; /* zinc-800 */
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Titolo */
.custom-alert-box h3 {
  margin: 0 0 10px;
  font-size: 18px;
  color: #111;
}
.dark .custom-alert-box h3 {
  color: #f4f4f5;
}

/* Testo */
.custom-alert-box p {
  white-space: pre-line;
  color: #444;
  font-size: 14px;
  line-height: 1.5;
}
.dark .custom-alert-box p {
  color: #a1a1aa;
}
.dark .custom-alert-box p u, 
.dark .custom-alert-box p b {
  color: #f4f4f5;
}

/* Bottone */
.custom-alert-btn {
  margin-top: 18px;
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 12px;
  background: #7c3aed; /* Tonalità Violet in linea col tuo brand */
  color: white;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.custom-alert-btn:hover {
  opacity: 0.9;
}

/* Effetto tap */
.custom-alert-btn:active {
  transform: scale(0.97);
}

/* Animazioni */
@keyframes scaleIn {
  to { transform: scale(1); }
}