*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    font-family: Arial, Helvetica, sans-serif;
}
html{
    font-size: 16px;
}
body{ 
    margin: 0;
    display: grid;
    scroll-behavior: smooth;
} 
nav{
    z-index: 10;
    position: relative;
    position: sticky;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: end;
    height: 3.10rem;
    padding: 0 0.5rem 0 0.5rem;
    font-family: Arial, Helvetica, sans-serif;
    background-color: rgb(255,255, 255);
}
.nav-left{
    position: absolute;
    left: 4%;
    bottom: 0.1rem;
}
.nav-left img{
    vertical-align: middle;
    margin: 0 auto;
    height: 2.9rem;
    width: 2.9rem;
}
.nav-scritta {
    position: absolute;
    left: 30%;
    transform: translateX(-50%);
}
.nav-scritta img{
    vertical-align: middle;
    margin: 0 auto;
    height: 3rem;
    width: 10rem;
}
.nav-links{
    position: absolute;
    right: 1%;
    display: flex;
    margin-bottom: 0.3rem;
}
.nav-links li{
    list-style: none;
}
.nav-links li a{
    color:rgb(16, 30, 155);
    text-decoration: none;
    letter-spacing: 0.1rem;
    font-size: 1rem;
    margin-left: 1.65rem;
    cursor: pointer;
}
.nav-links li a:hover{
  color:rgb(138, 43, 226);
}
.nav-mobile{
    background-image: url('/images/image.jpeg');
    display: none;
}
@media only screen and (min-width: 800px) and (max-width: 1270px){
    
    .nav-scritta {
        position: absolute;
        left: 25%;
        transform: translateX(-50%);
    }
}
@media only screen and (max-width:800px){
    .nav-mobile{
        position: absolute;
        right: 0%;
        display: block;
    }
    .nav-scritta {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
    .nav-links{
        display: none;
    }
}
.ingresso{
    height: 94.9vh;
    background-position: center center; 
    display: flex; 
    flex-direction: column; 
    align-items: center;
}
.login{
    z-index: 1;
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    background: none;
    border-radius: 10px;
    box-shadow: 10px 10px 15px rgba(0,0,0,0.05);
}
.login h2{
    text-align: center;
    padding: 1rem 0;
    border-bottom: 1px solid silver;
}
.login a{
    display:block;
    text-align: left;
    margin: 0 0 1rem 1.5rem;
    color: rgb(107, 105, 105);
    cursor: pointer;
    text-decoration: none;
}
.login a:hover{
    text-decoration: underline;
}
.login form{
    padding: 0 1.5rem;
    box-sizing: border-box;
    text-align: center;
}
form .txt_field{
    position: relative;
    border-bottom: 2px solid silver;
    margin: 2rem 0;
}
.txt_field input{
    width: 100%;
    padding: 0 0.3rem;
    height: 1.7rem;
    font-size: 1rem;
    border: none;
    background: none;
    outline: none;
}
.txt_field label{
    position: absolute;
    top: 50%;
    left: 5px;
    color: #adadad;
    transform: translateY(-50%);
    font-size: 1rem;
    pointer-events: none;
    transition: 0.5s;
}
.txt_field span::before{
    content: '';
    position: absolute;
    left: 0;
    margin-top: 1.70rem;
    background: rgb(0, 17, 255);
    width: 0%;
    height: 2px;
}
.txt_field input:focus ~ label,
.txt_field input:valid ~ label{
    top: -5px;
    color: rgb(0, 17, 255);
}
.txt_field input:focus ~ span::before,
.txt_field input:valid ~ span::before{
    width: 100%;
}
.legal-row{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
    margin: 0.7rem 0 1.1rem 0;  
}
.legal-text{
    color: silver;
    font-size: 0.72rem;         
    line-height: 1rem;
    width: 100%;
}
.legal-text a{
    color: rgb(0, 17, 255);
    font-weight: 700;
    text-decoration: none;
    display: inline;
    margin: 0;
    padding: 0;
}
.legal-text a:hover{
    text-decoration: underline;
}
.legal-toggle{
    cursor: pointer;
    user-select: none;
    flex: 0 0 auto;
}
.legal-toggle input{
    display: block !important;
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}
.legal-check{
    width: 16px;
    height: 16px;
    border-radius: 4px;
    background: rgb(230,230,230);
    border: 2px solid silver;   
    display: inline-block;
    position: relative;
}
.legal-check::after{
    content: "";
    position: absolute;
    left: 4px;
    top: 0px;
    width: 4px;
    height: 9px;
    border: solid rgb(16, 30, 155);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
}
.legal-toggle input:checked + .legal-check::after{
    opacity: 1;
}
.legal-error{
    margin-top: -0.6rem;
    margin-bottom: 0.8rem;
    color: rgb(87, 82, 82);
    font-size: 0.75rem;
}
.logbtn{
    width: 100%;
    height: 3rem;
    margin-bottom: 1rem;
    border: 1.5px solid rgb(0, 17, 255);
    background: rgb(0, 17, 255);
    border-radius: 25px;
    font-size: 1.3rem;
    color: rgb(255, 255, 255);
    font-weight: 700;
    cursor: pointer;
    outline: none;
}
.logbtn:hover{
    border-color: rgb(30, 45, 255);
    transition: .5s;
    transform:  translateY(-3px);
}
.message{
    margin: 0.5rem -0.1rem 0.5rem 0;
    font-size: 0.9rem;
    color: rgb(87, 82, 82);
    pointer-events: none;
    transition: 0.5s;
}
.text label{
    position: absolute;
    top: 43%;
    left: 1.7rem;
    color: #adadad;
    transform: translateY(-50%);
    font-size: 1rem;
    pointer-events: none;
    transition: 0.5s;
}
.text textarea{
    width: 100%;
    height: 3.9rem;
    font-size: 1rem;
    letter-spacing: -0.5px;
    word-spacing: -4px;
    resize: none;
    background: none;
    border: 2px solid #adadad;
    border-top: none;
    border-left: none;
    outline: none;
    margin-bottom: 1.5rem;
}
.text textarea:focus ~ label,
.text textarea:valid ~ label{
    top: 9.3rem;
    color: rgb(0, 17, 255);
}
.text textarea:focus,
.text textarea:valid{
    border-color: rgb(0, 17, 255);
}
.box{
    margin-top: 3.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); 
    grid-row-gap: 5rem; 
    grid-column-gap: 5rem;
}
.card{
    display: grid;
    grid-template-columns: 1.5rem 15rem 1.5rem;
    grid-template-rows: 2rem 6rem 6rem 1rem;
    justify-self: center;
}
.card:hover{
    transition: .5s;
    transform:  translateY(-3px);
}
.card-title{
    color: rgb(255, 255, 255);
    grid-column: 1/-1;
    grid-row: 1/1;
    background-size: cover;
    background-position: center;
    text-align: center;
    margin-bottom: -1rem;
    font-weight: bold;
}
.sfondo{
    background-color: rgb(255, 255, 255);
    grid-column: 1/-1;
    grid-row: 2/4;
    background-size: cover;
    background-position: center;
    border-radius: 1rem; 
    box-shadow: 0 0 0.5rem black;
}
.input{
    background-color: rgb(14, 27, 143);
    color: rgb(255, 255, 255);
    grid-column: 2/3;
    grid-row: 3/5;
    font-size: 0.75rem;
    border-radius: 1rem; 
    box-shadow: 0 0 0.5rem black;
    display: flex; 
    flex-direction: column; 
    justify-content: end; 
}
.input p {
    margin: 0;
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
}
.giorario{
    font-size: 0.55rem; 
}
.genere {
    font-size: 0.85rem; 
}
.contactinput{
    height: 5rem;
    width: 10rem;
} 
.paragrafo{
    display: grid;
    grid-template-columns: 19rem;
    grid-template-rows: auto;
    justify-self: center;
    text-align: center;
    margin-bottom: 1rem;
}
.imgprofilo {
    display: flex;
    flex-direction: column; 
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-top: 2rem;
}
.imgprofilo img{
    margin-top: 1rem;
    width: 36rem;
    border-radius: 1rem;
    box-shadow: 5px 5px 5px 5px rgba(0,0,0,0.1);
}

