/* ----------------------------------
                Base
---------------------------------- */
/* --- Font --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

html, body{
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.38;
}

a{
    text-decoration: none;
    font-weight: 600;
}

/* --- Titles --- */
h1{
    width: 100%;
    font-size: 40px;
    margin: 10px;
    letter-spacing: 4px;
}
h2, h3{
    margin: 5px;
    width: 100%;
}
h2{
    font-size: 30px;
}
h3{
    font-size: 25px;
}
p{
    text-align: center;
}

/* --- Menu --- */
ul{
    list-style: none;
    padding: 0;
    margin: 4px 0 16px;
}
ul li{
    display: inline-block;
    margin: 0 5px;
    padding: 0 2px;
}
ul li a{
    color: black;
}
ul li a:hover{
    color: gray;
}

/* ----------------------------------
                Cover
---------------------------------- */
.cover{
    height: auto;
    min-height: 100%;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    align-content: space-between;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* --- Header & footer --- */
header, footer{
    width: 100%;
}
header div{
    width: 200px;
    border-radius: 0 0 20px 20px;
    padding: 5px;
}
header div a, footer div a{
    color: black;
    font-weight: 400;
}
footer div{
    width: 150px;
    border-radius: 20px 20px 0 0;
    padding: 6px;
}
header div, footer div{
    text-align: center;
    margin: auto;
    background-color: rgba(230,230,230,0.4);
    box-shadow: 0 0 5px black;
}
header div:hover, footer div:hover{
    background-color: rgba(230,230,230,0.8);
    box-shadow: 0 0 10px black;
}

/* --- Action --- */
.cover .action{
    width: 85%;
    max-width: 800px;
    margin: 10px auto;
    padding: 15px;
    background-color: rgba(230,230,230,0.8);
    border-radius: 40px;
    box-shadow: 0 0 5px black;
}

.cover .action .center{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
    margin: 10px;
}
.cover .action .center .testo{
    width: 70%;
}
.cover .action .center p{
    text-align: justify;
}
.cover .action .center #foto{
    width: 22%;
    min-width: 200px;
    margin: 3px;
    border-radius: 100%;
    box-shadow: 0 0 5px black;
}

.cover .project{
    margin: 10px;
}

/* ----------------------------------
                Social
---------------------------------- */
.social{
    flex-basis: 100%;
}
.social .light{
    display: block;
}
.social .dark{
    display: none;
}
.social ul{
    margin: 10px;
    padding: 0;
}
.social ul li{
    display: inline;
    padding: 10px;
    margin: 5px;
}
.social ul li img{
    width: 25px;
}

/* ----------------------------------
                Button
---------------------------------- */
.btn{
    background-color: rgb(230,230,230);
    color: black;
    padding: 20px;
    width: 200px;
    text-align: center;
    border-radius: 100px;
    font-weight: 600;
    margin: 10px auto;
    display: block;
    transition: background-color 0.2s, border 0.2s, color 0.2s;
    font-size: 18px;
    box-shadow: 0 0 5px black;
}
.btn:hover{
    background-color: black;
    box-shadow: 0 0 5px white;
    color: white;
}

.btns{
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

/* ----------------------------------
                Error
---------------------------------- */
.error p{
    width: 100%;
}

/* ----------------------------------
                Swup
---------------------------------- */
.transition-fade{
    transition: 0.4s;
    opacity: 1;
}

html.is-animating .transition-fade{
    opacity: 0;
}

@media(max-width: 855px){

    .cover .action .center{
        justify-content: center;
    }
    .cover .action .center .testo{
        width: 95%;
    }
    .cover .action .center p, .cover .action .center .social{
        margin: 20px 0 0;
    }
}

@media screen and (prefers-color-scheme: dark) {

    header div, footer div{
        background-color: rgba(15,15,15,0.4);
        box-shadow: 0 0 5px white;
        color: white;
    }
    header div a, footer div a{
        color: white;
    }
    header div:hover, footer div:hover{
        background-color: rgba(15,15,15,0.8);
        box-shadow: 0 0 10px white;
    }

    .cover .action{
        background-color: rgba(15,15,15,0.8);
        color: white;
        box-shadow: 0 0 5px white;
    }

    .cover .action .center #foto{
        box-shadow: 0 0 5px white;
    }

    .social .light{
        display: none;
    }
    .social .dark{
        display: block;
    }

    .btn{
        background-color: black;
        box-shadow: 0 0 5px white;
        color: white;
    }
    .btn:hover{
        background-color: #e6e6e6;
        box-shadow: 0 0 5px black;
        color: black;
    }

    .focus{
        background-color: rgb(204, 17, 17);
    }
    .focus:hover{
        background-color: rgb(241, 56, 56);
    }

    ul li a{
        color: white;
    }
}
