﻿@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&display=swap');

/* =========================================================
   RDV THEME VARS
========================================================= */
:root {
    --rdv-acc-1: rgba(135,95,185,.92);
    --rdv-acc-2: rgba(70,110,185,.92);
    --rdv-acc-1-strong: rgba(135,95,185,.98);
    --rdv-acc-2-strong: rgba(70,110,185,.96);
    --rdv-border: rgba(255,255,255,.24);
    --rdv-border-2: rgba(255,255,255,.22);
    --rdv-txt: #fff;
    --rdv-txt-dim: #EDEBFF;
    --rdv-shadow: 0 10px 24px rgba(135,95,185,.35);
    --rdv-shadow-2: 0 14px 32px rgba(135,95,185,.40);
    --rdv-dark: rgba(10,10,26,.55);
}

/* =========================================================
   BASE
========================================================= */
body {
    padding-top: 78px; /* spazio per barra fissa */
    font-family: 'Orbitron', sans-serif;
}

/* header fisso */
.rdv-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    background: transparent;
}

/* barra */
.rdv-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    padding: 0 12px;
    margin: 0 auto;
    max-width: 1280px;
    position: relative;
    white-space: nowrap; /* ✅ desktop: 1 riga */
    background: linear-gradient(90deg, var(--rdv-acc-1), var(--rdv-acc-2));
    border: 1px solid var(--rdv-border);
    box-shadow: var(--rdv-shadow);
    backdrop-filter: saturate(1.05) blur(4px);
    -webkit-backdrop-filter: saturate(1.05) blur(4px);
}

/* piccolo arrotondamento desktop */
@media (min-width:800px) {
    .rdv-nav {
        border-radius: 14px;
    }
}

/* brand */
.rdv-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.rdv-logo {
    width: 36px;
    height: 36px;
    display: block;
    filter: drop-shadow(0 0 8px rgba(255,255,255,.4));
}

.rdv-title {
    color: var(--rdv-txt);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .6px;
    text-shadow: 0 0 8px rgba(255,255,255,.5);
}

