#equipa{
  background-color: white;
  color: #252529;
}
#equipa span{
  color: #1264aa;
}
.header{
  position: relative;
  height: 300px;
  width: 100%;
}
.header{
  background: url(../img/equipa/equipa.jpg) no-repeat;
  background-position: center;
  background-size: cover;
}
.cards{
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
}
.card{
  position: relative;
  background-color: transparent;
  width: 300px;
  height: 300px;
  perspective: 1000px;
  margin: 2rem .5rem;
}
.card > p {
  z-index: 1;
  position: absolute;
  top: 0;
  bottom: 80%;
  left: 0;
  width: 100%;

  text-align: center;
  padding: 1rem;
  font-size: 1.5rem;
  font-weight: bold;
  color: #ed7a00;
}
.card-inner{
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.card-front, .card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
}
.card-front{
  background-color: #bbb;
  color: black;
}
.card-back{
  background-color: #1264aa;
  color: white;
  border-radius: 5px;
  transform: rotateY(180deg);
  padding-top: 4.5rem;
}
.card-back > p {
  color: white;
}
.card-back > p > i {
  margin: 0 .5rem;
}
.card:hover .card-inner{
  transform: rotateY(180deg);
}

.rotate{
  transform: none;
}
/* vendedores */
#c1{
  background: url(../img/equipa/tiagoramos.jpg) center/ cover;
}
#c2{
  background: url(../img/equipa/joaofrade.jpg) center/ cover;
}
#c3{
  background: url(../img/equipa/mariocananao.jpg) center/ cover;
}
#c4{
  background: url(../img/equipa/pedrorita.jpg) center/ cover;
}

.adm{
  border-top: 4px #ed7a00 solid;
}
.admt{
  border-top: 4px yellow solid;
}
.nh{
  border-top: 4px blue solid;
}
.ty{
  border-top: 4px red solid;
}
.out{
  border-top: 4px green solid;
}
.cards{
  border-top: 4px #1264aa solid;
}

/*cartoes de equipa */
.group{
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
}
.group > div{
  position: relative;
}
.group > div > h6{
  z-index: 2;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  font-weight: bold;
  font-size: 1.2rem;
  display: none;
  color: white;
  text-shadow: 2px 2px 4px #000000;
}

.group img{
  width: 150px;
  height: 150px;
}

.group > div:hover .desc{
  display: block;
}
.group > div:hover img{
  transition: all 0.6s ease;
  -webkit-filter: blur(5px); /* Safari 6.0 - 9.0 */
  filter: blur(5px);
}

.footer{
  padding: 1rem;
}


/* IE */
.card-front{
      -ms-display: none;
}
.card-back{
      -ms-transform: none;
}
.card:hover .card-inner{
      -ms-transform: none;
}

/* media */
@media(max-width: 700px) {

  .header{
    position: relative;
    height: auto;
    min-height: 150px;
  }

  .card{
    margin: 1rem 0;
  }

  .card:hover .card-inner{
    transform: none;
  }
  .card-back{
    display: none;
  }

  .group{
    align-items: center;
  }
  .group img{
    width: 100px;
    height: 100px;
  }
  .group > div > h6{
    font-size: .9rem;
  }

}
