:root {
    /* Standard builder variables */
    --bg-color: #ffffff;
    --bg-base: #ffffff;
    --bg-surface: #ffffff;
    --text-color: #000000;
    --accent: #d4af37;
    --accent-text: #ffffff;
    --header-bg: #0a0f1a;
    --header-text: #f1f5f9;
    --footer-bg: #0a0f1a;
    --footer-text: #f1f5f9;
    --accent-primary: #d4af37;
    --color-accent: #d4af37;
    --primary-color: #d4af37;
    --font-main: 'Inter', sans-serif;
    --card-bg: rgba(0, 0, 0, 0.04);
    --card-border: rgba(0, 0, 0, 0.12);

    /* Template-specific compatibility variables */
    --color-bg-base: #ffffff;
    --color-bg-surface: #ffffff;
    --color-text-main: #000000;
    --color-text-muted: #000000aa;
    --color-accent: #d4af37;
    --color-accent-gold: #d4af37;
    --color-accent-glow: rgba(212, 175, 55, 0.2);
    --font-heading: 'Inter', serif;
    --font-body: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-base);
    color: var(--text-color);
    font-family: var(--font-main);
}

/* Override sezioni specifiche, header, footer e bottoni */
header, .header-corp, .header-net, .header-elite, .header-shop { background-color: var(--header-bg, var(--bg-base)) !important; color: var(--header-text, var(--text-color)) !important; }
header a, .header-corp a, .header-net a, .header-elite a, .header-shop a, header span, .header-corp span, .header-net span, .header-elite span, .header-shop span { color: var(--header-text, var(--text-color)); }
footer, .footer, .nx-footer, .footer-corp, .footer-net, .footer-elite, .footer-shop { background-color: var(--footer-bg, var(--bg-base)) !important; color: var(--footer-text, var(--text-color)) !important; }
footer a, .footer a, .nx-footer a, .footer-corp a, .footer-net a, .footer-elite a, .footer-shop a, footer p, .footer p, .nx-footer p, .footer-corp p, .footer-net p, .footer-elite p, .footer-shop p { color: var(--footer-text, var(--text-color)); }
.btn, .nx-btn--primary, .btn-corp, .btn-shop, button.btn { background: var(--accent) !important; color: var(--accent-text, #ffffff) !important; }
.nx-section:not(.nx-section--hero-video):not(.nx-section--hero-image):not(.nx-section--cta-banner) { background-color: var(--section-bg, var(--bg-base)); color: var(--text-color); }
.nx-section--hero-video h1, .nx-section--hero-video h2, .nx-section--hero-video p, .nx-section--hero-image h1, .nx-section--hero-image h2, .nx-section--hero-image p { color: #ffffff; }
.nx-section .nx-card, .nx-pricing-card, .nx-affiliate-card, .nx-countdown-block { background: var(--card-bg) !important; border-color: var(--card-border) !important; }
