.page-template-page-template-funnel-optin header.container,
.page-template-page-template-funnel-optin .site-footer,
.page-template-page-template-funnel-optin .global-bottom-menu,
.page-template-page-template-funnel-optin .global-desktop-menu {
    display: none !important;
}

.page-template-page-template-funnel-optin #main {
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
    width: 100% !important;
    float: none !important;
    display: block !important;
}

.page-template-page-template-funnel-optin html,
html.page-template-page-template-funnel-optin,
body.page-template-page-template-funnel-optin {
    background: #07090d !important;
    overflow-x: hidden;
    margin: 0;
}

.page-template-page-template-funnel-optin #main {
    background: #07090d !important;
}

body.vn-funnel-standalone {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    float: none !important;
}

body.vn-funnel-standalone > * {
    float: none !important;
}

.vn-funnel-page-optin {
    background: #101010;
    color: #f3f3f3;
    width: 100% !important;
    margin: 0;
    min-height: 100vh;
    display: block;
}

.vn-optin-page {
    position: relative;
    --vn-sweep-duration: 10.6s;
    padding: 78px 0 0;
    isolation: isolate;
    background:
        radial-gradient(circle at 15% 15%, rgba(224, 78, 57, 0.38), rgba(16, 16, 16, 0.95) 46%),
        radial-gradient(circle at 82% 30%, rgba(224, 78, 57, 0.16), rgba(16, 16, 16, 0) 58%),
        #101010;
}

.vn-optin-shell,
.vn-optin-floating-header {
    position: relative;
    z-index: 2;
}

.vn-optin-floating-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 40;
    padding: 10px clamp(14px, 3vw, 28px);
    background: rgba(7, 9, 13, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform .25s ease, opacity .25s ease;
}

.vn-optin-floating-header.is-hidden {
    transform: translateY(-110%);
    opacity: 0;
}

.vn-optin-floating-header-inner {
    width: min(1320px, 100%);
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.vn-optin-floating-header img {
    width: clamp(96px, 10vw, 146px);
    height: auto;
    display: block;
}

.vn-optin-floating-header-inner > a:first-child {
    position: relative;
    z-index: 2;
    border-radius: 10px;
}

.vn-optin-header-cta {
    display: inline-flex;
    position: relative;
    overflow: visible;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 999px;
    background: linear-gradient(
        100deg,
        #f16a56 0%,
        #e04e39 44%,
        #d14533 72%,
        #c53a2a 100%
    );
    color: #fff;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
    transition: background .2s ease, transform .15s ease;
    box-shadow:
        inset 16px 0 18px rgba(255, 220, 160, 0.18),
        0 0 0 1px rgba(255, 255, 255, 0.2),
        0 0 14px rgba(224, 78, 57, 0.34);
}

.vn-optin-header-cta:hover {
    background: #cc402c;
    transform: translateY(-1px);
}

.vn-optin-header-cta::after {
    content: none;
}

.vn-optin-shell {
    width: 100%;
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 clamp(18px, 4.5vw, 72px);
    box-sizing: border-box;
}

.vn-optin-hero h1 {
    font-size: clamp(1.65rem, 3.2vw, 2.95rem);
    line-height: 1.12;
    margin: 0 0 8px;
    max-width: none;
    width: 100%;
    text-shadow:
        0 10px 18px rgba(0, 0, 0, 0.4),
        0 0 1px rgba(255, 255, 255, 0.08),
        0 0 6px rgba(255, 214, 170, 0.06);
}

.vn-optin-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: #f08e7e;
    margin: 0 0 10px;
    font-size: 0.72rem;
    text-shadow: 0 0 1px rgba(255, 255, 255, 0.08);
}

.vn-optin-preheadline-bar {
    margin: 0 0 14px;
    padding: 8px 12px;
    border-radius: 6px;
    display: inline-block;
    background: #e04e39;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.vn-optin-hero-head {
    width: 100%;
    margin-bottom: 14px;
    text-align: center;
}

.vn-optin-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: 24px;
    align-items: center;
}

.vn-optin-hero-media img {
    width: 100%;
    display: block;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
    object-fit: cover;
}

.vn-optin-hero-head .vn-optin-hero-media {
    width: min(420px, 100%);
    margin: 14px auto 0;
}

.vn-optin-hero-head .vn-optin-hero-media img {
    width: 100%;
    height: auto;
    max-height: 740px;
    object-fit: contain;
    margin: 0 auto;
}

.vn-optin-hero-media-link {
    display: block;
    cursor: pointer;
}

