/* ==========================================================================
   1. ESTILIZAÇÃO GLOBAL DO SITE
   ========================================================================== */

html,
body {
    background-color: rgb(244, 236, 228) !important;
    color: #333333; /* Contraste ideal de leitura sobre o fundo creme */
    min-height: 100vh; /* Garante que o creme ocupe toda a altura da tela, mesmo em páginas curtas */
}

main {
    padding-top: 2rem; /* Empurra o primeiro conteúdo (título ou section) para baixo */
}

/* Regra Editorial: Todos os parágrafos do escopo principal herdam o estilo */
main p {
    text-indent: 10%;
    text-align: justify; 
    margin-bottom: 1.5rem; /* Espaço sutil entre um parágrafo e outro */
    line-height: 1.85; /* Linhas espaçadas para leitura leve e elegante */
    letter-spacing: 0.02em; 
    font-family: 'Lora', Georgia, serif;
    font-size: 1.15rem; /* Serifas editoriais gostam de um tamanho ligeiramente maior */
    color: #2b2b2b; /* Um preto suave/grafite cansa menos os olhos */
}

main h1, 
main h2, 
main h3 {
    margin-top: 3.5rem; /* Garante o afastamento elegante em relação ao header */
    padding-bottom: 1.5rem;
}

/* Definição global de títulos */
h1, h2, h3, .titulo-notas, .letra-mono, .bloco-mutacao-a {
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.05em; /* Um leve espaço entre as letras nos títulos fica muito elegante */
}

/* Isolamento e espaçamento generoso ao redor de blocos de lista no main */
main .content {
    margin-top: 3.5rem;    
    margin-bottom: 3.5rem; 
}

/* Correção para os números da lista ordenada aparecerem com o Bulma ativo */
main .content ol {
    list-style-type: decimal !important;
    margin-left: 2rem !important;
    padding-left: 0.5rem !important;
}

main .content ol li {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 1.2rem; /* Afasta os itens internos da lista para respirarem */
    text-indent: 0; /* Garante que os itens da lista fiquem alinhados magneticamente pelos números */
}

/* Proteção contra a herança do "main p" */
.text-indent-zero {
    text-indent: 0 !important;
}


/* ==========================================================================
   2. ESTILIZAÇÃO DA NAVEGAÇÃO (NAVBAR)
   ========================================================================== */

/* --- Estrutura e Aproximação --- */
.navbar {
    background-color: rgb(244, 236, 228) !important;
    padding: 1rem 0;
    display: flex !important;
    justify-content: center !important; /* Força o alinhamento central na página */
    width: 100%;
}

/* O container unificado agora atua como o grid rígido de 960px alinhado com o site */
.nav-conteudo-unificado {
    position: relative;
    display: flex !important;
    align-items: center;
    justify-content: center; 
    width: 100%;
    max-width: 960px; 
    margin: 0 auto !important;
    padding: 0 1.5rem;
}

/* Isola a logo à esquerda e impede colisões de fluxo */
.nav-conteudo-unificado .navbar-brand {
    position: absolute !important;
    left: 0rem; 
    top: 50%;
    transform: translateY(-50%);
    z-index: 20; 
    background-color: transparent !important;
    transition: left 0.3s ease; /* Transição suave se a tela for redimensionada */
}

/* Controla o tamanho da imagem da logo */
.imagem-logo-nav {
    max-height: 50px !important; 
    width: auto;
    display: block;
}

/* Neutraliza o comportamento padrão do Bulma que jogava o menu para os lados */
.nav-conteudo-unificado .navbar-menu {
    display: flex !important;
    background-color: transparent !important;
    box-shadow: none !important;
    width: auto !important;
    flex-grow: 0 !important;
    margin: 0 auto !important; /* Força a centralização matemática perfeita */
}

/* Alinha e espaça as opções de links centrais */
.nav-conteudo-unificado .navbar-start {
    display: flex !important;
    justify-content: center !important;
    align-items: center;
    gap: 3rem; /* Distância elegante entre os links */
    margin-right: 0 !important;
}

