/* ==========================================
   VARIÁVEIS E CONFIGURAÇÕES GLOBAIS
   ========================================== */
:root {
    --primary: #D62222;    /* Vermelho vibrante para destaque */
    --dark: #0a0a0a;       /* Preto profundo para o fundo */
    --gray: #0000;       /* Cinza para seções secundárias */
    --light: #f4f4f4;      /* Branco acinzentado para textos */
    --white: #ffffff;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Scroll Suave ao clicar nos links do menu */
html {
    scroll-behavior: smooth;
}

/* ==========================================
   NAVEGAÇÃO (HEADER)
   ========================================== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 7%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px); /* Efeito de vidro fosco */
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #333;
}

.logo {
    display: flex;
    align-items: center;
}

/* Ajuste específico da IMAGEM da logo */
.logo img {
    height: 50px;       /* Ajuste esse valor conforme sua preferência */
    width: auto;        /* Mantém a proporção da logo sem distorcer */
    max-width: 180px;   /* Garante que não ultrapasse uma largura limite */
    object-fit: contain;
    transition: var(--transition);
}

/* Efeito opcional: a logo brilha ou cresce levemente ao passar o mouse */
.logo img:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

nav a {
    color: var(--white);
    text-decoration: none;
    margin-left: 25px;
    font-weight: 400;
    font-size: 0.9rem;
    transition: var(--transition);
}

nav a:hover {
    color: var(--primary);
}

/* ==========================================
   SEÇÕES GERAIS E BOTÕES
   ========================================== */
section {
    padding: 80px 7%;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
}

.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #c12a36;
    transform: translateY(-3px);
}

/* ==========================================
   HERO (BANNER INICIAL)
   ========================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;           
        transform: translateY(40px); 
    }
    to {
        opacity: 1;           
        transform: translateY(0); 
    }
}

.animate-fade-up {
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
}

.delay-1 { animation-delay: 0.2s; } 
.delay-2 { animation-delay: 0.6s; } 
.delay-3 { animation-delay: 1.0s; } 

@media (prefers-reduced-motion: reduce) {
    .animate-fade-up {
        animation: none;
        opacity: 1;
    }
}

.hero {
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: #000;
}

.hero video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5; 
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.hero-content button {
    background-color: #D62222; 
    color: #ffffff;            
    padding: 15px 35px;        
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase; 
    letter-spacing: 1px;       
    border: none;              
    border-radius: 50px;       
    cursor: pointer;
    transition: all 0.3s ease; 
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3); 
}

.hero-content button:hover {
    background-color: #ffffff;  
    color: #D62222;            
    transform: translateY(-3px); 
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.5); 
}

.hero-content button:active {
    transform: translateY(-1px);
}

#resumo {
    padding: 60px 7%;
    background: radial-gradient(circle at right, #D62222 0%, #0000 100%);
    overflow: hidden;
}

.resumo-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px; /* Aumentado o espaço para as fotos maiores */
    max-width: 1400px; /* Layout mais largo */
    margin: 0 auto;
}

.resumo-text {
    flex: 1;
    max-width: 600px;
}

/* --- NOVO ESTILO DO TEXTO --- */
.text-highlight-red {
    color: #D62222; /* Vermelho Pupila */
    font-weight: 600;
}

.final-highlight {
    color: #FF9F1C; /* Laranja Pupila */
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 25px;
    filter: drop-shadow(0 0 10px rgba(255, 159, 28, 0.4)); /* Pequeno brilho cinematográfico */
}

