/* ===============================================
   THEME: Black Brilliant (Nero Brillante Premium)
   =============================================== */

body.theme-gradient-vibrant {
    /* Colors - ROSSO BRILLANTE PURO */
    --primary: #FF0000;
    --primary-light: #FF3333;
    --primary-dark: #CC0000;

    --secondary: #FF0000;
    --secondary-light: #FF3333;
    --secondary-dark: #CC0000;

    --accent: #FF0000;
    --accent-light: #FF3333;
    --accent-dark: #CC0000;

    /* Brilliant Black Neutrals */
    --bg-primary: #000000;
    --bg-secondary: #080808;
    --bg-tertiary: #101010;
    --bg-card: rgba(16, 16, 16, 0.9);

    --text-primary: #FFFFFF;
    --text-secondary: #B0B0B0;
    --text-tertiary: #707070;

    /* Gradients - SOLO ROSSO */
    --gradient-primary: linear-gradient(135deg, #FF0000 0%, #CC0000 100%);
    --gradient-warm: linear-gradient(135deg, #FF0000 0%, #FF3333 100%);
    --gradient-cool: linear-gradient(135deg, #CC0000 0%, #990000 100%);
    --gradient-dark: linear-gradient(180deg, #000000 0%, #080808 100%);

    /* 3D Shadows for depth - ROSSO */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 0 60px rgba(255, 0, 0, 0.4);
    --shadow-3d: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 1px rgba(255, 255, 255, 0.1);

    /* Glass effect */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

/* ===============================================
   Animated Grid Background for body
   =============================================== */


/* Griglia statica di base */
/*
body.theme-gradient-vibrant ::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
}
*/
/* ===============================================
   Animated Grid Background for Hero
   =============================================== */

body.theme-gradient-vibrant .hero {
    position: relative;
    background: var(--bg-primary);
    overflow: hidden;
}

/* Griglia statica di base */
body.theme-gradient-vibrant .hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
}

/* Onda rotante che attraversa tutta la pagina - stile conic-gradient */
body.theme-gradient-vibrant .hero::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        transparent 320deg,
        rgba(255, 0, 0, 0.3) 340deg,
        rgba(255, 0, 0, 0.6) 350deg,
        rgba(255, 255, 255, 0.4) 355deg,
        rgba(255, 0, 0, 0.6) 360deg,
        transparent 380deg
    );
    animation: heroWaveRotate 6s linear infinite;
    z-index: 1;
    pointer-events: none;
    filter: blur(40px);
}

@keyframes heroWaveRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

body.theme-gradient-vibrant .hero > * {
    position: relative;
    z-index: 2;
}

body.theme-gradient-vibrant .hero-background {
    opacity: 0.5;
}

/* ===============================================
   Grid Tracer - Pacman Style Light Trail
   =============================================== */

/* Tracer orizzontale */
body.theme-gradient-vibrant .hero .grid-tracer-h {
    position: absolute;
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 0, 0, 0.8) 30%,
        rgba(255, 255, 255, 1) 50%,
        rgba(255, 0, 0, 0.8) 70%,
        transparent 100%
    );
    box-shadow:
        0 0 10px rgba(255, 0, 0, 1),
        0 0 20px rgba(255, 0, 0, 0.8),
        0 0 40px rgba(255, 0, 0, 0.6),
        0 0 60px rgba(255, 0, 0, 0.4);
    z-index: 1;
    animation: tracerMoveH 4s linear infinite;
    pointer-events: none;
}

/* Tracer verticale */
body.theme-gradient-vibrant .hero .grid-tracer-v {
    position: absolute;
    width: 2px;
    height: 200px;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(255, 0, 0, 0.8) 30%,
        rgba(255, 255, 255, 1) 50%,
        rgba(255, 0, 0, 0.8) 70%,
        transparent 100%
    );
    box-shadow:
        0 0 10px rgba(255, 0, 0, 1),
        0 0 20px rgba(255, 0, 0, 0.8),
        0 0 40px rgba(255, 0, 0, 0.6),
        0 0 60px rgba(255, 0, 0, 0.4);
    z-index: 1;
    animation: tracerMoveV 5s linear infinite;
    animation-delay: 1.5s;
    pointer-events: none;
}

@keyframes tracerMoveH {
    0% {
        top: 50px;
        left: -200px;
        opacity: 1;
    }
    45% {
        top: 50px;
        left: 100%;
        opacity: 1;
    }
    45.1% {
        top: 200px;
        left: 100%;
        opacity: 0;
    }
    45.2% {
        top: 200px;
        left: -200px;
        opacity: 1;
    }
    90% {
        top: 200px;
        left: 100%;
        opacity: 1;
    }
    90.1% {
        top: 350px;
        left: -200px;
        opacity: 0;
    }
    100% {
        top: 350px;
        left: 30%;
        opacity: 1;
    }
}

