/* ---------- Reset e base ---------- */
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: #cacaca;
  color: #222;
  /*padding-bottom: 90px;*/
  box-sizing: border-box;
  overflow-x: hidden;
}

/* ---------- Navbar ---------- */
.navbar {
  background: #181818;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 2rem;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 8px #0002;
  min-height: 68px;
}
.navbar .logo {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 1px;
  gap: 10px;
}
.navbar .logo img {
  margin-right: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 8px #0003;
  background: #fff;
  padding: 2px;
}
.navbar nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
  align-items: center;
}
.navbar nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding: 7px 0 7px 0;
  border-bottom: 2px solid transparent;
  border-radius: 2px;
  transition: border 0.2s, color 0.2s, background 0.2s;
  font-size: 1.08rem;
  letter-spacing: 0.5px;
}
.navbar nav a.active, .navbar nav a:hover {
  color: #ffd700;
  border-bottom: 2px solid #ffd700;
  background: #232228;
}
.navbar .menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #ffd700;
  font-size: 2rem;
  cursor: pointer;
  margin-left: 1.5rem;
}
.navbar .menu-toggle:hover {
  color: #fff;
}
@media (max-width: 900px) {
  .navbar nav ul {
    display: none;
    position: absolute;
    top: 68px;
    right: 0;
    background: #181818;
    flex-direction: column;
    width: 220px;
    box-shadow: 0 4px 24px #0005;
    border-radius: 0 0 0 12px;
    z-index: 300;
    padding: 1.2rem 0;
    gap: 0.5rem;
  }
  .navbar nav ul.open {
    display: flex;
  }
  .navbar .menu-toggle {
    display: block;
  }
}

/* ---------- Hero ---------- */
.hero-content-original {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}
.hero-original-img {
  max-width: 100%;
  height: auto;
  display: block;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  border-radius: 10px;
}
.hero-content-original h1 {
  font-size: 2.5rem;
  margin: 0;
}
.hero-content-original p {
  font-size: 1.2rem;
  max-width: 700px;
  line-height: 1.6;
}

/* ---------- Seções ---------- */
section {
  padding: 1.2rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}
