/* /area-reservada/dashboard.css */



.dashboard-wrapper {
    display: flex;
    min-height: 80vh;
    background-color: #f8f9fa;
    margin-top: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Sidebar */
.dashboard-sidebar {
    width: 280px;
    background-color: var(--dark-bg);
    padding: 30px 0;
    flex-shrink: 0;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.sidebar-menu li a i {
    margin-right: 15px;
    font-size: 18px;
}

.sidebar-menu li a:hover,
.sidebar-menu li a.active {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.05);
    border-left-color: var(--primary-red);
    text-decoration: none;
}

/* Content Area */
.dashboard-content {
    flex-grow: 1;
    padding: 40px;
    background-color: #fff;
}

.content-header {
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.content-header h2 {
    font-family: 'Oswald', sans-serif;
    color: var(--dark-bg);
    font-size: 28px;
}

/* Forms & Tables */
.db-form-group {
    margin-bottom: 20px;
}

.db-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.db-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.doc-list {
    list-style: none;
    padding: 0;
}

.doc-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border: 1px solid #eee;
    margin-bottom: 10px;
    border-radius: 4px;
    transition: 0.3s;
}

.doc-item:hover {
    background-color: #f9f9f9;
    border-color: var(--primary-red);
}

.doc-info {
    display: flex;
    align-items: center;
}

.doc-info i {
    font-size: 24px;
    color: var(--primary-red);
    margin-right: 15px;
}

.doc-name {
    font-weight: 500;
    color: var(--dark-bg);
}

@media (max-width: 991px) {
    .dashboard-wrapper {
        flex-direction: column;
    }

    .dashboard-sidebar {
        width: 100%;
        padding: 10px 0;
    }
}

/* candidaturas.css */

.upload-box {
    transition: all 0.3s ease;
    background: #fafafa;
}

.upload-box:hover {
    border-color: var(--primary-red) !important;
    background: #fff;
}

.form-label {
    display: block;
    color: var(--dark-bg);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

/* Ajuste nos inputs para manter o estilo do site */
#candidatura-form .form-control {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 12px 20px;
    height: auto;
}

#candidatura-form textarea.form-control {
    height: 150px;
}


/* ===================================
    PÁGINA: QUEM SOMOS (VERSÃO FINAL)
====================================== */

.quem-somos-page {
    color: #202020;
    padding-top: 120px;
    min-height: 100vh;
    background-color: var(--bege-claro);
}

/* --- BLOQUEIO DO ESPAÇO DO LOGO (Apenas no Conteúdo) --- */
/* Aplicamos o padding ao container para proteger os títulos, 
   mas as SECTIONS mantêm o fundo de ponta a ponta */
.quem-somos-page .container {
    padding-left: 180px !important;
    /* Espaço de segurança para o logo Lube */
    padding-right: 60px !important;
    max-width: 100% !important;
    margin: 0 !important;
}

/* --- TIPOGRAFIA BASE --- */
.qs-heading {
    font-family: 'Oswald', sans-serif;
    /* Fonte fluida: ajusta-se entre 30px e 50px conforme o ecrã */
    font-size: clamp(30px, 4vw, 50px) !important;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.1;
    color: #202020;
    margin-bottom: 30px;
    text-wrap: balance;

    /* GANTE QUE NÃO QUEBRA PALAVRAS */
    word-break: keep-all !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
}

.nowrap {
    white-space: nowrap;
}

.qs-subheading {
    font-family: 'Oswald', sans-serif;
    font-size: 22px;
    font-weight: 500;
    text-transform: uppercase;
    color: #202020;
    margin-bottom: 15px;
}

.qs-text {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.6;
    color: #202020;
    text-align: justify;
}

/* --- BREADCRUMBS --- */
.sec-intro-title {
    background-color: var(--bege-claro);
    padding-top: 20px;
    padding-bottom: 20px;
}

.sec-intro-title .breadcrumb {
    background-color: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    justify-content: flex-end !important;
    list-style: none;
}

