:root {
  --bg: #fff;
  --text: #222;
  --highlight: #004d7a;
  }
  * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  }

  html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  }


  body {
  background-color: var(--bg);
  font-family: 'Poppins', sans-serif;
  scroll-behavior: smooth;
  color: var(--text);
  transition: background 0.3s, color 0.3s;
  }

  body.dark {
  --bg: #1a1a1a;
  --text: #e0e0e0;
  }

  .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  }
  [id] {
  scroll-margin-top: 80px;
  }

  /* Topo */
  .topo {
  position: sticky;
  top: 0;
  background: var(--bg);
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  z-index: 1000;
  padding: 15px 0;
  }

  .topo .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  }

  .logo {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
  }

  .logo-imagem {
    max-height: 65px;
    display: block;
  }
  @media (max-width: 768px) {
    .logo-imagem {
      max-height: 38px;
    }
  }


  .menu {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
  }

  .menu li a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
  }

  .menu li a:hover {
  color: var(--highlight);
  }

  .botao-sugestao {
  background-color: #EB161D !important;
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: background-color 0.3s ease;
  }

  .botao-sugestao:hover {
  background-color: #0a1f45;
  }

  .hamburguer {
  display: none;
  flex-direction: column;
  gap: 4px;
  border: none;
  background: none;
  cursor: pointer;
  }

  .hamburguer span {
  width: 24px;
  height: 2px;
  background-color: var(--text);
  transition: all 0.3s;
  }

  @media (max-width: 768px) {
  .hamburguer {
      display: flex;
  }

  #menu-nav {
      display: none;
      width: 100%;
  }

  #menu-nav.active {
      display: block;
  }

  .menu {
      flex-direction: column;
      gap: 10px;
      margin-top: 10px;
  }
  }
.hero-estatico {
  background-color: #ffffff;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
}


.imagem-hero {
  max-width: 100%;
  height: auto;
  width: 900px;
}

@media (max-width: 768px) {
  .imagem-hero {
    width: 90%;
  }
}

.secao-temas {
  padding: 80px 20px;
  background-color: #ffffff;
  text-align: center;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
}


.grade-temas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
}

.bloco-tema {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.icone-tema {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: #dceaff;
  margin-bottom: 20px;
}

.bloco-tema h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #0f1a2c;
}

.bloco-tema p {
  font-size: 0.9rem;
  color: #444;
  line-height: 1.4;
  max-width: 280px;
}

.secao-candidato-assembleia {
  padding: 80px 20px;
  background-color: #ffffff;
  text-align: center;
}

.titulo-secundario {
  font-size: 2rem;
  font-weight: 700;
  color: #0f3a73;
  margin-bottom: 10px;
}

.subtitulo {
  color: #666;
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto 40px;
}

.swiper-slide.bloco-candidato {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 40px;
  text-align: left;
}

.imagem-wrapper img {
  width: 100%;
  max-width: 500px;
  border-radius: 8px;
}

.cartao-candidato {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 12px;
  max-width: 540px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.cargo {
  text-transform: uppercase;
  font-size: 0.9rem;
  font-weight: 700;
  color: #EB161D;
  margin-bottom: 10px;
}

.cartao-candidato p {
  font-size: 1rem;
  color: #333;
  margin-bottom: 20px;
}

.link-mais {
  font-weight: 600;
  color: #0f3a73;
  text-decoration: none;
}

.link-mais:hover {
  text-decoration: underline;
}

/* Pagination azul personalizada */
.swiper-pagination-bullets {
  text-align: center;
  margin-top: 30px;
}

.swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: #cdd6e0;
  opacity: 1;
  margin: 0 6px;
  transition: background 0.3s;
}

.swiper-pagination-bullet-active {
  background: #0f3a73;
}

@media (max-width: 768px) {
  .swiper-slide.bloco-candidato {
    flex-direction: column;
    align-items: center;
    padding: 20px 16px;
    gap: 0;
    position: relative;
  }

  .imagem-wrapper {
    width: 100%;
    max-width: 320px;
    position: relative;
    z-index: 1;
  }

  .imagem-wrapper img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  }

  .cartao-candidato {
    position: relative;
    top: -40px; /* Faz o overlap */
    z-index: 2;
    background-color: #fff;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    text-align: center;
    max-width: 90%;
  }
}


.secao-testemunhos {
  padding: 80px 20px;
  background-color: #f8fbff;
  text-align: center;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
}

