﻿.home-main { overflow-x: hidden; }

/* —— Hero —— */
.hero.home-hero {
    position: relative;
    color: #fff;
    /* Alinhar à borda do hero: defina igual à altura real do .search-card.home-search-card (ex.: 180–200px) */
    --home-search-card-h: 190px;
    padding: clamp(40px, 8vw, 72px) 0 130px;
    background:
        radial-gradient(ellipse 90% 70% at 15% -25%, rgba(188, 85, 170, 0.2), transparent 52%),
        radial-gradient(ellipse 70% 55% at 100% 20%, rgba(0, 162, 237, 0.32), transparent 48%),
        linear-gradient(155deg, #061620 0%, #0d3048 40%, #162e3d 75%, #081c2c 100%);
    overflow: visible;
}

.hero.home-hero.home-hero--has-image {
    background-image:
        radial-gradient(ellipse 90% 70% at 15% -25%, rgba(188, 85, 170, 0.2), transparent 52%),
        radial-gradient(ellipse 70% 55% at 100% 20%, rgba(0, 162, 237, 0.32), transparent 48%),
        linear-gradient(155deg, rgba(6, 22, 32, 0.78) 0%, rgba(13, 48, 72, 0.72) 40%, rgba(22, 46, 61, 0.75) 75%, rgba(8, 28, 44, 0.82) 100%),
        var(--home-hero-image);
    background-size: auto, auto, auto, cover;
    background-position: 15% -25%, 100% 20%, center, center;
    background-repeat: no-repeat;
}

.home-hero-glow {
    position: absolute;
    inset: -35% -15% auto -15%;
    height: 75%;
    background: radial-gradient(ellipse 50% 40% at 50% 0%, rgba(0, 162, 237, 0.42), transparent 68%);
    pointer-events: none;
    opacity: 0.9;
    z-index: 0;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 85% 50% at 50% -5%, rgba(0, 162, 237, 0.22), transparent 50%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, transparent 35%);
    pointer-events: none;
    z-index: 0;
}

@media (prefers-reduced-motion: no-preference) {
    .home-hero-glow {
        animation: none;
        opacity: 0.88;
    }
}

.hero-inner.home-hero-inner,
.hero-inner {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-logo {
    margin: 0 auto 16px;
    max-width: min(340px, 90vw);
    filter: drop-shadow(0 14px 42px rgba(0, 0, 0, 0.38));
}

.home-hero-headline,
.home-hero h1#hero-title,
.hero h1#hero-title {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: baseline;
    justify-content: center;
    gap: 0.28em;
    margin: 0 auto 1.1rem;
    width: min(100% - 32px, var(--maxw));
    max-width: min(var(--maxw), calc(100vw - 32px));
    box-sizing: border-box;
    padding: 0 18px;
    text-align: center;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.5px;
    color: #fff;
    white-space: nowrap;
    text-shadow: none;
}

.home-hero-headline__line {
    display: inline;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    text-shadow: none;
}

.home-hero-headline__line--lead,
.home-hero-headline__line--trail {
    font-size: clamp(1.75rem, 4.2vw, 3.25rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #fff;
    line-height: 1;
}

.home-hero-headline__line--accent {
    font-size: clamp(2.25rem, 5.5vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    color: #45B7FF;
    line-height: 1;
    text-transform: uppercase;
}

/* === Hero: mídia (partial includes/partials/home_hero_media.php) === */
.home-hero-media {
    position: relative;
    margin: 0 auto 6px;
    max-width: min(820px, 100%);
    border-radius: calc(var(--card-radius) + 6px);
    overflow: hidden;
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.12),
        0 28px 56px rgba(0, 0, 0, 0.38),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    background: #0a1620;
    aspect-ratio: 16 / 9;
    box-sizing: border-box;
    isolation: isolate;
}

.home-hero-media--empty {
    background: rgba(0, 0, 0, 0.28);
    border: 1px dashed rgba(255, 255, 255, 0.22);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

.home-hero-media__surface {
    position: absolute;
    inset: 0;
}

.home-hero-media__surface--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(16px, 4vw, 28px);
}

.home-hero-media__hint {
    margin: 0;
    font-size: clamp(0.82rem, 2.2vw, 0.95rem);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.62);
    text-align: center;
    line-height: 1.5;
    max-width: 46ch;
}

.home-hero-media__mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.88em;
    opacity: 0.92;
}

