/* 
 * NEXUS CELEBRATION ENGINE (NCE) - SEMANTIC STYLE SYSTEM v13.3
 * Magical Christmas Edition - Warm, Gift-Filled Atmosphere
 */

:root {
    /* Fallback tokens */
    --ce-primary: #888;
    --ce-primary-rgb: 136, 136, 136;
    --ce-secondary: #fff;
    --ce-bg-glow: rgba(0, 0, 0, 0.05);
    --ce-border: rgba(0, 0, 0, 0.1);
    --ce-btn-active: #555;
    --ce-btn-hover: #444;
    --ce-text-glow: 0 0 5px rgba(0, 0, 0, 0.2);
    --ce-header-overlay: none;
}

/* ============================================
   RICORRENZE DA RIPRISTINARE
   ============================================ */

/* --- CAPODANNO / NEW YEAR --- */
.nx-event-new-year {
    --ce-primary: #ffd700;
    --ce-primary-rgb: 255, 215, 0;
    --ce-secondary: #1a1a1a;
    --ce-bg-glow: radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.25) 0%, transparent 75%);
    --ce-border: #ffd700;
    --ce-hero-icon: '🥂';
    --ce-btn-active: #ffd700;
    --ce-btn-hover: #e6c200;
    --ce-text-glow: 0 0 15px rgba(255, 215, 0, 0.9);
}

/* --- FESTA DELLA DONNA --- */
.nx-event-womens-day {
    --ce-primary: #ff69b4;
    --ce-primary-rgb: 255, 105, 180;
    --ce-secondary: #ffffff;
    --ce-bg-glow: radial-gradient(circle at 50% 50%, rgba(255, 105, 180, 0.2) 0%, transparent 75%);
    --ce-border: #ff69b4;
    --ce-btn-active: #ff69b4;
    --ce-btn-hover: #ff4da6;
    --ce-text-glow: 0 0 12px rgba(255, 105, 180, 0.7);
}

/* --- EQUINOZIO DI PRIMAVERA --- */
.nx-event-spring-equinox {
    --ce-primary: #396239;
    --ce-primary-rgb: 152, 251, 152;
    --ce-secondary: #e5f5ec;
    --ce-bg-glow: radial-gradient(circle at 50% 50%, rgba(152, 251, 152, 0.2) 0%, transparent 75%);
    --ce-border: #98fb98;
    --ce-btn-active: #baedba;
    --ce-btn-hover: #7cf07c;
    --ce-text-glow: 0 0 10px rgba(152, 251, 152, 0.6);
}

/* --- PESCE D'APRILE --- */
.nx-event-april-fool {
    --ce-primary: #ffa500;
    --ce-primary-rgb: 255, 165, 0;
    --ce-secondary: #000000;
    --ce-bg-glow: radial-gradient(circle at 50% 50%, rgba(255, 165, 0, 0.2) 0%, transparent 75%);
    --ce-border: #ffa500;
    --ce-btn-active: #ffa500;
    --ce-btn-hover: #ff9400;
    --ce-text-glow: 0 0 10px rgba(255, 165, 0, 0.7);
}

/* --- FESTA DELLA LIBERAZIONE --- */
.nx-event-liberation-day {
    --ce-primary: #008c45;
    --ce-primary-rgb: 0, 140, 69;
    --ce-secondary: #ffffff;
    --ce-bg-glow: radial-gradient(circle at 50% 50%, rgba(0, 140, 69, 0.1) 0%, transparent 75%);
    --ce-border: rgba(205, 33, 42, 0.4);
    /* Subtle Red Accent */
    --ce-btn-active: #008c45;
    --ce-btn-hover: #006633;
    --ce-text-glow: 0 0 10px rgba(0, 140, 69, 0.4);
}

/* --- FESTA DEI LAVORATORI --- */
.nx-event-labor-day {
    --ce-primary: #ff0000;
    --ce-primary-rgb: 255, 0, 0;
    --ce-secondary: #ffd700;
    --ce-bg-glow: radial-gradient(circle at 50% 50%, rgba(255, 0, 0, 0.2) 0%, transparent 75%);
    --ce-border: #ff0000;
    --ce-btn-active: #ff0000;
    --ce-btn-hover: #cc0000;
    --ce-text-glow: 0 0 10px rgba(255, 0, 0, 0.6);
}

/* --- FESTA DELLA REPUBBLICA --- */
.nx-event-republic-day {
    --ce-primary: #008c45;
    --ce-primary-rgb: 0, 140, 69;
    --ce-secondary: #ffffff;
    --ce-bg-glow: radial-gradient(circle at 50% 50%, rgba(0, 140, 69, 0.1) 0%, rgba(205, 33, 42, 0.05) 100%);
    --ce-border: #008c45;
    --ce-hero-icon: '🇮🇹';
    --ce-btn-active: #008c45;
    --ce-btn-hover: #006633;
    --ce-text-glow: 0 0 10px rgba(0, 140, 69, 0.4);
}

