/* Layout del Filtro Orizzontale */
.wppc-tags-filter {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.wppc-tag-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: #f8f9fa;
    border-radius: 20px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s;
	color:black;
}

.wppc-tag-btn.active, .wppc-tag-btn:hover {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

/* Card Progetto */
.card-inner {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.card-image-wrapper {
    position: relative;
    height: 240px;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Badge Tag in Alto a Destra */
.card-tag-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255,255,255,0.7);
    color: blue;
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 9999px;
    text-transform: uppercase;
}

/* Overlay Titolo e Sottotitolo in Basso a Sinistra dell'immagine */
.card-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: #fff;
}

.card-title {
    margin: 0;
    font-size: 18px;
    color: #fff;
}

.card-subtitle {
    margin: 2px 0 0 0;
    font-size: 13px;
    font-weight: 300;
    opacity: 0.85;
    color: #fff;
}

.card-body {
    padding: 15px;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #eee;
    font-size: 13px;
}

.card-meta-info span {
    margin-right: 12px;
    color: #555;
}

.card-link {
    color: #0073aa;
    text-decoration: none;
    font-weight: 600;
}