/* --- CONTAINER DA COLAGEM --- */
.resumo-collage {
    flex: 1;
    position: relative;
    height: 500px; /* Aumentado a altura do container */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* UPGRADE DE TAMANHO (+50%) */
.photo-box {
    position: absolute;
    width: 400px; /* Cálculo: 220px * 1.5 = 330px */
    aspect-ratio: 16 / 9; /* Mantém a proporção HD (1280x720) */
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 10px 10px 0px #D62222; /* Sombra Vermelha Assinatura */
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: #111;
}

.photo-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* POSICIONAMENTO RECALIBRADO */
.p-1 { top: 50px; left: 0%; z-index: 2; animation: float-slow 5s infinite ease-in-out; }
.p-2 { top: 10px; right: -9%; z-index: 1; animation: float-slow 6s infinite ease-in-out 1s; }
.p-3 { bottom: -10px; left: 8%; z-index: 4; animation: float-slow 5.5s infinite ease-in-out 0.5s; }
.p-4 { bottom: 30px; right: -7%; z-index: 3; animation: float-slow 7s infinite ease-in-out 1.5s; }

/* HOVER: Mantém a troca para Laranja #FF9F1C */
.photo-box:hover {
    z-index: 10;
    transform: scale(1.1) rotate(2deg);
    box-shadow: 15px 15px 0px #FF9F1C;
    border-color: #FF9F1C;
}

/* ANIMAÇÃO DE FLUTUAÇÃO */
@keyframes float-slow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-18px); }
}

/* Responsivo para Celular */
@media (max-width: 1100px) {
    .resumo-container { flex-direction: column; text-align: center; gap: 40px; }
    .resumo-collage { width: 100%; height: 400px; margin-top: 50px; }
    .photo-box { width: 220px; /* Volta para o tamanho original no mobile */ }
}

.why-audiovisual {
    height: 350vh; 
    background-color: #0000;
    margin-top: -160px; /* "Puxa" a seção para cima se necessário */
    margin-bottom: -160px;
}

