/* RESET */

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}


/* FONTS */
@font-face {
    font-family: aptos;
    src: url('../fonts/aptos.ttf');
    font-weight: normal;
}
@font-face {
    font-family: aptos;
    src: url('../fonts/aptos-bold.ttf');
    font-weight: bold;
}
strong{
    font-weight: bold;
}
/* CONTAINER E GENERICI*/

.container{
    position: static;
    background: url('../media/bg.webp');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    width: 100vw;
    height: 100vh;
    font-family: aptos;
}
.button{
    text-decoration: none;
    color: white;
    background: grey;
    padding: 10px 15px;
    border-radius: 3px;
    text-transform: uppercase;
    font-weight: normal;
    transition: all 200ms;
}
.button:hover{
    color:  grey;
    background: white;
    cursor: pointer;
}
.page{
    height: 100vh;
    overflow-y: scroll;
    margin-top: -110px;
}
.page>section{
    height: 100vh;
    justify-content: center;
    display: flex;
    align-items: center;
}
/* MENU */
.menu{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: 110px;
    background: rgb(0,0,0);
    background: linear-gradient(180deg, rgba(13,13,13,1) 0%, rgba(13,13,13,1) 80%, rgba(13,13,13,0) 100%);
    z-index: 2;
    position: relative;
}
.menu ul{
    display: flex;
    margin: 20px;
    gap: 10px;
    flex-direction: row;
}
.menu .logo img{
    
    width: 30vw;
    max-width: 500px;
    margin: 20px;
}
.mobileNav{
    position: fixed;
    width: 50vw;
    justify-content: flex-end;
    right: -145px;
    top: 0px;
    display: flex;
    align-items: flex-start;
    transition: right 150ms ease-in-out;
    display: none;
}
.mobileNav.open{
    right: 0px;
}
.mobileNav img{
    width: 30px;
    height: 30px;
    margin-top: 36px;
    margin-right: 8px;
}
.mobileNav ul{
    display: flex;
    flex-direction: column;
    
}
.navList{
    background: rgba(0,0,0,0.8);
    border-radius: 0 0 0 20px;
    backdrop-filter: blur(8px);
}
.navList li a {
    text-decoration: none;
    color: white;
}
.navList li {
    border: 1px solid black;
    padding: 3px;
}

/* HERO  */
.hero{
    display: flex;
}
.hero>div{
    display: flex;
    flex-direction: column;
    width: 50%;
    align-items: center;
    justify-content: center;
   
}
.hero img{
    max-width: 550px;
    width: 100%;
    margin: auto;
}
.hero h1{
    color: white;
    font-size: 60px;
    font-weight: bold;
    text-align: center;
    padding: 20px 150px;
}
.hero h2{
    color: white;
    padding: 20px 65px 50px;
    text-align: center;
    font-size: 20px;
}

/* First Section */
.single_element>div{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;

}
.single_element h3{
    color: white;
    text-align: center;
    font-size: 35px;
    padding: 10px 100px;
}
.single_element img{
    transform: rotateZ(45deg);
    max-width: 300px;
    margin-top: 100px;
}

/* TRE BOX */
section.tre_box{
    height: auto;
}
.tre_box>div {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    height: 50vh;
    max-width: 1280px;
    width: 100%;
    margin: auto;

}

.card {
    background: white;
    width: 200px;
    align-items: center;
    display: flex;
    height: 200px;
    flex-direction: column;
    justify-content: space-around;
    text-align: center;
    padding: 30px;
    border-radius: 15px;
}
.card h4{
    color: rgba(56,210,0,1);
    font-weight: bold;
}

/* DOPPIO  */

.doppio{
    display: flex;
    padding: 0px 20px;
    max-width: 1280px;
    margin: auto;
}
.doppio>div{
    display: flex;
    flex-direction: column;
    width: 50%;
    align-items: end;
    justify-content:center;   
}
.doppio>div:first-child{
    align-items: flex-start;
}
.doppio img{
    max-width: 100%;
    max-height: 70vh;
}
.doppio h4{
    color: white;
    font-size: 25px;
    padding: 25px 30px 25px 0px;  
}
.doppio strong{
    display: block;
    font-size: 30px;
}

/* QUATTRO BOX */

.quattro_box>div {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    height: 100vh;
    max-width: 1280px;
    width: 100%;
    margin: auto;
    flex-direction: column;
}
.quattro_box>div>div {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    width: 100%;

}
.card {
    background: white;
    width: 200px;
    align-items: center;
    display: flex;
    height: 200px;
    flex-direction: column;
    justify-content: space-around;
    text-align: center;
    padding: 30px;
    border-radius: 15px;
}
.quattro_box .card h4{
    color: rgba(56,210,0,1);
    font-weight: bold;
}
.quattro_box h4{
    color: white;
    font-size: 25px;
    font-weight: bold;  
    text-align: center;
}
/* singleElement inferiori */

.page>section:nth-child(4), .page>section:nth-child(4)>div {
    height: 50vh;
}
.page>section:nth-child(5), .page>section:nth-child(5)>div {
    height: 50vh;
}
/* FORM CONTATTO */

