﻿/*==============================================
  MANTOX BLOG - LIGHT THEME INSTITUTIONAL
  File: LightTheme.css
  Descrizione: Tema chiaro elegante e professionale
  Versione: 3.0 - Institutional Edition
==============================================*/

/*----------------------------------------------
  1. LIGHT THEME VARIABLES - INSTITUTIONAL BALANCED
----------------------------------------------*/
[data-theme="light"] {
    /* === CORE COLOR PALETTE - BALANCED HIERARCHY === */
    --theme-bg-primary: #f7fafc; /* Era #fafbfc - più definito */
    --theme-bg-secondary: #edf2f7; /* Era #f1f3f5 - più contrastato */
    --theme-bg-card: #ffffff; /* Cards bianche pure per emergere */
    /* === TEXT COLORS - PROFESSIONAL === */
    --theme-text-primary: #2d3748;
    --theme-text-secondary: #4a5568;
    --theme-text-muted: #718096;
    /* === ACCENT COLORS - CORPORATE === */
    --theme-accent-primary: #5a67d8;
    --theme-accent-secondary: #4299e1;
    /* === UI ELEMENTS - MORE DEFINED === */
    --theme-border-color: #d1d5db;
    --theme-header-border: #cbd5e0;
    --theme-footer-border: #cbd5e0;
    /* === SHADOWS - SLIGHTLY STRONGER === */
    --theme-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.06); /* Era 0.05 */
    --theme-shadow-hover: 0 10px 25px -3px rgba(0, 0, 0, 0.10); /* Era 0.08 */
    --theme-shadow-card: 0 8px 25px rgba(0, 0, 0, 0.06); /* Era 0.04 */
    --theme-shadow-button: 0 6px 20px rgba(90, 103, 216, 0.15);
    --theme-shadow-input: 0 1px 3px rgba(0, 0, 0, 0.05); /* Era 0.03 */
    --theme-shadow-elevated: 0 4px 12px rgba(0, 0, 0, 0.08); /* Era 0.06 */
    /* === GRADIENTS - BALANCED === */
    --theme-gradient-primary: linear-gradient(135deg, #f7fafc 0%, #edf2f7 50%, #e2e8f0 100%);
    --theme-gradient-card: linear-gradient(135deg, rgba(90, 103, 216, 0.01), rgba(66, 153, 225, 0.01));
    --theme-gradient-hero: linear-gradient(135deg, rgba(90, 103, 216, 0.02) 0%, rgba(66, 153, 225, 0.02) 35%, rgba(237, 242, 247, 0.9) 70%, var(--theme-bg-primary) 100%);
    /* === OVERLAYS & TRANSPARENCY - DEFINED === */
    --theme-overlay-light: rgba(255, 255, 255, 0.05);
    --theme-overlay-medium: rgba(255, 255, 255, 0.15);
    --theme-overlay-heavy: rgba(255, 255, 255, 0.4);
    --theme-filters-bg: rgba(226, 232, 240, 0.95); /* Più definito */
    /* === INSTITUTIONAL SURFACES - HIERARCHY === */
    --theme-surface-1: #f7fafc; /* Era #fafbfc */
    --theme-surface-2: #edf2f7; /* Era #f7fafc */
    --theme-surface-3: #e2e8f0; /* Era #edf2f7 */
    --theme-warning-bg: rgba(237, 137, 54, 0.03);
    --theme-warning-border: rgba(237, 137, 54, 0.15);
    --theme-warning-text: #c05621;
    --theme-info-bg: rgba(90, 103, 216, 0.03);
    --theme-info-border: rgba(90, 103, 216, 0.12);
}

    /*----------------------------------------------
  2. GLOBAL BACKGROUND & BODY - INSTITUTIONAL
----------------------------------------------*/
    [data-theme="light"] body {
        background:
        /* Nodi molecolari più visibili */
        radial-gradient(circle at 50% 50%, rgba(90, 103, 216, 0.25) 3px, rgba(90, 103, 216, 0.08) 4px, transparent 5px),
        /* Esagoni con gradienti conici più marcati */
        conic-gradient(from 0deg at 50% 50%, transparent 0deg, rgba(90, 103, 216, 0.08) 60deg, transparent 60deg, transparent 120deg, rgba(66, 153, 225, 0.08) 180deg, transparent 180deg, transparent 240deg, rgba(90, 103, 216, 0.08) 300deg, transparent 300deg ),
        /* Collegamenti molecolari */
        linear-gradient(30deg, transparent 48.5%, rgba(209, 213, 219, 0.4) 49.5%, rgba(209, 213, 219, 0.4) 50.5%, transparent 51.5%), linear-gradient(90deg, transparent 48.5%, rgba(209, 213, 219, 0.4) 49.5%, rgba(209, 213, 219, 0.4) 50.5%, transparent 51.5%), linear-gradient(150deg, transparent 48.5%, rgba(209, 213, 219, 0.4) 49.5%, rgba(209, 213, 219, 0.4) 50.5%, transparent 51.5%), var(--theme-gradient-primary);
        background-size: 80px 80px, 80px 80px, 80px 80px, 80px 80px, 80px 80px, 100% 100%;
        background-position: 0 0, 40px 23px, 0 0, 0 0, 0 0, 0 0;
        background-attachment: fixed;
    }




    /*----------------------------------------------
  3. HEADER SYSTEM - INSTITUTIONAL STYLE
----------------------------------------------*/

    /* Main header */
    [data-theme="light"] .header {
        background: linear-gradient(135deg, rgba(220, 230, 240, 0.95) 0%, /* Più scuro */
        rgba(200, 220, 235, 0.98) 50%, /* Molto più scuro */
        rgba(220, 230, 240, 0.95) 100% /* Più scuro */
        );
        backdrop-filter: blur(12px);
        border-bottom: 2px solid #cbd5e0;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }

        /* Logo styling - Professional gradient */
    [data-theme="light"] .logo {
        background: linear-gradient(135deg, var(--theme-accent-primary), var(--theme-accent-secondary));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    [data-theme="light"] .brand-name {
        color: var(--theme-text-muted);
    }

        [data-theme="light"] .brand-name::before {
            opacity: 0.7;
        }

    /* Header title section */
    [data-theme="light"] .header-title {
        background: var(--theme-bg-secondary);
        border: 1px solid var(--theme-border-color);
        box-shadow: var(--theme-shadow-input);
    }

        [data-theme="light"] .header-title h1 {
            background: linear-gradient(135deg, var(--theme-text-primary), var(--theme-accent-primary));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

    /* Special number - Elegant gradient */
    [data-theme="light"] .special-number {
        background: linear-gradient(135deg, var(--theme-accent-primary), var(--theme-accent-secondary), #ed8936);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

        [data-theme="light"] .special-number::before {
            background: linear-gradient(135deg, var(--theme-accent-primary), var(--theme-accent-secondary));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            opacity: 0.12;
        }

    /*----------------------------------------------
  4. NAVIGATION CONTROLS - PROFESSIONAL
----------------------------------------------*/

    /* Language switch */
    [data-theme="light"] .language-switch {
        background: var(--theme-bg-card);
        border: 1px solid var(--theme-border-color);
        box-shadow: var(--theme-shadow-input);
    }

    [data-theme="light"] .lang-btn {
        color: var(--theme-text-secondary);
    }

        [data-theme="light"] .lang-btn.active {
            background: var(--theme-accent-primary);
            color: white;
            box-shadow: 0 2px 4px rgba(90, 103, 216, 0.2);
        }

        [data-theme="light"] .lang-btn:hover:not(.active) {
            background: rgba(90, 103, 216, 0.06);
            color: var(--theme-text-primary);
        }

    /* Theme toggle */
    [data-theme="light"] .theme-toggle-btn:hover {
        background: rgba(90, 103, 216, 0.08);
    }

    [data-theme="light"] .toggle-track {
        background: var(--theme-bg-card);
        border: 2px solid var(--theme-border-color);
        box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
    }

    [data-theme="light"] .toggle-thumb {
        background: linear-gradient(135deg, var(--theme-accent-primary), var(--theme-accent-secondary));
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
    }

    [data-theme="light"] .theme-toggle-btn:hover .toggle-thumb {
        box-shadow: 0 4px 8px rgba(90, 103, 216, 0.25);
    }

    /*----------------------------------------------
  5. BUTTONS - CORPORATE STYLE
----------------------------------------------*/

    /* Primary buttons */
    [data-theme="light"] .btn-primary:hover {
        box-shadow: var(--theme-shadow-button);
    }

    /* Secondary buttons */
    [data-theme="light"] .btn-secondary {
        color: var(--theme-accent-primary);
        border-color: var(--theme-accent-primary);
    }

        [data-theme="light"] .btn-secondary:hover {
            background: var(--theme-accent-primary);
            color: white;
            box-shadow: 0 4px 12px rgba(90, 103, 216, 0.18);
        }

    /* Specialized buttons */
    [data-theme="light"] .all-news-btn {
        color: var(--theme-accent-primary);
        border-color: var(--theme-accent-primary);
    }

        [data-theme="light"] .all-news-btn:hover {
            background: var(--theme-accent-primary);
            color: white;
            box-shadow: 0 6px 20px rgba(90, 103, 216, 0.2);
        }

        [data-theme="light"] .all-news-btn::before {
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
        }

    [data-theme="light"] .read-more-btn-centered:hover {
        box-shadow: var(--theme-shadow-button);
    }

    /* Utility buttons */
    [data-theme="light"] .clear-filters-btn,
    [data-theme="light"] .load-more-btn {
        color: var(--theme-accent-primary);
        border-color: var(--theme-accent-primary);
    }

        [data-theme="light"] .clear-filters-btn:hover,
        [data-theme="light"] .load-more-btn:hover {
            background: var(--theme-accent-primary);
            color: white;
            box-shadow: 0 4px 12px rgba(90, 103, 216, 0.18);
        }

    /*----------------------------------------------
  6. FORM ELEMENTS - REFINED
----------------------------------------------*/

    /* Input fields */
    [data-theme="light"] .search-input,
    [data-theme="light"] .filter-select,
    [data-theme="light"] .input-base {
        background: var(--theme-bg-card);
        border: 2px solid var(--theme-border-color);
        color: var(--theme-text-primary);
        box-shadow: var(--theme-shadow-input);
    }

        [data-theme="light"] .search-input:focus,
        [data-theme="light"] .filter-select:focus,
        [data-theme="light"] .input-base:focus {
            border-color: var(--theme-accent-primary);
            background: var(--theme-bg-secondary);
            box-shadow: 0 0 0 3px rgba(90, 103, 216, 0.08);
        }

        [data-theme="light"] .search-input::placeholder,
        [data-theme="light"] .input-base::placeholder {
            color: var(--theme-text-muted);
        }

    /* Search icon */
    [data-theme="light"] .search-icon {
        color: var(--theme-text-muted);
    }

    /*----------------------------------------------
  7. FILTERS SECTION - CLEAN
----------------------------------------------*/
    /*----------------------------------------------
  7. FILTERS SECTION - CLEAN
----------------------------------------------*/
    [data-theme="light"] .filters-section-container {
        background: var(--theme-bg-secondary); /* #edf2f7 - STESSO dell'header-title */
        backdrop-filter: blur(12px);
        border-bottom: 2px solid #cbd5e0; /* Bordo più marcato */
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06); /* Ombra più definita */
    }


    [data-theme="light"] .results-info {
        color: var(--theme-text-muted);
    }

    /*----------------------------------------------
  8. CARDS SYSTEM - ELEGANT FLOATING
----------------------------------------------*/

    /* Base card styling */
    [data-theme="light"] .news-card,
    [data-theme="light"] .card-base {
        background: var(--theme-bg-card);
        border: 1px solid var(--theme-border-color);
        box-shadow: var(--theme-shadow-card);
    }

        [data-theme="light"] .news-card:hover,
        [data-theme="light"] .card-base:hover {
            box-shadow: var(--theme-shadow-hover);
            border-color: var(--theme-accent-primary);
            transform: translateY(-4px);
        }

    /* Card content */
    [data-theme="light"] .card-meta {
        color: var(--theme-text-muted);
    }

    [data-theme="light"] .card-title {
        color: var(--theme-text-primary);
    }

    [data-theme="light"] .card-excerpt {
        color: var(--theme-text-secondary);
    }

    /* Badges and tags */
    [data-theme="light"] .category-badge {
        background: var(--theme-info-bg);
        color: var(--theme-accent-primary);
        border: 1px solid var(--theme-info-border);
    }

    [data-theme="light"] .tag {
        background: rgba(66, 153, 225, 0.06);
        color: var(--theme-accent-secondary);
        border: 1px solid rgba(66, 153, 225, 0.12);
    }

    /*----------------------------------------------
  9. NEWS PAGE - INSTITUTIONAL
----------------------------------------------*/
    [data-theme="light"] .news-page {
        background:
        /* Pattern molecolare */
        radial-gradient(circle at 50% 50%, rgba(90, 103, 216, 0.25) 3px, rgba(90, 103, 216, 0.08) 4px, transparent 5px), conic-gradient(from 0deg at 50% 50%, transparent 0deg, rgba(90, 103, 216, 0.08) 60deg, transparent 60deg, transparent 120deg, rgba(66, 153, 225, 0.08) 180deg, transparent 180deg, transparent 240deg, rgba(90, 103, 216, 0.08) 300deg, transparent 300deg ), linear-gradient(30deg, transparent 48.5%, rgba(209, 213, 219, 0.4) 49.5%, rgba(209, 213, 219, 0.4) 50.5%, transparent 51.5%), linear-gradient(90deg, transparent 48.5%, rgba(209, 213, 219, 0.4) 49.5%, rgba(209, 213, 219, 0.4) 50.5%, transparent 51.5%), linear-gradient(150deg, transparent 48.5%, rgba(209, 213, 219, 0.4) 49.5%, rgba(209, 213, 219, 0.4) 50.5%, transparent 51.5%), var(--theme-gradient-primary);
        background-size: 80px 80px, 80px 80px, 80px 80px, 80px 80px, 80px 80px, 100% 100%;
        background-position: 0 0, 40px 23px, 0 0, 0 0, 0 0, 0 0;
        background-attachment: fixed;
        min-height: 100vh;
    }


    [data-theme="light"] .news-header {
        background: var(--theme-header-bg);
        backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--theme-border-color);
        box-shadow: var(--theme-shadow-input);
    }

    /*----------------------------------------------
  10. ARTICLE PAGE - PROFESSIONAL
----------------------------------------------*/
    [data-theme="light"] .article-page {
        background:
        /* Pattern molecolare */
        radial-gradient(circle at 50% 50%, rgba(90, 103, 216, 0.25) 3px, rgba(90, 103, 216, 0.08) 4px, transparent 5px), conic-gradient(from 0deg at 50% 50%, transparent 0deg, rgba(90, 103, 216, 0.08) 60deg, transparent 60deg, transparent 120deg, rgba(66, 153, 225, 0.08) 180deg, transparent 180deg, transparent 240deg, rgba(90, 103, 216, 0.08) 300deg, transparent 300deg ), linear-gradient(30deg, transparent 48.5%, rgba(209, 213, 219, 0.4) 49.5%, rgba(209, 213, 219, 0.4) 50.5%, transparent 51.5%), linear-gradient(90deg, transparent 48.5%, rgba(209, 213, 219, 0.4) 49.5%, rgba(209, 213, 219, 0.4) 50.5%, transparent 51.5%), linear-gradient(150deg, transparent 48.5%, rgba(209, 213, 219, 0.4) 49.5%, rgba(209, 213, 219, 0.4) 50.5%, transparent 51.5%), var(--theme-gradient-primary);
        background-size: 80px 80px, 80px 80px, 80px 80px, 80px 80px, 80px 80px, 100% 100%;
        background-position: 0 0, 40px 23px, 0 0, 0 0, 0 0, 0 0;
        background-attachment: fixed;
        min-height: 100vh;
    }


    /* Breadcrumb */
    [data-theme="light"] .breadcrumb {
        border-bottom: 1px solid var(--theme-border-color);
    }

    /* Full article container */
    [data-theme="light"] .full-article {
        background: var(--theme-bg-card);
        border: 1px solid var(--theme-border-color);
        box-shadow: var(--theme-shadow-elevated);
    }

    /* Article header */
    [data-theme="light"] .article-header {
        background: linear-gradient(135deg, var(--theme-info-bg), rgba(66, 153, 225, 0.02));
    }

    [data-theme="light"] .publish-date {
        color: var(--theme-text-secondary); /* Era text-muted - ora più scuro */
    }

    /* Article title */
    [data-theme="light"] .article-title {
        color: var(--theme-text-primary);
    }

    /* Hashtags */
    [data-theme="light"] .hashtag {
        background: var(--theme-info-bg);
        color: var(--theme-accent-primary);
        border: 1px solid var(--theme-info-border);
        box-shadow: var(--theme-shadow-input);
    }

    /* Article content */
    [data-theme="light"] .article-content {
        color: var(--theme-text-secondary);
    }

        [data-theme="light"] .article-content p:first-child {
            color: var(--theme-text-primary);
        }

    /* Article footer */
    [data-theme="light"] .article-footer {
        border-top: 1px solid var(--theme-border-color);
        background: var(--theme-surface-2);
    }

    /* Source info */
    [data-theme="light"] .source-info {
        background: var(--theme-bg-secondary);
        border: 1px solid var(--theme-border-color);
        box-shadow: var(--theme-shadow-elevated);
    }

        [data-theme="light"] .source-info:hover {
            box-shadow: var(--theme-shadow-hover);
            border-color: var(--theme-accent-primary);
        }

    [data-theme="light"] .source-label {
        color: var(--theme-text-primary) !important;
    }

    [data-theme="light"] .external-source {
        background: var(--theme-info-bg);
        border-color: var(--theme-info-border);
        color: var(--theme-accent-primary);
    }

        [data-theme="light"] .external-source:hover {
            background: rgba(90, 103, 216, 0.06);
            color: var(--theme-accent-secondary);
            box-shadow: 0 2px 4px rgba(90, 103, 216, 0.08);
        }

    /*----------------------------------------------
  11. LEGAL PAGES - INSTITUTIONAL
----------------------------------------------*/
    [data-theme="light"] .legal-page {
        background:
        /* Pattern molecolare */
        radial-gradient(circle at 50% 50%, rgba(90, 103, 216, 0.25) 3px, rgba(90, 103, 216, 0.08) 4px, transparent 5px), conic-gradient(from 0deg at 50% 50%, transparent 0deg, rgba(90, 103, 216, 0.08) 60deg, transparent 60deg, transparent 120deg, rgba(66, 153, 225, 0.08) 180deg, transparent 180deg, transparent 240deg, rgba(90, 103, 216, 0.08) 300deg, transparent 300deg ), linear-gradient(30deg, transparent 48.5%, rgba(209, 213, 219, 0.4) 49.5%, rgba(209, 213, 219, 0.4) 50.5%, transparent 51.5%), linear-gradient(90deg, transparent 48.5%, rgba(209, 213, 219, 0.4) 49.5%, rgba(209, 213, 219, 0.4) 50.5%, transparent 51.5%), linear-gradient(150deg, transparent 48.5%, rgba(209, 213, 219, 0.4) 49.5%, rgba(209, 213, 219, 0.4) 50.5%, transparent 51.5%), var(--theme-gradient-primary);
        background-size: 80px 80px, 80px 80px, 80px 80px, 80px 80px, 80px 80px, 100% 100%;
        background-position: 0 0, 40px 23px, 0 0, 0 0, 0 0, 0 0;
        background-attachment: fixed;
    }


    [data-theme="light"] .legal-header {
        border-bottom: 2px solid var(--theme-border-color);
    }

    [data-theme="light"] .legal-subtitle {
        color: var(--theme-text-muted);
    }

    [data-theme="light"] .legal-content {
        background: var(--theme-bg-card);
        border: 1px solid var(--theme-border-color);
        box-shadow: var(--theme-shadow-elevated);
    }

    /* Legal sections */
    [data-theme="light"] .legal-section h2 {
        color: var(--theme-accent-primary);
        border-bottom: 2px solid var(--theme-info-border);
    }

    [data-theme="light"] .legal-section p {
        color: var(--theme-text-secondary);
    }

    [data-theme="light"] .legal-section ul {
        color: var(--theme-text-secondary);
    }

    [data-theme="light"] .legal-section strong {
        color: var(--theme-text-primary);
    }

    [data-theme="light"] .legal-section a {
        color: var(--theme-accent-primary);
    }

        [data-theme="light"] .legal-section a:hover {
            color: var(--theme-accent-secondary);
        }

    /* Legal highlight boxes */
    [data-theme="light"] .legal-highlight {
        background: var(--theme-info-bg);
        border: 2px solid var(--theme-info-border);
        box-shadow: var(--theme-shadow-input);
    }

        [data-theme="light"] .legal-highlight p {
            color: var(--theme-text-primary);
        }

    [data-theme="light"] .legal-warning {
        background: var(--theme-warning-bg);
        border: 2px solid var(--theme-warning-border);
        box-shadow: 0 1px 3px rgba(237, 137, 54, 0.08);
    }

        [data-theme="light"] .legal-warning p {
            color: var(--theme-warning-text);
        }

    [data-theme="light"] .contact-info {
        background: var(--theme-bg-secondary);
        border: 1px solid var(--theme-border-color);
        box-shadow: var(--theme-shadow-input);
    }

        [data-theme="light"] .contact-info h4 {
            color: var(--theme-accent-primary);
        }

    /*----------------------------------------------
  12. LOADING & STATE ELEMENTS
----------------------------------------------*/

    /* Loading spinner */
    [data-theme="light"] .loading-spinner {
        border: 4px solid var(--theme-border-color);
        border-top: 4px solid var(--theme-accent-primary);
    }

    /* Loading sections */
    [data-theme="light"] .loading-container p,
    [data-theme="light"] .loading-section p {
        color: var(--theme-text-secondary);
    }

    /* No results state */
    [data-theme="light"] .no-results {
        color: var(--theme-text-secondary);
    }

        [data-theme="light"] .no-results h2,
        [data-theme="light"] .no-results h3 {
            color: var(--theme-text-primary);
        }

        [data-theme="light"] .no-results p {
            color: var(--theme-text-secondary);
        }

    /*----------------------------------------------
  13. PARALLAX & HERO ELEMENTS - BALANCED
----------------------------------------------*/

    /* Hero section - Balanced institutional look */
    [data-theme="light"] .hero-parallax-bg {
        background: var(--theme-gradient-hero), radial-gradient(circle at 25% 25%, rgba(90, 103, 216, 0.015) 0%, transparent 50%), radial-gradient(circle at 75% 75%, rgba(66, 153, 225, 0.015) 0%, transparent 50%);
    }


    /*----------------------------------------------
  14. FOOTER - INSTITUTIONAL
----------------------------------------------*/
    [data-theme="light"] .minimal-footer {
        background: linear-gradient(135deg, rgba(220, 230, 240, 0.95) 0%, rgba(200, 220, 235, 0.98) 50%, rgba(220, 230, 240, 0.95) 100% );
        backdrop-filter: blur(12px);
        border-top: 2px solid #cbd5e0;
        box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08);
    }

    [data-theme="light"] .footer-brand .brand-name {
        color: var(--theme-accent-primary);
    }

    [data-theme="light"] .brand-tagline {
        color: var(--theme-text-muted);
    }

    [data-theme="light"] .footer-copyright {
        color: var(--theme-text-muted);
    }

    [data-theme="light"] .footer-links a {
        color: var(--theme-text-secondary);
        text-decoration: none;
        font-weight: 500;
        padding: 0.75rem 1rem;
        border-radius: var(--border-radius);
        background: var(--theme-bg-secondary); /* Stesso del header-title (#edf2f7) */
        border: 1px solid var(--theme-border-color);
        transition: all var(--transition-normal);
    }

        [data-theme="light"] .footer-links a:hover {
            color: var(--theme-accent-primary);
            background: rgba(237, 242, 247, 0.8); /* Leggermente più chiaro al hover */
            border-color: var(--theme-accent-primary);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(90, 103, 216, 0.15);
        }

        [data-theme="light"] .footer-links a::after {
            background: var(--theme-accent-primary);
        }



    /* Aggiungi anche la linea luminosa del footer elegante */
    [data-theme="light"] .minimal-footer::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, var(--theme-accent-primary), var(--theme-accent-secondary), transparent);
        opacity: 0.4;
    }
