/* Dock&Clean — Gemini Styles (Premium Redesign) */

/* 1. Import Fonts: Outfit (Clean, Modern, Tech) */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Nuova palette colori "Deep Space" */
    --bg0: #050505;
    --bg1: #0a0a0c;
    --bg-glass: rgba(20, 20, 25, 0.65);

    --card: rgba(255, 255, 255, 0.03);
    --card-hover: rgba(255, 255, 255, 0.07);

    --border: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.15);

    --text: #f0f0f5;
    --text-dim: rgba(240, 240, 255, 0.6);

    /* Gradienti Accent "Gemini" */
    --accent-primary: #4f46e5;
    /* Indigo */
    --accent-secondary: #0ea5e9;
    /* Sky */
    --gradient-main: linear-gradient(135deg, #4f46e5, #0ea5e9);
    --gradient-hover: linear-gradient(135deg, #4338ca, #0284c7);

    --shadow-lg: 0 20px 50px -12px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 0 20px rgba(79, 70, 229, 0.15);

    --r: 24px;
    /* Arrotondamento più morbido */
}

body {
    font-family: 'Outfit', system-ui, -apple-system, sans-serif !important;
    background: url('https://images.pexels.com/photos/994605/pexels-photo-994605.jpeg?auto=compress&cs=tinysrgb&w=1920&h=1080&dpr=1') no-repeat center center fixed !important;
    background-size: cover !important;
    color: var(--text) !important;
}

/* Global Content Overlay to darken background */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(5, 5, 10, 0.65) !important;
    /* Dark tint for readability */
    backdrop-filter: blur(2px) grayscale(30%);
    z-index: -1;
    pointer-events: none !important;
    /* FIX: Allow clicks through overlay */
}

/* 2. Glassmorphism Components */

/* Cards con bordo sottile e blur */
/* Fix Z-Index Modals to be above Header (1000) */
.modal {
    z-index: 2000 !important;
}

.modal-backdrop {
    z-index: 2001 !important;
}

.modal-card {
    z-index: 2002 !important;
    position: relative;
    max-height: 90vh;
    /* Prevent overflow on mobile */
    overflow-y: auto;
    /* Scrol within modal if needed */
}

.card,
.dc-hero-card,
.auth-page .card {
    background: var(--bg-glass) !important;
    backdrop-filter: blur(20px) saturate(140%) !important;
    border: 1px solid var(--border) !important;
    box-shadow: var(--shadow-lg) !important;
    border-radius: var(--r) !important;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.3s ease;
}

.card:hover {
    border-color: var(--border-light) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow) !important;
}

/* 3. Typography & Titles */
.page-title,
.h1,
.brand-title {
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
    background: linear-gradient(to right, #fff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.kicker,
.dc-kicker {
    color: #0ea5e9 !important;
    font-weight: 700 !important;
    letter-spacing: 0.1em !important;
}

/* 4. Buttons: Modern gradient styles */
.btn {
    font-weight: 600 !important;
    letter-spacing: 0.01em !important;
    border-radius: 999px !important;
    /* Pill shape */
    padding: 10px 20px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--border) !important;
    backdrop-filter: blur(10px);
    transition: all 0.2s ease !important;
    cursor: pointer;
}

.btn:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    transform: translateY(-1px);
}

.btn-primary,
.auth-page .btn {
    background: var(--gradient-main) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.35) !important;
}

.btn-primary:hover,
.auth-page .btn:hover {
    background: var(--gradient-hover) !important;
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.5) !important;
}

/* 5. Header / Navigation */
.topbar {
    background: rgba(5, 5, 5, 0.7) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    border-bottom: 1px solid var(--border) !important;
    position: relative;
    z-index: 1000 !important;
    /* FIX: Always on top */
}

.brand {
    background: transparent !important;
    border: none !important;
    padding-left: 0 !important;
}

.nav a {
    border-radius: 12px !important;
    font-weight: 500 !important;
}

