/* ============================================ */
/* FIX: Layout Sidebar Categoria              */
/* ============================================ */
@media (min-width: 992px) {
    .page-layout-2columns-left .columns .column.main {
        /* Assegna circa il 75% dello spazio al contenuto principale */
        -webkit-flex-basis: calc(100% - 25%);
        flex-basis: calc(100% - 25%);
        max-width: calc(100% - 25%);
    }

    .page-layout-2columns-left .columns .sidebar-main {
        /* Assegna il 25% dello spazio alla sidebar */
        -webkit-flex-basis: 25%;
        flex-basis: 25%;
        max-width: 25%;
        /* Assicura che la sidebar venga prima (a sinistra) */
        -ms-flex-order: -1;
        -webkit-order: -1;
        order: -1;
    }
}
/* Flatten nested customer menu inside Porto header links dropdown */
.header.links.show > li.customer-welcome > .customer-name {
    display: none !important;
}

.header.links.show > li.customer-welcome > .customer-menu {
    position: static !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

.header.links.show > li.customer-welcome > .customer-menu > .header.links {
    display: contents;
}

/* Hide duplicate top-level logout/login when customer submenu exists (logged-in state) */
.header.links.show > li.customer-welcome ~ li.link.authorization-link {
    display: none !important;
}

/* Remove the extra dropdown arrow/toggle visual from nested customer entry */
.header.links.show > li.customer-welcome::before,
.header.links.show > li.customer-welcome::after,
.header.links.show > li.customer-welcome > .customer-name::before,
.header.links.show > li.customer-welcome > .customer-name::after,
.header.links.show > li.customer-welcome > .customer-name .action.switch::before,
.header.links.show > li.customer-welcome > .customer-name .action.switch::after {
    display: none !important;
    content: none !important;
}

.header.links.show > li.customer-welcome {
    margin: 0 !important;
    padding: 0 !important;
}

/* Remove inner dropdown pointer (up arrow) generated by Porto pseudo-elements */
.header.links.show > li.customer-welcome > .customer-menu::before,
.header.links.show > li.customer-welcome > .customer-menu::after,
.header.links.show > li.customer-welcome > .customer-menu > .header.links::before,
.header.links.show > li.customer-welcome > .customer-menu > .header.links::after {
    display: none !important;
    content: none !important;
}

/* Harmonize account dropdown menu typography and spacing */
.header.links.show > li.customer-welcome > .customer-menu > .header.links {
    margin: 0 !important;
    padding: 6px 0 !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 10px !important;
    background: #fff !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
    overflow: hidden !important;
}

.header.links.show > li.customer-welcome > .customer-menu > .header.links > li {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

.header.links.show > li.customer-welcome > .customer-menu > .header.links > li > a,
.header.links.show > li.customer-welcome > .customer-menu > .header.links > li.link.wishlist > a {
    display: block !important;
    padding: 10px 14px !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
    text-decoration: none !important;
    color: #222 !important;
    transition: background-color .18s ease, color .18s ease, padding-left .18s ease !important;
}

.header.links.show > li.customer-welcome > .customer-menu > .header.links > li + li > a {
    border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
}

.header.links.show > li.customer-welcome > .customer-menu > .header.links > li > a:hover,
.header.links.show > li.customer-welcome > .customer-menu > .header.links > li > a:focus {
    background: #f7f8fa !important;
    color: #111 !important;
    padding-left: 16px !important;
}

.header.links.show > li.greet.welcome {
    margin-bottom: 6px !important;
}

.header.links.show > li.greet.welcome .logged-in,
.header.links.show > li.greet.welcome .not-logged-in {
    font-size: 12px !important;
    color: #666 !important;
    display: block !important;
    padding: 0 2px !important;
}

/* Header account menu: same visual language as top links (e.g. "Contatti") */
.header.links.show > li.customer-welcome > .customer-menu > .header.links {
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
}

.header.links.show > li.customer-welcome > .customer-menu > .header.links > li {
    display: inline-block !important;
}

.header.links.show > li.customer-welcome > .customer-menu > .header.links > li > a,
.header.links.show > li.customer-welcome > .customer-menu > .header.links > li.link.wishlist > a {
    padding: 0 10px !important;
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: inherit !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: inherit !important;
    text-transform: none !important;
}

.header.links.show > li.customer-welcome > .customer-menu > .header.links > li + li > a {
    border-top: 0 !important;
}

.header.links.show > li.customer-welcome > .customer-menu > .header.links > li > a:hover,
.header.links.show > li.customer-welcome > .customer-menu > .header.links > li > a:focus {
    background: transparent !important;
    box-shadow: none !important;
    color: inherit !important;
    padding-left: 10px !important;
}
.header.links.show > li.customer-welcome > .customer-menu > .header.links > li.link.wishlist > a {
    display: none !important;
}