/* =========================================
   NUOVO DESIGN: STILE CARD E HERO BANNER
   ========================================= */

body, html {
    background-color: #f8fcfb; /* Sfondo generale chiarissimo */
    color: #4a5568;
}

/* Banner superiore scuro */
.hero-page {
    background: linear-gradient(135deg, #2A5A5A 0%, #1D7A70 100%);
    color: #ffffff;
    text-align: center;
    padding: 60px 20px;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    margin-bottom: 50px;
}

.hero-page h1 {
    font-size: 2.6rem;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.hero-page p {
    font-size: 1.1rem;
    font-weight: 300;
    opacity: 0.9;
    margin: 0;
}

/* Contenitore della lista progetti */
.lista-card-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 30px; /* Spazio tra una card e l'altra */
    margin-bottom: 80px;
}

/* Stile della singola Card */
.custom-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 35px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    /* Leggerissima ombra per dare profondità */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03); 
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.custom-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

/* Contenuto testuale a sinistra */
.custom-card-content {
    flex: 1;
}

.custom-card-title {
    color: #176B66; /* Verde/Teal del titolo nello screenshot */
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 0;
    margin-bottom: 18px;
    letter-spacing: 0.5px;
}

.custom-card-desc {
    color: #555e6b;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 25px;
}

/* Area dei Badge (Tag in basso) */
.custom-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.custom-card-tag {
    background-color: #e8f5f3; /* Sfondo verdino chiaro */
    border: 1px solid #bce1db; /* Bordo sottile verdino */
    color: #176B66;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Immagine a destra */
.custom-card-img {
    flex-shrink: 0;
    width: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.custom-card-img img {
    max-width: 100%;
    height: auto;
    border-radius: 8px; /* Leggero arrotondamento all'immagine */
    object-fit: cover;
}

/* Responsive per dispositivi mobili */
@media (max-width: 768px) {
    .custom-card {
        flex-direction: column;
        padding: 25px;
        gap: 25px;
    }
    
    .custom-card-img {
        width: 100%;
        justify-content: flex-start;
    }
    
    .custom-card-img img {
        width: 100%;
        max-height: 300px; /* Limita l'altezza su schermi piccoli */
    }
}