/*!
 * Start Bootstrap - Agency v3.3.7+1 (http://startbootstrap.com/template-overviews/agency)
 * Copyright 2013-2016 Start Bootstrap
 * Licensed under MIT (https://github.com/BlackrockDigital/startbootstrap/blob/gh-pages/LICENSE)
 */

/* ------------------------------------------------------------------
   BASE / TIPOGRAFIA
------------------------------------------------------------------- */

html {
  font-size: 100%; /* ~16px */
}

body {
  overflow-x: hidden;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
               "Helvetica Neue", Arial, sans-serif;
  color: #1A2940;
  background-color: white;
  font-size: 1rem;     /* 16px */
  line-height: 1.6;
}

/* Utilitários de texto */
.text-muted {
  color: #777777;
}
.text-primary {
  color: #B2C9FF;
}

.fa-5x {
  font-size: 5em;
}

.text-blue {}

/* Cabeçalhos */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Quicksand", "Inter", sans-serif;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-top: 0;
}

/* h1 principal – cresce de ~30px a ~44px */
h1 {
  line-height: 1.2;
  letter-spacing: 0.04em;
  font-size: clamp(1.9rem, 1.3rem + 1.4vw, 2.75rem);
  margin-bottom: 1.8rem;
}

/* h2 – cresce de ~24px a ~32px */
h2 {
  font-size: clamp(1.5rem, 1.2rem + 0.7vw, 2rem);
  line-height: 1.3;
  margin-bottom: 1.3rem;
}

/* Texto normal */

p {
  font-size: 1rem;  /* ~16px */
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Texto pequeno / detalhes */
p.small {
  font-size: 0.875rem; /* 14px */
  line-height: 1.5;
}

/* Texto dentro de modais – mais compacto */
div.modal p {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 0;
}

/* Labels / tags */
label,
.label {
  font-size: 0.75rem;   /* 12px */
  font-weight: 600;
  margin-bottom: 10px;
  padding: 0;
  color: #9D71E8;
  text-transform: uppercase;
}

/* Prelabel (antes de títulos) */
span.prelabel {
  font-size: 0.8rem;
  line-height: 1.3;
  font-weight: 600;
  text-transform: uppercase;
}

/* Ajustes a partir de tablet */
@media (min-width: 768px) {
  body {
    font-size: 1.0625rem; /* ~17px */
  }

  p {
    font-size: 1.0625rem;
  }

  p.small {
    font-size: 0.9rem;
  }

  span.prelabel {
    font-size: 0.9rem;
  }
}

/* Desktop médio em diante */
@media (min-width: 1200px) {
  body {
    font-size: 1.125rem; /* ~18px */
  }

  p {
    font-size: 1.125rem;
  }

  p.small {
    font-size: 0.95rem;
  }
}

/* Links */

a,
a:hover,
a:focus,
a:active,
a.active {
  outline: none;
  color: #B2C9FF;
  text-decoration: none;
}

a {
  color: #9D71E8;
}


/* ------------------------------------------------------------------
   CORES / UTILITÁRIOS
------------------------------------------------------------------- */

.img-centered {
  margin: 0 auto;
}
.bg-light-gray {
  background-color: #eeeeee;
}
.bg-darkest-gray {
  background-color: #222222;
}

/* ------------------------------------------------------------------
   BOTÕES
------------------------------------------------------------------- */

.btn-primary {
  color: white;
  background-color: #B2C9FF;
  border-color: #B2C9FF;
  font-family: "Source Sans 3", "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
  text-transform: uppercase;
  font-weight: 700;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.open .dropdown-toggle.btn-primary {
  color: white;
  background-color: #9932cc;
  border-color: #9932cc;
}
.btn-primary:active,
.btn-primary.active,
.open .dropdown-toggle.btn-primary {
  background-image: none;
}
.btn-primary.disabled,
.btn-primary[disabled],
fieldset[disabled] .btn-primary,
.btn-primary.disabled:hover,
.btn-primary[disabled]:hover,
fieldset[disabled] .btn-primary:hover,
.btn-primary.disabled:focus,
.btn-primary[disabled]:focus,
fieldset[disabled] .btn-primary:focus,
.btn-primary.disabled:active,
.btn-primary[disabled]:active,
fieldset[disabled] .btn-primary:active,
.btn-primary.disabled.active,
.btn-primary[disabled].active,
fieldset[disabled] .btn-primary.active {
  background-color: #B2C9FF;
  border-color: #B2C9FF;
}
.btn-primary .badge {
  color: #B2C9FF;
  background-color: white;
}

.btn-xl {
  color: white;
  background-color: #B2C9FF;
  border-color: #B2C9FF;
  font-family: "Source Sans 3", "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
  text-transform: uppercase;
  font-weight: 700;
  border-radius: 3px;
  font-size: 1rem;
  line-height: 1.3;
  padding: 20px 40px;
}
.btn-xl:hover,
.btn-xl:focus,
.btn-xl:active,
.btn-xl.active,
.open .dropdown-toggle.btn-xl {
  color: white;
  background-color: #9932cc;
  border-color: #9932cc;
}
.btn-xl:active,
.btn-xl.active,
.open .dropdown-toggle.btn-xl {
  background-image: none;
}
.btn-xl.disabled,
.btn-xl[disabled],
fieldset[disabled] .btn-xl,
.btn-xl.disabled:hover,
.btn-xl[disabled]:hover,
fieldset[disabled] .btn-xl:hover,
.btn-xl.disabled:focus,
.btn-xl[disabled]:focus,
fieldset[disabled] .btn-xl:focus,
.btn-xl.disabled:active,
.btn-xl[disabled]:active,
fieldset[disabled] .btn-xl:active,
.btn-xl.disabled.active,
.btn-xl[disabled].active,
fieldset[disabled] .btn-xl.active {
  background-color: #B2C9FF;
  border-color: #B2C9FF;
}
.btn-xl .badge {
  color: #B2C9FF;
  background-color: white;
}

/* Estados genéricos */
.btn.disabled {
  opacity: 0.1;
}

.btn-light {
  border: 1px solid;
  color: white;
  background-color: transparent;
  transition: border-color .15s cubic-bezier(.39,.575,.565,1), color .15s cubic-bezier(.39,.575,.565,1);
  border-radius: 4px;
}
.btn-light:hover,
.btn-light:focus {
  color: #B2C9FF;
  border-color: #B2C9FF;
  background-color: transparent;
}

.btn-light-inv {
  border: 1px solid;
  color: white;
  background-color: transparent;
  transition: border-color .15s cubic-bezier(.39,.575,.565,1), color .15s cubic-bezier(.39,.575,.565,1);
  border-radius: 4px;
}
.btn-light-inv:hover,
.btn-light-inv:focus {
  color: #9D71E8;
  border-color: #9D71E8;
  background-color: transparent;
}

.btn-dark-inv {
  border: 1px solid #9D71E8;
  color: white;
  background-color: #9D71E8;
  transition: background-color .15s cubic-bezier(.39,.575,.565,1), color .15s cubic-bezier(.39,.575,.565,1);
  border-radius: 4px;
}
.btn-dark-inv:hover,
.btn-dark-inv:focus {
  color: #9D71E8;
  background-color: transparent;
}

.btn-dark {
  border: 1px solid #9D71E8;
  color: #9D71E8;
  background-color: transparent;
  transition: border-color .15s cubic-bezier(.39,.575,.565,1), color .15s cubic-bezier(.39,.575,.565,1);
  border-radius: 4px;
}
.btn-dark:hover,
.btn-dark:focus {
  color: #B2C9FF;
  border-color: #B2C9FF;
  background-color: transparent;
}

.btn-logout:hover {
  background-color: white;
}

.btn:focus,
.btn:active,
.btn.active,
.btn:active:focus {
  outline: none;
}

/* ------------------------------------------------------------------
   NAVBAR
------------------------------------------------------------------- */

/* Base da navbar (usada em #mainNav) */
.navbar-custom {
  background-color: #F2F7FF;   /* versão clara por defeito */
  border: none;
  transition: all 0.3s ease;
  z-index: 1030;
}

/* Versões de cor */
.navbar-custom.dark {
  background-color: #9D71E8;
}
.navbar-custom.light {
  background-color: #F2F7FF;
}

/* Dimensões e padding da barra principal */
#mainNav.navbar-custom {
  padding: 12px 12px;
  min-height: 94px;            /* ~70px logo + padding */
}

#mainNav.navbar-custom.nav-shrink {
  padding: 8px 8px;
  min-height: 60px;            /* > logo 45px */
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

/* Logo: 70px full / 45px shrink */
#mainNav.navbar-custom img.logo {
  height: 70px;
  transition: all 0.3s;
}
#mainNav.navbar-custom.nav-shrink img.logo {
  height: 45px;
}

