.public-ui .it-header-wrapper.it-header-sticky {
  .display-only-when-sticky {
    display: none;
  }
}

body.cms-ui {
  #headerSpacer {
    display: none;
  }
}

body:not(.section-edit):not(.section-add) {
  .public-ui .it-header-wrapper.it-header-sticky {
    &.is-sticky {
      position: fixed;
      z-index: 500;
      top: 0;
      width: 100%;

      .display-only-when-sticky {
        display: block;
        &.it-search-wrapper {
          display: flex;
        }
      }

      .it-header-navbar-wrapper .menu-wrapper {
        //bottone di ricerca
        @media (max-width: #{map-get($grid-breakpoints, lg)}) {
          .it-search-wrapper.display-only-when-sticky {
            display: none;
          }
        }
        @media (min-width: #{map-get($grid-breakpoints, lg)}) {
          .it-search-wrapper.display-only-when-sticky a.rounded-icon {
            width: 40px;
            height: 40px;
          }
        }
      }

      //logo del sito
      @media (min-width: #{map-get($grid-breakpoints, lg)}) {
        .navbar .navbar-collapsable .menu-wrapper .it-brand-wrapper {
          display: block !important;
          .it-brand-text {
            display: none;
          }
        }
      }
    }
  }

  &.has-toolbar {
    @media (min-width: #{map-get($grid-breakpoints, lg)}) {
      .public-ui .it-header-wrapper.it-header-sticky {
        &.is-sticky {
          width: calc(100% - 80px);
        }
      }
    }
  }
}
