:root {
            --primary: #2a2a2a;
            --secondary: #f8f8f8;
            --accent: #7a7a7a;
            --light: #ffffff;
            --dark: #1a1a1a;
            --transition: all 0.3s ease;
            --easing: cubic-bezier(0.645, 0.045, 0.355, 1);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
			overflow-x: hidden;
			width: 100%;
        }

        body {
            font-family: 'Poppins', sans-serif;
            background-color: var(--light);
            color: var(--primary);
            line-height: 1.6;
            overflow-x: hidden;
			width: 100%;
        }
		

        a {
            text-decoration: none;
            color: inherit;
        }
		

        /* Header e Navigazione */
        header {
            position: fixed;
            top: 0;
            width: 100%;
            z-index: 1000;
            padding: 1.5rem 5%;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: var(--transition);
            background-color: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        }

        header.scrolled {
            padding: 1rem 5%;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
        }

        .logo {
            font-weight: 600;
            font-size: 1.5rem;
            color: var(--primary);
            letter-spacing: -0.5px;
            position: relative;
            overflow: hidden;
            z-index: 1001;
        }

        .logo::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 1px;
            background-color: var(--primary);
            transition: width 0.6s var(--easing);
        }


        .logo:hover::after {
            width: 100%;
        }
		
		
		.logo::after {
    content: none; /* oppure lasci null per niente sottolineatura */
		}

        nav ul {
            display: flex;
            list-style: none;
            gap: 2.5rem;
			
        }

        nav a {
            position: relative;
            padding: 0.5rem 0;
            font-weight: 400;
            font-size: 0.95rem;
            color: var(--accent);
            transition: var(--transition);
        }

        nav a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 1px;
            background: linear-gradient(90deg, #00ddff, #0055ff);
            transition: var(--transition);
        }

        nav a:hover::after {
            width: 100%;
        }

        nav a:hover {
            color: var(--primary);
        }

        .menu-toggle {
    display: none;
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 1002;
	color: var(--primary);
}


        /* Overlay per menu mobile */
        .overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            opacity: 0;
            visibility: hidden;
            transition: var(--transition);
            z-index: 999;
        }

        .overlay.active {
            opacity: 1;
            visibility: visible;
        }

        /* Hero Section */
        .hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10%;
    position: relative;
	background: #f0f8ff;
	
}

.animated-element.is-visible {
            animation: fadeUp 1s forwards !important;
        }

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0; /* Cambiato da -1 a 0 */
}

.video-background video.loaded {
            opacity: 1;
        }

.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover; /* Importante per il riempimento */
    opacity: 0;
            transition: opacity 0.8s ease;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(240, 248, 255, 0.80); /* Overlay */
}

.hero-content {
    position: relative; /* Assicura che il contenuto sia sopra il video */
    z-index: 1; /* Posiziona sopra il video */
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    gap: 2rem;
}

.hero-content {
    max-width: 600px;
}

        .hero h1 {
            font-size: clamp(2.5rem, 5vw, 4rem);
            font-weight: 400;
            margin-bottom: 1.5rem;
            line-height: 1.2;
            opacity: 0;
            transform: translateY(30px);
        }

        .hero p {
            font-size: 1.1rem;
            margin-bottom: 2.5rem;
            color: var(--accent);
            font-weight: 300;
            opacity: 0;
            transform: translateY(30px);
        }

.hero-image {
    width: 40%;

}


.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    justify-content: flex-start; /* su mobile cambia in center */
}


        .cta-button {
    display: inline-block;
    padding: 1rem 1.8rem;
    background-color: var(--primary);
    color: var(--light);
    border: 2px solid var(--primary);
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
    background-color: transparent;
    color: #000000; 
}

.cv-button {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 1rem 1.8rem;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
}


.cv-button:hover {
    background-color: var(--primary);
    color: var(--light);
}


