@media all and (max-width: 48em) {
  html {
    font-size: 43.75%;
    scroll-behavior: smooth;
  }

  /* POPUP */

  .popup-container h1 {
    font-size: 4rem;
    margin-bottom: 2rem;
  }

  .popup-container p {
    font-size: 2.8rem;
  }

  .popup-close {
    font-size: 3.9rem;
  }

  /* SEÇÃO CABEÇALHO */

  .header .container {
    padding: 0 2rem;
  }

  .logo img {
    max-height: 10rem;
    align-items: center;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: hsla(240, 100%, 4%, 0.884);
    transition: right 0.4s ease-in-out;
    z-index: 1000;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu.active > ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 2rem;
  }

  .nav-menu ul {
    display: none;
  }

  .nav-menu ul a {
    font-size: 3rem;
  }

  .menu-toggle {
    display: block;
  }

  /* LÓGICA DO SUBMENU NO MOBILE */

  .has-submenu:hover .submenu {
    display: none !important;
  }

  .submenu {
    position: static;
    padding: 1.5rem 0 0 0;
    text-align: center;
  }

  .has-submenu.submenu-open > .submenu {
    display: block !important;
    justify-self: center;
  }

  .submenu li a {
    font-size: 3rem;
    color: var(--cor-texto);
  }

  .header.menu-active #menu-toggle {
    display: none;
  }

  #menu-close {
    display: none;
  }

  .header.menu-active .nav-menu #menu-close {
    display: block;
  }

  .menu-close {
    position: absolute;
    top: 5rem;
    right: 5rem;
    color: var(--cor-btn);
  }

  /* PÁGINA INÍCO */

  .hero {
    height: 70vh;
    margin-top: 9rem;
  }

  .slide-content h1 {
    font-size: 4.2rem;
    margin-bottom: 2rem;
  }

  .slide-content p {
    font-size: 3.2rem;
    margin-bottom: 2rem;
  }

  .btn {
    background-color: var(--cor-btn);
    font-size: 2rem;
    color: var(--cor-texto-2);
    padding: 1.2rem 2.5rem;
    cursor: none;
  }

  .carousel-track {
    animation: scroll 30s linear infinite;
  }

  .parceiros h2 {
    padding: 0 4rem;
    margin-bottom: 2.5rem;
  }

  .parceiros h2 .servicos h2 {
    font-size: 3.4rem;
  }

  .servicos {
    padding-bottom: 1rem;
    margin: 0 1rem;
  }

  .servico img {
    width: 8rem;
  }

  .servico h3 {
    font-size: 3.1rem;
  }

  .servico p {
    font-size: 2.8rem;
    line-height: 1.5;
    font-weight: 300;
  }

  .grid-servicos {
    margin: 0 2rem;
    gap: 2rem;
  }

  .banner-com-pelicula {
    min-height: 30vh;
  }

  .banner-conteudo h1 {
    font-size: 3rem;
  }

  #assistente-container {
    z-index: 99;
  }

  /* PÁGINA QUEM SOMOS */

  .sobre-empresa {
    padding: 4rem 6rem;
    position: relative;
  }

  .container-sobre {
    display: flex;
    flex-direction: column;
    margin: 0 1rem;
    gap: 1rem;
  }

  .texto-sobre {
    margin: 0 1rem;
  }

  .texto-sobre h2 {
    font-size: var(--var-texto-h2);
    color: var(--cor-texto-2);
    text-shadow: 0.3rem 0.3rem 0.2rem rgba(0, 0, 0, 0.5);
    padding-bottom: 1rem;
  }

  .texto-sobre p {
    font-size: 1.5rem;
    text-align: left;
    color: var(--cor-texto-2);
    font-weight: 400;
    line-height: 1.6;
    padding-bottom: 1rem;
  }

  /* PÁGINA ALARMES 24H - PÁGINA CONTROLE DE ACESSO - PÁGINA MONITORAMENTO CFTV - PÁGINA PORTARIA REMOTA - PÁGINA SEGURANÇA PERIMETRAL */

  .hero-fixo {
    display: flex;
    height: 90vh;
    align-items: center;
    justify-content: center;
  }

  .container-pagina {
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    margin: 0 2rem;
  }

  .texto-servico {
    padding-right: 0;
  }

  /* POLITICA DE PRIVACIDADE / POLITICA DE COOKIES */

  .policy-section .container {
    padding-top: 20rem;
    padding-left: 5rem;
    padding-right: 5rem;
    padding-bottom: 5rem;
  }

  .politica-privacidade,
  .politica-de-cookies {
    font-size: 1.8rem;
  }

  /* SEÇÃO FOOTER */

  .container-footer {
    display: flex;
    flex-flow: column;
    margin: 0 5rem;
  }

  .footer-col {
    flex: none;
    text-align: center;
  }

  .footer-col h4 {
    font-size: 2.6rem;
    font-weight: 300;
  }

  .footer-col p {
    font-size: 1.8rem;
    text-decoration: none !important;
    padding: 0 1.4rem;
    margin: 0;
  }

  .footer-col ul li a {
    font-size: 1.8rem;
    text-decoration: none !important;
    padding: 0 1.4rem;
    margin: 0;
  }

  .footer-col ul {
    list-style: none !important;
  }

  .footer-col ul li {
    margin-bottom: 1rem;
  }

  .redes-sociais a {
    font-size: 3.2rem;
  }

  .footer-bottom {
    font-size: 1.6rem;
    font-weight: 200;
    padding: 0 4rem;
  }

  .developed-by {
    font-size: 1.4rem;
  }

  /* PÁGINA AGRADECIMENTO */

  .agradecimento-pagina {
    padding: 0 3rem;

    & h1 {
      font-size: 3.6rem;
      text-align: center;
      margin-bottom: 2rem;
    }

    & strong {
      font-size: 4.6rem;
      text-shadow: 0.1rem 0.1rem 0.3rem var(--cor-texto-2);
    }

    & span {
      font-size: 3.2rem;
      text-shadow: 0.1rem 0.1rem 0.3rem var(--cor-texto-2);
    }
  }

  .agradecimento-pagina p {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 2.2rem;
  }

  .agradecimento-pagina .btn {
    font-size: 2.4rem;
    padding: 1.5rem 2rem;
    margin-top: 4rem;
  }
}
