/* ==========================================================================
   STYLE HYBRID: LIGHT MODE DEFAULT (EMBOSS) + DARK MODE OPTIONAL (NEON)
   ========================================================================== */

/* 1. VARIABILI DEFAULT = LIGHT MODE (Emboss Style #18) */
:root {
    /* Sfondo Solido & Rilievo */
    --bg-main: #eef0f3;
    --text-main: #1d1d1f;
    --text-muted: #6e6e73;

    /* Emboss Surfaces */
    --glass-bg: #eef0f3;
    --glass-border: rgba(255, 255, 255, 0.4);

    /* Neumorphism Shadows */
    --card-shadow: 8px 8px 16px #d1d9e6, -8px -8px 16px #ffffff;
    --accent-luxury: #000000;
    /* Nero lusso per contrasto */

    /* Colori Brand (Invariati) */
    --neon-blue: #007aff;
    --neon-purple: #af52de;
    --neon-green: #34c759;
    --brand-traslochi: #007aff;
    --brand-noleggio: #5856d6;
    --brand-deposito: #ff9500;
    --brand-smaltimento: #34c759;
    --brand-whatsapp: #25D366;

    --glass-strong: #ffffff;
    --gold-gradient: linear-gradient(to right, #998050, #ccac6b);
    --font-main: 'Outfit', sans-serif;
    --header-h: 80px;
    --noise-texture: none;
    /* Texture rimossa in Light Mode */
}

/* 2. DARK MODE OPTIONAL (Original Neon/Glass Style) */
body.dark-mode {
    --bg-main: #0a0a0a;
    --text-main: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.6);
    /* Glass Effect */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.8);
    --accent-luxury: #ffd700;
    --neon-blue: #00d2ff;
    --neon-purple: #9d50bb;
    --neon-green: #39ff14;
    --glass-strong: rgba(15, 12, 41, 0.7);
    --gold-gradient: linear-gradient(to right, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    --noise-texture: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.08'/%3E%3C/svg%3E");
}

/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.75;
    overflow-x: hidden;
    padding-top: var(--header-h);
    padding-bottom: 150px;
    transition: background-color 0.5s ease, color 0.5s ease;
}

/* Typography Unificata */
h1,
h2,
h3,
h4,
.brand-logo,
.hero-title,
.nav-label,
.bubble-item span {
    font-family: 'Outfit', sans-serif !important;
    letter-spacing: -0.02em;
}

h1,
h2,
h3 {
    font-weight: 800;
}

/* --- SFONDO ANIMATO (Visibile solo in Dark Mode) --- */
body::before,
body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    z-index: -1;
    filter: blur(100px);
    opacity: 0;
    transition: opacity 0.5s ease;
    /* Spento in Light Mode */
}

body.dark-mode::before {
    opacity: 0.4;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, #302b63, #0f0c29);
    top: -20%;
    left: -20%;
    animation: floatBlob 20s infinite alternate ease-in-out;
}

body.dark-mode::after {
    opacity: 0.4;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, #24243e, #bd34fe);
    bottom: -10%;
    right: -10%;
    animation: floatBlob 20s infinite alternate ease-in-out;
    animation-delay: -5s;
}

@keyframes floatBlob {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(40px, 40px) scale(1.1);
    }
}

/* --- HERO SECTION --- */
.hero {
    padding: 80px 20px 60px;
    /* GLOBAL RULE: Alzato per tutte le pagine (80px) */
    text-align: center;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Modifica Semantica SEO: .hero-title visivamente E' l'H1 di prima */
.hero .hero-title {
    font-family: 'Outfit', sans-serif !important;
    /* Forza Font */
    font-size: clamp(3rem, 7vw, 5.5rem) !important;
    line-height: 1 !important;
    margin-bottom: 30px !important;
    letter-spacing: -2px !important;
    font-weight: 800 !important;
    color: var(--text-main);
    /* Assicura colore corretto */
    display: block;
    /* Comportamento blocco */
}

/* HERO BADGE (Ora H1 Semantico MA visivamente identico al badge originale) */
h1.hero-badge,
.hero-badge {
    /* Reset totale H1 browser styles */
    margin: 0 0 40px 0 !important;
    /* Spazio Aumentato (era 25px) */
    line-height: normal !important;
    font-size: 0.9rem !important;

    /* Stile Visivo Originale Badge */
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: 'Outfit', sans-serif !important;

    /* Default Light: Neumorphic Flat */
    background: #eef0f3;
    color: #555;
    box-shadow: 5px 5px 10px #d1d9e6, -5px -5px 10px #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

body.dark-mode .hero-badge,
body.dark-mode h1.hero-badge {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fcf6ba;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

/* PRICE CARD */
.hero-price-container {
    perspective: 1000px;
    margin-bottom: 40px;
    cursor: pointer;
}

.price-badge {
    padding: 2rem 3rem;
    border-radius: 40px;
    /* Light Mode: Emboss */
    background: #eef0f3;
    box-shadow: 9px 9px 16px #d1d9e6, -9px -9px 16px #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.5);
    /* PERFORMANCE: GPU hints */
    will-change: transform, filter;
    contain: layout style;
}

body.dark-mode .price-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid #bf953f;
    backdrop-filter: blur(10px);
    box-shadow: none;
    animation: pulse-gold 2s infinite ease-in-out;
}

.price-amount {
    font-size: 5rem;
    line-height: 0.9;
    font-weight: 800;
    color: #1d1d1f;
}

body.dark-mode .price-amount {
    color: var(--accent-luxury);
}

.price-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
}

.price-sub {
    font-size: 0.9rem;
    font-weight: 500;
}

/* PERFORMANCE OPTIMIZED: Using filter instead of box-shadow for GPU acceleration */
@keyframes pulse-gold {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 0 transparent);
    }

    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 20px rgba(191, 149, 63, 0.3));
    }
}

