/**
 * Widget: block-html|four-cards
 * Sezione "I nostri valori": titolo (+ content opzionale) e 4 card scure
 * (immagine, titolo, testo) prese dai figli del Blocco HTML selezionato.
 */

.block-html-four-cards {
    display: block;
    background: var(--website-color-light, #FFFAF0);
    padding: clamp(56px, 9vw, 112px) 0;
}
.block-html-four-cards .block-html-four-cards-inner {
    max-width: var(--website-container-max-width, 1440px);
    margin: 0 auto;
    padding: 0 28px;
}

.block-html-four-cards .block-html-four-cards-title {
    margin: 0 0 clamp(28px, 4vw, 56px);
    color: var(--website-color-txt-title, #3D3D3D);
    text-transform: uppercase;
    font-weight: 400;
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    line-height: 1.1;
}
.block-html-four-cards .block-html-four-cards-intro {
    max-width: 760px;
    margin: -16px 0 clamp(28px, 4vw, 48px);
    color: var(--website-color-txt-body, #4D5359);
    font-size: 1.05rem;
    line-height: 1.6;
}

.block-html-four-cards .block-html-four-cards-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(12px, 1.5vw, 16px);
    align-items: stretch;
}

.block-html-four-cards .block-html-four-cards-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 24px;
    background: var(--website-color-dark, #525252);
    border-radius: 10px;
}
.block-html-four-cards .block-html-four-cards-media {
    border-radius: 8px;
    overflow: hidden;
}
.block-html-four-cards .block-html-four-cards-media picture { display: block; }
.block-html-four-cards .block-html-four-cards-img {
    display: block;
    width: 100%;
    aspect-ratio: 288 / 227;
    object-fit: cover;
}
.block-html-four-cards .block-html-four-cards-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.block-html-four-cards .block-html-four-cards-card-title {
    margin: 0;
    color: var(--website-color-white, #fff);
    text-transform: uppercase;
    font-weight: 400;
    font-size: 1.6rem;
    line-height: 1.15;
}
.block-html-four-cards .block-html-four-cards-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.5;
}
.block-html-four-cards .block-html-four-cards-text p { margin: 0 0 0.6rem; }
.block-html-four-cards .block-html-four-cards-text p:last-child { margin-bottom: 0; }

@media (max-width: 991.98px) {
    .block-html-four-cards .block-html-four-cards-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
    .block-html-four-cards .block-html-four-cards-grid{ grid-template-columns: 1fr; }
}
