/* ==================================================
   CONFIGURAÇÕES GERAIS
   ================================================== */

:root {
    --cor-fundo: #f8f9fa;
    --cor-card: #ffffff;
    --cor-texto-principal: #212529;
    --cor-texto-secundario: #495057;
    --cor-destaque: #0d6efd;
    --cor-destaque-hover: #0b5ed7;

    /* Menu superior */
    --menu-fundo: #ffffff;
    --menu-texto: #212529;
    --menu-texto-opaco: #6c757d;
    --menu-hover: #0d6efd;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system,
                 BlinkMacSystemFont,
                 "Segoe UI",
                 Roboto,
                 sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--cor-card);
    color: var(--cor-texto-secundario);
    line-height: 1.6;
    position: relative;
}

/* ==================================================
   TOPO FIXO
   ================================================== */

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--menu-fundo);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    z-index: 1000;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 15px 10%;
}

nav .logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

nav .logo-img {
    height: 32px;
    width: auto;
    display: block;
}

nav .logo-texto {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--menu-texto);
    letter-spacing: -0.5px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 32px;
}

nav ul a {
    text-decoration: none;
    color: var(--menu-texto-opaco);
    font-weight: 600;
    font-size: 1.2rem;
    transition: color 0.2s;
}

nav ul a:hover {
    color: var(--menu-hover);
}

/* ==================================================
   CONTAINER PRINCIPAL
   ================================================== */

.container {
    width: 100%;
    padding-top: 75px;
}


/* ==================================================
   ÂNCORA
   ================================================== */

.ancora {
    position: relative;
    top: -120px;
    visibility: hidden;
}

/* ==================================================
   SEÇÕES
   ================================================== */

section {
    width: 100%;
    background-color: var(--cor-card);
    padding: 0 20px 90px 20px;
    border-bottom: 1px solid #eee;
}

section:nth-child(even) {
    background-color: var(--cor-fundo);
}

.secao-conteudo {
    max-width: 700px;
    margin: 0 auto;
    scroll-margin-top: 140px;
    padding-top: 90px;
}

/* ==================================================
   TÍTULO PRINCIPAL
   ================================================== */

h1 {
    font-size: 2.4rem;
    color: var(--cor-texto-principal);
    line-height: 1.2;
    margin-bottom: 20px;
}

/* ==================================================
   CABEÇALHO DAS SEÇÕES
   ================================================== */

section h2 {
    font-size: 2.2rem;
    color: var(--cor-texto-principal);

    position: sticky;
    position: -webkit-sticky;

    top: 65px;
    z-index: 900;

    background-color: var(--cor-card);

    margin-top: -15px;
    margin-bottom: 0;

    padding: 30px 0 20px 0;
}

section:nth-child(even) h2 {
    background-color: var(--cor-fundo);
}

/* ==================================================
   PARÁGRAFOS
   ================================================== */

section p {
    font-size: 1.05rem;
    color: var(--cor-texto-secundario);
    margin-bottom: 20px;

    /* melhora consideravelmente a leitura */
    max-width: 75ch;
}

/* ==================================================
   CARROSSEL
   ================================================== */

.carrossel-container {
    width: 85%;
    max-width: 500px;
    margin: 30px auto;
    position: relative;
}

.carrossel-trilho {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;

    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);

    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.carrossel-trilho::-webkit-scrollbar {
    display: none;
}

.carrossel-item {
    min-width: 100%;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    scroll-snap-align: start;
}

.carrossel-img {
    width: 100%;
    height: auto;
    display: block;
}

.carrossel-aviso {
    display: flex;
    align-items: center;
    gap: 6px;

    margin-top: 8px;

    font-size: 0.9rem;
    color: var(--cor-texto-secundario);
}

/* ==================================================
   IMAGENS
   ================================================== */

.imagem-secao {
    width: 100%;
    max-width: 600px;
    height: auto;

    display: block;

    margin-bottom: 25px;

    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* ==================================================
   PROJETOS
   ================================================== */

.grid-projetos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;

    margin-top: 30px;
}

.card-projeto {
    background: var(--cor-card);
    padding: 24px;

    border: 1px solid #eee;
    border-radius: 10px;

    box-shadow: 0 4px 10px rgba(0,0,0,0.04);
}

.card-projeto h3 {
    margin-bottom: 12px;

    color: var(--cor-texto-principal);
    line-height: 1.4;
}

/* ==================================================
   ACCORDION (DETAILS)
   ================================================== */

details {
    margin-bottom: 12px;
    padding: 16px;

    background: var(--cor-card);

    border: 1px solid #eee;
    border-radius: 8px;
}

summary {
    cursor: pointer;

    font-size: 1.2rem;
    font-weight: 600;

    color: var(--cor-texto-principal);
    
    scroll-margin-top: 200px;
}

details[open] summary {
    margin-bottom: 10px;
    color: var(--cor-destaque);
}

details p {
    margin-bottom: 0;
    padding-top: 5px;
}

details ul {
    margin: 12px 0 20px 25px;
    padding-left: 5px;
    color: var(--cor-texto-secundario);
}

