/* Estilos responsivos - imagens removidas */

/* RESPONSIVO: otimizações gerais */
html, body {
    -webkit-text-size-adjust: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}
*, *::before, *::after { box-sizing: inherit; }

/* Ajustes globais para imagens e vídeos */
img, picture, video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Pequenos dispositivos (celulares) */
@media (max-width: 480px) {
    .titulo-font, .name-animated {
        font-size: 36px;
        top: 40px;
        right: 0;
        text-align: center;
        display: block;
        margin: 0 auto;
        width: 100%;
        padding: 0 12px;
    }

    .texto-fonte {
        font-size: 16px;
        top: 40px;
        margin-top: 24px;
        padding: 0 12px;
    }

    .texto-terciario { font-size: 38px; top: 100px; }

    .carrossel { max-width: 100%; margin: 12px auto; }
    .slide, .slide-active { border-radius: 6px; }

    .botao {
        width: 150px;
        height: 48px;
        font-size: 16px;
        border-radius: 18px;
        margin-top: 60px; /* afastar do topo em celulares */
    }

    /* Corrige estouro da imagem de tela inicial em celulares */
    .imagem-background {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100dvh;
        overflow: hidden;
        z-index: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .imagem-telainicial {
        /* mostrar toda a imagem sem cortar ou ampliar além do necessário */
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
        object-position: center;
        display: block;
    }

    .button-voltar { top: 10px; left: 10px; }
    .contador-wrapper { grid-template-columns: 1fr; gap: 18px; margin-top: 120px; }
    .contador-numero { font-size: 48px; }
}

/* Tablets (retrato e paisagem pequenas) */
@media (min-width: 481px) and (max-width: 768px) {
    .titulo-font, .name-animated {
        font-size: 56px;
        top: 56px;
        /* eliminate horizontal offset so it's centered */
        right: 0;
        text-align: center;
        display: block;
        width: 100%;
        margin: 0 auto;
        padding: 0 16px;
    }

    

    .texto-fonte { font-size: 20px; top: 60px; padding: 0 20px; }
    .carrossel { max-width: 92%; }
    .botao { width: 170px; height: 56px; font-size: 18px; }
    .contador-wrapper { grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 160px; }
}

/* Notebooks e telas médias */
@media (min-width: 769px) and (max-width: 1366px) {
    .titulo-font, .name-animated {
        font-size: 72px;
        top: 72px;
        right: 0;
        text-align: center;
        display: block;
        width: 100%;
        margin: 0 auto;
    }

    .texto-fonte { font-size: 24px; top: 80px; }
    .carrossel { max-width: 900px; }
    .botao { width: 200px; height: 62px; font-size: 22px; }
    .contador-wrapper { grid-template-columns: repeat(2, auto); gap: 32px; margin-top: 200px; }
}

/* Grandes telas / Desktop */
@media (min-width: 1367px) {
    .titulo-font, .name-animated {
        font-size: 83px;
        top: 80px;
        right: 0;
        text-align: center;
        display: block;
        width: 100%;
        margin: 0 auto;
    }

    .texto-fonte { font-size: 29px; top: 100px; }
    .carrossel { max-width: 1000px; }
}

/* Acessibilidade: manter legibilidade em zoom */
@media (prefers-reduced-motion: reduce) {
    .titulo-font, .name-animated, .button-voltar .botao {
        animation: none !important;
        background-position: initial !important;
    }
}
/* removed duplicate mobile rule; handled above */