body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

/* Fundo desktop */
.fundo {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../imagens/bgmobile-ps2026.png") no-repeat center center;
  background-size: cover;
  z-index: 0;
}

/* Logo IFMG */
#logo-ifmg {
  position: absolute;
  top: 80px;
  right: 180px;
  width: 120px;
  z-index: 5;
}

/* Título */
#titulo {
  position: absolute;
  top: 40px;
  left: 320px;
  width: 600px;
  z-index: 5;
}
#titulo img { width: 100%; height: auto; }

/* Slogan adicional */
#slogan {
  position: absolute;
  top: 300px;
  left: 350px;
  width: 520px;
  z-index: 5;
}
#slogan img { width: 100%; height: auto; }

/* Alunos */
#alunos {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 55%;
  z-index: 3;
}

/* Menu botões */
#menu {
  position: absolute;
  top: 280px;
  right: 120px;
  width: 240px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
#menu a {
  display: block;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  text-align: center;
  padding: 14px 0;
  border-radius: 6px;
  width: 100%;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}

.btn.azul { background: #2b6dc3; }
.btn.amarelo { background: #f2c400; color: #000; }
.btn.rosa { background: #c03d8f; }
.btn.verde { background: #2a9d4a; }
.btn:hover { opacity: 0.9; }

/* 🔹 Breakpoint intermediário */
@media (max-width: 1100px) {
  #titulo { width: 50%; left: 8%; }
  #menu { right: 40px; width: 200px; top: 260px; }
  #menu a { font-size: 1.3rem; padding: 12px 0; }
  #alunos { height: 50%; }
  #slogan { width: 400px; left: 15%; top: 280px; }
}

/* 🔹 Ajuste extra para telas entre 900px e 850px */
@media (max-width: 950px) {
  #menu { right: 20px; width: 180px; }
  #slogan { width: 350px; left: 10%; }
  #titulo { width: 60%; left: 5%; }
}

/* 📱 MOBILE */
@media (max-width: 850px) {
  .fundo {
    background: url("../imagens/bgmobile-ps2026.png") no-repeat center top;
    background-size: cover;
  }

  #logo-ifmg, #alunos { display: none; }

  #titulo {
    width: 70%;
    position: relative;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 10;
  }

  #slogan {
    display: block;
    position: relative;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    z-index: 10;
    text-align: center;
    margin-bottom: 10px;
  }

  #slogan img { width: 100%; height: auto; }

  #menu {
    position: relative;
    top: 30px;
    right: auto;
    margin: 0 auto;
    width: 80%;
    text-align: center;
    gap: 10px;
  }

  #menu a {
    font-size: 1rem;
    padding: 8px 0;
  }
}

.btn .subinfo {
    display: block;
    font-size: 0.85rem;
    font-weight: normal;
    color: #fff;
    opacity: 0.9;
    margin-top: 3px;
}

