/* ===========================
   1. ESTILOS GLOBAIS
   =========================== */
   body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f1e8db;
}

/* ===========================
   2. CABEÇALHO (HEADER)
   =========================== */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #f1e8db;
    padding: 0 40px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.logo img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    text-decoration: none;
    color: #85274f;
    font-weight: bold;
    transition: color 0.3s;
}

nav ul li a:hover {
    text-decoration: underline;
}

/* ===========================
   3. CONTAINER PRINCIPAL
   =========================== */
.container {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 40px;
    flex-wrap: wrap; /* responsividade */
}

/* ===========================
   4. CARDS
   =========================== */
.card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    width: 300px;
    text-align: center;
    text-decoration: none;
    transition: transform 0.2s ease-in-out;
}

.card:hover {
    transform: translateY(-5px);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card h3 {
    margin: 15px 0;
    font-size: 1.3em;
    color: #85274f;
}

.card p {
    padding: 0 15px;
    color: #666;
    font-size: 0.95em;
}

.card a {
    display: inline-block;
    margin: 15px 0 20px;
    padding: 10px 20px;
    background-color: #85274f;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.card a:hover {
    background-color: #274f85;
}

/* ===========================
   5. FOOTER
   =========================== */
   footer {
    background-color: #f1e8db;
    color: #85274f;
    padding: 15px 40px;
    margin-top: 40px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  
    display: flex;
    align-items: center;
    position: relative; /* permite posicionar o ícone à direita */
    flex-wrap: wrap;
  }
  
  /* Texto centralizado */
  footer p {
    margin: 0;
    font-size: 14px;
    text-align: center;
    flex: 1; /* ocupa o espaço central */
  }
  
  /* Ícone à direita */
  footer .instagram-icon {
    position: absolute;
    right: 40px; /* alinha à direita do footer */
  }
  
  footer .instagram-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    transition: transform 0.3s ease, opacity 0.3s ease;
    vertical-align: middle;
  }
  
  footer .instagram-icon img:hover {
    transform: scale(1.1);
    opacity: 0.8;
  }

/* ===========================
   6. LISTAS DE ESTÚDIOS
   =========================== */
.list {
    flex: 1 1 40%;
    padding: 20px;
    overflow-y: auto;
    box-sizing: border-box;
    color: #555;
}

.list h2 {
    margin: 15px 0 5px;
    font-size: 20px;
    color: #85274f;
}

.list ul {
    list-style-type: none; /* remove bullets */
    padding: 0;
    margin: 0;
}

.list p {
    font-size: 16px;
    color: #555;
}

address a {
    color: inherit;
    text-decoration: none;
  }
  
  address a:hover {
    color: #85274f;
    text-decoration: underline;
  }

  .map {
    position: relative;
    width: 640px;         /* tamanho fixo no desktop */
    height: 480px;
  }
  
  /* iframe ocupa 100% do container */
.map iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
  }
  

/* ===========================
   7. PÁGINA DE CONTACTO
   =========================== */
.contact-text, .contact-form {
    flex: 1 1 400px;
    padding: 20px;
}

.contact-text h1 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #85274f;
}

.contact-text p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #555;
}

/* ===========================
   8. FORMULÁRIO
   =========================== */
form {
    max-width: 400px;
    margin: 30px auto 0;
    font-family: Arial, sans-serif;
}

form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

form input,
form textarea,
form button {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 14px;
}

form button {
    background-color: #85274f;
    color: white;
    font-weight: bold;
    cursor: pointer;
    border: none;
    transition: background 0.3s ease;
}

form button:hover {
    background-color: #6b1f40;
}

/* ===========================
   9. PÁGINA DE TEXTO E IMAGENS
   =========================== */
.texto {
    overflow: hidden; /* garante que o float não quebre o container */
    padding-left: 20px;  /* distância da margem esquerda */
    padding-right: 20px; /* distância da margem direita */
    max-width: 1200px;   /* opcional: largura máxima */
    margin: 0 auto;      /* centraliza horizontalmente */
}