.home-hero-media__launch {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
    cursor: pointer;
    background: #061620;
    font: inherit;
    color: inherit;
    -webkit-tap-highlight-color: transparent;
}

.home-hero-media__launch:hover {
    filter: brightness(1.07);
}

.home-hero-media__launch:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.92);
    outline-offset: -3px;
}

.home-hero-media__poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.home-hero-media__playbadge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(56px, 12vw, 80px);
    height: clamp(56px, 12vw, 80px);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--header-dark);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
    pointer-events: none;
}

.home-hero-media__playbadge svg {
    display: block;
    margin-left: 5%;
}

.home-hero-media__frame {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    border: 0;
    transform: translateZ(0);
}

.home-hero-media__frame--native {
    background: #000;
    object-fit: contain;
}

/* Faixa ativar som: cobre exatamente o retangulo do player */
.home-hero-media__sound-gate {
    position: absolute;
    inset: 0;
    z-index: 4;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: clamp(14px, 3vw, 24px);
    border: 0;
    cursor: pointer;
    background: rgba(6, 22, 32, 0.35);
    backdrop-filter: blur(2px);
    -webkit-tap-highlight-color: transparent;
    font: inherit;
    color: inherit;
}

.home-hero-media__sound-gate[hidden] {
    display: none !important;
}

.home-hero-media__sound-gate:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.95);
    outline-offset: -6px;
}

.home-hero-media__sound-gate-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: clamp(12px, 3vw, 22px);
    max-width: min(92%, 520px);
    padding: clamp(14px, 3.2vw, 22px) clamp(18px, 4vw, 28px);
    border-radius: 14px;
    background: linear-gradient(165deg, #8fd99a 0%, #6bc97d 45%, #4faa62 100%);
    border: 0;
    backdrop-filter: none;
    box-shadow:
        0 4px 0 rgba(24, 92, 48, 0.45),
        0 18px 40px rgba(0, 0, 0, 0.35);
    color: #fff;
    text-align: left;
    transition: transform 0.18s ease, filter 0.18s ease;
}

.home-hero-media__sound-gate:hover .home-hero-media__sound-gate-inner {
    transform: translateY(-1px);
    filter: brightness(1.03);
}

.home-hero-media__sound-gate-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: transparent;
    color: #14532a;
    box-shadow: none;
}

.home-hero-media__sound-gate-icon svg {
    display: block;
    width: clamp(36px, 8vw, 48px);
    height: clamp(36px, 8vw, 48px);
}

.home-hero-media__sound-gate-copy {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.home-hero-media__sound-gate-kicker {
    display: block;
    font-size: clamp(0.72rem, 2vw, 0.88rem);
    font-weight: 600;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.95);
}

.home-hero-media__sound-gate-headline {
    display: block;
    font-size: clamp(0.95rem, 2.8vw, 1.25rem);
    font-weight: 800;
    font-style: italic;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #fff;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
}

@media (max-width: 420px) {
    .home-hero-media__sound-gate-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-hero-media__launch:hover {
        filter: none;
    }
}

/* Buscador inline (após vídeo) */
.home-hero-stack {
    width: min(100% - 32px, var(--maxw));
    max-width: min(var(--maxw), calc(100vw - 32px));
    margin-left: auto;
    margin-right: auto;
}

.home-hero-media + .home-hero-stack {
    margin-top: 14px;
}

.home-hero-stack .search-section .search-panel.home-hero__search {
    margin-top: 0;
    margin-bottom: 0;
}

.home-hero-search-inline {
    width: 100%;
    position: relative;
    z-index: 40;
}

.home-hero-search-inline .search-panel.home-hero__search {
    padding: 0;
}

/* «Perto de você» — metade no hero, metade na secção seguinte */
.home-hero-nearby-wrapper {
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(var(--home-nearby-card-h, 150px) * -0.5 - 32px);
    height: 0;
    z-index: 30;
    pointer-events: none;
}

.home-hero-nearby-wrapper.nearby-section {
    border-radius: 24px;
    overflow: hidden;
}

.home-hero-nearby-wrapper .nearby-stores--in-hero {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: min(100% - 32px, var(--maxw));
    max-width: min(var(--maxw), calc(100vw - 32px));
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    pointer-events: auto;
}

/* Busca */
.search-panel {
    position: relative;
    margin-top: -40px;
    margin-bottom: 52px;
    z-index: 2;
}

