@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
}

:root {
  --primary-color: #e0d214;
  --secondary-color: #40a0c6;
}

/* Header */
header {
  /*background: rgba(0, 100, 145, 0.5);*/
  background-color: #006491;
  color: #fff;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 60px;
  z-index: 1000;
  /*transition: background 0.3s ease; */
  /*backdrop-filter: blur(4px); */
}

html, body {
  height: 100%;
  overflow-x: hidden;
  background: #000;
}

/* Logo */
.logo img {
  height: auto;                             /* mantém a proporção da imagem */
  max-height: 72px;                         /* controla a altura máxima da logo */
  object-fit: contain;
  margin-top: 5px;                          /* controla altura da logo */
  margin-left: 20px;                        /* controla a distância da logo em relação à borda esquerda */
}

/* Header right */
.header-right {
  display: flex;
  align-items: center;
  gap: 30px;
  padding-right: 20px;
}

/* Hamburger (hidden by default, shown on small screens) */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
  z-index: 2100;
}

.menu-toggle span {
  width: 30px;
  height: 4px;
  background: #fff;
  border-radius: 2px;
  display: block;
  margin: 4px 0;
}

/* Navegação */
.nav-wrapper {margin-right: 40px; }

nav a {
  color: #fff;
  text-decoration: none;
  padding: 8px 20px;
  font-size: 16px;
  transition: 0.2s;
}

nav a.active {
  background: var(--primary-color);
  border-radius: 2px;
}

nav a:hover {
  background: var(--secondary-color);
  border-radius: 2px;
}

/* Language flags */
.lang-switch {
  position: relative;
  display: flex;
  justify-content: right;
}

.lang-switch button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin: 0 2px;
}

.lang-switch img {
  width: 30px;
  height: 30px;
  border-radius: 5px;
  transition: transform 0.2s ease;
  border-radius: 3px;
}

.lang-switch img:hover {transform: scale(1.1); }

/* Carousel */
.carousel {
  width: 100vw;
  height: calc(100vh - 60px);
  margin-top: 60px;
  overflow: hidden;
  position: relative;
}

.carousel .list .item {
  width: 180px;
  height: 250px;
  position: absolute;
  top: 80%;
  transform: translateY(-70%);
  left: 70%;
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  background-position: 50% 50%;
  background-size: cover;
  z-index: 100;
  transition: 1s;
  
  display: flex;
  align-items: center;
  justify-content: center;
  background-position: center;
}

/* Definição das imagens do carrossel */
.carousel .list .item:nth-child(1) { background-image: url("images/foto1.jpg"); }
.carousel .list .item:nth-child(2) { background-image: url("images/foto2.jpg"); }
.carousel .list .item:nth-child(3) { background-image: url("images/foto3.jpg"); }
.carousel .list .item:nth-child(4) { background-image: url("images/foto4.jpg"); }
.carousel .list .item:nth-child(5) { background-image: url("images/foto5.jpg"); }
.carousel .list .item:nth-child(6) { background-image: url("images/foto6.jpg"); }

.carousel .list .item:nth-child(1),
.carousel .list .item:nth-child(2) {
  top: 0;
  left: 0;
  transform: translate(0, 0);
  border-radius: 0;
  width: 100%;
  height: 100%;
}

.carousel .list .item:nth-child(3) { left: 67%; }
.carousel .list .item:nth-child(4) { left: calc(67% + 200px); }
.carousel .list .item:nth-child(5) { left: calc(67% + 400px); }
.carousel .list .item:nth-child(6) { left: calc(67% + 600px); }
.carousel .list .item:nth-child(n+7) {
  left: calc(67% + 800px);
  opacity: 0;
}

.arrows button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  font-size: 20px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}

.arrows button:hover {
  background: #fff;
  color: #000;
}

/* Conteúdo dentro do item */
.list .item .content {
  position: absolute;
  top: 50%;
  left: 100px;
  transform: translateY(-50%);
  width: 600px;
  text-align: left;
  color: #fff;
  display: none;
}

.list .item:nth-child(2) .content {display: block; }

.content .title {
  font-size: 100px;
  text-transform: uppercase;
  color: var(--primary-color);
  font-weight: bold;
  line-height: 1;
  opacity: 0;
  animation: animate 1s ease-in-out 0.3s forwards;
}

.content .name {
  font-size: 50px;
  text-transform: uppercase;
  font-weight: bold;
  line-height: 1;
  text-shadow: 3px 4px 4px rgba(255,255,255,0.8);
  opacity: 0;
  animation: animate 1s ease-in-out 0.6s forwards;
}

.content .des {
  margin: 10px 0 20px 5px;
  font-size: 18px;
  opacity: 0;
  animation: animate 1s ease-in-out 0.9s forwards;
}

