.tt5_categories_menu {
    padding: 15px 0px;
    display: flex;
    overflow-y: auto;
}
.tt5_categories_menu_item {
    display:inline-flex;
    border-radius:10px;
    /*border:solid 1px;*/
    margin-right: 5px;
    white-space: nowrap;
}

.svg-icon-wrapper, .svg-icon-wrapper svg {
    display: flex;
    height: 55px;
}
.tt5_categories_menu_item_link {
    display:flex;
    align-items:center;
    justify-content: center;
    text-decoration: none;
    padding:10px;
}

.tt5_categories_menu_item.active {
    /*background: var(--wp--preset--color--contrast);
    color:#FFF;
    fill: #FFF;*/
    border: solid 2px;
}

.tt5_categories_menu_item_title {
    margin-left: 5px;
    font-weight: 500;
    padding-right:5px;
}

/* Container principale */
.tt5_categories_menu_container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

/* Modifiche al menu esistente */
.tt5_categories_menu {
    padding: 15px 0px;
    display: flex;
    overflow-x: auto; /* Cambiato da overflow-y a overflow-x */
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 5px; /* Sostituisce margin-right sugli item */
}

.tt5_categories_menu::-webkit-scrollbar {
    display: none;
}

/* Pulsanti di navigazione */
.tt5_categories_menu_nav {
    display: none;
    position: sticky;
    z-index: 1;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    flex-shrink: 0;
    position:absolute;
}

.tt5_categories_menu_nav:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);

}

.tt5_categories_menu_nav svg {
    width: 24px;
    height: 24px;
    fill: var(--wp--preset--color--contrast);
}

.tt5_categories_menu_nav_left {
    left: 0;
}

.tt5_categories_menu_nav_right {
    right: 0;
}

/* Ottimizzazione per mobile */
@media (max-width: 768px) {
    .tt5_categories_menu_nav {
        width: 30px;
        height: 30px;
    }
    
    .tt5_categories_menu_nav svg {
        width: 18px;
        height: 18px;
    }
	
	.tt5_categories_menu_item {
		font-size:0.9em;
	}
	.svg-icon-wrapper {
		display: flex;
		height: 40px;
	}
}