/* para as ancoras de hiperligações */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* altura do seu header */
}

/*   MENU   */
.sub-menus-ers {
    transform: unset;
}
.ers-menu-box .menu {
  padding: 10px 0px !important;
}
.ers-search-new {
  padding-top: 30px;
  display: flex;
}
.ers-logo-box-logo img {
  height: 75px;
  margin-top: 10px;
  margin-bottom: 10px;
}
.ers-menu-box{
    background-color:#ececec;
}
.pesquisa-prestadores-new {
  color: gray !important;
  /*display: flex;*/
  position: relative;
  margin-top: 10px;
  float: right;
  background-color: #f3f3f3;
  border: 0px;
  font-size: 13px;
  border-radius: 10px;
  padding: 4px 7px 2px 7px;
}
.botao-area-privada {
  background-color: #E4002B;
  color: #fff !important;
  border: 0px;
  border-radius: 100px;
  outline: none;
  font-size: 14px;
  transition: .14s ease-out;
  padding: 5px 10px 5px 10px !important;
  cursor: pointer;
  display: flex;
  width: 100px;
  float: right;
  margin-top: 10px;
}
.pesquisa-prestadores-new .ers-plus {
  padding-left: 4px;
  margin-top: -2px;
}
/*   END MENU    */


.container-boxs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    height: 80vh;
    box-shadow: rgba(0, 0, 0, 0.45) 0px 25px 20px -20px;
}
.box {
    position: relative;
    background-size: cover;
    background-position: center;
    height: 99.5%;
    overflow: hidden;
    margin: 1px;
}
.box h1{
    font-size: 30px;
    letter-spacing: 2px;
    font-weight: 300;
}
.box h2{
  font-size: 18px;
  font-weight: 400;
  margin-top: 15px;
  letter-spacing: 1px;
}

.box:nth-child(1) {
    background-image: url('/media/2pzhgkwc/bg-prestadores.jpg');
}

.box:nth-child(2) {
    background-image: url('/media/slohxvbb/bg-utentes.jpg');
}

.box:nth-child(3) {
    background-image: url('/media/cmqhu4an/bg-institucional.jpg');
}

.box:nth-child(4) {
    background-image: url('/media/3xvcorcc/atividadesbanner.jpg');
}

.icon-box{
        height: 100px;
}

.overlay h2 {
    font-size: 24px;
}

.box a{
    border: 1px solid #fff;
  border-radius: 50px;
  font-size: 12px;
  padding: 2px 30px;
  color: #fff !important;
  font-weight: 300;
  position: absolute;
  bottom: 30px;
}

.box:hover .overlay {
    background-color: rgba(0, 0, 0, 0.7);
}
/*   BOX 1     */
.overlay-box-1 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(228, 0, 43, 0.7);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    transition: background-color 0.3s ease;
}
.box:hover .overlay-box-1 {
    background-color: rgba(228, 0, 43, 0.9);
    cursor: pointer;
}
/*   BOX 2     */
.overlay-box-2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    transition: background-color 0.3s ease;
}
.box:hover .overlay-box-2 {
    background-color: rgba(0, 0, 0, 0.8);
    cursor: pointer;
}
/*   BOX 3     */
.overlay-box-3 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 197, 255, 0.5);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    transition: background-color 0.3s ease;
}
.box:hover .overlay-box-3 {
    background-color: rgba(0, 197, 255, 0.8);
    cursor: pointer;
}
/*   BOX 4     */
.overlay-box-4 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    transition: background-color 0.3s ease;
}
.box:hover .overlay-box-4 {
    background-color: rgba(0, 0, 0, 0.8);
    cursor: pointer;
}
.box-destaques-home:hover{
cursor:pointer;
}
.box-destaques-home:hover img{
    -webkit-transform: scale(1.2);
-ms-transform: scale(1.2);
transform: scale(1.2);
transform: rotate(315deg);
transition-duration: 350ms;
}

