/* ==========================================================================
   CLICK RENTAL CAR — CORE DESIGN SYSTEM
   ========================================================================== */


/* ==========================================================================
   1. DESIGN TOKENS (CSS CUSTOM PROPERTIES)
   ========================================================================== */

:root {
    /* Brand Palette */
    --primary:    #003271;
    --dark:       #181818;
    --dark-soft:  #343434;
    --red:        #ec1920;
    --red-dark:   #bc0f08;
    --gray:       #626262;
    --yellow:     #FFD700;
    --white:      #ffffff;
    --bg-body:    #f8fafc;

    /* Layout */
    --container-max:          1700px;
    --header-height:          90px;
    --header-height-scrolled: 70px;

    /* Effects */
    --shadow-premium: 0 20px 40px -10px rgba(0, 50, 113, 0.15);
    --shadow-dark:    0 15px 30px rgba(0, 0, 0, 0.3);
    --transition:     all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --glass:          rgba(255, 255, 255, 0.85);

    /* Plugin bridge (WCR) */
    --wcr-primary:      var(--primary);
    --wcr-accent:       var(--yellow);
    --wcr-success:      #10b981;
    --wcr-error:        var(--red);
    --wcr-text-main:    var(--white);
    --wcr-text-muted:   rgba(255, 255, 255, 0.6);
    --wcr-bg-card:      rgba(255, 255, 255, 0.03);
    --wcr-border-color: rgba(255, 255, 255, 0.1);
    --wcr-radius:       20px;
}


/* ==========================================================================
   2. RESET & GLOBAL
   ========================================================================== */

* {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    width: 100%;
    position: relative;
    scroll-behavior: smooth;
    touch-action: manipulation;
    height: 100%;
}

body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
    scroll-behavior: smooth;
    touch-action: manipulation;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

body {
    font-family: 'Inter', -apple-system, system-ui, sans-serif;
    background-color: var(--bg-body);
    color: var(--dark);
    margin: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Forza il contenuto principale a espandersi, spingendo il footer in fondo */
body > #page,
body > .site,
body > main,
body > .site-content {
    flex: 1;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 94%;
    max-width: var(--container-max);
    margin: 0 auto;
}

a, 
button, 
.button, 
input, 
select, 
textarea,
.support-item,
.wa-premium-concierge-btn,
.wcr-btn-danger {
    touch-action: manipulation;
}


/* FORZA VISIBILITÀ PLACEHOLDER SU TUTTI I BROWSER */

/* Chrome, Firefox, Opera, Safari */
::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
    opacity: 1 !important; /* Firefox applica opacità di default, noi la resettiamo */
}

/* Internet Explorer 10-11 */
:-ms-input-placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Microsoft Edge */
::-ms-input-placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Fix specifico per l'input generato da Flatpickr (altInput) */
.flatpickr-input[readonly] {
    background-color: transparent !important; /* Evita che il browser lo grigi perché readonly */
}

/* ==========================================================================
   3. HEADER
   ========================================================================== */

