

/* 🔥 CONTAINER PRODOTTI */
#prodotti-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 🔥 4 prodotti per riga su desktop */
    gap: 30px;
    width: 90%;
    max-width: 1400px;
    margin: auto;
    padding: 50px 0; /* 🔥 Più spazio sopra e sotto */
}

/* 🔥 SINGOLA CARD PRODOTTO */
/* 🔥 Effetto ingrandimento + illuminazione al passaggio del mouse */
.prodotto:hover {
    transform: scale(1.05); /* 🔥 Ingrandisce del 5% */
    box-shadow: 0 10px 25px rgba(255, 165, 0, 0.6); /* 🔥 Ombra luminosa arancione */
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out, filter 0.3s ease-in-out;
    filter: brightness(1.15); /* 🔥 Aumenta leggermente la luminosità */
}


.prodotto {
    background: linear-gradient(135deg, #ff7e5f, #feb47b);
    border-radius: 15px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    font-size: 18px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 550px; /* 🔥 Altezza uniforme */
    align-items: center;
}

/* 🔥 IMMAGINE PRODOTTO - DIMENSIONE FISSA */
.prodotto img {
    width: 100%;
    height: 250px; /* 🔥 Altezza fissa per immagini */
    object-fit: contain; /* 🔥 Mantiene proporzioni senza tagli */
}

/* 🔥 TESTO PRODOTTO (Nome) - DIMENSIONE FISSA */
.prodotto h3 {
    font-size: 22px; /* 🔥 Più piccolo su desktop */
    margin: 15px 0;
    color: white;
    font-weight: bold;
    height: 100px; /* 🔥 Altezza fissa per allineamento */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 🔥 PREZZO */
.prodotto .prezzo {
    font-size: 24px;
    color: #fff;
    background: #ff7e5f;
    padding: 10px 15px;
    border-radius: 10px;
    display: inline-block;
    font-weight: bold;
    margin-bottom: 20px;
}

/* 🔥 DISPONIBILITÀ */
.stato-prodotto {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
}

.disponibile {
    color: #4CAF50;
}

.esaurito {
    color: red;
}

/* 🔥 BOTTONE "AGGIUNGI AL CARRELLO" */
.prodotto button {
    background-color: #ff7e5f;
    color: white;
    border: none;
    padding: 18px 22px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    transition: background 0.3s ease-in-out, transform 0.2s;
    min-height: 60px; /* 🔥 Bottone più grande */
}

.prodotto button:hover {
    background-color: #feb47b;
    transform: scale(1.05);
}

button:disabled {
    background-color: gray;
    cursor: not-allowed;
    opacity: 0.6;
}

/* 🔥 RESPONSIVE DESIGN */

/* ✅ Laptop */
@media (max-width: 1024px) {
    #prodotti-container {
        grid-template-columns: repeat(3, 1fr);
    }

    .prodotto {
        min-height: 520px;
    }

    .prodotto img {
        height: 230px; /* 🔥 Altezza fissa più piccola */
    }

    .prodotto h3 {
        font-size: 26px;
        height: 70px;
    }
}

/* ✅ Tablet */
@media (max-width: 768px) {
    #prodotti-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .prodotto {
        font-size: 18px;
        padding: 25px;
        min-height: 500px;
    }

    .prodotto img {
        height: 200px; /* 🔥 Altezza fissa più piccola */
    }

    .prodotto h3 {
        font-size: 22px;
        height: 65px;
    }

    .prodotto button {
        font-size: 18px;
        padding: 14px 20px;
    }
}

/* ✅ Smartphone */
@media (max-width: 480px) {
    #prodotti-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        width: 100%;
        max-width: 100vw;
        margin: 0 auto;
        padding: 30px 0;
    }

    .prodotto {
        width: 90%;
        max-width: 380px;
        min-height: 480px;
        padding: 20px;
        margin: 15px auto 0;
    }

    .prodotto img {
        height: 180px; /* 🔥 Altezza fissa più piccola */
    }

    .prodotto h3 {
        font-size: 20px;
        height: 55px;
    }

    .prodotto button {
        font-size: 16px;
        padding: 12px 18px;
    }
}
