.team-reparto-section {
  width: 100%;
  padding-bottom: 5.625rem;
}

.team-reparto-title {
  margin-bottom: 3rem;
}

.team-reparto-grid {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 5rem;
  column-gap: 2rem;
  width: 100%;
}

@media (min-width: 768px) {
  .team-reparto-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 5rem;
    column-gap: 2rem;
  }
}

@media (min-width: 1024px) {
  .team-reparto-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.team-card-link {
  position: absolute;
  inset: 0;
  display: block;
  text-decoration: none;
  z-index: 2;
}

.team-card {
  position: relative;
  height: 400px;
  width: 100%;
  max-width: 450px;
  margin-inline: auto;
  text-align: center;
  font-family: 'DM Sans', sans-serif;
}

.team-card-bg {
  position: absolute;
  inset: 0;
  border-radius: 20.44px;
  background: #fdfdfd;
}

.team-card img {
  position: absolute;
  top: 2.5%;
  left: 2.5%;
  width: 95%;
  height: 95%;
  object-fit: cover;
  border-radius: 20.44px;
  box-shadow: 0 0 24.53px rgba(0, 0, 0, 0.3);
  transition: all 0.4s ease;
}

.team-card:hover img {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.team-card-label {
  position: absolute;
  top: calc(50% + 151.77px);
  left: calc(50% - 154.1px);
  z-index: 1;
  width: 308.2px;
  border-radius: 16.35px;
  background: linear-gradient(#fdfdfd, #fdfdfd) padding-box,
    linear-gradient(180deg, #4bb8a9, #5c285f) border-box;
  border: 2px solid transparent;
  padding: 8.2px 16.4px;
  box-sizing: border-box;
}

.team-card-role {
  font-size: 1.125rem;
  font-weight: 600;
  color: #a6487b;
  line-height: 1.0625rem;
  display: block;
}

.team-card-name {
  font-family: 'Aleo', Georgia, serif;
  font-size: 1.375rem;
  color: #22181c;
  line-height: 1;
  display: block;
  margin-top: 1rem;
}

@media (max-width: 767px) {
  .team-reparto-section {
    padding-bottom: 3.75rem;
  }

  .team-reparto-grid {
    row-gap: 5rem;
    column-gap: 2rem;
  }

  .team-card {
    height: 380px;
  }

  .team-card-bg {
    border-radius: 14px;
  }

  .team-card img {
    border-radius: 14px;
  }

  .team-card-label {
    left: calc(50% - 150px);
    width: 300px;
  }

  .team-card-role {
    font-size: 1rem;
  }

  .team-card-name {
    font-size: 1.125rem;
  }
}
