/* ===== RESET BÁSICO ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  background: #f5f5f5;
  overflow-x: hidden;
}


body, html {
  overflow-x: hidden;
}


/* ===== HEADER ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 77px;
  background: #440A2A;
  display: flex;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

header .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo img {
  height: 50px;
}

/* ===== MENU DESKTOP (mantém como está) ===== */
nav ul {
  list-style: none;
  display: flex;
  height: 77px;
  align-items: center;
  margin: 0;
  padding: 0;
  gap: 0;
}

nav ul li {
  width: 100%;
  text-align: center;
  position: relative;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  padding: 30px 25px;
  display: block;
  height: 77px;
  line-height: 24px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

nav ul li a:hover,
nav ul li a.active {
  background: #FD2754;
  color: #fff;
}

/* seta embaixo */
nav ul li a:hover::after,
nav ul li a.active::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 12px solid #FD2754;
}

/* ===== MOBILE ===== */
.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: #fff;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }


  nav {
    position: absolute;
    top: 77px; /* altura do header */
    right: 0;
    width: 220px;
    background: #111;
    display: none;
    flex-direction: column;
    border-radius: 0 0 0 12px;
    z-index: 1000;
  }

  nav ul {
    background: #440a2a;
    flex-direction: column;
    height: auto;
    padding: 15px 0;
  }

  nav ul li a {
    width: 100%;
    height: auto;
    padding: 15px 20px;
  }

  nav.active {
    display: flex;
  }
}


section #home {
  scroll-margin-top: 77px; /* mesma altura do header */
}

/* ===== HERO ===== */
#hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  height: auto;
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

/*@media (max-width: 768px) {
  #hero{
   min-height: 70vh;
  }
}*/



/* PARALLAX LAYERS */
.parallax {
  position: absolute;
  top:0; left:0;
  width:100%;
  height:100%;
  pointer-events:none;
}

.parallax img {
  display:block;
  max-width: none;
  user-select: none; }

/* sol -> atrás das montanhas */
.parallax.sun { z-index: 0; }
.parallax.sun img {
  width: 100%;
  height: auto;         /* mantém proporção */
  max-height: 100%;     /* garante que não ultrapasse */
  object-fit: contain;  /* mantém proporção, não corta */
  display: block;
  margin: 0 auto;       /* centraliza */
}



@media (max-width: 1100px) {
  .parallax.sun img {
    width: 200%;   /* dá zoom horizontal */
    margin-left: -47%; /* centraliza novamente */
  }
}


@media (max-width: 580px) {
  .parallax.sun img {
    width: 220%;   /* dá zoom horizontal */
    margin-left: -51%; /* centraliza novamente */
  }
}



/* montanhas -> na frente do sol */
.parallax.mountains {
  z-index: 3;
  display:flex;
  align-items:flex-end;
  justify-content:center;
}



@media (max-height: 750px) {
  .parallax.mountains {
    top: 340px !important;
  }
}


@media (max-height: 900px) {
  .parallax.mountains {
    top: 178px;
  }
}

.parallax.mountains img {
  width: 130%;
  height: auto;         /* mantém proporção */
  max-height: 100%;     /* garante que não ultrapasse */
  object-fit: contain;  /* mantém proporção, não corta */
  display: block;
  margin: 0 auto;       /* centraliza */
  position: absolute;
  bottom: 185px;
}


@media (max-width: 1380px) {
  .parallax.mountains img {
    width: 170%;   /* dá zoom horizontal */
    margin-left: -20%; /* centraliza novamente */
  }
}


@media (max-width: 1100px) {
  .parallax.mountains img {
    width: 200%;   /* dá zoom horizontal */
    margin-left: -20%; /* centraliza novamente */
  }
}


@media (max-width: 900px) {
  .parallax.mountains img {
    width: 230%;   /* dá zoom horizontal */
    margin-left: -20%; /* centraliza novamente */
  }
}



@media (max-width: 600px) {
  .parallax.mountains img {
    width: 260%;   /* dá zoom horizontal */
    margin-left: -20%; /* centraliza novamente */
  }
}



