@import url('https://fonts.googleapis.com/css2?family=Helvetica+Neue:wght@400;700&display=swap');


* {
    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 {
    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;
}


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;
}

.nav-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #FFD700; 
    color: #1A1A2E; 
    border: 2px solid #FFD700;
    border-radius: 8px; 
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.3s, color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.nav-button.active {
    background-color: #1A1A2E;
    color: #FFD700; 
}

.nav-button:hover {
    background-color: #FFC300; 
    color: #FFFFFF; 
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}


.nav-button:active {
    transform: translateY(0px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}


.nav-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.5);
}


nav ul li a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    background: #FFD700; 
    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; 
}

/* Hero Section */
.hero {
    height: 100vh;
    background: url('corsi.png') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: 70px; 
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 46, 0.5); 
}

.hero .container {
    position: relative;
    text-align: center;
    color: #FFFFFF;
    max-width: 800px;
    padding: 20px;
}

.hero h2 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
    transition: color 0.3s;
}

.hero h2:hover {
    color: #FFD700; 
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn {
    background: #FFD700; 
    color: #1A1A2E; 
    padding: 15px 30px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 30px;
    transition: background 0.3s, transform 0.3s;
    display: inline-block;
}

.btn-primary {
    background: #1A1A2E; 
    color: #FFD700; 
    border: 2px solid #FFD700;
}

.btn-primary:hover {
    background: #FFD700;
    color: #1A1A2E;
}

.btn-secondary {
    background: transparent;
    border: 2px solid #FFD700;
    color: #FFD700;
}

.btn-secondary:hover {
    background: #FFD700;
    color: #1A1A2E;
}

.btn:hover {
    background: #FFC300; 
    transform: translateY(-3px);
}


.courses {
    padding: 80px 0;
    background: #FFFFFF;
}

.courses h2 {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 60px;
    position: relative;
}

.courses h2::after {
    content: '';
    width: 60px;
    height: 4px;
    background: #FFD700; 
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.courses-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.course-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; 
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.course-card img {
    width: 100%;
    height: 150px; 
    object-fit: cover;
    transition: transform 0.3s;
}

.course-card:hover img {
    transform: scale(1.05);
}

.course-card h4 {
    font-size: 20px;
    font-weight: 600;
    color: #000000;
    margin: 15px 0 10px 0;
    text-align: center;
}

.course-card p {
    font-size: 14px;
    color: #777777;
    margin: 0 20px 15px 20px;
    text-align: center;
}

.course-btn {
    background: #1A1A2E; /* Blu scuro */
    color: #FFD700; /* Giallo brillante */
    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;
}

.course-btn i {
    margin-right: 8px;
}

.course-btn:hover {
    background: #FFD700; 
    color: #1A1A2E; 
    transform: translateY(-3px);
}


.instructions {
    padding: 80px 0;
    background: #F0F0F0;
}

.instructions h2 {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 60px;
    position: relative;
}

.instructions h2::after {
    content: '';
    width: 60px;
    height: 4px;
    background: #FFD700; 
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.instructions-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
}

.instruction-step {
    background: #FFFFFF;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: center;
    width: 250px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.instruction-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.instruction-step i {
    font-size: 30px;
    color: #FFD700; 
    margin-bottom: 15px;
    transition: color 0.3s;
}

.instruction-step:hover i {
    color: #FFC300; 
}

.instruction-step h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1A1A2E; 
    margin-bottom: 10px;
}

.instruction-step p {
    font-size: 16px;
    color: #555555;
}

.entrance-exam {
    padding: 80px 0;
    background: #FFFFFF;
}

.entrance-exam h2 {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 60px;
    position: relative;
}

.entrance-exam h2::after {
    content: '';
    width: 60px;
    height: 4px;
    background: #FFD700; 
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.entrance-exam-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
}

.exam-info, .exam-details, .exam-registration {
    background: #F9F9F9;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    width: 300px;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.exam-info:hover, .exam-details:hover, .exam-registration:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.entrance-exam-content i {
    font-size: 30px;
    color: #FFD700; 
    margin-bottom: 15px;
    transition: color 0.3s;
}

.entrance-exam-content:hover i {
    color: #FFC300; 
}

.entrance-exam-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1A1A2E; 
    margin-bottom: 10px;
}

.entrance-exam-content p {
    font-size: 16px;
    color: #555555;
}

.exam-details ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

.exam-details ul li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.exam-details ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #FFD700;
}

.exam-btn {
    background: #1A1A2E; 
    color: #FFD700; 
    padding: 10px 20px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 30px;
    display: inline-block;
    transition: background 0.3s, transform 0.3s;
}

.exam-btn:hover {
    background: #FFD700; 
    color: #1A1A2E; 
    transform: translateY(-3px);
}

footer {
    background: #1A1A2E;
    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; 
    transform: scale(1.2);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from { top: -100px; }
    to { top: 0; }
}

@media (max-width: 992px) {
    .hero .container {
        padding: 20px;
    }

    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;
    }

    .courses-grid, .instructions-content, .entrance-exam-content {
        flex-direction: column;
        align-items: center;
    }

    .course-card, .instruction-step, .exam-info, .exam-details, .exam-registration {
        width: 100%;
        max-width: 300px;
    }

    .courses, .instructions, .entrance-exam {
        padding: 60px 0;
    }
}

@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;
    }

    .course-card img, .instruction-step i, .entrance-exam-content i {
        height: 120px;
    }

    .course-card h4, .instruction-step h3, .entrance-exam-content h3 {
        font-size: 18px;
    }

    .course-card p, .instruction-step p, .entrance-exam-content p {
        font-size: 14px;
    }

    .nav-button {
        padding: 8px 16px;
        font-size: 14px;
    }
}

#scaleConversionWrapper {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    background: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

#scaleConversionTool {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #1A1A2E;
}

#scaleConversionTool input,
#scaleConversionTool select,
#scaleConversionTool button {
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    border: 1px solid #ccc;
    width: 100%;
    box-sizing: border-box;
}

#scaleConversionTool button {
    background-color: #FFD700;
    color: #1A1A2E;
    cursor: pointer;
    transition: background-color 0.3s;
}

#scaleConversionTool button:hover {
    background-color: #FFC300;
}

#scaleConversionTool h2 {
    font-size: 24px;
    color: #1A1A2E;
    text-align: center;
}
/* 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 */
}
