/* flowing-menu.css - marquee apenas com imagens em loop (horizontal) */

/* container */
.tut-link {
  text-decoration: none;
}
.fm-menu-wrap, .menu-wrap {
  width: 100%;
  height: auto;
  overflow: hidden;
}

.menu {
  display: flex;
  flex-direction: column;
  height: 500px; /* ajuste conforme seu layout */
  margin: 18px auto;
  padding: 0;
  max-width: 1100px;
}

.menu__item {
  flex: 1;
  position: relative;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 -1px rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(247, 245, 245, 0.02);
  background: transparent;
}

.menu__item-link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  position: relative;
  cursor: pointer;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  font-weight: 600;
  color: rgb(44, 95, 93);
  font-size: 30px;
  z-index: 3;
  transition: color 0.35s cubic-bezier(.19,1,.22,1);
  margin-top: 40px;
}

.menu__item-link:hover { 
    color: #363636;
    transform: translateY(-1px) scale(1.3);
    text-shadow: 4px 4px 4px rgba(0, 0, 0, 0.26);
 }

/* faixa que desliza verticalmente (entrada/saída) */
.marquee {
  position: absolute;
  opacity: 0.5;
  top: 0;
  left: 0;
  overflow: hidden;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: #fff;
  transform: translate3d(0, 101%, 0);
  transition: transform 0.6s cubic-bezier(.19,1,.22,1);
  z-index: 2;
}

/* wrapper que será deslocado verticalmente (contramovimento) */
.marquee__inner-wrap {
  height: 100%;
  width: 200%;
  display: flex;
  transform: translateX(0);
  transition: transform 0.6s cubic-bezier(.19,1,.22,1);
}

/* conteúdo que faz o movimento horizontal (apenas imagens) */
.marquee__inner {
  display: flex;
  align-items: center;
  position: relative;
  height: 100%;
  width: 200%;
  will-change: transform;
  /* animation será aplicada inline por JS para cada item (duração/delay próprios) */
}

/* cada bloco de imagem no marquee */
.marquee__img {
  width: 110px;             /* largura da miniatura no loop */
  height: 60px;             /* altura da miniatura */
  margin: 0 12px;
  border-radius: 12px;
  background-size: cover;
  background-position: 50% 50%;
  flex: 0 0 auto;          /* não encolhe nem cresce */
}

/* fallback: se o JS estiver apagado, hover ainda revela */
.menu__item-link:hover + .marquee { transform: translate3d(0, 0%, 0); }

/* keyframes (move de 0 a -50% para um loop suave com conteúdo duplicado) */
@keyframes fm-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* responsivo */
@media (max-width: 900px) {
  .menu { height: 500px; }
  .menu__item { height: 700px; }
  .menu__item-link { font-size: 30px; height: 100%; 
    margin-top: 20px; }
  .marquee__img { width: 150px; height: 85px; }
}
