/****************************************

	MercatinoTicino - stile della pagina tutte le categorie (categories.php, /categorie, dopo styleDEV.css)

	@copyright: IPELWEB
	@author: Ilario Pellandini
	@updated: 2026-10-28

****************************************/

/* riquadri: 3 per riga, su tablet 2, su telefono 1 - icona come in home, a destra nome, quanti annunci e descrizione */

.iw_cats {
	display: grid;
	grid-template-columns: repeat( 3, minmax( 0, 1fr ) );
	gap: 20px;
}

.iw_cats_item {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 20px;
	text-decoration: none;
	color: var(--iw-text);
	background: #fff;
	border: 1px solid var(--iw-border);
	border-radius: var(--iw-radius);
	transition: border-color .15s, box-shadow .15s;
}

.iw_cats_item:hover {
	border-color: var(--iw-blue);
	box-shadow: var(--iw-shadow);
}

.iw_cats_icon {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	color: var(--iw-blue);
	background: #edf2f7;
	border-radius: 50%;
	transition: background-color .15s, color .15s;
}

.iw_cats_icon .iw_icon {
	width: 24px;
	height: 24px;
	stroke-width: 1.6;
}

.iw_cats_item:hover .iw_cats_icon {
	color: #fff;
	background: var(--iw-blue);
}

.iw_cats_text {
	min-width: 0;
	font: 300 15px/1.5 var(--iw-font);
	color: var(--iw-muted);
}

.iw_cats_text strong {
	display: block;
	font: 700 18px/1.3 var(--iw-font-title);
	color: var(--iw-text);
}

.iw_cats_text small {
	display: block;
	margin: 2px 0 8px;
	font-size: 14px;
	font-weight: 400;
	color: var(--iw-blue);
}

@media ( max-width: 991.98px ) {
	.iw_cats {
		grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
	}
}

@media ( max-width: 575.98px ) {
	.iw_cats {
		grid-template-columns: minmax( 0, 1fr );
		gap: 12px;
	}
	.iw_cats_item {
		padding: 16px;
	}
}
