/**
 * Widget: block-html|tree-cards
 * Card scure con icona (badge), titolo grande e contenuto, dai figli del Blocco
 * HTML selezionato. Icona in alto, titolo+testo in basso (gap ampio).
 */

.block-html-tree-cards {
    display: block;
    background: var(--website-color-light, #FFFAF0);
    padding: clamp(40px, 6vw, 80px) 0;
}
.block-html-tree-cards .block-html-tree-cards-inner {
    max-width: var(--website-container-max-width, 1440px);
    margin: 0 auto;
    padding: 0 28px;
}
.block-html-tree-cards .block-html-tree-cards-head { margin-bottom: clamp(24px, 4vw, 48px); }
.block-html-tree-cards .block-html-tree-cards-title {
    margin: 0;
    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-tree-cards .block-html-tree-cards-intro {
    max-width: 760px;
    margin-top: 16px;
    color: var(--website-color-txt-body, #4D5359);
    font-size: 1.05rem;
    line-height: 1.6;
}

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

.block-html-tree-cards .block-html-tree-cards-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: clamp(48px, 8vw, 112px);
    min-height: 300px;
    padding: 24px;
    background: var(--website-color-dark, #4E4B4A);
    border-radius: 10px;
    color: var(--website-color-white, #fff);
}

/* Icona in badge tondo */
.block-html-tree-cards .block-html-tree-cards-icon {
    flex: none;
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}
.block-html-tree-cards .block-html-tree-cards-icon-img { width: 26px; height: 26px; object-fit: contain; display: block; }

.block-html-tree-cards .block-html-tree-cards-body { display: flex; flex-direction: column; gap: 14px; }
.block-html-tree-cards .block-html-tree-cards-card-title {
    margin: 0;
    color: var(--website-color-white, #fff);
    text-transform: uppercase;
    font-weight: 400;
    font-size: clamp(1.9rem, 3vw, 2.8rem);
    line-height: 1.05;
}
.block-html-tree-cards .block-html-tree-cards-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.5;
}
.block-html-tree-cards .block-html-tree-cards-text p { margin: 0 0 0.6rem; }
.block-html-tree-cards .block-html-tree-cards-text p:last-child { margin-bottom: 0; }

@media (max-width: 991.98px) {
    .block-html-tree-cards .block-html-tree-cards-grid{ grid-template-columns: 1fr; }
    .block-html-tree-cards .block-html-tree-cards-card{ min-height: 0; gap: 40px; }
}
