/* Responsividade para tabelas em dispositivos móveis */
@media (max-width: 700px) {
  .tabela-horarios-escalao,
  .tabela-locais-treino {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    display: block;
  }
  .tabela-horarios-escalao table,
  .tabela-locais-treino table {
    min-width: 600px;
    width: max-content;
    font-size: 0.92em;
    margin-bottom: 48px;
  }
}
.branco {
  height: 40px;
  margin-bottom: 40px;
}

/* Botão WhatsApp estilo moderno com texto */
.whatsapp-btn {
  position: fixed;
  right: 32px;
  bottom: 32px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #25d366;
  color: #fff;
  border-radius: 32px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  padding: 0 28px 0 18px;
  height: 56px;
  font-size: 1.25em;
  font-weight: 600;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s;
  margin-top: 40px;
  margin-top: 0;
}
.whatsapp-btn:hover {
  box-shadow: 0 4px 24px rgba(37,211,102,0.22);
  transform: scale(1.04);
}
.whatsapp-btn img {
  width: 32px;
  height: 32px;
  display: block;
}
@media (max-width: 700px) {
  .whatsapp-btn {
    right: 10px;
    bottom: 10px;
    height: 44px;
    font-size: 1em;
    padding: 0 16px 0 10px;
  }
  .whatsapp-btn img {
    width: 22px;
    height: 22px;
  }
}
/* Botão flutuante do WhatsApp */
.whatsapp-btn {
  position: fixed;
  right: 32px;
  bottom: 32px;
  z-index: 9999;
  background: #25d366;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.2s, transform 0.2s;
}
.whatsapp-btn img {
  width: 40px;
  height: 40px;
  display: block;
}
.whatsapp-btn:hover {
  box-shadow: 0 4px 16px rgba(37,211,102,0.25);
  transform: scale(1.08);
}
@media (max-width: 700px) {
  .whatsapp-btn {
    right: 12px;
    bottom: 12px;
    width: 48px;
    height: 48px;
  }
  .whatsapp-btn img {
    width: 28px;
    height: 28px;
  }
}
/* Reset básico e fonte global */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /* Evita scroll horizontal em toda a página */
  overflow-x: unset;
  font-family: 'Lato';
  font-weight: 400;
}



/* Horários CATV - Estilo Profissional */
body.pagina-horarios {
  font-family: 'Lato', Arial, sans-serif;
  background: #fff;
  color: #312783;
  min-height: 100vh;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

/* Cabeçalho fixo com sombra e efeito de blur */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 60px 10px 60px;
  background: rgba(49,39,131,0.92);
  box-shadow: 0 2px 8px rgba(49,39,131,0.12);
  position: sticky;
  top: 0;
  z-index: 1000;
  -webkit-backdrop-filter: saturate(140%) blur(4px);
  backdrop-filter: saturate(140%) blur(4px);
}

/* Logo do cabeçalho */
.logo img {
  height: 140px;
  max-width: 320px;
  width: auto;
}

/* Menu de navegação principal */
nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.2px;
  font-size: 1.1em;
  padding: 8px 18px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
  outline: none;
}

/* Hover e foco nos links do menu */
nav ul li a:hover {
  background: transparent; /* sem caixa de fundo */
  color: #f9b233;          /* apenas as letras ficam laranja */
}

nav ul li a:focus-visible {
  outline: 3px solid #f9b233;
  outline-offset: 2px;
}

/* Container principal dos horários */
.horarios-container {
  max-width: 1200px;
  margin: 40px auto 0 auto;
  background: rgba(255,255,255,0.08);
  border-radius: 24px;
  box-shadow: 0 4px 24px rgba(49,39,131,0.12);
  padding: 40px 40px 40px 40px;
}

/* Título principal */
.horarios-container h1 {
  text-align: center;
  font-size: 2.5em;
  margin-bottom: 30px;
  color: #f9b233;
  font-weight: 800;
  letter-spacing: 0.5px;
}

/* Abas de navegação dos horários */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 30px;
}

