/* --- RESET E CONFIGURAÇÕES GERAIS --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body, html {
    height: 100%;
    width: 100%;
    overflow-x: hidden;
}

:root {
    --cor-paineis: rgba(230, 230, 230, 0.98);
}

/* --- BACKGROUND --- */
.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('img/Design sem nome.png');
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

/* --- NAVBAR --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center; /* Centraliza a logo no topo */
    align-items: center;
    padding: 15px 20px;
    background-color: var(--cor-paineis);
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 1000;
}

.logo img {
    height: 40px;
}

/* --- HERO --- */
.hero-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 8%;
    padding-top: 100px;
    color: white;
    position: relative;
    z-index: 10;
}

.hero-content {
    text-align: right;
    max-width: 90%;
}

.title-main {
    font-size: 85px;
    font-weight: 800;
    line-height: 1;
}

.subtitle {
    font-size: 38px;
    font-weight: 700;
    letter-spacing: 2px;
}

.red-line {
    height: 6px;
    background-color: #bc0000;
    margin: 10px 0;
}

.line-top { width: 250px; margin-left: auto; }
.line-bottom { width: 450px; margin-left: auto; }

/* --- RODAPÉ --- */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--cor-paineis);
    padding: 20px 0;
    border-top-left-radius: 50px;
    border-top-right-radius: 50px;
    z-index: 1000;
}

.footer-inner {
    display: flex;
    justify-content: center;
    gap: 40px;
    align-items: center;
    flex-wrap: wrap; /* Permite quebrar linha se não couber */
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #333 !important;
    text-decoration: none !important;
}

.link-clean:hover {
    color: #bc0000 !important;
}

/* --- CORREÇÃO DEFINITIVA PARA MOBILE --- */
@media (max-width: 768px) {
    .navbar {
        border-bottom-left-radius: 25px;
        border-bottom-right-radius: 25px;
        padding: 10px;
    }

    .logo img {
        height: 30px; /* Logo menor para não "estourar" a barra */
    }

    .hero-container {
        justify-content: center; /* Centraliza no mobile */
        padding-right: 0;
        padding-top: 80px;
    }

    .hero-content {
        text-align: center;
        width: 100%;
    }

    .title-main {
        font-size: 42px; /* Reduz tamanho da fonte */
    }

    .subtitle {
        font-size: 18px;
    }

    .line-top {
        width: 150px;
        margin: 10px auto; /* Centraliza a linha */
    }

    .line-bottom {
        width: 250px;
        margin: 10px auto; /* Centraliza a linha */
    }

    footer {
        padding: 15px 10px;
        border-top-left-radius: 30px;
        border-top-right-radius: 30px;
    }

    .footer-inner {
        flex-direction: column; /* Empilha os itens verticalmente */
        gap: 8px;
    }

    .contact-item {
        font-size: 14px; /* Diminui o texto para caber numa linha só */
    }
}