:root {
  --primary: #1b75bc;
  --text-dark: #1a2b4b;
  --text-gray: #5c6b7a;
  --bg-light: #f7f8fa;
}

body {
  font-family: "Segoe UI", sans-serif;
  margin: 0;
  color: var(--text-dark);
  background-color: var(--bg-light);
  /* Scroll suave para todo o corpo */
  scroll-behavior: smooth;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Utilitário para Botões */
.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: white;
  text-decoration: none;
  border: none;
  padding: 10px 25px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  margin-top: 20px;
}

.btn-primary:hover {
  background: #0f5fa0;
  transform: translateY(-2px);
}

/* Header */
.header {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  background: #fff;
  box-shadow: 0 2px 12px rgba(27, 117, 188, 0.08);
  width: 100%;
  min-width: 25%; /* 100% / 4 slides */
  height: auto !important;
  overflow: visible !important;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: auto !important;
  overflow: visible !important;
  padding: 15px 0 15px 0;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

.logo img {
  height: 35px;
}

.logo-text {
  font-size: 20px;
  color: var(--primary);
  font-weight: 700;
}

.logo-text small {
  color: var(--text-gray);
  font-weight: 400;
}

.nav {
  display: flex;
  align-items: center;
  gap: 25px;
  justify-content: center;
}

.nav a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--primary);
}

