.cards > ul {
    list-style: none;
	padding-left:0px; 
}

.card + .card {
    margin-top: 1.5rem;
}


@supports (display: grid) {
    
	.cards > ul {
        display: grid;
		grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
        grid-column-gap: 0.7rem;
        grid-row-gap:0.7rem;
    }
	
	.cards_col_1 > ul {
        display: grid;
		grid-template-columns: 1fr;
        grid-column-gap: 0.7rem;
        grid-row-gap:0.7rem;
    }
	
	.cards_col_2 > ul {
        display: grid;
		grid-template-columns: repeat(auto-fill, minmax(30rem, 1fr));
        grid-column-gap: 0.7rem;
        grid-row-gap:0.7rem;
    }
	
	.cards_col_3 > ul {
        display: grid;
		grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
        grid-column-gap: 0.7rem;
        grid-row-gap:0.7rem;
    }
	
	.cards_col_4 > ul {
        display: grid;
		grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
        grid-column-gap: 0.7rem;
        grid-row-gap:0.7rem;
    }
	

    .card + .card {
        margin-top: 0;
    }

}


/*CARD VERTICALI*/
.card { display: flex; flex-direction: column; position: relative; box-sizing: border-box; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; overflow: hidden;}

.card_Notizie{border:5px solid var(--cyan);}
.card_Notizie h3{color:var(--cyan); padding: 0;}
.card_Notizie .data {box-sizing:border-box; float: right; font-size: 0.6em; line-height: 2em; padding-right: 0.5em; font-weight: 500;}
.card_Notizie .desc { box-sizing:border-box; font-weight:bold; }