/* --- SOLSTIZIO D'ESTATE --- */
.nx-event-summer-solstice {
    --ce-primary: #ff7e05;
    --ce-primary-rgb: 255, 126, 5;
    --ce-secondary: #ffd700;
    --ce-bg-glow: radial-gradient(circle at 50% 50%, rgba(255, 126, 5, 0.2) 0%, transparent 75%);
    --ce-border: #ff7e05;
    --ce-hero-icon: '☀️';
    --ce-btn-active: #ff7e05;
    --ce-btn-hover: #ff6a00;
    --ce-text-glow: 0 0 15px rgba(255, 126, 5, 0.8);
}

/* --- FERRAGOSTO --- */
.nx-event-ferragosto {
    --ce-primary: #ffa07a;
    --ce-primary-rgb: 255, 160, 122;
    --ce-secondary: #0d3b66;
    /* Deep Sea Blue for Contrast */
    --ce-bg-glow: radial-gradient(circle at 50% 50%, rgba(255, 160, 122, 0.1) 0%, rgba(13, 59, 102, 0.05) 100%);
    --ce-border: #ffa07a;
    --ce-hero-icon: '🏖️';
    --ce-btn-active: #0d3b66;
    --ce-btn-hover: #0a2e50;
    --ce-text-glow: 0 0 10px rgba(13, 59, 102, 0.3);
}

/* --- OGNISSANTI --- */
.nx-event-all-saints {
    --ce-primary: #800080;
    --ce-primary-rgb: 128, 0, 128;
    --ce-secondary: #ffd700;
    --ce-bg-glow: radial-gradient(circle at 50% 50%, rgba(128, 0, 128, 0.2) 0%, transparent 75%);
    --ce-border: #800080;
    --ce-btn-active: #800080;
    --ce-btn-hover: #660066;
    --ce-text-glow: 0 0 10px rgba(128, 0, 128, 0.6);
}

/* --- IMMACOLATA CONCEZIONE --- */
.nx-event-immaculate {
    --ce-primary: #4169e1;
    --ce-primary-rgb: 65, 105, 225;
    --ce-secondary: #ffd700;
    --ce-bg-glow: radial-gradient(circle at 50% 50%, rgba(65, 105, 225, 0.2) 0%, transparent 75%);
    --ce-border: #4169e1;
    --ce-btn-active: #4169e1;
    --ce-btn-hover: #3158c0;
    --ce-text-glow: 0 0 10px rgba(65, 105, 225, 0.6);
}

/* --- SANTO STEFANO --- */
.nx-event-boxing-day {
    --ce-primary: #dc143c;
    --ce-primary-rgb: 220, 20, 60;
    --ce-secondary: #ffd700;
    --ce-bg-glow: radial-gradient(circle at 50% 50%, rgba(220, 20, 60, 0.2) 0%, transparent 75%);
    --ce-border: #dc143c;
    --ce-btn-active: #dc143c;
    --ce-btn-hover: #b01030;
    --ce-text-glow: 0 0 10px rgba(220, 20, 60, 0.6);
}

/* --- SAN SILVESTRO --- */
.nx-event-new-year-eve {
    --ce-primary: #ffd700;
    --ce-primary-rgb: 255, 215, 0;
    --ce-secondary: #1a1a1a;
    --ce-bg-glow: radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.3) 0%, transparent 75%);
    --ce-border: #ffd700;
    --ce-btn-active: #ffd700;
    --ce-btn-hover: #e6c200;
    --ce-text-glow: 0 0 20px rgba(255, 215, 0, 1);
}

/* --- GIORNATE INTERNAZIONALI --- */
.nx-event-international {
    --ce-primary: #34c759;
    --ce-primary-rgb: 52, 199, 89;
    --ce-secondary: #ffffff;
    --ce-bg-glow: radial-gradient(circle at 50% 50%, rgba(52, 199, 89, 0.15) 0%, transparent 70%);
    --ce-border: #34c759;
    --ce-btn-active: #34c759;
    --ce-btn-hover: #2db54f;
    --ce-text-glow: 0 0 12px rgba(52, 199, 89, 0.7);
}

/* --- ANNIVERSARIO GOLD --- */
.nx-event-anniversary {
    --ce-primary: #ffd700;
    --ce-primary-rgb: 255, 215, 0;
    --ce-secondary: #000000;
    --ce-bg-glow: radial-gradient(circle at 50% 10%, rgba(255, 215, 0, 0.2) 0%, transparent 80%);
    --ce-border: #ffd700;
    --ce-btn-active: #ffd700;
    --ce-btn-hover: #e6c200;
    --ce-text-glow: 0 0 15px rgba(255, 215, 0, 0.9);
}

/* --- FESTA DELL'ALBERO --- */
.nx-event-tree-day {
    --ce-primary: #228b22;
    --ce-primary-rgb: 34, 139, 34;
    --ce-secondary: #ffd700;
    --ce-bg-glow: radial-gradient(circle at 50% 50%, rgba(34, 139, 34, 0.2) 0%, transparent 75%);
    --ce-border: #228b22;
    --ce-btn-active: #228b22;
    --ce-btn-hover: #1a6b1a;
    --ce-text-glow: 0 0 10px rgba(34, 139, 34, 0.6);
}