.search-card {
    position: relative;
    background: #fff;
    border-radius: calc(var(--card-radius) + 6px);
    box-shadow:
        0 0 0 1px rgba(22, 46, 61, 0.06),
        0 8px 40px rgba(22, 46, 61, 0.12);
    padding: clamp(20px, 3vw, 30px);
}

.search-card.home-search-card {
    overflow: visible;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: #fff;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.75) inset,
        0 2px 4px rgba(15, 23, 42, 0.04),
        0 26px 56px -14px rgba(15, 23, 42, 0.2);
}

.home-search-card__head {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 0 0 10px;
    padding: 0 0 10px;
    width: 100%;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(226, 232, 240, 0.95);
}

.home-search-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: auto;
    height: auto;
    padding: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    color: var(--accent);
}

.search-card h2 {
    margin: 0;
    font-size: clamp(1.15rem, 2vw, 1.4rem);
    font-weight: 800;
    letter-spacing: 0;
    color: var(--header-dark);
}

.home-search-card__head h2 {
    margin: 0;
    flex: 0 1 auto;
    min-height: 0;
    height: auto;
    padding: 0;
    display: block;
    text-align: center;
    font-size: clamp(1.2rem, 2.9vw, 1.62rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--header-dark);
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.search-grid {
    display: grid;
    grid-template-columns: minmax(200px, 1.5fr) minmax(220px, 1fr) auto;
    gap: 14px;
    align-items: end;
    padding: 14px;
    border: 1px solid #e1e8f0;
    border-radius: 16px;
    background: linear-gradient(180deg, #f8fbfd 0%, #fff 100%);
}

.search-grid__location {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 14px;
    align-items: end;
    min-width: 0;
}

.search-grid__location:has(#field-bairro.is-hidden) {
    grid-template-columns: 1fr;
}

.search-grid__location .field {
    min-width: 0;
}

.search-card.home-search-card .search-grid {
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 0;
    background: transparent;
}

@media (max-width: 768px) {
    .search-grid { grid-template-columns: 1fr; }

    .search-grid__location {
        gap: 10px 12px;
    }

    .search-grid__location .field label {
        font-size: 0.68rem;
        margin-bottom: 4px;
    }

    .search-grid__location .field select {
        min-height: 46px;
        padding: 10px 12px;
    }
}

.field.is-hidden { display: none; }

.field label {
    display: block;
    font-size: 0.74rem;
    font-weight: 800;
    color: var(--muted);
    margin-bottom: 6px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.field input,
.field select {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid #ccd8e5;
    border-radius: 12px;
    font: inherit;
    background: #fff;
    color: var(--ink);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
}

.field input:hover,
.field select:hover {
    border-color: rgba(22, 46, 61, 0.28);
}

.field input:focus,
.field select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 162, 237, 0.2);
    background: #fff;
}

.btn-search {
    background: linear-gradient(135deg, var(--header-dark) 0%, #0f2633 100%);
    color: #fff;
    min-height: 48px;
    padding-inline: var(--space-6, 24px);
    text-transform: none;
    font-weight: 800;
    border-radius: var(--radius-md, 12px);
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-md, 0 6px 20px rgba(22, 46, 61, 0.2));
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition:
        transform var(--transition-base, 220ms) var(--ease-fluid, cubic-bezier(0.22, 1, 0.36, 1)),
        box-shadow var(--transition-base, 220ms) var(--ease-fluid, cubic-bezier(0.22, 1, 0.36, 1)),
        filter var(--transition-fast, 140ms) ease;
    white-space: nowrap;
}

.btn-search__inner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2, 8px);
}

.btn-search__inner svg {
    flex: 0 0 auto;
}

.btn-search:hover {
    filter: brightness(1.06);
    box-shadow: var(--shadow-lg, 0 10px 28px rgba(22, 46, 61, 0.25));
}

.btn-search:active,
.btn-search.is-pressed {
    transform: scale(0.97);
    filter: brightness(0.98);
}

.btn-search:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Seções */
.section { padding: var(--space-12, 48px) 0; }

.home-destaques-section > .container,
.home-top-avaliadas-section > .container {
    width: min(90%, 1080px);
    max-width: min(1080px, calc(100vw - 32px));
}

.section.home-destaques-section {
    padding-top: 0;
    padding-bottom: 12px;
}

.hero.home-hero + .section.home-destaques-section {
    position: relative;
    z-index: 1;
    padding-top: 20px;
}

