* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Arial', sans-serif;
        }

        body {
            line-height: 1.6;
            color: #333;
            overflow-x: hidden;
        }

        /* Hero Section con sfondo e logo */
        #hero-main {
            height: 100vh;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            background-image: url('C:/Users/Dell/Desktop/sito Geolimba/images/sfondo');
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            color: white;
            text-align: center;
            position: relative;
            overflow: hidden;
            padding: 10vh 10%;
        }

        /* Overlay scuro per migliorare la leggibilità */
        #hero-main::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-image: url('../img/hero.jpeg');
            background-size: cover;
            z-index: 1;
        }

        .hero-title {
            font-family: "Stardos Stencil", system-ui;
            font-size: 20vw;
            line-height: 0.8;
            margin-bottom: 20px;
            transform: scale(1);
            transition: transform 1.5s ease-out;
            z-index: 2;
            position: relative;
            font-weight: 100;
            letter-spacing: 2px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .hero-title .logo-o {
            display: inline-block;
            width: 0.8em;
            height: 0.8em;
            background-image: url('../img/logonbg.png');
            background-size: contain;
            background-repeat: no-repeat;
            background-position: bottom;
            margin: 0 5px;
            vertical-align: bottom;
        }

        .hero-title.zoomed {
            transform: scale(1.8);
            opacity: 0;
        }

        .hero-subtitle {
            font-size: 1.8rem;
            margin-bottom: 30px;
            opacity: 1;
            transition: opacity 1s ease;
            z-index: 2;
            position: relative;
        }

        .hero-subtitle.faded {
            opacity: 0;
        }

        .flags-container {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 15px;
            margin-top: 20px;
            z-index: 2;
            position: relative;
        }

        .flag {
            width: 60px;
            height: 40px;
            cursor: pointer;
            border-radius: 5px;
            overflow: hidden;
            box-shadow: 0 3px 10px rgba(0,0,0,0.2);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .flag:hover {
            transform: scale(1.1);
            box-shadow: 0 5px 15px rgba(0,0,0,0.3);
        }

        .flag img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .scroll-indicator {
            position: absolute;
            bottom: 30px;
            font-size: 2rem;
            animation: bounce 2s infinite;
            z-index: 2;
        }

        @keyframes bounce {
            0%, 20%, 50%, 80%, 100% {
                transform: translateY(0);
            }
            40% {
                transform: translateY(-10px);
            }
            60% {
                transform: translateY(-5px);
            }
        }

        /* Header e barra di navigazione */
        header {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            background-color: white;
            border-bottom: 2px solid #1a3c34;
            z-index: 1000;
            padding: 15px 20px;
            transform: translateY(-100%);
            transition: transform 0.5s ease;
        }

        header.visible {
            transform: translateY(0);
        }

        .navbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            max-width: 1200px;
            margin: 0 auto;
        }

        .logo {
            text-align: center;
            flex-grow: 1;
        }

        .logo h1 {
            font-family: 'Zen Tokyo Zoo', cursive;
            font-size: 2.8rem;
            line-height: 1;
            margin-bottom: 5px;
            color: #1a3c34;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .logo .logo-o {
            display: inline-block;
            width: 0.8em;
            height: 0.8em;
            background-image: url('../img/logonbg.png');
            background-size: contain;
            background-repeat: no-repeat;
            background-position: bottom;
            vertical-align: bottom;
        }

        .logo span {

            font-weight: normal;
            font-family: 'Arial', sans-serif;
            color: #1a3c34;
        }

        .social-links {
            display: flex;
            gap: 15px;
        }

        .social-links a {
            color: #1a3c34;
            font-size: 1.3rem;
            transition: color 0.3s;
        }

        .social-links a:hover {
            color: #2a5c4e;
        }

        .menu-toggle {
            display: flex;
            flex-direction: column;
            cursor: pointer;
            padding: 5px;
        }

        .menu-toggle span {
            width: 30px;
            height: 3px;
            background-color: #1a3c34;
            margin: 4px 0;
            transition: 0.3s;
        }

        .nav-menu {
            display: none;
            position: absolute;
            top: 100%;
            left: 0;
            background-color: white;
            border: 1px solid #1a3c34;
            width: 280px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }

        .nav-menu.active {
            display: block;
        }

        .nav-menu ul {
            list-style: none;
        }

        .nav-menu li {
            border-bottom: 1px solid #eee;
        }

        .nav-menu li:last-child {
            border-bottom: none;
        }

        .nav-menu a {
            display: block;
            padding: 18px 20px;
            text-decoration: none;
            color: #1a3c34;
            transition: background-color 0.3s;
            font-size: 1.1rem;
        }

        .nav-menu a:hover {
            background-color: #f0f7f5;
        }

        /* Sezioni principali */
        section {
            padding: 80px 20px;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
        }

        /* Sezione Progetto - VERDE SCURO */
        #project {
            background-color: #1a3c34;
            color: white;
            padding: 60px 20px;
        }

        #project .section-title {
            color: white;
            text-align: center;
            margin-bottom: 40px;
            font-size: 2.2rem;
        }

        .project-content {
            text-align: center;
            max-width: 800px;
            margin: 0 auto;
        }

        .project-content p {
            margin-bottom: 30px;
        }

        /* Sezione Blog - BIANCA */
        #blog {
            background-color: white;
            padding: 60px 20px;
        }

        #blog .section-title {
            color: #1a3c34;
            text-align: center;
            margin-bottom: 40px;
            font-size: 2.2rem;
        }

        /* Sezione Servizi - VERDE SCURO */
        #services {
            background-color: #1a3c34;
            color: white;
            padding: 60px 20px;
        }

        #services .section-title {
            color: white;
            text-align: center;
            margin-bottom: 40px;
            font-size: 2.2rem;
        }

        /* Stili comuni per caroselli */
        .carousel {
            position: relative;
            max-width: 1200px;
            margin: 0 auto;
            overflow: hidden;
        }

        .carousel-container {
            display: flex;
            transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }

        .carousel-item {
            min-width: calc(33.333% - 20px);
            margin: 0 10px;
            background-color: rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            cursor: pointer;
            transition: transform 0.4s ease, opacity 0.4s ease;
            backdrop-filter: blur(5px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            opacity: 0.9;
        }

        .carousel-item:hover {
            transform: translateY(-5px) scale(1.02);
            opacity: 1;
        }

        .item-image {
            height: 200px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            transition: transform 0.4s ease;
            background-size: cover;
            background-position: center;
        }

        .carousel-item:hover .item-image {
            transform: scale(1.05);
        }

        .blog-item .item-image {
            background-color: #1a3c34;
        }

        .service-item .item-image {
            background-color: #2a5c4e;
        }

        .courses-item .item-image {
            background: linear-gradient(135deg, #1a3c34, #2a5c4e);
        }

        .item-content {
            padding: 20px;
            transition: transform 0.4s ease;
        }

        .carousel-item:hover .item-content {
            transform: translateY(-5px);
        }

        .blog-item .item-content h3 {
            margin-bottom: 10px;
            color: #1a3c34;
        }

        .service-item .item-content h3 {
            margin-bottom: 10px;
            color: #a8d5ba;
        }

        .courses-item .item-content h3 {
            margin-bottom: 10px;
            color: #1a3c34;
        }

        .blog-item .item-content .date {
            color: #777;
            font-size: 0.9rem;
            margin-bottom: 10px;
        }

        .blog-item .item-content p {
            color: #555;
            margin-bottom: 15px;
        }

        .service-item .item-content p {
            color: white;
            margin-bottom: 15px;
        }

        .courses-item .item-content p {
            color: #555;
            margin-bottom: 15px;
        }

        .read-more {
            color: #1a3c34;
            font-weight: bold;
            text-decoration: none;
            display: inline-block;
            margin-bottom: 10px;
        }

        .service-item .read-more {
            color: #a8d5ba;
        }

        .course-btn {
            background-color: #1a3c34;
            color: white;
            border: none;
            padding: 8px 15px;
            border-radius: 5px;
            cursor: pointer;
            font-size: 0.9rem;
            transition: background-color 0.3s;
            display: inline-block;
            margin-top: 10px;
        }

        .course-btn:hover {
            background-color: #2a5c4e;
        }

        .carousel-nav {
            display: flex;
            justify-content: center;
            margin-top: 30px;
        }

        .carousel-btn {
            background-color: #1a3c34;
            color: white;
            border: none;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 15px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 1.2rem;
        }

        .carousel-btn:hover {
            background-color: #2a5c4e;
            transform: scale(1.1);
        }

        .service-carousel .carousel-btn {
            background-color: white;
            color: #1a3c34;
        }

        .service-carousel .carousel-btn:hover {
            background-color: #f0f0f0;
        }

        .courses-carousel .carousel-btn {
            background-color: #1a3c34;
            color: white;
        }

        .carousel-btn:disabled {
            background-color: #cccccc;
            cursor: not-allowed;
            transform: none;
        }

        .service-carousel .carousel-btn:disabled {
            background-color: #cccccc;
            color: #777;
        }

        /* Sezione caratteristiche - VERDE SCURO */
        #features {
            background-color: #1a3c34;
            color: white;
        }

        .section-title {
            text-align: center;
            margin-bottom: 50px;
            font-size: 2.2rem;
        }

        #features .section-title {
            color: white;
        }

        .features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
        }

        .feature-card {
            background-color: rgba(255, 255, 255, 0.1);
            padding: 30px;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            text-align: center;
            backdrop-filter: blur(5px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            transition: transform 0.3s ease;
        }

        .feature-card:hover {
            transform: translateY(-5px);
        }

        .feature-card h3 {
            margin-bottom: 15px;
            color: #a8d5ba;
        }

        /* Sezione corsi - BIANCA con CAROSELLO */
        #courses {
            background-color: white;
            padding: 60px 20px;
        }

        #courses .section-title {
            color: #1a3c34;
            text-align: center;
            margin-bottom: 40px;
            font-size: 2.2rem;
        }

        .courses-carousel {
            position: relative;
            max-width: 1200px;
            margin: 0 auto;
            overflow: hidden;
        }

        .courses-container {
            display: flex;
            transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }

        .courses-item {
            min-width: calc(33.333% - 20px);
            margin: 0 10px;
            background-color: white;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0,0,0,0.05);
            cursor: pointer;
            transition: transform 0.4s ease, opacity 0.4s ease;
            border: 1px solid #e0e0e0;
            opacity: 0.9;
        }

        .courses-item:hover {
            transform: translateY(-10px) scale(1.02);
            opacity: 1;
        }

        .courses-image {
            height: 200px;
            background: linear-gradient(135deg, #1a3c34, #2a5c4e);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            transition: transform 0.4s ease;
        }

        .courses-item:hover .courses-image {
            transform: scale(1.05);
        }

        .courses-content {
            padding: 20px;
            transition: transform 0.4s ease;
        }

        .courses-item:hover .courses-content {
            transform: translateY(-5px);
        }

        .courses-content h3 {
            margin-bottom: 10px;
            color: #1a3c34;
        }

        /* Sezione Iscrizione - BIANCA */
        #registration {
            background-color: white;
            padding: 80px 20px;
        }

        #registration .section-title {
            color: #1a3c34;
            text-align: center;
            margin-bottom: 40px;
            font-size: 2.2rem;
        }

        .registration-form {
            max-width: 600px;
            margin: 0 auto;
            background-color: #f9f9f9;
            padding: 40px;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.05);
        }

        .form-group {
            margin-bottom: 20px;
        }

        .form-group label {
            display: block;
            margin-bottom: 8px;
            color: #1a3c34;
            font-weight: bold;
        }

        .form-group input,
        .form-group select,
        .form-group textarea {
            width: 100%;
            padding: 12px;
            border: 1px solid #ddd;
            border-radius: 5px;
            font-size: 1rem;
        }

        .form-group textarea {
            height: 100px;
            resize: vertical;
        }

        .form-row {
            display: flex;
            gap: 20px;
        }

        .form-row .form-group {
            flex: 1;
        }

        .submit-btn {
            background-color: #1a3c34;
            color: white;
            border: none;
            padding: 15px 30px;
            border-radius: 5px;
            cursor: pointer;
            font-size: 1.1rem;
            font-weight: bold;
            transition: background-color 0.3s;
            width: 100%;
            margin-top: 10px;
        }

        .submit-btn:hover {
            background-color: #2a5c4e;
        }

        .btn {
            display: inline-block;
            background-color: #a8d5ba;
            color: #1a3c34;
            padding: 12px 30px;
            border-radius: 5px;
            text-decoration: none;
            font-weight: bold;
            transition: all 0.3s;
            cursor: pointer;
            border: none;
        }

        .btn:hover {
            background-color: #8bc4a6;
            transform: translateY(-3px);
        }

        /* Sezione newsletter - BIANCA */
        #newsletter {
            background-color: white;
            text-align: center;
        }

        #newsletter .section-title {
            color: #1a3c34;
        }

        .newsletter-form {
            max-width: 500px;
            margin: 0 auto;
        }

        .newsletter-form input {
            width: 100%;
            padding: 12px;
            margin-bottom: 15px;
            border: 1px solid #ddd;
            border-radius: 5px;
        }

        .newsletter-form button {
            background-color: #1a3c34;
            color: white;
            border: none;
            padding: 12px 30px;
            border-radius: 5px;
            cursor: pointer;
            font-weight: bold;
            transition: background-color 0.3s;
        }

        .newsletter-form button:hover {
            background-color: #2a5c4e;
        }

        /* Sezione contatti - VERDE SCURO */
        #contact {
            background-color: #1a3c34;
            color: white;
        }

        #contact .section-title {
            color: white;
        }

        .contact-content {
            display: flex;
            flex-wrap: wrap;
            gap: 40px;
        }

        .contact-info {
            flex: 1;
            min-width: 300px;
        }

        .contact-form {
            flex: 1;
            min-width: 300px;
        }

        .contact-form input,
        .contact-form textarea {
            width: 100%;
            padding: 12px;
            margin-bottom: 15px;
            border: 1px solid rgba(255, 255, 255, 0.3);
            border-radius: 5px;
            background-color: rgba(255, 255, 255, 0.1);
            color: white;
        }

        .contact-form input::placeholder,
        .contact-form textarea::placeholder {
            color: rgba(255, 255, 255, 0.7);
        }

        .contact-form textarea {
            height: 150px;
        }

        .contact-form button {
            background-color: #a8d5ba;
            color: #1a3c34;
            border: none;
            padding: 12px 30px;
            border-radius: 5px;
            cursor: pointer;
            font-weight: bold;
            transition: background-color 0.3s;
        }

        .contact-form button:hover {
            background-color: #8bc4a6;
        }

        /* Footer - VERDE SCURO PIÙ SCURO */
        footer {
            background-color: #142b25;
            color: white;
            text-align: center;
            padding: 20px;
        }

        /* POPUP STYLES */
        .popup-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.7);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 2000;
        }

        .popup-overlay.active {
            display: flex;
        }

        .popup {
            background-color: white;
            border-radius: 10px;
            width: 90%;
            max-width: 800px;
            max-height: 90vh;
            overflow-y: auto;
            padding: 30px;
            position: relative;
            box-shadow: 0 5px 25px rgba(0,0,0,0.3);
        }

        .popup-close {
            position: absolute;
            top: 15px;
            right: 15px;
            background: none;
            border: none;
            font-size: 1.5rem;
            cursor: pointer;
            color: #1a3c34;
        }

        .popup-header {
            margin-bottom: 20px;
            text-align: center;
        }

        .popup-header h2 {
            color: #1a3c34;
            margin-bottom: 10px;
        }

        .popup-image {
            width: 100%;
            height: 200px;
            background-color: #e0e0e0;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 20px;
            border-radius: 5px;
            background-size: cover;
            background-position: center;
        }

        .popup-content {
            margin-bottom: 20px;
        }

        .languages-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
            gap: 10px;
            margin: 20px 0;
        }

        .language-btn {
            background-color: #1a3c34;
            color: white;
            border: none;
            padding: 10px;
            border-radius: 5px;
            cursor: pointer;
            transition: background-color 0.3s;
        }

        .language-btn:hover {
            background-color: #2a5c4e;
        }

        .language-popup-content {
            display: none;
        }

        .language-popup-content.active {
            display: block;
        }

        .language-section {
            margin-bottom: 20px;
        }

        .language-section h3 {
            color: #1a3c34;
            margin-bottom: 10px;
        }

        .popup-buttons {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin-top: 20px;
        }

        /* BLOG POPUP STYLES */
        .blog-popup {
            width: 95%;
            max-width: 1000px;
            max-height: 95vh;
            padding: 40px;
        }

        .blog-popup-image {
            height: 300px;
            margin-bottom: 30px;
            background-size: cover;
            background-position: center;
        }

        .blog-popup-content {
            line-height: 1.8;
        }

        .blog-popup-content h2 {
            color: #1a3c34;
            margin-bottom: 20px;
            text-align: center;
        }

        .blog-popup-content .date {
            color: #777;
            text-align: center;
            margin-bottom: 30px;
            font-style: italic;
        }

        .blog-popup-content p {
            margin-bottom: 20px;
        }

        .blog-popup-nav {
            display: flex;
            justify-content: space-between;
            margin-top: 40px;
        }

        .blog-nav-btn {
            background-color: #1a3c34;
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 5px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 10px;
            transition: background-color 0.3s;
        }

        .blog-nav-btn:hover {
            background-color: #2a5c4e;
        }

        .blog-nav-btn:disabled {
            background-color: #cccccc;
            cursor: not-allowed;
        }

        /* COURSE POPUP STYLES */
        .course-popup {
            width: 95%;
            max-width: 900px;
            max-height: 95vh;
            padding: 40px;
        }

        .course-popup-image {
            height: 250px;
            margin-bottom: 30px;
            background: linear-gradient(135deg, #1a3c34, #2a5c4e);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            border-radius: 10px;
            font-size: 1.5rem;
            font-weight: bold;
        }

        .course-popup-content {
            line-height: 1.8;
        }

        .course-popup-content h2 {
            color: #1a3c34;
            margin-bottom: 20px;
            text-align: center;
        }

        .course-details {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
            margin: 30px 0;
        }

        .course-detail {
            background-color: #f9f9f9;
            padding: 20px;
            border-radius: 8px;
            border-left: 4px solid #1a3c34;
        }

        .course-detail h4 {
            color: #1a3c34;
            margin-bottom: 10px;
        }

        .course-features {
            margin: 30px 0;
        }

        .course-features h3 {
            color: #1a3c34;
            margin-bottom: 15px;
        }

        .course-features ul {
            list-style-type: none;
            padding-left: 0;
        }

        .course-features li {
            padding: 8px 0;
            border-bottom: 1px solid #eee;
            display: flex;
            align-items: center;
        }

        .course-features li:before {
            content: "✓";
            color: #1a3c34;
            font-weight: bold;
            margin-right: 10px;
        }

        .course-popup-buttons {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-top: 40px;
            flex-wrap: wrap;
        }

        .enroll-btn {
            background-color: #1a3c34;
            color: white;
            border: none;
            padding: 15px 30px;
            border-radius: 5px;
            cursor: pointer;
            font-size: 1.1rem;
            font-weight: bold;
            transition: background-color 0.3s;
            min-width: 200px;
        }

        .enroll-btn:hover {
            background-color: #2a5c4e;
        }

        .contact-btn {
            background-color: #a8d5ba;
            color: #1a3c34;
            border: none;
            padding: 15px 30px;
            border-radius: 5px;
            cursor: pointer;
            font-size: 1.1rem;
            font-weight: bold;
            transition: background-color 0.3s;
            min-width: 200px;
        }

        .contact-btn:hover {
            background-color: #8bc4a6;
        }

        /* Responsive */
        @media (max-width: 768px) {
            .hero-title {
                font-size: 25vw;
            }
            
            .hero-subtitle {
                font-size: 1.4rem;
            }
            
            .logo h1 {
                font-size: 2.2rem;
            }
            
            .social-links {
                gap: 10px;
            }
            
            .social-links a {
                font-size: 1.1rem;
            }
            
            .popup {
                width: 95%;
                padding: 20px;
            }
            
            .languages-grid {
                grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
            }
            
            .carousel-item, .courses-item {
                min-width: calc(100% - 20px);
            }
            
            .blog-popup, .course-popup {
                padding: 20px;
            }
            
            .blog-popup-image, .course-popup-image {
                height: 200px;
            }
            
            .nav-menu {
                width: 250px;
            }
            
            .course-popup-buttons {
                flex-direction: column;
                align-items: center;
            }
            
            .form-row {
                flex-direction: column;
                gap: 0;
            }
        }

        @media (max-width: 480px) {
            .navbar {
                flex-wrap: wrap;
            }
            
            .logo {
                order: 1;
                flex-basis: 100%;
                margin-bottom: 10px;
            }
            
            .social-links {
                order: 2;
            }
            
            .menu-toggle {
                order: 3;
            }
            
            header {
                padding: 12px 15px;
            }
            
            .registration-form {
                padding: 20px;
            }
        }