body, html {
  height: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
}

.faixa-topo, .faixa-fundo {
  width: 100vw;
  height: 100px;
  background-color: rgba(13, 44, 108, 0.75);
  position: fixed;
  left: 0;
  z-index: 2;
  display: flex;
  align-items: center;
}

.faixa-topo {
  top: 0;
  justify-content: space-between;
}

.faixa-fundo {
  bottom: 0;
  justify-content: center;
}

.top-buttons {
  display: flex;
  gap: 50px;
  margin-right: 100px;
}

.top-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  transition: color 0.2s;
  padding: 10px 20px;
}

.top-btn:hover {
  color: #62BB46;
}

.imagem-centro {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%; /* opcional, pode ajustar */
  height: 100%; /* opcional, pode ajustar */
  pointer-events: none; /* para não bloquear o vídeo */
}

.img-direita, .img-esquerda {
  height: auto; /* ajuste conforme necessário */
  width: 400px;
  display: block;

}

.imagem-bg {
  background: rgba(255,255,255,0.25); /* branco com 25% de transparência */
  transition: background 0.3s;
  cursor: pointer;
  padding: 50px 50px; /* ajuste conforme necessário */
  border-radius: 16px;
  display: flex;
  flex-direction: column; /* Isto força o empilhamento vertical */
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  pointer-events: auto;
  line-height: 0;
}

.imagem-bg.clickable:hover,
.imagem-bg.clickable:focus {
  background: rgba(255,255,255,0.75);
}

.imagem-bg img {
  margin: 0;
  padding: 0;
  display: block;
  line-height: 0;
}

.footer-content {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-size: clamp(0.9rem, 1.5vw, 1.2rem); /* Aumenta o mínimo para 0.9rem (menos redução) */
  font-family: inherit;
  font-weight: normal;
  letter-spacing: normal;
  flex-direction: row;
  gap: 0;
  text-align: center;
}

.footer-content, .top-btn {
  font-family: inherit;
}

/* Modal iframe */
.iframe-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
}

.iframe-modal.active {
  display: flex;
}

.iframe-content {
  background: rgba(255,255,255,0.75); /* 75% transparente */
  border-radius: 10px;
  padding: 20px;
  position: relative;
  width: 80vw;
  max-width: 800px;
  height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.close-btn {
  position: absolute;
  top: 10px; right: 20px;
  font-size: 2rem;
  color: #0D2C6C;
  cursor: pointer;
  z-index: 2;
}

#iframe-box {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
  margin-top: 20px;
}

.faixa-fundo {
  bottom: 0;
}

.logo-area {
  height: 100%;
  display: flex;
  align-items: center;
  margin-left: 50px;
}

.logo-img {
  height: clamp(40px, 5vw, 50px); /* Reduz gradualmente: min 30px, preferido 5vw, max 50px */
  width: auto;
  display: block;
}

.container {
  display: flex;
  height: 100vh;
  width: 100vw;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1;
}

.lado {
  flex: 1;
  position: relative;
  overflow: hidden;
  height: 100vh;
}

.video-bg {
  position: absolute; /* Padrão para desktop */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

@font-face {
  font-family: 'FFF_Tusj';
  src: url('../assets/fonts/FFF_Tusj.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

.sace-text {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 72px;
  color: #0D2C6C;
  text-align: center;
  letter-spacing: 2px;
  line-height: 1;
  margin: 0;
  padding: 0;
}

.sace-sub {
  font-size: 48px;
}

/* Hamburger menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    margin-right: 20px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 3px 0;
    transition: 0.3s;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100px;
    right: 0;
    background: rgba(13, 44, 108, 0.9);
    flex-direction: column;
    padding: 10px;
    border-radius: 5px;
    z-index: 10;
}

.mobile-menu.active {
    display: flex;
}

.desktop-only {
    display: flex;
}

.mobile-only {
    display: none;
}

/* Responsividade para dispositivos móveis */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        position: relative; /* Muda para relativo para empilhar */
        top: 100px;
        height: calc(100vh - 200px);
        z-index: 1;
    }

    .logo-area {
        margin-left: 0; /* Remove margem para centralizar o logotipo */
    }

    .lado.esquerdo, .lado.direito {
        width: 100vw;
        height: 50%; /* Metade da altura do container */
        position: relative;
    }

    /* Vídeos fixos e de tela cheia, empilhados */
    .lado.esquerdo .video-bg {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 50vh; /* Metade superior da tela */
        z-index: 0;
    }

    .lado.direito .video-bg {
        position: fixed;
        top: 50vh; /* Metade inferior da tela */
        left: 0;
        width: 100vw;
        height: 50vh;
        z-index: 0;
    }

    .video-bg {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Centraliza imagens do centro fixamente na tela */
    .lado.esquerdo .imagem-centro {
        position: fixed;
        top: calc(50px + 25vh); /* Centro do espaço visível do vídeo superior (abaixa metade da faixa do cabeçalho) */
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 2;
    }

    .lado.direito .imagem-centro {
        position: fixed;
        top: calc(75vh - 50px); /* Centro do espaço visível do vídeo inferior (sobe metade da faixa do rodapé) */
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 2;
    }


    .imagem-centro {
        width: 80%;
        max-width: 300px;
    }

    .img-esquerda, .img-direita {
        width: 100%;
        height: auto;
        max-width: 100%;
    }

    .sace-text {
        font-size: 36px; /* Ajuste para mobile */
    }

    .sace-sub {
        font-size: 24px;
    }

    .faixa-topo {
        flex-direction: row;
        justify-content: center; /* Centraliza o logotipo */
        position: relative; /* Para posicionar o hamburger absolutamente */
    }

    .hamburger {
        position: absolute; /* Posiciona o hamburger no canto direito */
        right: 20px;
        top: 50%;
        transform: translateY(-50%); /* Centraliza verticalmente */
    }

    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: flex;
    }

    .top-buttons {
        display: none; /* Oculta botões desktop */
    }

    .iframe-content {
        width: 95vw; /* Aumenta a largura para ocupar mais espaço */
        height: 85vh; /* Aumenta a altura */
        padding: 10px; /* Reduz padding para mais espaço interno */
    }

    .close-btn {
        font-size: 1.5rem; /* Reduz tamanho da fonte do botão de fechar */
    }

    .faixa-fundo {
        font-size: 12px;
        text-align: center;
    }

    .footer-content {
        flex-direction: column;
        gap: 5px;
        font-size: 1rem; /* Mantém fonte maior em mobile */
    }
}