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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f7fb;
    color: #1b2430;
    line-height: 1.6;
}

header {
    background: #ffffff;
    padding: 20px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.logo {
    font-size: 28px;
    font-weight: bold;
}

.logo span {
    color: #1677ff;
}

nav {
    display: flex;
    gap: 24px;
}

nav a {
    text-decoration: none;
    color: #253044;
    font-weight: bold;
}

nav a:hover {
    color: #1677ff;
}

section {
    padding: 90px 8%;
}

#inicio {
    min-height: 560px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, #eef5ff, #ffffff);
}

#inicio h1 {
    font-size: 64px;
    color: #1677ff;
    margin-bottom: 10px;
}

#inicio h2 {
    font-size: 36px;
    max-width: 750px;
    margin-bottom: 20px;
}

#inicio p {
    max-width: 700px;
    font-size: 20px;
    color: #5d6675;
}

section h2 {
    font-size: 38px;
    margin-bottom: 20px;
}

section h3 {
    margin-top: 25px;
    margin-bottom: 8px;
    font-size: 22px;
}

section p {
    max-width: 800px;
    font-size: 18px;
    color: #606a78;
}

#sobre {
    background: #ffffff;
}

#solucoes {
    background: #111827;
    color: #ffffff;
}

#solucoes p {
    color: #c0c7d1;
}

#solucoes h3 {
    color: #ffffff;
}

#sigem {
    background: linear-gradient(135deg, #e7f1ff, #ffffff);
}

#contato {
    text-align: center;
    background: #ffffff;
}

#contato p {
    margin: 0 auto;
}

footer {
    background: #0d1420;
    color: #aeb7c4;
    text-align: center;
    padding: 30px 20px;
}

@media (max-width: 800px) {
    nav {
        display: none;
    }

    #inicio h1 {
        font-size: 46px;
    }

    #inicio h2 {
        font-size: 30px;
    }

    section {
        padding: 65px 6%;
    }
}

.noticias-tech {
    background: #0f172a;
    color: white;
    padding: 70px 0 50px;
    overflow: hidden;
}

.noticias-titulo {
    padding: 0 8%;
    margin-bottom: 35px;
}

.noticias-titulo span {
    color: #3b82f6;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 2px;
}

.noticias-titulo h2 {
    margin-top: 8px;
    margin-bottom: 8px;
    font-size: 34px;
}

.noticias-titulo p {
    color: #b8c0ce;
}

.carrossel-container {
    width: 100%;
    overflow: hidden;
}

.carrossel {
    display: flex;
    gap: 20px;
    width: max-content;
    padding-left: 8%;
    animation: moverNoticias 35s linear infinite;
}

.carrossel:hover {
    animation-play-state: paused;
}

.noticia-card {
    width: 320px;
    min-height: 210px;
    flex-shrink: 0;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.noticia-card .categoria {
    display: inline-block;
    color: #60a5fa;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 14px;
}

.noticia-card h3 {
    font-size: 20px;
    line-height: 1.35;
    margin: 0 0 12px;
}

.noticia-card p {
    color: #cbd5e1;
    font-size: 15px;
    line-height: 1.6;
}

@keyframes moverNoticias {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-50% - 10px));
    }
}

@media (max-width: 800px) {
    .noticia-card {
        width: 280px;
    }

    .carrossel {
        animation-duration: 28s;
    }
}
/* ===== AB.TECH - LAYOUT COMPACTO DE UMA TELA ===== */

body {
    height: 100vh;
    overflow: hidden;
}

header {
    height: 60px;
    padding: 8px 5%;
}

.logo {
    font-size: 24px;
}

section {
    padding: 18px 5%;
}

/* Apresentação principal */
#inicio {
    min-height: auto;
    height: 215px;
    padding: 25px 6%;
}

#inicio h1 {
    font-size: 42px;
    margin-bottom: 2px;
}

#inicio h2 {
    font-size: 25px;
    margin-bottom: 7px;
}

#inicio p {
    font-size: 15px;
}

/* Sobre */
#sobre {
    padding: 14px 6%;
}

#sobre h2 {
    font-size: 22px;
    margin-bottom: 4px;
}

#sobre p {
    font-size: 14px;
}

/* Soluções em linha */
#solucoes {
    padding: 14px 6%;
}

#solucoes h2 {
    font-size: 22px;
    margin-bottom: 7px;
}

#solucoes h3 {
    display: inline-block;
    font-size: 14px;
    margin: 4px 15px 2px 0;
}

#solucoes p {
    display: none;
}

/* SIGEM */
#sigem {
    padding: 13px 6%;
}

#sigem h2 {
    font-size: 22px;
    margin-bottom: 2px;
}

#sigem h3 {
    font-size: 15px;
    margin: 0 0 3px;
}

#sigem p {
    font-size: 13px;
}

/* Contato */
#contato {
    padding: 10px 6%;
}

#contato h2 {
    font-size: 19px;
    margin-bottom: 2px;
}

#contato p {
    font-size: 13px;
}

/* Notícias compactas */
.noticias-tech {
    padding: 12px 0;
}

