html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden; /* 🔹 bloqueia rolagem horizontal e vertical */
  font-family: Arial, Helvetica, sans-serif;
  background-image: url('image/image.png');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  box-sizing: border-box;
}


/* =========================
   Overlay
========================= */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  /* inicia escondida */
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  animation: fadeInOverlay 0.6s forwards;
  padding: 20px;
  box-sizing: border-box;
}

/* =========================
   Popup
========================= */
.popup {
  position: relative;
  background: #fff;
  color: #333;
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
  transform: scale(0.8);
  opacity: 0;
  animation: zoomFadeIn 0.6s forwards 0.2s;
  box-sizing: border-box;
}

/* =========================
   Tipografia do Popup
========================= */
.popup h2 {
  margin-bottom: 12px;
  font-size: 1.4rem;
  font-weight: bold;
  color: #3b3bff;
}

.popup p {
  color: #333;
  line-height: 1.5;
  margin-bottom: 18px;
  font-size: 1rem;
}

.popup p strong {
  font-weight: bold;
}

/* =========================
   Botão do Popup
========================= */
.popup button {
  background: #1b1464;
  color: #fff;
  border: none;
  padding: 12px 25px;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.popup button:hover {
  background: #2b1f84;
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(34, 111, 149, 0.4);
}

/* =========================
   Animações
========================= */
@keyframes fadeInOverlay {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes zoomFadeIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}


/* =========================
   Botão Fechar Responsivo
========================= */
.close-btn {
  position: absolute;
  top: 12px;
  right: 16px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: none;
  background: transparent !important;
  box-shadow: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px !important;
  line-height: 1;
  color: #1b1464 !important;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
}

.close-btn:hover,
.close-btn:focus {
  color: #000;
  transform: scale(1.1);
  outline: none;
}

.close-btn:focus-visible {
  outline: 2px solid rgba(0, 0, 0, 0.12);
  outline-offset: 3px;
}

/* =========================
   Responsividade
========================= */

/* Celulares muito pequenos (até 344px) */
@media (max-width: 344px) {
  .close-btn {
    width: 34px;
    height: 34px;
    font-size: 18px !important;
    top: 8px;
    right: 12px;
  }
}

/* Celulares médios (345px - 480px) */
@media (min-width: 345px) and (max-width: 480px) {
  .close-btn {
    width: 36px;
    height: 36px;
    font-size: 20px !important;
    top: 10px;
    right: 14px;
  }
}

/* Tablets (481px - 1024px) */
@media (min-width: 481px) and (max-width: 1024px) {
  .close-btn {
    width: 40px;
    height: 40px;
    font-size: 22px !important;
    top: 12px;
    right: 16px;
  }
}

/* Desktops e telas grandes (1025px+) */
@media (min-width: 1025px) {
  .close-btn {
    width: 44px;
    height: 44px;
    font-size: 24px !important;
    top: 14px;
    right: 18px;
  }
}


/* =========================
   Responsividade
========================= */

/* Celulares muito pequenos (até 344px) */
@media (max-width: 344px) {
  body {
    background-image: url('image/image_mobile_344.png');
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: scroll;
  }

  .popup {
    max-width: 300px;
    padding: 18px;
  }

  .popup h2 {
    font-size: 1.1rem;
  }

  .popup p {
    font-size: 0.85rem;
  }

  .popup button {
    padding: 8px 18px;
    font-size: 0.85rem;
  }
}

/* Celulares (345px - 480px) */
@media (min-width: 345px) and (max-width: 480px) {
  body {
    background-image: url('image/image_mobile.png');
    background-position: center top;
    background-size: cover;
    background-attachment: scroll;
  }

  .popup {
    padding: 20px;
  }

  .popup h2 {
    font-size: 1.2rem;
  }

  .popup p {
    font-size: 0.9rem;
  }

  .popup button {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

/* Tablets (481px - 1024px) */
@media (min-width: 481px) and (max-width: 1024px) {
  body {
    background-image: url('image/image_tablet.png');
    background-position: center center;
    background-size: cover;
    background-attachment: scroll;
  }

  .popup {
    max-width: 350px;
    padding: 25px;
  }

  .popup h2 {
    font-size: 1.3rem;
  }

  .popup p {
    font-size: 0.95rem;
  }

  .popup button {
    padding: 11px 22px;
    font-size: 0.95rem;
  }
}

/* Desktops médios (1025px - 1200px) */
@media (min-width: 1025px) and (max-width: 1200px) {
  .popup {
    max-width: 400px;
  }

  .popup h2 {
    font-size: 1.4rem;
  }

  .popup p {
    font-size: 1rem;
  }

  .popup button {
    font-size: 1rem;
    padding: 12px 25px;
  }
}

/* TVs e telas grandes (1201px+) */
@media (min-width: 1201px) {
  .popup {
    max-width: 500px;
    padding: 35px;
  }

  .popup h2 {
    font-size: 1.6rem;
  }

  .popup p {
    font-size: 1.1rem;
  }

  .popup button {
    font-size: 1.1rem;
    padding: 14px 30px;
  }
}

/* ========================= Landscape - Celulares pequenos ========================= */
@media (max-width: 480px) and (orientation: landscape) {
  body {
    background-image: url('image/image_ladscape.png');
    background-position: center center;
    background-size: cover;
  }
}

/* Landscape - Tablets */
@media (min-width: 481px) and (max-width: 1024px) and (orientation: landscape) {
  body {
    background-image: url('image/image_ladscape.png');
    background-position: center center;
    background-size: cover;
  }
}

/* Landscape - iPad Pro / Tablets grandes */
@media (min-width: 1024px) and (max-width: 1099px) and (orientation: landscape) {
  body {
    background-image: url('image/image_ladscape.png');
    background-position: center center;
    background-size: cover;
  }
}






