/* SEZIONE CORSI */
.corsi {
    padding: 80px 10%;
    text-align: center;
}

.corsi h2 {
    font-size: 36px;
    margin-bottom: 30px;
}

/* GRIGLIA */
.cards {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

/* CARD */
.card {
    background: #ffffffd0;
    border-radius: 12px;
    transition: 0.3s;
    border: 2px solid transparent;
    display: block;
    text-decoration: none;
    color: inherit;
    padding-bottom: 20px;
}

/* SOLO gli elementi della card, non tutto */
.card h3,
.card p {
    text-decoration: none;
    color: inherit;
}

/* IMMAGINI — proporzioni originali */
.card img {
    width: 70%;
    height: 85%;
    object-fit: cover;
    border-radius: 12px;
}

.card h3 {
    margin-top: 15px;
    font-size: 24px;
}

.card p {
    margin-top: 5px;
    color: #555;
    font-size: 16px;
}

.card:hover {
    transform: translateY(-5px);
    border-color: #97CA41;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    cursor: pointer;
}

.iscrizioni {
    padding: 60px 10%;
    text-align: center;
}

.iscrizioni h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.iscrizioni p {
    font-size: 18px;
    margin-bottom: 25px;
    line-height: 1.6;
}

.btn-iscrizione {
    display: inline-block;
    padding: 14px 32px;
    background: #97CA41;
    color: white;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.3s;
}

.btn-iscrizione:hover {
    background: #7fb336;
}

/* RESPONSIVE */

/* TABLET */
@media (max-width: 1024px) {
    .cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

/* MOBILE */
@media (max-width: 768px) {
    .cards {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .card img {
        width: 70%;
        height: auto;
    }

    .card h3 {
        font-size: 20px;
    }

    .card p {
        font-size: 15px;
    }
}

/* SMALL MOBILE */
@media (max-width: 480px) {
    .card img {
        width: 80%;
    }
}

/* FIX LOGO HEADER */
.logo-header img {
    height: 60px !important;
}

@media (max-width: 768px) {
    .logo-header img {
        height: 50px !important;
    }
}

