/**
 * Widget: block-html|one-photo-two-cards — immagine sx + due card dx.
 * L'altezza della colonna destra determina l'altezza dell'immagine.
 */

.block-html-one-photo-two-cards.optc {
    padding: var(--website-padding-top-bottom) 0;
}

.block-html-one-photo-two-cards .optc-inner {
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
}

.block-html-one-photo-two-cards .optc-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
    align-items: stretch;
}

/* Immagine: altezza comandata dalla colonna card (destra) */
.block-html-one-photo-two-cards .optc-media {
    position: relative;
    height: 100%;
    min-height: 0;
    border-radius: 20px;
    overflow: hidden;
    background: var(--icotea-jolly-2, #F4F6F9);
}
.block-html-one-photo-two-cards .optc-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Colonna card */
.block-html-one-photo-two-cards .optc-cards {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
}
.block-html-one-photo-two-cards .optc-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
}
.block-html-one-photo-two-cards .optc-card-title {
    margin: 0 0 24px;
    color: var(--icotea-dark-blue, #002B56);
    font-family: var(--icotea-font-heading);
    font-size: 3rem;      /* 48px */
    line-height: 1;
    font-weight: 700;
}
.block-html-one-photo-two-cards .optc-card-content {
    color: var(--icotea-dark-blue, #002B56);
    font-family: var(--icotea-font-body);
    font-size: 1.125rem;  /* 18px */
    line-height: 1.44;    /* 26px */
}
.block-html-one-photo-two-cards .optc-card-content :last-child {
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 991px) {
    .block-html-one-photo-two-cards .optc-row {
        grid-template-columns: 1fr;
    }
    .block-html-one-photo-two-cards .optc-media {
        position: relative;
        height: auto;
        aspect-ratio: 16 / 10;
    }
    .block-html-one-photo-two-cards .optc-media img {
        position: absolute;
        inset: 0;
    }
}
@media (max-width: 767px) {
    .block-html-one-photo-two-cards.optc {
        padding: var(--website-padding-top-bottom-mini) 0;
    }
    .block-html-one-photo-two-cards .optc-card {
        padding: 28px;
    }
    .block-html-one-photo-two-cards .optc-card-title {
        font-size: 2.25rem;
    }
}
