/* 1. Botão Principal (hero + pilares) */
  #bttn,
  .site-bttn {
    position: relative !important;
    overflow: hidden !important; 
    isolation: isolate !important; /* Impede o vazamento do brilho */
    display: inline-flex !important; 
    align-items: center !important;
    justify-content: center !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    cursor: pointer;
  }

  #bttn:hover,
  .site-bttn:hover {
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important;
  }

  /* 2. O Efeito de Glare (Brilho) */
  #bttn::before,
  .site-bttn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0; 
    width: 150%; 
    height: 100%;
    background: linear-gradient(
      120deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.4) 50%, 
      rgba(255, 255, 255, 0) 100%
    );
    transform: translateX(-150%) skewX(-25deg); 
    z-index: -1; 
    pointer-events: none; 
    transition: transform 0.6s ease-in-out !important; 
  }

  #bttn:hover::before,
  .site-bttn:hover::before {
    transform: translateX(100%) skewX(-25deg) !important; 
  }

  /* 3. Bloco da seta */
  #bttn .bttn-arrow-block,
  .site-bttn .bttn-arrow-block {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 0 !important;
    flex-shrink: 0 !important;
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) !important;
    position: relative;
  }

  #bttn .bttn-arrow-block svg,
  .site-bttn .bttn-arrow-block svg {
    display: block !important;
    width: 11px !important;
    height: 11px !important;
  }

  /* 4. Hover: ↗ → (frente / direita), não para cima */
  #bttn:hover .bttn-arrow-block,
  .site-bttn:hover .bttn-arrow-block {
    transform: rotate(45deg) !important;
  }

/* =========================================
     1. AS ANIMAÇÕES (KEYFRAMES)
     ========================================= */
     
  /* Animação A: Sobe e desce suavemente (20px) */
  @keyframes float-organic {
    0%, 100% {
      transform: translateY(0px);
    }
    50% {
      transform: translateY(-20px);
    }
  }

  /* Animação B: Sobe e desce (15px) com uma leve inclinação de 2 graus */
  @keyframes float-rotate {
    0%, 100% {
      transform: translateY(0px) rotate(0deg);
    }
    50% {
      transform: translateY(-15px) rotate(2deg);
    }
  }

  /* =========================================
     2. APLICANDO NAS CLASSES
     ========================================= */

  /* Prepara as imagens para ter uma animação lisa, forçando o uso da placa de vídeo */
  .concrete-img {
    will-change: transform !important; 
  }

  /* Imagem 1: Flutuação padrão, ciclo de 6 segundos */
  .concrete-img.is-1 {
    animation: float-organic 6s ease-in-out infinite !important;
  }

  /* Imagem 2: Usa a animação com rotação, mais lenta (8s). 
     O delay de -3s faz com que ela já comece do meio, quebrando a sincronia com a is-1 */
  .concrete-img.is-2 {
    animation: float-rotate 8s ease-in-out infinite !important;
    animation-delay: -3s !important; 
  }

  /* Imagem 3: Volta para a flutuação padrão, ciclo de 7 segundos.
     Delay de -5s garante que o ritmo dela seja totalmente diferente das outras duas */
  .concrete-img.is-3 {
    animation: float-organic 7s ease-in-out infinite !important;
    animation-delay: -5s !important;
  }

/* 1. Pega o Wrapper da sua coleção pelo ID ou Classe */
  #sua-colecao-wrapper {
    /* Ativa o snap horizontal obrigatório */
    scroll-snap-type: x mandatory;
    /* Esconde a barra de rolagem no Firefox e IE */
    scrollbar-width: none; 
    -ms-overflow-style: none;
    /* Suaviza o scroll no mousewheel/trackpad */
    scroll-behavior: smooth;
  }

  /* Esconde a barra de rolagem no Chrome/Safari/Edge */
  #sua-colecao-wrapper::-webkit-scrollbar {
    display: none;
  }

  /* 2. Pega os Itens da coleção */
  .seu-collection-item {
    /* Faz o item "travar" no centro (ou 'start') da tela */
    scroll-snap-align: center; 
  }

/* Transforma o contêiner em uma trilha de rolagem horizontal */
#slider {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  overflow-x: auto;
  overflow-y: hidden;
  gap: 32px; /* Espaçamento entre os cards - ajuste conforme seu design */
  padding-bottom: 24px; /* Dá respiro para as sombras dos cards não cortarem */
  
  /* Comportamento magnético do slider */
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  
  /* Esconde a barra de rolagem para um visual mais limpo */
  -ms-overflow-style: none;  /* IE e Edge */
  scrollbar-width: none;  /* Firefox */
  cursor: grab; /* Indica que pode ser arrastado */
}

#slider::-webkit-scrollbar {
  display: none; /* Esconde no Chrome, Safari e Opera */
}

#slider:active {
  cursor: grabbing; /* Muda o cursor quando o usuário clica para arrastar */
}

/* Configuração individual dos cards */
.slider-item {
  flex: 0 0 auto !important; /* Impede que os itens encolham */
  width: 320px; /* Largura padrão do card no desktop */
  scroll-snap-align: start; /* O magnetismo "trava" no início de cada card */
}

/* Ajuste responsivo para mobile */
@media (max-width: 768px) {
  .slider-item {
    width: 85vw; /* No celular, o card ocupa quase a tela toda, deixando uma pontinha do próximo visível */
  }
}

/* Posicionamento dos controles */
.slider-controls {
  display: flex;
  gap: 16px;
  justify-content: flex-end; /* Alinha as setas à direita */
  margin-top: 24px;
  padding-right: 16px; /* Ajuste conforme a margem do seu layout */
}

