
/* CasaleWeb AD163: comportamento fixed, allineamento attuale conservato. */

#casaleweb-ad163-fixed {
    display: none;
}

@media (min-width: 992px) {

    

    

    

    #casaleweb-ad163-fixed {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 0;
        z-index: 10;
        pointer-events: none;
    }

    body.admin-bar #casaleweb-ad163-fixed {
        top: 32px;
    }

    #casaleweb-ad163-fixed > .container {
        position: relative;
        overflow: visible;
        height: 0;
    }

    #casaleweb-ad163-fixed .casaleweb-ad163-content {
        position: absolute;
        top: 0;
        left: 15px;
        width: 100px;
        pointer-events: auto;
    }

    #casaleweb-ad163-fixed .g,
    #casaleweb-ad163-fixed .g-single {
        max-width: 100%;
        height: auto;
        margin: 0;
    }

    #casaleweb-ad163-fixed img {
        display: block;
        box-sizing: border-box;
        max-width: 100px;
        max-height: 95px;
        width: auto;
        height: auto;
        padding: 4px 0;
        object-fit: contain;
    }
}

/* CASALEWEB MENU NATIVE RESTORE
   Menu nativo TrueMag: nessun flex, order o altezza imposti.
   Si conserva solo lo spazio laterale del banner gia approvato. */
@media (min-width: 992px) {
    body #top-nav .navbar-header {
        padding-left: 116px;
    }
}


/* CASALEWEB MENU COLUMN FIX START */
@media (min-width: 992px) {

    body #top-nav:not(.layout-4) > .navbar > .container {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
    }

    body #top-nav:not(.layout-4) > .navbar > .container::before,
    body #top-nav:not(.layout-4) > .navbar > .container::after {
        display: none;
        content: none;
    }

    body #top-nav:not(.layout-4) .navbar-header {
        display: block;
        float: none;
        width: auto;
    }

    body #top-nav:not(.layout-4) .main-menu.navbar-collapse {
        min-width: 0;
        width: 100%;
        margin: 0;
        padding-left: 0;
        padding-right: 0;
        overflow: visible !important;
    }

    body #top-nav:not(.layout-4) .main-menu > .nav-ul-menu {
        display: flex !important;
        flex-flow: row nowrap !important;
        justify-content: space-between;
        align-items: center;
        gap: 0;
        float: none !important;
        width: 100%;
        margin: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        overflow: visible;
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }

    body #top-nav .nav-ul-menu::before,
    body #top-nav .nav-ul-menu::after {
        content: none;
        display: none;
    }

    body #top-nav:not(.layout-4) .nav-ul-menu > li {
        flex: 0 0 auto;
        float: none;
        width: auto;
        margin: 0 !important;
        padding: 0 !important;
    }

    body #top-nav:not(.layout-4) .nav-ul-menu > li > a {
        margin: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        font-size: 13px;
        letter-spacing: normal;
        white-space: nowrap !important;
    }
}

@media (min-width: 1200px) {

    body #top-nav:not(.layout-4) .nav-ul-menu > li > a {
        padding-left: 6px !important;
        padding-right: 6px !important;
    }
}

@media (max-width: 991px) {

    body #top-nav .navbar-header {
        float: none;
        width: auto;
    }

    body #top-nav .navbar-toggle {
        display: block !important;
    }

    body #top-nav .main-menu > .nav-ul-menu.hidden-xs {
        display: none !important;
    }

    body #top-nav .main-menu.collapse:not(.in) {
        display: none !important;
    }

    body #top-nav .main-menu.in {
        display: block !important;
    }

    body #top-nav .classic-dropdown.visible-xs {
        display: block !important;
        float: none;
        width: auto;
    }

    body #top-nav .classic-dropdown > li {
        float: none;
    }
}
/* CASALEWEB MENU COLUMN FIX END */

/* CASALEWEB HEADER ALL PAGES V1 */
