        /* ============================================
           SCROLL PADDING - Per link anchor e navbar fixed
           ============================================ */
        html {
            /* Compensazione per navbar fixed (70px + 30px margine) */
            scroll-padding-top: 100px;
        }
        
        /* Scroll padding aumentato su mobile */
        @media (max-width: 768px) {
            html {
                scroll-padding-top: 90px;
            }
        }
        
        /* ============================================
           HOMEPAGE - Hero Section Grande
           ============================================ */
        .home-hero {
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            /* Padding ottimizzato per navbar fixed (70px) */
            padding: 110px 2rem 60px;
            position: relative;
            overflow: hidden;
        }
        
        /* Sfondo con gradiente animato */
        .home-hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: 
                radial-gradient(ellipse 80% 50% at 50% -20%, rgba(16, 185, 129, 0.15), transparent),
                radial-gradient(ellipse 60% 40% at 80% 60%, rgba(59, 130, 246, 0.1), transparent),
                radial-gradient(ellipse 50% 30% at 20% 80%, rgba(139, 92, 246, 0.08), transparent);
            pointer-events: none;
            z-index: 0;
        }
        
        /* Griglia animata sullo sfondo */
        .home-hero::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-image: 
                linear-gradient(rgba(16, 185, 129, 0.03) 1px, transparent 1px),
                linear-gradient(90deg, rgba(16, 185, 129, 0.03) 1px, transparent 1px);
            background-size: 60px 60px;
            animation: gridMove 20s linear infinite;
            pointer-events: none;
            z-index: 0;
        }
        
        @keyframes gridMove {
            0% { transform: translate(0, 0); }
            100% { transform: translate(60px, 60px); }
        }
        
        .home-hero-content {
            position: relative;
            z-index: 1;
            max-width: 900px;
        }
        
        /* Badge superiore "Live" */
        .home-badge {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            padding: 10px 20px;
            background: rgba(16, 185, 129, 0.1);
            border: 1px solid rgba(16, 185, 129, 0.3);
            border-radius: 50px;
            font-size: 0.85rem;
            color: var(--energy-green);
            margin-bottom: 2rem;
            animation: fadeInDown 0.8s ease;
        }
        
        .home-badge-dot {
            width: 8px;
            height: 8px;
            background: var(--energy-green);
            border-radius: 50%;
            animation: pulse 2s ease-in-out infinite;
        }
        
        @keyframes fadeInDown {
            from { opacity: 0; transform: translateY(-20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        /* Titolo principale grande */
        .home-title {
            font-size: clamp(2.5rem, 6vw, 4.5rem);
            font-weight: 800;
            line-height: 1.1;
            margin-bottom: 1.5rem;
            letter-spacing: -2px;
            animation: fadeInUp 0.8s ease 0.2s both;
        }
        
        .home-title .highlight {
            background: linear-gradient(135deg, var(--energy-green) 0%, var(--energy-cyan) 50%, var(--energy-blue) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        
        @keyframes fadeInUp {
            from { opacity: 0; transform: translateY(30px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        /* Sottotitolo */
        .home-subtitle {
            font-size: clamp(1.1rem, 2vw, 1.4rem);
            color: var(--text-secondary);
            max-width: 700px;
            margin: 0 auto 2.5rem;
            line-height: 1.7;
            animation: fadeInUp 0.8s ease 0.4s both;
        }
        
        /* Bottoni CTA */
        .home-cta {
            display: flex;
            gap: 1rem;
            justify-content: center;
            flex-wrap: wrap;
            animation: fadeInUp 0.8s ease 0.6s both;
        }
        
        .btn-hero {
            padding: 16px 32px;
            font-size: 1rem;
            font-weight: 600;
            border-radius: 12px;
            text-decoration: none;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 10px;
            border: none;
            cursor: pointer;
            font-family: var(--font-sans);
        }
        
        .btn-hero-primary {
            background: linear-gradient(135deg, var(--energy-green), var(--energy-cyan));
            color: #000;
            box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
        }
        
        .btn-hero-primary:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 30px rgba(16, 185, 129, 0.5);
        }
        
        .btn-hero-secondary {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.2);
            color: var(--text-primary);
        }
        
        .btn-hero-secondary:hover {
            background: rgba(255, 255, 255, 0.1);
            border-color: rgba(255, 255, 255, 0.3);
        }
        
        /* Statistiche in tempo reale */
        .home-live-stats {
            display: flex;
            gap: 3rem;
            justify-content: center;
            margin-top: 4rem;
            flex-wrap: wrap;
            animation: fadeInUp 0.8s ease 0.8s both;
        }
        
        .home-stat {
            text-align: center;
            padding: 1.5rem;
            background: rgba(26, 35, 50, 0.6);
            border: 1px solid var(--border-color);
            border-radius: 16px;
            min-width: 160px;
            backdrop-filter: blur(10px);
            transition: all 0.3s ease;
        }
        
        .home-stat:hover {
            transform: translateY(-5px);
            border-color: var(--energy-green);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        }
        
        .home-stat-value {
            font-family: var(--font-mono);
            font-size: 2rem;
            font-weight: 700;
            color: var(--energy-green);
            margin-bottom: 0.25rem;
        }
        
        .home-stat-label {
            font-size: 0.85rem;
            color: var(--text-muted);
        }
        
        /* Indicatore scroll */
        .scroll-indicator {
            position: absolute;
            bottom: 40px;
            left: 50%;
            transform: translateX(-50%);
            animation: bounce 2s ease-in-out infinite;
            color: var(--text-muted);
            font-size: 0.8rem;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            cursor: pointer;
            z-index: 1;
        }
        
        .scroll-indicator svg {
            width: 24px;
            height: 24px;
            stroke: var(--text-muted);
        }
        
        @keyframes bounce {
            0%, 100% { transform: translateX(-50%) translateY(0); }
            50% { transform: translateX(-50%) translateY(10px); }
        }
        
        /* ============================================
           SEZIONE FEATURES
           ============================================ */
        .features-section {
            padding: 100px 2rem;
            background: linear-gradient(180deg, var(--bg-primary), var(--bg-secondary));
        }
        
        .features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: 2rem;
            max-width: 1400px;
            margin: 0 auto;
        }
        
        .feature-card {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 20px;
            padding: 2.5rem;
            transition: all 0.4s ease;
            position: relative;
            overflow: hidden;
        }
        
        .feature-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 4px;
            background: linear-gradient(90deg, var(--feature-color, var(--energy-green)), transparent);
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        
        .feature-card:hover {
            transform: translateY(-8px);
            border-color: var(--feature-color, var(--energy-green));
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
        }
        
        .feature-card:hover::before {
            opacity: 1;
        }
        
        .feature-icon {
            width: 70px;
            height: 70px;
            background: rgba(16, 185, 129, 0.1);
            border-radius: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2rem;
            margin-bottom: 1.5rem;
        }
        
        .feature-card:nth-child(1) { --feature-color: var(--energy-green); }
        .feature-card:nth-child(1) .feature-icon { background: rgba(16, 185, 129, 0.1); }
        
        .feature-card:nth-child(2) { --feature-color: var(--energy-blue); }
        .feature-card:nth-child(2) .feature-icon { background: rgba(59, 130, 246, 0.1); }
        
        .feature-card:nth-child(3) { --feature-color: var(--energy-purple); }
        .feature-card:nth-child(3) .feature-icon { background: rgba(139, 92, 246, 0.1); }
        
        .feature-card:nth-child(4) { --feature-color: var(--energy-amber); }
        .feature-card:nth-child(4) .feature-icon { background: rgba(245, 158, 11, 0.1); }
        
        .feature-card:nth-child(5) { --feature-color: var(--energy-cyan); }
        .feature-card:nth-child(5) .feature-icon { background: rgba(6, 182, 212, 0.1); }
        
        .feature-card:nth-child(6) { --feature-color: var(--energy-red); }
        .feature-card:nth-child(6) .feature-icon { background: rgba(239, 68, 68, 0.1); }
        
        .feature-card:nth-child(7) { --feature-color: var(--energy-amber); }
        .feature-card:nth-child(7) .feature-icon { background: rgba(245, 158, 11, 0.1); }
        
        .feature-card:nth-child(8) { --feature-color: var(--energy-cyan); }
        .feature-card:nth-child(8) .feature-icon { background: rgba(6, 182, 212, 0.1); }
        
        .feature-title {
            font-size: 1.4rem;
            font-weight: 700;
            margin-bottom: 1rem;
            color: var(--text-primary);
        }
        
        .feature-description {
            color: var(--text-secondary);
            line-height: 1.7;
            font-size: 1rem;
        }
        
        .feature-link {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            margin-top: 1.5rem;
            color: var(--feature-color, var(--energy-green));
            text-decoration: none;
            font-weight: 600;
            font-size: 0.95rem;
            transition: gap 0.3s ease;
        }
        
        .feature-link:hover {
            gap: 12px;
        }
        
        /* ============================================
           SEZIONE DATI LIVE (Prezzi in tempo reale)
           ============================================ */
        .live-data-section {
            padding: 100px 2rem;
            background: var(--bg-primary);
        }
        
        .section-header-center {
            text-align: center;
            max-width: 700px;
            margin: 0 auto 4rem;
        }
        
        .section-title-large {
            font-size: clamp(2rem, 4vw, 3rem);
            font-weight: 800;
            margin-bottom: 1rem;
            letter-spacing: -1px;
        }
        
        .section-subtitle {
            color: var(--text-secondary);
            font-size: 1.15rem;
            line-height: 1.7;
        }
        
        .live-prices-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 1.5rem;
            max-width: 1200px;
            margin: 0 auto;
        }
        
        .live-price-card {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 20px;
            padding: 2rem;
            position: relative;
            overflow: hidden;
            transition: all 0.3s ease;
        }
        
        .live-price-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 4px;
            height: 100%;
            background: var(--card-color, var(--energy-green));
        }
        
        .live-price-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
        }
        
        .live-price-card.pun { --card-color: var(--energy-green); }
        .live-price-card.psv { --card-color: var(--energy-blue); }
        .live-price-card.co2 { --card-color: var(--energy-purple); }
        
        .live-price-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 1rem;
        }
        
        .live-price-label {
            font-size: 0.9rem;
            color: var(--text-muted);
            font-weight: 500;
        }
        
        .live-price-badge {
            padding: 4px 10px;
            background: rgba(16, 185, 129, 0.15);
            color: var(--energy-green);
            border-radius: 20px;
            font-size: 0.75rem;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 4px;
        }
        
        .live-price-value {
            font-family: var(--font-mono);
            font-size: 2.5rem;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 0.5rem;
        }
        
        .live-price-unit {
            font-size: 1rem;
            color: var(--text-muted);
            font-weight: 400;
        }
        
        .live-price-change {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.9rem;
        }
        
        .live-price-change.up { color: var(--energy-green); }
        .live-price-change.down { color: var(--energy-red); }
        
        /* ============================================
           SEZIONE PERCHÉ SCEGLIERCI
           ============================================ */
        .why-section {
            padding: 100px 2rem;
            background: linear-gradient(180deg, var(--bg-secondary), var(--bg-primary));
        }
        
        .why-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 2rem;
            max-width: 1200px;
            margin: 0 auto;
        }
        
        @media (max-width: 1000px) {
            .why-grid { grid-template-columns: repeat(2, 1fr); }
        }
        
        @media (max-width: 600px) {
            .why-grid { grid-template-columns: 1fr; }
        }
        
        .why-item {
            text-align: center;
            padding: 2rem;
        }
        
        .why-number {
            font-family: var(--font-mono);
            font-size: 3.5rem;
            font-weight: 800;
            background: linear-gradient(135deg, var(--energy-green), var(--energy-blue));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: 0.5rem;
        }
        
        .why-label {
            font-size: 1.1rem;
            color: var(--text-secondary);
            font-weight: 500;
        }
        
        /* ============================================
           SEZIONE CTA FINALE
           ============================================ */
        .cta-section {
            padding: 100px 2rem;
            text-align: center;
            position: relative;
            overflow: hidden;
        }
        
        .cta-section::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 800px;
            height: 400px;
            background: radial-gradient(ellipse, rgba(16, 185, 129, 0.15), transparent 70%);
            pointer-events: none;
        }
        
        .cta-content {
            position: relative;
            z-index: 1;
            max-width: 700px;
            margin: 0 auto;
        }
        
        .cta-title {
            font-size: clamp(2rem, 4vw, 3rem);
            font-weight: 800;
            margin-bottom: 1rem;
            letter-spacing: -1px;
        }
        
        .cta-description {
            color: var(--text-secondary);
            font-size: 1.15rem;
            margin-bottom: 2rem;
            line-height: 1.7;
        }
        
        /* ============================================
           SEZIONE FONTI DATI
           ============================================ */
        .sources-section {
            padding: 60px 2rem;
            background: var(--bg-secondary);
            border-top: 1px solid var(--border-color);
        }
        
        .sources-inner {
            max-width: 1200px;
            margin: 0 auto;
            text-align: center;
        }
        
        .sources-title {
            font-size: 0.9rem;
            color: var(--text-muted);
            margin-bottom: 2rem;
            text-transform: uppercase;
            letter-spacing: 1px;
        }
        
        .sources-logos {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 4rem;
            flex-wrap: wrap;
            opacity: 0.6;
        }
        
        .source-logo {
            font-size: 1.2rem;
            font-weight: 700;
            color: var(--text-secondary);
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        /* ============================================
           RESPONSIVE
           ============================================ */
        
        /* Tablet e Mobile - fino a 768px */
        @media (max-width: 768px) {
            .home-hero {
                /* Aumentato significativamente padding-top per navbar mobile */
                padding: 160px 1.5rem 40px;
                min-height: 100vh;
            }
            
            .home-badge {
                font-size: 0.8rem;
                padding: 8px 16px;
            }
            
            .home-live-stats {
                gap: 1rem;
                margin-top: 3rem;
            }
            
            .home-stat {
                min-width: 140px;
                padding: 1rem;
            }
            
            .home-stat-value {
                font-size: 1.5rem;
            }
            
            .features-section,
            .live-data-section,
            .why-section,
            .cta-section {
                padding: 60px 1.5rem;
            }
            
            .scroll-indicator {
                display: none;
            }
        }
        
        /* Schermi molto piccoli - fino a 400px */
        @media (max-width: 400px) {
            /* Hero con ancora più spazio per navbar su schermi piccoli */
            .home-hero {
                padding: 180px 1rem 40px;
            }
            
            /* Badge più piccolo */
            .home-badge {
                font-size: 0.75rem;
                padding: 6px 12px;
                margin-bottom: 1.5rem;
            }
            
            /* Titolo più compatto */
            .home-title {
                margin-bottom: 1rem;
                letter-spacing: -1px;
            }
            
            /* Griglia features: riduce minimo larghezza per schermi piccoli */
            .features-grid {
                grid-template-columns: 1fr;
                gap: 1.5rem;
            }
            
            .feature-card {
                padding: 2rem;
            }
            
            /* Griglia prezzi live */
            .live-prices-grid {
                grid-template-columns: 1fr;
            }
            
            /* Bottoni CTA più piccoli */
            .btn-hero {
                padding: 14px 24px;
                font-size: 0.9rem;
                width: 100%;
                justify-content: center;
            }
            
            .home-cta {
                flex-direction: column;
                width: 100%;
            }
            
            /* Statistiche hero più compatte */
            .home-live-stats {
                flex-direction: column;
                gap: 1rem;
                margin-top: 2rem;
            }
            
            .home-stat {
                width: 100%;
                min-width: auto;
            }
        }

/* ============ blocco successivo (ex-inline) ============ */
        /* ============================================
           AUTH MODAL - Popup Registrazione/Login
           ============================================ */
        .auth-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 999999;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 1rem;
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        
        .auth-modal.visible {
            opacity: 1;
        }
        
        /* Backdrop semi-trasparente */
        .auth-modal-backdrop {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(10, 14, 23, 0.85);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            z-index: 1;
        }
        
        /* Contenuto modal */
        .auth-modal-content {
            position: relative;
            z-index: 2;
            background: linear-gradient(180deg, rgba(26, 35, 50, 0.98), rgba(17, 24, 39, 0.98));
            border: 1px solid rgba(55, 65, 81, 0.8);
            border-radius: 24px;
            padding: 2.5rem 2rem;
            max-width: 440px;
            width: 100%;
            text-align: center;
            box-shadow: 
                0 25px 60px -12px rgba(0, 0, 0, 0.6),
                0 0 0 1px rgba(16, 185, 129, 0.15),
                0 0 80px rgba(16, 185, 129, 0.1);
            animation: modalPopIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
        }
        
        @keyframes modalPopIn {
            from {
                opacity: 0;
                transform: scale(0.9) translateY(20px);
            }
            to {
                opacity: 1;
                transform: scale(1) translateY(0);
            }
        }
        
        /* Icona con animazione float */
        .auth-modal-icon {
            font-size: 3.5rem;
            margin-bottom: 1rem;
            animation: modalFloat 3s ease-in-out infinite;
            filter: drop-shadow(0 0 20px rgba(16, 185, 129, 0.5));
        }
        
        @keyframes modalFloat {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-8px); }
        }
        
        .auth-modal-title {
            font-size: 1.75rem;
            font-weight: 800;
            color: #f9fafb;
            margin-bottom: 0.75rem;
            font-family: var(--font-sans);
        }
        
        .auth-modal-subtitle {
            color: #9ca3af;
            font-size: 1rem;
            line-height: 1.7;
            margin-bottom: 1.5rem;
        }
        
        .auth-modal-subtitle strong {
            color: #10b981;
        }
        
        /* Features in formato compatto */
        .auth-modal-features {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 0.5rem;
            margin-bottom: 2rem;
        }
        
        .auth-modal-feature {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-size: 0.85rem;
            color: #d1d5db;
            padding: 8px 14px;
            background: rgba(16, 185, 129, 0.08);
            border: 1px solid rgba(16, 185, 129, 0.2);
            border-radius: 20px;
            transition: all 0.3s ease;
        }
        
        .auth-modal-feature:hover {
            background: rgba(16, 185, 129, 0.15);
            border-color: rgba(16, 185, 129, 0.3);
        }
        
        .auth-modal-feature-icon {
            font-size: 1rem;
        }
        
        /* Pulsanti azione */
        .auth-modal-actions {
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
            position: relative;
            z-index: 3;
        }
        
        .auth-modal-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 16px 28px;
            font-size: 1rem;
            font-weight: 600;
            border-radius: 12px;
            text-decoration: none;
            transition: all 0.3s ease;
            cursor: pointer;
            position: relative;
            z-index: 4;
            pointer-events: auto;
        }
        
        .auth-modal-btn-primary {
            background: linear-gradient(135deg, #10b981, #06b6d4);
            color: #000;
            box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
        }
        
        .auth-modal-btn-primary:hover {
            transform: translateY(-2px) scale(1.02);
            box-shadow: 0 8px 30px rgba(16, 185, 129, 0.5);
        }
        
        .auth-modal-btn-secondary {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.15);
            color: #f9fafb;
        }
        
        .auth-modal-btn-secondary:hover {
            background: rgba(255, 255, 255, 0.1);
            border-color: rgba(255, 255, 255, 0.25);
        }
        
        /* Footer */
        .auth-modal-footer {
            margin-top: 1.5rem;
            padding-top: 1.25rem;
            border-top: 1px solid rgba(55, 65, 81, 0.5);
        }
        
        .auth-modal-footer p {
            color: #6b7280;
            font-size: 0.85rem;
        }
        
        .auth-modal-footer strong {
            color: #10b981;
        }
        
        /* Pulsante chiudi (X) */
        .auth-modal-close {
            position: absolute;
            top: 12px;
            right: 12px;
            width: 36px;
            height: 36px;
            border: none;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 8px;
            color: #9ca3af;
            font-size: 1.4rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
            line-height: 1;
        }
        
        .auth-modal-close:hover {
            background: rgba(255, 255, 255, 0.1);
            color: #f9fafb;
            transform: rotate(90deg);
        }
        
        /* Responsive */
        @media (max-width: 600px) {
            .auth-modal-content {
                padding: 2rem 1.5rem;
                margin: 1rem;
                max-width: calc(100% - 2rem);
            }
            
            .auth-modal-title {
                font-size: 1.5rem;
            }
            
            .auth-modal-subtitle {
                font-size: 0.95rem;
            }
            
            .auth-modal-features {
                gap: 0.4rem;
            }
            
            .auth-modal-feature {
                font-size: 0.75rem;
                padding: 6px 12px;
            }
            
            .auth-modal-btn {
                padding: 14px 24px;
                font-size: 0.95rem;
            }
        }
