
/* =========================================================
   HOME V2.3 SIMPLIFICADA
   Duas experiências principais:
   1. Acender uma vela
   2. Criar um memorial
   ========================================================= */

.home22-simple {
    --home-bg: #fbf8f2;
    --home-paper: #fffdf9;
    --home-ink: #211b17;
    --home-muted: #75695f;
    --home-gold: #b67817;
    --home-gold2: #d49b35;
    --home-gold-dark: #775019;
    --home-line: rgba(182, 120, 23, .22);

    background: var(--home-bg);
    color: var(--home-ink);
}

.home22-simple,
.home22-simple * {
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif !important;
}

/* HERO ===================================================== */

.home22-hero {
    position: relative;
    min-height: 650px;
    overflow: hidden;
    background: #efe8dc;
    border-bottom: 1px solid var(--home-line);
}

.home22-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(255, 253, 249, .99) 0%,
            rgba(255, 253, 249, .96) 26%,
            rgba(255, 253, 249, .72) 40%,
            rgba(255, 253, 249, .20) 60%,
            rgba(18, 13, 9, .28) 100%
        );
}

.home22-hero-inner {
    position: relative;
    z-index: 2;
    width: min(1320px, calc(100% - 48px));
    min-height: 650px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.home22-hero-copy {
    width: min(610px, 48%);
}

.home22-kicker {
    margin-bottom: 13px;
    color: var(--home-gold-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.home22-hero h1 {
    margin: 0 0 20px;
    color: #181411;
    font-size: clamp(58px, 6.3vw, 92px);
    line-height: .92;
    font-weight: 700;
    letter-spacing: -.045em;
}

.home22-hero h1 em {
    color: var(--home-gold-dark);
    font-style: italic;
    font-weight: 600;
}

.home22-hero p {
    max-width: 560px;
    margin: 0;
    color: #50463f;
    font-size: 19px;
    line-height: 1.6;
}

.home22-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.home22-btn {
    min-height: 52px;
    padding: 0 24px;
    border: 1px solid rgba(182, 120, 23, .38);
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    background: rgba(255,255,255,.88);
    color: #765019;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(71, 47, 22, .05);
}

.home22-btn.primary {
    border-color: transparent;
    color: #fff;
    background:
        linear-gradient(
            135deg,
            #ad7017,
            #cf9737
        );
    box-shadow:
        0 10px 24px
        rgba(145, 87, 18, .17);
}

.home22-btn:hover {
    transform: translateY(-1px);
}

.home22-micro {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    margin-top: 25px;
    color: #6f6257;
    font-size: 13px;
    font-weight: 600;
}

.home22-micro span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.home22-micro b {
    color: var(--home-gold);
    font-size: 18px;
}

/* DUAS EXPERIÊNCIAS ======================================== */

.home22-choice-section {
    width: min(1320px, calc(100% - 48px));
    margin: 0 auto;
    padding: 58px 0 52px;
}

.home22-choice-head {
    max-width: 760px;
    margin: 0 auto 28px;
    text-align: center;
}

.home22-choice-head span {
    color: var(--home-gold-dark);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.home22-choice-head h2 {
    margin: 8px 0 10px;
    color: #211b17;
    font-size: 38px;
    line-height: 1.1;
}

.home22-choice-head p {
    margin: 0;
    color: #776b61;
    font-size: 15px;
    line-height: 1.55;
}

.home22-choice-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.home22-choice-card {
    position: relative;
    min-height: 360px;
    overflow: hidden;
    border: 1px solid var(--home-line);
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 13px 34px rgba(69, 45, 21, .06);
}

.home22-choice-card::before {
    content: "";
    position: absolute;
    inset: 0;
}

.home22-choice-card.candle {
    background: #20160f;
}

.home22-choice-card.candle::before {
    background:
        linear-gradient(
            90deg,
            rgba(24, 16, 10, .82),
            rgba(24, 16, 10, .42) 70%,
            rgba(24, 16, 10, .16)
        );
}

.home22-choice-card.memorial {
    background: #fffaf1;
}

.home22-choice-card.memorial::before {
    background:
        linear-gradient(
            90deg,
            rgba(255, 253, 249, .96),
            rgba(255, 253, 249, .74) 62%,
            rgba(255, 253, 249, .28)
        );
}

.home22-choice-content {
    position: relative;
    z-index: 2;
    width: min(390px, 78%);
    min-height: 360px;
    padding: 38px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.home22-choice-card.candle .home22-choice-content {
    color: #fff;
}

.home22-choice-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 18px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.88);
    color: #8a5c18;
    font-size: 25px;
}

.home22-choice-card.memorial .home22-choice-icon {
    background: #f7ead2;
}

.home22-choice-content h3 {
    margin: 0 0 10px;
    font-size: 32px;
    line-height: 1.08;
}

.home22-choice-content p {
    margin: 0 0 21px;
    font-size: 14px;
    line-height: 1.6;
}

.home22-choice-card.candle p {
    color: rgba(255,255,255,.88);
}

.home22-choice-card.memorial p {
    color: #695e54;
}

.home22-choice-link {
    width: fit-content;
    min-height: 44px;
    padding: 0 17px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.home22-choice-card.candle .home22-choice-link {
    color: #775019;
    background: #fff;
}

.home22-choice-card.memorial .home22-choice-link {
    color: #fff;
    background:
        linear-gradient(
            135deg,
            #ad7017,
            #cf9737
        );
}

/* VELAS RECENTES ============================================ */

.home22-recent {
    border-top: 1px solid rgba(182, 120, 23, .14);
    background: rgba(255,255,255,.42);
}

.home22-recent-inner {
    width: min(1320px, calc(100% - 48px));
    margin: 0 auto;
    padding: 44px 0 50px;
}

.home22-section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 19px;
}

.home22-section-head h2 {
    margin: 0 0 5px;
    color: #211b17;
    font-size: 31px;
}

.home22-section-head p {
    margin: 0;
    color: #786c61;
    font-size: 14px;
}

.home22-section-head a {
    color: #775019;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.home22-candle-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.home22-candle-card {
    min-height: 205px;
    display: grid;
    grid-template-columns: 42% 58%;
    overflow: hidden;
    border: 1px solid rgba(116, 83, 47, .12);
    border-radius: 11px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(68, 45, 22, .045);
}

.home22-candle-card img {
    width: 100%;
    height: 100%;
    min-height: 205px;
    object-fit: cover;
}

.home22-candle-copy {
    min-width: 0;
    padding: 16px 13px;
    display: flex;
    flex-direction: column;
}

.home22-candle-copy h3 {
    margin: 0 0 9px;
    color: #241e1a;
    font-size: 16px;
    line-height: 1.18;
}

.home22-candle-copy p {
    margin: 0;
    color: #655b52;
    font-size: 12px;
    line-height: 1.5;
}

.home22-candle-copy small {
    margin-top: auto;
    padding-top: 12px;
    color: #8a7050;
    font-size: 10px;
    line-height: 1.4;
}

.home22-empty {
    grid-column: 1 / -1;
    padding: 40px;
    text-align: center;
    border: 1px solid var(--home-line);
    border-radius: 12px;
    background: #fff;
}

.home22-empty h3 {
    margin: 0 0 8px;
}

.home22-empty p {
    margin: 0 0 16px;
    color: #766b61;
}

/* FRASE FINAL =============================================== */

.home22-quote {
    padding: 26px 20px;
    text-align: center;
    border-top: 1px solid rgba(182, 120, 23, .12);
    background: #f4ede2;
    color: #574b42;
    font-size: 22px;
    font-style: italic;
}

/* RESPONSIVO ================================================ */

@media (max-width: 1050px) {

    .home22-choice-grid {
        grid-template-columns: 1fr;
    }

    .home22-candle-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 760px) {

    .home22-hero {
        min-height: 590px;
        background-position: 63% center;
    }

    .home22-hero::before {
        background:
            linear-gradient(
                90deg,
                rgba(255,253,249,.99),
                rgba(255,253,249,.91) 68%,
                rgba(31,21,12,.34)
            );
    }

    .home22-hero-inner {
        width: min(100% - 28px, 1320px);
        min-height: 590px;
    }

    .home22-hero-copy {
        width: 100%;
        max-width: 520px;
    }

    .home22-hero h1 {
        font-size: 54px;
    }

    .home22-hero p {
        max-width: 470px;
        font-size: 16px;
    }

    .home22-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .home22-btn {
        width: min(100%, 310px);
    }

    .home22-choice-section,
    .home22-recent-inner {
        width: min(100% - 28px, 1320px);
    }

    .home22-choice-content {
        width: 88%;
        padding: 28px 22px;
    }

    .home22-choice-content h3 {
        font-size: 28px;
    }

    .home22-candle-grid {
        grid-template-columns: 1fr;
    }

    .home22-section-head {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* V2.3: imagem principal carregada pelo HTML/PHP */
.home22-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}
.home22-hero::before { z-index: 1; }
.home22-hero-inner { z-index: 2; }
@media (max-width: 760px) {
    .home22-hero-bg { object-position: 63% center; }
}
