/* Modal */
/* Mobile */
.modal {
  display: none;
}

.modal-mobile {
  display: flex;
}

.modal-mobile img {
  width: 100%;
  z-index: 2000;
}

.btn-close-mobile {
  background: #428bca;
  border: #357ebd solid 1px;
  border-radius: 3px;
  color: #fff;
  display: inline-block;
  font-size: 14px;
  padding: 8px 15px;
  text-decoration: none;
  text-align: center;
  min-width: 60px;
  position: relative;
  transition: color 0.1s ease;
}
.btn:hover {
  background: #357ebd;
}
.btn.btn-big {
  font-size: 18px;
  padding: 15px 20px;
  min-width: 100px;
}
.btn-close-mobile {
  color: white;
  font-size: 30px;
  text-decoration: none;
  position: absolute;
  right: 5px;
  top: 0;
}
.btn-close-mobile:hover {
  color: #919191;
}
.modal-mobile:target:before {
  display: none;
}
.modal-mobile:before {
  content: "";
  display: block;
  background: rgba(0, 0, 0, 0.6);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1700;
}
.modal-mobile .modal-dialog-mobile {
  background: rgba(250, 250, 250, 0);
  position: fixed;
  left: 10%;
  transform: translateX(-50%);
  z-index: 2000;
  width: 80%;
  -webkit-transform: translate(0, 0);
  -ms-transform: translate(0, 0);
  transform: translate(0, 0);
  -webkit-transition: -webkit-transform 0.3s ease-out;
  -moz-transition: -moz-transform 0.3s ease-out;
  -o-transition: -o-transform 0.3s ease-out;
  transition: transform 0.3s ease-out;
  top: 15%;
}
.modal-mobile:target .modal-dialog-mobile {
  top: -100%;
  -webkit-transform: translate(0, -500%);
  -ms-transform: translate(0, -500%);
  transform: translate(0, -500%);
}
.modal-body-mobile {
  padding: 20px;
}
.modal-header-mobile,
.modal-footer-mobile {
  padding: 10px 20px;
}

/* Desktop */
@media screen and (min-width: 360px) {
  .modal-mobile {
    display: none;
  }

  .modal {
    display: flex;
  }

  .modal img {
    width: 100%;
    z-index: 2000;
  }

  .btn-close {
    background: #428bca;
    border: #357ebd solid 1px;
    border-radius: 3px;
    color: #fff;
    display: inline-block;
    font-size: 14px;
    padding: 8px 15px;
    text-decoration: none;
    text-align: center;
    min-width: 60px;
    position: relative;
    transition: color 0.1s ease;
  }
  .btn:hover {
    background: #357ebd;
  }
  .btn.btn-big {
    font-size: 18px;
    padding: 15px 20px;
    min-width: 100px;
  }
  .btn-close {
    color: white;
    font-size: 30px;
    text-decoration: none;
    position: absolute;
    right: 5px;
    top: 0;
  }
  .btn-close:hover {
    color: #919191;
  }
  .modal:target:before {
    display: none;
  }
  .modal:before {
    content: "";
    display: block;
    background: rgba(0, 0, 0, 0.6);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1700;
  }
  .modal .modal-dialog {
    background: rgba(250, 250, 250, 0);
    position: fixed;
    left: 10%;
    transform: translateX(-50%);
    z-index: 2000;
    width: 80%;
    -webkit-transform: translate(0, 0);
    -ms-transform: translate(0, 0);
    transform: translate(0, 0);
    -webkit-transition: -webkit-transform 0.3s ease-out;
    -moz-transition: -moz-transform 0.3s ease-out;
    -o-transition: -o-transform 0.3s ease-out;
    transition: transform 0.3s ease-out;
    top: 15%;
  }
  .modal:target .modal-dialog {
    top: -100%;
    -webkit-transform: translate(0, -500%);
    -ms-transform: translate(0, -500%);
    transform: translate(0, -500%);
  }
  .modal-body {
    padding: 20px;
  }
  .modal-header,
  .modal-footer {
    padding: 10px 20px;
  }
}
/* Fim do Modal */

/* Parte 1 - Banner Animado - Mobile */
.main1 {
  height: 70vh;
  width: 100%;
  max-width: 150%;
  position: relative;
  z-index: 15;
  margin-top: -30px;
  margin-bottom: 0;
  padding-bottom: 0;
}

@media screen and (max-width: 360px) {
  .main1 {
    margin-top: -10px;
  }
}

.d1 {
  position: absolute;
  background-color: rgba(0, 0, 0, 0.5);
  height: 13vh;
  width: 24vw;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9;
  animation: dd1 15s 1;
  animation-delay: 10 4s, 14s;
  animation-iteration-count: infinite;
}

.d1 img {
  position: relative;
  float: right;
  margin-right: 5px;
  height: 7vw;
  top: 50%;
  transform: translateY(-50%);
}