/* --- GIORNATA MONDIALE DELL'ACQUA --- */
.nx-event-water-day {
    --ce-primary: #00b4d8;
    --ce-primary-rgb: 0, 180, 216;
    --ce-secondary: #ffffff;
    --ce-bg-glow: radial-gradient(circle at 50% 50%, rgba(0, 180, 216, 0.2) 0%, transparent 75%);
    --ce-border: #00b4d8;
    --ce-hero-icon: '💧';
    --ce-btn-active: #00b4d8;
    --ce-btn-hover: #0096c7;
    --ce-text-glow: 0 0 10px rgba(0, 180, 216, 0.6);
}

/* --- PRE-LANCIO FUTURISTICO --- */
.nx-event-pre-launch {
    --ce-primary: #00d2ff;
    --ce-primary-rgb: 0, 210, 255;
    --ce-secondary: #ffffff;
    --ce-bg-glow: radial-gradient(circle at 50% 50%, rgba(0, 210, 255, 0.25) 0%, transparent 75%);
    --ce-border: #00d2ff;
    --ce-hero-icon: '🚀';
    --ce-btn-active: #00d2ff;
    --ce-btn-hover: #00b4db;
    --ce-text-glow: 0 0 15px rgba(0, 210, 255, 0.9);
}

/* --- SUPER OFFERTE --- */
.nx-event-super-offers {
    --ce-primary: #bf5af2;
    --ce-primary-rgb: 191, 90, 242;
    --ce-secondary: #ffffff;
    --ce-bg-glow: radial-gradient(circle at 50% 10%, rgba(191, 90, 242, 0.2) 0%, transparent 80%);
    --ce-border: #bf5af2;
    --ce-hero-icon: '⚡';
    --ce-btn-active: #bf5af2;
    --ce-btn-hover: #ac4dd9;
    --ce-text-glow: 0 0 15px rgba(191, 90, 242, 0.8);
}

/* ============================================
   NATALE - ATMOSFERA MAGICA
   ============================================ */

.nx-event-christmas {
    --ce-primary: #ff2e2e;
    --ce-primary-rgb: 255, 46, 46;
    --ce-secondary: #ffd700;
    --ce-secondary-rgb: 255, 215, 0;
    --ce-bg-glow: radial-gradient(circle at 50% 15%, rgba(255, 46, 46, 0.15) 0%, rgba(255, 215, 0, 0.05) 50%, transparent 80%);
    --ce-border: goldenrod;
    --ce-gold: goldenrod;
    --ce-btn-active: #ff2e2e;
    --ce-btn-hover: #cc0000;
    --ce-text-glow: 0 0 12px #daa520b5;
    --ce-gold-glow: 0 0 20px #daa52087;
}

/* Natale ha già la sua icona dominante (Stella), nascondiamo quella globale */
.nx-event-christmas .nx-celebration-decorator {
    display: none !important;
}

/* ============================================
   NATALE - DECORAZIONI SOTILI E MAGICHE
   ============================================ */

/* Grande Stella Cadente nel Body (non nella nav) */
.nx-event-christmas .hero-section {
    position: relative;
    overflow: hidden;
}

.nx-event-christmas .hero-section::before {
    content: '⭐';
    position: absolute;
    top: 50%;
    left: 8%;
    transform: translateY(-50%) rotate(-5deg);
    font-size: 150px;
    opacity: 0.25;
    pointer-events: none;
    z-index: 1;
    animation: starGlow 3s ease-in-out infinite, heroIconFloat 8s ease-in-out infinite;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.8));
}

@keyframes starGlow {

    0%,
    100% {
        opacity: 0.2;
        transform: translateY(-50%) rotate(-5deg) scale(1);
    }

    50% {
        opacity: 0.4;
        transform: translateY(-50%) rotate(-5deg) scale(1.1);
    }
}

@keyframes starGlow {

    0%,
    100% {
        opacity: 0.2;
        transform: scale(1) rotate(0deg);
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2) rotate(5deg);
        text-shadow: 0 0 30px rgba(255, 215, 0, 0.9);
    }
}

@keyframes starDrift {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(-15px, 10px) rotate(3deg);
    }

    75% {
        transform: translate(10px, -5px) rotate(-2deg);
    }

    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

