.container {
  max-width: 1200px;
}

/* ==========================================================================
   Header - Estado Inicial (Ocupa apenas o lado esquerdo)
   ========================================================================== */
/* ==========================================================================
   Header Base 
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 60%;
  height: 90px;
  z-index: 999;
  /* background-color: transparent; */
  display: flex;
  align-items: center;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.568), transparent);
  border: none;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  /* Mantém logo na esquerda e menu na direita */
  align-items: center;
  width: 100%;
  padding: 0 40px;
}

/* Logo do header começa oculta */
.header-logo-small {
  opacity: 0;
  visibility: hidden;
  /* display: none; */
  width: 0px;
  /* Largura alvo final que usamos no cálculo do JS */
}

/* Transforma o PNG/SVG branco em preto absoluto quando estiver no header claro */
.header-logo-small img {
  width: 100%;
  height: auto;
  display: block;
  filter: brightness(0);
}

.header-menu-list a,
.lang-switcher-list a {
  color: #ffffff;
}

/* ==========================================================================
   Header Base (Botões à direita)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 60%;
  height: 90px;
  z-index: 999;
  background-color: transparent;
  display: flex;
  align-items: center;
  z-index: 90;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0 40px;
}

.header-menu-list a,
.lang-switcher-list a {
  color: #ffffff;
}

/* ==========================================================================
   Home Hero
   ========================================================================== */
.home-hero {
  padding: 0;
  margin: 0;
  height: 100vh;
  overflow: hidden;
}

.hero-split-container {
  display: flex;
  width: 100%;
  height: 100%;
}

.hero-left-pane {
  width: 60%;
  position: relative;
  background-color: var(--noite);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 10% 0 5%;
  z-index: 1;
}

.hero-left-pane::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: hsla(60, 100%, 96%, 0.05);
  -webkit-mask-image: url('../img/textures/quiabos_fileira_txt_sem_fundo_1_1_transparent.png');
  mask-image: url('../img/textures/quiabos_fileira_txt_sem_fundo_1_1_transparent.png');

  /* Reduz o tamanho de cada "peça" da textura */
  -webkit-mask-size: 1000px;
  mask-size: 1000px;

  /* Força a repetição da peça reduzida */
  -webkit-mask-repeat: repeat;
  mask-repeat: repeat;

  z-index: -1;
}

/* Logo inicial gigante */
.hero-brand-logo-large {
  display: block;
  width: 400px;
  max-width: 100%;
  margin-bottom: 40px;
  transform-origin: left top;
  /* Para encolher ancorado na esquerda */
  z-index: 80;
}

.hero-brand-logo-large img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-subtitle {
  color: red;
}

.hero-statement p {
  color: #ffffff;
  font-size: 1.2rem;
  line-height: 1.6;
}

.hero-statement strong {
  font-weight: 900;
}

/* Foto da Direita (Sem espaços brancos) */
.hero-right-pane {
  width: 40%;
  height: 100%;
}

.hero-portrait-wrapper {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero-right-pane img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   Ajuste Desktop (Telas médias: 993px a 1200px)
   Para evitar sobreposição e dar mais espaço para a foto
   ========================================================================== */
@media (max-width: 1200px) and (min-width: 993px) {
  .site-header {
    width: 55%;
  }

  .hero-left-pane {
    width: 55%;
    padding: 0 4%;
  }

  .hero-right-pane {
    width: 45%;
  }

  .hero-brand-logo-large {
    width: 90%;
  }
}

/* ==========================================================================
   Tablet e Mobile (Abaixo de 992px) - Novo Layout Empilhado
   ========================================================================== */
@media (max-width: 992px) {

  /* 1. Header Fixo e Claro desde o início */
  .site-header {
    width: 100%;
    height: 80px;
    background-color: #F8F7F4 !important;
    /* Força o fundo claro */
    background: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
  }

  .header-inner {
    padding: 0 20px;
  }

  /* Exibe a logo pequena na cor preta */
  .header-logo-small {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    width: 120px;
  }

  .header-logo-small img {
    filter: brightness(0);
  }

  /* Esconde os links do header e mostra o hambúrguer */
  .header-mobile-wrapper {
    display: none;
  }

  .menu-toggle {
    display: block;
    color: #1a1a1a;
  }

  /* 2. Hero: Texto em cima, Foto embaixo */
  .home-hero {
    height: auto;
    min-height: 100vh;
    overflow: visible;
    /* Remove a guilhotina */
  }

  .hero-split-container {
    flex-direction: column;
    height: auto;
  }

  /* Área escura no topo */
  .hero-left-pane {
    width: 100%;
    min-height: 50vh;
    padding: 120px 20px 60px;
    /* Espaço para o header não sobrepor */
    text-align: center;
    align-items: center;
  }

  .hero-brand-logo-large {
    max-width: 80%;
    margin: 0 auto 30px;
  }

  /* Desativa os travamentos de animação via CSS por segurança */
  #hero-logo-morph {
    transform: none !important;
  }

  /* Foto na base */
  .hero-right-pane {
    width: 100%;
    height: 50vh;
    /* Altura fixa para a foto no mobile */
  }
}

