:root {
    --cor-azul-forte: #004e92;
    --cor-azul-claro: #00c6ff;
    --cor-texto: #1d1d1f;
    --vidro-bg: rgba(255, 255, 255, 0.85);
    --vidro-borda: rgba(255, 255, 255, 0.5);
    --sombra: 0 8px 32px rgba(0, 0, 0, 0.1);
    --radius-card: 24px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--cor-texto);
    line-height: 1.5;
    background-color: #001f3f;
    overflow-x: hidden;
}

html { scroll-behavior: smooth; }

/* --- BACKGROUND SLIDESHOW --- */
.background-slideshow {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    background-size: cover;
    background-position: center;
    transition: background-image 1s ease-in-out;
}
.overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 20, 40, 0.5); z-index: -1; pointer-events: none;
}

/* --- MENU COMPACTO (Pílula) --- */
header {
    /* ALTERAÇÃO 1: Mudado de fixed para absolute para não seguir a rolagem */
    position: absolute; 
    top: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 1000;
    padding: 0 15px;
}

.menu-pill {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 25px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border: 1px solid rgba(255,255,255,0.6);
    max-width: 800px;
    width: 100%;
}

.logo {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--cor-azul-forte);
    text-transform: uppercase;
    white-space: nowrap;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 5px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
nav ul::-webkit-scrollbar { display: none; }

nav a {
    text-decoration: none;
    color: #333;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 20px;
    white-space: nowrap;
    transition: background 0.3s;
}

nav a:hover {
    background-color: var(--cor-azul-forte);
    color: white;
}

/* --- SEÇÕES --- */
main { padding-top: 100px; }

section {
    padding: 60px 20px;
    max-width: 1000px;
    margin: 0 auto 40px;
}

.card-vidro {
    background: var(--vidro-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-card);
    padding: 40px;
    border: 1px solid var(--vidro-borda);
    box-shadow: var(--sombra);
}

h2 {
    text-align: center;
    color: var(--cor-azul-forte);
    margin-bottom: 30px;
    font-size: 2rem;
    font-weight: 700;
}

/* --- HERO --- */
.hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 0;
}
.hero-content h1 {
    font-size: 3.5rem;
    color: white;
    text-shadow: 0 4px 10px rgba(0,0,0,0.4);
    margin-bottom: 15px;
    line-height: 1.1;
}
.hero-content p {
    color: #f0f0f0;
    font-size: 1.3rem;
    margin-bottom: 30px;
    font-weight: 400;
}
.btn-cta {
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    color: white; padding: 14px 35px; border-radius: 50px;
    text-decoration: none; font-weight: bold; font-size: 1rem;
    box-shadow: 0 10px 20px rgba(0, 114, 255, 0.3);
    transition: transform 0.2s;
    display: inline-block;
}
.btn-cta:hover { transform: scale(1.05); }

/* --- QUEM SOU EU --- */
.perfil-flex {
    display: flex; align-items: center; gap: 40px;
}
.foto-perfil {
    width: 180px; height: 180px;
    border-radius: 50%; object-fit: cover;
    border: 5px solid white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    flex-shrink: 0;
}

/* --- SERVIÇOS (Cards) --- */
.servicos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}
.servico-item {
    background: rgba(255,255,255,0.6);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s;
}
.servico-item:hover { transform: translateY(-5px); background: white; }
.servico-item h3 { margin-bottom: 10px; color: var(--cor-azul-forte); }

/* --- CIDADES (Com Fotos) --- */
.cidades-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
}
.cidade-card {
    position: relative;
    height: 200px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.cidade-card img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s;
}
.cidade-card:hover img { transform: scale(1.1); }
.cidade-label {
    position: absolute; bottom: 0; width: 100%;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white; padding: 10px; text-align: center; font-weight: bold;
}

/* --- GALERIA (Vídeos Pequenos) --- */
.galeria-wrapper {
    position: relative;
    /* Centraliza o wrapper */
    display: flex;
    justify-content: center;
}

.galeria-scroll {
    display: flex;
    /* ALTERAÇÃO 2: Wrap ativado para quebrar linha se não couber */
    flex-wrap: wrap; 
    justify-content: center; /* Centraliza os vídeos */
    gap: 15px;
    padding: 10px 5px 20px;
    /* Remove a barra de rolagem */
    overflow-x: visible; 
}

/* ALTERAÇÃO 3: Redução de tamanho (~20% menor) */
.galeria-item {
    flex: 0 0 auto;
    /* Antes: 240px -> Agora: 190px */
    width: 190px; 
    /* Antes: 420px -> Agora: 330px */
    height: 330px; 
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    position: relative;
    margin-bottom: 10px;
}

.galeria-item video, .galeria-item img {
    width: 100%; height: 100%; object-fit: cover;
}

/* Botões de Navegação ocultos pois agora é uma grade */
.nav-btn {
    display: none;
}

/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.5rem; }
    .menu-pill { padding: 8px 15px; border-radius: 15px; flex-direction: column; gap: 10px;}
    .logo { margin-bottom: 5px; }
    .perfil-flex { flex-direction: column; text-align: center; }
    .nav-btn { display: none; } 
}