section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #181818;
  font-weight: 700;
  text-align: left;
}
section p {
  font-size: 1.1rem;
  color: #444;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
section a {
  color: #ffd700;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s, text-decoration 0.2s;
}
section a:hover {
  color: #e0c200;
  /*text-decoration: underline;*/
}

/* ---------- Grid 3 colunas (desktop) para Torneios e Notícias ---------- */
.noticias-grid,
.noticias-grid-imagem {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  justify-items: center;
  align-items: stretch;
  margin-top: 0rem;
  margin-bottom: 2rem;
}

.noticias-grid > a,
.noticias-grid-imagem > a {
  width: 100%;
}

/* ---------- Cartões Torneios e Notícias ---------- */
.noticia-cartao,
.torneio-card-imagem {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px #0001;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  width: 100%;
  max-width: 320px;
  min-width: 0;
  min-height: 286px;
  height: 100%;
  display: flex;
  flex-direction: column;
  text-decoration: none !important;
  color: inherit;
}
.noticia-cartao:hover,
.torneio-card-imagem:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 6px 24px #0002;
}
.noticia-cartao img,
.torneio-card-imagem img {
  width: 100%;
  height: 136px;
  object-fit: cover;
  display: block;
}
.noticia-conteudo {
  padding: 0.72rem 0.88rem 0.72rem 0.88rem;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  justify-content: space-between;
  height: 100%;
}
.noticia-conteudo h3 {
  font-size: 0.96rem;
  line-height: 1.32;
  margin-bottom: 0.45rem;
  color: #181818;
  font-weight: 700;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.noticia-conteudo h3,
.noticia-cartao h3 {
  text-decoration: none;
}
.noticia-conteudo .data-publicacao {
  margin-top: auto;
  margin-bottom: 0;
  font-size: 0.8rem;
  color: #666;
  font-weight: 500;
  text-decoration: none;
  border: none;
  background: none;
}

.noticia-meta {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.noticia-conteudo .fonte-publicacao {
  margin-top: 0;
  margin-bottom: 0;
  font-size: 0.79rem;
  color: #444;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border: none;
  background: none;
}

/* ---------- Cartão Torneio ---------- */
.torneio-card-imagem {
  background-size: cover;
  background-position: center;
  position: relative;
  min-height: 276px;
  height: 100%;
  padding: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
}
.torneio-botao {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.64rem 0.8rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.65);
  color: #ffd700;
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  transition: background 0.2s;
  border-radius: 0 0 12px 12px;
}
.torneio-botao:hover {
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
}

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
  .noticias-grid, .noticias-grid-imagem {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 700px) {
  section {
    padding: 1rem 2vw;
  }
  .noticias-grid, .noticias-grid-imagem {
    grid-template-columns: 1fr;
    gap: 1.3rem;
  }
  .noticia-cartao, .torneio-card-imagem {
    max-width: 96vw;
    min-height: 264px;
  }

  .noticia-cartao img,
  .torneio-card-imagem img {
    height: 132px;
  }

  .torneio-card-imagem {
    min-height: 256px;
  }
}

/* ---------- Footer Responsivo e organizado ---------- */
.footer-custom {
  background: #232228;
  color: #e0e0e0;
  padding: 1.1rem 1rem 0.5rem 1rem;
  font-size: 0.98rem;
  border-top: 3px solid #ffd700;
  box-shadow: 0 -2px 12px #0002;
  width: 100vw;
  margin: 0;
  min-height: unset;
  position: static;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 3.5rem;
  max-width: 1100px;
  margin: 0 auto 0.2rem auto;
}
.footer-col {
  flex: 0 1 auto;
  min-width: 160px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
}
.footer-socials h2, .footer-contactos h2 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #ffd700;
  letter-spacing: 0.2px;
}
.footer-social-icons {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 0.2rem;
  justify-content: flex-start;
}
.footer-social-icons a {
  color: #fff;
  font-size: 1.5rem;
  transition: color 0.2s, transform 0.2s;
  display: block;
  text-align: center;
}
.footer-social-icons a:hover {
  color: #ffd700;
  transform: scale(1.12) rotate(-4deg);
}
.footer-social-label {
  font-size: 0.92rem;
  margin-top: 0.2rem;
  color: #fff;
  font-weight: 500;
  text-decoration: none;
}
.footer-contact-grid {
  display: flex;
  flex-direction: row;
  gap: 2.5rem;
  flex-wrap: nowrap;
  margin-top: 0.2rem;
  justify-content: flex-start;
  align-items: flex-start;
}
.footer-contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  min-width: 120px;
  margin-bottom: 0;
  white-space: normal;
}
.footer-contact-title {
  font-weight: 600;
  font-size: 0.98rem;
  color: #ffffff;
  margin-bottom: 0.1rem;
}
.footer-contact-desc {
  font-size: 0.95rem;
  color: #e0e0e0;
  white-space: normal;
  text-align: center;
}
.footer-contact-desc a {
  color: #ffd700;
  /*text-decoration: underline;*/
}
.footer-copy-custom {
  text-align: center;
  color: #bbb;
  font-size: 0.88rem;
  margin-top: 0.5rem;
  margin-bottom: 0.2rem;
}

/* Responsividade extra footer */
@media (max-width: 900px) {
  .footer-grid { flex-direction: column; align-items: center; gap: 1.8rem; }
  .footer-col { align-items: center; }
  .footer-socials, .footer-contactos { margin: 1; }
  .footer-contact-grid { flex-direction: column; align-items: center; gap: 0.7rem; flex-wrap: wrap; }
}

/* ---------- Efeitos e organização extra ---------- */
.frase-destaque-interativa {
  font-size: 1.5rem;
  font-weight: 500;
  color: #000000;
  text-align: center;
  text-shadow: 0 2px 2px rgba(0, 0, 0, 0.1);
}
.frase-destaque-interativa span,
.frase-destaque-interativa strong {
  color: #ffd700;
  font-weight: 600;
  text-shadow: #000000 0px 0px 2px;
}
.section-title.decorada {
  position: relative;
  font-size: 2rem;
  color: #292823;
  margin-bottom: 1.5rem;
  padding-left: 2.2rem;
  border-left: 6px solid #ffd500;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  transition: all 0.3s ease-in-out;
}
.section-title.decorada i {
  color: #ffffff;
  background: #292823;
  padding: 6px;
  border-radius: 6px;
  font-size: 1.2rem;
  transition: transform 0.2s ease;
}
.section-title.decorada:hover i {
  transform: rotate(-5deg) scale(1.1);
}
/* Extra: Remove outline dos links dos cartões */
.noticias-grid a, .noticias-grid-imagem a {
  outline: none;
  text-decoration: none;
}
