/* =========================
   TEAM ROW
========================= */
.team-row {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

/* CARD */
.team-card {
  position: relative;
  width: 200px;
  background: #fff;
  border-radius: 16px;
  padding: 70px 20px 25px;
  text-align: center;
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
  color: #000;
  text-decoration: none;
}

/* CERCHIO */
.team-circle {
  position: absolute;
  top: -35px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 110px;
  background: #f5c400; /* giallo caldo */
  border-radius: 50%;
  z-index: 1;
}

/* IMMAGINE */
.team-card img {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 95px;
  height: 95px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid #fff;
  z-index: 2;
}

/* TESTO */
.team-card .small {
  font-size: 14px;
  color: #666;
}

/* POSTO DISPONIBILE */
.team-empty {
  cursor: pointer;
}

.team-empty .team-circle {
  background: transparent;
  border: 2px dashed #f5c400;
}

.team-placeholder {
  position: absolute;
  top: -45px;
  left: 50%;
  transform: translateX(-50%);
  width: 95px;
  height: 95px;
  border-radius: 50%;
  background: #fff;
  border: 2px dashed #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  color: #aaa;
  z-index: 2;
}

/* HOVER */
.team-empty:hover {
  transform: translateY(-4px);
}

/* =========================
   RESPONSIVE TEAM
========================= */

/* DESKTOP LARGE (già ok) */
/* 5 in linea */

/* TABLET */
@media (max-width: 1024px) {
  .team-row {
    justify-content: center;
    gap: 25px;
  }

  .team-card {
    width: 220px;
  }
}

/* TABLET SMALL */
@media (max-width: 900px) {
  .team-row {
    flex-wrap: wrap;
  }

  .team-card {
    width: 45%;
    max-width: 260px;
  }
}

/* MOBILE */
@media (max-width: 600px) {
  .team-row {
    flex-direction: column;
    align-items: center;
  }

  .team-card {
    width: 100%;
    max-width: 320px;
    margin-bottom: 30px;
  }

  .team-circle {
    width: 100px;
    height: 100px;
    top: -30px;
  }

  .team-card img,
  .team-placeholder {
    width: 90px;
    height: 90px;
    top: -55px;
  }
}
@media (max-width: 600px) {
  .team-empty {
    border: 2px dashed #f5c400;
  }
}