/* BADGE IN-FLOW POSITIONING (Centered bottom) */
.badge {
    display: inline-block;
    margin: 10px auto 15px auto;
    /* Space around it */
    z-index: 10;
    font-size: 0.7rem;
    padding: 5px 10px;
    border-radius: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* --- SERVICES CARDS (LAYOUT CENTRATO + EMBOSS/GLASS) --- */
.services-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- SERVICES CARDS (LAYOUT ADATTIVO PER PAGINA) --- */
/* --- SERVICES CARDS (LAYOUT ADATTIVO PER PAGINA) --- */
.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch !important;
    /* Questo fa la magia: allunga tutte le card all'altezza della più alta nella riga */
    gap: 30px;
    margin-bottom: 60px !important;
}

.glass-card-3d {
    padding: 40px 30px;
    border-radius: 30px;
    transition: transform 0.2s, box-shadow 0.4s;
    position: relative;
    overflow: hidden;

    /* FLEX CHILD PROPS */
    flex: 1 1 300px;
    max-width: 450px;

    /* LAYOUT INTERNO */
    display: flex;
    flex-direction: column;
    text-align: center;

    height: auto;
    /* Occupa tutta l'altezza che il genitore (grid) gli offre */
    min-height: auto;
    /* <--- RIMOSSO IL VINCOLO FISSO DI 550PX */

    gap: 20px;

    /* Light Mode: Emboss Solido */
    background: #eef0f3;
    box-shadow: 10px 10px 20px #d1d9e6, -10px -10px 20px #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

body.dark-mode .glass-card-3d {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.glass-card-3d:hover {
    transform: translateY(-10px);
    /* Hover Light */
    box-shadow: 15px 15px 30px #d1d9e6, -15px -15px 30px #ffffff;
}

body.dark-mode .glass-card-3d:hover {
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

/* FIXED HEIGHT ICON CONTAINER (Crucial for Alignment) */
.card-icon,
.multi-icon {
    height: 80px;
    /* Fixed "shelf" for icons */
    display: flex !important;
    align-items: center !important;
    /* Vertically center icon in shelf */
    justify-content: center !important;
    margin-bottom: 20px !important;
    margin-top: 0 !important;
    font-size: 3.5rem;
}

.glass-card-3d.move .card-icon,
.glass-card-3d.move .multi-icon i {
    color: var(--neon-blue);
}

.glass-card-3d.rent .card-icon,
.glass-card-3d.rent .multi-icon i {
    color: var(--neon-purple);
}

.glass-card-3d.junk .card-icon,
.glass-card-3d.junk .multi-icon i {
    color: var(--neon-green);
}

.glass-card-3d.store .card-icon,
.glass-card-3d.store .multi-icon i {
    color: #ffd700;
}

/* Fix for nested layout in some cards */
.card-content-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    flex: 1;
    /* Grow to fill space, pushing button down */
}

/* UNIVERSAL TYPOGRAPHY SPACING FOR CARDS */
.glass-card-3d h3 {
    margin-top: 0 !important;
    margin-bottom: 15px !important;
    min-height: 1.2em;
    /* Ensure title block regularity */
}

.glass-card-3d p {
    margin-top: 0 !important;
    margin-bottom: 20px !important;
    flex-grow: 0;
    /* Text shouldn't stretch wildly, empty space should be below */
}

/* Ensure multi-icon has gap via CSS */
.multi-icon {
    gap: 12px;
}

/* Buttons inside cards */
.btn-magnetic {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    margin-top: auto;
    /* Push to bottom */
    background: #eef0f3;
    color: #0071e3;
    box-shadow: 5px 5px 10px #d1d9e6, -5px -5px 10px #ffffff;
    transition: all 0.3s ease;
}

.btn-magnetic:hover {
    box-shadow: inset 5px 5px 10px #d1d9e6, inset -5px -5px 10px #ffffff;
    transform: translateY(2px);
}

body.dark-mode .btn-magnetic {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

body.dark-mode .btn-magnetic:hover {
    background: white;
    color: black;
}

/* --- FORM CONTENITORE & INPUTS --- */
.engine-section {
    padding: 120px 20px;
}

/* Contenitore Form - LIGHT: Emboss Solido */
.glass-form,
.luxury-form-container {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 30px;
    padding: 40px;
    /* Default Light: Emboss Container */
    background-color: #eef0f3;
    box-shadow: 20px 20px 60px #d1d9e6, -20px -20px 60px #ffffff;
    border: none;
}

/* Contenitore Form - DARK: Noise & Glass */
body.dark-mode .glass-form,
body.dark-mode .luxury-form-container {
    background-color: rgba(25, 25, 35, 0.9);
    background-image: var(--noise-texture);
    backdrop-filter: blur(40px);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    border-bottom: 1px solid rgba(0, 0, 0, 0.5);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

/* TRUST GRID OVERRIDE (Restore Grid for Trust Sections) */
.glass-form .services-grid {
    display: grid;
    /* justify-content: start; optional if needed */
}

/* FORCE VERTICAL ICON LAYOUT (Icon Top) for all Trust Items */
.glass-form .services-grid>div {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 15px !important;
    padding: 20px;
}

/* Ensure the ICON container is centered and has margin */
.glass-form .services-grid>div>div:first-child {
    min-width: auto !important;
    /* Reset min-width from inline style */
    margin-bottom: 5px;
}

/* INPUT FIELDS */
.luxe-input,
input.luxe-input,
select.luxe-input,
textarea.luxe-input {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    font-size: 0.95rem;
    box-sizing: border-box;
    transition: 0.2s;
    /* LIGHT MODE: DEEP AQUA STYLE */
    background: #eef7ff !important;
    border: 1px solid #b4cce3 !important;
    color: #1d1d1f !important;
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.03) !important;
}

.luxe-input:focus {
    border-color: #007aff !important;
    background: #fff !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.2) !important;
}

/* ERROR STATE - Must override !important above */
.luxe-input.error {
    border-color: #ff3b30 !important;
    background: #fff2f2 !important;
    box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.2) !important;
    color: #1d1d1f !important;
}

/* INPUT FIELDS: DARK MODE OVERRIDE */
body.dark-mode .luxe-input {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    box-shadow: none !important;
}

body.dark-mode .luxe-input:focus {
    border-color: var(--neon-blue) !important;
    background: rgba(0, 0, 0, 0.2) !important;
}

/* Room Tabs (Form) */
.room-tab {
    background: #eef0f3 !important;
    border: 1px solid #d1d9e6 !important;
    box-shadow: 3px 3px 6px #d1d9e6, -3px -3px 6px #ffffff !important;
    color: #555 !important;
}

.room-tab.active {
    background: #0071e3 !important;
    color: white !important;
    box-shadow: inset 3px 3px 6px rgba(0, 0, 0, 0.2) !important;
}

body.dark-mode .room-tab {
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    box-shadow: none !important;
}

body.dark-mode .room-tab.active {
    background: white !important;
    color: black !important;
}

.faq-section {
    padding: 120px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: #eef0f3;
    box-shadow: 5px 5px 10px #d1d9e6, -5px -5px 10px #ffffff;
    border-radius: 20px;
    margin-bottom: 15px;
    overflow: hidden;
}

body.dark-mode .faq-item {
    background: var(--glass-card);
    border: 1px solid var(--border-subtle);
    box-shadow: none;
}

.faq-question {
    padding: 25px;
    cursor: pointer;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.4s ease;
    color: var(--text-muted);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-bottom: 25px;
}

/* ==========================================================================
   NUOVO FOOTER PREMIUM & FIRMA DEVELOPER
   ========================================================================== */

/* --- FOOTER BASE (Light Mode Default) --- */
footer {
    background: #eef0f3;
    /* Grigio chiarissimo Emboss */
    color: #1d1d1f;
    padding: 80px 20px 120px;
    /* Spazio extra sotto per mobile */
    margin-top: 80px;
    border-top: 1px solid #d1d9e6;
    font-family: 'Outfit', sans-serif;
    position: relative;
    z-index: 10;
}

/* Footer in Dark Mode (Override) */
body.dark-mode footer {
    background: #050414;
    /* Blu notte profondo */
    color: white;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Griglia Footer Responsive */
.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
}

/* Titoli Colonne */
.f-col h4 {
    font-weight: 800;
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #1d1d1f;
    letter-spacing: -0.5px;
}

body.dark-mode .f-col h4 {
    color: #fff;
}

/* Link Footer */
.f-col a {
    display: block;
    color: #6e6e73;
    /* Grigio medio */
    text-decoration: none;
    margin-bottom: 12px;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

body.dark-mode .f-col a {
    color: rgba(255, 255, 255, 0.6);
}

.f-col a:hover {
    color: #007aff;
    /* Blu Apple */
    transform: translateX(5px);
}

body.dark-mode .f-col a:hover {
    color: #fff;
}

/* Box Mappa/Indirizzo (Stile Card) */
.map-box {
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #d1d9e6;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s;
    display: block;
    /* Rende cliccabile tutto il box */
    text-decoration: none;
    color: inherit;
}

.map-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

body.dark-mode .map-box {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

/* Copyright Bar */
.footer-copy {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: 60px;
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.6;
}

body.dark-mode .footer-copy {
    border-color: rgba(255, 255, 255, 0.1);
}


/* --- FIRMA DEVELOPER (Capsula Tech Flottante) --- */
.dev-capsule-container {
    width: 100%;
    display: flex;
    justify-content: center;
    padding-bottom: 110px;
    /* Spazio per evitare la navbar in basso */
    padding-top: 10px;
    background: transparent;
    pointer-events: none;
    /* Permette di cliccare ai lati */
}

.dev-capsule {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 24px;

    /* Stile Capsula Light */
    background: rgba(238, 240, 243, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid #fff;
    border-radius: 50px;
    text-decoration: none;

    /* Ombra morbida Emboss */
    box-shadow:
        5px 5px 15px rgba(166, 171, 189, 0.5),
        -5px -5px 15px rgba(255, 255, 255, 0.8);

    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Stile Capsula Dark */
body.dark-mode .dev-capsule {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.dev-capsule:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        8px 8px 20px rgba(166, 171, 189, 0.7),
        -8px -8px 20px rgba(255, 255, 255, 0.9);
}

body.dark-mode .dev-capsule:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
    border-color: rgba(255, 255, 255, 0.3);
}

.dev-text {
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    color: #6e6e73;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

body.dark-mode .dev-text {
    color: #aaa;
}

.dev-name {
    font-weight: 800;
    /* Gradiente Apple Blue-Purple */
    background: linear-gradient(135deg, #007aff, #5856d6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   === NUOVO CODICE APPLE STYLE (HEADER, SIDEBAR, MENU) - DAL JS ===
   ========================================================================== */

/* --- 1. HEADER CAPSULA FLUTTUANTE --- */
#mainHeader.top-bar {
    z-index: 100001;
    position: fixed;
    top: 15px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 95%;
    max-width: 1200px;
    height: 60px;
    /* Centratura */
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(05px);
    -webkit-backdrop-filter: blur(05px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    box-sizing: border-box;
}

body.dark-mode #mainHeader.top-bar {
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(05px);
    -webkit-backdrop-filter: blur(05px);
}

#mainHeader.top-bar.header-hidden {
    transform: translateY(-150%);
}

/* Logo */
header a.brand-logo,
.brand-logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    text-decoration: none;
    color: var(--text-main);
    margin-left: 10px;
}

body.dark-mode header a.brand-logo {
    color: #ffffff;
}

/* Logo Circolare Footer (Rimuove bordi bianchi dell'immagine) */
.footer-logo-circle {
    height: 120px;
    /* Ingrandito del 50% da 80px */
    width: 120px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 20px;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.2));
    border: 3px solid var(--glass-border);
}

/* Stili Dinamici Footer */
.footer-branch-title {
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
}

.footer-maps-link {
    display: block;
    color: var(--neon-blue);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 5px;
    transition: 0.2s;
}

.footer-maps-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.footer-info-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    opacity: 0.9;
    margin-bottom: 15px;
}

body.dark-mode .footer-info-text {
    color: rgba(255, 255, 255, 0.7);
}

/* Azioni Header (Phone, Theme, Menu) */
.top-actions-container {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.top-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.action-icon {
    font-size: 1.2rem;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    background: transparent;
}

body.dark-mode .action-icon {
    color: #ffffff;
}

.action-icon:hover {
    transform: scale(1.1);
    background: rgba(0, 0, 0, 0.05);
}

/* WhatsApp Neon */
.action-icon.wa-neon {
    color: var(--brand-whatsapp);
}

body.dark-mode .action-icon.wa-neon {
    color: #25D366 !important;
}

.action-icon.wa-neon i {
    font-size: 1.6rem;
    /* Icona più grande */
}

.action-icon.wa-neon:hover {
    background: rgba(37, 211, 102, 0.1);
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.6);
    text-shadow: 0 0 5px rgba(37, 211, 102, 0.4);
}

/* --- TELEFONO BLUE NEON --- */
.action-icon.phone-neon {
    color: #007aff !important;
    /* Blu Apple */
}

.action-icon.phone-neon:hover {
    color: #007aff !important;
    background: rgba(0, 122, 255, 0.1) !important;
    /* Sfondo bluino */
    box-shadow: 0 0 15px rgba(0, 122, 255, 0.6) !important;
    text-shadow: 0 0 5px rgba(0, 122, 255, 0.4);
}

/* Hamburger Menu */
.menu-trigger {
    width: 35px;
    height: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    z-index: 100002;
    margin-left: 15px;
    margin-right: 5px;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    outline: none;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: #000;
    border-radius: 3px;
    transition: transform 0.3s;
}

body.dark-mode .hamburger-line {
    background-color: #ffffff !important;
}

.menu-trigger.active .hamburger-line:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.menu-trigger.active .hamburger-line:nth-child(2) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* --- 2. MEGA MENU FULL SCREEN --- */
.mega-menu-overlay {
    z-index: 100000;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding-top: 100px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
}

.mega-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

body.dark-mode .mega-menu-overlay {
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Menu Body */
body.menu-open {
    overflow: hidden;
}

body.menu-open #mainHeader.top-bar {
    background: rgba(255, 255, 255, 0.9);
}

body.dark-mode.menu-open #mainHeader.top-bar {
    background: rgba(20, 20, 20, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
}

.menu-content {
    width: 100%;
    max-width: 1200px;
    text-align: center;
    padding-bottom: 50px;
}

.menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8vh;
}

/* Voci Menu */
.menu-item {
    width: 100%;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.menu-item:hover {
    transform: translateX(10px);
}

.menu-item a,
.menu-item span {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: clamp(2rem, 4.5vw, 4rem);
    letter-spacing: -1px;
    line-height: 1.2;
    color: #000;
    text-decoration: none;
    cursor: pointer;
    display: block;
    transition: letter-spacing 0.3s ease, color 0.3s ease;
}

body.dark-mode .menu-item a,
body.dark-mode .menu-item span {
    color: #ffffff;
}

.menu-item:hover a,
.menu-item:hover span {
    color: var(--accent-luxury);
}

/* Sottomenu Viste */
.menu-view {
    display: none;
    width: 100%;
    animation: menuFadeIn 0.3s ease;
}

.menu-view.active {
    display: block;
}

.menu-sub-header {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: 700;
    color: #000;
}

body.dark-mode .menu-sub-header {
    color: #ffffff;
}

@keyframes menuFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
       BOTTOM BAR (SIDEBAR) - LOGICA ICONE
       ========================================================================== */
.bottom-nav {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 450px;
    height: 85px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 60px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 5px;
    z-index: 99999;
    transition: 0.4s;
}

body.dark-mode .bottom-nav {
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.bottom-nav.nav-hidden {
    transform: translateX(-50%) translateY(180%);
    opacity: 0;
    pointer-events: none;
}

.b-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 100%;
    cursor: pointer;
    text-decoration: none;
    font-size: 10px;
    font-weight: 600;
    color: #6e6e73;
    transition: 0.3s;
}

/* ICONE GRIGIE DI DEFAULT */
.b-nav-item i {
    font-size: 24px;
    margin-bottom: 4px;
    color: #000;
    transition: 0.3s;
}

body.dark-mode .b-nav-item i {
    color: #666;
}

/* COLORI ATTIVI (ACTIVE STATE / HOVER) */
.b-nav-item:hover {
    transform: translateY(-5px);
}

/* Home Active */
#nav-home.active-state i,
#nav-home:hover i {
    color: #000;
}

body.dark-mode #nav-home.active-state i,
body.dark-mode #nav-home:hover i {
    color: #fff;
}

