* {
  box-sizing: border-box;
}

body {
  margin: 0;
  height: auto;
  width: 300vw;
  overflow-x: hidden;
  overflow-y: auto;
  background: rgb(28, 3, 53);
  scroll-behavior: smooth;
  font-family: 'Noto Sans', sans-serif;
  background-attachment: fixed;
}

/* HEADER & NAV */
.header {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 70px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: transparent;
}

.nav {
  margin-left: 65px;
  padding-top: 1vh;
  margin-right: 65px;
  width: 15%;
  max-width: 1600px;
  height: 60px;
  display: flex;
  justify-content: center;
}

#ul {
  margin: 0;
  padding: 0;

  list-style: none;
  width: 300px;
  height: 60px;
  background-color: rgba(124, 92, 255, 0.2);
  border-radius: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
}

#BloccoSfondo {
  margin: 0;

  padding: 0;
  list-style: none;
  width: 455px;
  height: 50px;
  background-color: rgb(28, 3, 53);
  border-radius: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
}

#ul li {
  margin: 0 10px;
  padding: 15px 10px;
  font-size: 17px;
  border-radius: 40px;
  cursor: pointer;
  color: #E0E0E0;
  background-color: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.5s;
  flex-shrink: 1;
  white-space: nowrap;
  user-select: none;
}

#ul li.active {
  background-color: rgba(124, 92, 255, 0.9);
  color: white;
}

/* LOGO */
.logo {
  width: calc(1109vh / 50);
  height: calc(302vh / 50);
  margin-left: 2vh;
  margin-top: 2vh;

  position: fixed;
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 1000;
}

.logo:hover {
  transform: scale(1.1);
  opacity: 0.8;
}

/* WRAPPER SEZIONI */
.wrapper {
  width: 300vw;
  height: 100vh;
  display: flex;
  transition: transform 0.5s ease;
}

.section {
  width: 100vw;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  text-align: center;
  min-height: 100vh;
  height: auto;
  padding-bottom: 200vh;
  /* <---------------------------------- aumentare se si aggiungono card */
}

.project-container,
.shop-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  align-items: flex-start;
  width: 90%;
  padding-top: 100px;
}

.project-card,
.shop-card {
  background-color: #1E1737;
  border-radius: 20px;
  padding: 20px;
  text-align: center;
  color: #E0E0E0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none;

}

.project-card:hover,
.shop-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(124, 92, 255, 0.4);
}

.project-card {
  width: 440px;
}

.shop-card {
  width: 400px;
}

.project-img,
.shop-img {
  width: 100%;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 15px;
  height: 300px;
  background-color: #100b24;
}

.shop-title,
.project-title {
  font-size: 20px;
  margin: 0 0 10px 0;
  color: #FFFFFF;
}

.shop-price {
  font-size: 18px;
  color: #BFAFFF;
  margin: 0;
}

#TestoHome {
  position: relative;
  top: 10vh;
  height: 10vh;
  padding-left: 6vw;
  padding-right: 6vw;
  color: #fff;
}

#btn-sec-3 {
  font-family: 'Noto Sans', sans-serif;
  font-size: 17px;
  color: rgb(34, 34, 34);
  background-color: rgba(139, 190, 124, 0.808);
  cursor: pointer;
  align-items: center;
  border-radius: 10px;
  height: 70px;
  width: 130px;
  margin-bottom: 50px;
}

iframe {
  max-width: 90vw;
}

/* ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////*/
/* RESPONSIVE */
@media (max-width: 768px) {


  .logo {
    position: absolute;

    width: calc(1109vh / 65);
    height: calc(302vh / 65);
    top: 2vh;
    left: 50%;
    transform: translateX(-50%);

    margin: 0;
  }

  .containerLogo {
    display: flex;
    justify-content: center;
  }

  .header {
    padding-top: 0vh;
  }

  .nav {
    position: relative;
    margin: 0 10px;
    top: 85dvh;
    height: 60px;
    width: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
  }

  #ul {
    width: 100%;
    max-width: 100vw;
    height: 50px;
    background-color: rgba(124, 92, 255, 0.2);
    border-radius: 30px;
    padding: 0 5px;
    justify-content: space-around;
    overflow-x: auto;
  }

  #ul li {
    font-size: 14px;
    padding: 12px 10px;
    margin: 0 5px;
    flex-shrink: 0;
  }

  .project-card,
  .shop-card {
    width: 90vw;
    margin-top: 5vh;
    padding: 2vh;
  }

  .project-img,
  .shop-img {
    margin: 0;
    object-fit: cover;
  }

  .nav {
    margin-left: 65px;
    margin-right: 65px;
    width: 15%;
    max-width: 1600px;
    height: 60px;
    display: flex;
    justify-content: center;
  }

  .project-container,
  .shop-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: flex-start;
    width: 90%;
    padding-top: 5vh;
  }

}

html,
body {
  overflow-x: hidden;
  touch-action: pan-y;
}

/*
 @media screen and (orientation: landscape) {
  body {
    transform: rotate(90deg);
    transform-origin: left top;
    width: 100vh;
    height: 100vw;
    overflow-x: hidden;
    position: absolute;
    top: 100%;
    left: 0;
  }
}
  */