@font-face {
    font-family: 'CalSans';
    src: url('../assets/fonts/CalSans.woff2') format('woff2'),
         url('../assets/fonts/CalSans.ttf') format('truetype');
         font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Questrial';
    src: url('../assets/fonts/Questrial.woff2') format('woff2'),
         url('../assets/fonts/Questrial.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'CalSans', sans-serif;
  letter-spacing: .5pt;
}

.mz-container {
  max-width: 1620px;
  padding: 0 15px;
  margin: auto;
}

.mz-inner-pad {
  padding-left: clamp(25px, 5vw, 100px);
  padding-right: clamp(25px, 5vw, 100px);
}

.mz-top-margin-s {
  margin-top: 30px;
}

.mz-top-margin-m {
  margin-top: 65px;
}

.mz-top-margin-l {
  margin-top: 110px;
}

.mz-line {
  height: 4px;
  background-color: #CA1313;
}

.mz-main-header {
  height: 80px;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}    

.mz-logo-container {
  max-height: 75px;
  width: auto;
}

.mz-logo-container svg {
   height: 100%;
   padding: 5px;
   box-sizing: border-box;
}

.mz-menu-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mz-menu-container .menu-list {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
}

.mz-menu-container .menu-list li {
  font-family: 'Questrial', sans-serif;
  text-transform: uppercase;
  list-style: none;
  vertical-align: middle;
}

.mz-menu-container .menu-list .menu-btn {
  background-color: black;
  color: white;
  padding: 10px 20px;
  border-radius: 30px;
}

.mz-jumbo {
  height: calc(100vh - 80px);
}

.mz-jumbo .mz-jumbo-box {
  min-height: 70%;
  margin-top: 10px;
  width: 100%;
  background-color: #CA1313;
  border-radius: 25px;
  padding: 50px 0px 50px 0px;
  padding-left: clamp(25px, 5vw, 100px);
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  box-sizing: border-box;
}

.mz-jumbo .mz-jumbo-box .mz-jumbo-box-left, .mz-jumbo .mz-jumbo-box .mz-jumbo-box-right {
    width: 50%;
    align-content: center;
}

.mz-jumbo .mz-jumbo-box .mz-jumbo-box-left h1 {
  font-family: 'CalSans', sans-serif;
  color: white;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: clamp(30px, 3.5vw, 75px);
  letter-spacing: .5pt;
  font-weight: normal;
  line-height: 1.125;
  margin-top: 0;
}

.mz-jumbo .mz-jumbo-box .mz-jumbo-box-left .search-box {
    background-color: #efefef;
    border-radius: 10px;
    padding: 25px 30px;
}

.mz-jumbo .mz-jumbo-box .mz-jumbo-box-left .search-box .top-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-bottom: 20px;
}

.mz-jumbo .mz-jumbo-box .mz-jumbo-box-left .search-box .top-row h5 {
    margin: 0;
    font-family: 'CalSans', sans-serif;
    font-weight: normal;
    font-size: clamp(14px, 2.25vw, 28px);
}

.search-box .inputs {
    display: flex;
    flex-direction: row;
    gap: 16px;
    flex-wrap: wrap;
}

.search-box .inputs input, .search-box .inputs select, .search-box .inputs button {
    width: calc(50% - 8px);
    box-sizing: border-box;
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-family: 'Questrial', sans-serif;
    font-size: 16px;
}

.search-box .inputs button {
    background-color: black;
    color: white;
    font-family: 'CalSans', sans-serif;
    letter-spacing: .5pt;
}

.switch-wrapper {
  position: relative;
  display: inline-flex;
  padding: 4px;
  border: 1px solid white;
  border-radius: 30px;
  background: white;
}
.switch-wrapper [type="radio"] {
  position: absolute;
  left: -9999px;
}
.switch-wrapper [type="radio"]:checked#compra ~ label[for="compra"],
.switch-wrapper [type="radio"]:checked#vendi ~ label[for="vendi"] {
  color: white;
}
.switch-wrapper [type="radio"]:checked#compra ~ label[for="compra"]:hover,
.switch-wrapper [type="radio"]:checked#vendi ~ label[for="vendi"]:hover {
  background: transparent;
}
.switch-wrapper
  [type="radio"]:checked#compra
  + label[for="vendi"]
  ~ .highlighter {
  transform: none;
}
.switch-wrapper
  [type="radio"]:checked#vendi
  + label[for="compra"]
  ~ .highlighter {
  transform: translateX(100%);
}
.switch-wrapper label {
  font-size: 16px;
  z-index: 1;
  min-width: 100px;
  line-height: 32px;
  cursor: pointer;
  border-radius: 30px;
  transition: color 0.25s ease-in-out;
  font-family: 'CalSans', sans-serif;
  text-align: center;
}
.switch-wrapper label:hover {
  background: #efefef;
}
.switch-wrapper .highlighter {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  border-radius: 30px;
  background: black;
  transition: transform 0.25s ease-in-out;
}

