/* View: Views/Home/Candidatura.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; }

    /* TIPOGRAFIA */
    .cd-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;
    }
    .cd-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;
    }
    .cd-title--xl { font-size: clamp(2.4rem, 6vw, 4.4rem); }
    .cd-title span.hl { color: var(--cyan); }
    .cd-h3 {
        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-snug);
        line-height: 1.2;
        margin: 0 0 12px;
    }
    .cd-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;
    }
    .cd-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;
    }
    .cd-lead--center { margin-left: auto; margin-right: auto; max-width: 780px; }

    .cd-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;
    }
    .cd-cta:hover { background: #000; color: #fff; transform: translateY(-1px); text-decoration: none; }
    .cd-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;
    }
    .cd-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;
    }
    .cand-divider {
        width: 56px;
        height: 3px;
        background: var(--cyan);
        margin: 22px 0 24px;
        border-radius: 3px;
    }

    /* HERO */
    #heroPartner {
        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);
    }
    #heroPartner::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;
    }
    #heroPartner .container { position: relative; z-index: 2; }
    .hero-content { max-width: 620px; padding: 0; }
    #heroPartner 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;
    }
    #heroPartner 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 30px;
        max-width: 520px;
    }
    .hero-checks {
        display: flex;
        flex-wrap: wrap;
        gap: 12px 26px;
        margin: 0 0 34px;
    }
    .hero-check {
        display: flex;
        align-items: center;
        gap: 9px;
        font-family: var(--ap-font);
        color: var(--ap-ink);
        font-size: 14px;
        font-weight: 500;
    }
    .hero-check-dot {
        width: 22px;
        height: 22px;
        background: var(--cyan);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 11px;
        color: #fff;
        font-weight: 900;
        flex-shrink: 0;
    }
    .hero-actions {
        display: flex;
        gap: 14px;
        flex-wrap: wrap;
    }
    .hero-stats {
        display: flex;
        gap: 44px;
        margin-top: 48px;
        flex-wrap: wrap;
        padding-top: 32px;
        border-top: 1px solid var(--ap-line);
    }
    .hero-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-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;
    }
    .hero-media {
position: absolute;
z-index: 1;
right: 0;
bottom: -5%;
width: 55%;
/* 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));
    }

    /* FORM COMUNE */
    .cd-form label {
        font-family: var(--ap-font);
        font-size: .8rem;
        font-weight: 500;
        color: var(--ap-grey);
        margin-bottom: 6px;
        display: block;
    }
    .cd-form .form-control,
    .cd-form select,
    .cd-form textarea {
        background: transparent;
        border: 1px solid #dcdce1;
        border-radius: 14px;
        padding: 14px 18px;
        font-family: var(--ap-font);
        font-size: .95rem;
        font-weight: 400;
        color: var(--ap-ink);
        width: 100%;
        box-shadow: none;
        transition: border-color .2s;
    }
    .cd-form .form-control::placeholder,
    .cd-form textarea::placeholder { color: #a1a1a8; }
    .cd-form .form-control:hover,
    .cd-form select:hover,
    .cd-form textarea:hover { border-color: #b8b8c0; }
    .cd-form .form-control:focus,
    .cd-form select:focus,
    .cd-form textarea:focus {
        background: transparent;
        border-color: var(--ap-ink);
        box-shadow: none;
        outline: none;
    }
    .cd-form select {
        padding: 14px 40px 14px 18px;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236e6e73' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 16px center;
        -webkit-appearance: none;
        appearance: none;
    }
    .cd-form .form-control.error,
    .cd-form select.error,
    .cd-form textarea.error { border-color: #d94040; }
    .cd-form label.error {
        font-family: var(--ap-font);
        font-size: .78rem;
        color: #d94040;
        margin-top: 6px;
    }
    .cd-form .check-row {
        font-family: var(--ap-font);
        font-size: .86rem;
        color: var(--ap-grey);
        line-height: 1.6;
    }
    .cd-form .check-row a { color: var(--ap-ink); text-decoration: underline; }
    .cd-form input[type="checkbox"] {
        accent-color: var(--ap-ink);
        margin-right: 8px;
    }
    .cd-submit {
        display: block;
        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: 22px;
    }
    .cd-submit:hover { background: #000; color: #fff; transform: translateY(-1px); }

    /* INTRO + FORM RAPIDO */
    .sez-intro-partner {
        background: #fff;
        padding: clamp(64px, 9vw, 120px) 0;
    }
    .form-rapido-card {
        background: linear-gradient(180deg, #ffffff 0%, var(--ap-surface) 100%);
        border: 1px solid var(--ap-line);
        border-radius: 28px;
        padding: clamp(32px, 4vw, 44px);
    }
    .form-rapido-card h3 {
        font-family: var(--ap-font);
        font-size: 1.4rem;
        font-weight: 600;
        color: var(--ap-ink);
        letter-spacing: var(--ls-snug);
        margin-bottom: 26px;
        line-height: 1.25;
    }
    .form-rapido-card h3 span { color: var(--cyan); }

    /* PERCHE PARTNER */
    .sez-perche {
        background: var(--ap-surface);
        padding: clamp(64px, 9vw, 120px) 0;
    }
    .vantaggio-box {
        background: #fff;
        border: 1px solid var(--ap-line);
        border-radius: 24px;
        padding: 36px 32px;
        height: 100%;
        transition: transform .35s cubic-bezier(.2,.65,.3,1), box-shadow .35s, border-color .35s;
    }
    .vantaggio-box:hover {
        transform: translateY(-6px);
        border-color: rgba(0,159,218,.30);
        box-shadow: 0 30px 70px -28px rgba(0,159,218,.42);
    }
    .vantaggio-box i {
        font-size: 30px;
        color: var(--cyan);
        margin-bottom: 20px;
        display: block;
    }
    .vantaggio-box p {
        font-family: var(--ap-font);
        color: var(--ap-grey);
        font-size: .95rem;
        margin: 0;
        line-height: 1.65;
    }

    /* PIATTAFORMA */
    .sez-piattaforma {
        background: #fff;
        padding: clamp(64px, 9vw, 120px) 0;
    }
    .piattaforma-img-wrap img {
        border-radius: 24px;
        width: 100%;
        height: auto;
        filter: drop-shadow(0 40px 70px rgba(0,60,120,.16));
    }
    .piattaforma-list {
        list-style: none;
        padding: 0;
        margin: 22px 0 30px;
    }
    .piattaforma-list li {
        font-family: var(--ap-font);
        font-size: .98rem;
        color: var(--ap-grey);
        padding: 8px 0 8px 26px;
        position: relative;
        line-height: 1.6;
    }
    .piattaforma-list li::before {
        content: "\2713";
        position: absolute;
        left: 0;
        color: var(--cyan);
        font-weight: 800;
    }

    /* FAQ */
    .sez-faq {
        background: var(--ap-surface);
        padding: clamp(64px, 9vw, 120px) 0;
    }
    .sez-faq .accordion-item {
        border: 1px solid var(--ap-line) !important;
        border-radius: 20px !important;
        margin-bottom: 12px;
        overflow: hidden;
        background: #fff;
    }
    .sez-faq .accordion-button {
        font-family: var(--ap-font);
        font-weight: 600;
        font-size: 1.02rem;
        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 .accordion-button:not(.collapsed) {
        color: var(--ap-ink) !important;
        background: #fff !important;
    }
    .sez-faq .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 .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 .accordion-body ul { padding-left: 20px; margin-top: 10px; }
    .sez-faq .accordion-body ul li { margin-bottom: 6px; }
    .sez-faq .accordion-body strong { color: var(--ap-ink); }
    .sez-faq .accordion-body a { color: var(--cyan); }

    /* FORM CANDIDATURA */
    .sez-candidatura {
        background: #fff;
        padding: clamp(64px, 9vw, 120px) 0;
    }
    .candidatura-form-wrap {
        background: #fff;
        border: 1px solid var(--ap-line);
        border-radius: 28px;
        padding: clamp(32px, 4vw, 48px);
        box-shadow: 0 30px 70px -40px rgba(0,60,120,.28);
    }

    /* CTA RETE */
    .sez-cta-rete { background: #fff; padding: 0 0 clamp(64px, 9vw, 120px); }
    .cta-rete-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;
    }
    .cta-rete-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;
    }
    .cta-rete-band > * { position: relative; z-index: 1; }
    .cta-rete-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: 48%; right: -10%; }
        .hero-content { max-width: 540px; }
    }
    @media (max-width: 991px) {
        #heroPartner {
            min-height: auto;
            text-align: center;
            padding-bottom: 0;
        }
        .hero-content { max-width: 100%; }
        #heroPartner .hero-divider { margin-left: auto; margin-right: auto; }
        #heroPartner .hero-sub { margin-left: auto; margin-right: auto; }
        .hero-checks { justify-content: center; }
        .hero-actions { justify-content: center; }
        .hero-stats { justify-content: center; gap: 28px; }
        .hero-media {
            position: relative;
            right: auto;
            bottom: auto;
            width: 100%;
            /*max-width: 560px;*/
            margin: 48px auto 0;
        }
    }
    @media (max-width: 767px) {
        #heroPartner h1 { font-size: clamp(2.2rem, 9vw, 2.8rem); }
        .candidatura-form-wrap { padding: 28px 22px; }
        .form-rapido-card { padding: 28px 22px; }
        .sez-faq .accordion-button { padding: 20px 22px; font-size: .95rem; }
        .sez-faq .accordion-body { padding: 20px 22px 24px; }
    }

    /* ================= OTTIMIZZAZIONI MOBILE ================= */

    /* TABLET, l'immagine resta visibile */
    @media (min-width: 768px) and (max-width: 991px) {
        #heroPartner .hero-media {
            padding-left: 12px;
            padding-right: 12px;
            max-width: 560px;
            margin-left: auto;
            margin-right: auto;
        }
    }

    /* TELEFONO */
    @media (max-width: 767px) {
        #heroPartner {
            text-align: left;
            padding-top: 104px;
            padding-bottom: 60px;
        }
        #heroPartner::before { top: 40%; }
        #heroPartner .hero-content {
            max-width: 100%;
            width: 100%;
        }
        #heroPartner .cd-label {
            font-size: 11px;
            letter-spacing: 1.6px;
            text-align: left;
        }
        #heroPartner h1 {
            font-size: clamp(2rem, 8.4vw, 2.5rem);
            letter-spacing: -.02em;
            margin: 0 0 16px;
            text-align: left;
        }
        #heroPartner .hero-divider {
            margin: 0 0 22px;
        }
        #heroPartner .hero-sub {
            max-width: 100%;
            margin: 0 0 26px;
            font-size: 1rem;
            line-height: 1.6;
            text-align: left;
        }
        #heroPartner .hero-checks {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 12px 14px;
            justify-content: start;
            justify-items: start;
            text-align: left;
            margin: 0 0 28px;
        }
        #heroPartner .hero-check {
            align-items: flex-start;
            gap: 8px;
            font-size: 13px;
            line-height: 1.35;
        }
        #heroPartner .hero-check-dot {
            width: 20px;
            height: 20px;
            font-size: 10px;
            margin-top: 1px;
        }
        #heroPartner .hero-actions {
            flex-direction: column;
            align-items: stretch;
            justify-content: flex-start;
            gap: 12px;
        }
        #heroPartner .hero-actions .cd-cta,
        #heroPartner .hero-actions .cd-btn-ghost {
            width: 100%;
            justify-content: center;
            padding-top: 15px;
            padding-bottom: 15px;
        }
        #heroPartner .hero-stats {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 14px;
            justify-content: start;
            text-align: left;
            margin-top: 32px;
            padding-top: 24px;
        }
        #heroPartner .hero-stat { flex: none; }
        #heroPartner .hero-stat .stat-num { font-size: 1.45rem; }
        #heroPartner .hero-stat .stat-label {
            font-size: .6rem;
            letter-spacing: .8px;
            line-height: 1.3;
            margin-top: 6px;
        }
        #heroPartner .hero-media { display: none; }

        /* RESTO DELLA PAGINA */
        .cd-label { font-size: 11px; letter-spacing: 1.6px; }
        .cd-title { font-size: clamp(1.75rem, 7.4vw, 2.25rem); letter-spacing: -.02em; }
        .cd-title--xl { font-size: clamp(2rem, 8.4vw, 2.5rem); }
        .cd-h3 { font-size: clamp(1.3rem, 5.6vw, 1.6rem); line-height: 1.3; }
        .cd-sub { font-size: 1.05rem; }
        .cd-lead { font-size: 1rem; line-height: 1.7; margin-top: 14px; }
        .cand-divider { margin: 18px 0 20px; }

        .sez-intro-partner,
        .sez-perche,
        .sez-piattaforma,
        .sez-faq,
        .sez-candidatura {
            padding-top: 56px;
            padding-bottom: 56px;
        }
        .sez-cta-rete { padding-bottom: 56px; }

        .form-rapido-card {
            padding: 26px 20px;
            border-radius: 22px;
        }
        .form-rapido-card h3 { font-size: 1.2rem; margin-bottom: 20px; }
        .candidatura-form-wrap {
            padding: 26px 20px;
            border-radius: 22px;
            box-shadow: 0 18px 44px -34px rgba(0,60,120,.28);
        }

        /* campi a 16px per evitare lo zoom automatico su iOS */
        .cd-form .form-control,
        .cd-form select,
        .cd-form textarea {
            font-size: 16px;
            padding: 13px 16px;
            border-radius: 12px;
        }
        .cd-form select { padding-right: 38px; }
        .cd-form label { font-size: .82rem; }
        .cd-form .check-row { font-size: .85rem; line-height: 1.75; }
        .cd-form input[type="checkbox"] {
            width: 18px;
            height: 18px;
            margin-right: 10px;
            vertical-align: -4px;
        }
        .cd-submit { padding: 16px 20px; margin-top: 20px; }

        .vantaggio-box {
            padding: 28px 24px;
            border-radius: 20px;
        }
        .vantaggio-box i { font-size: 26px; margin-bottom: 14px; }
        .vantaggio-box p { font-size: .92rem; }

        .sez-piattaforma .piattaforma-img-wrap { margin-top: 8px; }
        .piattaforma-list { margin: 18px 0 26px; }
        .piattaforma-list li { font-size: .95rem; padding-left: 24px; }
        .sez-piattaforma .cd-cta {
            display: flex;
            width: 100%;
            justify-content: center;
        }

        .sez-faq .accordion-item { border-radius: 16px !important; margin-bottom: 10px; }
        .sez-faq .accordion-button { border-radius: 16px !important; }

        .cta-rete-band { padding: 44px 20px; border-radius: 24px; }
        .cta-rete-actions {
            flex-direction: column;
            align-items: stretch;
            gap: 12px;
            margin-top: 26px;
        }
        .cta-rete-actions .cd-cta,
        .cta-rete-actions .cd-btn-ghost {
            width: 100%;
            justify-content: center;
        }

        #candidatura-form,
        #form-rapido { scroll-margin-top: 76px; }
    }

    @media (hover: none) and (max-width: 991px) {
        .vantaggio-box:hover {
            transform: none;
            border-color: var(--ap-line);
            box-shadow: none;
        }
        .cd-cta:hover,
        .cd-btn-ghost:hover,
        .cd-submit:hover { transform: none; }
    }

    @media (max-width: 359px) {
        #heroPartner .hero-checks { grid-template-columns: 1fr; }
        #heroPartner .hero-stats { gap: 10px; }
        #heroPartner .hero-stat .stat-num { font-size: 1.25rem; }
        #heroPartner .hero-stat .stat-label { font-size: .55rem; }
        .cd-form .g-recaptcha {
            transform: scale(.86);
            transform-origin: 0 0;
            margin-bottom: -12px;
        }
    }