.card_Notizie_page{border:5px solid var(--cyan);  margin-bottom:20px; }
.card_Notizie_page h3{color:var(--cyan); padding: 0; font-size: 1em;}
.card_Notizie_page .data {background: var(--dark_gray);  position: absolute;  z-index: 10000; color: #fff; padding: 5px 10px; font-style: italic;}
.card_Notizie_page .desc { box-sizing:border-box; clear: both; font-size: 1em; }
.card_Notizie_page .card_text { order:1; padding: 0rem !important; text-align: center; box-sizing: border-box; flex: 1 0 auto; display: flex; flex-direction: column; margin: 0; margin-top: 10px!important;}
.card_Notizie_page .card_img {width:100%; text-align: center; height:100%; display: contents;  }
.card_Notizie_page .card_img img {height:180px;}

.card_Documento{border:5px solid var(--cyan);}
.card_Documento .tipo{ background-color:var(--cyan); color:var(--white); font-size:1.6em; padding-left:0.5rem; order: -1;}
.card_Documento h3{color:var(--cyan); padding: 0;}
.card_Documento .data {color:var(--white); box-sizing:border-box; float: right; font-size: 0.6em; line-height: 2em; padding-right: 0.5em; font-weight: 500;}
.card_Documento .desc { box-sizing:border-box; font-weight:bold; }

.card_Documento_page{border:5px solid var(--cyan); }
.card_Documento_page .tipo{ background-color:var(--cyan); color:var(--white); font-size:1.6em; padding-left:0.5rem; order: -1;}
.card_Documento_page h3{color:var(--cyan); padding: 0; font-size: 1em;}
.card_Documento_page .data {color:var(--white); box-sizing:border-box; float: right; font-size: 0.6em; line-height: 2em; padding-right: 0.5em; font-weight: 500;}
.card_Documento_page .desc { box-sizing:border-box; font-weight:bold;display: contents; font-size: 1em;}
.card_Documento_page .card_img {width:100%; text-align: center; height:100%; display: contents;  }
.card_Documento_page .card_img img {height:160px;}

.card_Rivista{border:5px solid var(--green);}
.card_Rivista .tipo{ background-color:var(--green); color:var(--white); font-size:1.6em; padding-left:0.5rem; order: -1}
.card_Rivista h3{color:var(--green);}
.card_Rivista .data {color:var(--white); box-sizing:border-box; float: right; font-size: 0.6em; line-height: 2em; padding-right: 0.5em; font-weight: 500;}
.card_Rivista .desc { box-sizing:border-box; font-weight:bold;}
.card_Rivista .card_img {margin:10px; overflow:hidden; position:relative; box-sizing: border-box;}
.card_Rivista .card_img img {width: 100%; padding: 0.5rem; box-sizing: border-box; object-fit: cover;position:absolute;top:-20px; height: auto;}

.card_Rivista_page{border:2px solid var(--green);}
.card_Rivista_page .tipo{ background-color:var(--green); color:var(--white); font-size:1.6em; order: -1}
.card_Rivista_page h3{color:var(--green);}
.card_Rivista_page .data {color:var(--white); box-sizing:border-box; float: right; font-size: 0.6em; line-height: 2em; padding-right: 0.5em; font-weight: 500;}
.card_Rivista_page .desc { padding: 0em 0.5em 0em 0.5em ; box-sizing:border-box; font-weight:bold; display:none;  }
.card_Rivista_page .card_img {height: auto; text-align: center; margin-bottom:5px; }
.card_Rivista_page .card_img img {padding: 0px; width:50%; border:1px solid var(--green); box-sizing:border-box; }
.card_Rivista_page .doc_icona{width: 24px; float: right; padding: 0px;}

.card_Eventi{border:5px solid var(--cyan);}
.card_Eventi .tipo{ background-color:var(--cyan); color:var(--white); font-size:1.6em; padding-left:0.5rem; order: -1;}
.card_Eventi h3{color:var(--cyan); padding: 0;}
.card_Eventi .data {color:var(--white); box-sizing:border-box; float: right; font-size: 0.6em; line-height: 2em; padding-right: 0.5em; font-weight: 500;}
.card_Eventi .desc { box-sizing:border-box; font-weight:bold; }

.card_Eventi_page{border:5px solid var(--cyan); }
.card_Eventi_page .tipo{ background-color
    :var(--cyan); color:var(--white); font-size:1.6em; padding-left:0.5rem; order: -1;}
.card_Eventi_page h3{color:var(--cyan); padding: 0; font-size: 1em;}
.card_Eventi_page .data {color:var(--white); box-sizing:border-box; float: right; font-size: 0.6em; line-height: 2em; padding-right: 0.5em; font-weight: 500;}
.card_Eventi_page .desc { box-sizing:border-box; font-weight:bold;display: contents; font-size: 1em;}
.card_Eventi_page .card_img {width:100%; text-align: center; height:100%; display: contents;  }
.card_Eventi_page .card_img img {height:160px;}

.card_document {/*border:2px solid var(--light_gray);*/ flex-direction: column;}
.card_document h3{}
.card_document .data { background-color:var(--light_gray);  box-sizing:border-box; line-height: 2em; padding-left: 0.5em; float:left; font-weight: 500; order: -2}
.card_document .sottotitolo {float:left; font-weight: 500; font-style:italic;  order: -1}
.card_document .fonte { box-sizing:border-box; float: right; text-align: right; font-style: italic; font-size: 0.9em; border-top: 1px solid var(--grey); line-height: 2em; padding-right: 0.5em; font-weight: 500; }
.card_document .doc_icona{width:100px; padding:10px; float:left;  float: left; border:1px solid var(--light_gray); margin-right: 10px;}

.card_document .card_content {padding: 0.3rem; box-sizing: border-box; flex: 1 0 auto; display: flex; flex-direction: row; margin: 0; }
.card_document .card_text { order:1; padding: 0rem !important; box-sizing: border-box; flex: 1 0 auto; display: flex; flex-direction: column; margin: 0; width:70%; }
.card_document .card_img {order:-1; display:flex;height: auto; text-align: center; margin: 0px; }
.card_document .card_img img {display: block; max-width:80px; max-height: 80px;}

.card_evidenza {border:2px solid var(--cyan) !important;}
.card_evidenza .data{background:var(--cyan); color:var(--white); }
.card_evidenza h3{color:var(--cyan); }

.card_puls_content{overflow:hidden; display:block; border-bottom:5px solid var(--blue); border-radius: 5px 5px 2px 5px; -webkit-border-radius: 5px 5px 2px 5px; margin-bottom:20px; margin-top:20px; }

.card_puls_on {background-color: var(--blue) !important;color: var(--white) !important; float: left; height: 20px; width: max-content; padding: 10px; cursor: pointer; font-weight: 500; -webkit-border-radius: 5px 5px 0px 0px; border-radius: 5px 5px 0px 0px; margin-right: 1px;}
.card_puls_off {background-color: var(--light_gray) !important;color: var(--blue) !important;  float: left; height:20px; width: max-content; padding:10px 10px 10px 10px; cursor: none; font-weight: 500; -webkit-border-radius: 5px 5px 0px 0px; border-radius: 5px 5px 0px 0px; margin-right: 1px;}
/*.card_document .doc_icona{width:24px; padding: 0px; float: right;}*/

.card_Content {flex-direction: row !important;}
.card_Content h3{ font-weight:500;  font-size: 1.6em; text-transform: uppercase;}
.card_Content .desc { box-sizing:border-box; font-size: 1.1em; }
/*.card_Content:nth-child(odd) .desc { order:-1; }  */  /*order:-1; sposta testo in alto */

.card .card_text {padding: 2.3rem; box-sizing: border-box; flex: 1 0 auto; display: grid; flex-direction: column; margin: 0; margin-top: 30px;}
.card .card_text > * + * {margin-top: 0rem;}

.card_img {height:30rem;}
.card_img img {width: 100%; height: 100%; padding:0rem; box-sizing: border-box; object-fit: cover; }

.card_img_box {height:30rem;border: 0px; padding: 0px !important;}
.card:nth-child(odd) .card_img_box { order:-1;  /* sposta immagine in alto */}
.card_img_box img {width: 100%; height: 100%;box-sizing: border-box; object-fit: cover;}

.card_linkable {cursor:pointer;}


/*FOCUS*/
.card_text {/*border:3px solid var(--white);  */}
.card_text:focus-within {border:3px solid var(--focus);	box-sizing: border-box;}
.card:focus-within h3 a:focus {text-decoration: none; box-sizing: border-box;}
.card_text a:focus {border-color: var(--focus) !important; box-shadow: 0 0 0 0px var(--focus) !important; outline: none !important;	}

.card_black{width: 50%; color:#fff !important}
.card_black h2 {color:#fff !important}
.card_img_black{position: relative;   width: 50%;  float: left;  margin-bottom: 5px;  overflow: hidden;}

.card small {display: block;}
.card small a {position: relative; padding: 0.5rem 0.5rem 0.5rem 0;}
.card small a:hover,
.card small a:focus {font-weight: bold;}

/*CARD LATERALI*/
.card_Side {display: flex; border:2px solid var(--light_gray); box-sizing: border-box; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; border-radius: 5px 5px 5px 5px; overflow: hidden; }
.card_Side h3{  display: block;}
.card_Side .card_text { order:1; padding: 0.3rem; box-sizing: border-box; flex: 1 0 auto; display: flex; flex-direction: column; margin: 0; width:70%}
.card_Side .card_img {order:2; display:contents;height: auto; text-align: center;  }
.card_Side .card_img img {width:200px!important; padding:10px; box-sizing: border-box;}
.card_Side .doc_icona{width: 24px; float: right; padding: 0px;}


.card_news{padding: 0px; text-align: center;}
.card_news_img{height: 20rem; padding: 0px;}
.card_news .card_text {padding:0rem; box-sizing: border-box; flex: 1 0 auto; display: grid; flex-direction: column; margin: 0; margin-top:10px; margin-bottom:10px;  }
.card_news .card_text > * + * {margin-top: 0rem;}
.card_divided {width: 50%;}


@media (max-width: 768px) {

    .cards_col_2 > ul{
        grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
    }

    .card_Rivista .card_img img{    
        position: absolute;
        top: 0px !important;
        height: 100% !important;
    }
    .card:nth-child(2n+1) .card_img_box{order: 0}
    
    .card .card_text{padding:0.3rem; margin-top: 0px;clear: both; }
    .card_img_box {clear: both;}


/*    .card{display: contents;}*/
    .card_img {height:15rem;}
    .card_img_box{height:15rem;}

    .card_black{clear: both; width: 100%}
    .card_img_black{clear: both; width: 100%}

    .card_divided {clear: both; width: 100%}
    .card_img_divided {clear: both; width: 100%}

.card{display: block;}
    /*.cards > ul {
        grid-gap: 4.5rem;
    }*/
}