.digital-menu {
    margin: 0 auto;
    max-width: 1200px;
    padding: 10px;
}

.categories-icons-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-bottom: 20px;
}

.category-icon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 23%;
    margin: 5px;
    cursor: pointer;
    transition: opacity 0.3s;
    box-sizing: border-box;
}

.category-icon img {
    width: 40px;
    height: 40px;
}

.category-icon:hover {
    opacity: 0.7;
}

.category-name {
    margin-top: 5px;
    font-size: 14px;
    text-align: center;
}

.product-item {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
}

.product-header {
    display: flex;
    align-items: flex-start;
    width: 100%;
}

.product-header .product-image {
    flex: 0 0 auto;
    margin-right: 10px;
    max-width: 100px;
}

.product-header .product-image img {
    max-width: 100%;
    height: auto;
    max-height: 100px;
    width: auto;
    display: block;
}

.product-header .product-details {
    flex: 1;
    display: flex;
    flex-direction: column; /* Disposizione verticale di titolo e descrizione */
    align-items: flex-start; /* Allinea il testo a sinistra */
    justify-content: center;
}

.product-header .product-details h3 {
    margin: 0;
    margin-bottom: 5px;
    font-size: 18px; /* Dimensione del font per il nome del prodotto */
}

.product-header .product-details p {
    margin: 0;
    margin-bottom: 5px;
    font-size: 14px; /* Dimensione del font per la descrizione */
}

.product-header .product-price {
    margin-left: auto; /* Allinea il prezzo a destra */
    font-size: 16px;
    font-weight: bold;
}

.product-item .allergens {
    display: block;
    font-weight: bold;
    margin-top: 5px;
}

#back-to-top {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 99;
    font-size: 18px;
    background-color: var(--back-to-top-bg, #555);
    color: var(--back-to-top-color, white);
    border: none;
    outline: none;
    cursor: pointer;
    padding: 15px;
    border-radius: 4px;
}

#back-to-top:hover {
    background-color: var(--back-to-top-hover-bg, #333);
}

/* Reattività delle icone */
@media (max-width: 768px) {
    .category-icon {
        width: 20%;
    }
}

@media (max-width: 480px) {
    .category-icon {
        width: 20%;
    }
}

/* Stile per il titolo della categoria selezionata */
.category-title {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    margin: 20px 0;
}
