/* ═══════════════════════════════════════════════════════════════
   VARIABILI & RESET
════════════════════════════════════════════════════════════════ */
:root {
    --verde:      #009339;
    --verde-dark: #00622a;
    --rosso:      #cc1621;
    --scuro:      #101820;
    --chiaro:     #f7f9f7;
    --testo:      #2b2b2b;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: "neutronic-narrow-black", sans-serif;
    font-weight: 400;
    color: var(--testo);
    background: #ffffff;
    margin: 0;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6,
.section-title, .navbar-brand,
.btn-main, .btn-green, .btn-white, .btn-outline-white,
.eyebrow, .candidate-name, .event-date {
    font-family: "neutronic-narrow-black", sans-serif;
    font-weight: 700;
}
a { text-decoration: none; }



/* ═══════════════════════════════════════════════════════════════
   SCROLL REVEAL
════════════════════════════════════════════════════════════════ */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 0;
    transition: opacity .65s ease var(--delay, 0s),
                transform .65s ease var(--delay, 0s);
}

.reveal-up    { transform: translateY(40px); }
.reveal-left  { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }

.reveal-up.is-visible,
.reveal-left.is-visible,
.reveal-right.is-visible {
    opacity: 1;
    transform: none;
}


/* ═══════════════════════════════════════════════════════════════
   NAVBAR
════════════════════════════════════════════════════════════════ */
.navbar {
    background: #ffffff;
    border-bottom: 4px solid var(--verde);
    padding: 10px 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 18px;
    font-weight: 900;
    color: var(--verde) !important;
    text-transform: uppercase;
}

.brand-logo {
    width: 110px;
    height: auto;
    object-fit: contain;
    display: block;
}

.brand-text { color: var(--verde); line-height: 1; }
.brand-text strong { color: var(--rosso); }

.nav-link {
    color: var(--scuro) !important;
    font-weight: 700;
    margin-left: 12px;
}

.nav-link:hover { color: var(--verde) !important; }


