*,
*:before,
*:after {
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    margin: 0px;
    padding: 0px;
    scroll-behavior: smooth;
    font-family: 'Rubik', sans-serif;
    color: var(--light-gray);
}

body {
  background-color: var(--black);
  cursor: none;
}

:root {
    --black: #000000;
    --light-black: #0e0e0e;
    --dark-gray: #666;
    --light-gray: #bbb;
    --white: #fff;
    --orange: #ff911a;
}

/* width */
::-webkit-scrollbar {
  width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
  background: transparent; 
}
 
/* Handle */
::-webkit-scrollbar-thumb {
  background: var(--dark-gray); 
  margin-right: 4px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: var(--light-gray); 
}

::-moz-selection {   /* Code for Firefox */
  background: #3d3d3dc5;
}

::selection {
  background: #3d3d3dc5;
}

a {
  text-decoration: none;
  cursor: none !important;
}

a[href^="tel"] {
  color: inherit; 
  text-decoration: none;
}

button,
input, 
textarea {
  cursor: none !important;
}

.container {
  max-width: 1140px;
  width: 90%;
  padding: 0;
}

@media (max-width: 600px) {
    .container {
      width: 85%;
    }
}

.spacer {
  height: 30px;
}

@media screen and (max-width: 550px) {
  .spacer {
    height: 20px;
  } 
}

.gap {
  height: 100vh;
  z-index: 1000;

  background-color: transparent;
}

.wrapper {
  width: 100%;
  background-color: var(--black);
  z-index: 20;
  position: relative;
}

/* --------------- CURSOR ------------------ */

.cursor-dot {
  position: fixed;
  width: 7px;
  height: 7px;
  background-color: rgb(255, 255, 255);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1000;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  z-index: 100000000000000000000000;
}

.cursor-outline {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 1px solid rgb(255, 255, 255);
  border-radius: 50%;
  pointer-events: none;
  z-index: 999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s, width 0.3s, height 0.3s, border-color 0.1s;
  mix-blend-mode: difference;
  z-index: 1000000000000000000000000;
}

@media (hover: none) and (pointer: coarse) {
  
  .cursor-dot, .cursor-outline {
    display: none;
  }
}

/* ----------------  PRELOADER ---------------- */

.loader-container {
  text-align: center;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  position: fixed;

  z-index: 5000;
}

.loader-container .internal-cont {
  width: 100%;
  height: 100%;
  display: inline-block;
  text-align: center;
  vertical-align: top;
  margin: 0;
}

.striscia {
  height: 50%;
  width: 100%;
  background-color: var(--light-black);
}

#logo-intero {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  width: 100px; /* Adjust the size as needed */
  height: 100px; /* Adjust the size as needed */
}

/* Define keyframe animations */
@keyframes outlineAnimation1 {
  0% {
      stroke-dashoffset: 805;
  }
  100% {
      stroke-dashoffset: 5; /* Adjust this value based on your path length */
  }
}

@keyframes outlineAnimation2 {
  0% {
      stroke-dashoffset: 5;
  }
  100% {
      stroke-dashoffset: 1605; /* Adjust this value based on your path length */
  }
}

@keyframes outlineAnimation3 {
  0% {
      stroke-dashoffset: 5;
  }
  100% {
      stroke-dashoffset: 2005; /* Adjust this value based on your path length */
  }
}

/* Apply animations to individual elements and change the color and stroke width */
#triangle {
  fill: none;
  stroke: var(--orange); /* Color of the outline */
  stroke-width: 18; /* Width of the outline */
  stroke-dasharray: 405; /* Length of the outline path + 5px */
  stroke-dashoffset: 405; /* Initially hides the outline */
  animation: outlineAnimation1 1.5s linear infinite; /* Infinite loop with linear timing for a smoother transition */
}

#sx {
  fill: none;
  stroke: var(--orange); /* Color of the outline */
  stroke-width: 18; /* Width of the outline */
  stroke-dasharray: 805; /* Length of the outline path + 5px */
  stroke-dashoffset: 805; /* Initially hides the outline */
  animation: outlineAnimation2 1.5s linear infinite; /* Infinite loop with linear timing for a smoother transition */
}

#dx {
  fill: none;
  stroke: var(--orange); /* Color of the outline */
  stroke-width: 18; /* Width of the outline */
  stroke-dasharray: 1005; /* Length of the outline path + 5px */
  stroke-dashoffset: 1005; /* Initially hides the outline */
  animation: outlineAnimation3 1.5s linear infinite; /* Infinite loop with linear timing for a smoother transition */
}

.complete-animation {
  animation: fadeOut;
  animation-duration: 0.5s;
}

.complete {
  display: none;
}

.complete-up-animation {
  animation: slideOutUp;
  animation-duration: 1s;
  animation-timing-function: ease;
  box-shadow: 0px 0px 7px #ffffff31;
}

.complete-down-animation {
  animation: slideOutDown;
  animation-duration: 1s;
  animation-timing-function: ease;
  box-shadow: 0px 0px 1px #ffffff28;
}

/* ------- ADBLOCK CHECKER ----------- */