/* --- Links Principais (Menu Superior) --- */
.navbar-item,
.navbar-link {
    font-family: 'Inter', sans-serif !important; 
    color: #1a1a1a !important; 
    font-weight: 500;
    font-size: 1.5rem;
    opacity: 1 !important; 
    background-color: transparent !important;
    transition: color 0.25s ease;
}

/* Hover unificado nos links superiores */
.navbar-start > .navbar-item:hover,
.navbar-link:hover {
    color: #000000 !important;
}

/* --- Tratamento da Seta do Dropdown --- */
.navbar-link::after {
    border-color: #1a1a1a !important; 
    transform: rotate(-135deg);
    right: -0.2em; /* Aproxima sutilmente a seta do texto do link */
    top: 52%;
    width: 0.45em;
    height: 0.45em;
    transition: transform 0.25s ease;
}

/* Pequena rotação elegante na seta quando o menu abre */
.navbar-item.has-dropdown:hover .navbar-link::after {
    transform: rotate(-315deg);
}

/* --- ESTILIZAÇÃO Total do Menu Suspenso (Dropdown) --- */
.navbar-item.has-dropdown .navbar-dropdown,
.navbar-dropdown {
    background-color: rgb(240, 230, 220) !important; 
    border: 1px solid #1a1a1a !important; 
    border-top: 2px solid #1a1a1a !important; 
    border-radius: 4px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.06) !important; 
    padding: 0.5rem 0 !important;
    display: none; 
    position: absolute !important;
}

/* Exibe o dropdown apenas no hover */
.navbar-item.has-dropdown:hover .navbar-dropdown {
    display: block !important;
}

/* Links internos do Dropdown */
.navbar-dropdown .navbar-item {
    font-family: 'Inter', sans-serif !important;
    color: #333333 !important;
    font-size: 1rem !important; 
    padding: 0.6rem 1.5rem !important;
    transition: background-color 0.1s ease, color 0.1s ease;
}

/* Hover nos links internos do Dropdown */
.navbar-dropdown .navbar-item:hover {
    background-color: #1a1a1a !important; 
    color: rgb(244, 236, 228) !important; 
}


/* ==========================================================================
   3. ESTILIZAÇÃO DO RODAPÉ (FOOTER)
   ========================================================================== */

footer {
    font-family: 'Inter', sans-serif;
    color: #4a4a4a !important;
}

/* ESTILIZAÇÃO DO SEPARADOR DO RODAPÉ */
.separador-footer {
    display: block !important;
    height: 1px !important;
    border: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background-color: transparent !important; 
    background-image: linear-gradient(to right, 
        rgba(0, 0, 0, 0) 0%, 
        rgba(0, 0, 0, 0.15) 20%, 
        rgba(0, 0, 0, 0.15) 80%, 
        rgba(0, 0, 0, 0) 100%
    ) !important;
}

/* --- Logo --- */
.logo-footer {
    max-width: 160px;
    height: auto;
    display: block;
    margin: 0 auto; /* Mobile centralizado */
}

.mb-5-mobile {
    text-align: center; 
}

/* --- Títulos das Colunas do Rodapé --- */
footer .subtitle {
    font-family: 'Inter', sans-serif !important;
    letter-spacing: 0.05em;
    color: #7a7a7a !important; 
}

/* --- Listas de Links --- */
.lista-footer {
    list-style: none !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
}

.lista-footer li {
    margin-bottom: 0.5rem;
}

.link-footer {
    font-family: 'Inter', sans-serif !important; 
    color: #4a4a4a;
    text-decoration: none;
    font-size: 0.95rem;
    position: relative; 
    padding-bottom: 2px;
    transition: color 0.25s ease, text-shadow 0.25s ease;
}

.link-footer:hover {
    color: #000000; 
    text-shadow: 0.1px 0 0 #000000, -0.1px 0 0 #000000;
}

.link-footer::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: #000000;
    transform-origin: bottom left;
    transition: transform 0.25s ease;
}

.link-footer:hover::after {
    transform: scaleX(1); 
}