.cta-button:focus,
.cv-button:focus {
    outline: none;       /* rimuove il bordo di focus */
    background-color: inherit; /* mantiene lo sfondo originale */
    color: inherit;      /* mantiene il colore originale */
}


        /* Sezioni */
        section {
            padding: 6rem 10%;
        }

        .section-title {
            font-size: 1.8rem;
            margin-bottom: 30px;
            position: relative;
            display: inline-block;
            font-weight: 600;
            letter-spacing: -0.5px;
			color: var(--primary);
        }

        .section-title::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 0;
            width: 40px;
            height: 2px;
            background: linear-gradient(90deg, #00ddff, #0055ff);
            transition: width 0.6s var(--easing);
        }

        .section-title:hover::after {
            width: 100%;
        }
		
		.section-title2 {
            font-size: 1.8rem;
            margin-bottom: 3rem;
            position: relative;
            display: inline-block;
            font-weight: 600;
            letter-spacing: -0.5px;
			color: var(--light);
        }

        .section-title2::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 0;
            width: 40px;
            height: 2px;
            background-color: var(--light);
            transition: width 0.6s var(--easing);
        }

        .section-title2:hover::after {
            width: 100%;
        }
		

/* Chi Sono Section */
.chi-sono {
    position: relative;
    overflow: hidden;
    background: linear-gradient(-90deg, rgba(0, 221, 255, 1) 0%, rgba(0, 85, 255, 1) 100%);
    padding: 80px 5%; /* Ridotto da 100px */
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 15s infinite ease-in-out;
}

.shape-1 {
    width: 150px;
    height: 150px;
    background: white;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.shape-2 {
    width: 100px;
    height: 100px;
    background: white;
    top: 70%;
    left: 80%;
    animation-delay: -5s;
}

.shape-3 {
    width: 80px;
    height: 80px;
    background: white;
    top: 40%;
    left: 90%;
    animation-delay: -10s;
}

.shape-4 {
    width: 120px;
    height: 120px;
    background: white;
    top: 80%;
    left: 10%;
    animation-delay: -7s;
}


.chi-sono-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 30px; /* Ridotto da 40px */
    align-items: start;
    position: relative;
    z-index: 2;
    max-width: 1100px; /* Aggiunto limite massimo */
    margin: 0 auto; /* Centrato */
}

.about-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 18px; /* Ridotto da 20px */
    padding: 25px; /* Ridotto da 30px */
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1); /* Ridotto da 10px 30px */
}

.profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px; /* Ridotto da 25px */
}

.avatar-container {
    position: relative;
    margin-right: 15px;
}

