/* === RESET & VARIABLES === */
        :root {
            --font-serif: 'Playfair Display', serif;
            --font-sans: 'Inter', sans-serif;
            --color-text: #111111;
            --color-text-light: #555555;
            --color-background: #ffffff;
            --color-background-light: #ffffff;
            --color-accent: #111111;
            --color-border: #eaeaea;
            --radius-small: 4px;
            --radius-medium: 8px;
            --radius-large: 12px;
            --space-xs: 0.5rem;
            --space-sm: 1rem;
            --space-md: 2rem;
            --space-lg: 4rem;
            --space-xl: 8rem;
            --transition: all 0.3s ease;
            --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.03);
            --shadow-medium: 0 5px 20px rgba(0, 0, 0, 0.05);
        }
        
        .fireworks {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            pointer-events: none;
            z-index: 9999;
        }
        
        *, *::before, *::after {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }
        
        html {
            scroll-behavior: smooth;
        }
        
        body {
            position: relative;
            overflow-x: hidden;
            font-family: var(--font-sans);
            line-height: 1.7;
            color: var(--color-text);
            background-color: var(--color-background);
            overflow-x: hidden;
            font-size: 16px;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }
        
        img {
            max-width: 100%;
            height: auto;
            display: block;
        }
        
        a {
            color: inherit;
            text-decoration: none;
            transition: var(--transition);
        }
        
        ul, ol {
            list-style: none;
        }
        
        button, input, textarea, select {
            font: inherit;
            color: inherit;
            border: none;
            background-color: transparent;
        }
        
        button {
            cursor: pointer;
        }
        
        h1, h2, h3, h4, h5, h6 {
            font-family: var(--font-serif);
            font-weight: 500;
            line-height: 1.2;
        }
        
        /* === LAYOUT === */
        .container {
            width: 90%;
            max-width: 1440px;
            margin: 0 auto;
            padding: 0 var(--space-sm);
        }
        
        .container-narrow {
            max-width: 768px;
        }
        
        .container-wide {
            max-width: 1600px;
        }
        
        section {
            padding: var(--space-xl) 0;
        }
        
        .flex {
            display: flex;
        }
        
        .flex-center {
            justify-content: center;
            align-items: center;
        }
        
        .flex-between {
            justify-content: space-between;
            align-items: center;
        }
        
        .flex-column {
            flex-direction: column;
        }
        
        .grid {
            display: grid;
        }
        
        /* === TYPOGRAPHY === */
        .title-large {
            font-size: clamp(2.5rem, 5vw, 4rem);
            margin-bottom: var(--space-md);
            font-weight: 500;
        }
        
        .title-medium {
            font-size: clamp(2rem, 4vw, 3rem);
            margin-bottom: var(--space-md);
            font-weight: 500;
        }
        
        .title-small {
            font-size: clamp(1.5rem, 3vw, 2rem);
            margin-bottom: var(--space-sm);
            font-weight: 500;
        }
        
        .subtitle {
            font-size: clamp(1rem, 2vw, 1.25rem);
            font-weight: 400;
            color: var(--color-text-light);
            margin-bottom: var(--space-lg);
            line-height: 1.7;
        }
        
        .text-center {
            text-align: center;
        }
        
        /* === COMPONENTS === */
        .btn {
            display: inline-block;
            padding: var(--space-sm) var(--space-lg);
            background-color: var(--color-accent);
            color: white;
            border-radius: 999px;
            font-weight: 500;
            transition: var(--transition);
            text-align: center;
        }
        
        .btn:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-medium);
        }
        
        .btn-light {
            background-color: var(--color-background-light);
            color: var(--color-text);
        }
        
        .btn-outline {
            background-color: transparent;
            border: 1px solid var(--color-border);
            color: var(--color-text);
        }
        
        .btn-outline:hover {
            background-color: var(--color-background-light);
        }
        
        .card {
            background-color: var(--color-background);
            border-radius: var(--radius-medium);
            overflow: hidden;
            transition: var(--transition);
            box-shadow: var(--shadow-light);
        }
        
        .card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-medium);
        }
        
        .card-content {
            padding: var(--space-md);
            flex-grow: 1; /* Permette ai contenuti di espandersi */
            display: flex;
            flex-direction: column;
        }
        
        /* === HEADER === */
        .header {
            position: sticky;
            top: 0;
            background-color: var(--color-background);
            z-index: 1000;
            padding: var(--space-sm) 0;
            border-bottom: 1px solid var(--color-border);
        }

        .header .container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: var(--space-md);
        }
        
        .logo {
            height: 100px;
            width: 150px;
            flex-shrink: 0;
        }

        .header-nav {
            flex: 1;
            display: flex;
            justify-content: center;
        }
        
        .nav-list {
            display: flex;
            gap: var(--space-md);
        }
        
        .nav-item {
            position: relative;
        }
        
        .nav-link {
            padding: var(--space-xs) 0;
            font-weight: 500;
        }
        
        .nav-link:hover {
            color: var(--color-text-light);
        }
        
        .nav-actions {
            display: flex;
            align-items: center;
            gap: var(--space-md);
            flex-shrink: 0;
        }

        /* === LANGUAGE SELECTOR === */
        .language-selector {
            position: relative;
            margin-left: var(--space-sm);
        }

        .language-selector select {
            background: var(--color-accent);
            color: white;
            border: none;
            padding: 12px 24px;
            border-radius: 999px;
            cursor: pointer;
            font-family: var(--font-body);
            font-size: 14px;
            font-weight: 500;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='white'%3E%3Cpath d='M6 8L2 4h8l-4 4z'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: calc(100% - 12px) center;
            min-width: 140px;
            outline: none;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }

        .language-selector select:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
            background-color: rgba(0, 0, 0, 0.9);
        }

        .language-selector select:focus {
            outline: 2px solid rgba(255, 255, 255, 0.3);
            outline-offset: 2px;
        }

        /* Custom Dropdown Styles */
        .custom-language-dropdown {
            position: relative;
            display: inline-block;
            z-index: 1000;
        }

        .custom-language-button {
            background: var(--color-accent);
            color: white;
            border: none;
            padding: 12px 20px 12px 16px;
            border-radius: 999px;
            cursor: pointer;
            font-family: var(--font-body);
            font-size: 14px;
            font-weight: 500;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            min-width: 140px;
            display: flex;
            align-items: center;
            gap: 8px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            outline: none;
            position: relative;
            overflow: hidden;
        }

        .custom-language-button::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 50%);
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .custom-language-button:hover::before {
            opacity: 1;
        }

        .custom-language-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
            background-color: rgba(0, 0, 0, 0.9);
        }

        .custom-language-button:active {
            transform: translateY(-1px);
            box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
        }

        .custom-language-button:focus {
            outline: 2px solid rgba(255, 255, 255, 0.3);
            outline-offset: 2px;
        }

        .language-flag {
            font-size: 16px;
            line-height: 1;
            filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
        }

        .language-text {
            flex: 1;
            text-align: left;
            font-weight: 500;
            letter-spacing: 0.5px;
        }

        .dropdown-arrow {
            font-size: 10px;
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            opacity: 0.8;
            margin-left: 4px;
        }

        .custom-language-dropdown.open .dropdown-arrow {
            transform: rotate(180deg);
        }

        .custom-language-list {
            position: absolute;
            top: calc(100% + 8px);
            left: 0;
            right: 0;
            background: var(--color-accent);
            border-radius: 16px;
            box-shadow: 
                0 20px 40px rgba(0, 0, 0, 0.3),
                0 8px 16px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
            overflow: hidden;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px) scale(0.95);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            z-index: 1001;
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            max-height: 250px;
            overflow-y: auto;
        }

        .custom-language-dropdown.open .custom-language-list {
            opacity: 1;
            visibility: visible;
            transform: translateY(0) scale(1);
        }

        .custom-language-item {
            padding: 12px 16px;
            color: white;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 10px;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            font-size: 14px;
            font-weight: 400;
            position: relative;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        }

        .custom-language-item:last-child {
            border-bottom: none;
        }

        .custom-language-item:hover {
            background: rgba(255, 255, 255, 0.1);
            padding-left: 20px;
            transform: translateX(4px);
        }

        .custom-language-item.selected {
            background: rgba(255, 255, 255, 0.15);
            font-weight: 600;
            color: #ffffff;
        }

        .custom-language-item.selected::after {
            content: '✓';
            position: absolute;
            right: 16px;
            color: #4ade80;
            font-weight: bold;
            font-size: 16px;
            animation: checkmark-appear 0.3s ease;
        }

        @keyframes checkmark-appear {
            from {
                opacity: 0;
                transform: scale(0.5);
            }
            to {
                opacity: 1;
                transform: scale(1);
            }
        }

        /* Smooth scrollbar for dropdown */
        .custom-language-list::-webkit-scrollbar {
            width: 6px;
        }

        .custom-language-list::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.1);
            border-radius: 3px;
        }

        .custom-language-list::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.3);
            border-radius: 3px;
        }

        .custom-language-list::-webkit-scrollbar-thumb:hover {
            background: rgba(255, 255, 255, 0.5);
        }

        /* Smooth transitions for language change */
        .language-transitioning {
            transition: opacity 0.3s ease;
        }

        /* === LANGUAGE SELECTOR === */
        .language-selector {
            position: relative;
            margin-left: var(--space-sm);
        }

        .language-selector select {
            background: rgba(255, 255, 255, 0.95);
            color: var(--color-text);
            border: 1px solid rgba(0, 0, 0, 0.1);
            padding: 10px 16px;
            border-radius: 12px;
            cursor: pointer;
            font-family: var(--font-body);
            font-size: 14px;
            font-weight: 500;
            appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='%23666'%3E%3Cpath d='M7 10L3 6h8l-4 4z'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: calc(100% - 12px) center;
            padding-right: 36px;
            outline: none;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            backdrop-filter: blur(10px);
            min-width: 120px;
        }

        .language-selector select:hover {
            background: rgba(255, 255, 255, 1);
            border-color: rgba(0, 0, 0, 0.2);
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
            transform: translateY(-1px);
        }

        .language-selector select:focus {
            outline: none;
            border-color: var(--color-primary);
            box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1), 0 4px 16px rgba(0, 0, 0, 0.12);
            transform: translateY(-1px);
        }

        /* Modern dropdown animation when opening */
        .language-selector select[size] {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            z-index: 1000;
            background: white;
            border-radius: 12px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
            border: 1px solid rgba(0, 0, 0, 0.1);
            backdrop-filter: blur(20px);
            animation: dropdownSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        @keyframes dropdownSlideIn {
            from {
                opacity: 0;
                transform: translateY(-10px) scale(0.95);
            }
            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        /* Enhanced option spacing and typography */
        .language-selector select option {
            background: white;
            color: var(--color-text);
            padding: 14px 16px;
            font-weight: 500;
            border: none;
            font-size: 14px;
            line-height: 1.4;
            transition: all 0.2s ease;
            border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        }

        .language-selector select option:last-child {
            border-bottom: none;
        }

        .language-selector select option:hover {
            background: #f8f9fa;
            color: var(--color-primary);
            font-weight: 600;
        }

        .language-selector select option:checked,
        .language-selector select option:focus {
            background: var(--color-primary);
            color: white;
            font-weight: 600;
        }

        /* Modern dropdown styling for WebKit browsers */
        .language-selector select::-webkit-scrollbar {
            width: 6px;
        }

        .language-selector select::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 3px;
        }

        .language-selector select::-webkit-scrollbar-thumb {
            background: #c1c1c1;
            border-radius: 3px;
        }

        .language-selector select::-webkit-scrollbar-thumb:hover {
            background: #a8a8a8;
        }

        /* Enhanced dropdown appearance */
        .language-selector {
            position: relative;
        }

        .language-selector::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
            border-radius: 12px;
            pointer-events: none;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .language-selector:hover::before {
            opacity: 1;
        }

        .language-selector select:focus {
            outline: 2px solid rgba(255, 255, 255, 0.3);
            outline-offset: 1px;
        }
        
        .menu-toggle {
            display: none;
            flex-direction: column;
            gap: 5px;
            cursor: pointer;
        }
        
        .menu-toggle span {
            display: block;
            width: 24px;
            height: 2px;
            background-color: var(--color-text);
            transition: var(--transition);
        }
        
        /* === HERO SECTION === */
        .hero {
            padding: var(--space-xl) 0;
            position: relative;
            overflow: hidden;
        }
        
        /* Riduce l'altezza del banner nella pagina contatti */
        #contact-hero {
            padding: var(--space-md) 0 var(--space-sm);
            margin-bottom: 0;
            display: flex;
            align-items: flex-start;
            justify-content: center;
            min-height: 7vh;
        }
        
        #contact-hero .hero-content {
            margin-bottom: 0;
            text-align: center;
            width: 100%;
            padding-top: var(--space-md);
            position: relative;
        }
        
        /* Riduce lo spazio tra banner e form contatti */
        #contact-hero + .contact-section {
            margin-top: 0;
            padding-top: var(--space-xs);
        }
        
        .hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: radial-gradient(circle, #00000005 1px, transparent 1px);
            background-size: 20px 20px;
            opacity: 0.8;
            z-index: -1;
        }
        
        .hero-content {
            max-width: 900px;
            margin: 0 auto;
            text-align: center;
            padding: var(--space-sm) 0 var(--space-lg) 0; /* Ridotto il padding */
        }
        
        .hero-title {
            max-width: 800px;
            margin-left: auto;
            margin-right: auto;
        }
        
        .hero-subtitle {
            max-width: 700px;
            margin-left: auto;
            margin-right: auto;
        }
        
        .hero-cta {
            margin-top: var(--space-lg);
        }
        
        /* === VIDEO SECTION === */
        .video-section {
            padding: var(--space-xl) 0;
            background-color: var(--color-background-light);
        }
        
        .video-container {
            position: relative;
            max-width: 900px;
            margin: 0 auto;
            border-radius: var(--radius-large);
            overflow: hidden;
            box-shadow: var(--shadow-medium);
            aspect-ratio: 16/9;
        }

        .video-container iframe {
            width: 100%;
            height: 100%;
            border: none;
            display: block;
        }
        
        .video-thumbnail {
            width: 100%;
            aspect-ratio: 16/9;
            background-color: #f0f0f0;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
        }
        
        .video-thumbnail::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.1);
        }
        
        .play-button {
            position: absolute;
            width: 80px;
            height: 80px;
            background-color: var(--color-accent);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: var(--transition);
            z-index: 1;
        }
        
        .play-button:hover {
            transform: scale(1.1);
        }
        
        .play-button::after {
            content: '';
            width: 0;
            height: 0;
            border-top: 15px solid transparent;
            border-left: 25px solid white;
            border-bottom: 15px solid transparent;
            margin-left: 5px;
        }
        
        .video-title {
            position: absolute;
            bottom: var(--space-lg);
            left: var(--space-lg);
            color: white;
            font-weight: 500;
            z-index: 1;
            font-size: 1.5rem;
        }
        
        /* === USE CASES SECTION === */
        .use-cases {
            padding: var(--space-xl) 0;
            background-color: var(--color-background);
        }
        
        .filters {
            display: flex;
            flex-wrap: wrap;
            gap: var(--space-sm);
            margin-bottom: var(--space-lg);
            justify-content: center;
        }
        
        .filter-btn {
            padding: var(--space-xs) var(--space-md);
            border-radius: 999px;
            border: 1px solid var(--color-border);
            transition: var(--transition);
        }
        
        .filter-btn.active, .filter-btn:hover {
            background-color: var(--color-accent);
            color: white;
            border-color: var(--color-accent);
        }
        
        .use-cases-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            grid-template-rows: repeat(2, 1fr);
            gap: 40px;
            margin-top: var(--space-lg);
            max-width: 1200px;
            margin-left: auto;
            margin-right: auto;
        }
        
        .use-case-card {
            padding: var(--space-md);
            background-color: white;
            border-radius: var(--radius-medium);
            box-shadow: var(--shadow-light);
            transition: var(--transition);
            height: 100%;
            display: flex;
            flex-direction: column;
            border: 1px solid var(--color-border);
        }
        
        .use-case-title {
            font-family: var(--font-serif);
            font-size: 1.375rem; /* 22px */
            font-weight: 600;
            margin-bottom: var(--space-sm);
            color: var(--color-text);
        }
        
        .use-case-description {
            font-family: var(--font-sans);
            font-size: 1rem; /* 16px */
            line-height: 1.6;
            color: var(--color-text-light);
            margin-bottom: var(--space-md);
            flex-grow: 1; /* Per mantenere le altezze delle card uguali */
        }
        
        .use-case-tag {
            display: inline-block;
            padding: 0.25rem 0.75rem;
            background-color: #c4c4c4;
            border-radius: 999px;
            font-size: 0.75rem;
            font-weight: 500;
            color: #555555
            margin-right: 0.5rem;
            margin-bottom: 0.5rem;
        }
        
        /* === TESTIMONIALS === */
        .testimonials {
            padding: var(--space-xl) 0;
            overflow: hidden; /* Contiene il carousel */
            background-color: var(--color-background-light);
        }
        
        .testimonial-carousel-wrapper {
            width: 100%;
            overflow: hidden;
            position: relative;
            margin: var(--space-md) 0;
            padding: var(--space-md) 0;
        }
        
        .testimonial-carousel-track {
            display: flex;
            gap: var(--space-md);
            width: max-content;
            animation: infiniteScroll 40s linear infinite;
        }
        
        .testimonial-carousel-track:hover {
            animation-play-state: paused; /* Mette in pausa l'animazione al passaggio del mouse */
        }
        
        /* Animazione di scorrimento infinito */
        @keyframes infiniteScroll {
            0% {
                transform: translateX(0);
            }
            100% {
                transform: translateX(calc(-330px * 3 - var(--space-md) * 3)); /* Scorre 3 card + loro gap */
            }
        }
        
        .testimonial-card {
            width: 330px;
            flex-shrink: 0;
            padding: 24px; /* Padding aumentato per maggiore spaziatura */
            background-color: white;
            border-radius: var(--radius-medium);
            box-shadow: var(--shadow-light);
            border: 1px solid var(--color-border);
            min-height: 260px; /* Altezza minima per evitare card troppo corte */
            box-sizing: border-box; /* Assicura che padding sia incluso nelle dimensioni */
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }
        
        .testimonial-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-medium);
        }
        
        .testimonial-content {
            font-style: italic;
            margin-bottom: var(--space-md); /* Margine inferiore aumentato */
            color: var(--color-text);
            font-size: 1.05rem;
            line-height: 1.6;
            flex-grow: 1; /* Permette al testo di espandersi quanto necessario */
            word-wrap: break-word; /* Assicura che le parole troppo lunghe vengano interrotte correttamente */
            overflow: visible; /* Permette al testo di essere completamente visibile */
        }
        
        .testimonial-author {
            display: flex;
            align-items: center;
            gap: var(--space-sm);
        }
        
        .author-avatar {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background-color: #f0f0f0;
            overflow: hidden;
        }
        
        .author-info {
            display: flex;
            flex-direction: column;
        }
        
        .author-name {
            font-family: var(--font-serif);
            font-weight: 600;
            color: var(--color-text);
        }
        
        .author-title {
            font-size: 0.85rem;
            color: var(--color-text-light);
        }

        .faq-question {
            font-family: 'Raleway', sans-serif;
            font-size: 16px;
            font-weight: 350;
            font-style: normal;
            margin-bottom: var(--space-sm);
            color: var(--color-text);
        }        
        
        /* === EVENTS SECTION === */
        .events {
            padding: var(--space-xl) 0;
            text-align: center;
            display: flex;
            flex-direction: column;
            align-items: center; /* Centra i contenuti orizzontalmente */
        }
        
        .events-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: var(--space-md);
            max-width: 1200px; /* Larghezza massima per evitare stretching eccessivo */
            margin: 0 auto;
            width: 100%;
        }
        
        .event-card {
            background-color: white;
            border-radius: var(--radius-medium);
            overflow: hidden;
            border: 1px solid var(--color-border);
            box-shadow: var(--shadow-light);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            display: flex;
            flex-direction: column;
            height: 100%;
            min-height: 320px; /* Altezza minima per uniformità */
        }
        
        .event-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-medium);
        }
        
        .event-image {
            height: 200px;
            background-color: #f0f0f0;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--color-text-light);
            border-radius: var(--radius-medium) var(--radius-medium) 0 0;
            overflow: hidden;
        }
        
        /* Hide empty event images */
        .event-image:empty {
            display: none;
        }
        
        /* === CONTACT PAGE STYLES === */
        .contact-section {
            padding: var(--space-md) 0;
            background-color: var(--color-background-light);
        }
        
        .contact-grid {
            display: grid;
            grid-template-columns: 2fr 1fr;
            gap: var(--space-xl);
            max-width: 1200px;
            margin: 0 auto;
        }
        
        .contact-form-wrapper {
            width: 100%;
        }
        
        .contact-form {
            display: flex;
            flex-direction: column;
            gap: var(--space-sm);
        }
        
        .form-group {
            display: flex;
            flex-direction: column;
        }
        
        .form-group label {
            margin-bottom: var(--space-xs);
            font-weight: 500;
            color: var(--color-text);
            font-size: 0.95rem;
        }
        
        .form-group input,
        .form-group select,
        .form-group textarea {
            padding: var(--space-sm);
            border: 1px solid var(--color-border);
            border-radius: var(--radius-medium);
            font-size: 1rem;
            transition: var(--transition);
            background-color: var(--color-background);
        }
        
        .form-group input:focus,
        .form-group select:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: var(--color-accent);
            box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.1);
        }
        
        .form-group textarea {
            resize: vertical;
            min-height: 100px;
        }
        
        .checkbox-group {
            flex-direction: row;
            align-items: flex-start;
            gap: var(--space-sm);
        }
        
        .checkbox-label {
            display: flex;
            align-items: flex-start;
            gap: var(--space-xs);
            cursor: pointer;
            font-size: 0.9rem;
            line-height: 1.5;
        }
        
        .checkbox-label input[type="checkbox"] {
            width: 18px;
            height: 18px;
            margin: 0;
            flex-shrink: 0;
        }
        
        .btn-submit {
            margin-top: var(--space-sm);
            align-self: flex-start;
            min-width: 200px;
        }
        
        .contact-info-wrapper {
            display: flex;
            flex-direction: column;
            gap: var(--space-lg);
        }
        
        .contact-info {
            background-color: var(--color-background);
            padding: var(--space-lg);
            border-radius: var(--radius-medium);
            box-shadow: var(--shadow-light);
        }
        
        .contact-item {
            margin-bottom: var(--space-md);
        }
        
        .contact-item h4 {
            font-family: var(--font-serif);
            font-size: 1.1rem;
            margin-bottom: var(--space-xs);
            color: var(--color-text);
        }
        
        .contact-item p {
            color: var(--color-text-light);
            line-height: 1.6;
        }
        
        .benefits-section {
            background-color: var(--color-background);
            padding: var(--space-lg);
            border-radius: var(--radius-medium);
            box-shadow: var(--shadow-light);
        }
        
        .benefits-list {
            list-style: none;
            padding: 0;
        }
        
        .benefits-list li {
            padding: var(--space-xs) 0;
            color: var(--color-text-light);
            font-size: 0.95rem;
        }
        
        .link {
            color: var(--color-accent);
            text-decoration: underline;
        }
        
        .link:hover {
            color: var(--color-text-light);
        }
        
        /* Contact page responsive */
        @media (max-width: 768px) {
            .contact-grid {
                grid-template-columns: 1fr;
                gap: var(--space-lg);
            }
            
            .contact-section {
                padding: var(--space-sm) 0;
            }
        }
        
        .event-date {
            font-size: 0.85rem;
            margin-bottom: var(--space-xs);
            color: var(--color-text-light);
        }
        
        .event-title {
            font-family: var(--font-serif);
            margin-bottom: var(--space-xs);
            font-size: 1.25rem;
            word-wrap: break-word; /* Permette alle parole lunghe di andare a capo */
        }
        
        .event-description {
            font-size: 0.95rem;
            color: var(--color-text-light);
            flex-grow: 1; /* Permette alla descrizione di espandersi */
            word-wrap: break-word; /* Permette alle parole lunghe di andare a capo */
        }
        
        /* === FOOTER === */
        .footer {
            padding: var(--space-md) 0 var(--space-sm);
            background-color: var(--color-background-light);
            border-top: 1px solid var(--color-border);
        }
        
        .footer-content {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: var(--space-sm);
        }
        
        .footer-links {
            display: flex;
            gap: var(--space-lg);
        }
        
        .footer-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: var(--space-lg);
        }
        
        .footer-column-title {
            font-weight: 600;
            margin-bottom: var(--space-md);
            font-family: var(--font-sans);
            font-size: 1rem;
        }
        
        .footer-link {
            color: var(--color-text-light);
            font-size: 0.95rem;
            transition: color 0.2s ease;
        }
        
        .footer-link:hover {
            color: var(--color-text);
        }
        
        .copyright {
            text-align: center;
            color: var(--color-text-light);
            font-size: 0.85rem;
        }
        
        /* Responsive footer */
        @media (max-width: 768px) {
            .header .container {
                padding: 0 var(--space-md);
                display: grid;
                grid-template-columns: auto 1fr auto;
                align-items: center;
                gap: var(--space-sm);
            }
            
            .logo-wrapper {
                order: 1;
            }
            
            .nav-actions {
                order: 2;
                justify-self: center;
                gap: 0;
            }
            
            .nav-actions .nav-action,
            .nav-actions .btn {
                display: none;
            }
            
            .menu-toggle {
                order: 3;
                justify-self: end;
            }
            
            .logo {
                height: 32px;
                width: auto;
            }
            
            .footer-links {
                flex-direction: column;
                align-items: center;
                gap: var(--space-md);
            }
            
            /* Fix checkbox text on mobile */
            .checkbox-label {
                font-size: 0.8rem;
                line-height: 1.4;
                display: flex;
                align-items: flex-start;
                gap: 8px;
                text-align: left;
                width: 100%;
            }
            
            .checkbox-label input[type="checkbox"] {
                margin-top: 2px;
                flex-shrink: 0;
                width: 16px;
                height: 16px;
            }
            
            .checkbox-label .checkmark {
                display: none;
            }
            
            /* Prevent awkward line breaks */
            .checkbox-group {
                margin-bottom: var(--space-md);
            }
        }
        
        /* === ANIMATIONS === */
        .fade-in {
            opacity: 0;
            transform: translateY(20px);
            transition: opacity 0.8s ease, transform 0.8s ease;
        }
        
        .fade-in.visible {
            opacity: 1;
            transform: translateY(0);
        }
        
        /* === RESPONSIVE === */
        @media (min-width: 768px) and (max-width: 1023px) {
            .events-grid {
                grid-template-columns: repeat(2, 1fr);
                max-width: 95%;
            }
            :root {
                --space-xl: 5rem;
            }
            
            .nav-list {
                gap: var(--space-sm);
            }
            
            .events-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            
            .use-cases-grid {
                grid-template-columns: repeat(2, 1fr);
                grid-template-rows: repeat(3, 1fr);
            }
            
            @keyframes infiniteScroll {
                0% {
                    transform: translateX(0);
                }
                100% {
                    /* Su tablet, trasla il carousel della larghezza di 4 card più i loro gap */
                    transform: translateX(calc(-330px * 4 - var(--space-md) * 4));
                }
            }
        }
        
        @media screen and (max-width: 768px) {
            :root {
                --space-xl: 4rem;
                --space-lg: 2.5rem;
            }
            
            .events-grid {
                grid-template-columns: 1fr;
                max-width: 90%;
            }
            
            .header-nav {
                display: none;
                position: fixed;
                top: 0;
                left: 0;
                width: 100%;
                height: 100vh;
                background-color: var(--color-background);
                padding: var(--space-xl) var(--space-lg);
                z-index: 1001;
            }
            
            .header-nav.active {
                display: flex;
                flex-direction: column;
                justify-content: flex-start;
                padding: var(--space-xl) var(--space-lg);
                height: 100vh;
            }
            
            .nav-list {
                flex-direction: column;
                align-items: center;
                gap: var(--space-md);
            }
            
            .menu-toggle {
                display: flex;
                order: 3;
                justify-self: end;
            }
            
            .nav-actions {
                gap: var(--space-sm);
            }

            .language-selector {
                margin-left: 0;
                order: 2;
                position: relative;
                z-index: 10;
            }

            .language-selector select {
                padding: 12px 16px;
                font-size: 14px;
                padding-right: 32px;
                min-width: 110px;
                border-radius: 12px;
                background: rgba(255, 255, 255, 0.98);
                backdrop-filter: blur(15px);
                border: 2px solid rgba(0, 0, 0, 0.15);
                box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
                font-weight: 500;
                color: var(--color-text);
                transform: none;
                transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            }

            .language-selector select:hover {
                background: rgba(255, 255, 255, 1);
                border-color: rgba(0, 0, 0, 0.25);
                box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
                transform: translateY(-1px);
            }

            .language-selector select:focus {
                outline: none;
                border-color: var(--color-primary);
                box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1), 0 6px 24px rgba(0, 0, 0, 0.2);
                transform: translateY(-1px);
            }

            /* Force dropdown direction on mobile */
            .language-selector select option {
                background: white;
                color: var(--color-text);
                padding: 14px 16px;
                font-weight: 500;
                border: none;
                font-size: 14px;
                line-height: 1.4;
            }

            /* Enhanced mobile dropdown positioning */
            .language-selector select[size] {
                position: absolute;
                top: calc(100% + 4px);
                left: 0;
                right: 0;
                z-index: 1000;
                background: white;
                border-radius: 12px;
                box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
                border: 2px solid rgba(0, 0, 0, 0.1);
                backdrop-filter: blur(20px);
                max-height: 200px;
                overflow-y: auto;
                animation: mobileDropdownSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            }

            @keyframes mobileDropdownSlideIn {
                from {
                    opacity: 0;
                    transform: translateY(-8px) scale(0.95);
                }
                to {
                    opacity: 1;
                    transform: translateY(0) scale(1);
                }
            }

            /* Touch-friendly mobile interactions */
            @media (hover: none) and (pointer: coarse) {
                .language-selector select {
                    padding: 14px 18px;
                    padding-right: 36px;
                    min-height: 48px;
                    font-size: 15px;
                    background: rgba(255, 255, 255, 0.95);
                    border: 2px solid rgba(0, 0, 0, 0.2);
                }

                .language-selector select option {
                    padding: 16px 18px;
                    min-height: 48px;
                    font-size: 15px;
                    line-height: 1.3;
                }
            }

            /* Ensure dropdown opens downward on small screens */
            @media (max-height: 600px) {
                .language-selector select[size] {
                    top: calc(100% + 2px);
                    max-height: 150px;
                }
            }
            
            .nav-actions .btn {
                padding: var(--space-xs) var(--space-sm);
                font-size: 0.85rem;
                white-space: nowrap;
            }
            
            .nav-actions .nav-action {
                font-size: 0.85rem;
                padding: var(--space-xs);
            }
            
            .events-grid {
                grid-template-columns: 1fr;
            }
            
            .use-cases-grid {
                grid-template-columns: 1fr;
                grid-template-rows: auto;
                gap: 30px;
            }
            
            .testimonial-card {
                width: 85vw;
                min-height: 280px; /* Leggermente più alto su mobile per adattarsi ai dispositivi più piccoli */
            }
            
            @keyframes infiniteScroll {
                0% {
                    transform: translateX(0);
                }
                100% {
                    /* Su mobile, trasla il carousel della larghezza di 4 card più i loro gap */
                    transform: translateX(calc(-85vw * 4 - var(--space-md) * 4));
                }
            }
        }