/* Fiocchi di neve che cadono delicatamente (non lineare, ma fluttuante) */
.snowflake {
    position: fixed;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    pointer-events: none;
    z-index: 1002;
    animation: snowfallFloat linear forwards;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

@keyframes snowfallFloat {
    0% {
        transform: translateY(-10vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.4;
    }

    100% {
        transform: translateY(110vh) rotate(360deg);
        opacity: 0;
    }
}

/* Fiocchi di neve nella nav - effetto brina, non animazione lineare */
.nx-event-christmas .main-navigation {
    background: linear-gradient(135deg, rgba(255, 46, 46, 0.08) 0%, rgba(10, 0, 0, 0.3) 100%) !important;
    backdrop-filter: blur(12px);
    border-bottom: 2px solid rgba(255, 215, 0, 0.3) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.nx-event-christmas .main-navigation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background-image: radial-gradient(circle at 20% 40%, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
    opacity: 0.4;
}

/* Piccoli fiocchi di neve statici nella nav - effetto brina */
.nav-links a {
    position: relative;
    transition: all 0.3s ease;
}

.nx-event-christmas .nav-links a::after {
    content: '❄️';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    opacity: 0;
    transition: all 0.3s ease;
}

.nx-event-christmas .nav-links a:hover::after {
    opacity: 0.6;
    bottom: -12px;
}

/* ============================================
   MATRIX-ENTRY-NODE & ENTRY-NODE-ICON - ORO E REGALI
   ============================================ */

.nx-event-christmas .matrix-entry-node {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 46, 46, 0.03) 0%, rgba(255, 215, 0, 0.05) 100%) !important;
    border: 1px solid rgba(255, 215, 0, 0.3) !important;
    border-radius: 16px !important;
    /* box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1), 0 0 15px rgba(255, 215, 0, 0.2) !important; */
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1) !important;
    overflow: hidden !important;
}

.nx-event-christmas .matrix-entry-node::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg,
            rgba(255, 215, 0, 0.4),
            rgba(255, 46, 46, 0.3),
            rgba(255, 215, 0, 0.4));
    border-radius: 18px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.nx-event-christmas .matrix-entry-node:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2), 0 0 25px rgba(255, 215, 0, 0.5) !important;
}

.nx-event-christmas .matrix-entry-node:hover::before {
    opacity: 1;
}

/* ENTRY-NODE-ICON - ORO LUCENTE */
.nx-event-christmas .entry-node-icon {
    background: linear-gradient(135deg, #ffd700 0%, #ffb347 100%) !important;
    color: #fff !important;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
    border-radius: 12px !important;
    transition: all 0.3s ease !important;
}

.nx-event-christmas .entry-node-icon:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.8) !important;
}

/* ENTRY-ACTION-TRIGGER */
.nx-event-christmas .entry-action-trigger {
    background: linear-gradient(135deg, #ff2e2e 0%, #cc0000 100%) !important;
    color: #ffd700 !important;
    border: 1px solid rgba(255, 215, 0, 0.5) !important;
    box-shadow: 0 2px 10px rgba(255, 46, 46, 0.3) !important;
    transition: all 0.3s ease !important;
}

.nx-event-christmas .entry-action-trigger:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 46, 46, 0.5) !important;
    color: #fff !important;
}

/* ============================================
   NATALE - ICONE DECORATIVE FLOATING (GIFTS & STARS)
   ============================================ */

.christmas-gifts {
    position: fixed;
    bottom: 30px;
    left: 20px;
    display: flex;
    gap: 20px;
    z-index: 1001;
    pointer-events: none;
    animation: giftFloat 3s ease-in-out infinite;
}

.christmas-gift-icon {
    width: 45px !important;
    height: 45px !important;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
}

.christmas-gift-icon:nth-child(1) {
    color: #ff4d6d !important;
    animation: giftWobble 2.5s ease-in-out infinite;
    animation-delay: 0s;
}

.christmas-gift-icon:nth-child(2) {
    color: #ffd700 !important;
    animation: giftWobble 2.5s ease-in-out infinite;
    animation-delay: 0.5s;
}

.christmas-gift-icon:nth-child(3) {
    color: #2ecc71 !important;
    animation: giftWobble 2.5s ease-in-out infinite;
    animation-delay: 1s;
}

@keyframes giftFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes giftWobble {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-3px) rotate(-3deg);
    }

    75% {
        transform: translateY(-6px) rotate(3deg);
    }
}

/* Stelle cadenti nel body (effetto magico) */
.shooting-star {
    position: fixed;
    width: 2px;
    height: 2px;
    background: linear-gradient(45deg, #ffd700, #ffaa00);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1000;
    animation: shootingStar 3s linear forwards;
    box-shadow: 0 0 10px 2px rgba(255, 215, 0, 0.8);
}

@keyframes shootingStar {
    0% {
        transform: translateX(0) translateY(0) rotate(45deg);
        opacity: 1;
        width: 2px;
        height: 2px;
    }

    50% {
        opacity: 1;
        width: 4px;
        height: 4px;
        box-shadow: 0 0 20px 5px rgba(255, 215, 0, 0.9);
    }

    100% {
        transform: translateX(300px) translateY(200px) rotate(45deg);
        opacity: 0;
        width: 1px;
        height: 1px;
    }
}

/* ============================================
   NATALE - BOTTONI CON EFFETTO REGALO
   ============================================ */

.nx-event-christmas .nx-btn-filter-trigger,
.nx-event-christmas .nx-btn-discovery,
.nx-event-christmas .btn-primary {
    background: linear-gradient(135deg, #ff2e2e 0%, #cc0000 100%) !important;
    color: #ffd700 !important;
    border: 1px solid rgba(255, 215, 0, 0.5) !important;
    box-shadow: 0 2px 8px rgba(255, 46, 46, 0.3) !important;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1) !important;
    position: relative;
    overflow: hidden;
}

.nx-event-christmas .nx-btn-filter-trigger::before,
.nx-event-christmas .nx-btn-discovery::before,
.nx-event-christmas .btn-primary::before {
    content: '🎁';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s ease;
}

.nx-event-christmas .nx-btn-filter-trigger:hover::before,
.nx-event-christmas .nx-btn-discovery:hover::before,
.nx-event-christmas .btn-primary:hover::before {
    left: 10px;
    opacity: 0.6;
}

.nx-event-christmas .nx-btn-filter-trigger:hover,
.nx-event-christmas .nx-btn-discovery:hover,
.nx-event-christmas .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 46, 46, 0.5) !important;
    padding-left: 35px !important;
}

