/* BOOSTERMAN - Stili condivisi */
:root {
    --bolt: #F5A623;
    --bolt-soft: #FFC107;
    --ink: #0a0a0a;
    --carbon: #111111;
    --emergency: #FF3B30;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: var(--ink);
    color: #f5f5f5;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.font-display { font-family: 'Space Grotesk', sans-serif; letter-spacing: -0.02em; }

.grid-bg {
    background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 56px 56px;
}

.radial-spot {
    background: radial-gradient(60% 50% at 80% 20%, rgba(245,166,35,.18), transparent 60%),
                radial-gradient(50% 60% at 10% 90%, rgba(245,166,35,.08), transparent 60%);
}

.live-dot {
    width: 10px;
    height: 10px;
    background: #22c55e;
    border-radius: 50%;
    display: inline-block;
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(34,197,94,.6); }
    70% { box-shadow: 0 0 0 10px rgba(34,197,94,0); }
    100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

.sticky-header { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

/* TICKER SCORREVOLE */
.ticker-wrapper { background-color: var(--bolt); color: var(--ink); }
.ticker-track { display: inline-flex; animation: marquee 30s linear infinite; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* PULSANTE EMERGENZA ROSSO */
.btn-emergency { background-color: var(--emergency); color: white; transition: all 0.2s ease; }
.btn-emergency:hover { background-color: #e03520; transform: scale(1.02); }

/* BOTTONI CHAT */
.problem-btn, .info-btn, .action-btn { transition: all 0.2s ease; }
.problem-btn:hover, .info-btn:hover, .action-btn:hover { border-color: var(--bolt) !important; }

/* MESSAGGI CHAT */
.msg-bot {
    background: #1e1e1e;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 1rem;
    border-bottom-left-radius: 0.25rem;
    padding: 0.6rem 0.85rem;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: rgba(255,255,255,0.88);
}
.msg-user {
    background: var(--bolt);
    color: #0a0a0a;
    font-weight: 600;
    border-radius: 1rem;
    border-bottom-right-radius: 0.25rem;
    padding: 0.6rem 0.85rem;
    font-size: 0.8125rem;
}
.msg-typing { display: flex; gap: 4px; align-items: center; padding: 0.6rem 0.85rem; }
.msg-typing span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.4); animation: blink 1.2s infinite; }
.msg-typing span:nth-child(2) { animation-delay: 0.2s; }
.msg-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%,80%,100%{opacity:.3} 40%{opacity:1} }

/* DRAWER MOBILE */
#mobileDrawer { transition: transform 0.3s ease-in-out; }
#mobileDrawer.open { transform: translateX(0); }

/* RESPONSIVE */
@media (max-width: 767px) {
    .sticky-header { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
    button, a { touch-action: manipulation; }
    .ticker-track { animation-duration: 40s; }
}

/* CHAT FULLSCREEN RESPONSIVE - desktop, laptop, tablet, Android, iOS */
body.chat-open {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
}

#helpAssistant.chat-active {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    z-index: 99999 !important;
    bottom: auto !important;
    left: 0 !important;
    right: 0 !important;
    top: 0 !important;
    padding: 0 !important;
}

#helpAssistant.chat-active #helpClosed {
    display: none !important;
}

#helpAssistant.chat-active #helpOpen,
#helpOpen.chat-fullscreen {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    max-width: none !important;
    max-height: none !important;
    border-radius: 0 !important;
    border: 0 !important;
    display: flex !important;
    background: var(--ink) !important;
    z-index: 99999 !important;
}

#helpAssistant.chat-active #helpMessages {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
}

#helpAssistant.chat-active #helpOpen > div:first-child {
    padding-top: max(1rem, env(safe-area-inset-top)) !important;
}

#helpAssistant.chat-active #helpOpen > div:last-child {
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom)) !important;
}

