/**
 * Widget: block-html|homepage-v1 — card + statistiche animate + immagine.
 */

.block-html-homepage-v1.bhh1 {
    padding: var(--website-padding-top-bottom) 0;
}

.block-html-homepage-v1 .bhh1-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) 222px minmax(0, 1fr);
    gap: 16px;
    align-items: stretch;
}

/* Card contenuto */
.block-html-homepage-v1 .bhh1-card {
    background: #fff;
    border-radius: 24px;
    padding: 40px;
    min-width: 0;
}
.block-html-homepage-v1 .bhh1-title {
    margin: 0 0 12px;
    font-family: var(--icotea-font-heading);
    font-size: 2.625rem;   /* 42px */
    line-height: 1.15;
    font-weight: 700;
    color: var(--icotea-brand-blue);
}
.block-html-homepage-v1 .bhh1-content {
    font-family: var(--icotea-font-body);
    font-size: 1rem;
    line-height: 1.5;
    color: #314158;
}
.block-html-homepage-v1 .bhh1-content :last-child { margin-bottom: 0; }

/* Statistiche (2 box) */
.block-html-homepage-v1 .bhh1-stats {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.block-html-homepage-v1 .bhh1-stat {
    flex: 1 1 0;
    background: var(--icotea-jolly);   /* #D9E0E7 */
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 24px;
    text-align: center;
}
.block-html-homepage-v1 .bhh1-stat-num {
    font-family: var(--icotea-font-heading);
    font-size: 3.75rem;    /* 60px, sta nel box con +NN% */
    font-weight: 700;
    line-height: 1;
    color: var(--icotea-brand-blue);
    white-space: nowrap;
}
.block-html-homepage-v1 .bhh1-stat-text {
    font-family: var(--icotea-font-body);
    font-size: 1.0625rem;  /* 17px */
    line-height: 1.2;
    color: var(--icotea-brand-blue);
}

/* Immagine */
.block-html-homepage-v1 .bhh1-media {
    border-radius: 24px;
    overflow: hidden;
    min-height: 100%;
}
.block-html-homepage-v1 .bhh1-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* -----------------------------------------------------------------------
   Responsive
----------------------------------------------------------------------- */
@media (max-width: 991px) {
    .block-html-homepage-v1 .bhh1-grid {
        grid-template-columns: 1fr 1fr;
    }
    .block-html-homepage-v1 .bhh1-card { grid-column: 1 / -1; }
    .block-html-homepage-v1 .bhh1-stats { flex-direction: row; }
    .block-html-homepage-v1 .bhh1-stat { flex: 1 1 0; }
    .block-html-homepage-v1 .bhh1-media { min-height: 260px; }
}
@media (max-width: 575px) {
    .block-html-homepage-v1.bhh1 { padding: var(--website-padding-top-bottom-mini) 0; }
    .block-html-homepage-v1 .bhh1-grid { grid-template-columns: 1fr; }
    .block-html-homepage-v1 .bhh1-stats { flex-direction: column; }
    .block-html-homepage-v1 .bhh1-title { font-size: 1.875rem; }
    .block-html-homepage-v1 .bhh1-stat-num { font-size: 3.25rem; }
}