@keyframes tracerMoveV {
    0% {
        left: 150px;
        top: -200px;
        opacity: 1;
    }
    45% {
        left: 150px;
        top: 100%;
        opacity: 1;
    }
    45.1% {
        left: 400px;
        top: -200px;
        opacity: 0;
    }
    45.2% {
        left: 400px;
        top: -200px;
        opacity: 1;
    }
    90% {
        left: 400px;
        top: 100%;
        opacity: 1;
    }
    90.1% {
        left: 650px;
        top: -200px;
        opacity: 0;
    }
    100% {
        left: 650px;
        top: 30%;
        opacity: 1;
    }
}

/* ===============================================
   Header - Glass Effect
   =============================================== */

body.theme-gradient-vibrant .header {
    background: rgba(5, 5, 8, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

body.theme-gradient-vibrant .header.scrolled {
    background: rgba(5, 5, 8, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

body.theme-gradient-vibrant .nav-link {
    color: #E0E0E8;
}

body.theme-gradient-vibrant .nav-link:hover {
    color: #FFFFFF;
}

/* ===============================================
   3D Elevated Cards & Boxes
   =============================================== */

body.theme-gradient-vibrant .card,
body.theme-gradient-vibrant .feature-item,
body.theme-gradient-vibrant .metric-card,
body.theme-gradient-vibrant .step-card,
body.theme-gradient-vibrant .use-case-card,
body.theme-gradient-vibrant .testimonial-card,
body.theme-gradient-vibrant .faq-item,
body.theme-gradient-vibrant .table-container,
body.theme-gradient-vibrant .cta-content,
body.theme-gradient-vibrant .integration-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transform: translateY(0) translateZ(0);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body.theme-gradient-vibrant .card:hover,
body.theme-gradient-vibrant .feature-item:hover,
body.theme-gradient-vibrant .metric-card:hover,
body.theme-gradient-vibrant .step-card:hover,
body.theme-gradient-vibrant .use-case-card:hover,
body.theme-gradient-vibrant .testimonial-card:hover,
body.theme-gradient-vibrant .integration-card:hover {
    transform: translateY(-8px) translateZ(20px);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 0 40px rgba(255, 77, 77, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 77, 77, 0.2);
}

/* ===============================================
   Buttons - 3D Elevated
   =============================================== */

body.theme-gradient-vibrant .btn-primary {
    background: var(--gradient-primary);
    border: none;
    box-shadow:
        0 4px 20px rgba(255, 77, 77, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(0);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.theme-gradient-vibrant .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow:
        0 8px 30px rgba(255, 77, 77, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.15),
        0 0 60px rgba(255, 77, 77, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

body.theme-gradient-vibrant .btn-secondary,
body.theme-gradient-vibrant .btn-outline {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transform: translateY(0);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.theme-gradient-vibrant .btn-secondary:hover,
body.theme-gradient-vibrant .btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* ===============================================
   Sections - Depth & Separation
   =============================================== */

body.theme-gradient-vibrant section {
    position: relative;
}

body.theme-gradient-vibrant .faq-section,
body.theme-gradient-vibrant .cta-section,
body.theme-gradient-vibrant .features-section {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

/* ===============================================
   Hero Badge & Special Elements
   =============================================== */

body.theme-gradient-vibrant .hero-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

body.theme-gradient-vibrant .page-label,
body.theme-gradient-vibrant .section-label {
    background: rgba(255, 77, 77, 0.1);
    border: 1px solid rgba(255, 77, 77, 0.2);
    color: var(--primary-light);
}

/* ===============================================
   Phone Mockup - 3D Effect
   =============================================== */

body.theme-gradient-vibrant .phone-mockup {
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 0 100px rgba(255, 77, 77, 0.1);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

body.theme-gradient-vibrant .phone-mockup:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
    box-shadow:
        0 40px 100px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(255, 255, 255, 0.15),
        0 0 120px rgba(255, 77, 77, 0.15);
}

/* ===============================================
   FAQ Items - 3D
   =============================================== */

body.theme-gradient-vibrant .faq-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    margin-bottom: 12px;
}

body.theme-gradient-vibrant .faq-item:hover {
    border-color: rgba(255, 77, 77, 0.3);
}

body.theme-gradient-vibrant .faq-question {
    background: transparent;
}

/* ===============================================
   Gradient Orbs - Subtle
   =============================================== */

body.theme-gradient-vibrant .gradient-orb {
    opacity: 0.4;
    filter: blur(100px);
}

body.theme-gradient-vibrant .orb-1 {
    background: radial-gradient(circle, rgba(255, 77, 77, 0.5) 0%, transparent 70%);
}

body.theme-gradient-vibrant .orb-2 {
    background: radial-gradient(circle, rgba(0, 212, 255, 0.4) 0%, transparent 70%);
}

body.theme-gradient-vibrant .orb-3 {
    background: radial-gradient(circle, rgba(255, 215, 0, 0.3) 0%, transparent 70%);
}

/* ===============================================
   Scrollbar - Dark
   =============================================== */

body.theme-gradient-vibrant ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

body.theme-gradient-vibrant ::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

body.theme-gradient-vibrant ::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

body.theme-gradient-vibrant ::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ===============================================
   Text Glow Effects
   =============================================== */

body.theme-gradient-vibrant h1,
body.theme-gradient-vibrant h2 {
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.1);
}

body.theme-gradient-vibrant .gradient-text {
    background: var(--gradient-warm);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(255, 77, 77, 0.3));
}

/* ===============================================
   CTA Section - Special Treatment
   =============================================== */

body.theme-gradient-vibrant .cta-section {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

body.theme-gradient-vibrant .cta-content {
    background: linear-gradient(135deg, rgba(255, 77, 77, 0.05) 0%, rgba(0, 212, 255, 0.03) 100%);
    border: 1px solid rgba(255, 77, 77, 0.15);
    padding: 60px;
}

/* ===============================================
   Portal Sidebar
   =============================================== */

body.theme-gradient-vibrant .portal-sidebar {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border-right: 1px solid var(--glass-border);
}

/* ===============================================
   Links & Interactive
   =============================================== */

body.theme-gradient-vibrant a:not(.btn) {
    transition: all 0.2s ease;
}

body.theme-gradient-vibrant a:not(.btn):hover {
    color: var(--primary-light);
}

/* ===============================================
   MODULAR SECTION EFFECTS - Add classes to any section
   =============================================== */

/* ===============================================
   EFFETTI SEMPLICI - FUNZIONANO SEMPRE
   =============================================== */

/* Effetto griglia rossa */
body.theme-gradient-vibrant .effect-grid {
    background-image:
        linear-gradient(rgba(255, 0, 0, 0.08) 3px, transparent 1px),
        linear-gradient(90deg, rgba(255, 0, 0, 0.08) 3px, transparent 1px) !important;
    background-size: 60px 60px !important;
}

/* Effetto sfumature laterali rosse */
body.theme-gradient-vibrant .effect-lines {
    box-shadow: 
        inset 150px 0 120px -80px rgba(255, 0, 0, 0.4),
        inset -150px 0 120px -80px rgba(255, 0, 0, 0.4) !important;
}

/* Effetto griglia + linee insieme */
body.theme-gradient-vibrant .effect-grid.effect-lines {
    background-image:
        linear-gradient(rgba(255, 0, 0, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 0, 0, 0.08) 1px, transparent 1px) !important;
    background-size: 60px 60px !important;
    box-shadow: 
        inset 150px 0 120px -80px rgba(255, 0, 0, 0.4),
        inset -150px 0 120px -80px rgba(255, 0, 0, 0.4) !important;
}

/* Classe riutilizzabile box */
body.theme-gradient-vibrant .effect-border-box {
    border:3px solid rgb(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 20px;
}

/* Classe riutilizzabile top bottom */
body.theme-gradient-vibrant .effect-border-tb {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Classe riutilizzabile top */
body.theme-gradient-vibrant .effect-border-top {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* ===== URGENCY BOX ===== */
.urgency-box {
    /* background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%); */
    background: linear-gradient(135deg, #DBEAFE 0%, #BFDBFE 100%);
    border-left: 5px solid #e2241c;
    border-radius: 8px;
    color: #ffffff;
    padding: 25px 30px;
    margin: 30px 0;
    position: relative;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}
.urgency-box p {
    color: #000000;
}

/* Effetto glow sulla linea rossa */
.urgency-box:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 5px;
    height: 100%;
    background: #e2241c;
    box-shadow: 0 0 10px rgba(226, 36, 28, 0.7);
}

/* ===============================================
   MOBILE MENU - MUST BE AT END FOR PRIORITY
   =============================================== */
@media (max-width: 768px) {
    body.theme-gradient-vibrant .nav {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        bottom: 0;
        background: #000 !important;
        flex-direction: column;
        padding: 20px;
        z-index: 9999;
        overflow-y: auto;
    }

    body.theme-gradient-vibrant .nav.active {
        display: flex !important;
    }

    body.theme-gradient-vibrant .nav .nav-menu {
        display: flex !important;
        flex-direction: column;
        width: 100%;
        list-style: none;
        padding: 0;
        margin: 0;
    }

    body.theme-gradient-vibrant .nav .nav-item {
        display: block !important;
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.2);
    }

    body.theme-gradient-vibrant .nav .nav-link {
        display: block !important;
        padding: 16px 0;
        font-size: 18px;
        color: #fff !important;
    }

    body.theme-gradient-vibrant .nav .dropdown-menu {
        position: static !important;
        background: #111 !important;
        box-shadow: none;
        padding: 10px 20px;
        display: none;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }

    body.theme-gradient-vibrant .nav .dropdown-menu.open {
        display: block !important;
    }

    body.theme-gradient-vibrant .nav .dropdown-item {
        display: block !important;
        color: #fff !important;
        padding: 12px 0;
    }

    body.theme-gradient-vibrant .nav .dropdown-item strong {
        color: #fff !important;
    }

    body.theme-gradient-vibrant .nav .nav-actions {
        display: flex !important;
        flex-direction: column;
        gap: 12px;
        margin-top: 20px;
        width: 100%;
    }

    body.theme-gradient-vibrant .mobile-menu-toggle {
        display: flex;
        z-index: 10000;
    }
}




