@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,500;1,500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Arimo:ital,wght@0,400..700;1,400..700&family=Montserrat:ital,wght@0,900;1,900&display=swap');
@import url("https://use.typekit.net/TEU_KIT.css");

/* === UNIVERSAL FIX === */
*, *::before, *::after {
  box-sizing: border-box;
}

/* Centrar texto de forma controlada (mantém tudo visualmente centrado) */
body,
header,
.hero,
footer,
h1, h2, h3, h4, h5, h6,
p, li {
  text-align: center;
}

:root {
  --clr: #000000;
}

#loading {
  position: fixed;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  background: #000000;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.5s ease;
}

/* Reutiliza a tua animação */
#loading .loading-container {
  position: relative;
  width: 200px;
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#loading .loading-ring {
  width: 200px;
  height: 200px;
  border: 0px solid #000;
  border-radius: 50%;
  position: absolute;
}

#loading .ring1 {
  border-bottom-width: 8px;
  border-color: rgb(158, 0, 158);
  animation: rotate1 2s linear infinite;
}

#loading .ring2 {
  border-bottom-width: 8px;
  border-color: rgb(0, 255, 255);
  animation: rotate2 2s linear infinite;
}

#loading .ring3 {
  border-bottom-width: 8px;
  border-color: rgb(255, 255, 255);
  animation: rotate3 2s linear infinite;
}

#loading .loading {
  color: white;
  font-family: "Arimo", sans-serif;
  top: calc(100% + 10px);
}

@keyframes rotate1 {
  0% { transform: rotateX(35deg) rotateY(-45deg) rotateZ(0deg) }
  100% { transform: rotateX(35deg) rotateY(-45deg) rotateZ(360deg) }
}

@keyframes rotate2 {
  0% { transform: rotateX(50deg) rotateY(10deg) rotateZ(0deg) }
  100% { transform: rotateX(50deg) rotateY(10deg) rotateZ(360deg) }
}

@keyframes rotate3 {
  0% { transform: rotateX(35deg) rotateY(55deg) rotateZ(0deg) }
  100% { transform: rotateX(35deg) rotateY(55deg) rotateZ(360deg) }
}

/* General styles */
body {
  margin: 0;
  font-family: "pragmatica-condensed", sans-serif;
  font-weight: 900;
  font-style: normal;
}

nav {
  font-family: "pragmatica", sans-serif;
  width: 100%;
  padding: 1rem 5%;
  background: #000000;
  border-bottom: 1px solid #000000;
  backdrop-filter: blur(15px);
  margin-bottom: 2rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: -5px; /* reduz espaço entre links */
  margin-left: auto; /* empurra tudo para a direita */
  align-items: center;
  background: #000000;
}

.nav-links li {
  display: inline-block;
  position: relative;
}

.nav-links li a {
  position: relative;
  font-size: 1.05rem;
  font-weight: 500;
  color: #fff;
  transition: 0.3s;
  display: block;
  padding: 20px 50px;
  text-decoration: none;
  text-align: center;
}

.nav-links li ul.dropdown li {
  display: block;
  align-items: center;
}

.nav-links li ul.dropdown li a {
  align-items: center;
  text-align: center;
}

.nav-links li ul.dropdown {
  width: 100%;
  background: #000000;
  position: absolute;
  display: none;
}

.nav-links li a:hover {
  background: #ffffff3d;
  color: #800091;
  text-shadow: 0 0 10px #800091;
  border-radius: 6px;
}

.nav-links li:hover > ul.dropdown {
  display: block;
}

h1 {
  text-align: center;
  font-size: 2.7rem;
}

p {
  font-family: "pragmatica-condensed", sans-serif;
  font-weight: 900;
  font-style: normal;
}

/* Intro section */
section {
  padding: 20px;
}

.slider {
  width: 1920px;
  max-width: 100vw;
  height: 550px;
  margin: auto;
  position: relative;
  overflow: hidden;
}

.slider-list {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  display: flex;
  width: max-content;
  transition: left 1s ease-in-out;
  overflow: hidden;
}

.slider-list img {
  width: 1920px;
  max-width: 100vw;
  height: 100%;
  object-fit: cover;
}

.slider-buttons {
  position: absolute;
  top: 45%;
  left: 5%;
  width: 90%;
  display: flex;
  justify-content: space-between;
}

.slider-buttons button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #fff5;
  color: #fff;
  border: none;
  font-family: monospace;
  font-weight: bold;
  transition: transform 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
}

.slider-buttons button:hover {
  transform: scale(1.5);
  color: #fff;
  background-color: #000000;
  opacity: 0.50;
}

