/**
 * Widget: course|category-banner — card testo (bianca) + immagine con overlay.
 */

.block-html-simple.ccb {
    padding: var(--website-padding-top-bottom) 0;
}

.block-html-simple .ccb-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: stretch;
}

/* Pannello bianco (testo) */
.block-html-simple .ccb-panel {
    background: #fff;
    border-radius: 22px;
    padding: 24px 26px;
    box-sizing: border-box;
    min-width: 0;
}
.block-html-simple .ccb-title {
    margin: 0 0 24px;
    color: var(--icotea-dark-blue);
    font-family: var(--icotea-font-heading);
    font-size: 3rem;       /* 32px */
    line-height: 1.2;     /* 40px */
    font-weight: 700;
}


.block-html-simple .ccb-content {
    color: #000;
    font-family: var(--icotea-font-body);
    font-size: 1.125rem;   /* 18px */
    line-height: 1.556;    /* 28px */
}
.block-html-simple .ccb-content :last-child { margin-bottom: 0; }

/* Immagine con overlay scuro */
.block-html-simple .ccb-media {
    position: relative;
    min-height: 320px;
    border-radius: 16px;
    overflow: hidden;
}
.block-html-simple .ccb-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.block-html-simple .ccb-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 43, 86, 0.20);
    pointer-events: none;
}

@media (max-width: 991px) {
    .block-html-simple .ccb-grid { grid-template-columns: 1fr; }
    .block-html-simple .ccb-media { min-height: 240px; }
}
@media (max-width: 767px) {
    .block-html-simple.ccb { padding: var(--website-padding-top-bottom-mini) 0; }
    .block-html-simple .ccb-title { font-size: 1.75rem; line-height: 1.2; }
}
