﻿body {
    font-family: 'Segoe UI', sans-serif;
    background-image: url('/dist/img/background.jpg'); /* ✅ percorso dell'immagine */
    background-size: cover; /* Copre l'intera schermata */
    background-position: center center; /* Centra l'immagine */
    background-repeat: no-repeat; /* Non la ripete */
    background-attachment: fixed; /* Fissa lo sfondo */
    margin: 0;
    padding: 0;
}

.overlay {
    /*background-color: rgba(255, 255, 255, 0.50);*/ /* Leggera trasparenza bianca */
    min-height: 100vh;
    padding: 20px;
}

.center-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.menu-button {
    padding: 20px 40px;
    font-size: 24px;
    border: none;
    border-radius: 8px;
    background-color: #007bff;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: background-color 0.2s ease;
    text-decoration: none;
}

    .menu-button:hover {
        background-color: #0056b3;
    }

.main {
    margin-top: 50px;
}

.header {
    text-align: center;
    padding: 20px 0;
}

    .header img {
        max-height: 80px;
    }

.center-button {
    text-align: center;
    margin: 8px 0;
}

.menu-button {
    padding: 8px;
    font-size: 24px;
    border: none;
    border-radius: 8px;
    background-color: white;
    color: black;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: background-color 0.2s ease;
    width: 300px;
    display: inline-block;
    font-weight: bold;
}

    .menu-button:hover {
        background-color: black;
        color: white;
    }

.carousel-item {
    padding: 0px !important;
}

.carousel-item img {
    object-fit: contain;
    height: 200px;
    margin: 0 auto;
}

.product-name {
    text-align: center;
    font-weight: bold;
    margin-top: 10px;
    padding: 18px;
}

.boxwhite {
    background-color: white;
    border: 1px solid lightgray;
    padding: 18px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(0%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(0%) contrast(100%);
}

.product-card {
    cursor: pointer;
}

.product-card img {
    object-fit: contain;
    height: 200px;
    width: 100%;
}

.product-card {
    padding: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border-radius: 10px;
    overflow: hidden;
}

.product-price {
    color: #28a745;
    font-weight: bold;
}

.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
}

    .category-filter button {
        border: none;
        background-color: #f8f9fa;
        padding: 8px 16px;
        border-radius: 5px;
        cursor: pointer;
        font-weight: bold;
    }

        .category-filter button.active {
            background-color: #262626;
            color: white;
        }

.card-text {
    max-height: 100px;
    min-height: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Numero di righe da mostrare */
    -webkit-box-orient: vertical;
    line-height: 1.2em;
}

.animated-title {
    animation: pulse 2s infinite;
    color: white;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.85;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.esaurito-badge {
    position: absolute;
    top: 10px;
    right: -45px;
    background: red;
    color: white;
    font-weight: bold;
    padding: 5px 50px;
    transform: rotate(45deg);
    z-index: 10;
    font-size: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

#modalProductImg {
    max-height: 300px;
    object-fit: contain;
}

#macrocategorie button.active,
#categorie button.active {
    font-weight: bold;
}

.color-white {
    color: white;
}