/* Traslochi Active */
#nav-traslochi.active-state i,
#nav-traslochi:hover i {
    color: #d4af37;
    background: linear-gradient(135deg, #8B6508 0%, #DAA520 50%, #604500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Altri Active */
#nav-noleggio.active-state i,
#nav-noleggio:hover i {
    color: var(--brand-noleggio);
}

#nav-deposito.active-state i,
#nav-deposito:hover i {
    color: var(--brand-deposito);
}

/* Label Text Active Color */
.b-nav-item.active-state span,
.b-nav-item:hover span {
    color: #1d1d1f;
}

body.dark-mode .b-nav-item.active-state span,
body.dark-mode .b-nav-item:hover span {
    color: #fff;
}

/* Center Button */
.nav-center-wrapper {
    margin-top: -55px;
    position: relative;
    z-index: 100000;
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.float-btn-main {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #007aff, #005bb5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 10px 20px rgba(0, 122, 255, 0.4);
    border: 4px solid #eef0f3;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.float-btn-main:hover {
    transform: translateY(-5px);
}

body.dark-mode .float-btn-main {
    border-color: #1a1a1a;
}

/* Bubble Menus */
.bubble-menu {
    position: fixed;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 25px;
    padding: 15px 20px;
    box-shadow: 5px 5px 15px #d1d9e6, -5px -5px 15px #ffffff;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 99998;
    display: flex;
    gap: 20px;
    align-items: flex-end;
}

body.dark-mode .bubble-menu {
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.bubble-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1);
}