.vn-optin-hero-media-placeholder {
    min-height: 340px;
    width: 100%;
    border-radius: 12px;
    border: 1px dashed rgba(224, 78, 57, 0.55);
    background: linear-gradient(145deg, rgba(224, 78, 57, 0.2), rgba(224, 78, 57, 0.08));
    display: grid;
    place-items: center;
    text-align: center;
    color: #7a1f13;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.vn-optin-hero-media-placeholder strong {
    display: block;
    font-size: 1.2rem;
}

.vn-optin-hero-media-placeholder span {
    display: block;
    margin-top: 4px;
    font-size: 0.88rem;
}

html.page-template-page-template-funnel-optin {
    scroll-behavior: smooth;
}

.vn-optin-subtitle {
    font-size: clamp(1rem, 1.35vw, 1.25rem);
    color: #e6e6e6;
    margin: 12px 0 12px;
    max-width: 65ch;
    text-shadow:
        0 7px 14px rgba(0, 0, 0, 0.34),
        0 0 1px rgba(255, 255, 255, 0.08),
        0 0 4px rgba(255, 214, 170, 0.05);
}

.vn-optin-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.vn-optin-hero-benefits h2 {
    margin: 16px 0 10px;
    font-size: clamp(1.3rem, 2.2vw, 1.65rem);
}

.vn-optin-hero-benefits .vn-optin-points {
    margin-bottom: 16px;
}

.vn-optin-cta {
    display: inline-block;
    position: relative;
    border-radius: 999px;
    background: #e04e39;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    padding: 12px 20px;
    font-size: 0.94rem;
    transition: background .2s ease, transform .15s ease;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16), 0 0 10px rgba(224, 78, 57, 0.22);
}

.vn-optin-cta:hover {
    background: #cc402c;
    transform: translateY(-1px);
}

.vn-optin-cta-ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.35);
    animation: none;
    box-shadow: none;
}

.vn-optin-cta-ghost::before {
    content: none;
}

.vn-optin-cta-ghost:hover {
    background: rgba(255, 255, 255, 0.12);
}

.vn-optin-content {
    padding-top: 34px;
}

.vn-optin-credibility {
    margin: 0 0 28px;
    padding: 16px 0 10px;
    border-top: 1px solid #eceff4;
}

.vn-optin-credibility p {
    margin: 0 0 12px;
    line-height: 1.5;
    font-size: 1.04rem;
    text-align: center;
}

.vn-optin-credibility-list {
    margin: 0 auto 16px;
    width: fit-content;
    max-width: min(760px, 100%);
    text-align: left;
}

.vn-optin-credibility-list li {
    margin: 0 0 8px;
    font-size: 1rem;
}

.vn-optin-credibility-logos {
    margin-top: 2px;
}

.vn-optin-logos-carousel {
    overflow-x: auto;
    padding: 8px 2px 10px;
    margin: 8px 0 14px;
    scroll-snap-type: x mandatory;
}

.vn-optin-logos-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(170px, 1fr);
    gap: 12px;
}