/*----------------------------------------------
  15. LOGO INTERACTIVE STATES
----------------------------------------------*/
    [data-theme="light"] .logo-link {
        color: inherit;
    }

        [data-theme="light"] .logo-link:hover {
            color: inherit;
        }

            [data-theme="light"] .logo-link:hover .logo {
                background: linear-gradient(135deg, var(--theme-accent-secondary), var(--theme-accent-primary));
                -webkit-background-clip: text;
                -webkit-text-fill-color: transparent;
                background-clip: text;
            }

            [data-theme="light"] .logo-link:hover .brand-name {
                color: var(--theme-text-secondary);
                transform: translateX(2px);
            }

    /*----------------------------------------------
  16. ENHANCED INTERACTIVE STATES - SUBTLE
----------------------------------------------*/

    /* Enhanced button effects - More subtle */
    [data-theme="light"] .all-news-btn {
        position: relative;
        overflow: hidden;
    }

        [data-theme="light"] .all-news-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
            transition: left 0.5s;
        }

        [data-theme="light"] .all-news-btn:hover::before {
            left: 100%;
        }

    /* Enhanced card interactions - Very subtle */
    [data-theme="light"] .news-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: linear-gradient(90deg, var(--theme-accent-primary), var(--theme-accent-secondary));
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    [data-theme="light"] .news-card:hover::before {
        opacity: 0.3;
    }

    /* Enhanced input focus - Minimal */
    [data-theme="light"] .search-input:focus {
        transform: translateY(-1px);
    }

    [data-theme="light"] .filter-select:focus {
        transform: translateY(-1px);
    }