@supports (height: 100svh) {
    #helpAssistant.chat-active,
    #helpAssistant.chat-active #helpOpen,
    #helpOpen.chat-fullscreen {
        height: 100svh !important;
    }
}

@media (min-width: 768px) {
    #helpAssistant.chat-active #helpOpen,
    #helpOpen.chat-fullscreen {
        width: min(100vw, 980px) !important;
        height: min(100dvh, 860px) !important;
        inset: 50% auto auto 50% !important;
        transform: translate(-50%, -50%) !important;
        border-radius: 24px !important;
        border: 1px solid rgba(255,255,255,0.12) !important;
        box-shadow: 0 25px 80px rgba(0,0,0,.65) !important;
    }

    #helpAssistant.chat-active::before {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.78);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        z-index: -1;
    }
}

@media (max-width: 767px) {
    #helpAssistant.chat-active #helpOpen,
    #helpOpen.chat-fullscreen {
        border-radius: 0 !important;
    }

    #helpAssistant.chat-active .problem-btn,
    #helpAssistant.chat-active .info-btn,
    #helpAssistant.chat-active .action-btn {
        font-size: 0.78rem;
        padding: 0.62rem;
    }
}


/* FIX leggibilita input chat */
#helpInput,
#helpAssistant input,
#helpAssistant textarea {
    color: #ffffff !important;
    background: #050505 !important;
    caret-color: var(--bolt) !important;
}

#helpInput::placeholder,
#helpAssistant input::placeholder,
#helpAssistant textarea::placeholder {
    color: rgba(255,255,255,.55) !important;
}

/* Pulsante MENU mobile chiaro */
.mobile-menu-btn {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    height: 42px;
    padding: 0 .85rem;
    border-radius: 999px;
    background: var(--bolt);
    color: var(--ink);
    border: 1px solid rgba(245,166,35,.85);
    font-weight: 900;
    font-size: .78rem;
    letter-spacing: .06em;
    box-shadow: 0 10px 24px rgba(245,166,35,.22);
}

.mobile-menu-btn svg {
    color: var(--ink);
}

.mobile-menu-text {
    line-height: 1;
}

/* Drawer mobile piu evidente e meno trasparente */
#mobileDrawer {
    background: #0f0f0f !important;
    border-left: 1px solid rgba(245,166,35,.28);
    box-shadow: -18px 0 55px rgba(0,0,0,.75) !important;
}

#drawerOverlay {
    background: rgba(0,0,0,.72) !important;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

#mobileDrawer nav a {
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.08) !important;
    border-radius: 14px;
    padding: .85rem 1rem !important;
}

#mobileDrawer nav a:hover {
    background: rgba(245,166,35,.12);
}


/* =========================================================
   REV3 FIX: CHAT LEGGIBILE + MENU MOBILE PROFESSIONALE
   ========================================================= */

/* CTA rosse: icona telefono sempre bianca, non rossa/nera */
.btn-emergency,
.btn-emergency * {
    color: #ffffff !important;
}

.phone-icon-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    font-size: 1.05em;
    line-height: 1;
    margin-right: .1rem;
}

/* CHAT: contrasto input e messaggi */
#helpAssistant {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

#helpOpen {
    background: #070707 !important;
}

#helpMessages {
    background:
        radial-gradient(circle at 20% 0%, rgba(245,166,35,.08), transparent 28%),
        #080808 !important;
}

#helpInput,
#helpAssistant input[type="text"],
#helpAssistant textarea {
    color: #ffffff !important;
    background: #000000 !important;
    border: 1px solid rgba(245,166,35,.45) !important;
    -webkit-text-fill-color: #ffffff !important;
    caret-color: #F5A623 !important;
    opacity: 1 !important;
}

#helpInput:focus,
#helpAssistant input[type="text"]:focus,
#helpAssistant textarea:focus {
    color: #ffffff !important;
    background: #050505 !important;
    border-color: #F5A623 !important;
    box-shadow: 0 0 0 3px rgba(245,166,35,.16) !important;
}

