/**************************
    TOP GALLERY
***************************/
.dk_flex{
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: flex-start;
}
.dk_menu {
    width: 20%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 1.5rem;
}
.page_content{
    width: 80%;
}
.page_hero{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}
.page_hero_title{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.title_connection{
    padding: 0;
    margin: 3rem 0 3rem 0;
    width: fit-content
}
.page_description{
    max-width: 800px;
    width: 100%;
    text-align: justify;
    font-size: 18px;
    font-weight: 300;
    line-height: 2rem;
}
.space{
    height: 1rem;
    width: 100%;
}
.call_connection{
    margin-top: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 1.3rem;
}
.call_connection a{
    margin-top: 1rem;
}
.call_connection a svg circle{
    transition: all .3s linear;
}
.call_connection a:hover svg circle{
    fill: var(--green);
}
.gallery{
    width: 100%;
    margin-top: 3.5rem;
}
.grid_wrapper{
    display: grid;
    grid-gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-auto-rows: 200px;
    grid-auto-flow: dense;
}
.grid_wrapper .wide{
    grid-column: span 2;
}
.grid_wrapper .tall{
    grid-row: span 2;
}
.grid_wrapper .big{
    grid-column: span 2;
    grid-row: span 2;
}
.grid_wrapper div{
    cursor: pointer;
}
img{
    max-width: 100%;
    height: auto;
    vertical-align: middle;
    display: inline-block;
}
.grid_wrapper > div{
    display: flex;
    justify-content: center;
    align-items: center;
}
.grid_wrapper > div > img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}
.load_more{
    justify-self: center;
    grid-column: 1 / -1; /* Estende il figlio sull'intera larghezza della griglia */

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
}
.load_more button{
    border: none;
    outline: none;
    background: none;
    font-family: var(--txt_title);
    font-weight: 500;
    font-size: 18px;
    cursor: pointer;
}
.load_more svg path{
    transition: all .3s linear;
}
.load_more:hover svg path{
    fill: var(--green);
}
.wrapper{
    margin-bottom: 0;
}
.gallery_call{
    width: 100%;
    margin-top: 5rem;
    padding: 2.5rem 3rem;
    background-color: var(--logo);
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}
.gallery_call h2{
    color: var(--white);
    font-weight: 700;
    font-size: 38px;
    text-align: center;
}
.gallery_call_txt{
    font-family: var(--txt_title);
    max-width: 900px;
    width: 100%;
    font-size: 18px;
    line-height: 2rem;
}
.gallery_call_txt a{
    color: var(--tab_bg);
    font-weight: 600;
    text-decoration: underline;
}
.gallery_call ol{
    margin: 1rem 0;
}
.gallery_call ol li{
    font-size: 21px;
    line-height: 2.5rem;
}
.instruction{
    font-weight: 100;
    font-size: 18px;
}
.gallery_call_close{
    font-family: var(--txt_title);
    font-size: 26px;
    font-weight: 600;
    line-height: 3rem;
    text-align: center;
}
/**************************
    MODALE GALLERIA
***************************/
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    /* overflow: auto; */
    background-color: rgba(0, 0, 0, 0.7); /* Fondo nero semi-trasparente */
    backdrop-filter: blur(10px); /* Effetto di sfocatura */
}