.d2 {
  position: absolute;
  background-image: url(/Imagens/banner2.jpg);
  background-size: 900px;
  background-repeat: no-repeat;

  height: 45vh;
  width: 100%;

  background-position: -50vw 50%;
  left: 0vw;

  top: 50%;
  transform: translateY(-50%);
  z-index: 8;
  animation: dd2 10s 2;
  animation-delay: 4s;
}
.d3 {
  position: absolute;
  background-image: url(/Imagens/banner2.jpg);
  background-size: 900px;
  background-repeat: no-repeat;

  height: 55vh;
  width: 50vw;
  left: 25vw;
  box-shadow: 0px 0px 25px rgba(0, 0, 0, 0.8);
  background-position: -75vw 50%;

  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  animation: dd3 10s 2;
  animation-delay: 4s;
}

@keyframes dd1 {
  0% {
    width: 24vw;
  }
  10% {
    width: 24vw;
  }
  20% {
    width: 24vw;
  }
  50% {
    width: 100%;
  }
  75% {
    width: 20vw;
  }
  100% {
    width: 24vw;
  }
}

@keyframes dd2 {
  0% {
  }
  50% {
    background-position: -30vw 50%;
  }
}

@keyframes dd3 {
  0% {
  }
  50% {
    background-position: -55vw 50%;
  }
}

/* Parte 1 - Banner Animado - Desktop */
@media screen and (min-width: 768px) {
  .main1 {
    margin-top: 50px;
  }

  .d1 {
    top: 50%;
    height: 10vh;
  }

  .d1 img {
    height: 90px;
  }

  .d2 {
    position: absolute;
    background-image: url(/Imagens/banner2.jpg);
    background-size: 2000px;
    background-repeat: no-repeat;

    height: 60vh;
    width: 100%;

    background-position: 0vw 50%;
    left: 0vw;

    top: 50%;
    transform: translateY(-50%);
    z-index: 8;
    animation: dd2 10s 2;
    animation-delay: 4s;
  }

  .d3 {
    height: 70vh;
    top: 50%;
    background-position: -25vw 50%;
    background-size: 2000px;
  }

  @keyframes dd2 {
    0% {
    }
    50% {
      background-position: -5vw 50%;
    }
  }

  @keyframes dd3 {
    0% {
    }
    50% {
      background-position: -30vw 50%;
    }
  }
}

/* Parte 2 - Serviços - Mobile */
.container1 .card1 {
  position: relative;
  cursor: pointer;
  margin-top: -60px;
}

@media screen and (max-width: 320px) {
  .container1 .card1 {
    margin-top: -40px;
  }
}
@media screen and (max-width: 768px) {
  .container1 .card1 {
    margin-top: -10px;
  }
}
@media screen and (max-width: 360px) {
  .container1 .card1 {
    margin-top: -20px;
  }
}

.container1 .card1 .face {
  width: 70%;
  height: 200px;
  transition: 0.5s;
  left: 15%;
}

.container1 .card1 .face.face1 {
  position: relative;
  background: #78a4c7;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
  transform: translateY(100px);
}

.container1 .card1:hover .face.face1 {
  background: #31608f;
  transform: translateY(0);
}