/* Marca / logo sem padding vertical extra */
#mainNav .navbar-brand {
  padding: 0 15px;
  height: auto;
}

/* Collapse Bootstrap 3 */
.navbar-custom .navbar-collapse {
  border-color: rgba(255, 255, 255, 0.02);
}

/* Botão mobile (Bootstrap 3) */
.navbar-custom .navbar-toggle {
  border: 1px solid rgba(255,255,255,0.8);
  background-color: transparent;
  font-family: "Source Sans 3", "Helvetica Neue", Helvetica, Arial, sans-serif;
  text-transform: uppercase;
  font-size: 0.9rem;
  font-weight: 300;
  margin: 0;
  color: white;
  padding: 6px 10px;
}
.navbar-custom.light .navbar-toggle {
  border-color: #9D71E8;
  color: #9D71E8;
}
.navbar-custom .navbar-toggle:hover,
.navbar-custom .navbar-toggle:focus {
  background-color: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.9);
  color: white;
}
/* barras do hamburger */
.navbar-custom .navbar-toggle .icon-bar {
  background-color: white;
}
.navbar-custom.light .navbar-toggle .icon-bar {
  background-color: #9D71E8;
}

/* Links base */
.navbar-custom .nav li a {
  font-family: "Source Sans 3", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: 1.05rem;
  line-height: 1.4;
  color: #9D71E8;
  padding: 12px 0 6px;
  margin: 0 15px;
  border-bottom: 1px solid transparent;
  text-align: center;
  transition: padding 0.3s, border-color 0.3s, color 0.3s;
}

