/* =====================================================
    EXEMPLOS: chips de filtro + carrossel 3D (Glide.js) da home, que também valem
    para a página /sites/ e a /sobre/, e o slide de banners da home.
    Cores do card: --ex-p (principal) e --ex-d (destaque),
    trocadas pelo assets/js/exemplos.js.
===================================================== */

.exemplos {
    background: linear-gradient(180deg, var(--bg) 0%, #ffffff 100%);
    overflow: hidden;
}

.exemplos .section-header {
    margin-bottom: 30px;
}

.ex-filtros {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px 16px;
    margin-bottom: 18px;
}

.ex-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.ex-chip {
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--white);
    color: var(--dark);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
}

.ex-chip:hover {
    border-color: #93c5fd;
    color: var(--primary);
}

.ex-chip[aria-pressed="true"] {
    background: var(--dark);
    border-color: var(--dark);
    color: var(--white);
}

.ex-chip:focus-visible,
.ex-seta:focus-visible,
.ex-cor:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.35);
    outline-offset: 2px;
}

.ex-resumo {
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}

/* ---------- carrossel ---------- */

.ex-glide .glide__track {
    padding: 24px 0 64px;
    margin-bottom: -24px;
}

.ex-glide .glide__slide {
    display: flex;
    justify-content: center;
    padding: 0 10px;
    perspective: 1200px;
}

.ex-card {
    --ex-p: #17150f;
    --ex-d: #fcc202;
    width: 100%;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    overflow: hidden;
    box-shadow: var(--shadow);
    transform: scale(0.84);
    opacity: 0.45;
    filter: saturate(0.6);
    transition: transform 0.55s ease, opacity 0.55s ease, filter 0.55s ease, box-shadow 0.55s ease;
}

/* lados: os cards antes do centro giram para a direita, os depois giram para a esquerda */
.ex-glide .glide__slide:has(~ .is-centro) .ex-card {
    transform: scale(0.84) rotateY(22deg);
    transform-origin: right center;
}

.ex-glide .is-centro ~ .glide__slide .ex-card {
    transform: scale(0.84) rotateY(-22deg);
    transform-origin: left center;
}

.ex-glide .glide__slide.is-centro .ex-card {
    transform: none;
    opacity: 1;
    filter: none;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

.ex-glide .glide__slide:not(.is-centro) {
    cursor: pointer;
}

.ex-glide--unico .glide__slides {
    justify-content: center;
}

/* ---------- prévia (mini site desenhado em CSS) ---------- */

.ex-previa {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
}

.ex-navegador {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: #f1f5f9;
}

.ex-bolinhas {
    flex-shrink: 0;
    width: 34px;
    height: 8px;
    background:
        radial-gradient(circle 4px at 4px 4px, #f87171 98%, transparent) 0 0 / 13px 8px repeat-x;
}

.ex-endereco {
    flex: 1;
    min-width: 0;
    padding: 3px 10px;
    border-radius: 999px;
    background: #ffffff;
    color: var(--muted);
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ex-topo {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 34px;
    padding: 0 12px;
    background: var(--ex-p);
    transition: background 0.35s;
}

.ex-logo {
    width: 22px;
    height: 22px;
    border-radius: 7px;
    background: var(--ex-d);
    transition: background 0.35s;
}

.ex-menu {
    flex: 1;
    height: 6px;
    max-width: 120px;
    margin-left: auto;
    border-radius: 3px;
    background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.55) 0 26px, transparent 26px 36px);
}

.ex-busca {
    flex: 1;
    height: 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
}

.ex-botao-mini {
    width: 46px;
    height: 18px;
    border-radius: 6px;
    background: var(--ex-d);
    transition: background 0.35s;
}

.ex-carrinho {
    position: relative;
    width: 20px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.85);
    border-radius: 3px 3px 6px 6px;
}

.ex-carrinho::after {
    content: "";
    position: absolute;
    top: -7px;
    right: -7px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--ex-d);
}

.ex-hero {
    position: relative;
    aspect-ratio: 16 / 8;
    overflow: hidden;
    background: var(--ex-p);
}

.ex-foto {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ex-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--ex-p) 0%, color-mix(in srgb, var(--ex-p) 70%, transparent) 45%, transparent 85%);
    transition: background 0.35s;
}

.ex-previa--ecommerce .ex-hero::after {
    display: none;
}

.ex-hero-texto {
    position: absolute;
    z-index: 1;
    left: 14px;
    bottom: 14px;
    right: 40%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.ex-hero-texto strong {
    color: #ffffff;
    font-size: 15px;
    line-height: 1.15;
    letter-spacing: -0.3px;
}

.ex-cta {
    padding: 5px 10px;
    border-radius: 6px;
    background: var(--ex-d);
    color: var(--ex-p);
    font-size: 10px;
    font-weight: 800;
    transition: background 0.35s, color 0.35s;
}

.ex-grade {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 10px 12px 12px;
}

.ex-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
    border: 1px solid #eef2f6;
    border-radius: 8px;
}