.noticias-titulo {
    padding: 0 6%;
    margin-bottom: 7px;
}

.noticias-titulo span {
    font-size: 9px;
}

.noticias-titulo h2 {
    font-size: 17px;
    margin: 1px 0;
}

.noticias-titulo p {
    display: none;
}

.noticia-card {
    width: 260px;
    min-height: 90px;
    padding: 10px 14px;
    border-radius: 10px;
}

.noticia-card .categoria {
    font-size: 8px;
    margin-bottom: 2px;
}

.noticia-card h3 {
    font-size: 13px;
    margin: 0 0 3px;
}

.noticia-card p {
    font-size: 10px;
    line-height: 1.3;
}

/* Rodapé mínimo */
footer {
    padding: 6px;
    font-size: 10px;
}
/* CORREÇÃO - AB.Tech não invadir seção seguinte */

#inicio {
    height: auto;
    min-height: 190px;
    padding: 20px 6%;
}

#inicio h1 {
    font-size: 38px;
    line-height: 1.05;
    margin: 0 0 6px 0;
}

#inicio h2 {
    font-size: 23px;
    line-height: 1.2;
    margin: 0 0 8px 0;
}

#inicio p {
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
}
/* ===== AJUSTE FINAL PARA O CARROSSEL APARECER NA TELA ===== */

#inicio {
    min-height: 145px;
    height: 145px;
    padding: 12px 6%;
}

#inicio h1 {
    font-size: 34px;
    margin-bottom: 2px;
}

#inicio h2 {
    font-size: 20px;
    margin-bottom: 4px;
}

#inicio p {
    font-size: 13px;
}

#sobre {
    padding: 8px 6%;
}

#sobre h2 {
    font-size: 18px;
    margin-bottom: 2px;
}

#sobre p {
    font-size: 12px;
}

#solucoes {
    padding: 8px 6%;
}

#solucoes h2 {
    font-size: 18px;
    margin-bottom: 3px;
}

#solucoes h3 {
    font-size: 12px;
    margin: 2px 12px 2px 0;
}

#sigem {
    padding: 7px 6%;
}

#sigem h2 {
    font-size: 18px;
}

#sigem h3 {
    font-size: 13px;
}

#sigem p {
    font-size: 11px;
}

#contato {
    padding: 6px 6%;
}

#contato h2 {
    font-size: 16px;
}

#contato p {
    font-size: 11px;
}

/* Carrossel mais alto e mais visível */

.noticias-tech {
    padding: 10px 0 12px;
}

.noticias-titulo {
    margin-bottom: 6px;
}

.noticias-titulo h2 {
    font-size: 17px;
}

.noticia-card {
    width: 280px;
    min-height: 110px;
    padding: 12px 15px;
}

.noticia-card h3 {
    font-size: 13px;
}

.noticia-card p {
    font-size: 10px;
}

footer {
    padding: 4px;
    font-size: 9px;
}
/* ===== CORREÇÃO PARA CABER TUDO NA TELA ===== */

header {
    height: 55px;
    padding: 6px 5%;
}

#inicio {
    height: 130px;
    min-height: 130px;
    padding: 15px 6%;
}

#inicio h1 {
    font-size: 32px;
    line-height: 1;
    margin-bottom: 4px;
}

#inicio h2 {
    font-size: 20px;
    margin-bottom: 3px;
}

#inicio p {
    font-size: 12px;
}

/* SOBRE */
#sobre {
    padding: 7px 6%;
}

#sobre h2 {
    font-size: 17px;
    margin-bottom: 2px;
}

#sobre p {
    font-size: 11px;
}

/* SOLUÇÕES */
#solucoes {
    padding: 7px 6%;
}

#solucoes h2 {
    font-size: 17px;
    margin-bottom: 3px;
}

#solucoes h3 {
    font-size: 11px;
    margin: 2px 12px 0 0;
}

/* SIGEM */
#sigem {
    padding: 7px 6%;
}

#sigem h2 {
    font-size: 17px;
    margin-bottom: 1px;
}

#sigem h3 {
    font-size: 12px;
    margin: 0;
}

#sigem p {
    font-size: 10px;
}

/* CONTATO */
#contato {
    padding: 6px 6%;
}

#contato h2 {
    font-size: 15px;
    margin: 0;
}

#contato p {
    font-size: 10px;
}

/* NOTÍCIAS */
.noticias-tech {
    padding: 7px 0 8px;
}

.noticias-titulo {
    margin-bottom: 5px;
}

.noticias-titulo h2 {
    font-size: 16px;
    margin: 0;
}

.noticias-titulo span {
    font-size: 8px;
}

.noticia-card {
    width: 280px;
    min-height: 78px;
    height: 78px;
    padding: 8px 12px;
}

.noticia-card .categoria {
    font-size: 7px;
    margin-bottom: 1px;
}

.noticia-card h3 {
    font-size: 11px;
    line-height: 1.15;
    margin: 0 0 2px;
}

.noticia-card p {
    font-size: 8px;
    line-height: 1.2;
}

/* RODAPÉ */
footer {
    padding: 3px;
    font-size: 8px;
}

