

a {
    color: #00005C(--info);
    text-decoration: none;
}

a:hover {
    color: #0000CC(--primary);
    text-decoration: underline;

}

.portfolio-item {
    margin-bottom: 30px;
}
.scrollable-menu {
        height: auto;
        max-height: 200px;
        overflow-x: hidden;

}
.breadcrumb-item.active {
        color: #000000;
}
.bg-campania {
            background: linear-gradient(135deg, #009640 0%, #007c34 100%);
        }

        .navbar-brand {
            font-weight: 700;
        }

/* SEZIONE HERO */
.hero {
    position: relative;
    width: 100%;
    min-height: 50vh; /* mobile: altezza equilibrata */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #fff;
    padding: 1rem;
}

/* IMMAGINE DI SFONDO */
.hero-bg {
    position: absolute;
    inset: 0;                    /* top/right/bottom/left = 0 */
    width: 100%;
    height: 100%;
    object-fit: cover;           /* mantiene proporzioni */
    object-position: center top; /* bilanciamento: meno taglio su desktop */
    z-index: 0;
}

/* OVERLAY GRADIENTE */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        rgba(0, 0, 0, 0.5),
        rgba(0, 0, 0, 0.5)
    );
    z-index: 1;
}

/* CONTENUTI */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1024px;
    padding: 1rem;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    margin-bottom: 0.8rem;
}

.hero-content p {
    font-size: clamp(1rem, 2.2vw, 1.3rem);
    margin: 0;
}


/* VERSIONE DESKTOP: immagine meno tagliata */
@media (min-width: 1024px) {
    .hero {
        min-height: 75vh; /* aumenta l’area visibile dell’immagine */
    }
}




        .card-custom {
            transition: transform 0.3s ease;
            border: none;
            border-radius: 12px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            margin-bottom: 25px;
        }

        .card-custom:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
        }

        .section-title {
            border-left: 5px solid #009640;
            padding-left: 15px;
            margin: 40px 0 25px 0;
            font-weight: 700;
        }

        .btn-campania {
            background: linear-gradient(to right, #009640, #00b050);
            border: none;
            color: white;
            font-weight: 600;
            padding: 10px 25px;
            border-radius: 8px;
            transition: all 0.3s;
        }

        .btn-campania:hover {
            background: linear-gradient(to right, #008238, #009640);
            transform: scale(1.05);
            color: white;
        }

        .info-box {
            background-color: #f8f9fa;
            border-radius: 10px;
            padding: 25px;
            margin-bottom: 30px;
        }

        .accordion-button:not(.collapsed) {
            background-color: rgba(0, 150, 64, 0.1);
            color: #009640;
            font-weight: 600;
        }

        .badge-csr {
            background: linear-gradient(45deg, #009640, #00b050);
            color: white;
        }

        .table-custom th {
            background-color: #009640;
            color: white;
        }

        .feature-icon {
            font-size: 2.5rem;
            color: #009640;
            margin-bottom: 15px;
        }

        .document-card {
            border-left: 4px solid #009640;
            transition: all 0.3s;
        }

        .document-card:hover {
            border-left-color: #00b050;
            background-color: #f8f9fa;
        }

        footer {
            background-color: #343a40;
        }

        /* Stili News Semplificati */

        .news-section {
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
            padding: 40px 0;
            margin: 40px 0;
        }

        .news-card {
            border-radius: 12px;
            overflow: hidden;
            transition: all 0.3s ease;
            border: none;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            height: auto;
            margin-bottom: 20px;
        }

        .news-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
        }

        .news-badge {
            position: absolute;
            top: 15px;
            right: 15px;
            z-index: 2;
        }

        .news-date {
            font-size: 0.85rem;
            color: #6c757d;
        }

        /* Altezze fisse per le card secondarie */

        .news-secondary-card {
            min-height: 180px;
        }

        /* Stili per interventi attivati */

        .interventi-card {
            border-left: 4px solid #009640;
            transition: all 0.3s;
        }

        .interventi-card:hover {
            border-left-color: #00b050;
            background-color: #f8f9fa;
        }

        /* Stili per tabelle responsive */

        .table-responsive {
            overflow-x: auto;
        }

        .categoria-header {
            background: linear-gradient(135deg, #009640, #007c34) !important;
            color: white;
            font-size: 1.1rem;
            font-weight: 700;
        }

        .categoria-header td {
            padding: 15px 12px;
            border-bottom: 2px solid #005a28;
        }


        /* Per dispositivi mobili */

        @media (max-width: 768px) {
            .hero-section {
                padding: 50px 0;
            }
            .hero-section h1 {
                font-size: 2rem;
            }
            .table-responsive {
                font-size: 0.85rem;
            }
            .news-secondary-card {
                min-height: auto;
            }
        }

        /* Stili per la tabella responsive */

        .table-responsive {
            overflow-x: auto;
        }

        .table th {
            white-space: nowrap;
        }

        .table td {
            vertical-align: middle;
        }

        /* Per dispositivi mobili */

        @media (max-width: 768px) {
            .card-banner {
                padding: 25px 15px;
            }
            .card-banner h1 {
                font-size: 1.8rem;
            }
            .table-responsive {
                font-size: 0.85rem;
            }
            .btn-download {
                padding: 8px 12px;
                font-size: 0.85rem;
            }
        }

        /* Per dispositivi molto piccoli */

        @media (max-width: 576px) {
            .table-responsive {
                font-size: 0.8rem;
            }
            .btn-download {
                padding: 6px 10px;
                font-size: 0.8rem;
            }
            .table th,
            .table td {
                padding: 0.5rem;
            }
        }