body:not(.home) {
  .navbar-default .navbar-nav>.active>a, .navbar-default .navbar-nav>.active>a:hover, .navbar-default .navbar-nav>.active>a:focus {
    background: transparent;
  }
}

.navbar {
  border: 0;
  padding: 0;
  border-radius: 3px;
  -webkit-box-shadow: 0 10px 20px -12px rgba(0, 0, 0, 0.42), 0 3px 20px 0 rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(0, 0, 0, 0.2);
  box-shadow: 0 10px 20px -12px rgba(0, 0, 0, 0.42), 0 3px 20px 0 rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(0, 0, 0, 0.2);

  >.container {
    transition: padding .1s ease;
    padding-top: 10px;
    padding-bottom: 10px;

    .navbar-brand {
      margin-left: 0;
    }
  }

  .navbar-right {
    margin-right: 0;
  }

  .navbar-nav {
    > li {
      margin: 0;
      > a {
        padding-top: 15px;
        padding-bottom: 15px;
        border-radius: 3px;
        color: inherit;
        text-transform: uppercase;
        &:hover, &:focus {
          color: inherit;
        }

        &:hover:before, &:focus:before {
          color: inherit;
          -webkit-transform: scaleX(1);
          -ms-transform: scaleX(1);
          transform: scaleX(1);
        }

        .fa {
          max-width: 20px;
        }

        &:not(.btn-just-icon) .fa {
          position: relative;
          top: 2px;
          margin-top: -4px;
          margin-right: 4px;
        }
      }
      a:hover {
        opacity: 1;
      }
      > a:not(.btn) .fa {
        position: relative;
        top: 0;
        margin-top: -3px;
        margin-right: 3px;
      }

      .dropdown-menu {
        margin-top: -5px;
      }

      &.btn {
        padding: 0 10px;

        > a {
          color: #fff;
        }

        a:hover:before, a:focus:before {
          -webkit-transform: scaleX(0);
          -ms-transform: scaleX(0);
          transform: scaleX(0);
        }
      }

      &:hover > .dropdown-menu {
        margin-top: 0;
      }
    }
    > li:not(.btn) {
      > a:before, .hestia-toggle-search:before {
        position: absolute;
        z-index: -1;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        border-radius: 3px;
        background-color: rgba(255, 255, 255, 0.1);
        content: "";
        -webkit-transition: all 300ms cubic-bezier(0.34, 0.9, 0.7, 1);
        -moz-transition: all 300ms cubic-bezier(0.34, 0.9, 0.7, 1);
        -o-transition: all 300ms cubic-bezier(0.34, 0.9, 0.7, 1);
        -ms-transition: all 300ms cubic-bezier(0.34, 0.9, 0.7, 1);
        transition: all 300ms cubic-bezier(0.34, 0.9, 0.7, 1);
        -webkit-transform: scaleX(0);
        -ms-transform: scaleX(0);
        transform: scaleX(0);
        -webkit-transform-origin: 50%;
        -ms-transform-origin: 50%;
        transform-origin: 50%;
      }

      &:hover {
        a:before, .hestia-toggle-search:before {
          color: inherit;
          -webkit-transform: scaleX(1);
          -ms-transform: scaleX(1);
          transform: scaleX(1);
        }
      }
    }

  }
  // .navbar-nav

  &:not(.hestia_center) .title-logo-wrapper {
    max-width: 250px;
  }

  .navbar-brand {
    padding: 0;
    position: relative;
    color: inherit;
    height: auto;

    img {
      width: auto;
      max-height: 50px;
    }

    p {
      margin-bottom: 0;
    }

    &:hover, &:focus {
      color: inherit;
      background-color: transparent;
    }
  }

  .navbar-toggle {
    float: right;
    border: 0;
    &:hover, &:focus {
      background-color: transparent;
    }
    .icon-bar {
      border: 1px solid;
    }
  }
  .navbar-header {
    float: left;
  }

  .navbar-collapse {
    border-top: none;
  }

  .btn {
    margin-top: 0;
    margin-bottom: 0;
    will-change: initial;
  }

  &.navbar-transparent {
    color: #fff;
    background-color: transparent;
    -webkit-box-shadow: none;
    box-shadow: none;

    .navbar-nav > .active > a {
      background: transparent;
      color: #fff;
    }

    >.container {
      padding-top: 25px;
    }
  }
}

