/* RESET BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* BODY */
body {
    font-family: 'Montserrat', sans-serif;
    background-color: #000;
    color: #fff;
    line-height: 1.6;
}

/* COLORI */
:root {
    --rosso-saturo: #c51414;
}

/* NAVBAR */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background-color: #111;
    flex-wrap: wrap;
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    color: #fff;
    font-weight: 700;
    letter-spacing: 2px;
}

.nav {
    display: flex;
    flex-wrap: wrap;
}

.nav a {
    color: #fff;
    text-decoration: none;
    margin-left: 25px;
    font-weight: 600;
    font-family: 'Orbitron', sans-serif;
    transition: color 0.3s ease;
}

.nav a:hover,
.nav a.active {
    color: var(--rosso-saturo);
}

/* HERO */
.hero {
    display: flex;
    width: 100%;
    height: 650px;
}

.hero-left,
.hero-right {
    width: 50%;
    height: 100%;
}

.hero-left {
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
}

.hero-text {
    text-align: center;
    font-family: 'Orbitron', sans-serif;
}

.hero-text h1 {
    font-size: 3rem;
    color: var(--rosso-saturo);
    margin-bottom: 30px;
    line-height: 1.2;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    background-color: var(--rosso-saturo);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 6px;
    transition: background 0.3s;
    font-family: 'Orbitron', sans-serif;
}

.btn:hover {
    background-color: #a31010;
}

.hero-right {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-right img {
    height: 100%;
    width: auto;
    display: block;
    border-radius: 10px;
}

/* CHI SIAMO */
.chi-siamo {
    padding: 70px 20px;
    text-align: center;
}

.chi-siamo h2 {
    font-family: 'Orbitron', sans-serif;
    color: var(--rosso-saturo);
    margin-bottom: 25px;
}

.chi-siamo p {
    max-width: 900px;
    margin: 0 auto;
    color: #fff;
    font-size: 1.2rem;
}

/* SERVIZI */
.servizi {
    padding: 70px 20px;
    background-color: #111;
    text-align: center;
}

.servizi h2 {
    color: var(--rosso-saturo);
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 40px;
}

.servizi-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.servizio {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.servizio img {
    width: 100%;
    height: 200px; /* altezza uniforme desktop */
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 10px;
}

.servizio h3 {
    margin-top: 10px;
    color: #fff;
    font-weight: 600;
    font-family: 'Orbitron', sans-serif;
    text-align: center;
}

/* CORSI */
.corsi {
    padding: 60px 20px;
    background-color: #000;
}

.corsi h2 {
    text-align: center;
    font-family: 'Orbitron', sans-serif;
    color: var(--rosso-saturo);
    margin-bottom: 30px;
}

.corsi-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 0 auto;
}

.corsi-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 10px;
    object-fit: cover;
}

.corsi-text {
    max-width: 500px;
}

.corsi-titoli h3 {
    font-family: 'Orbitron', sans-serif;
    color: #fff;
    margin-bottom: 8px;
    text-transform: uppercase;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.corsi-text p {
    color: #fff;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* CONTATTI */
.contatti {
    padding: 40px 20px;
    background-color: #111;
    text-align: center;
}

.contatti h2 {
    font-family: 'Orbitron', sans-serif;
    color: var(--rosso-saturo);
    margin-bottom: 20px;
}

.contatti p {
    color: #fff;
    margin: 8px 0;
}

/* MEDIA QUERY */
@media screen and (max-width: 1024px) {
    .hero {
        flex-direction: column;
        height: auto;
    }

    .hero-left,
    .hero-right {
        width: 100%;
        height: auto;
    }

    .hero-text {
        padding: 40px 20px;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .hero-right img {
        width: 100%;
        height: auto;
    }

    .corsi-container {
        flex-direction: column;
        align-items: center;
    }

    .corsi-text {
        text-align: center;
    }
}

/* MOBILE */
@media screen and (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: center;
        padding: 15px 20px;
    }

    .nav {
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin-top: 15px;
    }

    .nav a {
        margin: 10px 0;
        font-size: 1.1rem;
    }

    /* Servizi: immagini uguali su smartphone */
    .servizi-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .servizio img {
        height: 180px; /* uniforme mobile */
        width: 100%;
    }

    .hero-text h1 {
        font-size: 2rem;
    }
}