#helpInput::placeholder,
#helpAssistant input::placeholder,
#helpAssistant textarea::placeholder {
    color: rgba(255,255,255,.68) !important;
    -webkit-text-fill-color: rgba(255,255,255,.68) !important;
}

.msg-bot {
    background: #171717 !important;
    color: rgba(255,255,255,.95) !important;
    border: 1px solid rgba(255,255,255,.12) !important;
}

.msg-bot a {
    color: #F5A623 !important;
    font-weight: 800;
    text-decoration: underline;
}

.msg-user {
    background: #F5A623 !important;
    color: #080808 !important;
    border: 1px solid rgba(255,255,255,.16) !important;
}

/* Pulsanti della chat più leggibili */
.problem-btn,
.info-btn,
.action-btn {
    background: #111111 !important;
    color: #ffffff !important;
    border: 1px solid rgba(255,255,255,.18) !important;
}

.problem-btn:hover,
.info-btn:hover,
.action-btn:hover {
    background: rgba(245,166,35,.13) !important;
    border-color: #F5A623 !important;
}

/* MENU mobile: bottone chiaro e cliccabile */
.mobile-menu-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    min-width: 96px;
    height: 44px;
    padding: 0 1rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #F5A623, #FFC107) !important;
    color: #0a0a0a !important;
    border: 1px solid rgba(255,255,255,.22) !important;
    box-shadow: 0 10px 26px rgba(245,166,35,.28), inset 0 1px 0 rgba(255,255,255,.35);
    font-weight: 950;
    letter-spacing: .06em;
    font-size: .78rem;
    text-transform: uppercase;
}

.mobile-menu-label {
    color: #0a0a0a !important;
    line-height: 1;
}

.mobile-menu-icon {
    width: 18px;
    display: grid;
    gap: 4px;
}

.mobile-menu-icon span {
    display: block;
    height: 2px;
    width: 18px;
    border-radius: 999px;
    background: #0a0a0a;
}

/* Drawer mobile: niente trasparenza, aspetto app */
#drawerOverlay {
    background: rgba(0,0,0,.78) !important;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

#mobileDrawer {
    background: #0b0b0b !important;
    color: #ffffff !important;
    border-left: 1px solid rgba(245,166,35,.34) !important;
    box-shadow: -24px 0 80px rgba(0,0,0,.88) !important;
    width: min(88vw, 340px) !important;
    padding-top: max(.35rem, env(safe-area-inset-top));
}

#mobileDrawer::before {
    content: "BOOSTERMAN";
    display: block;
    margin: 1.1rem 1.25rem .5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,.10);
    color: #F5A623;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: .06em;
}

.drawer-close-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    padding: .55rem .85rem;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,.16);
    font-weight: 800;
    font-size: .8rem;
}

#mobileDrawer nav {
    gap: .65rem !important;
    padding-left: 1.1rem !important;
    padding-right: 1.1rem !important;
}

#mobileDrawer nav a {
    display: flex !important;
    align-items: center;
    gap: .7rem;
    min-height: 52px;
    padding: .85rem 1rem !important;
    border-radius: 16px;
    color: rgba(255,255,255,.92) !important;
    background: #151515 !important;
    border: 1px solid rgba(255,255,255,.10) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
    font-weight: 750;
}

#mobileDrawer nav a:hover,
#mobileDrawer nav a:focus {
    background: rgba(245,166,35,.16) !important;
    border-color: rgba(245,166,35,.55) !important;
    color: #ffffff !important;
}

/* Chat fullscreen stabile */
body.chat-open {
    overflow: hidden !important;
}

#helpAssistant.chat-active {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    z-index: 99999 !important;
    bottom: auto !important;
    left: 0 !important;
    right: 0 !important;
    top: 0 !important;
}

#helpAssistant.chat-active #helpClosed {
    display: none !important;
}