.nav a.active {
    background: rgba(255, 255, 255, 0.08) !important;
    color: white !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* 6. Form Inputs */
input,
select,
textarea,
.input {
    background: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid var(--border) !important;
    border-radius: 16px !important;
    padding: 14px 16px !important;
    color: white !important;
    font-family: inherit !important;
    transition: all 0.2s ease;
}

input:focus,
select:focus,
textarea:focus,
.input:focus {
    border-color: #4f46e5 !important;
    background: rgba(0, 0, 0, 0.5) !important;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2) !important;
    outline: none;
}

/* 7. Status Badges */
.badge,
.tag {
    border-radius: 6px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    font-size: 0.7rem !important;
    letter-spacing: 0.05em;
    padding: 4px 8px !important;
}

/* Tables & Lists */
.dc-row,
.dc-slot {
    border-radius: 18px !important;
    border: 1px solid var(--border) !important;
    background: var(--card) !important;
    margin-bottom: 8px;
}

.dc-row:hover,
.dc-slot:hover {
    background: var(--card-hover) !important;
    border-color: var(--border-light) !important;
}

/* 8. Landing Page Override (Gemini Style) */

/* Carousel Styles (IMG tags) */
.dc-hero-carousel {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: transparent;
}

.dc-slide-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: heroFade 15s infinite;
}

.dc-slide-img:nth-child(1) {
    animation-delay: 0s;
}

.dc-slide-img:nth-child(2) {
    animation-delay: 5s;
}

.dc-slide-img:nth-child(3) {
    animation-delay: 10s;
}

@keyframes heroFade {
    0% {
        opacity: 0;
        transform: scale(1.05);
    }

    5% {
        opacity: 1;
        transform: scale(1.02);
    }

    33% {
        opacity: 1;
        transform: scale(1);
    }

    40% {
        opacity: 0;
        transform: scale(1.05);
    }

    100% {
        opacity: 0;
    }
}

.dc-carousel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(5, 5, 10, 0.2), rgba(5, 5, 10, 0.7));
    z-index: 1;
    pointer-events: none;
}

/* Hero Section Container (Transparent) */
.dc-landing .dc-hero-card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    overflow: visible;
}

.dc-hero-title {
    font-size: 3.5rem !important;
    line-height: 1.1 !important;
    background: linear-gradient(to bottom right, #ffffff, #94a3b8) !important;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Badges nella Hero */
.dc-badge {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid var(--border) !important;
    backdrop-filter: blur(10px);
    border-radius: 16px !important;
    color: #e2e8f0 !important;
    /* FIX CONTRASTO */
}

.dc-badge-title {
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 14px;
}

.dc-badge-sub,
.dc-card-sub,
.dc-muted,
.muted {
    color: #94a3b8 !important;
    /* Grigio chiaro leggibile */
}

.dc-badge-ic {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02)) !important;
    border: 1px solid var(--border-light) !important;
    border-radius: 12px !important;
    color: white !important;
}

/* Fix Colori Generali */
.dc-card-title,
.dc-step-t {
    color: white !important;
    font-weight: 700 !important;
}

.dc-hero-lead {
    color: #cbd5e1 !important;
    /* Grigio-azzurro molto chiaro */
    font-size: 1.25rem !important;
    font-weight: 400 !important;
}

/* Pills (Bottoni Hero) */
.dc-pill {
    border-radius: 999px !important;
    padding: 14px 28px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    border: 1px solid var(--border) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    color: white !important;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.dc-pill:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.1) !important;
}

.dc-pill--primary {
    background: var(--gradient-main) !important;
    border: none !important;
    box-shadow: 0 10px 30px -5px rgba(79, 70, 229, 0.4) !important;
}

.dc-pill--primary:hover {
    background: var(--gradient-hover) !important;
    box-shadow: 0 20px 40px -5px rgba(79, 70, 229, 0.5) !important;
}

/* Services Cards */
.dc-cards .dc-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)) !important;
    border: 1px solid var(--border) !important;
    border-radius: 24px !important;
    padding: 24px !important;
    transition: all 0.3s ease !important;
}

.dc-cards .dc-card:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: var(--accent-primary) !important;
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5) !important;
}

