        :root {
            --primary-color: #4A90E2; /* Blu Tecnologico */
            --secondary-color: #50E3C2; /* Verde Acqua */
            --text-color-light: #333;
            --text-color-dark: #f4f4f4;
            --background: #2c3e50;
            --background-dark: #1a1a2e; /* Sfondo scuro per la modalità scura */
            --card-background-light: #f9f9f9;
            --card-background-dark: #2c2c4a;
            --border-color-light: #ddd;
            --border-color-dark: #444;
            --gradient-start: #4A90E2;
            --gradient-end: #8B5CF6; /* Viola per un tocco innovativo */
        }

        body {
            font-family: 'Open Sans', sans-serif;
            margin: 0;
            padding: 0;
            line-height: 1.6;
            color: var(--text-color-dark);
            background-color: var(--background);
            transition: background-color 0.3s ease, color 0.3s ease;
        }

		/* Modalità Scura */
        body.dark-mode {
            color: var(--text-color-dark);
            background-color: var(--background-dark);
        }
        body.dark-mode.container,
        body.dark-mode.card {
            background-color: var(--card-background-dark);
            border-color: var(--border-color-dark);
        }
        body.dark-mode header,
        body.dark-mode footer {
            background-color: #16162a; /* Un po' più scuro dello sfondo */
        }
        body.dark-mode nav a {
            color: var(--text-color-dark);
        }
        body.dark-mode.btn {
            background: linear-gradient(45deg, var(--gradient-start), var(--gradient-end));
            color: var(--text-color-dark);
        }
        body.dark-mode.btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
        }
        body.dark-mode.skill-bar-fill {
            background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
        }
        body.dark-mode.project-card {
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
        }
        body.dark-mode.project-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
        }
        body.dark-mode.contact-info a {
            color: var(--secondary-color);
        }

       .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
            background-color: var(--background-light);
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            transition: background-color 0.3s ease, box-shadow 0.3s ease;
        }

        header {
            background-color: var(--primary-color);
            color: black;
            padding: 1rem 0;
            text-align: center;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
            position: sticky;
            top: 0;
            z-index: 1000;
            transition: background-color 0.3s ease;
        }

        header.container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 20px;
            background-color: transparent; /* Reset per il container interno */
            box-shadow: none;
        }

       .logo {
            font-family: 'Montserrat', sans-serif;
            font-size: 1.8rem;
            font-weight: 700;
            color: white;
            text-decoration: none;
            position: relative;
            overflow: hidden;
        }

       .logo span {
            display: inline-block;
            transition: transform 0.3s ease;
        }
       .logo:hover span {
            transform: translateY(-5px);
        }

        nav ul {
            list-style: none;
            padding: 0;
            margin: 0;
            display: flex;
        }

        nav ul li {
            margin-left: 25px;
        }

        nav a {
            color: black;
            text-decoration: none;
            font-weight: 600;
            font-size: 1.1rem;
            position: relative;
            padding-bottom: 5px;
            transition: color 0.3s ease;
        }

        nav a::after {
            content: '';
            position: absolute;
            width: 0;
            height: 2px;
            bottom: 0;
            left: 0;
            background-color: var(--secondary-color);
            transition: width 0.3s ease-in-out;
        }

        nav a:hover::after {
            width: 100%;
        }

       .theme-toggle {
            background: none;
            border: none;
            color: white;
            font-size: 1.5rem;
            cursor: pointer;
            margin-left: 20px;
            transition: transform 0.2s ease;
        }

       .theme-toggle:hover {
            transform: scale(1.1);
        }

        /* Sezioni */
        section {
            padding: 60px 0;
            text-align: center;
            border-bottom: 1px solid var(--border-color-dark);
        }
        body.dark-mode section {
            border-color: var(--border-color-dark);
        }

        section:last-of-type {
            border-bottom: none;
        }

        h1, h2, h3 {
            font-family: 'Montserrat', sans-serif;
            color: var(--primary-color);
            margin-bottom: 20px;
        }
        body.dark-mode h1,
        body.dark-mode h2,
        body.dark-mode h3 {
            color: var(--secondary-color);
        }

        h1 {
            font-size: 3.5rem;
            line-height: 1.2;
        }

        h2 {
            font-size: 2.5rem;
            margin-top: 40px;
        }

        h3 {
            font-size: 1.8rem;
        }

        /* Hero Section */
        #hero {
	        height: 100vh; /* Altezza a tutta la finestra */
        	background-image: url('../images/hero.jpg'); /* Percorso dell'immagine */
  			background-size: cover;      /* L'immagine copre tutta la sezione */
  			background-position: center; /* Centra l'immagine */
  			background-repeat: no-repeat; /* Non ripetere l'immagine */
            /*background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));*/
            color: black;
            padding: 100px 20px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            min-height: 60vh;
            position: relative;
            overflow: hidden;
        }

        #hero::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 100%;
            height: 100%;
            animation: pulse 10s infinite alternate;
            pointer-events: none;
        }

        @keyframes pulse {
            0% { transform: scale(1); opacity: 0.5; }
            100% { transform: scale(1.2); opacity: 0.7; }
        }

        #hero h1 {
            font-size: 4.5rem;
            margin-bottom: 15px;
            color: white;
            text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
        }

        #hero p {
            font-size: 1.5rem;
            margin-bottom: 40px;
            max-width: 800px;
            opacity: 0.9;
        }

       .btn {
            display: inline-block;
            background: var(--secondary-color);
            color: white;
            padding: 15px 30px;
            border-radius: 50px;
            text-decoration: none;
            font-weight: 600;
            font-size: 1.2rem;
            transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        }

       .btn:hover {
            background-color: #42C8A8;
            transform: translateY(-5px);
            box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
        }

		.iframe-container {
    		position: relative;
    		width: 100%;
    		padding-bottom: 56.25%; /* Rapporto d'aspetto 16:9 (9 / 16 * 100%) - 54% è un po' basso per 16:9 esatto */
    		/* Se il tuo contenuto ha un altro rapporto, adatta questo valore.
       		Ad esempio, per 4:3, usa 75% (3 / 4 * 100%). */
    		height: 0; /* Fondamentale per la tecnica responsive */
    		overflow: hidden;
    		max-width: 100%; /* Assicura che non superi la larghezza del genitore */
    		/*margin-bottom: 20px; se vuoi spazio sotto il contenitore*/
		}

		.iframe-container iframe {
    		position: absolute; /* Questo è necessario con la tecnica padding-bottom */
    		top: 0;
    		left: 0;
    		width: 100%;
    		height: 100%;
        	border: 2px solid #007bff; /* Bordo blu solido di 2px - ORA DOVRESTI VEDERLO! */
		}

        /* About Section */
        #about.about-content {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 40px;
            max-width: 900px;
            margin: 0 auto;
        }

        #about.profile-pic {
            width: 200px;
            height: 200px;
            border-radius: 50%;
            object-fit: cover;
            border: 5px solid var(--secondary-color);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease;
        }

        #about.profile-pic:hover {
            transform: scale(1.05);
        }

        #about.text-content {
            text-align: left;
            font-size: 1.1rem;
        }

        #about.text-content p {
            margin-bottom: 15px;
        }

        /* Skills Section */
        #skills.skills-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 30px;
            max-width: 1000px;
            margin: 0 auto;
        }

       .skill-item {
            background-color: var(--card-background-dark);
            padding: 25px;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
            text-align: left;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            border: 1px solid var(--border-color-dark);
        }

       .skill-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
        }

       .skill-item h3 {
            margin-top: 0;
            margin-bottom: 15px;
            color: var(--primary-color);
        }
        body.dark-mode.skill-item h3 {
            color: var(--secondary-color);
        }

       .skill-bar {
            background-color: #e0e0e0;
            border-radius: 5px;
            height: 10px;
            overflow: hidden;
            margin-top: 10px;
        }

       .skill-bar-fill {
            height: 100%;
            background: var(--primary-color);
            border-radius: 5px;
            width: 0; /* Animato con JS o CSS */
            transition: width 1s ease-out;
        }

        /* Projects Section */
        #projects.projects-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
            max-width: 1200px;
            margin: 0 auto;
        }

       .project-card {
            background-color: var(--card-background-dark);
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            text-align: left;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            border: 1px solid var(--border-color-dark);
        }

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

       .project-card img {
            width: 100%;
            height: 240px;
            object-fit: cover;
            display: block;
        }

       .project-content {
            padding: 20px;
        }

       .project-content h3 {
            margin-top: 0;
            margin-bottom: 10px;
            color: var(--primary-color);
        }
        body.dark-mode.project-content h3 {
            color: var(--secondary-color);
        }

       .project-content p {
            font-size: 0.95rem;
            margin-bottom: 15px;
        }

       .project-links a {
            display: inline-block;
            margin-right: 15px;
            color: var(--primary-color);
            text-decoration: none;
            font-weight: 600;
            transition: color 0.3s ease;
        }

       .project-links a:hover {
            color: var(--secondary-color);
        }

        /* Contact Section */
        #contact.contact-content {
            max-width: 700px;
            margin: 0 auto;
        }

        #contact p {
            font-size: 1.1rem;
            margin-bottom: 30px;
        }

       .contact-info {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 25px;
            margin-top: 30px;
        }

       .contact-info a {
            color: var(--primary-color);
            text-decoration: none;
            font-size: 1.2rem;
            display: flex;
            align-items: center;
            gap: 10px;
            transition: color 0.3s ease, transform 0.3s ease;
        }

       .contact-info a:hover {
            color: var(--secondary-color);
            transform: translateY(-3px);
        }

       .contact-info i {
            font-size: 1.5rem;
        }

        /* Footer */
        footer {
            background-color: #222;
            color: black;
            text-align: center;
            padding: 20px 0;
            font-size: 0.9rem;
            box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
            transition: background-color 0.3s ease;
        }

        footer p {
            margin: 0;
        }

        /* Responsiveness */
        @media (max-width: 768px) {
            header.container {
                flex-direction: column;
                gap: 15px;
            }
            nav ul {
                flex-direction: column;
                gap: 10px;
                align-items: center;
            }
            nav ul li {
                margin-left: 0;
            }
           .theme-toggle {
                margin-top: 10px;
                margin-left: 0;
            }
            #hero h1 {
                font-size: 3rem;
            }
            #hero p {
                font-size: 1.2rem;
            }
            h1 {
                font-size: 2.8rem;
            }
            h2 {
                font-size: 2rem;
            }
           .btn {
                padding: 12px 25px;
                font-size: 1rem;
            }
            #about.about-content {
                flex-direction: column;
            }
           .skill-item {
                text-align: center;
            }
           .contact-info {
                flex-direction: column;
                align-items: center;
            }
        }

        @media (max-width: 480px) {
            #hero h1 {
                font-size: 2.5rem;
            }
            #hero p {
                font-size: 1rem;
            }
            h1 {
                font-size: 2.2rem;
            }
            h2 {
                font-size: 1.8rem;
            }
        }