/* ==========================================================================
   ESTILOS GLOBAIS - GesPrint
   ========================================================================== */

/* HERO — Sticky: fica fixo enquanto o conteúdo desliza por cima */
.hero {
  height: 100svh;
  padding: 136px 10% 0; /* 136px topo = 36px top-bar + 100px header */
  display: flex;
  align-items: center;
  color: white;
  position: sticky;
  top: 0;
  z-index: 1;
  background-color: #0a0a0a;
  overflow: hidden;
}
@media (max-width: 1024px) {
  .hero-content {
    transform: translateY(-40px);
  }
  .hero { 
    padding-top: 90px !important; /* 36px top-bar + 68px header mobile */
    min-height: 100svh !important; 
    height: 100svh !important;
  }
}

.hero-bg-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform-origin: center;
  transform: translateZ(0);
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.1);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  margin-bottom: clamp(12px, 2vw, 25px);
  font-weight: 700;
}

/* ============================================================
   SPLIT REVEAL CINEMATOGRÁFICO — Efeito Colisão (Opção C)
   ============================================================ */

/* Contentor: reserva o espaço do h1 e mascara as duas metades */
.split-title {
  position: relative;
  overflow: hidden; /* Esconde as metades antes de colidirem */
  line-height: 1.2;
}

/* Metade de cima: cortada ao meio por clip-path e começa lá em cima */
body.preloader-active .split-title .split-top {
  opacity: 0;
}

.split-title .split-top {
  display: block;
  clip-path: inset(0 0 50% 0); /* Mostra apenas a metade superior */
}

body.preloader-finished .split-title .split-top {
  animation: splitRevealTop 0.9s cubic-bezier(0.165, 0.84, 0.44, 1) 0.4s both;
}

/* Metade de baixo: posicionada sobre a de cima e começa lá em baixo */
body.preloader-active .split-title .split-bottom {
  opacity: 0;
}

.split-title .split-bottom {
  display: block;
  position: absolute;
  top: 0; left: 0; width: 100%;
  clip-path: inset(50% 0 0 0); /* Mostra apenas a metade inferior */
}

body.preloader-finished .split-title .split-bottom {
  animation: splitRevealBottom 0.9s cubic-bezier(0.165, 0.84, 0.44, 1) 0.4s both;
}

/* A metade superior cai do topo e ultrapassa ligeiramente (impacto) */
@keyframes splitRevealTop {
  0%   { transform: translateY(-110%); }
  72%  { transform: translateY(4px); } /* Overshoot = colisão física */
  100% { transform: translateY(0); }
}

/* A metade inferior sobe do fundo e ultrapassa ligeiramente (impacto) */
@keyframes splitRevealBottom {
  0%   { transform: translateY(110%); }
  72%  { transform: translateY(-4px); } /* Overshoot = colisão física */
  100% { transform: translateY(0); }
}

/* O rotator h2 entra com blur-in suave logo depois do título colidir */
body.preloader-active .hero-rotator {
  opacity: 0;
}

body.preloader-finished .hero-rotator {
  animation: heroRotatorIn 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) 1.1s both;
}

@keyframes heroRotatorIn {
  0%   { opacity: 0; filter: blur(6px); transform: translateY(10px); }
  100% { opacity: 1; filter: blur(0); transform: translateY(0); }
}

body.preloader-active .hero p {
  opacity: 0;
}

.hero p {
  font-size: clamp(15px, 2vw, 18px);
  margin-bottom: clamp(20px, 4vw, 40px);
}

body.preloader-finished .hero p {
  animation: heroRotatorIn 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) 1.3s both; /* Entra logo a seguir */
}

body.preloader-active .hero-rotator {
  opacity: 0;
}

.hero-rotator {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 700;
  margin-bottom: clamp(12px, 2vw, 25px);
  line-height: 1.4;
  color: white;
}

body.preloader-finished .hero-rotator {
  animation: heroRotatorIn 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) 1.1s both;
}

.rotator {
  position: relative;
  display: inline-block;
  min-width: 340px;
  height: 50px;
  perspective: 1000px;
  border-bottom: 3px solid var(--primary-blue);
}

.word {
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(65%) rotateX(-90deg);
  transform-origin: center center;
  transition: all 0.8s ease;
  color: #ffffff;
  font-weight: 700;
}

.word.active {
  opacity: 1;
  transform: translateY(0%) rotateX(0deg);
}

.word.exit {
  opacity: 0;
  transform: translateY(-65%) rotateX(90deg);
}

@media (max-width: 1024px) {
  /* O font-size do hero-rotator agora é controlado pelo clamp() global */
  .rotator { min-width: 240px; height: 40px; }
}



/* Animação Cinematográfica de Entrada para o Banner */
@keyframes bannerEntrance {
    0% {
        opacity: 0;
        transform: translateY(60px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animações de Entrada para o Cubo 3D */
@keyframes cubeSpin {
    0% { transform: rotateY(-180deg) rotate(45deg); }
    100% { transform: rotateY(0deg) rotate(45deg); }
}

@keyframes globeSpin {
    0% { transform: rotate(-45deg) rotateY(180deg); }
    100% { transform: rotate(-45deg) rotateY(0deg); }
}

/* WRAPPER DO CONTEÚDO — Desliza por cima do Hero Sticky */
.page-content {
    position: relative;
    z-index: 2;
    margin-top: -136px; /* Sobrepõe o fundo do hero com o banner */
    background: linear-gradient(135deg, #eef4f9 0%, #e1e9f0 100%);
    background-attachment: fixed;
}

/* BANNER DE APRESENTAÇÃO (Estrutura Cassepedro) */
body.preloader-active .newsletter-banner {
  opacity: 0;
}

.newsletter-banner {
    display: flex;
    align-items: stretch;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    position: relative;
    margin: 0 !important;
    z-index: 10;
    box-shadow: 0 -15px 40px rgba(0, 0, 0, 0.4);
    min-height: 110px;
    overflow: visible;
    box-sizing: border-box;
    background-color: #0c82fb;
    background-image: radial-gradient(rgba(255, 255, 255, 0.15) 1.5px, transparent 1.5px);
    background-size: 16px 16px;
    transition: background-color 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

body.preloader-finished .newsletter-banner {
    animation: bannerEntrance 1.5s cubic-bezier(0.165, 0.84, 0.44, 1) 0.6s both;
}

/* Escurece apenas o fundo do banner no hover, mantendo o losango transparente */
.newsletter-banner:has(.newsletter-right-btn:hover) {
    background-color: #0860bf;
}

/* Efeito de Rotação 3D (Cubo) no Hover */
.newsletter-banner:has(.newsletter-right-btn:hover) .newsletter-icon-wrap::before {
    transform: rotateY(180deg) rotate(45deg);
}

.newsletter-banner:has(.newsletter-right-btn:hover) .newsletter-icon {
    transform: rotateY(180deg) rotate(45deg);
}

.newsletter-banner:has(.newsletter-right-btn:hover) .newsletter-icon i {
    /* Contra-rotação giroscópica para o globo ficar estático e legível enquanto a caixa roda em volta */
    transform: rotate(-45deg) rotateY(-180deg);
}

.newsletter-left {
    flex: 1;
    background: #1a1a1a;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 50px;
    z-index: 2;
    position: relative;
}

/* Seta/Chevron preto apontando para a direita (Base Sólida sem buraco) */
.newsletter-left::after {
    content: '';
    position: absolute;
    top: 0;
    left: 100%; /* Inicia exatamente no limite da caixa preta */
    width: 160px; /* Cobre toda a largura da zona do ícone */
    height: 100%;
    background: #1a1a1a;
    /* Removido o ponto '40% 50%' para fechar a traseira e remover a entrada do triângulo azul */
    clip-path: polygon(0 0, 60% 0, 100% 50%, 60% 100%, 0 100%);
    z-index: 1; /* Renderiza atrás do ícone 3D e da linha neon */
    pointer-events: none;
}

.newsletter-left h3 {
    color: white;
    font-size: clamp(1.1rem, 3.5vw, 1.6rem); /* Fluido: 1.1rem no mobile, 1.6rem no desktop */
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}
.newsletter-left p {
    color: rgba(255,255,255,0.65);
    font-size: clamp(0.85rem, 2vw, 0.95rem); /* Fluido: escala suave entre breakpoints */
    margin: 0;
    line-height: 1.5;
}

.newsletter-icon-wrap {
    position: relative;
    width: 160px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    background: transparent;
    perspective: 1200px;
}

/* Fio Neon Ciano - Moldura Oca para Transparência Total e Visualização da Seta */
body.preloader-active .newsletter-icon-wrap::before {
    opacity: 0;
}

.newsletter-icon-wrap::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 106px;
    height: 106px;
    margin-top: -53px;
    margin-left: -53px;
    background: transparent; /* Alterado para transparente para ser uma moldura oca */
    border: 2.5px solid #00e5ff; /* Moldura ciano brilhante oca */
    box-sizing: border-box; /* Mantém o tamanho exato de 106px */
    z-index: -2;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.6);
    transform: rotateY(0deg) rotate(45deg);
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    will-change: transform;
}

body.preloader-finished .newsletter-icon-wrap::before {
    animation: cubeSpin 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) 2.1s backwards;
}

/* Fundo do Quadrado Invertido - Efeito Vidro Fumado Glassmorphism */
.newsletter-icon-wrap::after {
    content: '';
    position: absolute;
    top: -50px;
    bottom: -50px;
    left: -50px;
    right: -50px;
    background-color: rgba(30, 30, 30, 0.85); /* Vidro fumado translúcido */
    backdrop-filter: blur(12px); /* Desfoque de alta definição para fundir as metades */
    -webkit-backdrop-filter: blur(12px);
    transition: background-color 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    /* 4px menor que o ciano para deixar a borda perfeita */
    clip-path: polygon(
        50% calc(50% - 71px), 
        calc(50% + 71px) 50%, 
        50% calc(50% + 71px), 
        calc(50% - 71px) 50%
    );
    z-index: -1;
}

body.preloader-active .newsletter-icon {
    opacity: 0;
}

.newsletter-icon {
    width: 70px;
    height: 70px;
    background: transparent;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 8px;
    transform: rotateY(0deg) rotate(45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 15px rgba(255,255,255,0.05);
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.4s;
    transform-style: preserve-3d;
    will-change: transform;
}

body.preloader-finished .newsletter-icon {
    animation: cubeSpin 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) 2.1s backwards;
}

.newsletter-icon-wrap:hover .newsletter-icon {
    transform: rotate(405deg) scale(1.15);
    border-color: rgba(255,255,255,0.9);
}

body.preloader-active .newsletter-icon i {
    opacity: 0;
}

.newsletter-icon i {
    transform: rotate(-45deg) rotateY(0deg);
    font-size: 3rem;
    color: white; /* Alterado para branco para máximo contraste sobre o fundo preto */
    background: transparent; /* Removido o círculo branco de fundo */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    will-change: transform;
}

body.preloader-finished .newsletter-icon i {
    animation: globeSpin 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) 2.1s backwards;
}

.newsletter-icon-wrap:hover .newsletter-icon i {
    transform: rotate(-405deg);
}

/* O VERDADEIRO BOTÃO - APENAS A ZONA DE TEXTO DIREITA */
.newsletter-right-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 40px 30px 0;
    text-decoration: none !important;
    color: white;
    font-size: clamp(1.05rem, 3vw, 1.3rem); /* Fluido: proporcional ao ecrã em todos os tamanhos */
    font-weight: 600;
    font-family: 'Plus Jakarta Sans', sans-serif;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 2;
}

/* Padrão de pontos transferido para o newsletter-banner pai */

/* Container do texto para o sublinhado animado */
.newsletter-right-btn .btn-text {
    position: relative;
    display: inline-block;
}

/* Linha de Sublinhado Premium (Desenhada da esquerda para a direita) */
.newsletter-right-btn .btn-text::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 2px;
    background-color: white;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.newsletter-right-btn:hover .btn-text::after {
    transform: scaleX(1);
}

