.flex-mostre {
    width: 60%;
    height: auto;
    overflow: hidden;
    margin: 0 auto;
    padding: 0px 20px 0px 28px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    color: #333;
}

/* Box contenitore */
.boxxFT {
    display: flex;
    flex-wrap: wrap;
    padding: 15px;
    justify-content: left;
    max-width: 42%;
}

/* Box per le immagini */
.boxFotoFT {
    flex: 1;
    min-width: 200px;
    max-width: 42%;
    padding: 5px;
    text-align: right;
}

/* Contenitore principale */
.flex-cat {
    width: 80%;
    height: auto;
    overflow: hidden;
    margin: 0 auto;
    padding: 0px 20px 0px 28px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    color: #333;
}

/* Card */
.cat-item {
    max-width: 320px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
    text-align: center;
    margin: 0 10px 30px 0;
}

.cat-item:hover {
    transform: translateY(-5px);
    cursor: pointer;
}

.cat-item img {
    max-width: 80%;
    height: auto;
    padding: 10px;
    border: 1px solid #E0E0E0;
}

/* --- Media Query per dispositivi più piccoli --- */

/* Tablet */
@media (max-width: 1024px) {
    .flex-mostre,
    .flex-cat {
        width: 90%;
        padding: 0 15px;
    }

    .boxxFT {
        max-width: 100%;
        justify-content: center;
    }

    .boxFotoFT {
        max-width: 100%;
        text-align: center;
    }

    .cat-item {
        max-width: 280px;
        margin: 0 auto 20px;
    }
}

/* Smartphone */
@media (max-width: 768px) {
    .flex-mostre,
    .flex-cat {
        width: 100%;
        padding: 0 6px;
    }

    .boxxFT {
        flex-direction: column;
        align-items: center;
        max-width: 100%;
        margin-top:-30px;
    }

    .boxFotoFT {
display: none;
    }
}