.container-adblock {
  height: 100%;
  width: 100%;
  position: fixed;
  background-color: var(--black);
  z-index: 6000;

  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.adblock-computer {
  width: 180px;
}

.adblock-title {
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;

  margin-bottom: 25px;
}

.adblock-title h2 {
  font-family: 'K2D', sans-serif;
  font-size: 36px;
  text-align: center;
  color: var(--white);
  margin-bottom: 0;
}

.adblock-title img {
  width: 40px;
}

@media screen and (max-width: 550px) {
  .adblock-title h2 {
    font-family: 'K2D', sans-serif;
    font-size: 24px;
    text-align: center;
    color: var(--white);
    margin-bottom: 0;
  }

  .adblock-title img {
    width: 30px;
  }
}

.adblock-subtitle {
  text-align: center;
  width: 80%;
  max-width: 700px;
  font-size: 14px;

  margin-bottom: 15px;
}

.return-adblock {
  padding: 5px 14px;
  cursor: pointer;
  position: relative;

  color: var(--white) !important;
  border: 2px solid var(--orange);
  background-color: transparent;
  text-decoration: none !important;

  border-radius: 5px;
  transition: .3s;

  font-size: 14px;
}

.return-adblock:hover {
  color: var(--light-black) !important;
  border: 2px solid var(--orange);
  background-color: var(--orange);
  border-radius: 5px;
  transition: .3s;
}

/* ------------- COOKIES --------------- */

.cookies-container {
  position: fixed;
  bottom: 60px;
  left: 60px;
  z-index: 1999;
  width: 600px;
  padding: 25px;
  background-color: hsla(0, 0%, 11%, 0.97);
  border-radius: 5px;
  -webkit-box-shadow: 0px 0px 36px -8px #4a4a4a18; 
  box-shadow: 0px 0px 36px -8px #4a4a4a18;
}

@media screen and (max-width: 800px) {
  .cookies-container {
    position: fixed;
    bottom: calc(50vw - 45vw);
    left: calc(50vw - 45vw);
    z-index: 1999;
    width: 90vw;
    padding: 25px;
    border-radius: 5px;
    -webkit-box-shadow: 0px 0px 36px -8px #4a4a4a18; 
    box-shadow: 0px 0px 36px -8px #4a4a4a18;
  }
}

@media screen and (max-height: 700px) {
  .cookies-container {
    position: fixed;
    bottom: calc(50vw - 45vw);
    left: calc(50vw - 45vw);
    z-index: 1999;
    width: 90vw;
    padding: 25px;
    border-radius: 5px;
    -webkit-box-shadow: 0px 0px 36px -8px #4a4a4a18; 
    box-shadow: 0px 0px 36px -8px #4a4a4a18;
  }
}

.cookies-title {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.cookies-title h3 {
  color: var(--light-gray);
  font-family: 'K2D', sans-serif;
  font-size: 28px;
  margin-bottom: 0px;
}

.cookies-title img {
  height: 24px;
  margin-left: 8px;
}

.cookies-container p {
  color: #838383;
  margin-bottom: 25px;
  font-size: 14px;
}

.cookies-container p a {
  color: var(--light-gray);
  font-size: 14px;
  text-decoration: underline;
}

.cookies-btn {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 15px;
}

.cookies-btn a {
  padding: 5px 20px;
  cursor: pointer;
  position: relative;
}

.cookie-d {
  color: var(--light-gray);
  border: 2px solid var(--light-gray);
  border-radius: 5px;
  transition: .3s;
  padding: 5px;
}

.cookie-d:hover {
  color: var(--light-black);
  border: 2px solid var(--light-gray);
  background-color: var(--light-gray);
  border-radius: 5px;
  transition: .3s;
}

.cookie-d.settings {
  padding: 5px 7px !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cookie-d.settings:hover svg path {
  fill: var(--light-black);
  transition: .3s;
}

.cookie-d svg {
  width: 20px;
  height: 20px;
}

.cookie-a {
  color: var(--light-black);
  border: 2px solid var(--orange);
  background-color: var(--orange);
  border-radius: 5px;
  transition: .3s;
}

.cookie-a:hover {
  color: var(--orange);
  border: 2px solid var(--orange);
  background-color: transparent;
  border-radius: 5px;
  transition: .3s;
}

/* -------------- COOKIE CONFIGURATION ------------ */

.cookie-modal-container {
  width: 100%;
  height: 100%;
  position: fixed;
  background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent background */
  backdrop-filter: blur(4px); /* Apply a blur effect */
  -webkit-backdrop-filter: blur(4px); /* For Safari */
  top: 0;
  left: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
}

.cookie-modal {
  height: fit-content; /* Change height to auto */
  width: 85%;
  max-width: 700px; /* Change max-height to 70vh (viewport height) */
  max-height: 75vh;
  background-color: #fcfcfc;
  display: flex;
  justify-content: center;
  flex-direction: column;
  position: relative;
  border-radius: 5px;
  padding: 30px;
  animation: slideInDown;
  animation-duration: 0.5s;
  z-index: 100000000;
  overflow-y: auto;
}

.cookie-modal h3 {
  font-family: 'K2D', sans-serif;
  font-size: 36px;
  color: var(--light-black);
  margin-bottom: 15px;
  position: relative;
  height: fit-content;
}

.cookie-modal > p {
  font-size: 16px;
  color: var(--dark-gray);
  margin-bottom: 20px;
  width: 100%;
  position: relative;
  height: fit-content;
}

.cookie-modal > p > a {
  color: #2e2e2e;
  text-decoration: underline;
}

.choose-checkbox {
  overflow: auto;
}

.checkbox {
  font-size: 24px;
  height: fit-content;
  display: flex;
  align-items: center;
  position: relative;
  max-width: 80%;
}

.checkbox label {
  cursor: none;
}

.checkbox a {
  color: var(--dark-gray);
  height: 18px;
  display: flex;
  justify-content: center;
  z-index: 50;
}


.checkbox a h5 {
  color: var(--dark-gray);
  font-size: 18px;
  margin-bottom: 0;
  font-weight: 400;
}

.checkbox a img {
  height: 16px;
  margin-top: 2px;
  margin-left: 10px;
  transition: .3s;
}

.check-desc {
  margin-left: 38.39px;
  height: 0px;
  overflow: hidden;
  transition: .3s;
  max-width: 90%;
}

.height {
  margin-left: 38.39px;
  height: fit-content;
  overflow: hidden;
  transition: .3s;
}

.rotate {
  transform: rotate(180deg);
  transition: .3s;
}

@media screen and (max-width: 520px) {
  
  .cookie-modal h3 {
    font-size: 28px;
    margin-bottom: 10px;
    position: relative;
  }

  .cookie-modal > p {
    font-size: 14px;
    margin-bottom: 20px;
    width: 95%;
    margin-bottom: 15px;
  }

  .checkbox {
    height: 40px;
  }
  
  .checkbox a h5 {
    font-size: 16px;
  }

  .check-desc {
    font-size: 14px;
    max-width: 95%;
  }

  .checkbox {
    max-width: 95%;
  }
}

@media screen and (max-height: 520px) {
  
  .cookie-modal h3 {
    font-size: 28px;
    margin-bottom: 10px;
    position: relative;
  }

  .cookie-modal > p {
    font-size: 14px;
    margin-bottom: 20px;
    width: 95%;
    margin-bottom: 15px;
  }

  .checkbox {
    height: 40px;
  }

  .checkbox a h5 {
    font-size: 16px;
  }

  .check-desc {
    font-size: 14px;
  }
}



body.botegashop .cookie-a {
  color: var(--light-black);
  border: 2px solid #F2D900;
  background-color: #F2D900;
  border-radius: 5px;
  transition: .3s;
}

body.botegashop .cookie-a:hover {
  color: #F2D900;
  border: 2px solid #F2D900;
  background-color: transparent;
  border-radius: 5px;
  transition: .3s;
}

body.botegashop input[type="checkbox"]:checked + label > span {
  border: .5em solid #F2D900;
  animation: shrink-bounce 200ms cubic-bezier(.4, .0, .23, 1);
}


body.cosplayer .cookie-a {
  color: var(--light-black);
  border: 2px solid #8f65bf;
  background-color: #8f65bf;
  border-radius: 5px;
  transition: .3s;
}

body.cosplayer .cookie-a:hover {
  color: #8f65bf;
  border: 2px solid #8f65bf;
  background-color: transparent;
  border-radius: 5px;
  transition: .3s;
}

body.cosplayer input[type="checkbox"]:checked + label > span {
  border: .5em solid #8f65bf;
  animation: shrink-bounce 200ms cubic-bezier(.4, .0, .23, 1);
}


body.ivanalbano .cookie-a {
  color: var(--light-black);
  border: 2px solid #FF7504;
  background-color: #FF7504;
  border-radius: 5px;
  transition: .3s;
}

body.ivanalbano .cookie-a:hover {
  color: #FF7504;
  border: 2px solid #FF7504;
  background-color: transparent;
  border-radius: 5px;
  transition: .3s;
}

body.ivanalbano input[type="checkbox"]:checked + label > span {
  border: .5em solid #FF7504;
  animation: shrink-bounce 200ms cubic-bezier(.4, .0, .23, 1);
}


body.lj .cookie-a {
  color: var(--light-black);
  border: 2px solid #FF2805;
  background-color: #FF2805;
  border-radius: 5px;
  transition: .3s;
}

body.lj .cookie-a:hover {
  color: #FF2805;
  border: 2px solid #FF2805;
  background-color: transparent;
  border-radius: 5px;
  transition: .3s;
}

body.lj input[type="checkbox"]:checked + label > span {
  border: .5em solid #FF2805;
  animation: shrink-bounce 200ms cubic-bezier(.4, .0, .23, 1);
}


body.scuolacasearia .cookie-a {
  color: var(--light-black);
  border: 2px solid #0053a2;
  background-color: #0053a2;
  border-radius: 5px;
  transition: .3s;
}

body.scuolacasearia .cookie-a:hover {
  color: #0053a2;
  border: 2px solid #0053a2;
  background-color: transparent;
  border-radius: 5px;
  transition: .3s;
}

body.scuolacasearia input[type="checkbox"]:checked + label > span {
  border: .5em solid #0053a2;
  animation: shrink-bounce 200ms cubic-bezier(.4, .0, .23, 1);
}


body.thatguy .cookie-a {
  color: var(--light-black);
  border: 2px solid #0092e3;
  background-color: #0092e3;
  border-radius: 5px;
  transition: .3s;
}

body.thatguy .cookie-a:hover {
  color: #0092e3;
  border: 2px solid #0092e3;
  background-color: transparent;
  border-radius: 5px;
  transition: .3s;
}

body.thatguy input[type="checkbox"]:checked + label > span {
  border: .5em solid #0092e3;
  animation: shrink-bounce 200ms cubic-bezier(.4, .0, .23, 1);
}

/* --------------- MENU BTN ---------------- */

.hamburger {
  padding: 15px 15px;
  display: block;
  transition-property: opacity, filter;
  transition-duration: 0.15s;
  transition-timing-function: linear;
  font: inherit;
  color: inherit;
  text-transform: none;
  background-color: transparent;
  border: 0;
  margin: 0;
  overflow: visible;

  position: relative;
  z-index: 3000;
}

.hamburger-box {
  width: 30px;
  height: 16px;
  display: inline-block;
  position: relative;
  z-index: 3000;
}

.hamburger-inner {
  display: block;
  top: 50%;
  margin-top: -2px;
  position: relative;
  z-index: 3000;
}
.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
  width: 30px;
  height: 2px;
  position: absolute;
  transition-property: transform;
  transition-duration: 0.15s;
  transition-timing-function: ease;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  border-radius: 4px;
  z-index: 3000;
}
.hamburger-inner::before,
.hamburger-inner::after {
  content: "";
  display: block;
  z-index: 3000;
}
.hamburger-inner::before {
  top: -7px;
  z-index: 3000;
}
.hamburger-inner::after {
  bottom: -7px;
  z-index: 3000;
}
.hamburger {
  padding: 0px;
  height: 100%;
  display: table-cell;
  vertical-align: middle;
  z-index: 3000;
}
.hamburger-box {
  display: block;
  z-index: 3000;
}
.hamburger .hamburger-inner::before,
.hamburger .hamburger-inner::after,
.hamburger .hamburger-inner {
  background-color: #fff;
  width: 30px;
  z-index: 3000;
}

.hamburger:hover .hamburger-inner::before,
.hamburger:hover .hamburger-inner::after,
.hamburger:hover .hamburger-inner {
  background-color: #bbb;
  width: 30px;
}

/* Animation styles */
.hamburger--collapse-r .hamburger-inner {
  top: auto;
  bottom: 0;
  transition-duration: 0.13s;
  transition-delay: 0.13s;
  transition-timing-function: cubic-bezier(.55, .055, .675, .19);
  z-index: 3000;
}

.hamburger--collapse-r .hamburger-inner::after {
  top: -14px;
  transition: top .2s .2s cubic-bezier(.33333, .66667, .66667, 1), opacity .1s linear;
  z-index: 3000;
}

.hamburger--collapse-r .hamburger-inner::before {
  transition: top .12s .2s cubic-bezier(.33333, .66667, .66667, 1), transform .13s cubic-bezier(.55, .055, .675, .19);
  z-index: 3000;
}

.hamburger--collapse-r.is-active .hamburger-inner {
  transform: translate3d(0, -8px, 0) rotate(45deg);
  transition-delay: .22s;
  transition-timing-function: cubic-bezier(.215, .61, .355, 1);
  z-index: 3000;
}

.hamburger--collapse-r.is-active .hamburger-inner::after {
  top: 0;
  opacity: 0;
  transition: top .2s cubic-bezier(.33333, 0, .66667, .33333), opacity .1s .22s linear;
  z-index: 3000;
}

.hamburger--collapse-r.is-active .hamburger-inner::before {
  top: 0;
  transform: rotate(90deg);
  transition: top .1s .16s cubic-bezier(.33333, 0, .66667, .33333), transform .13s .25s cubic-bezier(.215, .61, .355, 1);
  z-index: 3000;
}

/* -----------------  NAVBAR ---------------- */

.overlay {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 1;
  top: 0;
  left: 0;
  background-color: rgb(0,0,0);
  overflow-x: hidden;
  transition: 0.5s;
  z-index: 2000;
}

.overlay-content {
  position: relative;
  top: 15%;
  width: fit-content;
  text-align: center;
  margin-top: 30px;
  margin: 0 auto;
}

.nav-link {
  padding: 4px;
  text-decoration: none;
  color: transparent;
  display: block;

  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  line-height: 66px;
  font-size: 72px;

  -webkit-text-stroke: 1px var(--white);

  transition: 0.3s;
}

@media screen and (max-width: 580px) {
  .nav-link {
    font-size: 48px;
    line-height: 40px;
    margin-top: 5px;
    margin-bottom: 5px;
  }

  .closebtn {
    font-size: 40px;
    top: 15px;
    right: 35px;
  }
}

.nav-link:hover, .nav-link:focus {
  color: #f1f1f1;
  transition: 0.3s;
}

.material-symbols-outlined {
  color: var(--white);
}

.material-symbols-outlined:hover, .material-symbols-outlined:focus {
  color: var(--light-gray);
  transition: 0.3s;
}

.closebtn {
  position: absolute;
  height: fit-content;
  width: fit-content;
  top: 20px;
  right: 30px;
  font-weight: 100;
  color: var(--white);

  padding: 4px;
  text-decoration: none;
  display: block;
  transition: 0.3s;

  font-family: 'Poppins', sans-serif;
  font-weight: 100;
  line-height: 52px;
  font-size: 52px;
}

.closebtn:hover, .closebtn:focus {
  color: var(--light-gray);
}

.nav-link {

  background:
    linear-gradient(
      to right,
      rgb(221, 221, 221),
      rgb(240, 240, 240)
    ),
    linear-gradient(
      to right,
      #f9004d,
      #ff2e70,
      #ff6294
  );
  background-size: 100% 3px, 0 3px;
  background-position: 100% 100%, 0 100%;
  background-repeat: no-repeat;
  transition: background-size 400ms;

  width: fit-content;
  margin-top: 20px;
  margin-bottom: 20px;
}

.nav-link:hover {
  background-size: 0 3px, 100% 3px;
}

@media screen and (max-height: 450px) {
  .nav-link {
    font-size: 36px;
    line-height: 30px;
    margin-top: 10px;
    margin-bottom: 10px;
  }

  .closebtn {
    font-size: 40px;
    top: 15px;
    right: 35px;
  }
}

.navbar {
  width: 100%;
  padding-top: 20px;
  padding-right: 25px;
  padding-left: 25px;
  padding-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  z-index: 2001;
  transition: 0.3s;
}

@media screen and (max-width: 600px) {
  .navbar {
    padding-top: 20px;
    padding-right: 20px;
    padding-left: 20px;
    padding-bottom: 20px;
  }
}

.navbar-background {
  background-color: #000000cc;
  box-shadow: 0px 7px 50px 20px #00000052;
  transition: 0.3s;
}

.logo-btn {
  height: 35px;
}

.logo-btn:hover {
  opacity: .6;
}

.logo-btn img {
  height: 35px;
}

.hamburger-container {
  height: 40px;
}

.hamburger-container a {
  height: 40px;
}



.portfolio-list {
  list-style: none;
  padding: 0;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  width: 500px;
  height: 130px; /* Altezza aumentata per separare le scritte verticalmente */
}

.portfolio-item p {
  position: absolute;
  top: 15px;
  right: 0px;
  transition: .4s;
}

.n-2 {
  left: 330px;
}

.n-3 {
  left: 270px;
}

.n-4 {
  left: 460px;
}

.portfolio-item:hover p {
  opacity: 0;
  font-size: 0;
}

.portfolio-title,
.portfolio-title-alt {
  font-size: 90px;
  font-weight: 400;
  text-transform: uppercase;
  font-family: "Poppins", sans-serif;
  position: absolute;
  top: 15px; /* Valore aumentato per spostare le scritte verso il basso */
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  transition: transform 0.4s;
}

.portfolio-title {
  z-index: 2;
  -webkit-text-stroke: 1px var(--white);
  color: transparent;
}

.portfolio-title-alt {
  color: var(--white);
}

.portfolio-title-alt {
  transform: translateY(90px);
}

.portfolio-item:hover .portfolio-title {
  transform: translateY(-100%);
}

.portfolio-item:hover .portfolio-title-alt {
  transform: translateY(0);
}

@media screen and (max-height: 670px) {
  
  .portfolio-item {
    height: 64px; /* Altezza aumentata per separare le scritte verticalmente */
  }

  .portfolio-item p {
    display: none;
  }

  .portfolio-title,
  .portfolio-title-alt {
    font-size: 46px;
    font-weight: 500;
  }

  .portfolio-title {
    -webkit-text-stroke: .5px var(--white);
  }

  .nav-link {
    font-size: 36px;
    line-height: 30px;
    margin-top: 10px;
    margin-bottom: 10px
  }

  .closebtn {
    font-size: 40px;
    top: 15px;
    right: 35px;
  }
}

@media screen and (max-width: 600px) {
  
  .portfolio-item {
    width: 300px;
    height: 64px; /* Altezza aumentata per separare le scritte verticalmente */
  }

  .portfolio-item p {
    display: none;
  }

  .portfolio-title,
  .portfolio-title-alt {
    font-size: 46px;
    font-weight: 500;
  }

  .portfolio-title {
    -webkit-text-stroke: .5px var(--white);
  }

  .nav-link {
    font-size: 42px;
    line-height: 30px;
    margin-top: 10px;
    margin-bottom: 10px;
  }

  .closebtn {
    font-size: 40px;
    top: 15px;
    right: 35px;
  }
}

/* -------------  CAROUSEL -------------- */

.carousel {
  margin-bottom: 0px;
}

.carousel-caption {
  margin-bottom: 20px;
  z-index: 10;
}

.carousel-item {
  height: 100vh;
}

.carousel-control-prev {
  justify-content: start;
  padding-left: 3.3%;
}

.carousel-control-next {
  justify-content: end;
  padding-right: 3.3%;
}

@media screen and (max-width: 600px) {
  .carousel-control-prev {
    padding-left: 5%;
  }
  
  .carousel-control-next {
    padding-right: 5%;
  }
}

.bg1 {
  background-image: url("../images/bg1.jpg");
  background-size: cover;
  background-position: center;
}

.bg2 {
  background-image: url("../images/bg2.jpg");
  background-size: cover;
  background-position: center;
}

.bg3 {
  background-image: url("../images/bg3.jpg");
  background-size: cover;
  background-position: center;
}

@media (min-width: 40em) {
  .carousel-caption p {
    margin-bottom: 1.25rem;
    font-size: 1.25rem;
    line-height: 1.4;
  }

  .featurette-heading {
    font-size: 50px;
  }
}

@media (min-width: 62em) {
  .featurette-heading {
    margin-top: 7rem;
  }
}

.btn-primary {
  background: linear-gradient(168deg, rgba(213,116,6,1) 0%, rgb(255, 160, 52) 100%);
  border: none;
}

.btn-primary:hover {
  padding: 10px 18px;
  transition: .3s;
}

.down-arrow {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 7%;
  z-index: 1000;
}

.scroll-button {
  position: relative;
  width: 40px;
  height: 70px;
  transition: .3s;
}

.oval {
  width: 40px;
  height: 70px;
  border-radius: 50px;
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #fff;
  overflow: hidden;
  transition: .3s;
}

.line-down {
  width: 2px;
  height: 35px;
  background-color: #fff;
}

.down-arrow:hover .line-down {
  animation: scrollAnimation 1.5s infinite;
  animation-delay: .5s;
}

.down-arrow:not(:hover) .oval {
  animation: UpDown 1s infinite;
  transition: .3s;
}

@keyframes UpDown {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}


.video-hero {
  height: 100vh;
  width: 100%;
  position: relative;
}

.video-hero video {
  height: 100%;
  width: 100%;
  object-fit: contain;
  position: absolute;

  z-index: 9;

  filter: brightness(25%);
}

.down-arrow-progetti .scroll-button {
  position: relative;
  width: 30px;
  height: 50px;
}

.down-arrow-progetti .oval {
  width: 30px;
  height: 50px;
  border-radius: 50px;
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #fff;
  overflow: hidden;
}

.down-arrow-progetti .line-down {
  width: 2px;
  height: 25px;
  background-color: #fff;
}

.down-arrow-progetti:not(:hover) .oval {
  animation: UpDown 1.2s infinite;
  transition: .3s;
}

@keyframes scrollAnimation {
  0%, 70%, 100% {
    transform: translateY(0);
    transition-timing-function: ease-out;
  }
  30% {
    transform: translateY(40px);
    transition-timing-function: ease-out;
  }
  40% {
    transform: translateY(-40px);
    transition-timing-function: ease-out;
  }
}

.video-hero .hero-title {
  width: 40vw;
  max-width: 650px;
  position: absolute;
  top: 50%;
  transform: translate(0, -50%);
  left: calc(50vw - 25px);
  z-index: 10;
}

.carousel-title {
  font-family: 'K2D', sans-serif;
  font-size: 48px;
  color: var(--white);

  text-shadow: 0px 0px 10px rgba(204, 204, 204, 0.15);

  z-index: 10;

  margin-bottom: 40px;
}

.hero-title p {
  color: var(--light-gray);
  font-size: 18px;
  font-weight: 300;
}

.underline--magical {
  font-family: 'K2D', sans-serif;
  font-size: 48px;
  color: var(--white);
  overflow: hidden;
  background-image: linear-gradient(120deg, #ff911a 0%, #ffa546 100%);
  background-repeat: no-repeat;
  background-size: 100% 0.2em;
  background-position: 0 88%;
  transition: background-size 0.25s ease-in;
  &:hover {
    background-size: 100% 88%;
  }
}

@media screen and (max-width: 1250px) {

  .video-hero .hero-title {
    max-width: 650px;
    width: 80vw;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
  }

  .carousel-title {
    font-family: 'K2D', sans-serif;
    font-size: 40px;
    color: var(--white);
    letter-spacing: -1%;
  }

  .underline--magical {
    font-family: 'K2D', sans-serif;
    font-size: 40px;
    color: var(--white);
    letter-spacing: -1%;
  }

  .video-hero {
    height: 60vh;
  }
}

@media screen and (max-width: 800px) {
  .carousel-title {
    font-family: 'K2D', sans-serif;
    font-size: 36px;
    margin-bottom: 25px;
    text-align: center;
  }

  .underline--magical {
    font-family: 'K2D', sans-serif;
    font-size: 36px;
    color: var(--white);
  }

  .carousel-item {
    height: 550px;
  }

  .video-hero {
    height: 550px;
  }

  .scroll-button {
    position: relative;
    width: 30px;
    height: 50px;
  }
  
  .oval {
    width: 30px;
    height: 50px;
    border-radius: 50px;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #fff;
    overflow: hidden;
  }
  
  .line-down {
    width: 2px;
    height: 25px;
    background-color: #fff;
  }
  
  .hero-title p {
    text-align: center;
  }
}


@media screen and (max-height: 800px) {
  .carousel-title {
    font-family: 'K2D', sans-serif;
    font-size: 40px;
  }

  .underline--magical {
    font-family: 'K2D', sans-serif;
    font-size: 40px;
    color: var(--white);
  }

  .scroll-button {
    position: relative;
    cursor: pointer;
    width: 30px;
    height: 50px;
  }
  
  .oval {
    width: 30px;
    height: 50px;
    border-radius: 50px;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #fff;
    overflow: hidden;
  }
  
  .line-down {
    width: 2px;
    height: 25px;
    background-color: #fff;
  }

}

@media screen and (max-width: 520px) {
  .carousel-title {
    font-family: 'K2D', sans-serif;
    font-size: 36px;
    text-align: center;
  }

  .underline--magical {
    font-family: 'K2D', sans-serif;
    font-size: 36px;
    color: var(--white);
  }

  .carousel-control-next {
    display: none;
  }

  .carousel-control-prev {
    display: none;
  }

  .video-hero {
    height: 450px;
  }

  .hero-title p {
    font-size: 16px;
  }
}

@media screen and (max-height: 520px) {
  .carousel-title {
    font-family: 'K2D', sans-serif;
    font-size: 36px;
  }

  .underline--magical {
    font-family: 'K2D', sans-serif;
    font-size: 36px;
    color: var(--white);
  }

  .carousel-item {
    height: 100vh;
  }

  .video-hero {
    height: 100vh;
  }

  .down-arrow{
    display: none;
  }
}


/* -------- LINGUA ----------- */

.lang-container {
  position: sticky;
  top: 40vh;
  z-index: 503;
}

.lang-container-inner {
  top: 15px;
  left: -75px;
  position: absolute;
  height: 45px;
  width: 130px;
  border-radius: 0 8px 8px 0;
  overflow: hidden;
  
  transition: left 0.5s, height 0.5s;
}

.lang-container-inner:hover {
  top: 15px;
  left: 0px;
  position: absolute;
  height: 135px;
  width: 130px;
  border-radius: 0 8px 8px 0;
  overflow: hidden;
  transition-delay: 0s, 0.2s;
}

.lang-yes {
  cursor: default;
}

.lang-yes div {
  color: var(--white);
}

.lang-yes,
.lang-not {
  position: absolute;
  height: 45px;
  width: 130px;
  display: flex;
  align-items: center;
  padding-left: 15px;
  background-color: #181818
}

.lang-yes a,
.lang-not a {
  height: fit-content;
  display: flex;
  align-items: center;
}

.lang-yes a div,
.lang-not a div {
  height: fit-content;
  width: 70px;

  transition: .2s;
}

.lang-yes a img,
.lang-not a img {
  height: 25px;
  border-radius: 3px;
  transition: .2s;
}

.lang-not div {
  color: var(--dark-gray);
  transition: .2s;
}

.lang-not:hover div {
  color: var(--white);
  transition: .2s;
}

.lang-not a img {
  filter: brightness(50%);
}

.lang-not:hover img {
  filter: brightness(100%);
  transition: .2s;
}

.lang-container div:nth-child(2) {
  top: 45px;
}

.lang-container div:nth-child(3) {
  top: 90px;
}

/* --------------  PORTFOLIO -------------- */

.portfolio {
  width: 100%;
  background-color: var(--light-black);
  padding: 80px 0;
}

.portfolio-container {
  display: flex;
  align-items: start;
  justify-content: space-between;
}

.portfolio-column {
  width: 45%;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

@media screen and (max-width: 768px) {
  .portfolio-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
  }

  .portfolio-column {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 40px;
  }

  .col1 {
    margin-bottom: 40px;
  }
}


.portfolio-column h2 {
  font-family: 'K2D', sans-serif;
  font-size: 40px;
  color: var(--white);
  letter-spacing: -1%;
  
  margin-bottom: 60px;
}

.portfolio-column h2 > span {
  font-size: 40px;
}

@media screen and (max-width: 800px) {
  .portfolio-column h2 {
    font-size: 36px;
    margin-bottom: 40px;
  }

  .portfolio-column h2 > span {
    font-size: 36px;
  }
  
}

@media screen and (max-height: 800px) {
  .portfolio-column h2 {
    font-size: 40px;
    margin-bottom: 40px;
  }
}

@media screen and (max-width: 520px) {
  .portfolio-column h2 {
    font-size: 36px;
    margin-bottom: 40px;
  }

  .portfolio-column h2 > span {
    font-size: 36px;
  }
}

@media screen and (max-height: 520px) {
  .portfolio-column h2 {
    font-size: 36px;
    margin-bottom: 40px;
  }

  .portfolio-column h2 > span {
    font-size: 36px;
  }
}

.project-img {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: clip;
  overflow-y: clip;
  border-radius: 5px;
  aspect-ratio: 1 / 1;
  position: relative;
  margin-bottom: 25px;
}

.project-img img {
  width: 100%;
  border-radius: 5px;
  transition: 0.8s;
  position: relative;
}

.project-img:hover img {
  transform: scale(1.2); 
  border-radius: 5px;
  transition: 0.8s;
}

/* .project-img::before {
  content: "";
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
  border-radius: 5px;
  background-color: #1818188a;
  position: absolute;
  opacity: 1;
  transition: .5s;
  border: 2px solid #ff901a75;
}

.project-img:hover::before {
  opacity: 0;
  transition: .5s;
} */

@media (hover: none) {

  /* .project-img::before {
    opacity: 0;
  } */
  
}

.project-title {
  font-family: 'K2D', sans-serif;
  padding-left: 20px;
  position: relative;
  display: inline-block;
  font-size: 32px;
  line-height: 40px;
  color: var(--light-gray);
  overflow: hidden;
  background: linear-gradient(to right, var(--orange), #ffa546  50%, var(--light-gray) 50%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 100%;
  background-position: 100%;
  transition: background-position 275ms ease;
  text-decoration: none;
}

.project-title:hover {
  background-position: 0 100%;
}

.project-subtitle {
  color: var(--dark-gray);
  font-size: 18px;
  padding-left: 20px;
  margin-top: 8px;
  margin-bottom: 0;
  font-weight: 400;
}

@media screen and (max-width: 800px) {
  
  .project-title {
    font-size: 24px;
    line-height: 30px;
  }

  .project-subtitle {
    font-size: 16px;
  }
}

@media screen and (max-height: 520px) {
  .project-title {
    font-size: 22px;
    line-height: 26px;
  }

  .project-subtitle {
    font-size: 14px;
  }
}

/* -----------------  DESC ------------------ */

.desc-box h2 {
  font-family: 'K2D', sans-serif;
  font-size: 40px;
  color: var(--white);
  letter-spacing: -1%;
  
  margin-bottom: 15px;
}

.desc-box h2 > span {
  font-size: 40px;
  color: var(--white);
}

@media screen and (max-width: 800px) {
  .desc-box h2 {
    font-size: 36px;
  }

  .desc-box h2 > span {
    font-size: 36px;
  }
  
}

@media screen and (max-height: 800px) {
  .desc-box h2 {
    font-size: 40px;
  }
}

@media screen and (max-width: 520px) {
  .desc-box h2 {
    font-size: 36px;
  }

  .desc-box h2 > span {
    font-size: 36px;
  }
}

@media screen and (max-height: 520px) {
  .desc-box h2 {
    font-size: 36px;
  }

  .desc-box h2 > span {
    font-size: 36px;
  }
}

.desc-box {
  width: 50%;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.desc-box p {
  font-size: 18px;
  margin: 0;
  color: var(--dark-gray);
}

.desc-box span {
  font-size: 18px;
  margin: 0;
  color: var(--dark-gray);
}

.desc-box div {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.desc-btn {
  padding: 10px 16px;
  cursor: pointer;
  position: relative;
}

.b1 {
  color: var(--white);
  border: 2px solid var(--orange);
  border-radius: 5px;
  transition: .5s;
}

.b1:hover {
  color: var(--white);
  border: 2px solid var(--orange);
  background-color: var(--orange);
  border-radius: 5px;
  transition: .5s;
}

.b2 {
  color: var(--white);
  border: 2px solid var(--light-gray);
  border-radius: 5px;
  transition: .5s;
}

.b2:hover {
  color: var(--light-black);
  border: 2px solid var(--light-gray);
  background-color: var(--light-gray);
  border-radius: 5px;
  transition: .5s;
}

@media screen and (max-width: 1050px) {
  .desc-box {
    width: 70%;
  }
}

@media screen and (max-width: 800px) {
  .desc-box {
    width: 100%;
  }
}

@media screen and (max-width: 520px) {
  .desc-box {
    width: 100%;
  }

  .desc-box p {
    font-size: 16px;
  }

  .desc-box p span {
    font-size: 16px;
  }
}


/* --------------- MODAL ----------------- */

.modal-container {
  width: 100%;
  height: 100%;
  position: fixed;
  background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent background */
  backdrop-filter: blur(4px); /* Apply a blur effect */
  -webkit-backdrop-filter: blur(4px); /* For Safari */
  top: 0;
  left: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
}

.modal {
  height: fit-content; 
  width: 85%;
  max-width: 800px;
  max-height: 75vh;
  background-color: #fcfcfc;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  position: relative;
  border-radius: 5px;
  padding: 30px;
  overflow-y: auto;
  animation: slideInDown;
  animation-duration: 0.5s;
  z-index: 100000000;
}

.down-close {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 40px;
  font-weight: 300;
  line-height: 21.5px;
  color: var(--dark-gray);
  transition: .3s;
}

.down-close:hover {
  color: var(--light-black);
  transition: .3s;
}

.modal h3 {
  font-family: 'K2D', sans-serif;
  font-size: 36px;
  color: var(--light-black);
  margin-bottom: 15px;
  position: relative;
}

.modal > p {
  text-align: center;
  font-size: 16px;
  color: var(--dark-gray);
  margin-bottom: 20px;
  width: 90%;
  position: relative;
}


.linea-orizz {
  height: 1px;
  width: 80%;
  background-color: var(--light-gray);
  margin-top: 10px;
  margin-bottom: 25px;
  position: relative;
}

.download-grid {
  height: fit-content;
  width: 90%;
  display: grid; 
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  column-gap: 30px;
  row-gap: 30px;
  position: relative;

  flex: 1;
  overflow-y: auto;

  padding: 0 25px;
}

.download-element {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background-color: var(--white);
  border-radius: 5px;
  padding: 15px;
  position: relative;

  border: 1px solid var(--light-gray);
}

.download-element img {
  width: 70px;
  margin-bottom: 10px;
}

.download-element h4 {
  font-size: 16px;
  text-align: center;
  margin-bottom: 15px;
  color: var(--light-black);
}

.down-button {
  font-size: 18px;
  text-align: center;
  padding: 5px 16px;
  width: 100%;

  color: var(--white);
  border: 2px solid var(--orange);
  background-color: var(--orange);
  border-radius: 5px;
  transition: .3s;

  margin-top: auto;
}

.down-button.disabled {
  color: var(--white);
  border: 2px solid var(--dark-gray);
  background-color: var(--dark-gray);
  border-radius: 5px;
  transition: .3s;
}

.down-button.disabled:hover {
  color: var(--light-black);
  border: 2px solid var(--dark-gray);
  background-color: transparent;
  border-radius: 5px;
  transition: .3s;
}

.down-button:hover {
  color: var(--light-black);
  border: 2px solid var(--orange);
  background-color: transparent;
  border-radius: 5px;
  transition: .3s;
}

.flag-container {
  font-size: 24px;
  height: fit-content;
  display: flex;
  align-items: center;
  position: relative;
  max-width: 80%;
}

.flag-container label {
  cursor: none;
}

.flag-desc {
  font-size: 14px;
  margin: 0;
}

.flag-desc > a {
  color: #8b8b8b;
  text-decoration: underline;
}

@media screen and (max-width: 520px) {
  
  .modal h3 {
    font-size: 28px;
    margin-bottom: 10px;
    position: relative;
  }

  .modal > p {
    font-size: 14px;
    margin-bottom: 20px;
    width: 95%;
    margin-bottom: 15px;
  }
  
  .flag-desc {
    font-size: 12px;
    margin: 0;
  }
  
  .download-element img {
    width: 40px;
    margin-bottom: 15px;
  }
  
  .download-element h4 {
    font-size: 14px;
    margin-bottom: 15px;
  }
  
  .down-button {
    font-size: 16px;
    padding: 3px 12px;
  }
  
}

@media screen and (max-height: 520px) {
  
  .modal h3 {
    font-size: 28px;
    margin-bottom: 5px;
    position: relative;
  }

  .modal > p {
    font-size: 14px;
    margin-bottom: 20px;
    width: 95%;
    margin-bottom: 0px;

    display: none;
  }
  
  .flag-desc {
    font-size: 12px;
    margin: 0;
  }
  
  .download-element img {
    width: 40px;
    margin-bottom: 15px;
  }
  
  .download-element h4 {
    font-size: 14px;
    margin-bottom: 15px;
  }
  
  .down-button {
    font-size: 16px;
    padding: 3px 12px;
  }
  
  .linea-orizz {
    height: 1px;
    width: 80%;
    background-color: var(--light-gray);
    margin-top: 5px;
    margin-bottom: 15px;
    position: relative;
  }
}

/* Corrected Custom Checkbox Styles */
input[type='checkbox'] { height: 0; width: 0; display: none;}

input[type='checkbox'] + label {
  position: relative;
  display: flex;
  margin: .6em 0;
  align-items: center;
  color: #9e9e9e;
  transition: color 250ms cubic-bezier(.4, .0, .23, 1);
}

input[type='checkbox'] + label > ins {
  position: absolute;
  display: block;
  bottom: 0;
  left: 2em;
  height: 0;
  width: 100%;
  overflow: hidden;
  text-decoration: none;
  transition: height 300ms cubic-bezier(.4, .0, .23, 1);
}

input[type='checkbox'] + label > ins > i {
  position: absolute;
  bottom: 0;
  font-style: normal;
  color: #4FC3F7;
}

input[type='checkbox'] + label > span {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 0.6em;
  width: 1em;
  height: 1em;
  background: transparent;
  border: 2px solid #9E9E9E;
  border-radius: 2px;
  transition: all 250ms cubic-bezier(.4, .0, .23, 1);
}

input[type='checkbox'] + label:hover, input[type='checkbox']:focus + label {
  color: #fff;
}

input[type='checkbox'] + label:hover > span, input[type='checkbox']:focus + label > span {
  background: rgba(255, 255, 255, .1);
}

input[type='checkbox']:checked + label > ins { height: 100%; }

input[type='checkbox']:disabled + label > ins { height: 100%; }

input[type='checkbox']:checked + label > span {
  border: .5em solid var(--orange);
  animation: shrink-bounce 200ms cubic-bezier(.4, .0, .23, 1);
}

input[type='checkbox']:disabled + label > span:hover {
  border: 2px solid #9E9E9E;
}

input[type='checkbox']:checked + label > span:before {
  content: "";
  position: absolute;
  top: .6em; /* Center vertically */
  left: .45em;
  border-right: 0.156rem solid transparent;
  border-bottom: 0.156rem solid transparent;
  transform: translateY(-50%) rotate(45deg); /* Adjust positioning */
  transform-origin: 0% 50%; /* Adjust rotation origin */
  animation: checkbox-check 125ms 250ms cubic-bezier(.4, .0, .23, 1) forwards;
}


@keyframes shrink-bounce {
  0% {
    transform: scale(1);
  }
  33% {
    transform: scale(.85);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes checkbox-check {
  0% {
    width: 0;
    height: 0;
    border-color: #fafafa;
    transform: translate3d(0, 0, 0) rotate(45deg);
  }
  33% {
    width: .2em;
    height: 0;
    transform: translate3d(0, 0, 0) rotate(45deg);
  }
  100% {
    width: .2em;
    height: .5em;
    border-color: #fafafa;
    transform: translate3d(0, -.5em, 0) rotate(45deg);
  }
}


/* --------------  SERVIZI --------------- */

.servizi {
  background-color: var(--light-black);
  padding: 80px 0;
}

.servizi-box {
  width: 70%;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

@media screen and (max-width: 1050px) {
  .servizi-box {
    width: 80%;
  }
}

@media screen and (max-width: 800px) {
  .servizi-box {
    width: 100%;
  }
}

.servizi-box h2 {
  font-family: 'K2D', sans-serif;
  font-size: 40px;
  color: var(--white);
  letter-spacing: -1%;
  
  margin-bottom: 80px;
}

.servizi-box h2 > span {
  font-size: 40px;
}

@media screen and (max-width: 800px) {
  .servizi-box h2 {
    font-size: 36px;
  }

  .servizi-box h2 > span {
    font-size: 36px;
  }
}

@media screen and (max-height: 800px) {
  .servizi-box h2 {
    font-size: 40px;
  }

  .servizi-box h2 > span {
    font-size: 40px;
  }
}


@media screen and (max-width: 520px) {
  .servizi-box h2 {
    font-size: 36px;
    margin-bottom: 40px;
  }

  .servizi-box h2 > span {
    font-size: 36px;
  }
}

@media screen and (max-height: 520px) {
  .servizi-box h2 {
    font-size: 36px;
    margin-bottom: 40px;
  }

  .servizi-box h2 > span {
    font-size: 36px;
  }
}

.servizi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  row-gap: 60px;
}

@media screen and (max-width: 768px) {
  .servizi-desc {
    width: 100%;
    height: fit-content;
  }
}

.servizi-desc h3 {
  font-family: 'K2D', sans-serif;
  font-size: 30px;
  margin-bottom: 30px;
}

.servizi-desc > div {
  display: flex;
  width: fit-content;
  align-items: center;
  transition: .3s;
  margin-bottom: 15px;
}

.servizi-desc div p {
  margin-left: 8px;
  margin-bottom: 0;
  font-size: 18px;
  font-weight: 400;
  line-height: 18px;
  color: var(--dark-gray);
}

.vert {
  height: 9px;
  width: 1px;
  background-color: var(--dark-gray);
  position: relative;
  left: 5px;
  transition: transform .3s;
}

.orizz {
  height: 1px;
  width: 9px;
  background-color: var(--dark-gray);
}


@media screen and (max-width: 520px) {
  .servizi-desc h3 {
    font-size: 22px;
    margin-bottom: 20px;
  }

  .servizi-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    row-gap: 60px;
  }

  .servizi-desc {
    width: 100%;
    height: fit-content;
  }
}

.s:hover {
  padding-left: 15px;
  transition: .3s;
}

.s:hover > .vert {
  transform: rotate(-90deg);
}

/* -----------------  SKILLS ------------------ */

.skills {
  width: 70%;
  margin: 0 auto;
}

@media screen and (max-width: 1050px) {
  .skills {
    width: 80%;
  }
}

@media screen and (max-width: 800px) {
  .skills {
    width: 100%;
  }
}

.skills h2 {
  font-family: 'K2D', sans-serif;
  font-size: 40px;
  color: var(--white);
  letter-spacing: -1%;
  
  text-align: center;
  margin-bottom: 80px;
}

.skills h2 > span {
  font-size: 40px;
}

@media screen and (max-width: 800px) {
  .skills h2 {
    font-size: 36px;
  }

  .skills h2 > span {
    font-size: 36px;
  }
}

@media screen and (max-height: 800px) {
  .skills h2 {
    font-size: 40px;
  }

  .skills h2 > span {
    font-size: 40px;
  }
}

@media screen and (max-width: 520px) {
  .skills h2 {
    font-size: 36px;
    margin-bottom: 40px;
  }

  .skills h2 > span {
    font-size: 36px;
  }
}

@media screen and (max-height: 520px) {
  .skills h2 {
    font-size: 36px;
    margin-bottom: 40px;
  }

  .skills h2 > span {
    font-size: 36px;
  }
}

.skill-desc {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.skill-desc h3 {
  font-family: 'K2D', sans-serif;
  font-size: 24px;
  color: var(--light-gray);  
  margin: 0;
  padding-left: 20px;
}

@media screen and (max-width: 520px) {
  
  .skill-desc h3 {
    font-size: 20px;
    line-height: 20px;
    margin-bottom: 3px;
  }
}

@media screen and (max-height: 520px) {
  
  .skill-desc h3 {
    font-size: 20px;
    line-height: 20px;
    margin-bottom: 3px;
  }
}

.numero {
  font-size: 36px;
  color: var(--dark-gray);
  padding-right: 20px;
  padding-left: 10px;
}

.barra {
  height: 42px;
  width: 2px;
  background-color: #1d1d1d;
}

.skillbar {
	position:relative;
	display:block;
	margin-bottom:25px;
	width:100%;
	background: var(--light-black);
	height:3px;
	border-radius:3px;
	-moz-border-radius:3px;
	-webkit-border-radius:3px;
	-webkit-transition:0.4s linear;
	-moz-transition:0.4s linear;
	-ms-transition:0.4s linear;
	-o-transition:0.4s linear;
	transition:0.4s linear;
	-webkit-transition-property:width, background-color;
	-moz-transition-property:width, background-color;
	-ms-transition-property:width, background-color;
	-o-transition-property:width, background-color;
	transition-property:width, background-color;
}

.skillbar-bar {
	height:11px;
	width:0px;
  position: relative;
  top: -4px;
	background:#6adcfa;
	border-radius:10px;
	-moz-border-radius:10px;
	-webkit-border-radius:10px;
}

@media screen and (max-width: 520px) {
  
  .numero {
    font-size: 26px;
    line-height: 26px;
  }
}

@media screen and (max-height: 520px) {
  
  .numero {
    font-size: 26px;
    line-height: 26px;
  }
}

/* -------------- 360 VIEWER -------------- */

#panorama {
  width: 100%;
  height: 500px;
  position: relative;
}

.panorama-cover {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: #000000b0;
  z-index: 500;
  opacity: 1;
  transition: opacity 0.3s ease, visibility 0.3s ease; /* Transition opacity and visibility */
  transition-delay: 0.5s;

  display: flex;
  align-items: center;
  justify-content: center;
}

.panorama-cover h4 {
  width: 60%;
  max-width: 300px;
  font-size: 16px;
  font-weight: 400;
  text-align: center;
  margin: 0;
}

#panorama:hover .panorama-cover {
  opacity: 0;
  visibility: hidden; /* Hide the element while keeping its position */
  transition-delay: 0.8s; /* Reset the transition delay on hover */
}

.normal {
  display: block;
}

.mobile {
  display: none;
}

@media screen and (max-width: 768px) {
  #panorama {
    width: 100%;
    height: 350px;
    position: relative;
  }
  
  .panorama-cover {
    position: absolute;
    width: 100%;
    height: 350px;
    background-color: #000000b0;
    z-index: 500;
    opacity: 1;
    transition: opacity 0.3s ease, visibility 0.3s ease; /* Transition opacity and visibility */
    transition-delay: 0.5s;
  
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
}

@media screen and (max-height: 600px) {
  #panorama {
    width: 100%;
    height: 300px;
    position: relative;
  }
  
  .panorama-cover {
    position: absolute;
    width: 100%;
    height: 300px;
    background-color: #000000b0;
    z-index: 500;
    opacity: 1;
    transition: opacity 0.3s ease, visibility 0.3s ease; /* Transition opacity and visibility */
    transition-delay: 0.5s;
  
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  #panorama:hover .panorama-cover {
    opacity: 0;
    visibility: hidden; /* Hide the element while keeping its position */
    transition-delay: 0.8s; /* Reset the transition delay on hover */
  }
}

@media (hover: none) {
  .mobile {
    display: block;
  }

  .normal {
    display: none;
  }

  .panorama-cover {
    transition: opacity 0.3s ease, visibility 0.3s ease; /* Transition opacity and visibility */
    transition-delay: 0s;
  }

  #panorama:hover .panorama-cover {
    opacity: 0;
    visibility: hidden; /* Hide the element while keeping its position */
    transition-delay: 0s; /* Reset the transition delay on hover */
  }
}

/* ----------------- COUNTER ------------------ */

.container-counters {
  display: flex;
  justify-content: space-between;
}

.counter {
  width: 30%;
}

.counter-text-sub {
  height: fit-content;
  display: flex;
  
}

.num {
  font-family: 'K2D', sans-serif;
  font-size: 90px;
  line-height: 90px;
}

.apice {
  font-family: 'K2D', sans-serif;
  font-size: 40px;
  height: 100%;
  display: flex;
  align-items: start;

  margin-left: 5px;
}

.apice div {
  height: 50px;
  line-height: 40px;
}

.counter-desc {
  font-size: 24px;
  line-height: 28px;
  margin-top: 10px;
  color: var(--dark-gray);
}

@media screen and (max-width: 1350px) {
  .num {
    font-size: 70px;
    line-height: 70px;
  }
}

@media screen and (max-width: 1200px) {
  .container-counters {
    display: flex;
    flex-direction: column;
    gap: 40px;
  }

  .counter {
    width: 100%;
  }
}

@media screen and (max-width: 800px) {
  .num {
    font-size: 50px;
    line-height: 50px;
  }

  .apice {
    font-family: 'K2D', sans-serif;
    font-size: 30px;
    height: 100%;
    display: flex;
    align-items: start;
  
    margin-left: 5px;
  }
  
  .apice div {
    height: 30px;
    line-height: 15px;
  }

  .counter-desc {
    font-size: 18px;
    line-height: 18px;
    margin-top: 15px;
    color: var(--dark-gray);
  }
}

@media screen and (max-height: 800px) {
  .num {
    font-size: 50px;
    line-height: 50px;
  }

  .apice {
    font-family: 'K2D', sans-serif;
    font-size: 30px;
    height: 100%;
    display: flex;
    align-items: start;
  
    margin-left: 5px;
  }
  
  .apice div {
    height: 30px;
    line-height: 15px;
  }

  .counter-desc {
    font-size: 18px;
    line-height: 18px;
    margin-top: 15px;
    color: var(--dark-gray);
  }
}

/* ----------------- CONTATTI ------------------ */

.container-contatti {
  display: flex;
}

.contatti-desc {
  width: 50%;
}

.contatti-desc h2 {
  font-family: 'K2D', sans-serif;
  font-size: 40px;
  color: var(--white);
  letter-spacing: -1%;
  width: 95%;
  
  margin-bottom: 80px;
}

.contatti-desc h2 > span {
  font-size: 40px;
}

@media screen and (max-width: 800px) {
  .contatti-desc h2 {
    font-size: 36px;
  }

  .contatti-desc h2 > span {
    font-size: 36px;
  }
}

@media screen and (max-height: 800px) {
  .contatti-desc h2 {
    font-size: 40px;
  }

  .contatti-desc h2 > span {
    font-size: 40px;
  }
}

@media screen and (max-width: 520px) {
  .contatti-desc h2 {
    font-size: 36px;
    margin-bottom: 40px;
  }

  .contatti-desc h2 > span {
    font-size: 36px;
  }
}

@media screen and (max-height: 520px) {
  .contatti-desc h2 {
    font-size: 36px;
    margin-bottom: 40px;
  }

  .contatti-desc h2 > span {
    font-size: 36px;
  }
}

.contatti-tipo {
  font-size: 18px;
  color: var(--dark-gray);
  margin-bottom: 5px;
}

.contatto-info {
  font-family: 'K2D', sans-serif;
  font-size: 30px;
  color: var(--light-gray);
  margin-bottom: 30px;

  display: inline-block;
  position: relative;
  text-decoration: none !important;
}

.contatto-info:after {    
  background: none repeat scroll 0 0 transparent;
  bottom: 0;
  content: "";
  display: block;
  height: 2px;
  left: 50%;
  position: absolute;
  background: var(--light-gray);
  transition: width 0.3s ease 0s, left 0.3s ease 0s;
  width: 0;
}
.contatto-info:hover:after { 
  width: 100%; 
  left: 0; 
}

@media screen and (max-width: 800px) {
  .contatto-info {
    font-size: 24px;
    margin-bottom: 30px;
  }
}

@media screen and (max-height: 800px) {
  .contatto-info {
    font-size: 24px;
    margin-bottom: 30px;
  }
}

@media screen and (max-width: 520px) {
  .contatto-info {
    font-size: 20px;
    margin-bottom: 30px;
  }
}

@media screen and (max-height: 520px) {
  .contatto-info {
    font-size: 20px;
    margin-bottom: 30px;
  }
}

.form-contatti {
  padding: 10px;
}

.form-container {
  width: 50%;
}

@media screen and (max-width: 1150px) {
  .container-contatti {
    display: flex;
    flex-direction: column;
    gap: 40px;
  }

  .contatti-desc {
    width: 100%;
  }

  .form-container {
    width: 100%;
  }
  
  .form-contatti {
    padding: 0px;
  }
}

.send-message {
  margin-bottom: 30px;
  font-weight: 600;
}

form {
  display: flex;
  flex-direction: column;
  font-weight: 300;
}

.input-field,
.input-textarea {
  font-family: 'Rubik', sans-serif;
  background-color: var(--white);
  color: var(--dark-gray);
  font-size: 18px;
  font-weight: 400;
  padding: 16px 16px;
  border: 1px solid var(--dark-gray);
  border-radius: 5px;
  width: 100%;
  margin-bottom: 30px;
}

.input-textarea {
  height: 150px;
}

.input-field:focus,
.input-textarea:focus {
  outline: none;
  background-color: #ebebeb;
  box-shadow: 0px 0px 7px #38383831;
}

.input-field:-webkit-autofill,
.input-field:-webkit-autofill:hover,
.input-field:-webkit-autofill:focus,
.input-field:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 50px var(--white) inset;
  -webkit-text-fill-color: var(--dark-gray);
}

::placeholder {
  color: #9fa7a7;
  font-size: 18px;
  font-weight: 300;
  opacity: 1;
  font-family: 'Rubik', sans-serif;
}

.full-name {
  display: flex;
  justify-content: space-between;
}

.nome {
  margin-right: 5px;
}

.cognome {
  margin-left: 5px;
}

.button-form {
  background-color: transparent;
  padding: 10px 16px;
  color: var(--white);
  border: 2px solid var(--orange);
  font-size: 16px;
  font-weight: 400;
  border-radius: 5px;
  width: fit-content;
  align-self: left;
  text-decoration: none;
  transition: .3s;
  margin-top: 20px;
}

.button-form:hover {
  color: var(--white);
  border: 2px solid var(--orange);
  background-color: var(--orange);
  border-radius: 5px;
  transition: .3s;
}

.form-privacy {
  font-size: 14px;
  color: var(--dark-gray);
  margin-bottom: 0;
}

.form-privacy-doc {
  color: var(--light-gray);
  text-decoration: underline;
}

/* ----------------- SOCIAL ------------------ */

.social {
  background-color: var(--light-black);
}

.container-social {
  height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.container-social h2 {
  font-family: 'K2D', sans-serif;
  font-size: 40px;
  color: var(--light-gray);
  letter-spacing: -1%;
  text-align: center;
  
  margin-bottom: 50px;
}

.container-social h2 > span {
  font-size: 40px;
}

@media screen and (max-width: 800px) {
  .container-social h2 {
    font-size: 36px;
  }

  .container-social {
    height: 400px;
  }

  .container-social h2 > span {
    font-size: 36px;
  }
}

@media screen and (max-height: 800px) {
  .container-social h2 {
    font-size: 40px;
  }

  .container-social h2 > span {
    font-size: 40px;
  }

  .container-social {
    height: 400px;
  }
}


@media screen and (max-width: 520px) {
  .container-social h2 {
    font-size: 28px;
    margin-bottom: 40px;
  }

  .container-social h2 > span {
    font-size: 28px;
  }

  .container-social {
    height: 350px;
  }
}

@media screen and (max-height: 520px) {
  .container-social h2 {
    font-size: 28px;
    margin-bottom: 40px;
  }

  .container-social h2 {
    font-size: 28px;
    margin-bottom: 40px;
  }

  .container-social {
    height: 350px;
  }
}

.container-social img {
  height: 30px;
  width: 30px;
}

ul {
  padding: 0;
}

.ul-social {
  display: flex;
  justify-content: center;

  margin: 0;
}

ul li {
  list-style: none;
}

.ul-social li a {
  width: 70px;
  height: 70px;
  background-color: none;
  text-align: center;
  line-height: 80px;
  font-size: 35px;
  margin: 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  border: 2px solid #1d1d1d;
  z-index: 1;
}

.ul-social li a img {
  position: relative;
  color: #fff;
  transition: .5s;
  z-index: 3;
}

.ul-social li a:hover img {
  color: #fff;
  transform: rotateY(360deg);
}

.ul-social li a:before {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: #f00;
  transition: .5s;
  z-index: 2;
}

.ul-social li a:hover:before {
  top: 0;
}

/*

.ul-social li:nth-child(1) a:before{
  background: #3b5999;
}

.ul-social li:nth-child(2) a:before{
  background: #C13584;
}

*/

.ul-social li a:before{
  background: #ff911a;
}

@media screen and (max-width: 520px) {
  .container-social img {
    height: 25px;
    width: 25px;
  }

  .ul-social li a {
    width: 60px;
    height: 60px;
  }
}

@media screen and (max-height: 520px) {
  .container-social img {
    height: 25px;
    width: 25px;
  }

  .ul-social li a {
    width: 60px;
    height: 60px;
  }
}


/* ----------------- FOOTER ------------------ */

footer {
  height: 200px;
  background-color: var(--black);
  color: var(--dark-gray);
  position: relative;
}

.footer-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 200px;
}

.copyright {
  font-size: 18px;
  color: var(--light-gray);
  margin-bottom: 15px;
}

.copyright .anno {
  font-size: 18px;
  color: var(--dark-gray);
  font-weight: 300;
}

footer .line {
  width: 100%;
  height: 1px;
  background-color: #242424;
  margin-bottom: 15px;
  max-width: 500px;
}

footer .policies {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  column-gap: 15px;
  row-gap: 5px;
  height: fit-content;
  font-size: 14px;
}

footer .policies a {
  color: var(--dark-gray);
  font-size: 14px;
  text-decoration: underline;
  white-space: nowrap;
  transition: .3s;
}

.marchetta {
  font-size: 16px;
  color: #414141;
  text-align: center;
}

.marchetta a {
  font-size: 16px;
  color: #414141;
  text-align: center;
  text-decoration: underline;
}

@media screen and (max-width: 520px) {
  .copyright {
    font-size: 16px;
  }

  .copyright .anno {
    font-size: 16px;
    color: var(--dark-gray);
  }

  footer .policies {
    flex-direction: column;
  }

  .marchetta {
    font-size: 14px;
  }
  
  .marchetta a {
    font-size: 14px;
  }
}

@media screen and (max-height: 520px) {
  .copyright {
    font-size: 16px;
  }

  .copyright .anno {
    font-size: 16px;
    color: var(--dark-gray);
  }

  footer .policies {
    flex-direction: column;
  }

  .marchetta {
    font-size: 14px;
  }
  
  .marchetta a {
    font-size: 14px;
  }
}

/* -------------- SCROLL UP --------------- */

.scrollup {
  position: fixed;
  right: 3.3%;
  bottom: -20%;
  background-color: var(--orange);
  opacity: .8;
  padding: 8px;
  border-radius: 5px;
  z-index: 1000;
  transition: .3s;
  height: 32px;
  width: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scrollup:hover {
  opacity: .6;
}

.scrollup img {
  height: 15px;
  height: 15px;
}

@media screen and (max-width: 600px) {
  
  .scrollup {
    right: 5.3%;
  }
}

/* Show scroll */

.show-scroll {
  bottom: 80px;
}

/* ----------------- THANKS ---------------- */

.grazie-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 150px;
  width: 80%;
}

.grazie-text {
  font-family: 'K2D', sans-serif;
  font-size: 60px;
  line-height: 1.2;
  color: var(--white);
  letter-spacing: -1%;
  font-weight: 500;
  margin-bottom: 25px;
  text-align: center;
}

.if-return {
  color: var(--light-gray);
  margin-bottom: 40px;
  font-size: 20px;
  text-align: center;
}

@media (max-width: 800px) {

  .grazie-text {
    font-size: 40px;
  }
  
  .if-return {
    font-size: 18px;
  }
}

.return {
  background-color: transparent;
  padding: 10px 16px;
  color: var(--white);
  border: 2px solid var(--orange);
  font-size: 16px;
  font-weight: 400;
  border-radius: 5px;
  width: fit-content;
  align-self: left;
  text-decoration: none;
  transition: .3s;
  display: block;
}

.return:hover {
  color: var(--white);
  border: 2px solid var(--orange);
  background-color: var(--orange);
  border-radius: 5px;
  transition: .3s;
}

/* ---------- ERROR 404 --------- */

.error404-body {
  background-color: var(--white);
}

.inverted {
  filter: invert();
}

.error404-full {
  min-height: 100vh;
  background-color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: column;
  gap: 50px;
  background-image: radial-gradient(circle, #0000001e 2px, transparent 1px);
  background-size: 30px 30px;
  background-position: 0 0;
}

.error404-text {
  width: 80%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  margin-top: 150px;
}

.error404-text h1 {
  font-family: 'K2D', sans-serif;
  font-size: 60px;
  color: var(--black);
  letter-spacing: -1%;
  font-weight: 500;
  margin-bottom: 25px;
  text-align: center;
}

.error404-text p {
  color: var(--light-black);
  margin-bottom: 10px;
  font-size: 20px;
  text-align: center;
}

@media (max-width: 800px) {

  .error404-text h1 {
    font-size: 40px;
  }
  
  .error404-text p {
    font-size: 18px;
  }
}

.error404-btn {
  background-color: transparent;
  padding: 10px 16px;
  color: var(--light-black);
  border: 2px solid var(--orange);
  font-size: 16px;
  font-weight: 400;
  border-radius: 5px;
  width: fit-content;
  align-self: left;
  text-decoration: none;
  transition: .3s;
  display: block;
  margin-top: 30px;
}

.error404-btn:hover {
  color: var(--light-black);
  border: 2px solid var(--orange);
  background-color: var(--orange);
  border-radius: 5px;
  transition: .3s;
}

.error404-images {
  height: 400px;
  width: 100%;
  display: flex;
  justify-content: space-around;
}

.pencil-ruler {
  width: 600px;
  position: relative;
  overflow: hidden;
}

.pencil-ruler .penna {
  position: absolute;
  top: 70%;
  left: 60%;
  transform: translate(-60%, -30%) rotate(-10deg);
  width: 400px;
  z-index: 10;
}

.pencil-ruler .righello {
  position: absolute;
  top: 80%;
  left: 20%;
  transform: translate(-20%, -80%) rotate(-60deg);
  width: 400px;
}

.sketch {
  width: 600px;
  position: relative;
}

.sketch div {
  height: fit-content;
  width: 80%;
  max-width: 450px;
  position: relative;
  transform: rotate(10deg);
}

.sketch .sketch-404 {
  width: 100%;
}

.sketch .griglia {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: none;
}

.sketch .quadrato {
  width: 10px;
  display: none;
}

.sketch .quadrato-1 {
  position: absolute;
  top: -5px;
  left: -5px;
  transform: rotate(-10deg);
}

.sketch .quadrato-2 {
  position: absolute;
  top: -5px;
  right: -5px;
  transform: rotate(-10deg);
}

.sketch .quadrato-3 {
  position: absolute;
  bottom: -5px;
  right: -5px;
  transform: rotate(-10deg);
}

.sketch .quadrato-4 {
  position: absolute;
  bottom: -5px;
  left: -5px;
  transform: rotate(-10deg);
}

.sketch .quadrato-5 {
  position: absolute;
  top: 50%;
  left: -5px;
  transform: translateY(-50%) rotate(-10deg);
}

.sketch .quadrato-6 {
  position: absolute;
  top: 50%;
  right: -5px;
  transform: translateY(-50%) rotate(-10deg);
}

.sketch .quadrato-7 {
  position: absolute;
  top: -5px;
  right: 50%;
  transform: translateX(-50%) rotate(-10deg);
}

.sketch .quadrato-8 {
  position: absolute;
  bottom: -5px;
  right: 50%;
  transform: translateX(-50%) rotate(-10deg);
}

.sketch div:hover > .griglia,
.sketch div:hover > .quadrato {
  display: block;
}

@media (max-width: 1200px) {

  .error404-full {
    min-height: 100vh;
    background-color: var(--white);
    display: flex;
    justify-content: start;
    align-items: center;
    flex-direction: column;
    gap: 50px;
  }

  .pencil-ruler {
    display: none;
  }

  .sketch div {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(10deg);
  }
}

@media (max-width: 650px) {
  
  .error404-images {
    height: 350px;
  }
}

@media (max-width: 500px) {
  
  .error404-images {
    height: 280px;
  }
}

/* ---------- COOKIE POLICY --------- */

.container-policy h2 {
  font-size: 46px;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 25px;
}

.container-policy p {
  font-size: 16px;
  font-weight: 400;
  color: var(--dark-gray);
}

@media screen and (max-width: 800px) {
  .container-policy h2 {
    font-size: 36px;
    margin-bottom: 20px;
  }
  
  .container-policy p {
    font-size: 16px;
    font-weight: 400;
  }
}

@media screen and (max-height: 800px) {
  .container-policy h2 {
    font-size: 36px;
    margin-bottom: 20px;
  }
  
  .container-policy p {
    font-size: 16px;
  }
}

@media screen and (max-width: 520px) {
  .container-policy h2 {
    font-size: 28px;
    margin-bottom: 15px;
    text-align: left !important;
  }
  
  .container-policy p {
    font-size: 14px;
  }
}

@media screen and (max-height: 520px) {
  .container-policy h2 {
    font-size: 28px;
    margin-bottom: 15px;
    text-align: left !important;
  }
  
  .container-policy p {
    font-size: 14px;
  }
}

.container-policy {
  max-width: 1140px;
  width: 90%;
  padding: 0;
}

@media (max-width: 600px) {
    .container-policy  {
      width: 85%;
    }
}

.container-policy .bold {
  font-weight: 500;
  color: var(--light-gray); 
}

.container-policy a {
  color: var(--light-gray); 
  text-decoration: underline;
}

.cookie-cancel {
  padding: 5px 14px;
  position: relative;

  color: var(--white) !important;
  border: 2px solid var(--orange);
  background-color: transparent;
  text-decoration: none !important;

  border-radius: 5px;
  transition: .3s;
}

.cookie-cancel:hover {
  color: var(--light-black) !important;
  border: 2px solid var(--orange);
  background-color: var(--orange);
  border-radius: 5px;
  transition: .3s;
}

.table-container {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px; /* Set a maximum width */
  margin-top: 10px;
}

th, td {
  border: 1px solid #ccc;
  padding: 10px;
  text-align: left;
  width: 20%; /* Adjust the max-width for the columns */
  word-wrap: break-word; /* Allow long words to break and wrap */
  text-align: center;
}

td {
  font-size: 14px;
}

th {
  padding: 5px;
  text-align: center;
}








/* -------------- PROGETTO -------------- */


/* -------------- HERO -------------- */

.hero-progetti {
  height: 100vh;
  width: 100%;
  position: fixed;
  top: 0;
}

.p1 {
  background-image: url("../images/banner-1.avif");
  background-position: center;
  background-size: cover;

  padding: 0;
}

.p2 {
  background-image: url("../images/banner-2.avif");
  background-position: center;
  background-size: cover;

  padding: 0;
}

.p3 {
  background-image: url("../images/banner-3.avif");
  background-position: center;
  background-size: cover;

  padding: 0;
}

.p4 {
  background-image: url("../images/banner-4.avif");
  background-position: center;
  background-size: cover;

  padding: 0;
}

.p5 {
  background-image: url("../images/banner-5.avif");
  background-position: center;
  background-size: cover;

  padding: 0;
}

.p6 {
  background-image: url("../images/banner-6.avif");
  background-position: center;
  background-size: cover;

  padding: 0;
}

.color {
  height: 100%;
  width: 100%;

  background-color: #0000007b;
}

.container-hero {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: end;

  background-color: transparent;
}

.container-hero h1 {
  margin-bottom: 10vh;
  font-family: 'K2D', sans-serif;
  font-size: 60px;
  color: var(--white);
  letter-spacing: -1%;
  z-index: 5;
  font-weight: 400;
}

@media screen and (max-width: 800px) {
  .container-hero h1 {
    font-size: 40px;
  }

  .hero-progetti {
    height: 550px;
  }

  .gap {
    height: 550px;
  }
}

@media screen and (max-height: 800px) {
  .container-hero h1 {
    font-size: 40px;
  }
}

@media screen and (max-width: 520px) {
  .container-hero h1 {
    font-size: 28px;
  }
}

@media screen and (max-height: 520px) {
  .container-hero h1 {
    font-size: 28px;
  }

  .hero-progetti {
    height: 100vh;
  }

  .gap {
    height: 100vh;
  }
}

.container-hero h3 {
  font-family: 'Rubik', sans-serif;
  font-size: 20px;
  color: var(--white);
  letter-spacing: -1%;
  z-index: 5;
  margin-bottom: 0;
  font-weight: 400;

  color: var(--light-gray);
}

.down-arrow-progetti {
  margin-bottom: 30px;
  z-index: 1000;
}

.down-arrow-progetti .scroll-button {
  position: relative;
  width: 30px;
  height: 50px;
}

.down-arrow-progetti .oval {
  width: 30px;
  height: 50px;
  border-radius: 50px;
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #fff;
  overflow: hidden;
}

.down-arrow-progetti .line-down {
  width: 2px;
  height: 25px;
  background-color: #fff;
}

.down-arrow-progetti:hover .line-down {
  animation: scrollAnimation 1.5s infinite;
}

@keyframes scrollAnimation {
  0%, 70%, 100% {
    transform: translateY(0);
    opacity: 1;
    transition-timing-function: ease-out;
  }
  30% {
    transform: translateY(40px);
    opacity: 0;
    transition-timing-function: ease-out;
  }
  40% {
    transform: translateY(-40px);
    opacity: 0;
    transition-timing-function: ease-out;
  }
}

/* -------------- GALLERY -------------- */

.gallery {
  column-count: 3;
  --webkit-column-count: 3;
  --moz-column-count: 3;
  gap: 20px;
}

.image-link {
  margin-bottom: 20px;
  border-radius: 5px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.image-link img {
  width: 100%;
  border-radius: 5px;
  transition: 1s;
}

.image-link img:hover {
  transform: scale(1.2); 
  transition: transform 1s;
}

/* Responsive-ness for different screen-sizes */
@media screen and (max-width: 800px) {
  .gallery {
    column-count: 2;
    --webkit-column-count: 2;
    --moz-column-count: 2;
  }
}

@media screen and (max-width: 500px) {
  .gallery {
    column-count: 1;
    --webkit-column-count: 1;
    --moz-column-count: 1;
  }
}

.fullscreen-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 5000;

  background: rgba(0, 0, 0, 0.4); /* Semi-transparent background */
  backdrop-filter: blur(4px); /* Apply a blur effect */
  -webkit-backdrop-filter: blur(4px); /* For Safari */
}

.fullscreen-image-container {
  position: relative;

  animation: slideInDown;
  animation-duration: 0.5s;
}

.fullscreen-image {
  max-width: 85vw;
  max-height: 85vh;
  border-radius: 5px;
}

.close-image-button {
  position: absolute;
  font-size: 32px;
  height: fit-content;
  width: fit-content;
  top: 5px;
  right: 18px;
  font-weight: 100;
  color: var(--white);
  transition: 0.3s;

  text-shadow: 0px 0px 12px var(--black);
  mix-blend-mode: difference;
}

.close-image-button:hover, .close-image-button:focus {
  color: var(--light-gray);
}

/* -------------- DESC -------------- */

.progetto-desc h3 {
  font-size: 14px;
  font-weight: 500;
  color: var(--orange);
  margin-bottom: 15px;
}

.progetto-desc h2 {
  font-size: 36px;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 25px;
}

.progetto-desc p {
  font-size: 24px;
  font-weight: 400;
  color: #999999;
}

@media screen and (max-width: 800px) {
  .progetto-desc h2 {
    font-size: 28px;
    font-weight: 400;
    color: var(--white);
    margin-bottom: 20px;
  }
  
  .progetto-desc p {
    font-size: 18px;
    font-weight: 400;
    color: #999999;
  }

  .progetto-desc h3 {
    margin-bottom: 10px;
  }
}

@media screen and (max-height: 800px) {
  .progetto-desc h2 {
    font-size: 28px;
    font-weight: 400;
    color: var(--white);
    margin-bottom: 20px;
  }
  
  .progetto-desc p {
    font-size: 18px;
    font-weight: 400;
    color: #999999;
  }

  .progetto-desc h3 {
    margin-bottom: 10px;
  }
}

@media screen and (max-width: 520px) {
  .progetto-desc h2 {
    font-size: 24px;
    font-weight: 400;
    color: var(--white);
    margin-bottom: 15px;
  }
  
  .progetto-desc p {
    font-size: 16px;
    font-weight: 400;
    color: #999999;
  }

  .progetto-desc h3 {
    font-size: 12px;
    margin-bottom: 8px;
  }
}

@media screen and (max-height: 520px) {
  .progetto-desc h2 {
    font-size: 24px;
    font-weight: 400;
    color: var(--white);
    margin-bottom: 15px;
  }
  
  .progetto-desc p {
    font-size: 16px;
    font-weight: 400;
    color: #999999;
  }

  .progetto-desc h3 {
    font-size: 12px;
    margin-bottom: 8px;
  }
}

.info-container {
  column-count: 4;
  --webkit-column-count: 4;
  --moz-column-count: 4;
  column-gap: 30px;
}

.info-container div {
  margin-bottom: 40px;
}

.grid {
  display: grid; 
  grid-template-columns: repeat(4, 1fr);
  grid-column-gap: 30px;
}

@media screen and (max-width: 970px) {
  .info-container {
    column-count: 2;
    --webkit-column-count: 2;
    --moz-column-count: 2;
    
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 400px) {
  .info-container {
    column-count: 1;
    --webkit-column-count: 1;
    --moz-column-count: 1;
  }

  .grid {
    grid-template-columns: 1fr;
  }
}

.progetto-desc h5 {
  font-size: 16px;
  font-weight: 500;
  color: #eeeeee;
  margin-bottom: 12px;
}

.progetto-desc h6 {
  font-size: 16px;
  font-weight: 400;
  color: #999999;
}

.progetto-desc a {
  font-size: 16px;
  font-weight: 400;
  color: var(--orange);
}

.link--underline-effect {
  position: relative;
  display: inline-block;
}

.link--underline-effect:before {
    content: "";
    position: absolute;
    bottom: -3px;
    height: 1px;
    left: auto;
    right: 0;
    width: 0px;
    -webkit-transition: all .5s cubic-bezier(.23,1,.32,1);
    transition: all .5s cubic-bezier(.23,1,.32,1);
}

.that:before {
  background: #0092e3;
}

.infin:before {
  background: #F2D900;
}

.ivan:before {
  background: #FF7504;
}

.scuola:before {
  background: #0053a2;
}

.lj:before {
  background: #FF2805;
}

.link--underline-effect:hover:before {
    width: 100%;
    right: auto;
    left: 0;
}


/* -------------- COMPARE -------------- */

.slider-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

#image-compare {
  border-radius: 5px;
  max-width: 500px;
  cursor: none;
}

.special-desc {
  margin-top: 20px;
  text-align: center;
}

@media screen and (max-width: 540px) {
  .slider-container {
    width: 100%;
  }

  .special-desc {
    margin-top: 20px;
    text-align: center;
    max-width: 300px;
  }
}

.img-comp-img {
  position: absolute;
  width: auto;
  height: auto;
  overflow: hidden;
  left: 0;
}

.img-comp-img img {
  display: block;
  vertical-align: middle;
  border-radius: 10px;
}

.img-comp-slider {
  position: absolute;
  color: var(--white);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 12px;
  z-index: 9;
  cursor: ew-resize;
  /*set the appearance of the slider:*/
  width: 45px;
  height: 45px;
  background-color: var(--orange);
  opacity: 0.8;
  border-radius: 10px;
  left: 0;
}

/* -------------- ZOOMER -------------- */

.zoomer-cont {
  max-width: 700px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

@media screen and (max-width: 540px) {
  .zoomer-cont {
    width: 100%;
  }
}

.cover-zoomer {
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: 1000;
  opacity: 1;
  transition-delay: 0.6s;
}

.zoomer-cont:hover .cover-zoomer {
  
  visibility: hidden; /* Hide the element while keeping its position */
  transition-delay: 0.6s; /* Reset the transition delay on hover */
}

@media (hover: none) {
  .cover-zoomer {
    display: none;
  }
}

/* -------------- VIDEO -------------- */

#video-container {
  position: relative;
  width: 100%;
  height: fit-content;
  overflow: hidden;
}

.cont-video {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#video {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 5px;
}

#fullscreen-button {
  z-index: 1000;
  color: var(--light-gray);
  margin-top: 13px;
  text-align: center;
  transition: 0.3s;
}

#fullscreen-button:hover {
  color: var(--white);
  transition: 0.3s;
}

@media screen and (max-width: 540px) {
  .cont-video {
    width: 100%;
  }

  #fullscreen-button {
    max-width: 250px;
  }
}

/* -------------- LIBRO -------------- */

.book-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.book {
  position: relative;
  width: 280px;
  height: 400px;
  transition: transform 0.5s;
}

.paper {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  perspective: 1500px;

}

.front,
.back {
  background-color: white;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  transform-origin: left;
  transition: transform 0.5s;
}

.front {
  z-index: 1;
  backface-visibility: hidden;
  border-left: 0px solid rgb(253, 253, 253);
}

.back {
  z-index: 0;
}

.front-content,
.back-content {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.back-content {
  transform: rotateY(180deg)
}

/* Paper flip effect */
.flipped .front,
.flipped .back {
  transform: rotateY(-180deg);
}

/* Controller Buttons */
.book-btn {
  border: none;
  background-color: transparent;
  cursor: pointer;
  margin: 20px;
  transition: transform 0.5s;
}

.sposta-sinistra {
  transform: translateX(-140px);
  transition: transform 0.5s;
}

.sposta-destra {
  transform: translateX(140px);
  transition: transform 0.5s;
}

.book-btn:focus {
  outline: none;
  opacity: 1;
  transition: .3s;
}

.book-btn:hover img {
  opacity: .7;
  transition: .3s;
}

.book-btn img {
  width: 40px;
}

/* Paper stack order */
#p1 {
  z-index: 7;
}
#p2 {
  z-index: 6;
}
#p3 {
  z-index: 5;
}
#p4 {
  z-index: 4;
}

