/**
 * Widget: block-html|2cols
 * Titolo + card scure su 2 colonne (righe della gallery del Blocco HTML).
 * Card: arco decorativo + immagine + titolo + sotto-titolo (pin) + testo.
 * Tutte le regole scopate sotto .block-html-2cols.
 */

.block-html-2cols {
    display: block;
    background: var(--website-color-light, #FFFAF0);
    padding: clamp(40px, 7vw, 96px) 0;
}
.block-html-2cols .block-html-2cols-inner {
    max-width: var(--website-container-max-width, 1440px);
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    flex-direction: column;
    gap: clamp(32px, 5vw, 56px);
}

/* Titolo / intro */
.block-html-2cols .block-html-2cols-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.05;
}
.block-html-2cols .block-html-2cols-intro {
    max-width: 720px;
    color: var(--website-color-txt-body, #4D5359);
    font-size: 1rem;
    line-height: 1.6;
}

/* Griglia 2 colonne */
.block-html-2cols .block-html-2cols-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 12px;
}

/* Card scura */
.block-html-2cols .block-html-2cols-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 24px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--website-color-dark, #4E4B4A);
    color: var(--website-color-white, #fff);
}
/* Arco decorativo */
.block-html-2cols .block-html-2cols-deco {
    position: absolute;
    z-index: 0;
    width: 120%;
    aspect-ratio: 1 / 1;
    left: -7%;
    top: -18%;
    border: 0.5px solid rgba(255, 255, 255, 0.20);
    border-radius: 50%;
    pointer-events: none;
}

/* Immagine */
.block-html-2cols .block-html-2cols-media {
    position: relative;
    z-index: 1;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(12, 10, 9, 0.20);
    aspect-ratio: 636 / 384;
}
.block-html-2cols .block-html-2cols-media picture { display: block; width: 100%; height: 100%; }
.block-html-2cols .block-html-2cols-img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Testo */
.block-html-2cols .block-html-2cols-body {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.block-html-2cols .block-html-2cols-card-title {
    margin: 0;
    color: var(--website-color-white, #fff);
    text-transform: uppercase;
    font-weight: 400;
    font-size: clamp(1.4rem, 2vw, 1.875rem);
    line-height: 1.1;
}
.block-html-2cols .block-html-2cols-card-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--website-color-white, #fff);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    line-height: 1.3;
}
.block-html-2cols .block-html-2cols-pin { flex: none; }
.block-html-2cols .block-html-2cols-card-text {
    margin: 0;
    color: rgba(255, 255, 255, 0.80);
    font-size: 0.95rem;
    line-height: 1.45;
}

@media (max-width: 767.98px) {
    .block-html-2cols .block-html-2cols-grid { grid-template-columns: 1fr; }
}