.sticky-wrapper {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.benefits-viewport {
    position: relative;
    width: 200%;
    overflow: visible; /* Permite que os cards deslizem livremente */
}

/* Máscaras suaves nas bordas */
.gradient-mask {
    position: absolute;
    top: -40px;
    bottom: -40px;
    width: 30%;
    z-index: 10;
    pointer-events: none; /* Não bloqueia o mouse */
}

.gradient-mask.left { left: 0; background: linear-gradient(to right, #0000, transparent); }
.gradient-mask.right { right: 0; background: linear-gradient(to left, #0000, transparent); }

.benefits-track {
    display: flex;
    gap: 20px;
    padding: 0 10%;
    will-change: transform;
    transition: transform 0.1s ease-out;
}

/* Estilização dos Cards */
.benefit-card {
    min-width: 380px;
    background: #FFFFFF;
    padding: 50px 40px;
    border-radius: 25px;
    box-shadow: 0 15px 45px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.benefit-card i { font-size: 2.8rem; color: #333; } /* Ícone escuro para contraste */

.benefit-card h3 {
    color: #D62222; /* Vermelho Pupila */
    font-size: 1.6rem;
    font-weight: 800;
}

.benefit-card p {
    color: #444; /* Cinza escuro para legibilidade total */
    line-height: 1.5;
    font-size: 1.05rem;
}

.benefit-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent; /* Reserva o espaço para a borda não "pular" */
    cursor: default;
}

.benefit-card:hover {
    transform: translateY(-15px); /* Eleva o card */
    border-color: #D62222; /* Borda vermelha Pupila */
    box-shadow: 0 25px 50px rgba(214, 34, 34, 0.2); /* Sombra avermelhada suave */
}

/* --- BOTÃO CTA ESTRATÉGICO --- */
.cta-container {
    margin-top: 30px;
    text-align: center;
    z-index: 20;
}

.btn-transform {
    display: inline-block;
    padding: 18px 40px;
    background-color: #D62222; /* Vermelho Assinatura */
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(214, 34, 34, 0.3);
}

.btn-transform:hover {
    background-color: #ff2b2b;
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(214, 34, 34, 0.5); /* Efeito Glow ao passar o mouse */
}

.projects-split-section {
    background-color: #0000;
    padding: 100px 7%;
}

.projects-split-container {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    max-width: 1300px;
    margin: 0 auto;
}

/* Coluna da Esquerda (Cards) */
.projects-vertical-stack {
    flex: 1.5; /* Ocupa mais espaço */
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.mini-project-card {
    display: flex;
    flex-direction: column;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    height: 300px; 
    overflow: hidden;
    transition: 0.3s;
}

.mini-project-card:hover {
    border-color: #D62222;
    transform: translateX(10px);
}

.m-card-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #000;
    overflow: hidden;
    display: flex;
}

.m-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transition: transform 0.5s ease;
}

.mini-project-card {
    display: flex;
    flex-direction: column;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    height: auto;
    min-height: 380px; 
    overflow: hidden;
    transition: 0.3s;
}

.mini-project-card:hover .m-card-img img {
    transform: scale(1.08);
}

.m-card-body {
    height: 66.66%; 
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.m-category { color: #D62222; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; margin-bottom: 5px; }
.m-card-body h3 { color: #fff; margin-bottom: 10px; font-size: 1.3rem; }
.m-card-body p { color: #ccc; font-size: 0.9rem; line-height: 1.5; }


.projects-info-side {
    flex: 1; 
    position: sticky;
    top: 150px; 
    text-align: left;
}

.side-tag { color: #D62222; font-weight: 700; text-transform: uppercase; font-size: 0.9rem; display: block; margin-bottom: 15px; }
.projects-info-side h2 { text-align: left; font-size: 3rem; margin-bottom: 20px; }
.projects-info-side p { color: #ccc; margin-bottom: 35px; font-size: 1.1rem; line-height: 1.7; }

/* Responsividade */
@media (max-width: 992px) {
    .projects-split-container {
        flex-direction: column-reverse; /* Texto vai para cima no celular */
    }
    .projects-info-side { position: static; margin-bottom: 50px; }
    .mini-project-card { height: auto; min-height: 350px; }
}

/* ==========================================
   GRIDS (SERVIÇOS E MARCAS)
   ========================================== */
.services-carousel {
    background-color: #0000;
    padding: 30px 0;
    overflow: hidden;
}

.carousel-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.carousel-container {
    width: 100%;
    overflow: hidden;
    padding: 40px 0; 
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 20px;
}

.service-card {
    min-width: calc(33.333% - 20px); 
    background: #1a1a1a;
    padding: 40px;
    border-radius: 15px;
    border: 1px solid #333;
    transition: all 0.5s ease;
    opacity: 0.5; 
    transform: scale(0.85); 
    display: flex;
    flex-direction: column;
}

.service-card.active {
    opacity: 1;
    transform: scale(1.1); 
    border-color: #D62222;
    z-index: 2;
    box-shadow: 0 10px 30px rgba(230, 57, 70, 0.2);
}

.service-card h3 { color: #D62222; margin-bottom: 15px; }
.service-card p { color: #ccc; font-size: 0.9rem; margin-bottom: 20px; }
.saiba-mais {
    display: inline-flex;
    align-items: center;
    color: #D62222; /* Cor padrão vermelha */
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    transition: all 0.3s ease-in-out; /* Suaviza a transição */
    position: relative;
}

/* Criando a seta via CSS */
.saiba-mais::after {
    content: '→';
    margin-left: 5px;
    transition: transform 0.3s ease-in-out;
    display: inline-block;
}

/* Efeito ao passar o mouse (Hover) */
.saiba-mais:hover {
    color: #FF9F1C; /* Muda para o laranja da Pupila */
    transform: translateX(5px); /* Desloca o link inteiro para a direita */
}

/* Faz a seta "pular" um pouco mais que o texto */
.saiba-mais:hover::after {
    transform: translateX(3px);
}
.carousel-btn {
    background: rgba(230, 57, 70, 0.1);
    border: 2px solid #D62222;
    color: #D62222;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    position: absolute;
    z-index: 10;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.carousel-btn:hover {
    background: #D62222;
    color: #fff;
    box-shadow: 0 0 20px rgba(230, 57, 70, 0.5);
}

.carousel-btn.prev { left: -30px; }
.carousel-btn.next { right: -30px; }

.service-card h3 {
    display: flex;
    align-items: center; /* Centraliza o ícone verticalmente com o texto */
    gap: 12px;           /* Espaço entre ícone e palavra */
    color: #FF9F1C;      /* Vermelho Pupila */
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.service-card h3 i {
    font-size: 1.2rem;   /* Ícone levemente menor que a fonte para equilíbrio visual */
    opacity: 0.9;
}

/* Efeito no Hover: O título todo ganha um leve brilho */
.service-card.active h3 {
    filter: drop-shadow(0 0 5px rgba(214, 34, 34, 0.3));
}

.testimonials-section {
    margin-top: -50px;
    padding: 100px 7%;
    background-color: #0000;
}

.testimonials-header {
    text-align: center;
    margin-bottom: 60px;
}

/* Estilo dos Cards */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    align-items: start;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    border-color: #D62222; /* Destaque em Vermelho Pupila */
}

/* Ícone de Aspas */
.quote-icon {
    font-size: 2rem;
    color: #D62222;
    margin-bottom: 20px;
    opacity: 0.6;
}

.testimonial-text {
    color: #ccc;
    font-size: 1rem;
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 30px;
}

/* Informações do Cliente */
.client-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.client-avatar {
    width: 50px;
    height: 50px;
    background: #222;
    border: 1px solid #D62222;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #D62222;
}

.client-info strong {
    display: block;
    color: #fff;
    font-size: 1.1rem;
}

.client-info span {
    color: #777;
    font-size: 0.85rem;
}

.stars {
    color: #FF9F1C; /* Estrelas em Laranja Pupila */
    font-size: 0.8rem;
    margin-top: 5px;
}

.partners-unified-section {
    position: relative;
    padding: 150px 7% 100px;
    text-align: center;
    /* Degradê longo que funde as duas partes */
    background: linear-gradient(to bottom, #12122D 0%, #000000 100%);
    overflow: hidden;
}

.section-header h2 {
    font-size: 2.2rem;
    color: #ECECE0;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.accent-line {
    width: 80px;
    height: 4px;
    background: #FF9F1C; /* Nova cor de destaque */
    margin: 0 auto 60px;
    border-radius: 2px;
    box-shadow: 0 0 15px rgba(255, 159, 28, 0.6);
}

/* Grade de Logos */
.brands-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* Grade responsiva */
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.brand-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px; /* Bordas arredondadas */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 30px;
}

.brand-card img {
    max-width: 100%;
    max-height: 180px;
    /* Efeito de logo discreta */
    filter: brightness(0) invert(1) opacity(0.4);
    transition: all 0.4s ease;
}

/* Hover: A logo "ganha vida" */
.brand-card:hover {
    background: rgba(18, 18, 45, 0.5);
    border-color: #FF9F1C; /* Borda laranja no destaque */
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(255, 159, 28, 0.15);
}

.brand-card:hover img {
    filter: brightness(1) invert(0) opacity(1); /* Volta a cor original */
    transform: scale(1.1);
}

/* Responsividade Mobile */
@media (max-width: 768px) {
    .brands-grid-container {
        grid-template-columns: repeat(2, 1fr); /* 2 colunas no celular */
        gap: 15px;
    }
    .brand-card { height: 120px; padding: 20px; }
}

.master-expertise {
    background: #0000;
    padding: 100px 7%;
    color: #fff;
}

.intro-grid {
    display: grid;
    /* Proporção ajustada para dar mais espaço ao texto */
    grid-template-columns: 0.8fr 1.2fr; 
    gap: 80px; /* Aumentamos o respiro entre os dois */
    align-items: center; /* Centraliza o texto verticalmente em relação à foto */
    margin-bottom: 100px;
}

.intro-image {
    position: relative;
}

.intro-image img {
    width: 100%;
    border-radius: 20px;
    display: block;
}

.tag { color: #FF9F1C; font-weight: bold; letter-spacing: 2px; font-size: 0.8rem; }

/* Process Cards */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

/* Espaçamento entre os blocos para fluxo contínuo */
.process-grid {
    margin-top: -20px; /* Aproximação estratégica para conexão visual */
    padding-top: 40px;
}

.process-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 40px 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.process-card:hover {
    border-color: #D62222;
    background: rgba(214, 34, 34, 0.05);
}

.icon-box {
    width: 50px;
    height: 50px;
    background: #FF9F1C; /* Ícones em Laranja Pupila */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #000;
    font-size: 1.2rem;
}

/* Stats */
.stats-row {
    display: flex;
    justify-content: space-around;
    border-top: 1px solid #222;
    padding-top: 60px;
    text-align: center;
}

.number {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    color: #D62222; /* Números em Vermelho Pupila */
}

.label { color: #888; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1px; }

/* Reveal Animation */
.reveal { opacity: 0; transform: translateY(30px); transition: 0.8s all ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

.expertise-intro {
    padding-left: 95px; /* Pequeno recuo para criar hierarquia */
}

.expertise-tag {
    color: #FF9F1C; /* Laranja de destaque */
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 3px;
    display: block;
    margin-bottom: 15px;
}

.expertise-title {
    text-align: left;
    font-size: 3.2rem; /* Aumentamos um pouco para equilibrar com a foto */
    letter-spacing: -1px;
}

.expertise-title span {
    color: #D62222; /* Vermelho Pupila */
}

.expertise-description {
    font-size: 1.1rem;
    color: #aaa; /* Cinza para não cansar */
    line-height: 1.6;
    margin-bottom: 40px;
}

/* --- ESTILO DOS DIFERENCIAIS --- */
.expertise-features {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.feature-icon {
    min-width: 32px;
    height: 32px;
    background: rgba(214, 34, 34, 0.1); /* Fundo sutil vermelho */
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #D62222;
    font-size: 0.9rem;
    border: 1px solid rgba(214, 34, 34, 0.3);
}

.feature-text strong {
    display: block;
    color: #fff;
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.feature-text p {
    color: #777;
    font-size: 0.9rem;
    margin: 0;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    color: #ECECE0;
    letter-spacing: 2px;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

/* Linha de destaque Laranja */
.accent-line {
    width: 60px;
    height: 4px;
    background-color: #FF9F1C;
    margin: 0 auto;
    border-radius: 2px;
}

/* --- GRADE DE LOGOS --- */
.brands-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto 50px;
    padding: 0 20px;
}

/* O Card que protege a logo */
/* --- GRADE DE PARCEIROS (VERSÃO AMPLIADA) --- */
.brand-card {
    background: rgba(255, 255, 255, 0.03); 
    height: 120px; /* Reduzimos a altura da caixa para a logo preencher melhor */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
    /* PADDING MÍNIMO para não esmagar a logo */
    padding: 5px; 
}

.brand-card img {
    width: auto;
    height: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    transition: transform 0.3s ease;
}

img[alt="Sofista"] {
    height: 100px; 
}

img[alt="TCU"] {
    height: 60px; 
}


img[alt="Facto"] {
    height: 160px; 
}

img[alt="CriaMOV"] {
    width: 290px; 
}

img[alt="DoiNoveMeia"] {
    height: 110px;
}

/* Efeito Hover: Mais discreto para focar no tamanho */
.brand-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #D62222;
}

.brand-card:hover img {
    opacity: 1;
    transform: scale(1.1); /* Ela cresce levemente ao focar */
}

/* --- BOTÃO PULSANTE --- */
.partners-action {
    text-align: center;
    margin-top: 40px;
}

.btn-pulsing {
    background-color: #D62222;
    color: #fff;
    padding: 15px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    display: inline-block;
    animation: pulsing 2s infinite;
}

@keyframes pulsing {
    0% { box-shadow: 0 0 0 0 rgba(214, 34, 34, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(214, 34, 34, 0); }
    100% { box-shadow: 0 0 0 0 rgba(214, 34, 34, 0); }
}



/* ==========================================
   TABELA DE DIAGNÓSTICO
   ========================================== */
.diag-section {
    background: #0000 0%;
    padding: 100px 7%;
}

.diag-container {
    max-width: 800px;
    margin: 0 auto;
}

/* Títulos */
.diag-header {
    text-align: center;
    margin-bottom: 50px;
}

.diag-header h2 {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 10px;
}

.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 20px;
    margin-bottom: 20px;
}

.diag-form input, 
.diag-form textarea {
    width: 100%;
    background-color: #fff; 
    border: 1px solid #333;
    padding: 18px;
    color: #333;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    border-radius: 8px;
    outline: none;
    transition: all 0.3s ease;
}


.diag-form input:focus, 
.diag-form textarea:focus {
    border-color: #e63946; 
    background-color: #838383;
}

.btn-wrapper {
    text-align: center;
    margin-top: 30px;
}

@media (max-width: 768px) {
    .input-row {
        grid-template-columns: 1fr;
    }
    .diag-header h2 {
        font-size: 2rem;
    }
}

#formStatus {
    background: rgba(214, 34, 34, 0.05); /* Sutil brilho vermelho Pupila */
    border: 1px solid rgba(214, 34, 34, 0.2);
    border-radius: 20px;
    padding: 40px !important;
    max-width: 600px;
    margin: 0 auto;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================
   FAQ Dúvidas Frequentes
   ========================================== */

.faq-section {
    background: linear-gradient(to bottom, #0000 0%, #12122D 100%);
}

.faq-item {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.faq-question {
    width: 100%;
    padding: 20px 25px;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 15px; /* Espaço entre a seta e o texto */
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: background 0.3s ease;
}

.faq-question i {
    color: #e63946; /* Vermelho Pupila */
    font-size: 0.8rem;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); /* Transição da seta */
}

/* --- O Segredo da Animação Suave --- */
.faq-answer {
    display: grid;
    grid-template-rows: 0fr; /* Começa fechado */
    transition: grid-template-rows 0.4s ease-out;
}

.faq-content {
    overflow: hidden;
    color: #ccc;
    font-size: 0.95rem;
    padding: 0 25px 0 50px; /* Alinhado com o texto da pergunta */
}

/* --- Estados de Ativo (Quando aberto via JS) --- */
.faq-item.active {
    border-color: #e63946;
}

.faq-item.active .faq-question i {
    transform: rotate(90deg); /* Seta aponta para baixo */
}

.faq-item.active .faq-answer {
    grid-template-rows: 1fr; /* Abre suavemente */
    padding-bottom: 20px;
}

/* ==========================================
   RODAPÉ E REDES SOCIAIS
   ========================================== */
footer {
    background-color: #0c0c1d;
    /* Padding reduzido para diminuir a altura total */
    padding: 30px 7% 25px; 
    color: #ECECE0;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Centraliza tudo verticalmente na mesma linha */
    max-width: 1200px;
    margin: 0 auto;
    gap: 30px;
}

/* Colunas do Footer */
.footer-col {
    flex: 1;
}

/* Esquerda: Logo e Sociais (Mais juntos) */
.footer-col.left {
    display: flex;
    flex-direction: column;
    gap: 12px; /* Espaço reduzido entre logo e ícones */
}

.footer-logo {
    width: 60px; /* Logo levemente menor para economizar espaço */
    height: auto;
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.footer-socials a {
    color: #ECECE0;
    font-size: 1.2rem; /* Ícones sutilmente menores */
    transition: all 0.3s ease;
}

/* Hover cinematográfico Laranja #FF9F1C */
.footer-socials a:hover {
    color: #FF9F1C;
    transform: translateY(-5px);
    filter: drop-shadow(0 0 8px rgba(255, 159, 28, 0.5));

}

/* Centro: Copyright Compacto */
.footer-col.center {
    text-align: center;
    font-size: 0.8rem;
    line-height: 1.4;
    opacity: 0.5;
    margin: 0; /* Remove margens extras */
}

/* Direita: Endereço (Mais denso) */
.footer-col.right {
    text-align: right;
    font-size: 0.85rem;
    line-height: 1.4; /* Texto mais coladinho para ocupar menos altura */
}

.footer-col.right strong {
    color: #D62222;
    display: block;
    margin-bottom: 2px;
}

/* Responsividade Mobile */
@media (max-width: 900px) {
    footer { padding: 40px 7%; }
    .footer-container { flex-direction: column; gap: 30px; }
    .footer-col.left, .footer-col.right, .footer-col.center { text-align: center; }
    .footer-socials { justify-content: center; }
}

@media (max-width: 900px) {
    /* 1. RESET DE SEGURANÇA */
    body, html { 
        overflow-x: hidden !important; 
        width: 100% !important; 
        position: relative;
    }

    section { 
        padding: 50px 5% !important; 
    }

    /* 2. CABEÇALHO (LOGO E MENU) */
    header {
        flex-direction: column !important; /* Logo em cima, menu embaixo */
        gap: 15px !important;
        padding: 15px 5% !important;
    }

    nav {
        display: flex !important;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px !important;
    }

    nav a {
        margin: 0 5px !important;
        font-size: 0.8rem !important;
    }

    /* 3. TÍTULOS GERAIS */
    h2, .section-header h2 {
        font-size: 1.8rem !important;
        text-align: center !important;
        line-height: 1.2 !important;
        width: 100% !important;
    }

    #resumo {
        padding: 40px 5% !important;
        background: #000 !important; /* Remove o gradiente que pode causar bugs visuais */
        height: auto !important;
        overflow: visible !important;
        margin-bottom: 70px
    }

    .resumo-container {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }

    .resumo-collage {
        display: grid !important; /* Muda de flex/absolute para grid simples */
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        height: auto !important;
        margin-top: 20px !important;
        position: relative !important;
    }

    .photo-box {
        position: relative !important; /* REMOVE O FLUTUAR SOBRE AS OUTRAS SEÇÕES */
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        width: 100% !important; /* Ajusta ao grid */
        margin: 0 !important;
        box-shadow: 5px 5px 0px #D62222 !important; /* Sombra menor para mobile */
        animation: none !important; /* Remove animação para evitar saltos na tela */
    }

    /* 4. EXPERTISE (DNA ACADÊMICO) */
    .expertise-title {
        font-size: 1.8rem !important; /* Tamanho seguro para celular */
        text-align: left !important;
        margin-left: -80px !important;
        padding-left: 0 !important;
    }

    .expertise-title span {
        display: block; /* Quebra o "DNA Acadêmico" para uma nova linha */
    }

    .expertise-description {
        text-align: left !important;
        margin-left: -80px;
        padding: 0 10px !important;
    }

    .intro-grid {
        display: flex !important;
        flex-direction: column !important; /* Foto em cima, texto embaixo */
        gap: 20px !important;
    }

    /* 5. SERVIÇOS (FIM DO ESMAGAMENTO) */
    /* Empilha os cards um sobre o outro */
    .services-carousel, 
    .carousel-track, 
    .services-grid, 
    .services-container {
        display: flex !important;
        flex-direction: column !important; /* ESSA É A REGRA CHAVE */
        align-items: center !important;
        gap: 25px !important;
        transform: none !important;
        width: 100% !important;
    }

    .service-card {
        width: 100% !important; /* Card ocupa a tela toda, sem esmagar */
        min-width: unset !important;
        margin: 0 !important;
        transform: scale(1) !important; /* Remove o zoom do carrossel */
        opacity: 1 !important;
        padding: 30px 20px !important;
    }

    /* 6. POR QUE CONTRATAR (HORIZONTAL -> VERTICAL) */
    .why-audiovisual {
        height: auto !important; /* Desativa o scroll lateral longo */
        margin-bottom: 10px;
    }

    .sticky-wrapper {
        position: relative !important;
        height: auto !important;
        padding: 50px 0 !important;
    }

    .benefits-viewport {
        width: 100% !important; /* CORREÇÃO CRÍTICA */
        overflow: hidden;
    }

    .benefits-track {
        display: flex !important;
        flex-direction: column !important; /* Garante a verticalização */
        transform: none !important; /* Mata a animação do JS */
        gap: 20px !important;
        padding: 0 !important;
    }

    .benefit-card {
        width: 100% !important;
        min-width: unset !important;
        margin: 0 !important;
    }

    /* 7. ESTATÍSTICAS (O QUE JÁ ESTAVA FUNCIONANDO) */
    .expertise-stats, .stats-row {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important; /* 2 por linha */
        gap: 30px !important;
        padding: 40px 10px !important;
    }

    .number, .stat-number {
        font-size: 2.2rem !important;
    }

    /* 8. BOTÃO CTA */
    .cta-container {
        display: block !important;
        width: 100% !important;
        padding: 0 15px !important;
        margin-top: 40px !important;
    }

    .btn-transform {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        font-size: 0.9rem !important;
        padding: 15px 10px !important;
    }

    
}