.home-ad-strip.ad-strip + .section.home-destaques-section {
    padding-top: 0;
    margin-top: -8px;
}

.hero.home-hero + .home-ad-strip.ad-strip {
    margin-top: 0;
    position: relative;
    z-index: 1;
    padding-top: 20px;
}

/* Espaço extra só quando «Perto de você» está visível (card sobreposto) */
.hero.home-hero:has(.home-hero-nearby-wrapper:not([hidden])) + .section.home-destaques-section,
.hero.home-hero:has(.home-hero-nearby-wrapper:not([hidden])) + .home-ad-strip.ad-strip {
    padding-top: 88px;
}

.home-hero-nearby-wrapper[hidden] {
    display: none !important;
}

/* Desktop */
@media (min-width: 769px) {
    .hero.home-hero {
        container-type: inline-size;
        padding: clamp(40px, 8vw, 72px) 0 96px;
        margin-bottom: 16px;
    }

    .hero.home-hero:has(.home-hero-nearby-wrapper:not([hidden])) {
        margin-bottom: 72px;
    }

    .home-hero-stack {
        width: min(90vw, 1080px);
        width: min(90cqw, 1080px);
        max-width: min(1080px, calc(100vw - 32px));
    }

    .hero.home-hero .home-hero-media {
        position: relative;
        width: min(90vw, 1080px);
        width: min(90cqw, 1080px);
        max-width: min(1080px, calc(100vw - 32px));
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 14px;
        box-sizing: border-box;
        aspect-ratio: 16 / 8.5;
        border-radius: 18px;
        overflow: hidden;
    }

    .home-hero-nearby-wrapper {
        left: 50%;
        right: auto;
        width: min(90%, 1080px);
        max-width: min(1080px, calc(100vw - 32px));
        bottom: -132px;
        height: auto;
        transform: translateX(-50%);
        box-sizing: border-box;
    }

    .home-hero-nearby-wrapper .nearby-stores--in-hero {
        position: relative;
        left: auto;
        bottom: auto;
        transform: none;
        width: 100%;
        max-width: none;
    }
}

.home-section--tint {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(236, 240, 255, 0.65) 50%, rgba(236, 240, 255, 0.35) 100%);
}

.home-eyebrow {
    margin: 0 0 8px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
}

.section-head {
    text-align: center;
    margin-bottom: 32px;
}