@media only screen and (max-width:1000px){
    .imgprofilo img{
        width: 18rem;
    }
}
.menu-container{
    background-image: none;
}
.menu-links{
    display:none;
}
.menu-links li{
    list-style: none;
}
.menu-links li a{
    color:rgb(16, 30, 155);
    text-decoration: none;
    letter-spacing: 0.1rem;
    font-size: 1rem;
    cursor: pointer;
}
.menu-links li a:hover{
  color:rgb(138, 43, 226);
}
@media only screen and (max-width:1270px){
    .menu-container{
        height: 100vh;
        background-image: url('../images/menu.png');
        background-size: cover;
    }
    .menu-links{
        display: flex;
        flex-direction: column;
        width: 100%;
        height: 100vh;
        background-color: transparent;
        margin: 0 auto;
        align-items: center; 
    }
    .menu-link{
        margin-top: 1rem;
        padding : 1rem;
    }
    .contact{
        display:none;
    }
}
.container {
    perspective: 1px;
    height: 94.95vh;
    overflow-x: hidden;
    background-color: rgb(0, 0, 0);
}
.startparallaxcontainer{
    display: flex;
    flex: 1 0 auto;
    position: relative;
    z-index: -1;
    height: 94.95vh;
    justify-content: center;
    align-items: center;
    transform: translateZ(-1px) scale(2);
    background-color: rgb(255, 255, 255);
}
.contentcontainer {
    position: relative;
    display: block;
    background-color: rgb(255, 255, 255);
    height: 94.95vh;
    z-index: 1;
    transform: skewY(-7deg);
}
.contentcontainer > * {
    transform: skewY(7deg);
}
.content {
    max-width: 80%;
    min-height: 450px;
    margin: 0 auto;
    padding: 7rem 0;
}
.contentcontainer .content h2{
    margin-top: 2rem;
    color: white;
    font-weight: bold;
}
.contentcontainer .content p{
    margin-top: 0.3rem;
    color: white;
}
.parallaxcontainer2 {
    display: flex;
    flex: 1 0 auto;
    position: relative;
    z-index: -1;
    height: 94.95vh;
    justify-content: center;
    align-items: center;
    transform: translateZ(-1px) scale(2);
    background-color: rgb(255, 255, 255);
}
.parallaxcontainer2 .content h2{
    color: white;
    font-weight: bold;
}
.parallaxcontainer2 .content p{
    margin-top: 0.3rem;
    color: white;
}
.scritte{
    color:white;
    margin-top: 0.2rem;
}
.footer{
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 13vh;
    background-color: rgba(0, 0, 0, 0.35);
    color: white;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; 
}
.sub-footer{
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center; 
    margin-top: 0.5rem;
}
.sub-sub-footer{
    align-items: left;
}
.sub-sub-footer p{
    font-size: 0.8rem; 
    font-weight: bold;
    color: rgb(255, 255, 255);
}
.sub-sub-footer a{
    font-size: 0.7rem; 
    font-weight: bold;
    color: rgb(107, 105, 105);
}
.policy{
    display: inline-block;
}
@media (max-width: 1270px) {
    .content{
        padding: 2.5rem 0;
    }
    .startparallaxcontainer {
        background-position: center center;
      }
    .parallaxcontainer2 {
        background-position: center center;
    }
    .footer{
        grid-template-columns: 1.2fr 1fr 0.8fr; 
    }
    .sub-sub-footer p{
        font-size: 0.8rem; 
        font-weight: bold;
        color: rgb(255, 255, 255);
    }
    .sub-sub-footer a{
        font-size: 0.7rem; 
        font-weight: bold;
    }
    .policy{
        display: block;
    }
}
.flex {
    display: flex;
}
.vertical-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 87vh;
    padding: 12rem;
    width: 50%;
}
.vertical-container .vertical-img{
    height: 290px;
    width: 290px;
    background-position: center center;
}
.vertical-freccia{
    margin-top: 66%;
    margin-left: 0.7rem;
    height:30px;
    width: 30px;
    background-position: center center;
}
.horizontal-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 12rem;
    height: 100vh;
    width: 50%;
 }
