body{
    width: 100%;
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    min-height: auto;
    background:#051c44;
    position: relative;
    overflow-x: hidden;
}

.hero{
    width:100%;
    height: 100%;
    height:100vh;
    position:relative;
    overflow:hidden;
}

.overlay {
    position: absolute; /* ou fixed, dependendo do seu layout */
    bottom: 0;
    left: 0;
    width: 100%;
    height: 300px; /* Ajuste a altura da transição como preferir */
    background: linear-gradient(
        to bottom,
        transparent,
        #051c44 90% /* Termina exatamente na cor escura do final do body */
    );
    pointer-events: none; /* Garante que o overlay não bloqueie cliques em botões por trás dele */
    z-index: 1; /* Ajuste para ficar acima do fundo, mas abaixo do conteúdo principal */
}

.hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
    margin: auto;
    height: 100%;
    
    /* O preto domina do topo até 90%, e o azul surge só nos últimos 10% */
    background: linear-gradient(
        to bottom, 
        #000000 0%,
        #050505 90%, /* Mantém quase tudo preto */
        #0f1d35 100% /* O azul aparece bem concentrado no finalzinho */
    );
}

.navbar{
    width: 100%;
    position: relative;
    height: auto;
    display:flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.616);
}

.cabecalho{
    width: 100%;
    height:100px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding-left: 5%;
    padding-right: 5%;
    box-sizing: border-box;
}

.logo img{
    width: 150px;
}

.menu{
    display:flex;
    width: auto;
    list-style:none;
    gap:40px;
}