#helpAssistant.chat-active #helpOpen,
#helpOpen.chat-fullscreen {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    max-width: none !important;
    max-height: none !important;
    display: flex !important;
    border-radius: 0 !important;
    border: 0 !important;
    z-index: 99999 !important;
    background: #070707 !important;
}

#helpAssistant.chat-active #helpMessages {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
}

#helpAssistant.chat-active #helpOpen > div:first-child {
    padding-top: max(1rem, env(safe-area-inset-top)) !important;
}

#helpAssistant.chat-active #helpOpen > div:last-child {
    padding-bottom: max(.75rem, env(safe-area-inset-bottom)) !important;
}

@supports (height: 100svh) {
    #helpAssistant.chat-active,
    #helpAssistant.chat-active #helpOpen,
    #helpOpen.chat-fullscreen {
        height: 100svh !important;
    }
}

@media (min-width: 900px) {
    #helpAssistant.chat-active::before {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.78);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        z-index: -1;
    }

    #helpAssistant.chat-active #helpOpen,
    #helpOpen.chat-fullscreen {
        width: min(94vw, 920px) !important;
        height: min(92dvh, 820px) !important;
        inset: 50% auto auto 50% !important;
        transform: translate(-50%, -50%) !important;
        border-radius: 24px !important;
        border: 1px solid rgba(255,255,255,.14) !important;
        box-shadow: 0 28px 90px rgba(0,0,0,.72) !important;
    }
}

@media (max-width: 420px) {
    .mobile-menu-btn {
        min-width: 86px;
        height: 40px;
        padding: 0 .75rem;
        font-size: .72rem;
    }

    #mobileDrawer {
        width: min(92vw, 330px) !important;
    }

    #helpAssistant.chat-active .problem-btn,
    #helpAssistant.chat-active .info-btn,
    #helpAssistant.chat-active .action-btn {
        font-size: .74rem !important;
        padding: .58rem !important;
    }
}


/* =========================================================
   REV5 VISUAL FIX - Chat, CTA, Cookie, Floating Buttons
   ========================================================= */

/* CTA telefono: niente emoji colorata, SVG bianco */
.btn-emergency {
    color: #ffffff !important;
    background: #FF3B30 !important;
    border: 1px solid rgba(255,255,255,.14) !important;
}

.btn-emergency,
.btn-emergency span {
    color: #ffffff !important;
}

.cta-phone-svg {
    display: inline-block;
    vertical-align: -4px;
    margin-right: .45rem;
    fill: #ffffff !important;
    color: #ffffff !important;
    flex: 0 0 auto;
}

.btn-emergency svg,
.btn-emergency svg path {
    fill: #ffffff !important;
    stroke: none !important;
}

/* Floating buttons più ordinati e sopra il banner cookie */
body:not(.chat-open) .fixed.z-40.flex.flex-col.gap-3 {
    bottom: calc(7.8rem + env(safe-area-inset-bottom)) !important;
    right: calc(1.5rem + env(safe-area-inset-right)) !important;
}

/* Cookie banner compatto, non più barra enorme che copre tutto */
#cookieBanner {
    left: 50% !important;
    right: auto !important;
    bottom: calc(14px + env(safe-area-inset-bottom)) !important;
    transform: translateX(-50%) !important;
    width: min(94vw, 980px) !important;
    background: rgba(12,12,12,.96) !important;
    border: 1px solid rgba(255,255,255,.18) !important;
    border-radius: 22px !important;
    box-shadow: 0 18px 65px rgba(0,0,0,.68) !important;
    padding: .85rem 1rem !important;
    z-index: 80 !important;
}

#cookieBanner p {
    color: rgba(255,255,255,.88) !important;
    line-height: 1.35 !important;
}

#cookieBanner button {
    white-space: nowrap;
}

#cookieBanner button:first-child {
    background: #F5A623 !important;
    color: #0a0a0a !important;
    font-weight: 900 !important;
}

