html {
    scroll-behavior: smooth;
}

body {
    background-color: #3f3f3f;
    font-family: 'Open Sans', sans-serif;
    min-width: 900px;
    width: 100vw;
    margin: 0px;
    overflow-x: hidden;
}

div {
    display: flex;
}

.shadowed {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.curvedAngles {
    border-radius: 10px;
}

.curvedLeftAngles {
    border-radius: 10px 0px 0px 10px;
}

.curvedRightAngles {
    border-radius: 0px 10px 10px 0px;
}

.curvedUpperAngles {
    border-radius: 10px 10px 0px 0px;
}

.curvedLowerAngles {
    border-radius: 0px 0px 10px 10px;
}

.curvedRightUpperAngle {
    border-radius: 0px 10px 0px 0px;
}

.curvedRightLowerAngle {
    border-radius: 0px 0px 10px 0px;
}

.clickable {
    cursor: hand;
    cursor: pointer;
}

.frontElement {
    background-color: dimgray;
    color: white;
}

.bg {
    position: absolute;
    z-index: 1;
}

.dr {
    z-index: -1;
    position: absolute;
    bottom: 0;
    right: 0;
}

.ul {
    position: absolute;
    top: 0;
    left: 0;
}

.debugBorder {
    border-style: solid;
    border-width: 5px;
}

.banner .IMGBox {
    position: relative;
    z-index: 2;
    height: 100%;
}

.buttonContainer {
    z-index: 10;
    height: 100%;
    width: 350px;
    flex-direction: column;
    justify-content: space-around;
    align-items: flex-start;
    text-align: center;
    font-size: 20px;
    border-radius: 0px 10px 10px 0px;
    color: white;
}
.banner .button {
    background-color: dimgray;
    position: relative;
    height: 100%;
    width: 100%;
    flex-grow: 1;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    letter-spacing: 3px;
    transition: all 2s;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}
.button.moved {
    width: 500px;
    border-radius: 0px 10px 10px 0px;
    letter-spacing: 1em;
}

.startPage {
    width: 100vw;
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.page {
    position: relative;
    min-height: 500px;
    width: 100vw;
}

.pageTitle {
    z-index: 20;
    padding-left: 20px;
    color: whitesmoke;
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    text-decoration: none;
    text-shadow: 2px 2px #303030;
    align-self: flex-start;
    position: -webkit-sticky;
    position: sticky;
}

.pageBackground {
    z-index: -1;
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100vw;
    flex-direction: column;
    -webkit-filter: blur(4px);
    filter: blur(4px);
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.leftPageBox {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.8);
}

.rightPageBox {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background-color: rgba(63, 63, 63, 0.8);
}

.pageIcon {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    /* margin: auto; */
}

.pageText {
    display: block;
    padding: 0px 20px 20px 20px;
    text-align: justify;
    color: white;
}

p {
    margin-top: 0px;
}

/*________________________ PC AND BIG SCREENS _______________________________________________________________________________*/

@media (min-device-width: 801px) {
    .page:not(.startPage) {
        height: 120vh;
    }
    .pageTitle {
        margin-top: 4vh;
        font-size: 10vh;
        top: 0px;
    }
    .homeLink {
        z-index: 1;
    }
    .banner {
        padding-top: 100px;
        height: 500px;
    }
    .banner .IMGBox {
        width: 50vw;
        min-width: 600px;
        max-width: 900px;
    }
    .slide {
        display: flex;
        flex-direction: column;
        justify-content: center;
        transition-property: opacity, background-position;
        transition-duration: 500ms, 3s;
        transition-timing-function: linear, ease;
        position: absolute;
        background-size: cover;                
        height: 100%;
        width: 100%;
    }    
    .slide .title {
        display: none;
    }
    .slide .text {
        border-radius: 0px 0px 0px 10px;
        font-size: 20px;
        box-sizing: border-box;
        position: absolute;
        bottom: 0px;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.6);
        text-align: left;   
        color: whitesmoke;
        padding: 20px;
    }
    .pageBackground {
        height: 120vh;
        min-height: 500px;
        background-repeat: no-repeat;
    }
    .leftPageBox {
        position: absolute;
        left: 0px;
        bottom: 0px;
        width: 50%;
        height: 100vh;
    }
    .rightPageBox {
        position: absolute;
        right: 0px;
        bottom: 0px;
        width: 50%;
        height: 100vh;
        justify-content: space-around;
    }
    .pageIcon {
        justify-content: space-around;
    }
    .icona1, .icona2, .freccia {
        width: 10vw;
        transition: all 1s;
    }
    .pageText {
        font-size: 1.7vw;
        margin-right: 5vw;
    }
}

/*________________________ MOBILE AND SMALL SCREENS _______________________________________________________________________________*/

@media (max-device-width: 800px) {
    .page:not(.startPage) {
        height: 100vh;
        width: 100vw;
    }
    .pageBackground {
        height: 100vh;
        background-position: center;
    }
    .pageTitle {
        width: 100%;
        text-align: center;
        top: 80px;
    }
    .banner {
        width: 80vw;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .IMGBox {
        width: 100%;
        height: 50vh;
        display: flex;
        flex-direction: column;
        justify-content: space-evenly;
    }
    .slide {        
        width: 100%;
        position: relative;
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center;
        transition: all 4s;
        transition-timing-function: ease-in-out;
    }
    .slide .title {
        z-index: 20;
        color: whitesmoke;
        font-family: 'Montserrat', sans-serif;
        font-weight: bold;
        text-shadow: 4px 4px 10px #303030;
        text-align: center;
        top: 0px;
        right: 20px;
    }
    .slide .text {
        position: absolute;
        box-sizing: border-box;
        bottom: 0px;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.6);
        text-align: left;   
        color: whitesmoke;
        padding: 20px;
        transition: all 2s;
        transition-timing-function: ease-in-out;
        transition-delay: 1s;
    }
    .buttonContainer {
        display: none;
    }
    .pageIcon {
        box-sizing: border-box;
        justify-content: space-evenly;
    }
    .icona1, .icona2, .freccia {
        z-index: 1;
        opacity: .5;
    }
    .freccia {
        height: 5vh;
    }
    .pageText {
        z-index: 2;
        font-size: 1.7vh;
        margin: 10px;
    }
    @media (orientation: portrait) {
        .banner {
            height: 50vh;
        }
        .page:not(.startPage) {
            flex-direction: column;
        }
        .pageTitle {
            font-size: 70px;
            top: 80px;
        }  
        .slide .title {
            font-size: 70px;
        }
        .slide .text {
            font-size: 35px;
        }
        .pageBackground {
            height: 100vh;
            background-position: center;
            background-repeat: repeat;
        }
        .leftPageBox {
            width: 100vw;
            height: 50vh;
        }
        .rightPageBox {
            width: 100vw;
            height: 50vh;
            justify-content: space-around;
        }
        .icona1, .icona2, .freccia {
            height: 10vh;
        }  
    }
    @media (orientation: landscape) {
        .banner {
            height: 80vh;
        }
        .pageTitle {
            font-size: 50px;
            top: 40px;
        }
        .slide .title {
            font-size: 50px;
        }
        .slide .text {
            font-size: 15px;
        }
        .pageBackground {
            z-index: -1;
            position: absolute;
            top: 0px;
            left: 0px;
            height: 100vh;
            /* min-height: 500px; */
            width: 100vw;
            -webkit-filter: blur(4px);
            filter: blur(4px);
            /* background-attachment: fixed; */
            background-position: center;
            background-repeat: repeat;
            /* background-size: cover; */
        }
        .leftPageBox {
            position: absolute;
            left: 0px;
            bottom: 0px;
            width: 50%;
            height: 100vh;
        }
        .rightPageBox {
            position: absolute;
            right: 0px;
            bottom: 0px;
            width: 50%;
            height: 100vh;
            justify-content: space-around;
        }
        .pageIcon {
            flex-grow: 2;
            justify-content: space-evenly;
        }
        .icona1, .icona2 {
            height: 20vh;
        }
        .freccia {
            height: 10vh;;
        } 
        .pageText {
            font-size: 18px;
        }
    }
}

@media (hover: hover) {
    .banner .button:before {
        content: "";
        position: absolute;
        width: 99.5%;
        height: 5px;
        bottom: 0;
        left: 0;
        background: linear-gradient(45deg, rgba(0, 200, 0, 1) 0%, rgba(0, 100, 254, 1) 100%);
        visibility: hidden;
        transform: scaleX(0);
        transition: .25s linear;
        border-radius: 0px 0px 10px 0px;
    }
    .banner .button:hover:before {
        visibility: visible;
        transform: scaleX(1);
    }
}

@media (hover: none) {
    .ul {
        z-index: -1;
    }
}

p {
    margin: 0px;
}