/* Encolher ligeiro do texto se quiseres */
.navbar-custom.nav-shrink .nav li a {
  font-size: 0.95rem;
}

/* Hover geral (exceto ajustes específicos para dropdown mais abaixo) */
.navbar-custom .nav li a:hover,
.navbar-custom .nav li a:focus {
  color: #9D71E8;
  border-bottom-color: #B2C9FF;
}

/* Versão escura: texto branco */
.navbar-custom.dark .nav li a {
  color: white;
}
.navbar-custom.dark .nav li a:hover,
.navbar-custom.dark .nav li a:focus {
  color: white;
  border-bottom-color: #B2C9FF;
}

/* Link ativo */
.navbar-custom .nav li a.active {
  font-weight: 600;
  outline: none;
}

/* ---------------------------------------------------------------
   DROPDOWN
--------------------------------------------------------------- */

@media (min-width: 768px) {
  #mainNav .mobile-logout {
    display: none !important;
  }
}

/* Desktop: estilo base do dropdown */
@media (min-width: 768px) {

  /* Base escondida com animação suave */
  .navbar-custom .navbar-nav > li > .dropdown-menu {
    min-width: 200px;
    margin: 0;
    border-radius: 10px;
    background-color: #F2F7FF;
    border: 0;
    display: block;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
    transition: all 0.25s ease;
  }

  /* Mostrar dropdown no hover ou se tiver .open */
  .navbar-custom .navbar-nav > li.dropdown:hover > .dropdown-menu,
  .navbar-custom .navbar-nav > li.open > .dropdown-menu {
    max-height: 400px;
    opacity: 1;
    visibility: visible;
  }

  /* Cabeçalho do utilizador dentro do dropdown */
  .dropdown-menu > li.user-header {
    padding: 10px;
    text-align: center;
    display: block;
  }
  .dropdown-menu > li.user-header > img {
    z-index: 5;
    height: 120px;
    width: 120px;
    margin: 15px;
    border: 0;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
  }

  .navbar-custom .dropdown-menu > .user-footer {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
}

/* Mobile: dropdown em lista normal, sem esconder */
@media (max-width: 767px) {
  .mobile-logout {
    display: block;
  }

  .navbar-nav .open .dropdown-menu {
    position: static;
    float: none;
    width: 100%;
    margin-top: 0;
    background-color: inherit;
    border: 0;
    box-shadow: none;
    display: block !important;
  }

  .navbar-nav .open .dropdown-menu > li > a {
    padding: 10px 15px;
    text-align: left;
  }
}

/* Remover fundo branco “feio” no item aberto */
.navbar-custom .navbar-nav > .open > a,
.navbar-custom .navbar-nav > .open > a:focus,
.navbar-custom .navbar-nav > .open > a:hover {
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* Versão escura (texto branco) */
.navbar-custom.dark .navbar-nav > .open > a,
.navbar-custom.dark .navbar-nav > .open > a:hover,
.navbar-custom.dark .navbar-nav > .open > a:focus {
  color: #fff !important;
}

/* Versão clara (texto roxo) */
.navbar-custom.light .navbar-nav > .open > a,
.navbar-custom.light .navbar-nav > .open > a:hover,
.navbar-custom.light .navbar-nav > .open > a:focus {
  color: #9D71E8 !important;
}

/* Dropdown por hover (desktop) sem mexer na cor do texto */
@media (min-width: 768px) {

  .navbar-custom .navbar-nav > li.dropdown:hover {
    position: relative;
  }

  /* Não alterar cor do texto do item dropdown no hover */
  .navbar-custom .navbar-nav > li.dropdown > a,
  .navbar-custom .navbar-nav > li.dropdown > a:hover,
  .navbar-custom .navbar-nav > li.dropdown > a:focus {
    background-color: transparent !important;
  }
}

/* Dropdown de navbar-right não sair fora do ecrã */
@media (min-width: 768px) {
  #mainNav.nav-shrink .navbar-right > li > .dropdown-menu {
    left: auto;
    right: 15px;
    max-width: calc(100vw - 30px);
  }
}

/* ---------------------------------------------------------------
   ALINHAMENTO VERTICAL (DESKTOP)
--------------------------------------------------------------- */

@media (min-width: 768px) {

  /* Container principal da navbar */
  #mainNav .container-premium {
    display: flex;
    align-items: center;      /* centra logo + menu na vertical */
    justify-content: space-between;
  }

  /* Header (logo + botão) */
  #mainNav .navbar-header {
    float: none;
    display: flex;
    align-items: center;
    margin: 0;
  }

  /* Zona de colapso com o menu */
  #mainNav .navbar-collapse {
    float: none;
    display: flex !important;
    justify-content: flex-end;
  }

  #mainNav .navbar-nav {
    float: none;
    display: flex;
    align-items: center;      /* links centrados na altura da barra */
    margin: 0;
    margin-right: 100px;
    transition: all 0.3s ease;
  }

  #mainNav.nav-shrink .navbar-nav {
    margin-right: 0;
  }

  /* Espaçamento dos links em full */
  #mainNav .navbar-nav > li > a {
    padding-top: 20px;
    padding-bottom: 20px;
  }

  /* Espaçamento dos links em shrink */
  #mainNav.nav-shrink .navbar-nav > li > a {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  #mainNav .navbar-nav > li.main-nav-appointment > a,
  #mainNav.nav-shrink .navbar-nav > li.main-nav-appointment > a {
    margin: 0 8px;
    padding: 9px 16px;
    color: #fff !important;
    background-color: #9D71E8;
    border: 1px solid #9D71E8;
    border-radius: 999px;
  }

  #mainNav .navbar-nav > li.main-nav-appointment > a:hover,
  #mainNav .navbar-nav > li.main-nav-appointment > a:focus {
    background-color: #8058c7;
    border-color: #8058c7;
  }
}

