/**
 * Theme Name:     AOR2
 * Author:         Carlos F P Rocha
 * Template:       astra
 * Text Domain:	   aor2
 * Description:    Tema para o site da AOR/2 RS
 */
 
@charset "UTF-8";

/* 🔹 Reset básico */
html, body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, a, img, div, span, section, article, header, footer, main, nav {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

input, button, select, textarea {
    box-sizing: border-box;
    font: inherit;
}

/* 🔹 Estrutura base */
html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: Arial, sans-serif;
    background-color: darkgray;
    overflow-x: hidden;
}



/* 🔹 Header */
body header.cabecalho {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: lightgreen;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 🔹 Logo */
body header.cabecalho div.logo {
    width: 100%;
    height: 217px;
    background: url("/wp-content/themes/aor2/assets/imgs/header.jpg") center/cover no-repeat;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

/* 🔹 Menu */
body header.cabecalho nav.menu {
    width: 100%;
    background-color: lightgreen;
    padding: 10px 0;
    display: flex;
    justify-content: left;
}

body header.cabecalho nav.menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    background-color: lightgreen;
}

body header.cabecalho nav.menu ul li {
    display: inline-flex;
}

body header.cabecalho nav.menu ul li a,
body header.cabecalho nav.menu ul li .titulo-smenu {
    color: black;
    padding: 10px 15px;
    text-decoration: none;
}

body header.cabecalho nav.menu ul li a:hover,
body header.cabecalho nav.menu ul li.submenu:hover .titulo-smenu {
    background-color: darkgreen;
    color: yellow;
}

/* 🔹 Submenu */
body header.cabecalho nav.menu ul li.submenu .lista-itens {
    display: none;
    position: absolute;
    background-color: lightgreen;
    min-width: 150px;
    box-shadow: 0px 8px 16px 0px darkgreen;
}

body header.cabecalho nav.menu ul li.submenu .lista-itens a {
    display: block;
    padding: 10px;
    color: black;
    text-decoration: none;
}

body header.cabecalho nav.menu ul li.submenu .lista-itens a:hover {
    background-color: darkgreen;
    color: yellow;
}

body header.cabecalho nav.menu ul li.submenu:hover .lista-itens {
    display: block;
}

/* 🔹 Main */
body main {
    padding: 20px;
}

/* 🔹 Rodapé */
body footer section.rodape {
    background-color: #5ca04d;
    color: black;
    padding: 25px;
    text-align: center;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}

/* 🔹 Colunas */
body footer section.rodape div.col-2 {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    max-width: 1140px;
    margin: auto;
}

/* 🔹 Localização */
body footer section.rodape div.col-2 div.localizacao {
    text-align: left;
}

/* 🔹 Redes Sociais */
body footer section.rodape div.col-2 div.redes-sociais {
    display: flex;
    gap: 10px;
    justify-content: center;
}

body footer section.rodape div.col-2 div.redes-sociais img {
    width: 30px;
    height: auto;
}

/* 🔹 Links */
body footer section.rodape a {
    color: black;
    text-decoration: none;
}

body footer section.rodape a:hover {
    text-decoration: underline;
}

/* 🔹 Linha de Direitos */
body footer section.rodape div.linha {
    font-size: 14px;
    margin-top: 10px;
}


/* 🔹 Página Diretoria */
body div.postagem h1 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

/* 🔹 Diretoria */
body div.diretoria {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 🔹 Diretor */
body div.diretoria div.diretor {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

/* 🔹 Foto do Diretor */
body div.diretoria div.diretor img.foto-diretor {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
}

/* 🔹 Informações do Diretor */
body div.diretoria div.diretor div.info-diretor {
    flex-grow: 1;
}

/* 🔹 Cargo */
body div.diretoria div.diretor div.info-diretor p.cargo {
    font-size: 1.5em;
    font-weight: bold;
}

/* 🔹 Nome */
body div.diretoria div.diretor div.info-diretor p.nome {
    font-size: 1.2em;
}

/* 🔹 Currículo */
body div.diretoria div.diretor div.info-diretor p.curriculo {
    color: #666;
}

/* 🔹 E-mails */
body div.diretoria div.diretor div.info-diretor p a {
    color: black;
    text-decoration: none;
}

body div.diretoria div.diretor div.info-diretor p a:hover {
    text-decoration: underline;
}


/* 🔹 Lista de Hinos */
body div#lista-hinos ul.hinos-lista {
    padding: 0;
    list-style: none;
    text-align: left;
}

body div#lista-hinos ul.hinos-lista li {
    margin: 10px 0;
}

body div#lista-hinos ul.hinos-lista li a {
    display: block;
    padding: 8px;
    color: black;
    text-decoration: none;
    background: #ddd;
    border-radius: 5px;
}

body div#lista-hinos ul.hinos-lista li a:hover {
    background: darkgreen;
    color: yellow;
}

/* 🔹 Letras dos Hinos */
body div.letra-hino {
    display: none;
    padding: 15px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

body div.letra-hino:target {
    display: block;
}

/* 🔹 Títulos dos Hinos */
body div.letra-hino h2 {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 10px;
}

/* 🔹 Estilização do Texto dos Hinos */
body div.letra-hino pre {
    white-space: pre-wrap;
    font-size: 1.2rem;
    line-height: 1.5;
    color: #333;
    font-family: 'Courier New', monospace;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

/* 🔹 Botão "Voltar" universal */
body a.voltar {
    display: inline-block;
    text-align: center;
    margin-top: 10px;
    padding: 10px 15px;
    background: darkgreen;
    color: yellow;
    font-weight: bold;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease;
}

body a.voltar:hover {
    background: black;
    color: white;
}



/* 🔹 Responsividade */
@media (max-width: 768px) {
    body header.cabecalho nav.menu {
        flex-direction: column;
        align-items: center;
        max-height: 90vh;
        overflow-y: auto;
    }
    body header.cabecalho nav.menu ul {
        flex-direction: column;
        width: 100%;
    }
    body header.cabecalho nav.menu ul li {
        text-align: center;
        width: 100%;
    }

    .col-2 {
        flex-direction: column;
        text-align: center;
    }

    .diretor {
        flex-direction: column;
        align-items: center;
    }

    .foto-diretor {
        max-width: 120px;
        height: auto;
    }
}


/* 🔹 Centraliza qualquer <figure> com a classe aligncenter */
.wp-block-image.aligncenter {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%; /* Garante que a <figure> ocupe todo o espaço disponível */
}

/* 🔹 Garante que a imagem dentro da <figure> também fique centralizada */
.wp-block-image.aligncenter img {
    display: block;
    margin: 0 auto;
}
