/* top nav
/* ------------------------ */
#header.fixed{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1010;
    background: #fff;
}
#header.fixed + #main{
    margin-top: 54px;
}
#header .topNav{
    display: none;
    height: 30px;
    background: #1d1e1b;
}
@media (min-width: 992px){
    #header.fixed + #main{
        margin-top: 150px;
    }
    #header .topNav{
        display: block;
    }
}
#header .topNavItems{
    float: right;
    margin-right: 136px;
}
#header .topNavLinks, #header .topNavLinks > li{
    list-style: none;
    margin: 0;
    padding: 0;
}
#header .topNavLinks{
    float: left;
    overflow: hidden;
}
#header .topNavLinks > li{
    float: left;
    line-height: 30px;
}
#header .topNavLinks a{
    float: left;
    font-size: 11px;
    line-height: 30px;
    font-weight: 500;
    color: #efefef;
    transition: background .2s ease-in-out;
    padding: 0 20px;
}
#header .topNavLinks a.active,
#header .topNavLinks a:hover{
    background: #008ecf;
}
#header .langSelector{
    float: left;
    padding: 0;
    height: 30px;
    line-height: 1;
}
#header .langSelectorBtn{
    cursor: pointer;
    width: 50px;
    height: 30px;
    padding: 0 20px;
    position: relative;
    background: url('/images/icone/lingue-icona.png') center no-repeat;
    background-size: 20px;
    transition: background-color .2s ease-in-out;
}
#header .langSelectorBtn:hover{
    background-color: #008ecf;
}
#header .langSelectorList, #header .langSelectorList > li{
    list-style: none;
    margin: 0;
    padding: 0;
}
#header .langSelectorList{
    display: none;
    position: absolute;
    top: 32px;
    right: 0;
    z-index: 30;
    border: 1px solid #e5e5e5;
    box-shadow: 0 0 3px 0 rgba(110, 113, 120, .5);
    background: #fff;
    padding: 6px 10px;
}
#header .langSelectorList::before{
    content: '';
    display: block;
    position: absolute;
    top: -6px;
    right: 14px;
    z-index: 1;
    width: 10px;
    height: 10px;
    background: transparent url('/images/icone/langSelectorTip.png') top left no-repeat;
}
#header .langSelectorList > li{
    display: block;
    padding: 3px 12px;
    text-align: left;
    font-size: 13px;
    line-height: 20px;
    color: #111;
}
#header .langSelectorList a{
    font-size: 13px;
    line-height: 20px;
    color: #111;
    transition: color .2s ease-in-out;
}
#header .langSelectorList li.active a,
#header .langSelectorList a:hover{
    color: #008ecf;
}
/* header nav
/* ------------------------ */
#header .headerLogo{
    padding-top: 6px;
    padding-left: 8px;
    overflow: hidden;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}
#header .headerLogo > img{
    transition: all .2s;
    -webkit-transition: all .2s;
    width: 170px;
}
#header .mainNav{
    height: 54px;
    transition: height .5s ease-in-out;
}
@media (min-width: 992px){
    #header .headerLogo{
        padding-top: 24px;
        margin-left: 8%;
    }
    #header .headerLogo > img{
        width: 294px;
    }
    #header .mainNav{
        height: 115px;
    }
}
#header .mainNavItems{
    position: absolute;
    top: 0;
    right: 0;
    z-index: 20;
    width: 100%;
}
#header .mainNavList, #header .mainNavList > li{
    list-style: none;
    margin: 0;
    padding: 0;
}
#header .mainNavList{
    position: absolute;
    top: 0;
    right: 0;
    padding-top: 73px;
    transition: padding .2s ease-in-out;
    overflow: hidden;
    display: none;
}
@media (min-width: 992px){
    #header .mainNavList.visible{
        display: block;
    }
}
#header .mainNavList.navOpen{
    margin-right: 126px;
}
#header .mainNavList > li{
    float: left;
    padding: 0 30px;
}
#header .mainNavList a{
    float: left;
    font-size: 19px;
    line-height: 24px;
    font-weight: 300;
    color: #000;
    transition: all .2s ease-in-out;
    transition-property: border, color;
    padding-bottom: 4px;
    border-bottom: 2px solid #fff;
}
#header .mainNavList a:hover, #header .mainNavList a.active{
    color: #222;
    border-color: #008ecf;
    /*border-bottom: 2px solid #008ecf;*/
}
/* main nav widgets
/* ------------------------ */
#header .mainNavWidgetsWrap{
    position: absolute;
    top: 0;
    right: 0;
    z-index: 20;
}
#header .mainNavWidgets{
    float: right;
    overflow: hidden;
    height: 54px;
}
/* header contact form
/* ------------------------ */

