/* View: Views/Home/CER.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 */
        .titolo-interno {
            font-family: var(--ap-font);
            font-size: clamp(2rem, 4.4vw, 3.4rem);
            font-weight: 600;
            color: var(--ap-ink);
            line-height: var(--lh-tight);
            letter-spacing: var(--ls-tight);
            margin: 0 0 14px;
        }
        .titolo-interno--xl { font-size: clamp(2.4rem, 6vw, 4.4rem); }
        .titolo-interno span, .hl { color: var(--cyan); }
        .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;
        }
        .sottotitolo-interno strong { color: var(--ap-ink); font-weight: 600; }
        .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;
        }
        .txt-whi { color: #fff; }

        .sez-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;
        }
        .sez-label-white {
            font-family: var(--ap-font);
            font-size: 12px;
            font-weight: 700;
            color: rgba(255,255,255,.55);
            text-transform: uppercase;
            letter-spacing: 2px;
            margin-bottom: 12px;
        }

        .cer-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;
        }
        .cer-cta:hover { background: #000; color: #fff; transform: translateY(-1px); text-decoration: none; }
        .cer-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;
        }
        .cer-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;
        }

        /* HERO SPLIT */
        #heroCER {
            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);
        }
        #heroCER::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;
        }
        #heroCER .container { position: relative; z-index: 2; }
        .hero-content { max-width: 620px; }
        #heroCER 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;
        }
        #heroCER 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;
        }
        #heroCER .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 32px;
        }
        .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-media {
    position: absolute;
    z-index: 1;
    right: -3%;
    bottom: 18%;
    width: 52%;
    /* max-width: 880px; */
    pointer-events: none;
}

        .hero-media-box {
            position: relative;
            background: #fff;
            border: 1px solid var(--ap-line);
            border-radius: 32px;
            padding: 12px;
            box-shadow: 0 50px 90px -40px rgba(0,60,120,.45);
        }
        .hero-media-box img {
            display: block;
            width: 100%;
            height: auto;
            aspect-ratio: 4 / 3;
            object-fit: cover;
            border-radius: 22px;
        }

        .hero-cer-stats {
            display: flex;
            gap: 44px;
            margin-top: 44px;
            flex-wrap: wrap;
            padding-top: 32px;
            border-top: 1px solid var(--ap-line);
        }
        .hero-cer-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-cer-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;
        }

        /* INTRO */
        .sez-intro-cer {
            background: #fff;
            padding: clamp(64px, 9vw, 120px) 0;
        }
        .intro-img-wrap img {
            width: 100%;
            height: auto;
            border-radius: 24px;
        }
        .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(4, 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;
        }

        /* DESTINAZIONI, RIGHE ALTERNATE */
        .sez-destinazioni {
            background: #fff;
            padding: clamp(64px, 9vw, 120px) 0;
        }
        .dest-row { align-items: center; }
        .dest-row + .dest-row { margin-top: clamp(72px, 10vw, 140px); }
        .dest-copy { max-width: 560px; }
        .dest-badge {
            font-family: var(--ap-font);
            font-size: 12px;
            font-weight: 700;
            color: var(--ap-grey);
            text-transform: uppercase;
            letter-spacing: 2px;
            margin-bottom: 14px;
        }
        .dest-copy h3 {
            font-family: var(--ap-font);
            font-size: clamp(1.9rem, 3.6vw, 2.9rem);
            font-weight: 600;
            color: var(--ap-ink);
            line-height: var(--lh-tight);
            letter-spacing: var(--ls-tight);
            margin: 0 0 18px;
        }
        .dest-copy h3 span { color: var(--cyan); }
        .dest-feats {
            list-style: none;
            padding: 0;
            margin: 32px 0 36px;
        }
        .dest-feats li {
            position: relative;
            padding: 12px 0 12px 40px;
            font-family: var(--ap-font);
            font-size: 1rem;
            color: var(--ap-grey);
            line-height: 1.6;
            border-bottom: 1px solid var(--ap-line);
        }
        .dest-feats li:last-child { border-bottom: none; }
        .dest-feats li::before {
            content: "";
            position: absolute;
            left: 0;
            top: 15px;
            width: 22px;
            height: 22px;
            border-radius: 50%;
            background-color: rgba(0,159,218,.10);
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23009FDA' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: center;
        }

        /* BOX MEDIA, mobile, altezza data dal rapporto */
        .dest-media-box {
            position: relative;
            width: 100%;
            aspect-ratio: 16 / 9; /* sostituire con il rapporto reale degli mp4 */
            overflow: hidden;
            border-radius: 28px;
            background: var(--ap-surface);
            box-shadow: 0 44px 84px -44px rgba(0,60,120,.42);
        }
        .dest-media-box video,
        .dest-media-box img {
            position: absolute;
            inset: 0;
            display: block;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        /* SERVIZI, SEZIONE NERA */
        .sez-servizi-cer {
            background: #000;
            padding: clamp(72px, 9vw, 130px) 0;
        }
        .sez-servizi-cer .sez-label { color: rgba(255,255,255,.52); }
        .sez-servizi-cer .titolo-interno { color: #fff; }
        .sez-servizi-cer .titolo-interno span { color: var(--cyan); }
        .sez-servizi-cer .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 0 0;
            max-width: 720px;
        }
        .servizio-box {
            background: #fff;
            border: 1px solid rgba(255,255,255,.10);
            border-radius: 24px;
            padding: 40px 34px;
            height: 100%;
            transition: transform .35s cubic-bezier(.2,.65,.3,1), box-shadow .35s, border-color .35s;
        }
        .servizio-box:hover {
            transform: translateY(-6px);
            border-color: rgba(0,159,218,.55);
            box-shadow: 0 34px 74px -28px rgba(0,159,218,.45);
        }
        .servizio-box-icon {
            width: 54px;
            height: 54px;
            background: #fff;
            border: 1px solid var(--ap-line);
            border-radius: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 25px;
            color: var(--cyan);
            margin-bottom: 24px;
        }
        .servizio-box h3 {
            font-family: var(--ap-font);
            font-size: 1.25rem;
            font-weight: 600;
            color: var(--ap-ink);
            letter-spacing: var(--ls-snug);
            line-height: 1.25;
            margin: 0 0 14px;
        }
        .servizio-box p {
            font-family: var(--ap-font);
            font-size: .95rem;
            color: var(--ap-grey);
            line-height: 1.7;
            margin: 0 0 20px;
        }
        .servizio-box ul {
            list-style: none;
            padding: 0;
            margin: 0;
            padding-top: 20px;
            border-top: 1px solid var(--ap-line);
        }
        .servizio-box ul li {
            position: relative;
            padding: 6px 0 6px 26px;
            font-family: var(--ap-font);
            font-size: .9rem;
            color: var(--ap-grey);
            line-height: 1.55;
        }
        .servizio-box ul li::before {
            content: "";
            position: absolute;
            left: 0;
            top: 11px;
            width: 16px;
            height: 16px;
            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.8' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-size: contain;
        }

        /* CTA FINALE */
        .sez-fv-cta {
            background: var(--ap-surface);
            padding: clamp(64px, 9vw, 120px) 0;
        }
        .fv-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;
        }
        .fv-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;
        }
        .fv-cta-band > * { position: relative; z-index: 1; }
        .fv-cta-band h2 {
            font-family: var(--ap-font);
            font-size: clamp(2.2rem, 5.4vw, 4rem);
            font-weight: 600;
            color: var(--ap-ink);
            line-height: var(--lh-tight);
            letter-spacing: var(--ls-tight);
            margin: 0 auto 16px;
            max-width: 820px;
        }
        .fv-cta-band h2 span { color: var(--cyan); }
        .fv-cta-band p {
            font-family: var(--ap-font);
            font-size: clamp(1rem, 1.2vw, 1.12rem);
            color: var(--ap-grey);
            line-height: 1.7;
            margin: 0 auto 30px;
            max-width: 620px;
        }
        .fv-cta-btn {
            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;
        }
        .fv-cta-btn:hover { background: #000; color: #fff; transform: translateY(-1px); text-decoration: none; }

        /* BOX MEDIA, da 992px in su il box segue l'altezza della colonna testo */
        @media (min-width: 992px) {
            .dest-row { align-items: stretch; }
            .dest-media { display: flex; }
            .dest-media-box {
                aspect-ratio: auto;
                flex: 1 1 auto;
                min-height: 380px;
            }
        }

        @media (max-width: 1399px) {
            .hero-media { width: 49%; right: -5%; bottom: -5%; }
        }
        @media (max-width: 1199px) {
            .hero-media { width: 46%; right: -7%; bottom: -3%; }
            .hero-media-box { border-radius: 26px; padding: 10px; }
            .hero-media-box img { border-radius: 18px; }
            .hero-content { max-width: 520px; }
            .intro-garanzie-row { grid-template-columns: repeat(2, 1fr); }
        }
        @media (max-width: 991px) {
            #heroCER {
                min-height: auto;
                text-align: center;
                padding-bottom: 0;
            }
            .hero-content { max-width: 100%; }
            #heroCER .hero-divider { margin-left: auto; margin-right: auto; }
            #heroCER .hero-sub { margin-left: auto; margin-right: auto; }
            .hero-checks { justify-content: center; }
            .hero-actions { justify-content: center; }
            .hero-cer-stats { justify-content: center; gap: 28px; }
            .hero-media {
                position: relative;
                right: auto;
                bottom: auto;
                width: 100%;
                max-width: 520px;
                margin: 48px auto 0;
            }
            .sez-intro-cer .intro-img-wrap { margin-bottom: 44px; }
            .dest-copy { max-width: 100%; }
            .dest-media { margin-top: 44px; }
            .dest-row + .dest-row { margin-top: 72px; }
        }
        @media (max-width: 767px) {
            #heroCER {
                padding-top: clamp(104px, 24vw, 140px);
                padding-bottom: clamp(56px, 12vw, 80px);
            }
            #heroCER::before { top: 44%; right: -34%; width: 124%; }
            #heroCER h1 { font-size: clamp(2.2rem, 9vw, 2.8rem); }
            .hero-media { margin-top: 40px; max-width: 100%; }
            .hero-media-box { border-radius: 22px; padding: 8px; }
            .hero-media-box img { aspect-ratio: 3 / 2; border-radius: 16px; }
            .hero-checks { gap: 10px 18px; }
            .hero-check { font-size: 13px; }
            .hero-actions { flex-direction: column; align-items: stretch; gap: 12px; }
            .hero-cer-stats { gap: 26px 20px; margin-top: 36px; padding-top: 26px; }
            .hero-cer-stat { flex: 1 1 40%; }
            .intro-garanzie-row { grid-template-columns: 1fr; }
            .dest-media-box { border-radius: 20px; }
            .dest-copy .cer-cta { width: 100%; }
            .servizio-box { padding: 30px 26px; border-radius: 20px; }
            .fv-cta-band { border-radius: 24px; }
            .fv-cta-btn { width: 100%; }
        }

        /* ================= OTTIMIZZAZIONI MOBILE ================= */

        /* TABLET, l'immagine resta visibile */
        @media (min-width: 768px) and (max-width: 991px) {
            #heroCER .hero-media {
                padding-left: 12px;
                padding-right: 12px;
                max-width: 560px;
            }
        }

        /* TELEFONO */
        @media (max-width: 767px) {
            #heroCER {
                text-align: left;
                padding-top: 104px;
                padding-bottom: 60px;
            }
            #heroCER::before { top: 40%; }
            #heroCER .hero-content {
                max-width: 100%;
                width: 100%;
            }
            #heroCER .sez-label {
                font-size: 11px;
                letter-spacing: 1.6px;
                text-align: left;
            }
            #heroCER h1 {
                font-size: clamp(2rem, 8.4vw, 2.5rem);
                letter-spacing: -.02em;
                margin: 0 0 16px;
                text-align: left;
            }
            #heroCER .hero-divider {
                margin: 0 0 22px;
            }
            #heroCER .hero-sub {
                max-width: 100%;
                margin: 0 0 26px;
                font-size: 1rem;
                line-height: 1.6;
                text-align: left;
            }
            #heroCER .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;
            }
            #heroCER .hero-check {
                align-items: flex-start;
                gap: 8px;
                font-size: 13px;
                line-height: 1.35;
            }
            #heroCER .hero-check-dot {
                width: 20px;
                height: 20px;
                font-size: 10px;
                margin-top: 1px;
            }
            #heroCER .hero-actions {
                flex-direction: column;
                align-items: stretch;
                justify-content: flex-start;
                gap: 12px;
            }
            #heroCER .hero-actions .cer-cta,
            #heroCER .hero-actions .cer-btn-ghost {
                width: 100%;
                padding-top: 15px;
                padding-bottom: 15px;
            }
            #heroCER .hero-cer-stats {
                display: grid;
                grid-template-columns: repeat(3, 1fr);
                gap: 14px;
                justify-content: start;
                text-align: left;
                margin-top: 32px;
                padding-top: 24px;
            }
            #heroCER .hero-cer-stat { flex: none; }
            #heroCER .hero-cer-stat .stat-num { font-size: 1.45rem; }
            #heroCER .hero-cer-stat .stat-label {
                font-size: .6rem;
                letter-spacing: .8px;
                line-height: 1.3;
                margin-top: 6px;
            }
            #heroCER .hero-media { display: none; }

            /* RESTO DELLA PAGINA */
            .sez-label, .sez-label-white { font-size: 11px; letter-spacing: 1.6px; }
            .titolo-interno { font-size: clamp(1.75rem, 7.4vw, 2.25rem); letter-spacing: -.02em; }
            .titolo-interno--xl { font-size: clamp(2rem, 8.4vw, 2.5rem); }
            .sottotitolo-interno { font-size: 1rem; line-height: 1.7; }
            .titolo-medio { font-size: 1.2rem; }

            .sez-intro-cer,
            .sez-destinazioni,
            .sez-servizi-cer,
            .sez-fv-cta {
                padding-top: 56px;
                padding-bottom: 56px;
            }

            .sez-intro-cer .intro-img-wrap { margin-bottom: 32px; }
            .intro-img-wrap img { border-radius: 18px; }
            .intro-garanzie-row {
                gap: 14px;
                margin-top: 38px;
                padding-top: 28px;
            }
            .intro-garanzia-item { font-size: .9rem; gap: 12px; }
            .fg-icon { width: 36px; height: 36px; border-radius: 10px; font-size: 15px; }

            .dest-row + .dest-row { margin-top: 56px; }
            .dest-media { margin-top: 30px; }
            .dest-badge { font-size: 11px; letter-spacing: 1.6px; margin-bottom: 10px; }
            .dest-copy h3 { font-size: clamp(1.6rem, 7vw, 2rem); margin-bottom: 14px; }
            .dest-feats { margin: 24px 0 28px; }
            .dest-feats li {
                font-size: .95rem;
                padding: 11px 0 11px 34px;
            }
            .dest-feats li::before { width: 20px; height: 20px; top: 13px; }
            .dest-media-box { box-shadow: 0 24px 46px -30px rgba(0,60,120,.42); }

            .sez-servizi-cer .sez-sub { font-size: 1rem; margin-top: 14px; }
            .servizio-box-icon {
                width: 46px;
                height: 46px;
                font-size: 21px;
                border-radius: 13px;
                margin-bottom: 18px;
            }
            .servizio-box h3 { font-size: 1.12rem; margin-bottom: 12px; }
            .servizio-box p { font-size: .92rem; margin-bottom: 16px; }
            .servizio-box ul { padding-top: 16px; }

            .fv-cta-band { padding: 44px 20px; }
            .fv-cta-band h2 { font-size: clamp(1.8rem, 7.6vw, 2.3rem); margin-bottom: 14px; }
            .fv-cta-band p { font-size: 1rem; margin-bottom: 26px; }

            #sez-destinazioni { scroll-margin-top: 76px; }
        }

        @media (hover: none) and (max-width: 991px) {
            .servizio-box:hover {
                transform: none;
                border-color: rgba(255,255,255,.10);
                box-shadow: none;
            }
            .cer-cta:hover,
            .cer-btn-ghost:hover,
            .fv-cta-btn:hover { transform: none; }
        }

        @media (max-width: 359px) {
            #heroCER .hero-checks { grid-template-columns: 1fr; }
            #heroCER .hero-cer-stats { gap: 10px; }
            #heroCER .hero-cer-stat .stat-num { font-size: 1.25rem; }
            #heroCER .hero-cer-stat .stat-label { font-size: .55rem; }
        }