/* CORREÇÃO PARA PERMITIR ROLAGEM E MOSTRAR NOVOS ELEMENTOS */
body {
    height: auto !important;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto !important;
}

/* BOTÃO DOWNLOAD DO MENU SUPERIOR */
.botao-download-topo {
    display: inline-block;
    background: #1677ff;
    color: #ffffff !important;
    padding: 9px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
}

.botao-download-topo:hover {
    background: #0d5fd3;
    color: #ffffff !important;
}

/* BOTÕES DO TOPO - MESMO ESPAÇAMENTO */
header nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.botao-contato-topo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 160px;
    min-height: 42px;
    padding: 9px 18px;
    background: #1677ff;
    color: #ffffff !important;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    box-sizing: border-box;
}

.botao-contato-topo:hover {
    background: #0d5fd3;
    color: #ffffff !important;
}

/* ==================================================
   BARRA DEFINITIVA DE BOTÕES DO TOPO
   ================================================== */

header .acoes-topo {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    gap: 12px !important;
    margin-left: auto;
}

header .acoes-topo a {
    position: static !important;
    flex-shrink: 0;
    margin: 0 !important;
}

/* No celular os botões podem quebrar linha sem se afastarem */
@media (max-width: 800px) {
    header .acoes-topo {
        display: flex !important;
        flex-wrap: wrap;
        gap: 8px !important;
    }
}

/* ==================================================
   AB.TECH - CORREÇÃO DEFINITIVA PARA CELULAR
   ================================================== */

@media (max-width: 800px) {

    html,
    body {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 100% !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }

    header {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        min-height: 55px !important;
        padding: 10px 16px !important;

        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }

    header .logo {
        font-size: 22px !important;
        text-align: center !important;
    }

    header .acoes-topo,
    header nav {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
        margin: 0 !important;
    }

    header .acoes-topo a,
    header nav a,
    .botao-download-topo,
    .botao-contato-topo {
        position: static !important;
        width: 100% !important;
        max-width: 100% !important;
        min-height: 42px !important;
        margin: 0 !important;
        padding: 10px 12px !important;
        text-align: center !important;
        justify-content: center !important;
        white-space: normal !important;
    }

    section {
        width: 100% !important;
        height: auto !important;
        min-height: auto !important;
        padding: 28px 18px !important;
        overflow: visible !important;
    }

    #inicio {
        height: auto !important;
        min-height: auto !important;
        padding: 35px 18px !important;
    }

    #inicio h1 {
        font-size: 38px !important;
        line-height: 1.1 !important;
        padding: 0 !important;
        margin-bottom: 10px !important;
    }

    #inicio h2 {
        font-size: 24px !important;
        line-height: 1.25 !important;
        margin-bottom: 12px !important;
    }

    #inicio p {
        font-size: 16px !important;
        line-height: 1.5 !important;
    }

    section h2 {
        font-size: 25px !important;
        line-height: 1.25 !important;
    }

    section h3 {
        font-size: 19px !important;
        line-height: 1.3 !important;
    }

    section p {
        width: 100% !important;
        max-width: 100% !important;
        font-size: 16px !important;
        line-height: 1.5 !important;
    }

    img,
    video,
    iframe {
        max-width: 100% !important;
        height: auto !important;
    }

    .noticias-tech {
        width: 100% !important;
        height: auto !important;
        padding: 25px 0 !important;
        overflow-x: hidden !important;
    }

    .noticias-titulo {
        padding: 0 18px !important;
    }

    .noticia-card {
        width: 260px !important;
        max-width: 85vw !important;
        height: auto !important;
        min-height: 100px !important;
    }

    footer {
        width: 100% !important;
        padding: 18px 12px !important;
        font-size: 12px !important;
    }
}

/* No celular o grupo volta ao fluxo normal para não sair da tela */
@media (max-width: 800px) {
    header .acoes-topo {
        position: static !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        margin-left: 0 !important;
        z-index: auto !important;
    }
}

/* AB.Tech - posição dos botões do topo no celular */
@media (max-width: 800px) {
    header .acoes-topo a {
        transform: none !important;
    }
}


/* ==================================================
   BOTÕES DO TOPO - POSIÇÃO INDEPENDENTE NO COMPUTADOR
   ================================================== */

@media (min-width: 801px) {

    header .acoes-topo {
        position: relative !important;
        display: block !important;
        width: 390px !important;
        min-width: 390px !important;
        height: 55px !important;
        margin-left: auto !important;
    }

    header .acoes-topo a {
        position: absolute !important;
        margin: 0 !important;
        flex: none !important;
        flex-grow: 0 !important;
        flex-shrink: 0 !important;
    }

    /* Download */
    header .acoes-topo a:nth-child(1) {
        left: 0;
        top: 5px;
    }

    /* Licença */
    header .acoes-topo a:nth-child(2) {
        left: 145px;
        top: 5px;
    }
}


/* ==================================================
   AB.TECH - CABEÇALHO ROLA JUNTO COM A PÁGINA
   ================================================== */

header {
    position: relative !important;
    top: auto !important;
}