/* ---------------------------------------------------------------
   NAVBAR MOBILE – alinhar logo à esquerda e botão à direita
--------------------------------------------------------------- */
@media (max-width: 767px) {

  /* Voltar ao modelo clássico: header em bloco */
  #mainNav .navbar-header {
    display: block;
    float: none;
  }

  /* Logo à esquerda, com altura confortável */
  #mainNav .navbar-brand {
    float: left;
    padding: 8px 15px;
    height: auto;
    margin-left: 0;
  }

  /* Botão à direita, verticalmente centrado pela margem-top */
  #mainNav .navbar-toggle {
    display: block;
    float: right;
    margin-top: 18px;      /* ajusta a posição vertical */
    margin-right: 15px;
    padding: 6px 8px;      /* botão mais “compacto” mas sem matar as barras */
    width: auto;
    height: auto;
  }

  #mainNav .navbar-nav > li.main-nav-appointment > a {
    display: block;
    margin: 10px 15px;
    padding: 10px 16px;
    color: #fff !important;
    background-color: #9D71E8;
    border: 1px solid #9D71E8;
    border-radius: 999px;
  }

  /* NÃO mexemos nas .icon-bar – ficam com o default do Bootstrap 3 */
}

/* ------------------------------------------------------------------
   HEADER / HERO
------------------------------------------------------------------- */

header {
  color: white;
  background-color: #9D71E8;
  padding-top: 140px;
}

header h1 {
  margin-top: 10px;
  margin-bottom: 65px;
}

.header-image {
  height: 650px;
  background-color: black;
  background-image: url('../img/banner1.jpg');
  background-position: cover;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  background-repeat: no-repeat;
  position: absolute;
  top: 280px;
  border-bottom-left-radius: 50px;
  border-top-right-radius: 50px;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Barra roxa dentro do header-image */
.header-cta {
  background-color: #9D71E8;
  position: absolute;
  bottom: 0;
  width: 100%;
  color: white;
  padding: 30px 50px;
  border-bottom-left-radius: 50px;
}

/* Botão AGENDAR dentro da barra */
.header-cta-btn {
  font-size: 22px;
  letter-spacing: 3px;
  margin-top: 15px;
}

/* Helper para texto centrado em mobile */
@media (max-width: 767px) {
  .text-xs-center {
    text-align: center;
  }
}

/* ------------------------------------------------------------------
   HEADER IMAGE – VERSÃO MOBILE
------------------------------------------------------------------- */
@media (max-width: 767px) {

  /* Cartão com imagem visível + barra roxa em baixo */
  .header-image {
    position: relative;             /* já não é absolute -> não sobrepõe abaixo */
    top: 0;
    height: 400px;                  /* altura mais pequena para mobile */
    margin: -30px 0;
    border-bottom-left-radius: 30px;
    border-top-right-radius: 30px;
    overflow: hidden;
    background-position: center;
    background-size: cover;
  }

  /* Barra roxa colada ao fundo da imagem */
  .header-cta {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: auto;
    padding: 12px 16px;
    border-bottom-left-radius: 30px;
    border-top-right-radius: 0;     /* deixa o canto de cima com o radius da imagem */
  }

  .header-cta h2 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    text-align: center;
  }

  .header-cta-btn {
    width: 100%;
    margin-top: 10px;
    font-size: 18px;
    letter-spacing: 2px;
  }

  .text-xs-center {
    text-align: center;
  }
}



.faq-image {
  width: 50%;
  height: 550px;
  position: absolute;
  background-color: black;
  left: 125px;
  background-image: url('../img/banner2.jpg');
  background-position: cover;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  background-repeat: no-repeat;
}

@media (min-width: 768px) {
  header {
    min-height: 650px;
  }

  .header-image {
    height: 700px;
    top: 350px;
  }
}

/* ------------------------------------------------------------------
   SECTIONS / LAYOUT
------------------------------------------------------------------- */

section {
  padding: 100px 0;
  overflow-y: hidden;
  overflow-x: hidden;
}

section.no-gutters {
  padding: 0;
}

section.no-gutters > div > div {
  background: no-repeat center center absolute;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}

@media (max-width: 768px) {
  section.about > div > div,
  section#contacts > div > div {
    min-height: 300px;
  }
}

@media (min-width: 992px) {
  .row.is-flex .col-md-3 {
    width: 24.9%;
  }
}

@media (min-width: 768px) {
  .row.is-flex {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .row.is-flex:after {
    content: "";
    flex: auto;
  }

  .row.is-flex > [class*='col-'] {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
  }

  section.about .row.is-flex,
  section#contacts .row.is-flex {
    -webkit-flex-wrap: nowrap;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
  }
}