.newsletter-right-btn i {
    margin-left: 15px;
    font-size: 1.4rem;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.newsletter-right-btn:hover i {
    transform: translateX(12px);
}

/* EFEITO CYBERPUNK GLITCH NO TEXTO */
@keyframes cyberpunk-glitch {
    0%   { text-shadow: none; transform: skew(0) translate(0); opacity: 1; }
    15%  { text-shadow: 5px 0px #ff003c, -5px 0px #00e5ff; transform: skew(-15deg) translate(-2px); opacity: 0.8; }
    30%  { text-shadow: -5px 0px #ff003c, 5px 0px #00e5ff; transform: skew(20deg) translate(3px); opacity: 0.9; }
    45%  { text-shadow: 3px 0px #ff003c, -3px 0px #00e5ff; transform: skew(-5deg) translate(-1px); opacity: 0.8; }
    60%  { text-shadow: none; transform: skew(0) translate(0); opacity: 1; }
    100% { text-shadow: none; transform: skew(0) translate(0); opacity: 1; }
}

.newsletter-right-btn:hover .btn-text {
    animation: cyberpunk-glitch 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

@media (max-width: 850px) {
    .newsletter-banner {
        flex-direction: column;
        min-height: auto;
height: auto;
    }
    .newsletter-left {
        padding: 20px 20px 18px 20px; /* Compacto e proporcional */
    }
    .newsletter-left::after {
        display: none !important;
    }
    .newsletter-icon-wrap {
        display: none;
    }
    .newsletter-right-btn {
        padding: 16px 20px; /* Compacto: elimina o excesso de espaço vertical */
        justify-content: flex-start;
    }
}

/* ==========================================================================
   PÁGINA INICIAL - Serviços, Trust Banner, Partners
   ========================================================================== */

/* SERVIÇOS */
#servicos, #contacto, #hero {
  scroll-margin-top: 100px;
}

.services {
  padding: 50px 10%;
  background: var(--bg-light);
  text-align: center;
}

.services h2 {
  margin-bottom: 60px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  perspective: 1500px; /* Habilita profundidade 3D para cartões */
}

.service-card {
  position: relative;
  background: #111;
  border-radius: var(--radius-standard);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  height: 380px; /* Altura fixa para as imagens cobrirem tudo */
  text-decoration: none; /* Garante que o link não cria sublinhados indesejados */
  
  /* ESTADO INICIAL COMPOSITADO: Premium, minimal, fluido */
  opacity: 0;
  transform: translate3d(0, 30px, 0) scale(0.99);
  will-change: transform, opacity;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s ease;
}

.service-card.visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

/* Efeito Cascata Horizontal automático por CSS */
.service-card:nth-child(1) { transition-delay: 0.0s; }
.service-card:nth-child(2) { transition-delay: 0.1s; }
.service-card:nth-child(3) { transition-delay: 0.2s; }
.service-card:nth-child(4) { transition-delay: 0.3s; }

.service-card:hover {
  /* Efeito de elevação por sombra profunda */
  box-shadow: 0 20px 50px rgba(12, 130, 251, 0.25);
}

.service-image {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

/* Escurecimento na base para destacar a cápsula */
.service-image::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.7) 100%);
  z-index: 2;
  transition: opacity 0.4s;
  pointer-events: none;
}

.service-card:hover .service-image::after {
  opacity: 0.9;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translate3d(0, 0, 0) scale(var(--zoom, 1));
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  z-index: 1;
}

.service-card:hover .service-image img {
  transform: scale(1.08) translateY(-5px); /* Zoom e leve deslizar para cima em GPU livre de jitter */
}

/* O Painel Escuro Holográfico com Glassmorphism Avançado (Jitter-free) */
.service-content {
  position: absolute;
  bottom: 15px;
  left: 15px;
  right: 15px;
  background: rgba(15, 15, 15, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-standard);
  padding: 18px 20px;
  text-align: left;
  display: flex;
  flex-direction: column;
  z-index: 3;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s ease,
              box-shadow 0.4s ease,
              padding 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.08);
  will-change: transform;
}

/* O painel sobe 6px no hover mantendo a moldura externa do card imóvel (impede flicker do cursor) */
.service-card:hover .service-content {
  transform: translateY(-6px);
  border-color: rgba(12, 130, 251, 0.4);
  box-shadow: 0 15px 35px rgba(12, 130, 251, 0.25), inset 0 0 15px rgba(12, 130, 251, 0.15);
}

.service-content h3 {
  font-size: 17px;
  margin-bottom: 0;
  color: #ffffff;
  line-height: 1.3;
  transition: margin 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.4s ease;
  display: flex;
  align-items: center;
}

/* Um pequeno ponto azul a fazer de ícone para manter o estilo visual */
.service-content h3::before {
  content: '';
  display: inline-block;
  width: 8px; height: 8px;
  flex-shrink: 0;
  background: #0c82fb;
  border-radius: 50%;
  margin-right: 12px;
  box-shadow: 0 0 6px #0c82fb;
  animation: pulseGlow 2.5s infinite ease-in-out;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.6; box-shadow: 0 0 4px #0c82fb; }
  50% { opacity: 1; box-shadow: 0 0 10px #0c82fb; }
}

.service-card:hover .service-content h3 {
  margin-bottom: 12px;
  color: #0c82fb;
}

.service-content p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0;
  line-height: 1.5;
  
  /* Animação do Reveal (Escondido por defeito) */
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.4s ease,
              margin-bottom 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover .service-content p {
  max-height: 120px;
  opacity: 1;
  margin-bottom: 15px;
}

/* NOVO BOTÃO SABER MAIS SLIDE PREMIUM */
.btn-saber-mais {
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.4s ease,
              margin-top 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              color 0.3s ease;
  margin-top: 0;
}

.service-card:hover .btn-saber-mais {
  max-height: 35px;
  opacity: 1;
  margin-top: 15px;
}

.btn-saber-mais i {
  font-size: 10px;
  color: #0c82fb;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.3s ease;
}

.btn-saber-mais:hover {
  color: #0c82fb !important;
}

.btn-saber-mais:hover i {
  transform: translateX(5px) scale(1.2);
  color: #0c82fb;
}

/* Ajustes Mobile para Cartões de Serviços */
@media (max-width: 768px) {
  .service-card {
    height: 260px;
    /* Proteção contra saltos excessivos no telemóvel */
    transform: perspective(1500px) rotateX(6deg) translateY(25px) scale(0.98);
  }
  .service-content {
    bottom: 10px;
    left: 10px;
    right: 10px;
    padding: 15px;
  }
  .service-content h3 {
    font-size: 15px;
  }
  .service-content p {
    font-size: 13px;
  }
}

/* BANNER DE APELO À AÇÃO DE SERVIÇOS (Full-Bleed CTA Section) */
.services-cta-section {
  width: 100%;
  background-color: #111111;
  border-top: 1px solid rgba(12, 130, 251, 0.18);
  border-bottom: 1px solid rgba(12, 130, 251, 0.18);
  position: relative;
  overflow: hidden;
  z-index: 1;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.services-cta-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Camada 1: Imagem de Fundo Panorâmica */
.services-cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/banner_vermais.webp');
  background-size: cover;
  background-position: center;
  filter: brightness(0.9) contrast(1.1) grayscale(10%); /* Nitidez e brilho calibrados */
  z-index: -2; /* Atrás de tudo */
  transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
  will-change: transform;
}

/* Efeito de Parallax Tridimensional Panorâmico */
.services-cta-section:hover::before {
  transform: scale(1.04);
}

/* Camada 2: Película de Fusão */
.services-cta-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right, 
    rgba(11, 11, 11, 0.88) 0%, 
    rgba(11, 11, 11, 0.52) 60%, 
    rgba(11, 11, 11, 0.82) 100%
  );
  z-index: -1;
  pointer-events: none;
}

/* Contentor Central Alinhado de forma milimétrica com a grelha de serviços */
.services-cta-container {
  max-width: 100%;
  padding: 60px 10%; /* Perfeita harmonia de 10% com o grid de serviços acima */
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  text-align: left;
  box-sizing: border-box;
}

/* Bloco de Texto Cinematográfico (HUD) - Contenção e Margens */
.cta-banner-content {
  flex: 1;
  position: relative;
  z-index: 3;
  padding: 20px 0 20px 30px; /* Abre espaço à esquerda para a linha luminosa */
  max-width: 680px; /* Força o texto a quebrar de forma harmoniosa */
}

/* A Âncora Vertical Luminosa */
.cta-banner-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, #00e5ff, #0c82fb);
  border-radius: 4px;
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.4); /* Brilho neon subtil */
  z-index: 2;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); /* Transição suave para o Hover */
}

/* Intensificação Magnética da Âncora no Hover Global do Banner */
.services-cta-container:hover .cta-banner-content::before {
  width: 5px; /* Engrossa de forma quase impercetível para peso visual */
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.8), 0 0 50px rgba(12, 130, 251, 0.5); /* Duplo Glow Agressivo */
}

/* O Painel de Vidro HUD (Desfoque Direcional) */
.cta-banner-content::after {
  content: '';
  position: absolute;
  top: -15px;
  bottom: -15px;
  left: 0;
  right: -50px; /* Estende-se suavemente para a direita */
  background: linear-gradient(90deg, rgba(10, 10, 10, 0.6) 0%, rgba(10, 10, 10, 0) 100%);
  backdrop-filter: blur(3px); /* Efeito cinemático sobre o servidor de fundo */
  -webkit-backdrop-filter: blur(3px);
  z-index: -1;
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
  pointer-events: none;
}

.cta-tag {
  display: inline-block;
  font-size: 0.85rem; /* Aumentado para maior destaque e presença visual */
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px; /* Espaçamento de letras amplo e luxuoso */
  color: #00e5ff; /* Destaque Neon Ciano */
  margin-bottom: 12px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.cta-title {
  font-size: 1.6rem; /* Mais presença visual */
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 12px 0;
  line-height: 1.25; /* Altura de linha editorial e coesa */
  letter-spacing: -0.02em; /* Compactação premium estilo Apple */
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.cta-text {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85); /* Prata suave de alta legibilidade */
  margin: 0;
  line-height: 1.65; /* Espaçamento de leitura muito confortável */
  letter-spacing: -0.015em;
}

.cta-banner-action {
  flex-shrink: 0;
  position: relative;
  z-index: 3;
}

/* Botão Magnético Cinematográfico (Holographic HUD) */
.btn-cta-explore {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(12, 82, 180, 0.35); /* Efeito azulado sutil */
  color: #ffffff !important;
  text-decoration: none !important;
  padding: 15px 32px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  border: 1.5px solid #0c82fb; /* Moldura inicial em Azul GesPrint */
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden; /* Contém o feixe de luz laser no interior do botão */
}

/* O Feixe de Luz Holográfica (Sweep) */
.btn-cta-explore::before {
  content: '';
  position: absolute;
  top: 0; 
  left: -150%; /* Começa bem fora da margem esquerda */
  width: 150%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.35), transparent); /* Luz Ciano */
  transform: skewX(-25deg); /* Dá um ângulo de inclinação dinâmico ao feixe */
  transition: left 0.7s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: -1;
  pointer-events: none; /* Impede que o feixe intercepte o hover */
}

.btn-cta-explore i {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Efeito Hover Cinematográfico Ativado */
.btn-cta-explore:hover {
  background: rgba(12, 130, 251, 0.25);
  border-color: #00e5ff; /* A borda transforma-se em Neon Ciano */
  transform: scale(1.04); /* Escala pura impede jitter nas bordas (removemos translateY) */
  box-shadow: 0 6px 25px rgba(0, 229, 255, 0.4), inset 0 0 10px rgba(12, 130, 251, 0.3); /* Duplo glow sci-fi */
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.5); /* Letras ganham claridade luminescente */
}

/* Aciona o feixe de luz a varrer o botão */
.btn-cta-explore:hover::before {
  left: 150%; /* O feixe atravessa o botão até à direita */
}

/* Animação "Warp" de Teletransporte na Seta */
.btn-cta-explore:hover i {
  /* Dispara a seta como um laser pela direita e fá-la regressar pela esquerda */
  animation: arrowWarp 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
  color: #00e5ff; /* A seta fica ciano e ganha foco */
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.8); /* Brilho na seta */
}

@keyframes arrowWarp {
  0%   { transform: translateX(0); opacity: 1; }
  40%  { transform: translateX(25px); opacity: 0; } /* Dispara e sai do botão invisível */
  41%  { transform: translateX(-25px); opacity: 0; } /* Reposiciona do lado oposto imediatamente */
  100% { transform: translateX(6px); opacity: 1; } /* Entra suavemente a travar no final */
}

/* ==============================================================
   ANIMAÇÃO DE ENTRADA CINEMATOGRÁFICA HUD (DATA WATERFALL)
   ============================================================== */

/* 1. O Desenho da Linha Vertical de cima para baixo */
.cta-banner-content::before {
  transform-origin: top; /* Ancorado ao topo para desenhar para baixo */
}

.services-cta-section.visible .cta-banner-content::before {
  animation: hudLineDraw 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) 0.2s backwards;
}

@keyframes hudLineDraw {
  0% { transform: scaleY(0); opacity: 0; }
  100% { transform: scaleY(1); opacity: 1; }
}

/* 2. O Deslizar Focado (Cinematic Blur-In) dos Textos em Cascata */
.services-cta-section.visible .cta-tag {
  animation: hudTextFocus 0.7s cubic-bezier(0.165, 0.84, 0.44, 1) 0.35s backwards;
}

.services-cta-section.visible .cta-title {
  animation: hudTextFocus 0.7s cubic-bezier(0.165, 0.84, 0.44, 1) 0.5s backwards;
}

.services-cta-section.visible .cta-text {
  animation: hudTextFocus 0.7s cubic-bezier(0.165, 0.84, 0.44, 1) 0.65s backwards;
}

.services-cta-section.visible .cta-banner-action {
  animation: hudTextFocus 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) 0.8s backwards;
}

/* Keyframe do Foco Holográfico: Slide da esquerda com desfoque inicial */
@keyframes hudTextFocus {
  0% { 
    opacity: 0; 
    transform: translateX(-30px); /* Começa atrás da linha */
    filter: blur(8px); /* Nasce totalmente desfocado */
  }
  100% { 
    opacity: 1; 
    transform: translateX(0); 
    filter: blur(0); /* Foca perfeitamente no final */
  }
}

/* Responsividade de Largura Total (Mobile) */
@media (max-width: 850px) {
  .services-cta-container {
    flex-direction: column;
    text-align: center;
    padding: 50px 20px;
    gap: 30px;
  }
  
  .cta-title {
    font-size: 1.3rem;
  }
  
  .btn-cta-explore {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }
}

/* STATS / TRUST BANNER */
.trust-section {
  padding: 0 0 30px 0; /* Ocupar a largura toda (removido padding 10%) */
  position: relative;
  z-index: 10;
  margin-top: 0; /* Colar ao Hero Banner (removido 30px) */
}

footer {
  background: #111;
  color: #888;
  height: 80px;
  padding: 0 10%;
  text-align: center;
  font-size: 13px;
  border-top: 1px solid #222;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

/* ==========================================================================
   PÁGINA 404 - Error Hero
   ========================================================================== */

.error-hero {
  height: 100vh;
  padding: 136px 10% 0;
  display: flex;
  align-items: center;
  color: white;
  position: relative;
  background-color: #0a0a0a;
  overflow: hidden;
  min-height: 100vh;
}

@media (max-width: 1024px) {
  .error-hero {
    position: sticky;
    top: 0;
    z-index: 1;
    padding-top: 90px !important;
    min-height: 100vh !important;
    height: 100vh !important;
  }
}

.error-hero-bg-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.error-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform-origin: center;
  transform: translateZ(0);
}

.error-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.1);
  z-index: 2;
  pointer-events: none;
}

.error-content {
  position: relative;
  z-index: 3;
  text-align: center;
  width: 100%;
}

.error-title {
  font-size: clamp(80px, 12vw, 180px);
  font-weight: 800;
  font-family: 'Plus Jakarta Sans', sans-serif;
  line-height: 1;
  margin: 30px 0;
  background: linear-gradient(135deg, #fff 0%, #0c82fb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -5px;
}

.error-line {
  font-size: clamp(24px, 4vw, 48px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 8px;
  color: rgba(255, 255, 255, 0.9);
}

.error-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #0c82fb 0%, #0066cc 100%);
  color: white;
  text-decoration: none;
  padding: 18px 40px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  border: 2px solid transparent;
  box-shadow: 0 8px 25px rgba(12, 130, 251, 0.4);
  margin-top: 40px;
  position: relative;
  z-index: 10;
}

.error-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(12, 130, 251, 0.5);
  background: linear-gradient(135deg, #0066cc 0%, #0c82fb 100%);
  border-color: rgba(255, 255, 255, 0.3);
}

.error-btn i {
  transition: transform 0.3s ease;
}

.error-btn:hover i {
  transform: translateX(-5px);
}

@media (max-width: 1024px) {
  .error-hero {
    padding-top: 90px !important;
  }
}

@media (max-width: 768px) {
  footer {
    height: auto;
    padding: 20px 5%;
    flex-wrap: wrap;
    white-space: normal;
  }
}

.trust-banner {
  position: relative;
  overflow: hidden;
  padding: 0px 10%; /* Altura zero no padding para compressão máxima */
  border-radius: 0; /* Remover cantos arredondados para colar aos cantos do ecrã */
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

@keyframes slowZoom {
  0% { transform: scale(1); }
  50% { transform: scale(1.25); }
  100% { transform: scale(1); }
}

.trust-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.3)), url('../images/br_15.webp') center/cover no-repeat !important;
  z-index: -1;
  transform-origin: center;
  animation: slowZoom 10s infinite ease-in-out;
}