.lista-footer, .lista-footer a {
    font-family: 'Inter', sans-serif !important;
    color: #4a4a4a !important;
}

.lista-footer a:hover {
    color: #000000 !important;
}

/* --- Ícone do Instagram (Máscara + Gradiente) --- */
.link-instagram-footer {
    display: inline-block;
}

.icone-instagram-vibrant {
    width: 52px; /* Tamanho aumentado conforme solicitado */
    height: 52px;
    display: block;
    opacity: 0.7; 
    -webkit-mask: url('../img/icones/instagram.svg') no-repeat center;
    mask: url('../img/icones/instagram.svg') no-repeat center;
    -webkit-mask-size: contain;
    mask-size: contain;
    background-color: #4a4a4a;
    transition: transform 0.3s ease, background-color 0.3s ease, opacity 0.3s ease;
}

.link-instagram-footer:hover .icone-instagram-vibrant {
    transform: translateY(-4px); 
    opacity: 1; 
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}

/* E-mail de contato no rodapé */
#contato-email {
    opacity: 0.8;
}

.icone-email-footer {
    width: 14px; /* Tamanho proporcional ao texto */
    height: 14px;
    display: inline-block;
    background-color: currentColor; /* Pega a cor do texto do link automaticamente */
    -webkit-mask: url('../img/icones/email.svg') no-repeat center;
    mask: url('../img/icones/email.svg') no-repeat center;
    -webkit-mask-size: contain;
    mask-size: contain;
}


/* ==========================================================================
   SISTEMA GLOBAL DE MARCA-D'ÁGUA DINÂMICA
   ========================================================================== */

/* 1. Container dinâmico injetado quando a imagem usa o Motor 2 */
.container-marca-dagua {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden;
    display: block;
    z-index: 1; /* Mantém a tag img estrutural na base */
}

.container-marca-dagua img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
}

/* 2. O Escudo Visual (Pseudo-elemento ::before)
   z-index alterado para 12: garante que as linhas fiquem acima do .trabalho-overlay (que é z-index 10) */
.container-marca-dagua.camada-marca-ativa::before,
.trabalho-img-blindada.camada-marca-ativa::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* Z-index 12: Flutua acima da foto real e do overlay escuro de hover (z-index 10) */
    z-index: 12 !important; 
    
    /* Crucial: Cliques atravessam as linhas e atingem o link wrapper normalmente */
    pointer-events: none !important; 
    
    /* Linhas diagonais discretas e finas em padrão editorial */
    background: repeating-linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.25) 0px,
        rgba(255, 255, 255, 0.25) 4px,
        transparent 4px,
        transparent 60px
    );
}

/* Força o mesmo padrão robusto em telas de alta resolução */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .container-marca-dagua.camada-marca-ativa::before,
    .trabalho-img-blindada.camada-marca-ativa::before {
        background: repeating-linear-gradient(
            45deg,
            rgba(255, 255, 255, 0.25) 0px,
            rgba(255, 255, 255, 0.25) 4px,
            transparent 4px,
            transparent 60px
        );
    }
}


/* ==========================================================================
   4. REGRAS DE RESPONSIVIDADE COMPARTILHADAS (DESKTOP)
   ========================================================================== */

/* Regra geral de largura para as páginas */
@media screen and (min-width: 1408px) {
    
    .container,
    .container-editorial {
        max-width: 960px !important;
    }

    /* Comportamento Ultra-Wide: Só afasta a logo se o monitor for grande o suficiente para aguentar */
    .nav-conteudo-unificado .navbar-brand {
        left: -16rem !important;
    }
}

@media screen and (min-width: 1024px) {
    .logo-footer {
        margin: 0;
    }
    
    .mb-5-mobile {
        text-align: left;
    }

   /* Força o Instagram a se alinhar na extremidade esquerda de sua coluna */
    .is-justify-content-start-desktop {
        justify-content: flex-start !important;
    }
}

/* Garante a centralização correta em telas menores */
@media screen and (max-width: 1023px) {
    .is-justify-content-center-mobile {
        justify-content: center !important;
    }
}