/* Bubble Items */
.bubble-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-size: 11px;
    font-weight: 600;
    width: 55px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.bubble-item:hover {
    transform: translateY(-5px);
}

body.dark-mode .bubble-item {
    color: #ccc;
}

.bubble-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background: #eef0f3;
    box-shadow: 3px 3px 6px #d1d9e6, -3px -3px 6px #ffffff;
    margin-bottom: 5px;
}

body.dark-mode .bubble-icon {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: none;
    color: white;
}

/* --- COLORI SPECIFICI BUBBLE ICONS (Lineare) --- */
a[href*="imballaggio"] .bubble-icon i {
    color: #f5a623;
}

a[href*="scala-aerea"] .bubble-icon i {
    color: #5ac8fa;
}

a[href*="pianoforti"] .bubble-icon i {
    color: #1c1c1e;
}

a[href*="smaltimento"] .bubble-icon i {
    color: #34c759;
}

a[href*="traslochi"] .bubble-icon i {
    background: linear-gradient(135deg, #8B6508 0%, #DAA520 50%, #604500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

a[href*="furgoni"] .bubble-icon i {
    color: #007aff;
}

a[href*="auto"] .bubble-icon i {
    color: #ff3b30;
}

a[href*="noleggio"] .bubble-icon i {
    color: #5856d6;
}

a[href*="ncc"] .bubble-icon i {
    color: #2c2c2e;
}

a[href*="pulmini"] .bubble-icon i {
    color: #ff9500;
}

a[href*="pullman"] .bubble-icon i {
    color: #ff2d55;
}

a[href*="deposito"] .bubble-icon i {
    color: #ff9500;
}

a[href*="trasporto"] .bubble-icon i {
    color: #af52de;
}

#bubble-contact .bubble-item:nth-child(1) .bubble-icon i {
    color: #5856d6;
}

#bubble-contact .bubble-item:nth-child(2) .bubble-icon i {
    color: #25D366;
}

