/* Start custom CSS *//* ===================================================
   SAS VIKINGS - DESKTOP & GLOBAL ENHANCEMENTS
   =================================================== */

html {
  scroll-behavior: smooth !important;
}

#inicio, #estrategia, #arsenal, #metodo, #fundador, #diagnostico {
  scroll-margin-top: 90px !important;
}

/* 1. Ocultar Cabeçalho e Rodapé do Tema Hello Elementor (Segurança Extra) */
header#site-header, 
footer#site-footer, 
div.page-header, 
h1.entry-title {
  display: none !important;
}

/* 2. Animação 3D do Telemóvel no Hero */
@keyframes floatPhone3D {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(0.5deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

.e-4961522e-d5d9d99, #inicio img {
  animation: floatPhone3D 5s ease-in-out infinite !important;
}

/* 3. Links do Rodapé */
footer a {
  color: #A0AEC0 !important;
  text-decoration: none !important;
  transition: color 0.25s ease !important;
}
footer a:hover {
  color: #D4AF37 !important;
}

/* 4. Estilização do Formulário (Foco e Opções) */
#diagnostico input:focus, 
#diagnostico select:focus {
  border-color: #D4AF37 !important;
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.35) !important;
}
#diagnostico input::placeholder {
  color: #718096 !important;
  opacity: 1 !important;
}
#diagnostico select option {
  background-color: #0A0A0A !important;
  color: #FFFFFF !important;
}

/* 5. Botão Flutuante do WhatsApp */
@keyframes sasPulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7), 0 8px 24px rgba(0, 0, 0, 0.5); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0), 0 8px 24px rgba(0, 0, 0, 0.5); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0), 0 8px 24px rgba(0, 0, 0, 0.5); }
}

.sas-whatsapp-float {
  position: fixed !important;
  right: 28px !important;
  bottom: 28px !important;
  width: 58px !important;
  height: 58px !important;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1.5px solid rgba(212, 175, 55, 0.6) !important;
  z-index: 9999 !important;
  text-decoration: none !important;
  animation: sasPulse 2.5s infinite !important;
}
.sas-whatsapp-float svg {
  width: 30px !important;
  height: 30px !important;
  fill: #FFFFFF !important;
}

/* ===================================================
   CORREÇÃO DEFINITIVA PARA CELULAR (< 768px)
   =================================================== */
@media (max-width: 767px) {

  /* 1. CABEÇALHO MOBILE: Ocultar menu/botão e centralizar logo */
  header nav,
  header a.e-button-base,
  .e-26e7beb2-1b8b447,
  .e-f8fa2b7-6a56bb5 {
    display: none !important;
  }
  header, .e-4cf8a516-60d1d86 {
    padding: 14px 20px !important;
    justify-content: center !important;
  }

  /* 2. SECÇÕES GERAIS: Reduzir padding lateral para não esmagar o conteúdo */
  #inicio, #estrategia, #arsenal, #metodo, #fundador, #diagnostico, footer {
    padding-left: 16px !important;
    padding-right: 16px !important;
    padding-top: 56px !important;
    padding-bottom: 56px !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  /* 3. HERO SECTION (#inicio): Empilhar texto e telemóvel, ajustar fonte e botão */
  #inicio, .e-74d30317-2fa4ad4 {
    flex-direction: column !important;
    align-items: center !important;
    gap: 32px !important;
  }
  #inicio > div, 
  .e-63f5ee28-5b9d944, 
  .e-127eb62a-bf99564,
  .e-44e1a654-2e9ea10 {
    width: 100% !important;
    max-width: 100% !important;
    flex-basis: 100% !important;
    align-items: center !important;
    text-align: center !important;
  }
  #inicio h1 {
    font-size: 28px !important;
    line-height: 1.2 !important;
    text-align: center !important;
  }
  #inicio p {
    font-size: 16px !important;
    text-align: center !important;
  }
  #inicio a.e-button-base {
    width: 100% !important;
    padding: 16px 20px !important;
    font-size: 14px !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }
  #inicio img, .e-4961522e-d5d9d99 {
    max-width: 260px !important;
    margin: 0 auto !important;
  }

  /* 4. TÍTULOS H2 DAS SECÇÕES: Evitar que quebrem em 5 linhas */
  #estrategia h2, #arsenal h2, #metodo h2, #diagnostico h2 {
    font-size: 24px !important;
    line-height: 1.25 !important;
  }

  /* 5. GRELHAS DE CARTÕES (Estratégia, Arsenal e Método): Forçar 1 coluna (100% largura) */
  .e-67f797c8-d329345,
  .e-2222ba1c-00200c8,
  .e-29ffdec4-6a18582,
  #estrategia > div,
  #arsenal > div,
  #metodo > div {
    flex-direction: column !important;
    gap: 20px !important;
    width: 100% !important;
  }

  .e-4ff71722-ccc0c18, .e-1ccf8dfb-d70a274,
  .e-7db6cb78-7cefe5a, .e-7640b9d8-b813ce4, .e-4b868a41-4c1a79e,
  .e-4be5942e-8196fcd, .e-51632c8a-41f96d4, .e-45340191-ee731c3, .e-446826d0-672fc76 {
    width: 100% !important;
    max-width: 100% !important;
    flex-basis: auto !important;
    padding: 28px 20px !important;
    box-sizing: border-box !important;
  }

  /* 6. CARTA DO FUNDADOR (#fundador): Empilhar foto em cima e texto em baixo */
  .e-284c9f3f-9b87d71,
  #fundador > div {
    flex-direction: column !important;
    padding: 28px 20px !important;
    gap: 24px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .e-23ea98bc-6859ef5,
  .e-d732ac2-ff8be5a,
  #fundador > div > div {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    flex-basis: auto !important;
    align-items: center !important;
    text-align: center !important;
  }
  #fundador img {
    width: 220px !important;
    height: auto !important;
    margin: 0 auto 12px auto !important;
  }
  #fundador h2, #fundador h4, #fundador p, #fundador span {
    text-align: center !important;
  }

  /* 7. FORMULÁRIO DE DIAGNÓSTICO (#diagnostico): Allargamento da caixa e botão */
  .e-55a73765-86dc85e,
  #diagnostico > div {
    padding: 24px 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  #diagnostico form > div {
    flex-direction: column !important;
    gap: 16px !important;
    width: 100% !important;
  }
  #diagnostico form > div > div {
    width: 100% !important;
    flex-basis: auto !important;
  }
  #diagnostico button[type="submit"], .e-2ccd3035-353ddba {
    font-size: 13px !important;
    padding: 16px 12px !important;
    white-space: normal !important;
    line-height: 1.3 !important;
    height: auto !important;
  }

  /* 8. RODAPÉ (footer): Empilhar as 3 colunas e os direitos de autor */
  .e-7c74b8c7-3f0f0ee,
  .e-21189c34-8a3cf94,
  footer > div {
    flex-direction: column !important;
    gap: 28px !important;
    align-items: flex-start !important;
    text-align: left !important;
    width: 100% !important;
  }
  footer {
    padding-bottom: 100px !important; /* Espaço para a barra fixa não tapar o rodapé */
  }

  /* 9. BARRA FIXA INFERIOR E BOTÃO WHATSAPP */
  .e-69aa4b74-ca663f3 {
    display: flex !important;
  }
  .sas-whatsapp-float {
    right: 16px !important;
    bottom: 76px !important;
    width: 52px !important;
    height: 52px !important;
  }
}/* End custom CSS */