* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'Euphorigenic';
    src: url('Euphorigenic.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Quicksand', sans-serif;
    background-color: #f2f2f2;
    color: #054563;
    overflow-x: hidden;
}

/* MARGEM DE ROLAGEM */
.sobre-section,
.trabalhos-section,
#contato {
    scroll-margin-top: 90px;
}

/* ===================================================
   HEADER FIXO INTEGRAÇÃO E ROLAGEM
   =================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #054563;
    padding: 15px 0;
    z-index: 1000;
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.navbar.visible {
    transform: translateY(0);
    opacity: 1;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}

.nav-left, .nav-right {
    display: flex;
    gap: 30px;
    width: 40%;
    align-items: center;
}

.nav-left { justify-content: flex-end; }
.nav-right { justify-content: flex-start; }

.nav-item {
    color: #f2f2f2;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: opacity 0.3s ease;
}

.nav-item:hover {
    opacity: 0.7;
}

.nav-item.active-hide {
    display: none !important;
}

.logo-mini {
    height: 45px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.logo-mini:hover {
    transform: scale(1.05);
}

/* ===================================================
   HERO / PRIMEIRA TELA
   =================================================== */
.hero {
    position: relative; /* Necessário para alinhar o botão pelas bordas da Hero */
    width: 100vw;
    height: 100vh;
    background-color: #054563;
    color: #f2f2f2;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}
/* POSICIONA O BOTÃO DA HERO NO MESMO LUGAR DA NAVBAR */
.lang-switch.hero-lang {
    position: absolute;
    top: 25px;         /* Alinhamento de altura no topo */
    right: 260px;        /* Mesma margem lateral da navbar */
    margin-left: 0;
    z-index: 10;
}
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.logo-img {
    width: 220px;
    max-width: 80vw;
    height: auto;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 700;
}

.dynamic-word {
    display: inline-block;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.fade-out {
    opacity: 0;
    transform: translateY(-8px);
}

.hero-nav {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.nav-link {
    color: #f2f2f2;
    text-decoration: none;
}

.animate-fade {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards ease-out;
}

.logo-container.animate-fade {
    animation-delay: 0.2s;
}

.delay-1 { animation-delay: 0.8s; }
.delay-2 { animation-delay: 1.4s; }

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

/* ===================================================
   ESTILOS COMPARTILHADOS DOS NÚMEROS (01. e 02.)
   =================================================== */
.num-zero, .num-um, .num-dois {
    font-family: 'Euphorigenic', 'Quicksand', sans-serif;
    font-size: 6rem;
    font-weight: normal;
    color: #008eb0;
    line-height: 0.8;
}

/* ===================================================
   SEÇÃO SOBRE MIM
   =================================================== */
.sobre-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 0 20px 0;
    background-color: #f2f2f2;
}

.sobre-container {
    max-width: 1000px;
    width: 100%;
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 50px;
    align-items: center;
    padding: 0 20px;
}

.sobre-foto-wrapper {
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
}

.sobre-foto {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.sobre-titulo-container {
    display: flex;
    align-items: center;
    gap: 0px;
    margin-bottom: 25px;
}

.title-reveal-box {
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
    opacity: 0;
    transition: max-width 3.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.5s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.sobre-titulo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #054563;
    padding: 0 15px 4px 15px;
}

.sobre-linha {
    width: calc(100% - 30px);
    height: 2px;
    background-color: #008eb0;
    margin-left: 15px;
}

.sobre-section.active .title-reveal-box {
    max-width: 250px;
    opacity: 1;
}

.sobre-texto {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #2c3e50;
    font-weight: 500;
    margin-bottom: 35px;
}

.especialidades-grid {
    display: flex;
    gap: 40px;
}

.spec-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.spec-col span {
    font-size: 1.1rem;
    font-weight: 700;
    color: #054563;
}

.reveal-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

.sobre-section.active .reveal-element {
    opacity: 1;
    transform: translateY(0);
}

.sobre-section.active .delay-text { transition-delay: 0.5s; }
.sobre-section.active .delay-tags { transition-delay: 0.8s; }

/* ===================================================
   CARROSSEL INFINITO DE CLIENTES
   =================================================== */
.clients-carousel-section {
    width: 100%;
    background-color: #f2f2f2;
    padding: 40px 0 10px 0;
    overflow: hidden;
    position: relative;
}

.clients-carousel-section::before,
.clients-carousel-section::after {
    content: "";
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.clients-carousel-section::before {
    left: 0;
    background: linear-gradient(to right, #f2f2f2 0%, rgba(242, 242, 242, 0) 100%);
}

.clients-carousel-section::after {
    right: 0;
    background: linear-gradient(to left, #f2f2f2 0%, rgba(242, 242, 242, 0) 100%);
}

.carousel-track-container {
    width: 100%;
    display: flex;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    align-items: center;
    gap: 90px;
    width: max-content;
    will-change: transform;
    animation: infiniteScroll 30s linear infinite;
}

.client-logo-item {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 160px;
    flex-shrink: 0;
    pointer-events: none;
}

.client-logo-item img {
    max-width: 100%;
    max-height: 65px;
    object-fit: contain;
    opacity: 0.9;
    pointer-events: none;
}

@keyframes infiniteScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-100% / 3)); }
}

/* ===================================================
   SEÇÃO TRABALHOS
   =================================================== */
.trabalhos-section {
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px 50px 20px;
    background-color: #f2f2f2;
}

.trabalhos-titulo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0px;
    margin-top: 10px;
    margin-bottom: 30px;
    width: 100%;
}

.title-reveal-box-trabalhos {
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
    opacity: 0;
    transition: max-width 2.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.5s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.trabalhos-titulo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #054563;
    padding: 0 15px 4px 15px;
}

.trabalhos-linha {
    width: calc(100% - 30px);
    height: 2px;
    background-color: #008eb0;
    margin-left: 15px;
}

.trabalhos-section.active .reveal-element {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.trabalhos-section.active .title-reveal-box-trabalhos {
    max-width: 250px !important;
    opacity: 1 !important;
}

.trabalhos-section .obra-info.reveal-element,
.trabalhos-section .obra-detalhes,
.trabalhos-section .obra-descricao {
    transition: opacity 1s ease, transform 1s ease;
}

.trabalhos-section.active .delay-text { 
    transition-delay: 0.3s; 
}

.trabalhos-section.active .delay-tags { 
    transition-delay: 0.6s; 
}

/* CARROSSEL DE OBRAS */
.carousel-obras-wrapper {
    position: relative;
    max-width: 1000px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-obras-container {
    width: 100%;
    overflow: hidden;
}

.carousel-obras-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;
}

.obra-card {
    min-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0px;
    padding: 0 20px;
}

/* CONTAINER DA MÍDIA BASE (TVs LANDSCAPE) */
.obra-media-container.tv-frame {
    position: relative;
    width: 100%;
    max-width: 520px;
    aspect-ratio: 4 / 3;
    display: flex;
    justify-content: center;
    align-items: center;
    container-type: inline-size;
}

.tv-frame .screen-content {
    position: absolute;
    width: 63%;
    height: 60%;
    top: 17%;
    left: 12%;
    object-fit: cover;
    z-index: 1;
    border-radius: 2cqw;
    
    /* PREVINE O BUG DE DESLOCAMENTO DO NAVEGADOR */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    isolation: isolate;            
    box-sizing: border-box;
}

.tv-frame .device-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 2;
    pointer-events: none;
}

/* MOLDURA DO CELULAR (VÍDEO 9x16) */
.obra-media-container.phone-frame {
    position: relative;
    width: 100%;
    max-width: 270px;
    aspect-ratio: 9 / 19.5;
    display: flex;
    justify-content: center;
    align-items: center;
    container-type: inline-size;
}

.phone-frame .device-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 1;
}