.grade-testemunhos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.bloco-testemunho {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.foto-testemunho {
  width: 100%;
  max-width: 320px;
  border-radius: 24px;
  object-fit: cover;
  margin-bottom: 16px;
}

.nome-testemunho {
  font-weight: 700;
  font-size: 1rem;
  color: #0f1a2c;
  margin-bottom: 4px;
}

.freguesia-testemunho {
  font-size: 0.9rem;
  color: #444;
}

.secao-programa {
  background-color: #f4f8fc;
  padding: 80px 20px;
  text-align: center;
}

.secao-programa .titulo-secundario {
  font-size: 2rem;
  font-weight: 700;
  color: #0f3a73;
  margin-bottom: 10px;
}

.secao-programa .subtitulo {
  font-size: 1rem;
  color: #555;
  max-width: 700px;
  margin: 0 auto 40px;
}

.acordeao-programa details {
  background: #fff;
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: all 0.3s ease;
}

.acordeao-programa summary {
  list-style: none;
  font-weight: 600;
  font-size: 1rem;
  color: #1a1a1a;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.acordeao-programa summary::after {
  content: "▾";
  font-size: 1rem;
  color: #a0a0a0;
  transition: transform 0.3s;
}

.acordeao-programa details[open] summary::after {
  transform: rotate(180deg);
}

.acordeao-programa details p {
  margin-top: 16px;
  color: #444;
  font-size: 0.95rem;
  line-height: 1.5;
}

.secao-sugestoes {
  padding: 80px 20px;
  background-color: #ffffff;
  text-align: center;
  border-top: 1px solid #e0e0e0;
}

.form-sugestoes {
  max-width: 500px;
  margin: 0 auto;
  background: #f2f2f2;
  padding: 40px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-sugestoes label {
  text-align: left;
  font-weight: 500;
  color: #1a1a1a;
  font-size: 0.95rem;
}

.form-sugestoes input,
.form-sugestoes select,
.form-sugestoes textarea {
  width: 100%;
  padding: 10px 0px;
  border: none;
  border-bottom: 2px solid #aaa;
  background: transparent;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s;
}

.form-sugestoes input:focus,
.form-sugestoes select:focus,
.form-sugestoes textarea:focus {
  border-color: #0f3a73;
}

.botao-enviar {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: #163766;
  color: #fff;
  padding: 14px 28px;
  border: none;
  border-radius: 16px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.botao-enviar:hover {
  background-color: #102d58;
}

.botao-enviar svg {
  fill: white;
}

.rodape-site {
  background-color: #143462;
  color: #fff;
  text-align: center;
  padding: 80px 0px 0;
}

.rodape-site a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}
.rodape-site a:hover {
  color: #143462;
}

.figueira-label {
  color: #e53935;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}

.slogan {
  font-size: 2.25rem;
  font-weight: 800;
  margin: 0;
}

.descricao-rodape {
  color: #d4dce4;
  font-size: 0.95rem;
  margin-top: 20px;
  line-height: 1.6;
}
.bloco-principal {
  padding: 60px 20px;
}


/* Linha inferior branca */
.linha-final {
  background-color: #fff;
  color: #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  border-top: 1px solid #ccc;
  flex-wrap: wrap;
  font-size: 0.85rem;
}

.footer-esquerda {
  text-align: left;
  flex: 1;
  min-width: 200px;
}

.footer-centro,
.footer-direita {
  display: flex;
  gap: 24px;
  align-items: center;
}

.footer-centro {
  margin-right: 20px;
}

.footer-direita svg {
  width: 18px;
  height: 18px;
  fill: #444;
  transition: fill 0.3s ease;
}
.footer-centro a {
  color: #444;
  font-weight: 500;
  text-decoration: none;
}

.footer-centro a:hover {
  text-decoration: underline;
}

.footer-direita {
  display: flex;
  gap: 14px;
}


.footer-direita a:hover svg {
  fill: #143462;
}

@media (max-width: 768px) {
  .linha-final {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }

  .footer-centro {
    justify-content: center;
  }

  .footer-direita {
    justify-content: center;
  }
}

.botao-sugestao-mobile {
  display: none;
}

@media (max-width: 768px) {
  .linha-final {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding: 20px 20px; /* Reduz o padding lateral para evitar cortes */
  }

  .footer-esquerda,
  .footer-centro,
  .footer-direita {
    justify-content: center;
    flex-wrap: wrap;
  }

  .footer-centro,
  .footer-direita {
    gap: 12px;
  }

  .footer-esquerda {
    font-size: 0.8rem;
  }

  .footer-direita svg {
    width: 20px;
    height: 20px;
  }
}


@media (max-width: 768px) {
  .botao-sugestao-desktop {
    display: none;
  }
  .botao-sugestao-mobile {
    display: block;
  }
}