/* ====================================================================== */
/* 0. RESET E VARIÁVEIS GLOBAIS (CRÍTICO para 100% de largura)            */
/* ====================================================================== */
:root {
    --primary-color: #007bff;
    --accent-color: #0097b2;    /* Azul Ciano: Cor de Destaque */
    --text-color: #333;
    --light-bg: #f8f9fa;        /* Fundo cinza claro */
}

section {
    padding: 80px 5%;
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    /* 🚨 ESSENCIAL: Impede a barra de rolagem horizontal */
    overflow-x: hidden; 
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    color: var(--text-color);
    background-color: #fff;
}

/* Exceção para a largura 100% do banner */
.consultoria-page-section {
    padding: 0 !important; /* CRÍTICO: Remove o padding lateral do SECTION */
    background-color: #f9f9f9;
}

/* ... (Outras regras de h2, h3, etc.) ... */

/* ====================================================================== */
/* 2. SEÇÃO DE CONSULTORIA DETALHADA (CARROSSEL E CONTEÚDO)               */
/* ====================================================================== */

.consultoria-page-section {
    /* Agora que o carrossel não é 100vw, a seção precisa de padding novamente */
    padding: 60px 5%; /* Restaura o padding lateral padrão */
    background-color: #f9f9f9;
}

/* --- ESTILOS GERAIS DO CARROSSEL --- */
.carousel-container {
    position: relative;
    width: 100%; 
    max-width: 850px; /* Reduz a largura MÁXIMA do carrossel */
    margin: 0 auto; /* Centraliza o carrossel dentro da seção */
    
    height: 400px; 
    overflow: hidden;
    margin-bottom: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    left: auto; 
    transform: none; 
}

.carousel-slides {
    display: flex; /* Para alinhar os slides horizontalmente */
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out; /* Suaviza a transição de slide */
}

.carousel-slide {
    min-width: 100%; /* Cada slide ocupa 100% do container */
    height: 100%;
    position: relative;
    display: none; /* Esconde todos os slides por padrão */
    opacity: 0;
    transition: opacity 1.5s ease; /* Transição de fade */
}

.carousel-slide.active {
    display: block; /* Mostra o slide ativo */
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Garante que a imagem preencha o espaço */
    filter: brightness(0.7); /* Escurece um pouco a imagem para o texto ser legível */
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px 5%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
    color: white;
    text-align: left;
}

.carousel-caption h3 {
    color: white; /* Garante que o título seja branco */
    font-size: 2em;
    margin-bottom: 5px;
}

.carousel-caption p {
    font-size: 1.1em;
    color: #f0f0f0;
}

/* --- Controles de Navegação (Setas) --- */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 25px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0,0,0,0.5);
    z-index: 2;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}

/* --- Indicadores de Slide (Dots) --- */
.carousel-dots {
    position: absolute;
    bottom: 10px;
    width: 100%;
    text-align: center;
    z-index: 2;
}

.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.dot.active, .dot:hover {
    background-color: var(--accent-color); /* Usa sua cor de destaque */
}

/* --- Responsividade do Carrossel --- */
@media screen and (max-width: 768px) {
    .carousel-container {
        height: 250px; /* Altura menor para mobile */
    }
    .carousel-caption h3 {
        font-size: 1.5em;
    }
    .carousel-caption p {
        font-size: 0.9em;
    }
    .prev, .next {
        font-size: 18px;
        padding: 10px;
    }
}

/* ... O restante dos seus estilos para .consultoria-content-wrapper, h2, h3, ul, etc. permanece inalterado ... */

/* ====================================================================== */
/* 1. NAV BAR (Prioridade na estabilidade)                                */
/* ====================================================================== */
/* Nav Bar */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    background-color: #fff; padding: 10px 5%; color: white;
    position: sticky; top: 0; z-index: 100;
}