.sec-intro-title .breadcrumb-item {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sec-intro-title .breadcrumb-item+.breadcrumb-item::before {
    content: "|";
    padding: 0 10px;
    color: #ccc;
}

/* --- SECÇÃO 1: SERVIÇOS (Fundo Liso) --- */
.sec-servicos {
    background-color: var(--bege-claro);
    padding-top: 40px;
    padding-bottom: 80px;
}

.qs-service-icon {
    font-size: 75px;
    color: var(--primary-red);
    margin-bottom: 20px;
    display: inline-block;
    font-weight: 700 !important;
}

.qs-service-title {
    font-family: 'Oswald', sans-serif;
    font-size: 17px;
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: #202020;
    border-bottom: 2px solid #202020;
    padding-bottom: 5px;
    display: inline-block;
}

/* --- SECÇÃO 2: MERCADO (Fundo Bege Escuro + Padrão de Linhas) --- */
.sec-mercado {
    background-color: var(--bege-escuro);
    background-image: linear-gradient(rgba(255, 255, 255, .2) 1px, transparent 1px);
    background-size: 100% 40px;
    padding-top: 100px;
    padding-bottom: 100px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.qs-market-img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    margin-bottom: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border: 6px solid #ffffff;
}

/* --- SECÇÃO 3: EQUIPA (Fundo Branco + Padrão de Pontos) --- */
.sec-equipa {
    background-color: #ffffff;
    background-image: radial-gradient(var(--bege-escuro) 0.8px, transparent 0.8px);
    background-size: 24px 24px;
    padding-top: 100px;
    padding-bottom: 120px;
}

.qs-team-role {
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary-red);
    margin-bottom: 15px;
    letter-spacing: 1px;
}

/* --- FIX HEADER --- */
.header-appear {
    background-color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* --- RESPONSIVIDADE (MOBILE) --- */
@media (max-width: 991px) {
    .quem-somos-page {
        padding-top: 100px;
        text-align: center !important;
    }

    /* Reset do bloqueio lateral no Mobile */
    .quem-somos-page .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
        margin: 0 auto !important;
    }

    .qs-heading {
        font-size: 28px !important;
        /* Ainda menor no mobile para caber tudo */
        text-align: center !important;
        width: 100%;
    }

    .qs-subheading,
    .qs-text {
        text-align: center !important;
    }

    .qs-service-icon {
        display: block !important;
        margin: 0 auto 20px auto !important;
    }

    .sec-mercado,
    .sec-equipa {
        padding-top: 50px !important;
        padding-bottom: 50px !important;
    }

    .qs-market-img {
        height: 250px;
    }
}

/* ===================================
    PÁGINA: MARCAS (VERSÃO FINAL ALINHADA)
====================================== */

.marcas-page {
    background-color: var(--bege-claro);
    color: #202020;
    padding-top: 100px;
    min-height: 100vh;
}

/* --- BREADCRUMBS LIMPOS --- */
.marcas-page .breadcrumb {
    background-color: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}

.marcas-page .breadcrumb-item+.breadcrumb-item::before {
    content: "|";
    padding: 0 10px;
    color: #ccc;
}

/* --- SECÇÃO 1: POSICIONAMENTO --- */
.sec-marcas-intro {
    padding-top: 40px;
    padding-bottom: 100px;
}

/* CONTENTOR PARA ALINHAR LOGOS DIFERENTES */
.brand-logo-wrapper {
    height: 100px;
    /* Altura fixa para os logos */
    display: flex;
    align-items: flex-end;
    /* Alinha os logos pela base */
    margin-bottom: 25px;
}

.brand-logo-img {
    max-height: 100%;
    width: auto;
    max-width: 180px;
    display: block;
}

.brand-badge {
    margin-bottom: 15px;
    display: block;
}

/* "Parceiro Oficial" a Negrito */
.brand-badge span {
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #202020;
}

.brand-box .qs-text {
    font-size: 16px;
    line-height: 1.7;
    text-align: justify;
}

/* --- SECÇÃO 2: PARCEIROS HERO (BANNER DINÂMICO) --- */
.sec-parceiros-hero {
    position: relative;
    padding: 160px 0;
    background-image: url('/img/consult.jpg');
    /* Imagem de fundo */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Efeito Parallax */
    color: #ffffff;
    overflow: hidden;
}

/* Filtro Escuro por cima da imagem */
.sec-parceiros-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    /* Filtro preto 70% */
    z-index: 1;
}

.sec-parceiros-hero .container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.sec-parceiros-hero .qs-heading {
    color: #ffffff;
    margin-bottom: 30px;
}

.sec-parceiros-hero .qs-text {
    color: rgba(255, 255, 255, 0.9);
    max-width: 850px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.8;
    text-align: center;
}

