/* ================================================== */
/* ESTILOS MOBILE E TABLET (Max-width: 900px)        */
/* ================================================== */
@media (max-width: 900px) {
  
  header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--corescura-1);
    padding: 15px 20px;
    position: relative;
  }

  .logo-img {
    width: 100px;
    height: auto;
  }

  .menu-container {
    display: flex;
    align-items: center;
  }

  .search-menu-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
  }

  .btn-tema img {
    width: 28px; 
    height: auto;
    cursor: pointer;
  }

  .search {
    position: relative;
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #007aff, #00bfff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    overflow: hidden;
  }

  .search img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
    z-index: 2;
  }

  .search input {
    position: absolute;
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
    padding-left: 40px;
    color: white;
    opacity: 0;
    pointer-events: none;
  }

  .search.active {
    width: 160px;
    border-radius: 20px;
    justify-content: flex-start;
  }
  
  .search.active input {
    opacity: 1;
    pointer-events: all;
  }

  .hamburguer {
    font-size: 30px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    margin-left: 10px;
  }

  .menu-lista {
    position: absolute;
    top: 70px;
    right: 20px;
    background-color: rgba(17, 17, 17, 0.95);
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    border-radius: 10px;
    list-style: none;
    padding: 15px;
    display: none;
    flex-direction: column;
    width: 200px;
    z-index: 1000;
    border: 1px solid var(--corescura-3);
  }
  
  .menu-lista.active {
    display: flex;
    animation: fadeIn 0.3s ease forwards;
  }

  .menu-lista li {
    width: 100%;
    margin-bottom: 10px;
  }

  .menu-lista li a {
    display: block;
    color: #fff;
    font-family: lovelo;
    text-decoration: none;
    font-size: 1.2rem;
    padding: 8px;
    border-radius: 5px;
  }

  .menu-lista li a:hover {
    background-color: var(--corescura-3);
  }

  /* PRINCIPAL */
  .principal {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .principal-esquerda {
    display: none; 
  }

  .imagem-direita {
    width: 100%;

    position: relative;
    overflow: hidden;
  }

  .imagem-direita img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .titulo-mobile {
    display: block !important;
    position: absolute;
    top: 0px;
    left: 10px;
    font-family: lovelo;
    font-size: 2rem;
    color: var(--branco);
    text-shadow: 2px 2px 4px rgb(0, 17, 53);
    z-index: 5;
  }

  .bloco3-mob {
    display: block !important;
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 100px;
  }
  
  .bloco3-mob img {
    width: 100%;
  }

  .imagem-direita button {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: var(--corescura-4);
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-family: lovelo;
    color: var(--branco);
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  }

  .barra-separacao {
    width: 100%;
    height: 8px;
    background: linear-gradient(to right, var(--preto), var(--corescura-3), var(--corescura-4));
  }

  /* SOBRE E ESTAMPA */
  .sobre {
    background: var(--corescura-1);
    color: var(--branco);
  }

  .conteudo-sobre {
      padding: 30px 20px;
      text-align: center;
  }

  .sobre h1 {
    font-family: lovelo;
    font-size: 1.6rem;
    margin-bottom: 15px;
  }

  .sobre p {
    font-family: raleway;
    font-size: 1.1rem;
    text-align: justify;
    line-height: 1.5;
  }
  
  .Estampa-centro {
      width: 100%;
      margin: 0;
      padding: 0;
      overflow: hidden;
  }

  .Estampa-centro img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
  }

  /* NOTICIAS */
  .noticias {
    padding: 30px 15px;
    text-align: center;
    color: var(--branco);
  }

  .noticias h2 {
    font-family: lovelo;
    font-size: 2rem;
    margin-bottom: 20px;
  }

  .noticias-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .card {
    width: 100%;
    max-width: 350px;
    background-color: var(--corescura-4);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
  }

  .card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
  }

  .card-content {
    padding: 15px;
  }

  .card h3 {
    font-family: lovelo;
    font-size: 1.3rem;
    margin-bottom: 10px;
  }

  .card p {
    font-family: raleway;
    font-size: 1rem;
  }

  /* MURAL */
  .h1-mural {
    text-align: center;
    padding: 20px;
    background: var(--preto);
    color: var(--branco);
    font-family: lovelo;
  }

  .projetos-alunos h1 {
    font-size: 25px;
    margin: 60px 40px;
    color: var(--branco);
  }

  .catalogo-mural {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
    background: var(--preto);
  }

  .foto-1 {
    background: #111;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
  }

  .foto-1 img {
    width: 100%;
    height: auto;
    border: 1px solid var(--corescura-4);
  }

  .textos {
    margin-top: 10px;
    font-family: raleway;
  }

  .textos span {
    color: var(--corescura-4);
    font-weight: bold;
    display: block;
  }
  
  .textos p {
    color: var(--branco);
  }

  /* PROFESSORES */
  .professores {
    flex-direction: column;
    padding: 30px 15px;
  }
  
  .professores .titulo {
    max-width: 100%;
    margin-bottom: 20px;
    text-align: center;
  }

  .professores h2 {
      font-family: lovelo;
      font-size: 1.8rem;
      color: var(--corescura-4);
      margin-bottom: 10px;
  }

  .professores p {
    color: var(--branco);
  }

  .professores-container {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding-bottom: 20px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }

  .prof-card {
    min-width: 85vw;
    scroll-snap-align: center;
    background: #1a1a1a;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #333;
  }
  
  .prof-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: top;
  }

  .info {
    padding: 20px;
  }
  
  .info h3 {
    font-family: lovelo;
    color: #1e90ff;
    font-size: 1.4rem;
  }
  
  /* CORREÇÃO DA COR DO TEXTO DE PROFESSORES PARA BRANCO */
  .info p {
    font-family: raleway;
    color: var(--branco) !important; /* Forçado branco */
    font-size: 1rem;
    line-height: 1.5;
  }

  /* ========================================= */
  /* PROJETOS ALUNOS - CORREÇÃO DE SOBREPOSIÇÃO */
  /* ========================================= */
  .projetos-alunos {
    padding: 40px 20px;
    flex-direction: column;
    align-items: center;
    background: var(--preto);
    /* Permite que o container cresça conforme o conteúdo */
    height: auto !important; 
    gap: 50px;
  }

  .projeto {
    width: 100%;
    max-width: 340px;
    /* REMOVIDO HEIGHT FIXO - AGORA É AUTO */
    height: auto !important; 
    min-height: auto !important;
    padding: 15px;
    padding-bottom: 30px;
    display: flex;
    flex-direction: column;
    margin-bottom: 30px; /* Garante espaço extra */
  }

  .projeto:hover {
      transform: none; /* Remove efeito de zoom no mobile */
  }

  .projeto-img-box {
    width: 100%;
    height: auto; /* Altura flexível da imagem */
    min-height: 160px;
    flex-shrink: 0;
    margin-bottom: 15px;
  }
  
  .imagem-projeto {
    height: 180px; /* Fixa altura visual da imagem */
    width: 100%;
    object-fit: cover;
  }

  .projeto-conteudo {
    padding: 0;
  }

  .projeto-links {
    text-align: center;
      justify-content: center;
      gap: 25px;
      margin-top: 15px;
  }

  .icons-2 {
      width: 45px;
      height: 45px;
  }

  /* ========================================= */
  /* FOOTER MOBILE - ESTILO DESKTOP RESPONSIVO */
  /* ========================================= */
  footer {
      text-align: center;
  }

  footer nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding-bottom: 20px;
  }
  
  /* Mantém a ordem lógica: Informações -> Logo -> Lista -> Mapa */
  
  .informacoes {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 10px;
  }

  .informacoes h3 {
      font-size: 1.2rem;
      margin-bottom: 5px;
      color: var(--branco);
      text-transform: uppercase;
  }
  
  /* Links de contato sem decoração */
  .contato-link {
    color: var(--branco) !important;
    text-decoration: none !important;
    font-size: 1.1rem;
    font-weight: bold;
  }
  
  .contato-link:visited {
    color: var(--branco) !important;
  }

  .icons-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
  }

  .icons-social img.icons {
      height: 32px !important;
      width: 32px !important;
  }
  
  .logo-footer img {
      width: 140px;
      height: auto;
  }

  .lista ul {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  
  .lista a {
      font-size: 1.2rem;
      color: var(--branco) !important;
      text-decoration: none !important;
  }
  
  .lista a:visited {
    color: var(--branco) !important;
  }

  .maps {
      margin-top: 10px;
      padding: 0 20px;
  }
  
  .maps a {
    color: var(--branco) !important;
    text-decoration: none !important;
  }

  footer nav {
    margin-top: 55px;
  }
  
  .creditos {
    color: var(--branco);
    font-size: 0.8rem;
    padding: 15px 10px;
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}