.navbar {
  color: #555;
  background-color: #fff;
  -webkit-transition: none;
  transition: none;
  .navbar-nav > .active > a {
    background: transparent;
  }
  .dropdown-menu {
    border: 0;
    -webkit-box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26);
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26);
    border-radius: 3px !important;
    > .active > a {
      color: #333;
      background-color: transparent;
    }

    li {
      position: relative;
      &:hover > a {
        color: $color-rose;

        > i {
          opacity: .7;
        }
      }

      > a {
        color: #333;
        background-color: transparent;
        margin: 0 5px;
        padding: 10px;
        border-radius: 2px;
        -webkit-transition: all 150ms linear;
        transition: all 150ms linear;

        > i {
          position: relative;
          top: 1px;
          min-width: 30px;
          margin-right: 12px;
          opacity: .5;
          text-align: center;
        }

        .fa {
          position: relative;
          top: 1px;
          margin-top: -4px;
          margin-right: 12px;
          vertical-align: middle;
        }
      }
    }
  }
}

.navbar-fixed-top {
  border-radius: 0;
}

// Fix Bootstrap Navwalker
.dropdown-submenu {
  position: relative;

  >.dropdown-menu {
    display: none !important;
    top: 0;
    left: 100%;
    margin-top: -6px;
    margin-left: -1px;
  }
  &:hover {
    > .dropdown-menu {
      display: table !important;
    }
    > .dropdown-toggle .caret {
      border-left: 4px dashed;
      border-top: 4px solid transparent;
      border-bottom: 4px solid transparent;
    }
  }
}

.navbar.hestia_center {
  float: none !important;
  .navbar-collapse {
    text-align: center;
  }
  .navbar-header {
    display: block !important;
    text-align: center;
    padding-bottom: 10px;
    width: 100%;
    max-width: 100%;
  }
  .navbar-brand {
    float: none;
    > img {
        display: inherit;
    }
  }
}

// Navbar
.navbar {
  position: fixed;

  // Topbar activated
  &.header-with-topbar {
    &,
    &.hestia_center,
    &.hestia_right {
      position: absolute;
      top: 40px;
    }
  }

  // On scroll point
  &.navbar-scroll-point {
    &,
    &.header-with-topbar,
    &.hestia_center,
    &.hestia_right {
      position: fixed;
      top: 0;
    }
  }

  // Full screen menu
  &.full-screen-menu {
    &.header-with-topbar {
      position: absolute;
      top: 40px;
    }

    &.navbar-scroll-point {
      &,
      &.header-with-topbar {
        position: fixed;
        top: 0;
      }

      .header-sidebar-wrapper {
        display: none;
      }
    }
  }
}

body.admin-bar {
  .navbar {
    margin-top: 32px;
  }
}

.navbar-toggle {
  .icon-bar {
    transition: .3s ease;
    position: relative;
  }
  &[aria-expanded="true"] {
    .icon-bar:nth-child(1) {
      -webkit-transform: rotate(45deg);
      -moz-transform: rotate(45deg);
      -o-transform: rotate(45deg);
      transform: rotate(45deg);
      top: 6px;
    }

    .icon-bar:nth-child(2) {
      width: 0;
      opacity: 0;
    }

    .icon-bar:nth-child(3) {
      -webkit-transform: rotate(-45deg);
      -moz-transform: rotate(-45deg);
      -o-transform: rotate(-45deg);
      transform: rotate(-45deg);
      top: -6px;
    }
  }

  &[aria-expanded="false"] {
    .icon-bar:nth-child(1) {
      top: 0;
      -webkit-transform-origin: left center;
      -moz-transform-origin: left center;
      -o-transform-origin: left center;
      transform-origin: left center;
    }
    .icon-bar:nth-child(2) {
      top: 0;
      -webkit-transform-origin: left center;
      -moz-transform-origin: left center;
      -o-transform-origin: left center;
      transform-origin: left center;
    }
    .icon-bar:nth-child(3) {
      top: 0;
      -webkit-transform-origin: left center;
      -moz-transform-origin: left center;
      -o-transform-origin: left center;
      transform-origin: left center;
    }
  }
}