.container1 .card1 .face.face1 .content {
  transition: 0.5s;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.container1 .card1:hover .face.face1 .content {
  opacity: 1;
}

.container1 .card1 .face.face1 .content img {
  max-width: 100px;
}

.container1 .card1 .face.face1 .content h3 {
  margin: 0;
  padding: 0;
  color: #fff;
  text-align: center;
  font-size: 1.5em;
}

.container1 .card1 .face.face2 {
  position: relative;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  transform: translateY(-100px);
}

.container1 .card1:hover .face.face2 {
  transform: translateY(0);
}

.container1 .card1 .face.face2 .content p {
  margin: 0;
  padding: 0;
  font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
}

/* .container1 .card1 .face.face2 .content a {
  margin: 15px 0 0;
  display: inline-block;
  text-decoration: none;
  font-weight: 900;
  color: black;
  padding: 5px;
  border: 1px solid white;
}

.container1 .card1 .face.face2 .content a:hover {
  background: #31608f;
  color: #fff;
} */

.botao_servicos {
  background: none;
  font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
  cursor: pointer;
  font-size: 16px;
  margin: 15px 0 0;
  display: inline-block;
  text-decoration: none;
  font-weight: 900;
  color: black;
  padding: 5px;
  border: 1px solid white;
}

.botao_servicos:hover {
  background: #31608f;
  color: white;
  border-radius: 10px;
}

@media screen and (max-width: 321px) {
  .container1 .card1 .face.face2 .content p {
    font-size: 12px;
  }

  .content button {
    display: none;
  }
}

/* Parte 2 - Serviços - Desktop */
@media screen and (min-width: 990px) {
  .container1 {
    width: 100%;
    margin: 120px auto 0px auto;
    display: flex;
    justify-content: center;
  }

  .container1 .face {
    max-width: 500px;
  }
}

/* Parte 3 - Profissionais - Mobile */
.container2 {
  display: flex;
  justify-content: center;
}

@keyframes zoom {
  from {
    object-position: 0 50%;
  }
  to {
    object-position: 100% 50%;
  }
}

.menu {
  grid-area: menu;
  align-self: end;
}

.menu__list {
  text-align: center;
}

.menu__item {
  position: relative;
  display: inline-block;
  padding: 10px 20px;
  font-size: var(--fontMedium);
  font-weight: var(--fontRegular);
  text-transform: uppercase;
  color: white;
  cursor: pointer;
  -webkit-transition: all var(--speed) ease;
  transition: all var(--speed) ease;
}

.menu__item::after {
  content: "";
  display: block;
  width: 0;
  height: 2px;
  margin-top: 6px;
  background: rgba(100, 100, 250, 1);
  -webkit-transition: all var(--speed) ease;
  transition: all var(--speed) ease;
}

.menu__item:hover {
  color: rgba(150, 150, 255, 1);
}
.menu__item.active {
  color: rgba(100, 100, 250, 1);
}

.menu__item.active::after {
  width: 100%;
}

.card {
  position: relative;
  grid-area: card;
  align-self: center;
  justify-self: center;
  overflow: hidden;
  display: block;
  width: 100%;
  max-width: 350px;
  height: 400px;
  margin: 60px auto;
  font-size: var(--fontOrigin);
  border-radius: 8px;
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  -webkit-transition: all var(--speed) ease;
  transition: all var(--speed) ease;
}
.card h3 {
  font-family: "franklin-gothic-heavy";
}

.card:hover {
  box-shadow: 0 40px 130px rgba(0, 0, 0, 0.6);
  -webkit-transform: scale(1.1, 1.1);
  transform: scale(1.1, 1.1);
}

.card__save {
  position: absolute;
  top: 10px;
  right: 10px;
  display: block;
  width: 35px;
  height: 35px;
  background: transparent;
  border: 0;
  opacity: 0;
  border-radius: 3px;
  -webkit-transition: all var(--speed) ease;
  transition: all var(--speed) ease;
}

.card__save:focus {
  outline: 0;
  background-color: rgba(255, 255, 255, 0);
}

.card:hover .card__save {
  opacity: 0.6;
}

.card__save i {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  -webkit-transition: all var(--speed) ease;
  transition: all var(--speed) ease;
}

.card__save:hover i {
  color: rgba(255, 255, 255, 0.8);
}

.card__save:active,
.card__save.active {
  opacity: 1 !important;
}

.card__save:active i,
.card__save.active i {
  color: white;
}

.card__image {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  overflow: hidden;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0.5));
}

.card__image img {
  -webkit-transform: scale(1.3, 1.3);
  transform: scale(1.3, 1.3);
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  -webkit-transition: all var(--speed) ease;
  transition: all var(--speed) ease;
  animation-name: zoom;
  animation-duration: 20s;
  animation-direction: alternate;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.card:hover .card__image img {
  -webkit-transform: scale(1, 1);
  transform: scale(1, 1);
  opacity: 0.5;
}

.card__header {
  opacity: 0;
  display: grid;
  width: 100%;
  height: 200px;
}

.card__profile {
  align-self: center;
  justify-self: center;
  display: block;
  overflow: hidden;
  width: 10vmax;
  height: 10vmax;
  max-width: 100px;
  max-height: 100px;
  border-radius: 50%;
}

.card__profile img {
  -webkit-transform: scale(1.5, 1.5) translateZ(0);
  transform: scale(1.5, 1.5) translateZ(0);
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  -webkit-filter: grayscale(50%) contrast(75%) brightness(1.3);
  filter: grayscale(50%) contrast(75%) brightness(1.3);
  -webkit-transition: all var(--speed) ease;
  transition: all var(--speed) ease;
  mix-blend-mode: normal;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.card:hover .card__profile img {
  -webkit-transform: scale(1, 1) translateZ(0);
  transform: scale(1, 1) translateZ(0);
}

.card__body {
  display: grid;
  padding: 0 20px;
  text-align: center;
}

.card__name {
  z-index: 2;
  align-self: center;
  justify-self: center;
  margin-bottom: 2px;
  color: white;
  font-size: 20px;
  letter-spacing: 0.1rem;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  /* background: -webkit-linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.4)); */
  /* -webkit-text-fill-color: transparent; */
  -webkit-transition: all 1s ease;
  transition: all 1s ease;
}

.card__bio {
  position: relative;
  -webkit-transform: translateY(30%);
  transform: translateY(30%);
  display: block;
  margin: 22px 0 16px 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 1);
  opacity: 0;
  -webkit-transition: all 0.5s ease;
  transition: all 0.5s ease;
}

.card:hover .card__bio {
  -webkit-transform: translateY(0);
  transform: translateY(0);
  opacity: 1;
}

/* Parte 3 - Profissionais - Desktop */
@media screen and (min-width: 768px) {
  .container3 {
    display: flex;
    justify-content: center;
  }

  .card {
    margin: 60px 30px;
  }
}

/* Parte 4 - Artigos - Mobile */
.artigos {
  width: 95%;
  padding: 0;
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  margin: auto;
}

.artigos img {
  transition: all 0.5s ease;
}

.mini-artigos img:hover,
.mega-artigos img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.35);
}