/* ==========================================================================
   Desktop Padrão (Oculta o hambúrguer)
   ========================================================================== */
.menu-toggle {
  display: none;
}

/* ==========================================================================
   Correção de Telas Médias (993px a 1327px)
   Evita que o menu vaze para cima da foto
   ========================================================================== */
@media (max-width: 1327px) and (min-width: 993px) {
  .header-inner {
    /* Aumenta o padding da direita para empurrar o menu para o lado escuro */
    padding-right: 60px;
  }

  .header-mobile-wrapper {
    gap: 15px;
    /* Reduz o espaço entre o menu e a bandeira de idioma */
  }

  .header-menu-list {
    display: flex;
    gap: 15px;
    /* Reduz a distância entre os links do menu */
  }

  .header-menu-list a {
    font-size: 14px;
    /* Diminui a fonte levemente para caber melhor */
  }
}

/* ==========================================================================
   Tablet e Mobile (Abaixo de 992px) - Correção de Layout e Hambúrguer
   ========================================================================== */
@media (max-width: 992px) {

  /* 1. Trava de Segurança para evitar scroll horizontal na página */
  html,
  body {
    overflow-x: hidden;
  }

  /* 2. Header Fixo e Claro */
  .site-header {
    width: 100%;
    height: 80px;
    background-color: transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
    box-sizing: border-box;
    /* Impede que o header passe de 100vw */
  }

  .header-inner {
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    /* Garante logo na esquerda e menu na extrema direita */
    align-items: center;
  }

  .header-logo-small {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    width: 120px;
  }

  .header-logo-small img {
    filter: brightness(0);
  }

  /* 3. Desenho do Botão Hambúrguer */
  .header-mobile-wrapper {
    display: none;
    /* Esconde os links soltos */
  }

  .menu-toggle {
    display: block;
    background: transparent;
    border: none;
    padding: 10px;
    /* Área de toque (touch target) */
    cursor: pointer;
    z-index: 1000;
  }

  .hamburger-box {
    width: 30px;
    height: 24px;
    display: inline-block;
    position: relative;
  }

  .hamburger-inner,
  .hamburger-inner::before,
  .hamburger-inner::after {
    width: 30px;
    height: 2px;
    background-color: #1a1a1a;
    /* Cor das listras (escuras para contrastar com header claro) */
    position: absolute;
    display: block;
    transition: transform 0.2s ease;
  }

  .hamburger-inner {
    top: 50%;
    margin-top: -1px;
  }

  .hamburger-inner::before {
    content: "";
    top: -8px;
  }

  .hamburger-inner::after {
    content: "";
    bottom: -8px;
  }

  /* 4. Regras do Hero (Texto em cima, foto embaixo) */
  .home-hero {
    height: auto;
    /* min-height: 100vh; */
    overflow: visible;
    box-sizing: border-box;
    width: 100%;
  }

  .hero-split-container {
    flex-direction: column;
    /* height: auto; */
    width: 100%;
  }

  .hero-left-pane {
    width: 100%;
    /* min-height: 50vh; */
    padding: 120px 20px 60px;
    box-sizing: border-box;
    /* Essencial para o padding não criar scroll horizontal */
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-brand-logo-large {
    width: 100%;
    max-width: 320px;
    /* Limita o tamanho do logo enorme no celular */
    margin: 0 auto 30px;
    display: none;
  }

  .hero-brand-logo-large img {
    width: 100%;
    height: auto;
  }

  #hero-logo-morph {
    transform: none !important;
    /* Desliga o GSAP no mobile */
  }

  .hero-right-pane {
    width: 100%;
    height: 50vh;
    box-sizing: border-box;
  }
}

/* ==========================================================================
   Menu Lateral Mobile (Desliza da Direita)
   ========================================================================== */
