
:root {
    --primary-color: #0b1120; 
    --accent-color: #00d2ff;  
    --accent-hover: #00a8cc;
    --text-light: #ffffff;
    --text-gray: #a0aec0;
    --topbar-bg: #0055ff; 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #ffffff;
    color: #333333;
    overflow-x: hidden; /* Evita rolagem horizontal em telas pequenas */
}

/* Topbar */
.topbar {
    background-color: #016db6;
    color: var(--text-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 5%;
    font-size: 0.88rem;
}

.topbar-left, .topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap; /* Permite que os itens quebrem linha se não couberem */
}

.topbar i { margin-right: 5px; }

.topbar a {
    color: var(--text-light);
    text-decoration: none;
    transition: opacity 0.3s;
}

.topbar a:hover { opacity: 0.8; }

.social-icons i {
    margin-left: 12px;
    cursor: pointer;
    transition: transform 0.3s;
}

.social-icons i:hover { transform: scale(1.2); }

/* City Selector Dropdown */
.city-selector {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.current-city {
    display: flex;
    align-items: center;
    gap: 5px;
    transition: opacity 0.3s;
}

.current-city:hover { opacity: 0.8; }

.city-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    min-width: 160px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border-radius: 6px;
    list-style: none;
    z-index: 100;
    padding: 8px 0;
    margin-top: 12px;
}

.city-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 20px;
    width: 12px;
    height: 12px;
    background-color: #ffffff;
    transform: rotate(45deg);
}

.city-dropdown.show {
    display: block;
    animation: fadeIn 0.2s ease-in-out;
}

.city-dropdown li a {
    color: #333333 !important; 
    padding: 10px 20px;
    display: block;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
}

.city-dropdown li a:hover {
    background-color: #f0f7ff;
    color: var(--topbar-bg) !important;
    padding-left: 25px; 
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky; /* Mantém o menu preso no topo ao rolar (opcional) */
    top: 0;
    z-index: 50;
}

.logo img {
    max-height: 50px; 
    width: auto;      
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px; /* Reduzido de 45px para caber melhor em tablets */
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #4a5568;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    transition: color 0.3s;
}

.nav-links a:hover { color: var(--accent-color); }

/* Menu Hamburguer e Botões Responsivos */
.menu-toggle {
    display: none; /* Escondido no Desktop */
    font-size: 1.8rem;
    cursor: pointer;
    color: #016db6;
}

.mobile-only-btn { display: none; }
.desktop-only-btn { display: flex; }

.btn {
    padding: 10px 22px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.w-100 { width: 100%; margin-top: 15px; } /* Classe auxiliar para botão mobile */

.btn-solid {
    background-color: #016db6;
    color: var(--text-light);
    border: 2px solid #016db6;
}

.btn-solid:hover {
    background: var(--accent-color);
    color: var(--text-light);
    border-color: var(--accent-color);
}

/* Hero Section / Banner */
.hero {
    background-color: #DB1317; 
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.hero-banner {
    width: 100%;
    display: flex; 
}

.hero-banner picture, .hero-banner img {
    width: 100%;       
    height: auto;
    display: block;    
}

/* Setas do Carrossel */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.7);
    font-size: 30px; 
    cursor: pointer;
    z-index: 10;
    background: rgba(0,0,0,0.2); 
    width: 60px; 
    height: 60px;
    display: flex; 
    align-items: center; 
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.carousel-arrow:hover {
    color: #ffffff;
    background: rgba(0,0,0,0.5); 
}
.carousel-arrow.left { left: 30px; }
.carousel-arrow.right { right: 30px; }


/* ========================================= */
/* MEDIA QUERIES (A MÁGICA DA RESPONSIVIDADE)*/
/* ========================================= */

/* TABLETS E TELAS MÉDIAS (até 1024px) */
@media (max-width: 1024px) {
    .nav-links { gap: 15px; } /* Aproxima os links */
    .topbar { padding: 12px 3%; }
    .navbar { padding: 15px 3%; }
}

/* CELULARES GRANDES E TABLETS PEQUENOS (até 850px) */
@media (max-width: 850px) {
    /* Topbar agrupada e centralizada */
    .topbar { 
        flex-direction: column; 
        gap: 12px; 
        text-align: center; 
        padding: 15px;
    }
    .topbar-left, .topbar-right { justify-content: center; width: 100%; }
    
    /* Configuração do Menu Sanduíche (Hamburguer) */
    .menu-toggle { display: block; } /* Mostra o ícone */
    .desktop-only-btn { display: none; } /* Esconde o botão solto */
    
    .nav-links {
        display: none; /* Esconde o menu por padrão */
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        padding: 20px;
        gap: 20px;
        text-align: center;
    }
    
    /* Quando a classe 'active' for adicionada pelo JavaScript, o menu aparece */
    .nav-links.active {
        display: flex;
        animation: fadeIn 0.3s ease;
    }
    
    .nav-links li { width: 100%; border-bottom: 1px solid #eee; padding-bottom: 10px; }
    .nav-links li:last-child { border-bottom: none; }
    
    .mobile-only-btn { display: block; } /* Mostra o botão dentro do menu */
}

/* CELULARES PEQUENOS (até 500px) */
@media (max-width: 500px) {
    .topbar-left span { font-size: 0.8rem; display: block; margin-bottom: 5px; }
    .carousel-arrow { display: none; } /* Esconde as setas, pois celulares usam touch swipe */
    .logo img { max-height: 40px; } /* Diminui a logo um pouco */
}
