/**
 * Widget: block-html|hsemanager-v3
 * Intestazione + elenco numerato (01., 02., ...) dai figli.
 */

.block-html-hsemanager-v3.bhhm3 {
    padding: var(--website-padding-top-bottom) 0;
}

.block-html-hsemanager-v3.bhhm3 .container-70p {
    border-radius: 16px;
    background: #ffffff;
}

main#primary.bkgWhite .block-html-hsemanager-v3.bhhm3 .container-70p{
    padding: 2rem;
}

    /* Colore sfondo (backend) */
.block-html-hsemanager-v3.bhhm3--bg-white { background-color: #fff; }
.block-html-hsemanager-v3.bhhm3--bg-azure { background-color: var(--icotea-bkg-uni); }


    /* Intestazione */
    .block-html-hsemanager-v3 .bhhm3-head { margin: 0 0 32px; }
    .block-html-hsemanager-v3 .bhhm3-head--center { text-align: center; }
    .block-html-hsemanager-v3 .bhhm3-head--left   { text-align: left; }

    .block-html-hsemanager-v3 .bhhm3-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-hsemanager-v3 .bhhm3-subtitle {
        margin: 0 0 8px;
        color: #62748E;
        font-family: var(--icotea-font-body);
        font-size: 1rem;
        line-height: 1.5;
    }
    .block-html-hsemanager-v3 .bhhm3-content {
        margin-top: 8px;
        color: #62748E;
        font-family: var(--icotea-font-body);
        font-size: 1rem;
        line-height: 1.625;
    }
    .block-html-hsemanager-v3 .bhhm3-content :last-child { margin-bottom: 0; }

    /* Elenco numerato */
    .block-html-hsemanager-v3 .bhhm3-list {
        list-style: none;
        margin: 0;
        padding: 0;
        border-top: 1px solid #E2E8F0;
    }

    .block-html-hsemanager-v3 .bhhm3-item {
        display: grid;
        grid-template-columns: 28px minmax(0, 1fr);
        gap: 20px;
        padding: 24px 0;
        border-bottom: 1px solid #E2E8F0;
    }

    .block-html-hsemanager-v3 .bhhm3-num {
        padding-top: 6px;
        color: #90A1B9;
        font-family: var(--icotea-font-heading);
        font-size: 1rem;
        line-height: 1.333;    /* 16px */
        font-weight: 400;
    }

    .block-html-hsemanager-v3 .bhhm3-item-body {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .block-html-hsemanager-v3 .bhhm3-item-title {
        margin: 0;
        color: #0F172B;
        font-family: var(--icotea-font-heading);
        font-size: 1.25rem;    /* 20px */
        line-height: 1.4;      /* 28px */
        font-weight: 600;
    }

    .block-html-hsemanager-v3 .bhhm3-item-text {
        color: #62748E;
        font-family: var(--icotea-font-body);
        font-size: 1rem;
        line-height: 1.625;    /* ~22.75px */
    }
    .block-html-hsemanager-v3 .bhhm3-item-text :last-child { margin-bottom: 0; }

    /* Elenchi puntati nel contenuto (dot #696996) */
    .block-html-hsemanager-v3 .bhhm3-item-text ul {
        list-style: none;
        margin: 4px 0 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 6px;
    }
    .block-html-hsemanager-v3 .bhhm3-item-text li {
        position: relative;
        padding-left: 16px;
        color: #45556C;
    }
    .block-html-hsemanager-v3 .bhhm3-item-text li::before {
        content: "";
        position: absolute;
        left: 0;
        top: .55em;
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: #696996;
    }

    /* Desktop: contenuto al 70% (a sinistra), 30% libero a destra per l'indice */
    @media (min-width: 1200px) {
        .block-html-hsemanager-v3 .bhhm3-head,
        .block-html-hsemanager-v3 .bhhm3-list {
            /* width: 70%; */
            margin-right: auto;
        }
        .block-html-hsemanager-v3 .bhhm3-head--center { text-align: left; }
    }

    @media (max-width: 767px) {
        .block-html-hsemanager-v3.bhhm3 { padding: var(--website-padding-top-bottom-mini) 0; }
        .block-html-hsemanager-v3 .bhhm3-title { font-size: 1.75rem; line-height: 1.15; }
    }

    /* Item con azioni: testo a sinistra, bottoni a destra */
    .block-html-hsemanager-v3 .bhhm3-item-body--with-actions {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 24px;
    }
    .block-html-hsemanager-v3 .bhhm3-item-body--with-actions .bhhm3-item-main {
        display: flex;
        flex-direction: column;
        gap: 12px;
        min-width: 0;
    }
    .block-html-hsemanager-v3 .bhhm3-item-actions {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end;
        align-items: center;
        gap: 8px;
        flex: 0 0 auto;
    }

    /* Bottoni link/link2 (grafica da Figma) */
    .block-html-hsemanager-v3 .bhhm3-btn {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 8px 12px;
        border-radius: 6px;
        border: 1px solid #696996;
        font-family: var(--icotea-font-body), "DM Sans", sans-serif;
        font-size: 0.875rem;
        line-height: 1rem;
        font-weight: 500;
        text-decoration: none;
        white-space: nowrap;
        transition: background-color .2s ease, color .2s ease;
    }
    .block-html-hsemanager-v3 .bhhm3-btn-ico { flex: 0 0 auto; }

    .block-html-hsemanager-v3 .bhhm3-btn--outline {
        background: transparent;
        color: #696996;
    }
    .block-html-hsemanager-v3 .bhhm3-btn--outline:hover,
    .block-html-hsemanager-v3 .bhhm3-btn--outline:focus-visible {
        background: #696996;
        color: #fff;
    }
    .block-html-hsemanager-v3 .bhhm3-btn--filled {
        background: #696996;
        color: #fff;
    }
    .block-html-hsemanager-v3 .bhhm3-btn--filled:hover,
    .block-html-hsemanager-v3 .bhhm3-btn--filled:focus-visible {
        background: #55557a;
    }

    /* Su schermi stretti i bottoni vanno sotto il testo */
    @media (max-width: 767px) {
        .block-html-hsemanager-v3 .bhhm3-item-body--with-actions {
            flex-direction: column;
            align-items: stretch;
        }
        .block-html-hsemanager-v3 .bhhm3-item-actions { justify-content: flex-start; }
    }
