/* --------------------------
   BASE
--------------------------- */

body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: #4df62b;
}

/* --------------------------
   TOPBAR / NAV
--------------------------- */

.topbar {
  background: #4df62b;
  color: rgb(4, 2, 2);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar h1 {
  margin: 0;
  font-size: 1.2rem;
}

.topbar nav a {
  color: rgb(2, 1, 1);
  margin-left: 10px;
  text-decoration: none;
}

.topbar nav a:hover {
  text-decoration: underline;
}

/* --------------------------
   HERO (página inicial)
--------------------------- */

.hero {
  display: flex;
  gap: 30px;
  padding: 30px;
  background: white;
}

.hero-info {
  flex: 1;
}

.hero-imagem img {
  max-width: 50%;
  border-radius: 8px;
}

/* --------------------------
   BOTÕES GENÉRICOS
--------------------------- */

.btn-principal {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 20px;
  background: #4df62b;
  color: rgb(12, 3, 3);
  border-radius: 4px;
  text-decoration: none;
}

.btn-principal:hover {
  background: #1e40af;
}

.btn-secundario {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 20px;
  background: #6b7280; /* cinzento */
  color: white;
  border-radius: 4px;
  text-decoration: none;
  border: none;
  margin-left: 10px;
  cursor: pointer;
}

.btn-secundario:hover {
  background: #4b5563;
}

/* Botão específico da inscrição na secção do evento */
.btn-inscricao {
  display: inline-block;
  padding: 12px 20px;
  background-color: #4df62b;
  color: #000;
  text-decoration: none;
  border-radius: 6px;
  margin-top: 20px;

  box-shadow: 0 5px 0 #2ca314;
  border: 2px solid #2ca314;
  font-weight: bold;
  transition: 0.1s;
}

.btn-inscricao:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 #2ca314;
}

/* --------------------------
   CAIXAS DE CONTEÚDO
--------------------------- */

.conteudo {
  padding: 20px;
  background: white;
  margin: 20px;
  border-radius: 8px;
}

/* --------------------------
   FORMULÁRIOS
--------------------------- */

.form-inscricao label {
  display: block;
  margin-bottom: 10px;
}

.form-inscricao input,
.form-inscricao select {
  width: 100%;
  padding: 5px;
  margin-top: 4px;
}

.form-anular label {
  display: block;
  margin-bottom: 10px;
}

.form-anular input {
  width: 100%;
  padding: 5px;
  margin-top: 4px;
}

/* --------------------------
   TABELA DE INSCRITOS
--------------------------- */

.tabela-inscritos {
  width: 100%;
  border-collapse: collapse;
}

.tabela-inscritos th,
.tabela-inscritos td {
  border: 1px solid #ddd;
  padding: 8px;
}

.tabela-inscritos th {
  background: #e5e7eb;
}

/* --------------------------
   SECÇÃO DE ANULAR INSCRIÇÃO
--------------------------- */

.secao-anular {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

/* --------------------------
   TEXTO DESTACADO & MENSAGENS
--------------------------- */

.preco-destaque {
  font-size: 1.3rem;
  color: #111827;
}

.erro {
  color: red;
}

.ok {
  color: green;
}

/* Cartões dos menus */
.menu-card {
  border: 1px solid #ddd;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 6px;
  background: #f9fafb;
}

/* --------------------------
   SECÇÃO DO EVENTO
   (texto à esquerda, imagens à direita)
--------------------------- */

.evento-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 90%;
  margin: 30px auto;
  gap: 40px;
}

.evento-texto {
  width: 40%;
}

.evento-imagens {
  width: 55%;
  text-align: right;
}

.evento-imagens img {
  max-width: 80%;
  margin-bottom: 20px;
}

.img-principal {
  width: 80%;
}

.img-secundaria {
  width: 60%;
}

/* Versão mobile: texto em cima, imagens em baixo */
@media (max-width: 768px) {
  .evento-container {
    flex-direction: column;
    text-align: left;
  }

  .evento-imagens {
    width: 100%;
    text-align: left;
  }

  .evento-imagens img {
    max-width: 100%;
  }
}

/* --------------------------
   GALERIA
--------------------------- */

.galeria {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.galeria figure {
  background: #fff;
  padding: 8px;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.galeria img {
  max-width: 250px;
  border-radius: 4px;
}

/* --------------------------
   SECÇÃO CONTACTO
--------------------------- */

.secao-contacto {
  margin-top: 30px;
  padding: 15px;
  background: #f9fafb;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
}

/* --------------------------
   ESTILOS PARA IMPRESSÃO
--------------------------- */

@media print {
  /* Esconder a barra de navegação e botões quando se imprime */
  .topbar nav,
  .btn-principal,
  .btn-secundario {
    display: none !important;
  }

  body {
    background: rgb(95, 238, 39);
  }

  .conteudo {
    margin: 0;
    box-shadow: none;
    border-radius: 0;
  }
}