@media (min-width: 1200px) {
  section div.container,
  footer div.container {
    padding: 0 60px;
  }
}

/* Fundo azul claro */
section.bg-light {
  background-color: #F2F7FF;
}

a.bg-light {
  color: #B2C9FF;
}

a.bg-light:hover {
  color: #9D71E8;
}

section.bg-light h1 {
  color: #9D71E8;
}

section h2 {
  margin-bottom: 35px;
  margin-top: 0;
}

/* Secção específica: serviços */

#services {
  background: #F2F7FF;
  padding: 125px 0 50px;
  min-height: 650px;
}

/* Título da secção */
#services h1 {
  text-align: left;
  margin-bottom: 10px;
}

/* ------------------------------------------------------------------
   FOOTER
------------------------------------------------------------------- */

footer.footer-custom {
  color: white;
  padding: 30px 0;
  background-color: #9D71E8;
  border: 1px solid #9D71E8;
  background-clip: padding-box;
  background-position: bottom right;
  background-repeat: no-repeat;
  background-size: contain;
  font-size: 0.95rem;
  line-height: 1.5;
}

footer.footer-custom h4 {
  margin-bottom: 15px;
  font-size: 1rem;
  font-weight: bold;
}

.footer-custom a {
  color: #fff;
}
.footer-custom .col-divider {
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

footer {
  padding: 5px 0;
  text-align: center;
  background-color: #9D71E8;
  font-size: 0.875rem;
  letter-spacing: normal;
  color: white;
}
footer span.copyright {
  line-height: 40px;
  font-family: "Source Sans 3", "Helvetica Neue", Helvetica, Arial, sans-serif;
  text-transform: none;
}
footer ul.quicklinks {
  margin-bottom: 0;
  line-height: 40px;
  font-family: "Source Sans 3", "Helvetica Neue", Helvetica, Arial, sans-serif;
  text-transform: none;
}

footer a {
  color: white;
}

footer a:hover {
  text-decoration: underline;
  color: white;
}

@media (min-width: 768px) {
  footer {
    text-align: left;
  }
}


/* Só em mobile: separadores horizontais entre as secções */
@media (max-width: 767.98px) {
  .footer-custom .col-divider {
    border-left: none; /* tira o separador vertical */
    border-top: 1px solid rgba(255, 255, 255, 0.2); /* adiciona linha horizontal */
    margin-top: 20px;   /* afasta um pouco da secção anterior */
    padding-top: 20px;  /* dá espaço por cima do conteúdo */
  }
}


/* ------------------------------------------------------------------
   COMPONENTES VARIADOS
------------------------------------------------------------------- */

.service-heading {
  margin: 15px 0;
  text-transform: none;
}

.team-member {
  text-align: center;
  margin-bottom: 50px;
}
.team-member h4 {
  margin-top: 25px;
  margin-bottom: 0;
  text-transform: none;
}
.team-member p {
  margin-top: 0;
}

aside.clients img {
  margin: 50px auto;
}

/* Contactos */

section#contact {
  background-color: #222222;
  background-image: url('../img/map-image.png');
  background-position: center;
  background-repeat: no-repeat;
}
section#contact .section-heading {
  color: white;
}
section#contact .form-group {
  margin-bottom: 25px;
}
section#contact .form-group input,
section#contact .form-group textarea {
  padding: 20px;
}
section#contact .form-group input.form-control {
  height: auto;
}
section#contact .form-group textarea.form-control {
  height: 236px;
}
section#contact .form-control:focus {
  border-color: #B2C9FF;
  box-shadow: none;
}
section#contact ::-webkit-input-placeholder {
  font-family: "Source Sans 3", "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
  text-transform: uppercase;
  font-weight: 700;
  color: #eeeeee;
}
section#contact :-moz-placeholder {
  font-family: "Source Sans 3", "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
  text-transform: uppercase;
  font-weight: 700;
  color: #eeeeee;
}
section#contact ::-moz-placeholder {
  font-family: "Source Sans 3", "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
  text-transform: uppercase;
  font-weight: 700;
  color: #eeeeee;
}
section#contact :-ms-input-placeholder {
  font-family: "Source Sans 3", "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
  text-transform: uppercase;
  font-weight: 700;
  color: #eeeeee;
}
section#contact .text-danger {
  color: #e74c3c;
}

/* Social */

ul.social-buttons {
  margin-bottom: 0;
}
ul.social-buttons li a {
  display: block;
  background-color: #222222;
  height: 40px;
  width: 40px;
  border-radius: 100%;
  font-size: 20px;
  line-height: 40px;
  color: white;
  outline: none;
  -webkit-transition: all 0.3s;
  -moz-transition: all 0.3s;
  transition: all 0.3s;
}
ul.social-buttons li a:hover,
ul.social-buttons li a:focus,
ul.social-buttons li a:active {
  background-color: #B2C9FF;
}

/* Seleção de texto */

::-moz-selection {
  text-shadow: none;
  background: #B2C9FF;
}
::selection {
  text-shadow: none;
  background: #B2C9FF;
}
img::selection {
  background: transparent;
}
img::-moz-selection {
  background: transparent;
}
body {
  -webkit-tap-highlight-color: #B2C9FF;
}

