@import url("homepage.bbfcfeb36fe9.css");


.nav-link.active{
  color: var(--primary-color);
  background-color: #013e89;
}

/* --- Layout Gerarchia e Card --- */
.hierarchy-level {
  text-align: center;
  padding-block: 2rem;
  margin-bottom: 2rem;
}

.level-title {
  color: #0056ae;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  position: relative;
  display: inline-block;
}

/* Linea decorativa sotto il titolo */
.level-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--secondary-color);
  margin: 0.5rem auto 0;
  border-radius: 2px;
}

.team-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

/* Design Card Membro */
.team-card, .scheda {
  background: var(--card-bg);
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 1.5rem;
  width: 100%;
  max-width: 280px; /* Larghezza fissa ottimale per card profilo */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

/* Effetto Hover Card */
.team-card:hover, .scheda:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 86, 166, 0.15);
}

.team-card img, .scheda img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.2rem;
  border: 4px solid #eef6ff; /* Bordo colorato intorno alla foto */
}

.team-card h3, .scheda h3 {
  color: var(--text-dark);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.team-card p.role, .scheda p.role {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
}

.team-card p.description {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3; /* Tronca il testo dopo 3 righe */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- Modale (Restyling mantenendo compatibilità JS) --- */
.modale {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px); /* Effetto sfocatura sfondo */
  z-index: 2000; /* Sopra alla navbar */
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modale.visible {
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
}

.modale-contenuto {
  background: #fff;
  border-radius: 16px;
  padding: 0; /* Reset padding per usare header colorato se vuoi */
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Effetto rimbalzo */
  box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

.modale.visible .modale-contenuto {
  transform: scale(1);
}

.chiudi-modale {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0,0,0,0.05);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 24px;
  line-height: 1;
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.2s;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chiudi-modale:hover {
  background: var(--secondary-color);
  color: #fff;
  transform: rotate(90deg);
}

.bio-header {
  background: linear-gradient(135deg, #eef6ff 0%, #fff 100%);
  padding: 3rem 2rem 1.5rem;
  text-align: center;
  border-bottom: 1px solid #eaeaea;
}

.bio-immagine {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.5rem;
  border: 5px solid #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.bio-header h2 {
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.bio-header .ruolo {
  color: var(--secondary-color);
  font-weight: 600;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.bio-content {
  padding: 2rem;
  color: var(--text-dark);
  font-size: 1.05rem;
  line-height: 1.8;
}

/* --- Responsive Mobile --- */
@media (max-width: 992px) {
  .site-title { font-size: 1.4rem; }
  .logo-img { height: 50px; }
}

@media (max-width: 768px) {
  .brand-container { flex-direction: column; gap: 1rem; }
  .header-top { border-bottom: none; }
  .team-card { max-width: 100%; } /* Card piena larghezza su mobile */
}