/*----------------------------------------------
  17. RESPONSIVE ADJUSTMENTS - INSTITUTIONAL
----------------------------------------------*/
@media (max-width: 768px) {
    [data-theme="light"] .header {
        padding: 0.8rem 0;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    }

    [data-theme="light"] .filters-section-container {
        background: var(--theme-bg-secondary); /* #edf2f7 - come header-title */
        backdrop-filter: blur(12px);
        border-bottom: 2px solid #cbd5e0;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
    }


    [data-theme="light"] .hero-parallax-section {
        height: 40vh;
        min-height: 280px;
        margin-bottom: 2rem;
    }

    [data-theme="light"] .floating-element {
        display: none;
    }

    [data-theme="light"] .news-card {
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.03);
    }

        [data-theme="light"] .news-card:hover {
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
        }
}

@media (max-width: 480px) {
    [data-theme="light"] .filters-section-container {
        background: var(--theme-bg-secondary); /* #edf2f7 - come header-title */
        backdrop-filter: blur(12px);
        border-bottom: 2px solid #cbd5e0;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
    }


    [data-theme="light"] .news-card {
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.025);
    }
}

/*----------------------------------------------
  18. ACCESSIBILITY - INSTITUTIONAL
----------------------------------------------*/

/* High contrast adjustments */
@media (prefers-contrast: high) {
    [data-theme="light"] {
        --theme-border-color: #a0aec0;
        --theme-text-secondary: #2d3748;
        --theme-text-muted: #4a5568;
    }
}