/* ═══════════════════════════════════════════════════════════════
   BOTTONI
════════════════════════════════════════════════════════════════ */
.btn-main {
    display: inline-block;
    background: var(--rosso);
    color: #ffffff;
    border-radius: 50px;
    font-weight: 800;
    padding: 13px 28px;
    border: 2px solid var(--rosso);
    transition: all .25s ease;
}
.btn-main:hover { background: #ffffff; color: var(--rosso); }

.btn-green {
    display: inline-block;
    background: var(--verde);
    color: #ffffff;
    border-radius: 50px;
    font-weight: 800;
    padding: 13px 28px;
    border: 2px solid var(--verde);
    transition: all .25s ease;
}
.btn-green:hover { background: #ffffff; color: var(--verde); }

.btn-white {
    display: inline-block;
    background: #ffffff;
    color: var(--rosso);
    border-radius: 50px;
    font-weight: 800;
    padding: 13px 28px;
    border: 2px solid #ffffff;
    transition: all .25s ease;
}
.btn-white:hover { background: transparent; color: #ffffff; }

.btn-outline-white {
    display: inline-block;
    background: transparent;
    color: #ffffff;
    border-radius: 50px;
    font-weight: 800;
    padding: 13px 28px;
    border: 2px solid #ffffff;
    transition: all .25s ease;
}
.btn-outline-white:hover { background: #ffffff; color: var(--verde-dark); }

.flavio-big-img {
    width: 100%;
    display: block;
    object-fit: cover;
}
/* ═══════════════════════════════════════════════════════════════
   HERO
════════════════════════════════════════════════════════════════ */
.hero-main-row { min-height: 720px; }

.hero-split {
    padding: 90px 0 0;
    overflow: hidden;
}

.hero-split h1 {
    font-size: clamp(72px, 7vw, 122px);
    line-height: .99;
    letter-spacing: -2px;
    margin-bottom: 28px;
}

.hero-split .hero-manifesto {
    color: var(--rosso);
    font-size: clamp(24px, 1.9vw, 38px);
    line-height: 1.05;
    font-weight: 700;
    max-width: 950px;
    margin-bottom: 34px;
}

.hero-election-img-wrap {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-top: 30px;
}

.hero-election-img {
    width: 100%;
    max-width: 240px;
    height: auto;
    object-fit: contain;
}

.hero-green  { color: var(--verde); }

.eyebrow {
    display: inline-block;
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.32);
    color: #ffffff;
    border-radius: 50px;
    padding: 8px 18px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 800;
    margin-bottom: 22px;
}

/* solo index.php — hero su sfondo bianco */
.eyebrow-dark {
    background: rgba(0,147,57,.10);
    border: 1.5px solid rgba(0,147,57,.25);
    color: var(--verde-dark);
}

@media (max-width: 991px) {
    .hero-split h1 { font-size: clamp(46px, 13vw, 78px); line-height: 1.02; }
    .hero-split .hero-manifesto { font-size: 22px; }
    .hero-election-img { max-height: 260px; }
    .hero-main-row { min-height: auto; }
}


/* ═══════════════════════════════════════════════════════════════
   FLAVIO BIG
════════════════════════════════════════════════════════════════ */
.flavio-big-section {
    background: #ffffff;
    padding: 0 0 40px;
    overflow: hidden;
}

.flavio-big-img {
    width: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

@media (max-width: 768px) {
    .flavio-big-img  {
        height: 520px !important;
        object-position: center;
    }
}
.flavio-video-desktop,
.flavio-video-mobile {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Desktop: mostra solo desktop */
.flavio-video-desktop {
    display: block !important;
}

.flavio-video-mobile {
    display: none !important;
}

/* Mobile: mostra solo mobile */
@media screen and (max-width: 768px) {
    .flavio-video-desktop {
        display: none !important;
    }

    .flavio-video-mobile {
        display: block !important;
    }
}
@media screen and (max-width: 768px) {

    .flavio-video-desktop {
        display: none !important;
    }

    .flavio-video-mobile {
        display: block !important;
        width: 100%;
        height: 520px !important;
        object-fit: cover;
        object-position: center;
    }

}
/* ═══════════════════════════════════════════════════════════════
   SEZIONI COLORATE
════════════════════════════════════════════════════════════════ */

/* — VERDE SCURO ─────────────────────────────────────────────── */
.section-dark-green {
    background: var(--verde-dark);
    padding: 90px 0;
    position: relative;
    overflow: hidden;
}

/* pattern puntini decorativo */
.section-dark-green::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,.06) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

/* — ROSSO ───────────────────────────────────────────────────── */
.section-red {
    background: var(--rosso);
    padding: 90px 0;
    position: relative;
    overflow: hidden;
}

.section-red::before {
    content: '';
    position: absolute;
    width: 500px; height: 500px;
    background: rgba(0,0,0,.12);
    border-radius: 50%;
    right: -180px; top: -180px;
    pointer-events: none;
}

/* testo ausiliario */
.text-white-70  { color: rgba(255,255,255,.75); font-size: 18px; }
.txt-red        { color: var(--rosso); }
.txt-white-bold { color: #ffffff; }

.section-title-inverted {
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 18px;
    letter-spacing: -1px;
    font-size: clamp(32px, 4vw, 56px);
    line-height: 1.05;
}

.section-subtitle-inverted {
    font-size: 18px;
    color: rgba(255,255,255,.8);
    max-width: 700px;
    margin: 0 auto 20px;
}

@media (max-width: 991px) {
    .section-dark-green,
    .section-red { padding: 70px 0; }
}


/* ═══════════════════════════════════════════════════════════════
   STAT PILLS (sezione realtà)
════════════════════════════════════════════════════════════════ */
.stat-pill {
    background: rgba(255,255,255,.08);
    border: 1.5px solid rgba(255,255,255,.18);
    border-radius: 20px;
    padding: 28px 20px;
    text-align: center;
    transition: background .25s;
}

.stat-pill:hover { background: rgba(255,255,255,.14); }

.stat-num {
    display: block;
    font-size: clamp(42px, 5vw, 64px);
    font-weight: 900;
    color: var(--rosso);
    line-height: 1;
}

.stat-label {
    display: block;
    color: rgba(255,255,255,.8);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 8px;
}


/* ═══════════════════════════════════════════════════════════════
   PLEDGE CARDS (sezione differenze)
════════════════════════════════════════════════════════════════ */
.pledge-card {
    background: rgba(255,255,255,.08);
    border: 1.5px solid rgba(255,255,255,.2);
    border-radius: 24px;
    padding: 36px 28px;
    height: 100%;
    text-align: left;
    transition: all .25s ease;
}

.pledge-card:hover {
    background: rgba(255,255,255,.15);
    transform: translateY(-5px);
}

.pledge-card h4 { color: #ffffff; font-weight: 900; margin-bottom: 10px; }
.pledge-card p  { color: rgba(255,255,255,.75); margin: 0; }

.pledge-card-red {
    background: var(--rosso);
    border-color: var(--rosso);
}
.pledge-card-red:hover { background: #b3121c; }

.pledge-num {
    font-size: clamp(42px, 5vw, 60px);
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 14px;
}


/* ═══════════════════════════════════════════════════════════════
   VALUE CARDS (sezione bg-soft)
════════════════════════════════════════════════════════════════ */
.value-card,
.content-card,
.event-card,
.list-card,
.candidate-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 34px 28px;
    height: 100%;
    box-shadow: 0 15px 45px rgba(0,0,0,.07);
    border-top: 5px solid var(--verde);
    transition: all .25s ease;
}

.value-card:hover,
.content-card:hover,
.event-card:hover,
.list-card:hover,
.candidate-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 55px rgba(0,0,0,.11);
}

.value-icon {
    width: 62px; height: 62px;
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,147,57,.10);
    color: var(--verde);
    font-size: 26px;
    margin-bottom: 22px;
}

.value-card h4,
.content-card h4,
.event-card h4,
.list-card h4 { font-weight: 900; color: var(--scuro); margin-bottom: 14px; }


/* ═══════════════════════════════════════════════════════════════
   EVENT CARDS
════════════════════════════════════════════════════════════════ */
.event-card-alt {
    border-top-color: var(--verde);
}

.event-card-featured {
    background: var(--verde-dark);
    border-top: 5px solid var(--rosso);
    color: #ffffff;
}

.event-card-featured h4 { color: #ffffff; }
.event-card-featured p  { color: rgba(255,255,255,.8); }

.event-date {
    display: inline-block;
    color: var(--rosso);
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.event-date-white { color: #ffffff !important; }


/* ═══════════════════════════════════════════════════════════════
   LIST LOGO CARDS
════════════════════════════════════════════════════════════════ */
.list-logo-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 30px;
    height: 100%;
    min-height: 180px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 15px 45px rgba(0,0,0,.12);
    border-top: 5px solid rgba(255,255,255,.3);
    transition: all .25s ease;
}

.list-logo-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 55px rgba(0,0,0,.18);
}

.list-logo-card img {
    width: 100%;
    max-width: 180px;
    object-fit: contain;
}


/* ═══════════════════════════════════════════════════════════════
   NOTICE / CANDIDATO BOX
════════════════════════════════════════════════════════════════ */
.notice-box {
    background: #fff7f7;
    border-left: 5px solid var(--rosso);
    padding: 28px;
    border-radius: 16px;
    color: #333;
}

.notice-box-inverted {
    background: rgba(255,255,255,.15);
    border: 2px solid rgba(255,255,255,.3);
    border-radius: 24px;
    padding: 36px 30px;
    color: #ffffff;
}

.notice-box-inverted h4 { color: #ffffff; font-weight: 900; }
.notice-box-inverted p  { color: rgba(255,255,255,.8); }


/* ═══════════════════════════════════════════════════════════════
   PROGRAM BOX
════════════════════════════════════════════════════════════════ */
.program-box {
    background: linear-gradient(135deg, var(--verde), #025c26);
    border-radius: 34px;
    color: #ffffff;
    padding: 48px;
    position: relative;
    overflow: hidden;
}



.program-box .content { position: relative; z-index: 2; }


/* ═══════════════════════════════════════════════════════════════
   CTA STRIP
════════════════════════════════════════════════════════════════ */
.cta-strip {
    background: var(--rosso);
    color: #ffffff;
    padding: 58px 0;
}

.cta-strip-big { padding: 90px 0; }

.cta-kicker {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 800;
    color: rgba(255,255,255,.65);
    margin-bottom: 10px;
    display: block;
}

.cta-strip h2 {
    font-size: clamp(36px, 5vw, 64px);
    letter-spacing: -1px;
    line-height: 1.05;
}


/* ═══════════════════════════════════════════════════════════════
   SECTION GENERICA & BG-SOFT
════════════════════════════════════════════════════════════════ */
section { padding: 90px 0; }

.section-title {
    font-weight: 900;
    color: var(--scuro);
    margin-bottom: 18px;
    letter-spacing: -1px;
    font-size: clamp(28px, 3.5vw, 48px);
}

.section-title span { color: var(--verde); }

.section-subtitle {
    font-size: 18px;
    line-height: 1.8;
    color: #555;
    max-width: 850px;
    margin: 0 auto 45px;
}

.bg-soft { background: var(--chiaro); }

@media (max-width: 991px) {
    section       { padding: 70px 0; }
    .program-box  { padding: 34px 26px; }
}


/* ═══════════════════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════════════════════ */
footer {
    background: var(--scuro);
    color: #ffffff;
    padding: 60px 0 24px;
}

.footer-claim h2 {
    font-weight: 900;
    font-size: clamp(36px, 6vw, 70px);
    color: #ffffff;
}

.footer-claim p {
    color: rgba(255,255,255,.8);
    font-size: 22px;
    font-weight: 700;
}

footer h5 { color: #ffffff; font-weight: 900; margin-bottom: 20px; }

footer a {
    color: rgba(255,255,255,.8);
    display: inline-block;
    margin-bottom: 8px;
}

footer a:hover { color: #ffffff; }

.social a {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,.10);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    font-size: 18px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.12);
    margin-top: 40px;
    padding-top: 22px;
    font-size: 13px;
    color: rgba(255,255,255,.65);
}


/* ═══════════════════════════════════════════════════════════════
   TRASPARENZA accordion (invariato)
════════════════════════════════════════════════════════════════ */
.transparency-accordion .accordion-item {
    border: 0;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 45px rgba(0,0,0,.07);
}

.transparency-accordion .accordion-button {
    background: #ffffff;
    color: var(--scuro);
    font-weight: 900;
    font-size: 20px;
    padding: 24px 28px;
}

.transparency-accordion .accordion-button:not(.collapsed) {
    background: var(--verde);
    color: #ffffff;
}

.transparency-accordion .accordion-button:focus { box-shadow: none; }
.transparency-accordion .accordion-body { background: #ffffff; padding: 24px; }

.candidate-download {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    background: #ffffff;
}

.candidate-download strong { color: var(--scuro); }

@media (max-width: 575px) {
    .candidate-download { flex-direction: column; align-items: flex-start; }
}


/* ═══════════════════════════════════════════════════════════════
   HERO (vecchio stile, usato in pagine interne)
════════════════════════════════════════════════════════════════ */
.hero {
    position: relative;
    min-height: 680px;
    display: flex;
    align-items: center;
    color: #ffffff;
    background:
        linear-gradient(110deg, rgba(3,148,58,.94) 0%, rgba(3,148,58,.88) 55%, rgba(16,24,32,.88) 100%),
        url('../img/sfondo1.jpg');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero-small { min-height: 480px; }

.hero::after {
    content: '';
    position: absolute;
    width: 460px; height: 460px;
    border: 45px solid rgba(255,255,255,.10);
    border-radius: 50%;
    right: -120px; bottom: -120px;
}

.hero-content { position: relative; z-index: 2; }

.hero h1 {
    font-size: clamp(42px, 7vw, 82px);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.hero-small h1 { font-size: clamp(42px, 6vw, 70px); }
.hero h1 span  { color: #ffffff; text-shadow: 0 4px 0 rgba(3,148,58,.45); }

.hero p {
    font-size: 20px;
    line-height: 1.7;
    max-width: 760px;
    margin-bottom: 34px;
}

.hero-card {
    background: rgba(255,255,255,.96);
    color: var(--scuro);
    border-radius: 26px;
    padding: 30px;
    box-shadow: 0 25px 60px rgba(0,0,0,.22);
}

.hero-card strong { color: var(--verde); font-size: 18px; }

@media (max-width: 991px) {
    .hero { min-height: auto; padding: 90px 0; }
    .hero-card { margin-top: 34px; }
}

.list-check {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.list-check li { margin-bottom: 12px; font-weight: 600; }
.list-check li::before {
    content: "●";
    color: var(--verde);
    font-weight: 900;
    margin-right: 10px;
}

.list-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.list-card-text {
    flex: 1;
}

.list-card-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    flex-shrink: 0;
}

@media(max-width: 768px) {
    .list-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .list-card-logo {
        width: 100px;
        height: 100px;
    }
}