/* ===================================
   FOUNDERS MODAL STYLES
   Mobile-first, responsive design
   =================================== */

/* Backdrop - semitrasparente con blur */
.founders-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 250ms ease, visibility 250ms ease;
}

/* Stato aperto del backdrop */
.founders-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

/* Modal container */
.founders-modal {
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem 1.5rem;
  position: relative;
  transform: translateY(20px);
  transition: transform 250ms ease;
}

/* Animazione apertura modal */
.founders-backdrop.is-open .founders-modal {
  transform: translateY(0);
}

/* Pulsante chiusura X */
.founders-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: #1e3a8a;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 200ms ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.founders-close:hover {
  background: #eff6ff;
  color: #fb923c;
}

.founders-close:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* Titolo modal */
#founders-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1e3a8a;
  margin: 0 0 2rem 0;
  text-align: center;
}

/* Griglia founders - mobile first */
.founders-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

/* Tablet: 2 colonne */
@media (min-width: 640px) {
  .founders-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop: 3 colonne */
@media (min-width: 900px) {
  .founders-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  #founders-title {
    font-size: 2.5rem;
  }

  .founders-modal {
    padding: 3rem 2.5rem;
  }
}

/* Card singolo founder */
.founder-card {
  background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: all 250ms ease;
}

.founder-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
  border-color: #3b82f6;
}

/* Foto founder - circolare */
.founder-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem auto;
  border: 4px solid #eff6ff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Nome founder */
.founder-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e3a8a;
  margin: 0 0 0.25rem 0;
}

/* Ruolo founder */
.founder-role {
  font-size: 0.875rem;
  font-weight: 600;
  color: #fb923c;
  margin: 0 0 0.75rem 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Bio founder */
.founder-bio {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #4b5563;
  margin: 0 0 1rem 0;
}

/* Link social */
.founder-links {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
}

.founder-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #eff6ff;
  color: #1e3a8a;
  transition: all 200ms ease;
  text-decoration: none;
}

.founder-links a:hover {
  background: #1e3a8a;
  color: white;
  transform: scale(1.1);
}

.founder-links a:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* Blocca scroll body quando modal è aperto */
body.modal-open {
  overflow: hidden;
}

/* Scrollbar personalizzata per il modal */
.founders-modal::-webkit-scrollbar {
  width: 8px;
}

.founders-modal::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 10px;
}

.founders-modal::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

.founders-modal::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}