#header .btnContactForm{
    float: left;
    width: 63px;
    height: 54px;
    background: #008ecf url('/images/icone/mail-icona.svg') center no-repeat;
    background-size: 63px;
    border-right: 1px solid #fff;
    cursor: pointer;
    display: none;
    transition: background-color .2s ease-in-out;
}
#header .btnContactForm:hover{
    background-color: #0072af;
}
#header .headerContactFormTitle{
    float: left;
    opacity: 0;
    width: 0;
    height: 54px;
    background: #c8d992;
    text-align: center;
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 16px 0 0;
    transition: all .2s ease-in-out;
    white-space: nowrap;
}
#header .headerContactFormTitle.active{
    width: 200px;
    opacity: 1;
}
#header .mainNavContactForm{
    position: absolute;
    top: 54px;
    right: 126px;
    background: #fff;
    z-index: 100;
    width: 263px;
    height: auto;
    display: none;
    max-height: 70vh;
    overflow: scroll;
}
#header .mainNavContactForm .titleForm{
    display: none !important;
}
/* header search
/* ------------------------ */

#header .btnSearch{
    float: left;
    width: 63px;
    height: 54px;
    background: #008ecf url('/images/icone/cerca-icona.svg') center no-repeat;
    background-size: 63px;
    transition: background-color .2s ease-in-out;
    cursor: pointer;
}
#header .btnSearch:hover{
    background-color: #0072af;
}
#header #headerSearchForm{
    opacity: 0;
    width: 0;
    height: 54px;
    float: left;
    padding: 0;
    margin: 0;
    border: none;
    position: relative;
    transition: all .2s ease-in-out;
}
#header #headerSearchForm.active{
    width: 200px;
    opacity: 1;
}
#header #headerSearchForm .input-search{
    display: block;
    width: 100%;
    font-size: 15px;
    line-height: 54px;
    height: 54px;
    border: none;
    border-bottom: 1px solid #e5e5e5;
    padding: 0 10px;
    outline: none;
}
#header #headerSearchForm input + .placeholder{
    position: absolute;
    left: 10px;
    top: 17px;
    z-index: 1;
    font-size: 15px;
    line-height: 20px;
    font-weight: 200;
    color: #6e7178;
    transition: all .2s ease-in-out;
    pointer-events: none;
}
#header #headerSearchForm input:focus + .placeholder,
#header #headerSearchForm input:valid + .placeholder{
    top: 0;
    font-size: 10px;
}
#header .btnMegaMenu{
    display: inline-block;
    border-left: 1px solid #fff;
    width: 63px;
    height: 54px;
    background: #008ecf;
    transition: background .2s ease-in-out;
    cursor: pointer;
}
#header .btnMegaMenu:hover{
    background: #0072af;
}
#header .btnMegaMenu > span{
    position: absolute;
    top: 0;
    left: 19px;
    width: 25px;
    height: 2px;
    background: #fff;
    display: blocK;
    z-index: 1;
    transition: all .2s ease-in-out;
    transform-origin: center;
}
#header .btnMegaMenu > span:nth-of-type(1){
    top: 18px;
}
#header .btnMegaMenu > span:nth-of-type(2){
    top: 25px;
}
#header .btnMegaMenu > span:nth-of-type(3){
    top: 32px;
}
#header .btnMegaMenu.active > span:nth-of-type(1){
    transform: rotate(45deg);
    top: 25px;
}
#header .btnMegaMenu.active > span:nth-of-type(2){
    opacity: 0;
}
#header .btnMegaMenu.active > span:nth-of-type(3){
    transform: rotate(-45deg);
    top: 25px;
}
/* header breadcrumbs
/* ------------------------ */
.headerBreadCrumbs{
    display: none;
}
/* main nav small
/* ------------------------ */
#header .mainNav.smallNav{
    height: 54px;
    box-shadow: 0 3px 3px 0 rgba(100, 100, 100, .2);
}
#header .mainNav.smallNav.hasBreadcrumbs{
    height: 80px;
}
#header .mainNav.smallNav .headerLogo{
    padding-top: 6px;
}
#header .mainNav.smallNav .headerLogo > img{
    width: 170px;
}
#header .mainNav.smallNav .mainNavList{
    padding-top: 15px;
}
#header .mainNav.smallNav .headerBreadCrumbs{
    display: block;
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
    z-index: 1;
}
@media (min-width: 992px){
    #header .mainNav.smallNav .headerBreadCrumbs{
        top: 56px;
        left: 0;
    }
}
#header .mainNav.smallNav .headerBreadCrumbs .breadCrumbsList{
    opacity: 0;
    transition: opacity .2s ease-in-out;
    margin-left: 8%;
    padding-left: 8px;
}
#header .mainNav.smallNav .headerBreadCrumbs .breadCrumbsList.visible{
    opacity: 1;
}
/* subnav
/* ------------------------ */
.subNavWrap{
    display: none;
    position: absolute;
    top: 120px;
    left: 0;
    width: 100%;
    height: auto;
    overflow: hidden;
    z-index: 10;
    background: #fff;
    border-bottom: 4px solid #008ecf;
    transition: top .2s ease-in-out;
    padding-bottom: 20px;
}
.mainNav.smallNav .subNavWrap{
    top: 54px;
}
.subNavWrap.mega,
.mainNav.smallNav .subNavWrap.mega{
    top: 0;
}
.subNavWrap.mega{
    max-height: 100vh;
    overflow-y: auto;

}
.subNavWrap.mega .subNavWrap .subNav{
    padding-bottom: 0;
}
.subNavWrap.mega .subNavWrap .subNavCategoryList{
    margin: 0 0 10px;
}
.subNavWrap.mega .subNavWrap .row{
    padding-top: 10px;
}
.subNavClose{
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
    font-family: arial, sans-serif;
    font-size: 33px;
    line-height: 30px;
    font-weight: 300;
    color: #008ecf;
    text-align: center;
    width: 30px;
    height: 30px;
    cursor: pointer;
    transition: color .2s ease-in-out;
}
.subNavClose:hover{
    color: #6e7178;
}
.subNavWrap .row{
    padding-top: 30px;
}
.subNavWrap .row.topBorder{
    margin-top: 14px;
    border-top: 1px solid #008ecf;
}
.subNavWrap .subNav{
    padding-bottom: 20px;
    line-height: 24px;
}
.rowTitle, .subNavTitle{
    display: block;
    font-size: 19px;
    line-height: 20px;
    font-weight: 200;
    color: #000;
    margin: 0;
}
.rowTitle > span, .subNavTitle > span{
    display: inline-block;
    padding-bottom: 3px;
    border-bottom: 2px solid #008ecf;
}
.rowTitle{
    margin-top: 27px;
}
.subNavCategory{
    display: block;
    font-size: 14px;
    line-height: 24px;
    font-weight: 500;
    color: #000;
    transition: color .2s ease-in-out;
    overflow: hidden;
}
a.subNavCategory, .subNavCategory a{
    color: #000;
}
.subNavCategory > img{
    display: inline-block;
    padding-right: 6px;
    width: 30px;
}
a.subNavCategory:after{
    font-family: 'FontAwesome', sans-serif;
    content: '\f105';
    font-size: 14px;
    font-weight: bold;
    color: #008ecf;
    padding-left: 6px;
    white-space: nowrap;
}
.subNavCategoryList{
    list-style: none;
    padding: 0;
    margin: 0 0 27px;
}
.subNavCategoryList a{
    display: block;
    font-size: 14px;
    font-weight: 200;
    color: #000;
    transition: color .2s ease-in-out;
}
.subNavCategoryList a:before{
    font-family: 'FontAwesome', sans-serif;
    content: '\f105';
    font-size: 14px;
    color: #008ecf;
    padding-right: 4px;
}
a.subNavCategory:hover,
.subNavCategoryList a:hover{
    color: #008ecf;
}
.subNavSolutions{
    padding-bottom: 10px;
}
.subNavSolutionsList:before{
    display: none;
}
.mainNavOverlay{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9;
    background: rgba(255, 255, 255, .75);
    display: none;
}
/* full width header
/* ------------------------ */
#header.fullWidth .topNav > .container,
#header.fullWidth .mainNav > .container:first-child{
    width: 100%;
    max-width: 2000px;
}
@media (min-width: 2100px){
    #header.fullWidth .mainNav .headerLogo{
        margin-left: 100px;
    }
}
/* topnav links in mega subnav mobile
/* ------------------------ */
.subnavTopnavLinksWrap{
    padding: 2px 0;
}
.subnavTopnavLinks{
    list-style: none;
    margin: 0;
    padding: 4px 0;
    overflow: hidden;
}
.subnavTopnavLinks > li{
    float: left;
    padding: 0 6px;
}
.subnavTopnavLinks > li, .subnavTopnavLinks a{
    font-size: 13px;
    line-height: 20px;
    font-weight: 300;
    color: #000;
}
.subnavTopnavLinks > li:not(:first-child){
    border-left: 1px solid #ccc;
}
.subnavTopnavLinks a{
    transition: color .2s ease-in-out;
}
.subnavTopnavLinks a:hover{
    color: #008ecf;
}
@media (min-width: 992px){
    .subnavTopnavLinksWrap{
        display: none;
    }
}

/*IPAD LANDSCAPE*/
@media (min-width: 991px) and (max-width: 1199px){
    #header .headerLogo{
        margin-left: 20px
    }
    #header .mainNavList > li{ padding: 0 15px }
}

/*IPAD PORTRAIT */
@media (min-width: 768px) and (max-width: 990px){
    .subNavCategoryList{ margin-bottom: 15px }
    .subNavWrap .subNav{ padding-bottom: 10px }
    .subNavWrap .row{ padding-top: 10px }
}

/* MOBILE */
@media (max-width: 767px){
    #header .btnContactForm{ display: none !important }
    .subNavWrap .row{ padding-top: 10px }
    .rowTitle{ margin-top: 15px }
    .subNavCategoryList{ margin-bottom: 5px }
    .subnavTopnavLinksWrap{ margin-top: 65px }

}