/* ------------------------------------------------------------------
   MODAIS
------------------------------------------------------------------- */

.modal-content {
  border-radius: 0;
  box-shadow: none;
  border: 0;
  width: inherit;
  max-width: inherit;
  height: inherit;
  margin: 0 auto;
  pointer-events: all;
  color: #9D71E8;
}

.modal-body {
  padding: 20px 30px;
  text-align: center;
}

/* O formulário de registo é mais alto do que o viewport.
   Quando o modal abre, o scroll deve pertencer ao modal — não à página por trás. */
body.modal-open {
  overflow: hidden;
}

#register.in,
#register.show {
  overflow-y: auto;
}

#register .modal-dialog {
  margin-top: 30px;
  margin-bottom: 30px;
}

@media (max-width: 767px) {
  #register .modal-dialog {
    margin: 10px;
  }
}

.vertical-alignment-helper {
  display: table;
  height: 100%;
  width: 100%;
  pointer-events: none;
}
.vertical-align-center {
  display: table-cell;
  vertical-align: middle;
  pointer-events: none;
}

.close {
  float: right;
  font-size: 2.5rem;
  font-weight: 200;
  line-height: 1;
  color: #000;
  text-shadow: 0 1px 0 #fff;
  filter: alpha(opacity=100);
  opacity: 1;
}
.close:hover {
  color: #B2C9FF;
  opacity: 1;
}

.modal fieldset {
  margin: 50px;
  text-align: left;
}

.form-control {
  color: #000000 !important;
  font-size: 1rem;
  font-weight: 400;
  border: none;
  padding-left: 0;
  border-bottom: 1px solid rgba(21,35,53,0.50);
  outline: none;
  border-radius: 0;
  -webkit-box-shadow: none !important;
  -moz-box-shadow: none !important;
  box-shadow: none !important;
}

textarea.form-control {
  border: 1px solid rgba(21,35,53,0.50);
  padding: 10px;
}

.form-group {
  margin-bottom: 40px;
}

.form-control:focus {
  border-bottom: 1px solid #9D71E8;
}
textarea.form-control:focus {
  border: 1px solid #9D71E8;
}

/* ------------------------------------------------------------------
   ALERTAS / MENSAGENS
------------------------------------------------------------------- */

div.message {
  text-align: center;
  cursor: pointer;
  position: fixed;
  font-weight: normal;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0.75rem 1.5rem;
  transition: height 300ms ease-out 0s;
  background-color: #63AB62;
  color: white;
  top: 0;
  right: 0;
  left: 0;
  z-index: 2000;
  overflow: hidden;
  height: auto;
  line-height: 1.45;
  overflow-wrap: anywhere;
  box-radius: 0;
}

@media (max-width: 767px) {
  div.message {
    top: 8px;
    right: 8px;
    left: 8px;
    min-height: 0;
    padding: 0.75rem 1rem;
  }
}

div.message.error {
  background-color: #C3232D;
  color: #FFF;
}

div.message.hidden {
  height: 0;
  min-height: 0;
}

div.message.success {
  background-color: #dff0d8;
  border-color: #d6e9c6;
  color: #3c763d;
}

/* ------------------------------------------------------------------
   DROPDOWN USER
------------------------------------------------------------------- */

.dropdown-menu > li.user-header {
  padding: 10px;
  text-align: center;
  display: block;
}

.dropdown-menu > li.user-header p {
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 600;
  margin-bottom: 0;
}


.dropdown-menu > .user-footer {
  background-color: white;
  padding: 10px;
}

@media (max-width: 767px) {
  .dropdown-menu , span.caret{
    display: none !important;
  }
}


/* ------------------------------------------------------------------
   TEAM / COURSE CARDS
------------------------------------------------------------------- */

.team {
  background-color: #F2F7FF;
  color: #1A2940;
  border-bottom-right-radius: 30px;
  height: 100%;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.125) !important;
}
.team:hover {
  cursor: pointer;
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15) !important;
}

.user-block span {
  display: block;
  text-align: left;
}

.user-block span.description {
  text-transform: uppercase;
  color: #B2C9FF;
  font-weight: 400;
  font-size: 0.75rem;
  line-height: 1.3;
  margin-bottom: 0;
}

.user-block span.username {
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.4;
  margin-bottom: 20px;
}

.team .bio,
.course .bio {
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 0;
}

.course span.name {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 20px;
  display: block;
  letter-spacing: normal;
  line-height: 1.3;
}

/* ------------------------------------------------------------------
   TABS / NAV-TABS
------------------------------------------------------------------- */

.panel-default {
  border: 0;
  box-shadow: none;
}
.panel-default > .panel-heading {
  background-color: transparent;
  border: 0;
}

.nav-tabs {
  text-align: center;
  border: 0;
}
.nav-tabs > li {
  margin: 0;
  float: none;
  display: inline-block;
}
.nav-tabs > li > a {
  margin: 0;
  padding: 7px 35px;
  border-radius: 0;
  letter-spacing: normal;
  font-size: 0.95rem;
  line-height: 1.4;
}