@media (max-width: 500px) {
  .parallax.mountains img {
    width: 300%;   /* dá zoom horizontal */
    margin-left: -20%; /* centraliza novamente */
  }
}



@media (max-width: 900px) {
  .character-container {
    display: none;
  }
}





/* HERO CONTENT (titulo + logo) */
.hero-content {
  margin-left: 3vw;
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  pointer-events: none;
  margin-top: -19vw;
}
.hero-content h1 {
  position: relative;
  top: 20px;
  font-size: 4.4rem;
  color: #fff;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
  margin-bottom: 18px;
}
.hero-logo {
  display:block;
  margin: 0 auto 8px auto;
}



@media (max-height: 600px) {
  .hero-content h1 {
    position: relative;
    top: 100px;
    font-size: 4.4rem;
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
    margin-bottom: 18px;
}

.hero-logo {
  position: relative;
  display:block;
  top: 50px;
}


}


/* removido o balão longo daqui, agora ele aparece com o personagem */

/* Personagem */
.character-container {
  position: absolute;
  right: 32vw;
  bottom: 20vh;
  z-index: 4;
  text-align: center;
  pointer-events: auto;
}
.character {
  width: 150px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(.2,.9,.3,1);
  cursor: pointer;
  display:block;
}
.character.visible { opacity: 1; transform: translateY(0); }

/* speech-bubbles: novo estilo (antes era display:none) */
/* posiciona os balões acima/à direita da cabeça do personagem */
.speech-bubbles {
  position: absolute;
  left: calc(80% + 12px);
  bottom: 84%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  width: max-content;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 300ms ease, transform 300ms cubic-bezier(.2,.9,.3,1);
  pointer-events: none;
  z-index: 5;
}
.speech-bubbles.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* estilo dos balões */
/* substitua a regra .bubble por isso */
.bubble {
  border-radius: 10px;
  padding: 14px 18px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  max-width: 360px;
  font-size: 0.95rem;
  color: #440A2A;
  border: 1px solid rgba(68,10,42,0.06);
  text-align: left;
}

/* badge menor */
.bubble-somos {
  top: -103%;
  left: -33%;
  position: absolute;

  background: #fff;
  color: #000;
  padding: 8px 12px;
  font-size: 15px;
  border: none;
  box-shadow: 0 6px 14px rgba(253,39,84,0.12);
}

/* larga descrição */
.bubble-long {
  color: #fff;
  max-width: 360px;
  background: #FD2754;
}

/* ===== VALORES ===== */
#valores {
  background: #30272f;
  padding: 80px 0 40px 0;
  text-align: center;
}
#valores .subtitle {
  color: #440A2A;
  font-size: 1.2rem;
  margin-bottom: 28px;
}
.valores-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}
.valor {
  background: #FD2754;
  color: #fff;
  border-radius: 16px;
  padding: 28px 24px;
  width: 230px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}


/* ===== VALORES: CARROSSEL ===== */
.valores-carousel-section {
  background: #2f272b; /* escuro semelhante à referência */
  color: #fff;
  padding: 70px 20px 60px;
}
.valores-header {
  text-align: center;
  margin-bottom: 28px;
}
.valores-header h2 {
  color: #FD2754;
  font-size: 2.6rem;
  margin: 0 0 6px;
  letter-spacing: 1px;
}
.valores-header .subtitle {
  color: rgba(255,255,255,0.15);
  margin-top: 6px;
  font-size: 0.95rem;
}

/* carousel layout */
.valores-carousel {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 24px;
}
.carousel-viewport {
  overflow: hidden;
  width: 100%;
}
.carousel-track {
  display: flex;
  gap: 22px;
  transition: transform 380ms cubic-bezier(.22,.9,.28,1);
  will-change: transform;
  padding: 10px 6px;
  list-style: none;
}