#p5 {
  z-index: 3;
}
#p6 {
  z-index: 2;
}
#p7 {
  z-index: 1;
}

.front-content img,
.back-content img {
  width: 100%;
}

@media screen and (max-width: 1090px) {
  
  .book-container {
    width: 100%;
  }

  .book {
    position: relative;
    width: 210px;
    height: 300px;
    transition: transform 0.5s;
  }

  .sposta-sinistra {
    transform: translateX(-110px);
    transition: transform 0.5s;
  }
  
  .sposta-destra {
    transform: translateX(110px);
    transition: transform 0.5s;
  }
}

@media screen and (max-width: 650px) {
  
  .book-container {
    width: 100%;
  }

  .book {
    position: relative;
    width: 140px;
    height: 200px;
    transition: transform 0.5s;
  }

  .sposta-sinistra {
    transform: translateX(-70px);
    transition: transform 0.5s;
  }
  
  .sposta-destra {
    transform: translateX(70px);
    transition: transform 0.5s;
  }
}

@media screen and (max-width: 460px) {
  
  .book-container {
    width: 100%;
  }

  .book {
    position: relative;
    width: 105px;
    height: 150px;
    transition: transform 0.5s;
  }

  .sposta-sinistra {
    transform: translateX(-50px);
    transition: transform 0.5s;
  }
  
  .sposta-destra {
    transform: translateX(50px);
    transition: transform 0.5s;
  }

  .book-btn img {
    width: 30px;
  }
}


