/* View: Views/Home/SimulatoriComunitaEnergetiche.cshtml */
:root {
        --ap-font: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
        --ap-ink: #1d1d1f;
        --ap-grey: #6e6e73;
        --ap-line: #e4edf5;
        --ap-surface: #f5f5f7;
        --cyan: #009FDA;
        --ls-tight: -.03em;
        --ls-snug: -.015em;
        --lh-tight: 1.05;
    }

    #header.fixed-top {
        background-color: rgba(255,255,255,.82) !important;
        -webkit-backdrop-filter: saturate(180%) blur(12px);
        backdrop-filter: saturate(180%) blur(12px);
        border-bottom: 1px solid var(--ap-line);
    }
    #header.fixed-top a,
    #header.fixed-top .nav-link,
    #header.fixed-top .navbar-nav .nav-link,
    #header.fixed-top li a { color: var(--ap-ink) !important; }

    /* HERO SPLIT */
    #hero-simulatori {
        position: relative;
        display: flex;
        align-items: center;
        min-height: 100vh;
        background: #fff !important;
        background-image: none !important;
        overflow: hidden;
        padding: clamp(120px, 13vw, 170px) 0 clamp(64px, 8vw, 100px);
    }
    #hero-simulatori::before {
        content: "";
        position: absolute;
        z-index: 0;
        top: 50%;
        right: -14%;
        width: 60%;
        aspect-ratio: 1;
        transform: translateY(-50%);
        background: radial-gradient(circle, rgba(0,159,218,.12), transparent 65%);
        filter: blur(70px);
        pointer-events: none;
    }
    #hero-simulatori .container { position: relative; z-index: 2; }
    .hero-content { max-width: 620px; }
    #hero-simulatori h1 {
        font-family: var(--ap-font);
        font-size: clamp(2.6rem, 5vw, 4.4rem);
        font-weight: 600;
        color: var(--ap-ink);
        line-height: var(--lh-tight);
        letter-spacing: var(--ls-tight);
        margin: 0 0 20px;
    }
    #hero-simulatori h1 span { color: var(--cyan); }
    .hero-divider {
        width: 56px;
        height: 3px;
        border: 0;
        border-radius: 3px;
        background: var(--cyan);
        margin: 0 0 28px;
        opacity: 1;
    }
    #hero-simulatori .hero-sub {
        font-family: var(--ap-font);
        font-size: clamp(1rem, 1.3vw, 1.18rem);
        font-weight: 400;
        color: var(--ap-grey);
        line-height: 1.65;
        margin: 0 0 32px;
        max-width: 520px;
    }
    .hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
    .hero-media {
   position: absolute;
z-index: 1;
right: -10%;
bottom: -20%;
width: 69%;
/* max-width: 880px; */
pointer-events: none;
transform: rotate(-5deg);
    }
    .hero-media img {
        width: 100%;
        height: auto;
        display: block;
        filter: drop-shadow(0 50px 90px rgba(0,60,120,.20));
    }

    .hero-sim-stats {
        display: flex;
        gap: 44px;
        margin-top: 44px;
        flex-wrap: wrap;
        padding-top: 32px;
        border-top: 1px solid var(--ap-line);
    }
    .hero-sim-stat .stat-num {
        font-family: var(--ap-font);
        font-size: clamp(1.8rem, 2.6vw, 2.3rem);
        font-weight: 600;
        color: var(--ap-ink);
        letter-spacing: var(--ls-tight);
        line-height: 1;
    }
    .hero-sim-stat .stat-label {
        font-family: var(--ap-font);
        font-size: 0.74rem;
        color: var(--ap-grey);
        text-transform: uppercase;
        letter-spacing: 1.5px;
        margin-top: 8px;
    }

    /* TIPOGRAFIA */
    .sez-label-white {
        font-size: 11px;
        font-weight: 700;
        color: rgba(255,255,255,.55);
        text-transform: uppercase;
        letter-spacing: 2px;
        margin-bottom: 10px;
    }
    .sez-label-blu {
        font-family: var(--ap-font);
        font-size: 12px;
        font-weight: 700;
        color: var(--ap-grey);
        text-transform: uppercase;
        letter-spacing: 2px;
        margin-bottom: 12px;
    }
    .titolo-interno, h2.home {
        font-family: var(--ap-font);
        font-weight: 600;
        color: var(--ap-ink);
        font-size: clamp(2rem, 4.4vw, 3.4rem);
        line-height: var(--lh-tight);
        letter-spacing: var(--ls-tight);
        margin: 0 0 14px;
    }
    .titolo-interno--xl, h2.home--xl { font-size: clamp(2.4rem, 6vw, 4.4rem); }
    .titolo-interno span.hl, h2.home span.hl { color: var(--cyan); }
    .titolo-medio {
        font-family: var(--ap-font);
        font-size: 1.4rem;
        font-weight: 600;
        color: var(--ap-ink);
        line-height: 1.3;
        letter-spacing: var(--ls-snug);
        margin: 0 0 .5rem;
    }
    .sottotitolo-interno {
        font-family: var(--ap-font);
        font-size: clamp(1rem, 1.2vw, 1.12rem);
        font-weight: 400;
        color: var(--ap-grey);
        line-height: 1.75;
        margin: 0 0 16px;
    }

    .sim-cta {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        background: var(--ap-ink);
        color: #fff;
        font-family: var(--ap-font);
        font-size: 16px;
        font-weight: 500;
        padding: 16px 30px;
        border-radius: 980px;
        text-decoration: none;
        transition: background .2s, transform .15s;
    }
    .sim-cta:hover { background: #000; color: #fff; transform: translateY(-1px); text-decoration: none; }
    .sim-btn-ghost {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        background: #fff;
        color: var(--ap-ink);
        border: 1px solid var(--ap-line);
        font-family: var(--ap-font);
        font-size: 16px;
        font-weight: 500;
        padding: 15px 28px;
        border-radius: 980px;
        text-decoration: none;
        transition: border-color .2s, transform .15s;
    }
    .sim-btn-ghost:hover { border-color: #b8b8c0; color: var(--ap-ink); transform: translateY(-1px); text-decoration: none; }
    .btn-outlineWHI {
        color: #fff !important;
        border: 1px solid #fff !important;
        padding: 20px;
    }
    .btn-outlineWHI:hover {
        background-color: #007fbf;
        color: #fff !important;
    }

    .divisore-minimal {
        border: none;
        border-top: 1px solid var(--ap-line);
        margin: 0;
        opacity: 1;
    }

    /* INTRO */
    .sez-intro-sim {
        background: #fff;
        padding: clamp(64px, 9vw, 120px) 0;
    }
    .fg-icon {
        width: 40px;
        height: 40px;
        background: transparent;
        border: 1px solid var(--ap-line);
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        color: var(--ap-ink);
        flex-shrink: 0;
    }
    .intro-garanzie-row {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        margin-top: 56px;
        padding-top: 36px;
        border-top: 1px solid var(--ap-line);
    }
    .intro-garanzia-item {
        display: flex;
        align-items: center;
        gap: 14px;
        font-family: var(--ap-font);
        font-size: .95rem;
        color: var(--ap-ink);
        font-weight: 500;
        line-height: 1.5;
    }

    .card-vantaggio {
        background: #fff;
        border: 1px solid var(--ap-line);
        border-radius: 20px;
        padding: 28px 24px;
        height: 100%;
        transition: transform .35s cubic-bezier(.2,.65,.3,1), box-shadow .35s, border-color .35s;
    }
    .card-vantaggio:hover {
        transform: translateY(-5px);
        border-color: rgba(0,159,218,.30);
        box-shadow: 0 26px 60px -30px rgba(0,159,218,.42);
    }
    .card-vantaggio .cv-icon {
        width: 48px;
        height: 48px;
        background: #fff;
        border: 1px solid var(--ap-line);
        border-radius: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 22px;
        color: var(--cyan);
        margin-bottom: 20px;
    }
    .card-vantaggio h4 {
        font-family: var(--ap-font);
        font-size: 1rem;
        font-weight: 600;
        color: var(--ap-ink);
        letter-spacing: var(--ls-snug);
        line-height: 1.3;
        margin-bottom: 8px;
    }
    .card-vantaggio p {
        font-family: var(--ap-font);
        font-size: .9rem;
        color: var(--ap-grey);
        margin-bottom: 0;
        line-height: 1.6;
    }

    /* SIMULATORI, SEZIONE NERA */
    .sez-simulatori {
        background: #000;
        padding: clamp(72px, 9vw, 130px) 0;
    }
    .sez-simulatori .sez-label-blu { color: rgba(255,255,255,.52); }
    .sez-simulatori h2.home { color: #fff; }
    .sez-simulatori h2.home span.hl { color: var(--cyan); }
    .sez-simulatori .sez-sub {
        font-family: var(--ap-font);
        font-size: clamp(1rem, 1.2vw, 1.12rem);
        color: rgba(255,255,255,.62);
        line-height: 1.75;
        margin: 18px auto 0;
        max-width: 720px;
    }
    .card-simulatore {
        background: #fff;
        border: 1px solid rgba(255,255,255,.10);
        border-radius: 24px;
        padding: 40px 36px;
        height: 100%;
        display: flex;
        flex-direction: column;
        transition: transform .35s cubic-bezier(.2,.65,.3,1), box-shadow .35s, border-color .35s;
    }
    .card-simulatore:hover {
        transform: translateY(-6px);
        border-color: rgba(0,159,218,.55);
        box-shadow: 0 34px 74px -28px rgba(0,159,218,.45);
    }
    .card-simulatore .sim-card-eyebrow {
        font-family: var(--ap-font);
        font-size: 12px;
        font-weight: 700;
        color: var(--ap-grey);
        text-transform: uppercase;
        letter-spacing: 2px;
        margin-bottom: 14px;
    }
    .card-simulatore h4 {
        font-family: var(--ap-font);
        font-size: clamp(1.6rem, 2.4vw, 2.1rem);
        font-weight: 600;
        color: var(--ap-ink);
        letter-spacing: var(--ls-tight);
        line-height: 1.1;
        margin-bottom: 16px;
    }
    .card-simulatore p {
        font-family: var(--ap-font);
        font-size: .95rem;
        color: var(--ap-grey);
        line-height: 1.7;
        margin-bottom: 28px;
        flex-grow: 1;
    }

    /* DIGITAL SUITE */
    .sez-digital-suite {
        background: var(--ap-surface);
        padding: clamp(64px, 9vw, 120px) 0;
    }
    .digital-suite-card {
        background: #fff;
        border: 1px solid var(--ap-line);
        border-radius: 28px;
        padding: 44px 40px;
        height: 100%;
        display: flex;
        flex-direction: column;
        transition: transform .35s cubic-bezier(.2,.65,.3,1), box-shadow .35s, border-color .35s;
    }
    .digital-suite-card:hover {
        transform: translateY(-5px);
        border-color: rgba(0,159,218,.30);
        box-shadow: 0 30px 68px -32px rgba(0,159,218,.42);
    }
    .digital-suite-card img {
        width: 100%;
        height: auto;
        border-radius: 18px;
        border: 1px solid var(--ap-line);
        margin-bottom: 28px;
    }
    .digital-suite-card h4 {
        font-family: var(--ap-font);
        font-size: clamp(1.4rem, 2.2vw, 1.9rem);
        font-weight: 600;
        color: var(--ap-ink);
        letter-spacing: var(--ls-tight);
        line-height: 1.15;
        margin-bottom: 24px;
    }
    .digital-suite-card p {
        font-family: var(--ap-font);
        font-size: .95rem;
        color: var(--ap-grey);
        line-height: 1.7;
        margin-bottom: 28px;
        flex-grow: 1;
    }
    .digital-suite-label {
        font-family: var(--ap-font);
        font-size: 12px;
        font-weight: 700;
        color: var(--ap-grey);
        text-transform: uppercase;
        letter-spacing: 2px;
        margin-bottom: 12px;
    }

    /* RISULTATI */
    .sez-risultati {
        background: #fff;
        padding: clamp(64px, 9vw, 120px) 0;
    }
    .risultato-card {
        background: var(--ap-surface);
        border: 1px solid var(--ap-line);
        border-radius: 24px;
        padding: 48px 28px;
        text-align: center;
        height: 100%;
        transition: transform .35s cubic-bezier(.2,.65,.3,1), border-color .35s;
    }
    .risultato-card:hover {
        transform: translateY(-5px);
        border-color: rgba(0,159,218,.30);
    }
    .risultato-num {
        font-family: var(--ap-font);
        font-size: clamp(3rem, 5vw, 4.4rem);
        font-weight: 600;
        color: var(--ap-ink);
        letter-spacing: var(--ls-tight);
        line-height: 1;
        margin-bottom: 16px;
    }
    .risultato-label {
        font-family: var(--ap-font);
        font-size: .95rem;
        color: var(--ap-grey);
        line-height: 1.6;
    }

    /* FAQ */
    .sez-faq-sim {
        background: var(--ap-surface);
        padding: clamp(64px, 9vw, 120px) 0;
    }
    .sez-faq-sim .accordion-item {
        border: 1px solid var(--ap-line) !important;
        border-radius: 20px !important;
        margin-bottom: 12px;
        overflow: hidden;
        background: #fff;
    }
    .sez-faq-sim .accordion-button {
        font-family: var(--ap-font);
        font-weight: 600;
        font-size: 1rem;
        color: var(--ap-ink) !important;
        background: #fff !important;
        box-shadow: none !important;
        border-radius: 20px !important;
        padding: 24px 28px;
        letter-spacing: var(--ls-snug);
    }
    .sez-faq-sim .accordion-button:not(.collapsed) {
        color: var(--ap-ink) !important;
        background: #fff !important;
        box-shadow: none !important;
    }
    .sez-faq-sim .accordion-button::after {
        filter: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23009FDA' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    }
    .sez-faq-sim .accordion-body {
        font-family: var(--ap-font);
        font-size: .95rem;
        color: var(--ap-grey);
        line-height: 1.75;
        background: #fff;
        border-top: 1px solid var(--ap-line);
        padding: 22px 28px 26px;
    }
    .sez-faq-sim .accordion-body a { color: var(--ap-ink); font-weight: 600; text-decoration: underline; }
    .sez-faq-sim .accordion-body a:hover { color: var(--cyan); }

    /* CTA FINALE */
    .sez-cta-finale {
        background: #fff;
        padding: clamp(64px, 9vw, 120px) 0;
    }
    .sim-cta-band {
        position: relative;
        overflow: hidden;
        background: linear-gradient(135deg, #e7f6fd 0%, #f3fbff 55%, #ffffff 100%);
        border: 1px solid #d4ecfa;
        border-radius: 32px;
        padding: clamp(48px, 7vw, 100px) 24px;
        text-align: center;
    }
    .sim-cta-band::before {
        content: "";
        position: absolute;
        z-index: 0;
        top: -45%;
        left: 50%;
        width: 70%;
        aspect-ratio: 1;
        transform: translateX(-50%);
        background: radial-gradient(circle, rgba(0,159,218,.20), transparent 65%);
        filter: blur(54px);
        pointer-events: none;
    }
    .sim-cta-band > * { position: relative; z-index: 1; }
    .sim-actions {
        margin-top: 30px;
        display: flex;
        gap: 14px;
        flex-wrap: wrap;
        justify-content: center;
    }

    @media (max-width: 1399px) {
        .hero-media { width: 50%; right: -6%; bottom: -8%; }
    }
    @media (max-width: 1199px) {
        .hero-media { width: 46%; right: -8%; bottom: -4%; }
        .hero-content { max-width: 520px; }
    }
    @media (max-width: 991px) {
        #hero-simulatori {
            min-height: auto;
            text-align: center;
            padding-bottom: 0;
        }
        .hero-content { max-width: 100%; }
        #hero-simulatori .hero-divider { margin-left: auto; margin-right: auto; }
        #hero-simulatori .hero-sub { margin-left: auto; margin-right: auto; }
        .hero-actions { justify-content: center; }
        .hero-sim-stats { justify-content: center; gap: 28px; }
        .hero-media {
            position: relative;
            right: auto;
            bottom: auto;
            width: 100%;

            margin: 44px auto 0;
        }
        .intro-garanzie-row { grid-template-columns: repeat(2, 1fr); }
        .sez-intro-sim .col-lg-6:first-child { margin-bottom: 44px; }
    }
    @media (max-width: 767px) {
        #hero-simulatori {
            padding-top: clamp(104px, 24vw, 140px);
            padding-bottom: clamp(56px, 12vw, 80px);
        }
        #hero-simulatori::before { top: 44%; right: -34%; width: 124%; }
        #hero-simulatori h1 { font-size: clamp(2.2rem, 9vw, 2.8rem); }
        .hero-media { display: none; }
        .hero-actions { flex-direction: column; align-items: stretch; gap: 12px; }
        .hero-sim-stats { gap: 26px 20px; margin-top: 36px; padding-top: 26px; }
        .hero-sim-stat { flex: 1 1 40%; }

        .card-simulatore { padding: 30px 26px; border-radius: 20px; }
        .digital-suite-card { padding: 30px 24px; border-radius: 22px; }
        .risultato-card { padding: 36px 24px; border-radius: 20px; }
        .sez-faq-sim .accordion-button { padding: 20px 20px; font-size: .93rem; }
        .sez-faq-sim .accordion-body { padding: 20px 20px 24px; }
        .sim-cta-band { border-radius: 24px; }
        .sim-actions { flex-direction: column; align-items: stretch; }
        .card-simulatore .sim-cta,
        .digital-suite-card .sim-cta { width: 100%; }
    }
    @media (max-width: 480px) {
        .intro-garanzie-row { grid-template-columns: 1fr; }
    }