/* Responsividade */
@media (max-width: 991px) {
    .marcas-page {
        padding-top: 80px;
    }

    .sec-parceiros-hero {
        padding: 100px 0;
        background-attachment: scroll;
    }

    .brand-logo-wrapper {
        height: 80px;
    }
}

@media (max-width: 991px) {

    /* 1. Centrar o título da página e textos iniciais */
    .marcas-page {
        text-align: center !important;
    }

    /* 2. Reset das colunas (Remover o offset da 2ª marca) */
    .marcas-page .offset-lg-1 {
        margin-left: 0 !important;
    }

    /* 3. Centrar a caixa da marca e o seu conteúdo */
    .brand-box {
        align-items: center !important;
        /* Centra itens no flex-column */
        text-align: center !important;
        margin-bottom: 60px !important;
    }

    /* 4. Centrar o Logótipo (Wrapper Flex) */
    .brand-logo-wrapper {
        justify-content: center !important;
        /* Centra o logo horizontalmente */
        margin-left: auto !important;
        margin-right: auto !important;
        height: 80px !important;
        /* Ligeiramente menor em mobile */
    }

    /* 5. Centrar o Badge "Parceiro Oficial" */
    .brand-badge {
        text-align: center !important;
        width: 100% !important;
        display: block !important;
    }

    .brand-badge span {
        display: inline-block !important;
        margin-bottom: 15px !important;
    }

    /* 6. Centrar o texto de descrição */
    .marcas-page .qs-text {
        text-align: center !important;
        padding: 0 15px !important;
    }

    /* 7. Banner Hero (Final da página) */
    .sec-parceiros-hero .qs-text {
        font-size: 15px !important;
        padding: 0 10px !important;
    }
}

/* ===================================
    PÁGINA: CATÁLOGO (VERSÃO FINAL FLEXÍVEL)
====================================== */

.catalogo-page {
    color: #202020;
    padding-top: 100px;
    background-color: var(--bege-claro);
}

/* --- SECÇÃO INTRO (BEGE CLARO) --- */
.cat-intro-wrapper {
    background-color: var(--bege-claro);
    padding-top: 40px;
    padding-bottom: 20px;
}

/* --- ESTILO 1: ÍMPAR (Bege Claro Liso) --- */
.cat-sec-odd {
    background-color: var(--bege-claro);
    padding-top: 80px;
    padding-bottom: 100px;
}

/* --- ESTILO 2: PAR (Bege Escuro + Linhas de Projeto) --- */
.cat-sec-even {
    background-color: var(--bege-escuro);
    background-image: linear-gradient(rgba(255, 255, 255, .2) 1px, transparent 1px);
    background-size: 100% 40px;
    padding-top: 100px;
    padding-bottom: 120px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* --- TIPOGRAFIA --- */
.cat-intro-phrase {
    font-family: 'Oswald', sans-serif;
    font-size: 38px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.cat-section-title {
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 50px;
    font-weight: 500;
    position: relative;
    padding-bottom: 10px;
}

.cat-section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background-color: var(--primary-red);
}

/* --- ITENS COM LARGURA VARIÁVEL --- */
.cat-item {
    /* Crucial para o autoWidth do Owl Carousel */
    width: auto;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Centra a legenda em relação à imagem */
}

.cat-img-wrapper {
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.07);
    background-color: #fff;
    border: 6px solid #fff;
    display: inline-block;
    width: auto;
    /* Deixa a largura ser definida pelo conteúdo */
}

.cat-img-wrapper img {
    /* Altura fixa garante o alinhamento de todos os itens na linha */
    height: 480px;
    width: auto;
    /* A largura adapta-se ao corte feito pelo utilizador */
    max-width: 900px;
    /* Limite máximo para não quebrar o layout em panoramas */
    object-fit: cover;
    display: block;
    transition: transform 0.8s ease;
}

/* Legenda centrada */
.cat-caption {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 300;
    color: #6d6d6d;
    display: block;
    text-align: center;
    width: 100%;
    margin-top: 10px;
}

/* --- SETAS DO CARROSSEL --- */
.cat-carousel.owl-carousel .owl-nav button.owl-prev,
.cat-carousel.owl-carousel .owl-nav button.owl-next {
    background-color: #202020 !important;
}

