:root {
      --gold: #bfa76f;
      --goldcolor: #fde03e;
      --dark: #0d0d0d;
      --light: #f5f5f5;
      --marrom: #791D00;
}

/* =============================
   RESET & BASE
============================= */
img {
      max-width: 100%;
      display: block;
      height: auto;
}
a {
      text-decoration: none;
      color: inherit;
      color: var(--gold);
      text-decoration: none;
      cursor: pointer;
}

/* =============================
   CONTAINERS GERAIS
============================= */
main {
      max-width: 1280px;
      margin: auto;
}
.title {
      font-size: 1.6rem;
      text-align: center;
      margin-bottom: 40px;
      color: var(--light);
}

.wrapper {
      max-width: 1280px;
      width: 100%;
      margin: 0 auto;
      background-color: var(--dark);
      color: var(--goldcolor);
      line-height: 1.6;
      box-sizing: border-box;
}

/* ==== FUNDO DE TELA RESPONSIVO ==== */
#home {
      width: 100%;
      margin: 0 auto;
      min-height: 100vh;
      border-bottom: var(--gold) 1px solid;
      background-image: url(/ASSETS/image/swapa-fundo.jpg);
      background-size: cover;
      background-repeat: no-repeat;
      background-position: center center;
      background-attachment: fixed;
}

.container-home {
      max-width: 1280px;
      width: 100%;
      margin: 0 auto;
      box-sizing: border-box;
}

/* ==== SEÇÃO HOME (corrigida para conter a imagem) ==== */
.home-section {
      position: relative;
      min-height: 100vh;
      padding-bottom: 160px; /* Espaço para a imagem */
}

.header {
      width: 100%;
      max-width: 1280px;
      margin: 0 auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0.5rem 10px; /* igual ao restante do site */
      font-size: 20px;
      background-color: rgba(0, 0, 0, 0.7);
      box-sizing: border-box;
}

.logo {
      display: flex;
      align-items: center;
      width: 166px;
      height: 90px;
      font-weight: 800;
      color: var(--gold);
      text-decoration: none;
}

.logo img {
      width: 100%;
      height: auto;
      display: block;
}

.header-esq {
      display: flex;
}

.menu {
      list-style: none;
      display: flex;
      gap: 0.5rem;
}

.menu a {
      display: block;
      padding: 1rem;
      border-radius: 0.5rem;
      text-decoration: none;
      color: var(--gold);
      font-weight: 700;
      cursor: pointer;
}

.menu a:hover {
      color: var(--goldcolor);
}

.btn-menu {
      display: none;
}

.nav-rodape {
      display: none;
}

.home-section {
      width: 100%;
      display: flex;
      flex-direction: column;
}

.container-direita {
      position: absolute;
      top: 20px;
      right: 139px;
      display: flex;
      flex-direction: column;
      gap: 20px; /* espaço entre bandeira e botão */
      align-items: flex-end;
}

/* Bandeira */
.box-bandeira {
      width: 60px;
      height: 60px;
}

.box-bandeira img {
      width: 100%;
      height: 100%;
      border-radius: 100%;
}

/* botão */
.btn-1 {
      position: relative;
      background: #111;
      color: var(--gold);
      font-weight: bold;
      padding: 15px 30px;
      border: none;
      border-radius: 50px;
      font-size: 1.2rem;
      cursor: pointer;
      overflow: hidden;
      animation: pulse 1.5s infinite;
}

/* Pulso dourado */
@keyframes pulse {
      0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7); }
      70% { transform: scale(1.1); box-shadow: 0 0 20px 15px rgba(255, 215, 0, 0); }
      100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 215, 0, 0); }
}

/* Estrelinhas douradas */
.btn-1::before,
.btn-1::after {
      content: "";
      position: absolute;
      font-size: 1rem;
      color: gold;
      opacity: 0;
      animation: sparkle 1.5s infinite;
}

.btn-1::before {
      top: -10px;
      left: 20%;
}

.btn-1::after {
      bottom: -10px;
      right: 20%;
}