.tabs button {
  background: #312783;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 28px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(49,39,131,0.08);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

/* Estado hover e ativo das abas */
.tabs button:hover,
.tabs button.active {
  background: transparent;
  color: #f9b233;
  box-shadow: none;
  transform: scale(1.05);
}

/* Conteúdo de cada horário (tab) */
.horario {
  display: none;
  background: rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 24px 18px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(49,39,131,0.08);
  animation: fadeIn 0.5s;
}

/* Horário ativo */
.horario.active {
  display: block;
}

/* Título do horário */
.horario h2 {
  color: #f9b233;
  font-size: 1.5em;
  margin-bottom: 18px;
  font-weight: 700;
}

/* Tabela de horários */
.horario table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  font-size: 1.7em;
  font-weight: 700;
  margin-bottom: 18px;
}
.tabela-horarios-escalao table, .tabela-locais-treino table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 0;
  box-shadow: 0 6px 32px rgba(49,39,131,0.10);
  border: none;
}
.tabela-horarios-escalao th, .tabela-locais-treino th {
  background: #312783;
  color: #fff;
  font-weight: 700;
  padding: 18px 0;
  font-size: 1.15em;
  border-top: none;
  border-bottom: 3px solid #f9b233;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tabela-horarios-escalao td, .tabela-locais-treino td {
  background: #fff;
  color: #312783;
  text-align: center;
  font-size: 1.08em;
  padding: 16px 0;
  border: none;
  font-family: 'Segoe UI', Arial, sans-serif;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.tabela-horarios-escalao tr:nth-child(even) td, .tabela-locais-treino tr:nth-child(even) td {
  background: #f7f7fb;
}
/* Hover efeito para linhas da tabela */
.tabela-horarios-escalao tr:hover td, .tabela-locais-treino tr:hover td {
  background: #f9b23322;
  color: #312783;
  box-shadow: 0 2px 12px rgba(49,39,131,0.08);
}

/* Acessibilidade geral */
a:focus-visible, button:focus-visible {
  outline: 3px solid #f9b233;
  outline-offset: 2px;
}
/* Bordas arredondadas para a tabela */
.tabela-horarios-escalao table, .tabela-locais-treino table {
  border-radius: 14px;
  overflow: hidden;
}
.tabela-horarios-escalao th:first-child, .tabela-horarios-escalao td:first-child,
.tabela-locais-treino th:first-child, .tabela-locais-treino td:first-child {
  border-left: none;
  border-top-left-radius: 18px;
}
.tabela-horarios-escalao th:last-child, .tabela-horarios-escalao td:last-child,
.tabela-locais-treino th:last-child, .tabela-locais-treino td:last-child {
  border-right: none;
  border-top-right-radius: 18px;
}
.tabela-horarios-escalao tr:last-child td, .tabela-locais-treino tr:last-child td {
  border-bottom: none;
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 700px) {
  header { flex-direction: column; padding: 20px 10px; }
  .logo img { height: 50px; }
  nav ul { gap: 10px; }
  .horarios-container { padding: 20px 5px; }
  .tabs button { padding: 10px 12px; font-size: 1em; }
  .tabela-horarios-escalao, .tabela-locais-treino {
    padding: 10px 2px;
  }
  .tabela-horarios-escalao h2, .tabela-locais-treino h2 {
    font-size: 1.2em;
  }
  .tabela-horarios-escalao th, .tabela-locais-treino th,
  .tabela-horarios-escalao td, .tabela-locais-treino td {
    font-size: 0.92em;
    padding: 7px 0;
  }
}
/* Rodapé do site */
.site-footer {
  background-color: #1c0760;
  color: white;
  padding: 40px 20px 20px 20px;
  text-align: center;
  margin-top: 50px;
}



.footer-content {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
}



.footer-contacto p {
  margin: 0;           /* remove espaço padrão dos parágrafos */
  white-space: nowrap; /* evita quebras de linha automáticas */
}

/* Empilhar Email e Telemóvel no footer (um por baixo do outro) */
.site-footer .footer-content > .footer-content {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 6px; /* espaço entre linhas */
}



/* Redes sociais alinhadas */
.footer-redes {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-logo img {
  max-height: 80px; /* logo pequeno */
  display: block;
  margin: 0 auto;
}

.footer-redes img {
  max-width: 20px;
  max-height: 20px;
  width: auto;
  height: auto;
  margin: 0 10px;
  transition: transform 0.3s;
}

.footer-redes img:hover {
  transform: scale(1.2); /* animação de zoom */
}

.footer-copy {
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  margin-top: 20px;
  padding-top: 10px;
  font-size: 0.9em;
}

.footer-politica {
  text-align: center;
  margin: 10px 0; /* espaço acima/abaixo */
}

.footer-politica a {
  color: #f9b233;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.footer-politica a:hover {
  text-decoration: underline;
}
/* Link Política de Privacidade */
.site-footer .footer-content .footer-politica {
  flex: 0 0 100% !important;
  width: 100% !important;
  text-align: center !important;
  margin: 0 !important;   /* sem espaço extra */
  padding: 0 !important;
}

/* Copyright - encostar ao link */
.site-footer .footer-content .footer-copy {
  margin-top: -20px !important;   /* reduz espaço em cima */
  padding-top: 0 !important;
}

/* (Opcional) se ainda houver resistência, dá uma ordem para posicionar antes do .footer-copy */
.site-footer .footer-content .footer-politica { order: 99; }   /* Ajusta se precisares */
.site-footer .footer-content .footer-copy { order: 100; }      /* copyright logo a seguir */

/* Ajuste só para o Instagram */
.footer-redes img.logo-instagram {
  max-width: 30px;  /* define tamanho específico */
  max-height: 30px;
}

/* Estilos do menu principal */
.menu-item {
  transition: background 0.2s;
}
.menu-item:hover {
  background: none !important;
}
.menu-link {
  color: #fff !important;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.25rem; /* aumenta tamanho do menu (desktop) */
  transition: color 0.2s;
}
a.menu-link { font-size: 1.25rem !important; }
.menu-link:hover {
  color: #f9b233 !important;
}

/* WhatsApp floating action button */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  background: #25D366;
  color: #fff;
  height: 56px;
  padding: 0 20px 0 18px;
  border-radius: 28px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.whatsapp-float:hover {
  background: #1ebc59;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.22);
}
.whatsapp-float:focus-visible {
  outline: 3px solid rgba(37,211,102,0.35);
  outline-offset: 2px;
}
.whatsapp-float .icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.14);
}
.whatsapp-float .icon {
  width: 40px;
  height: 40px;
  display: block;
  object-fit: contain;
  transform: scale(1.2);
  transform-origin: center;
  will-change: transform;
}
/* Prevent scroll when modal is open */
html.no-scroll, body.no-scroll { overflow: hidden; }
