/* ===============================
   C.E.S.I - La nostra missione
   =============================== */

.cesi-mn,
.cesi-mn * { box-sizing: border-box; }

.cesi-mn {
    font-family: Arial, Helvetica, sans-serif;
    background: #ffffff;
    padding: 60px 20px 70px;
}

/* ---------- HEAD ---------- */
.cesi-mn__head {
    max-width: 1200px;
    margin: 0 auto 34px;
    text-align: center;
}

.cesi-mn__title {
    margin: 0 0 8px;
    font-size: 1.9rem;
    font-weight: 800;
    color: #0d0d0d;
    letter-spacing: .3px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.cesi-mn__title i {
    color: #3ab2f3;
}

.cesi-mn__subtitle {
    margin: 0;
    color: #5c6470;
    font-size: 1rem;
}

/* ---------- GRIGLIA 4 COLONNE ---------- */
.cesi-mn__grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

/* ---------- CARD — con ombre profonde ---------- */
.cesi-mn-card {
    background: #ffffff;
    border: 1px solid rgba(58, 178, 243, 0.18);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-radius: 0;
    box-shadow:
        0 8px 24px rgba(58, 178, 243, .18),
        0 3px 8px rgba(0, 0, 0, .06),
        0 1px 2px rgba(0, 0, 0, .04);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.cesi-mn-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 24px 48px rgba(58, 178, 243, .30),
        0 10px 20px rgba(0, 0, 0, .10),
        0 2px 6px rgba(0, 0, 0, .06);
    border-color: rgba(58, 178, 243, .40);
}

/* Immagine in alto (proporzione 4:3) */
.cesi-mn-card__media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #eef2f6;
}

.cesi-mn-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}

.cesi-mn-card:hover .cesi-mn-card__media img {
    transform: scale(1.05);
}

.cesi-mn-card__noimg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b8c4cf;
    font-size: 2rem;
    background: #eef2f6;
}

/* Body */
.cesi-mn-card__body {
    padding: 18px 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.cesi-mn-card__title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #0d0d0d;
    letter-spacing: .2px;
    line-height: 1.3;
}

.cesi-mn-card__desc {
    margin: 0;
    font-size: .9rem;
    line-height: 1.55;
    color: #5c6470;
}
/* =========================================================
   HEADER SEZIONE — testo + bottone "Scopri di più"
   ========================================================= */
.cesi-mn__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.cesi-mn__head-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

/* Bottone "Scopri di più" */
.cesi-mn__vedi-tutti {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #3ab2f3;
    color: #fff;
    font-size: .88rem;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid #3ab2f3;
    border-radius: 0;
    white-space: nowrap;
    transition: background .18s ease, color .18s ease,
                transform .18s ease, box-shadow .18s ease;
    box-shadow: 0 4px 12px rgba(58, 178, 243, .25);
}

.cesi-mn__vedi-tutti:hover {
    background: #1a8fcc;
    border-color: #1a8fcc;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(58, 178, 243, .35);
}

.cesi-mn__vedi-tutti i {
    font-size: .82rem;
    transition: transform .18s ease;
}

.cesi-mn__vedi-tutti:hover i {
    transform: translateX(3px);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 700px) {
    .cesi-mn__head {
        align-items: stretch;
        margin-bottom: 18px;
    }

    .cesi-mn__vedi-tutti {
        justify-content: center;
        width: 100%;
        height: 46px;
        font-size: .92rem;
        padding: 0 18px;
    }
}
/* ---------- RESPONSIVE ---------- */
@media (max-width: 1000px) {
    .cesi-mn__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}

@media (max-width: 560px) {
    .cesi-mn {
        padding: 40px 14px 50px;
    }

    .cesi-mn__title {
        font-size: 1.45rem;
        gap: 8px;
    }

    .cesi-mn__subtitle {
        font-size: .9rem;
    }

    .cesi-mn__grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}