* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
html {
    background-color: #c1a9a6;
}

.container {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 0 16px;
}

.main {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
    margin-left: -16px;
    background: url('./../img/background.gif') no-repeat;
    background-size: cover;
}

.main-content {
    display: grid;
    gap: 35px;
    justify-items: center;
}

.main-content img {
    animation: arise 2s ease-in-out;
}

.main-content button {
    background-color: #e2949c;
    border-radius: 16px;
    border: none;
    padding: 15px;
    color: white;
    width: 100%;
    max-width: 400px;
    font-size: 25px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    cursor: pointer;
    animation: pulse 2s infinite ease-in-out, arise 2s ease-in-out;
}

@keyframes arise {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(0.9);
    }
}

.section {
    width: 100%;
    height: 100vh;
    padding: 46px 0;
}

.video-content {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.video {

    height: 100%;
}

.video video {
    height: 100%;
    border-radius: 20px;
}

.grids {
    position: absolute;
    display: flex;
    justify-content: space-around;
    width: 100%;
}

.feature {
    background: #fff;
    border-radius: 14px;
    padding: 18px;
    text-align: center;
    display: grid;
    gap: 8px;

    width: 15%;
}

.feature img {
    width: 30%;
    margin: 0 auto;
}

.feature h3 {
    font-size: 30px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: #e2949c;
}

.feature p {
    font-size: 24px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: #e2949c;
    line-height: 1.35
}

.feature p button {
    width: 100%;
    background: #e2949c;
    color: #fff;
    border: 0;
    border-radius: 10px;
    padding: 14px 0;
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    font-weight: 600;
    box-shadow: var(--shadow);
    cursor: pointer;
}

.title-previas {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    text-align: center;
    font-size: 34px;
    color: white;
}

.container-previa-catalogo {
    position: relative;
    overflow: hidden;
    margin-top: 12px;
}

.carousel-inner {
    width: 100%;
    overflow: hidden;
}

.track {
    display: grid;
    grid-auto-flow: column;
    /* o JS seta --pv (itens por view) e --gap dinamicamente */
    --pv: 4;
    --gap: 24px;
    grid-auto-columns: calc((100% - (var(--pv) - 1) * var(--gap)) / var(--pv));
    gap: var(--gap);
    transition: transform .5s ease;
}

.card {
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
}

.card img {
    width: 100%;
    height: auto;
    display: block;
}

.dots {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 12px 0;
    gap: 8px;
}

.dot {
    width: 34px;
    height: 6px;
    border-radius: 99px;
    background: #fff;
    opacity: .55
}

.dot.is-active {
    opacity: 1
}

.btn-ver-mais {
    display: flex;
    justify-content: center;
}

.btn-ver-mais button {
    width: min(360px, 86vw);
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    text-align: center;
    background: #e2949c;
    color: #fff;
    border: 0;
    border-radius: 10px;
    padding: 14px 20px;
    font-weight: 600;
    box-shadow: var(--shadow);
    cursor: pointer;
}

footer {
    display: flex;
    justify-content: center;
    gap: 10vw;
    margin-top: 16px;
}

.contats {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.contats h4 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.25vw;
}

.logo-rodape {
    width: 7.5vw;
    height: auto;
}

.redes {
    display: flex;
    gap: 2.5vw;
}

.redes img {
    width: 2.5vw;
    cursor: pointer;
}


@media (max-width: 900px) {
    .video {
        height: 65vh;
        margin-bottom: 27.5vh;
    }

    .feature {
        width: 45%;
        margin-top: 70vh;
    }

    .feature img {
        width: 35%;
    }

    .feature h3 {
        font-size: 24px;
    }

    .feature p {
        font-size: 18px;
    }

    .title-previas {
        font-size: 28px;
    }

    .contats h4 {
        font-size: 3vw;
    }

    .logo-rodape {
        width: 20vw;
    }

    .redes img {
        width: 5vw;
    }
}

@media (max-width: 575px) {
    .card img {
        max-width: 90vw;
        max-height: 70vh;
        border-radius: 20px;
    }
}

/* ---------- Variáveis responsivas ---------- */
:root {
    /* tamanho do botão flutuante (mín 48px p/ toque, cresce em telas grandes) */
    --fab: clamp(48px, 4.8vw, 64px);
    /* distâncias verticais quando abre (1º e 2º ícone) */
    --gap-1: clamp(56px, 7vw, 88px);
    --gap-2: calc(var(--gap-1) * 2);
    /* sombra suave */
    --fab-shadow: 0 10px 24px rgba(0, 0, 0, .18), 0 2px 6px rgba(0, 0, 0, .12);
}

/* ---------- Container fixo no canto ---------- */
.menu-float {
    position: fixed;
    left: calc(16px + env(safe-area-inset-right, 0px));
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 9999;
    width: var(--fab);
    height: var(--fab);
    /* evita clicar através dos filhos invisíveis */
    pointer-events: none;
}

/* ---------- Botões ---------- */
.icon-float {
    position: absolute;
    /* todos empilhados no canto */
    right: 0;
    bottom: 0;
    width: var(--fab);
    height: var(--fab);
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #000;
    box-shadow: var(--fab-shadow);
    cursor: pointer;
    pointer-events: auto;
    /* reabilita clique */
    transition: transform .38s cubic-bezier(.22, .75, .25, 1),
        opacity .25s ease, background .2s ease;
    will-change: transform, opacity;
}

.icon-float img {
    width: 60%;
    height: 60%;
    object-fit: contain;
    display: block;
}

.icon-float .item-icon {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

/* Estado inicial (fechado): ícones extras ficam embaixo do botão principal */
.icon-whatsapp,
.icon-instagram {
    opacity: 0;
    transform: translateY(0);
    pointer-events: none;
}

/* Quando abrirem, ficam visíveis e clicáveis */
.showingFirst,
.showingSecond {
    pointer-events: auto !important;
    cursor: pointer;
}

/* Botão principal (o que vira “X”) */
.icon-float:nth-child(1) {
    z-index: 3;
}

/* principal por cima */
.icon-float:nth-child(2) {
    z-index: 2;
}

/* whatsapp */
.icon-float:nth-child(3) {
    z-index: 1;
}

/* instagram */

/* ---------- Animações de rotação do botão principal ---------- */
.rotateOpen {
    animation: rotateOpen .35s forwards ease;
}

.rotateClose {
    animation: rotateClose .35s forwards ease;
}

@keyframes rotateOpen {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(180deg);
    }
}

@keyframes rotateClose {
    from {
        transform: rotate(180deg);
    }

    to {
        transform: rotate(0deg);
    }
}

/* ---------- Mostrar / Esconder (usando transform, não margin) ---------- */
.showingFirst {
    animation: showingFirst .42s forwards cubic-bezier(.22, .75, .25, 1);
}

.showingSecond {
    animation: showingSecond .48s forwards cubic-bezier(.22, .75, .25, 1);
}

.hidingFirst {
    animation: hidingFirst .34s forwards ease;
}

.hidingSecond {
    animation: hidingSecond .34s forwards ease;
}

@keyframes showingFirst {
    0% {
        transform: translateY(0);
        opacity: 0;
    }

    100% {
        transform: translateY(calc(-1 * var(--gap-1)));
        opacity: 1;
    }
}

@keyframes showingSecond {
    0% {
        transform: translateY(0);
        opacity: 0;
    }

    100% {
        transform: translateY(calc(-1 * var(--gap-2)));
        opacity: 1;
    }
}

@keyframes hidingFirst {
    0% {
        transform: translateY(calc(-1 * var(--gap-1)));
        opacity: 1;
    }

    100% {
        transform: translateY(0);
        opacity: 0;
    }
}

@keyframes hidingSecond {
    0% {
        transform: translateY(calc(-1 * var(--gap-2)));
        opacity: 1;
    }

    100% {
        transform: translateY(0);
        opacity: 0;
    }
}

/* ---------- Acessibilidade e toques ---------- */
.icon-float:active {
    transform: scale(.96);
}

/* ---------- Telas com pouca altura: reduza o deslocamento p/ caber ---------- */
@media (max-height: 600px) {
    :root {
        --gap-1: clamp(44px, 12vh, 64px);
        --gap-2: calc(var(--gap-1) * 1.9);
    }
}