#bubble-contact .bubble-item:nth-child(3) .bubble-icon i {
    color: #34c759;
}

/* --- AGGIORNAMENTO FOOTER (Sedi & Zone) --- */

/* 1. Sedi Master (Roma & Velletri) */
.hq-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #d1d9e6;
    margin-bottom: 15px;
    text-decoration: none;
    color: #1d1d1f;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

body.dark-mode .hq-card {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.hq-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 122, 255, 0.15);
    border-color: #007aff;
}

.hq-title {
    font-weight: 800;
    font-size: 1rem;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hq-address {
    font-size: 0.9rem;
    color: #6e6e73;
    line-height: 1.4;
}

body.dark-mode .hq-address {
    color: #aaa;
}

/* 2. Lista Zone (Sedi Virtuali) */
.zones-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Due colonne per risparmiare spazio */
    gap: 8px 15px;
    font-size: 0.85rem;
    color: #6e6e73;
    margin-top: 10px;
}

.zone-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
}

body.dark-mode .zone-item {
    border-bottom-color: rgba(255, 255, 255, 0.1);
    color: #aaa;
}

.zone-item i {
    font-size: 0.7rem;
    color: #007aff;
    opacity: 0.7;
}

.zone-detail {
    font-size: 0.75rem;
    opacity: 0.7;
    display: block;
}