.trust-banner.visible {
  opacity: 1;
  transform: translateY(0);
}

.trust-text-col { text-align: left; }

.stat-card {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  justify-items: start;
  text-align: left;
  gap: 0 15px;
  flex: 1;
  padding: 5px 15px;
  position: relative;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border-radius: var(--radius-standard);
  cursor: default;
}

.stat-card:hover {
  background: transparent; /* Remove o fundo azul quadrado */
  transform: none; /* Mantém o card fixo, apenas os elementos internos movem */
}

.stat-card:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 40px;
  background: rgba(12, 130, 251, 0.15);
  transition: opacity 0.3s;
}

.stat-card:hover::after { opacity: 0.5; } /* Mantém a divisória visível */

.stat-icon {
  grid-column: 1;
  grid-row: 1 / 3;
  width: 75px;
  height: 75px;
  background: transparent;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid transparent;
  position: relative;
}

.stat-icon img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  transition: all 0.4s ease;
}

.stat-card:hover .stat-icon {
  background: white;
  transform: translateY(-10px) scale(1.1);
  box-shadow: 0 15px 35px rgba(12, 130, 251, 0.2);
  border: 1px solid #0c82fb;
}

.stat-number {
  grid-column: 2;
  grid-row: 1;
  display: block;
  font-size: 34px;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 0;
  align-self: end;
  font-feature-settings: "tnum"; 
  transition: all 0.3s ease;
}

.stat-card:hover .stat-number {
  color: #0c82fb;
  transform: translateY(-5px);
}

.stat-label {
  grid-column: 2;
  grid-row: 2;
  font-size: 13px;
  color: #000;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  align-self: start;
}

@media (max-width: 1024px) {
  .trust-banner {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    padding: 20px 5%; /* Ajustado para full-width no mobile */
  }
  .stat-card:not(:last-child)::after { display: none; }
}

@media (max-width: 500px) {
  .stat-number { font-size: 28px; }
  .stat-label { font-size: 11px; }
}

/* PARTNERS */
.partners-section {
  padding: 15px 0;
  background: white;
  overflow: hidden;
  position: relative;
  border-top: 1px solid rgba(0,0,0,0.03);
}

.partners-title {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
  transition: all 0.4s ease;
}

.partners-section:hover .partners-title {
  color: #0c82fb;
  letter-spacing: 2.5px;
}

.marquee {
  display: flex;
  width: max-content;
  animation: scrollMarquee 25s linear infinite;
}

.marquee:hover { animation-play-state: paused; }

.marquee-group {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-right: 40px;
}

.partner-logo {
  flex-shrink: 0;
  height: 50px;
  width: auto;
  opacity: 0.5;
  filter: grayscale(1);
  transition: all 0.4s ease;
  object-fit: contain;
  margin: 0 10px;
}

.logo-boost { height: 85px !important; }

.partner-logo:hover {
  opacity: 1;
  filter: grayscale(0);
  transform: scale(1.1);
}

@keyframes scrollMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 1024px) {
  .partner-logo { height: 35px; }
  .marquee { animation-duration: 25s; }
}

.contact {
  padding: 100px 10%;
  background: transparent;
  text-align: center;
}

.contact h2 {
  margin-bottom: 60px;
}


/* PAGE HERO */
.page-hero {
  height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #1a1a1a;
  color: white;
  position: relative;
  overflow: hidden;
  margin-top: 136px; /* 36px top-bar + 100px header */
}

/* PAGE HERO - PÁGINA SOBRE (com background-image fixo) */
.page-hero.sobre-hero {
  background-image: url('../images/img_7.webp');
  background-size: cover;
  background-position: center bottom;
  background-attachment: fixed;
}

.page-hero.sobre-hero .hero-subtitle {
  color: #fff;
  font-size: clamp(16px, 2.5vw, 20px);
  margin-top: 15px;
  letter-spacing: 2px;
  opacity: 0;
  animation: heroSubtitleEntry 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.8s;
}

/* PAGE HERO - PÁGINA SERVIÇOS (com background-image fixo) */
.page-hero.servicos-hero {
  background-image: url('../images/img_2.webp');
  background-size: cover;
  background-position: center bottom;
  background-attachment: fixed;
}

.page-hero.servicos-hero .hero-subtitle {
  color: #fff;
  font-size: clamp(16px, 2.5vw, 20px);
  margin-top: 15px;
  letter-spacing: 2px;
  opacity: 0;
  animation: heroSubtitleEntry 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.8s;
}

@keyframes heroSubtitleEntry {
  to { opacity: 1; }
}

@media (max-width: 1024px) {
  .page-hero { margin-top: 104px !important; }
}
.hero-bg-container {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 1;
  overflow: hidden;
  opacity: 0;
  transform: scale(1.08);
  animation: heroBgEntry 1.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes heroBgEntry {
  to { opacity: 1; transform: scale(1); }
}
 .parallax-hero-img {
  width: 100%;
  height: 120%;
  object-fit: cover;
  display: block;
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to bottom, rgba(10,10,10,0.15), rgba(10,10,10,0.4));
  z-index: 2;
}
body.preloader-active .hero-title-box {
  opacity: 0;
}

.hero-title-box {
  background: rgba(10, 10, 10, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 30px 60px;
  border-radius: var(--radius-standard);
  border: 1px solid rgba(12, 130, 251, 0.15);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4);
  position: relative;
  z-index: 3;
  text-align: center;
  opacity: 0;
  transform: translateY(20px) scale(0.97);
}

body.preloader-finished .hero-title-box {
  animation: heroBoxEntry 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.2s;
}
@keyframes heroBoxEntry {
  to { opacity: 1; transform: translateY(0) scale(1); }
}
 .page-hero h1 { 
  font-size: clamp(26px, 5vw, 42px); 
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 6px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* no sticky hero globally; handled per-page when needed */
body.preloader-active .hero-line-wrap {
  opacity: 0;
}

.hero-line-wrap {
  display: block;
  overflow: hidden;
}

body.preloader-finished .hero-line-inner {
  display: block;
  transform: translateY(100%);
  animation: heroLineReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.3s;
}
@keyframes heroLineReveal {
  to { transform: translateY(0); }
}
.content-section {
  padding: 80px 5% 40px;
  background: transparent;
  overflow: hidden;
}
.content-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px; /* Reduzido de 50px para 25px */
  scroll-margin-top: 90px;
}
.content-row:nth-child(even) { flex-direction: row-reverse; }
.content-text {
  flex: 1.2;
  padding: 8px 30px 15px; /* Padding superior mínimo de 8px */
  background: white;
  border-radius: var(--radius-standard);
  box-shadow: 0 20px 60px rgba(0,0,0,0.05);
  border-left: 6px solid #0c82fb;
  border-right: 6px solid #0c82fb; /* Adicionado lado direito para consistência */
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}
.content-text h2 {
  font-size: 32px;
  margin-bottom: 8px;
  color: #0c82fb;
  margin-top: 0 !important; /* Margem superior eliminada */
}
.content-text p {
  margin-bottom: 10px;
  font-size: 16px;
  color: #555;
  line-height: 1.5;
}
.content-image {
  flex: 1;
  height: 220px;
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s ease-out 0.4s, transform 0.8s ease-out 0.4s;
  overflow: hidden;
  border-radius: var(--radius-standard);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.content-row:nth-child(even) .content-image { transform: translateX(-50px); }
.content-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.1);
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

.content-row.visible .content-text { opacity: 1; transform: translateY(0); }
.content-row.visible .content-image { opacity: 1; transform: translateX(0); }

/* ==========================================================================
   PÁGINA SERVIÇOS - #page-servicos
   ========================================================================== */

/* Serviços page - versão embutida extraída do HTML (prefixada com #page-servicos) */
#page-servicos .blueprint-services-wrapper {
  width: 100%;
  margin: 20px auto;
  padding: 40px 5%;
  display: flex;
  flex-direction: column;
  gap: 50px;
}

#page-servicos .service-blueprint-card {
  display: grid;
  grid-template-columns: 50% 50%;
  background: transparent;
  border-radius: var(--radius-standard);
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 380px;
  position: relative;
}

#page-servicos .service-blueprint-card,
#page-servicos .service-blueprint-card *:not(i):not([class*="fa-"]) {
  font-family: 'Outfit', sans-serif !important;
}

@property --border-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

/* O FIO DE LUZ ANIMADO */
#page-servicos .service-blueprint-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  padding: 2px;
  background: conic-gradient(from var(--border-angle), #eaeaea 0%, #eaeaea 70%, var(--primary-blue) 85%, #00fff9 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  animation: spin-glow 4s linear infinite;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 10;
}

#page-servicos .service-blueprint-card:hover::after { opacity: 1; }

@keyframes spin-glow { to { --border-angle: 360deg; } }

#page-servicos .service-blueprint-card:hover { box-shadow: 0 16px 50px rgba(0, 0, 0, 0.15); }

/* COLUNA ESQUERDA (IMAGEM) */
#page-servicos .blueprint-left {
  position: relative;
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  border-right: 1px solid #eaeaea;
  background-color: #ffffff;
}

#page-servicos .blueprint-bg-image {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0.85;
  filter: saturate(1.1) contrast(1.05);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease, filter 0.6s ease;
  z-index: 0;
}

#page-servicos .service-blueprint-card:hover .blueprint-bg-image { transform: scale(1.05); opacity: 1; filter: saturate(1.2) contrast(1.1); }

#page-servicos .blueprint-watermark {
  position: absolute;
  bottom: -5%; left: 50%; transform: translateX(-50%);
  font-size: clamp(80px, 10vw, 150px);
  font-weight: 900;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.25);
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.4);
  z-index: 1; pointer-events: none; user-select: none; text-transform: uppercase;
}

#page-servicos .blueprint-content { position: relative; z-index: 2; display:flex; flex-direction:column; align-items:flex-start; }

#page-servicos .blueprint-number { font-size:13px; font-weight:700; color:var(--primary-blue); letter-spacing:2px; margin-bottom:12px; margin-left:25px; display:block; text-transform:uppercase; }

#page-servicos .blueprint-title {
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 800;
  color: #1a1a1a;
  line-height: 1.2;
  margin: 0;
  background: rgba(255,255,255,0.4);
  backdrop-filter: blur(12px);
  padding: 15px 25px;
  border-radius: var(--radius-standard);
  border: 1px solid rgba(255,255,255,0.4);
  max-width: fit-content;
}

/* COLUNA DIREITA */
#page-servicos .blueprint-right { display:flex; flex-direction:column; justify-content:space-between; padding:40px; background:var(--bg-gradient); background-attachment: fixed; gap:24px; border-left:5px solid var(--primary-blue); }

#page-servicos .bp-eyebrow { font-size:16px; font-weight:700; color:var(--primary-blue); text-transform:uppercase; letter-spacing:3px; margin:0; }

#page-servicos .bp-description { font-size:17px; color:#333333; line-height:1.75; margin:0; flex:1; }

#page-servicos .bp-tags { display:flex; flex-wrap:wrap; gap:10px; }

#page-servicos .bp-tag { display:inline-block; padding:5px 13px; border:1px solid rgba(0,90,180,0.35); border-radius:100px; color:#2a6db5; font-size:13px; font-weight:500; background: rgba(255,255,255,0.3); transition: all 0.2s ease; }

#page-servicos .bp-tag:hover { background:var(--primary-blue); color:#fff; border-color:var(--primary-blue); transform: translateY(-1px); box-shadow: 0 4px 10px rgba(0,90,180,0.2); }

/* Remove underlines from tag links (override global link rules) */
#page-servicos .bp-tag,
#page-servicos .bp-tag:link,
#page-servicos .bp-tag:visited,
#page-servicos .bp-tag:hover,
#page-servicos .bp-tag:active {
  text-decoration: none !important;
}

#page-servicos .bp-cta { display:inline-flex; align-items:center; gap:12px; font-size:13px; font-weight:800; color:#ffffff !important; background: linear-gradient(135deg, var(--primary-blue) 0%, #0056cc 100%); text-decoration:none; text-transform:uppercase; letter-spacing:1.5px; padding:12px 28px; border-radius:30px; transition: all 0.4s cubic-bezier(0.16,1,0.3,1); align-self:flex-start; box-shadow:0 4px 15px rgba(12,130,251,0.22); border:1px solid rgba(255,255,255,0.1); position:relative; overflow:hidden; }

#page-servicos .bp-cta::before { content:''; position:absolute; top:0; left:-100%; width:100%; height:100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent); transition:left 0.6s ease; }

#page-servicos .bp-cta:hover::before { left:100%; }

#page-servicos .bp-cta span { position:relative; z-index:2; }

#page-servicos .bp-cta i { display:flex; align-items:center; justify-content:center; width:22px; height:22px; background: rgba(255,255,255,0.2); color:#fff; border-radius:50%; font-size:10px; transition: transform 0.4s cubic-bezier(0.175,0.885,0.32,1.275), background 0.3s ease; flex-shrink:0; z-index:2; }

#page-servicos .bp-cta:hover { background: linear-gradient(135deg, #0047b3 0%, var(--primary-blue) 100%); box-shadow: 0 8px 25px rgba(12,130,251,0.45); transform: translateY(-3px); border-color: rgba(0,229,255,0.4); }

#page-servicos .bp-cta:hover i { transform: translateX(5px) scale(1.1); background:#00fff9; color: var(--primary-dark, #0d1b2a); }

@media (max-width: 900px) {
  #page-servicos .service-blueprint-card { grid-template-columns: 1fr; }
  #page-servicos .blueprint-left { padding: 50px 20px; border-right: none; border-bottom: 1px solid #eaeaea; min-height: 250px; }
  #page-servicos .blueprint-link { padding: 25px 20px; font-size: 16px; }
  #page-servicos .blueprint-link:hover { padding-left: 25px; }
}

/* Scroll reveal for service cards */
#page-servicos .service-blueprint-card.reveal { opacity:0; transform: translate3d(0,45px,0) scale(0.99); transition: opacity 0.85s cubic-bezier(0.16,1,0.3,1), transform 0.85s cubic-bezier(0.16,1,0.3,1); will-change: transform, opacity; }

