/* ==========================================================================
   STYLE.CSS
   ========================================================================== */

:root {
    --primary-blue: #2A55FF;
    --text-dark: #1a1a1a;
    --text-grey: #666666;
    --bg-white: #ffffff;
    --max-width: 1400px;
    --section-gap: 4rem;
}

html { overflow-y: scroll; }
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Exo', sans-serif;
    color: var(--text-dark);
    line-height: 1.5;
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; height: auto; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

.highlight-text { font-size: 1rem; line-height: 1.4; font-weight: 400; color: var(--primary-blue); text-justify:margin-top; }
.small-text p { font-size: 0.95rem; color: var(--primary-blue); margin-bottom: 1rem; text-align: justify; }


/* --- HERO SECTION (LOGO E TÍTULO MAIS À ESQUERDA) --- */
.hero-section {
    position: relative;
    width: 100%;
    height: 90vh;
    overflow: hidden;
    background-color: #f0f0f0;
    margin-bottom: var(--section-gap);
}

.mobile-topbar {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 30;
    display: none;
    align-items: center;
    gap: 0.75rem;
}

.mobile-menu-toggle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.8);
    background: rgba(0,0,0,0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: background 0.3s ease, transform 0.3s ease;
}

.mobile-menu-toggle .menu-lines,
.mobile-menu-toggle .menu-lines::before,
.mobile-menu-toggle .menu-lines::after {
    content: '';
    display: block;
    width: 18px;
    height: 2px;
    background: #fff;
    position: absolute;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu-toggle .menu-lines::before { transform: translateY(-6px); }
.mobile-menu-toggle .menu-lines::after { transform: translateY(6px); }

.mobile-menu-toggle[aria-expanded="true"] .menu-lines { opacity: 0; }
.mobile-menu-toggle[aria-expanded="true"] .menu-lines::before { transform: rotate(45deg); opacity: 1; }
.mobile-menu-toggle[aria-expanded="true"] .menu-lines::after { transform: rotate(-45deg); opacity: 1; }

.mobile-menu-toggle:hover { background: rgba(0,0,0,0.45); transform: translateY(-2px); }

.mobile-contact-cta {
    background: rgba(255,255,255,0.9);
    color: var(--primary-blue);
    border-radius: 999px;
    padding: 0.6rem 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 25px rgba(0,0,0,0.12);
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: linear-gradient(180deg, rgba(42,85,255,0.96) 0%, rgba(42,85,255,0.85) 100%);
    color: #fff;
    display: none;
    flex-direction: column;
    gap: 0.8rem;
    padding: 1.5rem;
    z-index: 50;
}

.mobile-menu[data-open] { display: flex; }

.mobile-menu a {
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 0.5rem;
}

.hero-section img.hero-img {
    width: 100%; height: 100%; object-fit: cover;
    position: absolute; top: 0; left: 0; z-index: 1;
}

/* Container solto para permitir que toque as bordas da tela */

.hero-content-layer {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.header-logo-container {
    position: absolute;
    top: 3rem;
    left: 3rem;
    width: 200px;
    pointer-events: auto;
    z-index: 20;
}

.project-hero-overlay-title {
    position: absolute;
    bottom: 3rem;
    left: 3rem;
    color: #fff !important;
    font-size: 3.5rem !important;
    font-weight: 700 !important;
    line-height: 1.1;
    z-index: 20;
    text-transform: uppercase;
    pointer-events: auto;
    margin: 0;
}


/* --- CONTEÚDO & GRID --- */
.timeline-flow { position: relative; }

.content-block, .contact-section, .team-section {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2rem;
    max-width: var(--max-width);
    margin: 0 auto var(--section-gap);
    padding: 0 2rem;
    /* IMPORTANTE: Stretch faz as colunas terem a mesma altura */
    align-items: stretch; 
}

.content-block .text-col {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    justify-content: margin-top; /* Padrão: centralizado */
}

.content-block .img-col {
    grid-column: span 4;
    display: flex;
    align-items: center; /* Padrão: centralizado */
}
.content-block .img-col img { width: 100%; height: 500px; object-fit: cover; }

/* Inversão de Lado (Imagem Esquerda / Texto Direita) */
.content-block.reverse .img-col { grid-column: 1 / 5; grid-row: 1; }
.content-block.reverse .text-col { grid-column: 5 / -1; grid-row: 1; }


/* --- AJUSTE ESPECÍFICO: SEÇÃO MÉTODO --- */
/* Força imagem ao topo e texto à base */
.content-block.method-align .img-col {
    align-items: flex-start; /* Imagem no topo */
}
.content-block.method-align .text-col {
    justify-content: flex-end; /* Texto na base */
}


/* --- SEÇÃO EQUIPE --- */
.team-section { 
    align-items: center;
}
.team-section .img-col { grid-column: span 3; }
.team-section .text-col { grid-column: span 3; padding-left: 2rem; }
.contact-cta .text-col { display: flex; flex-direction: column; gap: 1.5rem; justify-content: center; }
.contact-cta .img-col img { height: 100%; object-fit: cover; }

.inline-step-cta {
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--primary-blue);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.inline-step-cta::after {
    content: '→';
    font-size: 0.9rem;
    transition: transform 0.2s ease;
}

.inline-step-cta:hover::after { transform: translateX(3px); }


/* --- BANNER HOME --- */
.full-width-banner { 
    position: relative; 
    width: 100%; height: 70vh; margin-bottom: var(--section-gap);
}
.full-width-banner img { width: 100%; height: 100%; object-fit: cover; }
.banner-overlay {
    position: absolute;
    inset: 0;
    z-index: 20;
    pointer-events: none;
}
.banner-overlay .banner-menu,
.banner-overlay .overlay-title {
    pointer-events: auto;
}

.banner-menu {
    position: absolute; bottom: 4rem; z-index: 20;
    /* Alinha com o logo (3rem) */
    left: 3rem; 
    display: flex; flex-direction: column; gap: 0; align-items: flex-start;
    border-left: 3px solid #fff; 
}
.banner-menu a {
    display: block; color: #fff; font-family: 'Exo', sans-serif;
    font-size: 1.1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; line-height: 1;
    border-bottom: 3px solid #fff; padding: 1rem 1.5rem 1rem 1rem; 
}
.banner-menu a:hover { padding-left: 1.5rem; }
.overlay-title {
    position: absolute; bottom: 3rem; right: 3rem;
    font-size: 5rem; color: #fff; font-weight: 700; text-align: right; line-height: 1; z-index: 20;
}

/* Barra de categorias fixa na página de projetos */
.projects-category-bar {
    display: none;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 2rem;
    margin: 0 auto 2.5rem;
    max-width: var(--max-width);
    border-bottom: 2px solid var(--primary-blue);
}

.projects-category-bar a {
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--primary-blue);
    padding: 0.4rem 0.75rem;
    border-bottom: 2px solid transparent;
}

.projects-category-bar a.active,
.projects-category-bar a:hover {
    border-color: var(--primary-blue);
}


/* --- PROJETOS & CONTACT --- */
.projects-grid {
    display: flex; gap: 1.5rem;
    padding: 0 2rem 2rem 2rem;
    max-width: var(--max-width); width: 100%; margin: 0 auto var(--section-gap);
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin;
}
.project-item { flex: 0 0 350px; scroll-snap-align: start; cursor: pointer; }
.project-item img { width: 100%; height: 450px; object-fit: cover; margin-bottom: 0.5rem; }
.project-meta { display: flex; justify-content: space-between; font-size: 0.9rem; color: var(--primary-blue); font-weight: 600; }

.projects-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 0 2rem 2rem;
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto 2rem;
}

