:root {
            --primary-color: #2c3e50; /* Blu scuro/grigio */
            --secondary-color: #d4af37; /* Oro */
            --text-color: #34495e;
            --bg-color: #fdfdfd;
            --light-gray: #ecf0f1;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            margin: 0;
            padding: 0;
            background-color: var(--bg-color);
            color: var(--text-color);
            line-height: 1.6;
        }

        .container {
            width: 90%;
            max-width: 1200px;
            margin: auto;
            overflow: hidden;
            padding: 0 20px;
        }

        /* Header */
        header {
            background: var(--bg-color); /* Sfondo bianco */
            color: var(--primary-color); /* Testo scuro */
            padding: 1rem 0;
            position: sticky;
            top: 0;
            z-index: 1000;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            transition: top 0.3s ease-in-out;
        }
        
        header.hidden {
            top: -100px; /* Nasconde l'header spostandolo sopra la viewport */
        }

        header .container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            overflow: visible; /* Evita che la tendina venga tagliata */
        }

        header h1 {
            margin: 0;
            font-size: 1.8rem;
            font-weight: 600;
        }

        header h1 span {
            color: var(--secondary-color);
        }

        .logo-img {
            height: 50px; /* Imposta un'altezza fissa per il logo */
            width: auto; /* Mantiene le proporzioni */
            vertical-align: middle; /* Allinea verticalmente l'immagine */
        }

        nav ul {
            padding: 0;
            margin: 0;
            list-style: none;
            display: flex; /* Usa Flexbox per l'allineamento */
            align-items: center; /* Allinea verticalmente gli elementi */
        }

        nav ul li {
            /* display: inline; Rimosso */
            margin-left: 25px;
        }

        nav a {
            color: var(--primary-color);
            text-decoration: none;
            font-size: 1rem;
            font-weight: 500;
            transition: color 0.3s ease;
        }

        nav a:hover {
            color: var(--secondary-color);
        }

        /* Language Selector - New */
        .language-selector {
            position: relative;
            display: flex;
            align-items: center;
        }
        
        .language-selector .current-language,
        .language-selector .language-dropdown a {
            display: flex;
            align-items: center;
            padding: 5px 10px;
            text-decoration: none;
            color: var(--primary-color);
            font-weight: 500;
            gap: 8px;
        }
        
        .language-selector .flag-icon {
            width: 16px;            height: auto;
            border-radius: 3px;
        }
        
        .language-dropdown {
            display: none;
            position: absolute;
            top: 100%;
            left: 0;
            background-color: var(--bg-color);
            border-radius: 5px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            padding: 5px 0;
            margin-top: 10px;
            z-index: 2000; /* Assicura che sia sopra tutto */
        }
        
        .language-selector.open .language-dropdown {
            display: block;
        }        
                
        .language-dropdown a {
            white-space: nowrap;
        }
        
        .language-dropdown a:hover {
            background-color: var(--light-gray);
        }        
        .menu-toggle {
            display: none; /* Nascosto di default sui desktop */
            font-size: 2rem;
            color: var(--primary-color);
            background: none;
            border: none;
            cursor: pointer;
        }

        /* Hero Section */
        .hero {
            height: 80vh;
            display: flex;
            justify-content: center;
            align-items: center;
            text-align: center;
            color: #fff;
            position: relative;
            overflow: hidden; /* Nasconde le parti del video che escono dal contenitore */
        }

        .hero-video {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            min-width: 100%;
            min-height: 100%;
            width: auto;
            height: auto;
            z-index: -1; /* Posiziona il video dietro a tutto il resto */
            object-fit: cover; /* Assicura che il video copra lo spazio senza distorcersi */
        }
        
        .hero::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
        }

        .hero-content {
            z-index: 1;
        }

        .hero h2 {
            font-size: 3.5rem;
            margin-bottom: 1rem;
            font-weight: 700;
        }

        .hero p {
            font-size: 1.3rem;
            margin-bottom: 2rem;
        }

        .btn {
            display: inline-block;
            background: var(--secondary-color);
            color: var(--primary-color);
            padding: 12px 25px;
            text-decoration: none;
            border-radius: 5px;
            font-weight: bold;
            transition: background 0.3s ease, color 0.3s ease;
        }

        .btn:hover {
            background: #c8a02a;
            color: #fff;
        }

        /* Sections */
        .section {
            padding: 80px 0;
        }

        .section + .section {
            padding-top: 0;
        }

        /* Riduce lo spazio solo per la prima sezione dopo l'hero */
        main > .section:first-of-type {
            padding-top: 40px;
        }

        .section-title {
            text-align: center;
            font-size: 2.5rem;
            margin-bottom: 40px;
            font-weight: 600;
            color: var(--primary-color);
        }



        /* Featured Collections */
        .collections-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
        }

        .collection-card {
            background: #fff;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 4px 15px rgba(0,0,0,0.08);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            cursor: pointer;
        }

        .collection-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 8px 25px rgba(0,0,0,0.12);
        }

        .collection-card img {
            width: 100%;
            height: 220px;
            object-fit: cover;
        }

        .collection-card-content {
            padding: 20px;
            text-align: center;
        }

        .collection-card h3 {
            margin: 0 0 10px 0;
            font-size: 1.4rem;
            color: var(--primary-color);
        }

        /* About Section */
        #about {
            background-color: var(--light-gray);
        }

        /* Feature Layout Section */
        .feature-layout {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 50px;
            align-items: center;
        }

        .feature-image img {
            width: 100%;
            border-radius: 8px;
            box-shadow: 0 8px 25px rgba(0,0,0,0.1);
        }

        .feature-content h3 {
            font-size: 2rem;
            color: var(--primary-color);
            margin-bottom: 20px;
        }

        .feature-content p {
            font-size: 1.1rem;
            line-height: 1.7;
        }

        /* CTA Section */
        .section-cta .container {
            background-color: var(--primary-color);
            color: #fff;
            text-align: center;
            padding: 60px 40px;
            border-radius: 8px;
            box-shadow: 0 10px 30px rgba(44, 62, 80, 0.15);
        }
        .section-cta h3 {
            font-size: 2.2rem;
            color: #fff;
            margin: 0 0 20px 0;
        }
        .section-cta p {
            max-width: 700px;
            margin: 0 auto 30px auto;
            font-size: 1.1rem;
            line-height: 1.7;
        }
        .section-cta .btn {
            background: #fff;
            color: var(--primary-color);
            border: 2px solid transparent;
        }
        .section-cta .btn:hover {
            background: transparent;
            color: #fff;
            border-color: #fff;
        }
        
        #about p {
            text-align: center;
            max-width: 800px;
            margin: 0 auto;
            font-size: 1.1rem;
        }

        /* Footer */
        footer {
            background: var(--primary-color);
            color: #fff;
            text-align: center;
            padding: 60px 20px;
        }
        
        footer p {
            margin: 0;
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            header .container {
                justify-content: center; /* Centra il titolo */
                position: relative; /* Necessario per posizionare l'hamburger */
                flex-wrap: wrap; /* Mantiene il wrapping per il menu */
            }

            header h1 {
                font-size: 1.5rem; /* Riduci leggermente per dare più spazio */
            }

            .menu-toggle {
                display: block; /* Mostra il pulsante hamburger */
                position: absolute;
                right: 20px;
                top: 50%;
                transform: translateY(-50%);
            }

            nav {
                width: 100%;
                max-height: 0;
                overflow: hidden;
                transition: max-height 0.4s ease-out;
                background: var(--bg-color);
                border-radius: 0 0 8px 8px;
                box-shadow: 0 4px 15px rgba(0,0,0,0.1);
            }
            
            nav.active {
                max-height: 300px; /* Altezza sufficiente per i link */
            }

            nav ul {
                flex-direction: column;
                text-align: center;
                width: 100%;
            }

            nav ul li {
                display: block;
                margin: 15px 0;
            }

            .hero h2 {
                font-size: 2.5rem;
            }

            .hero p {
                font-size: 1.1rem;
            }

            .feature-layout {
                grid-template-columns: 1fr; /* Le colonne si impilano */
            }
        }