/* -------------- SELECTOR -------------- */

.selector {
  height: 500px;
  display: flex;
  position: relative;
}

.selector img {
  height: 30px;
  padding-left: 25px;
  padding-right: 25px;
}

.prev-container img {
  padding-left: 50px;
  transition-duration: 0.5s;
}

.post-container img {
  padding-right: 50px;
  transition-duration: 0.5s;
}

.prev-container:hover img {
  padding-left: 25px;
  padding-right: 50px;
  transition-delay: 0.3s;
  transition-duration: 0.5s;
}

.post-container:hover img {
  padding-right: 25px;
  padding-left: 50px;
  transition-delay: 0.3s;
  transition-duration: 0.5s;
}

.selector h4 {
  margin-bottom: 0;
  font-size: 18px;
  color: var(--white);
  text-shadow: 0px 0px 12px #0000009f;
}

.selector h5 {
  margin-bottom: 5px;
  font-size: 14px;
  font-weight: 300;
  color: var(--light-gray);
  text-shadow: 0px 0px 12px #0000009f;
}

.post-container h4 {
  text-align: right;
}

.post-container h5 {
  text-align: right;
}

.color-selector {
  background-color: #090909b1;
  height: 100%;
  width: 100%;

  display: flex;
}

.prev-container {
  height: 100%;
  width: 50%;

  display: flex;
  justify-content: right;
}