.menu li a{
    text-decoration:none;
    color: black;
    font-size:16px;
    font-weight:500;
    display: inline-block; 
    transition: color 0.3s, transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.menu li a:hover{
    color: red;
    transform: scale(1.20); 
}

.menu-toggle {
    display: none;
}

.MenuMob {
    display: none;
}

.hero-content{
    height:100%;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    text-align:center;
    color:white;
    margin-top:-50px;
}

.hero-content h1{
    font-size:40px;
    line-height:1.05;
    font-weight:800;
    letter-spacing:2px;
    text-shadow:0 5px 20px rgba(0,0,0,.5);
}

.hero-content h2{
    font-size:20px;
    line-height:1.05;
    font-weight:800;
    letter-spacing:2px;
    text-shadow:0 5px 20px rgba(0,0,0,.5);
}

.hero-content p{
    font-size:25px;
    font-weight:500;
    margin-top:10px;
}

.Portifolio{
    display: flex;
    flex-direction: column;
    width:100%;
    height:auto;
    padding-top: 5%;
    gap: 40px;
    position:relative;
}

.Residencial,.Industrial,.Hospitalar{
    display: flex;
    flex-direction: column;
    width:100%;
    height:auto;
    gap: 40px;
    align-items: center;
    justify-content: space-around;
    position:relative;
}

.Titulo{
    width: 100%;
    display: flex;
    justify-content: center;
    text-align: center;
}

.colection1,.colection2,.colection3,.colection4,.colection5,.colection6{
    display: flex;
    width: 95%;
    height: auto;
    align-items: flex-start; /* <--- MUDEI DE center PARA flex-start */
    justify-content: center;
    gap: 20px;
    position: relative;
}

.imgColection {
    width: 200px;
    height: auto;
}

.imgColection img {
    width: 100%;
    height: 150px; /* Força a altura a respeitar os 150px da div pai */
    object-fit: cover; /* Corta o excesso proporcionalmente sem distorcer */
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

/* E crie este novo bloco para o efeito de zoom */
.imgColection img:hover {
    transform: scale(1.05); /* Aumenta a imagem em 5% (ajuste para 1.1 se quiser maior) */
}

.imgColection h2{
    font-size: 16px;
    text-align: center;
    color: white;
}

.informações{
    display: flex;
    flex-direction: column;
    width: 100%;
    background: black;
    margin-top: 5%;
}

.dados-legais{
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
    position: relative;
}

.dados-legais p{
    color: white;
}

.termosPolitica{
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
    position: relative;
}

.termosPolitica a{
    color: white;
}

.termosPolitica p{
    color: white;
}

/* Container de fundo do Modal (Cobre a tela toda) */
.modal-container {
    display: none; /* Fica escondido até o clique */
    position: fixed;
    z-index: 9999; /* Fica acima de absolutamente tudo */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Escurece o fundo */
    backdrop-filter: blur(8px); /* Deixa tudo o que está atrás da div borrado */
    -webkit-backdrop-filter: blur(8px); /* Compatibilidade com Safari/iOS */
    align-items: center;
    justify-content: center;
}

/* Caixa centralizada do Modal */
.modal-conteudo {
    background-color: #0b0f19; /* Fundo escuro combinando com seu site */
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.85);
    font-family: 'Poppins', sans-serif;
    padding: 30px;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 85vh; /* Não deixa o modal cortar em telas pequenas */
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
    animation: abrirModalSuave 0.3s ease forwards;
}

/* Título */
.modal-conteudo h2 {
    color: #00e5ff; /* Azul Ártico */
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

/* Subtítulos internos */
.modal-conteudo h3 {
    color: #ffffff;
    font-size: 16px;
    margin-top: 20px;
    margin-bottom: 10px;
}

/* Área de texto rolável interna (Garante que o texto grande não quebre o layout) */
.modal-texto-corrido {
    overflow-y: auto; /* Cria barra de rolagem interna se necessário */
    padding-right: 10px;
    flex-grow: 1;
    text-align: left;
}

.modal-texto-corrido p {
    font-size: 13.5px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
}

.modal-texto-corrido ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 25px;
}

.modal-texto-corrido li {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 10px;
    line-height: 1.5;
}

.data-politica {
    font-style: italic;
    font-size: 12px !important;
    color: rgba(255, 255, 255, 0.4) !important;
    margin-top: 25px;
}

/* Personalização da barra de rolagem do texto para ficar bonita e discreta */
.modal-texto-corrido::-webkit-scrollbar {
    width: 6px;
}
.modal-texto-corrido::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

/* Botão Vermelho de Voltar */
.btn-fechar-modal {
    background: #ff003c; /* Vermelho vibrante Arcontech */
    color: #ffffff;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    width: 100%;
    transition: background 0.2s, transform 0.1s;
}

.btn-fechar-modal:hover {
    background: #e60035;
    transform: translateY(-1px);
}

.btn-fechar-modal:active {
    transform: translateY(0);
}

/* Animação de surgimento */
@keyframes abrirModalSuave {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal {
    display: none; /* Começa oculto por padrão */
    position: fixed; /* Prende na tela inteira, ignorando scroll */
    top: 0;
    left: 0;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85); /* Fundo escuro cobrindo tudo */
    z-index: 9999; /* Garante que fica acima de qualquer elemento da página */
    overflow-y: auto; /* Permite rolar se o conteúdo do modal for grande */
}

.modal.ativo {
    display: flex;
}

.BtnFechar{
    display: flex;
    justify-content: right;
    align-items: center;
    width: 98%;
    height: 5%;
    cursor: pointer;
}

.Geralimg{
    display: flex;
    align-items: center;
    width: 100%;
    height: 90%;
    background: rgb(95, 95, 95);
}

.Img {
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    justify-content: center;
    width: 60%;
    gap: 30px;
    height: 90%;
}

/* Garante que a div interna não estoure o espaço */
.Img .imagem {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Substitui os tamanhos fixos por limites máximos flexíveis */
.Img img {
    max-width: 750px;   /* Largura máxima permitida */
    max-height: 400px;  /* Altura máxima permitida */
    width: auto;        /* Deixa proporcional */
    height: auto;       /* Deixa proporcional */
    object-fit: contain; /* Mostra a imagem inteira sem cortes ou distorções */
    border-radius: 5px;  /* Opcional para dar um acabamento */
}

.botoes{
    width: 100%;
    height: auto;
    display: flex;
    gap: 40px;
    justify-content: center;
    align-items: center;
}

.botoes button {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    font-size: 1.1rem;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    cursor: pointer !important; /* Força a mãozinha em cima de qualquer circunstância */
    user-select: none;
    -webkit-user-select: none; /* Bloqueia no Chrome, Safari e Edge */
    -moz-user-select: none;    /* Bloqueia no Firefox */
    -ms-user-select: none;     /* Bloqueia no IE antigo */
}

.botoes button:hover {
    background-color: #fff;
    color: #000;
    border-color: #fff;
    
    /* Garante que no hover o cursor continue sendo a mãozinha */
    cursor: pointer; 
}

.Galeria {
    flex: 1;
    width: 40%;
    max-height: 100%; 
    overflow-x: hidden;
    overflow-y: auto; /* Mantém a rolagem funcional */
    background: black;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Deixa o scroll invisível por padrão e só aparece ao passar o mouse (para navegadores Webkit como Chrome, Edge e Safari) */
.Galeria::-webkit-scrollbar {
    width: 6px; /* Largura bem fina */
}

.Galeria::-webkit-scrollbar-track {
    background: transparent; /* Fundo transparente */
}

.Galeria::-webkit-scrollbar-thumb {
    background: transparent; /* Invisível por padrão */
    border-radius: 10px;
    transition: background 0.3s ease;
}

.Galeria:hover::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.4); /* Aparece cinza/branco translúcido ao passar o mouse */
}

.Galeria h1{
    width: 90%;
    color: white;
    font-size: 24px;
}

.Galeria h2{
    width: 90%;
    color: white;
    font-size: 18px;
}

.Galeria p{
    width: 90%;
    color: white;
    font-size: 14px;
}

.fotos{
    display: flex;
    align-items: center;
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    justify-content: space-around;
}

.fotos img{
    width: 200px;
    height: 150px;
    cursor: pointer;
    border-radius: 10px;
    transition: transform 0.3s ease; /* Define a velocidade e suavidade do efeito */
}

.fotos img:hover {
    transform: scale(1.05); /* Aumenta a imagem em 5% (ajuste para 1.1 se quiser maior) */
}

/* Estilo especial para a miniatura da foto que está sendo exibida em tamanho grande */
.fotos img.ativa-miniatura {
    transform: scale(1.05);
    border: 3px solid #023fa8; /* Cor da borda de destaque (mude se preferir) */
    box-shadow: 0 0 10px rgb(20, 101, 250);
}

/* Fundo escuro de tela cheia */
.lightbox-overlay {
    display: none; /* Começa oculto */
    position: fixed;
    z-index: 99999; /* Fica acima de tudo, inclusive do modal */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Fundo bem escuro */
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Evita barras de rolagem no fundo escuro */
}

/* Imagem ampliada com suporte a zoom */
.lightbox-overlay img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0,0,0,0.8);
    cursor: zoom-in;
    transition: transform 0.1s ease-out; /* Deixa o movimento suave */
    transform-origin: center center;
}

