.team-page{
  background: #121223;
  padding: 110px 0 80px;
}

.team-header{
    font-size: 102px;
  text-align: center;
  padding-top: 40px;
  padding-bottom: 40px;
}

.team-title{
  font-size: 102px;
  font-family: bebasbold;
  color: #fff;
  margin: 0 0 10px;
  text-shadow: 0 0 8px rgba(255,255,255,0.18);
}

.team-subtitle{
  font-family: inkfree;
  color: rgba(255,255,255,0.85);
  margin: 0;
  font-size: 22px;
  text-shadow: 0 0 6px rgba(255,255,255,0.12);
}

.team-section{
  padding: 40px 0 10px;
}

.team-section-title{
  font-size: 102px;
  font-family: bebasbold;
  text-align: center;
  color: #fff;
  font-size: 64px;
  margin: 35px 0 26px;
  letter-spacing: 2px;
  text-shadow: 0 0 8px rgba(255,255,255,0.18);
}

/* grid varianti (3/2/1 come nel design) */
.team-grid{
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 60px;

  display: grid;
  gap: 44px;
  justify-content: center;
}

.team-grid--3{
  grid-template-columns: repeat(3, 360px);
  gap: 46px;
}
.team-grid--2{
  grid-template-columns: repeat(2, 360px);
  gap: 46px;
}
.team-grid--1{
  grid-template-columns: 360px;
}


/* card */
.team-card{
  background: #262637;
  border-radius: 14px;

  width: 360px;        /* ✅ come “box grande” */
  height: 220px;       /* ✅ altezza simile al design */

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;  /* ✅ centro vero */
  border: 1px solid rgba(255,255,255,0.04);

  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);

  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:nth-child(odd):hover {
    box-shadow:
    0 15px 40px rgba(0,0,0,0.6),
    0 0 20px rgba(255,255,255,0.05);
  transform: translateY(-6px) rotate(-2deg) scale(1.08);

}
.team-card:nth-child(even):hover {
    box-shadow:
    0 15px 40px rgba(0,0,0,0.6),
    0 0 20px rgba(255,255,255,0.05);
  transform: translateY(-6px) rotate(2deg) scale(1.08);
}

.team-avatar{
  width: 120px;
  height: 120px;
  border-radius: 50%;

  object-fit: cover;
  object-position: center;  /* ✅ come nel design */

  margin: 0 0 10px;
}
.avatar-wrap{
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 10px;
}

.avatar-wrap img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-wrap.avatar-nicknet img{
  object-position: 50% -40%;   /* più su */
  transform: scale(1.9);     /* zoom per far vedere la faccia */
}


.team-name{
  font-family: "bebasbold", sans-serif;
  color: #ffd200;
  font-size: 26px;
  letter-spacing: 1px;
  line-height: 1;
}

.team-role{
  font-family: "bebasbold", sans-serif;
  color: #ffd200;
  font-size: 16px;
  margin-top: 6px;
  letter-spacing: 1px;
  opacity: 0.95;
}

/* ultimo blocco un po' più “chiuso” come nel mock */
.team-section--last{
  padding-bottom: 80px;
}

/* responsive */
@media (max-width: 900px){
  .team-section-title{ font-size: 48px; }
  .team-title{ font-size: 54px; }

  .team-grid--3{ grid-template-columns: repeat(2, 240px); }
}

@media (max-width: 560px){
  .team-grid{ padding: 0 20px; }
  .team-grid--3,
  .team-grid--2{ grid-template-columns: 240px; }
}
