/**************************
    RESET TXT DAL CRM
***************************/
.servizio_p p{
    max-width: 900px;
    width: 100%;
    margin: 0;
    text-align: justify;
    pointer-events: all;
}
.servizio_p p:not(.servizio_p p:last-child){
    padding-bottom: 2rem;
}
p > a,
.servizio_p > ul li a{
    text-decoration: underline;
    color: var(--bright_gold);
}
.servizio_p > ul{
    list-style: disc;
    text-align: justify;
    padding-bottom: 2rem;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
}
.servizio_p > ul li:not(.servizio_p > ul li:last-child){
    margin-bottom: 1rem;
}
.page_p p{
    max-width: 900px;
    width: 100%;
    text-align: justify;
}
.servizio_p > ol{
    text-align: justify;
    padding-bottom: 2rem;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
}
.servizio_p > ol li:not(.servizio_p > ol li:last-child){
    margin-bottom: 1rem;
}
/***********************
    ARTICLE
************************/
.space{
    margin-bottom: 3rem;
}
.article h2{
    color: var(--dark_gold);
    text-transform: uppercase;
    text-align: center;
    font-weight: 600;
    line-height: 2.3rem;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    margin-bottom: 3rem;
}
.article p{
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    text-align: justify;
    line-height: 1.5rem;
    pointer-events: all;
}
.article p:not(.article p:last-child){
    padding-bottom: 2rem;
}
p > a,
.article > ul li a{
    text-decoration: underline;
    color: var(--bright_gold);
}
.article > ul{
    list-style: disc;
    text-align: justify;
    padding-bottom: 2rem;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
}
.article > ul li:not(.article > ul li:last-child){
    margin-bottom: 1rem;
}
.article .img_wrapper{
    margin: 5rem 0;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}
.img_preview{
    width: calc((100% - 2rem * 2) / 3);
    aspect-ratio: 4 / 3;
    overflow: hidden;
    box-shadow: 0px 2px 2px 0px rgba(0, 0, 0, 0.25);
    cursor: pointer;
}
.img_preview img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* .img_preview{
    width: calc((100% - .5rem * 2) / 3);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 300px;
    max-height: 300px;
    box-shadow: 0px 2px 2px 0px rgba(0, 0, 0, 0.25);
    cursor: pointer;
} */
.news_data{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}
.news_date{
    padding-right: 5rem;
    font-size: 1.2rem;
    color: var(--dark_gray);
}
.news_date i{
    margin-right: 1rem;
}
.solo{
    display: flex;
    justify-content: flex-end;
    align-items: baseline;
    padding-right: 0;
}
.news_doc{
    width: 700px;
    height: 90px;
    background-color: var(--bordeaux);
    display: flex;
    justify-content: flex-start;
    align-items: center;
    color: var(--white);
    padding-left: 12%;
}
.news_doc h3{
    font-size: 22px;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 2px;
}
.allegati_row{
    margin-top: 3rem;
    margin-left: 10%;
    max-width: 500px;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 3rem;
}
.allegati_col{
    width: calc((100% - 3rem) / 2);
}
.allegati_col a{
    text-align: center;
}
.article_pdf{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    color: var(--bordeaux);
    font-weight: 700;
}
.article_pdf i{
    font-size: 2.5rem;
    margin-bottom: .5rem;
}
@media screen and (max-width: 1512px){
    .news_doc{
        padding-left: 16%;
    }
    .allegati_row{
        margin-left: 13%;
    }
}
@media screen and (max-width: 1194px){
    .article .img_wrapper{
        gap: 1rem;
        flex-wrap: wrap;
    }
    .article .img_wrapper .img_preview{
        width: calc((100% - 1rem) / 2);
    }
    .news_doc{
        width: 550px;
        height: 70px;
    }
    .news_doc h3{
        font-size: 20px;
    }
    .news_date{
        padding-right: 4rem;
    }
    .solo{
        padding: 0;
    }
}
@media screen and (max-width: 1024px){
    .news_doc{
        padding-left: 16%;
    }
    .allegati_row{
        max-width: 400px;
    }
}
@media screen and (max-width: 884px){
    .news_doc{
        padding-left: 0%;
        justify-content: center; 
    }
    .allegati_row{
        margin-left: 0%;
        justify-content: center; 
        align-items: center;
        max-width: none;
        width: 100%;
    }
    .news_data{
        flex-direction: column-reverse;
        justify-content: center;
        align-items: flex-end;
        gap: 3rem;
    }
    .article h2{
        font-size: 1.2rem;
        line-height: 2rem;
    }
    .article .img_wrapper{
        margin-bottom: 3rem;
    }
    .news_doc{
        width: 95%;
        margin: 0 auto;
        height: 50px;
    }
    .news_doc h3{
        font-size: 16px;
    }
    .news_date{
        padding-right: 2rem;
    }
    .solo{
        padding: 0;
    }
    .article_pdf{
        justify-content: center;
    }
    .article_pdf i{
        font-size: 2.3rem;
        margin-right: 1.1rem;
    }

}
@media screen and (max-width: 430px){
    .article .img_wrapper{
        gap: 2rem;
    }
    .article .img_wrapper .img_preview{
        width: 100%;
    }
    .article h2{
        font-size: 1rem;
        line-height: 1.5rem;
    }
}
/***********************
    MODALE IMG ARTICLE
************************/
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9); /* Background trasparente nero */
}
/* .modal-content {
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    min-height: 80vh;
    max-width: 85%;
    width: 100%;
    margin: 5rem auto;
    position: relative;
    text-align: center;
} */
 .modal-content{
    /* min-height: 80vh; */
    max-width: 85%;
    width: 100%;
    margin: 5rem auto;
    position: relative;
    text-align: center;
 }
 .modal-content img{
    width: 100%;
    height: 100%;
    object-fit: cover;
 }
.close{
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 40px;
    color: var(--white);
    font-size: 3rem;
    transition: 0.3s ease;
}
.close:hover{
    color: var(--bordeaux);
}
/* Stili per le frecce di navigazione */
.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    transition: 0.3s ease;
    user-select: none;
}

.prev {
    left: 40px;
}

.next {
    right: 40px;
}

.prev:hover,
.next:hover {
    color: var(--bright_gold);
}
/***********************
    MEDIA QUERY
************************/
@media screen and (max-width: 1200px){
    .prev {
        left: 20px;
    }
    
    .next {
        right: 20px;
    }
}
@media screen and (max-width: 1030px){
    .prev {
        left: 10px;
    }
    
    .next {
        right: 10px;
    }
}
@media screen and (max-width: 900px){
    .modal-content{
        margin-bottom: 3rem;
     }
     .frecce{
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
     }
    .prev,
    .next {
        cursor: pointer;
        position: static;
        top: auto;
        width: fit-content;
        padding: 0 50px;
    }
    .close{
        right: 5%;
    }
}    
@media screen and (max-width: 430px){
    .prev,
    .next {
        padding: 0 20px;
    }
}