.single_element>div.form_card {
    max-width: 1280px;
    margin: auto;
    background: white;
    border-radius: 20px;
    display: flex;
    flex-direction: row;
    height: auto;
}
.single_element>div.form_card>div{
    width: 33%;
    display: flex;
    flex-direction: column;
    height: 100%;
    margin-bottom: 50px;

}
.single_element>div.form_card>div>p{
    font-size: 30px;
    margin-top: 60px;
    margin-left: 30px;
    margin-right: 30px;
}
.form_card p.text{
    margin-bottom: 50px;

}
.single_element>div.form_card>div>p.top{
    margin-top: 100px;
    font-weight: bold;
}
.single_element>div.form_card>div>p.title{
    font-size: 40px;
    font-weight: bold;
}
.line{
    display: flex;
    flex-direction: row;
}
.line.sent{
    color: transparent;
    margin: auto;
    margin-top: 10px;
    margin-bottom: 10px;
    
}
.line.sent.ok{
    color: green;
}

.line input{
    width: 100%;
    border-radius: 10px;
    -webkit-box-shadow: 10px 10px 5px 0px rgba(0,0,0,0.75);
    -moz-box-shadow: 10px 10px 5px 0px rgba(0,0,0,0.75);
    box-shadow: 3px 3px 5px 0px rgba(0,0,0,0.55);
    margin: 5px;
    font-size: 13px;
    background: #eee;
    padding: 15px;
    border: none;
}
.line input.error, .line textarea.error {
   border: 2px solid red; 
}
.line:first-child {
    margin-top: 100px;
}
.line textarea{
    -webkit-box-shadow: 10px 10px 5px 0px rgba(0,0,0,0.75);
    -moz-box-shadow: 10px 10px 5px 0px rgba(0,0,0,0.75);
    box-shadow: 3px 3px 5px 0px rgba(0,0,0,0.55);
    font-size: 13px;
    background: #eee;
    padding: 15px;
    border: none;
    width: 100%;
    margin-top: 7px;
    border-radius: 10px;
}
.line:nth-child(4) {
    display: flex;
    justify-content: right;
    width: 100%;
    align-items: end;
    margin-top: 30px;
    /* background: black; */
}
.line:nth-child(4) .button {
    background: black;
    border: 2px solid transparent;

}
.line:nth-child(4) .button:hover {
    background: white;
    border: 2px solid black;
}
.button:active {
    -webkit-box-shadow: inset 0px 0px 6px 1px rgba(0,0,0,0.75);
    -moz-box-shadow: inset 0px 0px 6px 1px rgba(0,0,0,0.75);
    box-shadow: inset 0px 0px 6px 1px rgba(0,0,0,0.75);
}
.cardInCard{
    display: flex;
    flex-direction: column;
    background: rgb(99,99,99);
    background: linear-gradient(0deg, rgba(99,99,99,1) 0%, rgba(27,27,27,1) 100%);
    border-radius: 10px;
    max-height: 50%;
    margin: 20px;
}
.single_element>div.form_card img{
    transform: none;
    width: 50px;
    margin-top: 0px;
}

.single_element>div.form_card .imgContainer{
    background-color: white;
    border-radius: 100%;
    padding: 10px;
}
.cardInCard>div{
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 20px;
}
.cardInCard p{
    margin-right: 10px;
    margin-left: 25px;
    color: white;
}

/* CHIUSA */

.chiusa {
    display: flex;
    justify-content: center;
    align-items: center;
}
.chiusa img{
    max-width: 1080px;
    width: 80vw;
    margin:auto
}

/* FOOTER */

footer{
    background: black;
    color: #efefef;
}
footer p{
    text-align: center;
    padding: 20px;
}

/* SPINNER */

.spinner {
    display: inline-block;
    width: 25px;
    height: 10px;
  }
  .spinner:after {
    content: " ";
    display: block;
    width: 8px;
    height: 8px;
    margin: -4px;
    border-radius: 50%;
    border: 6px solid #000000;
    border-color: #000000 transparent #000000 transparent;
    animation: lds-dual-ring 1.2s linear infinite;
  }
  @keyframes lds-dual-ring {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
  }

/* MEDIA QUERIES */

@media only screen and (max-width: 768px){
    .menu>ul{
        display: none;
    }
    .page>section {
        height: auto;
        padding: 20px;
    }
    .page>section:nth-child(4), .page>section:nth-child(4)>div {
        height: auto;
    }
    .page>section:nth-child(5), .page>section:nth-child(5)>div {
        height: auto;
    }
    .hero{
        flex-direction: column;
    }
    .hero h1{
        padding: 0px;
    }
    .page {
        margin-top: 0px;
    }
    .hero>div{
        width: 100%;
    }

    .hero img {
        margin-top: 20px;
        max-width: 275px;
        margin: 20px auto;

    }
    .single_element h3{
        padding: 0px;
    }
    .tre_box>div{
        flex-direction: column;
        height: auto;
    }
    .tre_box>div .card{
        margin-top: 20px ;
    }
    .quattro_box>div{
        height: auto;
    }
    .quattro_box>div>div{
        flex-direction: column;
    }
    .quattro_box>div>div .card{
        margin-top: 20px ;
    }
    .doppio{
        flex-direction: column;
    }
    .doppio>div{
        width: 100%;
        text-align: center;
        justify-content: center;
        align-items: center;
    }
    .doppio>div:first-child{
        align-items: center;
        margin-bottom: 20px;
    }
    .doppio img{
        max-height: 55vh;
        margin-bottom: 20px;
    }
    .doppio h4{
        padding: 25px 30px;
    }
    .single_element>div.form_card{
        flex-direction: column;
    }
    .single_element>div.form_card>div{
        width: 100%;
        margin-bottom: 0px;
    }
    .line:first-child{
        margin-top: 20px;
    }
    .single_element>div.form_card>div{
        width: 100%;
        margin-bottom: 0px;
    }
    .line{
        margin: 5px;
    }
    .cardInCard{
        display: none !important;
    }
    .chiusa img{
        margin-top: 10px;
    }
}