/* Focus indicators */
[data-theme="light"] *:focus-visible {
    outline: 2px solid var(--theme-accent-primary);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(90, 103, 216, 0.08);
}

/* Link contrast */
[data-theme="light"] a:not([class]) {
    color: var(--theme-accent-primary);
}

    [data-theme="light"] a:not([class]):hover {
        color: var(--theme-accent-secondary);
    }

/*----------------------------------------------
  19. PRINT STYLES - OPTIMIZED
----------------------------------------------*/
@media print {
    [data-theme="light"] {
        --theme-shadow: none !important;
        --theme-shadow-hover: none !important;
        --theme-shadow-card: none !important;
    }

        [data-theme="light"] .news-card,
        [data-theme="light"] .card-base {
            box-shadow: none !important;
            border: 1px solid #ccc !important;
        }

        [data-theme="light"] .btn-primary,
        [data-theme="light"] .btn-secondary {
            box-shadow: none !important;
            border: 1px solid #333 !important;
        }
}

/*----------------------------------------------
  20. PERFORMANCE OPTIMIZATIONS
----------------------------------------------*/

/* Hardware acceleration */
[data-theme="light"] .news-card,
[data-theme="light"] .btn-primary,
[data-theme="light"] .btn-secondary {
    will-change: transform;
}

