/* em css/styles.css, no topo do ficheiro */
@keyframes onAutoFillStart {
  from { }
  to { }
}
input:-webkit-autofill {
  animation-name: onAutoFillStart;
  animation-duration: 0.1s;
  /* opcional: animation-delay: 0.01s; */
}


h1 {
  font-size: 2.25rem;    /* ex. 36px */
  line-height: 1.2;
  margin-top: 0;
  margin-bottom: 0.75rem; /* 12px */
}
@media (min-width: 768px) {
  h1 {
    font-size: 3rem;     /* ex. 48px em desktop */
  }

}

:root {
  /*--green-bright: #1dd1a1;
  --green-dark:   #10b981;
  --blue-accent:	  #7aa9f5;*/
   --blue-accent: #3B82F6; 
  --bg-light:     #c3faea;
  
    /* fundo de navbar e rodapé */
  --green-dark:  #045f48; /* ex.: #045f48 ↦ contraste branco 7.0:1 */
  /* cor de destaque (títulos, botões ativos) */
  /*--green-bright: #0c6b53; *//* ex.: #0c6b53 ↦ contraste branco 5.2:1 (botões grandes) */
  --green-bright: #0eab55;
}

/* ************************************************** */
/*   Floating Icons — SEMPRE visíveis no mobile       */
/* ************************************************** */
#floatingIcons {
  position: fixed !important;
  right: 1.5rem !important;
  bottom: 1.5rem !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 0.75rem !important;
  z-index: 9999 !important;
}

.fabtn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background-color: var(--green-bright);
  color: white;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  border: none;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s, opacity 0.3s;
}

.fabtn:hover {
  transform: translateY(-2px);
}

/* Specific back-to-top visibility toggles */
#backToTop.hide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, pointer-events 0.3s;
}
#backToTop.show {
  opacity: 1;
  pointer-events: auto;
}

/* Outros estilos… */
body {
  font-family: 'Segoe UI', sans-serif;
  background-color: var(--bg-light);
}
[x-cloak] { display: none !important; }

.elemento {
  transition-delay: 2700ms;  /* ou 2.7s */
}

/* === Override para forçar sempre visibilidade em ecrãs pequenos === */
@media (max-width: 640px) {
  /* garante todos os .fabtn dentro de #floatingIcons */
  #floatingIcons .fabtn {
    display: flex !important;
    opacity: 1     !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
}
#backToTop.hide {
  opacity: 0           !important;
  pointer-events: none !important;
}
#backToTop.show {
  opacity: 1           !important;
  pointer-events: auto !important;
}
  .error-message {
    color: #dc2626;
    font-size: .875rem;
    margin-top: .25rem;
    display: none;
  }

  input[aria-invalid="true"],
  textarea[aria-invalid="true"],
  select[aria-invalid="true"] {
    border-color: #dc2626;
  }

  .with-icon {
    padding-left: 2.5rem;
  }
  /* Garantir que o campo de telemóvel ocupe toda a largura */
#telemovel {
  width: 100% !important;  /* Garantir que ocupa 100% da largura disponível */
  min-width: 0 !important; /* Ajuste para evitar problemas de largura */
 
}

/* Ajustar contêiner do telemóvel */
.relative {
  width: 100%;
}

/* Garantir que o input de telefone tem o mesmo estilo que os outros campos */
input[type="tel"],
input[type="email"] {
  width: 100%; /* Garante que todos os campos ocupem 100% da largura */
  min-width: 0 !important; /* Garante que não há conflito com largura mínima */
}



/* podes colocar no teu styles.css ou num <style> global */
#floatingLang { width: 3.5rem; }
#floatingLang.open { width: auto; }
#floatingLang #langList { min-width: 10rem; }

/* largura inicial reduzida, só botão */
#floatingLang { width: 3.5rem; }
/* quando aberto, alarga para caber o widget */
#floatingLang.open { width: auto; }
/* garante que o menu não esconde o conteúdo */
#floatingLang #langList { min-width: 10rem; }
/* ajusta overflow para ver flags e select */
#floatingLang { overflow: visible; }

/* força o menu2 a estar visível dentro do teu wrapper */
#langList .goog-te-menu2 {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* opcional: remove largura fixa do menu2 */
.goog-te-menu2 {
  width: auto !important;
  min-width: 10rem !important;
}
  .goog-te-gadget, 
  .goog-te-combo,
  #goog-gt-tt,
  .goog-te-banner-frame { display: none !important; }
 
    /* ocultar o banner Google Translate */
    body > .skiptranslate { display: none !important; }
    .goog-te-banner-frame.skiptranslate { display: none !important; }
    body { top: 0 !important; }

    /* fundo preto / texto branco no dropdown e botão */
    #floatingLang #langToggle {
      background-color: black !important;
      color: white !important;
      border-color: #374151 !important;
    }
    #floatingLang #langList {
      background-color: black !important;
      border-color: #374151 !important;
    }
    #floatingLang .lang-btn {
      color: white !important;
    }
    #floatingLang .lang-btn:hover {
      background-color: #1f2937 !important;
    }
	
	
  /* ——— Ocultar Google Translate banner em TODOS os ecrãs ——— */
.skiptranslate,
.goog-te-banner-frame.skiptranslate,
body > .skiptranslate,
iframe.goog-te-banner-frame {
  display: none !important;
  visibility: hidden !important;
}

/* Anular o top/margin-top que o Google Translate aplica */
html, 
body {
  top: 0 !important;
  margin-top: 0 !important;
    min-height: 100vh;
  overflow-x: hidden;
   
}

  img#langFlag {
  aspect-ratio: 4 / 3;
  width: 20px;
  height: auto;
}

nav {
  min-height: 3rem;
}

/* Só renderiza o content quando entrar no viewport */
.heavy-subtree {
  content-visibility: auto;
  contain-intrinsic-size: 200px; /* espaço reservado */
}