.box-destaques-home:nth-child(1) {
  border-right-color: #d1d1d1;
  border-right-style: solid;
  border-right-width: 5px;
  padding-left: 0;
}
.box-destaques-home:nth-child(2) {
  padding-left: 30px;
  padding-right: 0;
}
.ers-titulo-destaques-new{
    font-size: 15px;
    font-weight: bold;
    font-family: Roboto;
    text-transform: uppercase;
    color: #E4002B !important;
    display: block;
    margin-bottom: 10px;
}
.ers-sumario-new{
    display: block;
  padding-bottom: 20px;
}
.ers-sumario-new p {
  text-align: justify;
}
.ers-destaque-plus-new {
  float: right;
  margin-right: 10px;
  margin-top: -10px;
  font-weight: bold !important;
  text-transform: uppercase;
  font-size: 12px;
  font-family: Roboto !important;
  position: absolute;
  bottom: 0;
  right: 15px;
}
.ers-data-new{
    position: absolute;
  bottom: 0;
  font-weight: bold;
  font-size: 12px;
}
.ers-destaque-box-new {
  background-color: none;
  padding: 0px 15px 0px 0px;
  border-radius: 30px;
  margin-bottom: 0;
  height: auto;
}
.box-destaques-home-estudos {
  background-color: #d2d2d2;
  border-right-color: #ececec;
  border-right-style: solid;
  border-right-width: 5px;
  margin-top: 50px;
  padding: 30px !important
}
.box-destaques-home-supervisoes {
  margin-left: 0px;
  background-color: #d2d2d2;
  padding: 30px !important;
  margin-top: 50px;
}
.ers-destaque-box-new2 .ers-titulo{
    display:block;
}
.ers-destaque-box-new2 .ers-sumario p {
  text-align: justify;
  color:#737475;
}




.box-style-link {
  cursor: pointer;
}
.box-style-link:after, .box-style-link:before {
  content: " ";
  width: 10px;
  height: 10px;
  position: absolute;
  border: 0px solid #fff;
  transition: all 1s;
}
.box-style-link:after {
  top: -1px;
  left: -1px;
  border-top: 2px solid #9f9f9f;
  border-left: 2px solid #9f9f9f;
}
.box-style-link:before {
  bottom: -1px;
  right: -1px;
  border-bottom: 2px solid #9f9f9f;
  border-right: 2px solid #9f9f9f;
}
.box-style-link:hover {
  border-top-right-radius: 0px;
  border-bottom-left-radius: 0px;
}
.box-style-link:hover:before, .box-style-link:hover:after {
  width: 100%;
  height: 100%;
}






/* Responsive design */
@media (max-width: 1200px) {
    .container-boxs {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
    }
    
    .icon-box{
        height: 100px;
    }

    .overlay h2 {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .container-boxs {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 1fr);
        margin-top: 64px;
    }
    
    .icon-box{
        height: 80px;
    }

    .overlay h2 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .container-boxs {
        margin-top: 64px;
    }
    
    .icon-box{
        height: 45px;
    }

    .overlay h2 {
        font-size: 18px;
    }
    
    .box h1{
        font-size: 22px;
        letter-spacing: 2px;
        font-weight: 300;
    }
    .box h2{
      font-size: 15px;
      font-weight: 400;
      margin-top: 10px;
      letter-spacing: 1px;
      margin-bottom: 0px;
    }
    .box a{
      border: 1px solid #fff;
      border-radius: 50px;
      font-size: 12px;
      padding: 1px 11px;
      color: #fff !important;
      font-weight: 300;
      position: absolute;
      bottom: 10px;
    }
    .box-destaques-home:nth-child(1) {
      border-right-color: none;
      border-right-style: none;
      border-right-width: none;
      padding-left: 0;
      margin-bottom:40px;
    }
    .box-destaques-home:nth-child(2) {
      padding-left: 30px;
      padding-right: 0;
    }
    .ers-destaque-box-new2{
        padding:0px 20px;
    }
}