#cookieBanner button:last-child {
    background: #151515 !important;
    color: #ffffff !important;
    border-color: rgba(255,255,255,.35) !important;
}

/* HELP chiuso sopra il banner, non sovrapposto */
#helpAssistant:not(.chat-active) {
    bottom: calc(7.8rem + env(safe-area-inset-bottom)) !important;
    left: calc(1.2rem + env(safe-area-inset-left)) !important;
}

#helpClosed {
    background: rgba(12,12,12,.96) !important;
    border: 1px solid rgba(255,255,255,.35) !important;
    box-shadow: 0 14px 45px rgba(0,0,0,.58) !important;
}

/* Chat: header e area messaggi più puliti */
#helpAssistant.chat-active #helpOpen,
#helpOpen.chat-fullscreen {
    background: #060606 !important;
}

#helpMessages {
    background: #060606 !important;
    scrollbar-color: rgba(245,166,35,.65) rgba(255,255,255,.08);
}

/* Chat input: forza il testo visibile anche su Edge/Chrome */
.chat-input-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: .65rem !important;
    margin-bottom: .75rem !important;
    align-items: stretch !important;
}

#helpInput {
    width: 100% !important;
    min-width: 0 !important;
    height: 52px !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background-color: #050505 !important;
    background-image: none !important;
    border: 2px solid rgba(245,166,35,.65) !important;
    border-radius: 16px !important;
    padding: 0 1rem !important;
    font-size: 16px !important;
    font-weight: 650 !important;
    caret-color: #F5A623 !important;
    opacity: 1 !important;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.04) !important;
}

#helpInput:focus {
    outline: none !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background-color: #000000 !important;
    border-color: #F5A623 !important;
    box-shadow: 0 0 0 4px rgba(245,166,35,.18) !important;
}

#helpInput::placeholder {
    color: rgba(255,255,255,.62) !important;
    -webkit-text-fill-color: rgba(255,255,255,.62) !important;
    opacity: 1 !important;
}

.chat-send-btn {
    height: 52px !important;
    min-width: 86px !important;
    padding: 0 1rem !important;
    border-radius: 16px !important;
    background: #F5A623 !important;
    color: #0a0a0a !important;
    border: 0 !important;
    font-weight: 950 !important;
    font-size: .95rem !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

#sendLocationBtn {
    min-height: 54px !important;
    border-radius: 18px !important;
}

/* Bottoni chat più chiari */
.problem-btn, .info-btn, .action-btn {
    min-height: 48px !important;
    color: #ffffff !important;
    background: #0b0b0b !important;
    border: 1px solid rgba(255,255,255,.42) !important;
    font-weight: 800 !important;
}

.problem-btn:hover, .info-btn:hover, .action-btn:hover {
    background: rgba(245,166,35,.14) !important;
    border-color: #F5A623 !important;
}

/* Menu mobile più professionale */
.mobile-menu-btn {
    background: linear-gradient(135deg, #F5A623, #FFC107) !important;
    color: #0a0a0a !important;
    border: none !important;
    box-shadow: 0 10px 26px rgba(245,166,35,.30) !important;
}

#mobileDrawer {
    background: #090909 !important;
    opacity: 1 !important;
}

#mobileDrawer nav a {
    background: #151515 !important;
    color: #ffffff !important;
    border: 1px solid rgba(255,255,255,.16) !important;
}

/* Desktop: chat grande ma non tagliata */
@media (min-width: 900px) {
    #helpAssistant.chat-active #helpOpen,
    #helpOpen.chat-fullscreen {
        width: min(92vw, 1100px) !important;
        height: min(90dvh, 840px) !important;
    }
}