@media (max-width: 992px) {

  /* O container que abraça o menu e as bandeiras */
  .header-mobile-wrapper {
    display: flex !important;
    /* Sobrescreve o display:none que colocamos antes */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    right: -100%;
    /* Começa totalmente escondido fora da tela */
    width: 100vw;
    /* Ocupa a tela toda (ou mude para 80vw se quiser deixar vazar o fundo) */
    height: 100vh;
    background-color: #F8F7F4;
    /* Fundo claro da sua referência */
    z-index: 998;
    /* Fica abaixo do header principal (999) para o hambúrguer continuar clicável */
    transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    /* Deslize suave */
    padding: 80px 20px 40px;
    box-sizing: border-box;
  }

  /* A classe que o seu JavaScript adiciona ao clicar no hambúrguer */
  .header-mobile-wrapper.is-active {
    right: 0;
    /* Desliza para dentro da tela */
  }

  /* Estilização da lista de links */
  .site-navigation {
    width: 100%;
    margin-bottom: 40px;
  }

  .header-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    /* Espaço vertical entre os links */
  }

  .header-menu-list a {
    color: #1a1a1a;
    font-size: 1.5rem;
    /* Letra grande e legível */
    font-weight: 400;
    text-decoration: none;
    transition: color 0.3s ease;
  }

  /* Estilização do Seletor de Idiomas no Mobile */
  .lang-switcher-list {
    list-style: none;
    /* padding: 0; */
    margin: 0;
    display: flex;
    gap: 20px;
    justify-content: center;
  }

  .lang-switcher-list a {
    color: #1a1a1a;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    /* Espaço entre a bandeira e o texto */
    text-decoration: none;
  }

  /* (Opcional) Animação do Hambúrguer virando um "X" quando ativo */
  .menu-toggle.is-active .hamburger-inner {
    transform: rotate(45deg);
  }

  .menu-toggle.is-active .hamburger-inner::before {
    top: 0;
    opacity: 0;
  }

  .menu-toggle.is-active .hamburger-inner::after {
    bottom: 0;
    transform: rotate(-90deg);
  }
}

/* ==========================================================================
   Services Section - Front Page
   ========================================================================== */

.home-services {
  padding: 80px 0;
  /* background-image: url('../img/bg-texture.png'); */
}

.services-header {
  margin-bottom: 50px;
}

.section-subtitle {
  display: inline-block;
  color: #E24F2A;
  text-transform: lowercase;
  margin-bottom: 10px;
  font-size: 14px;
}

/* O traço vermelho antes do subtítulo */
.section-subtitle::before {
  content: "→ ";
}

.section-title {
  color: var(--color-text-dark);
  font-size: 42px;
  font-weight: 900;
  margin: 0;
  letter-spacing: -0.5px;
}

/* Container Flexível: Fileira no Desktop, Coluna no Mobile */
.services-list {
  display: flex;
  gap: 20px;
  width: 100%;
  position: relative;
  transition: all 0.5s ease;
}

@media (max-width: 768px) {
  .services-list {
    flex-direction: column;
  }
}

/* O Card Padrão */
.service-item {
  flex: 1;
  position: relative;
  padding: 40px;
  border-radius: 12px;
  cursor: pointer;
  overflow: hidden;

  /* Textura e Cor */
  background-size: cover;

  transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.3s ease;
  /* ... suas outras regras existentes ... */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  z-index: 1;
  border: 8px solid transparent;
  box-sizing: border-box;
}

/* Congela a quebra de linha de todos os textos internos durante a animação */
.services-list.is-animating .service-item-title {
  white-space: nowrap !important;
}

/* Garante que o texto excedente fique invisível ao ser esmagado */
.service-item {
  overflow: hidden;
}

.services-list:not(.has-active) .service-item:hover {
  position: relative;
}

