/*Stylesheet for the download area*/
.hidden{
    display: none;
}
.parent-term {
    user-select: none;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}
.parent-term-label.has-children:after {
    content: " "; /* Down arrow */
    transition: transform 0.2s;
    display: inline-block;
    background-image: url('/wp-content/uploads/2025/04/dropdown.svg');
    background-size: contain;
    width: 13px;
    height: 20px;
    background-position: center;
    background-repeat: no-repeat;
}
.parent-term-label.has-children.active:after {
    transform: rotate(-180deg); /* Up arrow when open */
}
.child-terms {
    margin-top: 0.5rem;
    cursor: pointer;
}
.child-terms .block{
    display: flex;
    width: 100%;
    padding-left: 10px;
    font-size: 16px;
    margin-bottom: 10px;
    align-items: center;
    gap: 6px;
    padding-right: 10px;
}
@keyframes pulse {
    0%, 100% {
      opacity: 1;
    }
    50% {
      opacity: 0.2;
    }
}
.animate-pulse {
    animation: pulse 1.5s infinite;
}
.skeleton-loader,.download-grid{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    grid-column-gap: 15px;
}
.download-grid .download-area-item{
    margin-bottom: 30px;
}
.download-area-item{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
	position: relative;
}
.skeleton-loader .skeleton-item{
    height: 250px;
    background-color: rgba(0,0,0,0.2);
    margin-bottom: 15px;
    border-radius: 5px;
}
.d-area-item-image{
    height: 200px;
    width: 100%;
    object-fit: contain;
    background-color: #D2D2D2;
}
.d-area-item-date{
    font-size: 10px;
    text-transform: uppercase;
    margin-bottom: 7.5px;
}
.d-area-item-title{
    font-weight: 500;
    font-size: 18px;
    line-height: 1.2;
    margin-bottom: 15px;
}
.download-button{
    font-size: 16px;
}
#area-buttons{
    padding: 30px 5%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}
#area-buttons button{
    padding: 8px 40px;
    border: 0.5px solid var(--brand-dove);
    border-radius: 50px;
    background-color: var(--brand-dove);
    font-size: 16px;
    cursor: pointer;
}
#area-buttons button.selected{
    background-color: var(--black) !important;
    border-color: var(--black) !important;
    color: #fff;
}
.download-area-main{
    padding: 0 5%;
}
.right-filters{
    padding-top: 30px;
}
.left-downloads{
    padding: 30px 0 0 30px;
}
@media screen and (min-width: 1025px){
    .download-area-main{
        display: grid;
        grid-template-columns: 1fr 3.5fr;
    }
    .right-filters{
        border-right: 1px solid rgba(0,0,0,0.1);
    }
}
.download-search-input{
    border-radius: 8px !important;
    border: 0.5px solid rgba(0,0,0,0.3) !important;
    padding: 8px !important;
    width: 100% !important;
    margin-bottom: 40px !important;
    display: block !important;
}
.area-title{
    font-size: 32px;
    font-weight: 500;
    display: inline-block;
    margin-right: 10px;
    margin-bottom: 30px;
}
#download-count{
    opacity: .5;
}
.filter-title{
    font-size: 22px;
    margin-bottom: 15px;
}
.mb-2{
    margin-bottom: 15px;
    padding-right: 15px;
}
.mb-2 span{
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: calc(100% - 30px);
}
.filter-accordions{
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}
.filter-buttons{
    margin-top: 20px;
}
#reset-filters{
    padding: 6px 30px;
    border: 0.5px solid var(--black);
    border-radius: 50px;
    background-color: transparent;
    font-size: 15px;
    cursor: pointer;
    line-height: 20px;
}
.download-button .button-text{
    display: inline-block;
    margin-right: 8px;
}
.downloading #dicon{
    display: none !important;
}
@media screen and (max-width: 1024px){
    .left-downloads{
        padding-left: 0;
    }
}
@media screen and (max-width: 767px){
    #area-buttons{
        display: block;
    }
    #area-buttons button{
        display: inline-block;
        margin: 0 10px 10px 0;
    }
}
input[name="tipologia[]"]{
    height: 18px;
}
#download-error-modal .download-modal-inner{
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 450px;
    padding: 50px 20px;
    width: 90%;
    margin: 0 auto;
    background-color: #fff;
}
#dowload-error-modal .bg-white.rounded-xl{
    position: relative;
}
#close-modal{
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    position: absolute;
    top: 0;
    right: 10px;
}
#dowload-error-modal h2{
    margin-top: 15px;
}
#download-error-modal{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}
.copy-path-button{
	padding-left: 0 !important;
	padding-right: 0 !important;
}
.download-file-path{
	position: absolute;
	top: 5px;
	left: 5px;
	padding: 5px;
	border-radius: 5px;
	background: #fff;
}