/* Mobile: cookie non copre troppo; chat input in una riga */
@media (max-width: 640px) {
    #cookieBanner {
        width: calc(100vw - 20px) !important;
        border-radius: 18px !important;
        padding: .8rem !important;
    }

    #cookieBanner > div {
        gap: .65rem !important;
    }

    #cookieBanner p {
        font-size: .82rem !important;
        text-align: center;
    }

    #cookieBanner .flex.gap-2 {
        width: 100%;
        justify-content: center;
    }

    #cookieBanner button {
        flex: 1 1 0;
        padding: .7rem .6rem !important;
    }

    #helpAssistant:not(.chat-active) {
        bottom: calc(8.9rem + env(safe-area-inset-bottom)) !important;
        left: .8rem !important;
    }

    body:not(.chat-open) .fixed.z-40.flex.flex-col.gap-3 {
        bottom: calc(8.9rem + env(safe-area-inset-bottom)) !important;
        right: .8rem !important;
    }

    .chat-input-row {
        grid-template-columns: 1fr 74px !important;
        gap: .45rem !important;
    }

    #helpInput {
        height: 48px !important;
        font-size: 16px !important;
        border-radius: 14px !important;
    }

    .chat-send-btn {
        min-width: 74px !important;
        height: 48px !important;
        border-radius: 14px !important;
        font-size: .85rem !important;
    }
}


/* =========================================================
   REV6 FIX: MENU desktop nascosto + dropdown servizi corretto
   ========================================================= */

/* Il pulsante MENU deve apparire solo su tablet/mobile */
@media (min-width: 1024px) {
    .mobile-menu-btn {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
}

/* Header: evita che il menu desktop si schiacci troppo */
@media (min-width: 1024px) {
    header nav.hidden.lg\:flex {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: clamp(1rem, 1.8vw, 2rem) !important;
    }

    header nav.hidden.lg\:flex a {
        white-space: nowrap !important;
    }
}

/* Box richiedi assistenza: la tendina deve stare sopra ai pulsanti */
#ddBtn {
    position: relative !important;
    z-index: 90 !important;
}

#ddMenu {
    position: absolute !important;
    z-index: 99999 !important;
    background: #080808 !important;
    border: 1px solid rgba(245,166,35,.55) !important;
    box-shadow: 0 22px 70px rgba(0,0,0,.88) !important;
    border-radius: 18px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    max-height: 320px !important;
    opacity: 1 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* La card del form e il contenitore del dropdown devono creare uno stacking corretto */
#ddMenu,
#ddMenu * {
    opacity: 1 !important;
}

#ddMenu .svcOpt,
#ddMenu button {
    background: #090909 !important;
    color: #ffffff !important;
    border-bottom: 1px solid rgba(255,255,255,.12) !important;
    min-height: 72px !important;
}

#ddMenu .svcOpt:hover,
#ddMenu button:hover {
    background: rgba(245,166,35,.14) !important;
}

#ddMenu .svcOpt span,
#ddMenu button span {
    color: inherit;
}

#ddMenu .text-bolt {
    color: #F5A623 !important;
}

/* Quando la tendina è aperta, i pulsanti sotto non devono visivamente passare sopra */
#ddMenu:not(.hidden) {
    display: block !important;
}

#ddMenu:not(.hidden) ~ * {
    position: relative;
    z-index: 1;
}

/* Migliora il form in desktop: evita sovrapposizioni strane */
#sendBtn,
a.btn-emergency {
    position: relative;
    z-index: 5;
}

/* Nei form, la riga del dropdown deve stare sopra alla riga dei pulsanti */
#ddBtn.parent,
#ddBtn,
#ddMenu {
    isolation: isolate;
}

/* Fix specifico per il contenitore relativo del dropdown */
#ddBtn + #ddMenu {
    top: calc(100% + 10px) !important;
    left: 0 !important;
    right: 0 !important;
}

/* Desktop: se la tendina è aperta, deve sembrare un menu pulito e non fondersi con CTA */
@media (min-width: 768px) {
    #ddMenu {
        max-height: 360px !important;
    }
}