.btn-login {
  background: var(--primary);
  color: white;
  border: none;
  padding: 8px 18px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-login:hover {
  background: #0f5fa0;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-dark);
}

.home-link {
  text-decoration: none;
}
/* Hero */
.hero {
  background: white;
  padding: 80px 0;
}

/* Hero Slider Styles */
.hero-slider-container {
  position: relative;
  overflow: hidden; /* Ensure slides don't leak out */
  /* Remove any fixed height if added, let content define height */
  min-height: 400px; /* Garante uma altura mínima para o slider */
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  z-index: 1; /* Default state */
}

.hero-slide.active {
  position: relative; /* Take up space and maintain height */
  opacity: 1;
  z-index: 2; /* Bring active slide to front */
}

.hero-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.hero-text {
  flex: 1 1 400px;
}

.hero-text h1 {
  font-size: 36px;
  color: var(--text-dark);
  font-weight: 700;
  margin: 0 0 15px;
}

.subtitle {
  color: var(--primary);
  font-size: 18px;
  margin-bottom: 15px;
}

.desc {
  color: var(--text-gray);
  line-height: 1.6;
}

.hero-image {
  flex: 1 1 400px;
  text-align: right;
}

.hero-image img {
  max-width: 100%;
  height: auto;
}

/* Dots for Hero Slider */
.hero-dots {
  text-align: center;
  margin-top: 40px;
}

.hero-dots .dot {
  display: inline-block;
  height: 10px;
  width: 10px;
  margin: 0 5px;
  background-color: var(--text-gray);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s;
}

.hero-dots .dot.active {
  background-color: var(--primary);
}


/* Valores (New FACILIDADE section) */
.valores {
  background: #edf1f5;
  padding: 60px 0;
  text-align: center;
}

.valores .container-tabs {
    /* New wrapper for the whole new content */
    max-width: 1400px; /* Aumentado para comportar 3 cards */
    margin: 0 auto;
}

.valores .title-container {
    /* Existing style re-used */
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
}

.valores .title-container img {
    /* Existing style re-used, maybe adjust size for visual consistency */
    width: 100px;
    height: auto;
    margin-bottom: 10px;
}

.valores .h1-section-title {
    /* Existing style re-used */
    font-size: 26px;
    color: var(--text-dark);
    margin: 0;
}

/* Tabs */
.tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
  overflow-x: auto;
  padding-bottom: 10px;
  padding: 0 10px;
  /* Scrollbar for small screens */
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

.tabs::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.tab {
  background: white;
  color: var(--text-gray);
  border: 1px solid #ddd;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}

.tab:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.tab.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 8px rgba(27, 117, 188, 0.3);
}

/* Slider 2 - Cards Display */
.slider2-container {
    overflow: hidden;
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.slides2 {
    display: block;
    width: 100%;
}

.slide2 {
  display: none;
  width: 100%;
}

.slide2.active {
  display: grid;
  grid-template-columns: repeat(3, 30%); /* 3 colunas de 30% */
  justify-content: center;
  gap: 5%; /* 5% entre as colunas para totalizar 100% */
}

/* Adjust card style from existing (they used .card inside .valores) */
.slide2 .card {
    width: 90%;
    cursor: pointer;
    box-shadow: 0 3px 6px rgba(0,0,0,0.05);
    background: white;
    border-radius: 14px;
    padding: 25px;
}

.slide2 .card:hover {
    transform: translateY(-5px); /* re-apply existing hover effect */
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

/* New Icon Circle Style (used instead of existing .card .icon) */
.icon-circle {
    font-size: 24px;
    color: white;
    background: var(--primary);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Indicators (dots at the bottom) */
.valores .indicators {
    margin-top: 30px;
}

.valores .indicators .dot {
    /* Reusing hero-dots .dot style */
    display: inline-block;
    height: 10px;
    width: 10px;
    margin: 0 5px;
    background-color: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.valores .indicators .dot.active {
    background-color: var(--primary);
}

/* Segmentos Atendidos (Novo) */
.segmentos {
  padding: 60px 0;
  background: white;
  text-align: center;
  overflow: hidden; /* Importante para o carrossel infinito */
}

.segmentos .title-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 50px;
}

.segmentos .title-container img {
  width: 100px;
  height: auto;
  margin-bottom: 10px;
}

.segmentos .h1-section-title {
  font-size: 26px;
  color: var(--text-dark);
  margin: 0;
}

.carousel-container {
  overflow: hidden;
  width: 100%;
  margin: 15px 0;
  /* Cria uma máscara suave nas laterais */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
}

.carousel-track {
  display: flex;
  width: max-content; /* Permite que o conteúdo seja maior que o container */
  /* Remove a transição CSS, pois a animação será feita via JS (RequestAnimationFrame) para o loop infinito */
}

.carousel-track .item {
  display: inline-block;
  background: var(--bg-light);
  color: var(--primary);
  border: 1px solid var(--primary);
  padding: 10px 24px;
  margin: 0 12px;
  border-radius: 50px;
  white-space: nowrap;
  font-weight: 600;
  font-size: 18px;
  transition: background 0.3s, color 0.3s, transform 0.2s;
  cursor: pointer;
  text-decoration: none;
}

  /* Aumenta o item ao passar o mouse */
.carousel-track .item:hover {
  background: var(--primary);
  color: white;
  transform: scale(1.13);
  z-index: 2;
}


/* Suporte (Novo - Antiga Tecnologias) */
.suporte {
  padding: 60px 0;
  background: #edf1f5;
  text-align: center;
}

.suporte h2 {
  font-size: 26px;
  margin-bottom: 10px;
}

.suporte .subtitle {
  margin-bottom: 40px;
}

.suporte-blocks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.suporte-item {
  flex: 1 1 300px;
  max-width: 350px;
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.05);
  transition: transform 0.3s;
}

.suporte-item:hover {
  transform: translateY(-5px);
}

.suporte-item .icon {
  font-size: 40px;
  margin-bottom: 15px;
}

.suporte-item h3 {
  color: var(--primary);
  margin-top: 0;
}

.suporte-item p {
  color: var(--text-gray);
  line-height: 1.5;
}


/* Portfólio/Clientes */
.clientes {
  padding: 60px 0;
  background: white;
  text-align: center;
}

.clientes h2 {
  font-size: 26px;
  margin-bottom: 10px;
}

/* Estilo dos Depoimentos */
.depoimentos-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 60px;
}

.depoimento-card {
  flex: 1 1 300px;
  max-width: 350px;
  background: white; 
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  border-top: 4px solid var(--primary);
  transition: transform 0.3s;
}

.depoimento-card p {
  font-style: italic;
  color: var(--text-dark);
  margin-bottom: 15px;
  font-size: 16px;
  line-height: 1.5;
}

.depoimento-card .autor {
  font-size: 14px;
  color: var(--primary);
  font-weight: 600;
}

.logos-clientes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin-top: 30px;
}

.logos-clientes img {
  height: 40px; /* Ajustar conforme as imagens reais */
  opacity: 0.6;
  transition: opacity 0.3s;
}

.logos-clientes img:hover {
  opacity: 1;
}

/* Perguntas Frequentes (FAQ) (Novo - Antiga Sobre) */
.faq {
  /*background: #edf1f5;*/
  background: white;
  padding: 60px 0;
  text-align: center;
}

.faq h2 {
  font-size: 26px;
  color: var(--text-dark);
  margin-bottom: 40px;
}

.faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 10px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 15px 20px;
  text-align: left;
  background: none;
  border: none;
  /* border-bottom: 1px solid #eee; */
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: '+';
  font-size: 24px;
  line-height: 1;
  transition: transform 0.3s;
}