.nav-tabs > li.active > a,
.nav-tabs > li.active > a:focus,
.nav-tabs > li.active > a:hover {
  color: #9D71E8;
  cursor: default;
  background-color: transparent;
  border: none;
  border-bottom: 3px solid #B2C9FF;
  font-weight: 500;
}

.nav-tabs > li > a:focus,
.nav-tabs > li > a:hover {
  color: #9D71E8;
  border: none;
  border-bottom: 3px solid #B2C9FF;
  background: transparent;
}

.tab-content {
  text-align: left;
}
.tab-content p {
  font-size: 1rem;
  line-height: 1.6;
}

/* Tabs customizadas na secção de serviços */

.reserved-tabs-wrapper {
  margin-top: 30px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.custom-nav-tabs {
  border: none;
  margin: 0;
}

.custom-nav-tabs > li {
  margin-right: 24px;
}

.custom-nav-tabs > li > a {
  padding: 0;
  color: #1A2940;
  font-weight: 400;
  letter-spacing: 0.06em;
  border: none;
  border-radius: 0;
  background: transparent;
  position: relative;
  transition: color .2s;
  font-size: 1rem;
  line-height: 1.4;
}
.custom-nav-tabs > li > a:hover {
  color: #1A2940;
}

/* Responsivo tabs */
@media (max-width: 767px) {
  .reserved-tabs-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
  }

  .custom-nav-tabs {
    display: flex;
    flex-wrap: nowrap;
    min-width: max-content;
  }

  .custom-nav-tabs > li {
    margin-right: 16px;
    float: none;
    white-space: nowrap;
  }
}
/* ------------------------------------------------------------------
   BIBLIOGRAFIA BOX
------------------------------------------------------------------- */

div.bibliography_box {
  padding: 75px 32px;
  background-color: #9D71E8;
  color: white;
}
@media (min-width: 768px) {
  div.bibliography_box {
    padding: 80px;
  }
}

/* ------------------------------------------------------------------
   TABELAS
------------------------------------------------------------------- */

.table > tbody > tr > td.table-area {
  border-top: 0;
  font-weight: 600;
  border-bottom: 1px solid #9D71E8;
}

.table > tbody > tr > th {
  font-weight: 400;
  border-bottom: 1px solid #9D71E8;
  font-size: 9pt;
  padding: 2px 7px;
  background-color: #f2f2f2;
  text-transform: capitalize;
}

hr {
  border-top: 1px solid #9D71E8;
}

/* ------------------------------------------------------------------
   CARDS / ACCORDION
------------------------------------------------------------------- */

div.card {
  border: 0;
  border-bottom: 2px solid #9D71E8;
}

div.card-header {
  padding: 15px 0;
  border: 0;
  font-size: 1rem;
  line-height: 1.4;
}

div.card-header button {
  font-family: "Source Sans 3", "Helvetica Neue";
  color: #9D71E8;
  letter-spacing: normal;
  font-size: 1rem;
  font-weight: 400;
  padding: 0;
  line-height: 1.4;
}
div.card-header:hover {
  cursor: pointer;
}
div.card-header:hover button,
div.card-header:hover i {
  color: #B2C9FF;
}
div.card-header button:hover,
div.card-header button:focus {
  text-decoration: none;
  color: #B2C9FF;
}

div.card td {
  font-size: 0.95rem;
  line-height: 1.5;
  padding: 12px;
}

@media (min-width: 768px) {
  div.card-header button {
    font-size: 1.05rem;
  }
}

/* ------------------------------------------------------------------
   TEXT ALIGN HELPERS
------------------------------------------------------------------- */

@media (min-width: 768px) {
  .text-sm-left {
    text-align: left;
  }
  .text-sm-right {
    text-align: right;
  }
  .text-sm-center {
    text-align: center;
  }
}

/* ------------------------------------------------------------------
   ANIMAÇÕES
------------------------------------------------------------------- */

.animation-element {
  opacity: 0;
  -moz-transition: all 700ms ease-out;
  -webkit-transition: all 700ms ease-out;
  -o-transition: all 700ms ease-out;
  transition: all 700ms ease-out;
  transform: translate(0, 10px);
}
.animation-element.in-view {
  opacity: 1;
  transform: none;
}

/* ------------------------------------------------------------------
   COURSES LIST / CONSULTAS
------------------------------------------------------------------- */

.courses-list {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 16px;
  margin: 0;
}
.courses-list tr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s;
  padding: 0;
  margin-bottom: 10px;
}
.courses-list tr:hover {
  box-shadow: 0 6px 12px rgba(0,0,0,0.08);
}
.courses-list td {
  border: none;
}
.courses-list td:first-child {
  display: flex;
  align-items: center;
  padding: 18px 24px;
  flex: 1;
}
.cal-icon {
  width: 32px;
  height: 32px;
  margin-right: 16px;
  flex-shrink: 0;
  color: #9D71E8;
}
.text-content {
  display: flex;
  flex-direction: column;
}
.text-content .date {
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.4;
  color: #1A2940;
}
.text-content .subtext {
  color: #555;
  font-size: 0.9rem;
  line-height: 1.4;
}
.courses-list td.text-right {
  padding: 0 24px 0 0;
  flex-shrink: 0;
  text-align: right;
}