.chamada-artigos {
  margin: 0;
  padding: 0;
  padding-bottom: 0;
  order: 1;
  justify-content: center;
  text-align: center;
  align-items: center;
}

.chamada-artigos img {
  width: 100%;
  margin-bottom: 0px;
}

.mini-artigos {
  display: flex;
  width: calc(100% - 4px);
  order: 2;
}

.mini-artigos img {
  width: 100%;
  cursor: pointer;
}

.mini-artigos-1 {
  margin-right: 2px;
  margin-bottom: 2px;
  width: 100%;
}

.mini-artigos-2 {
  width: 100%;
}

.mega-artigos {
  margin-top: 5px;
  order: 3;
}

.mega-artigos img {
  width: calc(100% - 5px);
  cursor: pointer;
}

/* Parte 4 - Artigos - Mobile */
@media screen and (min-width: 768px) {
  .artigos {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-rows: repeat(2, minmax(40px, auto));
    grid-gap: 0em;
    grid-template-areas:
      "a a b b"
      "a a d d";
    width: 90%;
    margin: auto;
  }

  .mega-artigos {
    grid-area: a;
    order: 1;
    margin: 0;
    width: calc(100% - 5px);
  }

  .mega-artigos img {
    width: 100%;
    margin: 0;
  }

  .chamada-artigos {
    order: 3;
    width: auto;
    grid-area: d;
    margin: 0;
    bottom: 0;
    width: calc(100% - 6px);
  }

  .chamada-artigos img {
    margin-top: -2px;
  }

  .mini-artigos {
    order: 2;
    width: 100%;
    grid-area: b;
    margin: 0;
  }

  .mini-artigos img {
    width: 98%;
    margin: 0;
  }
}

/* Parte 5 - Depoimentos */
.row {
  margin-bottom: 50px;
}
.testimonial {
  border: 10px solid #b3b3b3;
  padding: 40px 0 25px 0;
  margin: 50px;
  text-align: center;
  position: relative;
  background-color: rgba(255, 255, 255, 0.8);
}
.testimonial:before {
  content: "\f10d";
  font-family: "Font Awesome 5 Free";
  width: 60px;
  height: 60px;
  line-height: 60px;
  background: white;
  margin: 0 auto;
  font-size: 40px;
  font-weight: 900;
  color: rgb(223, 24, 24);
  position: absolute;
  top: -35px;
  left: 0;
  right: 0;
}
.testimonial .title {
  padding: 7px 0;
  margin: 0 -30px 20px;
  border: 7px solid #fff;
  background: #31608f;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
}
.testimonial .title:before {
  content: "";
  border-top: 15px solid #b3b3b3;
  border-left: 15px solid transparent;
  border-bottom: 15px solid transparent;
  position: absolute;
  bottom: -37px;
  left: 0;
}
.testimonial .title:after {
  content: "";
  border-top: 15px solid #b3b3b3;
  border-right: 15px solid transparent;
  border-bottom: 15px solid transparent;
  position: absolute;
  bottom: -37px;
  right: 0;
}
.testimonial .post {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  text-transform: capitalize;
}
.testimonial .description {
  padding: 0 20px;
  margin: 0;
  font-size: 15px;
  color: rgb(71, 71, 71);
  letter-spacing: 1px;
  line-height: 23px;
}
.owl-theme .owl-controls {
  margin-top: 0;
}
.owl-theme .owl-controls .owl-buttons div {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 35px;
  background: red;
  color: #fff;
  border-radius: 0;
  margin-right: 5px;
  opacity: 1;
}
.owl-prev:before,
.owl-next:before {
  content: "\f060";
  font-family: "Font Awesome 5 Free";
  font-size: 20px;
  font-weight: 900;
}
.owl-next:before {
  content: "\f061";
}
@media only screen and (max-width: 1100px) {
  .testimonial {
    margin: 30px;
    
  }
  .testimonial .description {
    padding: 0 10px;
    font-size: 12px;
  }
}
