/* ===== Reset simples ===== */
html, body {
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  max-width: 100%;
  overflow-x: hidden; /* impede conteúdo a sair para o lado */
}

/* ===== Logo ===== */
.logo-container {
  text-align: center;
}
.logo {
  max-width: 50%;
  height: auto;
}

/* ===== Caixa de pesquisa ===== */
.search-container {
  text-align: center;
}
#search {
  width: 100%;
  max-width: 500px;
  padding: 8px 12px;
  font-size: 16px; /* impede zoom no mobile */
  border: 1px solid #ccc;
  border-radius: 8px;
  box-sizing: border-box;
}
#search:focus {
  border-color: #007BFF;
  outline: none;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

/* ===== Texto inicial ===== */
.intro {
  text-align: justify;
  padding: 0 15px;
}

/* ===== Texto invisível ===== */
#texto-invisivel {
  display: none;
}

/* ===== Créditos ===== */
.credits {
  text-align: center;
  margin-top: 10px;
}
.author-photo {
  width: 50px;
  height: auto;
  border-radius: 8px;
}

/* ===== Link para PDF ===== */
.pdf-link {
  text-align: center;
  margin-top: 20px;
}

/* ===== Garantir que texto e links não saem do ecrã ===== */
p, a, span {
  word-wrap: break-word;
  overflow-wrap: break-word;
}
img {
  max-width: 100%;
  height: auto;
}

/* ===== Ajustes específicos para telemóvel ===== */
@media (max-width: 600px) {
  body {
    font-size: 15px;   /* reduz ligeiramente o texto */
    padding: 0 10px;
  }

  .intro {
    font-size: 15px;
    line-height: 1.5;
  }

  #search {
    font-size: 16px; /* mantém para evitar zoom automático */
  }

  .logo {
    max-width: 80%; /* logo mais adaptável em ecrãs pequenos */
  }
}