.phone-frame .screen-content-phone {
    position: absolute;
    width: 80%;
    height: 65%;
    top: 20%;
    left: 9.5%;
    object-fit: cover;
    z-index: 2;
    border-radius: 0cqw;
}

/* MOCKUP MONITOR CRT (COMPUTADOR DE TUBO) */
.obra-media-container.desktop-frame {
margin-bottom: 50px;
    position: relative;
    width: 100%;
    max-width: 520px;          
    aspect-ratio: 4 / 3;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    container-type: inline-size;
}

.desktop-frame .screen-content-desktop {
    position: absolute;
    width: 63%;
    height: 61%;
    top: 8%;
    left: 18.5%;
    object-fit: cover;
    z-index: 1;
    border-radius: 1.5cqw;
}

.desktop-frame .device-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 2;
    pointer-events: none;
}

/* MOCKUP CELULAR - FEED INSTAGRAM (E-COMMERCE NDG) */
.obra-media-container.instagram-frame {
    position: relative;
    width: 100%;
    max-width: 270px;
    aspect-ratio: 9 / 19.5;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 40px;
    container-type: inline-size;
}

.screen-content-instagram {
    position: absolute;
    width: 82% !important;
    height: 80% !important;
    top: 10% !important;
    left: 8.4% !important;
    object-fit: cover;
    z-index: 2 !important;
    border-radius: 32px;
    backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
}

