/* Contenitore principale */
.toscana-post-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: stretch; /* Assicura che gli elementi si allunghino uniformemente */
}

/* Item della grid */
.post-card {
    border: 1px solid #ddd;
    padding: 0;
    margin-bottom: 15px;
    box-sizing: border-box;
    border-radius: 10px;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
    overflow: hidden;
    width: calc(33.3333% - 20px); /* Tre colonne per desktop, una colonna per mobile */
    cursor: pointer;
    text-decoration: none !important;
}

.post-card:hover {
    background-color: #f0f0f0;
    transform: scale(1.05);
}

.post-card img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    image-rendering: auto; /* Utilizza il miglior metodo di rendering disponibile */
    -webkit-filter: brightness(100%);
    filter: brightness(100%);
}

.post-card .post-address,
.post-card .post-title,
.post-card .post-info,
.post-card .post-category {
    margin: 0 15px 15px;
    padding: 0;
}

.post-card .post-address {
    font-size: 1em;
    color: #54595F;
    margin-top: 20px;
}

.post-card .post-address i {
    color: #FF5722;
}

.post-card .post-title {
    color: #54595F;
    font-weight: 600;
    text-decoration: none;
    font-size: 1.4444444444444rem;
    font-family: 'Nunito', sans-serif;
    line-height: 1.3em;
    min-height: 3em; /* Imposta un'altezza minima per allineare i titoli */
    display: flex;
    align-items: center; /* Allinea verticalmente il testo al centro */
    justify-content: center; /* Allinea orizzontalmente il testo al centro */
}

.post-card .post-info {
    font-size: 1em;
    color: #333;
}

.post-card .post-category {
    font-size: 1em;
    color: #005A87;
}

.post-card .post-button {
    text-align: center;
    padding: 15px 0;
    border-top: 1px solid #ddd;
    width: 100%;
    display: block;
    text-decoration: none;
    color: white;
    background-color: #3498DB;
    border-radius: 0 0 10px 10px;
    transition: background-color 0.3s ease;
}

.post-card .post-button:hover {
    background-color: #2980B9;
}

/* Responsive design */
@media (max-width: 768px) {
    .post-card {
        width: 100%; /* Una colonna per mobile */
    }
}

.sports-icons {
    margin: 0 15px 15px;
}

.sports-icons i {
    font-size: 1.2em;
    margin-right: 5px;
    color: #005A87;
}

.info {
    font-size: 1em;
    color: #333;
    padding: 0 15px;
    margin-bottom: 10px;
    text-align: center;
}