/* HOME DA PARK: CAPA COM BUSCA, CARROSSÉIS DE DESTAQUES E SERVIÇOS. */

body {
    color: #0b0b0c;
    background-color: #f3f4f5;
    -webkit-font-smoothing: antialiased;
}

/* ---------------------------------------------------------------- CAPA */

.capa {
    position: relative;
    z-index: 9;
}

.capa::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    content: "";
    background: rgba(0, 0, 0, .25);
}

.capa__fundo {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.capa__item {
    height: 100vh;
    padding: 90px 0;
}

.capa__interno {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 3rem;
}

/* ---------------------------------------------------------------- BUSCA DA CAPA */

.busca-capa__titulos {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    text-align: center;
}

.busca-capa__titulo {
    position: relative;
    display: inline-block;
    padding-bottom: 5px;
    margin: 0;
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--cor-site-1);
    transition: cubic-bezier(.4, 0, 1, 1) .3s;
}

.busca-capa__subtitulo {
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--cor-site-1);
    transition: cubic-bezier(.4, 0, 1, 1) .3s;
}

.busca-capa__subtitulo::after {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 80px;
    height: 3px;
    content: '';
    background: var(--cor-site-2);
    border-radius: 3px;
    transform: translateX(-50%);
}

.busca-capa {
    padding: 15px;
    background-color: #f5f5f5d1;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, .1);
}

.busca-capa__largura {
    width: 100%;
    max-width: 960px;
    margin: auto;
}

.busca-capa__conteudo {
    text-align: center;
}

.busca-capa__linha {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    justify-content: center;
}

.busca-capa__grupo {
    display: grid;
    grid-template-columns: repeat(3, 180px);
    gap: 15px;
}

.busca-capa__grupo[hidden] {
    display: none;
}

.busca-capa__campo {
    flex: 1 1 200px;
    text-align: left;
}

.busca-capa__campo label {
    display: block;
    margin-bottom: 5px;
    font-weight: 700;
    color: #555;
}

.busca-capa__botao {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    color: #fff;
    background-color: var(--cor-site-1);
    border: none;
    border-radius: 4px;
    transition: background-color .3s ease;
}

.busca-capa__botao:hover {
    background-color: var(--cor-site-2);
}

/* SELETOR DA BUSCA (ÚNICO OU MÚLTIPLO) */
.seletor {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 150px;
    height: 40px;
    padding: 0 10px;
    cursor: pointer;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    transition: all .3s ease;
}

.seletor:hover,
.seletor.aberto {
    border-color: var(--cor-site-3);
    box-shadow: 0 0 5px rgb(48 86 45 / 50%);
}

.seletor::after {
    position: absolute;
    top: 50%;
    right: 10px;
    font-size: 10px;
    color: #777;
    pointer-events: none;
    content: '▼';
    transform: translateY(-50%);
}

.seletor.aberto::after {
    content: '▲';
}

.seletor__valor {
    flex-grow: 1;
    overflow: hidden;
    font-size: 13px;
    color: #333;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.seletor--multiplo .seletor__valor {
    color: #777;
}

.seletor--multiplo .seletor__valor.com-valor {
    color: #333;
}

.seletor__opcoes {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 10;
    display: none;
    max-height: 200px;
    overflow-y: auto;
    background-color: #fff;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, .1);
}

.seletor.aberto .seletor__opcoes {
    display: block;
}

.seletor__opcao {
    padding: 10px;
    font-size: 13px;
    cursor: pointer;
    transition: background-color .2s ease;
}

.seletor__opcao:hover {
    background-color: #f1f1f1;
}

.seletor__opcao--aviso,
.seletor__opcao--aviso:hover {
    color: #777;
    cursor: default;
    background-color: transparent;
}

.seletor__opcao.selecionado {
    font-weight: 700;
    background-color: #e2ffe3;
}

.seletor--multiplo .seletor__opcao.selecionado::before {
    margin-right: 8px;
    color: var(--cor-site-1);
    content: '✓';
}

@media (max-width: 992px) {
    .busca-capa__linha {
        flex-wrap: wrap;
    }

    .busca-capa__grupo {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
    }
}