/* ============================================
   NATALE - CARDS CON BORDI DORATI
   ============================================ */

.nx-event-christmas .nx-rec-card,
.nx-event-christmas .property-card,
.nx-event-christmas .nx-node-card,
.nx-event-christmas .listing-card {
    border-top: 3px solid #ffd700 !important;
    border-left: 1px solid rgba(255, 215, 0, 0.3) !important;
    border-right: 1px solid rgba(255, 215, 0, 0.3) !important;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2) !important;
    background: linear-gradient(135deg, rgba(255, 46, 46, 0.02) 0%, rgba(255, 215, 0, 0.02) 100%) !important;
    transition: all 0.4s ease !important;
}

.nx-event-christmas .nx-rec-card:hover,
.nx-event-christmas .property-card:hover {
    border-top: 3px solid #ffd700 !important;
    box-shadow: 0 15px 35px rgba(255, 215, 0, 0.2), 0 0 20px rgba(255, 215, 0, 0.1) !important;
    transform: translateY(-3px);
}

/* ============================================
   NATALE - GLOW EFFETTO GENERALE
   ============================================ */

.nx-event-christmas .nav-brand span {
    color: #ffd700 !important;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.8), 0 0 30px rgba(255, 46, 46, 0.5) !important;
}

.nx-event-christmas .hero-section h1,
.nx-event-christmas .hero-section h2 {
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

/* ============================================
   ALTRI EVENTI (mantenuti ma con atmosfera simile)
   ============================================ */

/* Pasqua - atmosfera primaverile */
.nx-event-easter {
    --ce-primary: #f3e58c;
    --ce-primary-rgb: 243, 229, 140;
    --ce-secondary: #1a1a1a;
    --ce-bg-glow: radial-gradient(circle at 50% 50%, rgba(243, 229, 140, 0.25) 0%, transparent 75%);
    --ce-border: #f3e58c;
    --ce-btn-active: #f3e58c;
    --ce-btn-hover: #e6d67e;
    --ce-text-glow: 0 0 15px rgba(243, 229, 140, 0.9);
}

/* San Valentino */
.nx-event-valentine {
    --ce-primary: #ff4d6d;
    --ce-primary-rgb: 255, 77, 109;
    --ce-secondary: #ffffff;
    --ce-bg-glow: radial-gradient(circle at 50% 50%, rgba(255, 77, 109, 0.25) 0%, transparent 75%);
    --ce-border: #ff4d6d;
    --ce-btn-active: #ff4d6d;
    --ce-btn-hover: #e64462;
    --ce-text-glow: 0 0 12px rgba(255, 77, 109, 0.8);
}

/* Halloween */
.nx-event-halloween {
    --ce-primary: #ff6600;
    --ce-primary-rgb: 255, 102, 0;
    --ce-secondary: #000000;
    --ce-bg-glow: radial-gradient(circle at 50% 50%, rgba(255, 102, 0, 0.2) 0%, transparent 75%);
    --ce-border: #ff6600;
    --ce-btn-active: #ff6600;
    --ce-btn-hover: #e65c00;
    --ce-text-glow: 0 0 12px rgba(255, 102, 0, 0.7);
}

/* Pre-Lancio Futuristico */
.nx-event-pre-launch {
    --ce-primary: #00d2ff;
    --ce-primary-rgb: 0, 210, 255;
    --ce-secondary: #ffffff;
    --ce-bg-glow: radial-gradient(circle at 50% 50%, rgba(0, 210, 255, 0.25) 0%, transparent 75%);
    --ce-border: #00d2ff;
    --ce-btn-active: #00d2ff;
    --ce-btn-hover: #00b4db;
    --ce-text-glow: 0 0 15px rgba(0, 210, 255, 0.9);
}

/* Super Offerte */
.nx-event-super-offers {
    --ce-primary: #bf5af2;
    --ce-primary-rgb: 191, 90, 242;
    --ce-secondary: #ffffff;
    --ce-bg-glow: radial-gradient(circle at 50% 10%, rgba(191, 90, 242, 0.2) 0%, transparent 80%);
    --ce-border: #bf5af2;
    --ce-btn-active: #bf5af2;
    --ce-btn-hover: #ac4dd9;
    --ce-text-glow: 0 0 15px rgba(191, 90, 242, 0.8);
}

/* Giornate Internazionali */
.nx-event-international {
    --ce-primary: #34c759;
    --ce-primary-rgb: 52, 199, 89;
    --ce-secondary: #ffffff;
    --ce-bg-glow: radial-gradient(circle at 50% 50%, rgba(52, 199, 89, 0.15) 0%, transparent 70%);
    --ce-border: #34c759;
    --ce-btn-active: #34c759;
    --ce-btn-hover: #2db54f;
    --ce-text-glow: 0 0 12px rgba(52, 199, 89, 0.7);
}

/* Anniversario Gold */
.nx-event-anniversary {
    --ce-primary: #ffd700;
    --ce-primary-rgb: 255, 215, 0;
    --ce-secondary: #000000;
    --ce-bg-glow: radial-gradient(circle at 50% 10%, rgba(255, 215, 0, 0.2) 0%, transparent 80%);
    --ce-border: #ffd700;
    --ce-btn-active: #ffd700;
    --ce-btn-hover: #e6c200;
    --ce-text-glow: 0 0 15px rgba(255, 215, 0, 0.9);
}

/* ============================================
   GLOBAL INTERCEPTION LOGIC
   ============================================ */

/* Universal Decorator & BG */
/*  GLOBAL HERO AURA: 
    Universal Decorative Pattern for NPSP v14.1 (Left Seal)
*/
.nx-event-active .hero-section::before {
    content: var(--ce-hero-icon, '');
    position: absolute;
    top: 50%;
    left: 8%;
    /* Posizionamento a sinistra richiesto */
    transform: translateY(-50%) rotate(-10deg);
    font-size: 140px;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
    /* Dietro i titoli, ma visibile */
    animation: heroIconFloat 6s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(var(--ce-primary-rgb), 0.5));
    transition: all 0.5s ease;
}