#page-servicos .service-blueprint-card.reveal.visible { opacity:1; transform: translate3d(0,0,0) scale(1); }

#page-servicos .service-blueprint-card.reveal .blueprint-bg-image { transform: scale(1.08); opacity: 0; transition: transform 1.2s cubic-bezier(0.16,1,0.3,1), opacity 1s cubic-bezier(0.16,1,0.3,1); }

#page-servicos .service-blueprint-card.reveal.visible .blueprint-bg-image { transform: scale(1); opacity: 0.85; }

#page-servicos .service-blueprint-card.reveal .blueprint-title { opacity:0; transform: translateY(15px); transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1); transition-delay: 0.08s; }

#page-servicos .service-blueprint-card.reveal.visible .blueprint-title { opacity:1; transform: translateY(0); }

#page-servicos .service-blueprint-card.reveal .bp-eyebrow { opacity:0; transform: translateY(15px); transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1); transition-delay: 0.12s; }

#page-servicos .service-blueprint-card.reveal.visible .bp-eyebrow { opacity:1; transform: translateY(0); }

#page-servicos .service-blueprint-card.reveal .bp-description { opacity:0; transform: translateY(15px); transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1); transition-delay:0.16s; }

#page-servicos .service-blueprint-card.reveal.visible .bp-description { opacity:1; transform: translateY(0); }

#page-servicos .service-blueprint-card.reveal .bp-tags { opacity:0; transform: translateY(15px); transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1); transition-delay:0.2s; }

#page-servicos .service-blueprint-card.reveal.visible .bp-tags { opacity:1; transform: translateY(0); }

#page-servicos .service-blueprint-card.reveal .bp-cta { opacity:0; transform: translateY(15px) scale(0.98); transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1); transition-delay:0.24s; }

#page-servicos .service-blueprint-card.reveal.visible .bp-cta { opacity:1; transform: translateY(0) scale(1); }

#page-servicos .service-blueprint-card.reveal.visible:hover .blueprint-bg-image { transition: transform 0.6s cubic-bezier(0.16,1,0.3,1), opacity 0.6s ease, filter 0.6s ease !important; }

#page-servicos .service-blueprint-card.reveal.visible .bp-cta:hover { transition: all 0.4s cubic-bezier(0.16,1,0.3,1) !important; transition-delay: 0s !important; }

/* Background images for service cards (paths relative to this CSS file) */
#page-servicos .blueprint-bg-image.bg-assistencia { background-image: url('../images/img_6.webp'); }
#page-servicos .blueprint-bg-image.bg-impressao { background-image: url('../images/img_5.webp'); }
#page-servicos .blueprint-bg-image.bg-redes { background-image: url('../images/service_redes.webp'); }
#page-servicos .blueprint-bg-image.bg-gestao { background-image: url('../images/service_gestao.webp'); }


/* BANNERS */
#page-servicos .lexmark-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin: 50px 0;
}

#page-servicos .services-title-container.services-title-servicos {
  text-align: center;
  margin: 60px auto 20px;
  width: 100%;
  max-width: 1200px;
}

@media (max-width: 1024px) {
  .lexmark-banner {
    flex-direction: column;
    text-align: center;
    padding: 30px 10% !important;
  }
  .lexmark-logo-box { order: 1; }
  .lexmark-text { order: 2; }
}

.wide-banner {
  width: 100%;
  padding: 35px 10%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
  gap: 50px;
  margin-top: -60px;
}
.lexmark-logo-box img { height: 45px; width: auto; }
.lexmark-text h3, .cloud-text h3 {
  font-size: 20px;
  color: #1a1a1a;
  margin-bottom: 5px;
  font-weight: 700;
  text-transform: uppercase;
}
.lexmark-text p, .cloud-text p { color: #777; font-size: 14px; margin: 0; }
#page-servicos .cloud-software-banner {
  overflow: hidden;
  padding: 10px 0;
  background: #ffffff;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  margin: 50px 0;
}
#page-servicos .cloud-item img {
  height: 40px;
}
#page-servicos .cloud-item h3 {
  text-transform: none;
  font-size: 22px;
  margin: 0;
}
#page-servicos .cloud-item p {
  font-size: 18px;
  font-weight: 500;
  color: #333;
  margin: 0;
}
.cloud-marquee {
  display: flex;
  width: max-content;
  animation: cloudMarquee 20s linear infinite;
}
.cloud-item {
  display: flex;
  align-items: center;
  gap: 30px;
  padding-right: 60px;
  flex-shrink: 0;
}
@keyframes cloudMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.cloud-item i { color: #0c82fb; font-size: 20px; }

@media (max-width: 1024px) {
  .content-row, .content-row:nth-child(even) { flex-direction: column !important; gap: 20px; }
  .content-image, .content-row:nth-child(even) .content-image { 
    transform: none !important; /* Removido desvio que causava sobreposição */
    width: 90%;
    margin: 0 auto;
    height: auto !important;
    aspect-ratio: 2.5 / 1;
  }
  #page-servicos .page-hero { margin-top: 104px !important; }
}

/* Layout compacto de 3 colunas para a página Sobre */
.content-row-3col {
  display: flex !important;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
  flex-direction: row !important;
}

.content-row-3col .content-text {
  flex: 1;
  margin: 0;
  padding: 15px;
  display: block;
  box-shadow: 0 8px 20px rgba(0,0,0,0.02);
  z-index: 1;
}

.content-row-3col .content-text:first-of-type {
  border-left: 6px solid #0c82fb !important;
  border-right: 6px solid #0c82fb !important; /* Adicionado lado direito */
  border-radius: var(--radius-standard) !important;
}

.content-row-3col .content-text:last-of-type {
  border-right: 6px solid #0c82fb !important;
  border-left: 6px solid #0c82fb !important; /* Adicionado lado esquerdo */
  border-radius: var(--radius-standard) !important;
}

.content-row-3col .content-text h2 {
  margin-bottom: 8px; /* Mais compacto no layout de 3 colunas */
  margin-top: 0;
}

.content-row-3col .content-text p {
  margin-bottom: 0;
}

/* ==========================================================================
   PÁGINA DETALHE DE SERVIÇO - #page-service-detail
   ========================================================================== */

/* Shared Service Detail styles (scoped to body#page-service-detail) */
/* Content Wrapper & Site Default Background */
#page-service-detail .service-detail-wrapper {
  position: relative;
  background: var(--bg-gradient);
  background-attachment: fixed;
  overflow: hidden;
  width: 100%;
}

/* Background Kinetic Canvas (Typographic Parallax) */
#page-service-detail .kinetic-bg-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 180px 0;
  align-items: center;
  overflow: hidden;
}

/* Page Hero Curvo (Cassepedro Style adaptado para GesPrint) */
#page-service-detail .page-hero-curved {
  position: relative;
  width: 100%;
  height: 380px;
  margin-top: 136px;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-dark) 100%);
  display: flex;
  align-items: center;
  overflow: hidden;
  z-index: 3;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#page-service-detail .hero-curved-content {
  width: 55%;
  padding: 40px 5% 40px 8%;
  color: #ffffff;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

body.preloader-active #page-service-detail .hero-curved-content .service-meta-tag {
  opacity: 0;
}

#page-service-detail .hero-curved-content .service-meta-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 2px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
}

body.preloader-finished #page-service-detail .hero-curved-content .service-meta-tag {
  animation: heroFadeUp 1.0s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.1s;
}

body.preloader-active #page-service-detail .hero-curved-content h1 {
  opacity: 0;
}

#page-service-detail .hero-curved-content h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  line-height: 1.25;
  margin: 0 0 15px 0;
}

body.preloader-finished #page-service-detail .hero-curved-content h1 {
  animation: heroFadeUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.25s;
}

body.preloader-active #page-service-detail .hero-curved-content p {
  opacity: 0;
}

#page-service-detail .hero-curved-content p {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(14px, 1.5vw, 17px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  max-width: 540px;
}

body.preloader-finished #page-service-detail .hero-curved-content p {
  animation: heroFadeUp 1.4s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.4s;
}

#page-service-detail .hero-curved-image-container {
  position: absolute;
  top: 0;
  right: 0;
  width: 48%;
  height: 100%;
  z-index: 2;
  filter: drop-shadow(-15px 0 20px rgba(0, 0, 0, 0.45));
  pointer-events: none;
}

#page-service-detail .hero-curved-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  clip-path: polygon(15% 0%, 100% 0%, 100% 100%, 15% 100%, 0% 50%);
  -webkit-clip-path: polygon(15% 0%, 100% 0%, 100% 100%, 15% 100%, 0% 50%);
  background: #111;
  pointer-events: auto;
  animation: heroWrapperReveal 1.8s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.15s;
}

#page-service-detail .hero-curved-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

#page-service-detail .page-hero-curved:hover .hero-curved-image-wrapper img {
  transform: scale(1.05);
}

/* Animações de Entrada Onload */
@keyframes heroFadeUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroWrapperReveal {
  0% {
    opacity: 0;
    transform: translateX(50px);
    clip-path: polygon(100% 0%, 100% 0%, 100% 100%, 100% 100%, 100% 50%);
    -webkit-clip-path: polygon(100% 0%, 100% 0%, 100% 100%, 100% 100%, 100% 50%);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
    clip-path: polygon(15% 0%, 100% 0%, 100% 100%, 15% 100%, 0% 50%);
    -webkit-clip-path: polygon(15% 0%, 100% 0%, 100% 100%, 15% 100%, 0% 50%);
  }
}

@keyframes heroWrapperRevealMobile {
  0% {
    opacity: 0;
    transform: translateY(30px);
    clip-path: polygon(0% 100%, 50% 100%, 100% 100%, 100% 100%, 0% 100%);
    -webkit-clip-path: polygon(0% 100%, 50% 100%, 100% 100%, 100% 100%, 0% 100%);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    clip-path: polygon(0% 15%, 50% 0%, 100% 15%, 100% 100%, 0% 100%);
    -webkit-clip-path: polygon(0% 15%, 50% 0%, 100% 15%, 100% 100%, 0% 100%);
  }
}

/* Responsividade Multi-Dispositivo */
@media (max-width: 1024px) {
  #page-service-detail .page-hero-curved {
    flex-direction: column;
    height: auto;
    min-height: 480px;
    margin-top: 90px;
  }

  #page-service-detail .hero-curved-content {
    width: 100%;
    padding: 40px 5%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  #page-service-detail .hero-curved-image-container {
    position: relative;
    width: 100%;
    height: 260px;
    filter: drop-shadow(0 -12px 18px rgba(0, 0, 0, 0.35));
  }

  body.preloader-active #page-service-detail .hero-curved-image-wrapper {
    opacity: 0;
  }

  #page-service-detail .hero-curved-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 0;
    clip-path: polygon(0% 15%, 50% 0%, 100% 15%, 100% 100%, 0% 100%);
    -webkit-clip-path: polygon(0% 15%, 50% 0%, 100% 15%, 100% 100%, 0% 100%);
    animation: heroWrapperRevealMobile 1.8s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.15s;
  }
}

#page-service-detail .kinetic-word {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(80px, 15vw, 240px);
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px rgba(12, 130, 251, 0.22);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 12px;
  transition: letter-spacing 0.8s cubic-bezier(0.165, 0.84, 0.44, 1),
              -webkit-text-stroke 0.8s ease,
              opacity 0.8s ease;
  will-change: transform, letter-spacing;
  user-select: none;
}

#page-service-detail .kinetic-word:hover {
  letter-spacing: 18px;
  -webkit-text-stroke: 1px rgba(12, 130, 251, 0.45);
}

/* Section 1: Hero Clean */

#page-service-detail .service-meta-tag {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: #0c82fb;
  text-transform: uppercase;
  display: block;
  margin-bottom: 20px;
}


/* Section 2: Monumental Editorial List */
#page-service-detail .service-editorial-list {
  padding: 40px 10% 120px;
  position: relative;
  z-index: 2;
  background: transparent;
}

/* Section 1.5: Service Topic Cards - Modern Highlight Cards */
#page-service-detail .service-topic-cards {
  padding: 60px 10%;
  position: relative;
  z-index: 2;
  background: var(--bg-gradient);
}

#page-service-detail .topic-cards-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

#page-service-detail .topic-card {
  background: transparent;
  border-radius: 8px;
  padding: 25px 20px;
  position: relative;
  transition: all 0.3s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  text-decoration: none;
  color: inherit;
}

#page-service-detail .topic-card:hover {
  transform: translateY(-4px);
}

#page-service-detail .topic-card:hover .topic-card-icon {
  position: relative;
}

#page-service-detail .topic-card:hover .topic-card-icon::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  background: var(--primary-blue);
  border-radius: 50%;
  z-index: -1;
  transition: all 0.3s ease;
}

#page-service-detail .topic-card:hover .topic-card-icon img {
  filter: brightness(0) invert(1);
}

#page-service-detail .topic-card-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  color: #000000;
  margin-bottom: 12px;
  display: block;
}

#page-service-detail .topic-card-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--primary-blue);
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

#page-service-detail .topic-card-icon {
  display: block;
  margin-bottom: 15px;
  width: 50px;
  height: 50px;
}

#page-service-detail .topic-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 900px) {
  #page-service-detail .topic-cards-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  #page-service-detail .service-topic-cards {
    padding: 40px 5%;
  }
}

#page-service-detail .editorial-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
}

#page-service-detail .editorial-item {
  width: 100%;
  padding: 90px 0;
  position: relative;
  transition: all 0.5s ease;
}

#page-service-detail .editorial-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(to right, 
    transparent 0%, 
    rgba(12, 130, 251, 0.2) 20%, 
    rgba(12, 130, 251, 0.4) 50%, 
    rgba(12, 130, 251, 0.2) 80%, 
    transparent 100%);
}

#page-service-detail .editorial-item:first-child::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(to right, 
    transparent 0%, 
    rgba(12, 130, 251, 0.2) 20%, 
    rgba(12, 130, 251, 0.4) 50%, 
    rgba(12, 130, 251, 0.2) 80%, 
    transparent 100%);
}

#page-service-detail .editorial-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 60px;
}

#page-service-detail .editorial-left {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

#page-service-detail .editorial-number {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(48px, 6.5vw, 76px);
  font-weight: 300;
  color: rgba(12, 130, 251, 0.16);
  line-height: 0.8;
  transition: color 0.4s ease;
  letter-spacing: -2px;
}

#page-service-detail .editorial-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: #0c82fb;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

