/* ===== W CRIAÇÕES - CSS MOBILE OTIMIZADO (cole em Editar CSS) ===== */

/* keyframes fora do @media (evita erro em alguns editores) */
@keyframes pulse {
  0%   { transform: scale(1);   opacity: 1; }
  100% { transform: scale(1.08); opacity: 0.6; }
}

/* estilos mobile */
@media (max-width: 768px) {
  html, body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #fff;
    color: #222;
  }

  /* logo */
  .header-logo img {
    max-width: 160px;
    margin: 10px auto;
    display: block;
  }

  /* menu vertical */
  .menu-principal ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    margin: 0;
    list-style: none;
  }

  .menu-principal ul li {
    width: 100%;
    text-align: center;
  }

  .menu-principal ul li a {
    display: block;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    color: #222;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: background .25s, color .25s;
  }

  .menu-principal ul li a:hover {
    background: #f9f9f9;
    color: #d90429;
  }

  /* banners */
  .banner img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
  }

  /* títulos e textos */
  h1, h2, h3 {
    font-size: 20px;
    text-align: center;
    margin: 15px 0;
    line-height: 1.3;
    padding: 0 10px;
    color: #111;
  }

  p {
    font-size: 15px;
    line-height: 1.5;
    padding: 0 12px;
    text-align: justify;
    margin: 0 0 12px;
  }

  /* botões - CORREÇÃO COMPLETA de box-sizing */
  .btn {
    display: block;
    width: 90%;
    margin: 10px auto;
    padding: 14px;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    background: #d90429;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    -webkit-box-sizing: border-box; 
    -moz-box-sizing: border-box; /* << ADICIONADO AQUI */
    box-sizing: border-box; 
  }

  .button {
    display: block;
    width: 90%;
    margin: 10px auto;
    padding: 14px;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    background: #d90429;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    -webkit-box-sizing: border-box; 
    -moz-box-sizing: border-box; /* << ADICIONADO AQUI */
    box-sizing: border-box; 
  }

  .btn:hover {
    background: #a50320;
  }

  .button:hover {
    background: #a50320;
  }

  /* whatsapp fixo (sem animação por padrão) */
  .whatsapp-button {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #25d366;
    color: #fff;
    font-size: 22px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,.25);
    z-index: 9999;
    text-decoration: none;
  }

  footer {
    background: #111;
    color: #fff;
    text-align: center;
    padding: 20px 10px;
    font-size: 14px;
  }

  footer a {
    color: #d90429;
    text-decoration: none;
    font-weight: 600;
  }
}

/* animação aplicada só quando a classe .active for adicionada via JS */
.whatsapp-button.active {
  animation: pulse 1s ease-in-out infinite alternate;
}

/* nuvem de fala */
.whatsapp-speech {
  position: fixed;
  right: 88px;
  bottom: 90px;
  background: #ffffff;
  color: #111;
  padding: 8px 12px;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  font-weight: 600;
  font-size: 14px;
  transform: translateY(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
  z-index: 9998;
}

.whatsapp-speech.show {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}