.vn-optin-logo-card {
    min-height: 96px;
    border: 1px solid rgba(224, 78, 57, 0.24);
    border-radius: 12px;
    background: linear-gradient(155deg, #ffffff 0%, #fff6f4 100%);
    color: #666;
    font-weight: 700;
    display: grid;
    place-items: center;
    scroll-snap-align: start;
}

.vn-optin-testimonial {
    margin: 16px auto 12px;
    max-width: 920px;
    border-left: 3px solid #e04e39;
    padding: 10px 0 10px 14px;
    background: linear-gradient(90deg, rgba(224, 78, 57, 0.08) 0%, rgba(255, 255, 255, 0) 80%);
    border-radius: 6px;
    text-align: left;
}

.vn-optin-watch-cta {
    font-weight: 800;
    letter-spacing: 0.01em;
    color: #e04e39;
}

.vn-optin-content {
    padding-top: 28px;
}

.vn-optin-points {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    display: grid;
    gap: 10px;
}

.vn-optin-points li {
    border-left: 3px solid #e04e39;
    padding-left: 12px;
}

.vn-optin-form-section {
    margin-top: 26px;
    width: min(760px, 100%);
    margin-left: auto;
    margin-right: auto;
    background: #ffffff;
    color: #202020;
    border-radius: 14px;
    padding: clamp(20px, 3vw, 34px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.vn-optin-form-section--inline {
    margin-top: 18px;
    width: min(620px, 100%);
    border: 1px solid #e5e7eb;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.vn-optin-form-section--hero {
    margin-top: 20px;
}

.vn-optin-form-section h2 {
    margin: 0 0 6px;
    font-size: clamp(1.4rem, 2.4vw, 1.9rem);
}

.vn-optin-form-section > p {
    margin: 0 0 16px;
    color: #505050;
}

.vn-optin-form .custom-contact-form-wrapper {
    margin: 0;
    background: #ffffff;
    border: 1px solid #ead2ce;
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(130, 24, 8, 0.06);
    padding: clamp(14px, 2vw, 22px);
}

.vn-optin-form .custom-contact-form--marketing {
    display: grid;
    gap: 11px;
}

.vn-optin-form .custom-contact-form--marketing .form-group {
    margin: 0;
}

.vn-optin-form .custom-contact-form--marketing label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: #2a2a2a;
    margin-bottom: 6px;
}

.vn-optin-form .custom-contact-form--marketing input[type="text"],
.vn-optin-form .custom-contact-form--marketing input[type="tel"],
.vn-optin-form .custom-contact-form--marketing input[type="email"] {
    width: 100%;
    border: 1px solid #d8d8d8;
    border-radius: 10px;
    padding: 12px 13px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
    box-sizing: border-box;
}

.vn-optin-form .custom-contact-form--marketing input[type="text"]:focus,
.vn-optin-form .custom-contact-form--marketing input[type="tel"]:focus,
.vn-optin-form .custom-contact-form--marketing input[type="email"]:focus {
    border-color: #e04e39;
    box-shadow: 0 0 0 3px rgba(224, 78, 57, 0.12);
}

.vn-optin-form .custom-contact-form--marketing .form-group--privacy label {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin: 4px 0 0;
    font-size: 0.8rem;
    font-weight: 500;
    color: #454545;
}

.vn-optin-form .custom-contact-form--marketing .form-group--privacy a {
    color: #e04e39;
    text-decoration: underline;
}

.vn-optin-form .custom-contact-form--marketing .contact-form-submit {
    width: 100%;
    border: 0;
    border-radius: 999px;
    padding: 12px 16px;
    background: #e04e39;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform .15s ease, background .2s ease;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18), 0 0 12px rgba(224, 78, 57, 0.24);
}

.vn-optin-form .custom-contact-form--marketing .contact-form-submit:hover {
    background: #cc402c;
    transform: translateY(-1px);
}

.vn-optin-form .custom-contact-form--marketing .form-messages {
    font-size: 0.82rem;
}

.vn-optin-footer {
    width: 100vw;
    margin: 40px calc(50% - 50vw) 0;
    border-radius: 0;
    background: #e04e39;
    color: #ffffff;
    text-align: center;
    box-sizing: border-box;
    padding: clamp(18px, 2.4vw, 26px) clamp(16px, 3.4vw, 42px);
}

.vn-optin-footer-logo {
    width: clamp(104px, 10vw, 146px);
    height: auto;
    margin: 0 auto 8px;
    display: block;
}

.vn-optin-footer-lines {
    width: min(1200px, 100%);
    margin: 0 auto;
}

.vn-optin-footer-lines p {
    margin: 0 0 5px;
    font-size: clamp(0.8rem, 0.85vw, 0.92rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0;
    white-space: nowrap;
}

.vn-optin-footer-social {
    margin-top: 10px;
    display: inline-flex;
    gap: 9px;
    align-items: center;
}

.vn-optin-footer-social a {
    color: #ffffff;
    display: inline-flex;
    opacity: 0.95;
}

.vn-optin-footer-links {
    margin-top: 9px;
    display: inline-flex;
    gap: 7px;
    align-items: center;
    font-size: 0.76rem;
}

.vn-optin-footer-links a {
    color: #ffffff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

@media (max-width: 980px) {
    .vn-optin-hero-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .vn-optin-page {
        padding-top: 68px;
    }

    .vn-optin-shell {
        padding: 0 18px;
    }

    .vn-optin-floating-header {
        padding: 8px 12px;
    }

    .vn-optin-header-cta {
        font-size: 0.74rem;
        padding: 8px 12px;
    }

    .vn-optin-hero h1 {
        font-size: clamp(1.4rem, 7vw, 2.15rem);
    }

    .vn-optin-hero-head .vn-optin-hero-media img {
        max-height: 520px;
    }

    .vn-optin-footer {
        margin-top: 28px;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .vn-optin-footer-lines p {
        font-size: 0.74rem;
        line-height: 1.3;
        white-space: normal;
    }
}

/* ===== Light Theme Override (Optin) ===== */
html.page-template-page-template-funnel-optin,
body.page-template-page-template-funnel-optin,
.vn-funnel-page-optin,
.vn-optin-page {
    background:
        radial-gradient(circle at 14% 18%, rgba(224, 78, 57, 0.34), rgba(255, 255, 255, 0.95) 46%),
        radial-gradient(circle at 84% 40%, rgba(224, 78, 57, 0.18), rgba(255, 255, 255, 0) 62%),
        #ffffff !important;
    color: #111111 !important;
}

.vn-optin-floating-header {
    background: rgba(255, 255, 255, 0.96) !important;
    border-bottom: 1px solid #e5e7eb !important;
}

.vn-optin-hero h1,
.vn-optin-eyebrow,
.vn-optin-subtitle,
.vn-optin-content h2,
.vn-optin-grid h3,
.vn-optin-grid p,
.vn-optin-points li {
    color: #111111 !important;
    text-shadow: none !important;
}

.vn-optin-grid article {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
}

.vn-optin-footer {
    background: #ffffff !important;
    color: #111111 !important;
    border-top: 1px solid #e5e7eb;
}

.vn-optin-footer-social a,
.vn-optin-footer-links,
.vn-optin-footer-links a,
.vn-optin-footer-lines p {
    color: #111111 !important;
}

.vn-optin-footer-links a {
    border-bottom: 1px solid rgba(17, 17, 17, 0.35) !important;
}

/* ===== Final visual reset: white page + red accents ===== */
html.page-template-page-template-funnel-optin,
body.page-template-page-template-funnel-optin,
.vn-funnel-page-optin,
.vn-optin-page {
    background: #ffffff !important;
}

.vn-optin-hero,
.vn-optin-content {
    color: #111111;
}

.vn-optin-credibility {
    margin: 0 auto 34px;
    max-width: 940px;
    padding: 18px 0 8px;
    border: 0;
    box-shadow: none;
    background: transparent;
}

.vn-optin-numbers-lead {
    font-size: 1.12rem;
    text-align: center;
    margin-bottom: 12px;
    color: #1a1a1a;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.vn-optin-numbers-label {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #e04e39;
    color: #fff;
    padding: 6px 12px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.vn-optin-numbers-value {
    font-weight: 700;
    color: #8f2618;
}

.vn-optin-credibility-list {
    list-style: none;
    margin: 0 auto 18px;
    padding: 0;
    width: min(760px, 100%);
    display: grid;
    gap: 10px;
}

.vn-optin-credibility-list li {
    margin: 0;
    padding: 12px 14px 12px 42px;
    border: 1px solid #f0c3bb;
    border-radius: 10px;
    background: #fff7f6;
    position: relative;
    font-size: 1rem;
    line-height: 1.4;
}

.vn-optin-credibility-list li::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 50%;
    width: 16px;
    height: 16px;
    transform: translateY(-50%);
    border-radius: 999px;
    background: #e04e39;
    box-shadow: 0 0 0 4px rgba(224, 78, 57, 0.16);
}

.vn-optin-logos-carousel {
    overflow: hidden;
    margin: 10px 0 18px;
    padding: 0;
}

.vn-optin-logos-track {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.vn-optin-logo-card {
    min-height: 80px;
    border: 1px solid #f0c3bb;
    border-radius: 10px;
    background: #ffffff;
    color: #b74b3b;
    font-weight: 800;
    font-size: 0.86rem;
}

.vn-optin-testimonial {
    margin: 6px auto 14px;
    max-width: 900px;
    padding: 14px 16px;
    border-left: 0;
    border: 1px solid #f0c3bb;
    border-radius: 10px;
    background: #fff5f3;
    text-align: center;
    font-size: 1rem;
}

.vn-optin-testimonial-author {
    color: #e04e39;
    font-weight: 800;
}

.vn-optin-credibility p {
    text-align: center;
}

.vn-optin-form-section--inline {
    width: min(560px, 100%);
    border: 1px solid #efd5d0;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.08);
}

@media (max-width: 980px) {
    .vn-optin-logos-track {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Reuse the same logos widget used in service pages */
.vn-cat-logos-section--optin {
    max-width: min(980px, 100%);
    margin: 10px auto 20px;
}

.vn-cat-logos-section--optin .vn-cat-logos-title {
    margin-bottom: 10px;
}

/* Funnel only: abbassa il pulsante cookie rispetto al sito istituzionale */
body.vn-funnel-standalone .cky-btn-revisit-wrapper.cky-revisit-bottom-left,
body.vn-funnel-standalone .cky-revisit-bottom-left {
    bottom: calc(20px + env(safe-area-inset-bottom, 0px)) !important;
}
