body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    background: #d0e7ff;
    color: #1a365d;
}
header {
    background: #5ca9dd;
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
nav {
    width: 90%;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
nav img.logo {
    height: 80px;
}
nav a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 15px;
    font-weight: bold;
    position: relative;
}
nav a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #f4b183;
    transition: 0.3s;
}
nav a:hover::after {
    width: 100%;
}
.hero, .section {
    text-align: center;
    padding: 60px 20px;
}
.slideshow-placeholder {
    width: 100%;
    height: 300px;
    background-color: #b0d4f1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    color: #1a365d;
    margin-bottom: 40px;
}
.courses {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}
.course {
    background: #e6f0fa;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}
.course:hover {
    transform: translateY(-5px);
}
form {
    max-width: 600px;
    margin: auto;
    background: #e6f0fa;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
input, textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}
button {
    background: #f4b183;
    color: #1a365d;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
}
footer {
    background: #1a365d;
    color: #fff;
    text-align: center;
    padding: 15px;
}
.course-link {
    text-decoration: none;
    color: inherit;
    display: block;
}
.course-link:hover .course {
    background-color: #f0f0f0;
    cursor: pointer;
}
.course.giallo {
    background-color: #fff176; /* Giallo più evidente */
}

.course.verde {
    background-color: #a5d6a7; /* Verde tipo Excel */
}

.course.giallo:hover {
    background-color: #ffee58; /* Giallo più chiaro al passaggio */
}

.course.verde:hover {
    background-color: #81c784; /* Verde Excel più scuro al passaggio */
}
.locations {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}
.titolo-header {
    font-size: 2em;
    font-weight: 800;
    color: #ffffff;
}
.titolo-header {
    font-size: 1.8em;
    font-weight: 800;
    color: #ffffff;
}

/* Responsive: riduci il titolo nei piccoli schermi */
@media (max-width: 600px) {
    .titolo-header {
        font-size: 1.2em;
        text-align: center;
        display: block;
        line-height: 1.4;
    }
}
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        align-items: flex-start;
    }

    nav > div:first-child {
        flex-direction: column;
        align-items: center;
    }

    nav img.logo {
        height: 60px;
        margin-bottom: 10px;
    }

    .titolo-header {
        font-size: 1.4em;
        text-align: center;
    }

    nav > div:last-child {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin-top: 10px;
    }

    nav a {
        margin: 8px 0;
    }

    .hero, .section {
        padding: 40px 10px;
    }

    .slideshow-placeholder {
        height: 180px;
        font-size: 1.2em;
    }

    .courses {
        grid-template-columns: 1fr;
    }

    .locations {
        flex-direction: column;
        gap: 10px;
    }

    form {
        padding: 15px;
    }

    input, textarea {
        font-size: 1em;
    }

    button {
        width: 100%;
        padding: 12px;
        font-size: 1.1em;
    }

    footer {
        font-size: 0.9em;
        padding: 10px;
    }
}
