@font-face {
  font-family: "CastelfalfiSans";
  src: url("assets/fonts/CastelfalfiSans-Regular.ttf") format("truetype");
}
@font-face {
  font-family: "FaktBlond";
  src: url("assets/fonts/Fakt-Blond.ttf") format("truetype");
}
@font-face {
  font-family: "FaktBlond-italic";
  src: url("assets/fonts/Fakt-BlondItalic.otf") format("opentype");
  font-style: italic;
}
@font-face {
  font-family: "FaktBlondBold";
  src: url("assets/fonts/Fakt-Bold.ttf") format("opentype");
}

body {
  margin: 0;
  padding: 0;
  background-color: #f9f9f9;
  overflow-x: hidden;
  background-image: url(assets/img/gradient.png);
  background-repeat: no-repeat;
  font-family: "FaktBlond", sans-serif;
  font-weight: 100;
}

nav {
  display: flex;
  justify-content: center;
  background-color: #fff;
  box-shadow: 0px 0px 25px 10px rgba(0, 0, 0, 0.4);
  z-index: 10;
}

nav .logo img {
  height: 60px;
}

.how-it-works {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  align-self: center;
  width: 100%;
  height: 93vh;
}

.container {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 80%;
}

.content {
  flex: 1;
  margin-right: 20px;
  display:flex;
  flex-direction: column;

}

.content h1 {
  font-size: 80px;
  margin-bottom: 20px;
  font-family: "CastelfalfiSans", sans-serif;
  font-weight: 200;
  line-height: 120px;
}

.content .get-started {
  display: inline-block;
  padding: 15px 35px;
  font-size: 18px;
  color: #000;
  background-color: #ffb700;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  margin-bottom: 20px;
  margin-top: 40px;
  font-family: "FaktBlond-italic", sans-serif;
  font-style: italic;
  text-transform: uppercase;
  font-weight: 100;
  max-width: 200px;
}

.image-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.image-container .image {
  position: relative;
  max-width: 100%;
}

.image-container .image img {
  width: 100%;
  border-radius: 25px;
}

.image-container .link-iframe {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: #ffb700;
  padding: 12px 23px;
  font-size: 14px;
  color: #000;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-family: "FaktBlond-italic", sans-serif;
  font-style: italic;
  font-weight: 100;
}

.iframe-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 3, 3, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s, opacity 0s;
}

.iframe-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(10px);
  z-index: 1;
}

.iframe-container iframe {
  width: 90%;
  height: 90%;
  border: none;
  border-radius: 8px;
  z-index: 2;
  position: relative;
  overflow: hidden;
}

.iframe-container .close-iframe {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

.iframe-container.show {
  visibility: visible;
  opacity: 1;
}
.description{
  margin-top: 30px;
}

@media screen and (max-width: 1600px){
  .content h1 {
    font-size: 60px;
    line-height: 90px;
  }
}
@media screen and (max-width: 1200px){
  .content h1 {
    font-size: 50px;
    line-height: 90px;
  }
}
@media screen and (max-width: 1000px){
  .content h1 {
    font-size: 40px;
    line-height: 80px;
  }
}

/* Media Query per dispositivi mobili */
@media screen and (max-width: 750px) {
  .container {
    display: flex;
    align-items: center;
    width: 100%;
    flex-wrap: wrap;
    flex-direction: column;
    margin-top: -70px;
    padding: 0px 20px 0px 20px;
  }

  .content {
    margin-right: 0;
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    align-items: center;
    width: 100%;
  }

  .content h1 {
    font-size: 45px;
    line-height: 50px;
  }

  .content .get-started {
    padding: 10px 25px;
    font-size: 15px;
  }

  .image-container {
    margin-top: 20px;
  }

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

  .description {
    font-size: 16px;
text-align: center;
  }
}

/* Media Query per schermi più piccoli (smartphone) */
@media screen and (max-width: 480px) {
  .content h1 {
    font-size: 38px;
    line-height: 47px;
  }

  .content .get-started {
    padding: 8px 20px;
    font-size: 14px;
  }

  .image-container .link-iframe {
    padding: 8px 15px;
  }

  .description {
    font-size: 16px;
    text-align: center;
  }
}