/* Animação das estrelinhas */
@keyframes sparkle {
      0%, 100% { opacity: 0; transform: scale(0.5) translateY(0); }
      50% { opacity: 1; transform: scale(1.2) translateY(-15px); }
}




/*--Modal -- */
.modal {
      display: none;
      position: fixed;
      z-index: 1000;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.6);
      display: flex;
      justify-content: center;
      align-items: center;
      padding: 10px;
}

.modal-conteudo {
      background: #111;
      width: 90%;              /* 90% da tela (ou seja, 1152px em 1280px) */
      max-width: 1152px;       /* Evita ultrapassar mesmo em telas maiores */
      max-height: 90vh;        /* Limita altura para evitar estouro vertical */
      margin: auto;
      padding: 30px;           /* Espaçamento interno agradável */
      overflow-y: auto;
      border-radius: 10px;
      box-shadow: 0 0 25px rgba(0, 0, 0, 0.3);
      position: relative;
      display: flex;
      flex-direction: column;
}

.modal-conteudo img {
      width: 200px;
      height: auto;
}

.modal-conteudo ul li {
      color: var(--gold);
      line-height: 1.7rem;
      margin-top: 1rem;
}

.modal-conteudo p {
      color: var(--gold);
      line-height: 1.7rem;
      margin-top: 1rem;
}

.modal-conteudo p,
.modal-conteudo br,
.modal-conteudo .breakable {
  overflow-wrap: anywhere;
  word-break: break-word;
}


/* =============================
   RESPONSIVIDADE HOME
============================= */

/* Tablets (até 992px) */
@media (max-width: 992px) {
      .container-direita {
            right: 40px; /* aproxima da borda */
      }

      .pulsando-rotacionando {
            right: 40px;
            width: 200px; /* reduz tamanho */
      }
}

/* Mobile (até 768px) */
@media (max-width: 768px) {
      .home-section {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding-bottom: 80px;
      }

      .container-direita {
            margin-top: -25px;
            gap: 15px;
      } 

      .box-bandeira {
            width: 50px;
            height: 50px;
      }

      .whitepaper {
            width: auto;
            height: 50px;
      }

      .whitepaper .btn-1 {
            padding: 10px 20px;
            font-size: 0.9rem;
      }

      .pulsando-rotacionando { /*
            position: static; /* centraliza no fluxo normal */
            width: 180px;
            margin-bottom: 20px;
      }

      .modal-conteudo {
            padding: 1.2rem;
            width: 95%;
            max-height: 90vh;
      }

      .modal-conteudo h2.title {
            font-size: 1.5rem;
      }

      .modal-conteudo h3.modal-title {
            font-size: 1.2rem;
      }

      .modal-conteudo p,
      .modal-conteudo li {
            font-size: 0.95rem;
      }

      .modal-conteudo .fechar {
            font-size: 1.5rem;
            top: 0.5rem;
            right: 0.7rem;
      }

      .modal-conteudo img {
            max-width: 140px;
      }
}

@media (max-width: 480px) {
      .modal-conteudo {
            padding: 1rem;
      }

      .modal-conteudo h2.title {
            font-size: 1.3rem;
      }

      .modal-conteudo h3.modal-title {
            font-size: 1rem;
      }

      .modal-conteudo p,
      .modal-conteudo li {
            font-size: 0.9rem;
      }

      .modal-conteudo img {
            max-width: 120px;
      }
}

.bi-4-circle-fill {
      margin-left: -32px;
}

.span {
      font-size: 1.5rem;
      font-style: italic;
}


/* Botão de fechar */
.fechar {
      position: absolute;
      top: 15px;
      right: 20px;
      font-size: 26px;
      cursor: pointer;
}

.bi {
      color: var(--goldcolor);
      font-size: 1.5rem;
}

/* ==== EFEITO DE PULSAR E ROTACIONAR DA MOEDA ==== */
.pulsando-rotacionando {
      position: absolute;
      bottom: 100px; /* encostado no final da seção */
      right: 135px; /* margem direita conforme solicitado */
      animation: pulsarERodar 6s ease-in-out infinite;
      transform-origin: center;
      width: 250px;
      height: auto;
}

