/* =========================
   fix team cards
   ========================= */

.team-card{
  padding:0;
  overflow:hidden;
}

.team-card .team-photo{
  width:100%;
  height:320px;
  margin:0;
  border-radius:0;
  border-top-left-radius:24px;
  border-top-right-radius:24px;
  background-position:center;
  background-size:cover;
  background-repeat:no-repeat;
}

.team-card h3{
  margin:20px 0 10px;
  padding:0 20px;
  font-size:1.12rem;
  line-height:1.15;
  text-transform:lowercase;
}

.team-card p{
  margin:0;
  padding:0 20px 22px;
  color:var(--muted);
  line-height:1.7;
  text-transform:lowercase;
}

/* immagini team più coerenti */
.team-photo.t1{
  background-image:
    linear-gradient(180deg, rgba(10,10,10,.03), rgba(10,10,10,.12)),
    url("../img/service-2.jpg");
}

.team-photo.t2{
  background-image:
    linear-gradient(180deg, rgba(10,10,10,.03), rgba(10,10,10,.12)),
    url("../img/service-5.jpg");
  background-position:center 32%;
}

.team-photo.t3{
  background-image:
    linear-gradient(180deg, rgba(10,10,10,.03), rgba(10,10,10,.12)),
    url("../img/gallery-7.jpg");
  background-position:center 42%;
}

@media (max-width: 820px){
  .team-card .team-photo{
    height:280px;
  }
}

@media (max-width: 640px){
  .team-card .team-photo{
    height:260px;
    border-top-left-radius:20px;
    border-top-right-radius:20px;
  }

  .team-card h3{
    margin:16px 0 8px;
    padding:0 16px;
  }

  .team-card p{
    padding:0 16px 18px;
  }
}