#page-service-detail .editorial-right {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

#page-service-detail .editorial-subtitle {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  color: #1a1a1a;
  margin: 0;
  transition: color 0.4s ease;
  letter-spacing: -0.5px;
}

#page-service-detail .editorial-desc {
  font-family: 'Outfit', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: #2c2c2c;
  margin: 0;
  max-width: 780px;
  font-weight: 400;
  padding: 0 24px;
  position: relative;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-image: linear-gradient(to bottom, rgba(12, 130, 251, 0.1), rgba(12, 130, 251, 0.4), rgba(12, 130, 251, 0.1)) 1;
}

#page-service-detail .editorial-desc::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, 
    rgba(12, 130, 251, 0.1) 0%, 
    rgba(12, 130, 251, 0.5) 50%, 
    rgba(12, 130, 251, 0.1) 100%);
  box-shadow: 0 0 8px rgba(12, 130, 251, 0.3);
}

#page-service-detail .editorial-desc::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, 
    rgba(12, 130, 251, 0.1) 0%, 
    rgba(12, 130, 251, 0.5) 50%, 
    rgba(12, 130, 251, 0.1) 100%);
  box-shadow: 0 0 8px rgba(12, 130, 251, 0.3);
}

#page-service-detail .editorial-spec-divider {
  width: 60px;
  height: 1px;
  background: #eaeaea;
  margin: 10px 0;
  transition: width 0.4s ease, background-color 0.4s ease;
}

#page-service-detail .editorial-spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

#page-service-detail .spec-cell {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#page-service-detail .spec-label {
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  font-weight: 700;
  color: #5b6e7f;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

#page-service-detail .spec-val {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #333;
}

/* Interações Premium (Hover) */
#page-service-detail .editorial-item:hover .editorial-number {
  color: rgba(12, 130, 251, 0.32);
}

#page-service-detail .editorial-item:hover .editorial-subtitle {
  color: #0c82fb;
}

#page-service-detail .editorial-item:hover .editorial-spec-divider {
  width: 130px;
  background: #0c82fb;
}


/* Responsividade Multi-Dispositivo */
@media (max-width: 900px) {
  #page-service-detail .editorial-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  #page-service-detail .editorial-left {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  #page-service-detail .editorial-spec-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  #page-service-detail .service-editorial-list {
    padding: 40px 5% 80px;
  }
}

/* ==========================================================================
   BANNER DE ACÇÃO CINEMÁTICO E VANGUARDISTA (QUIET LUXURY & TECH GLOW)
   ========================================================================== */
#page-service-detail .service-action-banner-cinematic {
  position: relative;
  width: 100%;
  margin: 120px 0 0 0;
  padding: 90px 10%;
  background: radial-gradient(circle at top right, rgba(12, 130, 251, 0.15) 0%, transparent 60%),
              linear-gradient(135deg, #090e1a 0%, #040710 100%);
  border-top: 1px solid rgba(12, 130, 251, 0.2);
  border-bottom: 1px solid rgba(0, 0, 0, 0.3);
  border-left: none;
  border-right: none;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.35), 
              0 0 100px rgba(12, 130, 251, 0.06) inset;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 50px;
  z-index: 5;
}

#page-service-detail .cinematic-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../../images/contact_banner_img.webp');
  background-size: cover;
  background-position: center;
  filter: brightness(0.48) contrast(1.1) grayscale(10%); 
  opacity: 0.9;
  transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
  will-change: transform;
  pointer-events: none;
  z-index: 1;
}

#page-service-detail .cinematic-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right, 
    rgba(9, 14, 26, 0.94) 0%, 
    rgba(9, 14, 26, 0.45) 50%, 
    rgba(4, 7, 16, 0.90) 100%
  );
  pointer-events: none;
  z-index: 2;
}

#page-service-detail .service-action-banner-cinematic:hover .cinematic-bg-image {
  transform: scale(1.04);
}

#page-service-detail .service-action-banner-cinematic::before {
  content: "";
  position: absolute;
  top: -150px;
  right: -150px;
  width: 350px;
  height: 350px;
  background: var(--primary-blue);
  filter: blur(140px);
  opacity: 0.25;
  pointer-events: none;
  z-index: 1;
  animation: ambientPulse 10s ease-in-out infinite;
}

@keyframes ambientPulse {
  0% { transform: scale(1) translate(0, 0); opacity: 0.2; }
  50% { transform: scale(1.2) translate(-30px, 20px); opacity: 0.35; }
  100% { transform: scale(1) translate(0, 0); opacity: 0.2; }
}

#page-service-detail .service-action-banner-cinematic::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(12, 130, 251, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12, 130, 251, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center;
  mask-image: radial-gradient(circle at 85% 50%, black 20%, transparent 65%);
  -webkit-mask-image: radial-gradient(circle at 85% 50%, black 20%, transparent 65%);
  pointer-events: none;
  z-index: 1;
}

#page-service-detail .cinematic-laser-sweep {
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(12, 130, 251, 0.08), transparent);
  transform: skewX(-30deg);
  animation: laserSweep 7s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes laserSweep {
  0% { left: -100%; }
  50%, 100% { left: 200%; }
}

#page-service-detail .action-cinematic-left {
  max-width: 62%;
  z-index: 2;
  position: relative;
}

#page-service-detail .action-cinematic-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-blue);
  letter-spacing: 3px;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 22px;
  background: rgba(12, 130, 251, 0.08);
  padding: 7px 16px;
  border-radius: 30px;
  border: 1px solid rgba(12, 130, 251, 0.15);
}

#page-service-detail .action-cinematic-left h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
  background: linear-gradient(to right, #ffffff 60%, #a5d1ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

#page-service-detail .action-cinematic-left p {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(15px, 1.8vw, 17px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

#page-service-detail .action-cinematic-right {
  z-index: 2;
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* BOTÃO ULTRA-MODERNO CYBERNETIC NEON GLOW */
#page-service-detail .btn-cyber-glow {
  position: relative;
  display: inline-block;
  padding: 2px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: 2;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

#page-service-detail .btn-cyber-glow::before {
  content: "";
  position: absolute;
  top: -60%;
  left: -60%;
  width: 220%;
  height: 220%;
  background: conic-gradient(
    from 0deg,
    transparent 25%,
    var(--primary-blue) 50%,
    transparent 60%,
    var(--primary-blue) 90%,
    transparent 100%
  );
  animation: rotateGlow 3.5s linear infinite;
  transition: opacity 0.5s ease;
  opacity: 0.85;
}

@keyframes rotateGlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#page-service-detail .btn-cyber-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 46px;
  background: #090e1a;
  border-radius: 14px;
  z-index: 3;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  overflow: hidden;
}

#page-service-detail .btn-cyber-inner::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(12, 130, 251, 0.2), transparent);
  transition: left 0.6s ease;
}

#page-service-detail .btn-cyber-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 2px;
  z-index: 4;
  transition: color 0.3s ease;
}

#page-service-detail .btn-cyber-inner i {
  font-size: 14px;
  color: var(--primary-blue);
  z-index: 4;
  transition: transform 0.3s ease, color 0.3s ease;
}

#page-service-detail .action-cinematic-right:hover .btn-cyber-glow {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(12, 130, 251, 0.55), 0 0 40px rgba(12, 130, 251, 0.3);
  background: var(--primary-blue);
}

#page-service-detail .action-cinematic-right:hover .btn-cyber-glow::before {
  animation: none;
  opacity: 0;
}

#page-service-detail .action-cinematic-right:hover .btn-cyber-inner {
  background: var(--primary-blue);
}

#page-service-detail .action-cinematic-right:hover .btn-cyber-text {
  color: #ffffff;
}

#page-service-detail .action-cinematic-right:hover .btn-cyber-inner i {
  color: #ffffff;
  transform: translateX(6px);
}

#page-service-detail .action-cinematic-right:hover .btn-cyber-inner::after {
  left: 100%;
}

/* Responsividade do Banner Cinematic */
@media (max-width: 1024px) {
  #page-service-detail .service-action-banner-cinematic {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 60px 0 0 0;
    padding: 60px 8%;
    gap: 35px;
  }

  #page-service-detail .action-cinematic-left {
    max-width: 100%;
  }

  #page-service-detail .btn-cyber-glow {
    width: 100%;
  }

  #page-service-detail .btn-cyber-inner {
    padding: 18px 36px;
    width: 100%;
    justify-content: center;
  }

  #page-service-detail .service-action-banner-cinematic::before {
    display: none !important;
  }
  #page-service-detail .service-action-banner-cinematic::after,
  #page-service-detail .cinematic-laser-sweep,
  #page-service-detail .services-teaser-cinematic::before {
    display: none !important;
  }
  #page-service-detail .service-action-banner-cinematic {
    box-shadow: none !important;
  }
  #page-service-detail .service-action-banner-cinematic.reveal {
    clip-path: none !important;
  }
}

/* ============================================================
   SECÇÃO TEASER CINEMÁTICA — Link para Página de Serviços
   ============================================================ */
#page-service-detail .services-teaser-cinematic {
  position: relative;
  width: 100%;
  padding: 80px 10%;
  background: var(--bg-gradient);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  z-index: 5;
}

#page-service-detail .services-teaser-cinematic::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 300%;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(12, 130, 251, 0.0) 20%,
    rgba(12, 130, 251, 0.8) 50%,
    rgba(12, 130, 251, 0.0) 80%,
    transparent 100%
  );
  animation: scanLine 4s ease-in-out infinite;
}

@keyframes scanLine {
  0%   { left: -100%; }
  100% { left: 100%; }
}

#page-service-detail .teaser-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: rgba(12, 130, 251, 0.7);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 28px;
  display: block;
}

#page-service-detail .teaser-headline {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(28px, 4.5vw, 58px);
  font-weight: 800;
  color: #0d1b2a;
  letter-spacing: -0.5px;
  line-height: 1.25;
  margin: 0 0 48px 0;
  text-transform: uppercase;
  padding-top: 5px;
}

#page-service-detail .teaser-headline span {
  color: #0c82fb;
}

#page-service-detail .services-teaser-cinematic .btn-cta-explore {
  background: var(--primary-blue, #0c82fb);
  border-color: var(--primary-blue, #0c82fb);
  box-shadow: 0 4px 15px rgba(12, 130, 251, 0.25);
  z-index: 1;
}

#page-service-detail .services-teaser-cinematic .btn-cta-explore::before {
  z-index: 1;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
}

#page-service-detail .services-teaser-cinematic .btn-cta-explore span,
#page-service-detail .services-teaser-cinematic .btn-cta-explore i {
  position: relative;
  z-index: 2;
}

#page-service-detail .services-teaser-cinematic .btn-cta-explore:hover {
  background: #03244d;
  border-color: #00e5ff;
  box-shadow: 0 6px 25px rgba(0, 229, 255, 0.35), inset 0 0 10px rgba(12, 130, 251, 0.2);
}

/* ============================================================
   ANIMAÇÃO 1: VARRIMENTO DIAGONAL CINEMÁTICO COM ACELERAÇÃO (SECÇÃO 3)
   ============================================================ */
#page-service-detail .service-action-banner-cinematic.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

#page-service-detail .service-action-banner-cinematic.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

#page-service-detail .service-action-banner-cinematic.reveal .cinematic-bg-image {
  transform: scale(1.18) translateX(-50px);
  transition: transform 2.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#page-service-detail .service-action-banner-cinematic.reveal.visible .cinematic-bg-image {
  transform: scale(1.03) translateX(0);
}

#page-service-detail .service-action-banner-cinematic.reveal .action-cinematic-left {
  opacity: 0;
  transform: translateY(30px) skewY(1deg);
  transition: opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#page-service-detail .service-action-banner-cinematic.reveal .action-cinematic-right {
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  transition: opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#page-service-detail .service-action-banner-cinematic.reveal.visible .action-cinematic-left {
  opacity: 1;
  transform: translateY(0) skewY(0);
  transition-delay: 0.4s;
}

#page-service-detail .service-action-banner-cinematic.reveal.visible .action-cinematic-right {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: 0.6s;
}

#page-service-detail .service-action-banner-cinematic.reveal.visible .action-cinematic-right:hover .btn-cyber-glow {
  transition-delay: 0s !important;
}

/* ============================================================
   ANIMAÇÃO 2: REVELAÇÃO SUAVE & REVELAÇÃO VERTICAL DE TEXTO (SECÇÃO 4)
   ============================================================ */
#page-service-detail .services-teaser-cinematic.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: transform 1.6s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 1.6s cubic-bezier(0.16, 1, 0.3, 1);
}

#page-service-detail .services-teaser-cinematic.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

#page-service-detail .services-teaser-cinematic.reveal .teaser-tag {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

#page-service-detail .services-teaser-cinematic.reveal .teaser-headline {
  opacity: 0;
  transform: translateY(40px);
  clip-path: inset(-20% 0 100% 0);
  transition: opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.4s cubic-bezier(0.16, 1, 0.3, 1),
              clip-path 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#page-service-detail .services-teaser-cinematic.reveal .btn-cta-explore {
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

#page-service-detail .services-teaser-cinematic.reveal.visible .teaser-tag {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.25s;
}

#page-service-detail .services-teaser-cinematic.reveal.visible .teaser-headline {
  opacity: 1;
  transform: translateY(0);
  clip-path: inset(-20% 0 -20% 0);
  transition-delay: 0.45s;
}

#page-service-detail .services-teaser-cinematic.reveal.visible .btn-cta-explore {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: 0.65s;
}

#page-service-detail .services-teaser-cinematic.reveal.visible .btn-cta-explore:hover {
  transition-delay: 0s !important;
}

/* ============================================================
   ANIMAÇÃO INDIVIDUAL DE CADA ELEMENTO EDITORIAL
   ============================================================ */
#page-service-detail .editorial-item.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1.0s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.0s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

#page-service-detail .editorial-item.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

#page-service-detail .editorial-item.reveal .editorial-spec-grid .spec-cell {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

#page-service-detail .editorial-item.reveal.visible .editorial-spec-grid .spec-cell {
  opacity: 1;
  transform: translateY(0);
}

#page-service-detail .editorial-item.reveal.visible .editorial-spec-grid .spec-cell:nth-child(1) { transition-delay: 0.2s; }
#page-service-detail .editorial-item.reveal.visible .editorial-spec-grid .spec-cell:nth-child(2) { transition-delay: 0.3s; }
#page-service-detail .editorial-item.reveal.visible .editorial-spec-grid .spec-cell:nth-child(3) { transition-delay: 0.4s; }

/* Ensure these shared rules are loaded after page-specific components */

