/* GALILEU_STYLE_V19 */

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

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

/* ==========================================================================
   Base e Reset
   ========================================================================== */

body {
    margin: 0;
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    font-size: 100%;
}

/* Container global */
.container {
    width: 90%;
    max-width: 1280px;
    margin: 0 auto;
}

.h1,
.h2,
.h3 {
    font-family: 'Exo 2', sans-serif;
    color: #fa680a;
    font-size: 1.5rem;
    font-weight: 800;
    margin: -10px 0 10px 0;
}

.littleOrange {
    color: #fa680a;
}


/*------------------ HEADER ------------------*/
.main-header {
    background: #000000;
    color: #fff;
    padding: 15px 3%;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .logo img {
    width: 150px;
    vertical-align: middle;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* ✅ importantíssimo: reset pra não “crescer” diferente em cada página */
nav ul {
    display: flex;
    align-items: center;
    list-style: none;

    margin: 0;
    padding: 0;

    gap: clamp(18px, 5vw, 10rem);
}

/* garante que menu não fique “por cima” do botão */
nav ul {
    position: relative;
    z-index: 1;
}

nav ul a {
    color: #fff;
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.3s;
    font-size: 1.3rem;
}

nav ul a:hover {
    color: #fa680a;
}

.auth-buttons {
    position: relative;
    z-index: 5; /* ✅ acima do menu */
}

.auth-buttons a.btn {
    background-color: #fa680a;
    color: #fff;
    text-decoration: none;
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 30px;
    transition: background-color 0.3s;
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 35px;
    padding: 0 30px 0 60px;
    font-size: 1.2rem;
    box-sizing: border-box;
    white-space: nowrap;
}

.auth-buttons a.btn:hover {
    background-color: #ce5001;
}

.auth-buttons img {
    position: absolute;
    height: 100%;
    top: 0;
    left: 10px;
}

.nav-item a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-item a.active {
    color: #fa680a;
    font-weight: 700;
}


/*------------------ FOOTER ------------------*/
.main-footer {
    color: #fff;
}

.footer-upper {
    background-color: #fa680a;
    padding: 2px 0;
}

.footer-lower {
    background-color: #000;
    padding: 30px 0 1px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0 3%;
    max-width: 75%;
    margin: 0 auto;
}

.footer-title h3 {
    font-family: 'exo 2';
    font-size: 1.2rem;
    color: #ffffff;
    margin: 0 0 15px 0;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #fff;
    font-size: 1.2rem;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #fa680a;
}

.footer-social a {
    display: inline-block;
    margin-right: 10px;
}

.footer-social img {
    width: 32px;
    height: 32px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.footer-social a:hover img {
    opacity: 1;
}

.footer-copyright-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 3%;
}

.footer-copyright {
    text-align: center;
    color: #ffffff;
    margin-bottom: -5px;
}


/* ==========================================================================
   RESPONSIVIDADE
   ========================================================================== */

/* 1440 */
@media (max-width: 1440px) {
    html { font-size: 90%; }
}

/* 1200 */
@media (max-width: 1200px) {
    html { font-size: 85%; }
    nav ul { gap: 30px; }
}

/* ✅ FIX DE VERDADE (tablets + celulares):
   Header vira 2 linhas (logo+login em cima, menu embaixo) -> NÃO SOBREPOE -> clique vai certo */
@media (max-width: 992px) {

    header nav {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "logo auth"
            "menu menu";
        align-items: center;
        gap: 10px;
    }

    header nav .logo {
        grid-area: logo;
        justify-self: start;
        z-index: 3;
        position: relative;
    }

    header nav .auth-buttons {
        grid-area: auth;
        justify-self: end;
        z-index: 5;
        position: relative;
    }

    header nav ul {
        grid-area: menu;
        width: 100%;
        justify-content: center;

        /* vira navbar rolável (carrossel) no mobile, mas sem “quebrar em coluna” */
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;

        gap: 14px;
        padding-bottom: 2px;

        z-index: 1;
        position: relative;
    }

    header nav ul li { flex: 0 0 auto; }

    header nav ul::-webkit-scrollbar { display: none; }
    header nav ul { scrollbar-width: none; }

    header nav ul a {
        font-size: 1.05rem;
        padding: 8px 10px;
        display: inline-block;
        white-space: nowrap;
    }

    .auth-buttons a.btn {
        height: 34px;
        font-size: 1.05rem;
        padding: 0 16px 0 48px;
    }

    .auth-buttons img { left: 8px; }
}

/* 768 (celular em pé) — SÓ ajusta tamanhos.
   ❌ NÃO tem mais aquele header nav { flex-wrap: nowrap !important } que causava o bug */
@media (max-width: 768px) {
    html { font-size: 80%; }

    header .logo img { width: 140px; }

    header nav ul a {
        font-size: 1rem;
        padding: 7px 9px;
    }

    .auth-buttons a.btn {
        height: 33px;
        font-size: 1rem;
        padding: 0 14px 0 46px;
    }

    /* mantém estilo do botão (se você usa id) sem quebrar layout */
    #btn-login-nav,
    #btn-login-nav:visited {
        display: inline-flex !important;
        align-items: center !important;
        gap: 10px !important;
        padding: 10px 16px !important;
        border-radius: 999px !important;
        background: #ff7a00 !important;
        color: #fff !important;
        text-decoration: none !important;
        font-family: Lato, Arial, sans-serif !important;
        font-weight: 700 !important;
        white-space: nowrap !important;
        line-height: 1 !important;
    }

    #btn-login-nav img {
        width: 22px !important;
        height: 22px !important;
        object-fit: contain !important;
        display: inline-block !important;
    }

    #btn-login-nav span { color: #fff !important; }

    /* garante hidden funcionando */
    [hidden] { display: none !important; }

    .quick-access-section .container {
        flex-direction: column;
        align-items: center;
    }

    .footer-lower .container {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        text-align: center;
    }

    .footer-social { text-align: center; }
    .footer-social a { margin: 0 10px; }
}

/* 480 */
@media (max-width: 480px) {
    .main-header { padding: 12px 3%; }
    header .logo img { width: 130px; }

    header nav ul { justify-content: flex-start; }

    header nav ul a {
        font-size: 0.98rem;
        padding: 7px 9px;
    }

    .auth-buttons a.btn {
        height: 32px;
        font-size: 0.98rem;
        padding: 0 12px 0 44px;
    }
}
