* {
  box-sizing: border-box;
}
/*.logo img {
  height: 70px;      /* ajusta conforme o logo 
  width: 250px;
  display: block;
} */

.logo img {
  height: auto;
  width: auto;
  max-height: 110px; /* opcional */
}


.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background: #f4f6f8;
  color: #333;
}
/* CONTAINER PRINCIPAL DE CONTEÚDO */
.content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 30px;
}
.content h2 {
  margin-bottom: 20px;
  color: #0a2a66;
}

.content h3 {
  margin-bottom: 15px;
}

.content p {
  margin-bottom: 15px;
}


/* HEADER */
.header {
  background: #0a2a66;
  color: #fff;
  padding: 15px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: bold;
  font-size: 1.2rem;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  padding: 0;
  margin: 0;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

/* MENU MOBILE */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: white;
  cursor: pointer;
}

/* HERO */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 60px 40px;
  background: linear-gradient(135deg, #0a2a66, #1144aa);
  color: white;
  align-items: center;
}

.hero-text h1 {
  font-size: 2.5rem;
}

.hero-text p {
  font-size: 1.1rem;
}

.hero-img {
  width: 600px;
  height: 400px;
  object-fit: cover;   /* mantém proporção e não distorce */
  border-radius: 16px; /* opcional */
}

.hero-img {
  width: 100%;
  max-width: 600px;
  height: 400px;
  object-fit: cover;
}

.card-img {
  width: 300px;
  height: 200px;
  object-fit: cover;   /* não distorce */
  border-radius: 12px;
  margin-bottom: 1rem;
}
.card-img {
  width: 100%;
  max-width: 300px;
  height: 200px;
  object-fit: cover;
}

/* PLACEHOLDER DE IMAGENS */
.image-placeholder {
  background: repeating-linear-gradient(
    45deg,
    #ddd,
    #ddd 10px,
    #ccc 10px,
    #ccc 20px
  );
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  border-radius: 8px;
}

.hero-img {
  width: 100%;
  height: 400px;
}

.card-img {
  width: 100%;
  height: 200px;
  margin-bottom: 15px;
}

/* CARDS */
.highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  padding: 50px 40px;
}

.card {
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* BOTÕES */
.btn {
  padding: 12px 22px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  font-weight: bold;
  margin-top: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
  background: #ffcc00;
  color: #000;
}

.btn.secondary {
  background: #ffcc00;
  color: #000;
}

/* FOOTER */
footer {
  background: #0a2a66;
  color: white;
  text-align: center;
  padding: 20px;
}

/* RESPONSIVO */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  nav {
    display: none;
    width: 100%;
    background: #0a2a66;
  }

  nav ul {
    flex-direction: column;
    padding: 20px;
  }

  .menu-toggle {
    display: block;
  }
}

nav.active {
  display: block;
}

.btn {
  position: relative;
  overflow: hidden;
}

.ripple {
  position: absolute;
  width: 20px;
  height: 20px;
  background: rgba(255,255,255,0.6);
  border-radius: 50%;
  transform: scale(0);
  animation: ripple-effect 0.6s linear;
}

@keyframes ripple-effect {
  to {
    transform: scale(15);
    opacity: 0;
  }
}

