/* =================================================== */
/* --- GERAL E FUNDO --- */
/* =================================================== */
body {
    background-color: #0a0a0a;
    margin: 0;
    font-family: Arial, sans-serif;
    background-image: url('imgAlltech/img_logo.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    /* Adiciona espaço no fundo para o rodapé não cobrir o conteúdo */
    padding-bottom: 60px;
}

/* =================================================== */
/* --- MENU DE NAVEGAÇÃO --- */
/* =================================================== */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px 0;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-size: 18px;
    font-weight: bold;
    padding: 8px 16px;
    border-radius: 8px;
    transition: background-color 0.3s, color 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
    background-color: #007BFF;
    color: white;
}

/* =================================================== */
/* --- SEÇÕES DE CONTEÚDO (ESTILO PADRÃO) --- */
/* =================================================== */
.section {
    width: 100%;
    min-height: 100vh;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 35px;
    background-color: rgba(0, 0, 0, 0.5);
}

.content-wrapper {
    max-width: 900px;
    width: 100%;
}

/* =================================================== */
/* --- ESTILOS ESPECÍFICOS POR PÁGINA --- */
/* =================================================== */

/* PÁGINA HOME */
#home .content-wrapper {
    text-align: center;
}

#home h1 {
    font-size: 40px;
    margin-bottom: 10px;
}

#home p {
    font-size: 16px;
    line-height: 1.5;
}


/* >>>>> INÍCIO DA CORREÇÃO <<<<< */
/* Página Quem Somos */
#quem-somos .content-wrapper {
      text-align: left;
}
/* >>>>> FIM DA CORREÇÃO <<<<< */

#quem-somos p {
    font-size: 16px;
    line-height: 1.5;
    max-width: 900px; /* Aumentado de 800px para reduzir as margens laterais */
}
.highlight {
    font-size: 12px;
    font-weight: bold; 
    line-height: 1.0;
    font-style: italic;
}


/* PÁGINA SOLUÇÕES */
#solucoes .content-wrapper {
    padding-left: 180px; /* Espaçamento para alinhar no Desktop */
}

.service-item {
    margin-bottom: 35px;
}

.service-title {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.service-item .icon {
    width: 30px;
    height: 30px;
    margin-right: 15px;
}

.service-item h3 {
    margin: 0;
    font-size: 22px;
    font-weight: bold;
}

.service-item .description {
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
    padding-left: 45px; /* Recuo para alinhar com o título */
}

.icon-desen { filter: invert(40%) sepia(100%) saturate(650%) hue-rotate(180deg); }
.icon-support { filter: invert(85%) sepia(50%) saturate(1500%) hue-rotate(350deg); }
.icon-automation { filter: invert(30%) sepia(1450%) saturate(350%) hue-rotate(350deg); }
.icon-server { filter: invert(35%) sepia(90%) saturate(1500%) hue-rotate(340deg); }
.icon-consulting { filter: invert(40%) sepia(100%) saturate(600%) hue-rotate(230deg); }

/* Página Contato */
#contato {
    text-align: center;
    font-size: 20px;
    line-height: 1.5;
}


/* =================================================== */
/* --- RODAPÉ --- */
/* =================================================== */
footer {
    text-align: center;
    font-size: 12px;
    padding: 10px 0;
    background-color: rgba(0, 0, 0, 0.85);
    position: fixed;
    bottom: 0;
    width: 100%;
    color: #a0a0a0;
    z-index: 998;
}

/* =================================================== */
/* --- BANNER DE COOKIES --- */
/* =================================================== */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #1a1a1a;
    color: #f1f1f1;
    padding: 15px 25px;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.2);
    display: none;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    z-index: 2000;
}

#cookie-banner p {
    margin: 0;
    font-size: 14px;
    text-align: center;
}

#cookie-banner button {
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

#cookie-banner button:hover {
    background-color: #0056b3;
}






/* 1) Variáveis: padding vertical dos blocos + altura do rodapé */
:root{
    --vpad-desktop: 80px;   /* padding-top e padding-bottom */
    --vpad-mobile : 30px;
    --footer-h    : 10px;   /* mesmo valor do rodapé fixo   */
}






/* =================================================== */
/* --- DESIGN RESPONSIVO PARA DISPOSITIVOS MÓVEIS --- */
/* =================================================== */