/* Backdrop filter optimizations */
@supports (backdrop-filter: blur(12px)) {
    [data-theme="light"] .header,
    [data-theme="light"] .filters-section-container,
    [data-theme="light"] .minimal-footer {
        backdrop-filter: blur(12px);
    }
}

/* Fallback for browsers without backdrop-filter */
@supports not (backdrop-filter: blur(12px)) {
    [data-theme="light"] .header {
        background: linear-gradient(135deg, rgba(220, 230, 240, 0.99) 0%, rgba(200, 220, 235, 0.99) 50%, rgba(220, 230, 240, 0.99) 100% );
    }

    [data-theme="light"] .filters-section-container {
        background: var(--theme-bg-secondary); /* #edf2f7 */
    }

    [data-theme="light"] .minimal-footer {
        background: linear-gradient(135deg, rgba(220, 230, 240, 0.99) 0%, rgba(200, 220, 235, 0.99) 50%, rgba(220, 230, 240, 0.99) 100% );
    }
}

/*----------------------------------------------
  22. ARTICLE PAGE - LIGHT THEME OVERRIDES
----------------------------------------------*/

/* Light theme specific background if needed */
[data-theme="light"] .article-page {
    /* Il tuo pattern molecolare esistente va bene */
}

/* Light theme button shadows */
[data-theme="light"] .action-btn-compact.primary:hover {
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.3);
}