/* 3. Contatti Evidenti */
.footer-phone-big {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1d1d1f;
    text-decoration: none;
    display: block;
    margin-bottom: 5px;
    letter-spacing: -0.5px;
}

body.dark-mode .footer-phone-big {
    color: white;
}

.footer-phone-sub {
    font-size: 1.1rem;
    font-weight: 600;
    color: #6e6e73;
    text-decoration: none;
    display: block;
    margin-bottom: 15px;
}

/* ==========================================================================
   AGGIUNTE CHIRURGICHE (Senior Front-End)
   ========================================================================== */

/* Effetto Oro Premium per Prezzi e Titoli */
.gold-shimmer {
    background: linear-gradient(to right, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    background-size: 200% auto;
    color: #b38728;
    /* Fallback */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shineGold 4s linear infinite;
    font-weight: 800;
}

@keyframes shineGold {
    to {
        background-position: 200% center;
    }
}

/* Utility per SEO: Nascondere testo semantico mantenendolo leggibile agli screen reader */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ==========================================================================
   SAFETY BLOCK - OVERRIDE FINALE (Per garantire stabilità H1/Badge)
   ========================================================================== */
/* Questo blocco vince su tutto il resto per specificità e posizione */

/* 1. BADGE (Deve essere piccolo, pillola) */
h1.hero-badge,
.hero .hero-badge {
    font-size: 0.9rem !important;
    /* Forza dimensione piccola */
    margin-bottom: 40px !important;
    /* Forza spaziatura */
    line-height: normal !important;
    display: inline-block !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    padding: 0.8rem 2rem !important;
    border-radius: 50px !important;
    background: transparent !important;
    /* Richiesta Utente: No Colore Sfondo */
    border: none !important;
    /* No Border */
}

/* 2. TITOLO (Deve essere grande) */
.hero .hero-title {
    font-family: 'Outfit', sans-serif !important;
    font-size: clamp(3rem, 7vw, 5.5rem) !important;
    line-height: 1 !important;
    margin-bottom: 30px !important;
    font-weight: 800 !important;
    display: block !important;
}

/* 3. MOBILE SAFETY (Assicura che su schermi piccoli non si rompa) */
@media (max-width: 768px) {

    h1.hero-badge,
    .hero .hero-badge {
        font-size: 0.8rem !important;
        /* Leggermente più piccolo su mobile */
        padding: 0.6rem 1.5rem !important;
        margin-bottom: 30px !important;
    }

    .hero .hero-title {
        font-size: clamp(2.5rem, 10vw, 3.5rem) !important;
        /* Adatta titolo */
    }
}

/* 4. BADGE OFFERTA FIX (Updated) */
.badge {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 800 !important;
    font-size: 0.85rem !important;
    /* Più grande */
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 6px 16px !important;
    /* Più spazioso */
    border-radius: 8px !important;
    background: linear-gradient(135deg, #ff3b30, #ff9500) !important;
    /* Gradiente Sgargiante */
    color: white !important;
    display: inline-block !important;
    margin-bottom: 20px !important;
    box-shadow: 0 4px 10px rgba(255, 59, 48, 0.4) !important;
}

/* 5. GOLD BORDER ANIMATION (Offerta Card) */
@keyframes borderRotate {
    100% {
        background-position: 200% center;
    }
}

.gold-border-anim {
    position: relative !important;
    border: 3px solid transparent !important;
    background: #eef0f3 !important;
    /* Base card */
    background-clip: padding-box !important;
    border-radius: 30px !important;
}

.gold-border-anim::before {
    content: '' !important;
    position: absolute !important;
    top: -4px;
    bottom: -4px;
    left: -4px;
    right: -4px;
    background: linear-gradient(to right, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c, #bf953f);
    background-size: 200% auto;
    z-index: -1 !important;
    border-radius: 34px !important;
    animation: borderRotate 3s linear infinite !important;
}

/* 6. HERO PRICE CARD UPDATES (Solo pulsazione testo) */
@keyframes pulse-text-only {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
        /* Ingrandisce solo il testo */
    }
}

/* Questa è la classe che fa pulsare il contenuto */
.pulse-text-content {
    animation: pulse-text-only 4s infinite ease-in-out !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    transform-origin: center;
    /* Assicura che pulsi dal centro */
}

/* Reset della vecchia classe se ancora presente in giro */
.pulse-animation {
    animation: none !important;
    box-shadow: none !important;
}

.price-label-new {
    font-size: 1.1rem !important;
    color: #000 !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    margin-bottom: 5px !important;
}

.price-sub-new {
    font-size: 1.2rem !important;
    font-weight: 800 !important;
    color: #333 !important;
}

/* WHITE GOLD UPDATE */
.gold-border-anim::before {
    background: linear-gradient(to right, #bf953f, #ffffff, #fcf6ba, #ffffff, #b38728, #fbf5b7, #aa771c, #bf953f) !important;
}


/* 7. FONT SIZE BOOST (Richiesta Utente +5pt circa) */
.hero-desc {
    font-size: 1.35rem !important;
    /* Molto più grande e leggibile */
    max-width: 900px !important;
    /* Allargo un po' per contenere il testo ingrandito */
    margin-left: auto !important;
    margin-right: auto !important;
    line-height: 1.6 !important;
    color: var(--text-main) !important;
}

.glass-card-3d p {
    font-size: 1.15rem !important;
    /* + leggibile nelle card */
    line-height: 1.6 !important;
}

/* 8. VISIBILITA' SATELLITI (Fix "Strani Link" sotto le card) */
@media (min-width: 769px) {

    .show-on-mobile,
    .mobile-satellite-nav {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .show-on-mobile {
        display: flex !important;
    }
}

/* ==========================================================================
   LISTE PUNTATE 'GOLD STANDARD' (FINAL FIX)
   ========================================================================== */
ul.clean-list {
    display: inline-block !important;
    /* Fondamentale per il centering */
    text-align: left !important;
    /* Allinea il testo internamente a sx */
    margin: 20px auto !important;
    /* Centra il blocco nella card */
    padding: 0 !important;
    /* Reset padding */
    list-style: none !important;
    /* No bullets */
    list-style-type: none !important;
    /* No bullets (legacy) */
    width: auto !important;
    /* Shrink to fit */
    max-width: 90%;
    /* Prevent overflow */
}

ul.clean-list li {
    list-style: none !important;
    /* Sicurezza sui li */
    margin-bottom: 10px !important;
    font-size: 1.05rem !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    padding: 0 !important;
    background: none !important;
}

/* Rimuove eventuali bullet fantasma generati da altri stili */
ul.clean-list li::before,
ul.clean-list li::after {
    content: none !important;
    display: none !important;
}

/* Gestione Icona */
ul.clean-list li i {
    min-width: 24px !important;
    text-align: center !important;
    margin-top: 5px !important;
    /* Ottimizzato per Outfit font */
}

/* ==========================================================================
   TITOLI DI SEZIONE CENTRATI (Richiesta Utente)
   ========================================================================== */
.section-title {
    text-align: center !important;
    margin-bottom: 50px !important;
    display: block !important;
    width: 100%;
}

/* ==========================================================================
   ANIMAZIONE SCROLL PREVENTIVO (Richiesta Utente)
   ========================================================================== */
/* OPTIMIZED: Using filter for GPU acceleration */
@keyframes highlight-pulse {
    0% {
        filter: drop-shadow(0 0 0 rgba(0, 122, 255, 0));
        transform: scale(1);
    }

    50% {
        filter: drop-shadow(0 0 15px rgba(0, 122, 255, 0.5));
        transform: scale(1.02);
        border-color: var(--neon-blue) !important;
    }

    100% {
        filter: drop-shadow(0 0 0 rgba(0, 122, 255, 0));
        transform: scale(1);
    }
}

.highlight-form {
    animation: highlight-pulse 1.5s ease-in-out;
    will-change: transform, filter;
    /* Hint browser */
}

/* ==========================================================================
   CENTER BUTTON ANIMATION & LABEL
   ========================================================================== */
.pulse-blue {
    animation: premium-pulse 2s infinite ease-in-out;
    will-change: transform, filter;
}

/* OPTIMIZED: GPU Accelerated Pulse */
@keyframes premium-pulse {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 0 rgba(0, 122, 255, 0.4));
    }

    50% {
        transform: scale(1.08);
        /* Delicate enlargement */
        filter: drop-shadow(0 0 10px rgba(0, 122, 255, 0.6));
        /* Blue glow via filter */
    }

    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 0 rgba(0, 122, 255, 0));
    }
}

