/* ==========================================================================
   1. CONFIGURAÇÕES GLOBAIS E ESTRUTURA (ATUALIZADO PARA HORIZONTAL)
   ========================================================================== */

html {
    scroll-behavior:auto;
    /* Ajustado para compensar a altura do novo header fixo no topo */
    scroll-padding-top: 90px; 
}

body {
    background-color: #f4f4f4;
    margin: 0; 
    padding: 0;
    font-family: 'Times New Roman', Times, serif; 
    color: #222;
    line-height: 1.8;
    box-sizing: border-box;
}

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

/* Espaçamento extra entre as seções na rolagem contínua */
main > section.div_content {
    padding-top: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid #e0e0e0;
    display: block;
}

main > section {
    padding-top: 60px;
    padding-bottom: 60px;
    padding-left: 20px;
    padding-right: 20px;
    border-bottom: 1px solid #e0e0e0;
    box-sizing: border-box;
}

/* HEADER TOTALMENTE HORIZONTAL NO TOPO */
header {
    background-color: #960018;
    width: 100%;          
    height: auto;         
    position: fixed;       
    top: 0;
    left: 0;
    z-index: 9999;
    display: flex;   
    align-items: center;
    justify-content: space-between; /* Separa a imagem dos links */
    padding: 0 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.div_top {      
    background-color: #960018;    
    height: 80px;          
    display: flex;
    align-items: center;
}

.div_top img {
    height: 70px;
    width: auto;
    display: block;
    object-fit: contain;
}

nav {
    background-color: #960018;   
    padding-top: 0; /* Removido o padding superior */    
}

nav ul {
    background-color: #960018;     
    margin: 0;     
    padding: 0;
    list-style: none; 
    display: flex;                
    flex-direction: row; /* Links alinhados lado a lado */
}

nav ul li {
    display: block;    
    text-align: center;  
}

nav ul li a {
    font-size: 15px; 
    font-family: 'Times New Roman', Times, serif;
    color: white; 
    text-decoration: none;
    padding: 25px 18px; /* Aumentado o padding para dar altura ao menu */    
    display: block;  
}

nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.1); 
    text-shadow: 0.5px 0 0 currentColor;  
}

/* DIV LOGO LOGO ABAIXO DO MENU (SEM MARGEM ESQUERDA) */
.div_logo {      
    background-color: rgb(5, 5, 5);   
    background-repeat: no-repeat;
    background-position: center;
    background-size:cover;
    width: 100%; 
    margin-left: 0;        
    margin-top: 80px; /* Empurra a logo para baixo do header fixo */
    height: 400px; 
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; 
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
    
    align-items: flex-end; /* Joga o título para a base (bottom) */    

    padding-bottom: 30px; /* Evita que o título fique 100% colado na borda de baixo */
    
    overflow: hidden; 
  
}

.div_logo img {
    width: 100%;
    height: 100%;
    object-fit: none; 
    object-position: center; 
}

.div_titulo{
    width: 100%; 
    height: 40px;
    background-color: rgb(0, 0, 0);  
    
    display: flex; /* Ativa o modo Flexbox */
    justify-content: center; /* Alinha horizontalmente */
    align-items: center; /* Alinha verticalmente */

    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3), 0 -4px 10px rgba(0, 0, 0, 0.3);
    
    /* Mantendo as propriedades originais para garantir que ela fique por cima */
    position: relative;
    z-index: 10;
}


.h1_titulo {
    font-family: 'Cinzel' ,Times New Roman, Times, serif;
    font-size: 20px;    
    font-weight: 700;  
    color: white;
    letter-spacing: 2px;
    margin: 0;   
    text-align: center;      
}

/* CONTEÚDO PRINCIPAL (SEM MARGEM ESQUERDA) */
main {      
    background-color: #F9F6F0; 
    margin-left: 0;        
    width: 100%; 
    min-height: calc(100vh - 580px); 
    display: block; 
    margin-top: 0;
}

.div_content {
    width: 95%;
    max-width: 1300px;
    margin: 0 auto;       
    padding: 40px 0;
}

/* FOOTER AJUSTADO */
footer {
    margin-left: 0;
    width: 100%;
    height: auto;
    background-color: rgb(25, 26, 25);
}

.footer-luteria{
    background: #111;
    color: #f5f5f5;
    padding: 40px 20px;
    border-top: 3px solid #c9a86a;
    font-family: 'Times New Roman', Times, serif;
}


/* ==========================================================================
   2. ESTILOS DA PÁGINA INÍCIO (inicio.php)
   ========================================================================== */
.hero_inicio {
    position: relative;
    width: 100%;
    height: 50vh;
    min-height: 400px;
    overflow: hidden;
}

.hero-img_inicio {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.45);
}