/* Botão de fechar (X) no canto */
.lightbox-fechar {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    z-index: 100000; /* Garante que fica acima da imagem com zoom */
    transition: color 0.2s;
}

.lightbox-fechar:hover {
    color: #e74c3c;
}

/* Deixa o cursor da foto principal do modal com cara de "clicável" */
.Img .imagem img {
    cursor: zoom-in;
}

@media screen and (max-width: 1024px) {
    
    .logo{
        position:absolute;
        top:0;
        right:5%;
    }
    
    /* Esconde o menu tradicional de computador */
    .menu {
        display: none !important;
    }

    .menu-toggle{
        display: flex;
        align-items: center;
        justify-content: center;
        width:40px;
        height: 40px;
        border-radius: 5px;
        text-decoration: none; 
        cursor: pointer;
        background:#fafbfc;
        border: 1px white solid;
        font-size: 16pt;
        cursor: pointer;
        z-index: 10000;
        position: absolute;
        top: 25px;            /* Centraliza verticalmente no cabeçalho de 100px */
        left: 5%;  
    }

    /* Container do Menu Mobile (Escondido e recolhido por padrão) */
    .MenuMob {
        position: absolute;
        top: 100px;           /* Inicia logo abaixo dos 100px do cabeçalho */
        left: 0;
        width: 250px;
        display: flex;        /* Mantemos flex para organizar os itens */
        flex-direction: column;
        list-style: none;
        margin: 0;
        padding: 0;
        background: rgba(255, 255, 255, 0.616);
        z-index: 9999;

        /* --- TRUQUE DA ANIMAÇÃO DE DESLIZE --- */
        max-height: 0;        /* Esconde o menu cortando a altura */
        overflow: hidden;     /* Não deixa o texto vazar enquanto está fechado */
        opacity: 0;           /* Suaviza o surgimento */
        transition: max-height 0.4s ease-in-out, opacity 0.3s ease-in-out; /* Controla a velocidade */
    }

    /* Estado Ativo: Quando o JS adiciona a classe .active no clique */
    .MenuMob.active {
        max-height: 400px;    /* Valor maior que a altura total dos seus links para expandir suave */
        opacity: 1;           /* Torna o menu 100% visível */
    }

    /* Os itens da lista */
    .MenuMob li {
        width: 100%;
    }

    /* O link <a> (onde fica o clique e o espaçamento) */
    .MenuMob a {
        display: flex;
        align-items: center;
        padding: 15px 20px;
        color: #000000;
        font-size: 14pt;
        text-decoration: none;
        transition: background 0.3s ease, padding-left 0.3s ease;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        cursor: pointer;
        box-sizing: border-box;
    }

    .MenuMob a:hover {
        background-color: #007bff;
        color: #ffffff;
        padding-left: 25px;
    }

    .MenuMob.active {
        display: flex;
        flex-direction: column;
    }

    .Img{
        gap: 0;
    }

    .imagem{
        width: 100%;
        height: 80%;
    }

    .Img img{
        width:100%;
        height: 100%;
    }

    .fotos img{
        width: 150px;
        height: 100px;
    }
}


