/* Menu (dekstop) */
.menu-icon {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* Immagine su wine-index */
#imagine {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.flat {
    max-width: 100%;
}

/* Galleria fotografica */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    padding: 5px;
    gap: 5px;
}

.gallery-container img { /* contiene la foto singola */
    width: 100%;
    height: auto;
    margin-top: 1%;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item {
    border: 1px solid black;
    border-radius: 5px;
    height: 450px;
}

.gallery-item:hover {
    border: 2px solid black;
}

.image-cantina, 
.image-description {
    text-align: center;
    overflow: hidden;
}

.image-cantina { /* nome cantina */
    margin-top: 2px;
    height: 10%;
}

.image-description {
    height: 10%;
}

.wine-name {
    font-weight: bolder;
}

.wine-name, 
.wine-cantina,
.wine-price, 
.wine-form {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 14px;
    color: #100b0b;
}

.image-pfa {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-align: center;
    height: 8%;
        border: 1px solid red;

}
.pfa-footer {
  display: flex;
  justify-content: space-between;
}


.wine-price, 
.wine-form {color: #686868;}

.wine-price {
    text-align: right;
    margin-right: 5px;
}

.wine-form {
    text-align: left;
    margin-left: 5px;
}

/* Stili per Mobile */
@media (max-width: 767px) {
    header nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #f8f8f8;
        border-bottom: #d4d3d3 1px solid;
        position: absolute;
        top: 40px;
        left: 0;
    }

    header nav ul.active {
        display: flex;
    }

    header nav ul li {
        margin: 10px 0;
        text-align: center;
    }

    .menu-icon {
        display: block;
    }

    .gallery-container {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }

    .gallery-item {
        height: 250px;
        font-size: 10px;
    }
/* NOME DEL PRODUTTORE */
.image-cantina {
    margin-top: 8px;
    line-height: 1.2;
    height: 12%;
    }
/* NOME DEL VINO */
.image-description {
    height: 15%;
    }
/* prezzo-formato-anno */
.image-pfa {height: 10%;}

.wine-name, 
.wine-cantina,
.wine-price, 
.wine-form {
    font-size: 10px;
    }
}

/* Stili per tablet */
@media (min-width: 768px) and (max-width: 1023px) {}