.logo img { height: 40px; width: auto; display: block; }
.menu-toggle { display: none; cursor: pointer; font-size: 24px; padding: 5px; background: none; border: none; color: #000; z-index: 20; }
.menu-list { list-style: none; margin: 0; padding: 0; display: flex; }
.menu-item { position: relative; margin-left: 20px; }
.menu-item a { color: #0097b2; text-decoration: none; padding: 10px 15px; display: block; font-weight: bold; }
.menu-item a:hover { background-color: #e0e0e0; border-radius: 4px; }

.submenu {
    display: none; position: absolute; top: 100%; right: 0; left: auto;
    background-color: #fff; min-width: 200px; z-index: 10;
    list-style: none; padding: 0; margin: 0; border-radius: 0 0 4px 4px;
}
.submenu-item a { padding: 10px 15px; color: #0097b2; display: block; text-decoration: none; }
.submenu-item a:hover { background-color: #e0e0e0; }
.menu-item:hover .submenu { display: block; }

/* Estilos Responsivos da Nav */
@media screen and (max-width: 768px) {
    .menu-toggle { display: block; }
    .menu-list { 
        display: none; flex-direction: column; width: 100%;
        position: absolute; top: 60px; left: 0; background-color: #fff; 
    }
    .menu-item { margin-left: 0; border-top: 1px solid #fff; width: 100%; }
    .submenu { position: static; background-color: #555; border-radius: 0; min-width: 100%; }
    .menu-item:hover .submenu { display: block; }
    .menu-list.active { display: flex; }
}
/* ====================================================================== */
/* 2.1. BANNER 100% DE LARGURA (IMAGEM NO CSS)                            */
/* ====================================================================== */

/* 1. REGRA CRÍTICA: ANULA O PADDING GLOBAL DA SECTION */
.orcamento-banner-section {
    padding: 0 !important; 
    margin: 0;
}

/* 2. ONDE A IMAGEM SERÁ APLICADA COMO FUNDO */
.banner-wrapper {
    position: relative;
    
    /* 🚨 NOVO CÓDIGO FUNCIONAL BASEADO NO SEU .hero: */
    /* 1. Altere 'img1.webp' para o nome da sua nova imagem (por exemplo, 'orcamento.jpg') */
    background: url('../ControleEAutomacao/Automacao.png') no-repeat center center/cover; 
    
    /* 2. Use vh para altura robusta. 450px que tínhamos antes, é cerca de 50vh */
    height: 50vh; 
    width: 100%;
    /* REMOVA TODAS AS LINHAS ANTERIORES: background-image, background-size, background-position, etc. */
}

/* 3. Estilo do Conteúdo sobreposto e Overlay */
.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* Cria um filtro de escurecimento para garantir a legibilidade do texto */
    background-color: rgba(0, 0, 0, 0.45); /* Cor preta com 45% de opacidade */
    
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 5%; /* Padding para o CONTEÚDO (texto) - NÃO para o wrapper */
    color: #fff;
}

/* Os estilos para h1, p e .btn-banner podem ser mantidos como antes: */
.banner-overlay h1 {
    font-size: 3.5em;
    margin: 0 0 15px 0;
    font-weight: 900;
    color: white; 
}
/* ... (o resto dos estilos de h1, p e botão) ... */

/* Responsividade do Banner (ajustado para o novo wrapper) */
@media screen and (max-width: 992px) {
    .banner-wrapper {
        height: 350px; 
    }
    /* ... (o resto dos estilos de mobile) ... */
}

/* ================================================= */
/* ESTILOS DA SEÇÃO DE CONSULTORIA                   */
/* ================================================= */

/* --- Wrapper do Conteúdo (Texto) --- */
.consultoria-content-wrapper {
    max-width: 900px; 
    margin: 0 auto; 
    padding: 0 20px;
    line-height: 1.7;
    font-size: 1.1em;
}

/* Título "CONSULTORIA" com a barra (AGORA COM PSEUDOCLASSE) */
.consultoria-content-wrapper .section-title-highlight {
    font-size: 2.2em;
    color: #333;
    
    /* ALINHAMENTO PRINCIPAL */
    text-align: left; 
    
    /* Usamos 'display: block' para que o H2 ocupe toda a largura do wrapper */
    display: block; 
    
    margin: 0 0 40px 0; /* Alinha o bloco H2 à esquerda, adiciona margem abaixo da barra */
    padding-bottom: 10px; /* Espaço entre o texto e a barra */
    position: relative;
    width: 100%; /* Ocupa 100% da largura do wrapper para que a barra vá junto */
}

/* 🚨 A REGRA QUE CRIA O RETÂNGULO DE DESTAQUE 🚨 */
.consultoria-content-wrapper .section-title-highlight::after {
    content: ""; /* Obrigatório */
    
    /* Posição da Barra: Fixo à esquerda */
    position: absolute; 
    bottom: 0; 
    left: 0; /* CRÍTICO: Alinha a barra à esquerda */
    
    /* Dimensões da Barra (Espessura aumentada para 6px) */
    width: 100px; 
    height: 6px; 
    background-color: #0097b2; 
    border-radius: 2px;
}


/* Estilo para os subtítulos (h3) */
.consultoria-content-wrapper h3 {
    color: #0097b2; 
    font-size: 1.6em;
    margin-top: 30px;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee; 
    padding-bottom: 5px;
    
    /* ALINHAMENTO PRINCIPAL */
    text-align: left;
}

/* Estilo para as listas (ul) - Garantindo que os textos sejam alinhados com o h3 */
.consultoria-content-wrapper ul {
    list-style: none; 
    padding: 0;
    margin-bottom: 25px;
    /* Alinha o bloco da lista à esquerda */
    text-align: left;
}

.consultoria-content-wrapper ul li {
    padding-left: 30px; 
    position: relative;
    margin-bottom: 10px;
    color: #555;
    /* Adicione text-align: left; se o texto de cada item estiver desalinhado */
}

.consultoria-content-wrapper ul li::before {
    content: "\f058"; 
    font-family: "Font Awesome 5 Free"; 
    font-weight: 900; 
    position: absolute;
    left: 0;
    color: #28a745;
}

/* ================================================= */
/* RESPONSIVIDADE PARA A SEÇÃO DE CONSULTORIA        */
/* ================================================= */
@media screen and (max-width: 768px) {
    .consultoria-image-banner {
        height: 250px;
        margin-bottom: 30px;
    }

    .consultoria-image-banner .image-text {
        font-size: 1.8em;
    }

    .consultoria-content-wrapper {
        padding: 0 5%;
    }

    .consultoria-content-wrapper .section-title-highlight {
        font-size: 1.8em;
    }

    .consultoria-content-wrapper h3 {
        font-size: 1.4em;
    }

    .consultoria-content-wrapper p, 
    .consultoria-content-wrapper ul li {
        font-size: 1em;
    }
}

/* ================================================= */
/* 5. SEÇÃO DE ORÇAMENTO (Formulário)                */
/* ================================================= */
.quote-section {
    background-color: var(--light-bg);
    text-align: center;
    
}
.btn-rounded {
    background-color: #0097b2;
    color: white;
    text-decoration: none;
    padding: 12px 30px;
    border: none;
    border-radius: 50px; 
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    
    /* ADICIONA O EFEITO DE PULSAÇÃO */
    animation: pulse 2s infinite; 
}
.quote-section h2{
    font-size: 40px;
    font-weight: bold;
}
.destaque-orcamento{
    color: #0097b2;
    font-size: 40px;
    font-weight: bold;
}

.quote-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background-color: white;
    border-radius: 15px; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.quote-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.quote-form input, .quote-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box; 
}

.quote-form textarea {
    resize: vertical;
}

.quote-form button {
    width: 100%;
    padding: 15px;
    border-radius: 50px; 
    font-size: 1.1em;
    margin-top: 10px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px; 
}

.quote-form input, .quote-form textarea {
    margin-bottom: 0; 
}

.form-grid > div {
    margin-bottom: 20px; 
}


@media screen and (max-width: 600px) {
    .form-grid {

        grid-template-columns: 1fr;
    }
}

/* ================================================= */
/* 6. RODAPÉ (Footer)                                */
/* ================================================= */
.footer-bottom {
    width: 100%;
    text-align: left;
    padding-top: 10px; 
    margin-top: 0;  
    border-top: none;
    font-size: 0.75em; 
    opacity: 0.7;   
}

.footer {
    flex-direction: row;
    flex-wrap: wrap; 
    background-color: #e0e0e0;
    color: #000;
    padding: 40px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-logo-area {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 300px;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 50px; 
    margin-right: 20px;
}

.divider {
    height: 60px;
    width: 2px;
    background-color: black;
    margin-right: 20px;
}

.footer-info-area {
    flex: 2;
    min-width: 300px;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    flex-direction: column;
}

.footer-column h4 {
    color: #000;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.1em;
    text-align: left;
}

.footer-column p {
    margin: 5px 0;
    font-size: 0.9em;
}

.footer-telemetria a {
    color: #000;
    text-decoration: none;
    cursor: not-allowed; 
    opacity: 0.7;
    display: block;
    margin-top: 10px;
}

/* ================================================= */
/* ESTILO DO BOTÃO FLUTUANTE WHATSAPP (FIXO E PULSANTE) */
/* ================================================= */

.whatsapp-float {
    position: fixed; 
    bottom: 20px; 
    right: 20px;  
    width: 60px;
    height: 60px;
    line-height: 60px; 
    background-color: #25d366; 
    color: white;
    text-align: center;
    border-radius: 50%; 
    box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.4);
    z-index: 9999; 
    font-size: 28px;
    transition: background-color 0.3s ease;
    
    /* CHAVE PARA O EFEITO DE PISCAR */
    animation: pulse 2s infinite; 
}

.whatsapp-float:hover {
    background-color: #128c7e; 
    animation: none; /* Para o efeito de piscar quando o mouse está em cima */
}

/* ------------------------------------------------- */
/* KEYFRAMES PARA O EFEITO DE PISCAR/PULSAR (SUAVE)  */
/* ------------------------------------------------- */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        /* Cria um círculo que se expande */
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); 
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}


/* ================================================= */
/* ESTILO DO BALÃO DE TEXTO ("Fale Conosco")         */
/* ================================================= */

.whatsapp-float .whatsapp-text {
    /* Posição em relação ao elemento pai (.whatsapp-float) */
    position: absolute;
    right: 70px; /* Distância do botão */
    top: 50%;
    transform: translateY(-50%); /* Centraliza verticalmente */
    
    /* Aparência */
    background-color: white;
    color: #333;
    padding: 8px 15px;
    border-radius: 5px;
    white-space: nowrap; /* Mantém o texto em uma linha */
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    
    /* Esconde o balão por padrão */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

/* Triângulo (Seta) do Balão */
.whatsapp-float .whatsapp-text::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -5px; /* Posição para apontar para o botão */
    transform: translateY(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background-color: white;
    box-shadow: 1px -1px 1px rgba(0, 0, 0, 0.1);
}

/* Mostra o balão ao passar o mouse */
.whatsapp-float:hover .whatsapp-text {
    opacity: 1;
    visibility: visible;
}

@media screen and (max-width: 768px) {
    .footer { flex-direction: column; text-align: center; }
    .footer-logo-area { flex-direction: column; align-items: center; margin-bottom: 30px; }
    .divider { display: none; }
    .footer-logo img { margin-right: 0; margin-bottom: 15px; }
    .footer-info-area { justify-content: center; text-align: center; }
    .footer-column h4 { text-align: center; }
}
/* ====================================================================== */
/* 3. MEDIA QUERIES (Responsividade)                                      */
/* ====================================================================== */
@media screen and (max-width: 768px) {
    
    /* --- NAV RESPONSIVA --- */
    .menu-toggle { 
        display: block; 
    }
    .menu-list { 
        display: none; flex-direction: column; width: 100%;
        position: absolute; top: 60px; left: 0; background-color: #fff; 
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        padding-bottom: 10px;
    }
    .menu-list.active { display: flex; }
    .menu-item { margin-left: 0; border-top: 1px solid #e0e0e0; width: 100%; }
    
    /* Submenu Mobile */
    .menu-item-has-submenu { display: flex; justify-content: space-between; align-items: center; width: 100%; }
    .submenu-toggle { display: block; color: #000; }
    .submenu { position: static; background-color: #f0f0f0; width: 100%; } /* CRÍTICO: Flui no layout */
    .submenu.expanded { display: block !important; }
    .submenu-toggle.active i.fa-plus { transform: rotate(45deg); }
    
    /* --- OUTRAS SEÇÕES --- */
    .form-grid { grid-template-columns: 1fr; }
    .footer { flex-direction: column; }
    .consultoria-page-section { padding: 60px 0; } /* Restaura padding vertical para mobile */
}

/* ... (O restante dos seus estilos de Footer, WhatsApp, etc. devem estar anexados) ... */