/*----------------------------------------------
  EXPERT CONTENT - BASE STRUCTURE
----------------------------------------------*/
/* Expert content - Light theme */
[data-theme="light"] .expert-content {
    background: rgba(90, 103, 216, 0.03);
}

[data-theme="light"] .expert-header {
    background: rgba(90, 103, 216, 0.05);
    border-bottom: 1px solid rgba(90, 103, 216, 0.15);
}

[data-theme="light"] .expert-body {
    background: var(--theme-bg-card);
}

[data-theme="light"] .filters-section-modern {
    position: fixed;
    /*top: 120px;*/
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem;
    border-radius: 0;
}

/*==============================================
  PROJECT PAGE - WOW STYLING (NO CONFLICTS)  
==============================================*/
/* Container principale documento */
.document-page {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    font-family: 'Georgia', 'Times New Roman', serif;
}

.document-container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    box-shadow: 0 0 30px rgba(0,0,0,0.1);
    min-height: 100vh;
}

/* Header documento con gradiente viola */
.document-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 40px;
    text-align: center;
    border-radius: 8px; /* prova anche 12px o 16px per più morbidezza */
}

.document-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    font-weight: 300;
    line-height: 1.2;
    color: white;
}

.document-subtitle {
    font-size: 1.2em;
    opacity: 0.9;
    font-weight: 300;
    color: white;
    margin: 0;
}

