/* ===================
   Fonte e Layout Base
   =================== */
body {
  font-family: 'Inter', sans-serif;
  /*background: #f3f3f3;*/
  background: #f5f7fa;
  color: #333;
  margin: 0;
  line-height: 1.6;
  padding-top: 70px; /* ou a altura exata da tua navbar */
  }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 10px;
}

/* ===================
   Navbar
   =================== */
.navBarContainer {
  background: #fff;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.topnav a {
  color: #333 !important;
  font-weight: 600;
  padding: 14px 20px;
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

.topnav a:hover {
  color: #0073e6 !important; /* Azul primário */
}

/* ===================
   Hero Principal
   =================== */
.hero {
  position: relative;
  text-align: center;
  color: #fff;
  width: 100%;
  margin-top: 0;
  padding: 0;
}

.hero-bg {
  position: relative;
  height: 500px;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  background: url('/images/software_support.png') center/cover no-repeat;
  overflow: hidden;
}

/* Gradiente com transparência por cima da imagem */
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(74, 144, 226, 0.55), rgba(28, 61, 122, 0.55));
  z-index: 0;
}

/* Centralização total e margens laterais */
.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;     /* centraliza horizontalmente o grupo */
  align-items: center;         /* centraliza verticalmente dentro da altura */
  gap: 40px;                   /* distância entre imagem e texto */
  width: 100%;
  max-width: 1100px;           /* limita largura total */
  height: 100%;                /* ocupa a altura da faixa */
  margin: 0 auto;              /* centraliza no ecrã */
  padding: 0 60px;             /* margens laterais consistentes com o site */
  box-sizing: border-box;
}

/* Ajuste da imagem */
.hero-left img {
  width: 85%;                  /* imagem mais proeminente */
  max-width: 480px;            /* limite de tamanho */
  height: auto;
  display: block;
  margin: 0 auto; 				/* centraliza horizontalmente */
}

/* Área de texto */
.hero-right {
  max-width: 500px;
  text-align: left;
}

.hero-right h1 {
  font-size: 3.1em;
  margin-bottom: 15px;
  line-height: 1.2;
}

.hero-right p.sub {
  font-size: 1.6em;
  margin-bottom: 25px;
}

.hero-right a.btn-primary {
  margin-top: 15px;
}

/* Efeito de contraste */
.hero-content h1,
.hero-content p,
.hero-content a {
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

/* ===================
   Responsividade
   =================== */
@media (max-width: 1024px) {
  .hero-bg {
    height: 450px;
  }

  .hero-inner {
    max-width: 900px;
    gap: 30px;
    padding: 0 40px;
  }

  .hero-right h1 {
    font-size: 2.4em;
  }
}

@media (max-width: 900px) {
  .hero-bg {
    height: auto;
    padding: 80px 0;
  }

  .hero-inner {
    flex-direction: column;
    align-items: center;   /* 🔹 garante que tudo fica centrado no eixo horizontal */
    text-align: center;
    gap: 30px;
    height: auto;
    padding: 0 30px;
  }

  .hero-left {
    display: flex;         /* 🔹 força centralização da imagem */
    justify-content: center;
    width: 100%;
  }

  .hero-left img {
    width: 65%;
    max-width: 320px;
    margin: 0 auto;        /* 🔹 reforça centralização */
  }

  .hero-right {
    max-width: 90%;
    text-align: center;
  }

  .hero-right h1 {
    font-size: 2.2em;
  }

  .hero-right p.sub {
    font-size: 1.1em;
  }
}


@media (max-width: 600px) {
  .hero-left img {
    width: 75%;
    max-width: 280px;
  }

  .hero-right h1 {
    font-size: 1.9em;
  }

  .hero-right p.sub {
    font-size: 1em;
  }
}


/* Botão primário */
.btn-primary {
  display: inline-block;
  margin-top: 20px;
  /*background: #0073e6;*/
  background: #096aca;
  color: #fff;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease-in-out;
}
.btn-primary:hover {
  background: #005bb5;
}

.hero-content h1,
.hero-content p,
.hero-content a {
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4); /* contraste extra */
}

/* Botão SECUNDÁRIO */
.btn-sec {
  display: inline-block;
  margin-top: 20px;
  /*background: #0073e6;*/
  background: #096aca;
  color: #fff;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease-in-out;
  }
.btn-sec:hover {
  background: #005bb5;
}
.container-botao {
  display: flex;
  justify-content: center;
}
/* ===================
   HERO SECUNDÁRIO
   =================== */

.hero-alt {
  position: relative;
  width: 100%;
  margin-top: 60px;
  overflow: hidden;
}