/* ==========================================================================
   PÁGINA CONTACTOS - #page-contact
   ========================================================================== */

/* ============================================================
   PAGE CONTACT STYLES (Scoped to body#page-contact)
   ============================================================ */

#page-contact {
  --fonte-titulo: 'Inter', sans-serif;
  --fonte-corpo: 'Inter', sans-serif;
  --header-h: 80px;
}

#page-contact .hero-main {
  position: relative;
  overflow: hidden;
  z-index: 10;
  min-height: 100vh;
  background: var(--bg-gradient);
  background-attachment: fixed;
  display: flex;
  align-items: center;
  padding-bottom: 120px;
  color: var(--text-dark);
  font-family: var(--fonte-corpo);
}

#page-contact .hero-bg-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 50%, rgba(12, 130, 251, 0.05) 0%, transparent 60%),
              radial-gradient(circle at 10% 90%, rgba(12, 130, 251, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

#page-contact .hero-layout {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 55% 45%;
  align-items: flex-start;
}

#page-contact .hero-layout--mirrored {
  grid-template-columns: 45% 55%;
}

body.preloader-active #page-contact .hero-text {
  opacity: 0;
}

#page-contact .hero-text {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
  padding-top: calc(var(--header-h) + 160px);
}

body.preloader-finished #page-contact .hero-text {
  animation: slideInRight 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

#page-contact .hero-title {
  margin-bottom: 2rem;
}

#page-contact .hero-description {
  font-family: var(--fonte-corpo);
  font-size: 1.05rem;
  line-height: 1.7;
  color: #555;
  max-width: 540px;
  margin-bottom: 2rem;
}

#page-contact .eyebrow {
  display: block;
  font-family: var(--fonte-corpo);
  font-size: 16px;
  text-transform: none;
  letter-spacing: normal;
  color: #888;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

#page-contact .hero-image-wrap {
  position: relative;
  height: calc(100vh - var(--header-h));
  margin-top: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

#page-contact .hero-image-glow {
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(12, 130, 251, 0.1) 0%, transparent 70%);
  left: -120px;
  z-index: 1;
}

#page-contact .hero-image-shadow {
  position: relative;
  z-index: 2;
  filter: drop-shadow(45px 45px 65px rgba(0, 0, 0, 0.35));
  animation: revealImageLeft 2.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  perspective: 1500px;
  width: 100%;
}

#page-contact .hero-image-mask {
  width: 95%;
  height: calc(88vh - var(--header-h));
  margin-right: auto;
  margin-left: 0;
  clip-path: polygon(0 0, 86% 0, 100% 50%, 78% 100%, 0 100%);
  overflow: hidden;
}

#page-contact .hero-image {
  width: 110%;
  height: 110%;
  position: absolute;
  top: -5%;
  left: -5%;
  background: url('../images/contacto_1.webp') center/cover no-repeat;
  transform-origin: center;
  animation: slowZoomContact 35s infinite ease-in-out;
  will-change: transform;
}

@keyframes slowZoomContact {
  0% { transform: scale(1); }
  50% { transform: scale(1.25); }
  100% { transform: scale(1); }
}

@keyframes slideInRight {
  0% { opacity: 0; transform: translateX(100vw); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes revealImageLeft {
  0% { opacity: 0; transform: translateX(-400px); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes zoomOutMirror {
  0% { opacity: 0; transform: scale(1.15) translateX(30px); }
  100% { opacity: 1; transform: scale(1) translateX(0); }
}

#page-contact .contact-premium-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
  max-width: 850px;
}

#page-contact .contact-premium-item {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 0.8rem 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  cursor: default !important;
  transition: none !important;
  transform: none !important;
}

#page-contact .contact-premium-item:hover {
  background: transparent !important;
  transform: none !important;
  box-shadow: none !important;
}

#page-contact .contact-premium-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1.5px solid var(--primary-blue);
  border-radius: 50%;
  flex-shrink: 0;
  transition: none;
}

#page-contact .contact-premium-icon img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  transition: none;
  filter: invert(41%) sepia(87%) saturate(2815%) hue-rotate(195deg) brightness(101%) contrast(101%);
}

#page-contact .contact-premium-item:hover .contact-premium-icon {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
}

#page-contact .contact-premium-item:hover .contact-premium-icon img {
  filter: brightness(0) invert(1);
  opacity: 1;
}

#page-contact .contact-premium-info {
  text-align: left;
}

#page-contact .contact-premium-info h4 {
  font-family: var(--fonte-corpo);
  font-size: 13px;
  text-transform: none;
  letter-spacing: normal;
  margin-bottom: 2px;
  color: var(--primary-blue);
  font-weight: 700;
  transition: color 0.3s ease;
}

#page-contact .phone-note {
  display: block;
  font-size: 0.7rem;
  color: #999;
  font-weight: 500;
  margin-top: 2px;
}

#page-contact .contact-premium-info p,
#page-contact .contact-premium-info a {
  font-family: var(--fonte-corpo);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-black);
  text-decoration: none;
  display: block;
  line-height: 1.2;
  transition: all 0.3s ease;
}

#page-contact .btn--cinematic {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0 2.5rem;
  height: 60px;
  background: #fdfdfd;
  border: 1.5px solid var(--primary-blue);
  color: var(--primary-blue);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  overflow: hidden;
  margin-top: 0.5rem;
  transition: all 0.4s ease;
  border-radius: var(--radius-standard);
}

#page-contact .btn--cinematic:hover {
  background: var(--primary-blue);
  color: #fff;
  border-color: var(--primary-blue);
  box-shadow: 0 10px 30px rgba(12, 130, 251, 0.2);
  transform: translateY(-2px);
}

#page-contact .btn--cinematic img {
  width: 44px;
  height: 44px;
  margin-right: 12px;
  object-fit: contain;
  filter: invert(41%) sepia(87%) saturate(2815%) hue-rotate(195deg) brightness(101%) contrast(101%);
  transition: all 0.4s ease;
}

#page-contact .btn--cinematic:hover img {
  filter: brightness(0) invert(1);
}

#page-contact .avant-garde-banner {
  position: relative;
  background-color: var(--primary-blue);
  overflow: hidden;
  padding: 90px 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
}

#page-contact .banner-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 16vw;
  font-weight: 800;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.15);
  z-index: 1;
  pointer-events: none;
  user-select: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

#page-contact .avant-garde-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

#page-contact .avant-garde-eyebrow {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: 20px;
}

#page-contact .avant-garde-title {
  font-size: clamp(38px, 5vw, 68px);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 60px;
  max-width: 800px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

#page-contact .glitch-text {
  position: relative;
  display: inline-block;
}

#page-contact .glitch-text::before,
#page-contact .glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-blue);
  color: #fff;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
}

#page-contact .glitch-text::before {
  left: 3px;
  text-shadow: -2px 0 #ff00c1;
  animation: glitch-anim-1 4s infinite linear alternate-reverse;
}

#page-contact .glitch-text::after {
  left: -3px;
  text-shadow: -2px 0 #00fff9;
  animation: glitch-anim-2 4s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
  0%, 95% { opacity: 0; clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); transform: translate(0); }
  96% { opacity: 1; clip-path: polygon(0 20%, 100% 20%, 100% 30%, 0 30%); transform: translate(-4px, -1px); }
  97% { opacity: 1; clip-path: polygon(0 60%, 100% 60%, 100% 65%, 0 65%); transform: translate(4px, 1px); }
  98% { opacity: 1; clip-path: polygon(0 10%, 100% 10%, 100% 25%, 0 25%); transform: translate(-2px, -2px); }
  99% { opacity: 1; clip-path: polygon(0 80%, 100% 80%, 100% 90%, 0 90%); transform: translate(4px, 2px); }
  100% { opacity: 0; clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); transform: translate(0); }
}

@keyframes glitch-anim-2 {
  0%, 95% { opacity: 0; clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); transform: translate(0); }
  96% { opacity: 1; clip-path: polygon(0 70%, 100% 70%, 100% 80%, 0 80%); transform: translate(4px, 1px); }
  97% { opacity: 1; clip-path: polygon(0 10%, 100% 10%, 100% 15%, 0 15%); transform: translate(-4px, -1px); }
  98% { opacity: 1; clip-path: polygon(0 40%, 100% 40%, 100% 55%, 0 55%); transform: translate(2px, 2px); }
  99% { opacity: 1; clip-path: polygon(0 5%, 100% 5%, 100% 15%, 0 15%); transform: translate(-4px, -2px); }
  100% { opacity: 0; clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); transform: translate(0); }
}

#page-contact .cyber-bracket-btn {
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  cursor: pointer;
}

#page-contact .bracket {
  font-weight: 300;
  font-size: 28px;
  color: #00fff9;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease, color 0.3s ease;
  opacity: 0.6;
}

#page-contact .bracket-left { margin-right: 15px; }
#page-contact .bracket-right { margin-left: 15px; }

#page-contact .cyber-bracket-btn:hover {
  color: #fff;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
}

#page-contact .cyber-bracket-btn:hover .bracket {
  opacity: 1;
  color: #ff00c1;
}

#page-contact .cyber-bracket-btn:hover .bracket-left {
  transform: translateX(-12px);
}

#page-contact .cyber-bracket-btn:hover .bracket-right {
  transform: translateX(12px);
}

@media (max-width: 1100px) {
  #page-contact .contact-premium-grid { grid-template-columns: 1fr; max-width: 450px; margin-top: 2.5rem; }
  #page-contact .hero-layout--mirrored { grid-template-columns: 40% 60%; }
}

@media (max-width: 900px) {
  #page-contact .hero-main { min-height: auto; padding-bottom: 60px; }
  
  #page-contact .hero-layout { 
    display: flex; 
    flex-direction: column; 
    min-height: auto;
    text-align: left;
  }
  
  #page-contact .hero-image-wrap { 
    display: block; 
    order: -1; 
    height: 350px; 
    width: 100%;
    margin-top: 80px;
    padding: 0 1.5rem;
  }

  #page-contact .hero-image-shadow, 
  #page-contact .hero-image-mask {
    height: 100%;
    width: 100%;
  }

  #page-contact .hero-image-mask {
    clip-path: polygon(0 10%, 100% 0, 100% 90%, 0 100%);
  }

  #page-contact .hero-image-shadow {
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.2));
    padding: 0;
    margin: 0;
  }

  #page-contact .hero-text { 
    padding-top: 20px !important; 
    padding-bottom: 20px; 
  }

  #page-contact .hero-description {
    margin: 0 auto 1.5rem;
  }

  #page-contact .contact-premium-grid { 
    margin: 1.5rem auto; 
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  #page-contact .contact-actions { margin-top: 2rem; }

  #page-contact .avant-garde-banner { padding: 80px 2rem; margin-top: 0; }
  #page-contact .banner-watermark { font-size: 28vw; }
  #page-contact .avant-garde-title { margin-bottom: 40px; }
}


.content-row-3col .content-image {
  flex: 1;
  height: 220px;
  min-height: 220px;
  margin: 0;
}

@media (max-width: 1200px) {
  .content-row-3col, 
  .content-section .content-row-3col:nth-child(even) {
    flex-direction: column !important;
    gap: 25px !important; /* Espaço real entre blocos */
  }
  .content-row-3col .content-image {
    width: 90%;
    aspect-ratio: 2.5 / 1;
    margin: 0 auto !important;
    transform: none !important;
  }
  .content-row-3col .content-text {
    opacity: 1 !important; /* Garantir visibilidade */
    transform: none !important;
  }
}

@media (max-width: 768px) {
  .content-image, .content-row:nth-child(even) .content-image {
    height: auto !important;
    min-height: auto !important;
    aspect-ratio: 2.5 / 1;
    width: 100%;
    margin: 0 auto;
    border-radius: 12px;
  }
}

/* ==========================================================================
   PÁGINA SOBRE - Identity Matrix, Value Proposition, Trust Premium
   ========================================================================== */

/* ==========================================================================
   PÁGINA LEGAL - Legal Body
   ========================================================================== */