.cat-carousel.owl-carousel .owl-nav button:hover {
    background-color: var(--primary-red) !important;
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 991px) {

    /* No Mobile, voltamos ao padrão de largura total para melhor leitura */
    .cat-item {
        width: 100%;
    }

    .cat-img-wrapper {
        width: 100%;
    }

    .cat-img-wrapper img {
        height: 350px;
        width: 100%;
        object-fit: cover;
    }

    .cat-intro-phrase {
        font-size: 28px;
    }

    .cat-sec-odd,
    .cat-sec-even {
        padding-top: 60px;
        padding-bottom: 60px;
    }
}

.breadcrumb {
    background-color: #e9ecef00 !important;
}

/* ===================================
   NAVEGAÇÃO DO CATÁLOGO (SETAS E BOLAS)
====================================== */

/* 1. LÓGICA DE VISIBILIDADE 
   O Owl Carousel (via JS) adiciona .disabled quando o conteúdo cabe no ecrã.
*/
.cat-carousel .owl-nav.disabled,
.cat-carousel .owl-dots.disabled {
    display: none;
}

/* 2. ESTILO DAS SETAS (NAV) */
.cat-carousel.owl-carousel .owl-nav {
    position: absolute;
    top: 40%;
    /* Alinhado ao centro da imagem, acima das legendas */
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    transform: translateY(-50%);
    z-index: 10;
}

.cat-carousel.owl-carousel .owl-nav button.owl-prev,
.cat-carousel.owl-carousel .owl-nav button.owl-next {
    width: 45px;
    height: 45px;
    background-color: #202020 !important;
    color: #ffffff !important;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: all;
    /* Permite o clique */
    position: absolute;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    outline: none !important;
}

/* Posicionamento das Setas fora da imagem no Desktop */
.cat-carousel.owl-carousel .owl-nav button.owl-prev {
    left: -60px;
}

.cat-carousel.owl-carousel .owl-nav button.owl-next {
    right: -60px;
}

.cat-carousel.owl-carousel .owl-nav button:hover {
    background-color: var(--primary-red) !important;
    transform: scale(1.1);
}

.cat-carousel.owl-carousel .owl-nav button i {
    font-size: 18px;
    font-weight: 900;
}

/* 3. ESTILO DAS BOLINHAS (DOTS) */
.cat-carousel .owl-dots {
    text-align: center;
    margin-top: 40px;
    /* Espaço por baixo das legendas */
    display: flex !important;
    justify-content: center;
    width: 100%;
    line-height: 1;
}

.cat-carousel .owl-dot {
    display: inline-block;
    margin: 0 6px;
    outline: none !important;
}

.cat-carousel .owl-dot span {
    width: 10px;
    height: 10px;
    background: #d4c3b3;
    /* Bege inativo */
    display: none;
    border-radius: 50%;
    transition: 0.3s ease;
}

.cat-carousel .owl-dot.active span {
    background: var(--primary-red);
    /* Vermelho ativo */
    transform: scale(1.3);
}

/* 4. AJUSTES RESPONSIVOS */

/* Ecrãs médios / Laptops (Traz as setas para dentro antes de cortarem) */
@media (max-width: 1400px) {
    .cat-carousel.owl-carousel .owl-nav button.owl-prev {
        left: -15px;
    }

    .cat-carousel.owl-carousel .owl-nav button.owl-next {
        right: -15px;
    }

    .cat-carousel.owl-carousel .owl-nav button {
        background-color: rgba(32, 32, 32, 0.8) !important;
    }
}

/* Tablets e Mobile */
@media (max-width: 991px) {
    .cat-carousel.owl-carousel .owl-nav {
        top: 35%;
        /* Ajuste de altura para imagens menores */
    }

    .cat-carousel.owl-carousel .owl-nav button {
        width: 38px;
        height: 38px;
    }

    .cat-carousel.owl-carousel .owl-nav button.owl-prev {
        left: 5px;
    }

    .cat-carousel.owl-carousel .owl-nav button.owl-next {
        right: 5px;
    }

    .cat-carousel .owl-dots {
        margin-top: 25px;
    }
}

/* ===================================
    PÁGINA: CONTACTOS (SIMETRIA TOTAL)
====================================== */

.contactos-page {
    background-color: var(--bege-claro);
    color: #202020;
    padding-top: 140px !important;
    /* Espaço para o Header Fixo */
    padding-bottom: 120px;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
}

/* --- BLOQUEIO SIMÉTRICO (Esquerda e Direita iguais) --- */
.contactos-page .container {
    /* Esquerda: Espaço do logo Lube | Direita: Espaço igual para centrar */
    padding-left: 180px !important;
    padding-right: 180px !important;

    max-width: 100% !important;
    width: 100%;
    margin: 0 !important;
}

