:root {
            --dark-bg: #101214;
            --light-text: #f8f9fa;
            --gray-text: #adb5bd;
            --petrol-blue: #005f73;
            --accent-orange: #f97316;
            --accent-serif: 'Playfair Display', serif;
            --body-sans: 'Inter', sans-serif;
            --heading-sans: 'Poppins', sans-serif;
        }

        * { margin: 0; padding: 0; box-sizing: border-box; }
        body { font-family: var(--body-sans); background-color: var(--dark-bg); color: var(--gray-text); overflow-x: hidden; }
        h1, h2, h3 { font-family: var(--heading-sans); font-weight: 600; color: var(--light-text); }
        .container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

        /* --- HEADER E NAVIGAZIONE --- */
        header { position: absolute; width: 100%; top: 0; left: 0; padding: 2.5rem 0; background-color: transparent; z-index: 100; }
        header .container { display: flex; justify-content: space-between; align-items: center; }
        .logo { font-family: var(--heading-sans); font-size: 1.8rem; font-weight: 700; text-decoration: none; color: var(--light-text); }
        .logo .highlight-accent { opacity: 0.8; }
        nav ul { list-style: none; display: flex; gap: 2.5rem; }
        nav a { text-decoration: none; color: var(--light-text); font-weight: 500; transition: opacity 0.3s ease; }
        nav a:hover { opacity: 0.7; }

        /* --- NUOVA SEZIONE HERO --- */
        #hero { min-height: 100vh; display: flex; align-items: center; position: relative; color: var(--light-text); overflow: hidden; }
        #hero .hero-background-image { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
        #hero::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to right, rgba(16, 18, 20, 0.90) 20%, rgba(16, 18, 20, 0.1) 70%); z-index: 2; }
        .hero-content { position: relative; z-index: 3; max-width: 650px; }
        .hero-content h1 { font-size: 4.5rem; line-height: 1.1; margin-bottom: 1.5rem; font-weight: 600; }
        .hero-content h1 em { font-family: var(--accent-serif); font-style: italic; font-weight: 500; display: block; }
        .hero-content p { font-size: 1.1rem; line-height: 1.7; max-width: 500px; margin-bottom: 2.5rem; color: var(--gray-text); }
        .hero-cta { font-family: var(--body-sans); color: var(--light-text); text-decoration: none; font-weight: 500; font-size: 1rem; transition: opacity 0.3s ease; border-bottom: 1px solid rgba(248, 249, 250, 0.3); padding-bottom: 0.3rem; }
        .hero-cta:hover { opacity: 0.8; border-bottom-color: var(--light-text); }

        /* --- STILI PER LA SEZIONE SHOWCASE --- */
        section { padding: 6rem 0; }
        section h2 { text-align: center; font-size: 2.5rem; margin-bottom: 3rem; position: relative; }
        section h2::after { content: ''; display: block; width: 60px; height: 3px; background: var(--petrol-blue); margin: 0.5rem auto 0; }

        .modern-showcase-container { display: flex; gap: 1.5rem; width: 100%; height: 60vh; min-height: 500px; }

        .showcase-panel {
            flex: 1;
            position: relative;
            border-radius: 12px;
            overflow: hidden;
            cursor: pointer;
            transition: flex 0.7s cubic-bezier(0.165, 0.84, 0.44, 1);
            display: flex;
            align-items: flex-end;
            text-decoration: none;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            background-color: #222; /* Fallback color */
        }

        .showcase-panel.active { flex: 2.5; }

        /* NUOVO STILE per le immagini di sfondo dei pannelli */
        .panel-background-image {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            z-index: 1; /* Sotto l'overlay e il contenuto */
            transition: transform 0.7s cubic-bezier(0.165, 0.84, 0.44, 1);
        }

        .showcase-panel:hover .panel-background-image {
            transform: scale(1.05); /* Effetto zoom su hover */
        }

        .showcase-panel::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 70%;
            background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
            transition: height 0.5s ease;
            z-index: 2; /* Sopra l'immagine di sfondo */
        }

        .showcase-panel:hover::after { height: 85%; }
        .panel-content { position: relative; z-index: 3; padding: 2.5rem; color: white; width: 100%; transition: all 0.5s ease; text-align: left; }
        .panel-content h3 { font-size: 2rem; color: white; line-height: 1.1; margin-bottom: 0.5rem; }
        .panel-content p { font-size: 0.94rem; color: rgba(255, 255, 255, 0.8); display: flex; align-items: center; gap: 0.5rem; opacity: 0; max-height: 0; overflow: hidden; transition: opacity 0.4s ease, max-height 0.4s ease; }
        .showcase-panel.active .panel-content p { opacity: 1; max-height: 10em; }
        .panel-content p i { transition: transform 0.3s ease; }
        .showcase-panel:hover .panel-content p i { transform: translateX(5px); }

        /* --- SEZIONE PROGETTI --- */
        .section-subtitle {
            text-align: center;
            font-size: 1.1rem;
            color: var(--gray-text);
            max-width: 600px;
            margin: -2rem auto 4rem auto;
            line-height: 1.6;
        }

        .projects-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 2rem;
            margin-top: 3rem;
        }

        .project-card {
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 16px;
            padding: 2.5rem;
            transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
            position: relative;
            overflow: hidden;
            cursor: pointer;
        }

        .project-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, var(--petrol-blue) 0%, var(--accent-orange) 100%);
            opacity: 0;
            transition: opacity 0.4s ease;
            z-index: -1;
        }

        .project-card:hover {
            transform: translateY(-8px);
            border-color: rgba(255, 255, 255, 0.15);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
        }

        .project-card:hover::before {
            opacity: 0.03;
        }

        .project-icon {
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, var(--petrol-blue), var(--accent-orange));
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 1.5rem;
            transition: transform 0.3s ease;
        }

        .project-card:hover .project-icon {
            transform: scale(1.1) rotate(5deg);
        }

        .project-icon i {
            font-size: 1.5rem;
            color: white;
        }

        .project-content h3 {
            font-size: 1.4rem;
            color: var(--light-text);
            margin-bottom: 1rem;
            font-weight: 600;
        }

        .project-content p {
            color: var(--gray-text);
            line-height: 1.6;
            margin-bottom: 1.5rem;
        }


        .project-card:hover {
            background: rgba(255, 255, 255, 0.1);
            border-color: rgba(255, 255, 255, 0.2);
        }

        /* --- SEZIONE CTA --- */
        .cta-section {
            background: linear-gradient(135deg, var(--petrol-blue) 0%, #004a5c 100%);
            color: var(--light-text);
            position: relative;
            overflow: hidden;
        }

        .cta-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="80" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="70" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="10" r="1" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
            opacity: 0.3;
        }

        .cta-content {
            text-align: center;
            position: relative;
            z-index: 2;
        }

        .cta-content h2 {
            font-size: 3rem;
            margin-bottom: 1.5rem;
            font-weight: 600;
        }

        .cta-content p {
            font-size: 1.2rem;
            max-width: 700px;
            margin: 0 auto 3rem auto;
            line-height: 1.6;
            opacity: 0.9;
        }

        .cta-buttons {
            display: flex;
            gap: 1.5rem;
            justify-content: center;
            flex-wrap: wrap;
        }

        .btn-primary,
        .btn-secondary {
            padding: 1rem 2.5rem;
            font-family: var(--body-sans);
            font-weight: 500;
            text-decoration: none;
            border-radius: 8px;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 1rem;
        }

        .btn-primary {
            background: var(--accent-orange);
            color: white;
            border: 2px solid var(--accent-orange);
        }

        .btn-primary:hover {
            background: transparent;
            color: var(--accent-orange);
            transform: translateY(-2px);
            box-shadow: 0 10px 25px rgba(249, 115, 22, 0.3);
        }

        .btn-secondary {
            background: transparent;
            color: var(--light-text);
            border: 2px solid rgba(255, 255, 255, 0.3);
        }

        .btn-secondary:hover {
            background: rgba(255, 255, 255, 0.1);
            border-color: rgba(255, 255, 255, 0.5);
            transform: translateY(-2px);
        }

        footer {
            background-color: #000000; /* Pure black background */
            color: var(--gray-text);
            padding: 4rem 0 2rem 0;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            font-family: var(--body-sans);
            font-size: 0.95rem;
        }

        .footer-grid {
            display: grid;
            grid-template-columns: 2fr 1fr 1fr;
            gap: 2rem;
            margin-bottom: 3rem;
        }

        .footer-column h4 {
            color: var(--light-text);
            font-family: var(--heading-sans);
            margin-bottom: 1.5rem;
            font-size: 1.1rem;
            font-weight: 600;
        }

        .footer-links {
            list-style: none;
        }

        .footer-links li {
            margin-bottom: 0.8rem;
        }

        .footer-links a {
            color: var(--gray-text);
            text-decoration: none;
            transition: color 0.3s ease;
            line-height: 1.6;
        }

        .footer-links a:hover {
            color: var(--accent-orange);
        }

        /* Logo Column Styles */
        .logo-column .footer-logo {
            display: flex;
            align-items: center;
            margin-bottom: 1.5rem;
        }

        .logo-text {
            font-family: var(--heading-sans);
            font-size: 1.8rem;
            font-weight: 700;
            color: var(--light-text);
        }

        .highlight-accent {
            color: var(--accent-orange);
        }

        .footer-description {
            color: var(--gray-text);
            line-height: 1.7;
            margin-bottom: 1.5rem;
            max-width: 350px;
        }

        .social-links {
            display: flex;
            gap: 1rem;
        }

        .social-links a {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            background-color: rgba(255, 255, 255, 0.05);
            border-radius: 50%;
            color: var(--gray-text);
            transition: all 0.3s ease;
            text-decoration: none;
        }

        .social-links a:hover {
            background-color: var(--accent-orange);
            color: white;
            transform: translateY(-3px);
        }

        /* Footer Bottom Styles */
        .footer-bottom {
            padding-top: 2rem;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 1rem;
        }

        .copyright {
            font-size: 0.9rem;
            color: var(--gray-text);
        }

        .legal-links {
            display: flex;
            gap: 1.5rem;
        }

        .legal-links a {
            color: var(--gray-text);
            text-decoration: none;
            font-size: 0.9rem;
            transition: color 0.3s ease;
        }

        .legal-links a:hover {
            color: var(--accent-orange);
        }
        /* --- RESPONSIVE DESIGN --- */
        @media (max-width: 768px) {
            header { padding: 1.5rem 0; }
            header nav { display: none; }
            .container { padding: 0 1.5rem; }
            .hero-content h1 { font-size: 3rem; }
            #hero::before { background: linear-gradient(to right, rgba(16, 18, 20, 0.95) 40%, rgba(16, 18, 20, 0.4) 100%); }
            section { padding: 4rem 0; }
            .modern-showcase-container { flex-direction: column; height: auto; }
            .showcase-panel,
            .showcase-panel.active { min-height: 250px; flex: 1 !important; }
            .showcase-panel .panel-content p { opacity: 1; max-height: 10em; }
            .panel-content h3 { font-size: 1.8rem; }
            
            /* Responsive per progetti */
            .projects-grid { 
                grid-template-columns: 1fr; 
                gap: 1.5rem; 
            }
            .project-card { 
                padding: 2rem; 
            }
     
            /* Responsive per CTA */
            .cta-content h2 { 
                font-size: 2.5rem; 
            }
            .cta-content p { 
                font-size: 1.1rem; 
            }
            .cta-buttons { 
                flex-direction: column; 
                align-items: center; 
            }
            .btn-primary,
            .btn-secondary { 
                width: 100%; 
                max-width: 300px; 
                justify-content: center; 
            }
            
            .footer-grid {
                grid-template-columns: 1fr;
                gap: 2rem;
            }
            
            .footer-column {
                min-width: 100%;
            }
            
            .footer-bottom {
                flex-direction: column;
                text-align: center;
            }
            
            .legal-links {
                justify-content: center;
            }
            
            .logo-column .footer-logo {
                justify-content: center;
            }
            
            .footer-description {
                text-align: center;
                margin-left: auto;
                margin-right: auto;
            }
            
            .social-links {
                justify-content: center;
            }
        }