/* View: Views/Home/Consulenza.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;
            --navy: #003c78;
            --blu: #007FBF;
            --cyan: #009FDA;
            --giallo: #FFB704;
            --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 */
        #heroCalcola {
            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);
        }
        #heroCalcola::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;
        }
        #heroCalcola .container { position: relative; z-index: 2; }
        .hero-copy { max-width: 620px; }

        .hero-eyebrow {
            font-family: var(--ap-font);
            font-size: 12px;
            font-weight: 700;
            color: var(--ap-grey);
            text-transform: uppercase;
            letter-spacing: 2px;
            margin-bottom: 18px;
        }
        #heroCalcola 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;
        }
        #heroCalcola 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-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 34px;
            max-width: 520px;
        }
        .hero-actions {
            display: flex;
            gap: 14px;
            flex-wrap: wrap;
        }
        .hero-media {
            position: absolute;
            z-index: 1;
            right: -4%;
            bottom: 0;
            width: 60%;
            /*max-width: 900px;*/
            pointer-events: none;
        }
        .hero-media img {
            width: 100%;
            height: auto;
            display: block;
            filter: drop-shadow(0 50px 90px rgba(0,60,120,.20));
        }

        .hero-calcola-stats {
            display: flex;
            gap: 44px;
            margin-top: 48px;
            flex-wrap: wrap;
            padding-top: 32px;
            border-top: 1px solid var(--ap-line);
        }
        .hero-calcola-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-calcola-stat .stat-label {
            font-family: var(--ap-font);
            font-size: .74rem;
            color: var(--ap-grey);
            text-transform: uppercase;
            letter-spacing: 1.5px;
            margin-top: 8px;
        }

        /* TIPOGRAFIA */
        .cr-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;
        }
        .cr-title {
            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;
        }
        .cr-title--xl { font-size: clamp(2.4rem, 6vw, 4.4rem); }
        .cr-title span.hl { color: var(--cyan); }
        .cr-sub {
            font-family: var(--ap-font);
            font-size: clamp(1.05rem, 1.35vw, 1.25rem);
            color: var(--ap-ink);
            font-weight: 600;
            line-height: 1.4;
            margin: 0;
        }
        .cr-lead {
            font-family: var(--ap-font);
            font-size: clamp(1rem, 1.2vw, 1.12rem);
            color: var(--ap-grey);
            font-weight: 400;
            line-height: 1.7;
            margin: 18px 0 0;
        }
        .cr-lead--center { margin-left: auto; margin-right: auto; max-width: 820px; }

        .cr-cta {
            display: inline-flex;
            align-items: 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;
        }
        .cr-cta:hover { background: #000; color: #fff; transform: translateY(-1px); text-decoration: none; }
        .cr-btn-ghost {
            display: inline-flex;
            align-items: 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;
        }
        .cr-btn-ghost:hover { border-color: #b8b8c0; color: var(--ap-ink); transform: translateY(-1px); text-decoration: none; }

        .divisore-minimal {
            border: none;
            border-top: 1px solid var(--ap-line);
            margin: 0;
            opacity: 1;
        }

        /* COME FUNZIONA */
        .sez-come-funziona-calcola {
            background: var(--ap-surface);
            padding: clamp(64px, 9vw, 120px) 0;
        }
        .steps-grid-fv {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 20px;
            margin-top: 48px;
        }
        .step-card-fv {
            background: #fff;
            border: 1px solid var(--ap-line);
            border-radius: 24px;
            padding: 36px 32px;
            position: relative;
            transition: transform .35s cubic-bezier(.2,.65,.3,1), box-shadow .35s, border-color .35s;
        }
        .step-card-fv:hover {
            transform: translateY(-6px);
            border-color: rgba(0,159,218,.30);
            box-shadow: 0 30px 70px -28px rgba(0,159,218,.42);
        }
        .step-card-fv .step-n {
            font-family: var(--ap-font);
            font-size: 12px;
            font-weight: 700;
            color: var(--cyan);
            letter-spacing: 2px;
            margin-bottom: 14px;
        }
        .step-card-fv h3 {
            font-family: var(--ap-font);
            font-size: 1.2rem;
            font-weight: 600;
            color: var(--ap-ink);
            letter-spacing: var(--ls-snug);
            line-height: 1.2;
            margin: 0 0 10px;
        }
        .step-card-fv p {
            font-family: var(--ap-font);
            font-size: .95rem;
            color: var(--ap-grey);
            margin: 0;
            line-height: 1.65;
        }

        /* COUNTER */
        .sez-counter-risparmio {
            background: #fff;
            padding: clamp(64px, 9vw, 120px) 0;
            overflow: hidden;
            position: relative;
        }
        .counter-col-num {
            display: flex;
            flex-direction: column;
            justify-content: center;
        }
        .counter-label-top {
            font-family: var(--ap-font);
            font-size: 12px;
            font-weight: 700;
            color: var(--ap-grey);
            text-transform: uppercase;
            letter-spacing: 2px;
            margin-bottom: 14px;
        }
.counter-number {
    font-family: var(--ap-font);
    font-size: clamp(11rem, 30vw, 23rem);
    font-weight: 600;
    color: var(--cyan);
    letter-spacing: -.06em;
    line-height: .85;
}
.counter-suffix {
    font-family: var(--ap-font);
    font-size: clamp(5.5rem, 14vw, 11rem);
    font-weight: 600;
    color: var(--cyan);
    letter-spacing: -.04em;
    align-self: center;
    margin-left: 6px;
}
        .counter-suffix {
            font-family: var(--ap-font);
            font-size: clamp(3.4rem, 8vw, 6rem);
            font-weight: 600;
            color: var(--cyan);
            letter-spacing: -.04em;
            align-self: center;
            margin-left: 4px;
        }
        .counter-headline {
            font-family: var(--ap-font);
            font-size: clamp(1.3rem, 2vw, 1.7rem);
            color: var(--ap-ink);
            font-weight: 500;
            letter-spacing: var(--ls-snug);
            margin-bottom: 26px;
            line-height: 1.3;
            border-bottom: 1px solid var(--ap-line);
            padding-bottom: 24px;
        }
        .counter-sub {
            font-family: var(--ap-font);
            color: var(--ap-grey);
            font-size: 1rem;
            line-height: 1.7;
            margin-bottom: 32px;
            max-width: 440px;
        }
        .counter-col-img {
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .counter-col-img img { width: 100%; height: auto; }

        /* SIMULATORE */
        #sez-simulatore {
            padding: clamp(64px, 9vw, 120px) 0;
            background: var(--ap-surface);
        }
        .simulatore-card {
            background: #fff;
            border-radius: 28px;
            padding: clamp(32px, 4vw, 44px);
            border: 1px solid var(--ap-line);
            box-shadow: 0 30px 70px -40px rgba(0,60,120,.28);
        }
        .simulatore-card h3 {
            font-family: var(--ap-font);
            font-size: 1.5rem;
            font-weight: 600;
            color: var(--ap-ink);
            letter-spacing: var(--ls-snug);
            margin: 0 0 8px;
        }
        .simulatore-card .form-intro {
            font-family: var(--ap-font);
            font-size: .92rem;
            color: var(--ap-grey);
            line-height: 1.6;
            margin-bottom: 28px;
        }
        .simulatore-card .form-control {
            background: transparent;
            border: 1px solid #dcdce1;
            border-radius: 14px;
            padding: 15px 18px;
            font-family: var(--ap-font);
            font-size: .95rem;
            font-weight: 400;
            color: var(--ap-ink);
            box-shadow: none;
            transition: border-color .2s;
        }
        .simulatore-card .form-control::placeholder { color: #a1a1a8; }
        .simulatore-card .form-control:hover { border-color: #b8b8c0; }
        .simulatore-card .form-control:focus {
            background: transparent;
            border-color: var(--ap-ink);
            box-shadow: none;
            outline: none;
        }
        .simulatore-card .form-control.error { border-color: #d94040; }
        .simulatore-card label.error {
            font-family: var(--ap-font);
            font-size: .78rem;
            color: #d94040;
            margin-top: 6px;
        }
        .simulatore-card .form-group { margin-bottom: 14px; }
        .simulatore-card .form-text {
            font-family: var(--ap-font);
            font-size: .78rem;
            color: var(--ap-grey);
        }
        .simulatore-card input[type="submit"] {
            width: 100%;
            background: var(--ap-ink);
            color: #fff;
            border: none;
            border-radius: 980px;
            padding: 17px 24px;
            font-family: var(--ap-font);
            font-weight: 500;
            font-size: 1rem;
            cursor: pointer;
            transition: background .2s, transform .15s;
            margin-top: 8px;
        }
        .simulatore-card input[type="submit"]:hover { background: #000; transform: translateY(-1px); }
        .simulatore-card h6 {
            font-family: var(--ap-font);
            font-size: .76rem;
            color: var(--ap-grey);
            margin-top: 16px;
            line-height: 1.5;
        }

        .form-garanzie {
            display: flex;
            flex-direction: column;
            gap: 14px;
            margin-top: 28px;
            padding-top: 26px;
            border-top: 1px solid var(--ap-line);
        }
        .form-garanzia-item {
            display: flex;
            align-items: center;
            gap: 14px;
            font-family: var(--ap-font);
            font-size: .92rem;
            color: var(--ap-ink);
            font-weight: 500;
        }
        .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: 15px;
            color: var(--ap-ink);
            flex-shrink: 0;
        }

        /* VANTAGGI */
        .sez-ottieni {
            background: #fff;
            padding: clamp(64px, 9vw, 120px) 0;
        }
        .card-vantaggio {
            background: linear-gradient(180deg, #ffffff 0%, var(--ap-surface) 100%);
            border: 1px solid var(--ap-line);
            border-radius: 24px;
            padding: 34px 32px;
            height: 100%;
            transition: transform .35s cubic-bezier(.2,.65,.3,1), box-shadow .35s, border-color .35s;
        }
        .card-vantaggio:hover {
            transform: translateY(-6px);
            border-color: rgba(0,159,218,.30);
            box-shadow: 0 30px 70px -28px rgba(0,159,218,.42);
        }
        .card-vantaggio .cv-icon {
            width: 52px;
            height: 52px;
            background: #fff;
            border: 1px solid var(--ap-line);
            border-radius: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            color: var(--cyan);
            margin-bottom: 22px;
        }
        .card-vantaggio h4 {
            font-family: var(--ap-font);
            font-size: 1.2rem;
            font-weight: 600;
            color: var(--ap-ink);
            letter-spacing: var(--ls-snug);
            margin-bottom: 10px;
        }
        .card-vantaggio p {
            font-family: var(--ap-font);
            font-size: .95rem;
            color: var(--ap-grey);
            margin: 0;
            line-height: 1.65;
        }

        /* STRUMENTO */
        .sez-strumento {
            background: var(--ap-surface);
            padding: clamp(64px, 9vw, 120px) 0;
        }
        .strumento-intro { max-width: 660px; }
        .feature-box-calcola {
            background: #fff;
            border: 1px solid var(--ap-line);
            border-radius: 24px;
            padding: 32px 28px;
            height: 100%;
            transition: transform .35s cubic-bezier(.2,.65,.3,1), box-shadow .35s, border-color .35s;
        }
        .feature-box-calcola:hover {
            transform: translateY(-6px);
            border-color: rgba(0,159,218,.30);
            box-shadow: 0 30px 70px -28px rgba(0,159,218,.42);
        }
        .feature-box-calcola i {
            font-size: 30px;
            color: var(--cyan);
            margin-bottom: 18px;
            display: block;
        }
        .feature-box-calcola h4 {
            font-family: var(--ap-font);
            font-size: 1.1rem;
            font-weight: 600;
            color: var(--ap-ink);
            letter-spacing: var(--ls-snug);
            margin-bottom: 10px;
        }
        .feature-box-calcola p {
            font-family: var(--ap-font);
            font-size: .92rem;
            color: var(--ap-grey);
            margin: 0;
            line-height: 1.65;
        }

        .sez-strumento--nera { background: #000; }
        .sez-strumento--nera .cr-label { color: #86868b; }
        .sez-strumento--nera .cr-title { color: #fff; }
        .sez-strumento--nera .cr-title span.hl { color: var(--cyan); }
        .sez-strumento--nera .cr-lead { color: #a1a1a8; }
        .sez-strumento--nera .feature-box-calcola {
            background: rgba(255,255,255,.04);
            border-color: rgba(255,255,255,.10);
        }
        .sez-strumento--nera .feature-box-calcola:hover {
            border-color: rgba(0,159,218,.55);
            box-shadow: 0 30px 70px -28px rgba(0,159,218,.30);
        }
        .sez-strumento--nera .feature-box-calcola i { color: var(--cyan); }
        .sez-strumento--nera .feature-box-calcola h4 { color: #fff; }
        .sez-strumento--nera .feature-box-calcola p { color: #a1a1a8; }

        /* CTA FINALE */
        .sez-cr-cta { background: #fff; padding: clamp(64px, 9vw, 120px) 0; }
        .cr-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(56px, 8vw, 110px) 32px;
            text-align: center;
        }
        .cr-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;
        }
        .cr-cta-band > * { position: relative; z-index: 1; }
        .cr-actions {
            margin-top: 30px;
            display: flex;
            gap: 14px;
            flex-wrap: wrap;
            justify-content: center;
        }

        .checklabel { font-size: 13px; }

        @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-copy { max-width: 520px; }
        }
        @media (max-width: 991px) {
            .steps-grid-fv { grid-template-columns: 1fr; }
            #heroCalcola {
                min-height: auto;
                text-align: center;
                padding-bottom: 0;
            }
            #heroCalcola .hero-divider { margin-left: auto; margin-right: auto; }
            #heroCalcola .hero-sub { margin-left: auto; margin-right: auto; }
            #heroCalcola .hero-actions { justify-content: center; }
            .hero-copy { max-width: 100%; }
            .hero-calcola-stats { justify-content: center; gap: 28px; }
            .hero-media {
                position: relative;
                right: auto;
                bottom: auto;
                width: 100%;
                /*max-width: 560px;*/
                max-width: 420px;
                margin: 44px auto 0;
            }
            .counter-col-img { margin-top: 40px; }
        }
        @media (max-width: 767px) {
            #heroCalcola {
                padding-top: clamp(104px, 24vw, 140px);
                padding-bottom: clamp(56px, 12vw, 80px);
            }
            #heroCalcola::before {
                top: 44%;
                right: -34%;
                width: 124%;
            }
            #heroCalcola h1 { font-size: clamp(2.2rem, 9vw, 2.8rem); }
            #heroCalcola .hero-sub { margin-bottom: 28px; }
            .hero-media { display: none; }
            .hero-actions { flex-direction: column; align-items: stretch; gap: 12px; }
            .hero-actions .cr-cta,
            .hero-actions .cr-btn-ghost { justify-content: center; }
            .hero-calcola-stats {
                gap: 26px 20px;
                margin-top: 36px;
                padding-top: 26px;
            }
            .hero-calcola-stat { flex: 1 1 40%; }
            .simulatore-card { padding: 28px 22px; }
        }