.avatar {
    width: 60px; /* Ridotto da 70px */
    height: 60px; /* Ridotto da 70px */
    border-radius: 50%;
    background: linear-gradient(45deg, #00ddff, #0055ff);
    position: relative;
    overflow: hidden;
}

.avatar::before {
    content: "VM";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 1.3rem; /* Ridotto da 1.5rem */
}

.status-indicator {
    position: absolute;
    width: 15px;
    height: 15px;
    background: #4cd964;
    border-radius: 50%;
    border: 2px solid white;
    bottom: 0;
    right: 0;
}

.profile-info h3 {
    color: white;
    margin-bottom: 4px; /* Ridotto da 5px */
    font-size: 1.2rem; /* Ridotto da 1.4rem */
}

.profile-info p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.intro-text {
    color: white;
    line-height: 1.6;
    margin-bottom: 20px; /* Ridotto da 25px */
    font-size: 1rem; /* Ridotto da 1.05rem */
}

.highlight {
    background: linear-gradient(90deg, #ffce00, #fca219);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 600;
    position: relative;
}

.stats-container {
    display: flex;
    justify-content: space-between;
    margin-top: 25px; /* Ridotto da 30px */
    gap: 10px; /* Aggiunto spazio tra gli elementi */
}

.stat {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px; /* Ridotto da 15px */
    border-radius: 12px; /* Ridotto da 15px */
    flex: 1;
    margin: 0 4px; /* Ridotto da 5px */
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.stat:hover {
    transform: translateY(-5px);
}

.stat-value {
    color: white;
    font-size: 1.5rem; /* Ridotto da 1.8rem */
    font-weight: 700;
    margin-bottom: 4px; /* Ridotto da 5px */
}

.stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.skills-timeline-container {
    display: flex;
    flex-direction: column;
    gap: 30px; /* Ridotto da 40px */
}

.modern-timeline {
    position: relative;
    padding-left: 25px; /* Ridotto da 30px */
}

.timeline-progress {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to top, #0055ff, #00ddff);
    border-radius: 3px;
    animation: progressAnimationReverse 5s infinite alternate;
}

@keyframes progressAnimationReverse {
    0% {
        height: 30%;
    }
    100% {
        height: 90%;
    }
}

.timeline-item {
    position: relative;
    margin-bottom: 25px; /* Ridotto da 30px */
    padding: 18px; /* Ridotto da 20px */
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 14px; /* Ridotto da 15px */
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.timeline-marker {
    position: absolute;
    left: -34px; /* Ridotto da -39px */
    top: 50%;
    transform: translateY(-50%);
}

.marker-dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #00ddff;
    box-shadow: 0 0 0 4px rgba(0, 221, 255, 0.3);
}

.marker-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: rgba(0, 221, 255, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.8;
    }
    70% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
    }
}

.timeline-date {
    display: inline-block;
    background: linear-gradient(90deg, #00ddff, #0055ff);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.timeline-content h3 {
    color: white;
    font-size: 1rem; /* Ridotto da 1.1rem */
    margin-bottom: 6px; /* Ridotto da 8px */
}

.timeline-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.5;
}

.skills-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 18px; /* Ridotto da 20px */
    padding: 20px; /* Ridotto da 25px */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.skills-section h3 {
    color: white;
    margin-bottom: 15px; /* Ridotto da 20px */
    text-align: center;
    font-size: 1.2rem; /* Ridotto da 1.3rem */
}

.skills-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.skill-tag {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 6px 12px; /* Ridotto da 8px 15px */
    border-radius: 18px; /* Ridotto da 20px */
    font-size: 0.8rem; /* Ridotto da 0.85rem */
    transition: all 0.3s ease;
    cursor: default;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Media query per schermi piccoli */
@media (max-width: 992px) {
    .chi-sono-content {
        grid-template-columns: 1fr;
        gap: 25px; /* Ridotto da 30px */
    }
    
    .stats-container {
        flex-direction: column;
        gap: 12px; /* Ridotto da 15px */
    }
}

@media (max-width: 768px) {
    .chi-sono {
        padding: 60px 5%; /* Ridotto da 80px */
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .avatar-container {
        margin-right: 0;
        margin-bottom: 12px; /* Ridotto da 15px */
    }
    
    .modern-timeline {
        padding-left: 20px;
    }
    
    .timeline-marker {
        left: -29px;
    }
}


        /* Portfolio Grid */
		/* Portfolio Section Modern */
.progetti {
    padding: 100px 5%;
    background: var(--light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}



/* Grid Moderna */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Card Moderna */
.portfolio-card {
    background: var(--light);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: translateY(50px) rotate(2deg);
    transition: all 0.8s var(--easing);
	transition: all 0.8s var(--easing) !important;
}

/* Modifica questa regola esistente */
.portfolio-card:hover {
    transform: translateY(-10px) rotate(0deg); /* Aggiungi rotate(0deg) */
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

/* Modifica questa regola esistente */
.portfolio-card.card-visible {
    opacity: 1;
    transform: translateY(0) rotate(0deg); /* Mantieni questa trasformazione */
}

/* Modifica questa regola esistente */
.portfolio-card.visible {
    opacity: 1;
    transform: translateY(0); /* Assicurati che sia translateY(0) */
}


.portfolio-card {
    opacity: 0;
    transform: translateY(50px) rotate(2deg);
    transition: all 0.8s var(--easing);
}

.card-image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}




.card-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #00ddff;
background: linear-gradient(-90deg, rgba(0, 221, 255, 1) 0%, rgba(0, 85, 255, 1) 100%);
    color: var(--light);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.card-content {
    padding: 30px;
}

.card-content h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--primary);
}

.card-content p {
    color: var(--accent);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 15px;
}

.card-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
}

.card-tech span {
    background: var(--secondary);
    color: var(--accent);
    padding: 6px 14px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

.card-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--primary);
    color: var(--light);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s var(--easing);
    border: 2px solid var(--primary);
}

.card-button:hover {
    background: transparent;
    color: var(--primary);
    transform: translateX(5px);
}