/* Estilo premium das setas */
.slider-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #0A0A0A; /* Tom escuro para contrastar */
  color: #FFFFFF;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.slider-arrow svg {
  width: 20px;
  height: 20px;
}

.slider-arrow:hover {
  background-color: #333333;
  transform: scale(1.05);
}

.slider-arrow:active {
  transform: scale(0.95);
}

/* Hero — wrapper do case em destaque (fixo no bottom da seção) */
.hero-featured-wrap {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  max-width: 1280px;
  z-index: 20;
}

/* Hero — card case em destaque (vidro, estilo pilares) */
.hero-featured-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  width: 320px;
  min-height: 220px;
  padding: 32px 48px 32px 32px;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background-color: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  isolation: isolate;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.45s ease,
    border-color 0.45s ease,
    box-shadow 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-featured-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 90% 55% at 50% 0%, rgba(255, 255, 255, 0.07), transparent 62%),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.055) 0%,
      rgba(255, 255, 255, 0.02) 42%,
      rgba(0, 0, 0, 0.06) 100%
    );
  transition: opacity 0.45s ease;
}

.hero-featured-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.45),
    transparent
  );
  opacity: 0;
  z-index: 2;
  transition: opacity 0.45s ease;
}

.hero-featured-arrow {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 6px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: translate(8px, -8px) scale(0.85);
  transition:
    opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.4s ease;
}

.hero-featured-arrow svg {
  display: block;
}

.hero-featured-label,
.hero-featured-copy {
  position: relative;
  z-index: 1;
}

.hero-featured-label {
  margin: 0;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.4);
}

.hero-featured-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-featured-title {
  margin: 0;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #ffffff;
  font-weight: 400;
}

.hero-featured-excerpt {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.6);
  max-width: 90%;
}

.hero-featured-card:hover,
.hero-featured-card:focus-visible {
  transform: translateY(-6px);
  background-color: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  outline: none;
}

.hero-featured-card:hover::before,
.hero-featured-card:focus-visible::before {
  opacity: 1;
}

.hero-featured-card:hover::after,
.hero-featured-card:focus-visible::after {
  background:
    radial-gradient(ellipse 90% 55% at 50% 0%, rgba(255, 255, 255, 0.11), transparent 62%),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.09) 0%,
      rgba(255, 255, 255, 0.035) 42%,
      rgba(0, 0, 0, 0.04) 100%
    );
}

.hero-featured-card:hover .hero-featured-arrow,
.hero-featured-card:focus-visible .hero-featured-arrow {
  opacity: 1;
  transform: translate(0, 0) scale(1) rotate(-6deg);
  background: rgba(255, 255, 255, 0.22);
}

.hero-featured-card:hover .hero-featured-copy,
.hero-featured-card:focus-visible .hero-featured-copy {
  transform: translateY(-2px);
}

.hero-featured-card:hover .hero-featured-excerpt,
.hero-featured-card:focus-visible .hero-featured-excerpt {
  color: rgba(255, 255, 255, 0.75);
}

@media (prefers-reduced-motion: reduce) {
  .hero-featured-card,
  .hero-featured-card::before,
  .hero-featured-card::after,
  .hero-featured-arrow,
  .hero-featured-copy {
    transition: none;
  }

  .hero-featured-card:hover,
  .hero-featured-card:focus-visible {
    transform: none;
  }

  .hero-featured-card:hover .hero-featured-arrow,
  .hero-featured-card:focus-visible .hero-featured-arrow {
    transform: none;
    opacity: 0;
  }
}

/* Cards — 3 pilares (Metodologia Intelligence) */
.pilar-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background-color: rgba(255, 255, 255, 0.03) !important;
  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.45s ease,
    border-color 0.45s ease,
    box-shadow 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.pilar-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 90% 55% at 50% 0%, rgba(255, 255, 255, 0.07), transparent 62%),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.055) 0%,
      rgba(255, 255, 255, 0.02) 42%,
      rgba(0, 0, 0, 0.06) 100%
    );
  transition: opacity 0.45s ease;
}

.pilar-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.45),
    transparent
  );
  opacity: 0;
  transition: opacity 0.45s ease;
  z-index: 2;
}

.pilar-card-label,
.pilar-card-copy {
  position: relative;
  z-index: 1;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.pilar-card-copy p {
  transition: opacity 0.45s ease;
}

.pilar-card:hover,
.pilar-card:focus-within {
  transform: translateY(-6px);
  background-color: rgba(255, 255, 255, 0.055) !important;
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.pilar-card:hover::after,
.pilar-card:focus-within::after {
  background:
    radial-gradient(ellipse 90% 55% at 50% 0%, rgba(255, 255, 255, 0.11), transparent 62%),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.09) 0%,
      rgba(255, 255, 255, 0.035) 42%,
      rgba(0, 0, 0, 0.04) 100%
    );
}

.pilar-card:hover::before,
.pilar-card:focus-within::before {
  opacity: 1;
}

.pilar-card:hover .pilar-card-label,
.pilar-card:focus-within .pilar-card-label {
  transform: translateY(-3px);
}

.pilar-card:hover .pilar-card-copy,
.pilar-card:focus-within .pilar-card-copy {
  transform: translateY(-4px);
}

.pilar-card:hover .pilar-card-copy p:last-child,
.pilar-card:focus-within .pilar-card-copy p:last-child {
  opacity: 0.85;
}

@media (prefers-reduced-motion: reduce) {
  .pilar-card,
  .pilar-card::before,
  .pilar-card::after,
  .pilar-card-label,
  .pilar-card-copy,
  .pilar-card-copy p {
    transition: none;
  }

  .pilar-card:hover,
  .pilar-card:focus-within {
    transform: none;
  }
}