.faq-question.active {
  background: var(--primary);
  color: white;
}

.faq-question.active::after {
  content: '−';
  transform: rotate(0deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  /* Transição para suavizar a abertura/fechamento */
  transition: max-height 0.4s ease-in-out; 
  padding: 0 20px;
}

.faq-answer p {
  padding: 15px 0;
  margin: 0;
  color: var(--text-gray);
  font-size: 16px;
  border-top: 1px solid #eee;
  text-align: left;
}

.social-media {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-media a img {
    width: 32px;
    height: 32px;
    transition: transform 0.2s;
}

.social-media a:hover img {
    transform: scale(1.1);
}


.propaganda {
    background: var(--primary);
    color: white;
    padding: 60px 0;
    text-align: center;
}

/* Footer */
.footer {
  background: white;
  border-top: 1px solid #e2e8f0;
  padding: 25px 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  color: var(--text-gray);
}

.footer-left, .footer-center, .footer-right {
  flex: 1 1 200px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-left img {
  height: 30px;
}
.footer p {
  margin: 3px 0;
}

/* 5. Novo Layout de Contato no Rodapé */
.footer-contact-line {
    padding: 15px 0;
    text-align: center;
    margin-bottom: 10px; 
    color: var(--text-dark); 
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    font-size: 16px;
}

.footer-contact-line p {
    margin: 5px 0;
}

.footer-contact-line a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
}

/* --- Animações (Animate on Scroll - AOS) --- */

/* Base para elementos a serem animados */
[class*="fade-"], [class*="slide-"] {
  opacity: 0;
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  transition-delay: var(--delay, 0s);
}

/* Definindo os atrasos */
.delay-1 { --delay: 0.15s; }

/* Estado Ativo (Animado) */
.animated {
  opacity: 1;
  transform: none;
}

/* --- Blog Grid Cards --- */
.blog-section-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 24px; /* vertical e horizontal */
  margin: 0;
  padding: 32px 0 0 0;
  box-sizing: border-box;
}
.blog-card {
  background: #f7f8fa;
  border: 1px solid #e0e4ea;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(27,117,188,0.08);
  padding: 24px 18px;
  width: 100%;
  min-height: 480px;
  height: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: box-shadow 0.2s;
  margin: 0;
}
.blog-card:hover {
  box-shadow: 0 6px 24px rgba(27,117,188,0.18);
  transform: translateY(-4px);
  transition: all 0.3s ease;
}
.blog-img {
  width: 100%;
  height: 120px;
  object-fit: contain;
  margin-bottom: 8px;
}
.blog-title {
  text-decoration: none;
  color: #1a2b4b;
  text-align: center;
  width: 100%;
  display: block;
}
.blog-title h2 {
  font-size: 1.2rem;
  margin: 0 0 8px 0;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
  min-height: calc(1.2rem * 1.4 * 2);
}
.blog-desc {
  color: #5c6b7a;
  font-size: 1rem;
  margin: 0 0 12px 0;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.5;
  min-height: calc(1rem * 1.5 * 6);
  flex-grow: 1;
}
.blog-card .btn {
  margin-top: auto;
  margin-bottom: 0;
  display: inline-block;
}
@media (max-width: 1200px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px 18px;
  }
}
@media (max-width: 900px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 12px;
  }
}
@media (max-width: 600px) {
  .blog-section-container {
    padding: 0 4px;
  }
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 20px 0;
    padding: 24px 0 0 0;
  }
  .blog-card {
    min-height: 220px;
    height: auto;
  }
}
/* --- Fim Blog Grid Cards --- */

