* {
  /*font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  */box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Exo", sans-serif;
}

@viewport {
  width: device-width;
  zoom: 0.0 !important;
}

html{
  scroll-behavior: smooth;
}

:root{
  /*--theme: rgb(250, 104, 10);*/
  --site-theme: rgb(253, 253, 253);
  --orange-theme:rgb(250, 104, 10);
  --black: rgb(0, 0, 0);
}

body{
  background:
  linear-gradient(
    rgba(1, 1, 1, 0.8),rgba(0, 0, 0, 0.8)),
  url(/img/frente-controlcar-new.jpeg) no-repeat;
  background-size: cover;
  background-position-x: center;
  background-position-y: center;
  height: 100%;
  width: 100%;
  margin: 0;
  display: grid;
  grid-template-rows: 120px 1fr 60px;
  grid-template-columns: 1fr;
  flex-direction: column;
  grid-template-areas: 
  "nav-bar"
  "principal"
  "rodape";
}

/* CRIAÇÃO DA NAV-BAR */

#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 1;
}

#overlay.active {
  display: block;
}



.nav-bar{
  grid-area: nav-bar;
  position: fixed;  
  /*background-color: rgb(255, 255, 255);*/
  background-color: var(--site-theme);
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  min-height: 70px;
  padding: 0 34px;
  transition: height 0.25s ease;
  z-index: 1;
  border-color: red;
}

#bar-items{
  display: flex;
  align-items: center;
  gap:60px;
  color: var(--orange-theme)
}

.nav-link{
  padding: 10px 15px; 
  transition: 0.25s ease;
  position: relative;
  align-items: center;
  color: var(--black);
}

.nav-link:hover{
  color: var(--orange-theme)
}

.nav-link::before{
  content:"";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 2px solid var(--orange-theme);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.25 ease;
}

.nav-link:hover::before {
  opacity: 1;
}

.hamburguer{
  display: none;
  cursor: pointer;
  margin-left: 20px;
}

.logo{
  position: static;
  border-radius: 2px;
  align-items: center;
  font-size: 2rem;
  font-weight: bold;
  flex: 1;
}

.bar{
  display: block;
  width: 28px;
  height: 3px;
  border-radius: 2px;
  margin: 5px auto;
  background-color: var(--orange-theme);
  transition: all 0.25s ease-in-out;
}

/*MOBILE CSS*/
@media screen and (max-width:890px){
  .hamburguer{
      display: block;
  }
  .hamburguer.active .bar:nth-child(2){
      opacity: 0;
  }
  .hamburguer.active .bar:nth-child(1){
      transform: translateY(8px) rotate(45deg);
  }
  .hamburguer.active .bar:nth-child(3){
      transform: translateY(-8px) rotate(-45deg);
  }
  .nav-bar{
      position: fixed;
      top: 0px;
      background-color: var(--site-theme);
      text-align: center;
      width: 100%;
      transition: 0.3s;
      z-index: 1;
  }
  .logo-container{
    justify-content: center;
    /* -webkit-filter: drop-shadow(0px 0px 20px rgba(0 0 0 / 90%)); 
    filter: drop-shadow(px 20px 20px rgba(30, 29, 29, 0.9)); */
  }

  #bar-items{
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      font-size: 40px;
      background-color: rgb(255, 255, 255);
      width: 100%;
      padding: 40px;
      text-align: center;
      border-bottom-right-radius: 3%;
      border-bottom-left-radius: 3%;

  } 
  .nav-bar.active #bar-items{
      display: block; /* Exibe os itens do menu quando o hamburguer está ativo */
  }
  .nav-bar.active #bar-items li{
    padding: 2%;
  }
  .nav-bar.active{
      left: 0;
  }
  html{
    scroll-behavior: smooth;
  }

  #comoestamos{
    margin-top: 500px;
  }

  .sobrenós-imagem-lado-texto img{
    height: 300px;
    width: 300px;
  }

  iframe{
    width: auto; 
    display: flex;
    justify-content: end;
  }
  .endereco > .contato-item{
    white-space: wrap;
  }
  #contatos{
    margin: -10px;
  }
  
  .contato > .contato-item{
    white-space: wrap;
  }

  .horario{
    white-space: nowrap!important;
  }
  .menu-sanfona{
    position: relative;
    display: contents;
  }

}
/*FIM DO MOBILE*/

