/* === ICONA OFFERTA SINGOLA (shortcode e helper) === */

.co-offer-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	background: #f0ad4e;
	color: #fff;
	box-shadow: 0 3px 8px rgba(240,173,78,0.3);
}

.co-offer-badge i {
	color: #fff;
}

.co-offer-icon-small {
	width: 28px;
	height: 28px;
	font-size: 12px;
}

.co-offer-icon-medium {
	width: 38px;
	height: 38px;
	font-size: 16px;
}

.co-offer-icon-large {
	width: 52px;
	height: 52px;
	font-size: 22px;
	border-radius: 14px;
}

/* === FEED OFFERTE === */

.co-feed-wrap {
	max-width: 700px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Header */
.co-header {
	text-align: center;
	margin-bottom: 20px;
}

.co-title {
	font-size: 24px;
	font-weight: 700;
	color: #1D3A33;
	margin: 0 0 4px;
}

.co-title i {
	margin-right: 6px;
}

.co-subtitle {
	font-size: 14px;
	color: #888;
	margin: 0;
}

/* Tab categorie */
.co-cat-tabs {
	display: flex;
	gap: 6px;
	margin-bottom: 16px;
	flex-wrap: wrap;
}

.co-cat-tab {
	padding: 8px 14px;
	border: 2px solid #e0e0e0;
	background: #fff;
	border-radius: 20px;
	cursor: pointer;
	font-size: 13px;
	font-weight: 600;
	color: #666;
	transition: all 0.2s;
	display: flex;
	align-items: center;
	gap: 4px;
}

.co-cat-tab:hover {
	border-color: #1D3A33;
	color: #1D3A33;
}

.co-cat-tab.active {
	border-color: #1D3A33;
	background: #1D3A33;
	color: #fff;
}

/* Barra filtri */
.co-filter-bar {
	display: flex;
	gap: 10px;
	margin-bottom: 12px;
	flex-wrap: wrap;
	align-items: center;
}

.co-comune-wrap {
	position: relative;
	flex: 1;
	min-width: 180px;
}

#co-comune-input {
	width: 100%;
	padding: 8px 12px;
	border: 1px solid #ddd;
	border-radius: 8px;
	font-size: 13px;
	box-sizing: border-box;
}

#co-comune-input:focus {
	outline: none;
	border-color: #1D3A33;
}

.co-comune-results {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 0 0 8px 8px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
	z-index: 100;
	max-height: 200px;
	overflow-y: auto;
	display: none;
}

.co-comune-item {
	padding: 8px 12px;
	cursor: pointer;
	font-size: 13px;
	border-bottom: 1px solid #f0f0f0;
}

.co-comune-item:hover {
	background: #f5f5f5;
}

.co-comune-item:last-child {
	border-bottom: none;
}

/* Sort */
.co-sort-wrap select {
	padding: 8px 12px;
	border: 1px solid #ddd;
	border-radius: 8px;
	font-size: 13px;
	background: #fff;
	cursor: pointer;
	color: #333;
	white-space: nowrap;
}

.co-sort-wrap select:focus {
	outline: none;
	border-color: #1D3A33;
}

/* Card offerta */
.co-feed-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.co-card {
	background: #fff;
	border: 1px solid #e8e8e8;
	border-left: 4px solid #f0ad4e;
	border-radius: 10px;
	padding: 14px 16px;
	transition: box-shadow 0.2s;
}

.co-card:hover {
	box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.co-card-header {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	margin-bottom: 8px;
}

/* Badge scadenza */
.co-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 3px 10px;
	border-radius: 12px;
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

.co-badge i {
	font-size: 10px;
}

.co-badge-urgent {
	background: #dc3545;
}

.co-badge-soon {
	background: #ff8c00;
}

.co-badge-permanent {
	background: #6c757d;
}

/* Testo offerta */
.co-offer-inner {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	margin-bottom: 10px;
}

.co-offer-icon {
	flex: 0 0 48px;
	width: 48px;
	height: 48px;
	border-radius: 12px;
	background: #f0ad4e;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 22px;
	box-shadow: 0 3px 8px rgba(240,173,78,0.3);
}

.co-offer-text {
	flex: 1;
	font-size: 15px;
	font-weight: 600;
	color: #222;
	line-height: 1.5;
	padding: 10px 12px;
	background: #fff9f0;
	border-radius: 8px;
	border: 1px dashed #f0ad4e;
}

.co-offer-text p {
	margin: 0 0 8px;
	font-weight: 400;
}

.co-offer-text p:last-child {
	margin-bottom: 0;
}

.co-offer-text strong,
.co-offer-text b {
	font-weight: 700;
	color: #1a1a1a;
}

.co-offer-text em,
.co-offer-text i:not(.fas):not(.fab):not(.far) {
	font-style: italic;
}

.co-offer-text ul,
.co-offer-text ol {
	margin: 8px 0;
	padding-left: 20px;
}

.co-offer-text ul {
	list-style: disc;
}

.co-offer-text ol {
	list-style: decimal;
}

.co-offer-text li {
	margin: 4px 0;
	font-weight: 400;
}

.co-offer-text a {
	color: #1D3A33;
	text-decoration: underline;
}

.co-offer-text a:hover {
	color: #0f1f1b;
}

.co-offer-text br {
	margin: 0;
}

/* Footer card */
.co-card-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
}

.co-business-link {
	font-size: 13px;
	font-weight: 600;
	color: #1D3A33;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.co-business-link:hover {
	text-decoration: underline;
}

.co-footer-meta {
	display: flex;
	gap: 10px;
	align-items: center;
	flex-wrap: wrap;
}

.co-category {
	font-size: 12px;
	color: #888;
	display: inline-flex;
	align-items: center;
	gap: 3px;
}

.co-comune {
	font-size: 12px;
	color: #888;
	display: inline-flex;
	align-items: center;
	gap: 3px;
}

/* Loading / no results */
.co-loading {
	text-align: center;
	padding: 30px;
	color: #999;
	font-size: 14px;
}

.co-no-results {
	text-align: center;
	padding: 40px;
	color: #aaa;
}

.co-no-results i {
	font-size: 32px;
	margin-bottom: 8px;
}

.co-no-results p {
	margin: 4px 0 0;
	font-size: 14px;
}

/* Load more */
.co-load-more-wrap {
	text-align: center;
	padding: 16px;
}

.co-load-more {
	padding: 8px 24px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 20px;
	cursor: pointer;
	font-size: 13px;
	font-weight: 600;
	color: #555;
	transition: all 0.2s;
}

.co-load-more:hover {
	background: #f5f5f5;
	border-color: #bbb;
}

/* === RESPONSIVE === */

@media (max-width: 768px) {
	.co-cat-tab {
		min-width: 100%;
		justify-content: center;
	}

	.co-filter-bar {
		flex-direction: column;
		align-items: stretch;
	}

	.co-card {
		padding: 12px;
	}

	.co-offer-icon {
		flex: 0 0 40px;
		width: 40px;
		height: 40px;
		font-size: 18px;
		border-radius: 10px;
	}

	.co-offer-text {
		font-size: 14px;
	}

	.co-card-footer {
		flex-direction: column;
		align-items: flex-start;
	}
}
