@charset "utf-8";

/* estilo.css */


* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Poppins', sans-serif;
}

        .header {
            position: fixed;
            top: 0px;
            left: 50%;
            transform: translateX(-50%);
            width: 100%;
            max-width: 1400px;
            padding: 25px 5%;
            background: rgba(255, 255, 255, 0.15);
            display: flex;
            justify-content: space-between;
            align-items: center;
            backdrop-filter: blur(12px);
            border-bottom: 2px solid rgba(255, 255, 255,0.35);
            z-index: 1000;
            overflow: hidden; /* Necessário para o brilho */
        }

        /* EFEITO DE BRILHO */
        .header::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
            transition: 0.5s;
            pointer-events: none; /* ISSO IMPEDE O BRILHO DE BLOQUEAR O CLIQUE */
        }

        .header:hover::before {
            left: 100%;
        }

        .logo {
    color: #fff;
    font-size: 25px;
    text-decoration: none;
    font-weight: 600;
    position: relative;
    z-index: 10;
        }

        .navbar {
            display: flex;
            align-items: center;
        }

        .navbar a {
            color: #fff;
            font-size: 18px;
            text-decoration: none;
            margin-left: 35px;
            transition: .3s;
            position: relative;
            z-index: 10;
        }

        .navbar a:hover { color: #f00; }

        /* AREA DOS ICONES */
        .menu-icons {
            display: none;
            cursor: pointer;
            position: relative;
            z-index: 2000; /* Garante que o ícone esteja acima do brilho */
            width: 32px;
            height: 32px;
        }

        #menu-icon, #close-icon {
            width: 100%;
            height: 100%;
            position: absolute;
            top: 0;
            left: 0;
            transition: 0.3s;
        }

        /* AJUSTES MOBILE */
        @media (max-width: 768px) {
            .header {
                overflow: visible; /* IMPORTANTE: Permite que o menu saia da barra */
            }

            .menu-icons { display: block; }
            #close-icon { opacity: 0; pointer-events: none; }

            .navbar {
                position: absolute;
                top: 100%;
                left: 0;
                width: 100%;
                flex-direction: column;
                padding: 20px;
       /* MESMA COR DA BARRA E CONTROLE DE TRANSPARÊNCIA */
        /* Altere o 0.1 abaixo para aumentar ou diminuir a transparência */
        background: rgba(055, 055, 055, 0.90);
        backdrop-filter: blur(10px); /* Mantém o desfoque igual ao topo */
        border-bottom: 2px solid rgba(055, 055, 055,0.60);
        display: none;
        z-index: 500;
    }

            .navbar.active { display: flex; }

            .navbar a {
                margin: 15px 0;
                margin-left: 0;
            }

            /* Logica de troca de icones */
            .header.open #menu-icon { opacity: 0; pointer-events: none; }
            .header.open #close-icon { opacity: 1; pointer-events: auto; }
            
            /* Mantém o brilho funcionando no mobile dentro da barra */
            .header::before { z-index: 1; }
        }

/* 1. Garante que no computador o menu sempre apareça horizontalmente */
@media (min-width: 769px) {
    .navbar {
        display: flex !important;
        position: static;
        background: transparent;
        backdrop-filter: none;
        width: auto;
    }
}

/* 2. Regras para o Celular (as que você já tem, mas com o ajuste de fechar) */
@media (max-width: 768px) {
    .navbar {
        display: none; /* Esconde por padrão no mobile */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
    }

    /* Esta regra faz o menu aparecer quando você clica */
    .navbar.active {
        display: flex !important;
    }
}

/* BARRA ESCURA QUANDO ROLA */
.header.scrolled {
    background: rgba(55, 55, 55, 0.90);
    border-bottom: 2px solid rgba(55, 55, 55, 0.60);
}
/* SEM DEGRADÊ NO TOPO */
.header::after {
    content: none;
}

/* DEGRADÊ NAS PONTAS APENAS NO ESTADO ESCURO */
.header.scrolled::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: -2px; /* ← cobre a linha preta */
    pointer-events: none;
    z-index: 2;

    background:
        linear-gradient(
            to right,
            rgba(255,255,255,0.7) 0,
            rgba(255,255,255,0) 25px
        ),
        linear-gradient(
            to left,
            rgba(255,255,255,0.7) 0,
            rgba(255,255,255,0) 25px
        );
}

#metais {
  scroll-margin-top: 70px;
}


#galeria {
  scroll-margin-top: 70px;
}