/* ===== VALORES: estilo do card em formato "pílula" (box red) ===== */
.valor-card {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  /* largura base; o JS do carousel vai sobrescrever o flex-basis conforme viewport */
  flex: 0 0 260px;
  padding: 0 6px; /* espaço lateral entre cards (o gap do track já controla) */
}

/* título acima do box (como na sua referência Figma) */
.valor-title {
  min-height: 50px;
  margin: 0;
  font-size: 0.96rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #ffffff; /* ou ajuste para cor do seu layout se necessário */
  text-align: center;
  /* se quiser o título menor que h2, mantive esse estilo */
}

/* a "pílula" vermelha onde ficam o ícone e o texto */
.valor-box {
  width: 100%;
  min-height: 470px !important;
  max-width: 500px; /* controla tamanho máximo da pílula */
  background: linear-gradient(180deg, #ff2f55 0%, #fd2754 100%); /* leve gradiente, opcional */
  color: #fff;
  border-radius: 999px; /* pílula vertical */
  padding: 34px 24px; /* espaço interno generoso para o ícone e o texto */
  box-shadow: 0 10px 24px rgba(68,10,42,0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 340px; /* altura aproximada para a aparência vertical */
  text-align: center;
}

.cr1{
  background: #440A2A !important;
}
/*.cr2{
  background: #440A2A !important;
}*/
.cr3{
  background: #DD1C31 !important;
}
.cr4{
  background: #FD5224 !important;
}
.cr5{
  background: #F8764E !important;
}
.cr6{
  background: #FA9E69 !important;
}
.cr7{
  background: #7D114D !important;
}

/* ícone do topo dentro da pílula */
.valor-icon {
  width: 76px;
  height: 76px;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.15)); /* sutil sombra no ícone */
}

/* texto dentro da pílula */
.valor-box p {
  margin-top: 25px;
  font-size: 0.95rem;
  line-height: 1.45;
  max-width: 210px; /* controla a largura da coluna de texto dentro da pílula */
  color: #ffffff;
  opacity: 0.98;
}

/* responsive tweaks - o JS do carousel também recalcula, mas deixei ajustes CSS */
@media (max-width: 1100px) {
  .valor-box { min-height: 300px; padding: 30px 18px; }
  .valor-icon { width: 64px; height: 64px; margin-bottom: 16px; }
  .valor-box p { max-width: 200px; font-size: 0.92rem; }
}

@media (max-width: 800px) {
  .valor-box { min-height: 280px; padding: 26px 16px; }
  .valor-icon { width: 56px; height: 56px; }
  .valor-title { font-size: 0.88rem; }
}

/* esconder setas e bullets (se quiser esconder via CSS) */
 .valores-carousel .carousel-btn { display: none !important; } 
 .valores-carousel .carousel-dots { display: none !important; } 



/* ===== MISSÃO (atualizado: ilustração entra da direita corretamente) ===== */

/* sessão (mantive suas regras originais) */
.missao-section {
  background: #30272f; /* fundo escuro da sessão (ajuste se quiser outro tom) */
  padding: 80px 20px 140px; /* bottom maior para acomodar a ilustração que vaza */
  position: relative;
  overflow: visible; /* deixar visível para a ilustração "invadir" a área */
  color: #fff;
}

.missao-inner {
  background: url(../img/box-missao.png) top center no-repeat;
  max-width: 1200px;
  min-height: 686px;
  margin: 0 auto;
  position: relative;
  padding: 0 20px;
}

/* header */
.missao-header {
  text-align: center;
  margin-bottom: 28px;
  position: relative;
  z-index: 3;
}
.missao-quote {
  position: absolute;
  left: 14%;
  top: -8px;
  font-size: 72px;
  color: #ff6a2e; /* laranja do quote */
  line-height: 1;
  z-index: 2;
  pointer-events: none;
}



@media (max-width: 840px) {
  .missao-quote {
  position: absolute;
  left: -14%;
  top: -95px;
  font-size: 40px;
  color: #ff6a2e; /* laranja do quote */
  z-index: 2;
  pointer-events: none;
}
}