.texto h1 {
    font-size: 40px;
    margin-bottom: 30px;
    color: #85274f;
}

.texto h2 {
    font-size: 25px;
    margin-bottom: 10px;
    color: #333;
}

.texto h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

.texto p, 
.texto ul {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

.imagem {
    float: left;
    margin-bottom: 20px;
    margin-right: 30px;
    width: 300px; /* largura fixa */
    max-height: 300px; /* altura máxima */
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    object-fit: cover; /* garante que a imagem se ajuste dentro do limite */
}

/* ===========================
   10. BOTÕES GERAIS
   =========================== */
.button {
    padding: 15px 30px;
    font-size: 22px;
    background-color: #85274f;
    color: #f1e8db;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s;
    text-decoration: none;
    margin-top: 40px;
}

.button:hover {
    background-color: #6b1f40;
}

/* ===========================
   11. TIMER 
   =========================== */
   main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
  }
  
  /* ===========================
     MENSAGEM
     =========================== */
  #message-timer {
    font-size: 30px;
    font-weight: bold;
    color: #85274f;
    margin-bottom: 80px;
    text-align: center;
  }
  
  /* ===========================
     TIMER
     =========================== */
  #timer {
    font-size: 120px;
    font-weight: bold;
    margin: 15px 0;
    color: #333;
  }
  
  /* ===========================
     BARRA DE PROGRESSO
     =========================== */
  #progress-container {
    width: 70%;
    max-width: 600px;
    height: 20px;
    background-color: #e0d6c8;
    border-radius: 10px;
    overflow: hidden;
    margin: 20px 0 40px 0;
  }
  
  #progress-bar {
    height: 100%;
    width: 100%;
    transition: width 1s linear, background-color 0.5s ease;
  }
  
  /* Cores conforme o tempo restante */
  .progress-green {
    background-color: #4caf50;
  }
  .progress-orange {
    background-color: #ff9800;
  }
  .progress-red {
    background-color: #f44336;
  }
  
  /* ===========================
     BOTÕES DE CONTROLE
     =========================== */
  #controls {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
  }
  
  #controls button {
    width: 70px;
    height: 70px;
    border: none;
    border-radius: 12px;
    background-color: #f5f5f5;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s ease, transform 0.2s ease;
  }
  
  #controls button:hover {
    background-color: #ddd;
    transform: scale(1.05);
  }
  
  #controls svg {
    width: 28px;
    height: 28px;
    fill: black;
  }
/* ===========================
   12. RESPONSIVIDADE
   =========================== */

@media (max-width: 768px) {
    .container {
      flex-direction: column;
      text-align: center;
    }
  }

@media (max-width: 768px) {
    .map {
      width: 100%;        /* ocupa toda a largura disponível */
      height: 60vw;       /* altura proporcional (60% da largura da tela) */
    }
  }

@media (max-width: 768px) {
    .list {
      text-align: left;
    }
  }

  @media (max-width: 600px) {
    footer {
      flex-direction: column;
      text-align: center;
      position: static;
    }
  
    footer .instagram-icon {
      position: static;
      margin-top: 10px;
    }
  }
/* ===========================
   13. PÁGINA DE EVENTOS
   =========================== */
   .eventos-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    padding: 40px 0;
}

.evento-card {
    display: flex;
    align-items: center;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    width: 70%;
    transition: transform 0.2s ease-in-out, box-shadow 0.3s ease;
}

.evento-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.evento-card img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    flex-shrink: 0;
}

.evento-info {
    padding: 20px 25px;
}

.evento-info h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #85274f;
    font-size: 1.3em;
}

.evento-info p {
    color: #555;
    font-size: 1em;
    line-height: 1.4;
}