/* Responsivo para Tablets - 2 cards por linha */
@media (max-width: 1024px) and (min-width: 769px) {
  .slide2.active {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px; /* Aumentado de 20px para 30px */
  }
  
  .slide2 .card {
    width: 90%;
  }
}

/* Responsividade */
@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
  }
  .nav {
    display: none;
    flex-direction: column;
    width: 100%;
    background: white;
    position: absolute;
    top: 65px; /* Ajuste para caber abaixo do header */
    left: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 20px 0;
    border-top: 3px solid var(--primary);
    border-bottom: 1px solid #e0e0e0;
  }
  .nav a, .nav .btn-login {
    width: 100%;
    padding: 15px 30px;
    border-radius: 0;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
  }
  .nav a:last-child {
    border-bottom: none;
  }
  .nav a:hover {
    background: #f8f9fa;
    color: var(--primary);
    padding-left: 35px;
  }
  .nav.show {
    display: flex;
  }
  .nav-toggle {
    display: block;
  }
  .hero {
    padding: 40px 0;
  }
  .hero-inner {
    flex-direction: column;
    text-align: center;
  }
  .hero-image {
    text-align: center;
  }
  /* Ajuste no novo slider de Valores/Facilidade */
  .tabs {
    justify-content: flex-start;
  }
  
  /* Tabs e Slides responsivos */
  .slide2 {
    display: none;
    width: 100%;
  }
  
  .slide2.active {
    display: flex;
    flex-direction: column; /* Empilha cards em mobile */
    gap: 20px;
  }
  
  .slide2 .card {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  .footer-left, .footer-center, .footer-right {
    flex: 1 1 100%;
  }
  .logos-clientes {
    gap: 20px;
  }
  .logos-clientes img {
    height: 30px;
  }
}

/* --- Paginação Customizada --- */
.pagination-custom {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 32px 0 0 0;
  padding: 0;
  list-style: none;
}
.pagination-custom .page-item {
  display: inline-block;
}
.pagination-custom .page-link {
  background: #fff;
  color: var(--primary);
  border: 1px solid #e0e4ea;
  border-radius: 50px;
  padding: 8px 18px;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(27,117,188,0.04);
  text-decoration: none;
  margin: 0 2px;
}
.pagination-custom .page-link:hover {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(27,117,188,0.10);
}
.pagination-custom .page-item.active .page-link {
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(27,117,188,0.18);
  border-color: var(--primary);
}
.pagination-custom .page-item.disabled .page-link {
  background: #f7f8fa;
  color: #b0b8c1;
  border-color: #e0e4ea;
  cursor: not-allowed;
  box-shadow: none;
}
.pagination-custom .page-link.ellipsis {
  background: none;
  color: #b0b8c1;
  border: none;
  cursor: default;
  font-size: 1.1rem;
  padding: 8px 10px;
}
.pagination-custom-info {
  text-align: center;
  margin-top: 10px;
  color: var(--text-gray);
  font-size: 0.98rem;
}

/* Modal Popup Promoção */
.promocao-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  animation: fadeIn 0.3s;
}

.promocao-modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.promocao-modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
  margin: auto;
}

.promocao-image {
  width: 100%;
  height: auto;
  max-height: 90vh;
  object-fit: contain;
  cursor: pointer;
  border-radius: 8px;
}

.promocao-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  border: none;
  font-size: 35px;
  font-weight: bold;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10000;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
}

.promocao-close:hover {
  background: white;
  transform: scale(1.1);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}