/*
* Prefixed by https://autoprefixer.github.io
* PostCSS: v8.3.6,
* Autoprefixer: v10.3.1
* Browsers: last 4 version
*/

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');

html,
body {
  margin: 0;
  padding: 0;
}

header {
  z-index: 999;
  width: 100%;
  height: 74px;
  background-color: #000;
  position: fixed;
  margin-top: 0;
}
header .container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  align-items: center;
  width: 80%;
  height: 100%;
  margin: auto;
}

#logo img {
  width: auto;
  height: 100%;
}

/* ===============
    HAMBURGER
================ */
#hamburgher {
  z-index: 999;
}

#bar1,
#bar2,
#bar3 {
  width: 29px;
  height: 3px;
  margin: 6px 0;

  -webkit-transition: 0.4s;

  -o-transition: 0.4s;

  transition: 0.4s;
  border-radius: 4px;
  background-color: #f4f4f4;
}

/* Hamburgher si trasforma in X al click*/
.change #bar1 {
  opacity: 1;
  -webkit-transform: rotate(-45deg) translate(-8px, 6px);
  -ms-transform: rotate(-45deg) translate(-8px, 6px);
  transform: rotate(-45deg) translate(-8px, 6px);
}

.change #bar2 {
  opacity: 0;
}

.change #bar3 {
  opacity: 1;
  -webkit-transform: rotate(45deg) translate(-5px, -5px);
  -ms-transform: rotate(45deg) translate(-5px, -5px);
  transform: rotate(45deg) translate(-5px, -5px);
}

li {
  list-style-type: none;
}

a {
  cursor: pointer;
  text-decoration: none;
}

/* ===============
   NavBar Mobile
================ */
#navBar-Mobile {
  display: none;
  z-index: 998;

  position: absolute;
  right: 0;
  width: 100%;
  height: 100%;
  margin-top: 2em;

  background: rgba(0, 0, 0, 0.9);
}

#navBar-Mobile ul {
  text-align: center;
  align-items: center;
}

#navBar-Mobile ul li {
  width: 100%;
  height: auto;
  margin: 2vh 0;
  align-items: center;
}

#navBar-Mobile img {
  width: auto;
  height: 50px;
}

#navBar-Mobile ul li a {
  font: 400 29px 'Bebas Neue', cursive;
  color: #fff;

  text-transform: uppercase;
  letter-spacing: 0.063vw;

  /* Non visibili fino a quando non clicca l'hamburgher */
  display: none;
  padding: 10px 24px;
}

/* Ogni seziona avrà una linea sottostante */
#navBar-Mobile hr {
  width: 75%;
  height: 2px;
  margin: auto;

  border: 0;
  background-color: #e3b028;
  opacity: 0.85;
}

.change #navBar-Mobile {
  display: inline-table;
}

.change #navBar-Mobile ul li a {
  display: inherit;
}

/* ===============
      NavBar
================ */
#navBar {
  display: none;
  width: 100%;
  height: auto;
}

#navBar ul {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-pack: distribute;
  justify-content: space-around;
  align-items: center;
  width: 100%;
  margin-left: 30px;
  /* align-items: center !important; ALLINED IN THE HTML BECAUSE OF ISSSUES*/
}

#navBar li a {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  text-transform: uppercase;

  font: 400 34px 'Bebas Neue', cursive;
  color: #fff;

  /* Risolve bug linea sotto intero header */
  -webkit-transform: translateX(0vw);
  -ms-transform: translateX(0vw);
  transform: translateX(0vw);
}

#navBar ul li a:hover {
  -webkit-transform: scale(1.1);
  -ms-transform: scale(1.1);
  transform: scale(1.1);
  -webkit-transition: 0.9s;
  -o-transition: 0.9s;
  transition: 0.9s;
}

#navBar ul li a:after {
  content: '';
  position: absolute;

  width: 100%;
  height: 0.3vh;
  left: 50%;
  bottom: 4px;
  border-radius: 4px;

  background-color: #e3b028;

  /* Transizioni */
  -webkit-transform: translateX(-50%) scale(0);
  -ms-transform: translateX(-50%) scale(0);
  transform: translateX(-50%) scale(0);
  -webkit-transition: transform 500ms;
  -webkit-transition: -webkit-transform 500ms;
  transition: -webkit-transform 500ms;
  -o-transition: transform 500ms;
  transition: transform 500ms;
  transition: transform 500ms, -webkit-transform 500ms;
}

#navBar ul li a:hover:after {
  -webkit-transform: translateX(-50%) scaleX(1);
  -ms-transform: translateX(-50%) scaleX(1);
  transform: translateX(-50%) scaleX(1);
}

#navBar img {
  height: 45px;
  padding-bottom: 10px;
  margin-top: 4px;
}

/* Tablet */
@media only screen and (min-width: 481px) {
  header {
    height: 100px;
  }

  #bar1,
  #bar2,
  #bar3 {
    width: 35px;
    height: 4px;
    margin: 5px 0;
  }
}

/* Pc */
@media only screen and (min-width: 1140px) {
  header .container {
    width: 85%;
  }

  #menuMobile {
    display: none;
  }

  #navBar {
    display: inherit;
  }
}
