/* Container principale */
.team-slider-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 10px 0;
}

/* Wrapper dello scroll */
.team-slider-wrapper {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; /* Nasconde scrollbar Firefox */
  padding: 0 20px; /* Margine iniziale */
}

@media only screen and (min-width: 992px) {

.team-slider-wrapper {
justify-content:center;
}
  
}

.team-slider-wrapper::-webkit-scrollbar {
  display: none; /* Nasconde scrollbar Chrome/Safari */
}

/* La Card */
.team-card {
  flex: 0 0 85%; /* Mostra l'85% della card, lasciando il 15% per la successiva */
  scroll-snap-align: center;
  margin-right: 15px;
  color: white;gra
  text-align: center;
}

.card-inner {
  background: rgba(255,255,255,.1);
  border-radius: 30px;
  padding: 40px 20px;
  height: 100%;
  text-align:center;
}

.card-inner .name {
    font-size: 1.5rem;
    color:#fff;
    letter-spacing: 0.063rem;
    margin: 0 0 1rem 0;
}

.card-inner .role {
    font-size: 1rem;
    opacity: 0.6;
    letter-spacing: 0.063rem;
    margin: 1rem 0 0 0;
}

.card-inner .social-icons {
text-align:center;
  margin-top:2rem;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:1.5rem;
}

.card-inner .social-icons svg {
width:24px;
  height:24px;
}

.photo-circle {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto;
  background: #ccc;
  box-shadow: rgba(255, 255, 255, 0.1) 0px 1px 1px 0px inset, rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px;
}

.photo-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Sfumatura laterale su Mobile */
@media (max-width: 767px) {
  .slider-gradient-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 100%;
    background: linear-gradient(to right, transparent, #071C42);
    pointer-events: none; /* Permette di cliccare sotto la sfumatura */
  }
}

/* Desktop: mostra più elementi e rimuovi sfumatura */
@media (min-width: 768px) {
  .team-card {
    flex: 0 0 calc(25% - 20px);
  }
  .slider-gradient-overlay {
    display: none;
  }
}