/* Mobile */
@media (max-width: 767px) {
  .courses-list tr {
    flex-direction: column;
    align-items: stretch;
  }
  .courses-list td:first-child {
    padding: 16px;
  }
  .courses-list td.text-right {
    padding: 0 16px 16px;
    text-align: left;
  }

  .badge {
    white-space: normal;
  }
}

/* Ícone de calendário */
.cal-icon svg {
  display: block;
}

/* ------------------------------------------------------------------
   BADGES / ESTADOS
------------------------------------------------------------------- */

.badge {
  display: inline-block;
  font-weight: 500;
  font-size: 0.875rem;
  line-height: 1.2;
  padding: 8px 20px;
  border-radius: 5px;
  white-space: nowrap;
}

/* Estados específicos */
.badge-pendente   { background: #FFC966; color: #1F1F1F; }
.badge-confirmada { background: #2CA755; color: #fff; }
.badge-realizada  { background: #03A9F4; color: #fff; }
.badge-cancelada  { background: #F44336; color: #fff; }
.badge-secondary  { background: #6c757d; color: #fff; }

.badge a {
  color: inherit;
  text-decoration: none;
}
.badge a:hover {
  text-decoration: underline;
}

/* Background util */
.bg-success   { background: #4caf50; color: #fff; }
.bg-primary   { background: #9D71E8; color: #fff; }
.bg-warning   { background: #ffb300; color: #1f1f1f; }
.bg-info      { background: #03a9f4; color: #fff; }
.bg-danger    { background: #f44336; color: #fff; }
.bg-secondary { background: #6c757d; color: #fff; }

/* ------------------------------------------------------------------
   FLOAT BUTTON
------------------------------------------------------------------- */

.float-btn {
  position: fixed;
  top: 100px;
  right: 24px;
  background-color: #9D71E8;
  border-color: transparent;
  padding: 14px 24px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 1000;
  transition: background-color 0.2s, transform 0.2s;
  border-radius: 15px;
  letter-spacing: 1.5pt;
  font-size: 0.95rem;
  line-height: 1.4;
}
.float-btn:hover,
.float-btn:focus,
.float-btn:active {
  background-color: #9D71E8;
  border-color: #9D71E8;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

/* Touch target em mobile */
@media (max-width: 767px) {
  .float-btn {
    top: auto;        /* desfaz o top original */
    bottom: 24px;     /* coloca o botão em baixo */
    right: 16px;
    padding: 12px 20px;
    font-size: 0.9rem;
    background-color: #B2C9FF;
    border-color: #B2C9FF;
    color:#1A2940;
  }

  #main_container {
    padding-bottom: 88px;
  }

  .float-btn:hover,
  .float-btn:focus,
  .float-btn:active {
    border-color: #B2C9FF;
    background-color: #B2C9FF;
    color:#1A2940;
  }


}

/* ------------------------------------------------------------------
   OUTROS
------------------------------------------------------------------- */

.countdown-bar {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  padding-top: 5px;
}

.bibliography_box {}

hr {}

/* ------------------------------------------------------------------
   MOBILE – reduzir espaçamento entre secções
------------------------------------------------------------------- */
@media (max-width: 767px) {

  /* todas as secções ficam mais compactas */
  section {
    padding: 50px 0 !important; /* antes era 100px */
  }

  /* secções com fundo claro ou especial */
  section.bg-light,
  section#services,
  section.about,
  section#contacts {
    padding: 50px 0 !important;
  }

  /* margem entre containers internos */
  section .container,
  section .row {
    margin-bottom: 20px;
  }

  /* remover gaps verticais exagerados herdados do design antigo */
  h1, h2 {
    margin-top: 0;
    margin-bottom: 30px;
  }

  p {
    margin-bottom: 15px;
  }
}


/* ------------------------------------------------------------------
   HOME HEADER – H1 destacado e maior
------------------------------------------------------------------- */
.home-header h1 {
    font-size: clamp(2.4rem, 2.0rem + 2vw, 3.2rem); /* Maior que os outros */
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0.04em;
    margin-bottom: 2.2rem; /* Mais espaçamento que os restantes h1 */
}

/* versão mobile */
@media (max-width: 767px) {
  .home-header h1 {
    font-size: 2rem;
    margin-bottom: 3rem;
  }
}

/* ------------------------------------------------------------------
   HEADER-CTA – alinhamento vertical do texto e botão
------------------------------------------------------------------- */

/* Em desktop, alinhar verticalmente o h2 e o botão na mesma linha */
@media (min-width: 768px) {

  .header-cta .col-sm-9,
  .header-cta .col-sm-3 {
    display: flex;
    align-items: center;    /* centra o conteúdo na vertical */
  }

  .header-cta .col-sm-9 {
    justify-content: flex-start;
  }

  .header-cta .col-sm-3 {
    justify-content: flex-end;  /* mantém o botão à direita */
  }

  /* tirar margens extra que desalinham */
  .header-cta h2 {
    margin: 0;                 /* impede o texto de subir/descer */
  }

  .header-cta-btn {
    margin-top: 0;             /* anula aquele margin-top de 15px no desktop */
  }
}

@media (max-width: 767px) {
  #main_container{
    margin-top:80px;
  }

  header{
    margin-top:-80px;
  }
}
