/* 
	Foglio di stile customizzato
	Autore: Luca Crisci
	Agenzia: Mutart
	Cliente: Gustus - Progecta
*/

:root {
  --rosso: #E53329;
  --arancione: #f9af42;
  --giallo: #fff8c7;
}

@font-face {
  font-family: 'Nexa-Light';
  src: url('../font/Nexa-Light.ttf') format('truetype'),
    url('../font/Nexa-Light.woff') format('woff'),
    url('../font/Nexa-Light.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Nexa-Book';
  src: url('../font/Nexa-Book.ttf') format('truetype'),
    url('../font/Nexa-Book.woff') format('woff'),
    url('../font/Nexa-Book.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Nexa-Regular';
  src: url('../font/Nexa-Regular.ttf') format('truetype'),
    url('../font/Nexa-Regular.woff') format('woff'),
    url('../font/Nexa-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Nexa-Bold';
  src: url('../font/Nexa-Bold.ttf') format('truetype'),
    url('../font/Nexa-Bold.woff') format('woff'),
    url('../font/Nexa-Bold.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Nexa-Black';
  src: url('../font/Nexa-Black.ttf') format('truetype'),
    url('../font/Nexa-Black.woff') format('woff'),
    url('../font/Nexa-Black.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  overflow-x: hidden !important;
}

body {
  overflow-x: hidden;
  position: relative;
  font-family: 'Nexa-Regular';
  color: #333;
  animation: caricamento 1s ease-in-out;
}

#grazie > div {
  height: 100vh;
}

@keyframes caricamento {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

*:focus, *:hover {
  outline: none !important;
  outline-offset: unset;
}

* {
	box-sizing: border-box;
}

a {
	text-decoration: none;
	color: inherit;
  transition: all .3s ease-in-out;
}

a:hover {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

h1, h2, h3, h5, h6 {
  font-family: 'Nexa-Black';
  color: var(--rosso);
  text-transform: uppercase;
}

h4 {
  font-family: 'Nexa-Black';
  color: var(--arancione);
  text-transform: uppercase;
}

b,
strong {
  font-family: 'Nexa-Black';
}

.testata img {
  width: 100%;
  max-width: 430px;
}

#form {
  position: absolute;
  width: 40%;
  max-width: 600px;
  right: 5%;
  top: 0%;
  min-height: 600px;
  max-height: 1200px;
  background: linear-gradient(180deg, #f9af42 0%, #E53329 100%);
  font-family: 'Nexa-Black';
  z-index: 2;
}

/* #form h1 {
  font-size: 60px;
  color: var(--giallo);
  font-family: 'Nexa-Black';
  text-transform: uppercase;
  line-height: 60px;
  margin-bottom: 20px;
  letter-spacing: 2px;
} */

#form h1 {
  font-size: 32px;
  color: var(--giallo);
  font-family: 'Nexa-Black';
  text-transform: uppercase;
  line-height: 1.1;
  letter-spacing: 1px;
}

#form p {
  font-size: 20px;
  line-height: 20px;
  font-family: 'Nexa-Black';
  text-transform: uppercase;
  color: var(--rosso);
  background: var(--giallo);
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  margin-bottom: 20px;
}

#form .subtitle {
  color: #fff;
  font-size: 18px;
  text-align: left;
  font-family: 'Nexa-Regular';
  font-weight: 500;
  line-height: 1.2;
  text-decoration: underline;
  padding: 0 10px;
}

.form-gustus {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#form input, #form textarea {
  background: #fff;
  color: #333;
  border: transparent;
  border-radius: 5px;
  width: 80%;
  font-family: 'Nexa-Regular';
  padding: 8px;
  margin: 8px;
}

#form input::placeholder, #form textarea::placeholder {
  color: #333;
}

#form .form-check-input {
  background: #fff;
  height: 20px;
  width: 20px;
  position: inherit;
  margin: 0;
  top: 4px;
}

input[type="checkbox"] {
  border-radius: 5px;
  border: none;
}

input[type="file"]:focus, input[type="radio"]:focus, input[type="checkbox"]:focus {
  outline: thin dotted;
  outline: 5px auto -webkit-focus-ring-color;
  outline-offset: -2px;
}

#form label {
  color: #fff;
  font-size: 16px;
  display: inline-block;
  font-family: 'Nexa-Regular';
  margin: 8px;
}

#form label a {
  color: #fff;
}