@keyframes heroIconFloat {

    0%,
    100% {
        transform: translateY(-50%) rotate(-10deg);
        opacity: 0.15;
    }

    50% {
        transform: translateY(-55%) rotate(-5deg);
        opacity: 0.25;
    }
}

@media (max-width: 768px) {
    .nx-event-active .hero-section::before {
        font-size: 80px;
        left: 5%;
        opacity: 0.1;
    }
}

@keyframes auraFloat {

    0%,
    100% {
        transform: translateY(0) rotate(-5deg) scale(1);
    }

    50% {
        transform: translateY(-20px) rotate(5deg) scale(1.05);
    }
}

@media (max-width: 768px) {
    .nx-celebration-decorator {
        width: 100px !important;
        height: 100px !important;
        bottom: 10px !important;
        left: 10px !important;
        opacity: 0.1;
    }

    .nx-celebration-decorator i,
    .nx-celebration-decorator svg {
        width: 80px !important;
        height: 80px !important;
    }
}

/* Navigation & Brand */
.nx-event-active .nav-brand {
    text-shadow: var(--ce-text-glow) !important;
}

.nx-event-active .nav-brand span {
    color: var(--ce-primary) !important;
}

/* Matrix & Entry Nodes */
.nx-event-active .matrix-entry-node {
    border-color: var(--ce-border) !important;
    box-shadow: 0 0 15px var(--ce-border) !important;
    background: rgba(var(--ce-primary-rgb), 0.05) !important;
}

.nx-event-active .entry-node-icon {
    background: var(--ce-primary) !important;
    color: var(--ce-secondary) !important;
}

.nx-event-active .entry-action-trigger {
    background: var(--ce-primary) !important;
    color: var(--ce-secondary) !important;
    border: none !important;
}

/* Buttons & Filters */
.nx-event-active .nx-btn-filter-trigger,
.nx-event-active .nx-btn-discovery,
.nx-event-active .btn-primary {
    background: rgba(var(--ce-primary-rgb), 0.1) !important;
    border-color: var(--ce-border) !important;
    color: var(--ce-primary) !important;
}

/* Active state buttons */
.nx-event-active .nx-btn-filter-trigger.active,
.nx-event-active .nx-btn-discovery.active,
.nx-event-active .btn-primary.is_active {
    background: var(--ce-btn-active) !important;
    border-color: var(--ce-border) !important;
    color: var(--ce-secondary) !important;
    box-shadow: 0 0 15px var(--ce-border) !important;
}

/* Hover effects */
.nx-event-active .nx-btn-filter-trigger:hover,
.nx-event-active .nx-btn-discovery:hover {
    border-color: var(--ce-primary) !important;
    background: rgba(var(--ce-primary-rgb), 0.15) !important;
    box-shadow: 0 0 10px var(--ce-border) !important;
}

/* Cards & Flow */
.nx-event-active .nx-rec-card,
.nx-event-active .property-card,
.nx-event-active .nx-node-card {
    border-top: 4px solid var(--ce-primary) !important;
    transition: all 0.3s ease !important;
}

.nx-event-active .nx-rec-card:hover {
    box-shadow: 0 15px 35px rgba(var(--ce-primary-rgb), 0.25) !important;
    transform: translateY(-2px) !important;
    background: rgba(var(--ce-primary-rgb), 0.02) !important;
}

/* Feed Grid specific */
.nx-event-active .listing-grid .listing-card {
    border-bottom: 2px solid rgba(var(--ce-primary-rgb), 0.3) !important;
}