#main-navigation ul.nav > li{
  opacity: 1;
  transition: opacity .25s ease-in-out;
  -moz-transition: opacity .25s ease-in-out;
  -webkit-transition: opacity .25s ease-in-out;
  visibility: visible;
}

.search-submit-wrapper{
  width: 50px;
  display: table-cell;
  padding: 0;
  vertical-align: top;
  padding-left: 6px;
}

.search-field-wrapper{
  display: table-cell;
  width: 100%;
  padding: 0;
  vertical-align: bottom;
}

.hestia-nav-search {
  padding: 0 15px;
}

.full-screen-menu .hestia-nav-search {
  padding: 15px 0 0 15px;
  display: table;
  width: 100%;
}

.hestia-toggle-search{
  display: none;
}

.hestia-nav-search {
  .hestia-search-submit{
    padding: 10px 15px;
  }
}

.full-screen-menu {
  .hestia-nav-search {
    .hestia-search-submit {
      margin: 0;
    }
  }
}

.full-screen-menu .hestia-nav-search .form-control{
  width: 100%;
  margin: 0;
  vertical-align: bottom;
  padding-right: 40px;
}

@media ( min-width:769px ) {

  .navbar {
    &.navbar-default .navbar-nav > .btn.open > a,
    &.navbar-default .navbar-nav > .btn.active > a,
    &.navbar-default .navbar-nav > .btn > a {
      color: #fff;
      background: transparent;
    }
    &.navbar-not-transparent .navbar-nav > .active:not(.btn) > a,
    &.navbar-not-transparent .navbar-nav > .active:not(.btn) > a:hover,
    &.navbar-not-transparent .navbar-nav > .active:not(.btn) > a:focus {
      background: transparent;
    }
  }

  .navbar:not(.full-screen-menu) .hestia-nav-search .search-submit-wrapper{
    display: none;
  }

  .hestia-search-in-menu{
    cursor: pointer;
    position: relative;
    z-index: 999;
    vertical-align: middle;
    display: inline-block;
    form {
      margin: 0;
      padding: 0;
    }
  }

  .navbar:not(.full-screen-menu) .hestia-search-in-nav{
    width: 200px;
    max-width:0;
    padding: 5px;
    transition: all .5s ease;
    position:absolute;
    right:40px;
    box-sizing:border-box;
    opacity:0;
  }

  .navbar:not(.full-screen-menu).nav-searching .hestia-search-in-nav{
    max-width:200px;
    opacity:1;
  }

  .nav-searching #main-navigation ul.nav li:not(.hestia-search-in-menu){
    opacity: 0;
    visibility: hidden;
  }

  .navbar:not(.full-screen-menu) .hestia-toggle-search{
    display: block;
    padding: 12.5px;
    width:38px;
  }

  .navbar-transparent:not( .full-screen-menu ) {
    .hestia-search-in-nav {
      .search-field {
        color: #ffffff;
        &::-webkit-input-placeholder{
          color: #ffffff;
        }
        &::-moz-placeholder{
          color: #ffffff;
        }
        &:-ms-input-placeholder{
          color: #ffffff;
        }
        &:-moz-placeholder{
          color: #ffffff;
        }
      }
    }
  }

  .navbar:not( .full-screen-menu ) .search-field-wrapper{
    float: right;
  }

  .hestia-nav-search {
    padding: 0;
  }
}