.services-list:not(.has-active) .service-item::before {
  content: "";
  position: absolute;
  inset: 0;

  /* background-color: var(--pacifico); */

  /* -webkit-mask-image: url('../img/textures/quiabos_txt_sem_fundo_transparent.png');
  mask-image: url('../img/textures/quiabos_txt_sem_fundo_transparent.png'); */

  /* Reduz o tamanho de cada "peça" da textura */
  -webkit-mask-size: 750px;
  mask-size: 750px;

  /* Força a repetição da peça reduzida */
  -webkit-mask-repeat: repeat;
  mask-repeat: repeat;

  mask-position: 0 -100px;
  -webkit-mask-position: 0 -100px;

  z-index: -1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

/* ============ */
.service-item:nth-of-type(1) {
  border-color: var(--curry-30);
}

.service-item.is-active:nth-of-type(1):before,
.services-list:not(.has-active) .service-item:nth-of-type(1)::before {
  background-color: var(--curry-30);
  -webkit-mask-image: url('../img/textures/Prancheta_1_transparent.png');
  mask-image: url('../img/textures/Prancheta_1_transparent.png');

}

.service-item:nth-of-type(2) {
  border-color: var(--pacifico-30);
}

.service-item.is-active:nth-of-type(2):before,
.services-list:not(.has-active) .service-item:nth-of-type(2)::before {
  background-color: var(--pacifico-30);
  -webkit-mask-image: url('../img/textures/quiabos_txt_sem_fundo_transparent.png');
  mask-image: url('../img/textures/quiabos_txt_sem_fundo_transparent.png');
}

.service-item:nth-of-type(3) {
  border-color: var(--jaspe-20);
}

.service-item.is-active:nth-of-type(3):before,
.services-list:not(.has-active) .service-item:nth-of-type(3)::before {
  background-color: var(--jaspe-20);
  -webkit-mask-image: url('../img/textures/quiabos_fileira_txt_sem_fundo_1_1_transparent.png');
  mask-image: url('../img/textures/quiabos_fileira_txt_sem_fundo_1_1_transparent.png');
}

/* ============ */
.services-list:not(.has-active) .service-item:hover::before {
  opacity: 1;
}

.service-item.is-active {
  position: relative;
}

.service-item.is-active::before {
  content: "";
  position: absolute;
  inset: 0;
  /* background-color: var(--pacifico); */
  /* background-color: rgba(73, 238, 210, 0.801); */
  /* 
  -webkit-mask-image: url('../img/textures/quiabos_txt_sem_fundo_transparent.png');
  mask-image: url('../img/textures/quiabos_txt_sem_fundo_transparent.png'); */

  -webkit-mask-size: 750px;
  mask-size: 750px;

  mask-position: 0 -100px;
  -webkit-mask-position: 0 -100px;

  -webkit-mask-repeat: repeat;
  mask-repeat: repeat;

  z-index: -1;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Oculta o conteúdo por padrão */
.service-item-content {
  height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: 20px;
}

/* O Ícone de + e X */
.service-item::after {
  content: "+";
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 36px;
  font-weight: 300;
  color: var(--noite);
  line-height: 1;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.service-item.is-active::after {
  transform: rotate(45deg);
}

/* Lógica de Expansão e Retração */
.services-list.has-active .service-item:not(.is-active) {
  flex: 0.001;
  padding: 0;
  margin: 0;
  opacity: 0;
  border: none;
  pointer-events: none;
  /* display: none; */
}

.services-list.has-active .service-item.is-active {
  flex: 1 1 100%;
  /* background-color: var(--curry); */
  cursor: default;
}

.service-item.is-active::after {
  cursor: pointer;
  z-index: 10;
}

.services-cta-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 50px;
  padding-bottom: 20px;
}

.btn-services-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  color: #1a1a1a;
  /* Grafite escuro, mantendo a suavidade da fonte */
  font-size: 16px;
  font-weight: 500;
  padding: 12px 36px;
  border: 1px solid #1a1a1a;
  /* Borda fina e elegante */
  border-radius: 40px;
  /* Bordas arredondadas que conversam com a sua tipografia */
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

/* Efeito de Hover usando a cor de acento do site */
.btn-services-cta:hover,
.btn-services-cta:focus {
  /* Substitua este HEX pelo tom exato de vermelho/coral que você usou no "x" e no "-> trajetória" */
  background-color: #e04a32;
  border-color: #e04a32;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(224, 74, 50, 0.2);
  /* Sombra suave na mesma cor */
}

.btn-services-cta:active {
  transform: translateY(0);
}

/* Responsividade Básica */
@media (max-width: 992px) {
  .home-services {
    padding: 2rem 0;
  }

  .service-item {
    padding: 25px;
  }

  .section-title {
    font-size: 32px;
  }

  /* 
  .services-list.has-active .service-item:not(.is-active) {
    display: none;
  } */

  .services-cta-wrapper {
    margin-top: 40px;
  }

  .btn-services-cta {
    width: 80%;
    text-align: center;
    padding: 18px 20px;
  }
}

/* ==========================================================================
   Testimonials Section
   ========================================================================== */
.home-testimonials {
  background-color: #1A1A1A;
  position: relative;
  color: #FFFFFF;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 100px 0;
  z-index: 1;
}

.home-testimonials::before {
  content: "";
  position: absolute;
  inset: 0;

  background-color: rgba(255, 255, 255, 0.015);

  -webkit-mask-image: url('../img/textures/quiabos_txt_sem_fundo_transparent.png');
  mask-image: url('../img/textures/quiabos_txt_sem_fundo_transparent.png');

  /* Reduz o tamanho de cada "peça" da textura */
  -webkit-mask-size: 1000px;
  mask-size: 1000px;

  /* Força a repetição da peça reduzida */
  -webkit-mask-repeat: repeat;
  mask-repeat: repeat;

  z-index: -1;
  pointer-events: none;
  /* Garante que a textura não bloqueie os cliques no carrossel */
}

.testimonials-header {
  text-align: left;
  margin-bottom: 60px;
}

.testimonials-header .section-subtitle {
  color: #E2B13C;
}

.testimonials-header .section-title {
  color: #FFFFFF;
}

/* Estrutura do Carrossel */
.testimonials-carousel-wrapper {
  position: relative;
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
  padding-top: 5px;
}

.testimonial-content-box:hover {
  box-shadow: 0 0 2px #ffffff36;
  transform: translate(-1px, -1px);
  border: 1px solid #ffffff56;
  box-sizing: border-box;
}

.testimonials-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.testimonial-slide {
  min-width: 100%;
  box-sizing: border-box;
  padding: 0 20px;
}

/* Box do Depoimento */
.testimonial-content-box {
  background-color: #222222;
  border: 1px solid #333333;
  padding: 60px;
  text-align: center;
  border-radius: 4px;
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

.testimonial-quote-icon {
  color: #E2B13C;
  font-size: 40px;
  font-family: serif;
  line-height: 1;
  margin-bottom: 20px;
}

.testimonial-text p {
  font-size: 16px;
  line-height: 1.8;
  color: #CCCCCC;
  margin-bottom: 30px;
}

.testimonial-author-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
  gap: 1rem;
}

.testimonial-author-name {
  color: #FFFFFF;
  font-size: 16px;
}

.testimonial-author-details {
  color: #888888;
  font-size: 14px;
}

/* Controles */
.testimonials-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
  gap: 20px;
}

.carousel-btn {
  background: transparent;
  /* border: 1px solid #555; */
  display: flex;
  justify-content: center;
  align-items: center;
  color: #FFF;
  border-radius: 100%;
  width: 35px;
  height: 35px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-btn:hover {
  background-color: transparent !important;
}

.carousel-btn:active {
  background-color: transparent !important;
}

.carousel-btn:focus {
  background-color: transparent !important;
}

.carousel-btn:visited {
  background-color: transparent !important;
}

.carousel-dots {
  display: flex;
  gap: 10px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #555;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.3s;
}

.carousel-dot.active {
  background-color: #92B1B6;
  /* Cor do dot ativo na referência */
}

/* ==========================================================================
   Testimonials - Ajuste de Altura Dinâmica
   ========================================================================== */
.testimonials-track {
  display: flex;
  align-items: flex-start;
  /* CRUCIAL: impede que os slides curtos estiquem */
  /* Adicionada a transição de altura para o efeito smooth */
  transition: transform 0.5s ease-in-out, height 0.4s ease-in-out;
}

.testimonial-slide {
  min-width: 100%;
  box-sizing: border-box;
  padding: 0 10px;
  /* Reduzido levemente o espaçamento lateral */
}

/* ==========================================================================
   Responsividade Mobile (Depoimentos)
   ========================================================================== */
@media (max-width: 768px) {
  .home-testimonials {
    padding: 60px 0;
  }

  .testimonials-header {
    margin-bottom: 40px;
  }

  /* Reduz as caixas para caberem melhor na tela pequena */
  .testimonial-content-box {
    padding: 35px 25px;
  }

  .testimonial-quote-icon {
    font-size: 32px;
    margin-bottom: 15px;
  }

  .testimonial-text p {
    line-height: 1.6;
  }

  /* Controles menores para mobile */
  .testimonials-controls {
    gap: 15px;
    margin-top: 20px;
  }

  .carousel-btn {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }

  /* Em telas muito estreitas (ex: iPhone SE), podemos ocultar as setas 
       e deixar apenas os dots para economizar espaço e evitar cliques acidentais */
  @media (max-width: 380px) {
    .carousel-btn {
      display: none;
    }
  }
}

/* ==========================================================================
   Trajetória (Currículo) Section
   ========================================================================== */
.home-trajectory {
  padding: 80px 0;
  position: relative;
}

.home-trajectory::before {
  content: "";
  position: absolute;
  inset: 0;

  background-color: hsla(40, 100%, 40%, 0.03);

  -webkit-mask-image: url('../img/textures/quiabos_fileira_txt_sem_fundo_1_1_transparent.png');
  mask-image: url('../img/textures/quiabos_fileira_txt_sem_fundo_1_1_transparent.png');

  /* 3. O SEGREDO: Reduz o tamanho de cada "peça" da textura */
  -webkit-mask-size: 800px;
  /* Altere este valor para diminuir/aumentar o padrão */
  mask-size: 800px;

  /* 4. Força a repetição da peça reduzida */
  -webkit-mask-repeat: repeat;
  mask-repeat: repeat;

  z-index: -1;
  pointer-events: none;
}

.trajectory-header {
  margin-bottom: 50px;
}

.trajectory-header .section-subtitle {
  color: #E24F2A;
  margin-bottom: 10px;
}

.trajectory-header .section-title {
  font-size: 48px;
  margin: 0;
  color: #111;
}

/* Accordion Geral */
.trajectory-accordion {
  max-width: 900px;
}

.accordion-item {
  border-bottom: 2px solid #000;
}

.accordion-toggle {
  width: 100%;
  background: transparent;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 0;
  font-size: 20px;
  font-weight: 700;
  color: #000;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

/* Ícone de + e x do Accordion */
.accordion-icon {
  color: #E24F2A;
  /* Laranja da referência */
  font-size: 24px;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.accordion-icon::before {
  content: "+";
}

.accordion-item.is-open .accordion-icon::before {
  content: "×";
  /* Substitui pelo X quando aberto */
}

/* Conteúdo Interno (Resume Entries) */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.4s ease-out;
}

.resume-entry {
  border-left: 2px solid rgba(150, 190, 195, 0.4);
  /* Linha vertical azul claro */
  padding-left: 20px;
}

.resume-entry:first-of-type {
  margin-top: 30px;
}

.resume-entry:last-of-type {
  margin-bottom: 30px;
}

.resume-whoami-content {
  margin: 30px 0;
}

.resume-inst {
  color: #8CAAB0;
  /* Azul acinzentado claro da referência */
  font-size: 14px;
  font-weight: 500;
  margin: 0 0 5px 0;
}

.experience-accordion .resume-inst {
  color: #E24F2A;
}

.resume-course {
  color: #000;
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 5px 0;
}

.resume-meta {
  color: #666;
  font-size: 14px;
}

.resume-desc {
  margin-top: 15px;
  font-size: 15px;
  color: #444;
  line-height: 1.6;
}

/* Inline Carousel Simples para as Imagens */
.inline-carousel {
  margin-top: 20px;
  overflow-x: auto;
  display: flex;
  gap: 15px;
  padding-bottom: 10px;
}

.inline-carousel .carousel-track {
  display: flex;
  gap: 15px;
}

.inline-carousel img {
  height: 150px;
  width: auto;
  border-radius: 4px;
  object-fit: cover;
}

/* ==========================================================================
Galeria do Accordion (Scroll Horizontal Nativo e Responsivo)
========================================================================== */
.category-gallery-carousel {
  margin-bottom: 30px;
  padding: 20px 0;
  width: 100%;
}

/* Opcional: Estilizar o wrapper dos itens para separar do carrossel */
.resume-entries-wrapper {
  display: flex;
  flex-direction: column;
  gap: 30px;
  /* Espaçamento uniforme entre as experiências/formações */
}

.category-gallery-carousel .carousel-track {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 15px;
  /* Respiro para a barra de rolagem não colar nas fotos */
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  /* Estilo mais elegante no Firefox */
}

/* Estilização da barra de rolagem (Chrome/Edge/Safari) */
.category-gallery-carousel .carousel-track::-webkit-scrollbar {
  height: 6px;
}

.category-gallery-carousel .carousel-track::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.category-gallery-carousel .carousel-track::-webkit-scrollbar-thumb {
  background: #d4d4d4;
  border-radius: 4px;
}

.category-gallery-carousel .carousel-slide {
  flex: 0 0 auto;
  /* CRUCIAL: Impede que o Flexbox esprema as imagens */
  scroll-snap-align: start;
}

.category-gallery-carousel img {
  height: 220px;
  /* Trava a altura para um visual limpo */
  width: 300px;
  /* Define uma largura padrão */
  object-fit: cover;
  /* CRUCIAL: Corta o excesso da imagem sem achatar/distorcer */
  border-radius: 8px;
  cursor: zoom-in;
  transition: transform 0.3s ease;
}

.category-gallery-carousel img:hover {
  transform: translateY(-3px);
  /* Leve efeito de elevação em vez de zoom */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   Novo Modal (Lightbox) com Navegação
   ========================================================================== */
.image-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.image-modal.is-active {
  opacity: 1;
  visibility: visible;
}

.image-modal .modal-content {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  user-select: none;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  background: none;
  border: none;
  color: white;
  font-size: 40px;
  cursor: pointer;
  z-index: 10000;
}

.modal-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: none;
  font-size: 2rem;
  padding: 15px 20px;
  cursor: pointer;
  z-index: 10000;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.modal-nav-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.modal-prev {
  left: 20px;
}

.modal-next {
  right: 20px;
}

/* Ajustes Mobile */
@media (max-width: 768px) {
  .category-gallery-carousel img {
    height: 180px;
    width: 260px;
  }

  .modal-nav-btn {
    padding: 10px 15px;
    font-size: 1.5rem;
  }

  .modal-prev {
    left: 10px;
  }

  .modal-next {
    right: 10px;
  }
}

@media (max-width: 992px) {
  .home-trajectory {
    padding: 2rem 0;
  }
}

/* ==========================================================================
   Substack CTA Section
   ========================================================================== */
.home-substack {
  background-color: transparent;
}

.substack-image-wrapper {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* Fallback */
  padding: 50px 0;
  /* Altura do bloco da imagem */
  display: flex;
  align-items: center;
  background-color: var(--curry);
  z-index: 1;
}

.substack-image-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;

  background-color: rgba(211, 23, 23, 0.3);

  /* -webkit-mask-image: url('../img/textures/quiabos_fileira_txt_sem_fundo_1_transparent.png');
  mask-image: url('../img/textures/quiabos_fileira_txt_sem_fundo_1_transparent.png');
 */

  -webkit-mask-image: url('../img/textures/quiabos_fileira_txt_sem_fundo_3_transparent.png');
  mask-image: url('../img/textures/quiabos_fileira_txt_sem_fundo_3_transparent.png');

  /* 3. O SEGREDO: Reduz o tamanho de cada "peça" da textura */
  -webkit-mask-size: 900px;
  /* Altere este valor para diminuir/aumentar o padrão */
  mask-size: 900px;

  /* 4. Força a repetição da peça reduzida */
  -webkit-mask-repeat: repeat;
  mask-repeat: repeat;

  -webkit-mask-position: center;
  mask-position: center;
  z-index: -1;
}

.substack-inner {
  display: flex;
  justify-content: center;
  width: 100%;
}

.substack-content-box {
  background-color: #fffdde;
  /* background-color: transparent; */
  /* Mesma cor base dos serviços para manter consistência */
  padding: 40px 60px;
  max-width: 600px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  z-index: 2;
}

/* Container do iframe do Substack */
.substack-form-container iframe {
  width: 100% !important;
  max-width: 100%;
  border: none;
  background: transparent;
}

@media (max-width: 992px) {
  .substack-content-box {
    padding: 40px 25px;
  }

  .substack-header .section-title {
    font-size: 28px;
  }

  .substack-image-wrapper {
    padding: 60px 0;
  }
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.home-contact {
  background-color: #1a1a1a;
  color: #fff;
  padding: 100px 0;
}

.contact-inner {
  display: flex;
  justify-content: space-between;
  gap: 80px;
}

.contact-info-col {
  flex: 1;
  max-width: 500px;
}

.contact-header {
  margin-bottom: 40px;
}

.contact-header .section-subtitle {
  color: #8CAAB0;
  margin-bottom: 20px;
}

.contact-header .section-title {
  font-size: 46px;
  line-height: 1.2;
  margin: 0;
  color: #fff;
}

.contact-description p {
  color: #999;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 50px;
}

/* Lista de Links de Contato */
.contact-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-links-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 15px 0;
  border-bottom: 1px solid #333;
}

.contact-link {
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  border-bottom: 1px dotted #888;
  padding-bottom: 2px;
  transition: color 0.3s ease;
}

.contact-link:hover {
  color: #FF5A00;
  border-bottom-color: #FF5A00;
}

.contact-label {
  color: #666;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ==========================================================================
   WPForms Overrides (Minimalist Style)
   ========================================================================== */
.contact-form-col {
  flex: 1;
  max-width: 500px;
}

/* Esconde labels se quiser usar apenas placeholders, 
   ou estiliza para ficarem pequenos acima do campo */
div.wpforms-container-full .wpforms-form .wpforms-field-label {
  color: #666 !important;
  font-size: 11px !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  font-weight: 400 !important;
  margin-bottom: 5px !important;
}

/* Inputs e Textareas: removendo bordas e fundo */
div.wpforms-container-full .wpforms-form .wpforms-field input[type=text],
div.wpforms-container-full .wpforms-form .wpforms-field input[type=email],
div.wpforms-container-full .wpforms-form .wpforms-field textarea {
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid #444 !important;
  border-radius: 0 !important;
  color: #fff !important;
  padding: 10px 0 !important;
  font-size: 16px !important;
  box-shadow: none !important;
}

div.wpforms-container-full .wpforms-form .wpforms-field input:focus,
div.wpforms-container-full .wpforms-form .wpforms-field textarea:focus {
  border-bottom: 1px solid #FF5A00 !important;
  outline: none !important;
}

/* Sub-labels escondidas para limpar o layout */
div.wpforms-container-full .wpforms-form .wpforms-field-sublabel {
  display: none !important;
}

/* Botão de Envio */
div.wpforms-container-full .wpforms-form .wpforms-submit-container {
  margin-top: 30px !important;
}

div.wpforms-container-full .wpforms-form button[type=submit] {
  background-color: #FF5A00 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 30px !important;
  padding: 15px 35px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: background-color 0.3s ease !important;
}

div.wpforms-container-full .wpforms-form button[type=submit]:hover {
  background-color: #e04e00 !important;
}

/* Responsividade Básica */
@media (max-width: 992px) {
  .home-contact {
    padding: 2rem 0;
  }

  .contact-inner {
    flex-direction: column;
    gap: 50px;
  }

  .contact-info-col,
  .contact-form-col {
    max-width: 100%;
  }
}

/* ==========================================================================
   Rail Navbar (Progresso / Navegação)
   ========================================================================== */
.rail-navbar {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  /* Espaçamento entre as pílulas */
  z-index: 999;
}

.rail-dot {
  width: 5px;
  /* Espessura da pílula */
  height: 20px;
  /* Altura base da pílula */
  border-radius: 10px;
  border: none;
  cursor: pointer;
  padding: 0;

  /* Estado inativo (Dessaturado e transparente) */
  opacity: 0.3;
  filter: saturate(0.2);
  transform: scaleY(1);
  transform-origin: center;
  transition: opacity 0.4s ease, filter 0.4s ease, transform 0.4s ease;
}

.rail-dot:hover {
  opacity: 0.7;
  filter: saturate(0.6);
}

/* Estado ativo da seção atual */
.rail-dot.is-active {
  opacity: 1;
  filter: saturate(1);
  /* Cor total */
  transform: scaleY(1.4);
  /* Aumenta a altura suavemente */
}

/* Responsivo: oculta em telas muito pequenas para não atrapalhar a leitura */
@media (max-width: 768px) {
  .rail-navbar {
    display: none;
  }
}

/* ==========================================================================
   Image Modal (Lightbox)
   ========================================================================== */
.image-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;

  /* Escondido por padrão com transição suave */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.image-modal.is-active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);

  /* Efeito de zoom-in ao abrir */
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.image-modal.is-active .modal-content img {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 25px;
  right: 35px;
  background: transparent;
  border: none;
  color: #FFFFFF;
  font-size: 50px;
  font-weight: 300;
  cursor: pointer;
  z-index: 10000;
  line-height: 1;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: #E24F2A;
  /* Laranja de destaque */
}

/* 
   Feedback visual nas miniaturas originais 
   (Adicione isto próximo aos estilos do seu .inline-carousel)
*/
.inline-carousel img {
  cursor: pointer;
  transition: filter 0.3s ease, transform 0.3s ease;
}

.inline-carousel img:hover {
  filter: brightness(0.7);
  transform: scale(1.02);
}

.modal-content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
  max-height: 90vh;
}

.modal-caption {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 300;
  text-align: center;
  margin-top: 15px;
  padding: 0 20px;
}

.bottom-showcase-wrapper {
  position: relative;
  width: 100vw;
  height: 90vh;
  overflow: hidden;
  background-color: #1a1a1a;
}

.bottom-showcase-track {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.bottom-showcase-track::-webkit-scrollbar {
  display: none;
}

.bottom-showcase-slide {
  flex: 0 0 100vw;
  height: 90vh;
  scroll-snap-align: start;
}

.bottom-showcase-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Setas de Navegação */
.bottom-showcase-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: white;
  border: none;
  font-size: 2rem;
  padding: 15px 20px;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s;
}

.bottom-showcase-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

.bottom-showcase-prev {
  left: 20px;
}

.bottom-showcase-next {
  right: 20px;
}

/* DESKTOP: Oculta as fotos em formato retrato */
.bottom-showcase-slide.is-portrait {
  display: none;
}

.bottom-showcase-slide.is-landscape {
  display: flex;
  /* ou block, dependendo do seu flexbox atual */
}

@media (max-width: 768px) {
  .bottom-showcase-btn {
    display: none;
  }

  .bottom-showcase-slide.is-landscape {
    display: none;
  }

  .bottom-showcase-slide.is-portrait {
    display: flex;
  }
}