.section-head h2 {
    margin: 0 0 10px;
    font-size: clamp(1.55rem, 3.2vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.section-head p {
    margin: 0;
    color: var(--muted);
    max-width: 560px;
    margin-inline: auto;
    font-size: 1.02rem;
    line-height: 1.5;
}

.home-destaques-section .section-head {
    margin-bottom: 6px;
}

.home-destaques-section .section-head .home-eyebrow {
    margin-bottom: 0;
}

.home-destaques-section .cards-carousel-controls {
    margin-top: 0.5rem;
    padding-bottom: 0;
}

.home-top-avaliadas-sub {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 0.95rem;
}

.home-top-avaliadas-section .section-head {
    margin-bottom: 10px;
}

.home-top-avaliadas-section .section-head .home-eyebrow {
    margin-bottom: 0;
}

/* Carrossel destaques / home */
.cards-carousel {
    position: relative;
    padding: 0;
}

.cards-carousel--single-page .cards-carousel-arrow {
    display: none;
}

.cards-carousel-viewport {
    overflow: hidden;
    width: 100%;
}

.cards-carousel-track {
    display: flex;
    align-items: stretch;
    gap: 20px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

@media (max-width: 768px) {
    .cards-carousel-track {
        gap: 12px;
    }
}

.cards-carousel-slide {
    /* Largura estável antes do JS — evita capa “estourada” no primeiro paint */
    flex: 0 0 calc((100% - 40px) / 3);
    width: calc((100% - 40px) / 3);
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.cards-carousel[data-carousel-per-desktop="2"] .cards-carousel-slide {
    flex-basis: calc((100% - 20px) / 2);
    width: calc((100% - 20px) / 2);
}

.cards-carousel[data-carousel-per-desktop="1"] .cards-carousel-slide {
    flex-basis: 100%;
    width: 100%;
}

.cards-carousel[data-carousel-per-desktop="4"] .cards-carousel-slide {
    flex-basis: calc((100% - 60px) / 4);
    width: calc((100% - 60px) / 4);
}

@media (max-width: 768px) {
    .cards-carousel-slide {
        flex: 0 0 calc((100% - 12px) / 2);
        width: calc((100% - 12px) / 2);
    }

    .cards-carousel[data-carousel-per-mobile="1"] .cards-carousel-slide {
        flex-basis: 100%;
        width: 100%;
    }

    .cards-carousel[data-carousel-per-mobile="3"] .cards-carousel-slide {
        flex-basis: calc((100% - 24px) / 3);
        width: calc((100% - 24px) / 3);
    }
}

.cards-carousel-slide .card-listing,
.cards-carousel-slide .negocios-card,
.cards-carousel-slide .home-destaque-card {
    height: 100%;
    max-width: 100%;
}

.cards-carousel-slide .card-listing--home-card__capa,
.cards-carousel-slide .negocios-card__capa {
    max-width: 100%;
}

.cards-carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 1rem;
    padding: 0 0 0.25rem;
    flex-wrap: nowrap;
}

.cards-carousel-controls .cards-carousel-arrow {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    transform: none;
    width: var(--touch-min, 44px);
    height: var(--touch-min, 44px);
    padding: 0;
    border: none;
    border-radius: var(--radius-full, 999px);
    background: transparent;
    color: var(--header-dark);
    box-shadow: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    line-height: 1;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition:
        opacity var(--transition-fast, 140ms) ease,
        color var(--transition-fast, 140ms) ease,
        transform var(--transition-base, 220ms) var(--ease-fluid, cubic-bezier(0.22, 1, 0.36, 1)),
        background-color var(--transition-fast, 140ms) ease;
}

.cards-carousel-controls .cards-carousel-arrow:active:not(:disabled),
.cards-carousel-controls .cards-carousel-arrow.is-pressed:not(:disabled) {
    transform: scale(0.97);
}

.cards-carousel-controls .cards-carousel-arrow:hover:not(:disabled) {
    color: var(--accent);
}

.cards-carousel-controls .cards-carousel-arrow:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.cards-carousel-controls .cards-carousel-arrow:disabled {
    cursor: not-allowed;
    opacity: 0.35;
}

.cards-carousel-controls .cards-carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 5px;
    margin: 0;
    padding: 0;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.cards-carousel-controls .cards-carousel-dots::-webkit-scrollbar {
    display: none;
}

.cards-carousel--single-page .cards-carousel-controls {
    display: none;
}

.cards-carousel-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(22, 46, 61, 0.22);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.cards-carousel-dot:hover {
    background: rgba(22, 46, 61, 0.45);
}

.cards-carousel-dot:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.cards-carousel-dot.is-active {
    background: #1d9bf0;
    transform: scale(1.2);
}

.cards-carousel-dots--logos {
    gap: 5px;
}

.cards-carousel-dot--logo {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    border: 1.5px solid rgba(22, 46, 61, 0.12);
    box-shadow: 0 1px 4px rgba(22, 46, 61, 0.1);
    transform: none;
    flex-shrink: 0;
}

.cards-carousel-dot--logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cards-carousel-dot--logo:hover {
    background: #fff;
    border-color: rgba(0, 162, 237, 0.55);
    transform: scale(1.05);
}

.cards-carousel-dot--logo.is-active {
    background: #fff;
    border-color: #1d9bf0;
    box-shadow: 0 0 0 1.5px rgba(29, 155, 240, 0.3);
    transform: scale(1.08);
}

@media (max-width: 768px) {
    .cards-carousel-controls {
        gap: 4px;
    }

    .cards-carousel-controls .cards-carousel-arrow {
        width: 1.2rem;
        height: 1.2rem;
        font-size: 1.1rem;
    }

    .cards-carousel-dot--logo {
        width: 20px;
        height: 20px;
    }
}

/* Regioes - bento grid acima do rodape */
.home-regioes-prefooter {
    padding: clamp(34px, 5vw, 64px) 0 clamp(48px, 7vw, 78px);
    background: linear-gradient(180deg, #ffffff 0%, #f4f7fb 100%);
    border-top: 1px solid rgba(22, 46, 61, 0.08);
}

.home-regioes-prefooter__head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1.5rem;
    max-width: none;
    margin: 0 0 1.35rem;
    text-align: left;
}

.home-regioes-prefooter__head .home-regioes-prefooter__title {
    margin: 0 0 0.35rem;
    font-size: clamp(1.55rem, 3vw, 2.15rem);
    font-weight: 800;
    color: #162e3d;
    letter-spacing: 0;
}

.home-regioes-prefooter__head .home-regioes-prefooter__sub {
    margin: 0;
    max-width: 28rem;
    font-size: 1rem;
    font-weight: 600;
    color: #52616d;
    line-height: 1.4;
}

.home-regioes-prefooter__grid--bento {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: minmax(140px, 1fr);
    gap: 12px;
    align-items: stretch;
}

.home-regioes-prefooter__grid--bento .listing-cat-php {
    min-width: 0;
    height: 100%;
}

.home-regioes-prefooter__grid--bento .listing-cat-php a {
    height: 100%;
    min-height: 0;
}

/* 1 região: faixa larga */
.home-regioes-prefooter__grid--bento[data-regioes-count="1"] {
    grid-template-columns: 1fr;
    grid-auto-rows: minmax(250px, 320px);
}

.home-regioes-prefooter__grid--bento[data-regioes-count="1"] .listing-cat-php--featured {
    grid-column: 1 / -1;
}

/* 2 regiões: destaque + tile */
.home-regioes-prefooter__grid--bento[data-regioes-count="2"] {
    grid-template-columns: 1.4fr 1fr;
    grid-auto-rows: minmax(240px, 280px);
}

.home-regioes-prefooter__grid--bento[data-regioes-count="2"] .listing-cat-php--featured {
    grid-column: 1;
}

/* 3 regiões: destaque 2x2 + 2 tiles à direita */
.home-regioes-prefooter__grid--bento[data-regioes-count="3"] {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(150px, 1fr));
}

.home-regioes-prefooter__grid--bento[data-regioes-count="3"] .listing-cat-php--featured {
    grid-column: 1 / span 2;
    grid-row: 1 / span 2;
}

.home-regioes-prefooter__grid--bento[data-regioes-count="3"] .listing-cat-php:nth-child(2) {
    grid-column: 3 / span 2;
    grid-row: 1;
}

.home-regioes-prefooter__grid--bento[data-regioes-count="3"] .listing-cat-php:nth-child(3) {
    grid-column: 3 / span 2;
    grid-row: 2;
}

/* 4+ : destaque 2x2 + tiles */
.home-regioes-prefooter__grid--bento[data-regioes-count="4"],
.home-regioes-prefooter__grid--bento:not([data-regioes-count="1"]):not([data-regioes-count="2"]):not([data-regioes-count="3"]) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: minmax(150px, 180px);
}

.home-regioes-prefooter__grid--bento[data-regioes-count="4"] .listing-cat-php--featured,
.home-regioes-prefooter__grid--bento:not([data-regioes-count="1"]):not([data-regioes-count="2"]):not([data-regioes-count="3"]) .listing-cat-php--featured {
    grid-column: span 2;
    grid-row: span 2;
}

.listing-cat-php {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #162e3d;
    border: 1px solid rgba(22, 46, 61, 0.08);
    box-shadow: 0 18px 44px rgba(22, 46, 61, 0.14);
}

.listing-cat-php a {
    display: block;
    position: relative;
    min-height: 180px;
    color: #fff;
    text-decoration: none;
    overflow: hidden;
    isolation: isolate;
}

.listing-cat-php--bento a {
    min-height: 140px;
}

.listing-cat-php--featured a {
    min-height: 280px;
}

.listing-cat-php a:focus-visible {
    outline: 3px solid var(--accent, #00a2ed);
    outline-offset: 3px;
}

.listing-cat-php .lc-background {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.01);
    transition: transform 0.45s ease, filter 0.45s ease;
}

.listing-cat-php a:hover .lc-background {
    transform: scale(1.045);
    filter: saturate(1.05);
}

.listing-cat-php .overlay.gradient2 {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(8, 24, 36, 0.86) 0%, rgba(8, 24, 36, 0.64) 42%, rgba(8, 24, 36, 0.18) 100%);
    z-index: 1;
}