/* CATEGORIAS */
.category {
  background: white;
  padding: 25px;
  margin-bottom: 40px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.category h3 {
  margin-top: 0;
  color: #0a2a66;
}

/* IMAGENS DAS CATEGORIAS */
.category-images {
  display: grid;
  grid-template-columns: repeat(2, 300px);
  gap: 20px;
  margin-top: 20px;
}
/* layout lado a lado */
.category-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

/* texto ocupa mais espaço */
.category-text {
  flex: 1;
}

/* imagem */
.category-img {
  width: 260px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}


/* RESPONSIVO */
@media (max-width: 700px) {
  .category-images {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  @media (max-width: 700px) {
  .category-content {
    flex-direction: column;
    text-align: center;
  }

  .category-img {
    width: 100%;
    max-width: 320px;
  }
}


  .category-images .image-placeholder {
    width: 100%;
    max-width: 300px;
  }
}

/* ABOUT SECTION */
.about-section {
  background: #f9fafb;
}

.intro-text {
  max-width: 700px;
  margin: 0 auto 50px;
  text-align: center;
  font-size: 1.1rem;
}

/* COMO FUNCIONA */
.how-it-works {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-bottom: 70px;
}

.how-card {
  background: white;
  padding: 25px;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.icon-box {
  width: 120px;
  height: 120px;
  margin: 0 auto 15px;
  border-radius: 50%;
}

/* TEMA 2026 */
.theme-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 70px;
}

.theme-img {
  width: 100%;
  height: 300px;
}

.theme-text h2 {
  color: #0a2a66;
}

/* CTA */
.cta-box {
  background: linear-gradient(135deg, #0a2a66, #1144aa);
  color: white;
  padding: 50px 30px;
  border-radius: 16px;
  text-align: center;
}

.cta-box p {
  max-width: 600px;
  margin: 15px auto 25px;
}

/* RESPONSIVO */
@media (max-width: 900px) {
  .theme-section {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* EVENTOS */
.events-section {
  background: #f9fafb;
}

.event {
  background: white;
  padding: 30px;
  border-radius: 14px;
  margin-bottom: 50px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.event h3 {
  color: #0a2a66;
}

.event-desc {
  max-width: 600px;
  margin-bottom: 20px;
}

/* SLIDESHOW */
.slideshow {
  position: relative;
  overflow: hidden;
  padding: 0 60px; /* espaço para os botões */
}

.slides {
  overflow: hidden;
}


/*.slides {
  display: flex;
  transition: transform 0.4s ease;
}*/
.slides {
  display: flex;
  gap: 16px;           /* espaço entre as fotos */
  overflow-x: auto;   /* permite deslizar se passar do ecrã */
}

.slide-img {
  width: 300px;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;     /* impede que as imagens encolham */
}


.slides {
  display: flex;
  transition: transform 0.4s ease;
  padding: 0 10px;
}


.slide {
  min-width: 300px;
  height: 200px;
  margin-right: 20px;
  border-radius: 10px;
}

.slide-img {
  width: 300px;
  height: 200px;
  object-fit: cover;   /* não distorce */
  border-radius: 12px;
}
.slide-img {
  width: 100%;
  max-width: 300px;
  height: 200px;
  object-fit: cover;
}

/* BOTÕES */
.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(10,42,102,0.95);
  color: white;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  z-index: 10; /*  MUITO IMPORTANTE */
}

.slide-btn.prev {
  left: 5px;
}

.slide-btn.next {
  right: 5px;
}

/* RESPONSIVO */
@media (max-width: 700px) {
  .slide {
    min-width: 260px;
    height: 180px;
  }
}
@media (max-width: 700px) {
  .slide-btn {
    width: 36px;
    height: 36px;
    font-size: 1.3rem;
  }
}
/* RESOURCES */
.resources-section {
  background: #f9fafb;
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.resource-card {
  background: white;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.resource-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}

/*.resource-img {
  width: 100%;
  height: 200px;
  margin-bottom: 15px;
}*/

.resource-img {
  width: 100%;
  max-width: 300px;
  height: 200px;
  object-fit: cover;
}

.resource-img {
  width: 100%;
  height: 200px;        /* mantém o padrão 300x200 */
  object-fit: contain; /* NÃO corta */
  background: #f5f5f5; /* fundo suave para espaços vazios */
}


.resource-card h3 {
  color: #0a2a66;
  margin-bottom: 10px;
}

.resource-card p {
  font-size: 0.95rem;
  margin-bottom: 15px;
}
/* PARTNERS */
.partners-section {
  background: #f9fafb;
}

.organizador {
  display: flex;
  flex-direction: column; /* força vertical */
  align-items: center;
  text-align: center;
  margin: 4rem 0;
  gap: 1.5rem;
}

/* TEXTO */
.organizador-texto {
  max-width: 800px;
}

/* LOGO */
.organizador-logo {
  width: 450px;
  height: auto;
  object-fit: contain;
}


.partners-block {
  margin-top: 60px;
}

.partners-block h3 {
  color: #0a2a66;
  margin-bottom: 10px;
}

.block-desc {
  max-width: 700px;
  margin-bottom: 30px;
  font-size: 1rem;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.partner-card {
  background: white;
  border-radius: 14px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.partner-card:hover {
  transform: translateY(-5px);
}

.partner-logo {
  width: 100%;
  height: 150px;
  margin-bottom: 15px;
}

.partner-card h4 {
  font-size: 1rem;
  color: #333;
}
/* Ajuste especial para apenas 2 financiadores */
.partners-grid.two-partners {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 320px));
  justify-content: center;
  gap: 40px;

  .partner-logo {
  width: 300px;
  height: 150px;
  object-fit: contain; /* MUITO importante para logos */
  background: #ffffff;
  padding: 10px;
  border-radius: 12px;
}
.partner-logo {
  width: 100%;
  max-width: 300px;
  height: 150px;
  object-fit: contain;
}

.partners-grid.two-partners {
  display: flex;
  justify-content: center;
  gap: 30px; /* espaço entre os cards */
  flex-wrap: wrap;
}

}
/* CONTACTOS */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-top: 50px;
}

.contact-info p {
  margin-bottom: 15px;
}

.social-links a {
  display: inline-block;
  margin-right: 15px;
  color: #0a2a66;
  font-weight: 500;
  text-decoration: none;
}

.contact-form form {
  background: white;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-family: inherit;
}

/* RESPONSIVO */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* BOTÕES DAS CATEGORIAS */
.category-buttons {
  margin-top: 25px;
}

.category-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 300px;
  height: 70px;
  border-radius: 18px;
  font-size: 1.4rem;
  font-weight: bold;
  color: white;
  text-decoration: none;
  box-shadow: 0 15px 35px rgba(0,0,0,0.18);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* CORES POR CATEGORIA */
.category-btn.robomission {
  background: linear-gradient(135deg, #e4c22d, #ff7043);
}

.category-btn.innovators {
  background: linear-gradient(135deg, #ef2e4e, #dd204c);
}

.category-btn.robosports {
  background: linear-gradient(135deg, #23c94f, #2fce61);
}

.category-btn.engineers {
  background: linear-gradient(135deg, #8db0ee, #1964ba);
}

/* HOVER */
.category-btn:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 25px 50px rgba(0,0,0,0.25);
}

/* RESPONSIVO */
@media (max-width: 700px) {
  .category-btn {
    width: 100%;
    max-width: 320px;
    height: 140px;
    font-size: 1.2rem;
  }
}


.how-it-works {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  text-align: center;
}

.how-card {
  padding: 1.5rem;
}

.how-icon {
  width: 120px;
  height: 120px;
  object-fit: contain; /* não distorce a imagem */
  margin-bottom: 1rem;
}

.stem-hero {
  padding: 80px 20px;
  text-align: center;
  background: #f4f7fb;
}

.stem-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.stem-hero p {
  max-width: 700px;
  margin: auto;
  font-size: 1.1rem;
}

.stem-content {
  max-width: 1100px;
  margin: 60px auto;
  padding: 0 20px;
}

.stem-block {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-bottom: 60px;
}

.stem-block.reverse {
  flex-direction: row-reverse;
}

.stem-block img {
  width: 45%;
  height: 280px;
  object-fit: cover;
  border-radius: 12px;
}

.stem-text {
  width: 55%;
}

.stem-text h2 {
  margin-bottom: 15px;
}

@media (max-width: 768px) {
  .stem-block,
  .stem-block.reverse {
    flex-direction: column;
  }

  .stem-block img,
  .stem-text {
    width: 100%;
  }
}

/* fundo escuro transparente */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.55);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

/* caixa do aviso */
.popup-box {
  background: white;
  padding: 30px;
  max-width: 420px;
  width: 90%;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 15px 40px rgba(0,0,0,0.2);
  position: relative;
}

/* botão fechar */
.popup-close {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 26px;
  cursor: pointer;
}

/* botão ação */
.popup-btn {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  background: #0a2a66;
  color: white;
  text-decoration: none;
  border-radius: 6px;
} 

.popup-overlay {
  animation: fadeOut 1s ease 7s forwards;
}

@keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}