details li {
    margin-bottom: 10px;
    line-height: 1.6;
}

details h4 {
    margin-top: 24px;
    margin-bottom: 10px;

    /* font-size: 1.2rem; */
    font-size: 1.1rem;
    font-weight: 600; /* novo */
    color: var(--cor-texto-principal);
}

details h4:first-of-type {
    margin-top: 10px;
}

/* ==================================================
   BOTÃO VOLTAR AO TOPO
   ================================================== */

.voltar-topo {
    position: fixed;

    right: 30px;
    bottom: 30px;

    width: 50px;
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    background-color: var(--cor-destaque);
    color: white;

    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;

    border-radius: 50%;

    box-shadow: 0 4px 10px rgba(0,0,0,0.15);

    z-index: 2000;

    transition: transform 0.2s,
                background-color 0.2s;
}

.voltar-topo:hover {
    transform: scale(1.1);
    background-color: var(--cor-destaque-hover);
}
  
 
/* ==================================================
   TABELA DE DATAS
   ================================================== */

.tabela-datas {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    font-size: 1rem;
    background-color: var(--cor-card);
}

.tabela-datas th,
.tabela-datas td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.tabela-datas th {
    background-color: var(--cor-fundo);
    color: var(--cor-texto-principal);
    font-weight: 600;
}

.tabela-datas tr:hover {
    background-color: rgba(13,110,253,0.02);
}

.tabela-responsiva {
    overflow-x: auto;
    width: 100%;
    display: block;
}

/* ==================================================
   DESTAQUES E TEXTOS
   ================================================== */

.email-contato {
    color: var(--cor-destaque);
    font-weight: 400;
}

.texto-alerta {
    margin: 20px 0;
    padding: 15px;

    background-color: rgba(13,110,253,0.05);

    border-left: 4px solid var(--cor-destaque);
    border-radius: 4px;

    color: var(--cor-texto-principal);
}

.texto-alerta p {
    margin-bottom: 0;
    font-size: 1.05rem;
}

.texto-destaque {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--cor-destaque);
    line-height: 1.8;
    margin-bottom: 25px;
}

/*
section h4 {
    font-size: 1.1rem;
    margin-top: 25px;
    margin-bottom: 10px;
    color: var(--cor-texto-principal);
    font-weight: 600;
}*/

/* ==================================================
   PERFIL INICIAL
   ================================================== */

.perfil-simples {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.logo-pessoal {
    width: 56px;
    height: 56px;

    border-radius: 10px;

    flex-shrink: 0;

    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.perfil-info {
    flex: 1;
}

.cargo-principal {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--cor-texto-principal);
}

.bloco-contato {
    margin-top: 25px;
}

/* ==================================================
   LINHAS DE CONTATO
   ================================================== */

.linha-contato {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

.linha-contato svg {
    color: var(--cor-destaque);
    flex-shrink: 0;
    margin-top: 3px;
}

/* ==================================================
   CABEÇALHO PIC-DF
   ================================================== */

.cabecalho-pic {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.titulo-pic {
    flex-shrink: 0;
}

.contatos-pic {
    display: flex;
    flex-direction: column;
    align-items: flex-end;

    font-size: 0.85rem;
    font-weight: normal;
    line-height: 1.5;

    color: var(--cor-texto-secundario);
}

.linha-contato-pic {
    display: flex;
    align-items: center;
    gap: 8px;
}

.linha-contato-pic svg,
.whatsapp-pic svg {
    flex-shrink: 0;
}

.whatsapp-pic a {
    color: var(--cor-destaque);
    text-decoration: none;
    font-weight: 600;
}

/* ==================================================
   RESPONSIVIDADE
   ================================================== */

@media (max-width: 768px) {

    nav {
        flex-direction: column;
        gap: 12px;
        padding: 15px 5%;
        text-align: center;
    }

    nav ul {
        gap: 20px;
    }

    .container {
        padding-top: 160px;
    }

    .secao-conteudo {
        padding-top: 20px;
    }

    section {
        padding: 40px 20px 60px 20px;
    }

    section h2 {
		position: sticky;
		top: 150px;
		font-size: 1.8rem;
		margin-bottom: 0;
		padding: 0;
	}
    
/*    section h2 {
        position: static;
        font-size: 1.8rem;
        margin-bottom: 20px;
        padding: 0;
    } */

    .perfil-simples {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
    }

    .logo-pessoal {
        width: 72px;
        height: 72px;
    }

    .cabecalho-pic {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .contatos-pic {
        align-items: flex-start;
    }

    .voltar-topo {
        width: 45px;
        height: 45px;

        right: 20px;
        bottom: 20px;

        font-size: 1.3rem;
    }

    .carrossel-img {
        height: 350px;
    }
}

/* ==================================================
   RODAPÉ
   ================================================== */

footer {
    text-align: center;
    padding: 40px 20px;

    font-size: 0.9rem;
    color: var(--cor-texto-secundario);

    background-color: var(--cor-card);
}