@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;
}

.works-list i{
    transition: 0.3s;
}
.works-list i.open{
    transform: rotate(-180deg);
}

.works-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(2px);
    border-radius: 10px;
    transition: height 0.2s ease;
    overflow: hidden;
    z-index: -1;
}
.works-list .list.open{
    height: 136px;
    padding: 12px 10px 12px 10px;
    animation: discoverlist 0.2s linear forwards;
}
.works-list .list.open::before{
    position: absolute;
    content: '';
    top: -32px;
    left: 35px;
    border: 16px solid transparent;
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

@keyframes discoverlist{
    80%{
        overflow: visible;
    }
    100%{
        overflow: visible;
    }
}

.works-list .list li{
    display: block;
    float: none;
    width: 100%;
    margin:0 0 5px 0;
}

.works-list .list li a{
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
}

.works-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;
}* {
    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;
    margin-bottom: 90px;
    text-align: center;
    font-size: 4rem;
    color: #fff;
}

.grid{
    display: grid;
    width: 90%;
    min-height: 330px;
    margin: auto;
    grid-template-columns: repeat(auto-fit, 330px);
    grid-template-rows: repeat(auto-fit, 330px);
    gap: 80px;
    text-align: center;
    justify-content: center;
    align-items: center;
}

.grid .card{
    position: relative;
    width: 330px;
    height: 330px;
    box-shadow: 20px 20px 50px rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    cursor: pointer;
    opacity: 0;
    animation: discover 1s ease-out forwards;
    animation-delay: 0.5s;
    text-decoration: none;
}

@keyframes discover{
    100%{
        opacity: 1;
    }
}

.grid .card .number{
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.3rem;
    color: #fff;
    text-shadow: 0 0 10px #000;
    z-index: 10;
}

.grid .card .image-wrapper{
    display: flex;
    height: 100%;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    align-items: center;
    text-align: center;
    justify-content: center;
}

.grid .card .image-wrapper i{
    transform: translateY(-30px);
}

.grid .card .image{
    height: 100%;
    width: 100%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    transition: transform .5s;
}

.grid .card:hover .image{
    transform: scale(1.05);
}

.grid .card .intro{
    position: absolute;
    width: 100%;
    height: fit-content;
    bottom: 0px;
    padding: 10px 20px;
    overflow: hidden;
    border-radius: 0px 0px 5px 7px;
    z-index: 10;
    background-color: rgba(27, 27, 27, 0.95);
    color: #fff;
    transition: .4s;
}

.grid .card:hover .intro{
    max-height: 250px;
    background-color: rgba(27, 27, 27, 0.95);
    transition: .6s;
}

.grid .card .intro h3{
    margin-bottom: 2px;
    font-size: 1.3rem;
    text-align: left;
}

.grid .card .intro .location{
    margin-bottom: 10px;
    visibility: visible;
    opacity: 0.7;
    text-align: left;
    transition: .5s;
}

.grid .card .intro p{
    visibility: hidden;
    opacity: 0;
    text-align: left;
    transition: .5s;
}

.grid .card:hover .intro p{
    visibility: visible;
    opacity: 0.7;
}

.grid .separator{
    grid-column-start: 1;
    grid-column-end: auto;
    position: relative;
    width: 100%;
    margin: 50px 0 20px 0;

    text-align: center;
    font-size: 2.5rem;
    color: #fff;
}

section {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 130px auto;
}

.pagination {
    list-style: none;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(2px);
}

.pagination a, .moreBtn a{
    text-decoration: none;
    list-style: none;
}

.pagination li, .moreBtn li{
    margin: 0.25rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    color: #ededed;
}

.pagination a li, .moreBtn li{
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    transition: .4s;
}

.pagination a:hover li {
    border-color: #b21005;
}

.pagination a.active li, .moreBtn li{
    background-color: #b21005;
    border-color: #b21005;
    font-weight: 600;
    box-shadow: 0 0.1rem 0.5rem #b211056a;
}

.moreBtn {
    display: none;
}

footer{
    background: #151515;
    margin-top: 100px;
    padding: 20px;
    text-align: center;
}

footer p{
    color: #fff;
    display: hi;
}

@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: 30px;
    }

    .grid{
        gap: 70px;
        min-height: 300px;
        grid-template-columns: repeat(auto-fit, 300px);
        grid-template-rows: repeat(auto-fit, 300px);
    }
    
    .grid .card{
        width: 300px;
        height: 300px;
    }

}

@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{
        font-size: 3rem;
        max-width: 90%;
        margin-right: auto;
        margin-left: auto;
    }

    .grid .separator{
        font-size: 2rem;
    }

    section{
        margin: 95px auto;
    }

    .pagination {
        display: none;
    }

    .moreBtn {
        display: block;
    }

    .moreBtn li{
        padding: 20px 30px;
    }

}

@media (max-width: 430px){

    h1{
        font-size: 2.6em;
    }

}

@media (max-width: 360px){

    h1{
        font-size: 2.3em;
    }

}

@media (max-height: 370px) {

    .dropdown-menu li a{
        font-size: 1rem;
    }

}