/* Moldura Branca (Box de Conteúdo) */
.contact-box-wrapper {
    background-color: #ffffff;
    border: 1px solid rgba(181, 163, 145, 0.4);
    padding: 60px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.04);
    width: 100%;
}

/* --- ESTILO DAS INFOS (ESQUERDA) --- */
.contact-label-small {
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary-red);
    margin-bottom: 15px;
    display: block;
}

.contact-info-block {
    margin-top: 50px;
}

.contact-info-item {
    margin-bottom: 25px;
}

.contact-info-item label {
    font-family: 'Oswald', sans-serif;
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #999;
    display: block;
    margin-bottom: 3px;
}

.contact-info-item p,
.contact-info-item a {
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    font-weight: 300;
    color: #202020;
    text-decoration: none;
}

/* --- ESTILO DO FORMULÁRIO (DIREITA) --- */
.contact-form-wrapper .form-group {
    margin-bottom: 20px;
}

.contact-form-wrapper label {
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #202020;
    margin-bottom: 8px;
    font-weight: 500;
}

.contact-form-wrapper .form-control {
    background-color: #f8f8f8;
    border: 1px solid #eeeeee;
    border-radius: 0;
    height: 48px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 300;
    padding-left: 15px;
    color: #202020;
    transition: all 0.3s ease;
}

/* Seta nos dropdowns */
.custom-select-arrow {
    appearance: none !important;
    -webkit-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 15px center !important;
    background-size: 12px !important;
}

.btn-send-contact {
    background-color: #1a1a1a;
    color: #ffffff;
    font-family: 'Oswald', sans-serif;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: none;
    padding: 18px;
    width: 100%;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-send-contact:hover {
    background-color: var(--primary-red);
}

/* --- RESPONSIVIDADE (AJUSTES DE ESCALA) --- */

/* Ecrãs médios (Laptops): Reduzimos as margens para o formulário não ficar muito estreito */
@media (max-width: 1400px) {
    .contactos-page .container {
        padding-left: 140px !important;
        padding-right: 140px !important;
    }
}

/* Tablets e Mobile: Removemos as margens laterais grandes */
@media (max-width: 991px) {
    .contactos-page .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
        margin: 0 auto !important;
    }

    .contact-box-wrapper {
        padding: 40px 20px !important;
    }

    .contact-info-block {
        text-align: center;
        margin-bottom: 40px;
    }
}

/*------------------------------------BOTAO VER EMAIL-----------------------------------------------------*/
.btn-reveal-email {
    background-color: #000000 !important;
    /* Fundo preto conforme pedido */
    color: #ffffff !important;
    /* Texto branco */
    border: 1px solid #ffffff;
    /* Borda fina branca para destacar no fundo escuro */
    padding: 5px 15px;
    display: inline-block;
    border-radius: 4px;
    font-family: 'Oswald', sans-serif !important;
    text-transform: uppercase !important;
    font-size: 12px !important;
}

.btn-reveal-email:hover {
    background-color: var(--primary-red) !important;
    border-color: var(--primary-red) !important;
    color: #ffffff !important;
}

/* Garante que o e-mail revelado também fica legível */
.email-revealed {
    font-weight: 500;
    color: var(--primary-red);
    text-decoration: underline;
}

/* ===================================
    PÁGINA: PORTEFÓLIO (VERSÃO FINAL CONSOLIDADA)
====================================== */

.portefolio-page {
    background-color: var(--bege-claro);
    color: #202020;
    padding-top: 140px;
    padding-bottom: 120px;
    min-height: 100vh;
}

/* Título Principal da Página */
.portefolio-page .qs-heading {
    margin-bottom: 20px;
    text-align: center;
}

/* Centralizar a grelha de projetos caso não preencha a linha */
.portefolio-page .row {
    justify-content: center !important;
}

/* --- CAPAS DOS PROJETOS (QUADRADOS) --- */
.project-item {
    margin-bottom: 30px;
}

.project-card {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    /* Quadrado perfeito */
    overflow: hidden;
    cursor: pointer;
    background-color: #000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, opacity 0.4s ease;
    opacity: 0.7;
}

