﻿/* PROJETO WEB - ESTRUTURA DA MASTER PAGE
   Estilo modernizado em tons de cinza
*/

:root {
    --header-height: 81px;
    --gray-900: #111111;
    --gray-800: #1f1f1f;
    --gray-700: #2b2b2b;
    --gray-600: #3d3d3d;
    --gray-500: #555555;
    --gray-400: #777777;
    --gray-300: #b3b3b3;
    --gray-200: #dedede;
    --gray-100: #f3f3f3;
    --gray-50: #fafafa;
    --accent: #666666;
}

/* BARRA FIXA SUPERIOR */

.barra-fixa {
    position: fixed;
    width: 100%;
    height: var(--header-height);
    background: linear-gradient(90deg, #ffffff, #f5f5f5);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    z-index: 100;
    backdrop-filter: blur(10px);
}

.content-wrap {
    max-width: 1024px;
    margin: auto;
    position: relative; /* permite elementos absolutos dentro do cabeçalho */
    padding: 0 16px;
}

/* CABEÇALHO */

.cabecalho {
    height: var(--header-height);
    width: 100%;
    display: flex;
    align-items: center;
    border-bottom: 0;
    min-height: 110px;
    background-color: #4275e2;
}

/* Logomarca (quadrado) */
.logomarca {
    position: absolute;
    top: -40px;
    left: -20vw;
    height: var(--header-height);
    width: var(--header-height);
    padding-top: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logomarca img {
    max-height: 54px;
    max-width: 54px;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
}

/* Título da barra */

.barra-titulo {
    position: absolute;
    top: -30px;
    left: -200px;
    right: 0;
    height: 40px;
    padding: 10px 16px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-align: center;
    color: var(--gray-800);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 400px;
}

/* Menu desktop */

form {
    background: #6bb9e6;
}


.barra-menu {
    position: absolute;
    top: 10px;
    left: -260px;
    width: 500px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.barra-menu a {
    color: white;
    font-size: 14px;
    margin: 0 6px;
    padding: 4px 6px;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: all 0.2s ease;
}

.barra-menu a:hover {
    color: var(--gray-900);
    border-bottom: 2px solid var(--accent);
}

/* MENU PARA CELULAR **************************/

.menu-mobile {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0px;
    background-color: #ffffff;
    width: 70%;
    border-left: 1px solid var(--gray-200);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.12);
    z-index: 102 !important;
}

.menu-mobile a {
    width: 100%;
    display: inline-block;
    line-height: 44px;
    color: var(--gray-800) !important;
    text-align: left;
    padding-left: 24px;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 600;
    border-bottom: 1px solid var(--gray-100);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.menu-mobile a:hover {
    background-color: var(--gray-100);
    color: var(--gray-900) !important;
}

.menu-mobile i {
    width: 26px;
    overflow: hidden;
    padding-right: 10px;
}

.menu-mobile-buttons {
    display: none;
    overflow: hidden;
    font-size: 1.4em;
    float: left;
}

.menu-mobile-buttons i {
    line-height: 150%;
    cursor: pointer;
    padding-left: 10px;
    padding-right: 10px;
}

/* botão para fechar o menu mobile */

.menu-mobile-close {
    font-size: 1.1em;
    text-align: left;
    padding-left: 24px;
    border-bottom: 1px solid var(--gray-300);
    height: var(--header-height);
    display: flex;
    align-items: center;
    color: var(--gray-800);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.menu-mobile-close i {
    line-height: 150%;
    cursor: pointer;
}

/* CONTEÚDO E RODAPÉ */

.conteudo {
    min-height: 1300px;
    margin-top: calc(var(--header-height) + 20px);
    padding-top: 10px;
    padding-bottom: 40px;
}

.rodape {
    min-height: 300px;
    background-color: #3a3a3a;
    color: #f5f5f5;
    padding-top: 30px;
}



/* Pode ser usado em alguma área de texto do rodapé */
.rodape a {
    color: var(--gray-700);
    text-decoration: none;
}

.rodape a:hover {
    color: var(--gray-900);
    text-decoration: underline;
}

/* MENU RESPONSIVO – visível em telas menores */
@media only screen and (max-width: 768px) {

    .barra-fixa {
        height: var(--header-height);
    }

    .logomarca {
        left: 10px;
    }

    .barra-titulo {
        left: calc(var(--header-height) + 10px);
        padding-left: 12px;
        font-size: 16px;
        text-align: left;
        justify-content: flex-start;
    }

    .barra-menu {
        display: none;
    }

    .menu-mobile-buttons {
        display: inline-block;
        position: absolute;
        right: 10px;
        top: 24px;
        color: var(--gray-800);
    }

    .conteudo {
        margin-top: calc(var(--header-height) + 30px);
    }
}

/* Slider ocupando toda a largura do container */
.flexslider {
    width: 100%;
    max-width: 1024px;
    margin: 10px auto 0 auto !important;
    border-radius: 8px;
    overflow: hidden;
}

.flexslider .slides li img,
.flexslider img {
    width: 100%;
    height: 360px;          /* altura fixa opcional */
    object-fit: cover;      /* corta para preencher */
    display: block;
}



/* Remove margens/paddings da lista do slider */
.flexslider .slides {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Imagens ocupando 100% da largura da área do slider */
.flexslider .slides li img,
.flexslider img {
    width: 100%;
    height: auto;
    display: block;
}

/* Alinhar o slider com o cabeçalho (mesma largura e centralizado) */
.flexslider {
    max-width: 1024px;   /* mesmo valor do .content-wrap */
    margin: 0 auto;      /* centraliza na tela */
}