.missao-title-wrap {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 4px;
}
.missao-h2 {
  margin: 6px 0 4px;
  font-size: 38px;
  letter-spacing: 1px;
  color: #fff;
  font-weight: 800;
  display: inline-block;
  background: rgba(0,0,0,0.14);
  padding: 6px 18px;
  border: 3px solid rgba(255,255,255,0.12);
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}
.missao-subtitle {
  margin: 6px 0 0;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.18);
  letter-spacing: 3px;
}

/* box com background (imagem) */
.missao-content {
  margin: 20px auto 0;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  padding: 48px 40px;
  color: #fff;
  text-align: center;
}

/* texto principal */
.missao-lead {
  margin: 0 auto 22px;
  color: #fff;
  font-size: 1.07rem;
  line-height: 1.6;
  max-width: 720px;
}

/* bloco destacado em laranja */
.missao-highlight {
  margin: 18px auto 0;
  display: inline-block;
  background: #FD5224;
  color: #fff; /* laranja do destaque */
  font-weight: 800;
  letter-spacing: 0.6px;
  padding: 18px 22px;
  border-radius: 6px;
  text-transform: uppercase;
  box-shadow: 0 6px 18px rgba(68,10,42,0.18);
  max-width: 720px;
}

/* ===== MISSÃO: ilustração entra da direita (corrigido) ===== */
/* Posicionamento: começa totalmente fora da viewport (à direita) e só aparece ao receber .in-view */
/* Use translateX com percentual da própria largura para garantir que fique fora independentemente do tamanho. */

.missao-illustration {
  position: absolute;
  right: 0;                 /* alinhada à borda direita do container */
  bottom: -465px;           /* invade a área inferior */
  z-index: 4;
  pointer-events: none;

  /* estado inicial: completamente deslocada para a direita (fora da tela) e invisível */
  opacity: 0;
  transform: translateX(150%); /* move 150% da própria largura para a direita (fora) */
  transition: transform 1.15s cubic-bezier(.22,.9,.28,1), opacity 1.0s cubic-bezier(.22,.9,.28,1);
  will-change: transform, opacity;
}
.missao-illustration img {
  display: block;
  height: auto;
  width: auto;
  min-width: 100%;
}

/* Quando o observer adicionar .in-view ela desliza para a posição final (visível) */
.missao-illustration.in-view {
  opacity: 1;
  transform: translateX(0); /* entra completamente no layout */
}


/* ===== animações independentes para conteúdo e ilustração ===== */
/* Conteúdo (fade + slide vertical) */
.missao-content.animate-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s cubic-bezier(.22,.9,.28,1), transform .9s cubic-bezier(.22,.9,.28,1);
}
.missao-content.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Ilustração (entrada horizontal) */
/* Nota: .missao-illustration já tem estado inicial/transition acima; apenas garantir consistência com animate-on-scroll */
.missao-illustration.animate-on-scroll {
  /* redundante com as regras acima, mas deixamos para garantir comportamento caso a classe seja adicionada antes do JS */
  opacity: 0;
  transform: translateX(150%);
  transition: transform 1.15s cubic-bezier(.22,.9,.28,1), opacity 1.0s cubic-bezier(.22,.9,.28,1);
}



@media (max-width: 1560px) {
  .missao-illustration{
    width: auto;
    bottom: -465px;
    right: 0; 
  }
}


@media (max-width: 560px) {
  .missao-illustration img{
    width: 1116px;
  }
}


@media (max-width: 560px) {
  .missao-illustration{
    bottom: -325px;
  }
}




.missao-illustration.in-view {
  opacity: 1;
  transform: translateX(0);
}




/* ===== CLIENTES ===== */
#clientes {
  background: #30272f;
  padding: 80px 0 40px 0;
  text-align: center;
}

.clientes-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin: 0 auto;
}

.cliente-img {
  position: relative;
  width: 100%;
  aspect-ratio: 286 / 386;
  overflow: hidden;
  cursor: pointer;
}

.cliente-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.cliente-img:hover img {
  transform: scale(1.08);
}