.pulsando-rotacionando img {
      width: 100%;
      height: auto;
      display: block;
}

/* Animação corrigida */
@keyframes pulsarERodar {
      0% {
            transform: scale(1) rotate(0deg);
            opacity: 1;
      }
      25% {
            transform: scale(1.05) rotate(5deg);
            opacity: 0.8;
      }
      50% {
            transform: scale(1.08) rotate(10deg);
            opacity: 0.5;
      }
      75% {
            transform: scale(1.05) rotate(5deg);
            opacity: 0.8;
      }
      100% {
            transform: scale(1) rotate(0deg);
            opacity: 1;
      }
}


/* Mobile pequeno (até 480px) */
@media (max-width: 480px) {
      .home-section {
            padding-bottom: 40px;
      }

      .container-direita {
            flex-direction: column; /* empilha bandeira e botão */
            gap: 10px;
      }

      .whitepaper .btn-1 {
            width: 100%;
            font-size: 0.85rem;
      }

      .pulsando-rotacionando {
            width: 150px;
      }
}
















/* =============================
   GERAL: BOTÕES E LINKS
============================= */
button, .btn {
      background: #00ffff;
      color: #000;
      border: none;
      padding: 12px 24px;
      border-radius: 8px;
      font-weight: bold;
      cursor: pointer;
      transition: background 0.3s;
}
button:hover, .btn:hover {
      background: #00bbbb;
}

/* =============================
   FIX: EVITA VAZAMENTO EM TELAS GRANDES
============================= */
body {
      max-width: 100vw;
      overflow-x: hidden;
}

/* =============================
   SCROLLBAR PERSONALIZADA (Opcional)
============================= */
::-webkit-scrollbar {
      width: 8px;
}
::-webkit-scrollbar-thumb {
      background: #00ffff;
      border-radius: 10px;
}
::-webkit-scrollbar-track {
      background: #1a1a1a;
} 

/* ========================================
   RESPONSIVIDADE
   ======================================== */

/* Telas abaixo de 920px - Menu */
@media (max-width: 1006px) {
      .container-direita {
            top: 20px;
            right: 95px;
      }
}

@media (max-width: 920px) {
      .menu {
            display: block;
            position: absolute;
            top: 5.0275rem;
            left: 0;
            background: linear-gradient(135deg,#0d0e20 0%, #0d0e20 85%, #0d1f29 92%, #15173e 100%);
            background-repeat: no-repeat;
            background-size: cover;
            text-align: center;
            width: 100%;
            height: 100vh;
            z-index: 1000;
            visibility: hidden;
            overflow-y: hidden;
            transition: 0.5s;
      }

      .menu a {
            padding: 1rem 0;
            margin-inline: 1rem;
            border-bottom: 0.0625rem solid rgba(0, 0, 0, 0.16);
            border-radius: 0;
      }

      .btn-menu {
            background: none;
            border: none;
            font: inherit;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            color: #999;
            padding-block: 1rem;
            cursor: pointer;
      }

      .hamburger {
            border-top: 0.125rem solid;
            width: 1.25rem;
      }

      .hamburger::before,
      .hamburger::after {
            content: " ";
            display: block;
            width: 1.25rem;
            height: 0.125rem;
            background-color: currentColor;
            margin-top: 0.3125rem;
            position: relative;
            transition: 0.4s;

      }

      .nav.active .menu {
            height: calc(100vh - 8.6875rem);
            visibility: visible;
            overflow-y: auto;

      }

      .nav.active .hamburger {
            border-top-color: transparent;
      }

      .nav.active .hamburger::before {
            transform: rotate(135deg);
      }

      .nav.active .hamburger::after {
            transform: rotate(-135deg);
            top: -0.4375rem;
      }

      .nav-rodape {
            color: #999;
            position: absolute;
            bottom: 0;
            height: 35px;
            line-height: 5px;
            text-align: center;
            width: 100%;
            display: block;
      }

      .container-direita {
            top: 20px;
            right: 20px;
      }

}

@media (max-width: 750px) {
      .container-direita {
            top: 180px;
            right: 20px;
      }

}