/* OVERLAY - O CONTENTOR CENTRADO */
.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    /* Centra verticalmente */
    align-items: center !important;
    /* Centra horizontalmente */
    text-align: center !important;
    /* Força o texto ao meio */
    padding: 20px;
    z-index: 2;
    background: rgba(0, 0, 0, 0.3);
    transition: background 0.4s ease;
}

/* TÍTULO DENTRO DO QUADRADO */
.project-overlay h4 {
    color: #ffffff !important;
    font-family: 'Oswald', sans-serif !important;
    font-size: 22px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 15px 0 !important;
    width: 100% !important;
    text-align: center !important;
    /* CHAVE: Garante o centramento das letras */
    line-height: 1.2;
    text-wrap: balance;
}

/* BOTÃO VER PROJETO */
.project-overlay span {
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 25px;
    border: 1px solid #fff;
    background-color: transparent;
    transition: all 0.3s ease;
    display: inline-block;
    opacity: 1 !important;
    transform: translateY(0) !important;
    margin: 0 auto !important;
    /* Garante centramento no flex */
}

/* --- ESTADOS DE HOVER --- */
.project-card:hover img {
    transform: scale(1.1);
    opacity: 0.5;
}

.project-card:hover .project-overlay {
    background: rgba(0, 0, 0, 0.7);
}

.project-card:hover .project-overlay span {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
    color: #fff;
}

/* --- DETALHES DA GALERIA (EXPANSÍVEL) --- */
.project-details {
    display: none;
    width: 100%;
    background-color: #ffffff;
    padding: 60px 40px 40px 40px;
    margin: 15px 0 50px 0;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.04);
}

.project-info-header h5 {
    font-family: 'Oswald', sans-serif;
    font-size: 26px;
    text-transform: uppercase;
    color: var(--primary-red);
    margin-bottom: 10px;
    padding-right: 40px;
}

/* Botão X de Fechar */
.btn-close-gallery {
    position: absolute;
    top: 10px;
    right: 15px;
    background: transparent;
    border: none;
    color: #202020 !important;
    font-size: 40px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    transition: 0.3s;
    padding: 10px;
}

.btn-close-gallery:hover {
    color: var(--primary-red) !important;
    transform: rotate(90deg);
}

.project-gallery-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    margin-bottom: 25px;
    transition: 0.3s;
    border: 4px solid #f9f9f9;
}

.project-gallery-img:hover {
    filter: brightness(1.1);
    border-color: var(--primary-red);
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 991px) {
    .portefolio-page {
        padding-top: 180px;
    }

    .project-details {
        padding: 50px 20px 30px 20px;
    }

    .btn-close-gallery {
        top: 5px;
        right: 5px;
        font-size: 35px;
    }

    .project-overlay h4 {
        font-size: 18px;
    }
}

@media (max-width: 575px) {
    .project-details .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* --- DETALHES DA GALERIA (EXPANSÍVEL) --- */
.project-details {
    display: none;
    width: 100%;
    background-color: #ffffff;
    padding: 60px 40px 40px 40px;
    margin: 15px 0 50px 0;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    /* Necessário para posicionar o X */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.04);
}

.project-info-header h5 {
    font-family: 'Oswald', sans-serif;
    font-size: 26px;
    text-transform: uppercase;
    color: var(--primary-red);
    margin-bottom: 10px;
    padding-right: 40px;
    /* Evita que o título bata no X */
}

/* O BOTÃO X NO CANTO SUPERIOR DIREITO */
.btn-close-gallery {
    position: absolute;
    top: 10px;
    right: 15px;
    background: transparent;
    border: none;
    color: #202020 !important;
    font-size: 40px;
    /* X bem visível */
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    transition: 0.3s;
    padding: 10px;
}

.btn-close-gallery:hover {
    color: var(--primary-red) !important;
    transform: rotate(90deg);
}

.project-gallery-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    margin-bottom: 25px;
    transition: 0.3s;
    border: 4px solid #f9f9f9;
}

.project-gallery-img:hover {
    filter: brightness(1.1);
    border-color: var(--primary-red);
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 991px) {
    .portefolio-page {
        padding-top: 180px;
    }

    .project-details {
        padding: 50px 20px 30px 20px;
    }

    .btn-close-gallery {
        top: 5px;
        right: 5px;
        font-size: 35px;
    }

    .project-info-header h5 {
        font-size: 22px;
    }

    .project-gallery-img {
        height: 200px;
    }
}

@media (max-width: 575px) {

    /* Fotos da galeria 1 por 1 em telemóveis pequenos */
    .project-details .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}