.dots {
  position: absolute;
  bottom: 10px;
  color: #fff;
  left: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
}

.dots li {
  list-style: none;
  width: 12px;
  height: 12px;
  background-color: #fff;
  margin: 15px;
  border-radius: 20px;
  transition: 1s ease-in-out;
}

.dots li.active {
  width: 30px;
}

@media screen and (max-width: 768px) {
  .slider {
    height: 400px;
  }
}

/* Footer */
footer {
  margin-top: 40px;
  background: #111;
  color: white;
  padding: 25px;
  text-align: center;
  font-family: "pragmatica", sans-serif;
  font-weight: 400;
}

/* ======== CORREÇÃO DE LAYOUT HEADER ======== */
/* Faz o logo ficar à esquerda e a navbar à direita */

nav.main-nav > .logo-link {
  order: 1;
}

nav.main-nav > .nav {
  order: 2;
}

/* === FULL FIXES APPEND === */

/* === PATCH: Navbar compacta & alinhada à direita === */
header nav, nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 8px;
}

nav .logo { flex: 0 0 auto; }

nav .nav-links {
  display: flex;
  gap: 12px;
  margin-left: auto;
  justify-content: flex-end;
  align-items: center;
  padding: 0;
  background: transparent !important;
}

nav .nav-links li { display: inline-flex; }

nav .nav-links li a {
  padding: 8px 14px !important;
  font-size: 0.95rem;
  line-height: 1.2;
  text-align: left;
}

nav .nav-links li ul.dropdown { right: 0; left: auto; }

.nav-links { gap: 12px !important; }
.nav-links li a { padding: 8px 14px !important; }

/* === PATCH: Dropdown centrado por baixo do item === */
nav .nav-links li { position: relative; }
nav .nav-links li > ul.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  min-width: 220px;
  max-width: 80vw;
  padding: 8px 0;
  background: #000000;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
  text-align: center;
  z-index: 1000;
}

nav .nav-links li:hover > ul.dropdown { display: block; }

nav .nav-links li ul.dropdown li { display: block; }

nav .nav-links li ul.dropdown a {
  display: block;
  padding: 10px 16px;
  white-space: nowrap;
  line-height: 1.2;
  text-align: center;
}

/* neutralizar heranças antigas */
.nav-links li ul.dropdown { left: 50% !important; right: auto !important; width: auto !important; }
.nav-links li ul.dropdown li a { text-align: center !important; }

/* === PATCH: Footer consistency & fixed-bottom (CSS-only) === */
:root { --footer-h: 80px; }

body { padding-bottom: var(--footer-h); }

footer#contacts, footer, #footer, .footer, [role="contentinfo"], [class*="footer"] {
  position: fixed !important;
  left: 0; right: 0; bottom: 0;
  min-height: var(--footer-h);
  display: flex; align-items: center; justify-content: center;
  padding: 0 20px;
  z-index: 9999;
  border-top: 1px solid #e9e9ee;
  background: #111; color: #fff; font-size: 14px;
}

footer#contacts :is(p,ul,ol),
footer :is(p,ul,ol),
#footer :is(p,ul,ol),
.footer :is(p,ul,ol) {
  margin: 0;
}

section p,
.hero p {
  text-align: center !important;
}

/* Dots por cima dos slides e sob as setas */
.slider { position: relative; }
.slider .slider-list { position: absolute; z-index: 1; }
.slider .dots { position: absolute; z-index: 5; }
.slider .slider-buttons { position: absolute; z-index: 6; }

/* === Language flags dropdown (separate in navbar) === */
.nav-links {
  display: flex;
  align-items: center;
}

.nav-links > li.lang-switch {
  position: relative;
  margin-right: auto; /* empurra os outros itens para a direita, bandeiras ficam mais à esquerda */
}

.nav-links > li.lang-switch > a.lang-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
}

.flag-icon {
  width: 22px;
  height: 22px;
  border-radius: 2px;
  display: block;
  object-fit: cover;
}

/* dropdown de bandeiras */
.nav-links li.lang-switch > ul.dropdown-lang {
  position: absolute;
  top: 100%;
  left: 0;
  margin: 0;
  padding: 6px 8px;
  list-style: none;
  background: #000000;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
  display: none;
  z-index: 2000;
}

.nav-links li.lang-switch:hover > ul.dropdown-lang {
  display: block;
}

.nav-links li.lang-switch ul.dropdown-lang li a {
  display: block;
  padding: 4px;
}

.nav-links li.lang-switch ul.dropdown-lang li a .flag-icon {
  width: 20px;
  height: 20px;
}