.post {
    height: 30%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    font-size: 1rem;
    line-height: 1.3rem;
    font-family: 'Sen', sans-serif;
    text-align: center;
}
@media only screen and (min-width: 800px) and (max-width: 1270px){
    .vertical-container {
        padding: 2rem;
    }
    .horizontal-container{
        padding: 2rem;
    }
}
@media (max-width: 800px) {
    .flex {
        flex-direction: column;
        padding: 0;
        margin: 0;
    }
    .vertical-container {
        flex-direction: column;
        width: 100%;
        height: 45vh;
        padding: 1rem;
        margin-top: 30%;
    }
    .vertical-container .vertical-img{
        height:290px;
        width: 290px;
    }
    .vertical-freccia{
        margin-top: 0;
        margin-bottom: -1.5rem;
        transform: rotate(90deg);
    }
    .horizontal-container{
        width: 100%;
        height: 30vh;
        padding: 1rem;
    }
    .post {
        height: 25%;
    }
}
input[type='checkbox'] { 
    display: none; 
} 
.wrap-collabsible { 
    margin-bottom: 1rem;
    justify-self: center;
} 
.lbl-toggle::before { 
    content: ' '; 
    display: inline-block;  
    vertical-align: middle; 
    margin-right: 0.7rem; 
    transform: translateY(-2px); 
    transition: transform .4s ease-out; 
}
.lbl-toggle { 
    display: block; 
    height: 12rem;
    width: 18.5rem;
    background: #0069ff; 
    background-size: cover;
    background-position: center;
    cursor: pointer; 
    border-radius: 1rem; 
    transition: .4s;
    box-shadow: 0 0 0.5rem black;
}
.collapsible-content { 
    width: 18.5rem;
    max-height: 0; 
    overflow: hidden; 
    transition: max-height .2s ease-in-out; 
    box-shadow:  0 10px 4px -2.75px rgba(54, 190, 231, 0.45);
    border-bottom-left-radius: 1rem; 
    border-bottom-right-radius: 1rem; 
} 
.toggle:checked+.lbl-toggle { 
    border-bottom-right-radius: 0; 
    border-bottom-left-radius: 0; 
} 
.collapsible-content .content-inner{ 
    border-left: 0px solid rgba(0, 105, 255, .45);
    border-right: 0px solid rgba(0, 105, 255, .45);
    border-bottom: 0px solid rgba(0, 105, 255, .45); 
    border-bottom-left-radius: 1rem; 
    border-bottom-right-radius: 1rem; 
    padding: .5rem 1rem; 
} 
.collapsible-content p { 
    margin-bottom: 0; 
}
.toggle:checked + .lbl-toggle + .collapsible-content {
    max-height: 1000px;
}
.profile{
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.profile div{
    margin-top: 1rem;
    display: inline-block;
    width: 55%;
}
.profile div p {
    display: inline;
    float: left;
}
.profile div button{
    display: inline;
    width: 20%;
    height: 1.5rem;
    border: 1.5px solid rgb(25, 42, 190);
    background: rgb(25, 42, 190);
    border-radius: 25px;
    font-size: 0.75rem;
    color: rgb(255, 255, 255);
    font-weight: 700;
    cursor: pointer;
    outline: none;
}
.profile div button:hover{
    border-color: rgb(30, 45, 255);
    transition: .5s;
    transform:  translateY(-3px);
}
.profile img{
    margin-top: 1rem;
    width: 300px;
    height: 300px;
}
@media (max-width: 750px) {
    .profile div{
        width: 85%;
    }
    .profile div button{
        width: 30%;
    }
}