/* ===================================================
   ✅ MOBILE FIRST – aplica até 767 px
   =================================================== */


/* 3) Mobile (≤ 767 px) – usa o padding menor */
@media (max-width: 767px){
    .section{
        min-height: calc(100vh - (var(--vpad-mobile) * 2) - var(--footer-h));
    }
}

/* 4) Mantém o espaço para o rodapé, mas nada além disso */
body{
    padding-bottom: var(--footer-h);  /* já era 60 px – agora usa variável */
}

/* 5) Evita barras laterais inesperadas */
html,body{
    overflow-x: hidden;   /* nunca precisamos rolar na horizontal     */
}


@media screen and (max-width: 767px) {

    /* 1) Background mais leve e sem efeito "fixed"  */
    body{
        background-attachment: scroll;      /* evita jitter */
        padding-bottom: 130px;              /* rodapé fixo */
    }

    /* 2) Nav: cabe em 1 linha e rola para o lado se faltar espaço  */
    nav ul{
        flex-wrap: nowrap;                  /* não quebra */
        overflow-x: auto;
        padding: 0 6px;
        gap: 8px;                           /* espaçamento uniforme */
    }
    nav ul li{
        margin: 0;                          /* já há gap */
    }
    nav ul li a{
        font-size: 13px;                    /* um pouco menor */
        padding: 6px 12px;
        white-space: nowrap;                /* evita quebra de texto */
    }

    /* 3) Seções genéricas */
    .section{
        padding: 70px 18px;                 /* menos margem lateral */
    }
    .content-wrapper{
        max-width: 100%;                    /* usa toda a largura */
    }

    /* 4) HOME  */
    #home h1{font-size: 32px;}
    #home p {font-size: 11px;}
    text-align: center;

    /* 5) SOLUÇÕES */
    #solucoes .content-wrapper{
        padding: 0;                         /* remove empurrão lateral */
    }
    .service-item{
        margin-bottom: 22px;
    }
    .service-title{
        justify-content: flex-start;        /* ícone + texto à esquerda */
        gap: 8px;
    }
    .service-item .icon{
        width: 24px; height: 24px;
    }
    .service-item h3{font-size: 18px;}
    .service-item .description{
        padding-left: 0;                    /* <-- faltava px */
        font-size: 14px;
    }

    /* 6) QUEM SOMOS & CONTATO */
    #quem-somos .content-wrapper,
    #contato .content-wrapper{
        text-align: center;
    }
    #quem-somos p,
    #contato p{
        font-size: 14px;
        line-height: 1.45;
    }
    .highlight{font-size: 11px;}

    /* 7) Banner de cookies empilhado */
    #cookie-banner{flex-direction: column;}
}


/* ===================================================
   🔧 Ajustes finos – Página SOLUÇÕES (mobile ≤ 767 px)
   =================================================== */
@media screen and (max-width: 767px){

    /* 1) cola todo o bloco nas bordas e retira “folga” */
    #solucoes .content-wrapper{
        padding: 0 8px;           /* antes era 0; agora 8 px de respiro */
    }

    /* 2) Ícone + título alinhados totalmente à esquerda */
    .service-title{
        justify-content: flex-start;  /* já estava, mas vamos garantir */
        gap: 6px;                     /* menos espaço entre ícone e texto */
    }
    .service-item .icon{
        margin-right: 6px;            /* ↓ de 15 px para 6 px            */
    }

    /* 3) Descrição com fonte menor e sem recuo */
    .service-item .description{
        font-size: 12px;              /* ↓ de 14 px para 12 px           */
        padding-left: 0;              /* garante zero                    */
        text-align: left;             /* força alinhamento à esquerda    */
    }
}

/////////////*************////////////////

/* =================================================== */
/* === AJUSTE PARA REMOVER A ROLAGEM DESNECESSÁRIA ====*/
/* =================================================== */


/* 3) Mobile (≤ 767 px) – usa o padding menor */
@media (max-width: 767px){
    .section{
        min-height: calc(100vh - (var(--vpad-mobile) * 2) - var(--footer-h));
    }
}

/* 4) Mantém o espaço para o rodapé, mas nada além disso */
body{
    padding-bottom: var(--footer-h);  /* já era 60 px – agora usa variável */
}

/* 5) Evita barras laterais inesperadas */
html,body{
    overflow-x: hidden;   /* nunca precisamos rolar na horizontal     */
}