/* LEGAL PAGE STYLES */
.legal-body {
  font-family: 'Inter', sans-serif;
  color: #333;
  line-height: 1.6;
  background: #f9f9fb;
  padding: 60px 10%;
}
.legal-body .container {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  padding: 60px;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.05);
}
.legal-body .back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #0c82fb;
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 40px;
  font-size: 14px;
  transition: transform 0.2s;
}
.legal-body .back-link:hover { transform: translateX(-5px); }
.legal-body h1 { font-size: 32px; margin-bottom: 40px; color: #000; letter-spacing: -0.5px; }
.legal-body h2 { font-size: 20px; margin: 30px 0 15px; color: #0c82fb; font-weight: 700; }
.legal-body .legal-block {
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid #eee;
}
.legal-body .legal-block:last-child { border-bottom: none; }
.legal-body .data-item { margin-bottom: 8px; }
.legal-body .data-item strong { color: #000; margin-right: 8px; }
.legal-body p { margin-bottom: 15px; color: #666; }
.legal-body footer {
  text-align: center;
  margin-top: 60px;
  font-size: 13px;
  color: #aaa;
  background: transparent;
  border: none;
  height: auto;
  padding: 0;
}

/* ==========================================================================
   PÁGINA SOBRE - Identity Matrix, Value Proposition, Trust Premium
   ========================================================================== */

/* IDENTITY INTRO SECTION */
.identity-intro {
  padding: 40px 5% 0px; /* Reduzido o topo para subir o título e 0 no fundo para aproximar da régua */
  background: transparent;
  text-align: center;
}

/* O título "A Nossa Identidade" agora usa integralmente a classe global .reveal-title */

/* TRUST PREMIUM (Estilo TecniMobile) */
/* IDENTITY MATRIX SECTION - Card Style */
.identity-matrix {
  padding: 40px 5% 80px; /* Topo cortado de 80px para 40px para aproximar régua ao título */
  background: transparent;
  position: relative;
}

.matrix-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 60px;
  border-top: 2px solid;
  border-image: linear-gradient(90deg, #0c82fb, #4ade80) 1;
}

/* Marcas de medição na régua */
.matrix-grid::after {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 100%;
  height: 8px;
  background-image: linear-gradient(90deg, #0c82fb 1px, transparent 1px);
  background-size: 5% 100%;
  z-index: 3;
}

/* Ponto Pulsante (Energy Node) no final da régua */
.matrix-grid::before {
  content: "";
  position: absolute;
  top: -6px;
  right: -5px;
  width: 10px;
  height: 10px;
  background: #4ade80;
  border-radius: 50%;
  z-index: 5;
  box-shadow: 0 0 15px rgba(74, 222, 128, 0.6);
  animation: pulseGreen 2s infinite;
}

/* Fio de Suspensão (O "Cabo de Aço") */
.matrix-item::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%; /* Volta para o centro para equilíbrio */
  width: 1px;
  height: 60px;
  background: linear-gradient(to top, rgba(0,0,0,0.1), rgba(12, 130, 251, 0.3));
  z-index: -1;
  transition: all 0.4s ease;
}

/* O "Gancho" / Ponto de Fixação na Régua */
.matrix-item::after {
  content: "";
  position: absolute;
  top: -65px;
  left: 50%; /* Volta para o centro */
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: var(--primary-blue);
  border-radius: 50%;
  z-index: 10;
  box-shadow: 0 0 5px rgba(12, 130, 251, 0.5);
  transition: all 0.4s ease;
}

/* VALUE PROPOSITION SECTION (ESTILO CONSULTORIA) */
.value-proposition {
  padding: 100px 0;
  background: var(--bg-light);
}

.value-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5%;
}

.value-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr; /* Vídeo um pouco mais estreito que o texto */
  gap: 100px;
  align-items: flex-start;
}

@media (max-width: 1024px) {
  .value-grid {
    display: flex;
    flex-direction: column-reverse;
    gap: 40px;
    align-items: stretch; /* GARANTE LARGURA TOTAL */
  }
}

/* LADO DO VÍDEO (LIMPO) */
.value-video-side {
  perspective: 1200px;
}

.video-clean-wrap {
  position: relative;
  width: 100%;
  height: 600px; /* Altura generosa em Desktop */
  border-radius: 4px;
  overflow: hidden;
  margin-top: 60px;
}

/* Estado Inicial (Oculto) do Wrapper do Vídeo */
.video-clean-wrap.reveal {
  opacity: 0;
  transform: perspective(1200px) rotateY(12deg) scale(0.95) translateX(-30px);
  will-change: transform, opacity;
  transition: opacity 1.0s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.0s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 1024px) {
  .video-clean-wrap { 
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9; /* Mantém a proporção correta em mobile */
    margin-top: 0;
  }
}

@media (max-width: 768px) {
  /* Proteção contra desvios de translação que causem scroll lateral no mobile */
  .video-clean-wrap.reveal {
    transform: perspective(1200px) rotateY(6deg) scale(0.96) translateX(-10px);
  }
}

.value-video-element {
  width: 100%;
  height: 100%;
  object-fit: cover;
  
  /* Escala contrária inicial em GPU pura para zoom suave e instantâneo */
  transform: scale(1.12);
  will-change: transform;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Estado Ativo (Revelado) do Lado Esquerdo */
.video-clean-wrap.reveal.visible {
  opacity: 1;
  transform: perspective(1200px) rotateY(0deg) scale(1) translateX(0);
}

.video-clean-wrap.reveal.visible .value-video-element {
  transform: scale(1);
}


/* LADO DO TEXTO */
.value-tag {
  color: #888; /* Cinza discreto como no exemplo */
  text-transform: none;
  font-size: 16px;
  font-weight: 500;
  display: block;
  margin-bottom: 10px;
}

.value-title {
  font-size: 42px;
  font-weight: 700;
  color: #333;
  margin-bottom: 25px;
  letter-spacing: -1px;
}

.value-description {
  font-size: 16px;
  color: #666;
  line-height: 1.7;
  margin-bottom: 50px;
}

/* Estado Inicial (Oculto) do Bloco de Texto */
.value-text-side.reveal .value-tag {
  opacity: 0;
  transform: translateY(15px);
  will-change: transform, opacity;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.value-text-side.reveal .value-title {
  opacity: 0;
  transform: translateY(20px);
  will-change: transform, opacity;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.value-text-side.reveal .value-description {
  opacity: 0;
  transform: translateY(15px);
  will-change: transform, opacity;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Estado Ativo (Revelado) dos Elementos de Texto com Efeito Cascata Altamente Fluido */
.value-text-side.reveal.visible .value-tag {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.05s;
}

.value-text-side.reveal.visible .value-title {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.12s;
}

.value-text-side.reveal.visible .value-description {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.22s;
}

/* ÍCONES CIRCULARES */
.value-features-modern {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Estado Inicial do item da lista */
.value-features-modern li.reveal {
  display: flex;
  gap: 25px;
  align-items: flex-start;
  
  /* Estado Inicial: Rodado suavemente no eixo X para dar efeito 3D rápido de flip-down */
  opacity: 0;
  transform: perspective(1000px) rotateX(-12deg) translateY(25px) scale(0.98);
  will-change: transform, opacity;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-circle-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border: 1px solid #0c82fb;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  
  /* Estado Inicial: Ícone recolhido e rodado suavemente (de -60deg para uma mola muito mais fluída) */
  transform: scale(0) rotate(-60deg);
  will-change: transform;
  transition: transform 0.65s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Efeito Ativo (Revelação em Cascata Snappy com Delays Staggered Otimizados em CSS) */
.value-features-modern li.reveal.visible {
  opacity: 1;
  transform: perspective(1000px) rotateX(0deg) translateY(0) scale(1);
}

.value-features-modern li.reveal.visible .feature-circle-icon {
  transform: scale(1) rotate(0deg);
}

/* Delays escalonados automáticos por CSS */
.value-features-modern li.reveal:nth-child(1) {
  transition-delay: 0.05s;
}
.value-features-modern li.reveal:nth-child(1) .feature-circle-icon {
  transition-delay: 0.15s;
}

.value-features-modern li.reveal:nth-child(2) {
  transition-delay: 0.15s;
}
.value-features-modern li.reveal:nth-child(2) .feature-circle-icon {
  transition-delay: 0.25s;
}

.value-features-modern li.reveal:nth-child(3) {
  transition-delay: 0.25s;
}
.value-features-modern li.reveal:nth-child(3) .feature-circle-icon {
  transition-delay: 0.35s;
}

.feature-circle-icon img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.value-features-modern li:hover .feature-circle-icon {
  border-width: 2px;
  background: #fcfdfe;
}

.value-features-modern li:hover .feature-circle-icon img {
  transform: scale(1.1);
}

.value-features-modern li:hover h3 {
  color: #0c82fb;
}

.feature-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
}

.feature-content p {
  font-size: 15px;
  color: #777;
  line-height: 1.6;
  margin: 0;
}

/* IDENTITY NARRATIVE SECTION (TEXTO LONGO - PÁGINA SOBRE) */
.identity-narrative {
  padding: 100px 0;
  background: transparent;
  overflow: hidden;
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.identity-narrative.visible {
  opacity: 1;
  transform: translateY(0);
}

.intro-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5%;
}

.intro-content {
  text-align: left;
  flex: 1;
  position: relative;
  padding: 60px 50px;
  background: #ffffff; /* Fundo branco para destacar do cinza da secção */
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  /* Padrão de Grelha Tecnológica Subtil - Mais Visível */
  background-image: 
    linear-gradient(rgba(12, 130, 251, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12, 130, 251, 0.1) 1px, transparent 1px);
  background-size: 30px 30px;
}

/* Cantos de Precisão HUD com Brilho */
.intro-content::before,
.intro-content::after,
.intro-tech-bg::before,
.intro-tech-bg::after {
  content: "";
  position: absolute;
  width: 30px;
  height: 30px;
  border-color: #0c82fb;
  border-style: solid;
  pointer-events: none;
  filter: drop-shadow(0 0 5px rgba(12, 130, 251, 0.5));
}

.intro-content::before {
  top: -2px; left: -2px;
  border-width: 3px 0 0 3px;
}

.intro-content::after {
  top: -2px; right: -2px;
  border-width: 3px 3px 0 0;
}

.intro-tech-bg::before {
  bottom: -2px; left: -2px;
  border-width: 0 0 3px 3px;
}

.intro-tech-bg::after {
  bottom: -2px; right: -2px;
  border-width: 0 3px 3px 0;
}


.intro-tags {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  border-top: 1px solid rgba(12, 130, 251, 0.1);
  padding-top: 25px;
}

.intro-tags span {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #0c82fb;
  background: rgba(12, 130, 251, 0.05);
  padding: 6px 12px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.intro-tags span:hover {
  background: #0c82fb;
  color: white;
  transform: translateY(-2px);
}


.intro-tag {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: #0c82fb;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 10px;
  opacity: 0.8;
  text-align: left;
}

.intro-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: #222;
  margin-bottom: 30px;
  line-height: 1.1;
  text-align: left;
}

.intro-description p {
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.8;
  color: #555;
  margin-bottom: 25px;
  text-align: justify; /* Texto justificado para um ar mais profissional */
}

.intro-description p:last-child {
  margin-bottom: 0;
}

.intro-description strong {
  color: #0c82fb;
  font-weight: 700;
}

@media (max-width: 768px) {
  .intro-container {
    flex-direction: column;
    gap: 20px;
  }
  .intro-line {
    width: 100px;
    flex: none;
  }
}

/* Animação Cinematográfica: Queda e Suspensão */
@keyframes dropAndHang {
  0% { 
    transform: translateY(-400px); 
    opacity: 0; 
  }
  70% { 
    transform: translateY(30px); /* Pequeno "overshoot" para baixo */
    opacity: 1;
  }
  100% { 
    transform: translateY(0); 
    opacity: 1; 
  }
}

.matrix-item {
  /* O container agora é uma caixa 3D transparente */
  perspective: 1000px;
  position: relative;
  z-index: 1;
  opacity: 0; /* Começa invisível para a animação disparar */
  display: block;
}

/* INNER FLIP CONTAINER */
.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
  will-change: transform; /* Otimização extrema para GPUs */
}

/* O FLIP — controlado por JS (mouseenter/mouseleave) para evitar tremor nas esquinas */
.matrix-item.is-flipped .flip-card-inner {
  transform: rotateY(180deg);
}

/* FRENTE E VERSO BASE */
.flip-card-front, .flip-card-back {
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden; /* Safari */
  backface-visibility: hidden;
  border-radius: var(--radius-standard);
  border: 2px solid rgba(12, 130, 251, 0.8); /* Borda muito mais visível (2px e 0.8 opacidade) */
  box-shadow: 0 8px 20px rgba(0,0,0,0.06); /* Sombra mais leve para performance */
  padding: 15px 20px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateZ(0); /* Força aceleração por hardware */
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Transição suave de opacidade contra fantasmas */
}

/* Controle de Opacidade Absoluto para Eliminar sobreposições 3D e desfocagem (Z-fighting) */
.matrix-item:not(.is-flipped) .flip-card-front {
  opacity: 0 !important;
  pointer-events: none;
}

.matrix-item.is-flipped .flip-card-back {
  opacity: 0 !important;
  pointer-events: none;
}

/* FRENTE (Lista, agora escondida por defeito) */
.flip-card-front {
  position: relative; /* Dita a altura natural do cartão pois tem mais conteúdo */
  background: #ffffff;
  z-index: 2;
  transform: rotateY(180deg) translateZ(0.1px); /* translateZ(0.1px) e will-change previnem desfocagem pós-rotação no Chrome */
  will-change: transform;
  overflow: hidden; /* Garante que o pseudo-elemento respeita os cantos arredondados */
}

/* Pseudo-elemento para a imagem de fundo em marca de água super suave (estilo claro) */
.flip-card-front::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--card-bg); /* Carrega a imagem a partir da variável CSS */
  background-size: cover;
  background-position: center;
  filter: grayscale(100%) brightness(1.25) contrast(0.8) opacity(0.24); /* Ajuste perfeito: preto e branco bem visível com excelente legibilidade */
  z-index: 1;
}

/* Garante que o conteúdo de texto fica acima da imagem de fundo */
.flip-card-front > * {
  position: relative;
  z-index: 2;
}

/* VERSO (Foto, agora visível por defeito) */
.flip-card-back {
  position: absolute; /* Sobrepõe-se à frente perfeitamente */
  transform: rotateY(0deg); /* Passa a ser a frente visível */
  background-size: cover;
  background-position: center;
  overflow: hidden;
  border-color: #0c82fb;
  box-shadow: 0 15px 30px rgba(12, 130, 251, 0.15); /* Reduzido de 45px para 30px para performance */
  justify-content: center;
  z-index: 2; /* Fica por cima na renderização inicial */
  transform: rotateY(0deg) translateZ(0);
}

/* PELÍCULA DE ESCURECIMENTO NO VERSO */
.back-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 25, 0.5); /* Apenas um leve escurecimento, sem desfoque */
  z-index: 1;
}
/* CONTEÚDO DA FRENTE (REFORÇO DE CORES) */
.flip-card-front h3 {
  color: #222 !important;
  margin: 15px 0;
  font-size: 20px;
}

.flip-card-front .matrix-num {
  color: #0c82fb !important;
  font-weight: 800;
}

.flip-card-front .matrix-list li {
  color: #000000 !important; /* Cor preta pura para máxima legibilidade */
  font-size: 14px;
  margin-bottom: 8px;
}

/* Elevar conteúdo acima do blur */
.flip-card-back > *:not(.back-overlay) {
  position: relative;
  z-index: 2;
}

/* BOTÃO DETALHES NO VERSO */
.btn-detalhes {
  margin-top: 35px;
  color: white;
  text-decoration: none;
  font-weight: 700; /* Mais bold */
  font-size: 13px; /* Maior legibilidade */
  letter-spacing: 2px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  text-shadow: 0 2px 5px rgba(0,0,0,0.8); /* Destaca o texto sobre qualquer imagem */
}

.pulse-circle {
  position: relative;
  width: 38px; /* Círculo bastante maior */
  height: 38px;
  border: 2px solid rgba(255, 255, 255, 0.7); /* Borda mais grossa e visível */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.15); /* Leve fundo branco para destacar da foto */
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.pulse-circle i {
  font-size: 15px; /* Ícone maior */
  transition: transform 0.3s ease;
}

.pulse-circle::after {
  content: '';
  position: absolute;
  top: -6px; left: -6px; right: -6px; bottom: -6px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 1); /* Anel super brilhante */
  border-top-color: transparent;
  border-bottom-color: transparent;
  animation: spinPulse 3s linear infinite;
}

@keyframes spinPulse {
  0% { transform: rotate(0deg) scale(1); opacity: 0.3; }
  50% { transform: rotate(180deg) scale(1.15); opacity: 1; } /* Removido box-shadow animado (pesado) */
  100% { transform: rotate(360deg) scale(1); opacity: 0.3; }
}

.btn-detalhes:hover {
  color: #0c82fb;
}

.btn-detalhes:hover .pulse-circle {
  border-color: #0c82fb;
  background: white;
  color: #0c82fb;
}

.btn-detalhes:hover .pulse-circle::after {
  border-left-color: #0c82fb;
  border-right-color: #0c82fb;
  animation: spinPulse 1s linear infinite;
}


/* Gatilho da Animação Sequencial */
.matrix-item.reveal.visible:nth-child(1) { animation: dropAndHang 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards 0.1s; }
.matrix-item.reveal.visible:nth-child(2) { animation: dropAndHang 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards 0.3s; }
.matrix-item.reveal.visible:nth-child(3) { animation: dropAndHang 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards 0.5s; }
.matrix-item.reveal.visible:nth-child(4) { animation: dropAndHang 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards 0.7s; }

.matrix-list {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  text-align: left;
}

.matrix-list li {
  font-size: 14.5px; /* Aumentado de 13px para melhor leitura */
  line-height: 1.4;
  color: #555;
  margin-bottom: 6px; /* Espaço entre tópicos encurtado para compensar a letra maior */
  padding-left: 20px;
  position: relative;
  font-weight: 500;
}

.matrix-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 10px;
  height: 2px;
  background: #0c82fb; /* Marcador: traço azul GesPrint */
  border-radius: 2px;
  box-shadow: 0 0 5px rgba(12, 130, 251, 0.3);
}