/* MAIS DE UM BANNER NO PAINEL: OS FUNDOS SE REVEZAM COM FADE (home.js); A BUSCA FICA PARADA */
.capa__fundo[data-capa-fundo] {
    transition: opacity 1s ease;
}

.capa__fundo[data-capa-inativo] {
    opacity: 0;
}

/* TÍTULOS DOS OUTROS BANNERS FICAM ESCONDIDOS (O display: flex DE .busca-capa__titulos VENCERIA O [hidden]) */
.busca-capa__titulos[hidden] {
    display: none;
}

/* TEXTOS DO BANNER: OS DO CADASTRO DE CELULAR SÓ NO CELULAR, OS DE COMPUTADOR SÓ NO COMPUTADOR */
.capa__so-celular,
.busca-capa__cta.capa__so-celular {
    display: none;
}

@media (max-width: 767px) {
    .capa__so-computador,
    .busca-capa__cta.capa__so-computador {
        display: none;
    }

    .capa__so-celular {
        display: inline;
    }

    .busca-capa__cta.capa__so-celular {
        display: inline-block;
    }
}

/* NO CELULAR O BANNER SÓ DE COMPUTADOR NÃO APARECE NEM ANTES DO home.js TROCAR PARA O PRÓXIMO */
@media (max-width: 767px) {
    .capa__fundo[data-capa-so-desktop] {
        display: none;
    }
}

.capa__seta[hidden] {
    display: none;
}

/* SETAS DA CAPA COM MAIS DE UM BANNER: O MESMO GLIFO DAS SETAS DOS DESTAQUES, MAIOR. NOS DESTAQUES A FLECHA VAZADA
   MOSTRA O BRANCO DA PÁGINA; AQUI MOSTRARIA A FOTO, ENTÃO UM DISCO BRANCO DO TAMANHO DO CÍRCULO DO GLIFO (CENTRO A 43,75%
   DO TOPO, RAIO 219/512 DO QUADRADO, COMO NA FONTE DO SLICK) FICA ATRÁS — VERDE A 75% SOBRE BRANCO, IGUAL AOS DESTAQUES. */
.capa__seta {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    font-size: 44px;
    line-height: 1;
    color: var(--cor-site-3);
    cursor: pointer;
    background: radial-gradient(circle .425em at 50% 43.75%, #fff 98%, transparent 100%);
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .1);
    transform: translateY(-50%);
    transition: all .3s ease;
}

.capa__seta--anterior {
    left: 20px;
}

.capa__seta--proxima {
    right: 20px;
}

.capa__seta-glifo {
    width: 1em;
    height: 1em;
    opacity: .75;
}

.capa__seta:hover .capa__seta-glifo,
.capa__seta:focus .capa__seta-glifo {
    opacity: 1;
}

@media (max-width: 767px) {
    .capa__seta {
        width: 34px;
        height: 34px;
        font-size: 34px;
    }

    .capa__seta--anterior {
        left: 8px;
    }

    .capa__seta--proxima {
        right: 8px;
    }
}

/* BOTÃO DO BANNER (TEXTO E LINK DO PAINEL), NO VERDE DO BOTÃO DA BUSCA */
.busca-capa__cta-linha {
    margin: 10px 0 0;
}

.busca-capa__cta {
    display: inline-block;
    padding: 10px 24px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    color: #fff;
    text-decoration: none;
    background-color: var(--cor-site-1);
    border-radius: 4px;
    transition: background-color .3s ease;
}

.busca-capa__cta:hover,
.busca-capa__cta:focus {
    color: #fff;
    background-color: var(--cor-site-2);
}

/* ---------------------------------------------------------------- SEÇÕES */

.secoes {
    position: relative;
    background-color: #fff;
}

.secao-destaques {
    padding: 80px 0;
    background-color: #f9fafc;
}

@media (max-width: 768px) {
    .secao-destaques {
        padding: 60px 0;
    }
}

/* ---------------------------------------------------------------- SERVIÇOS */

.servicos {
    --w: 360px;
    --h: 520px;
    --gap: 56px;
    --easing: cubic-bezier(.2, .7, .2, 1);

    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100svh;
    padding: 56px 16px 96px;
    background: #f9fafc;
}