.listing-cat-php::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 3;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
    pointer-events: none;
}

.listing-cat-php.listing-cat-php--nofoto .lc-background {
    background:
        radial-gradient(circle at 30% 20%, rgba(0, 162, 237, 0.45), transparent 45%),
        linear-gradient(145deg, #0063a3 0%, #162e3d 100%);
}

.listing-cat-php .lc-info {
    position: absolute;
    left: 0;
    right: auto;
    bottom: 0;
    width: min(100%, 520px);
    padding: 1.15rem 1.2rem 1.1rem;
    z-index: 2;
}

.listing-cat-php--featured .lc-info {
    padding: clamp(1.35rem, 3vw, 2rem);
}

.listing-cat-php .lc-info .lc-uf {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 26px;
    padding: 0 0.65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.8rem;
}

.listing-cat-php .lc-info h3 {
    margin: 0 0 0.35rem;
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.15;
    color: #fff;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.32);
}

.listing-cat-php--featured .lc-info h3 {
    font-size: clamp(1.85rem, 4vw, 3rem);
}

.listing-cat-php .lc-info .lc-meta {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.listing-cat-php--featured .lc-info .lc-meta {
    font-size: 1.02rem;
}

@media (max-width: 900px) {
    .home-regioes-prefooter__head {
        display: block;
    }

    .home-regioes-prefooter__head .home-regioes-prefooter__sub {
        max-width: 100%;
    }

    .home-regioes-prefooter__grid--bento,
    .home-regioes-prefooter__grid--bento[data-regioes-count="2"],
    .home-regioes-prefooter__grid--bento[data-regioes-count="3"],
    .home-regioes-prefooter__grid--bento[data-regioes-count="4"],
    .home-regioes-prefooter__grid--bento:not([data-regioes-count="1"]):not([data-regioes-count="2"]):not([data-regioes-count="3"]) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: minmax(160px, 200px);
        grid-template-rows: none;
    }

    .home-regioes-prefooter__grid--bento[data-regioes-count="1"] {
        grid-template-columns: 1fr;
        grid-auto-rows: minmax(220px, 260px);
    }

    .home-regioes-prefooter__grid--bento .listing-cat-php--featured,
    .home-regioes-prefooter__grid--bento[data-regioes-count="3"] .listing-cat-php--featured,
    .home-regioes-prefooter__grid--bento[data-regioes-count="3"] .listing-cat-php:nth-child(2),
    .home-regioes-prefooter__grid--bento[data-regioes-count="3"] .listing-cat-php:nth-child(3),
    .home-regioes-prefooter__grid--bento[data-regioes-count="4"] .listing-cat-php--featured,
    .home-regioes-prefooter__grid--bento:not([data-regioes-count="1"]):not([data-regioes-count="2"]):not([data-regioes-count="3"]) .listing-cat-php--featured {
        grid-column: span 2;
        grid-row: span 1;
    }

    .home-regioes-prefooter__grid--bento[data-regioes-count="2"] .listing-cat-php--featured {
        grid-column: span 1;
    }

    .listing-cat-php--featured a {
        min-height: 200px;
    }
}

@media (max-width: 560px) {
    .home-regioes-prefooter__grid--bento,
    .home-regioes-prefooter__grid--bento[data-regioes-count="1"],
    .home-regioes-prefooter__grid--bento[data-regioes-count="2"],
    .home-regioes-prefooter__grid--bento[data-regioes-count="3"],
    .home-regioes-prefooter__grid--bento[data-regioes-count="4"],
    .home-regioes-prefooter__grid--bento:not([data-regioes-count="1"]):not([data-regioes-count="2"]):not([data-regioes-count="3"]) {
        grid-template-columns: 1fr;
        grid-auto-rows: minmax(170px, 200px);
        gap: 10px;
    }

    .home-regioes-prefooter__head {
        margin-bottom: 1rem;
    }

    .home-regioes-prefooter__grid--bento .listing-cat-php--featured,
    .home-regioes-prefooter__grid--bento[data-regioes-count="2"] .listing-cat-php--featured,
    .home-regioes-prefooter__grid--bento[data-regioes-count="3"] .listing-cat-php--featured,
    .home-regioes-prefooter__grid--bento[data-regioes-count="3"] .listing-cat-php:nth-child(2),
    .home-regioes-prefooter__grid--bento[data-regioes-count="3"] .listing-cat-php:nth-child(3),
    .home-regioes-prefooter__grid--bento[data-regioes-count="4"] .listing-cat-php--featured,
    .home-regioes-prefooter__grid--bento:not([data-regioes-count="1"]):not([data-regioes-count="2"]):not([data-regioes-count="3"]) .listing-cat-php--featured {
        grid-column: 1;
        grid-row: auto;
    }

    .listing-cat-php--featured a,
    .listing-cat-php--bento a {
        min-height: 170px;
    }

    .listing-cat-php .lc-info {
        padding: 1rem 1rem 0.95rem;
        width: 100%;
    }

    .listing-cat-php .lc-info h3 {
        font-size: 1.15rem;
    }

}

/* Anúncio — faixa (card nativo em sede-ads-public.css) */
.home-ad-strip.ad-strip:not(.sede-ads-carousel),
.ad-strip:not(.sede-ads-carousel),
.sede-ads-banner-plain {
    text-align: left;
    padding: 16px 0;
    background: linear-gradient(180deg, transparent, rgba(0, 162, 237, 0.04) 40%, transparent);
}

/* Carrossel ADS na home */
.home-ad-strip.sede-ads-carousel {
    padding: 16px 0;
}

@media (max-width: 768px) {
    .hero.home-hero {
        padding: 20px 0 8px;
    }

    .hero-logo {
        max-width: min(260px, 86vw);
        margin-bottom: 12px;
    }

    .home-hero-headline,
    .home-hero h1#hero-title,
    .hero h1#hero-title {
        margin-bottom: 0.85rem;
        width: min(100% - 24px, var(--maxw));
        max-width: min(820px, calc(100vw - 24px));
        padding: 0 12px;
        gap: 0.22em;
        letter-spacing: -0.02em;
    }

    .home-hero-headline__line--lead,
    .home-hero-headline__line--trail {
        font-size: clamp(1.125rem, 5.2vw, 1.75rem);
        letter-spacing: -0.02em;
    }

    .home-hero-headline__line--accent {
        font-size: clamp(1.5rem, 7vw, 2.25rem);
        letter-spacing: -0.035em;
    }

    .home-hero-media {
        margin-bottom: 4px;
    }

    .home-hero-media + .home-hero-stack {
        margin-top: 8px;
    }

    .home-hero-stack {
        width: 100%;
        max-width: min(820px, 100%);
    }

    .home-hero-stack .search-section .search-panel.home-hero__search {
        width: 100%;
        margin: 0 auto;
        padding: 0;
    }

    .home-hero-nearby-wrapper {
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        height: auto;
        margin: 16px auto 0;
        z-index: 10;
        pointer-events: auto;
        transform: none;
    }

    .home-hero-nearby-wrapper .nearby-stores--in-hero {
        position: relative;
        left: auto;
        bottom: auto;
        transform: none;
        width: 100%;
        max-width: min(820px, 100%);
        margin: 0 auto;
    }

    .hero.home-hero:has(.home-hero-nearby-wrapper:not([hidden])) {
        padding-bottom: 8px;
    }

    .hero.home-hero + .section.home-destaques-section {
        padding-top: 12px;
    }

    .home-ad-strip.ad-strip + .section.home-destaques-section {
        margin-top: -8px;
    }

    .hero.home-hero + .home-ad-strip.ad-strip {
        padding-top: 12px;
    }

    .hero.home-hero:has(.home-hero-nearby-wrapper:not([hidden])) + .section.home-destaques-section,
    .hero.home-hero:has(.home-hero-nearby-wrapper:not([hidden])) + .home-ad-strip.ad-strip {
        padding-top: 16px;
    }
    .search-card {
        padding: 14px;
    }

    .home-search-card__head {
        display: none;
    }

    .search-card.home-search-card .search-grid {
        padding: 0;
        gap: 8px;
    }

    .search-card.home-search-card .field label {
        margin-bottom: 4px;
        font-size: 0.68rem;
    }

    .search-card.home-search-card .field input,
    .search-card.home-search-card .field select,
    .search-card.home-search-card .btn-search {
        min-height: 46px;
    }

    .search-card.home-search-card .field input,
    .search-card.home-search-card .field select {
        padding: 10px 12px;
    }

    .search-grid__location {
        gap: 8px;
    }

    .btn-search {
        width: 100%;
    }

    .section {
        padding: 32px 0;
    }

    .section.home-destaques-section {
        padding-top: 0;
        padding-bottom: 10px;
    }

    .home-ad-strip.ad-strip:not(.sede-ads-carousel),
    .ad-strip:not(.sede-ads-carousel),
    .sede-ads-banner-plain {
        padding: 10px 0;
    }

    .card-actions {
        flex-direction: column;
    }

    .card-actions a {
        text-align: center;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .card-listing:not(.negocios-card):hover,
    .listing-cat-php a:hover .lc-background {
        transform: none;
    }
    .btn-search:hover {
        transform: none;
    }
}