/* Responsividade */
@media (max-width: 768px) {
    .evento-card {
        flex-direction: column;
        width: 90%;
    }

    .evento-card img {
        width: 100%;
        height: auto;
    }

    .evento-info {
        padding: 15px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .imagem {
      float: none;           /* remove o flutuar lateral */
      display: block;        /* força a imagem a ficar em bloco */
      margin: 0 auto 20px;   /* centraliza e adiciona margem inferior */
      width: 100%;           /* ocupa toda a largura do container */
      max-width: 100%;       /* garante que não ultrapasse o container */
      height: auto;          /* ajusta a altura proporcionalmente */
    }
  }

/* ======== MENU RESPONSIVO ======== */
.menu-toggle {
    display: none;
    font-size: 32px;
    color: #85274f;
    cursor: pointer;
  }
  
  /* Esconde o menu em telas pequenas */
  @media (max-width: 768px) {
    nav ul {
      display: none;
      flex-direction: column;
      background-color: #f1e8db;
      position: absolute;
      top: 100px; /* abaixo do header */
      right: 0;
      width: 100%;
      text-align: center;
      box-shadow: 0 4px 8px rgba(0,0,0,0.1);
      padding: 20px 0;
    }
  
    nav ul li {
      margin: 15px 0;
    }
  
    .menu-toggle {
      display: block;
    }
  
    /* Quando o menu está ativo */
    nav.active ul {
      display: flex;
    }
  }
/* ===========================
   14. LINK DE EMAIL (CONTACTO)
   =========================== */
   .contact-text a {
    text-decoration: none;
    color: #85274f;
  }
  
  .contact-text a:hover {
    text-decoration: underline;
    color: #6b1f40;
  }

  /* ==========================
  15. FORM MAILER LITE
     ========================= */

     /* Container do formulário */
.ml-embedded {
  width: 100%;
  max-width: 1200px; /* limita em telas muito grandes */
  padding: 20px;
  box-sizing: border-box;
  margin: 0 auto;
}

/* Formulário interno ocupa toda a largura do container */
.ml-embedded form {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

/* Inputs e botão ocupam toda a largura */
.ml-embedded form input,
.ml-embedded form textarea,
.ml-embedded form button {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 15px;
}

/* Botão responsivo */
.ml-embedded form button {
  padding: 12px;
  font-size: 16px;
  border-radius: 6px;
}

/* Ajustes para telas pequenas */
@media (max-width: 480px) {
  .ml-embedded {
      padding: 15px;
  }

  .ml-embedded form input,
  .ml-embedded form textarea,
  .ml-embedded form button {
      font-size: 14px;
  }
}

/* ===========================
   16. CARDS PIN DE LOCAIS GRATUITOS
   =========================== */
   .sitios-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 40px;
    flex-wrap: wrap; /* responsividade */
}
   .pin-card {
    position: relative;
    flex: 1 1 280px;    /* cresce ou encolhe, mínimo 280px */
    width: 300px;   /* evita que fique muito largo */
    background-color: white;
    border-radius: 5px 5px 30px 5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    text-align: center;
    transition: transform 0.2s ease-in-out;
    margin: 20px;
}

.pin-card:hover {
    transform: translateY(-5px);
}

.pin-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.pin-top {
    padding: 15px;
}

.pin-top h3 {
    margin: 10px 0 5px;
    color: #85274f;
    font-size: 1.2em;
}

.pin-top p {
    font-size: 0.9em;
    color: #555;
    line-height: 1.4;
}

/* ===========================
   13.1 SUBMENU TREINO
   =========================== */

/* Posição e base do submenu */
nav ul li.has-submenu {
  position: relative;
}

/* Submenu oculto inicialmente */
nav ul li ul.submenu {
  display: none;
  position: absolute;
  top: 100%; /* aparece logo abaixo do item "Treino" */
  left: 0;
  background-color: #f1e8db;
  list-style: none;
  padding: 8px 0;
  margin: 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  border-radius: 8px;
  min-width: 200px;
  z-index: 100;
}

/* Mostra submenu ao passar o mouse (desktop) */
nav ul li.has-submenu:hover ul.submenu {
  display: block;
}

/* Mostra submenu quando o item tem a classe "open" (mobile) */
nav ul li.has-submenu.open ul.submenu {
  display: block;
}

/* Estilo dos links do submenu */
nav ul li ul.submenu li a {
  display: block;
  padding: 10px 20px;
  color: #85274f;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Hover do submenu */
nav ul li ul.submenu li a:hover {
  text-decoration: underline;
}

/* Responsivo — submenu ocupa largura total no mobile */
@media (max-width: 768px) {
  nav ul li ul.submenu {
    position: static;
    box-shadow: none;
    border-radius: 0;
    background-color: #f1e8db;
  }

  nav ul li ul.submenu li a {
    padding: 12px 0;
    border-top: 1px solid rgba(0,0,0,0.1);
  }
}

/* ===========================
   9. PÁGINAS DOS EVENTOS
   =========================== */

/* Container geral do texto do evento */
.texto-eventos {
  overflow: hidden; /* garante que floats não quebrem o container */
  padding-left: 20px;
  padding-right: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Títulos e textos do evento */
.texto-eventos h1 {
  font-size: 40px;
  margin-bottom: 30px;
  color: #85274f;
}

.texto-eventos h2 {
  font-size: 25px;
  margin-bottom: 10px;
  color: #333;
}

.texto-eventos h3 {
  font-size: 18px;
  margin-bottom: 15px;
  color: #333;
}

.texto-eventos p, 
.texto-eventos ul {
  font-size: 16px;
  line-height: 1.6;
  color: #555;
}

.texto-eventos a {
  text-decoration: none;
  color: #85274f;
}

.texto-eventos a:hover {
  text-decoration: underline;
  color: #85274f;
}

/* Imagem do evento */
.imagem-eventos {
  float: left;
  margin-bottom: 20px;
  margin-right: 30px;
  width: 300px;
  max-height: 300px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  object-fit: cover;
}

/* Container das informações do evento */
.info-eventos {
  overflow: hidden; 
  padding-left: 20px;
  padding-right: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.info-eventos h1 {
  font-size: 40px;
  margin-bottom: 30px;
  color: #85274f;
}

.info-eventos h2 {
  font-size: 25px;
  margin-bottom: 10px;
  color: #333;
}

.info-eventos h3 {
  font-size: 18px;
  margin-bottom: 15px;
  color: #333;
}

.info-eventos p {
  font-size: 25px;
  line-height: 1.6;
  color: #555;
}

.info-eventos a {
  text-decoration: none;
  color: #85274f;
}

.info-eventos a:hover {
  text-decoration: underline;
}

/* Itens do evento: Data, Local, Bilhetes */
.evento-item {
  display: flex;
  align-items: center; /* alinha verticalmente h2 e conteúdo */
  margin-bottom: 10px;
  gap: 10px; /* distância entre h2 e conteúdo */
}

.evento-item h2 {
  font-size: 25px;
  margin: 0;
  color: #333;
}

.evento-item p {
  font-size: 18px;
  margin: 0;
  color: #555;
}

.evento-item a {
  font-size: 18px;
  margin: 0;
  color: #85274f;
}

/* ===========================
 RESPONSIVIDADE
 =========================== */
@media (max-width: 768px) {

  /* Imagem acima das informações em telas pequenas */
  .imagem-eventos {
      float: none;
      display: block;
      margin: 0 auto 20px;
      width: 100%;
      max-width: 500px;
      height: auto;
  }

  /* Evento items em coluna */
  .evento-item {
      flex-direction: column;
      align-items: flex-start;
      gap: 5px;
  }

  .evento-item h2,
  .evento-item p,
  .evento-item a {
      font-size: 18px;
  }

  /* Ajustes para textos do evento */
  .texto-eventos h1 {
      font-size: 30px;
  }

  .texto-eventos h2 {
      font-size: 22px;
  }

  .texto-eventos h3 {
      font-size: 16px;
  }

  .texto-eventos p,
  .texto-eventos ul {
      font-size: 16px;
  }

  .info-eventos h1 {
      font-size: 30px;
  }

  .info-eventos p {
      font-size: 20px;
  }
}