/* ------------------- RESET ------------------- */
*{
    margin: 0;
    padding: 0;
    border: 0;
    box-sizing: border-box;
    font-size: 100%;
}

ul,
li{
    list-style: none;
}
a{text-decoration: none;}

img{
    max-width: 100%;
    height: auto;
}
html {
    scroll-behavior: smooth;
}
body{
    overflow-x: hidden;
}
html *,
html *:before,
html *:after {
  box-sizing: border-box;
  transition: 0.5s ease-in-out;
}

/* ------------------- COLORS ------------------- */
:root {
    --white: #ffffff;
    --grey: #EFEFEF;
    --black: #000000;
    --red: #E50019;
    --blue: #005070;
}

/* ------------------- TYPOGRAPHY ------------------- */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,400;1,500;1,600;1,700;1,800&display=swap');

body{
    font-family: "Open Sans", sans-serif;
}
h1 {
    font-size: 36px;
    font-weight: 100;
    line-height: 36px;
    letter-spacing: -0.5px;
}
h2{
    font-size: 30px;
    font-weight: 400;
    line-height: 30px;
    letter-spacing: -0.5px;
}
h3{
    font-size: 18px;
    font-weight: 400;
    line-height: 18px;
    letter-spacing: -0.5px;
}
p{
    font-size: 16px;
    font-weight: 400;
    line-height: 16px;
}
.fs-18{
    font-size: 18px;
    line-height: 26px;
}

@media(min-width: 1050px){
    h1 {
        font-size: 60px;
        line-height: 60px;
    }
    h2{
        font-size: 50px;
        line-height: 50px;
    }
    h3{
        font-size: 20px;
        line-height: 20px;
    }
    p{
        font-size: 20px;
        line-height: 20px;
    }
    .fs-18{
        font-size: 20px;
        line-height: 30px;
    }
}

/* ------------------- BUTTONS ------------------- */

.cta{
    display: block;
    padding: 10px 20px;
    border-radius: 5px;
    width: 200px;
    text-align: center;
    margin: 10px;
    transition: all 300ms ease-out;
}
.cta:hover{
    transform: scale(1.1);
}
.button-primary{
    background: #E50019;
    color: white;
}
.button-secondary{
    background: white;
    color: #E50019;
}
.button-container{
    margin-top: 20px;
}

@media(min-width: 1050px){
    .button-container{
        margin-top: 40px;
    }
}

/* Submit */
.services .button, #contattaci input[type="submit"], #thankyou .button{
    color: #E50019;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
#contattaci input[type="submit"]{
    height: 100%;
    width: 100%;
    z-index: 999;
}
.button{
    position: relative;
    display: block;
    overflow: hidden;
    width: 100%;
    height: 40px;
    margin: 20px auto;
    border-bottom: 1px solid #E50019;
}
.services .button{
    max-width: 140px;
}
#thankyou .button{
    max-width: 200px;
}
.services .button span, #thankyou .button span{
    padding: 10px 20px;
}
#contattaci .button{
    max-width: 80px;
}
.button:before{
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: #E50019;
    transform: translateY(100%);
    transition: 0.5s ease-in-out;
}
.button:before{
    z-index: 9;
}
.services .button span:hover, #thankyou .button span:hover, #contattaci .button input[type="submit"]:hover{
    color: #ffffff !important;
    z-index: 99;
}
.button:hover:before {
    transform: translateY(0);
}

/* Scroll */
.arrow-scroll .arrow-scroll__wrap {
    display: inline-block;
    transition: all ease-in-out 0.2s;
    cursor: pointer;
}
.arrow-scroll .arrow-scroll__wrap:hover{
    opacity: 0.5;
}
.arrow-scroll .arrow-scroll__wrap_animated {
    animation: arrow-scroll 1.7s infinite ease;
}

@keyframes arrow-scroll {
    0% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-7px);
    }
    55% {
      transform: translateY(-7px);
    }
    100% {
      transform: translateY(0);
    }
}

/* ------------------- HEADER ------------------- */
header.cover{
    width: 100vw;
    background: url("./img/cover.jpg") no-repeat center center / cover;
    color: white;
}
header .overlay{
    width: 100vw;
    padding: 50px 20px 100px 20px;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
header h1{
    padding: 50px 0 20px 0;
}
#logo{
    width: 100px;
    height: auto;
}
header.thankyou{
    text-align: center;
    padding: 50px 20px;
}