/* Dashboard enhancements */
.nx-event-active .stat-card {
    border-left: 3px solid var(--ce-primary) !important;
}

/* Christmas DOMINANCE */
.nx-event-christmas .nx-btn-filter-trigger,
.nx-event-christmas .nx-btn-discovery,
.nx-event-christmas .btn-primary,
.nx-event-christmas .nx-btn-filter-trigger.active,
.nx-event-christmas .nx-btn-discovery.active {
    background: var(--ce-primary) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(255, 46, 46, 0.4) !important;
}

.nx-event-christmas .listing-card {
    border: 1px solid rgba(255, 215, 0, 0.3) !important;
    background: linear-gradient(135deg, rgba(255, 46, 46, 0.02) 0%, rgba(255, 215, 0, 0.02) 100%) !important;
}

/* Theme compatibility */
[data-theme="light"] .nx-celebration-decorator {
    opacity: 0.75;
}

/* ============================================
   CELEBRATION ICON EVOLUTION (FESTIVE AURA)
   ============================================ */
.christmas-decorations {
    position: fixed;
    top: 81px;
    right: 15px;
    display: flex;
    gap: 18px;
    z-index: 1;
    pointer-events: none;
}

.celebration-icon {
    width: 24px !important;
    height: 24px !important;
    color: #fff !important;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.6));
    animation: festiveFloat 4s ease-in-out infinite;
    opacity: 0.9;
    stroke-width: 1.5px;
}

.tree-icon {
    color: #2d6a4f !important;
    filter: drop-shadow(0 0 12px rgba(45, 106, 79, 0.8));
    animation-delay: 0s;
}

.gift-icon {
    color: #ff4d6d !important;
    filter: drop-shadow(0 0 12px rgba(255, 77, 109, 0.8));
    animation-delay: 0.8s;
}

.snowflake-icon {
    color: #ade8f4 !important;
    filter: drop-shadow(0 0 12px rgba(173, 232, 244, 0.8));
    animation-delay: 1.6s;
}

.star-icon {
    color: #ffd700 !important;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.9));
    animation-delay: 2.4s;
}

@keyframes festiveFloat {

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

    50% {
        transform: translateY(-12px) rotate(5deg) scale(1.1);
    }
}

/* ============================================
   CELEBRATION MATRIX & NODE ARCHITECTURE (OPERATIONAL)
   ============================================ */
.matrix-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px 12px 0 0;
}

.matrix-identity {
    display: flex;
    align-items: center;
    gap: 15px;
}

.matrix-icon {
    width: 20px;
    height: 20px;
    color: var(--accent-gold);
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.3));
}

.matrix-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 850;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.matrix-badge {
    padding: 4px 12px;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.nx-sync-arsenal-btn {
    background: var(--accent-gold);
    color: #000 !important;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 800;
    text-decoration: none;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s var(--transition-bounce);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
    cursor: pointer;
}

.nx-sync-arsenal-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
    filter: brightness(1.1);
}

.nx-sync-arsenal-btn i,
.nx-sync-arsenal-btn svg {
    width: 14px;
    height: 14px;
}

.nx-celebration-matrix {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 5px;
}