.content .btn {
  margin-left: 5px;
  opacity: 0;
  animation: animate 1s ease-in-out 1.2s forwards;
}

.content .btn button {
  padding: 10px 20px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 16px;
  border: 2px solid #fff;
}

.content .btn button:nth-child(1) { margin-right: 15px; }
.content .btn button:nth-child(2) {
  background: transparent;
  color: var(--secondary-color);
  transition: 0.3s;
}
.content .btn button:nth-child(2):hover {
  background-color: var(--primary-color);
  color: #fff;
  border-color: var(--secondary-color);
}

/* Arrows */
.arrows {
  position: absolute;
  bottom: 20px;            /* posição no carrossel */
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  gap: 10px;
}

@keyframes animate {
  from { opacity: 0; transform: translateY(100px); filter: blur(33px); }
  to   { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* Barra de tempo */
.carousel .timeRunning {
  position: absolute;
  z-index: 1000;
  width: 0%;
  height: 4px;
  background-color: var(--primary-color);
  left: 0;
  top: 0;
  animation: runningTime 7s linear forwards;
}

@keyframes runningTime {
  from { width: 0%; }
  to   { width: 100%; }
}

/* Responsivo */
@media screen and (max-width: 999px) {
  .list .item .content { left: 50px; }
  .content .title, .content .name { font-size: 70px; }
  .content .des { font-size: 16px; }
}

@media screen and (max-width: 690px) {
  nav a { font-size: 14px; }
  .list .item .content { top: 40%; }
  .content .title, .content .name { font-size: 45px; }
  .content .btn button { padding: 10px 15px; font-size: 14px; }
}

/* Layout mobile */
@media screen and (max-width: 768px) {
  header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    height: auto;
    padding: 0px 20px; /* 14*/
  }


  /* keep logo at left and hamburger + nav on the right */
  .logo { 
    order: 1; 
    margin: 0; 
  }
  .menu-toggle { 
    order: 2; 
    margin: 0 12px; 
  }
  .menu-toggle { 
    display: flex; 
  }
  .header-right { 
    order: 3; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
  }

  .logo img { 
    max-height: 72px;
    
    margin-left: 5px;
  }

  .menu-toggle span { 
    width: 30px; 
    height: 4px; 
    background: #fff; 
    border-radius: 2px; 
    margin: 4px 0; 
    }

  /* nav hidden by default on small screens, revealed with .show */
  nav, nav ul { 
    display: none; 
  }
  nav.show, nav.show ul { 
    display: flex; 
    flex-direction: column; 
    position: absolute; 
    left: 0; 
    right:0; 
    top: 60px; 
    background: #006491; 
    z-index:2000; 
  }

  nav a { 
    display: block; 
    text-align: center; 
    padding: 12px 16px; 
    font-size: 1.05rem; 
  }

  .lang-switch img { 
    width: 30px; 
    height: 30px; 
    border-radius: 8px;
  }

  /* add a small inset so flags aren't flush to the right edge */
  .lang-switch { 
    margin-left: 6px; 

    display: flex;
    justify-content: space-between;
    width: 120px;
    gap: 10px;
    margin-right: 0;
    margin-left: 2px;
  }

  /* adjust carousel top spacing to match header on small screens */
  .carousel { 
    margin-top: 80px; 
    height: calc(100vh - 80px); 
  }

  /* carousel captions left as in desktop rules; active slide controls visibility via existing selectors/JS */

  @media screen and (max-width: 768px) {
  .list .item .content {
    left: 20px;
    width: calc(100% - 40px);
    text-align: center;
  }

  .content .title, 
  .content .name {
    font-size: 32px;
    line-height: 1.2;
  }

  .content .des {
    font-size: 14px;
    margin: 10px auto;
    max-width: 90%;
  }

  .content .btn {
    display: flex;
    justify-content: center;
    margin-top: 15px;
  }
}

@media screen and (max-width: 768px) {
  .carousel .list .item {
    width: 120px;          /* reduz largura */
    height: 180px;         /* reduz altura */
    left: 50%;             /* centraliza melhor */
    transform: translateX(-50%) translateY(-70%);
  }

  .list .item .content {
    width: calc(100% - 40px); /* ocupa quase toda a largura */
    left: 20px;               /* margem lateral */
    text-align: center;       /* centraliza texto */
  }

  .content .title, 
  .content .name {
    font-size: 28px;          /* menor para caber bem */
  }

  .content .des {
    font-size: 14px;
    margin: 10px auto;
    max-width: 90%;
  }

  .content .btn {
    display: flex;
    justify-content: center;
  }
}

@media screen and (max-width: 768px) {
  .carousel .timeRunning {
    display: none;   /* esconde a barra de progresso */
  }
}
}
