/* =============================================
   RESPONSIVO - Tecmais / Solseg
   Mobile: até 600px | Tablet: 601px-930px
   ============================================= */

/* Meta viewport já adicionado via HTML */

/* ── GLOBAL: bloqueia scroll horizontal em qualquer tela ── */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

/* ── Coluna de contatos: sempre em coluna (desktop e mobile) ── */
.contatos-direita {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.contatos-direita .link1,
.contatos-direita .txt02 {
  display: flex !important;
  align-items: center !important;
  white-space: nowrap;
  gap: 6px;
  /* anula regras do estilo.css */
  text-align: left !important;
  clear: none !important;
  margin-left: 0 !important;
  float: none !important;
  line-height: 1.6 !important;
}

/* Ícones com largura fixa: todos alinhados na mesma coluna */
.contatos-direita .link1 i,
.contatos-direita .txt02 i {
  display: inline-block !important;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

/* ── TABLET (601px – 930px) ─────────────────── */
@media (max-width: 930px) {
  header, section, .footer, #tecmais {
    width: 100%;
    box-sizing: border-box;
    padding-left: 10px;
    padding-right: 10px;
  }

  aside, .titulo, .propaganda {
    width: 100%;
    box-sizing: border-box;
  }

  .sumir, .sumir1, .empresa, .empresa1, .empresa2, .empresa3,
  .servicos, .servicos1, .links {
    width: 100%;
    box-sizing: border-box;
  }

  .conteudo {
    width: 100%;
    float: none;
    padding: 0 10px;
    box-sizing: border-box;
  }

  .img, .img1 {
    width: 180px;
  }

  #servicos, #contato {
    width: 45%;
    margin: 20px 2%;
  }
  /* (Estilos móveis agora aplicados também ao tablet para unificar o layout) */

  /* Impede scroll horizontal na página */
  body {
    overflow-x: hidden;
    max-width: 100vw;
  }

  /* ── Cabeçalho ── */
  header {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    box-sizing: border-box;
  }

  header #header {
    float: none;
    border-right: none;
    border-bottom: solid 1px #0D8B11;
    margin: 0 0 10px 0;
    width: 100%;
    text-align: center;
    padding-bottom: 10px;
  }

  header #header img {
    float: none;
    margin: 0 auto;
    display: block;
    max-width: 180px;
    height: auto;
  }

  header .txt01 {
    display: block;
    text-align: center;
    margin: 10px 0 0 0;
    float: none;
  }

  /* ── Layout de 2 colunas no bloco de contatos ── */
  header .header {
    width: 100%;
    float: none;
    margin: 0;
    display: flex;
    flex-direction: row;          /* linha horizontal */
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    box-sizing: border-box;
  }

  /* Coluna ESQUERDA: ul.nave (Ligamos pra você + Instagram) */
  .nave {
    float: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 0 0 auto;               /* não cresce, não encolhe */
    margin-bottom: 0;
    padding: 0;
  }

  .nave li {
    float: none;
    width: auto;
  }

  .link {
    font-size: 14px;
    margin-left: 0;
    display: block;
    text-align: left;
    white-space: nowrap;
  }

  .instagram {
    justify-content: flex-start;
    padding-left: 0 !important;
  }

  /* Coluna DIREITA: email + telefones */
  .contatos-direita {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    flex: 1 1 auto;
  }

  header .txt02 {
    text-align: right;
    font-size: 13px;
    display: block;
    margin-top: 6px;
    white-space: nowrap;
  }

  .link1 {
    display: block;
    text-align: right;
    font-size: 13px;
    white-space: nowrap;
  }

  /* Lightbox (box) ocupa toda a tela em mobile */
  .lb-overlay:target {
    padding: 20px 10px !important;
  }

  /* ── Menu de navegação ── */
  nav {
    width: 100%;
    padding: 5px 0;
  }

  .nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: 5px;
  }

  .nav li {
    float: none;
    margin: 0;
  }

  .nav li a {
    font-size: 13px;
    padding: 8px 10px;
  }

  /* Título das páginas internas */
  .titulo {
    width: 100%;
    height: auto;
    min-height: 60px;
    box-sizing: border-box;
    padding: 10px;
  }

  .titulo h1 {
    font-size: 22px;
    line-height: 1.3;
    float: none;
    text-align: center;
  }

  .titulo img {
    display: none;
  }

  /* Section principal */
  section {
    width: 100%;
    box-sizing: border-box;
  }

  section .pos {
    float: none;
    display: block;
    max-width: 100%;
    height: auto;
    margin: 20px auto;
    text-align: center;
  }

  #servicos, #contato {
    width: 90%;
    float: none;
    margin: 15px auto;
    height: auto;
  }

  #empresa img {
    float: none;
    display: block;
    margin: 20px auto 10px auto;
    max-width: 100%;
  }

  .img, .img1 {
    width: 100%;
    float: none;
    margin: 10px 0;
  }

  .img img, .img1 img {
    max-width: 100%;
    display: block;
    margin: 0 auto;
  }

  .conteudo {
    width: 100%;
    float: none;
    padding: 0 10px;
    box-sizing: border-box;
  }

  .sumir, .sumir1, .empresa, .empresa1, .empresa2, .empresa3,
  .servicos, .servicos1, .links {
    width: 100%;
    box-sizing: border-box;
    padding: 0 10px;
  }

  .empresa img, .servicos img, .links img {
    float: none;
    display: block;
    margin: 10px auto;
    max-width: 100%;
  }

  .empresa p, .servicos p, .servicos1 p {
    padding: 0;
  }

  .propaganda {
    width: 100%;
    height: auto;
    box-sizing: border-box;
    padding: 10px;
    margin-top: 10px;
  }

  /* ── Links Úteis ── */
  #link {
    width: 100% !important;
    float: none !important;
    padding-top: 10px !important;
    box-sizing: border-box;
  }

  #link li {
    width: 100% !important;
    float: none !important;
    margin-bottom: 10px !important;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 5px;
    box-sizing: border-box;
  }

  #link li a {
    float: none !important;
    white-space: normal;
    word-break: break-word;
    display: block;
    line-height: 1.4;
    font-size: 13px !important;
  }

  /* Rodapé */
  footer {
    margin-top: 0;
    padding-top: 30px;
  }

  .footer {
    width: 100%;
    box-sizing: border-box;
    padding: 0 10px;
  }

  #tecmais {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  #tecmais img {
    float: none;
    margin-bottom: 5px;
    max-width: 120px;
    height: auto;
  }

  #tecmais h3, #tecmais h4 {
    float: none;
    text-align: center;
  }

  .footer h5 {
    float: none;
    text-align: center;
    width: 100%;
    margin-left: 0;
    word-break: break-word;
    white-space: normal;
    font-size: 13px;
    line-height: 1.5;
  }

  /* ── Formulário ── */
  fieldset {
    width: 100% !important;
    box-sizing: border-box !important;
    border: none;
    padding: 0 !important;
    margin: 0 !important;
  }

  .contato {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 10px !important;
  }

  .acomodar {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 5px 0 !important;
  }

  .form-group {
    width: 100% !important;
  }

  /* Lightbox "Ligamos pra você" */
  .box {
    width: 90% !important;
    margin: 20px auto !important;
    padding: 15px !important;
    box-sizing: border-box;
  }

  /* Formulário de contato mobile: label empilhado */
  label {
    float: none !important;
    clear: both;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    margin-bottom: 8px;
    box-sizing: border-box !important;
  }

  label span {
    float: none !important;
    width: auto !important;
    text-align: left !important;
    margin-right: 0 !important;
    margin-bottom: 4px;
    font-size: 15px !important;
  }

  label input,
  label textarea {
    width: 100% !important;
    box-sizing: border-box !important;
    float: none !important;
    max-width: 100% !important;
  }

  input[type="text"], input[type="email"], input[type="tel"],
  input[type="number"], textarea, select {
    width: 100% !important;
    box-sizing: border-box !important;
    max-width: 100% !important;
  }

  input[type="submit"] {
    width: 100% !important;
    float: none !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }
}

/* =========================================
   SLIDER RESPONSIVO (Tablet e Mobile)
   ========================================= */
@media (max-width: 940px) {
  /* aside contém e clipa o slider */
  aside:not(.titulo) {
    width: 100% !important;
    height: 31.914vw !important;  /* 300/940 * 100 = proporção exata do slider */
    overflow: hidden !important;
    position: relative !important;
    box-sizing: border-box;
  }

  /* position:absolute retira do fluxo; scale é aplicado via JS (ver index.html) */
  .oneByOne1 {
    width: 940px !important;
    height: 300px !important;
    transform-origin: top left !important;
    margin: 0 !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
  }
}
