/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Helvetica+Neue:wght@400;700&display=swap');

/* Reset e base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #000000;
    background-color: #F0F0F0;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* Header */
header {
    position: fixed;
    width: 100%;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: background 0.3s, box-shadow 0.3s;
}

header.scrolled {
    background: #FFFFFF;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-image {
    width: 50px;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s;
}

.logo-image:hover {
    transform: scale(1.05);
}

.logo-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Navigazione */
nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #000000;
    font-weight: 500;
    transition: color 0.3s, border-bottom 0.3s;
    position: relative;
}

/* Stilizzazione dei tasti quadrati */
.nav-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #FFD700; /* Giallo brillante */
    color: #1A1A2E; /* Blu scuro */
    border: 2px solid #FFD700;
    border-radius: 8px; /* Bordo leggermente arrotondato */
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.3s, color 0.3s, transform 0.3s, box-shadow 0.3s;
}

/* Effetti hover per i tasti */
.nav-button:hover {
    background-color: #FFC300; /* Giallo più scuro */
    color: #FFFFFF; /* Testo bianco */
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* Effetti attivi (cliccato) */
.nav-button:active {
    transform: translateY(0px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Animazione di focus per accessibilità */
.nav-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.5);
}

/* Hover sotto la navigazione standard */
nav ul li a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    background: #FFD700; /* Giallo brillante */
    left: 0;
    bottom: -5px;
    transition: width 0.3s;
}

nav ul li a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

.hamburger i {
    color: #000000;
    transition: color 0.3s;
}

.hamburger i:hover {
    color: #FFD700; /* Giallo brillante */
}

/* Hero Section */
.hero {
    height: 200vh;
    background: url('collaborazione.jpg') no-repeat center center/cover;
    background-position: center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: 110px; /* Altezza dell'header */
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 46, 0.5); /* Sovrapposizione blu scuro */
}

.hero .container {
    position: relative;
    text-align: center;
    color: #FFFFFF;
    max-width: 800px;
    padding: 50px;
}

.hero h2 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
    transition: color 0.3s;
}