a{
  color: white;
  text-decoration: none;
}

li{ 
  list-style: none;
}

/* Estilos CSS para a seção "Principal" */

.box-contact{
  position: fixed;
  right: 16px;
  bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  border-radius: 100%;
  text-decoration: none;
  background-color:#ffffff;
  z-index: 2;
}

.icon_whatsapp_sticky{
  height: 70px;
  width: 70px;
  vertical-align: middle;
  border-radius: 100%;
}

.principal {
  grid-area: principal;
  padding: 20px;
  /*margin-bottom: 100px;*/
  min-height: calc(100vh - 180px);
  color: white;
  /*color: var(--orange-theme);*/
}

h1{
  text-align: center;
  align-content: center;
  align-items: center;
  font-family: "Anton", sans-serif;
  color: var(--orange-theme);
}

h2{
  text-align: center;
  color: var(--orange-theme);
}

h3{
  color: var(--orange-theme);
}

.menu-sanfona{
    margin: 20px auto;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    height: 150px;
    align-items: flex-start;
    justify-content: center;
    align-content: flex-start;
  }

.menu-sanfona li{
  position: relative;
  margin: 0;
  border-right: 2px solid white;
} 

.car-brand{
  display: flex;
  position: relative;
  /*flex: 1; */
  justify-content: center;
  overflow: hidden;
  /*margin: 5px; */
  width: 75px;
  height: 100px; 
  transition: width 0.3s ease, height 0.3s ease, transform 0.3s ease;
  clip-path: polygon(30% 0, 100% 0%, 70% 100%, 0 100%); /*tive q pesquisar... 10/10*/
  background-color: white;
}

.car-brand img {
  width: auto;
  /* display: flex; */
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain; /*cover*/
  transition: transform 0.3s ease-outx;
}

.car-brand:hover {
  position:static;
  width: 200px;
  height: 100px;
  clip-path: polygon(0 0, 100% 0%, 100% 100%, 0 100%); /*   Tive q pesquisar muito tambem... */
  /* overflow: hidden; */
}

.fechado{
  color: red;
}

.aberto{
  color: green;
}

#comoestamos{
  text-align: center;
  margin-top: 50px;
}

.sobrenós-imagem-lado-texto::after {
  content: "";
  display: table;
  clear: both;
}
.sobrenós-imagem-lado-texto img {
  float: right;
  margin: 20px;
  width:35%;
  height: 35%;
}

.sobrenós-imagem-lado-texto p{
  width: calc(100% - 270px);
}

.blur-background{
  backdrop-filter: blur(40px);
}

/*CARROUSSEL MENU*/

.carousel {
  width: 600px;
  overflow: hidden;
  margin: 0 auto;
  position: relative;
}

.carousel ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  transition: transform 0.5s ease;
}

.carousel li {
  flex: 0 0 100%;
  height: 500px;
  background: #eee;
  text-align: center;
  line-height: 100%;
}

.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  background-color: #ddd;
  padding: 10px;
  border: none;
  outline: none;
}

.prev {
  left: 0;
  border-bottom-right-radius: 64px;
  border-top-right-radius: 64px;
}

.next {
  right: 0;
  border-bottom-left-radius: 64px;
  border-top-left-radius: 64px;
}

.carousel img{
  max-width:100%;
  max-height:100%;
  width: auto;
  height: auto;
}

/* Estilos CSS para o rodapé (≠ de footer) */
.rodape {
  background-color: white;
  color: var(--black);
  width: 100%;
  height: 500px;
  display: flex;
  align-items: center;
  padding-inline: 20px;
}

#contatos{
  padding: auto;
  align-content: center;
  margin: 50px;
}

#contatos h4{
  color: var(--orange-theme);
}

#contatos a{
  color: black;
}

.mapa-rodape{
  width: 100%;
  display: flex;
  justify-content: end;
  margin-right: "20px"
}

iframe {
  height: 300px;
}

.contato-item {
  color: var(--black);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: wrap;
}

.contato-body{
  color: var(--black);
}

.horarios{
  white-space: nowrap;
}

.clickhovercontato > .contato-item:hover{
  font-size: 15px;
  cursor: pointer;
  color: var(--black);
}

.horarios{
  white-space: nowrap!important;
}

.whatsapp-icon,
.telefone-icon,
.horario-icon{
  height: 20px;
  width: 20px;
  vertical-align: middle;
}