.hlx-mosaico,
.hlx-mosaico * {
    box-sizing: border-box;
}

.hlx-mosaico {
    --hlx-brown: #ad5714;
    --hlx-brown-dark: #98490e;
    width: 100%;
}

/* Grade: duas colunas quadradas e uma coluna larga. */
.hlx-mosaico-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.65fr);
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: clamp(22px, 2.3vw, 30px) clamp(20px, 2.1vw, 28px);
    width: 100%;
    max-width: 1100px;
    aspect-ratio: 1.78 / 1;
    margin: 0 auto;
}

.hlx-mosaico-photo,
.hlx-mosaico-featured,
.hlx-mosaico-card {
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    border-radius: 16px;
}

/* Posições idênticas ao modelo enviado. */
.hlx-photo-1 {
    grid-column: 1;
    grid-row: 1;
}

.hlx-photo-2 {
    grid-column: 1;
    grid-row: 2;
}

.hlx-photo-3 {
    grid-column: 2;
    grid-row: 1;
}

.hlx-photo-4 {
    grid-column: 2;
    grid-row: 2;
}

.hlx-photo-5 {
    grid-column: 3;
    grid-row: 1;
}

.hlx-mosaico-card {
    grid-column: 3;
    grid-row: 2;
}

/* Todas as imagens ocupam integralmente seus respectivos quadros. */
.hlx-mosaico-photo,
.hlx-mosaico-featured {
    position: relative;
    background: #e9e5de;
}

.hlx-mosaico-photo img,
.hlx-mosaico-featured img,
.hlx-mosaico-photo picture,
.hlx-mosaico-featured picture {
    display: block;
    width: 100%;
    height: 100%;
}

.hlx-mosaico-photo img,
.hlx-mosaico-featured img {
    object-fit: cover;
    object-position: center;
    transition: transform .6s ease, filter .6s ease;
}

.hlx-mosaico-photo:hover img,
.hlx-mosaico-featured:hover img {
    transform: scale(1.035);
    filter: saturate(1.04) contrast(1.02);
}

/* Card inferior direito. */
.hlx-mosaico-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: clamp(7px, .8vw, 11px);
    padding: clamp(28px, 3.2vw, 43px);
    background: var(--hlx-brown);
    transition: background-color .35s ease, transform .35s ease, box-shadow .35s ease;
}

.hlx-mosaico-card:hover {
    background: var(--hlx-brown-dark);
    transform: translateY(-3px);
    box-shadow: 0 18px 38px rgba(92, 42, 7, .16);
}

.hlx-mosaico-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #f5e2ca;
    font-family: "Inter", Arial, sans-serif;
    font-size: clamp(.56rem, .62vw, .67rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.hlx-mosaico-eyebrow::before {
    content: "";
    display: block;
    width: 27px;
    height: 1px;
    flex: 0 0 27px;
    background: rgba(255, 255, 255, .75);
}

.hlx-mosaico-card h3 {
    margin: 0;
    color: #fff;
    font-family: "Manrope", "Inter", Arial, sans-serif;
    font-size: clamp(2rem, 3.25vw, 3.1rem);
    font-weight: 800;
    line-height: .98;
    letter-spacing: -.045em;
}

.hlx-mosaico-card p {
    max-width: 390px;
    margin: 0;
    color: #f5e2ca;
    font-family: "Inter", Arial, sans-serif;
    font-size: clamp(.78rem, .9vw, .91rem);
    font-weight: 400;
    line-height: 1.5;
}

.hlx-mosaico-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: #fff;
    background: #079036;
    font: 800 clamp(1rem, 2vw, 1.65rem)/1.2 "Inter", Arial, sans-serif;
    letter-spacing: -.02em;
    text-align: center;
    text-transform: uppercase;
}

/* Tablet mantém o mesmo desenho, apenas mais compacto. */
@media (max-width: 1024px) {
    .hlx-mosaico-grid {
        gap: 22px;
    }

    .hlx-mosaico-card {
        padding: 25px;
    }

    .hlx-mosaico-card h3 {
        font-size: clamp(1.75rem, 3.6vw, 2.5rem);
    }
}

/* Celular: quatro fotos em 2x2; foto larga e card abaixo. */
@media (max-width: 767px) {
    .hlx-mosaico-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: none;
        grid-auto-rows: auto;
        gap: 16px;
        aspect-ratio: auto;
    }

    .hlx-photo-1,
    .hlx-photo-2,
    .hlx-photo-3,
    .hlx-photo-4,
    .hlx-photo-5,
    .hlx-mosaico-card {
        grid-column: auto;
        grid-row: auto;
    }

    .hlx-mosaico-photo {
        aspect-ratio: 1 / 1;
    }

    .hlx-photo-5,
    .hlx-mosaico-card {
        grid-column: 1 / -1;
    }

    .hlx-photo-5 {
        aspect-ratio: 16 / 10;
    }

    .hlx-mosaico-card {
        min-height: 260px;
        padding: 32px 26px;
    }

    .hlx-mosaico-card h3 {
        font-size: clamp(2.15rem, 11vw, 2.8rem);
    }

    .hlx-mosaico-card p {
        font-size: .9rem;
    }
}

@media (max-width: 420px) {
    .hlx-mosaico-grid {
        gap: 12px;
    }

    .hlx-mosaico-photo,
    .hlx-mosaico-featured,
    .hlx-mosaico-card {
        border-radius: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hlx-mosaico-photo img,
    .hlx-mosaico-featured img,
    .hlx-mosaico-card {
        transition: none;
    }
}