/* ===== LIGHTBOX ===== */
#lightbox {
  display: none; /* escondido por padrão */
  position: fixed;
  z-index: 9999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background: rgba(0, 0, 0, 0.9);
  text-align: center;
}

#lightbox img {
  max-width: 90%;
  max-height: 80vh;
  margin-top: 5%;
  border-radius: 10px;
}

#lightbox .close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

#lightbox .close:hover {
  color: #f00;
}


/* ===== HEADER DAS SEÇÕES ===== */
.section-header {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.section-title {
  display: inline-block; /* permite a linha acompanhar o texto */
  font-size: 2.6rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
  margin: 0;
  padding: 0px 60px;
  border-bottom: 2px solid #fff; /* linha */
}

.section-subtitle {
  display: block;
  margin-top: 10px;
  font-size: 1rem;
  letter-spacing: 8px;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}




/* ===== TOOLBOX ===== */
#toolbox {
  background: #30272f;
  padding: 80px 0;
  text-align: center;
}

/* GRID */
.toolbox-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
  margin-bottom: 30px;
}

/* CONTÊINER (CARD + DETALHE) */
.toolbox-card-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 180px;
}

/* ITEM PRINCIPAL (CARD LARANJA) */
.toolbox-item {
  position: relative;
  background: #FD5A3A;
  color: #fff;
  width: 100%;
  padding: 40px 16px 20px;
  border-radius: 20px 20px 85px 85px;
  cursor: pointer;
  min-height: 275px;
  transition: transform 0.3s ease;
  margin-bottom: 4px;
}
.toolbox-item:hover {
  transform: translateY(-5px);
}

/* ÍCONE FLUTUANTE NO TOPO DO ITEM */
.toolbox-icon {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}
.toolbox-icon img {
  width: 50px;
  height: 50px;
}




/* DETALHE EXPANSÍVEL */
.toolbox-detail {
  position: relative;
  width: 100%;
  border: 2px solid #FD2754;
  border-radius: 20px 20px 85px 85px;
  background: transparent;
  color: #fff;
  text-align: center;
  overflow: visible;
  /* inicia fechado */
  max-height: 0;
  opacity: 0;
  padding: 0;
  transition: max-height 0.5s ease, padding 0.5s ease, opacity 0.3s ease;
}


.detail-icon {
  position: absolute;
  top: -25px; /* sobe mais para ficar fora da borda */
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10; /* força ficar acima */
}


/* ESTADO ATIVO DO DETALHE */
.toolbox-card-container.active .toolbox-detail {
  margin-top: 20px;
  max-height: 500px; /* altura suficiente p/ conteúdo */
  padding: 40px 12px 20px 12px;
  opacity: 1;
}

/* ESTADO ATIVO DO DETALHE */
.toolbox-card-container.active .toolbox-detail {
  margin-top: 20px;
  padding: 40px 12px 20px 12px; /* Padding ajustado para dar espaço ao ícone */
  opacity: 1;
}

/* ÍCONE FLUTUANTE NO TOPO DO DETALHE */
.detail-icon {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.detail-icon img {
  width: 50px;
  height: 50px;
}

/* ÍCONES NO FINAL DO DETALHE */
.detail-bottom-symbol {
  margin-top: 15px;
}


/* ===== JUNTOS ===== */
#juntos {
  /* Use a sua imagem de fundo aqui */
  background: url('../img/grafite.png')top center no-repeat;
  background-size: contain;
  padding: 155px 0 100px 0;
  position: relative;
  text-align: center;
}

/* Opcional: Adiciona uma sobreposição escura para melhorar a legibilidade */
#juntos::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(43, 35, 43, 0.7); /* Fundo #2b232b com 70% de opacidade */
  z-index: 1;
}

/* Garante que o conteúdo fique acima da sobreposição */
.juntos-box, .juntos-carousel-wrapper {
  position: relative;
  z-index: 2;
}

/* Estilo do Título e Subtítulo */
.juntos-box {
  margin-bottom: 50px;
}