.ex-item-img {
    height: 26px;
    border-radius: 5px;
    background: color-mix(in srgb, var(--ex-d) 22%, #ffffff);
    transition: background 0.35s;
}

.ex-item-linha {
    height: 5px;
    width: 80%;
    border-radius: 3px;
    background: #e2e8f0;
}

.ex-item-preco {
    height: 7px;
    width: 45%;
    border-radius: 3px;
    background: var(--ex-p);
    transition: background 0.35s;
}

.ex-previa--servico .ex-item-img {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--ex-d);
}

.ex-previa--servico .ex-item-preco {
    display: none;
}

/* ---------- corpo do card ---------- */

.ex-corpo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 18px 20px 22px;
}

.ex-tag {
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 700;
}

.ex-nome {
    font-size: 19px;
    letter-spacing: -0.4px;
    line-height: 1.2;
}

.ex-texto {
    color: var(--text);
    font-size: 14px;
    line-height: 1.5;
    min-height: 42px;
}

.ex-cores {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 2px;
}

.ex-cor {
    position: relative;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

.ex-cor::before {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--c-p) 0 50%, var(--c-d) 50% 100%);
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.12);
    transition: transform 0.2s;
}

.ex-cor:hover::before {
    transform: scale(1.08);
}

.ex-cor[aria-pressed="true"]::before {
    box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--dark);
}

.ex-experimentar {
    align-self: stretch;
    margin-top: 6px;
}

/* ---------- setas ---------- */

.ex-setas {
    display: flex;
    justify-content: center;
    gap: 14px;
}

.ex-seta {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--white);
    color: var(--dark);
    cursor: pointer;
    transition: 0.2s;
}

.ex-seta:hover {
    border-color: #93c5fd;
    color: var(--primary);
}

.ex-seta svg {
    width: 20px;
    height: 20px;
}

.ex-glide--unico .ex-setas {
    display: none;
}

@media (max-width: 640px) {
    .ex-glide .glide__slide {
        padding: 0 5px;
    }

    .ex-corpo {
        padding: 16px 14px 18px;
    }

    .ex-cores {
        align-self: stretch;
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        gap: 2px;
    }

    .ex-cor {
        width: 100%;
        height: 44px;
    }

    .ex-cor::before {
        inset: 7px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ex-card {
        transition: none;
    }
}

/* ---------- link para a página /sites/ ---------- */

.ex-ver-todos {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

/* ---------- slide de banners (home) ---------- */

.exb {
    --exb-largura: min(1040px, 80vw);
    --exb-vao: 24px;
    position: relative;
    overflow: hidden;
    padding: 6px 0 14px;
}

.exb-trilho {
    display: flex;
    column-gap: var(--exb-vao);
    transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
    touch-action: pan-y;
    will-change: transform;
}

.exb-slide {
    position: relative;
    flex: 0 0 var(--exb-largura);
    aspect-ratio: 2 / 1;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--primary-light);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    opacity: 0.55;
    transform: scale(0.94);
    transition: opacity 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
    user-select: none;
}

.exb-slide.is-ativo {
    opacity: 1;
    transform: none;
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.16);
}

.exb-slide:not(.is-ativo):hover {
    opacity: 0.75;
}

.exb-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.exb-slide:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.45);
    outline-offset: 4px;
}

.exb-controles {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 22px;
}

.exb-seta {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--white);
    color: var(--dark);
    cursor: pointer;
    transition: 0.2s;
}

.exb-seta:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.exb-seta svg {
    width: 18px;
    height: 18px;
}

.exb-pontos {
    display: flex;
    align-items: center;
}

/* A bolinha é pequena, mas a área de toque do botão tem 44 px de altura */
.exb-ponto {
    display: grid;
    place-items: center;
    width: 20px;
    height: 44px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.exb-ponto::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #cbd5e1;
    transition: width 0.3s ease, background 0.3s ease;
}

.exb-ponto[aria-current="true"] {
    width: 34px;
}

.exb-ponto[aria-current="true"]::before {
    width: 24px;
    background: var(--primary);
}

.exb-seta:focus-visible,
.exb-ponto:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.35);
    outline-offset: 2px;
    border-radius: 999px;
}

/* No celular, um contador ("4 / 18") no lugar das bolinhas */
.exb-contador {
    display: none;
    min-width: 64px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.exb--unico .exb-controles {
    display: none;
}

.exb-ver-todos {
    display: flex;
    justify-content: center;
    margin-top: 26px;
}

@media (max-width: 650px) {
    .exb {
        --exb-largura: 88vw;
        --exb-vao: 10px;
    }

    .exb-slide {
        border-radius: 16px;
        transform: none;
    }

    .exb-controles {
        gap: 18px;
    }

    .exb-pontos {
        display: none;
    }

    .exb-contador {
        display: block;
    }
}

@media (prefers-reduced-motion: reduce) {
    .exb-trilho,
    .exb-slide,
    .exb-ponto::before {
        transition: none;
    }
}