/* Fundo cinza com imagem e overlay */
.hero-alt .hero-bg2 {
  position: relative;
  background: #e6e6e6 no-repeat center/cover;
  padding: 60px 20px;
  overflow: hidden;
}

.hero-bg2::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(22, 37, 79, 0.55); /* overlay escuro */
  z-index: 0;
  border-radius: 12px;
}

/* Layout principal */
.hero-layout {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  color: #fff;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeSlideUp 1s ease-out forwards;
}

/* Imagem à esquerda — sem moldura, sem sombra e com tamanho ajustável */
.hero-image-left {
  flex: 1.2; /* dá mais espaço à imagem em relação ao texto */
  display: flex;
  justify-content: flex-start;
  align-items: center;
  position: relative;
}

.hero-image-left img {
  width: 115%;           /* cresce ligeiramente além do container */
  max-width: 700px;      /* aumenta o limite máximo */
  height: auto;
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateX(-40px);
  animation: slideInLeft 1.2s ease-out forwards;
}

/* Texto à direita */
.hero-content.right {
  flex: 1;
  text-align: right;
  z-index: 2;
  opacity: 0;
  transform: translateX(40px);
  animation: slideInRight 1.2s ease-out 0.3s forwards;
}

.hero-content.right p {
  font-size: 1.25em;
  line-height: 1.6;
  margin-bottom: 25px;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

/* Botão secundário */
.btn-secondary {
  display: inline-block;
  margin-top: 10px;
  border: 2px solid #fff;
  color: #fff;
  padding: 12px 26px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease, color 0.3s ease;
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

/* ===================
   Animações
   =================== */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ===================
   Responsividade
   =================== */
@media (max-width: 1024px) {
  .hero-layout {
    gap: 30px;
    padding: 0 40px;
  }

  .hero-image-left img {
    width: 80%;
    max-width: 400px;
  }

  .hero-content.right p {
    font-size: 1.1em;
  }
}

@media (max-width: 900px) {
  .hero-layout {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .hero-image-left {
    justify-content: center;
  }

  .hero-image-left img {
    max-width: 300px;
  }

  .hero-content.right {
    text-align: center;
  }

  .hero-content.right p {
    font-size: 1.1em;
  }
}

@media (max-width: 600px) {
  .hero-image-left img {
    max-width: 250px;
  }

  .hero-content.right p {
    font-size: 1em;
  }

  .btn-secondary {
    padding: 10px 22px;
  }
}


/* ===================
   Banner 30 anos
   =================== */
.banner img {
  width: 100%;
  height: auto;
  display: block;
  margin: 40px 0;
}

/* ===================
   Destaques
   =================== */
.highlights {
  background: #fffffff;
  padding: 60px 20px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.card img {
  max-height: 120px;
  margin-bottom: 15px;
}

.btn-link {
  display: inline-block;
  margin-top: 10px;
  color: #0073e6;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}
.btn-link:hover {
  text-decoration: underline;
  color: #005bb5;
}

/* Seção folhetos */
.folhetos {
  padding: 20px 20px 20px; /* topo 20px, laterais 20px, baixo 20px */
  background: transparent;
}

.folhetos h2 {
  text-align: center;
  font-size: 2em;
  margin-bottom: 40px;
  color: #1c3d7a;
}

/* Card de folheto com overlay */

.card.folheto {
  position: relative;
  overflow: hidden;
  width: 256px;
  height: 359px;
  border-radius: 12px;
  margin: 0 auto;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  padding: 1; /* 0 remove qualquer padding residual */
  background: #fff; /* garante fundo consistente */
}

.card.folheto:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.card.folheto img {
   width: 100%;
  height: 100%;
  max-height: none;   /* anula limite global */
  margin-bottom: 0;   /* anula margem global */
  display: block;
  border-radius: 12px;
}

.card.folheto:hover img {
  transform: scale(1.05);
}

.card.folheto .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;        /* ocupa a altura total */
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  border-radius: 12px;
  text-align: center; /* centraliza o texto */
}

.card.folheto:hover .overlay {
  opacity: 1;
}

.btn-folheto {
  background: #0073e6;
  color: #fff;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s;
}

.btn-folheto:hover {
  background: #005bb5;
}

/* Grid folhetos responsiva */
.folhetos .grid-folhetos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(256px, 1fr));
  gap: 30px;
  justify-items: center; /* centra os cartões na célula */
}

.folhetos h2 {
  text-align: center;
  font-size: 2em;
  margin-bottom: 40px;
  color: #096aca;
}


/* Título no overlay */

/* conteúdo interno em coluna */
.conteudo-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px; /* espaço entre título e botão */
}

.titulo-folheto {
  color: #fff;
  font-size: 1.2em;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

/* Botão folheto com nova cor */
.btn-folheto {
  background: #e63946; /* cor nova */
  color: #fff;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s;
}

.btn-folheto:hover {
  background: #b32d38;    /* tom mais escuro no hover */
}

.panzoom-wrapper {
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
}

.modal img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
  cursor: grab;
}

.modal .fechar {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 30px;
  color: #fff;
  cursor: pointer;
}

.modal img.zoomed {
  transform: scale(2); /* aumenta 2x */
  cursor: zoom-out;
}

.modal img:active {
  cursor: grabbing;
}

/* Modal */
#modalFolheto {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
}