/* Mobile: dropdown più compatto e leggibile */
@media (max-width: 640px) {
    #ddMenu {
        max-height: 300px !important;
    }

    #ddMenu .svcOpt,
    #ddMenu button {
        min-height: 64px !important;
        padding: .85rem !important;
    }
}


/* REV7 final sanity fixes */
@media (min-width: 1024px) {
    #mobileMenuBtn.mobile-menu-btn {
        display: none !important;
    }
}

@media (max-width: 1023px) {
    #mobileMenuBtn.mobile-menu-btn {
        display: inline-flex !important;
    }
}

/* Evita che il cookie banner copra HELP su schermi bassi */
@media (max-height: 760px) and (min-width: 768px) {
    #helpAssistant:not(.chat-active) {
        bottom: 1rem !important;
    }
    body:not(.chat-open) .fixed.z-40.flex.flex-col.gap-3 {
        bottom: 1rem !important;
    }
}


/* =========================================================
   FINALE BOOSTERMAN - Card intervento + rifiniture
   ========================================================= */
.intervention-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
}

.intervention-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: .45rem;
    background: linear-gradient(180deg, rgba(17,17,17,.98), rgba(8,8,8,.98));
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 22px;
    padding: 1.25rem;
    color: #ffffff;
    min-height: 168px;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
    box-shadow: 0 18px 55px rgba(0,0,0,.28);
}

.intervention-card:hover {
    transform: translateY(-4px);
    border-color: rgba(245,166,35,.72);
    background: linear-gradient(180deg, rgba(245,166,35,.13), rgba(8,8,8,.98));
}

.intervention-icon {
    font-size: 2.25rem;
    line-height: 1;
    margin-bottom: .35rem;
}

.intervention-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
    font-weight: 900;
    color: #ffffff;
}

.intervention-desc {
    color: rgba(255,255,255,.62);
    font-size: .9rem;
    line-height: 1.35;
}

#intervento-necessario {
    position: relative;
    z-index: 2;
}

#ddPrice {
    font-size: .78rem !important;
}

/* Desktop: MENU solo mobile/tablet */
@media (min-width: 1024px) {
    #mobileMenuBtn.mobile-menu-btn {
        display: none !important;
    }
}

/* Layout responsive card */
@media (max-width: 1180px) {
    .intervention-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .intervention-grid {
        grid-template-columns: 1fr;
    }

    .intervention-card {
        min-height: auto;
        padding: 1rem;
        border-radius: 18px;
    }
}

/* Chat sempre fullscreen quando attiva */
#helpAssistant.chat-active #helpOpen,
#helpOpen.chat-fullscreen {
    width: 100vw !important;
    height: 100dvh !important;
    max-width: none !important;
    max-height: none !important;
}

@supports (height: 100svh) {
    #helpAssistant.chat-active #helpOpen,
    #helpOpen.chat-fullscreen {
        height: 100svh !important;
    }
}

/* Desktop: mantiene effetto premium ma piena schermata logica */
@media (min-width: 900px) {
    #helpAssistant.chat-active #helpOpen,
    #helpOpen.chat-fullscreen {
        width: min(94vw, 1120px) !important;
        height: min(92dvh, 860px) !important;
    }
}


/* Local SEO landing pages */
.local-zone-card {
  background: linear-gradient(180deg, rgba(17,17,17,.98), rgba(8,8,8,.98));
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 22px;
  padding: 1.25rem;
}


/* =========================================================
   BOOSTERMAN 2.0 - Assistente aperto, recensioni e interventi
   ========================================================= */
.assistant2-card {
  background:
    radial-gradient(circle at 12% 0%, rgba(245,166,35,.16), transparent 28%),
    linear-gradient(180deg, rgba(17,17,17,.98), rgba(5,5,5,.98));
  border: 1px solid rgba(245,166,35,.35);
  border-radius: 28px;
  padding: clamp(1rem, 2.5vw, 2rem);
  box-shadow: 0 28px 90px rgba(0,0,0,.55);
}

