body {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-style: normal;
    letter-spacing: 0.6px;
    color: white;
    background-color: rgb(242 , 245, 248);
    margin: 0px;
    text-decoration: none;
}

/*
ELEMENTI HEADER (Backgroud, Overlay, Navbar, Title)
*/

header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#service {
    position: absolute;
    z-index: 0;
    color: white;
    border: 1.5px solid white;
    border-radius: 10px;
    padding: 5px 15px;
    font-size: 1.8em;
    text-decoration: none;
    font-weight: bold;
}

#service:hover {
    background-color: white;
    color: black;
    transition: background-color 0.2s ease-in-out;
    transition: color 0.2s ease-in-out;
    cursor: pointer;
}

#service:active {
    background-color: white;
    color: black;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.2;
    background: black;
    z-index: -1;
}

.carousel {
    position: relative;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    background: gray;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 2.5s ease-in-out;
}

.carousel img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.active {
    opacity: 1;
}

nav {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;

    display: flex;
    align-items: center;

    text-transform: uppercase;

    background-color: rgba(0, 0, 0, 0.81);
    height: 7%; 
}

#link {
    flex-grow: 1;
    text-align: right;
    font-size: 1em;
    margin-right: 1%; 
}

#link a {
    margin: 2%; 
    text-decoration: none;
    color: white;
}

#link a:hover {
    padding: 2px 0px;
    border-bottom: 2px solid white;
    cursor: pointer;
}

#link a:active {
    color: rgb(80, 95, 154);
    border-color: rgb(80, 95, 154);
}

#name {
    margin-left: 2%;
    font-size: 1.9em;
    text-decoration: none;
    color: white;
}

a #logo {
    margin-left: 4%;
    width: 13%;
    height: auto;
}

#name:hover {
    cursor: pointer;
}

#name:active {
    color: rgb(80, 95, 154);
}

#header-title {
    font-size: 4em;
    font-weight: bold;
    text-align: center;
    max-width: 780px;
}

/*
FOOTER
(Info Utente, Info Corso)
*/

footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: rgba(0, 0, 0, 0.750);
    height: 80px;
    color: white;
}

footer p {
    color: white;
    margin: 40px;
    line-height: 140%;
}

footer p a {
    color: white;
}

.hidden {
    display: none;
}



/*MEDIA QUERY PER MOBILE*/

@media (max-width: 730px) {    
    body {
        font-size: 10px;
    }

    #link {
        display: none;
    }

    #menu {
        display: flex;
    }

    #name{
        margin-left: 3%;
        font-size: 2em;
    }

    .slider {
        height: 100vh;
    }

    #header-title {
        font-size: 2.5em;
    }

    nav {
        height: 7%;
    }

    footer {
        height: 50px;
        flex-direction: column;
        justify-content: center;
    }

    footer p {
        text-align: center;
        font-size: 1.1em;
        margin: 4px;
    }
}