.card-button i {
    transition: transform 0.3s var(--easing);
}

.card-button:hover i {
    transform: translateX(3px);
}

/* Animazioni */



/* Responsive */
@media (max-width: 968px) {
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 25px;
    }
    
    .card-image {
        height: 240px;
    }
}

@media (max-width: 768px) {
    .progetti {
        padding: 80px 5%;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
        margin-top: 40px;
    }
    
    .portfolio-filters {
        gap: 8px;
        margin-bottom: 40px;
    }
    
    .card-content {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        margin-top: 0px;
    }
    
    .card-image {
        height: 220px;
    }
    
    .card-content {
        padding: 20px;
    }
    
    .card-content h3 {
        font-size: 20px;
    }
    
    .card-button {
        padding: 12px 24px;
        font-size: 14px;
    }
}
        /* Contact Section */
/* Stili per la sezione Contatti */
        .contatti {
            background: #f0f8ff;
        }

        .contatti::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(0, 85, 255, 0.3), transparent);
            z-index: 1;
        }

        .contatti::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 80%;
            height: 80%;
            background: radial-gradient(circle, rgba(0, 221, 255, 0.05) 0%, transparent 70%);
            z-index: -1;
        }

        .contact-globe {
            position: absolute;
            top: 15%;
            right: 10%;
            width: 250px;
            height: 250px;
            background: radial-gradient(circle, rgba(0, 221, 255, 0.05) 0%, transparent 70%);
            border-radius: 50%;
            filter: blur(15px);
            z-index: 0;
            animation: floatGlobe 15s ease-in-out infinite;
            opacity: 0.7;
        }

        .contact-container {
            max-width: 1200px;
            margin: 0 auto;
            position: relative;
            z-index: 2;
        }

       

        .contact-pre-title {
            display: inline-block;
            font-size: 0.9rem;
            color: var(--accent);
            text-transform: uppercase;
            letter-spacing: 3px;
            margin-bottom: 15px;
            position: relative;
        }

        .contact-pre-title::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 30px;
            height: 2px;
            background: linear-gradient(90deg, #00ddff, #0055ff);
            transition: width 0.6s var(--easing);
        }

        .contact-pre-title:hover::after {
            width: 100%;
        }

        .contact-content {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 40px;
            align-items: start;
            max-width: 1100px;
            margin: 0 auto;
            position: relative;
            z-index: 3;
        }

        /* Contact Info Styling */
        .contact-info {
            padding: 30px;
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(10px);
            border-radius: 20px;
            border: 1px solid rgba(255, 255, 255, 0.9);
            box-shadow: 
                0 8px 30px rgba(0, 0, 0, 0.05),
                inset 0 0 0 1px rgba(255, 255, 255, 0.9);
            position: relative;
            z-index: 2;
        }

        .contact-info p {
            font-size: 1rem;
            color: var(--accent);
            margin-bottom: 30px;
            line-height: 1.7;
            position: relative;
            padding-left: 18px;
        }

        .contact-info p::before {
            content: '';
            position: absolute;
            left: 0;
            height: 100%;
            width: 3px;
            background: linear-gradient(to bottom, #00ddff, #0055ff);
            border-radius: 3px;
        }

        .contact-details {
            margin-top: 30px;
        }

        .contact-item {
            display: flex;
            align-items: center;
            margin-bottom: 20px;
            padding: 15px;
            background: rgba(255, 255, 255, 0.9);
            border-radius: 14px;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            border: 1px solid rgba(255, 255, 255, 0.9);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
            position: relative;
            z-index: 2;
        }

       

        .contact-icon-wrapper {
            width: 50px;
            height: 50px;
            background: linear-gradient(135deg, #00ddff, #0055ff);
            border-radius: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 15px;
            position: relative;
            overflow: hidden;
        }

        .contact-icon-wrapper::after {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: linear-gradient(to bottom right, rgba(255,255,255,0.2), rgba(255,255,255,0));
            transform: rotate(45deg);
        }

        .contact-icon {
            color: white;
            font-size: 1.3rem;
            z-index: 2;
        }

        .contact-text h4 {
            font-size: 1rem;
            margin-bottom: 6px;
            color: var(--primary);
            font-weight: 600;
        }

        .contact-text a, .contact-text p {
            color: var(--accent);
            font-size: 0.95rem;
            transition: color 0.3s ease;
            position: relative;
            display: inline-block;
        }

        .contact-text a::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 0;
            height: 1px;
            background: linear-gradient(90deg, #00ddff, #0055ff);
            transition: width 0.4s var(--easing);
        }

        .contact-text a:hover::after {
            width: 100%;
        }

        .contact-text a:hover {
            color: var(--primary);
        }

        /* Form Moderno Avanzato */
        .contact-form-modern {
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(10px);
            border-radius: 20px;
            padding: 30px;
            box-shadow: 
                0 15px 40px rgba(0, 0, 0, 0.08),
                inset 0 0 0 1px rgba(255, 255, 255, 0.9);
            border: 1px solid rgba(255, 255, 255, 0.9);
            position: relative;
            overflow: hidden;
            z-index: 2;
        }

        .contact-form-modern::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 4px;
            background: linear-gradient(90deg, #00ddff, #0055ff, #00ddff);
            background-size: 200% auto;
            animation: gradientFlow 3s linear infinite;
        }

        .form-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
            margin-bottom: 25px;
        }

        .form-group-full {
            grid-column: span 2;
        }

        .form-group-modern {
            position: relative;
            margin-bottom: 25px;
        }

        .form-input-modern {
            width: 100%;
            padding: 16px 20px;
            border: 1px solid rgba(0, 0, 0, 0.08);
            border-radius: 14px;
            background: rgba(255, 255, 255, 0.9);
            color: var(--primary);
            font-family: 'Poppins', sans-serif;
            font-size: 0.95rem;
            transition: all 0.4s ease;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
        }

        .form-input-modern:focus {
            outline: none;
            border-color: rgba(0, 85, 255, 0.3);
            box-shadow: 
                0 8px 20px rgba(0, 85, 255, 0.1),
                0 0 0 4px rgba(0, 85, 255, 0.05);
            background: rgba(255, 255, 255, 0.95);
            transform: translateY(-2px);
        }

        .form-label-modern {
            position: absolute;
            top: 16px;
            left: 20px;
            pointer-events: none;
            transition: all 0.4s ease;
            font-size: 0.95rem;
            color: var(--accent);
            background: linear-gradient(to top, rgba(255,255,255,0.95) 50%, transparent 50%);
            padding: 0 6px;
            border-radius: 4px;
        }

        .form-input-modern:focus ~ .form-label-modern,
        .form-input-modern:not(:placeholder-shown) ~ .form-label-modern {
            top: -10px;
            font-size: 0.8rem;
            color: var(--primary);
            font-weight: 500;
            background: rgba(255, 255, 255, 0.95);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
            padding: 0 10px;
        }

        textarea.form-input-modern {
            min-height: 130px;
            resize: vertical;
        }

        .submit-btn-modern {
            display: inline-flex;
            align-items: center;
            gap: 12px;
            padding: 16px 32px;
            background: linear-gradient(135deg, rgba(0, 221, 255, 1) 0%, rgba(0, 85, 255, 1) 100%);
            color: white;
            border: none;
            border-radius: 45px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            font-size: 1rem;
            box-shadow: 
                0 12px 25px rgba(0, 85, 255, 0.2),
                inset 0 0 0 1px rgba(255, 255, 255, 0.2);
            position: relative;
            overflow: hidden;
            font-family: "Poppins", sans-serif !important;
        }

        .submit-btn-modern::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
            transition: all 0.6s ease;
        }

        .submit-btn-modern:hover {
            transform: translateY(-4px) scale(1.02);
            box-shadow: 
                0 16px 32px rgba(0, 85, 255, 0.3),
                inset 0 0 0 1px rgba(255, 255, 255, 0.3);
        }

        .submit-btn-modern:hover::before {
            left: 100%;
        }

        .submit-btn-modern:active {
            transform: translateY(0) scale(1);
        }


        /* Responsive */
        @media (max-width: 1200px) {
            .contact-content {
                gap: 35px;
            }
            
            .contact-globe {
                right: 5%;
                width: 200px;
                height: 200px;
            }
        }

        @media (max-width: 968px) {
            .contact-content {
                grid-template-columns: 1fr;
                gap: 40px;
            }
            
            .contact-info {
                text-align: center;
                padding: 25px;
            }
            
            .contact-info p::before {
                display: none;
            }
            
            .contact-item {
                justify-content: center;
                text-align: left;
            }
            
            .form-grid {
                grid-template-columns: 1fr;
            }
            
            .form-group-full {
                grid-column: span 1;
            }
            
            .contact-globe {
                display: none;
            }
        }

        @media (max-width: 768px) {
            .contatti {
                padding: 80px 4%;
            }
            
            .contact-form-modern {
                padding: 25px;
            }
            
        }

        @media (max-width: 480px) {
            .contact-form-modern {
                padding: 20px 15px;
            }
            
            .form-input-modern {
                padding: 14px 16px;
            }
            
            .submit-btn-modern {
                width: 100%;
                justify-content: center;
                padding: 14px 28px;
                font-family: "Poppins", sans-serif !important;
            }
            
            .contact-item {
                flex-direction: column;
                text-align: center;
            }
			
			.contact-text p {
                flex-direction: column;
                text-align: center;
            }
			
            
            .contact-icon-wrapper {
                margin-right: 0;
                margin-bottom: 12px;
            }
	
        }
		

        /* Footer */
        footer {
            background-color: var(--secondary);
            padding: 4rem 10% 2rem;
            text-align: center;
			color: var(--accent);
        }

        .social-links {
            display: flex;
            justify-content: center;
            gap: 1.5rem;
            margin-bottom: 2rem;
        }

        .social-link {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: var(--light);
            color: var(--accent);
            font-size: 0.9rem;
            position: relative;
            overflow: hidden;
        }
  
        .social-link:hover {
            color: var(--light);
			background: linear-gradient(135deg, #00ddff, #0055ff);
        }

        /* Animazioni */
        @keyframes fadeUp {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes float {
            0% {
                transform: translateY(0) rotate(0deg);
            }
            50% {
                transform: translateY(-10px) rotate(2deg);
            }
            100% {
                transform: translateY(0) rotate(0deg);
            }
        }

        @keyframes pulse {
            0% {
                transform: scale(1);
            }
            50% {
                transform: scale(1.05);
            }
            100% {
                transform: scale(1);
            }
        }

        @keyframes gradientShift {
            0% {
                background-position: 0% 50%;
            }
            50% {
                background-position: 100% 50%;
            }
            100% {
                background-position: 0% 50%;
            }
        }

        .animated-element {
            opacity: 0;
            transform: translateY(30px);
            transition: opacity 0.8s var(--easing), transform 0.8s var(--easing);
        }

.animated-gradient-text {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 400;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    opacity: 0;
    transform: translateY(30px);
    background: linear-gradient(90deg, #00ddff, #0055ff, #00ddff);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}



/* Animazione per il movimento del gradiente da sinistra a destra */
@keyframes gradientFlow {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}



        .is-visible {
            opacity: 1;
            transform: translateY(0);
        }


        .pulse-animation {
            animation: pulse 4s var(--easing) infinite;
        }

        /* Media Queries */
        @media (max-width: 992px) {
            .chi-sono-content,
            .contact-content {
                grid-template-columns: 1fr;
            }

   

            .hero {
                flex-direction: column;
                justify-content: center;
                text-align: center;
				min-height: 100vh;
            }

.hero-inner {
        flex-direction: column;
        text-align: center;
    }
    
              .menu-toggle {
        display: block;
    }

    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        max-width: 300px;
        flex-direction: column;
        background: var(--light);
        align-items: center;
        justify-content: center;
        transition: var(--transition);
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
        z-index: 1001;
        padding: 2rem;
    }

    nav ul.active {
        right: 0;
    }

    nav ul li {
        margin: 1.5rem 0;
        opacity: 0;
        transform: translateX(20px);
        transition: opacity 0.4s ease, transform 0.4s ease;
    }

    nav ul.active li {
        opacity: 1;
        transform: translateX(0);
    }

    nav ul.active li:nth-child(1) { transition-delay: 0.1s; }
    nav ul.active li:nth-child(2) { transition-delay: 0.2s; }
    nav ul.active li:nth-child(3) { transition-delay: 0.3s; }
    nav ul.active li:nth-child(4) { transition-delay: 0.4s; }
}
        @media (max-width: 768px) {
            
            section {
                padding: 4rem 5%;
            }
            
            .hero {
                padding: 0 5%;
                min-height: 100vh;
            }
		
            
            
            .hero h1 {
                font-size: 2.5rem;
            }
			
			 .hero-buttons {
        justify-content: center;
    }
		
        }

@media (max-width: 480px) {
    .hero-content {
        max-width: 95%;
    }
    
    .hero h1 {
        font-size: 2.2rem;
        margin-bottom: 0.6rem;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 1.2rem;
    }
    
    .cta-button, .cv-button {
        padding: 1rem 1.4rem;
        font-size: 0.75rem;
        max-width: 200px;
    }
}

@media (max-width: 390px) {
    
    .hero h1 {
        font-size: 2.0rem;
        margin-bottom: 0.6rem;
    }
}


        /* Aggiungi questa regola per assicurare che le animazioni funzionino */
[data-aos].aos-animate {
    opacity: 1;
    transform: translate(0) perspective(1000px) rotateX(0) scale(1);
}

/* Assicurati che le animazioni siano applicate correttamente */
.section-title[data-aos].aos-animate,
.section-title2[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}
















/* Stili specifici per la pagina progetto */
        .project-hero {
            min-height: 80vh; /* Aumentata l'altezza */
            display: flex;
            align-items: center;
            position: relative;
            overflow: hidden;
            background: linear-gradient(135deg, rgba(0, 85, 255, 0.8) 0%, rgba(0, 221, 255, 0.8) 100%);
            padding: 150px 10% 120px; /* Aumentato il padding superiore e inferiore */
            color: white;
        }

        .project-hero-content {
            max-width: 800px;
            position: relative;
            z-index: 2;
        }

        .project-hero-badge {
            display: inline-block;
            background: linear-gradient(90deg, #00ddff, #0055ff);
            color: white;
            padding: 8px 20px;
            border-radius: 30px;
            font-size: 14px;
            font-weight: 500;
            margin-bottom: 20px;
        }

        .project-hero-title {
            font-size: clamp(2.5rem, 5vw, 3.5rem);
            font-weight: 600;
            margin-bottom: 15px;
            line-height: 1.2;
            color: var(--primary);
        }

        .project-hero-subtitle {
            font-size: 1.2rem;
            font-weight: 300;
            margin-bottom: 30px;
            opacity: 0.9;
            color: var(--accent);
        }

        .project-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            margin-bottom: 30px;
        }

        .meta-item {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 0.95rem;
            color: var(--primary);
        }

        .meta-icon {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.2);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .project-content {
            padding: 80px 10%;
        }

        .project-section {
            margin-bottom: 80px;
        }

        .project-section-title {
            font-size: 2rem;
            margin-bottom: 30px;
            position: relative;
            display: inline-block;
            font-weight: 600;
        }

        .project-section-title::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 0;
            width: 50px;
            height: 3px;
            background: linear-gradient(90deg, #00ddff, #0055ff);
            transition: width 0.6s ease;
        }

        .project-section-title:hover::after {
            width: 100%;
        }

        .project-text {
            font-size: 1.05rem;
            line-height: 1.8;
            color: #555;
            margin-bottom: 25px;
        }

        .highlight-box {
            background: linear-gradient(135deg, #f0f8ff 0%, #e6f7ff 100%);
            border-left: 4px solid #00ddff;
            padding: 25px;
            border-radius: 8px;
            margin: 30px 0;
        }

        .skills-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 20px;
            margin-top: 30px;
        }

        .skill-card {
            background: white;
            padding: 25px;
            border-radius: 12px;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .skill-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
        }

        .skill-icon {
            font-size: 2rem;
            color: #0055ff;
            margin-bottom: 15px;
        }

        .skill-title {
            font-size: 1.2rem;
            margin-bottom: 10px;
            font-weight: 600;
        }

        @keyframes rubberBand {
  from {
    transform: scale3d(1, 1, 1);
  }

  30% {
    transform: scale3d(1.25, 0.75, 1);
  }

  40% {
    transform: scale3d(0.75, 1.25, 1);
  }

  50% {
    transform: scale3d(1.15, 0.85, 1);
  }

  65% {
    transform: scale3d(0.95, 1.05, 1);
  }

  75% {
    transform: scale3d(1.05, 0.95, 1);
  }

  to {
    transform: scale3d(1, 1, 1);
  }
}

.animated {
  animation-duration: 1s;
  animation-fill-mode: both;
}

        .project-cta {
            background: linear-gradient(135deg, #00ddff 0%, #0055ff 100%);
            padding: 80px 10%;
            text-align: center;
            color: white;
            border-radius: 15px;
            margin: 50px 0;
        }

        .project-cta-title {
            font-size: 2.2rem;
            margin-bottom: 20px;
        }

        .project-cta-text {
            font-size: 1.1rem;
            margin-bottom: 30px;
            opacity: 0.9;
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
        }

        .back-button {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            padding: 12px 25px;
            background: white;
            color: #0055ff;
            border-radius: 50px;
            font-weight: 500;
            transition: all 0.3s ease;
            margin-top: 20px;
        }

        .back-button:hover {
            transform: translateX(-5px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }

        /* Responsive Design */
        @media (max-width: 968px) {
            .project-hero {
                padding: 100px 5% 50px;
                min-height: 100vh;
            }
            
            .project-content {
                padding: 60px 5%;
            }
            
            .project-meta {
                flex-direction: column;
                gap: 15px;
            }
            
            .skills-grid {
                grid-template-columns: 1fr;
            }
            
            .gallery-grid {
                grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            }
        }

        @media (max-width: 768px) {
            
            .project-hero-title {
                font-size: 2.2rem;
            }
            
            .project-section-title {
                font-size: 1.8rem;
            }
            
            .project-hero-badge {
            padding: 6px 16px;
            font-size: 13px;
            margin-bottom: 16px;
            }

            
            .project-cta {
                padding: 60px 5%;
            }
            
            .project-cta-title {
                font-size: 1.8rem;
            }
        }

        @media (max-width: 480px) {


        .project-section-title {
        font-size: 1.5rem;
        padding-right: 15px;
    }
    
    .section-title {
        font-size: 1.7rem;
    }

    .section-title2 {
        font-size: 1.7rem;
    }

    .project-section-title::after {
        width: 35px;
        height: 2px;
        bottom: -8px;
    }
    
    .project-section-title:hover::after {
        width: calc(100% - 15px);
    }
        


            header {
        padding: 2rem 4%; /* Leggermente più alto */
        height: 55px; /* Altezza bilanciata */
    }
    
    header.scrolled {
        padding: 0.7rem 4%;
    }
    
    .logo {
        font-size: 1.2rem; /* Logo leggermente più grande */
    }
    
    .menu-toggle {
        font-size: 1.4rem;
        right: 4%;
        top: 50%;
        transform: translateY(-50%);
    }
    
    /* Navigazione mobile */
    nav ul {
        width: 80%;
        max-width: 280px;
        padding: 1.8rem;
    }
    
    nav ul li {
        margin: 1.2rem 0;
    }
    
    nav a {
        font-size: 0.95rem;
        padding: 0.5rem 0;
    }


            .project-hero {
                padding: 80px 5% 40px;
                min-height: 90vh;
            }
            
            .project-hero-title {
                font-size: 1.8rem;
            }

            .project-hero-badge {
            padding: 5px 12px;
            font-size: 12px;
            margin-bottom: 14px;
            }
            
            .project-hero-subtitle {
                font-size: 1rem;
            }
            

            

        
        }


        impact-list {
    list-style: none;
    padding-left: 0;
    margin-top: 20px;
}

.impact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.impact-item:hover {
    background-color: rgba(0, 221, 255, 0.05);
}

.impact-icon {
    color: #00ddff;
    font-size: 1.1rem;
    margin-right: 15px;
    margin-top: 3px;
    flex-shrink: 0;
}

.impact-content {
    flex: 1;
}

