/* =================================================== */
/* CORREÇÕES GERAIS DE RESPONSIVIDADE */
/* =================================================== */

/* Prevenir overflow horizontal em todos os elementos */
* {
  max-width: 100vw;
}

/* Correção para elementos que ultrapassam viewport */
img {
  max-width: 100%;
  height: auto;
}

/* Ajustar container principal para evitar overflow */
.wrapper-container {
  overflow-x: hidden;
  position: relative;
}

/* Correções específicas para mobile */
@media (max-width: 768px) {
  
  /* Ajustar padding global para mobile */
  section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .page-template-page-gestao-documentos-fiscais-php .hero { 
    background-image: none;
  }
  
  /* Code blocks responsivos */
  .code-block {
    font-size: 1.3rem !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .code-block pre {
    margin: 0;
    overflow-x: auto;
  }
  
  .code-block code {
    font-size: 1.3rem !important;
    line-height: 1.5;
    white-space: pre;
  }
  
  /* Tabs do código */
  .code-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }
  
  .code-tab {
    font-size: 1.4rem !important;
    padding: 1rem 1.5rem;
  }
}

/* Ajustes para tablet */
@media (max-width: 1023px) and (min-width: 769px) {
  .hero__content {
    padding-left: 3rem;
    padding-right: 3rem;
  }

}

@media (max-width: 1023px){
  .hero__text h1 {
    font-size: 5.1rem;
  }
}

/* Garantir que elementos comment não quebrem layout */
.comment {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Footer responsivo */
@media (max-width: 576px) {
  .footer {
    padding: 3rem 1.6rem !important;
  }
  
  .footer a,
  .footer p,
  .footer span {
    font-size: 1.4rem !important;
  }
  
  .footer .offices_address,
  .footer .status-prefeitura {
    font-size: 1.3rem !important;
    line-height: 1.5;
  }
}