.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

body, html {
    background: #ffffff;
    color: #7F7F7F;
    font-family: "Baloo Thambi 2", system-ui;
    font-size: 17px;
    line-height: 23px;
    overflow-x: hidden;
}


header{
    width: 100%;
    background-image: url(../images/header.png);
    background-position: center bottom;
    background-size: cover;
    padding-bottom: 300px;
    background-repeat: no-repeat;
    position: relative;
    }
    .logo{
        max-width: 190px;
        margin: 0 auto;
        padding-top: 150px;
        padding-bottom: 150px;
        }
        .logo img{
            width: 100%;
        }

    .intest{
        max-width: 400px;
        margin-left: 10%;
        position: relative;
        z-index: 1;
        padding-right: 40px;
    }

    .bamb_img{
        max-width: 300px;
        position: absolute;
        right: 0;
        top: 250px;
        z-index: 0;
        }
        .bamb_img img{
            width: 100%;
        }

        @media (max-width: 769px) {
          .bamb_img img {
            display: none;
          }
        }


.triangolo{
    position: absolute;
    width: 100px;
    bottom: -45px;
    left: 0;
    right: 0;
    margin: 0 auto;
    }
    .triangolo img{
        width: 100%;
    }


h1, h2, h3, h4{
    font-size: 2.5em;
    font-weight: 600;
    color: #999999;
    line-height: 48px;
    margin-bottom: 10px;
    }
    h1 strong, h2 strong, h3 strong{
        font-family: "Borel", cursive;
         -webkit-text-stroke: 0.6px;
    }

    h4 strong{
        font-weight: 800;
    }

p strong{
    font-weight: 500;
}



@media (max-width: 368px) {
    h1 strong:before{
        left: -129px !important;
    }
    
}


h1 strong{
    color: #ECD4A9;
    position: relative;
    }
    h1 strong:before{
        content: "";
        background-image: url(../images/sottolineatura.png);
        position: absolute;
        width: 197px;
        height: 12px;
        background-size: 100% 100%;
        background-repeat: no-repeat;
        bottom: 24px;
        left: -6px;
    }


h2{
    max-width: 450px;
    margin: 0 auto;
    }

    h2 strong{
        color: #A1C5E7;
    }



h3{
    color: #ffffff;
    position: relative;
    }
    h3 strong:before{
        content: "";
        background-image: url(../images/cerchio.png);
        position: absolute;
        width: 317px;
        height: 82px;
        background-size: 100% 100%;
        background-repeat: no-repeat;
        bottom: -7px;
        left: 0;
        right: 0;
        margin: 0 auto;
    }


    @media (max-width: 400px) {
        h3{
            font-size: 2.2em;
            line-height: 43px;
        }
        
    }



h4 strong{
    color: #9ABEA0;
}

main{
    text-align: center;
    margin-top: 150px;
    position: relative;
    }
    main .cta{
        margin: 0 auto;
        margin-top: 25px;
    }

.cta{
    max-width: 250px;
    display: block;
    margin-top: 25px;
    }
    .cta img{
        width: 100%;
    }


.perche{
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    }
    .perche p{
        max-width: 500px;
        margin: 0 auto;
    }
    .motivi{
        margin-top: 30px;
    }
    .motivi div{
        display: inline-block;
        width: 180px;
        margin: 15px;
        }
        .motivi div img{
            width: 100%;
        }


.box_instagram{
    background-image: url(../images/box-instagram.png);
    margin-top: 130px;
    margin-bottom: 130px;
    padding: 150px 0;
    background-size: 100% 100%;
    background-position: top center;
    }
    .reels{
        max-width: 800px;
        margin: 0 auto;
        margin-top: 60px;
        padding: 0 40px;
        }
        .reels img{
            width: 100%;
        }



.scrivi_parla{
    text-align: left;
    max-width: 350px;
    margin: 0 auto;
    margin-bottom: 150px;
    padding: 0 40px;
    }


 .textarea-container {
      position: relative;
      margin-top: 30px;
      width: 350px;
    }

    textarea {
        width: 380px;
        height: 75px;
        max-height: 1000px;
        border: 0.5px solid #999999;
        border-radius: 40px;
        caret-color: black;
        background: #F6F6F4;
        position: relative;
        z-index: 2;
        outline: none;
        -webkit-appearance: none;
        appearance: none;
        resize: none;
        padding: 24px 80px 24px 35.7px;
        color: #7F7F7F;
        line-height: 22px;
        transition: height 0.05s ease-in-out;
        box-sizing: border-box;
        overflow-y: hidden;
        }
        textarea:focus {
          outline: none;
          box-shadow: none;
        }

        @media (max-width: 460px) {
            textarea{
                width: 280px;
            }

            #sendBtn{
                right: 81px !important;
            }


        }


.stellina{
    width: 120px;
    position: absolute;
    right: -50px;
    bottom: 90px;
    }
    .stellina img{
        width: 100%;
    }


    .fake-caret {
        position: absolute;
        top: 22px;
        left: 36px;
        width: 1px;
        height: 27px;
        background-color: black;
        animation: blink 1s steps(2, start) infinite;
        pointer-events: none;
        z-index: 2;
        }
        @keyframes blink {
          0%, 50% { opacity: 1; }
          51%, 100% { opacity: 0; }
        }


    #sendBtn {
        position: absolute;
        bottom: 9px;
        right: -19px;
        font-size: 14px;
        z-index: 3;
        width: 58px;
        display: block;
    }




   .hidden {
    display: none;
  }

  .modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
  }

  .modal:not(.hidden) {
    display: flex;
  }

  .modal-content {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    width: 90%;
    max-width: 320px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  }

  .modal-content h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
  }

  .phone-option {
    display: block;
    width: 100%;
    margin: 0.5rem 0;
    padding: 0.8rem;
    background: #25D366;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
  }

  .cancel {
    margin-top: 1rem;
    background: none;
    color: #666;
    border: none;
    cursor: pointer;
    text-decoration: underline;
    font-size: 0.9rem;
  }



  footer{
    background-image: url(../images/footer.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center top;
    padding-top: 150px;
    text-align: center;
    color: #999999;
    }
    .logo_footer{
        max-width: 150px;
        margin: 0 auto;
        margin-bottom: 30px;
        }
        .logo_footer img{
            width: 100%;
        }

    .socialini a{
        display: inline-block;
        margin: 10px;
        height: 30px;
        }
        .socialini a img{
            height: 100%;
        }

    .numeri{
        display: flex;
        justify-content: space-around;
        align-items: center;
        max-width: 300px;
        margin: 0 auto;
        margin-top: 30px;
        margin-bottom: 10px;
        font-weight: 500;
        color: #999999;
        }
        .numeri a{
            color: #999999;
        }

    .indirizzo a{
        color: #999999;
        font-weight: 500;
    }


    .crediti{
        display: flex;
        justify-content: space-between;
        margin-top: 100px;
        padding: 0 30px 20px 30px;
        }
        .crediti strong{
            font-weight: 500;
        }
        .crediti a{
            color: #999999;
            font-weight: 500;
        }



@media (max-width: 555px) {
    .crediti{
        display: block;
    }
}




