:root {
  /* Tipografia */
  --fs-body: clamp(1rem, 2.5vw, 1.125rem);
  --fs-h1: clamp(2rem, 5vw, 3rem);
  --fs-h2: clamp(1.5rem, 4vw, 2.25rem);
  --fs-h3: clamp(1.25rem, 3vw, 1.75rem);

  /* Espaçamentos */
  --space-xs: clamp(0.5rem, 1.5vw, 0.75rem);
  --space-sm: clamp(0.75rem, 2vw, 1.25rem);
  --space-md: clamp(1rem, 3vw, 2rem);
  --space-lg: clamp(1.5rem, 4vw, 3rem);
  --space-xl: clamp(2.5rem, 6vw, 5rem);

  /* Layout */
  --container: clamp(320px, 90vw, 1440px);
}

/* ===== CSS RESET GLOBAL ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
}

img {
  max-width: 100%;
  display: block;
}

ul,
ol {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

body {
  font-size: var(--fs-body);
  line-height: 1.6;
}

h1 {
  font-size: var(--fs-h1);
}

h2 {
  font-size: var(--fs-h2);
}

h3 {
  font-size: var(--fs-h3);
}
/* =============
 MEDIA QUERY
============= */
@media (max-width: 840px) {
}

@media (max-width: 600px) {
  .footer-content {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
    text-align: center;
    font-size: 0.875rem;
  }

  .footer-content > div,
  .footer-content > nav {
    width: 100%;
  }
  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .qrcode-insta img {
    margin: 0 auto;
  }

  .fonte-tghouse img {
    display: none;
  }
}

@media (max-width: 1024px) {
}

/* =============
 MEDIA QUERY
============= */

/* =============
 BANNER
============= */

.carousel-section {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Container não força altura */
.carousel {
  position: relative;
  display: flex;
  justify-content: center;
}

/* Imagens sobrepostas */
.carousel img {
  border-radius: 1rem;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70rem; /* controla o tamanho */
  height: auto;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

/* Imagem visível */
.carousel img.ativo {
  opacity: 1;
  position: relative; /* imagem ativa define a altura */
}

/* =============
 BANNER
============= */

/* ========
 HEADER
======== */

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding: var(--space-sm);
}

.imgs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fonte-tghouse {
  flex: 1;
  display: flex;
  align-items: center;
}

.fonte-tghouse img {
  max-height: clamp(4.4rem, 10vw, 10rem);
}

.logotipo-tghouse {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logotipo-tghouse img {
  max-height: clamp(5.5rem, 10vw, 10rem);
}

.rede-tghouse {
  flex: 1;
  gap: var(--space-sm);
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.rede-tghouse img {
  max-height: clamp(1.5rem, 10vw, 2rem);
}

/* ============
    MENU
============ */
.menu {
  position: relative;
  margin-top: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Archivo Black", sans-serif;
}

.menu {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1rem;
}

.menu h1 {
  text-align: center;
  margin-bottom: 2.5rem;
}

.menu-list {
  display: flex;
  gap: var(--space-md);
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.5rem);
}

.menu a {
  text-decoration: none;
  color: #000;
  font-weight: 600;
}
.has-submenu {
  position: relative;
}

.submenu {
  position: absolute;
  top: 100%;
  left: 50%; /* Centraliza em relação ao item pai */
  transform: translateX(-50%); /* Ajuste fino do centro */
  display: none;
  flex-direction: column;
  min-width: 200px; /* Garante um tamanho mínimo */
  background: #ffffff;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

.has-submenu:hover .submenu {
  display: flex;
}

.submenu li a {
  padding: 8px 15px;
  display: block;
  font-size: clamp(1rem, 2vw, 1.5rem);
}

/* ============
    MENU
============ */

/* ====================
    Style-button
==================== */

.rede-tghouse a,
.menu a,
.revendedor-botao a {
  display: inline-flex;
  transition:
    transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    background-color 0.25s ease;
  cursor: pointer;
}

.rede-tghouse a:hover,
.menu a:hover,
.revendedor-botao a:hover {
  transform: translateY(-3px) scale(1.05);
}

/* ====================
    Style-button
==================== */

/* ========
 HEADER
======== */

/* ========
    MAIN
======== */
/* ============
    Historia
=============== */

.titulo-historia {
  text-align: center;
  margin-top: var(--space-sm);
  font-family: "Archivo Black", sans-serif;
}
.conteudo-historia {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

.historia-empresa {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.galeria-historia {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 3rem;
}

.galeria-historia img {
  width: 100%;
  height: 100%;
  border-radius: 2rem;
  object-fit: cover;
}

.texto-historia {
  text-align: center;
  max-width: auto;
  margin: 0 auto;
}

.texto-historia h2 {
  margin-bottom: 1.5rem;
  font-family: "Archivo Black", sans-serif;
}

.texto-historia p {
  font-size: 1.2rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  font-family: "Archivo Black", sans-serif;
}

/* ============
    Historia
=============== */

/* ============
    Revendedor
=============== */
.revendedor {
  max-width: 400px;
  margin: auto;
  font-family: "Archivo Black", sans-serif;
}

.revendedor-titulo {
  text-align: center;
  margin-bottom: var(--space-xl);
  font-family: "Archivo Black", sans-serif;
}

.revendedor-sobre,
.revendedor-onde {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.revendedor-sobre p,
.revendedor-onde p {
  font-size: clamp(1rem, 2vw, 1.3rem);
  line-height: 1.7;
}

.revendedor-sobre img {
  max-height: clamp(5rem, 8vw, 10rem);
  object-fit: contain;
  flex-shrink: 0;
}

.revendedor-onde img {
  max-height: clamp(2rem, 3vw, 5rem);
  object-fit: contain;
}

.revendedor-onde {
  margin-top: var(--space-lg);
}

.revendedor-texto {
  font-size: clamp(1rem, 2vw, 1.3rem);
  text-align: center;
  margin-top: var(--space-lg);
  font-family: "Archivo Black", sans-serif;
}

.revendedor-botao {
  cursor: pointer;
  margin-top: var(--space-lg);
  text-align: center;
  font-family: "Archivo Black", sans-serif;
  /* área fixa do ícone */
}
.revendedor-botao a {
  color: #fff;
  background-color: #a87b05;
  border-radius: 1rem;
  padding: 0.5rem;
}
/* ============
    Revendedor
=============== */

/* ========
    MAIN
======== */

/* ============
    FOOTER
=============== */

.footer {
  font-weight: 800;
  background: #111;
  color: #fff;
  padding-top: var(--space-xl);
  font-size: clamp(0.8rem, 2vw, 1.25rem);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.footer h4 {
  margin-bottom: var(--space-xs);
}

.footer a {
  color: #ccc;
  text-decoration: none;
}

.footer a:hover {
  color: #fff;
}

.footer-bottom {
  margin-top: var(--space-lg);
  padding: var(--space-sm);
  text-align: center;
  font-size: 0.875rem;
  color: #aaa;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.qrcode-insta {
  border-radius: 1rem;
  max-height: clamp(10rem, 10vw, 20rem);
}

/* ============
    FOOTER
=============== */