.assistant2-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.assistant2-avatar {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(245,166,35,.14);
  border: 1px solid rgba(245,166,35,.35);
  font-size: 1.8rem;
  flex: 0 0 auto;
}

.assistant2-kicker {
  color: #F5A623;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-weight: 900;
}

.assistant2-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.65rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.05;
}

.assistant2-status {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  border-radius: 999px;
  padding: .55rem .8rem;
  color: rgba(255,255,255,.78);
  font-size: .85rem;
  font-weight: 800;
  white-space: nowrap;
}

.assistant2-conversation {
  background: rgba(0,0,0,.36);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  padding: 1rem;
  min-height: 96px;
  margin-bottom: 1rem;
}

.assistant2-message {
  max-width: 780px;
  padding: .9rem 1rem;
  border-radius: 18px;
  line-height: 1.55;
  font-size: .98rem;
}

.assistant2-message.bot {
  background: #181818;
  color: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.1);
}

.assistant2-message.user {
  background: #F5A623;
  color: #0a0a0a;
  margin-left: auto;
  font-weight: 800;
}

.assistant2-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  margin-bottom: 1rem;
}

.assistant2-option {
  min-height: 58px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.14);
  background: #0b0b0b;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: .65rem;
  padding: .8rem 1rem;
  font-weight: 900;
  text-align: left;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.assistant2-option:hover {
  transform: translateY(-2px);
  border-color: rgba(245,166,35,.7);
  background: rgba(245,166,35,.12);
}

.assistant2-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
}

.assistant2-action {
  min-height: 56px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1rem;
  font-weight: 950;
  text-align: center;
  border: 1px solid rgba(255,255,255,.16);
}

.assistant2-action.location {
  background: #0aa36f;
  color: #ffffff;
}

.assistant2-action.photo {
  background: #141414;
  color: #ffffff;
}

.assistant2-action.call {
  background: #FF3B30;
  color: #ffffff;
}

.assistant2-note {
  color: rgba(255,255,255,.55);
  font-size: .84rem;
  margin-top: .8rem;
  text-align: center;
}

.review-card {
  background: #080808;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 22px;
  padding: 1.25rem;
  min-height: 190px;
  box-shadow: 0 18px 55px rgba(0,0,0,.25);
}

.review-stars {
  color: #F5A623;
  letter-spacing: .08em;
  font-weight: 900;
  margin-bottom: .8rem;
}

.review-card p {
  color: rgba(255,255,255,.78);
  line-height: 1.55;
  margin-bottom: 1rem;
}

.review-card strong {
  color: #ffffff;
}

.recent-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.recent-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #0b0b0b;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  padding: 1.1rem;
}

.recent-dot {
  width: 15px;
  height: 15px;
  border-radius: 999px;
  background: #20c66b;
  box-shadow: 0 0 0 8px rgba(32,198,107,.12);
  flex: 0 0 auto;
}

.recent-card strong {
  display: block;
  font-weight: 900;
  color: #ffffff;
}

.recent-card small {
  display: block;
  color: rgba(255,255,255,.52);
  margin-top: .2rem;
}

.extra-services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.extra-service {
  background: #080808;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  padding: 1.05rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  min-height: 135px;
  font-size: 1.4rem;
}

.extra-service strong {
  font-size: 1rem;
  color: #ffffff;
  font-weight: 900;
}

.extra-service span {
  color: rgba(255,255,255,.58);
  font-size: .84rem;
  line-height: 1.35;
}

@media (max-width: 900px) {
  .assistant2-header {
    align-items: flex-start;
  }

  .assistant2-status {
    display: none;
  }

  .assistant2-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .assistant2-actions {
    grid-template-columns: 1fr;
  }

  .recent-grid,
  .extra-services-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .assistant2-card {
    border-radius: 20px;
  }

  .assistant2-options {
    grid-template-columns: 1fr;
  }

  .assistant2-option {
    min-height: 52px;
  }
}