#form .tasto-form {
  font-size: 30px;
  color: var(--rosso);
  font-family: 'Nexa-Black';
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: none;
  border-top: 3px solid transparent;
  border-bottom: 3px solid transparent;
  background: var(--giallo);
  width: 100%;
  cursor: pointer;
  transition: all .3s ease-in-out;
}

#form .tasto-form:hover {
  border-top: 3px solid #fff;
  border-bottom: 3px solid #fff;
  background: #fff;
}

.fiera-gustus {
  background: url('../img/2024/fiera-gustus.jpg');
  background-size: contain;
  background-position: bottom;
  min-height: 480px;
}

.box-1 {
  background: linear-gradient(180deg, #E53329 0%, #f9af42 100%);
  color: #fff;
  font-family: 'Nexa-Bold';
  font-size: 28px;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.box-1 .descrizione {
  max-width: 500px;
}

.intro, .descrizione {
  max-width: 450px;
  line-height: 40px;
}

.button-cta {
  background-color: var(--rosso);
  color: var(--giallo);
  font-family: 'Nexa-Black';
  letter-spacing: 1px;
  line-height: 35px;
  font-size: 30px;
  text-transform: initial;
  padding: 10px 25px 3px;
  box-shadow: 5px 5px 0px 0px #fff8c7;
  border: 3px solid transparent;
  width: 450px;
  max-width: 450px;
  transition: all .3s ease-in-out;
}

.box-1 .button-cta {
  width: 500px;
  max-width: 500px;
}

.button-cta:hover {
  color: #fff;
  box-shadow: 0px 0px 0px 0px #fff8c7;
  border: 3px solid #fff;
}

.cta-2 {
  background-color: var(--giallo);
  color: var(--rosso);
  box-shadow: 5px 5px 0px 0px #f9af42;
}

.cta-2:hover {
  box-shadow: 0px 0px 0px 0px #f9af42;
  color: #333;
  border: 3px solid #333;
}

.box-video {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.numeri-gustus {
  background: url('../img/numeri.jpg');
  background-size: cover;
  background-position: bottom;
  flex-wrap: wrap;
  display: flex;
  align-items: baseline;
  justify-content: center;
  min-height: 400px;
}

.numeri-gustus h2 {
  font-size: 40px;
  position: relative;
  letter-spacing: 1px;
}

.numeri-gustus h2:after {
  content: '';
  background: var(--arancione);
  width: 270px;
  height: 2px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0%;
}

.numeri-gustus>* {
  flex: 1 1 25%;
}

.numero {
  font-size: 40px;
  color: var(--rosso);
  font-family: 'Nexa-Black';
  letter-spacing: 1px;
  display: block;
}

/* .slick-slide {
  padding: 10px;
} */

.slick-slide a {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-section {
  display: flex;
  align-items: center;
}

.gallery-fiera .slick-slide:not(.slick-current.slick-active) img {
  /* transform: scale(1); */
  width: 100%;
  object-fit: cover;
  transition: all .3s ease-in-out;
  opacity: .5;
}

.gallery-fiera .slick-slide:not(.slick-current.slick-active) a {
  padding: 15px;
}

.gallery-fiera .slick-slide.slick-current.slick-active img {
  /* transform: scale(1.1); */
  opacity: 1;
}

.fancybox__toolbar {
  display: none;
}

.fancybox__thumbs.is-draggable {
  display: none;
}

.info {
  font-size: 18px;
  text-transform: uppercase;
  font-family: 'Nexa-Black';
  line-height: 15px;
}

.box-2 {
  background: linear-gradient(180deg, #f9af42 0%, #E53329 100%);
  color: #fff;
  font-family: 'Nexa-Bold';
  font-size: 30px;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.intro {
  font-family: 'Nexa-Black';
  margin-bottom: 20px;
}

.intro span {
  font-size: 40px;
  letter-spacing: 1px;
}

.partner img {
  width: 130px;
  margin: 5px 20px;
}

.footer-cta {
  background: var(--rosso);
  color: var(--giallo);
  font-size: 20px;
  font-family: 'Nexa-Black';
  text-transform: uppercase;
  text-align: center;
  border-top: 2px solid transparent;
  border-bottom: 2px solid transparent;
  transition: all .3s ease-in-out;
}

.footer-cta:hover {
  border-top: 2px solid var(--rosso);
  border-bottom: 2px solid var(--rosso);
  background: #fff;;
}

.footer-cta a {
  display: block;
  width: 100%;
  letter-spacing: 1px;
  transition: all .3s ease-in-out;
}

.footer-cta a:hover {
  color: var(--rosso);
}

.indirizzo, .modulo-compilato {
  font-size: 18px;
}

.indirizzo span:first-child {
  text-transform: uppercase;
}

.social img {
  width: 24px;
  margin: 6px;
  transition: all 1s ease-in-out;
}

.social img:hover {
  transform: rotateY(380deg);
}

.footer-copy {
  background: #ededed;
  line-height: 20px;
  font-size: 14px;
}

a.iubenda-tp-btn.iubenda-cs-preferences-link {
  display: none !important;
}

button.iubenda-tp-btn.iubenda-cs-preferences-link {
  display: none !important;
}

@media (max-width: 767px) {

  h3, h4 {
    font-size: 20px;
  }

  .testata img {
    max-width: 250px;
  }

  .fiera-gustus {
    min-height: 870px;
    background-size: cover;
  }

  .frase-testata h1 {
    font-size: 30px;
    text-align: center;
  }

  #form {
    width: 90%;
    max-width: 100%;
    text-align: center;
    right: 5%;
    top: 350px;
    max-height: 100%;
  }

  #form h1 {
    font-size: 24px;
    line-height: 1.1;
  }

  #form .subtitle {
    text-align: center;
  }

  .box-1 {
    font-size: 25px;
    text-align: center;
  }

  .intro .descrizione {
    max-width: 100%;
    line-height: 35px;
  }

  .button-cta {
    line-height: 25px;
    font-size: 20px;
    padding: 10px 5px 3px;
    box-shadow: 4px 4px 0px 0px #fff8c7;
    border: 3px solid transparent;
    width: 300px;
    max-width: 350px;
    margin-bottom: 10px;
  }

  .box-video {
    padding-top: 40px;
  }

  .box-video iframe {
    height: 300px;
  }

  .numeri-gustus {
    display: block;
  }

  .numeri-gustus h2 {
    font-size: 22px;
  }

  .numeri-gustus>* {
    margin-bottom: 20px;
  }

  .numeri-gustus h2:after {
    width: 150px;
  }

  .numero {
    font-size: 25px;
  }

  .info {
    font-size: 16px;
  }

  .box-2 {
    font-size: 20px;
    margin-top: 20px;
    margin-bottom: 30px;
    text-align: center;
  }

  .intro {
    margin-bottom: 10px;
  }

  .intro span {
    font-size: 30px;
  }

  .cta-2 {
    box-shadow: 4px 4px 0px 0px #f9af42;
  }

  .partner img {
    width: 32%;
    margin: 14px;;
  }

  .footer-cta {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .indirizzo {
    font-size: 16px;
  }

  .social img {
    width: 27px;
    margin: 10px;
  }

  .footer-copy {
    font-size: 13px;
    margin-top: 30px;
  }

}

@media (max-width: 375px) {

  #form h1 {
    font-size: 34px;
    line-height: 34px;
  }

  #form p {
    font-size: 17px;
  }

  #form input, #form textarea {
    width: 85%;
  }

  #form .form-check-input {
    height: 15px;
    width: 15px;
  }

  #form label {
    font-size: 14px;
  }

  .fiera-gustus {
    min-height: 780px;
  }

  .box-1 {
    font-size: 22px;
  }

  .intro, .descrizione {
    line-height: 30px;
  }

  .numeri-gustus {
    flex-wrap: inherit;
    display: block;
    align-items: inherit;
    justify-content: inherit;
  }

  .numeri-gustus>* {
    flex: inherit;
    margin-bottom: 20px;
  }

  .numeri-gustus h2 {
    margin-bottom: 20px;
  }

  .numero {
    margin-bottom: -5px;
  }

  .cta-2 {
    width: 330px;
    padding: 10px 0px 3px;
  }

  .partner img {
    margin: 10px 10px;
    width: 38%;
  }

  .footer-cta {
    font-size: 20px;
    margin-bottom: 20px;
  }

  .indirizzo {
    margin-bottom: 20px;
  }

  .footer-copy {
    font-size: 12px;
    margin-top: 20px;
  }

}

@media (min-width: 2000px) {

  #form {
    right: 15%;
  }

  .box-2 {
    height: 90vh;
  }

  .fiera-gustus {
    min-height: 800px;
    background-size: contain;
  }

}