.menu-item a{color:#000; font-weight: 600; font-size:1.1rem;}

.menu-item-has-mega-menu{position:static;}
.navbar-nav{display: flex !important;    justify-content: space-evenly;
    padding-left: 0 !important;
    margin-bottom: 0 !important;
    list-style: none !important;}
    @media (min-width: 1200px) {
        .navbar-nav {
            flex-direction: row !important;
        }
    }
.mega-menu-wrapper{ 
    position: absolute;
    left: 0px;    
    background-color: #fff;
    margin-top:20px;
    width: 100%;
    display:none;
    z-index: 9999;    
    box-shadow: 0px 10px 20px #C8C8C8;
}
.home .mega-menu-wrapper{
    margin-top: 10px;
    /*box-shadow: none;*/
    left: 1%;
    width: 98%;
}

.mega-menu_container{height:fit-content; overflow:auto;}
    .mega-menu__content{
        margin-bottom: 20px;
    }
    .mega-menu_container .row-temi{
        flex-direction: row;
        justify-content: center;
    }
    .mega-menu_container .row-temi .card-megamenu-tema{
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 50px 40px;
        border-radius: 8px 8px 0px 0px;   
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center;
    }
    .mega-menu_container .row-temi .text-card-megamenu-tema{
        border-radius: 0px 0px 8px 8px;
        text-align: center;
        background-color: #3F3F3F;
        color: #fff;
        font-size: 0.8rem;
        font-weight: 100;
    }
    .image-grid{margin-bottom:20px;     border: 1px solid #D1DBE4;
        border-radius: 15px;}
    .image-grid a{padding:0px !important;}
    .image-grid .image{background-color:#D1DBE4; height:150px;overflow: hidden;      border-top-right-radius: 15px;  border-top-left-radius: 15px;}
    .image-grid .title{white-space: nowrap; padding:3px 10px; color:#000;
        overflow: hidden;font-size:0.8rem;
        text-overflow: ellipsis;}
    .second-row.megamenu-row{
        padding-bottom: 25px;
    }
    .second-row.megamenu-row .list-link{
        border-left:4px solid #59786B;
        list-style-type: none;        
    }
    .second-row.megamenu-row .graf-border{
        background-color: #59786B;
        padding: 10px;
        width: 60%;
        border-radius: 8px;
        color: #fff;
    }
    .item_menu_chefare, .item_menu_cosavedere{margin-bottom:5px;display: flex;flex-direction: row;align-items: center;}
    .item_menu_cosavedere{margin-bottom:7px;}
    .item_menu_chefare a, .item_menu_cosavedere a{ font-weight: 100;font-size:1rem !important; color:#000 !important;  padding:0px !important;}
    .item_menu_chefare i, .item_menu_cosavedere i{color:#8C2522 !important;font-size:0.7rem; margin-right:8px;}
    .second-row.megamenu-row .first-text{
        font-weight: bold;
    }
    .second-row.megamenu-row .second-text{
        display: block;
    }
    .component-main-menu__close-box {
        /*text-align: right;*/
        display: flex;
        justify-content: space-between;
        padding: 20px 5px 10px 5px;
    }
    .component-main-menu__close-box .title-mega-menu{
        font-size: 30px;
        font-weight: bold;
    }
    .content-megamenu{
        padding-left: 5px;
        margin-bottom:2rem;
    }
    .content-megamenu h2 a{
        font-size:1.7rem !important;
        color:#8C2522 !important;
    }
    .item-single-link-mega-menu{
        padding: 0px !important;
        font-size: 1.1rem !important;
    }
    .item-single-link-mega-menu::after{
        content: '';
        display: block;
        width: 0;
        height: 2px;
        background: #3F3F3F;
        transition: width .3s;
    }
    .item-single-link-mega-menu:hover::after {
        width: 100%;
    }
    .component-main-menu__close-section-button {
        background-color: transparent;cursor:pointer;
        border: 1px solid #d1dbe4;
        border-radius: 50px;
        height: fit-content;
        padding: 6px 5px;
        /*margin: auto;*/
        
    }
    .component-main-menu__close-section-button__text-hidden {
        display: none;
    }
    .component-main-menu__close-section-button::after {
        display: block;
        content: "";
        width: 20px;
        height: 20px;
        background-image: url("../images/close-black.svg");
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
    }
    ::-webkit-scrollbar {
        width: 12px;
    }
    
    ::-webkit-scrollbar-track {
        -webkit-box-shadow: inset 0 0 6px rgba(200,200,200,1);
        border-radius: 10px;
    }
    
    ::-webkit-scrollbar-thumb {
        border-radius: 10px;
        background-color:#fff;
        -webkit-box-shadow: inset 0 0 6px rgba(90,90,90,0.7);
    }



    @media (max-width: 992px) {
        .block-menu {
            justify-content: space-between !important;
        }
        #menu-menu-principale li{margin-bottom:30px;}
        #menu-menu-principale .megaMenu_item{text-transform: uppercase; margin:10px 20px;}
        .list-type a{font-size:1.1rem !important;}
    }