/**
 * Stili per il blocco Linea di Mandato Progetti - Frontend
 */

.linea-mandato-progetti-block {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.linea-mandato-progetti-block.no-results {
    display: block;
    padding: 2rem;
    text-align: center;
    background-color: #f5f5f5;
    border-radius: 8px;
}

/* Card Progetto */
.linea-mandato-progetti-block .progetto-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.linea-mandato-progetti-block .progetto-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Immagine */
.linea-mandato-progetti-block .progetto-card__image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background-color: #f0f0f0;
}

.linea-mandato-progetti-block .progetto-card__image a {
    display: block;
    width: 100%;
    height: 100%;
}

.linea-mandato-progetti-block .progetto-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.linea-mandato-progetti-block .progetto-card:hover .progetto-card__image img {
    transform: scale(1.05);
}

/* Contenuto */
.linea-mandato-progetti-block .progetto-card__content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Categorie */
.linea-mandato-progetti-block .progetto-card__categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.linea-mandato-progetti-block .progetto-card__category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: #e8f5e9;
    color: #2e7d32;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 4px;
}

/* Titolo */
.linea-mandato-progetti-block .progetto-card__title {
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
}

.linea-mandato-progetti-block .progetto-card__title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.linea-mandato-progetti-block .progetto-card__title a:hover {
    color: #2e7d32;
}

/* Excerpt */
.linea-mandato-progetti-block .progetto-card__excerpt {
    margin-bottom: 1.5rem;
    color: #666;
    line-height: 1.6;
    font-size: 0.9375rem;
    flex-grow: 1;
}

.linea-mandato-progetti-block .progetto-card__excerpt p {
    margin: 0;
}

/* Footer */
.linea-mandato-progetti-block .progetto-card__footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

.linea-mandato-progetti-block .progetto-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #2e7d32;
    text-decoration: none;
    font-weight: 500;
    transition: gap 0.3s ease;
}

.linea-mandato-progetti-block .progetto-card__link:hover {
    gap: 0.75rem;
}

.linea-mandato-progetti-block .progetto-card__arrow {
    transition: transform 0.3s ease;
}

.linea-mandato-progetti-block .progetto-card__link:hover .progetto-card__arrow {
    transform: translateX(4px);
}

/* Responsive */
@media (max-width: 768px) {
    .linea-mandato-progetti-block {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .linea-mandato-progetti-block .progetto-card__content {
        padding: 1.25rem;
    }
}
