/**
 * Widget: block-html|single
 * Blocco con titolo, testo e immagine a lato
 */

/* -----------------------------------------------------------------------
   Layout principale
----------------------------------------------------------------------- */
.block-html-single {
    background-color: var(--website-primary);
    padding: var(--website-padding-top-bottom) 0;
}

.block-html-single > .container {
    max-width: var(--website-container-max-width);
    display: flex;
    justify-content: center;
}

.block-html-single .blockhtml-card {
    display: flex;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    max-width: var(--website-box-max-width);
    width: 100%;
    min-height: 428px;
}

/* -----------------------------------------------------------------------
   Colonna testo
----------------------------------------------------------------------- */
.block-html-single .blockhtml-text {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 2rem;
}

.block-html-single .blockhtml-title {
    font-size: 2.625rem;
    font-weight: 500;
    line-height: 1.1;
    color: #3D3D3D;
    margin: 0;
    max-width: 300px;
}

.block-html-single .blockhtml-title-emphasis {
    color: var(--website-accent);
    font-style: italic;
}

.block-html-single .blockhtml-content {
    color: var(--website-secondary);
    font-weight: 500;
    line-height: 1.5;
}

.block-html-single .blockhtml-content p {
    margin: 0;
}

/* -----------------------------------------------------------------------
   Colonna immagine
----------------------------------------------------------------------- */
.block-html-single .blockhtml-image {
    flex: 1;
    position: relative;
    overflow: hidden;
    min-height: 428px;
}

.block-html-single .blockhtml-image picture,
.block-html-single .blockhtml-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.block-html-single .blockhtml-placeholder {
    position: absolute;
    inset: 0;
    background: #1a1a1a;
}

/* -----------------------------------------------------------------------
   Responsive
----------------------------------------------------------------------- */
@media (max-width: 768px) {
    .block-html-single {
        padding: var(--website-padding-top-bottom-mobile) 0;
    }

    .block-html-single .blockhtml-card {
        flex-direction: column;
        min-height: auto;
    }

    .block-html-single .blockhtml-text {
        padding: 1.5rem;
    }

    .block-html-single .blockhtml-title {
        font-size: 2rem;
        max-width: none;
    }

    .block-html-single .blockhtml-image {
        min-height: 280px;
    }
}