.nav-center-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    /* Ensure label sits below button */
}

/* Enforce Perfect Circle */
.float-btn-main {
    width: 55px;
    height: 55px;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
}

.nav-label-center {
    font-size: 0.55rem;
    /* Reduced for "PREVENTIVO" */
    font-weight: 800;
    margin-top: 8px;
    color: #4a4a4a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    /* Slightly tighter */
    background: transparent;
    padding: 0;
    border-radius: 0;
    pointer-events: none;
    box-shadow: none;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    z-index: 100;
}

body.dark-mode .nav-label-center {
    color: #fff;
    background: rgba(0, 0, 0, 0.6);
}

/* ==========================================================================
   PERFORMANCE OPTIMIZATIONS (Core Web Vitals)
   ========================================================================== */

/* 1. MOBILE: Reduce backdrop-filter blur for better FPS on low-end devices */
@media (max-width: 768px) {

    .bottom-nav,
    #mainHeader.top-bar {
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

    .glass-card-3d {
        contain: layout style paint;
    }
}

/* 2. REDUCED MOTION: Disable heavy effects for accessibility & battery saving */
@media (prefers-reduced-motion: reduce) {

    .bottom-nav,
    #mainHeader.top-bar,
    .glass-card-3d,
    .mega-menu-overlay {
        backdrop-filter: blur(5px) !important;
        -webkit-backdrop-filter: blur(5px) !important;
    }

    .pulse-text-content,
    .pulse-animation,
    .gold-shimmer {
        animation: none !important;
    }

    * {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* 3. CONTAIN: Isolate rendering for performance-critical elements */
.glass-card-3d {
    contain: layout style;
}

.services-grid {
    contain: layout;
}

/* 4. GPU ACCELERATION HINTS */
.hero-price-container,
.btn-magnetic,
.b-nav-item {
    will-change: transform;
}

/* --- DARK MODE FIXES FOR OFFERS --- */
body.dark-mode .price-label-new {
    color: #ffffff !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

body.dark-mode .price-sub-new {
    color: #cccccc !important;
}

body.dark-mode .price-tag {
    color: #ffffff !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);

}

/* FIX DARK MODE FORM VALIDATION ERROR */
body.dark-mode .luxe-input.error,
body.dark-mode select.luxe-input.error {
    border-color: #ff3b30 !important;
    background: rgba(255, 59, 48, 0.1) !important;
    box-shadow: 0 0 10px rgba(255, 59, 48, 0.3) !important;
    color: #ff3b30 !important;
}