.card-board {
  border: none;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  height: 100%;
}

.card-board:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.img-container {
  height: 360px;
  position: relative;
  overflow: hidden;
}

.img-container img {
  width: 75%;
  display: block;
  margin-left: auto;
  margin-right: auto;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card-board:hover .img-container img {
  transform: scale(1.10);
}

.social-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card-board:hover .social-overlay {
  opacity: 1;
}

.social-overlay a {
  color: white;
  font-size: 1.2rem;
  transition: color 0.2s;
}

.social-overlay a:hover {
  color: var(--accent-color);
}

.position-badge {
  display: inline-block;
  background-color: rgba(42, 82, 152, 0.1);
  color: var(--primary-color);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.member-name {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: var(--secondary-color);
}

.member-bio {
  font-size: 0.95rem;
  color: #6c757d;
  line-height: 1.6;
}

/* Responsive Card Grid Adjustments */
@media (max-width: 1399px) {
  .img-container {
    height: 310px;
  }
}
@media (max-width: 1199px) {
  .img-container {
    height: 265px;
  }
}
@media (max-width: 991px) {
  .img-container {
    height: 295px;
  }
}
@media (max-width: 767px) {
  .img-container {
   height: 350px;
  }
  .img-container img {
  width: 60%;
  }
}
@media (max-width: 575px) {
  .img-container {
    height: calc((100vw - 40px) * 0.55 + 45px);
  }
  .img-container img {
  width: 55%;
  }
}

/* personalizzazione 14/07/2026 
   icone social + grandi e di colore blu all'hover */
.fa-brands:hover {
    color:cyan;
    font-size:xx-large;
}

.fa-solid:hover {
    color: cyan;
    font-size:xx-large;
}