/* Kamel - ajustes responsivos comuns do site institucional. */

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

img,
video,
iframe {
  max-width: 100%;
  height: auto;
}

button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}

@media (max-width: 900px) {
  .cabecalho .container {
    width: min(100% - 24px, var(--largura));
    gap: 12px;
  }

  .menu-toggle {
    display: inline-grid !important;
    place-items: center;
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 0 !important;
  }

  .menu {
    max-height: calc(100dvh - 68px);
    overflow-y: auto;
    box-shadow: 0 18px 35px rgba(0, 10, 22, .28);
  }

  .menu a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .rodape-topo,
  .sobre-grid,
  .valores-grid,
  .portfolio-grid,
  .parceiros-grid,
  .contato-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 24px, var(--largura)) !important;
  }

  .hero-home {
    min-height: auto !important;
    background-position: 62% center !important;
  }

  .hero-conteudo {
    padding: 62px 0 58px !important;
  }

  .hero-home h1,
  .hero-interno h1,
  .contato-topo h1 {
    font-size: clamp(2rem, 11vw, 2.8rem) !important;
    line-height: 1.04 !important;
    overflow-wrap: anywhere;
  }

  .hero-home p,
  .hero-interno p {
    font-size: 1rem !important;
  }

  .hero-acoes,
  .chamada .container {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100%;
  }

  .hero-acoes .botao,
  .chamada .botao,
  .contato-card .botao {
    width: 100% !important;
    min-height: 46px;
    text-align: center;
  }

  .servicos-grid,
  .projetos-grid,
  .numeros-grid,
  .mosaico,
  .portfolio-grid,
  .parceiros-grid,
  .contato-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .secao {
    padding: 48px 0 !important;
  }

  .servico-card,
  .valor-card,
  .contato-card {
    padding: 22px 18px !important;
  }

  .projeto-card img,
  .obra img,
  .mosaico img,
  .mosaico img:first-child {
    width: 100%;
    height: min(62vw, 245px) !important;
    object-fit: cover;
  }

  .parceiro {
    min-height: 155px !important;
    padding: 18px !important;
  }

  .parceiro img,
  .parceiro img.logo-ampliado {
    width: min(220px, 80vw) !important;
    height: 100px !important;
    object-fit: contain !important;
  }

  .contato-pagina {
    min-height: 100dvh;
    padding-top: 42px !important;
    background-attachment: scroll !important;
  }

  .contato-grid {
    gap: 16px !important;
    margin: 28px 0 48px !important;
  }

  .contato-destaque {
    overflow-wrap: anywhere;
  }

  .rodape-topo {
    gap: 28px !important;
    padding: 38px 0 28px !important;
  }

  .rodape-logo {
    height: auto !important;
    width: min(250px, 78vw) !important;
  }
}

@media (max-width: 390px) {
  .container {
    width: min(100% - 18px, var(--largura)) !important;
  }

  .marca img {
    max-width: 165px !important;
  }

  .numero strong {
    font-size: 2rem !important;
  }
}