.projects-list-grid .project-item {
    flex: unset;
    width: 100%;
}

.related-projects-grid {
    display: flex;
    gap: 1.5rem;
    padding: 0 2rem 2rem;
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}

.related-projects-grid .project-item { flex: 0 0 350px; width: auto; }
.related-projects-grid .project-item img { height: 450px; }

.projects-pagination {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: flex-end;
    max-width: var(--max-width);
    padding: 0 2rem;
    margin: 0 auto 4rem;
}

.projects-pagination button {
    padding: 0.55rem 1rem;
    border: 1px solid var(--primary-blue);
    background: #fff;
    color: var(--primary-blue);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
}

.projects-pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.projects-pagination .page-indicator {
    color: var(--primary-blue);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.contact-left { grid-column: span 2; display: flex; flex-direction: column; align-items: flex-start; }
.contact-right { grid-column: span 4; height: 550px; }
.contact-links { list-style: none; margin-bottom: 3rem; width: 100%; border-top: 1px solid var(--primary-blue); }
.contact-links li { padding: 1.2rem 0; border-bottom: 1px solid var(--primary-blue); }
.contact-right img.contact-img { width: 100%; height: 100%; object-fit: cover; }

.simple-btn {
    display: inline-block; margin-top: 1rem; padding: 0.6rem 2rem;
    border: 1px solid var(--primary-blue); color: var(--primary-blue);
    text-transform: uppercase; font-weight: 600; font-size: 0.8rem;
}
.blue-btn { background: var(--primary-blue); color: #fff; padding: 0.8rem 2rem; font-weight: 600; border: 1px solid var(--primary-blue); display: inline-block; }


/* --- PÁGINA PROJETO (Mantido igual) --- */
.project-content { max-width: var(--max-width); margin: 0 auto 6rem; padding: 0 2rem; }
.project-gallery-slider { display: flex; gap: 1rem; overflow-x: auto; padding-bottom: 1rem; margin-bottom: 4rem; scroll-snap-type: x mandatory; -ms-overflow-style: none; scrollbar-width: none; }
.project-gallery-slider::-webkit-scrollbar { display: none; }
.project-gallery-slider img { height: 400px; width: auto; object-fit: cover; scroll-snap-align: center; }
.dynamic-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; margin: 4rem 0; align-items: stretch; }
.dynamic-columns img { width: 100%; height: auto; display: block; object-fit: cover; }
.dynamic-columns > div { display: flex; flex-direction: column; justify-content: flex-start; height: 100%; }
.dynamic-columns h1, .dynamic-columns h2, .dynamic-columns h3 { color: var(--primary-blue); font-size: 1.5rem; font-weight: 700; margin-top: -6px; margin-bottom: 0.5rem; line-height: 1; text-transform: uppercase; }
.dynamic-columns p { font-size: 0.95rem; line-height: 1.6; color: var(--text-dark); margin-bottom: 1rem; text-align: justify; }
.dynamic-columns p:last-child { margin-bottom: -5px; }
.project-meta-tags { display: flex; gap: 3rem; border-top: 2px solid var(--primary-blue); border-left: 2px solid var(--primary-blue); padding-top: 1.5rem; padding-left: 1.5rem; margin-top: 0.5rem; margin-bottom: auto; width: fit-content; padding-right: 2rem; }
.dynamic-columns.memoria-align { align-items: stretch; }
.dynamic-columns.memoria-align > div { height: 100%; }
.dynamic-columns.memoria-align > div.memoria-text-column { display: flex; flex-direction: column; }
.dynamic-columns.memoria-align > div.memoria-text-column h1,
.dynamic-columns.memoria-align > div.memoria-text-column h2,
.dynamic-columns.memoria-align > div.memoria-text-column h3 { margin-top: 2rem; }
.dynamic-columns.memoria-align > div.memoria-text-column .project-meta-tags { margin-bottom: auto; }
.dynamic-columns.memoria-align > div.memoria-text-column .memoria-body { margin-top: auto; margin-bottom: 2rem; }
#project-hero.lightbox-cover-disabled { pointer-events: none; cursor: default; }
.meta-tag { display: flex; flex-direction: column; }
.meta-label { font-size: 0.75rem; text-transform: uppercase; color: var(--primary-blue); font-weight: 600; margin-bottom: 0.2rem; }
.meta-value { font-size: 1rem; color: var(--primary-blue); font-weight: 400; text-transform: uppercase; line-height: 1; }
.project-table-container { width: 100%; margin-top: 5rem; display: flex; justify-content: flex-end; }
.project-table { width: 100%; border-collapse: collapse; border-top: 2px solid #000; border-bottom: 2px solid #000; font-size: 0.9rem; }
.project-table td { padding: 0.3rem 0; border-bottom: 2px solid #000; vertical-align: middle; }
.project-table tr:last-child td { border-bottom: none; }
.project-table td:first-child { color: #000; font-weight: 600; text-align: left; white-space: nowrap; width: 1%; padding-right: 2rem; }
.project-table td:last-child { color: var(--primary-blue); text-align: right; font-weight: 800; }
.projects-grid-inline { padding: 0; margin: 0 0 4rem 0; max-width: 100%; }
.related-title { color: var(--primary-blue); font-size: 1rem; font-weight: 700; text-transform: uppercase; margin-bottom: 1.5rem; margin-top: 4rem; }


/* --- SOBRE --- */
.about-main { background: #fff; }
.about-wrapper { max-width: var(--max-width); margin: 0 auto; padding: 0 2rem; display: flex; flex-direction: column; gap: var(--section-gap); }
.about-section { display: flex; flex-direction: column; gap: 1.5rem; }
.about-title { font-size: 3.15rem; color: var(--primary-blue); font-weight: 800; text-transform: uppercase; letter-spacing: 1.2px; }
.about-subtitle { font-size: 1.35rem; color: var(--primary-blue); font-weight: 800; letter-spacing: 0.65px; text-transform: uppercase; }


/* --- SÓCIOS: Grid Rígido (4 ou 2 colunas) --- */

.partners-grid {
    display: grid;
    /* Padrão para Desktop: Força 4 colunas iguais */
    grid-template-columns: repeat(4, 1fr); 
    gap: 1.5rem;
}

/* Regra para Telas Médias e Mobile (Tablets e Celulares) */
@media (max-width: 1200px) {
    .partners-grid {
        /* Abaixo de 1200px, muda direto para 2 colunas */
        /* Nunca passará por 3 colunas */
        grid-template-columns: repeat(2, 1fr); 
    }
}

/* Ajuste fino para Mobile (mantendo 2 colunas, mas reduzindo o gap) */
@media (max-width: 768px) {
    .partners-grid {
        /* Mantém 2 colunas mesmo no celular (nunca 1 coluna) */
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem; /* Reduz o espaço para caber melhor */
    }
    
    /* Ajuste na altura da foto para não ficar muito esticada no mobile */
    .partner-card img {
        height: 200px; /* Leve redução de altura proporcional */
    }
}

/* --- CONTROLE FINO DO NOME E CARGO (PARA SÓCIOS E LISTAS) --- */
/* Aplica tanto para blocos de texto comuns quanto para o grid de parceiros */

/* NOME (Texto em Negrito) */
.about-text-block p strong,
.partner-card p strong {
    display: block;
    font-family: 'Exo', sans-serif;
    color: var(--primary-blue);
    font-size: 1.25rem;    /* Tamanho unificado com o que você pediu */
    font-weight: 800;
    line-height: 1.1;
    margin-top: 0.5rem;
    margin-bottom: 0rem;
    text-transform: uppercase;
}

/* CARGO / CAU (Texto em Itálico) */
.about-text-block p em,
.partner-card p em {
    display: block;
    font-style: normal;
    color: var(--text-grey);
    font-size: 0.75rem;    /* Tamanho legível */
    font-weight: 500;
    letter-spacing: 0.8px;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
}



.partner-card img { width: 100%; height: 260px; object-fit: cover;}

/* --- CORREÇÃO GRID: Linha contínua sobre colunas --- */

.about-text-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 1.5rem;
    width: 100%;
    
    /* REMOVIDO: A borda padrão foi retirada para não afetar todos os blocos */
    border-top: none; 
    padding-top: 0;
    margin-top: 0;
}

/* NOVA CLASSE: Só aplica a borda azul se o JS detectar que é uma seção com título */
.about-text-grid.section-grid {
    border-top: 2px solid var(--primary-blue);
    padding-top: 1.5rem;
    margin-top: 2rem;
}

/* Se o subtítulo estiver dentro desse grid com borda, removemos a borda do próprio subtítulo para não duplicar */
.about-text-grid.section-grid .about-subtitle {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

/* 1. Container do Sócio (A coluna inteira) */
.about-text-block {
    display: flex;
    flex-direction: column;
    /* Aqui você define o espaçamento vertical entre a foto e os textos */
    gap: 0.5rem; 
    margin-bottom: 2rem; /* Espaço extra no final (mobile) */
}

/* 2. A Foto do Sócio */

.about-text-block .about-section {
    gap: 0;
    margin: 0;
}

/* 3. O NOME (Detecta o texto em Negrito <strong>) */
.about-text-block p strong {
    display: block;
    font-family: 'Exo', sans-serif;
    color: var(--primary-blue);
    
    /* --- CONTROLE FINO DO NOME --- */
    font-size: 1.4rem;     /* Tamanho da fonte */
    font-weight: 800;      /* Peso da fonte */
    line-height: 1.1;      /* Altura da linha */
    margin-top: 0.5rem;    /* Espaço acima do nome */
    text-transform: uppercase;
}

/* 4. O CAU (Detecta o texto em Itálico <em>) */
.about-text-block p em {
    display: block;
    font-style: normal;    /* Remove o itálico padrão do navegador */
    color: var(--text-grey);
    
    /* --- CONTROLE FINO DO CAU --- */
    font-size: 0.75rem;    /* Tamanho da fonte */
    font-weight: 500;
    letter-spacing: 1px;   /* Espaçamento entre letras */
    margin-bottom: 1.25rem;/* <-- IMPORTANTE: Espaço entre o CAU e o Currículo */
    text-transform: uppercase;
}

.about-image { position: relative; width: 100%; }
.about-image img { width: 100%; display: block; }
.about-image figcaption {
    position: absolute;
    bottom: 1.75rem;
    right: 1.75rem;
    color: #fff;
    font-size: 3rem;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1;
}
.about-table-container { width: 100%; display: flex; justify-content: flex-start; }
.about-table { width: 50%; align-self: right; border-collapse: collapse; border-top: 2px solid #000; border-bottom: 2px solid #000; font-size: 1rem; font-weight: 400; }
.about-table td { padding: 0.55rem 0; border-bottom: 2px solid #000; vertical-align: middle; }
.about-table tr:last-child td { border-bottom: none; }
.about-table td:first-child { color: #000; font-weight: 500; text-align: left; padding-right: 1rem; }
.about-table td:last-child { color: var(--primary-blue); font-weight: 600; text-align: right; white-space: nowrap; }
.about-cta { background: var(--primary-blue); color: #fff; padding: 3.5rem 2rem; margin-top: var(--section-gap); }
.cta-grid { max-width: var(--max-width); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; align-items: center; }
.cta-text h3 { font-size: 2rem; line-height: 1.3; margin-bottom: 0.75rem; }
.cta-text p { font-size: 1rem; line-height: 1.6; opacity: 0.9; }
.cta-actions { display: flex; flex-direction: column; gap: 0.75rem; align-items: flex-start; }
.cta-contact { display: flex; flex-direction: column; gap: 0.25rem; font-weight: 700; letter-spacing: 0.5px; }
.simple-btn.light { color: #fff; border-color: #fff; }
.about-hero-title { position: absolute; bottom: 3rem; right: 3rem; color: #fff; font-size: 4rem; font-weight: 800; text-transform: uppercase; line-height: 1; }




.about-contact .text-col { display: flex; flex-direction: column; gap: 0.8rem; }
.about-contact .text-col p { margin: 0; line-height: 1.5; }
.contact-cta {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2rem;
    max-width: var(--max-width);
    margin: 0 auto var(--section-gap);
    padding: 0 2rem;
    align-items: stretch;
}
.contact-section .img-col { grid-column: span 3; }
.contact-section .img-col img { width: 100%; height: 100%; object-fit: cover;}
.contact-section .text-col { grid-column: span 3; display: flex; flex-direction: column; justify-content: center; gap: 0.6rem; }
.contact-section .text-col strong { font-weight: 800; }


/* --- LIGHTBOX & FOOTER --- */
.lightbox-overlay { display: none; position: fixed; z-index: 1000; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.95); justify-content: center; align-items: center; user-select: none; }
.lightbox-overlay.active { display: flex; animation: fadeIn 0.3s ease; }
.lightbox-content { max-width: 90vw; max-height: 90vh; object-fit: contain; }
.lightbox-close { position: absolute; top: 20px; right: 30px; color: #fff; font-size: 3rem; cursor: pointer; z-index: 1002; }
.lightbox-btn { position: absolute; top: 50%; transform: translateY(-50%); color: #fff; font-size: 3rem; cursor: pointer; padding: 2rem; z-index: 1001; }
.lightbox-prev { left: 0; }
.lightbox-next { right: 0; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.main-footer { background-color: var(--primary-blue); color: #fff; padding: 7rem 0 7.5rem; font-size: 0.95rem; }
.footer-grid { max-width: var(--max-width); margin: 0 auto; padding: 0 2rem; display: grid; grid-template-columns: 0.6fr 1.6fr 1.2fr 1fr 1fr 1.2fr; gap: 2rem; align-items: start; }
.nav-links { display: flex; flex-direction: column; gap: 0.8rem; }
.nav-links a { color: #fff; font-size: 1.1rem; font-weight: 400; }
.footer-col .info-label { display: block; font-weight: 700; margin-bottom: 0.5rem; font-size: 1rem; }
.footer-col p { opacity: 0.9; margin-bottom: 0; line-height: 1.5; font-weight: 300; display: block; }
.logo-container { display: flex; justify-content: flex-end; }
.footer-logo-img { width: 100%; max-width: 220px; height: auto; filter: brightness(0) invert(1); display: block; margin-top: -70px; }


/* Responsivo */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: 3rem; }
}
@media (max-width: 768px) {
    :root {
        --hero-top-offset: 1.25rem;
    }

    .mobile-topbar { right: var(--hero-top-offset); top: var(--hero-top-offset); }
    .banner-menu, .overlay-title { left: 1.5rem; right: auto; }
    .header-logo-container { left: var(--hero-top-offset); top: var(--hero-top-offset); }
    .banner-menu { display: none; }
    .projects-category-bar {
        display: flex;
        margin: 0 auto 1.5rem;
        padding: 0.85rem 1rem;
        gap: 0.65rem;
        overflow-x: auto;
        justify-content: flex-start;
        scrollbar-width: none;
    }
    .projects-category-bar::-webkit-scrollbar { display: none; }
    .projects-category-bar a { white-space: nowrap; }
    .content-block, .contact-section, .team-section, .footer-grid { display: flex; flex-direction: column; }
    .hero-section { height: 50vh; }
    .full-width-banner { height: 55vh; }
    .about-image figcaption { font-size: 2rem; left: 1.5rem; right: 1.5rem; bottom: 1.5rem; text-align: right; }
    .overlay-title {
        top: 1.5rem;
        left: 1.5rem;
        bottom: auto;
        right: auto;
        font-size: 2.8rem;
        text-align: left;
        line-height: 1;
        max-width: 70%;
    }
    .dynamic-columns { grid-template-columns: 1fr; gap: 2rem; }
    .project-table { width: 100%; }
    .project-table td { display: block; width: 100%; padding: 0.2rem 0; border: none; }
    .project-table tr { border-bottom: 1px solid #eee; display: block; padding: 0.5rem 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 3rem; }
    .logo-container { justify-content: center; }
    .footer-logo-img { margin-top: 0; max-width: 150px; }
    .team-section .text-col { padding-left: 0; }

    .project-content { padding: 0 1.25rem; }
    .related-projects-grid {
        gap: 1rem;
        padding: 0 1.25rem 2rem;
    }
    .related-projects-grid .project-item { flex: 0 0 260px; }

    .mobile-topbar { display: inline-flex; }
    .mobile-topbar { top: var(--hero-top-offset); }
    .header-logo-container { top: var(--hero-top-offset); }
    .header-logo-container,
    .mobile-topbar {
        height: 52px;
        display: inline-flex;
        align-items: center;
    }
    .top-logo { height: 48px; width: auto; }
    .mobile-menu { display: none; }
    .content-block, .contact-section, .team-section {
        position: relative;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
    .content-block .img-col img { height: 320px;}
    .projects-grid { padding-left: 0; }
    .projects-category-bar a {
        font-size: 0.8rem;
        letter-spacing: 0.3px;
    }
    .project-hero-overlay-title {
        font-size: 1.75rem !important;
        line-height: 1.05;
    }
    .about-wrapper { padding: 0 1.25rem; }
    .about-title { font-size: 2.4rem; }
    .partner-card img { height: 220px; }
    .about-text-grid { gap: 1rem; }
    .about-table-container { justify-content: flex-start; }
    .about-table { width: 100%; }
    .about-cta { padding: 2.5rem 1.25rem; }
    .cta-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .about-hero-title { left: 1.25rem; right: 1.25rem; font-size: 2.6rem; bottom: 1.5rem; }
    .page-projetos .overlay-title {
        top: auto;
        bottom: 1.5rem;
        left: 1.25rem;
        right: 1.25rem;
        text-align: left;
        font-size: 2.6rem;
        line-height: 1.05;
    }
    .projects-pagination { display: none; }
    .main-footer { padding: 3rem 0; font-size: 0.9rem; }
    .footer-grid { gap: 1.5rem; padding: 0 1.5rem; }
    .nav-links { gap: 0.6rem; }
    .footer-col p { line-height: 1.4; }
    .inline-step-cta { display: inline-flex;}
    .related-projects-grid .project-item img {
        aspect-ratio: 1 / 1;
        width: 100%;
        height: auto;
        object-fit: cover;
    }
}