*{
    font-family: 'Chivo', sans-serif !important;
}
body{
    padding-top: 20px;
}

/* top bar */
.navbar-dark {
/*    height: 58px;*/
    padding: 11px 0px;
}
.navbar-dark .navbar-brand{
    color:#f08d1d;
    font-size: 21px;
    margin: 0 35px 0 16px;
    padding: 0;
    position: relative;
    z-index: 200;
}

/* links */
.navbar-nav .nav-item{
    padding: 9px 0;
    border-bottom: solid 1px rgba(255,255,255,0.5);
    margin: 0 20px;
    display: inline-block !important;
}
.nav-item.last-item{
    border-bottom: none;
}

.navbar-dark .main-link{
    font-size: 20px;
    font-weight: 300;
    color: rgba(255,255,255,0.8);
    padding-left: 46px;
    line-height: 28px;
    display: inline-block;
}

/* tendina dropdown */
.show{
    display: block !important;
    margin-top: 0;
    position: relative;
    z-index: 20;   
}
.dropdown-wrapper{
    padding: 22px 0 18px 0;
    background-color: #353a40;
    box-shadow: 0 0 12px rgba(0,0,0,0.8);
    position: relative;
    z-index: 15;
}
.obscure{
    position: absolute;
    top: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10;

    background: rgb(71,71,81); /* Old browsers */
    background: -moz-linear-gradient(top, rgb(71,71,81) 0%, rgb(72,72,82) 45%, rgb(68,68,80) 71%, rgb(65,65,75) 78%, rgb(65,63,77) 80%, rgb(64,64,74) 80%, rgb(63,63,73) 81%, rgb(64,64,76) 83%, rgb(61,61,73) 85%, rgb(62,62,74) 86%, rgb(60,60,72) 86%, rgb(57,55,66) 95%, rgb(49,49,61) 100%); /* FF3.6-15 */
    background: -webkit-linear-gradient(top, rgb(71,71,81) 0%,rgb(72,72,82) 45%,rgb(68,68,80) 71%,rgb(65,65,75) 78%,rgb(65,63,77) 80%,rgb(64,64,74) 80%,rgb(63,63,73) 81%,rgb(64,64,76) 83%,rgb(61,61,73) 85%,rgb(62,62,74) 86%,rgb(60,60,72) 86%,rgb(57,55,66) 95%,rgb(49,49,61) 100%); /* Chrome10-25,Safari5.1-6 */
    background: linear-gradient(to bottom, rgb(71,71,81) 0%,rgb(72,72,82) 45%,rgb(68,68,80) 71%,rgb(65,65,75) 78%,rgb(65,63,77) 80%,rgb(64,64,74) 80%,rgb(63,63,73) 81%,rgb(64,64,76) 83%,rgb(61,61,73) 85%,rgb(62,62,74) 86%,rgb(60,60,72) 86%,rgb(57,55,66) 95%,rgb(49,49,61) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#474751', endColorstr='#31313d',GradientType=0 ); /* IE6-9 */
}
.navbar-nav{
    position: relative;
    z-index: 20;
}
.dropdown-menu{ background-color: transparent;border: 0;}
   
.dropdown .dropdown-item{
    font-weight: 300;
}
.dropdown .last-item{ border-bottom: none;}


/* icone voci menu 1 livello */
.icon-scan{ background: url('../icons/scan.svg') top left no-repeat;}
.icon-add{ background: url('../icons/add.svg') top left no-repeat;}
.icon-user{ background: url('../icons/user.svg') top left no-repeat;}
.icon-lang{ background: url('../icons/lang.svg') top left no-repeat;}

/* icone voci menu 2 livello chiare */
.icon-settings{ background: url('../icons/settings_white_26p.svg') 0 50%  no-repeat; }
.icon-account{ background: url('../icons/account_white_26p.svg') 0 50%  no-repeat; }
.icon-user-block{ background:  var(--user-icon-user) 0 50%  no-repeat; }
.icon-alarms{ background: url('../icons/alarms_white_26p.svg') 0 50%  no-repeat; }
.icon-logout{ background: url('../icons/logout_white_26p.svg') 0 50%  no-repeat; }



/* dropdown caret sopprime quello di default in mobile */
.dropdown-toggle::after{
    border: none;
}

.main-link{
    width: 98%;
}
a.main-link:hover{
    text-decoration: none;
    color:  #f08d1d;
}
a.main-link:hover .caret{
    border-top-color: #f08d1d;
}

.caret{/* caret mobile */
    border-top: 8px white solid;
    border-left: 6px transparent solid;
    border-right: 6px transparent solid;
    float: right;
    margin-top: 12px;
}
.dropdown-wrapper .show .caret{/* caret mobile show */
    border-top: none;
    border-bottom: 8px white solid;
    border-left: 6px transparent solid;
    border-right: 6px transparent solid;
}

.dropdown-user{padding: 0;}

.dropdown-user .dropdown-item {
    margin: 0;
    color: #fff;
    padding: 0 0 0 46px;
}

.dropdown-user .dropdown-item span{
    display: block;
    border-bottom: 1px solid rgba(255,255,255,0.5);;
    padding: 10px 0;
    color: rgba(255,255,255,0.8);
}
.dropdown-user .last-item span{border-bottom: 0;}

.dropdown-lang{
    border: none;
    padding-left: 40px;
	background-color: var(--dropdown-wrapper);
}
.dropdown-lang .dropdown-item{
    width: 110px;
    float: left;
    clear: none;
    border-radius: 5px;
    border: solid 1px rgba(168,168,168,0.5);
    margin: 5px 10px 5px 0;
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    padding: 8px 20px 8px 20px;
    text-align: center;
}
.dropdown-wrapper .show .main-link, .dropdown-lang .selected{
    color: #f08d1d;
}
.dropdown-lang .dropdown-item:hover, .dropdown-user .dropdown-item:hover{
    background-color: rgb(71,71,81);
}

.navbar-dark .navbar-toggler{ border:none; }

.navbar-dark  button[aria-expanded="false"] .navbar-toggler-icon{
    background: transparent url('../icons/hamburger.svg');
}
.navbar-dark  button[aria-expanded="true"] .navbar-toggler-icon{
    background: transparent url('../icons/close.svg');
}

.navbar-nav .nav-item.hidden-sm{
    display: none !important;
}
.matte-bar{
   
    height: 60px;
    position: absolute;
    z-index: 150;
    top: 0px; 
    box-shadow: 0px 0px 8px #000;

     background: rgb(49,49,61); /* Old browsers */
background: -moz-linear-gradient(top, rgb(49,49,61) 0%, rgb(57,55,66) 5%, rgb(60,60,72) 14%, rgb(62,62,74) 14%, rgb(61,61,73) 15%, rgb(64,64,76) 17%, rgb(63,63,73) 19%, rgb(64,64,74) 20%, rgb(65,63,77) 20%, rgb(65,65,75) 22%, rgb(68,68,80) 29%, rgb(72,72,82) 55%, rgb(71,71,81) 100%); /* FF3.6-15 */
background: -webkit-linear-gradient(top, rgb(49,49,61) 0%,rgb(57,55,66) 5%,rgb(60,60,72) 14%,rgb(62,62,74) 14%,rgb(61,61,73) 15%,rgb(64,64,76) 17%,rgb(63,63,73) 19%,rgb(64,64,74) 20%,rgb(65,63,77) 20%,rgb(65,65,75) 22%,rgb(68,68,80) 29%,rgb(72,72,82) 55%,rgb(71,71,81) 100%); /* Chrome10-25,Safari5.1-6 */
background: linear-gradient(to bottom, rgb(49,49,61) 0%,rgb(57,55,66) 5%,rgb(60,60,72) 14%,rgb(62,62,74) 14%,rgb(61,61,73) 15%,rgb(64,64,76) 17%,rgb(63,63,73) 19%,rgb(64,64,74) 20%,rgb(65,63,77) 20%,rgb(65,65,75) 22%,rgb(68,68,80) 29%,rgb(72,72,82) 55%,rgb(71,71,81) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#31313d', endColorstr='#474751',GradientType=0 ); /* IE6-9 */    

}
.navbar-toggler{
    position: relative;
    z-index: 200;
}


/* shadow bar */
.shadow-bar{
    background-color: #fff;
    height: 10px;
    position: absolute;
    z-index: 100;
    top: 48px; 
    box-shadow: 0px 0px 8px #000;
}

/* filter bar */
.filter-bar{
    background-color: #23232e;
    height: 38px;
    margin-top: 40px;
    line-height: 38px;
     position: relative;
  z-index: 50;

}
a.filter-link, a.filter-link:hover{
    font-size: 14px;
    font-weight: 300;
    color:#d0d1d2;
    padding-left: 30px;
}

/* VERSIONE LARGE */
@media (min-width: 992px){

    .navbar-dark {
        height: 70px;
        padding-top: 13px; 
        box-shadow: 0 0 10px #000
       
    }
    .navbar-dark .navbar-brand{
        margin-left: 15px;
        padding-top: 0;
        padding-bottom: 0;
         margin-top: -3px;
    }
    .navbar-dark .navbar-nav{
        padding: 0;
    }
    .navbar-nav .nav-item{
        border-bottom: none;
        margin: 0;
        padding: 0;
    }
    
    .navbar-dark .welcome{margin: 0 20px 0 0;}

    .navbar-dark .color1{ color: #f08d1d;}

    .navbar-dark .last-item{
        margin-right: 16px;
    }
    .bg-custom{
        background-color: transparent !important;
    }
    .navbar-dark .main-link{
        font-size: 14px;
        margin-left: 33px;
        padding-left: 30px;
    }
     .navbar-dark a.main-link:hover{
        text-decoration: underline;
        color:  rgba(255,255,255,0.8);
    }

    /* rimuove il flex */
    .navbar-nav, .navbar-expand-lg .navbar-collapse{
        display: inline-block !important;
        padding-top: 3px;
    }

    .dropdown-toggle::after{
        border-top: 8px white solid;
        border-left: 6px transparent solid;
        border-right: 6px transparent solid;
        vertical-align: 1px;
    }
    .caret, .dropdown-wrapper .show .caret{
        border: none; 
    }


    .collapse{
         margin-top: 0px;
    }
    .obscure{
        display: none;
    }
    .dropdown-wrapper{
        width: auto;
        height: auto;
        background-color: transparent;
        box-shadow: none;
        padding: 0;
    }
    .navbar-nav .nav-item.visible-lg{
        display: inline-block !important;
    }
    .matte-bar{
        display: none !important;
    }
    .shadow-bar{
        height: 50px;
        display: none !important;
    }

    /* tendine dropdown */
    .dropdown-menu{
        background-color:#f6f6f6;
        box-shadow: 0 0 10px rgba(0,0,0,0.3);
        border-radius: 0 0 .25rem .25rem;
        padding-top: 5px;
        padding-bottom: 5px;
    }
    .dropdown-user{
        left: 30px;
    }
    .dropdown-lang{
        left: -145px;
        background-color: var(--dropdown-wrapper);
    }
    .dropdown .dropdown-item{
        color: #414042;
        font-weight: 300;
        border-bottom: solid 1px rgba(0,0,0,0.3);
        padding-left:54px;
        margin-left: 0;
    }
    .dropdown-user .dropdown-item span{
        color: #414042;
    }
    .dropdown .last-item{
         border-bottom: none;
    }
    .dropdown-lang {
        padding: 0;
        padding-left: 15px;
        padding-bottom: 5px;
    }
    .dropdown-lang .dropdown-item{
        width: 45%;
        float: left;
        clear: none;
        border-radius: 0px;
        color: #414042;
        font-weight: 300;
        border: none;
        border-top: solid 1px rgba(0,0,0,0.3);

        margin: 5px 10px 5px 0;
        font-size: 16px;
       
        padding: 4px 0 4px 0;
        text-align: center;
    }

    .dropdown-lang a:nth-child(1){border:none;}
    .dropdown-lang a:nth-child(2){border:none;}

     .dropdown-lang .dropdown-item:hover, .dropdown-user .dropdown-item:hover, .dropdown-lang .selected{
        background-color: transparent;
        color: #f08d1d;
     }
    /* icone voci menu 2 livello scure */
    .icon-settings{ background: url('../icons/settings_grey_26p.svg') 12px 50%  no-repeat; }
    .icon-account{ background: url('../icons/account_grey_26p.svg') 12px 50%  no-repeat; }
    .icon-user-block{ background:  var(--icon-user-block) 12px 50%  no-repeat; }
    .icon-calendar{ 
    	background: var('../icons/calendar.svg') 12px 50% no-repeat;
    	background-size: 22px;
    }
    .icon-alarms{ background: url('../icons/alarms_grey_26p.svg') 12px 50%  no-repeat; }
    .icon-logout{ background: url('../icons/logout_grey_26p.svg') 12px 50%  no-repeat; }


    .filter-bar{
        height: 51px;
        line-height: 55px;
        margin-top: 50px;
    }
    a.filter-link, a.filter-link:hover{
        font-size: 18px;
         background: url('resources/icons/scan.svg') -5px -4px no-repeat; 
    }
}

@media (min-width: 1696px){ /* max-width + 16 */
    .navbar-dark .navbar-brand{margin-left: 0;}
}