.instagram-frame .device-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 1 !important;
}

/* MOCKUP NOTEBOOK / MACBOOK (TELA 16:10) */
.obra-media-container.notebook-frame {
    position: relative;
    width: 100%;
    max-width: 580px;
    aspect-ratio: 16 / 10.5;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden !important;
    container-type: inline-size;
}

.notebook-frame .screen-content-notebook {
    position: absolute;
    width: 68.5% !important;
    height: 65% !important;
    top: 5% !important;
    left: 16% !important; /* CORRIGIDO DE 18,5% PARA 18.5% */
    object-fit: cover !important;
    z-index: 1 !important;
    border-radius: 0.8cqw;
    backface-visibility: hidden;
}

.notebook-frame .device-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 2 !important;
    pointer-events: none;
}

/* INFORMAÇÕES DO PROJETO */
.obra-info {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 650px;
}

.obra-nome {
    font-size: 1.5rem;
    font-weight: 700;
    color: #054563;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.obra-detalhes {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 25px;
    width: 100%;
}

.detalhe-col {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.detalhe-col .label {
    font-size: 0.85rem;
    color: #555555;
    margin-bottom: 4px;
}

.detalhe-col .val {
    font-size: 0.95rem;
    font-weight: 700;
    color: #054563;
}

.obra-descricao {
    font-size: 1rem;
    line-height: 1.5;
    color: #2c3e50;
    max-width: 550px;
}

/* SETAS DE NAVEGAÇÃO */
.nav-arrow {
    background: none;
    border: none;
    font-size: 2.2rem;
    color: #054563;
    cursor: pointer;
    padding: 10px;
    z-index: 10;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.nav-arrow:hover {
    opacity: 0.6;
    transform: scale(1.15);
}

/* RESPONSIVIDADE */
@media (max-width: 850px) {
    .sobre-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .sobre-foto-wrapper {
        max-width: 300px;
        margin: 0 auto;
    }
    .sobre-titulo-container, .trabalhos-titulo-container {
        justify-content: center;
    }
    .especialidades-grid {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .carousel-track {
        gap: 50px;
        animation-duration: 20s;
    }
    .client-logo-item { width: 110px; }
    .client-logo-item img { max-height: 45px; }
}

@media (max-width: 600px) {
    .obra-detalhes {
        gap: 20px;
    }
    .detalhe-col .label {
        font-size: 0.75rem;
    }
    .detalhe-col .val {
        font-size: 0.85rem;
    }
    .obra-media-container.phone-frame {
        width: 270px !important;
        max-width: 75vw !important;
        aspect-ratio: 9 / 19.5 !important;
        height: 540px !important;
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        overflow: hidden;
        border-radius: 40px;
    }
}

/* ===================================================
   SEÇÃO CONTATO (03.)
   =================================================== */
.contato-section {
    min-height: auto;             /* Troca de 100vh para auto, para não forçar a tela cheia */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px 100px 20px; /* Padding menor no topo (40px) e confortável embaixo */
    background-color: #f2f2f2;
    text-align: center;
}

.contato-container {
    max-width: 800px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Título 03. */
.contato-titulo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0px;
    margin-bottom: 35px;
}

.num-tres {
    font-family: 'Euphorigenic', 'Quicksand', sans-serif;
    font-size: 6rem;
    font-weight: normal;
    color: #008eb0;
    line-height: 0.8;
}

.title-reveal-box-contato {
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
    opacity: 0;
    transition: max-width 2.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.5s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.contato-titulo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #054563;
    padding: 0 15px 4px 15px;
}

.contato-linha {
    width: calc(100% - 30px);
    height: 2px;
    background-color: #008eb0;
    margin-left: 15px;
}

/* REVELA TÍTULO E ELEMENTOS DA SEÇÃO CONTATO AO ROLAR */
.contato-section.active .title-reveal-box-contato {
    max-width: 250px !important;
    opacity: 1 !important;
}

.contato-section.active .reveal-element {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Textos da Seção */
.contato-subtexto {
    font-size: 1.1rem;
    color: #054563;
    line-height: 1.6;
    margin-bottom: 30px;
    font-weight: 500;
}

.contato-chamada {
    font-size: 1.5rem;
    color: #054563;
    font-weight: 700;
    margin-bottom: 30px;
}

.link-sublinhado {
    color: #054563;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color 0.3s ease;
}

.link-sublinhado:hover {
    color: #008eb0;
}

.contato-canais-label {
    font-size: 1.05rem;
    color: #054563;
    font-weight: 500;
    margin-bottom: 30px;
}

/* Ícones Redes Sociais */
.contato-redes {
    display: flex;
    gap: 18px;
    justify-content: center;
    align-items: center;
}

.rede-icon {
    width: 52px;
    height: 52px;
    background-color: #008eb0;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.rede-icon:hover {
    background-color: #054563;
    transform: scale(1.1);
}

/* ===================================================
   SEÇÃO SECRETA - CONTOS (04.)
   =================================================== */
.contos-section {
    min-height: 100vh;
max-width: 100vw;
    background-color: #054563; /* Fundo azul escuro */
    color: #f2f2f2;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 100px 20px;
}

.contos-container {
    max-width: 1100px;
    width: 100%;
    display: flex;
    gap: 50px;
    align-items: stretch;
    position: relative;
}

/* Coluna da Esquerda */
.contos-col-esquerda {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.contos-intro {
    font-size: 1.1rem;
    margin-bottom: 25px;
    opacity: 0.9;
}

.contos-chamada {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
}

/* Título 04. */
.contos-titulo-container {
    display: flex;
    align-items: center;
    gap: 0px;
    margin-bottom: 30px;
}

.num-quatro {
    font-family: 'Euphorigenic', 'Quicksand', sans-serif;
    font-size: 6rem;
    font-weight: normal;
    color: #008eb0;
    line-height: 0.8;
}

.title-reveal-box-contos {
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
    opacity: 0;
    transition: max-width 2.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.5s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.contos-titulo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    padding: 0 15px 4px 15px;
}

.contos-linha {
    width: calc(100% - 30px);
    height: 2px;
    background-color: #008eb0;
    margin-left: 15px;
}

.contos-section.active .title-reveal-box-contos {
    max-width: 250px !important;
    opacity: 1 !important;
}

.contos-subtext {
    font-size: 1.1rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* Lista de Contos Interativa */
.contos-lista {
    list-style: none;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.conto-item {
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    padding-bottom: 8px;
    position: relative;
    transition: color 0.3s ease;
}

.conto-item:hover {
    color: #008eb0;
}

/* Linha branca de seleção abaixo do conto clicado */
.conto-item::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: #ffffff;
    transition: width 0.4s ease;
}

.conto-item.selected::after {
    width: 100%;
}

/* Divisória Vertical */
.contos-divisoria {
    width: 1px;
    background-color: rgba(255, 255, 255, 0.4);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.contos-container.reading .contos-divisoria {
    opacity: 1; /* Aparece quando um conto é selecionado */
}

/* Coluna da Direita (Painel de Leitura) */
.contos-col-direita {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
}

.contos-container.reading .contos-col-direita {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.conto-texto-content {
    display: none;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #ffffff;
    max-height: 450px;
    overflow-y: auto; /* Permite rolar se o conto for longo */
    padding-right: 15px;
}

.conto-texto-content.active {
    display: block;
    animation: fadeInConto 0.4s ease forwards;
}

.conto-texto-content p {
    margin-bottom: 20px;
}

@keyframes fadeInConto {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.contos-section.active .reveal-element {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Responsividade para Telas Menores */
@media (max-width: 850px) {
    .contos-container {
        flex-direction: column;
        gap: 30px;
    }
    .contos-divisoria {
        width: 100%;
        height: 1px;
    }
}

/* ===================================================
   BOTÃO DE IDIOMA DISCRETO (POSICIONADO À DIREITA)
   =================================================== */
.nav-container {
    position: relative; /* Garante que o botão se alinhe pelas extremidades da barra */
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #f2f2f2;
    user-select: none;
}

/* Trava o seletor na ponta direita da navbar sem atrapalhar o menu */
.lang-switch.nav-lang {
    position: absolute;
    right: 40px; /* Alinhado ao mesmo padding das extremidades do container */
    top: 50%;
    transform: translateY(-50%);
}

.lang-btn {
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.lang-btn:hover {
    opacity: 0.8;
}

.lang-btn.active {
    opacity: 1;
}

.lang-divider {
    opacity: 0.4;
    font-weight: 300;
}

/* ===================================================
   AJUSTES RESPONSIVOS PARA MOVIEL / TELEMÓVEL
   =================================================== */
@media (max-width: 768px) {
    
    /* 1. Transforma a grelha horizontal numa lista vertical */
    .obra-detalhes {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 8px !important;
        width: 100% !important;
        margin: 20px auto !important;
    }

    /* 2. Alinha o rótulo (ex: Cliente) e o valor (ex: NESCAFÉ) em linha centrada */
    .obra-detalhes .detalhe-col {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 12px !important;
        width: 100% !important;
        text-align: center !important;
    }

    /* Estilo dos rótulos (lado esquerdo) */
    .obra-detalhes .label {
        width: 40% !important;
        text-align: right !important;
        font-size: 0.85rem !important;
        color: #666 !important;
    }

    /* Estilo dos valores (lado direito, em negrito) */
    .obra-detalhes .val {
        width: 60% !important;
        text-align: left !important;
        font-size: 0.95rem !important;
        font-weight: 700 !important;
    }

    /* 3. Ajusta o título do trabalho e as setas laterais para não cortar */
    .obra-nome {
        font-size: 1.1rem !important;
        padding: 0 35px !important; /* Espaço para as setas não ficarem por cima do texto */
        text-align: center !important;
        word-break: break-word !important;
    }

    /* 4. Reposiciona as setas do carrossel para não taparem o texto */
    .nav-arrow {
        font-size: 1.8rem !important;
        z-index: 10 !important;
    }

    .prev-arrow {
        left: 5px !important;
    }

    .next-arrow {
        right: 5px !important;
    }

    /* 5. Ajuste de margem do texto descritivo */
    .obra-descricao {
        font-size: 0.9rem !important;
        padding: 0 15px !important;
        text-align: center !important;
    }
}