@import url('https://fonts.googleapis.com/css2?family=Franklin+Gothic+Demi&display=swap');

body {
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #ffffff;
}

.outer-box {
    width: 80%;
    height: 80%;
    background-color: #17bbe8;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    padding: 5%;
    flex-direction: row;
}

.inner-box {
    width: 100%;
    height: 100%;
    background-color: #0711e6;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    padding: 5%;
    position: relative;
    flex-direction: row;
}

.text {
    color: white;
    font-family: 'Franklin Gothic Demi', sans-serif;
    font-weight: bold;
    text-align: center;
    font-size: calc(10vw + 10vh + 10vmin);
    position: absolute;
    opacity: 0.95;
    z-index: 2;
}

@keyframes zoom {
   0% {
      transform: scale(0);
      opacity: 0;
    }
    100% {
      transform: scale(1);
      opacity: 0.95;
    }
  }

@media (prefers-reduced-motion: no-preference) {
    .text {
      animation: zoom 0.4s ease-out;
    }
  }

.image-container {
    width: 25vw;
    height: 25vw;
    max-width: 400px;
    max-height: 400px;
    border-radius: 50%;
    overflow: hidden;
    position: absolute;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.text-container {
    position: absolute;
    bottom: 5px;
    right: 5px;
    display: flex;
    align-items: center; /* Centra verticalmente gli elementi */
    z-index: 3;
    white-space: nowrap;
}

.separator {
    color: white;
    font-family: 'Franklin Gothic Demi', sans-serif;
    font-size: calc(0.6vw + 0.6vh + 0.6vmin);
    margin: 0 5px; /* Spazio ai lati del trattino */
}

.small-text-su {
    color: white;
    font-family: 'Franklin Gothic Demi', sans-serif;
    position: absolute;
    top: 5px;
    left: 5px;
    font-size: calc(0.6vw + 0.6vh + 0.6vmin);
    z-index: 3;
    text-decoration: none;
}

.small-text-giu {
    color: white;
    font-family: 'Franklin Gothic Demi', sans-serif;
    /* top: 100px;
    left: 5px; */
    font-size: calc(0.6vw + 0.6vh + 0.6vmin);
    text-decoration: none;
    display: inline-block;
}

.small-text-form {
    color: rgb(173, 230, 216);
    font-family: 'Franklin Gothic Demi', sans-serif;
    text-align: center;
    font-size: 14pt;
    margin-top: -70px;
    z-index: 3;
}

.outer-box-form {
    width: 400px;
    height: auto;
    background-color: #17bbe8;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    padding: 30px;
}

.inner-box-form {
    width: 100%;
    height: 100%;
    background-color: #0711e6;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    padding: 5%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.textForm {
    color: white;
    font-family: 'Franklin Gothic Demi', sans-serif;
    font-weight: bold;
    text-align: center;
    font-size: 20px;
    margin-bottom: 10px;
    margin-top: 20px;
}

.form-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90%;
}

.form-container form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    height: 100%;
}

.form-container form input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}

.form-container form textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 12px;
    width: 100%;
    box-sizing: border-box;
}

.form-container form button {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
    background-color: #0047ab;
    color: white;
    cursor: pointer;
}

.image-container-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    margin-top: -40px;
}

.image-form {
    width: 200px;
    height: auto;
    margin-top: -40px;
}

@media (max-width: 767px) and (orientation: landscape) {

    .outer-box {
        width: 97%;
        height: 95%;
        /* margin-top: -60px; */
        padding: 3%;
    }

    .inner-box {
        width: 100%;
        height: 100%;
    }

    .image-container {
        width: 50vw;
        height: 50vw;
        max-width: 180px;
        max-height: 180px;
    }

    .text {
        opacity: 0.92;
    }

    .small-text-su {
        font-size: calc(1.2vw + 1.2vh + 1.2vmin);
        top: 7px;
        left: 7px;
    }

    .small-text-giu {
        font-size: calc(1.2vw + 1.2vh + 1.2vmin);
        top: 7px;
        left: 7px;
    }  

}

/* Media query per schermi di dimensioni ridotte (smartphone) */
@media (max-width: 767px) and (orientation: portrait)  {
    .outer-box {
        width: 95%;
        height: 100%;
        /* margin-top: -110px; */
        padding: 6%;
    }

    .inner-box {
        width: 100%;
        height: 100%;
        padding: 10%;
    }

    .text {
        font-size: calc(8vw + 8vh + 8vmin);
        opacity: 0.92;
    }

    .image-container {
        width: 50vw;
        height: 50vw;
        max-width: 150px;
        max-height: 150px;
    }

    .small-text-su {
        font-size: calc(1.2vw + 1.2vh + 1.2vmin);
        top: 250px;
        left: 25px;
    }

    .small-text-giu {
        font-size: calc(1.2vw + 1.2vh + 1.2vmin);
        bottom: 250px;
        right: 25px;
    }
}