.header{
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  padding: 10px 20px 5px;
  .logo{
    margin-right: 60px;
  }
  .menu{
    width: 700px;
    margin-top: -10px;
    padding: 0px 15px;
    border-top: 5px solid $color-sec;
    ul{
      display: inline-flex;
      justify-content: space-between;
      width: 100%;
      height: 55px;
      li{
        flex-grow: 1;
        margin: auto;
        a{
          display: block;
          position: relative;
          width: 100%;
          color: $color-main;
          font-size: 18px;
          font-weight: 500;
          text-align: center;
          text-transform: uppercase;
          transition:all ease .3s;
          &:before{
            content:'';
            position: absolute;
            top: 50%;
            right: 0;
            z-index: 1;
            transform: translateY(-50%);
            width: 1px;
            height: 14px;
            background: #acacac;
          }
          &:hover{
            color: #3b3130;
          }
        }
        &:last-child{
          a{
            &:before{
              display: none;
            }
          }
        }
      }
    }
    .menu-atendimentos{
      display:none;
    }
  }

  .menu-sec{
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 100%;
    left: 50%;
    z-index: 8;
    transform: translate(-50%, -50%);
    background: none;
    width: 100%;
    .sub{
      cursor: pointer;
      color: #ffffff;
      font-size: 18px;
      font-weight: bold;
      text-align: center;
      text-transform: uppercase;
      span{
        transition:all ease .3s;
        display: flex;
        justify-content: center;
        align-items: center;
        padding:0 25px;
        background: $color-main;
        position: relative;
        z-index:2;
        height: 65px;
        &:before{
          content:'';
          display: block;
          position: absolute;
          bottom: 0;
          left: 50%;
          z-index: 1;
          transform: translate(-50%, -10px) rotate(-45deg);
          width: 7px;
          height: 7px;
          border: solid #fff;
          border-width: 0 0 1px 1px;
        }
      }
      &.active{
        .submenu-sec{
          min-height: calc(100% + 250px);
          max-height: 71vh;
          height: auto;
          padding: 60px 0 0 0;
          .container{
            .grid{
              overflow: scroll;
              max-height: 65vh;
            }
          }
        }
      }
      // &:hover{
      //   .submenu-sec{
      //     min-height: calc(100% + 250px);
      //     max-height: 65vh;
      //     height: auto;
      //     padding: 30px 0 0 0;
      //     .container{
      //       .grid{
      //         overflow: scroll;
      //         max-height: 55vh;
      //       }
      //     }
      //   }
      // }
    }
  }

  .submenu-sec{
    display: flex;
    align-items: center;
    overflow: hidden;
    transition: .3s;
    position: absolute;
    top: 30px;
    left: 50%;
    transform:translate(-50%, 0);
    z-index: 0;
    width: 100%;
    height: 0;
    padding: 0 30px;
    background: #f6f6f6;
    cursor: default;
    .sb-emp{
      display: flex;
      padding-top: 30px;
      padding-bottom: 30px;
      border-top: 1px solid #cfcfcf;

      .sb-img{
        flex-shrink: 0;
        width: 155px;
        height: 120px;
        overflow: hidden;
        img{
          display: block;
          transition: all ease .3s;
        }
      }
      .sb-content{
        padding-left: 20px;
        text-align: left;
        .sb-title{
          margin-bottom: 12px;
          color: $color-main;
          font-size: 24px;
          text-transform: uppercase;
          transition: all ease .3s;
        }
        .sb-subtitle{
          margin-bottom: 15px;
          color: $color-sec;
          font-size: 16px;
          text-transform: uppercase;
        }
        .sb-itens{
          display: flex;
          .sb-item{
            display: flex;
            align-items: center;
            margin-right: 15px;
            .icon{
              margin-right: 2px;
            }
            p{
              color: $color-main;
              font-size: 18px;
            }
          }
        }
      }
      &:hover{
        .sb-img{
          img{
            transform: scale(1.2);
          }
        }
        .sb-content{
          .sb-title{
            color: $color-sec;
          }
        }
      }
    }
    .col-4{
      &:nth-child(1),
      &:nth-child(2),
      &:nth-child(3){
        .sb-emp{
          border-top-width: 0px;
        }
      }
    }

    [class*='col-']{
      &:nth-child(1n+4){
        .sb-emp{

          margin-bottom: 0px;
          border-bottom: 0px;
        }
      }
    }


  }
  .btn-toggle{
    display: none;
  }

  .fale{
    position: relative;
    padding: 20px;
    padding-left: 50px;
    &:before{
      content:'';
      display: block;
      position: absolute;
      top: 50%;
      left: 0;
      z-index: 1;
      transform: translateY(-50%);
      @include sprite($whatsapp-linear-blue);
    }
    p{
      width: 100%;
      font-size: 14px;
      font-weight: 400;
    }
    .fale-title{
      color: $color-main;
      font-size: 16px;
      font-weight: 500;
      text-transform: uppercase;
    }
  }

  @media(max-width: $width-mobile){
    width: 100%;
    padding-top:15px;
    padding-bottom:45px;
    .logo{
      position: relative;
      z-index: 9999;
      margin-right: 0;
    }
    .menu{
      position:absolute;
      top: 10px;
      left: 100%;
      width: 100%;
      box-sizing: border-box;
      background: #FFFFFF;
      z-index: 99;
      padding-top: 90px;
      padding-bottom: 80px;
      transition: all ease .3s;
      ul{
        display: flex;
        flex-wrap: wrap;
        height:auto;
        margin-bottom: 50px;
        li{
          width: 100%;
          a{
            text-align: left;
            padding: 20px 0;
            &:before{
              top:auto;
              bottom: 0;
              left: 0;
              right: 0;
              height: 1px;
              width: 100%;
              transform: none;
              background: rgba(0,0,0,.1);
            }
          }
        }
      }
      .menu-atendimentos{
        display:flex;
        flex-direction: column;
        .fa-item{
          box-sizing: border-box;
          padding: 30px 10px;
          position: relative;
          display: flex;
          flex-direction: row;
          align-items: center;
          margin: 0 1px;
          background: $color-sec;
          margin-bottom: 10px;
          .icon{
            margin:0 10px 0 0;
            transform: scale(.8);
          }
          p{
            color: #f0f0f0;
            font-size: 20px;
            font-weight: bold;
            text-align: center;
            text-transform: uppercase;
          }
          // &:hover{
          //   .icon-baloes-white{
          //     @include sprite($baloes-blue);
          //   }
          //   .icon-chaves-white{
          //     @include sprite($chaves-blue);
          //   }
          //   .icon-whatsapp-white{
          //     @include sprite($whatsapp-blue);
          //   }
          //   p{
          //     color:$color-main;
          //   }
          // }
        }
      }
    }
    .fale{
      background: #474747;
      padding-left: 20px;
      &:before{
        position:relative;
        @include sprite($whatsapp-white-linear);
      }
      p{
        display: none;
      }
    }
    .btn-toggle{
      display: block;
      position: relative;
      background: $color-main;
      padding: 20px;
      margin-left: -50px;
      z-index: 9999;
      &:before{
        content:'';
        display: block;
        position:relative;
        top: 50%;
        left: 0;
        z-index: 1;
        -webkit-transform: translateY(-50%);
        -moz-transform: translateY(-50%);
        -ms-transform: translateY(-50%);
        transform: translateY(-50%);
        @include sprite($menu-white);
      }
    }
    &.header-open{
      .menu{
        left: 0;
      }
      .btn-toggle{
        &:before{
          @include sprite($close-white);
        }
      }
    }
    .menu-sec{
      left: 0;
      right: 0;
      transform: translate(0,-50%);
      border-top: 4px solid $color-sec;
      background: $color-main;
      .sub{
        &.active{
          z-index:2;
        }
        span{
          font-size: 13px;
          height: 55px;
        }
      }
      a{
        margin: 0 auto;
        &.mcmv{
          display: none;
        }
      }
    }
    .submenu-sec{
      top: 0;
      left: 0;
      right: 0;
      width: 100%;
      transform: none;
      align-items: flex-start;
      top: 55px;
      height: 0;
      padding-top:0!important;
      .grid{
        height: 100%;
        max-height: 310px;
        overflow: scroll;
        .col-4{
          width: 100%;
          max-width: 100%;
          flex-basis: 100%;
          &:nth-child(2),
          &:nth-child(3){
            .sb-emp{
              border-top-width: 1px;
            }
          }
        }
      }
      .sb-emp{
        padding-bottom: 10px;
        margin-bottom: 15px;
        .sb-img{
          display: none;
        }
        .sb-content{
          width: 100%;
          padding-left: 0;
          .sb-title,
          .sb-subtitle{
            text-align: center;
            margin-bottom: 5px;
          }
          .sb-itens{
            display: none;
          }
        }
      }
    }
  }
  @media(max-width: 424px){
    .logo{
      margin: 0 -40px 0 -15px;
      transform: scale(.9);
    }
  }
  @media(max-width: 374px){
    .logo{
      margin: 0 -50px 0 -15px;
      transform: scale(.8);
    }
  }

  @media(max-width: 320px){
    .logo{
      margin: 0 -60px 0 -25px;
      transform: scale(.7);
    }
    .fale{
      transform: scale(.8);      
    }
    .btn-toggle{
      transform: scale(.8);      
    }
  }
}