/* Todos os efeitos de hover controlados via JS (.is-flipped) — sem CSS :hover para evitar tremor */
.matrix-item.is-flipped {
  box-shadow: 0 20px 45px rgba(0,0,0,0.12);
  border-color: #0c82fb;
}

.matrix-item.is-flipped::before {
  height: 50px;
  background: #0c82fb;
}

.matrix-item.is-flipped::after {
  background: #4ade80;
  transform: translateX(-50%) scale(1.3);
}

.matrix-item.is-flipped .matrix-list li::before {
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.5);
}

.matrix-num {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 800;
  color: #0c82fb; /* Número volta a ser azul GesPrint */
  display: block;
  margin-bottom: 5px; /* Reduzido de 10px para ficar mais próximo do título */
  letter-spacing: 3px;
}

.matrix-item:hover .matrix-num {
  color: var(--primary-blue); /* Número agora brilha em Azul */
}

.matrix-icon {
  margin-top: 5px;
  margin-bottom: 10px;
  background: white;
  width: 55px; /* Ligeiramente maior para acomodar ícone maior */
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 5px 15px rgba(12, 130, 251, 0.1);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 2;
  border: 1px solid rgba(12, 130, 251, 0.3);
  transform: translateZ(0); /* Força aceleração por hardware e previne desfoques sub-pixel no Chrome */
  will-change: transform;
}

.matrix-icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  transition: all 0.3s ease;
  transform: translateZ(0);
  image-rendering: -webkit-optimize-contrast; /* Garante que os píxeis da imagem ficam super nítidos sem interpolação difusa */
}

/* Estilo HUD Premium para o verso do cartão */
.flip-card-back .matrix-icon {
  background: rgba(255, 255, 255, 0.15); /* Aumentada a opacidade para excelente contraste sem desfoque */
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

/* Estilo para a frente do cartão (consistência transparente sem desfoque) */
.flip-card-front .matrix-icon {
  background: rgba(12, 130, 251, 0.05); /* Fundo azul translúcido muito suave */
  border: 1.5px solid rgba(12, 130, 251, 0.35); /* Borda azul GesPrint bem definida */
  box-shadow: 0 5px 15px rgba(12, 130, 251, 0.08);
}

.flip-card-back .matrix-icon img {
  filter: brightness(0) invert(1); /* Torna o ícone branco no verso */
}

.matrix-item:hover .matrix-icon {
  transform: translateY(-20px) scale(1.1);
  box-shadow: 0 10px 30px rgba(12, 130, 251, 0.2);
  border-color: var(--primary-blue);
}

/* Ajuste do Fio para brilhar em Azul no hover */
.matrix-item:hover::before {
  height: 45px;
  background: var(--primary-blue);
  box-shadow: 0 0 10px rgba(12, 130, 251, 0.4);
}

.matrix-item h3 {
  font-size: 16.5px; /* Aumentado de 15px */
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px; /* Reduzido de 15px */
  color: var(--text-black);
}

.matrix-item p {
  font-size: 14px;
  line-height: 1.6;
  color: #666;
  margin: 0;
}

@media (max-width: 1024px) {
  .matrix-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 0;
  }
  .matrix-item:nth-child(2n) {
    border-right: none;
  }
}

@media (max-width: 600px) {
  .matrix-grid {
    grid-template-columns: 1fr;
  }
  .matrix-item {
    border-right: none;
    border-bottom: 1px solid #eee;
    padding: 0 0 30px 0;
    margin-bottom: 30px;
  }
  /* Remove a sombra que cria a ilusão de 'gaveta aberta' e mantém a linha separadora cinzenta */
  .matrix-item.is-flipped {
    box-shadow: none;
    border-bottom-color: #eee;
  }
  .matrix-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
  }
}

.trust-premium {
  position: relative;
  margin-top: 120px; /* Reduzido ligeiramente para aproximar o título */
  margin-bottom: 60px;
  padding: 0; 
}

.trust-container {
  max-width: none;
  width: 100%;
  margin: 0;
  padding-left: 5%;
  padding-right: 0 !important; /* Forçar encosto total à direita */
  position: relative;
}

/* TRUST PREMIUM - Ajuste do banner original como flutuante */
.trust-premium .trust-banner {
  position: absolute;
  top: 0;
  right: 0 !important;
  width: 92%;
  max-width: 100%;
  z-index: 10;
  padding: 16px clamp(20px, 5vw, 80px); /* Ajustado para 16px para maior elegância */  border-radius: var(--radius-standard) 0 0 var(--radius-standard);
  opacity: 0; /* Começa invisível */
  transform: translateY(-50%); /* Apenas translateY, sem translateX para evitar barra de scroll */
  transition: none; /* Deixar a animação controlar o movimento inicial */
}

.trust-premium .trust-banner .stat-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  padding: 5px 20px;
}

.trust-premium .trust-banner .stat-number {
  font-size: clamp(38px, 8vw, 48px);
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 6px;
  grid-column: auto !important;
  grid-row: auto !important;
  align-self: center !important;
}

.trust-premium .trust-banner .stat-label {
  font-size: clamp(12px, 2.5vw, 14px);
  color: #0c82fb; /* Azul GesPrint tal como a Tecnimobile */
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  grid-column: auto !important;
  grid-row: auto !important;
  align-self: center !important;
}

/* Secção principal (Azul) - Com animação de Fade */
.trust-main-content {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-standard) 0 0 var(--radius-standard);
  padding: clamp(30px, 4vw, 50px) 5% 15px;
  position: relative;
  overflow: hidden;
  margin-top: 20px;
  margin-right: 0;
  opacity: 0; /* Começa invisível */
  transform: translateY(20px);
  transition: all 0.8s ease;
}

/* Quando a secção entra no ecrã (Trigger) */
.trust-premium.visible .trust-main-content {
  opacity: 1;
  transform: translateY(0);
}

.trust-premium.visible .trust-banner {
  animation: slideTrustBanner 1.2s cubic-bezier(0.165, 0.84, 0.44, 1) 0.4s forwards;
}

@keyframes slideTrustBanner {
  from { 
    opacity: 0; 
    transform: translateX(100%) translateY(-50%); 
  }
  to { 
    opacity: 1; 
    transform: translateX(0) translateY(-50%); 
  }
}

.trust-content-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
  gap: 50px;
  position: relative;
  z-index: 2;
}

/* Linhas decorativas */
.trust-line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
}
.trust-line.top { top: 0; } /* Exatamente na divisória superior */
.trust-line.bottom { bottom: 25%; }

.trust-content-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
  gap: 50px;
  position: relative;
  z-index: 2;
}

/* Contentor Circular */
.trust-circle-wrap {
  position: relative;
  width: clamp(200px, 28vw, 320px);
  height: clamp(200px, 28vw, 320px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
  margin: 0 auto;
  pointer-events: none; /* Ignora o rato nos espaços vazios e anéis */
}

.trust-circle-wrap:hover {
  transform: translateY(-10px);
}

.circle-ring {
  position: absolute;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.15);
  transition: all 0.6s ease;
  pointer-events: none; /* Anéis não capturam o rato */
}

.trust-circle-wrap:hover .ring-1 {
  transform: scale(1.05);
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

.trust-circle-wrap:hover .ring-2 {
  transform: scale(1.08);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}
.ring-1 { 
  width: 100%; 
  height: 100%; 
  animation: ring-smooth 7s infinite ease-in-out;
  will-change: transform;
}
.ring-2 { 
  width: 115%; 
  height: 115%; 
  animation: ring-smooth 11s infinite ease-in-out reverse;
  will-change: transform;
}

@keyframes ring-smooth {
  0% { transform: translate(0, 0) rotate(0deg); opacity: 0.4; }
  50% { transform: translate(12px, 8px) rotate(3deg); opacity: 0.8; }
  100% { transform: translate(0, 0) rotate(0deg); opacity: 0.4; }
}

.circle-img-container {
  width: 90%;
  height: 90%;
  border-radius: 50%;
  border: clamp(5px, 0.8vw, 10px) solid white;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  background: white;
  transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: 5;
  pointer-events: auto; /* APENAS a imagem ativa o hover */
  cursor: pointer;
}

.trust-circle-wrap:hover .circle-img-container {
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  transform: scale(1.05);
}

.circle-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.trust-circle-wrap:hover .circle-img-container img {
  transform: scale(1.15);
}

/* Texto de Suporte */
.trust-text-col {
  color: white;
  text-align: left; /* Voltar ao alinhamento à esquerda */
}

.trust-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 25px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  animation: trust-glow 4s infinite alternate ease-in-out;
  backface-visibility: hidden; /* Estabiliza o render das letras */
  -webkit-backface-visibility: hidden;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); /* Transição para o hover */
}

/* Efeito ao passar o rato na zona azul - Verde GesPrint */
.trust-main-content:hover .trust-tag {
  background: rgba(74, 222, 128, 0.1);
  border-color: #4ade80; /* Verde vibrante do logótipo */
  color: #4ade80; /* TEXTO TAMBÉM FICA VERDE */
  box-shadow: 0 0 25px rgba(74, 222, 128, 0.4);
  transform: none;
}

.trust-main-content:hover .trust-tag i {
  color: #4ade80;
  animation: icon-pulse 1s infinite alternate ease-in-out;
  filter: drop-shadow(0 0 8px rgba(74, 222, 128, 0.8));
}

@keyframes icon-pulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.3); opacity: 0.7; }
}

@media (max-width: 768px) {
  .trust-tag { animation: none; } /* Desativar animação em mobile para poupar bateria */
}

.trust-tag i {
  font-size: 14px;
  color: #fff;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.8));
}

@keyframes trust-glow {
  0% { 
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
  }
  100% { 
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.6);
  }
}

.trust-text-col h3 {
  font-size: clamp(22px, 3.2vw, 38px); /* Letra encolhe proporcionalmente */
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
}

.trust-text-col p {
  font-size: clamp(14px, 1.2vw, 17px);
  line-height: 1.6;
  opacity: 0.9;
}

/* Responsividade Mobile e Tablet */
@media (max-width: 1100px) {
  .identity-matrix {
    padding-bottom: 50px;
  }

  .matrix-item::before {
    height: 40px; /* Fios mais curtos no mobile para poupar espaço */
  }

  .matrix-item::after {
    top: -45px; /* Ajuste do gancho para o novo fio */
  }

  .trust-premium {
    margin-top: 180px !important; /* Aumentado para afastar o banner do título no tablet e mobile */
    padding: 0 5%;
  }

  .trust-container {
    padding-left: 0;
    padding-right: 0 !important;
  }

  .trust-premium .trust-banner {
    position: relative;
    top: 0;
    transform: none;
    width: 100%;
    max-width: none;
    margin-bottom: -120px; /* Puxa a caixa azul muito mais para cima */
    z-index: 11;
    border-radius: 20px;
    padding: 20px;
    min-width: 0;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
  }

  .trust-premium .trust-banner .stat-card {
    padding: 10px 0;
  }

  .trust-main-content {
    border-radius: 20px;
    padding: 20px 20px 40px; /* Reduzido o padding de topo para 20px */
    margin-top: 0 !important; /* Remove qualquer margem de topo */
  }

  .trust-content-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }

  .trust-text-col {
    text-align: center;
    order: 1; /* Texto primeiro */
  }

  .trust-circle-col {
    order: 2; /* Imagem depois */
    display: flex;
    justify-content: center;
  }

  .trust-circle-wrap {
    width: 260px;
    height: 260px;
  }
}

@media (max-width: 768px) {
  .trust-premium {
    margin-top: 170px !important; /* Afasta o banner de estatísticas do título no mobile */
  }
  .trust-premium .trust-banner {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Duas colunas de números no telemóvel */
    gap: 15px;
  }
  
  .trust-premium .trust-banner .stat-card {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  
  .trust-premium .trust-banner .stat-card:last-child {
    border-bottom: none;
  }

}

/* ==========================================================================
   ESTILOS DE CONTACTOS PREMIUM
   ========================================================================== */

/* =========================================================
   PÁGINA DE CONTACTOS (ESTILO PREMIUM)
========================================================= */

/* GRELHA DE CARTÕES DE CONTACTO */
.contact-premium-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.contact-premium-item {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.2rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-premium-item:hover {
  background: rgba(12, 130, 251, 0.08);
  border-color: rgba(12, 130, 251, 0.3);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.contact-premium-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(12, 130, 251, 0.1);
  border: 1px solid rgba(12, 130, 251, 0.2);
  border-radius: 50%;
  color: var(--primary-blue);
  font-size: 20px;
  flex-shrink: 0;
  transition: all 0.4s ease;
}

.contact-premium-item:hover .contact-premium-icon {
  background: var(--primary-blue);
  color: #fff;
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 0 20px rgba(12, 130, 251, 0.4);
}

.contact-premium-info h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 4px;
  color: var(--primary-blue);
  font-weight: 700;
  opacity: 0.8;
}

.contact-premium-info p,
.contact-premium-info a {
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  line-height: 1.4;
  display: block;
}



/* RESPONSIVIDADE CONTACTOS */
@media (max-width: 1100px) {
  .contact-premium-grid {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 600px) {
  .contact-premium-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .overlay {
    background: rgba(0, 0, 0, 0.0);
  }

  .hero-bg {
    filter: brightness(1.3);
  }

  .hero {
    min-height: 100vh;
    height: 100vh;
  }
}