.juntos-title-img {
  max-width: 350px; /* Ajuste o tamanho conforme sua imagem */
  margin-bottom: 15px;
}


.case-image {
  width: 100%;
  height: 250px;
  margin-bottom: 20px;
  overflow: hidden; /* evita que a imagem estoure o box */
  border-radius: 8px; /* opcional: cantos arredondados */
}

.case-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* mantém proporção e corta excesso */
  display: block;
}


.juntos-box p {
  color: #fff;
  font-size: 2.2rem;
  font-weight: bold;
  text-transform: uppercase;
}

.juntos-box p span {
  background-color: #FD2754; /* Cor do destaque */
  padding: 4px 10px;
}

/* Wrapper do Carrossel */
.juntos-carousel-wrapper {
  position: relative;
  max-width: 770px; /* <--- VALOR CORRIGIDO */
  margin: 0 auto;
  padding: 0 50px;
}

.juntos-cases.active {
  cursor: grabbing; /* Mãozinha fechada ao arrastar */
}

/* Container dos Cards (o carrossel em si) */
.juntos-cases {
  cursor: grab; /* Mãozinha para indicar que é arrastável */
  user-select: none; /* Impede a seleção de texto ao arrastar */
  display: flex;
  overflow-x: auto;
  gap: 30px;
  scroll-snap-type: x mandatory; /* Magia do carrossel */
  -webkit-overflow-scrolling: touch; /* Melhora a experiência em mobile */
  scrollbar-width: none; /* Esconde a barra de rolagem (Firefox) */
}

/* Esconde a barra de rolagem (Chrome, Safari) */
.juntos-cases::-webkit-scrollbar {
  display: none;
}

/* Estilo de cada Card */
.case {
  flex: 0 0 320px; /* Não encolhe, não estica, base de 320px de largura */
  scroll-snap-align: center; /* Centraliza o card ao rolar */
  position: relative;
}

.case-image-placeholder {
  width: 100%;
  height: 250px;
  background: linear-gradient(to top, #666, #999); /* Gradiente cinza como na imagem */
  margin-bottom: 20px;
}

.case-content {
  margin-top: -50px;
  color: #fff;
  text-align: center;
}

.case-user {
  background-color: #FD2754;
  color: #fff;
  font-weight: bold;
  padding: 8px 15px;
  display: inline-block; /* Para o fundo se ajustar ao texto */
  border-radius: 5px;
  margin-bottom: 15px;
}

.case-content p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Imagens Decorativas (balões) */
.decorative-image {
  position: absolute;
  width: 155px; /* Ajuste o tamanho conforme necessário */
  z-index: 3;
}
.decor-1 {
  top: 45px;
  left: -38px;
}
.decor-2 {
  top: -20px;
  right: -20px;
}

/* Estilo das Setas de Navegação */
.carousel-arrow {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  z-index: 5;
  background-color: transparent;
  border: 2px solid #fff;
  color: #fff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 24px;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}
.carousel-arrow:hover {
  background-color: #fff;
  color: #2b232b;
}
.carousel-arrow.prev {
  left: 0;
}
.carousel-arrow.next {
  right: 0;
}


@media (max-width: 768px) {
  
  /* ... outros estilos como .juntos-carousel-wrapper ... */

  .juntos-cases {
    /* =================================================================== */
    /* PROPRIEDADES ESSENCIAIS PARA CORRIGIR O LAYOUT VERTICAL             */
    /* =================================================================== */
    display: flex;
    flex-direction: row;    /* 1. Garante que a direção é horizontal */
    flex-wrap: nowrap;      /* 2. MUITO IMPORTANTE: Impede que os itens quebrem para a linha de baixo */

    /* --- O restante das propriedades para o carrossel funcionar --- */
    overflow-x: auto;       /* 3. Habilita a rolagem horizontal */
    gap: 20px;
    scroll-snap-type: x mandatory;

    /* Para uma melhor experiência, escondemos a barra de rolagem */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;     /* Firefox */
  }

  /* Esconde a barra de rolagem para navegadores Webkit (Chrome, Safari) */
  .juntos-cases::-webkit-scrollbar {
    display: none;
  }


  /* O estilo para .case continua o mesmo da sugestão anterior */
  .case {
    flex: 0 0 100%;
    scroll-snap-align: center;
  }
  
  /* ... outros estilos que você tinha para .carousel-arrow, .decorative-image etc. ... */
}



/* DIVISOR ENGRENAGENS */
.divider {
  position: relative;
  width: 100%;
  height: 80px; /* altura do espaço do divisor */
  margin: -40px 0; /* sobrepõe entre as sessões */
}


@media (max-width: 700px) {
  .divider img{
    margin-top: 30px;
  }
}


.divider-left,
.divider-right {
  z-index: 6;
  position: absolute;
  top: -178px;
}

.divider-left {
  left: 0;
}

.divider-right {
  right: 0;
}

.divider img {
  position: relative;
  max-width: 400px;   /* tamanho máximo no desktop */
  height: auto;
  display: block;
}


@media (max-width: 1490px) {
  .divider img {
    top: 70px;
    max-width: 195px;
  }
}


@media (max-width: 620px) {
  .divider img {
    top: 70px;
    max-width: 175px;
  }
}



/* ===== COMO FUNCIONA ===== */
#como-funciona {
  background: #1C161D; /* Cor de fundo escura do design */
  padding: 80px 20px; /* Adicionado padding lateral */
  text-align: center;
  color: #fff; /* Cor de texto padrão para a seção */
}

#como-funciona h2 {
  color: #fff;
  font-size: 2.2rem;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 8px;
}