@media (max-width: 1100px) {
    .servicos {
        --w: 320px;
        --h: 480px;
        --gap: 42px;
    }
}

@media (max-width: 820px) {
    .servicos {
        --w: 280px;
        --h: 420px;
        --gap: 24px;
    }
}

.servicos__slider {
    width: min(1200px, 100%);
    margin-inline: auto;
}

.servicos__palco {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: var(--h);
    overflow: visible;
    touch-action: pan-y;
}

.servicos__cartao {
    position: absolute;
    top: 0;
    display: flex;
    flex-direction: column;
    width: var(--w);
    min-width: 0;
    height: var(--h);
    overflow: hidden;
    color: #fff;
    word-wrap: break-word;
    background-color: #111;
    background-clip: border-box;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 28px 60px rgba(0, 0, 0, .25), 0 10px 18px rgba(0, 0, 0, .08);
    transform-origin: center center;
    transition: transform 620ms var(--easing), opacity 620ms var(--easing), filter 620ms var(--easing);
    will-change: transform, opacity, filter;
}

.servicos__cartao img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.servicos__cartao::after {
    position: absolute;
    inset: 0;
    pointer-events: none;
    content: "";
    background: linear-gradient(to top, rgba(0, 0, 0, .45) 0%, rgba(0, 0, 0, .05) 60%);
}

.servicos__titulo {
    position: absolute;
    right: 26px;
    bottom: 90px;
    left: 26px;
    z-index: 2;
    font-size: clamp(1.2rem, 2.5vw, 2.2rem);
    font-weight: 900;
    line-height: 1.05;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .55);
}

.servicos__botao {
    position: absolute;
    bottom: 22px;
    left: 20px;
    z-index: 3;
    display: inline-block;
    padding: 12px 20px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    background: var(--cor-site-1);
    border: 0;
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .25), 0 2px 6px rgba(0, 0, 0, .2) inset;
    transition: transform .2s ease;
}

.servicos__botao:hover {
    color: #fff;
    background: var(--cor-site-2);
    transform: translateY(-1px);
}

/* TRÊS POSIÇÕES À VISTA: ESQUERDA, CENTRO, DIREITA */
.servicos__cartao[data-pos="0"] {
    z-index: 3;
    opacity: 1;
    transform: translateX(0) scale(1);
}

.servicos__cartao[data-pos="-1"] {
    z-index: 2;
    opacity: .96;
    transform: translateX(calc(var(--w) / -2 - var(--gap))) scale(.9) rotateY(-8deg);
}

.servicos__cartao[data-pos="1"] {
    z-index: 2;
    opacity: .96;
    transform: translateX(calc(var(--w) / 2 + var(--gap))) scale(.9) rotateY(8deg);
}

.servicos__cartao[data-pos="9"] {
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transform: scale(.7);
}

.servicos__controles {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: center;
    margin-top: 24px;
}

.servicos__icone-btn {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 999px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, .08);
}

.servicos__icone-btn svg[hidden] {
    display: none;
}

.servicos__pilula {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 10px 16px;
    background: #fff;
    border: 1px solid #e7e7ea;
    border-radius: 999px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, .08);
}

.servicos__pontos {
    display: flex;
    gap: 10px;
}

.servicos__ponto {
    width: 8px;
    height: 8px;
    background: #cfcfd6;
    border: 0;
    border-radius: 999px;
}

.servicos__ponto[aria-current="true"] {
    background: #0b0b0c;
}

@media (max-width: 600px) {
    .servicos {
        --w: 100vw;
        --h: 380px;
        --gap: 6vw;
    }

    .servicos__slider {
        max-width: 100vw;
        padding: 0;
        overflow-x: hidden;
    }

    .servicos__palco {
        width: 100vw;
        max-width: 100vw;
        padding: 0;
        overflow-x: hidden;
    }

    .servicos__cartao {
        left: 0;
        width: 100vw;
        min-width: 100vw;
        max-width: 100vw;
    }

    .servicos__cartao img {
        max-width: 92vw;
    }
}