.overlay_inicio {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    color: white;
}

.overlay_inicio h1 {
    font-size: large;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: 2px;
}

.overlay_inicio p {
    max-width: 850px;
    font-size: 1.2rem;
    opacity: 0.95;
}

.container_inicio {
    width: 100%;
    padding: 40px 0;
}

.section_inicio {
    margin-bottom: 70px;
    font-family: 'Times New Roman', Times, serif;
    font-size: large;
}

.section-title_inicio {
    font-size: large;
    margin-bottom: 30px;
    color: #111;
    position: relative;
}

.section-title_inicio::after {
    content: '';
    width: 70px;
    height: 4px;
    background: #8b0000;
    position: absolute;
    left: 0;
    bottom: -10px;
    border-radius: 10px;
}

.grid_inicio {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.card_inicio {
    background: white;
    padding: 35px;
    border-radius: 24px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: 0.3s;
}

.card_inicio:hover {
    transform: translateY(-5px);
}

.card_inicio h3 {
    color: #8b0000;
    margin-bottom: 18px;
    font-size: large;
}

.highlight_inicio {
    background: #8b0000;
    color: white;
    border-radius: 20px;
    padding: 5px 14px;
    display: inline-block;
    margin: 6px 6px 0 0;
    font-size: large;
}

.texto_inicio {
    font-size: 1rem;
    color: #444;
    text-align: justify;
}

.info_inicio {
    margin-top: 25px;
    background: #f7f7f7;
    border-left: 4px solid #8b0000;
    padding: 20px;
    border-radius: 14px;
}

/* ==========================================================================
   4. CARROSEL DE FOTOS(curso.php)
   ========================================================================== */

/* external css: flickity.css */

* {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

/* 1. AUMENTANDO O TAMANHO DA GALERIA INTEIRA */
.gallery {
  background: #000000;
  width: 100%;
  height: 500px; /* Aumentado de 400px para 600px (mude para o tamanho que desejar) */ 
  
   
}

/* 2. AJUSTANDO OS SLIDES DENTRO DA GALERIA */
.gallery-cell {
  width: 66%;
  height: 500px; /* Altura do slide (menor que a galeria para notar o alinhamento no meio) */
  margin-right: 10px;
  background: rgb(136, 173, 204);  
  counter-increment: gallery-cell;
  position: relative; 

}

/* 3. AS FOTOS ADAPTÁVEIS E NO MEIO */
.gallery-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover; 
  object-position: center; /* Mantém o foco da foto exatamente no meio */
}

/* 4. NÚMERO POR CIMA DA FOTO 

.gallery-cell:before {
  position: absolute;
  z-index: 1; 
  display: block;
  text-align: center;
  content: counter(gallery-cell);
  font-size: 80px;
  color: white;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
*/

/* ==========================================================================
   3. ESTILOS DA PÁGINA CURSO (curso.php)
   ========================================================================== */
.container_curso {
    width: 100%;
    padding: 20px 0;     
    
  
}

.section_curso {
    margin-bottom: 60px;  
}

.section-title_curso {
    font-size: 2rem;
    margin-bottom: 25px;
    color: #111;
    position: relative;
}

.section-title_curso::after {
    content: '';
    width: 70px;
    height: 4px;
    background: #8b0000;
    position: absolute;
    left: 0;
    bottom: -10px;
    border-radius: 10px;
}

.grid_curso {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.card_curso {
    background: rgb(255, 255, 255);
    padding: 25px;
    border-radius: 18px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: 0.3s;
}

.card_curso:hover {
    transform: translateY(-5px);
}

.card_curso h3 {
    margin-bottom: 15px;
    color: #8b0000;
    font-size: large;
}

.ul_curso {
    padding-left: 20px;
}

.li_curso {
    margin-bottom: 10px;
}

.highlight_curso {
    background: #8b0000;
    color: rgb(255, 255, 255);
    border-radius: 20px;
    padding: 2px 12px;
    display: inline-block;
    margin: 5px 5px 0 0;
    font-size: large;
}

.info-grid_curso {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.info-box_curso {
    background: rgb(255, 255, 255);
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

.texto_curso {
    font-family: 'Times New Roman', Times, serif;
    font-size: large;
    text-align: justify;
    color: #444;
    flex: 1;
}

.info-box_curso h4 {
    color: #8b0000;
    margin-bottom: 10px;
}





/* ==========================================================================
   4. ESTILOS DA PÁGINA DOCENTES (docentes.php)
   ========================================================================== */
.container_docentes {
    width: 100%;
    padding: 20px 0;
}

.grid_docentes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.card_docentes {
    background: white;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.card_docentes:hover {
    transform: translateY(-6px);
}

.foto_docentes {
    width: 100%;
    height: 320px;
    object-fit: scale-down;
    background: #ddd;
}

.content_docentes {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.nome_docentes {
    font-size: large;
    color: #8b0000;
    margin-bottom: 15px;
    font-weight: 600;
}

.texto_docentes {
    font-family: 'Times New Roman', Times, serif;
    font-size: large;
    text-align: justify;
    color: #444;
    flex: 1;
}

.botao_docentes {
    margin-top: 25px;
    display: inline-block;
    text-decoration: none;
    background: #8b0000;
    color: white;
    padding: 12px 18px;
    border-radius: 12px;
    transition: 0.3s;
    font-weight: 500;
    text-align: center;
}

.botao_docentes:hover {
    background: #5f0000;
}


/* ==========================================================================
   5. ESTILOS DA PÁGINA PESQUISA (pesquisa.php)
   ========================================================================== */
.container_pesquisa {
    width: 100%;
    padding: 20px 0;
}

.section_pesquisa {
    margin-bottom: 60px;
}

.section-title_pesquisa {
    font-size: large;
    margin-bottom: 25px;
    color: #111;
    position: relative;
}

.section-title_pesquisa::after {
    content: '';
    width: 70px;
    height: 4px;
    background: #8b0000;
    position: absolute;
    left: 0;
    bottom: -10px;
    border-radius: 10px;
}

.grid_pesquisa {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.card_pesquisa {
    background: white;
    padding: 30px;
    border-radius: 22px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: 0.3s;
}

.card_pesquisa:hover {
    transform: translateY(-5px);
}

.card_pesquisa h3 {
    color: #8b0000;
    margin-bottom: 18px;
    font-size: large;
}

.ul_pesquisa {
    padding-left: 20px;
}

.li_pesquisa {
    margin-bottom: 10px;
}

.highlight_pesquisa {
    background: #8b0000;
    color: white;
    border-radius: 20px;
    padding: 4px 14px;
    display: inline-block;
    margin: 6px 6px 0 0;
    font-size: 0.9rem;
}

.info_pesquisa {
    margin-top: 20px;
    padding: 18px;
    background: #f7f7f7;
    border-left: 4px solid #8b0000;
    border-radius: 12px;
}



*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

/* BODY */

.body_contato{
    font-family:'Poppins',sans-serif;
    background:#f4f4f4;
    color:#222;
    line-height:1.7;
}


/* ==========================================================================
   6. ESTILOS DA PÁGINA PESQUISA (pesquisa.php)
   ========================================================================== */


/* HERO */

.hero_contato{
    position:relative;
    width:100%;
    height:55vh;
    min-height:420px;
    overflow:hidden;
}

.hero-img_contato{
    width:100%;
    height:100%;
    object-fit:cover;
    filter:brightness(0.45);
}

.overlay_contato{
    position:absolute;
    inset:0;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    text-align:center;
    padding:20px;
    color:white;
}

.overlay_contato h1{
    font-size:large;
    margin-bottom:15px;
}

.overlay_contato p{
    font-size:1.1rem;
    max-width:800px;
}

/* CONTAINER */

.container_contato{
    width:90%;
    max-width:1200px;
    margin:auto;
    padding:70px 0;
}

/* GRID */

.grid_contato{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
    gap:35px;
}

/* CARD */

.card_contato{
    background:white;
    border-radius:24px;
    overflow:hidden;
    box-shadow:0 5px 20px rgba(0,0,0,0.08);
    transition:0.3s;
}

.card_contato:hover{
    transform:translateY(-5px);
}

.content_contato{
    padding:35px;
}

/* TITULOS */

.title_contato{
    font-size:large;
    margin-bottom:25px;
    color:#111;
    position:relative;
}

.title_contato::after{
    content:'';
    width:70px;
    height:4px;
    background:#8b0000;
    position:absolute;
    left:0;
    bottom:-10px;
    border-radius:10px;
}

/* IMAGEM */

.img_contato{
    width:100%;
    height:320px;
    object-fit:scale-down;
}

/* TEXTO */

.texto_contato{
    font-family: 'Times New Roman', Times, serif;
    font-size: large;
    color:#444;
    margin-bottom:15px;
}

/* INFO */

.info_contato{
    margin-top:25px;
}

.info-item_contato{
    margin-bottom:15px;
}

/* FORM */

.form_contato{
    display:flex;
    flex-direction:column;
    gap:18px;
}

.input_contato,
.textarea_contato{
    width:100%;
    padding:15px 18px;
    border:none;
    border-radius:14px;
    background:#f3f3f3;
    font-size:1rem;
    font-family: 'Times New Roman', Times, serif;
    transition:0.3s;
}

.input_contato:focus,
.textarea_contato:focus{
    outline:none;
    background:#ececec;
}

.textarea_contato{
    min-height:180px;
    resize:vertical;
}

/* BOTÃO */

.button_contato{
    border:none;
    background:#8b0000;
    color:white;
    padding:16px;
    border-radius:14px;
    font-size:1rem;
    font-weight:500;
    cursor:pointer;
    transition:0.3s;
}

.button_contato:hover{
    background:#5f0000;
}

/* FOOTER */

.footer_contato{
    background:#111;
    color:white;
    text-align:center;
    padding:35px 20px;
    margin-top:40px;
}


/* ==========================================================================
   7. RESPONSIVIDADE (MEDIA QUERIES GLOBAIS) MOBILE
   ========================================================================== */
@media(max-width: 768px) {
    body {
        font-size: 15px;
    }

/* Compensação de distância no computador (quando o menu está na lateral) */
    html {
        scroll-padding-top: 20px;
    }

    main {
        margin-top: 0;
        display: block;
        clear: both;
    }

    .div_titulo {
        height: auto; /* Permite que o título respire se quebrar em duas linhas no celular */
        padding: 10px 15px; 
    }

    .h1_titulo {
        font-size: 20px; /* Diminui o tamanho da fonte no celular para não quebrar feio */
    }
    
    /* Ajusta o Header para virar uma barra no topo no celular */
    header {
        position: fixed; /* Fica fixo no topo do celular */
        width: 100%;
        max-width: 100%;
        min-width: 100%;
        height: 60px; /* Altura da barrinha do topo */
        display: flex;
        align-items: center;
        padding: 0 20px;
        overflow: visible; 
        background-color: #960018;
    }
    
    /* Ajusta os elementos internos do header para o modo mobile */
    .div_top {
        padding: 0;
        height: 50px;
        position: absolute;    /* Desprende do fluxo do botão hambúrguer */
        left: 50%;             /* Move o início da div para o meio exato da tela */
        transform: translateX(-50%); /* Puxa metade do tamanho dela de volta, centralizando 100% */
        display: flex;
        align-items: center;
        justify-content: center;
        pointer-events: none;  /* Garante que ela não cubra cliques de outros elementos */
        
    }
    .div_top img {
        height: 100%;
        width: auto;
        object-fit:scale-down; 
              
        
    }

    /* O BOTÃO HAMBÚRGUER (Desenho dos 3 riscos) */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 10000;
    }

    .menu-toggle span {
        width: 100%;
        height: 3px;
        background-color: white; /* Cor dos 3 riscos */
        border-radius: 3px;
        transition: 0.3s;
    }

    /* ESCONDE O MENU POR PADRÃO NO CELULAR (Joga para fora da tela na esquerda) */
    nav {
        position: fixed;
        top: 60px; /* Começa logo abaixo da barrinha do topo */
        left: -100%; /* Totalmente escondido à esquerda */
        width: 80%; /* Ocupa 80% da largura da tela do celular */
        height: calc(100vh - 60px);
        background-color: #960018;
        transition: 0.4s ease-in-out; /* Efeito suave de deslizar */
        box-shadow: 5px 0 15px rgba(0,0,0,0.3);
        z-index: 10000;
    }

    nav ul {
        flex-direction: column;
    }

    /* QUANDO O JAVASCRIPT ATIVAR A CLASSE "menu-aberto", O MENU APARECE */
    header.menu-aberto nav {
        left: 0; /* Desliza para dentro da tela */
        background-image: url(top.png);
        background-repeat: no-repeat;  
        background-position-x: center;      
        align-content: center;   
        z-index: 10000;       
    }

    /* Efeito opcional: Transforma o hambúrguer em um "X" quando aberto */
    header.menu-aberto .menu-toggle span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    header.menu-aberto .menu-toggle span:nth-child(2) {
        opacity: 0;
    }
    header.menu-aberto .menu-toggle span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    /* Remove as margens esquerdas do conteúdo no celular, já que o menu sumiu */
    .div_logo, main, footer {
        width: 100%;
        margin-left: 0;
    }

    .div_logo {
        margin-top: 60px; /* Empurra a logo para não ficar embaixo da barra fixa */
        height: 400px; /* Reduz um pouco o tamanho do banner no celular */
    }
}

/* Garante que o botão hambúrguer fique escondido no computador */
@media(min-width: 769px) {
    .menu-toggle {
        display: none;
    }
}



    .hero_contato{
        height:50vh;
    }

    .overlay_contato h1{
        font-size:2.4rem;
    }

    .title_contato{
        font-size:1.7rem;
    }

    .content_contato{
        padding:28px;
    }

    .img_contato{
        height:260px;
    }

    .body_contato{
        font-size:15px;
    }