#como-funciona .subtitle {
  color: #fff;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 3px; /* Adiciona espaçamento entre as letras */
  margin-bottom: 50px; /* Aumenta o espaço antes dos itens */
}

/* Container dos itens */
.como-grid {
  display: flex;
  flex-direction: column; /* Muda para um layout de coluna vertical */
  align-items: center; /* Centraliza os itens na coluna */
  gap: 0; /* O espaçamento será feito pelas linhas separadoras */
}

/* Estilo de cada pílula */
.como-item {
  margin: 0 0 30px 0;
  border: 2px solid #FA9E69;
  border-radius: 999px;
  padding: 20px 40px;
  max-width: 600px;
  width: 100%;
  background: transparent;
  color: #fff;
  box-shadow: none;
  transition: all 0.3s ease; /* suavidade da animação */
}

/* Animação ao passar o mouse */
.como-item:hover {
  transform: scale(1.05);   /* aumenta levemente */
  box-shadow: 0 8px 20px rgba(250, 158, 105, 0.3); /* brilho sutil na nova cor */
  border-color: #FA9E69;    /* borda um pouco mais clara no hover */
}

.como-item h4 {
  color: #FA9E69; /* Cor do título */
  font-weight: bold;
  text-transform: uppercase;
  font-size: 1rem;
  display: inline-block; /* ajusta a largura ao tamanho do texto */
  background-color: #1c161d; /* cor do fundo (igual ao fundo da sessão) */
  padding: 0 10px; /* espaçamento lateral opcional */
  position: relative;
  top: -33px; /* para sobrepor a borda do box */
}

.como-item p {
  margin: -20px 0 0 0;
  line-height: 1.5;
}





/* ===== SEÇÃO JUNTE-SE ===== */
#junte-se {
    background-color: #1c161d;
    padding: 615px 0 480px;
    position: relative;
    overflow: hidden;
}

/* Container centralizado */
.junte-se-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 3;
}

/* === Megafone === */
.bloco-megaphone {
    width: 120%;
    position: absolute;
    top: 0px;
    left: 0px; /* estoura para fora */
    z-index: 6;
}
.bloco-megaphone img {
    width: 1200px;
    max-width: 100%;
}



@media (max-width: 700px) {
  .bloco-megaphone{
    top: 190px;
  }
.bloco-megaphone img{
  left: -65px;
  top: -70px;
  position: relative;
}
}


