/* ItaliaWP2 Allegati - stili frontend, autonomi (non dipendono dal contenitore del tema) */

.iwp2-allegati {
	margin: 24px 0;
}

.iwp2-allegati__titolo {
	margin-bottom: 16px;
}

.iwp2-allegati__griglia {
	display: flex;
	flex-wrap: wrap;
	margin: 0 -12px;
}

.iwp2-allegati__item {
	width: 100%;
	padding: 0 12px;
	margin-bottom: 24px;
}

@media (min-width: 768px) {
	.iwp2-allegati__item {
		width: 50%;
	}
}

.iwp2-allegati__card {
	display: flex;
	align-items: flex-start;
	height: 100%;
	padding: 16px 24px;
	background: #fff;
	box-shadow: 5px 5px 20px 0 rgba(0, 0, 0, 0.1);
	font-family: "Titillium Web", Geneva, Tahoma, sans-serif;
}

.iwp2-allegati__icon {
	flex: 0 0 auto;
	width: 24px;
	height: 24px;
	margin-right: 8px;
	fill: #003882;
}

.iwp2-allegati__testo {
	margin: 0;
	flex: 1 1 auto;
	min-width: 0; /* senza questo un flex item non si restringe sotto la larghezza del testo */
}

.iwp2-allegati__link {
	color: #003882;
	font-weight: 600;
	overflow-wrap: anywhere; /* consente di andare a capo anche in stringhe senza spazi (es. nomi file con underscore) */
	word-break: break-word;
}

.iwp2-allegati__meta {
	font-weight: 300;
	color: #4a4a4a;
	font-size: 0.889em;
}

.iwp2-allegati-sidebar a {
	overflow-wrap: anywhere;
	word-break: break-word;
}

.iwp2-allegati-sidebar small {
	font-weight: 300;
	color: #4a4a4a;
}