@media screen and (max-width: 768px) {

    .cabecalho{
        height: 60px;
    }

    .logo img{
        width:80px;
    }

    .menu-toggle{
        top: 10px; 
    }

    .MenuMob {
        top: 60px; 
    }
    
    .hero-content h1{
        font-size:24px;
    }

    .hero-content h2{
        font-size:18px;
    }

    .colection1, .colection2, .colection3, .colection4, .colection5, .colection6 {
        flex-wrap: wrap;
        gap: 20px; /* Espaço entre os cards */
        justify-content: center;
    }

    .imgColection {
        display: flex;
        flex-direction: column;
        width: calc(33.333% - 7px); 
        height: auto !important; /* Garante que a altura seja livre para crescer com o texto */
        box-sizing: border-box;
    }

    .imgColection img {
        width: 100%;
        height: 100px; /* O tamanho que você aprovou */
        object-fit: cover;
    }

    .imgColection h2 {
        font-size: 11px; /* Letra levemente ajustada para caber bem em 3 colunas */
        text-align: center;
        width: 100%;
        word-break: break-word;
    }

    .Geralimg{
        flex-direction: column;
    }

    .Img{
        width: 100%;
        height: 55%;
        gap: 0px;
    }

    .imagem{
        height: 70%;
    }

    .Img img{
        max-width: 650px;   /* Largura máxima permitida */
        max-height: 300px;  /* Altura máxima permitida */
        object-fit: contain;
    }

    .botoes{
        height: 30%;
    }

    .botoes button {
        width: 50px;
        height: 50px;
    }

    .Galeria{
        border-bottom-left-radius: 0px;
        border-top-right-radius: 10px;
        width: 100%;
        gap: 0px;
    }

    .Galeria h1,.Galeria h2,.Galeria p{
        margin-bottom: 2%;
    }

    .fotos img{
        width: 150px;
        height: 100px;
    }

    .Titulo h1{
        font-size:28px;
    }
    
    .imgColection{
        width: 20%;
        height: 150px;
    }

    .imgColection img {
        width: 100%;
    }

    .imgColection h2{
        font-size: 14px;
    }

    .dados-legais{
        display: flex;
        flex-direction: column;
        width: 100%;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 0px;
        padding: 1%;
        position: relative;
    }

    .dados-legais p{
        color: white;
        margin: 0px;
    }
}


@media screen and (max-width: 480px) {
    .cabecalho{
        height: 60px;
    }

    .logo img{
        width:80px;
    }

    .menu-toggle{
        top: 10px; 
    }

    .MenuMob {
        top: 60px; 
    }

    .hero-content h1{
        font-size:24px;
    }

    .hero-content h2{
        font-size:18px;
    }

    .Img img{
        max-width: 600px;   /* Largura máxima permitida */
        max-height: 250px;
    }

    .fotos img{
        width: 150px;
        height: 100px;
    }

    .Titulo h1{
        font-size:28px;
    }
    
    .colection1,.colection2,.colection3,.colection4,.colection5,.colection6{
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px; /* Espaçamento menor para telas pequenas */
    }

    /* 2. Reduz o tamanho de cada .imgColection para caberem lado a lado */
    .imgColection {
        display: flex;
        flex-direction: column; /* Deixa a imagem em cima e o título embaixo, se já não estiver */
        width: 45%; /* Cada um ocupa quase metade, ou seja, 2 por linha (ou mude se preferir 4 menores) */
        height: 150px;
    }

    .imgColection img {
        width: 100%;
    }

    .imgColection h2{
        font-size: 14px;
    }
}

@media screen and (max-width: 360px) {

    .hero{
        height:100vh;
    }

    .hero-content h1{
        font-size:16px;
    }

    .hero-content h2{
        font-size:14px;
    }

    .MenuMob {
        top: 60px; 
        height: 80vh;
    }

    .Titulo h1{
        font-size:20px;
    }

    .Img img{
        max-width: 500px;   /* Largura máxima permitida */
        max-height: 150px;
    }
}