.modal-content {
    margin: auto;
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}
.modal-content img{
    width: auto;
    max-height: 90vh;
    position: relative;
}
.modal-content .modal_txt{
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    color: var(--white);
    padding: 1rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.modal_txt h2{
    color: var(--white);
    font-size: 28px;
}
.modal_txt div span{
    font-weight: 200;
    font-size: 13px;
    /* color: var(--violet); */
}
.modal_txt p{
    padding: .8rem 0;
    line-height: 1.5rem;
    font-size: 15px;
}
.close {
    position: absolute;
    top: 20px;
    right: 40px;
    cursor: pointer;
}
.arrow-icon{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}
.arrow-icon:hover svg path{
    fill: var(--green);
}
.arrow-icon:active svg path{
    fill: var(--green);
}
.arrow-icon.left {
    left: 80px;
}
.arrow-icon.right {
    right: 80px;
}

/* MOBILE */
@media (max-width: 1130px){
    .dk_flex{
        flex-direction: column;
        justify-content: space-between;
        align-items: flex-start;
    }
    .page_hero{
        width: 100%;
        margin-top: 2rem;
        align-items: center;
    }
    .dk_menu{
        width: 100%;
    }
    .dk_menu .logo_dk{
        display: none;
    }
    .page_description{
        max-width: 700px;
        text-align: center;
        font-size: 1rem;
        line-height: 1.8rem;
    }
    .call_connection{
        margin-top: 1.3rem;
        justify-content: center;
        gap: 1rem;
    }
    .space{
        height: 1.5rem;
    }
    .grid_wrapper {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: auto;
    }
    .grid_wrapper > div {
        aspect-ratio: 1 / 1;
    }
    .gallery_call{
        margin-top: 3rem;
        padding: 3rem 2rem;
        gap: 2rem;
    }
    .gallery_call h2{
        max-width: 800px;
        width: 100%;
        font-size: 34px;
        line-height: 3.5rem;
    }
    .gallery_call_txt{
        max-width: 700px;
        font-size: 18px;
        line-height: 2rem;
    }
    .gallery_call ol{
        margin: 0;
    }
    .gallery_call ol li{
        font-size: 18px;
        line-height: 2.3rem;
    }
    .instruction{
        font-size: 1rem;
    }
    .gallery_call_close{
        font-size: 22px;
        line-height: 2.5rem;
    }
    .modal-content {
        max-height: 90vh;
        overflow-y: auto;
    }
    .modal-content img{
        max-height: none;
    }
    .modal-content .modal_txt{
        position: static;
        width: 100%;
        background-color: var(--black_logo);
        padding: 1rem 2rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .modal_txt h2{
        font-size: 20px;
    }
    .modal_txt div span{
        font-weight: 100;
    }
    .modal_txt p{
        font-size: 12px;
        line-height: 1.3rem;
        padding: 0;
        padding-top: .3rem;
    }
}
@media (max-width: 768px){
    .page_description{
        max-width: 600px;
    }
    .space{
        height: 1rem;
    }
    .gallery_call{
        padding: 2.5rem 2rem;
    }
    .gallery_call h2{
        max-width: 800px;
        width: 100%;
        font-size: 32px;
        line-height: 3rem;
    }
    .gallery_call_txt{
        max-width: 600px;
        font-size: 1rem;
        line-height: 1.8rem;
        text-align: center;
    }
    .gallery_call ol{
        margin: 1rem 0;
    }
    .gallery_call ol li{
        font-size: 1rem;
        line-height: 2rem;
        font-weight: 500;
    }
    .instruction{
        font-size: .85rem !important;
    }
    .gallery_call_close{
        font-size: 18px;
        line-height: 2.3rem;
    }
}
@media (max-width: 530px){
    .page_description{
        font-size: .95rem;
        line-height: 1.5rem;
    }
    .grid_wrapper {
        grid-template-columns: repeat(1, 1fr);
    }
    .gallery_call{
        padding: 2rem 1.5rem;
    }
    .gallery_call h2{
        max-width: 700px;
        font-size: 28px;
        line-height: 2.8rem;
    }
    .gallery_call_txt{
        font-size: .85rem;
    }
    .gallery_call ol{
        margin: .5rem 0;
    }
    .gallery_call ol li span{
        display: none;
    }
    .gallery_call_close{
        font-size: 1rem;
        line-height: 2rem;
    }
    .arrow-icon{
        display: none;
    }
    .modal-content {
        width: 90%;
        max-height: 80%;
    }
    .modal-content img{
        width: 100%;
        height: auto;
        max-height: none;
    }
}
@media (max-width: 430px){
    .gallery_call h2{
        max-width: 700px;
        font-size: 24px;
        line-height: 2.3rem;
    }
    .gallery_call_txt{
        text-align: justify;
        line-height: 1.5rem;
    }
    .gallery_call ol{
        margin: 0;
    }
    .gallery_call_close{
        font-size: .95rem;
        line-height: 1.8rem;
        text-align: left;
    }
}
@media (max-width: 375px){
    .gallery_call h2{
        font-size: 22px;
        line-height: 2rem;
    }
    .gallery_call_txt{
        font-size: .95rem;
        line-height: 1.5rem;
        text-align: left;
        font-weight: 400;
    }
    .gallery_call ol li{
        font-size: 1rem;
        font-weight: 600;
    }
    .gallery_call_close{
        font-size: 1rem;
        line-height: 1.8rem;
        text-align: center;
        font-weight: 500;
    }
}
@media (max-width: 320px){
    .page_hero{
        margin-top: 1rem;
    }
    .gallery_call_txt{
        font-size: .95rem;
        text-align: justify;
    }
    .gallery_call_close{
        font-size: .95rem;
        line-height: 1.5rem;
        text-align: justify;
        font-weight: 400;
    }
}