#modalFolheto img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  cursor: grab;
  transition: transform 0.15s ease-out;
}

#modalFolheto img:active {
  cursor: grabbing;
}

#modalFolheto .fechar {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 36px;
  font-weight: bold;
  cursor: pointer;
  z-index: 2100;
}




/* Altera o fundo apenas da área dos títulos das páginas secundárias*/ 
.w3-tit-pag {
 /* background-color: #049be2; /* escolher a cor de preenchimento*/
  background-color: #096aca;
  color: #ffffff; /* opcional: mudar a cor do texto */
  padding: 15px 20px; /* dá um respiro visual */
  border-radius: 6px; /* opcional: cantos arredondados */
}

/* Seção Last News */
.lastnews {
  padding: 0px 20px 5px; /* topo 20px, laterais 20px, baixo 20px */
  background: transparent;
}

.lastnews h2 {
  text-align: center;
  font-size: 2em;
  margin-top: 0px;   /* 🔹 reduz espaço acima do título */
  margin-bottom: 10px;
  color: #096aca;
}
.separator {
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, #005bb5, #00aaff, #005bb5);
  border-radius: 2px;
  margin: 15px auto;
  max-width: 500px; /* opcional, para deixar uma linha curta e elegante */
}

//* --- Slider de fundo na HERO --- */
.hero-bg {
  background: none !important; /* remove imagem fixa anterior */
  position: relative;
}

/* Camada do slider por trás do overlay e do conteúdo */
.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;      /* cobre toda a área */
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slider img.active {
  opacity: 1;
}

/* O overlay (gradiente) fica ACIMA das imagens, mas ABAIXO do conteúdo */
.hero-bg::before {
  z-index: 1;
}

/* Conteúdo acima de tudo */
.hero-inner {
  position: relative;
  z-index: 2;
}

/* Controles nas extremidades, acima do overlay */
.hero-prev,
.hero-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(9, 106, 202, 0.75);
  color: #fff;
  border: none;
  padding: 10px 14px;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.hero-prev:hover,
.hero-next:hover {
  background: rgba(9, 106, 202, 1);
}

.hero-prev { left: 15px; }
.hero-next { right: 15px; }

/* Bolinhas centralizadas no fundo */
.hero-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 10px;
}

.hero-dots .dot {
  width: 12px;
  height: 12px;
  background: rgba(255,255,255,0.6);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s ease;
}

.hero-dots .dot.active { background: #fff; }

/* Pequenos ajustes em mobile */
@media (max-width: 900px) {
  .hero-prev { left: 8px; }
  .hero-next { right: 8px; }
  .hero-dots { bottom: 12px; }
}


/* ===== Modal com zoom e setas ===== */
.controles-zoom {
  position: absolute;
  bottom: 25px;
  right: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2100;
  background: rgba(0,0,0,0.4); /* leve fundo translúcido */
  padding: 12px;
  border-radius: 12px;
  backdrop-filter: blur(4px);
}

/* setas ficam acima dos botões de zoom */
.linha-setas {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  margin-bottom: 10px;
}

.linha-setas-meio {
  display: flex;
  gap: 10px;
}

.linha-setas.hidden {
  display: none !important;
}

/* botões de zoom lado a lado */
.linha-zoom {
  display: flex;
  gap: 10px;
}

.controles-zoom button {
  background: rgba(0, 115, 230, 0.9);
  color: white;
  border: none;
  border-radius: 8px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.controles-zoom button:hover {
  background: rgba(0, 91, 181, 0.95);
  transform: scale(1.05);
}

/* Ícones FontAwesome */
.controles-zoom button i {
  font-size: 20px;
  pointer-events: none;
}

/* Transição suave da imagem */
#imagemFolheto {
  transition: transform 0.1s ease-out;
  cursor: default;
}

/* Seta para deslocar para o inicio */
#id_gototop {
  position: fixed;
  bottom: 25px;
  right: 25px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1500;
  cursor: pointer;
}

#id_gototop.show {
  opacity: 1;
}
