/**
 * Widget: block-html|four-card
 * Intestazione + card (icona/titolo/divisore/sottotitolo/testo), 4 per riga.
 */

.block-html-four-card.bhfc {
    padding: var(--website-padding-top-bottom) 0;
}

/* Intestazione */
.block-html-four-card .bhfc-head { margin: 0 0 64px; }
.block-html-four-card .bhfc-head--center { text-align: center; }
.block-html-four-card .bhfc-head--left   { text-align: left; }

.block-html-four-card .bhfc-title {
    margin: 0;
    color: var(--icotea-second-title);
    font-family: var(--icotea-font-heading);
    font-size: 2.625rem;   /* 42px */
    line-height: 1.143;
    font-weight: 700;
}
.block-html-four-card .bhfc-subtitle {
    margin: 0 0 8px;
    color: #62748E;
    font-family: var(--icotea-font-body);
    font-size: 1rem;
    line-height: 1.5;
}
.block-html-four-card .bhfc-content {
    margin-top: 8px;
    color: #62748E;
    font-family: var(--icotea-font-body);
    font-size: 1rem;
    line-height: 1.625;
}
.block-html-four-card .bhfc-content :last-child { margin-bottom: 0; }

/* Griglia 4/riga, card tutte uguali */
.block-html-four-card .bhfc-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

/* Card */
.block-html-four-card .bhfc-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
    min-width: 0;
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    box-sizing: border-box;
}

/* Box icona */
.block-html-four-card .bhfc-card-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex: none;
    margin-bottom: 24px;
    background: #EEF1F8;
    border-radius: 12px;
}
.block-html-four-card .bhfc-card-ico img {
    display: block;
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.block-html-four-card .bhfc-card-title {
    margin: 0 0 16px;
    color: #1B3F7B;
    font-family: var(--icotea-font-body);
    font-size: 1rem;
    line-height: 1.375;
    font-weight: 700;
    min-height: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.block-html-four-card .bhfc-card-divider {
    display: block;
    width: 100%;
    height: 1px;
    margin-bottom: 16px;
    background: #E5E7EB;
}

.block-html-four-card .bhfc-card-subtitle {
    margin: 0 0 12px;
    color: var(--icotea-brand-blue);
    font-family: var(--icotea-font-body);
    font-size: .75rem;     /* 12px */
    line-height: 1.333;
    font-weight: 600;
}

.block-html-four-card .bhfc-card-text {
    color: #6A7282;
    font-family: var(--icotea-font-body);
    font-size: .875rem;    /* 14px */
    line-height: 1.625;    /* ~22.75px */
}
.block-html-four-card .bhfc-card-text :last-child { margin-bottom: 0; }

@media (max-width: 991px) {
    .block-html-four-card .bhfc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .block-html-four-card .bhfc-title { font-size: 2rem; line-height: 1.15; }
}
@media (max-width: 575px) {
    .block-html-four-card.bhfc { padding: var(--website-padding-top-bottom-mini) 0; }
    .block-html-four-card .bhfc-grid { grid-template-columns: 1fr; }
}