.site-header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 10000;
    padding: 25px 0;
    background: transparent;
    transition: all 0.3s ease; /* Transizione fluida per lo scroll */
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 1. STATO DEFAULT: Bianco su Hero Blu (Valido per tutte le pagine) */
.site-header .main-navigation li a {
    color: var(--white) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover sulla Hero: Giallo */
.site-header .main-navigation li a:hover {
    color: var(--yellow) !important;
    background: rgba(255, 255, 255, 0.05);
}

/* 2. STATO SCROLLED: Header Glass/Bianco */
.site-header.is-scrolled {
    padding: 12px 0;
    background: var(--glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

/* Testo scuro quando l'header diventa bianco */
.site-header.is-scrolled .main-navigation li a {
    color: var(--dark) !important;
}

.site-header.is-scrolled .main-navigation li a:hover {
    color: var(--white) !important; /* O var(--yellow) se preferisci */
    background: rgba(0, 50, 113, 0.05);
}

/* Eccezione per l'ultimo tasto (Prenota): resta sempre Giallo/Nero */
.main-navigation ul li:last-child a {
    background: var(--yellow) !important;
    color: var(--dark) !important;
    font-weight: 900 !important;
}

.main-navigation ul li:last-child a:hover {
    background: var(--white) !important;
    color: var(--primary) !important;
}

/* Rimuovi le vecchie regole ".home .site-header..." che avevi prima */

/* ==========================================================================
   4. LOGO
   ========================================================================== */

.site-branding {
    display: flex;
    align-items: center;
}

/* Immagine (dal pannello opzioni) */
.custom-logo-link {
    display: block;
}

.custom-logo-link img {
    max-height: 65px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.custom-logo-link:hover img {
    transform: scale(1.05);
}

/* Logo testuale fallback */
.custom-logo-link-text {
    text-decoration: none;
    display: flex;
    align-items: center;
    font-family: 'Inter', sans-serif;
    line-height: 1;
}


@keyframes arrow-glow {
    0%, 100% { opacity: 1; filter: drop-shadow(0 2px 2px var(--red-dark)); }
    50%       { opacity: 0.8; filter: drop-shadow(0 2px 8px var(--red)); }
}

/* Volante (C di CAR) */
.logo-car-c {
    width: 52px;
    height: 52px;
    background: radial-gradient(circle at 35% 35%, var(--dark-soft) 0%, var(--dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 12px;
    border: 3px solid var(--dark-soft);
    box-shadow:
        var(--shadow-premium),
        inset 0 2px 4px rgba(255, 255, 255, 0.2),
        inset 0 -2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.logo-car-c::before {
    content: '';
    position: absolute;
    width: 80%;
    height: 2px;
    background: rgba(255, 255, 255, 0.05);
    top: 50%;
    left: 10%;
}

.logo-car-c span {
    color: var(--white);
    font-weight: 900;
    font-size: 24px;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.custom-logo-link-text:hover .logo-car-c {
    transform: rotate(90deg);
}

/* RENTAL */
.logo-rental {
    color: var(--gray);
    font-size: 24px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Logo responsive */
@media (max-width: 1150px) {
    .logo-rental { display: none; }
}

@media (max-width: 768px) {
    .logo-click { font-size: 26px; }
    .logo-car-c { width: 40px; height: 40px; margin: 0 8px; }
    .logo-car-c span { font-size: 18px; }
    .logo-click::after { top: -4px; border-bottom-width: 10px; }
}


/* ==========================================================================
   5. NAVIGAZIONE DESKTOP
   ========================================================================== */

.main-navigation ul {
    display: flex;
    align-items: center;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation li a {
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border-radius: 8px;
    text-decoration: none;
}

.main-navigation li a:hover {
    color: var(--primary);
    background: rgba(0, 50, 113, 0.05);
}

/* CTA finale nel menu */
.main-navigation ul li:last-child a {
    background: var(--yellow) !important;
    color: var(--dark) !important;
    padding: 12px 28px !important;
    border-radius: 12px !important;
    margin-left: 15px;
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3);
    font-weight: 900;
}

.main-navigation ul li:last-child a:hover {
    background: var(--dark) !important;
    color: var(--yellow) !important;
    transform: translateY(-3px);
}


/* ==========================================================================
   HEADER COMPACT MODE (Per schermi tra 1151px e 1400px)
   Risolve il problema del menu che va a capo su portatili e tablet landscape
   ========================================================================== */

@media (max-width: 1400px) and (min-width: 1151px) {
    
    /* 1. Riduciamo leggermente la grandezza del logo per guadagnare spazio */
    .custom-logo-link img {
        max-height: 50px !important;
    }

    /* 2. Compattiamo le voci di menu: font più piccolo e meno spazio tra loro */
    .main-navigation li a {
        font-size: 12px !important;
        padding: 10px 10px !important; /* Ridotto da 18px a 10px */
        letter-spacing: 0px !important; /* Rimuovo lo spazio extra tra lettere */
    }

    /* 3. Gestiamo l'ultimo tasto (Prenota) che è quello che occupa più spazio */
    .main-navigation ul li:last-child a {
        margin-left: 8px !important;
        padding: 10px 15px !important;
        font-size: 11px !important;
    }

    /* 4. Riduciamo il gap tra logo e navigazione nel flexbox */
    .header-flex {
        gap: 15px;
    }
}


/* ==========================================================================
   6. NAVIGAZIONE MOBILE (HAMBURGER & OVERLAY)
   ========================================================================== */

/**
 * REGOLE GLOBALI DI STATO
 * Queste classi vengono attivate via JavaScript
 */
body.menu-open {
    overflow: hidden !important;
    height: 100vh !important;
    position: fixed !important; /* Blocca lo scroll su iOS/Android */
    width: 100% !important;
}

/* Pulsante Hamburger (Toggle) */
.menu-toggle {
    display: none; /* Nascosto su desktop */
    border: none;
    background: none;
    cursor: pointer;
    padding: 15px;
    position: relative;
    z-index: 11000;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.hamburger-box {
    width: 30px;
    height: 24px;
    display: inline-block;
    position: relative;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    width: 30px;
    height: 3px;
    background-color: #fff;
    position: absolute;
    border-radius: 4px;
    transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), 
                background-color 0.3s ease,
                top 0.3s 0.1s ease;
}

.hamburger-inner {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger-inner::before { content: ''; top: -8px; }
.hamburger-inner::after  { content: ''; top: 8px; }

/* STATO APERTO: Hamburger -> X */
.main-navigation.is-open .hamburger-inner { background-color: transparent !important; }
.main-navigation.is-open .hamburger-inner::before {
    top: 0;
    transform: rotate(45deg);
    background-color: var(--dark) !important;
}
.main-navigation.is-open .hamburger-inner::after {
    top: 0;
    transform: rotate(-45deg);
    background-color: var(--dark) !important;
}

/* COLORE HAMBURGER QUANDO L'HEADER È BIANCO (SCROLLED) */
.site-header.is-scrolled .hamburger-inner,
.site-header.is-scrolled .hamburger-inner::before,
.site-header.is-scrolled .hamburger-inner::after {
    background-color: var(--dark);
}

/* --- RESPONSIVE MOBILE MENU --- */

@media (max-width: 1150px) {
    
    .menu-toggle { 
        display: block; 
        margin-right: 15px;
    }

    .main-navigation .menu-container {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--white);
        padding: 90px 8% 40px; /* Padding ottimizzato */
        transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        display: flex;
        flex-direction: column;
        overflow-y: auto;
        z-index: 10000;
        text-align: center;
    }

    .main-navigation.is-open .menu-container { 
        right: 0; 
    }

    .main-navigation ul { 
        flex-direction: column; 
        gap: 5px; 
        width: 100%; 
        align-items: center; /* Centra le voci orizzontalmente */
    }

    .main-navigation li { 
        width: 100%; 
        opacity: 0;
        transform: translateY(20px);
    }

    /* Animazione voci in entrata */
    .main-navigation.is-open li {
        opacity: 1;
        transform: translateY(0);
        transition: all 0.4s ease 0.3s;
    }

    /* Link Standard */
    .main-navigation .menu-container li a {
        color: var(--dark) !important;
        font-size: 21px; /* Font più elegante */
        font-weight: 800;
        padding: 15px 0;
        display: block;
        border-bottom: 1px solid rgba(0,0,0,0.03);
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    /* TASTO ACCEDI / PRENOTA (L'ultimo della lista) */
    .main-navigation ul li:last-child a { 
        margin: 30px auto 0 !important; 
        padding: 15px 40px !important;
        background: var(--yellow) !important;
        color: var(--dark) !important;
        font-size: 15px !important; /* Molto più proporzionato */
        font-weight: 900 !important;
        border-radius: 12px;
        border: none;
        width: auto !important;
        min-width: 220px;
        display: inline-flex !important;
        justify-content: center;
        align-items: center;
        box-shadow: 0 10px 25px rgba(255, 215, 0, 0.3);
        line-height: 1 !important;
    }

    .main-navigation ul li:last-child a:active {
        transform: scale(0.96);
    }
}


/* ==========================================================================
   7. UI COMPONENTS: BUTTONS
   ========================================================================== */

.button.primary,
.btn-yellow,
.single_add_to_cart_button {
    background: var(--yellow);
    color: var(--dark);
    padding: 18px 40px;
    border-radius: 15px;
    font-weight: 800;
    text-transform: uppercase;
    border: none;
    box-shadow: var(--shadow-premium);
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.button.primary:hover,
.btn-yellow:hover {
    background: var(--dark);
    color: var(--yellow);
    transform: translateY(-5px);
    box-shadow: var(--shadow-dark);
}


/* ==========================================================================
   MASTER CINEMATIC HERO (Universale)
   ========================================================================== */
.crc-hero-master {
    position: relative;
    min-height: 45vh;
    display: flex;
    align-items: center;
    justify-content: center;
        background: linear-gradient(135deg, #001a3d 0%, var(--primary) 100%);

    color: var(--white);
    padding: 160px 0 80px;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    text-align: center;
}

.crc-hero-master.is-home {
    min-height: 85vh;
    padding: 160px 0 240px;
}

.hero-grid-overlay {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 215, 0, 0.07) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 1;
}

.hero-content-box { 
    max-width: 1200px; 
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* --- TITOLO E GRAFICA --- */
.crc-hero-master h1 {
    font-size: clamp(38px, 7vw, 85px);
    line-height: 0.9;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -3px;
    margin-bottom: 25px;
    color: var(--white);
}

.crc-hero-master h1 {
    color: #fff;
}

.crc-hero-master h1 .hero-line-mask > span > span {
    color: var(--yellow);
}

/* La Maschera per l'animazione "bella" */
.hero-line-mask {
    display: block;
    overflow: hidden; /* Taglia ciò che sta fuori */
    padding: 5px 0;
}

.hero-line-mask .hero-badge {
    color: var(--yellow);
}

/* Stato iniziale degli elementi: spostati in basso */
.crc-hero-master .is-animate {
    display: block;
    opacity: 0;
    visibility: visible !important; /* Devono essere "pronti" per GSAP */
}

.hero-lead-text {
    font-size: clamp(16px, 1.5vw, 19px);
    color: rgba(255,255,255,0.6);
    margin-top: 15px;
    line-height: 1.5;
}

/* ==========================================================================
   8. FOOTER
   ========================================================================== */

.futuristic-footer {
    position: relative;
    background: #050505;
    color: var(--white);
    padding-top: 100px;
    overflow: visible;
}



/* ==========================================================================
   DRIVER SUPPORT HUB - EVOLUTION DESIGN
   ========================================================================== */

.footer-contact-bridge {
    position: absolute;
    top: -60px;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.driver-support-cockpit {
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 20px 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.driver-support-cockpit:hover {
    border-color: rgba(255, 215, 0, 0.3);
    transform: translateY(-5px);
}


.label-tech {
    display: block;
    font-size: 10px;
    font-weight: 900;
    color: #fff;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.value-tech {
    font-size: 12px;
    color: #666;
    font-weight: 600;
}

/* 2. CALLOUT TEXT */
.support-callout-premium h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
}

.support-callout-premium p {
    margin: 4px 0 0;
    font-size: 13px;
    color: #888;
}

/* 3. WHATSAPP BUTTON (CONCIERGE STYLE) */
.wa-premium-concierge-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    padding: 10px 24px;
    background: rgba(37, 211, 102, 0.08);
    border: 1px solid rgba(37, 211, 102, 0.2);
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

/* Correzione Icona WhatsApp */
.wa-btn-icon {
    width: 34px;      /* Dimensione leggermente ridotta per eleganza */
    height: 34px;
    color: #25D366;   /* Verde WhatsApp */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;   /* Impedisce all'icona di schiacciarsi */
    transition: color 0.3s ease;
}

.wa-btn-icon svg {
    width: 100%;
    height: 100%;
    display: block;
    fill: currentColor; /* Permette di cambiare colore al passaggio del mouse tramite CSS */
}

/* Effetto al passaggio del mouse sul bottone intero */
.wa-premium-concierge-btn:hover .wa-btn-icon {
    color: #ffffff; /* L'icona diventa bianca quando il fondo diventa verde */
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.5));
}

.wa-btn-txt {
    display: flex;
    flex-direction: column;
}

.wa-label-top {
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    color: #25D366;
    letter-spacing: 1px;
}

.wa-phone-number {
    font-size: 19px;
    font-weight: 900;
    color: #fff;
    line-height: 1;
}

.wa-btn-badge {
    position: absolute;
    top: -10px;
    right: 15px;
    background: #FFD700;
    color: #000;
    font-size: 8px;
    font-weight: 900;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* HOVER EFFECT */
.wa-premium-concierge-btn:hover {
    background: #25D366;
    border-color: #25D366;
    transform: scale(1.03);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.2);
}

.wa-premium-concierge-btn:hover .wa-phone-number,
.wa-premium-concierge-btn:hover .wa-label-top,
.wa-premium-concierge-btn:hover .wa-btn-icon {
    color: #fff;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
    .driver-support-cockpit {
        flex-direction: column;
        gap: 25px;
        text-align: center;
        padding: 35px 20px;
    }

}

/* Corpo footer asimmetrico */
.footer-asymmetric-wrap {
    background: linear-gradient(180deg, #0a0a0a 0%, #050505 100%);
    padding: 120px 0 80px;
    clip-path: polygon(0 15%, 100% 0, 100% 100%, 0 100%);
    position: relative;
}


.footer-content-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 100px;
    position: relative;
    z-index: 2;
}

/* Brand block */


.f-social-grid { display: flex; gap: 15px; }

.f-social-link {
    width: 45px;
    height: 45px;
    border: 1px solid #1a1a1a;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    color: #444;
    transform: skewX(-10deg);
}

.f-social-link:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: skewX(-10deg) translateY(-5px);
}

/* Nav tecnica footer */
.f-header-line {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.f-line { width: 30px; height: 2px; background: var(--red); }

.f-header-line h4 {
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 3px;
    color: #444;
    margin: 0;
}

.f-tech-menu { list-style: none; padding: 0; margin: 0; }
.f-tech-menu li { margin-bottom: 12px; }
.f-tech-menu li a {
    color: #888;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    transition: 0.3s;
    display: block;
}
.f-tech-menu li a:hover { color: var(--yellow); transform: translateX(10px); }

/* Location block */
.f-loc-name    { font-weight: 900; color: var(--white); margin-bottom: 10px; text-transform: uppercase; }
.f-loc-address,
.f-loc-email   { color: #666; font-size: 14px; margin: 0; }

/* Rimuove i pallini dai menu dinamici del footer */
.f-tech-menu, 
.f-legal-links ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Allinea i link legali in orizzontale nella barra finale */
.f-legal-links ul {
    display: flex;
    gap: 20px;
}

.f-legal-links ul li a {
    color: #444;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
}

.f-legal-links ul li a:hover {
    color: var(--white);
}

/* Bottom bar */
.footer-bottom-bar,
.footer-bottom {
    background: #000;
    padding: 40px 0;
    border-top: 1px solid #0a0a0a;
}

.bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.f-info { font-size: 11px; color: #444; letter-spacing: 1px; font-weight: 600; }
.white-text  { color: #888; }

.f-legal-links a {
    color: #444;
    font-size: 11px;
    margin-right: 25px;
    text-transform: uppercase;
    font-weight: 700;
}
.f-legal-links a:hover { color: var(--white); }

/* Branding nel footer */
.f-brand-block .f-logo-wrap {
    margin-bottom: 25px;
}

.f-mission-desc {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Icone Social potenziate */
.f-social-link {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--yellow);
    margin-right: 10px;
    transition: all 0.3s ease;
}

.f-social-link:hover {
    background: var(--yellow);
    color: var(--dark);
    transform: translateY(-5px);
}

/* Payment Icons */
.f-trust-icons {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    align-items: center;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.f-trust-icons:hover {
    opacity: 1;
}

.f-payment-icon {
    height: 20px;
    width: auto;
    filter: grayscale(1) brightness(2);
}

/* Copyright line */
.f-copyright {
    font-size: 11px;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.f-copyright strong {
    color: #888;
}

/* Responsive fix */
@media (max-width: 991px) {
    .footer-content-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 768px) {
    .footer-content-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .f-header-line { justify-content: center; }
    .f-trust-icons { justify-content: center; }
}

#back-to-top {
    color: var(--dark);
    border: none;
    width: 45px;
    height: 45px;
    cursor: pointer;
    font-weight: 900;
    transition: var(--transition);
}
#back-to-top:hover { transform: translateY(-5px); background: var(--white); }

/* Footer responsive */
@media (max-width: 1100px) {
    .footer-content-grid { grid-template-columns: 1fr 1fr; gap: 60px; }
    .sos-card-inner { padding: 25px; }
    .sos-phone-btn  { font-size: 24px; }
}

@media (max-width: 768px) {
    .footer-content-grid { grid-template-columns: 1fr; gap: 50px; text-align: center; }
    .f-brand-block,
    .f-nav-block,
    .f-info-block { display: flex; flex-direction: column; align-items: center; }
    .f-header-line { justify-content: center; }
    .sos-card-inner { flex-direction: column; text-align: center; gap: 20px; }
    .footer-asymmetric-wrap { clip-path: polygon(0 5%, 100% 0, 100% 100%, 0 100%); }
    .bottom-flex { flex-direction: column-reverse; gap: 30px; }
}

@media (max-width: 600px) {
    .container { width: 90%; }
    .cinematic-footer { clip-path: none; padding-top: 60px; }
    .bottom-flex { flex-direction: column; gap: 20px; text-align: center; }
}


/* ==========================================================================
   WHATSAPP FLOATING BUTTON - PULSING EFFECT
   ========================================================================== */

.f-wa-floating {
    position: fixed;
    right: 20px;
    bottom: 30px; 
    width: 56px;
    height: 56px;
    background: #25D366;
    color: #fff !important;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.f-wa-floating i {
    font-size: 30px;
    width: 30px;
    height: 30px;
    position: relative;
    z-index: 2;
}

/* L'onda che pulsa */
.f-wa-pulse {
    position: absolute;
    inset: 0;
    background: #25D366;
    border-radius: 50%;
    z-index: 1;
    animation: wa-ping-infinite 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes wa-ping-infinite {
    75%, 100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

.f-wa-floating:hover {
    transform: scale(1.1) translateY(-5px);
    background: #fff;
    color: #25D366 !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.f-wa-floating:hover .f-wa-pulse {
    display: none; /* Ferma l'animazione al passaggio del mouse per pulizia */
}

/* Nasconde quando il menu mobile è aperto (come il tasto scroll) */
body.menu-open .f-wa-floating {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

/* Ottimizzazione mobile */
@media (max-width: 768px) {
    .f-wa-floating {
        bottom: 40px;
        /* Stato iniziale: Nascosto */
        opacity: 0;
        visibility: hidden;
        transform: translateY(30px);
        transition: all 400ms cubic-bezier(0.165, 0.84, 0.44, 1); /* Transizione fluida */
    }

    /* Stato attivato dallo scroll (tramite JS) */
    .f-wa-floating.is-visible {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

/* ==========================================================================
   9. SCROLL TO TOP (PROGRESS CIRCLE)
   ========================================================================== */

.f-progress-wrap {
    position: fixed;
    right: 20px;
    bottom: 105px;
    height: 56px;
    width: 56px;
    cursor: pointer;
    display: block;
    border-radius: 50px;
    box-shadow: inset 0 0 0 2px rgba(255, 215, 0, 0.1);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 400ms linear;
    background: var(--dark);
}

.f-progress-wrap.active-progress {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.f-progress-wrap svg path { fill: none; }

.f-progress-wrap svg.progress-circle path {
    stroke: var(--yellow);
    stroke-width: 4;
    box-sizing: border-box;
    transition: all 400ms linear;
}

.f-scroll-icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--yellow);
    font-size: 20px;
    font-weight: 900;
}


/* Nasconde il tasto di risalita con priorità massima quando il menu è aperto */
.f-progress-wrap.hidden-by-menu {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(20px) !important;
    pointer-events: none !important;
    transition: all 0.3s ease;
}


/* ==========================================================================
   10. ANIMAZIONI & STATO INIZIALE ELEMENTI
   ========================================================================== */

/* Elementi nascosti prima che GSAP li animi */
/* Elementi nascosti all'avvio per animazione fluida */
.site-branding,
.main-navigation ul li,
.deck-header,
.menu-toggle,
.fleet-item-card,
.is-animate,
.intro-text-content,
.intro-image-wrapper {
    opacity: 0;
    visibility: hidden;
}

/* Nascondiamo gli elementi solo se la classe .js-enabled è presente sul body */
.js-enabled .site-branding,
.js-enabled .main-navigation ul li,
.js-enabled .deck-header,
.js-enabled .menu-toggle,
.js-enabled .fleet-item-card,
.js-enabled .is-animate,
.js-enabled .intro-text-content,
.js-enabled .intro-image-wrapper {
    opacity: 0;
    visibility: hidden;
    will-change: transform, opacity;
}


/* Fallback: se GSAP non carica o se non vogliamo animare su certi schermi */
.no-js .fleet-item-card {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

/* Classe attivata dall'observer */
.is-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.3; }
}

/* ==========================================================================
   UTILITY BUTTONS - CINEMATIC STYLE
   ========================================================================== */

/* Il contenitore dei tasti */
.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

.hero-actions .button.primary:hover {
    background-color: var(--white) !important;
    color: var(--primary) !important;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* Bottone Outline Bianco (Esplora Flotta) */
.btn-outline-white {
    padding: 18px 45px;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    
    /* Stile Outline */
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--white) !important; /* Forza il colore bianco */
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px); /* Effetto vetro */
    -webkit-backdrop-filter: blur(10px);
}

/* Hover per l'outline */
.btn-outline-white:hover {
    background: var(--white);
    color: var(--primary) !important; /* Il testo diventa blu scuro */
    border-color: var(--white);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.wcr-tech-tag {
    background: rgba(255, 215, 0, 0.05);
    color: var(--yellow);
    border: 1px solid rgba(255, 215, 0, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 9px !important;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Responsive: tasti uno sopra l'altro su mobile */
@media (max-width: 768px) {
    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }
    .btn-outline-white, .hero-actions .button.primary {
        width: 100%;
        padding: 16px;
    }
    
    .menu-toggle {
        margin-right: 20px; /* Maggiore distanza sui telefoni piccoli */
    }
}

/* ==========================================================================
   11. SHIMMER / SKELETON LOADER
   ========================================================================== */

@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.crc-loading-shimmer {
    color: transparent !important;
    background: linear-gradient(90deg, #333 25%, #444 50%, #333 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 5px;
}

.skeleton-shimmer {
    background: linear-gradient(90deg, #eff1f3 25%, #e2e2e2 50%, #eff1f3 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite linear;
    border-radius: 20px;
}

/* Forme segnaposto */
.s-hero  { width: 100%; height: 500px; margin-bottom: 40px; }
.s-grid  { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.s-card  { height: 400px; }
.s-line  { height: 20px; width: 60%; margin-bottom: 15px; }
.s-title { height: 40px; width: 40%; margin-bottom: 30px; }


/* ==========================================================================
   12. CURSOR & TRANSIZIONE PAGINA
   ========================================================================== */

.custom-cursor {
    position: fixed;
    width: 80px;
    height: 80px;
    background: var(--yellow);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 900;
    color: var(--dark);
    opacity: 0;
    scale: 0;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease;
}

.transition-wipe {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark);
    z-index: 100000;
    transform: scaleY(0);
    transform-origin: bottom;
    pointer-events: none;
}


/* ==========================================================================
   13. CARBON FIBER TEXTURE
   ========================================================================== */

.bg-carbon {
    background:
        linear-gradient(27deg,  #151515 5px,  transparent 5px) 0 5px,
        linear-gradient(207deg, #151515 5px,  transparent 5px) 10px 0,
        linear-gradient(27deg,  #222    5px,  transparent 5px) 0 10px,
        linear-gradient(207deg, #222    5px,  transparent 5px) 10px 5px,
        linear-gradient(90deg,  #1b1b1b 10px, transparent 10px),
        linear-gradient(#1d1d1d 25%, #1a1a1a 25%, #1a1a1a 50%, transparent 50%, transparent 75%, #242424 75%, #242424);
    background-color: #131313;
    background-size: 20px 20px;
    position: relative;
}

.bg-carbon::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent, rgba(0, 0, 0, 0.8));
    pointer-events: none;
}


/* ==========================================================================
   14. LENIS SMOOTH SCROLL FIXES
   ========================================================================== */

html.lenis { height: auto; }

.lenis.lenis-smooth { scroll-behavior: auto; }

.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }

.lenis.lenis-stopped { overflow: hidden; }


/* ==========================================================================
   WCR AJAX MODAL SYSTEM (PREMIUM COCKPIT EDITION)
   Risolto: Z-index, Scrolling interno, Schiacciamento icone, Overlay Mobile
   ========================================================================== */

/* 1. OVERLAY (Sfondo oscurato) */
.wcr-modal-overlay {
    position: fixed;
    inset: 0; /* Scorciatoia per top, left, bottom, right: 0 */
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 5, 0.95); /* Più scuro per focus totale */
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000000 !important; /* Sempre sopra la sticky bar (9999999) */
    opacity: 0;
    visibility: hidden;
    padding: 20px; /* Spazio di sicurezza per i bordi dello schermo */
    box-sizing: border-box;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.wcr-modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

/* 2. CONTENITORE MODALE (La Card) */
.wcr-modal-content {
    background: #121212; /* Grigio ultra-dark cockpit */
    border: 2px solid var(--yellow);
    border-radius: 35px;
    width: 100%;
    max-width: 520px;
    max-height: 85vh; /* Non esce mai dallo schermo */
    display: flex;
    flex-direction: column; /* Organizza header, messaggio e bottoni in colonna */
    position: relative;
    box-shadow: 0 50px 100px rgba(0,0,0,0.8), 0 0 40px rgba(255, 215, 0, 0.05);
    transform: scale(0.9) translateY(30px);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 50px 40px 40px; /* Spaziatura interna bilanciata */
    box-sizing: border-box;
    overflow: hidden; /* Fondamentale per i bordi arrotondati */
}

.is-open .wcr-modal-content {
    transform: scale(1) translateY(0);
}

/* 3. ICONE (Successo, Errore, Info) */
.wcr-modal-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 900;
    flex-shrink: 0; /* IMPEDISCE LO SCHIACCIAMENTO SU MOBILE */
    box-sizing: border-box;
}

.modal-icon-success { background: #10b981; color: #fff; box-shadow: 0 0 30px rgba(16, 185, 129, 0.4); }
.modal-icon-error   { background: var(--red); color: #fff; box-shadow: 0 0 30px rgba(236, 25, 32, 0.4); }
.modal-icon-warning { background: var(--yellow); color: var(--dark); box-shadow: 0 0 30px rgba(255, 215, 0, 0.3); }
.modal-icon-info    { background: var(--primary); color: var(--yellow); border: 2px solid var(--yellow); }

/* 4. TITOLO E TESTI */
.wcr-modal-content h3 {
    color: #fff;
    font-size: 26px;
    font-weight: 900;
    text-transform: uppercase;
    margin: 0 0 15px 0;
    text-align: center;
    letter-spacing: -0.5px;
    flex-shrink: 0;
}

.wcr-modal-message {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 30px;
    overflow-y: auto; /* SCROLL INTERNO SE IL TESTO È LUNGO */
    padding-right: 10px;
    flex-grow: 1; /* Prende tutto lo spazio disponibile */
    -webkit-overflow-scrolling: touch;
}

/* Scrollbar personalizzata per il messaggio */
.wcr-modal-message::-webkit-scrollbar { width: 4px; }
.wcr-modal-message::-webkit-scrollbar-thumb { background: var(--yellow); border-radius: 10px; }

/* 5. PULSANTI AZIONE */
.wcr-modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    flex-shrink: 0;
}

.wcr-modal-buttons .wcr-btn-primary {
    background: var(--yellow);
    color: var(--dark) !important;
    padding: 18px 30px;
    border-radius: 16px;
    text-decoration: none !important;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.2);
}

.wcr-modal-buttons .wcr-btn-primary:hover {
    background: #fff;
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(255, 215, 0, 0.3);
}

.wcr-modal-buttons .wcr-btn-secondary {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none !important;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    text-align: center;
    padding: 10px;
    transition: color 0.3s;
}

.wcr-modal-buttons .wcr-btn-secondary:hover {
    color: #fff;
}

/* Bottone Pericolo (per avvisi distruttivi) */
.wcr-btn-primary.btn-danger {
    background: var(--red) !important;
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(236, 25, 32, 0.2);
}

/* 6. PULSANTE X CHIUSURA */
.wcr-modal-close-x {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: rgba(255, 255, 255, 0.3);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    line-height: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wcr-modal-close-x:hover {
    background: var(--red);
    color: #fff;
    transform: rotate(90deg);
}

/* 7. OTTIMIZZAZIONE RESPONSIVE MOBILE */
@media (max-width: 768px) {
    .wcr-modal-overlay {
        padding: 15px; /* Meno spazio ai bordi su schermi piccoli */
    }

    .wcr-modal-content {
        padding: 40px 25px 25px; /* Riduzione padding interno */
        border-radius: 28px;
        max-height: 80vh; /* Più basso per non toccare i bordi del browser mobile */
    }

    .wcr-modal-icon {
        width: 65px;
        height: 65px;
        font-size: 24px;
        margin-bottom: 20px;
    }

    .wcr-modal-content h3 {
        font-size: 20px;
    }

    .wcr-modal-message {
        font-size: 14px;
        margin-bottom: 25px;
    }

    .wcr-modal-buttons .wcr-btn-primary {
        padding: 16px 20px;
        font-size: 12px;
    }
}

/* Fix per evitare il "buco" in fondo su mobile */
body.modal-open {
    overflow: hidden !important;
    height: 100% !important;
}

/* Icone per prodotto, checkout e carrello */
.wc-item-meta dd, 
.crc-rental-meta dd {
    display: inline-flex !important; /* Allinea orizzontalmente */
    align-items: center !important;
    gap: 8px; /* Spazio tra icona e prezzo */
    justify-content: flex-end;
}

.wcr-cart-icon {
    display: inline-flex;
    vertical-align: middle;
}

.wcr-price-row svg,
.wcr-cart-icon svg {
    width: 18px !important;
    height: 18px !important;
    fill: currentColor; /* Prende il colore del testo */
    flex-shrink: 0;
}

/* Se usi dashicons come fallback */
.wcr-cart-icon i.dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 1;
}

/* Allineamento icone nei meta del carrello e checkout */
.variation dt .wcr-cart-icon svg,
.variation dt svg {
    width: 16px !important;
    height: 16px !important;
    display: inline-block;
    vertical-align: middle;
    margin-right: 5px;
}

/* Forza le icone ad essere visibili anche nel riepilogo ordini */
.crc-rental-meta dl.variation dt {
    display: flex !important;
    align-items: center !important;
}

/* Corregge il problema dei tag DT che contengono icone SVG */
.variation dt[class*="variation-svg"] {
    display: flex !important;
    align-items: center;
    gap: 5px;
    float: none !important; /* Rimuove eventuali float di WooCommerce */
    clear: both;
    margin-bottom: 5px;
}

.variation dt svg {
    min-width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* --- FIX PER CARRELLO A BLOCCHI (Gutenberg) --- */

/* Allineamento icone nei nomi dei metadati dei blocchi */
.wc-block-components-product-details__name {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px;
}

.wc-block-components-product-details__name svg {
    width: 16px !important;
    height: 16px !important;
    flex-shrink: 0;
    fill: currentColor; /* Prende il colore del testo */
}

/* Fix specifico per icone nel carrello blocchi */
.wc-block-components-product-details span svg {
    vertical-align: middle;
    margin-right: 5px;
}

/* Assicurati che il contenitore non tagli l'icona */
.wc-block-components-product-details__item {
    display: flex !important;
    align-items: center;
    margin-bottom: 4px;
}

/* Definizione dell'animazione Pulse */
@keyframes wcr-pulse-infinite {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 204, 0, 0.7); /* Colore simile al giallo del pulsante */
    }
    70% {
        transform: scale(1.03); /* Si ingrandisce leggermente */
        box-shadow: 0 0 0 15px rgba(255, 204, 0, 0); /* Crea un'ombra che si espande e svanisce */
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 204, 0, 0);
    }
}

/* ==========================================================================
   404 PAGE STYLES
   ========================================================================== */

.crc-404-page-wrapper {
    background: var(--bg-body);
    padding-bottom: 120px;
}

.crc-404-content {
    text-align: center;
    margin-top: 60px;
}

/* Visual Errore */
.crc-404-content .error-visual {
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.crc-404-content .dashicons-warning {
    font-size: 60px;
    width: 60px;
    height: 60px;
    color: var(--yellow);
    opacity: 0.3;
}

.crc-404-content .error-code {
    font-family: monospace;
    font-size: 12px;
    letter-spacing: 4px;
    color: var(--gray);
    font-weight: 700;
}

/* Azioni */
.crc-404-content .error-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.btn-outline-dark {
    padding: 18px 40px;
    border-radius: 15px;
    border: 2px solid var(--dark);
    color: var(--dark);
    text-transform: uppercase;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-outline-dark:hover {
    background: var(--dark);
    color: var(--yellow);
}

.support-hint {
    font-size: 14px;
    color: var(--gray);
    font-style: italic;
}



/* ==========================================================================
   WCR INFO MODAL & TRIGGER SYSTEM - CLICK RENTAL CAR
   ========================================================================== */

/* 1. L'icona "i" nelle Card (vicino al titolo) */
.wcr-info-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--yellow) !important; /* Giallo Brand */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    vertical-align: middle;
    margin-left: 8px;
    opacity: 0.7;
}

.wcr-info-trigger:hover {
    opacity: 1;
    transform: scale(1.2) rotate(5deg);
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.5));
}

.wcr-info-trigger svg {
    display: block;
    stroke: currentColor;
    margin: 0 5px 0 0;
}

/* Forza allineamento titolo e icona */
.wcr-ins-title-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0; 
    margin-bottom: 5px;
}


/* 2. Struttura del Modale Informativo (Tipo INFO) */
.wcr-modal-content.modal-type-info {
    max-width: 600px !important;
    text-align: left !important;
    border-color: var(--yellow) !important; /* Bordo Giallo per Info */
}

.wcr-modal-content.modal-type-info h3 {
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
    margin-bottom: 25px;
    color: #fff;
    font-weight: 900;
    text-transform: uppercase;
}

/* Area del messaggio con scrollbar personalizzata */
.wcr-modal-content.modal-type-info .wcr-modal-message {
    text-align: left !important;
    max-height: 450px;
    overflow-y: auto;
    padding-right: 15px;
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
}

.wcr-modal-content.modal-type-info .wcr-modal-message::-webkit-scrollbar {
    width: 4px;
}
.wcr-modal-content.modal-type-info .wcr-modal-message::-webkit-scrollbar-thumb {
    background: var(--yellow);
    border-radius: 10px;
}

/* 3. Icona grande nel cerchio del Modale */
.modal-icon-info {
    background: var(--primary) !important; /* Blu Brand */
    color: var(--yellow) !important;    /* "i" Gialla */
    font-family: serif;
    font-style: italic;
    font-weight: 900;
    border: 2px solid var(--yellow);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.2);
}

/* 4. Stile Contenuto Interno (Typography) */

/* Sottotitoli interni all'editor */
.modal-type-info .wcr-modal-message h3, 
.modal-type-info .wcr-modal-message h4 {
    color: var(--yellow);
    font-size: 17px;
    font-weight: 800;
    text-transform: uppercase;
    margin: 25px 0 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    border: none; /* Rimuove bordo dell'h3 principale */
}

/* Varianti Colore Titoli */
.modal-type-info .wcr-modal-message .text-green { color: #10b981 !important; }
.modal-type-info .wcr-modal-message .text-red { color: #ec1920 !important; }

.modal-type-info .wcr-modal-message strong {
    color: #fff;
    font-weight: 700;
}

/* 5. Sistema Liste Avanzato (Icone al posto dei pallini) */

.modal-type-info .wcr-modal-message ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 25px 0 !important;
}

.modal-type-info .wcr-modal-message li {
    position: relative;
    padding-left: 35px !important;
    margin-bottom: 12px !important;
    font-size: 14px;
    line-height: 1.6;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    padding-bottom: 8px;
}

/* --- LISTA POSITIVA (Inclusioni / Check) --- */
.modal-type-info .wcr-modal-message ul.wcr-list-check li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: -2px;
    color: #10b981; /* Verde Successo */
    font-weight: 900;
    font-size: 18px;
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

/* --- LISTA NEGATIVA (Esclusioni / X) --- */
.modal-type-info .wcr-modal-message ul.wcr-list-x li::before {
    content: '✕';
    position: absolute;
    left: 4px;
    top: 0;
    color: #ec1920; /* Rosso Allerta */
    font-weight: 900;
    font-size: 16px;
    text-shadow: 0 0 10px rgba(236, 25, 32, 0.3);
}

.modal-type-info .wcr-modal-message ul.wcr-list-x li {
    color: rgba(255, 255, 255, 0.5); /* Testo più spento */
}

/* Fallback: se non metti classi, usa la spunta gialla */
.modal-type-info .wcr-modal-message ul:not([class]) li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--yellow);
    font-weight: 900;
}

/* ==========================================================================
   15. PRICE PREVIEW: RIEPILOGO PREZZI (UNIFIED & ALIGNED)
   ========================================================================== */

/* Struttura base del contenitore */
.wcr-price-preview-card {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    padding: 0 25px;
    background: rgba(0, 50, 113, 0.32) !important; /* Blu trasparente cockpit */
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    transition:
        opacity       0.5s cubic-bezier(0.4, 0, 0.2, 1),
        transform     0.5s cubic-bezier(0.4, 0, 0.2, 1),
        max-height    0.7s ease-in-out,
        box-shadow    0.3s ease;
}

/* Stato visibile attivo */
.wcr-price-preview-card.is-active {
    opacity: 1;
    transform: translateY(0) scale(1);
    max-height: 2000px;
    visibility: visible;
    padding: 25px;
    margin-top: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(3, 75, 149, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

/* --------------------------------------------------------------------------
   ALLINEAMENTO ATOMICO RIGHE E ICONE
   -------------------------------------------------------------------------- */

/* Regola Master per tutte le righe con Icona + Testo */
.wcr-row-title,
.wcr-price-row .name,
.wcr-deposit-box span,
.wcr-item-main-title {
    display: inline-flex !important;
    align-items: center !important; /* Centra l'icona in verticale rispetto al testo */
    gap: 12px !important;           /* Spazio costante tra icona e testo */
    line-height: 1.2 !important;
    text-align: left;
}

.wcr-on-site-summary {
    margin: 10px 0;
    padding: 20px;
    background: rgba(255, 215, 0, 0.05);
    border: 1px dashed var(--yellow);
    border-radius: 15px;    
}

.wcr-on-site-summary span {
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 900;
    color: var(--yellow);
    letter-spacing: 1px;
}

.wcr-on-site-summary small {
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
}

/* Lo span che avvolge gli SVG nel plugin */
.wcr-icon-svg {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0 !important;
}

/* Forza dimensioni e comportamento di tutti gli SVG nel riepilogo */
.wcr-price-row svg,
.wcr-deposit-box svg,
.wcr-row-title svg,
.wcr-icon-svg svg {
    width: 18px !important;
    height: 18px !important;
    display: block !important;
    stroke-width: 2px;
}

/* Riga prezzo standard */
.wcr-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Centra i due lati della riga (testo e prezzo) */
    padding: 10px 0;
    margin-bottom: 5px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1) !important;
}

.wcr-price-row:last-child {
    border-bottom: none !important;
}

/* Riga principale (Noleggio Auto) - Gestione multi-riga */
.wcr-main-rental-row {
    background: rgba(255, 255, 255, 0.03);
    padding: 15px !important;
    border-radius: 12px;
    border-bottom: none !important;
    align-items: flex-start !important; /* L'icona resta allineata alla prima riga */
}

.wcr-row-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wcr-row-title {
    color: #ffffff;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
    flex-wrap: wrap;
}

/* Correzione ottica specifica per l'icona dell'auto */
.wcr-main-rental-row .wcr-row-title svg {
    margin-top: 1px;
}

.wcr-product-suffix {
    font-size: 0.8em;
    opacity: 0.6;
    color: var(--yellow) !important;
    font-weight: 900;
}

.wcr-period-dates {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.5;
    padding-left: 32px; /* Allinea il testo delle date sotto al nome dell'auto, saltando l'icona */
}

/* --------------------------------------------------------------------------
   DETTAGLI VALORI E GRUPPI
   -------------------------------------------------------------------------- */

.wcr-row-value {
    color: #ffffff !important;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 15px;
    white-space: nowrap;
}

.wcr-price-group-label {
    display: block;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--yellow);
    letter-spacing: 1.5px;
    margin: 25px 0 10px 0;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.wcr-price-preview-card .wcr-price-group-label:first-child {
    margin-top: 0;
}

.wcr-deposit-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
}

.wcr-deposit-box strong {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #fff;
}

/* --------------------------------------------------------------------------
   TOTALE FINALE
   -------------------------------------------------------------------------- */

.wcr-total-display {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid rgba(255, 215, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.wcr-total-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.wcr-total-label {
    font-size: 18px;
    font-weight: 900;
    text-transform: uppercase;
    color: #fff;
    letter-spacing: 1px;
}

.wcr-total-amount {
    color: var(--yellow) !important;
    font-size: 42px !important;
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    letter-spacing: -1.5px;
}

/* --------------------------------------------------------------------------
   MISC: EMOJI, ANIMAZIONI, SKELETON
   -------------------------------------------------------------------------- */

.wcr-price-row img.emoji,
.wcr-item-actions-grid img.emoji {
    width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
    display: inline-block !important;
    vertical-align: middle !important;
}

.wcr-loading-skeleton {
    background: linear-gradient(90deg, #1a1a1a 25%, #2a2a2a 50%, #1a1a1a 75%);
    background-size: 200% 100%;
    animation: wcr-shimmer 1.5s infinite linear;
    border-radius: 10px;
    height: 150px;
}

@keyframes wcr-slide-in-row {
    from { opacity: 0; transform: translateX(-10px); }
    to   { opacity: 1; transform: translateX(0); }
}

@media (max-width: 768px) {
    .wcr-total-amount { font-size: 32px !important; }
    .wcr-total-label { font-size: 18px; }
    .wcr-period-dates { padding-left: 0; } /* Su mobile torna tutto a sinistra per spazio */
}

/* --- OTTIMIZZAZIONE MODALE MOBILE --- */
@media (max-width: 768px) {
    /* 1. Limitiamo l'altezza totale della card bianca/nera */
    .wcr-modal-content {
        width: 92% !important;
        max-height: 85vh !important; /* Non supera mai l'85% dell'altezza schermo */
        padding: 40px 20px 25px !important; /* Padding ridotto per guadagnare spazio */
        display: flex;
        flex-direction: column;
        border-radius: 30px !important;
    }

    /* 2. Rendiamo scorrevole SOLO il contenuto del messaggio */
    .wcr-modal-message {
        flex-grow: 1;
        overflow-y: auto !important; /* Attiva lo scroll interno */
        margin-bottom: 20px;
        padding-right: 10px;
        /* Momentum scroll per iOS */
        -webkit-overflow-scrolling: touch; 
    }

    /* 3. Assicuriamoci che l'icona e il titolo non rubino troppo spazio */
    .wcr-modal-icon {
        width: 60px !important;
        height: 60px !important;
        font-size: 24px !important;
        margin-bottom: 15px !important;
    }

    .wcr-modal-content h3 {
        font-size: 18px !important;
        margin-bottom: 15px !important;
    }

    /* 4. Rendiamo la X di chiusura più facile da cliccare */
    .wcr-modal-close-x {
        top: 10px !important;
        right: 15px !important;
        font-size: 36px !important;
        padding: 10px !important;
        background: rgba(0,0,0,0.2) !important; /* Un piccolo sfondo per vederla meglio */
        border-radius: 50%;
        line-height: 0.5 !important;
    }
    
    /* 5. Pulsanti in fondo fissi */
    .wcr-modal-buttons {
        margin-top: auto; /* Li spinge sempre in fondo alla card */
    }
}


/* Responsive */
@media (max-width: 768px) {
    .crc-404-content .error-actions {
        flex-direction: column;
        align-items: center;
    }
    .crc-404-content .error-actions a {
        width: 100%;
        max-width: 300px;
    }
}

/* Sigla Prodotto Custom */
.wcr-product-suffix {
    color: var(--yellow) !important;
    font-weight: 900 !important;
    margin-left: 6px;
    display: inline-block;
    text-transform: lowercase;
}

/* ==========================================================================
   ULTIMATE CALENDAR REFINEMENT - CLICK RENTAL CAR
   ========================================================================== */

/* 1. Rende i giorni del mese successivo NERI (non grigi) se sono selezionabili */
.flatpickr-day.nextMonthDay:not(.flatpickr-disabled) {
    color: #181818 !important;
    opacity: 1 !important;
}

/* 2. I giorni PASSATI restano grigi chiarissimi */
.flatpickr-day.flatpickr-disabled:not(.wcr-day-full) {
    color: rgba(0, 0, 0, 0.15) !important;
    opacity: 1 !important;
}

/* 3. IL GIORNO PIENO (ROSSO): Deve vincere su tutto */
.flatpickr-day.wcr-day-full {
    background: #ec1920 !important; /* Rosso Brand */
    border-color: #ec1920 !important;
    color: #ffffff !important;
    text-decoration: line-through !important;
    opacity: 1 !important;
}

/* 4. Fix Hover per i giorni "risvegliati" di Maggio */
.flatpickr-day.nextMonthDay:not(.flatpickr-disabled):hover {
    background: #f1f5f9 !important;
}

.wcr-hold-container {
    background: rgba(255, 215, 0, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    padding: 10px 20px;
    margin: 0 20px;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
    animation: fadeInHold 0.5s ease-out;
}

.hold-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hold-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hold-dot {
    width: 6px;
    height: 6px;
    background: #FFD700;
    border-radius: 50%;
    box-shadow: 0 0 8px #FFD700;
    animation: holdPulse 1.5s infinite;
}

.hold-label {
    font-size: 9px;
    font-weight: 900;
    color: #FFD700;
    letter-spacing: 1px;
}

.hold-msg {
    font-size: 11px;
    color: rgba(255,255,255,0.8);
    font-weight: 600;
}

.hold-timer {
    font-family: 'Courier New', Courier, monospace; /* Look digitale */
    font-size: 18px;
    font-weight: 900;
    color: #fff;
    background: #000;
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.1);
}

.hold-progress-bar {
    width: 100%;
    height: 2px;
    background: rgba(255,255,255,0.05);
    margin-top: 10px;
    border-radius: 2px;
}

#wcr-hold-progress-fill {
    height: 100%;
    background: #FFD700;
    width: 100%;
    transition: width 1s linear;
}

@keyframes holdPulse {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

@keyframes fadeInHold {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}


#cmplz-document, .editor-styles-wrapper .cmplz-unlinked-mode {
    margin: 50px auto 150px auto;
}

.wcr-terms-display-wrapper {
    white-space: pre-wrap;      /* Rispetta gli "a capo" anche se mancano i tag <p> */
    line-height: 1.6;           /* Migliora la leggibilità */
    text-align: left;
    display: block;
    margin: 20px 0 50px 0;
}

.wcr-terms-display-wrapper p {
    margin-bottom: 15px;
}

.wcr-terms-display-wrapper p br {
    display: none;
}


.privacy-policy  .generic-page-container {
    margin: 50px auto 250px auto;
}


/* ==========================================================================
   COMPLIANZ CUSTOM COOKIE BUTTON
   ========================================================================== */

/* Nascondi il testo di default se Complianz dovesse provare a reinserirlo */
.custom-cmplz-cookie-trigger {
    position: fixed !important;
    right: 20px !important;
    bottom: 180px !important; /* Posizionato sopra lo scroll-to-top e whatsapp */
    min-width: 56px !important;
    width: 56px !important;
    height: 56px !important;
    padding: 0 !important;
    background: var(--dark) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 50% !important;
    color: var(--yellow) !important;
    cursor: pointer !important;
    z-index: 9999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    overflow: hidden;
}

/* Gestione Icona */
.cookie-icon-wrap {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s ease;
}

.cookie-icon-wrap svg {
    width: 100%;
    height: 100%;
    stroke: var(--yellow);
}

/* Hover Effect */
.custom-cmplz-cookie-trigger:hover {
    background: var(--yellow) !important;
    color: var(--dark) !important;
    transform: scale(1.1) translateY(-3px) !important;
}

.custom-cmplz-cookie-trigger:hover svg {
    stroke: var(--dark);
    transform: rotate(20deg);
}

/* Nascondi quando il menu mobile è aperto (coerenza con gli altri tasti) */
body.menu-open .custom-cmplz-cookie-trigger {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

/* Responsive: aggiusta la posizione su mobile */
@media (max-width: 768px) {
    .custom-cmplz-cookie-trigger {
        bottom: 180px !important; /* Regola in base alla posizione degli altri tasti */
        width: 48px !important;
        height: 48px !important;
    }
}