/* =========================================================
   TOGGLE (solo SVG)
========================================================= */
.rdv-toggle {
    display: none; /* mostrato solo su mobile */
    width: 40px;
    height: 36px;
    border: 2px solid rgba(255,255,255,.35);
    background: rgba(255,255,255,.08);
    border-radius: 10px;
    color: #fff !important;
    -webkit-tap-highlight-color: transparent;
    -webkit-appearance: none;
    appearance: none;
    padding: 0;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

    .rdv-toggle .rdv-icon {
        width: 22px;
        height: 22px;
        display: block;
        flex-shrink: 0;
        transform: translateZ(0);
    }

    .rdv-toggle .rdv-icon-hamburger rect {
        fill: currentColor;
        rx: 1;
    }

    .rdv-toggle .rdv-icon-close {
        display: none;
    }

    .rdv-toggle[aria-expanded="true"] .rdv-icon-hamburger {
        display: none;
    }

    .rdv-toggle[aria-expanded="true"] .rdv-icon-close {
        display: block;
    }

/* =========================================================
   MENU DESKTOP
========================================================= */
.rdv-menu {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

/* ul reset */
.rdv-nav ul,
.rdv-nav li {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}

.rdv-list {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap; /* ✅ desktop: 1 riga */
}

.rdv-link {
    display: inline-block;
    padding: 10px 8px;
    color: var(--rdv-txt);
    text-decoration: none;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .3px;
    font-size: .86rem;
    position: relative;
    transition: transform .18s ease;
}

    .rdv-link::after {
        content: "";
        position: absolute;
        left: 8px;
        right: 8px;
        bottom: 6px;
        height: 2px;
        border-radius: 2px;
        background: linear-gradient(90deg,#fff,#c3a0f0);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform .25s ease;
    }

    .rdv-link:hover {
        transform: translateY(-1px);
    }

        .rdv-link:hover::after,
        .rdv-link:focus-visible::after {
            transform: scaleX(1);
        }

/* dropdown desktop */
.has-dropdown {
    position: relative;
}

.rdv-dropbtn {
    background: transparent;
    border: 0;
    cursor: pointer;
    color: var(--rdv-txt);
    font: inherit;
    padding: 10px 8px;
}

/* ✅ dropdown NON trasparente e in palette viola */
.rdv-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    padding: 10px;
    margin-top: 8px;
    background: linear-gradient(180deg, var(--rdv-acc-1-strong), var(--rdv-acc-2-strong));
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 12px;
    box-shadow: var(--rdv-shadow-2);
    backdrop-filter: saturate(1.1) blur(6px);
    -webkit-backdrop-filter: saturate(1.1) blur(6px);
    z-index: 1200;
}

    .rdv-dropdown[hidden] {
        display: none;
    }

    .rdv-dropdown li {
        border-top: 1px solid rgba(255,255,255,.20);
    }

        .rdv-dropdown li:first-child {
            border-top: 0;
        }

    .rdv-dropdown .rdv-link {
        display: block;
        padding: 10px 12px;
        font-size: .90rem;
        border-radius: 10px;
    }

        .rdv-dropdown .rdv-link:hover,
        .rdv-dropdown .rdv-link:focus-visible {
            background: rgba(255,255,255,.10);
            transform: none;
        }

/* CTA */
.rdv-cta {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 12px;
    font-weight: 900;
    text-transform: uppercase;
    color: #0A0A1A;
    background: linear-gradient(90deg,#c3a0f0,#ffffff);
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(135,95,185,.35);
    font-size: .86rem;
    white-space: nowrap;
}

    .rdv-cta:hover {
        background: linear-gradient(90deg,#ffffff,#c3a0f0);
        color: #0A0A1A;
    }

/* Desktop: brand a sx, menu a dx */
@media (min-width: 992px) {
    .rdv-nav {
        justify-content: flex-start;
    }

    .rdv-menu {
        margin-left: auto;
        flex: 0 0 auto !important;
    }
}

/* =========================================================
   ✅ FIX DESKTOP (NUOVO): tutto entra in 1 riga
   (font/padding/gap più piccoli + brand monolinea)
========================================================= */
@media (min-width: 992px) {
    /* brand più compatto */
    .rdv-logo {
        width: 30px;
        height: 30px;
    }

    .rdv-title {
        font-size: .92rem;
        line-height: 1;
        white-space: nowrap; /* ✅ niente a capo nel brand */
        letter-spacing: .3px;
    }

    /* menu più compatto */
    .rdv-menu {
        gap: 6px;
    }

    .rdv-list {
        gap: 2px;
    }

    .rdv-link,
    .rdv-dropbtn {
        font-size: .78rem;
        padding: 8px 6px;
        letter-spacing: .2px;
    }

    .rdv-cta {
        font-size: .78rem;
        padding: 8px 12px;
    }
}

/* =========================================================
   MOBILE
========================================================= */
@media (max-width: 992px) {
    body {
        padding-top: 70px;
    }

    .rdv-toggle {
        display: inline-flex;
    }

    .rdv-menu {
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        background: linear-gradient(180deg, rgba(135,95,185,.95), rgba(70,110,185,.93));
        border: 1px solid rgba(255,255,255,.28);
        border-radius: 12px;
        box-shadow: 0 14px 32px rgba(135,95,185,.4);
        padding: 10px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        white-space: normal;
        z-index: 1200;
    }

    .rdv-header.is-open .rdv-menu {
        display: flex;
    }

    .rdv-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

        .rdv-list li + li {
            border-top: 1px solid rgba(255,255,255,.22);
        }

    .rdv-link,
    .rdv-dropbtn {
        padding: 12px 10px;
        font-size: .95rem;
    }

    .has-dropdown {
        position: static;
    }

    /* ✅ dropdown mobile viola, NON trasparente */
    .rdv-dropdown {
        position: static;
        margin: 6px 0 8px;
        background: linear-gradient(180deg, rgba(135,95,185,.90), rgba(70,110,185,.88));
        border: 1px solid rgba(255,255,255,.22);
        box-shadow: 0 10px 24px rgba(10,10,26,.35);
    }
}

/* Backdrop quando menu aperto */
body.rdv-nav-open::after {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 1050;
}

/* accessibilità */
@media (prefers-reduced-motion: reduce) {
    .rdv-link,
    .rdv-link::after,
    .rdv-toggle .rdv-icon {
        transition: none !important;
    }
}

/* =========================================================
   RDV FOOTER (dark glam)
========================================================= */
.rdv-footer {
    position: relative;
    margin-top: 60px;
    color: #E8E8FF;
    background: radial-gradient(1200px 600px at 85% 0%, rgba(175,131,220,.10), transparent 65%), radial-gradient(900px 480px at 10% 10%, rgba(106,160,220,.10), transparent 60%), linear-gradient(180deg, #0C0C1E 0%, #0A0A19 100%);
    border-top: 1px solid rgba(175,131,220,.25);
    box-shadow: 0 -18px 48px rgba(175,131,220,.08) inset;
}

.rdv-foot-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 36px 16px 20px;
}

.rdv-foot-card {
    background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
    border: 1px solid rgba(175,131,220,.25);
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(10,10,26,.45), 0 1px 0 rgba(255,255,255,.08) inset;
    overflow: hidden;
    padding: 26px 22px;
}

/* GRID TOP */
.rdv-foot-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr 1fr 1.25fr;
    gap: 24px;
    align-items: start;
}

.foot-col {
    min-width: 0;
}

/* BRAND */
.foot-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    font-weight: 900;
    letter-spacing: .4px;
    text-transform: uppercase;
    filter: drop-shadow(0 0 10px rgba(175,131,220,.35));
}

    .foot-logo img {
        width: 56px;
        height: 56px;
        border-radius: 12px;
        display: block;
    }

.foot-tag {
    margin: 10px 0 14px;
    color: #CFCFEF;
    line-height: 1.5;
    opacity: .95;
    max-width: 36ch;
}

/* Social AFFIANCATI */
.foot-social {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px 12px;
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

    .foot-social a {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 8px 12px;
        border-radius: 12px;
        border: 1px solid rgba(175,131,220,.35);
        background: rgba(255,255,255,.04);
        text-decoration: none;
        color: #EDEBFF;
        font-weight: 800;
        font-size: .92rem;
        transition: transform .18s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
        white-space: nowrap;
    }

        .foot-social a:hover {
            transform: translateY(-2px);
            background: linear-gradient(90deg, rgba(175,131,220,.16), rgba(106,160,220,.16));
            border-color: rgba(175,131,220,.6);
            box-shadow: 0 10px 24px rgba(175,131,220,.25);
        }

    .foot-social svg {
        width: 18px;
        height: 18px;
        flex: 0 0 auto;
        fill: currentColor;
        opacity: .95;
    }

/* TITOLI */
.foot-title {
    margin: 2px 0 10px;
    font-size: 1.02rem;
    font-weight: 900;
    color: #FFFFFF;
    letter-spacing: .02em;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(175,131,220,.35);
}

/* LINK RAPIDI (pill) */
.foot-links {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
}

    .foot-links li {
        margin: 0;
        padding: 0;
    }

    .foot-links a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 10px 14px;
        border-radius: 12px;
        text-decoration: none;
        font-weight: 900;
        color: #EDEBFF;
        background: rgba(255,255,255,.04);
        border: 1px solid rgba(175,131,220,.35);
        transition: transform .15s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
        white-space: nowrap;
    }

        .foot-links a:hover {
            transform: translateY(-2px);
            background: linear-gradient(90deg, rgba(175,131,220,.16), rgba(106,160,220,.16));
            border-color: rgba(175,131,220,.6);
            box-shadow: 0 10px 24px rgba(175,131,220,.25);
        }

/* CONTATTI */
.foot-contacts {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .foot-contacts li {
        display: flex;
        align-items: center;
        gap: 10px;
        color: #DCDDFF;
    }

    .foot-contacts svg {
        width: 18px;
        height: 18px;
        flex: 0 0 auto;
        fill: currentColor;
        opacity: .9;
        filter: drop-shadow(0 2px 6px rgba(175,131,220,.35));
    }

    .foot-contacts a {
        color: #FFF;
        text-decoration: none;
        font-weight: 800;
    }

        .foot-contacts a:hover {
            text-decoration: underline;
            text-underline-offset: 3px;
        }

/* NEWSLETTER */
.foot-news .foot-mini {
    margin: 0 0 10px;
    color: #CFCFEF;
    font-weight: 700;
}

.news-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
}

    .news-form input {
        width: 100%;
        background: rgba(15,15,30,.75);
        color: #EDEBFF;
        border: 1px solid rgba(175,131,220,.55);
        border-radius: 12px;
        padding: 12px 12px;
        font-size: .95rem;
        outline: none;
        transition: box-shadow .25s ease, border-color .25s ease;
    }

        .news-form input:focus {
            border-color: #AF83DC;
            box-shadow: 0 0 0 3px rgba(175,131,220,.25);
        }

.btn-news {
    padding: 12px 16px;
    border-radius: 12px;
    border: 0;
    font-weight: 900;
    text-transform: uppercase;
    background: linear-gradient(90deg, #c3a0f0, #ffffff);
    color: #0A0A1A;
    box-shadow: 0 10px 24px rgba(175,131,220,.3);
    cursor: pointer;
    transition: transform .15s ease, box-shadow .25s ease, background .25s ease;
}

    .btn-news:hover {
        transform: translateY(-2px);
        background: linear-gradient(90deg, #ffffff, #c3a0f0);
        box-shadow: 0 14px 28px rgba(175,131,220,.35);
    }

.news-msg {
    grid-column: 1 / -1;
    min-height: 1.2em;
    margin: 2px 2px 0;
    font-size: .9rem;
    color: #CFCFEF;
}

.foot-legal {
    margin: 10px 0 0;
    font-size: .9rem;
    color: #BFC3F4;
}

    .foot-legal a {
        color: #EDEBFF;
        text-decoration: underline;
        text-underline-offset: 3px;
    }

/* BOTTOM STRIP */
.rdv-foot-bottom {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(175,131,220,.25);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.copy {
    margin: 0;
    color: #CFCFEF;
    font-weight: 700;
}

.foot-legal-links {
    display: flex;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}

    .foot-legal-links a {
        display: inline-block;
        padding: 6px 10px;
        border-radius: 10px;
        color: #EDEBFF;
        text-decoration: none;
        font-weight: 800;
        background: rgba(255,255,255,.05);
        border: 1px solid rgba(175,131,220,.35);
        transition: transform .15s ease, background .2s ease, border-color .2s ease;
    }

        .foot-legal-links a:hover {
            transform: translateY(-1px);
            background: rgba(175,131,220,.16);
            border-color: rgba(175,131,220,.6);
        }

/* ACCESSIBILITÀ */
.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* RESPONSIVE FOOTER */
@media (max-width: 1100px) {
    .rdv-foot-grid {
        grid-template-columns: 1fr 1fr;
    }

    .foot-brand {
        order: -1;
    }
}

@media (max-width: 680px) {
    .rdv-foot-card {
        padding: 22px 16px;
    }

    .rdv-foot-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .news-form {
        grid-template-columns: 1fr;
    }

    .rdv-foot-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    /* mobile social footer */
    .foot-social {
        overflow: visible;
        gap: 6px;
        justify-content: space-between;
        flex-wrap: nowrap;
    }

        .foot-social li {
            flex: 1 1 0;
        }

        .foot-social a {
            width: 100%;
            justify-content: center;
            padding: 6px 8px;
            font-size: .78rem;
            border-radius: 10px;
        }

        .foot-social svg {
            width: 16px;
            height: 16px;
        }

    /* mobile link rapidi */
    .foot-links {
        gap: 6px;
    }

        .foot-links a {
            font-size: .78rem;
            padding: 6px 8px;
            border-radius: 10px;
        }
}

/* =========================================================
   COOKIE BANNER
========================================================= */
.cookie-consent-container {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 99999;
    display: none;
    grid-template-columns: 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 14px 16px;
    border-radius: var(--cc-br);
    background: linear-gradient(180deg, rgba(16,16,38,.92), rgba(10,10,30,.92));
    border: 1px solid var(--cc-border);
    backdrop-filter: saturate(1.1) blur(8px);
    -webkit-backdrop-filter: saturate(1.1) blur(8px);
    box-shadow: var(--cc-shadow), 0 0 0 1px rgba(255,255,255,.04) inset;
    color: var(--txt, #E6E6FA);
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
}

    .cookie-consent-container.is-visible {
        display: grid;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .cookie-consent-container p {
        margin: 0;
        font-size: .98rem;
        line-height: 1.5;
        color: var(--txt-dim, #D8D8F0);
    }

    .cookie-consent-container a {
        color: #fff;
        font-weight: 800;
        text-decoration: underline;
        text-underline-offset: 3px;
    }

        .cookie-consent-container a:hover {
            color: var(--acc-2, #AF83DC);
            text-shadow: 0 0 10px rgba(175,131,220,.45);
        }

    .cookie-consent-container .buttons {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
    }

    .cookie-consent-container button {
        -webkit-tap-highlight-color: transparent;
        appearance: none;
        cursor: pointer;
        padding: 10px 14px;
        border-radius: 12px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: .02em;
        border: 1px solid rgba(255,255,255,.14);
        background: rgba(255,255,255,.06);
        color: #fff;
        transition: transform .15s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
    }

#accept-cookies {
    border: 0;
    background: linear-gradient(90deg, var(--acc-1,#7A5AF8), var(--acc-2,#AF83DC));
    box-shadow: 0 10px 22px rgba(175,131,220,.35);
}

    #accept-cookies:hover {
        transform: translateY(-1px);
        box-shadow: 0 14px 28px rgba(175,131,220,.45);
    }

#decline-cookies {
    border: 2px solid rgba(175,131,220,.55);
    background: rgba(10,10,26,.35);
    color: var(--txt, #E6E6FA);
}

    #decline-cookies:hover {
        transform: translateY(-1px);
        box-shadow: 0 10px 20px rgba(175,131,220,.25);
        border-color: rgba(175,131,220,.85);
    }

/* compat max-width container grandi */
@media (min-width: 1280px) {
    .cookie-consent-container {
        left: calc((100vw - var(--container-w,1240px))/2 + 12px);
        right: calc((100vw - var(--container-w,1240px))/2 + 12px);
    }
}

/* mobile: stack */
@media (max-width: 680px) {
    .cookie-consent-container {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 12px;
    }

        .cookie-consent-container .buttons {
            justify-content: flex-start;
        }
}

/* riduci motion */
@media (prefers-reduced-motion: reduce) {
    .cookie-consent-container {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* quando la modale è aperta, il banner NON deve rubare click */
body.modal-open #cookieConsentContainer {
    pointer-events: none !important;
    opacity: 0 !important;
}

/* =========================================================
   FLOATING WHATSAPP
========================================================= */
.rdv-whatsapp-fab {
    position: fixed;
    z-index: 10050;
    right: 18px;
    bottom: 18px;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    background: linear-gradient(135deg, #7A5AF8, #AF83DC);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.55), 0 0 18px rgba(175, 131, 220, 0.6);
    border: 1px solid rgba(230, 230, 250, 0.8);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease, border-color 0.18s ease;
}

    .rdv-whatsapp-fab i {
        font-size: 1.9rem;
    }

    .rdv-whatsapp-fab:hover {
        transform: translateY(-2px) scale(1.03);
        box-shadow: 0 10px 26px rgba(0, 0, 0, 0.7), 0 0 26px rgba(175, 131, 220, 0.85);
        filter: brightness(1.06);
        border-color: #ffffff;
    }

    .rdv-whatsapp-fab:active {
        transform: translateY(0) scale(0.98);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.55), 0 0 16px rgba(175, 131, 220, 0.6);
        filter: brightness(0.97);
    }

/* Mobile: più compatto e sopra eventuali sticky bar */
@media (max-width: 768px) {
    .rdv-whatsapp-fab {
        width: 52px;
        height: 52px;
        right: 14px;
        bottom: 78px;
    }

        .rdv-whatsapp-fab i {
            font-size: 1.7rem;
        }
}
