
/* .container {
  position: relative;
  margin-top: 100px;
  width: 100%;
  text-align: center;
} */

.block {
  width: 10%;
  height: 585px;
  display: inline-block;
  background-color: #0C111F;
  cursor: pointer;
  position: relative;
  -webkit-transition: width .5s ease-in-out, background-color .5s ease-in-out;
  -moz-transition: width .5s ease-in-out, background-color .5s ease-in-out;
  -ms-transition: width .5s ease-in-out, background-color .5s ease-in-out;
  -o-transition: width .5s ease-in-out, background-color .5s ease-in-out;
  transition: width .5s ease-in-out, background-color .5s ease-in-out;
  text-align: center;
}

.block:hover {
  background-color: #2274A5;
  width: 50%;
  -webkit-transition: width .5s ease-in-out, background-color .5s ease-in-out;
  -moz-transition: width .5s ease-in-out, background-color .5s ease-in-out;
  -ms-transition: width .5s ease-in-out, background-color .5s ease-in-out;
  -o-transition: width .5s ease-in-out, background-color .5s ease-in-out;
  transition: width .5s ease-in-out, background-color .5s ease-in-out;
}

.block .img-p { /* NEW STUFF */
  opacity: 1;
  -webkit-transition: opacity .5s .51s ease-in-out;
  -moz-transition: opacity .5s .51s ease-in-out;
  -ms-transition: opacity .5s .51s ease-in-out;
  -o-transition: opacity .5s .51s ease-in-out;
  transition: opacity .5s .51s ease-in-out;
}

.block:hover .img-p {
  opacity: 1;
  -webkit-transition: opacity .5s .51s ease-in-out;
  -moz-transition: opacity .5s .51s ease-in-out;
  -ms-transition: opacity .5s .51s ease-in-out;
  -o-transition: opacity .5s .51s ease-in-out;
  transition: opacity .5s .51s ease-in-out;
}

.block:hover .layer {
  opacity: .5;
  -webkit-transition: opacity .5s ease-in-out;
  -moz-transition: opacity .5s ease-in-out;
  -ms-transition: opacity .5s ease-in-out;
  -o-transition: opacity .5s ease-in-out;
  transition: opacity .5s ease-in-out;
}

.img-p {
  position: absolute;
  font-size: 12px;
  opacity: 0;
  color: #FFF;
  text-align: left;
  line-height: 1.6em;
}

.p-container {
  width: 80%;
  position: relative;
  top: 30%;
  margin-left: 5%;
}

.image {
  /* background-image: url("../img/servicos/servico1.png"); */

  background: -moz-linear-gradient(bottom, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.65) 100%), url("../img/servicos/servico1.png");
  background: -webkit-gradient(linear, left bottom, left top, color-stop(0%, rgba(0, 0, 0, 0.65)), color-stop(60%, rgba(0, 0, 0, 0)), color-stop(100%, rgba(0, 0, 0, 0.65))), url("../img/servicos/servico1.png");
  background: -webkit-linear-gradient(bottom, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.65) 100%), url("../img/servicos/servico1.png");
  background: -o-linear-gradient(bottom, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.65) 100%), url("../img/servicos/servico1.png");
  background: -ms-linear-gradient(bottom, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.65) 100%), url("../img/servicos/servico1.png");
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.65) 100%), url("../img/servicos/servico1.png");

  -webkit-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}

.image.fixed {
  background-attachment: fixed;
  background-position: center center;
  -webkit-background-size: 100% auto;
  -o-background-size: 100% auto;
  background-size: 100% auto;
}

.image2 {
  background: -moz-linear-gradient(bottom, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.65) 100%), url("../img/servicos/servico2.png");
  background: -webkit-gradient(linear, left bottom, left top, color-stop(0%, rgba(0, 0, 0, 0.65)), color-stop(60%, rgba(0, 0, 0, 0)), color-stop(100%, rgba(0, 0, 0, 0.65))), url("../img/servicos/servico2.png");
  background: -webkit-linear-gradient(bottom, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.65) 100%), url("../img/servicos/servico2.png");
  background: -o-linear-gradient(bottom, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.65) 100%), url("../img/servicos/servico2.png");
  background: -ms-linear-gradient(bottom, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.65) 100%), url("../img/servicos/servico2.png");
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.65) 100%), url("../img/servicos/servico2.png");

  -webkit-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}

.image2.fixed {
  background-attachment: fixed;
  background-position: center center;
  -webkit-background-size: 100% auto;
  -o-background-size: 100% auto;
  background-size: 100% auto;
}

.image3 {
  background: -moz-linear-gradient(bottom, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.65) 100%), url("../img/servicos/servico3.png");
  background: -webkit-gradient(linear, left bottom, left top, color-stop(0%, rgba(0, 0, 0, 0.65)), color-stop(60%, rgba(0, 0, 0, 0)), color-stop(100%, rgba(0, 0, 0, 0.65))), url("../img/servicos/servico3.png");
  background: -webkit-linear-gradient(bottom, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.65) 100%), url("../img/servicos/servico3.png");
  background: -o-linear-gradient(bottom, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.65) 100%), url("../img/servicos/servico3.png");
  background: -ms-linear-gradient(bottom, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.65) 100%), url("../img/servicos/servico3.png");
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.65) 100%), url("../img/servicos/servico3.png");

  -webkit-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}

.image3.fixed {
  background-attachment: fixed;
  background-position: center center;
  -webkit-background-size: 100% auto;
  -o-background-size: 100% auto;
  background-size: 100% auto;
}

.image4 {
  background: -moz-linear-gradient(bottom, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.65) 100%), url("../img/servicos/servico4.png");
  background: -webkit-gradient(linear, left bottom, left top, color-stop(0%, rgba(0, 0, 0, 0.65)), color-stop(60%, rgba(0, 0, 0, 0)), color-stop(100%, rgba(0, 0, 0, 0.65))), url("../img/servicos/servico4.png");
  background: -webkit-linear-gradient(bottom, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.65) 100%), url("../img/servicos/servico4.png");
  background: -o-linear-gradient(bottom, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.65) 100%), url("../img/servicos/servico4.png");
  background: -ms-linear-gradient(bottom, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.65) 100%), url("../img/servicos/servico4.png");
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.65) 100%), url("../img/servicos/servico4.png");

  -webkit-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}

.image4.fixed {
  background-attachment: fixed;
  background-position: center center;
  -webkit-background-size: 100% auto;
  -o-background-size: 100% auto;
  background-size: 100% auto;
}

.layer {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  right: 0;
  /* background-color: #000; */
  width: 100%;
  height: 100%;
  opacity: 0;
}
 @media (max-width: 768px) {


.block {
  width: 100%;
  height: 300px;
  -webkit-transition: height .5s ease-in-out;
  -moz-transition: height .5s ease-in-out;
  -ms-transition: height .5s ease-in-out;
  -o-transition: height .5s ease-in-out;
  transition: height .5s ease-in-out;
}

.block:hover {
  width: 100%;
  height: 400px;
  -webkit-transition: height .5s ease-in-out;
  -moz-transition: height .5s ease-in-out;
  -ms-transition: height .5s ease-in-out;
  -o-transition: height .5s ease-in-out;
  transition: height .5s ease-in-out;
}
}
 @media (min-width: 768px) {

.block { width: 15%; }
}
 @media (min-width: 992px) {

.block { width: calc(100%/4 - 9%); }
}