.dc-card-ic {
    font-size: 2rem !important;
    margin-bottom: 16px !important;
    background: rgba(255, 255, 255, 0.05);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Steps (Come funziona) */
.dc-step {
    background: transparent !important;
    border: none !important;
    padding: 10px 0 !important;
}

.dc-step-n {
    background: var(--gradient-main) !important;
    color: white !important;
    font-weight: 800 !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 12px !important;
    box-shadow: 0 0 15px rgba(79, 70, 229, 0.4) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* FAQ */
.dc-faq {
    background: rgba(255, 255, 255, 0.05) !important;
    /* Più chiaro */
    border: 1px solid var(--border) !important;
    border-radius: 18px !important;
    margin-bottom: 12px !important;
    color: #f0f0f5 !important;
    /* Base text white */
}

.dc-faq summary {
    font-weight: 700 !important;
    cursor: pointer;
    color: #ffffff !important;
    /* Summary white */
    padding: 16px;
    list-style: none;
    /* Hide default triangle if desired, or keep */
}

.dc-faq .dc-muted {
    padding: 0 16px 16px 16px;
    color: #cbd5e1 !important;
    /* Content light grey */
}

.dc-faq[open] {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: var(--border-light) !important;
}

/* 9. Footer Softening */
.dc-footer {
    backdrop-filter: blur(20px) saturate(180%);
    background: rgba(5, 5, 10, 0.85);
    /* Slightly lighter than body */
    border-top: 1px solid var(--border);
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
    margin-top: 40px;
    /* Separation from content */
    padding-top: 40px;
    /* Internal spacing */
    position: relative;
    z-index: 10;
}

.dc-footer::before {
    /* Optional glow line on top */
    content: "";
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

/* ==========================================================================
   10. MOBILE OPTIMIZATIONS (Responsive Fixes)
   ========================================================================== */
@media (max-width: 860px) {

    /* Layout & Grids */
    .grid,
    .grid2,
    .grid3,
    .grid4,
    .dc-hero-grid,
    .dc-grid2,
    .dc-cards {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    /* Padding Adjustments */
    .page-wrap,
    .dc-hero-grid,
    .dc-section-inner {
        padding-left: 16px !important;
        padding-right: 16px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .card.pad,
    .dc-card {
        padding: 16px !important;
        border-radius: 20px !important;
    }

    /* Typography Scaling */
    .dc-hero-title {
        font-size: 2.2rem !important;
    }

    .dc-hero-lead {
        font-size: 1.1rem !important;
    }

    .page-title {
        font-size: 1.6rem !important;
    }

    .h1,
    h1 {
        font-size: 1.8rem !important;
    }

    .h2,
    h2,
    .dc-h2 {
        font-size: 1.5rem !important;
    }

    /* Button Touch Targets */
    .btn,
    .dc-pill,
    button,
    input[type="submit"] {
        min-height: 48px;
        /* Safe touch area */
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Input Zoom Fix (iOS) */
    input,
    select,
    textarea,
    .input {
        font-size: 16px !important;
    }

    /* Hero Badges Stack */
    .dc-hero-copy .dc-hero-badges {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .dc-badge {
        width: 100%;
        justify-content: center;
    }

    /* Sticky Elements Unstick */
    .card[style*="sticky"] {
        position: static !important;
        top: auto !important;
        z-index: 1;
    }

    /* Mobile Menu Spacing */
    .mobile-links .btn {
        padding: 12px 16px !important;
        justify-content: flex-start;
        background: rgba(255, 255, 255, 0.05) !important;
    }

    .mobile-links .btn-primary {
        background: var(--gradient-main) !important;
    }

    /* Footer Mobile */
    .dc-footer-grid {
        grid-template-columns: 1fr !important;
        text-align: center;
    }

    .dc-footer-brand {
        justify-content: center;
    }

    .dc-footer-links {
        justify-content: center;
    }

    .dc-footer {
        border-top-left-radius: 24px;
        /* Slightly less on mobile */
        border-top-right-radius: 24px;
        padding-top: 30px;
    }
}