/* Content area documento */
.document-content {
    padding: 40px;
    background: white;
}

/* TOC documento */
.document-toc {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 40px;
    border-left: 5px solid #667eea;
}

    .document-toc h2 {
        color: #2c3e50;
        margin-bottom: 20px;
        font-size: 1.8em;
    }

    .document-toc ul {
        list-style: none;
        padding-left: 0;
    }

    .document-toc li {
        margin: 12px 0;
        font-size: 1.1em;
    }

    .document-toc a {
        color: #667eea;
        text-decoration: none;
        transition: color 0.3s ease;
    }

        .document-toc a:hover {
            color: #764ba2;
            text-decoration: underline;
        }

/* Abstract con gradiente arancione */
.document-abstract {
    background: linear-gradient(135deg, #ffeaa7, #fab1a0);
    padding: 30px;
    border-radius: 10px;
    margin: 40px 0;
    font-style: italic;
    border-left: 5px solid #e17055;
}

    .document-abstract h2 {
        color: #2d3436;
        margin-bottom: 20px;
        font-style: normal;
        font-size: 1.8em;
    }

    .document-abstract p {
        color: #2d3436;
        font-size: 1.05em;
        text-align: justify;
        margin-bottom: 20px;
        line-height: 1.6;
    }

/* Sezioni capitoli */
.document-chapter {
    margin: 60px 0;
    padding-bottom: 40px;
    border-bottom: 1px solid #ecf0f1;
}

    .document-chapter:last-child {
        border-bottom: none;
    }

    .document-chapter h2 {
        color: #2c3e50;
        font-size: 2em;
        margin-bottom: 30px;
        padding-bottom: 10px;
        border-bottom: 3px solid #667eea;
        font-family: 'Georgia', 'Times New Roman', serif;
    }

    .document-chapter h3 {
        color: #2c3e50;
        font-size: 1.4em;
        margin: 30px 0 15px 0;
        border-left: 4px solid #667eea;
        padding-left: 15px;
    }

    .document-chapter p {
        margin-bottom: 20px;
        text-align: justify;
        font-size: 1.05em;
        color: #2c3e50;
        line-height: 1.6;
    }

/* Highlight boxes documento */
.document-highlight {
    background: linear-gradient(120deg, #a8edea 0%, #fed6e3 100%);
    padding: 20px;
    border-radius: 8px;
    margin: 25px 0;
    border-left: 4px solid #00b894;
}

    .document-highlight p {
        color: #2c3e50;
        margin: 0;
    }

/* Warning boxes documento */
.document-note {
    background: #e3f2fd;
    padding: 20px;
    border-radius: 8px;
    margin: 25px 0;
    border-left: 4px solid #2196f3;
}

    .document-note p {
        color: #1976d2;
        margin: 0;
    }

    .document-note strong {
        color: #1976d2;
    }

/* Stats grid documento */
.document-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.document-stat-card {
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.document-stat-number {
    font-size: 2em;
    font-weight: bold;
    display: block;
    margin-bottom: 0.5rem;
}

.document-stat-label {
    font-size: 0.9rem;
}

/* Workflow container documento */
.document-workflow {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    margin: 30px 0;
    text-align: center;
}

    .document-workflow h3 {
        margin-bottom: 20px;
        color: #2c3e50;
        border-left: none;
        padding-left: 0;
    }

    .document-workflow svg {
        background: white;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    }

/* Tabella documento */
.document-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    font-size: 0.95em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-radius: 8px;
    overflow: hidden;
}

    .document-table th {
        background: #667eea;
        color: white;
        padding: 12px;
        text-align: left;
        font-weight: 600;
    }

    .document-table td {
        padding: 12px;
        text-align: left;
        border-bottom: 1px solid #ddd;
    }

    .document-table tr:hover {
        background: #f5f5f5;
    }

    .document-table a {
        color: #667eea;
        text-decoration: none;
    }

        .document-table a:hover {
            text-decoration: underline;
        }

/* Footer documento */
.document-footer {
    background: #2c3e50;
    color: white;
    padding: 40px;
    text-align: center;
}

.document-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    background: transparent;
    color: white;
    border: 2px solid white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .document-back-btn:hover {
        background: white;
        color: #2c3e50;
        transform: translateY(-2px);
        text-decoration: none;
    }

.document-copyright {
    margin-top: 2rem;
}

    .document-copyright p {
        color: white;
        margin: 0.5rem 0;
    }

/* Responsive documento */
@media (max-width: 768px) {
    .document-header {
        padding: 40px 20px;
    }

    .document-title {
        font-size: 2rem;
    }

    .document-content {
        padding: 20px;
    }

    .document-footer {
        padding: 20px;
    }

    .document-stats {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
}