.hero h2:hover {
    color: #FFD700; /* Giallo brillante */
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn {
    background: #FFD700; /* Giallo brillante */
    color: #1A1A2E; /* Blu scuro */
    padding: 15px 30px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 30px;
    transition: background 0.3s, transform 0.3s;
    display: inline-block;
}

.btn-secondary {
    background: transparent;
    border: 2px solid #FFD700;
    color: #FFD700;
}

.btn-secondary:hover {
    background: #FFD700;
    color: #1A1A2E;
}

.btn:hover {
    background: #FFC300; /* Giallo più scuro */
    transform: translateY(-3px);
}

/* About Section */
.about {
    padding: 100px 0;
    background: #FFFFFF;
}

.about h2 {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 60px;
    position: relative;
}

.about h2::after {
    content: '';
    width: 60px;
    height: 4px;
    background: #FFD700; /* Giallo brillante */
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.about-content {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 18px;
    color: #555555;
}

.about-icons {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.icon-box {
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s;
    cursor: pointer;
}

.icon-box:hover {
    transform: translateY(-5px);
}

.icon-box i {
    font-size: 30px;
    color: #FFD700; /* Giallo brillante */
    transition: color 0.3s;
}

.icon-box:hover i {
    color: #FFC300; /* Giallo più scuro */
}

.icon-box h3 {
    font-size: 20px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 5px;
}

.icon-box p {
    font-size: 16px;
    color: #777777;
}

/* Downloads Section */
.downloads {
    padding: 100px 0;
    background: #FFFFFF;
}

.downloads h2 {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 60px;
    position: relative;
}

.downloads h2::after {
    content: '';
    width: 60px;
    height: 4px;
    background: #FFD700; /* Giallo brillante */
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

/* Nuove Inserzioni per Downloads */
.download-section {
    margin-bottom: 80px;
}

.download-section h3 {
    font-size: 28px;
    font-weight: 600;
    color: #1A1A2E;
    text-align: center;
    margin-bottom: 40px;
}

.download-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center; /* Centra le schede */
}

.download-card {
    background: #F9F9F9;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 250px; /* Imposta una larghezza fissa */
}

.download-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.download-card img {
    width: 100%;
    height: 150px; /* Altezza ridotta per schede più piccole */
    object-fit: cover;
    transition: transform 0.3s;
}

.download-card:hover img {
    transform: scale(1.05);
}

.download-card h4 {
    font-size: 20px;
    font-weight: 600;
    color: #000000;
    margin: 15px 0 10px 0;
    text-align: center;
}

.download-card p {
    font-size: 14px;
    color: #777777;
    margin: 0 20px 15px 20px;
    text-align: center;
}

.download-btn {
    background: #FFD700; /* Giallo brillante */
    color: #1A1A2E; /* Blu scuro */
    padding: 10px 20px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 20px 20px 20px;
    transition: background 0.3s, transform 0.3s;
}

.download-btn i {
    margin-right: 8px;
}

.download-btn:hover {
    background: #FFC300; /* Giallo più scuro */
    transform: translateY(-3px);
}

/* Testimonials Section */
.testimonials {
    padding: 100px 0;
    background: #FFFFFF;
}

.testimonials h2 {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 60px;
    position: relative;
}

.testimonials h2::after {
    content: '';
    width: 60px;
    height: 4px;
    background: #FFD700; /* Giallo brillante */
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.testimonial-slider {
    display: flex;
    overflow-x: scroll;
    gap: 30px;
    scroll-behavior: smooth;
}

.testimonial {
    background: #F9F9F9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    flex: 0 0 300px;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.testimonial:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.testimonial i {
    font-size: 24px;
    color: #FFD700; /* Giallo brillante */
    position: absolute;
    top: 20px;
    left: 20px;
}

.testimonial p {
    margin-top: 40px;
    font-size: 16px;
    color: #555555;
}

.testimonial h4 {
    margin-top: 20px;
    font-size: 18px;
    color: #000000;
    text-align: right;
    text-decoration-thickness: none;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: #F0F0F0;
}

.contact h2 {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 60px;
    position: relative;
}

.contact h2::after {
    content: '';
    width: 60px;
    height: 4px;
    background: #FFD700; /* Giallo brillante */
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.contact-content {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    flex-wrap: wrap;
}

.contact-details {
    flex: 1;
    min-width: 300px;
}

.detail-box {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.detail-box i {
    font-size: 30px;
    color: #FFD700; /* Giallo brillante */
    transition: color 0.3s, transform 0.3s;
}

.detail-box:hover i {
    color: #FFC300; /* Giallo più scuro */
    transform: scale(1.1);
}

.detail-box h3 {
    font-size: 20px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 5px;
}

.detail-box p {
    font-size: 16px;
    color: #777777;
}

.contact-form {
    flex: 1;
    min-width: 300px;
}

.contact-form .form-group {
    position: relative;
    margin-bottom: 20px;
}

.contact-form .form-group i {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: #777777;
    font-size: 18px;
    transition: color 0.3s;
}

.contact-form .form-group:hover i {
    color: #FFD700; /* Giallo brillante */
}

.contact-form input, 
.contact-form textarea {
    width: 100%;
    padding: 15px 15px 15px 50px;
    border: 1px solid #DDDDDD;
    border-radius: 8px;
    font-size: 16px;
    transition: border 0.3s, box-shadow 0.3s;
    background-color: #FFFFFF;
}

.contact-form input:focus, 
.contact-form textarea:focus {
    border-color: #FFD700; /* Giallo brillante */
    outline: none;
    box-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-form button {
    background: #FFD700; /* Giallo brillante */
    color: #1A1A2E; /* Blu scuro */
    padding: 15px 30px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.3s, transform 0.3s;
    align-self: flex-start;
}

.contact-form button:hover {
    background: #FFC300; /* Giallo più scuro */
    transform: translateY(-3px);
}

/* Footer */
footer {
    background: #1A1A2E; /* Blu scuro */
    color: #FFFFFF;
    padding: 30px 0;
    text-align: center;
}

footer p {
    font-size: 14px;
    color: #FFFFFF;
    margin-bottom: 15px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-icons a {
    color: #FFFFFF;
    font-size: 18px;
    transition: color 0.3s, transform 0.3s;
}

.social-icons a:hover {
    color: #FFD700; /* Giallo brillante */
    transform: scale(1.2);
}

/* Animazioni */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from { top: -100px; }
    to { top: 0; }
}

/* Responsività */
@media (max-width: 992px) {
    .about-content, .course-grid, .testimonial-slider, .downloads-content, .contact-content {
        flex-direction: column;
        align-items: center;
    }

    nav ul {
        flex-direction: column;
        background: rgba(255, 255, 255, 0.95);
        position: absolute;
        top: 70px;
        right: 0;
        width: 100%;
        display: none;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }

    nav ul.show {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .testimonial-slider {
        flex-direction: column;
        align-items: center;
    }

    .downloads-content {
        flex-direction: column;
        align-items: center;
    }

    .contact-content {
        flex-direction: column;
        align-items: center;
    }

    .contact-details, .contact-form {
        width: 100%;
    }

    .detail-box {
        justify-content: center;
        text-align: center;
    }

    .download-section {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .hero h2 {
        font-size: 36px;
    }

    .hero p {
        font-size: 18px;
    }

    nav ul li a {
        padding: 15px 0;
        text-align: center;
        border-bottom: 1px solid #EEEEEE;
    }

    nav ul li:last-child a {
        border-bottom: none;
    }

    .download-card img {
        height: 120px;
    }

    .download-card h4 {
        font-size: 18px;
    }

    .download-card p {
        font-size: 14px;
    }

    .nav-button {
        padding: 8px 16px;
        font-size: 14px;
    }
}
/* Stile comune per i bottoni */
button, .btn, .btn-secondary, .nav-button, .download-btn {
    transition: transform 0.3s, box-shadow 0.3s; /* Transizione uniforme */
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
}

/* Effetto hover per tutti i bottoni */
button:hover, .btn:hover, .btn-secondary:hover, .nav-button:hover, .download-btn:hover {
    transform: translateY(-3px); /* Movimento verso l'alto */
    box-shadow: 0 4px 10px rgba(0,0,0,0.15); /* Aggiunta ombra durante hover */
}

/* Effetto active per tutti i bottoni */
button:active, .btn:active, .btn-secondary:active, .nav-button:active, .download-btn:active {
    transform: translateY(0px); /* Nessun spostamento quando il bottone è premuto */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Ombra più leggera quando attivo */
}
