@import url('https://fonts.googleapis.com/css2?family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');


body, html {
    margin: 0;
    padding: 0;
    overflow: hidden;
    height: 100%;
    background-color: white;
    font-family: "Work Sans", sans-serif;
}

#line {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 1px; /* Spessore della linea */
    height: 0;
    background-color: black;
    z-index: 1;
}

.immagine-background {
    position: relative;
    width: 100%;
    height: 100%;
    border: 145px solid white;
    opacity: 0;
    z-index: 4;
}

.container {
    position: absolute;
    top: 30%;
    width: 600px;
    margin-left: 300px;
    display: flex;
    flex-direction: column;
    justify-content: left;
    align-items: left;
    z-index: 5;
  }
  .container .testo {
    text-align: left;
    width: 70%;
    height: 70px;
    position: relative;
    overflow: hidden;
  }

  .container .testo2 {
    width: 70%;
    height: 70px;
    position: relative;
    overflow: hidden;
  }

  .container .testo span {
    position: absolute;
    font-size: 4.5rem;
    line-height: 4.2rem;
    font-family: "Playfair Display", serif;
    color: white;
  }

  .container .testo2 span {
    position: absolute;
    font-size: 2.5rem;
    line-height: 4.2rem;
    font-family: "Playfair Display", serif;
    color: white;
    opacity: 0;
  }

  .logo {
    position: absolute;
    top: 40px;
    left: 40px;
    width: 190px;
    opacity: 0;
    color: white;
    font-size: 36px;
    z-index: 6
  }

  .cta {
    position: absolute;
    top: 40px;
    right: 40px;
    opacity: 0;
    z-index: 6
  }

  .copy {
    position: absolute;
    bottom: 40px;
    left: 40px;
    opacity: 0;
    color: white;
    font-size: 14px;
    z-index: 6
  }

  .demo {
    position: absolute;
    bottom: 40px;
    right: 40px;
    opacity: 0;
    color: white;
    font-size: 14px;
    z-index: 6
  }

  .statua {
    position: absolute;
    top: 0;
    right: 150px;
    z-index: 5;
    opacity: 0;
  }

  .descrizione {
    position: relative;
    width: 300px;
    color: white;
    opacity: 0;
  }

  .descrizione p {
    font-size: 14px;
  }

  .pulsanti {
    position: relative;
    display: inline-flex;
    z-index: 6;
    color: white;
    opacity: 0;
  }

  .pulsante {
    border: 2px solid white;
    padding: 10px 20px;
    margin-right: 20px;
    cursor: pointer;
    background: none;
    color: white;
  }

  .pulsante-cta {
    border: 2px solid white;
    padding: 10px 20px;
    cursor: pointer;
    background: none;
    color: white;
  }

  .pulsante:hover {
    border: 2px solid rgb(255, 0, 123);
    padding: 10px 20px;
    margin-right: 20px;
    cursor: pointer;
    background: none;
    color: white;
  }

  .view360 {
    position: relative;
    width: 100%;
    height: 100vh;
    background: black;
  }

  

  .modal {
    display: none; /* Nasconde la finestra modale di default */
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4); /* Sfondo semi-trasparente */
    -webkit-animation-name: fadeIn; /* Animazione fade-in per Webkit */
    -webkit-animation-duration: 0.4s;
    animation-name: fadeIn;
    animation-duration: 0.4s;
  }
  
  .modal-content {
    position: relative;
    background-color: #fefefe;
    margin: 10% auto; /* Centra verticalmente e orizzontalmente */
    padding: 20px;
    border: 1px solid #888;
    width: 70%;
    max-width: 950px;
    -webkit-animation-name: slideIn;
    -webkit-animation-duration: 0.4s;
    animation-name: slideIn;
    animation-duration: 0.4s;
  }
  
  /* Animazione fadeIn */
  @-webkit-keyframes fadeIn {
    from {opacity: 0;} 
    to {opacity: 1;}
  }
  
  @keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
  }
  
  /* Animazione slideIn */
  @-webkit-keyframes slideIn {
    from {top: -300px; opacity: 0} 
    to {top: 0; opacity: 1;}
  }
  
  @keyframes slideIn {
    from {top: -300px; opacity: 0}
    to {top: 0; opacity: 1;}
  }
  
  .close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
  }
  
  .close-button:hover,
  .close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
  }

  .off-canvas {
    position: fixed;
    top: 0;
    right: -100%; /* Nasconde il div fuori dal viewport */
    width: 100%; /* Larghezza del div off-canvas */
    height: 100%;
    background-color: #f9f9f9;
    box-shadow: -2px 0px 5px rgba(0,0,0,0.5);
    transition: right 0.5s; /* Animazione */
    z-index: 99;
  }
  
  .off-canvas iframe {
    width: 100%;
    height: 100%;
  }

 .chiudi-offcanvas {
  position: absolute;
  background: #e12576;
  border: none;
  border-radius: 25px;
  color: white;
  padding: 10px 15px;
  top: 20px;
  left: 20px;
  z-index: 1000;
  }
  
  .close-btn:hover {
    background-color: #d32f2f;
  }

  .form {
    width: 100%;
    max-width: 950px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 20px 1px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    overflow: hidden;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-form {
    background-color: #e12576;
    position: relative;
  }
  
  .contact-form:before {
    content: "";
    position: absolute;
    width: 26px;
    height: 26px;
    background-color: #e12576;
    transform: rotate(45deg);
    top: 50px;
    left: -13px;
  }
  
  form {
    padding: 2.3rem 2.2rem;
    z-index: 10;
    overflow: hidden;
    position: relative;
  }
  
  .title {
    color: #fff;
    font-weight: 500;
    font-size: 1.5rem;
    line-height: 1;
    margin-bottom: 0.7rem;
  }
  
  .input-container {
    position: relative;
    margin: 1rem 0;
  }
  
  .input {
    width: 90%;
    outline: none;
    border: 2px solid #fafafa;
    background: none;
    padding: 0.6rem 1.2rem;
    color: #fff;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    border-radius: 5px;
    transition: 0.3s;
  }
  
  textarea.input {
    padding: 0.8rem 1.2rem;
    min-height: 150px;
    border-radius: 5px;
    resize: none;
    overflow-y: auto;
  }
  
  .input-container label {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    padding: 0 0.4rem;
    color: #fafafa;
    font-size: 0.9rem;
    font-weight: 400;
    pointer-events: none;
    z-index: 1000;
    transition: 0.5s;
  }
  
  .input-container.textarea label {
    top: 1rem;
    transform: translateY(0);
  }
  
  .btn {
    padding: 0.6rem 1.3rem;
    background-color: #fff;
    border: 2px solid #fafafa;
    font-size: 0.95rem;
    color: #1abc9c;
    line-height: 1;
    border-radius: 5px;
    outline: none;
    cursor: pointer;
    transition: 0.3s;
    margin: 0;
    width: 100%;
  }
  
  .btn:hover {
    background-color: transparent;
    color: #fff;
  }
  
  .input-container span {
    position: absolute;
    top: 0;
    left: 25px;
    transform: translateY(-50%);
    font-size: 0.8rem;
    padding: 0 0.4rem;
    color: transparent;
    pointer-events: none;
    z-index: 500;
  }
  
  .input-container span:before,
  .input-container span:after {
    content: "";
    position: absolute;
    width: 10%;
    opacity: 0;
    transition: 0.3s;
    height: 5px;
    background-color: #e12576;
    top: 50%;
    transform: translateY(-50%);
  }
  
  .input-container span:before {
    left: 50%;
  }
  
  .input-container span:after {
    right: 50%;
  }
  
  .input-container.focus label {
    top: 0;
    transform: translateY(-50%);
    left: 25px;
    font-size: 0.8rem;
  }
  
  .input-container.focus span:before,
  .input-container.focus span:after {
    width: 50%;
    opacity: 1;
  }
  
  .contact-info {
    padding: 2.3rem 2.2rem;
    position: relative;
  }
  
  .contact-info .title {
    color: #e12576;
  }
  
  .text {
    color: #333;
    margin: 1.5rem 0 2rem 0;
  }
  
  .information {
    display: flex;
    color: #555;
    margin: 0.7rem 0;
    align-items: center;
    font-size: 0.95rem;
  }
  
  .information i {
    color: #e12576;
  }
  
  .contact-info:before {
    content: "";
    position: absolute;
    width: 110px;
    height: 100px;
    border: 22px solid #e12576;
    border-radius: 50%;
    bottom: -77px;
    right: 50px;
    opacity: 0.3;
  }
  
  @media (max-width: 850px) {
    .form {
      grid-template-columns: 1fr;
    }
  
    .contact-info:before {
      bottom: initial;
      top: -75px;
      right: 65px;
      transform: scale(0.95);
    }
  
    .contact-form:before {
      top: -13px;
      left: initial;
      right: 70px;
    }
  
    .text {
      margin: 1rem 0 1.5rem 0;
    }
  
  }
  
  @media (max-width: 480px) {
    .container {
      padding: 1.5rem;
    }
  
    .contact-info:before {
      display: none;
    }

  
    form,
    .contact-info {
      padding: 1.7rem 1.6rem;
    }
  
    .text,
    .information,
    .social-media p {
      font-size: 0.8rem;
    }
  
    .title {
      font-size: 1.15rem;
    }
  
    .input {
      padding: 0.45rem 1.2rem;
    }
  
    .btn {
      padding: 0.45rem 1.2rem;
    }
  }
  



  /* Desktop */
@media only screen and (min-width: 992px) {
    /* Inserisci qui le tue regole CSS per desktop */
  }
  
  /* Tablet in modalità landscape */
  @media only screen and (min-width: 768px) and (max-width: 991px) and (orientation: landscape) {
    /* Inserisci qui le tue regole CSS per tablet in modalità landscape */
  }
  
  /* Tablet in modalità portrait */
  @media only screen and (min-width: 768px) and (max-width: 991px) and (orientation: portrait) {
    /* Inserisci qui le tue regole CSS per tablet in modalità portrait */
  }
  
  /* Smartphone in modalità landscape */
  @media only screen and (max-width: 767px) and (orientation: landscape) {
    /* Inserisci qui le tue regole CSS per smartphone in modalità landscape */
  }
  
  /* Smartphone in modalità portrait */
  @media only screen and (max-width: 767px) and (orientation: portrait) {
    /* Inserisci qui le tue regole CSS per smartphone in modalità portrait */

    .logo {
      position: absolute;
      top: 30px;
      left: 40px;
      width: 130px;
      opacity: 0;
      color: white;
      font-size: 36px;
      z-index: 6;
  }

    .container {
        position: absolute;
        top: 25%;
        width: 275px;
        margin-left: 25px;
        display: flex;
        flex-direction: column;
        justify-content: left;
        align-items: left;
        z-index: 5;
    }

    .statua {
        display: none;
    }

    .immagine-background {
        position: relative;
        width: 100%;
        height: 100%;
        border: 0; 
        opacity: 0;
        z-index: 4;
    }

    .container .testo {
        text-align: left;
        width: 100%;
        height: 65px;
        position: relative;
        overflow: hidden;
    }

    .container .testo span {
        position: absolute;
        font-size: 4.5rem;
        line-height: 4.2rem;
        color: white;
    }

    .container .testo span {
        position: absolute;
        font-size: 4rem;
        line-height: 4.2rem;
        color: white;
    }

    .container .testo2 {
        width: 100%;
        height: 70px;
        position: relative;
        overflow: hidden;
    }

    .container .testo2 span {
        position: absolute;
        font-size: 1.5rem;
        line-height: 4.2rem;
        color: white;
        opacity: 0;
    }

    .copy {
        font-size: 12px;
    }

    .demo {
        font-size: 12px;
    }

    .modal-content {
      width: 90%;
  }

  .input {
    width: 87%;
}


  }