.post-container {
  height: 100%;
  width: 50%;

  display: flex;
  justify-content: left;
}

.prev-container .color-selector {
  display: flex;
  align-items: center;
  justify-content: right;
}

.post-container .color-selector {
  display: flex;
  align-items: center;
  justify-content: left;
}

.prev-container .selector-text {
  display: flex;
  align-items: center;
  justify-content: left;
  width: 100%;
  max-width: 570px;
}

.post-container .selector-text {
  display: flex;
  align-items: center;
  justify-content: right;
  width: 100%;
  max-width: 570px;
}

.square-container {
  height: 100px;
  width: 100px;

  position: absolute;
  left: calc(50% - 50px);

  display: flex;
  justify-content: center;
  align-items: center;

  background-color: var(--black);
}

.square {
  width: 28px;
  height: 28px;

  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.square span {
  width: 4px;
  height: 4px;

  background-color: var(--light-gray);

  transition: 0.3s;
}

.square-container:hover span {
  background-color: var(--dark-gray);
  transition: 0.3s;
}

.square-container span:hover {
  background-color: var(--dark-gray);
  transition: 0.3s;
}

.box {
  display: none;
  position: absolute;
  width: 130px;
  height: 30px;
  background-color: #1b1b1b;
  color: #fff;
  padding: 10px;
  margin: 40px;
  float: left;
  align-items: center;
  justify-content: center;
  border-radius: 10px;

  bottom: 45px;

  font-size: 12px;

  box-shadow: 0px 0.5px 4px #656565;

  z-index: 3000;
}

.box.arrow-bottom:after {
  content: " ";
  position: absolute;
  right: 50px;
  bottom: -10px;
  border-top: 15px solid #1b1b1b;
  border-right: 15px solid transparent;
  border-left: 15px solid transparent;
  border-bottom: none;
  
  z-index: 4000;
}

.square-container:hover .box {
  display: flex;
  animation: fadeInUp;
  animation-duration: 0.5s;
  transition: 0.3s;
}

.square-container span:hover .box {
  display: flex;
  animation: fadeInUp;
  animation-duration: 0.5s;
  transition: 0.3s;
}

@media screen and (max-width: 800px) {
  .selector {
    height: 600px;
    display: flex;
    flex-direction: column;
  }

  .prev-container {
    height: 50%;
    width: 100%;
  
    display: flex;
    justify-content: right;
  }
  
  .post-container {
    height: 50%;
    width: 100%;
  
    display: flex;
    justify-content: left;
  }

  .square-container {
    height: 100px;
    width: 100px;
  
    position: absolute;
    top: 250px;
  
    display: flex;
    justify-content: center;
    align-items: center;
  
    background-color: var(--black);
  }
}

/* -------------- CONTATTI -------------- */

.button-contatti {
  background-color: transparent;
  padding: 16px 10px;
  color: var(--white);
  font-size: 16px;
  font-weight: 400;
  border-radius: 5px;
  width: 200px;
  align-self: center;
  text-decoration: none;
  text-align: center;
  transition: .3s;
  margin-top: 10px;
}

@media screen and (max-width: 800px) {
  .container-social .contatti-progetto {
    margin-bottom: 30px;
  }
}

.button-contatti:hover {
  color: var(--white);
  border-radius: 5px;
  transition: .3s;
}

.that-button {
  border: 2px solid #0092e3;
}

.that-button:hover {
  border: 2px solid #0092e3;
  background-color: #0092e3;
}

.infin-button {
  border: 2px solid #F2D900;
}

.infin-button:hover {
  border: 2px solid #F2D900;
  background-color: #F2D900;
}

.ivan-button {
  border: 2px solid #FF7504;
}

.ivan-button:hover {
  border: 2px solid #FF7504;
  background-color: #FF7504;
}

.cosplayer-button {
  border: 2px solid #8f65bf;
}

.cosplayer-button:hover {
  border: 2px solid #8f65bf;
  background-color: #8f65bf;
}

.scuola-button {
  border: 2px solid #0053a2;
}

.scuola-button:hover {
  border: 2px solid #0053a2;
  background-color: #0053a2;
}

.lj-button {
  border: 2px solid #FF2805;
}

.lj-button:hover {
  border: 2px solid #FF2805;
  background-color: #FF2805;
}