@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500&family=Frank+Ruhl+Libre:wght@300&family=Lora&family=Martel:wght@200&family=Montserrat:wght@300;400;700&family=Noto+Serif+JP:wght@200&family=Noto+Serif+TC:wght@200&family=Playfair+Display:ital@0;1&family=Prata&family=Vollkorn:ital@1&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

html{
    font-size: 18px;
    font-family: 'Montserrat', sans-serif;
}

body{
    min-height: 100vh;
    overflow-x: hidden;
}

header{
    position: relative;
    height: fit-content;
    width: 100%;
    padding: 46px 5% 50px 5%;
    z-index: 1;
}

.navbar_computer{
    width: 100%;
    height: fit-content;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.logo{
    height: 40px;
    margin-right: auto;
}

.logo img{
    height: 100%;
    width: auto;
}

.menu{
    list-style: none;
}

.menu li{
    display: inline;
    float: left;
}

.menu li a{
    padding: 6px 16px;
    margin: 0 10px;
    text-decoration: none;
    color: #fff;
    border-radius: 20px;
}
.menu li a:hover{
    transition: background-color .5s ease;
    background-color: #b21005;
    color: #fff;
}
.menu li a.active{
    background-color: #b21005;
    color: #fff;
}

.navbar-list i{
    transition: 0.3s;
}
.navbar-list i.open{
    transform: rotate(-180deg);
}

.navbar-list .list {
    position: absolute;
    width: fit-content;
    height: 0;
    margin-top: 20px;
    padding: 0 10px 0 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(25px);
    border-radius: 10px;
    transition: height 0.2s ease;
    overflow: hidden;
    z-index: -1;
}
.navbar-list .list.open{
    height: 136px;
    padding: 12px 10px 12px 10px;
    animation: discoverlist 0.2s linear forwards;
}
.navbar-list .list.open::before{
    position: absolute;
    content: '';
    top: -32px;
    left: 35px;
    border: 16px solid transparent;
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.about-us-list .list.open{
    height: 97px;
    padding: 12px 10px 12px 10px;
    animation: discoverlist 0.2s linear forwards;
}

@keyframes discoverlist{
    80%{
        overflow: visible;
    }
    100%{
        overflow: visible;
    }
}

.navbar-list .list li{
    display: block;
    float: none;
    width: 100%;
    margin:0 0 5px 0;
}

.navbar-list .list li a{
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    text-shadow: 0 0 5px #000;
}

.navbar-list .list li.download a{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.language-menu {
    position: relative;
    width: 31px;
    height: 31px;
    margin-left: 26px;
}

.option-selected{
    width: auto;
    height: 100%;
    float: right;
    cursor: pointer;
}
.option-selected:hover {
    box-shadow: 10px 10px 50px rgba(0, 0, 0, 0.5);
}

.language-options {
    list-style: none;
    position: absolute;
    width: 31px;
    height: 0px;
    right: 0;
    margin: 51px 0px;
    overflow: hidden;
    display: flex;
    flex-flow: column;
    align-items: center;
    justify-content: flex-start;
    transition: height 0.2s ease;
    gap: 8px;
}
.language-options.open{
    height: 100px;
}

.language-options li {
    width: 100%;
    height: 31px;
    cursor: pointer;
}

.language-options .italian-flag {
    background-image: url(images/italy-flag-icon.png);
    background-size: cover;
}
.language-options .italian-flag.active {
    opacity: 0.5;
}

.language-options .english-flag {
    background-image: url(images/uk-flag-icon.png);
    background-size: cover;
}
.language-options .english-flag.active {
    opacity: 0.5;
}

.navbar_smartphone{
    display: none;
}

body{
    background-color: #28282B;
}

h1{
    position: relative;
    width: 100%;
    margin-top: 30px;
    text-align: center;
    font-size: 4rem;
    color: #fff;
}

.team{
    display: flex;
    width: 100%;
    height: fit-content;
    align-items: center;
    justify-content: center;
}

.team-components{
    display: flex;
    position: relative;
    width: 100%;
    flex-direction: column;
    max-width: 1450px;
    margin: 90px 6% 0 6%;
    gap: 80px;
}

.box{
    display: grid;
    grid-template-columns: 350px auto;
    width: 100%;
    height: fit-content;
    min-height: 350px;
    padding: 30px 30px 30px 30px;
    gap: 50px;
    box-shadow: 20px 20px 50px rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.box.reverse{
    grid-template-columns: auto 350px;
}

.box .image{
    height: 100%;
    width: 100%;
    border-radius: 10px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0;
}

.box.show .image {
    opacity: 1;
    transition: opacity 0.8s ease;
}

.box .image1{
    background-image: url("images/pietro.webp");
}

.box .image2{
    background-image: url("images/Gabri.webp");
}

.box .image3{
    background-image: url("images/patrizia.webp");
}

.box .image4{
    background-image: url("images/nicola.webp");
}

.box .image5{
    background-image: url("images/ale.webp");
}

.box .image6{
    background-image: url("images/Stefano\ Ghezzi-cut.webp");
}

.box .description{
    display: flex;
    flex-direction: column;
}

.box h3{
    width: fit-content;
    font-size: 2.1rem;
    color: #fff;
    margin-bottom: 2px;
    transition: opacity 0.5s linear;
    opacity: 0;
}

.box h4{
    width: fit-content;
    font-size: 1.5rem;
    color: #b7b4bb;
    letter-spacing: 2px;
    transition: opacity 0.5s linear;
    opacity: 0;
}

.box p{
    width: 100%;
    margin-top: 25px;
    color: #fff;
    text-align: justify;
    transition: opacity 1s ease 0.3s;
    opacity: 0;
}

.box.show h3, .box.show h4, .box.show p{
    opacity: 1;
}

footer{
    background: #151515;
    padding: 20px;
    text-align: center;
    margin-top: 130px;
}

footer p{
    color: #fff;
}

@media (max-width: 1100px){

    .menu li a{
        margin: 0 5px;
    }

    .language-menu{
        margin-left: 21px;
    }

    .navbar-list .list.open::before{
        left: 30px;
    }
}

@media (max-width: 1050px){

    .menu li a{
        margin: 0 3px;
    }

    .language-menu{
        margin-left: 12px;
    }

    .navbar-list .list.open::before{
        left: 30px;
    }
}

@media (max-width: 991px){

    header{
        padding-top: 30px;
    }

    .navbar_computer{
        display: none;
    }

    .navbar_smartphone{
        display: flex;
        width: 100%;
        height: fit-content;
        justify-content: space-between;
        align-items: center;
    }

    .togglebtn{
        display: flex;
        color: #fff;
        cursor: pointer;
        font-size: 35px;
        width: 31px;
        justify-content: center;
    }
    
    .dropdown_menu{
        position: absolute;
        right: 5%;
        top: 94px;
        width: 300px;
        max-height: 0;
        overflow: hidden;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        border-radius: 10px;
        transition: max-height 0.2s ease;
    }
    .dropdown_menu.open{
        height: fit-content;
        max-height: 517px;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .dropdown_menu ul{
        position: relative;
        display: block;
        width: 100%;
        list-style: none;
    }

    .dropdown_menu ul li.dropdown_navbar{
        padding: 0;
    }

    .dropdown_menu ul li.dropdown_navbar label{
        padding: 8px 20px;
    }
    .dropdown_menu ul li.dropdown_navbar label.active{
        background-color: #b21005;
    }

    .dropdown_menu ul li.dropdown_navbar ul li{
        padding: 8px 50px;
    }

    .dropdown_menu li ul.dropdown_list{
        height: 0;
        overflow: hidden;
        transition: height 0.2s ease;
    }
    .dropdown_menu li ul.dropdown_list.open{
        height: 138px;
    }

    .dropdown_menu .dropdown_about_us ul.dropdown_list.open{
        height: 92px;
    }

    .dropdown_menu ul li{
        padding: 8px 20px;
        line-height: 40px;
        color: white;
        cursor: pointer;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    .dropdown_menu ul li.active{
        background-color: #b21005;
    }

    .dropdown_menu ul li label{
        color: white;
        font-size: 18px;
        display: block;
        cursor: pointer;
    }

    .dropdown_menu ul li a{
        color: white;
        text-decoration: none;
        font-size: 18px;
        display: block;
        text-shadow: 0 0 5px #000;
    }

    .dropdown_menu ul ul{
        position: static;
    }

    .dropdown_menu ul ul li{
        line-height: 30px;
        padding-left: 30px;
        border-bottom: none;
    }

    .dropdown_menu ul ul li.download a{
        display: flex;
        align-items: center;
    }

    .dropdown_menu ul ul li.download a i{
        padding: 0;
        margin-top: 0;
        margin-left: 20px;
        font-size: 17px;
        float: auto;
    }

    .dropdown_menu ul ul li a{
        font-size: 17px;
    }

    .dropdown_menu ul li i{
        padding: 0 10px;
        margin-top: 10px;
        font-size: 20px;
        float: right;
        transition: 0.3s;
    }

    .dropdown_menu ul li i.rotate{
        transform: rotate(-180deg);
    }

    .logo{
        height: 35px;
        margin: auto;
    }

    .language-menu{
        margin-left: 0;
        height: 35px;
        width: 35px;
        gap: 10px;
    }

    .language-options{
        margin-top: 61px;
        width: 35px;
    }

    .language-options li{
        height: 35px;
    }

    h1 {
        font-size: 3.5rem;
        margin-top: 10px;
    }
    
    .box{
        grid-template-columns: 300px auto;
        width: 100%;
        height: fit-content;
        padding: 25px 25px 25px 25px;
        gap: 30px;
    }
    
    .box.reverse{
        grid-template-columns: auto 300px;
    }
    
    .box .image{
        min-height: 289px;
    }
    
    .box h3{
        font-size: 1.8rem;
    }
    
    .box h4{
        font-size: 1.2rem;
    }
    
    .box p{
        margin-top: 20px;
    }

}

@media (max-width: 767px), (max-height: 370px){

    header{
        padding-top: 25px;
    }

    .dropdown_menu{
        transform-origin: 0 100%;
        left: 0%;
        top: 84px;
        width: 100%;
        max-height: 100dvh;
        height: 100dvh;
        overflow: hidden;
        transition: transform .3s ease;
        transform: scaleY(0);
    }
    .dropdown_menu.open{
        max-height: 100dvh;
        height: 100dvh;
        transform: scaleY(1);
    }

    .dropdown_menu ul {
        display: flex;
        flex-direction: column;
        height: calc(100dvh - 84px);
    }

    .dropdown_menu ul li {
        flex-basis: 14%;
        overflow: hidden;
        transition: none;
    }

    .dropdown_menu ul li.open {
        flex-basis: 44%;
    }

    .dropdown_menu ul .dropdown_about_us.open {
        flex-basis: 35.5%;
    }

    .dropdown_menu ul li a{
        display: flex;
        align-items: center;
        height: 100%;
    }

    .dropdown_menu ul li label{
        display: flex;
        height: 100%;
        align-items: center;
        justify-content: space-between;
    }

    .dropdown_menu ul li label i{
        margin-top: 0;
    }

    .dropdown_menu ul li label i{
        margin-top: 0;
    }

    .dropdown_menu ul li.open label{
        height: 30%;
    }

    .dropdown_menu ul .dropdown_about_us.open label{
        height: 40%;
    }

    .dropdown_menu ul li.open ul.dropdown_list.open{
        height: 70%;
    }

    .dropdown_menu ul .dropdown_about_us.open ul.dropdown_list.open{
        height: 60%;
    }

    .dropdown_menu ul li.open ul.dropdown_list.open li{
        height: 33.3%;
    }

    .dropdown_menu ul .dropdown_about_us.open ul.dropdown_list.open li{
        height: 50%;
    }

    .logo{
        height: 28px;
        margin: auto;
    }

    h1 {
        width: 100%;
        font-size: 3rem;
        margin: 0;
        padding: 30px 5% 0 5%;
    }

    h2{
        font-size: 2rem;
        width: 80%;
        margin-top: 75px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .team-components{
        margin: 75px 6% 0 6%;
        gap: 60px;
    }
    
    .box{
        display: flex;
        flex-direction: column;
        width: 100%;
        height: fit-content;
        max-width: 480px;
        padding: 20px 20px 20px 20px;
        margin-left: auto;
        margin-right: auto;
        gap: 18px;
    }
    
    .box.reverse{
        flex-direction: column-reverse;
    }
    
    .box .image{
        height: 300px;
        width: 100%;
        min-height: 0;
    }
    
    .box h3{
        font-size: 1.6rem;
        margin-bottom: 2px;
    }
    
    .box h4{
        font-size: 1.3rem;
    }
    
    .box p{
        width: 100%;
        margin-top: 10px;
    }

    footer{
        margin-top: 75px;
    }
    
}

@media (max-width: 440px){
    
    .box .image{
        height: 250px;
        width: 100%;
        min-height: 0;
    }
    
}

@media (max-height: 370px) {

    .dropdown_menu li a{
        font-size: 1rem;
    }

}