.mz-jumbo-box-right {
  background-image: url(../assets/img/motorzoom-hero-img.webp);
  background-size: contain;
  background-position: center right;
  background-repeat: no-repeat;
  min-height: 100%;
  width: 50%;
}

.mz-jumbo-items {
  min-height: calc(30% - 20px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mz-jumbo-items-slots {
  min-height: 100%;
  box-sizing: border-box;
  margin-bottom: 30px;
  display: flex;
  flex-direction: row;
}

.mz-jumbo-items-slots .mz-jumbo-items-slot {
  background-color: #efefef;
  min-height: 150px;
  width: 33.3333%;
}

.mz-jumbo-items-slots .mz-jumbo-items-slot.left {
  border-radius: 25px 0 0 25px;
}

.mz-jumbo-items-slots .mz-jumbo-items-slot.center {
  border-left: 1px solid #ccc;
  border-right: 1px solid #ccc;
}

.mz-jumbo-items-slots .mz-jumbo-items-slot.right {
  border-radius: 0 25px 25px 0;
}

.slider-item {
  min-width: 17.5vw;
  aspect-ratio: 1 / 1;
  background-color: #efefef;
  border-radius: 25px;
  margin-left: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-content: center;
}

.slick-list {
  margin-left: -20px;
}

.mz-jumbo-items .mz-line {
  box-sizing: border-box;
  margin: 0 1px;
}

.home-slider-wrap .slider h3 {
  font-family: 'CalSans', sans-serif;
  text-align: center;
  font-weight: normal;
}

.home-tags-wrap {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 60px;
}

.home-tags-wrap .home-tag {
  background-color: black;
  color: white;
  border-radius: 50px;
  padding: 20px 30px;
  width: calc(25% - 8px); 
}

.home-tags-wrap .home-tag h3 {
  font-family: 'Questrial', sans-serif;
  text-align: center;
  font-weight: normal;
  margin: 0;
}

.home-ultimi-arrivi h2 {
  font-family: 'CalSans', sans-serif;
  font-weight: normal;
  text-align: center;
  font-size: 35px;
}

.ultimi-arrivi-container {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 20px;
}

.item-card {
  width: calc(33.3333% - 10px);
}

.item-card .item-card-img img {
  border-radius: 15px;
  max-width: 100%;
  aspect-ratio: 4 / 3;
}

.item-card .item-card-details .item-title h3 {
  font-family: 'CalSans', sans-serif;
  font-size: 28px;
  font-weight: normal;
  margin-bottom: 8px;
}

.item-card .item-card-details .item-location {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.item-card .item-card-details .item-location .where {
  padding-left: 3px;
  font-family: 'Questrial', sans-serif;
  font-size: 20px;
}

.item-card .card-btn {
  background-color: #CA1313;
  width: 100%;
  padding: 16px;
  border-radius: 5px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: none;
  margin-top: 15px;
}

.item-price {
  color: #CA1313;
  font-family: 'CalSans', sans-serif;
  font-size: 28px;
}




@media only screen and (max-width: 768px) {
  .mz-menu-container {
    display: none;
  }

  .mz-jumbo {
    height: auto;
  }

  .mz-jumbo .mz-jumbo-box {
    flex-direction: column;
    padding-right: clamp(25px, 5vw, 100px);
    min-height: 80%;
  }

  .mz-jumbo .mz-jumbo-box .mz-jumbo-box-right {
    min-height: 200px;
    background-image: url(../assets/img/motorzoom-hero-img-mobile.webp);
    background-position: center;
  }

  .mz-jumbo .mz-jumbo-box .mz-jumbo-box-left, .mz-jumbo .mz-jumbo-box .mz-jumbo-box-right {
    width: 100%;
  }

  .search-box .inputs input, .search-box .inputs select, .search-box .inputs button {
    width: 100%;
  }

  .mz-jumbo-items-slots {
    flex-direction: column;
    margin-top: 30px;
  }

  .mz-jumbo-items-slots .mz-jumbo-items-slot {
    width: 100%;
  }

  .mz-jumbo-items-slots .mz-jumbo-items-slot.left {
    border-radius: 25px 25px 0 0;
  }

  .mz-jumbo-items-slots .mz-jumbo-items-slot.center {
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    border-left: none;
    border-right: none;
  }

  .mz-jumbo-items-slots .mz-jumbo-items-slot.right {
    border-radius: 0 0 25px 25px;
  }

  .slider-item {
    min-width: 60vw;
  }

  .home-tags-wrap {
    flex-wrap: nowrap;
    overflow: scroll;
  }

  .home-tags-wrap .home-tag {
    width: auto;
  }

  .home-tags-wrap .home-tag h3 {
    width: max-content;
  }

  .item-card {
    width: 100%;
  }
}