@media(min-width: 700px){
    header p{
        width: 60vw;
    }
}

@media(min-width: 1050px){
    header .overlay{
        padding: 50px 20px 150px 20px;
    }
    header p{
        width: 40vw;
    }
    header h1{
        padding: 70px 0 30px 0;
    }
    #logo{
        width: 200px;
        height: auto;
    }
}

/* ------------------- MAIN ------------------- */
main{
    padding: 0 20px;
    margin-top: -70px;
}
#certificazioni{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
    justify-items: center;
    gap: 20px;
    padding: 0 30px 50px 30px;
}
#thankyou{
    height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
#thankyou h2{
    color: #E50019;
    text-align: center;
}
#thankyou p{
    padding: 50px 0 30px 0;
}

@media(min-width: 700px){
    #certificazioni{
        padding: 0 25vw 50px 25vw;
    }
}
@media(min-width: 1050px){
    main{
        padding: 0 20px;
        margin-top: -100px;
    }
    #certificazioni{
        gap: 80px;
    }
}

/* ------------------- FOOTER ------------------- */
footer{
    background: #005070;
    padding: 50px 20px 20px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
}
footer p{
    font-size: 14px;
    text-align: center;
}
footer a{
    color: white;
}
footer h3{
    font-size: 20px;
    text-align: center;
    padding-bottom: 10px;
}
footer li{
    padding: 3px 0;
}
footer .flex{
    display: flex;
    justify-content: center;
}
footer li i{
    padding-right: 10px;
}
footer .social{
    padding: 10px 0;
}
footer .social i{
    display: flex;
    align-items: center;
}
footer .social a{
    padding: 10px;
    transition: all 200ms ease-in;
}
footer .social a:hover{
    transform: scale(1.1);
}

/* ------------------- CARDS ------------------- */
.container-service{
    display: grid;
    gap: 20px;
}
.card-service{
    padding: 30px 0;
    background: #EFEFEF;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.card-service h3{
    color: #E50019;
    padding-top: 15px;
}
.card-service img{
    height: 70px;
    width: 70px;
}

@media(min-width: 700px) {
    .container-service{
        grid-template-columns: repeat(2, 1fr);
    }
    .card-service{
        padding: 50px 0;
    }
    .card-service h3{
        padding-top: 20px;
    }
}

@media(min-width: 1050px) {
    .container-service{
        grid-template-columns: repeat(3, 1fr);
    }
    .card-service{
        padding: 50px 0;
    }
    .card-service h3{
        padding-top: 20px;
    }
}

/* ------------------- CONTATTACI ------------------- */
#contattaci{
    padding: 50px 0;
    text-align: center;
}
#contattaci h2{
    color: #E50019;
}
#contattaci form{
    padding-top: 10px;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}
#contattaci input[type="text"], #contattaci input[type="email"], #contattaci textarea{
    padding: 10px 20px;
    margin: 10px 0;
    border-bottom: 1px solid #D6D6D6;
    color: rgba(0, 0, 0, 1);
    width: 100%;
}
#contattaci textarea{
    font-family: 'Open Sans';
    min-height: 150px;
}
#contattaci input::placeholder{
    color: rgba(0, 0, 0, 0.6);
}
#contattaci .input-box{
    text-align: left;
}
#contattaci .input-box span{
    color: rgba(0, 0, 0, 0.6);
    margin-left: 10px;
}
#contattaci .input-box span a{
    color: rgba(0, 0, 0, 0.8);
    font-weight: 600;
}
#contattaci .input-box span a:hover{
    color: rgba(0, 0, 0, 1);
}
#contattaci input[type="text"]:focus, #contattaci input[type="email"]:focus, #contattaci textarea:focus{
    border-radius: 3px;
    outline: none;
    box-shadow: 0 0 0 1px #E50019;
}

@media(min-width: 1050px){
    #contattaci{
        padding: 100px 0;
    }
    #contattaci form{
        width: 60vw;
        margin: 0 auto;
    }
    #contattaci .form-container{
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 50px;
    }
    #contattaci textarea{
        height: calc(100% - 20px);
    }
}