/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

/* Header */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    height: 68px;
    width: 150px;
}

nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #0066cc;
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    padding: 150px 0 80px;
    background-color: #f5f5f5;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-text {
    flex: 1;
    padding-right: 40px;
}

.hero-text h1 {
    font-size: 2.4rem;
    margin-bottom: 15px;
    color: #0066cc;
}

.hero-text h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #333;
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.hero-image {
    flex: 1;
    text-align: right;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    border: none;
    outline: none;
}

/* Services Section */
.services {
    padding: 100px 0 80px;
    background-color: #fff;
}

.services .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.service-card {
    flex: 1;
    min-width: 300px;
    padding: 40px 30px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-icon {
    width: 112px;
    height: 112px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #0066cc;
}

.service-card p {
    margin-bottom: 0;
    color: #666;
    line-height: 1.6;
}

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

/* Why Us Section */
.why-us {
    padding: 80px 0;
    background-color: #f5f5f5;
}

.why-us-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.why-us-image {
    flex: 1;
    padding-right: 40px;
}

.why-us-image img {
    max-width: 100%;
    height: auto;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    border: none;
    outline: none;
}

.why-us-text {
    flex: 1;
}

.why-us-text h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #0066cc;
}

.why-us-text p {
    margin-bottom: 20px;
}

.why-us-text ul {
    margin: 20px 0;
    padding-left: 20px;
}

.why-us-text li {
    margin-bottom: 10px;
}

/* Experience Section */
.experience {
    padding: 80px 0;
    background-color: #fff;
}

.experience-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.experience-text {
    flex: 1;
    padding-right: 40px;
}

.experience-text h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #0066cc;
}

.experience-text p {
    margin-bottom: 20px;
}

.experience-text ul {
    margin: 20px 0;
    padding-left: 20px;
}

.experience-text li {
    margin-bottom: 10px;
}

.experience-icons {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.icon-item {
    text-align: center;
    margin: 20px 0;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 5px;
    width: 100%;
    max-width: 300px;
}

.icon-item i {
    font-size: 3rem;
    color: #0066cc;
    margin-bottom: 15px;
}

.icon-item h3 {
    font-size: 1.3rem;
    color: #333;
}

/* Certifications Section */
.certifications {
    padding: 80px 0;
    background-color: #f5f5f5;
}

.certifications-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.certifications-icons {
    flex: 1;
    padding-right: 40px;
}

.icon-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.icon-box {
    flex: 1;
    text-align: center;
    padding: 30px;
    background-color: #fff;
    border-radius: 5px;
    margin: 0 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.icon-box i {
    font-size: 2.5rem;
    color: #0066cc;
    margin-bottom: 15px;
}

.certifications-text {
    flex: 1;
}

.certifications-text h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #0066cc;
}

.certifications-text p {
    margin-bottom: 20px;
}

/* Contact Form Section - Updated with Image */
.contact-form {
    padding: 80px 0;
    background-color: #fff;
}

.contact-wrapper {
    display: flex;
    align-items: flex-start; /* Allinea in alto */
    gap: 60px;
}

.contact-image img {
    width: 100%;
    max-width: 472px;
    height: auto;
    border-radius: 8px;
    display: block;
}

.form-container {
    flex: 1;
    min-width: 0; /* Permette al form di ridursi */
}

.contact-form h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #0066cc;
    text-align: left; /* Allineamento a sinistra */
}

form {
    max-width: 100%;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.hidden {
    display: none;
}

.submit-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #0066cc;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #0055aa;
}

.contact-info {
    text-align: left;
    margin-top: 30px;
}

.contact-info p {
    margin-bottom: 10px;
}

.contact-info a {
    color: #0066cc;
    text-decoration: none;
}

/* Contact Banner Section */
.contact-banner {
    background-color: #0066cc;
    color: #fff;
    padding: 60px 0;
}

.banner-content {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
}

.banner-column {
    flex: 1;
    min-width: 300px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.banner-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.banner-icon i {
    font-size: 30px;
    color: #fff;
}

.banner-text h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.banner-text p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.banner-text a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s;
}

.banner-text a:hover {
    opacity: 0.8;
}

/* Footer */
footer {
    padding: 30px 0;
    background-color: #333;
    color: #fff;
    text-align: center;
}

footer a {
    color: #fff;
    text-decoration: underline;
}

/* Animation Classes */
.section-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-out;
}

.section-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Bounce Animation */
@keyframes bounceUp {
    0% {
        transform: translateY(60px);
        opacity: 0;
    }
    60% {
        transform: translateY(-10px);
        opacity: 1;
    }
    80% {
        transform: translateY(5px);
    }
    100% {
        transform: translateY(0);
    }
}

.bounce-up {
    animation: bounceUp 1s ease-out forwards;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .hero-content,
    .why-us-content,
    .experience-content,
    .certifications-content,
    .contact-container {
        flex-direction: column;
    }
    
    .hero-text,
    .why-us-text,
    .experience-text,
    .certifications-text {
        padding-right: 0;
        margin-bottom: 40px;
    }
    
    .hero-image,
    .why-us-image,
    .contact-image {
        padding-right: 0;
        text-align: center;
        margin-bottom: 40px;
    }
    
    .icon-row {
        flex-direction: column;
    }
    
    .icon-box {
        margin: 10px 0;
    }
    
    .contact-form h2 {
        text-align: center;
    }
    
    .contact-info {
        text-align: center;
    }
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .contact-wrapper {
        flex-direction: column;
        gap: 40px;
    }
    
    .contact-image {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .contact-form h2 {
        text-align: center; /* Centra su mobile */
    }
}

@media screen and (max-width: 768px) {
    .contact-image img {
        max-width: 100%;
    }
}

@media screen and (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0;
        top: 80px;
        background-color: #fff;
        width: 100%;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: transform 0.5s ease-in;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .nav-links li {
        margin: 15px 0;
    }

    .burger {
        display: block;
    }

    .service-card {
        min-width: 100%;
    }

    .hero {
        padding: 120px 0 60px;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text h2 {
        font-size: 1.5rem;
    }
    
    .contact-image img {
        max-width: 100%;
    }
}

/* Animations */
@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}
.toggle .line2 {
    opacity: 0;
}
.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}