.nx-celebration-node {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 0.8fr 60px;
    align-items: center;
    background: var(--bg-surface-glass);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 12px 20px;
    transition: all 0.3s var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

.nx-celebration-node:hover {
    transform: translateX(5px);
    border-color: rgba(var(--ce-primary-rgb), 0.3);
    background: linear-gradient(90deg, rgba(var(--ce-primary-rgb), 0.05), transparent);
}

.nx-celebration-node.is-active {
    border-color: var(--ce-primary);
    box-shadow: 0 0 15px rgba(var(--ce-primary-rgb), 0.1);
}

/* Node Identity */
.node-identity {
    display: flex;
    align-items: center;
    gap: 15px;
}

.node-icon {
    width: 36px;
    height: 36px;
    background: rgba(var(--ce-primary-rgb), 0.1);
    border: 1px solid rgba(var(--ce-primary-rgb), 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.node-icon i {
    width: 16px;
    height: 16px;
    color: var(--node-color);
}

.node-name {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-primary);
}

.node-slug {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    opacity: 0.6;
}

/* Chroma System */
.node-chroma {
    display: flex;
    align-items: center;
    gap: 8px;
}

.chroma-pair {
    display: flex;
    gap: 8px;
}

.chroma-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
}

.chroma-label {
    font-size: 0.75rem;
    font-family: var(--font-mono);
    opacity: 0.7;
}

/* Timing System */
.node-timing {
    display: flex;
    justify-content: center;
}

.timing-pill {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.timing-pill.recurring {
    background: rgba(var(--ce-primary-rgb), 0.1);
    color: var(--ce-primary);
    border: 1px solid rgba(var(--ce-primary-rgb), 0.2);
}

.timing-pill.window {
    background: var(--bg-surface-glass);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
}

/* Status System */
.node-status {
    display: flex;
    justify-content: center;
}

.status-indicator {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.nx-celebration-node.is-active .status-indicator {
    color: var(--accent-emerald);
}

.nx-celebration-node.is-standby .status-indicator {
    opacity: 0.5;
}

/* Actions System */
.node-actions {
    display: flex;
    justify-content: flex-end;
}

.status-label {
    font-size: 10px;
    font-weight: 900;
    color: var(--text-placeholder);
    text-transform: uppercase;
    letter-spacing: 0.25em;
    opacity: 0.6;
}

.node-toggle-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: var(--bg-surface-glass);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s var(--transition-bounce);
    display: flex;
    align-items: center;
    justify-content: center;
}

.node-toggle-btn i {
    width: 14px;
    height: 14px;
}

.node-toggle-btn.active {
    background: var(--ce-primary);
    border-color: var(--ce-primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(var(--ce-primary-rgb), 0.3);
}

.node-toggle-btn:hover {
    transform: scale(1.1);
    border-color: var(--ce-primary);
}

/* Mobile Adaptation fallback */
@media (max-width: 768px) {
    .nx-celebration-node {
        grid-template-columns: 1fr auto;
        gap: 15px;
    }

    .node-chroma,
    .node-timing,
    .node-status {
        display: none;
    }
}

/* --- DYNAMIC CELEBRATION DECORATIONS & ANIMATIONS --- */
.christmas-decorations .tree-icon {
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    animation-delay: 0s;
}

.christmas-decorations .gift-icon {
    bottom: 20px;
    right: 20px;
    width: 35px;
    height: 35px;
    animation-delay: 1s;
}

.christmas-decorations .snowflake-icon {
    top: 50%;
    left: 10%;
    width: 30px;
    height: 30px;
    animation-delay: 0.5s;
}

.christmas-decorations .star-icon {
    bottom: 30%;
    right: 15%;
    width: 45px;
    height: 45px;
    animation-delay: 1.5s;
}

.easter-decorations .egg-icon {
    top: 15%;
    left: 5%;
    width: 35px;
    height: 35px;
    animation-delay: 0s;
}

.easter-decorations .rabbit-icon {
    bottom: 20%;
    right: 10%;
    width: 40px;
    height: 40px;
    animation-delay: 0.8s;
}

.easter-decorations .flower-icon {
    top: 40%;
    right: 20%;
    width: 30px;
    height: 30px;
    animation-delay: 1.2s;
}

.valentine-decorations .heart-icon {
    top: 25%;
    left: 15%;
    width: 50px;
    height: 50px;
    animation-delay: 0s;
}

.valentine-decorations .heart-handshake-icon {
    bottom: 30%;
    right: 20%;
    width: 45px;
    height: 45px;
    animation-delay: 0.6s;
}

.valentine-decorations .gem-icon {
    top: 60%;
    left: 30%;
    width: 35px;
    height: 35px;
    animation-delay: 1.2s;
}

.prelaunch-decorations .rocket-icon {
    top: 20%;
    right: 10%;
    width: 50px;
    height: 50px;
    animation: rocketFloat 3s ease-in-out infinite;
}

.prelaunch-decorations .zap-icon {
    bottom: 25%;
    left: 15%;
    width: 40px;
    height: 40px;
    animation: pulseGlow 1.5s ease infinite;
}

.prelaunch-decorations .sparkles-icon {
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    animation: rotateSparkle 4s linear infinite;
}

.offers-decorations .zap-icon {
    top: 30%;
    right: 20%;
    width: 45px;
    height: 45px;
    animation: zapPulse 0.8s ease infinite;
}

.offers-decorations .percent-icon {
    bottom: 20%;
    left: 15%;
    width: 55px;
    height: 55px;
    animation: bouncePercent 1.2s ease infinite;
}

.offers-decorations .sparkles-icon {
    top: 40%;
    left: 10%;
    width: 35px;
    height: 35px;
    animation: sparkleRotate 2s linear infinite;
}

@keyframes floatIcon {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.15;
    }

    50% {
        transform: translateY(-15px) rotate(5deg);
        opacity: 0.3;
    }
}

@keyframes rocketFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(-5deg);
    }
}

@keyframes pulseGlow {

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

    50% {
        opacity: 0.4;
        transform: scale(1.1);
    }
}

@keyframes rotateSparkle {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
        opacity: 0.15;
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
        opacity: 0.3;
    }
}

@keyframes zapPulse {

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

    50% {
        opacity: 0.5;
        transform: scale(1.2);
        filter: drop-shadow(0 0 5px var(--ce-primary));
    }
}

@keyframes bouncePercent {

    0%,
    100% {
        transform: translateY(0);
        opacity: 0.2;
    }

    50% {
        transform: translateY(-10px);
        opacity: 0.4;
    }
}

@keyframes sparkleRotate {
    from {
        transform: rotate(0deg);
        opacity: 0.15;
    }

    to {
        transform: rotate(360deg);
        opacity: 0.3;
    }
}

/* ============================================
   NCE GLOBAL CONTAINERS & HYGIENE
   ============================================ */
.celebration-header-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    overflow: hidden;
    pointer-events: none;
    z-index: 1001;
}