/* =========================================================
   C.E.S.I - Pagina Chi siamo (pubblica)
   File: /styles/chi_siamo.css
   ========================================================= */

/* =========================================================
   1) HERO
   ========================================================= */
.cesi-cs-hero {
    background: linear-gradient(135deg, #3ab2f3 0%, #1a8fcc 100%);
    color: #fff;
    padding: 44px 20px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cesi-cs-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255,255,255,.15) 0%, transparent 50%);
    pointer-events: none;
}

.cesi-cs-hero__inner {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cesi-cs-hero__title {
    margin: 0 0 8px;
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: .5px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
}

.cesi-cs-hero__title i {
    font-size: 1.5rem;
    opacity: .9;
}

.cesi-cs-hero__subtitle {
    margin: 0;
    font-size: .98rem;
    opacity: .95;
    font-weight: 400;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

/* =========================================================
   2) LAYOUT CONTENUTO
   ========================================================= */
.cesi-cs {
    max-width: 960px;
    margin: 0 auto;
    padding: 40px 24px 80px;
    background: #f6f8fb;
}

/* =========================================================
   3) CONTENUTO (HTML del WYSIWYG)
   ========================================================= */
.cesi-cs-contenuto {
    background: #fff;
    border: 1px solid rgba(58, 178, 243, .12);
    padding: 34px 40px;
    box-shadow:
        0 8px 24px rgba(58, 178, 243, .10),
        0 3px 8px rgba(0, 0, 0, .04);
    font-family: Arial, Helvetica, sans-serif;
    color: #2a2f37;
    line-height: 1.7;
    font-size: 1rem;
}

/* ---------- Titoli ---------- */
.cesi-cs-contenuto h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #0d0d0d;
    margin: 0 0 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(58, 178, 243, .25);
    line-height: 1.3;
}

.cesi-cs-contenuto h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0d0d0d;
    margin: 28px 0 12px;
    line-height: 1.3;
}

.cesi-cs-contenuto h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0d0d0d;
    margin: 22px 0 10px;
    line-height: 1.3;
}

.cesi-cs-contenuto h1:first-child,
.cesi-cs-contenuto h2:first-child,
.cesi-cs-contenuto h3:first-child {
    margin-top: 0;
}

/* ---------- Paragrafi ---------- */
.cesi-cs-contenuto p {
    margin: 0 0 14px;
    line-height: 1.75;
}
.cesi-cs-contenuto p:last-child {
    margin-bottom: 0;
}

/* ---------- Liste ---------- */
.cesi-cs-contenuto ul,
.cesi-cs-contenuto ol {
    margin: 0 0 16px;
    padding-left: 26px;
}

.cesi-cs-contenuto li {
    margin-bottom: 6px;
    line-height: 1.65;
    padding-left: 4px;
}

.cesi-cs-contenuto ul li::marker {
    color: #3ab2f3;
    font-size: 1.1em;
}

.cesi-cs-contenuto ol li::marker {
    color: #3ab2f3;
    font-weight: 700;
}

/* ---------- Grassetto / corsivo ---------- */
.cesi-cs-contenuto strong,
.cesi-cs-contenuto b {
    color: #0d0d0d;
    font-weight: 700;
}

.cesi-cs-contenuto em,
.cesi-cs-contenuto i {
    font-style: italic;
    color: #4a515b;
}

/* ---------- Link ---------- */
.cesi-cs-contenuto a {
    color: #1a8fcc;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color .15s ease;
}
.cesi-cs-contenuto a:hover {
    color: #0d6fa0;
}

/* ---------- Citazioni ---------- */
.cesi-cs-contenuto blockquote {
    margin: 18px 0;
    padding: 14px 20px;
    border-left: 4px solid #3ab2f3;
    background: rgba(58, 178, 243, .06);
    color: #4a515b;
    font-style: italic;
    font-size: .96rem;
    line-height: 1.6;
}

.cesi-cs-contenuto blockquote p:last-child {
    margin-bottom: 0;
}

/* ---------- Codice inline ---------- */
.cesi-cs-contenuto code {
    background: #f0f4f8;
    padding: 2px 6px;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: .88rem;
    color: #1a8fcc;
}

/* ---------- Immagini ---------- */
.cesi-cs-contenuto img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 16px 0;
}

/* =========================================================
   4) EMPTY STATE
   ========================================================= */
.cesi-cs-empty {
    background: #fff;
    border: 1px dashed rgba(58, 178, 243, .35);
    padding: 70px 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    box-shadow:
        0 8px 24px rgba(58, 178, 243, .10),
        0 3px 8px rgba(0, 0, 0, .04);
}

.cesi-cs-empty i {
    font-size: 3rem;
    color: #b8c4cf;
    margin-bottom: 6px;
}

.cesi-cs-empty h2 {
    margin: 0;
    font-size: 1.35rem;
    color: #0d0d0d;
    font-weight: 700;
}

.cesi-cs-empty p {
    margin: 0;
    color: #6c7684;
    font-size: .95rem;
    max-width: 460px;
    line-height: 1.55;
}

/* =========================================================
   5) RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
    .cesi-cs-hero {
        padding: 34px 18px 30px;
    }
    .cesi-cs-hero__title {
        font-size: 1.55rem;
        gap: 10px;
    }
    .cesi-cs-hero__title i { font-size: 1.3rem; }

    .cesi-cs {
        padding: 24px 16px 60px;
    }

    .cesi-cs-contenuto {
        padding: 24px 22px;
    }

    .cesi-cs-contenuto h1 { font-size: 1.5rem; }
    .cesi-cs-contenuto h2 { font-size: 1.2rem; }
    .cesi-cs-contenuto h3 { font-size: 1.05rem; }
}

@media (max-width: 560px) {
    .cesi-cs-hero__title { font-size: 1.35rem; }

    .cesi-cs-contenuto {
        padding: 20px 18px;
        font-size: .94rem;
    }

    .cesi-cs-contenuto h1 { font-size: 1.35rem; }
    .cesi-cs-contenuto h2 { font-size: 1.1rem; }
    .cesi-cs-contenuto h3 { font-size: .98rem; }

    .cesi-cs-contenuto ul,
    .cesi-cs-contenuto ol {
        padding-left: 22px;
    }
}