/* ==========================================================================
   AJUSTES RESPONSIVOS (CELULARES E TABLETS)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TABLETS E CELULARES MAIORES (Até 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  
  /* Header e Navegação Mobile */
  header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem;
    position: sticky;
    top: 0;
    z-index: 999;
    width: 100%;
    background-color: var(--primary-color);
  }

  .logo-desktop {
    display: none;
  }

  .logo-mobile {
    display: block;
    height: 50px;
    width: auto;
  }

  .nav-desktop {
    display: none;
  }

  .menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
  }

  /* Gaveta do Menu Hambúrguer Dropdown */
  .nav-menu {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    background-color: var(--primary-color);
    z-index: 5;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);

    /* Estado Inicial: Oculto para cima */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease-in-out;
    will-change: opacity, transform, visibility;
  }

  /* Estado Ativo do Menu (Acionado via JS) */
  .nav-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .ul-list2 {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 1.5rem 0;
    gap: 1.2rem;
    align-items: center;
    list-style: none;
    margin: 0;
  }

  .ul-list2 a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.15rem;
    font-weight: 500;
    width: 100%;
    text-align: center;
    padding: 0.4rem 0;
  }

  /* Textos e Títulos nas Páginas */
  .hero {
    padding: 2.5rem 1rem;
  }

  .hero h2,
  .conteudo-pagina h2 {
    font-size: 1.6rem;
  }

  .hero p,
  .subtitulo {
    font-size: 0.95rem;
  }

  .detalhes {
    padding: 1.2rem;
  }

  /* Mosaico Principal do Banner (Carrossel Horizontal no Celular) */
  .hero-mosaico {
    height: 320px;
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
  }

  .mosaico-item {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    scroll-snap-align: start;
    filter: brightness(0.5); /* Mantém fundo escuro para realçar texto */
    background-size: cover;
    background-position: center;
  }

  .mosaico-item span {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    padding: 4px 12px;
  }

  .hero-overlay {
    width: 90%;
  }

  .hero-overlay h2 {
    font-size: 1.6rem;
  }

  .hero-overlay p {
    font-size: 0.95rem;
  }

  /* Galeria de Fotos e Navegação Mobile */
  #prev,
  #next {
    display: none; /* Oculta setas no mobile em favor de gestos/indicadores */
  }

  .galeria {
    gap: 0;
    flex-direction: column;
  }

  .galeria img {
    width: 100%;
    max-width: 350px;
    height: 250px;
  }

  .ajuste {
    object-fit: cover;
    object-position: right;
  }

  /* Indicadores da Galeria (Bolinhas) */
  .indicadores {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
  }

  .dot {
    width: 10px;
    height: 10px;
    background-color: #cccccc;
    border-radius: 50%;
    transition: all 0.3s ease;
    cursor: pointer;
  }

  .dot.ativo {
    background-color: var(--primary-color);
    width: 12px;
    height: 12px;
  }
}

/* --------------------------------------------------------------------------
   2. CELULARES PEQUENOS (Até 480px)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {

  .servicos-grid,
  .galerya {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }

  .btn {
    display: block;
    margin: 0 0 1rem 0;
    width: 100%;
  }

  .btn-whats {
    margin: 0;
    width: 100%;
  }

  footer {
    padding: 1.5rem 1rem;
    font-size: 0.9rem;
  }
}