@media (max-width: 575px) {
  .bloco-megaphone{
    top: 125px;
  }

  #junte-se{
    margin-top: -90px;
  }

  .junte-se-container{
    margin: -100px auto;
  }
}



/* === Caixa É VITAL === */
.bloco-vital {
    min-height: 480px;
    margin: 0 auto 50px;
    width: auto;
    max-width: 605px;
    background: url('../img/vital.png') no-repeat top center;
    background-size: 100% 100%;
    padding: 120px 30px 60px;
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 500;
    color: #2B232B;
    line-height: 1.4;
}
.texto-vital {
    display: block;
    font-family: 'Anton', sans-serif;
    font-size: 3rem;
    color: #E63956;
    margin-top: 15px;
}

/* === Faixa CTA === */
.bloco-cta {
    padding: 18px 25px;
    margin: 20px auto;
    max-width: 650px;
}
.bloco-cta p {
    color: #fff;
    font-weight: bold;
    font-size: 1.2rem;
    margin: 0;
    line-height: 1.4;
}
.bloco-cta span {
    color: #fff;
    background: #FD2754;
    padding: 2px 5px;
}

.bloco-descricao span {
    color: #FD2754;
    background: #fff;
    font-weight: bold;
    padding: 2px 5px;
}

/* === Descrição === */
.bloco-descricao {
    margin: 20px auto 40px;
    max-width: 550px;
    font-size: 1rem;
    color: #fff;
    line-height: 1.6;
}

/* === Ícones sociais === */
.bloco-sociais {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}
.bloco-sociais img {
    width: 35px;
    transition: transform 0.3s ease;
}
.bloco-sociais img:hover {
    transform: scale(1.1);
}

/* === Foguete === */
.bloco-foguete {
    position: absolute;
    bottom: -365px;
    right: -131px;
    z-index: 1;
}
.bloco-foguete img {
    width: 1200px;
    max-width: 100%;
}

@media (max-width: 700px) {
  .bloco-foguete{
    bottom: -282px;
  }
}


@media (max-width: 575px) {
  .bloco-foguete{
    bottom: -125px;
  }
}



/* ===== FOOTER ===== */
footer {
  width: 100%;
  background: #440A2A;
  color: #fff;
  padding: 20px 40px;
  border-top: 2px solid #FD2754;
  font-size: 0.9rem;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

/* Esquerda (texto) */
.footer-left {
  flex: 4;
  text-align: left;
}

/* Centro (ícones) */
.footer-center {
  flex: 1;
  text-align: center;
}

.footer-social a img {
  width: 28px;
  margin: 0 10px;
  filter: brightness(1.3);
  vertical-align: middle;
  transition: transform 0.3s ease;
}

.footer-social a img:hover {
  transform: scale(1.2); /* aumenta ao passar o mouse */
}

/* Direita (logo) */
.footer-right {
  flex: 1;
  text-align: right;
}

.footer-logo {
  width: 100px; /* ajusta conforme o design */
  height: auto;
}




/* ===== SCROLL FADE-IN: append ao final do css/style.css ===== */
/* estado inicial dos cards (invisíveis, levemente abaixados) */
.valor-card {
  opacity: 0;
  transform: translateY(24px) scale(.995);
  transition: opacity 2.6s cubic-bezier(.22,.9,.28,1) var(--delay, 0ms),
              transform 2.6s cubic-bezier(.22,.9,.28,1) var(--delay, 0ms);
  will-change: opacity, transform;
  /* variável usada para stagering (delay em ms) */
  --delay: calc(var(--i, 0) * 90ms);
}

/* quando o card entra em view, mostra com fade + slide up */
.valor-card.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Se preferir animar só a pílula interno (.valor-box) ao invés do título também,
   use .valor-box e .valor-box.in-view aqui. */

/* pequenas otimizações visuais */
@media (prefers-reduced-motion: reduce) {
  .valor-card,
  .valor-card.in-view {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}



.hero-logo {
  animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05); /* cresce levemente */
  }
  100% {
    transform: scale(1);
  }
}
