/* ============================================================
 * Sportiva Suite Events — Widget Classifiche Evento
 * ============================================================ */

.spv-classifiche-wrap {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box !important;
}

.spv-classifiche-titolo {
	margin: 0 0 14px;
	font-size: 1.1em;
	font-weight: 700;
}

.spv-classifiche-lista {
	display: flex !important;
	flex-direction: column !important;
	align-items: stretch !important;
	width: 100% !important;
	box-sizing: border-box;
	gap: 8px;
}

.spv-classifiche-griglia {
	display: grid !important;
	grid-template-columns: repeat(2, 1fr);
	width: 100% !important;
	box-sizing: border-box;
	gap: 12px;
}

.spv-classifiche-card {
	display: flex !important;
	flex-direction: column !important;
	align-items: stretch !important;
	width: 100% !important;
	box-sizing: border-box;
	gap: 8px;
}

.spv-classifica-item {
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0;
	box-sizing: border-box !important;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, .1);
	border-radius: 6px;
	padding: 12px 16px;
	transition: box-shadow .15s, transform .15s;
}

.spv-classifica-item:hover {
	box-shadow: 0 3px 10px rgba(0, 0, 0, .1);
	transform: translateY(-1px);
}

.spv-classifica-link {
	display: flex !important;
	width: 100% !important;
	box-sizing: border-box;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	text-decoration: none !important;
	color: inherit;
	font-weight: 600;
}

.spv-classifica-link:hover {
	color: #2271b1;
}

.spv-class-nome {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.spv-class-badge {
	flex-shrink: 0;
	display: inline-block;
	padding: 3px 10px;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 600;
	background: #1a3c6b;
	color: #fff;
	white-space: nowrap;
}

.spv-classifiche-vuoto {
	padding: 16px;
	text-align: center;
	color: #888;
	font-style: italic;
}

@media (max-width: 768px) {
	.spv-classifiche-griglia {
		grid-template-columns: 1fr !important;
	}
}

@media (max-width: 480px) {
	.spv-classifica-item {
		padding: 10px 12px;
	}
	.spv-class-nome {
		font-size: 13px;
	}
	.spv-class-badge {
		font-size: 10px;
		padding: 2px 7px;
	}
}

/* ============================================================
 * Widget Luoghi Evento
 * ============================================================ */
.spv-event-venues {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box !important;
}

.spv-event-venues-title {
	margin: 0 0 20px;
	font-size: 1.2em;
	font-weight: 700;
	color: #24244d;
}

.spv-event-venues-empty {
	padding: 20px;
	text-align: center;
	color: #666;
	background: #f9f9f9;
	border-radius: 4px;
}

/* Items container - base styles */
.spv-event-venues-items {
	display: grid !important;
	width: 100% !important;
	box-sizing: border-box;
	align-items: start;
	grid-auto-rows: min-content;
}

/* Layout-specific overrides */
.spv-event-venues--layout-list .spv-event-venues-items {
	display: flex !important;
	flex-direction: column !important;
	grid-template-columns: none !important;
}

.spv-event-venues--layout-compact .spv-event-venues-items {
	display: block !important;
	grid-template-columns: none !important;
}

/* Card styles */
.spv-event-venues-card {
	background: #fff;
	border: 1px solid rgba(0, 0, 0, .1);
	border-radius: 8px;
	padding: 16px;
	box-sizing: border-box;
	box-shadow: 0 2px 4px rgba(0, 0, 0, .05);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	height: auto;
	min-height: 0;
	align-self: start;
}

.spv-event-venues-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, .1);
}

.spv-event-venues-item {
	background: #fff;
	border: 1px solid rgba(0, 0, 0, .1);
	border-radius: 6px;
	padding: 16px;
	box-sizing: border-box;
	height: auto;
	min-height: 0;
	align-self: start;
}

.spv-event-venues-image {
	margin-bottom: 12px;
}

.spv-event-venues-image img {
	width: 100%;
	height: auto;
	border-radius: 4px;
	object-fit: cover;
}

.spv-event-venues-content {
	display: block;
	height: auto;
	min-height: 0;
}

.spv-event-venues-name {
	margin: 0;
	padding: 0;
	font-size: 1.1em;
	font-weight: 600;
	color: #24244d;
}

.spv-event-venues-address {
	color: #666;
	font-size: 0.9em;
	margin: 0;
	padding: 0;
	line-height: 1.4;
}

.spv-event-venues-button {
	display: inline-flex;
	align-items: center;
	padding: 6px 12px;
	background: #27ae60;
	color: #fff;
	text-decoration: none;
	border-radius: 4px;
	font-size: 0.85em;
	font-weight: 500;
	transition: background 0.2s ease;
}

.spv-event-venues-button:hover {
	background: #229954;
}

.spv-event-venues-simple {
	padding: 12px;
	background: #f9f9f9;
	border-radius: 4px;
	color: #666;
	font-size: 0.9em;
}


/* ============================================================
 * Widget Giornate Evento
 * ============================================================ */
.spv-days-wrap {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box !important;
}

.spv-days-section-title {
	margin: 0 0 20px;
	font-size: 1.2em;
	font-weight: 700;
	color: #24244d;
}

.spv-days-empty {
	padding: 20px;
	text-align: center;
	color: #666;
	background: #f9f9f9;
	border-radius: 4px;
}

.spv-days-list {
	display: flex !important;
	flex-direction: column !important;
	width: 100% !important;
	box-sizing: border-box;
	gap: 12px;
}

.spv-days-card {
	background: #fff;
	border: 1px solid rgba(0, 0, 0, .1);
	border-radius: 8px;
	padding: 16px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, .05);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.spv-days-card:hover {
	transform: translateY(-1px);
	box-shadow: 0 3px 6px rgba(0, 0, 0, .08);
}

.spv-days-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 12px;
	gap: 12px;
}

.spv-days-date {
	color: #27ae60;
	font-weight: 600;
	font-size: 0.9em;
	white-space: nowrap;
}

.spv-days-title {
	margin: 0;
	font-size: 1.1em;
	font-weight: 600;
	color: #24244d;
	flex: 1;
}

.spv-days-content {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.spv-days-location {
	display: flex;
	align-items: center;
	gap: 6px;
	color: #666;
	font-size: 0.9em;
}

.spv-days-location-icon {
	opacity: 0.7;
}

.spv-days-status {
	display: inline-flex;
	align-items: center;
	padding: 4px 8px;
	border-radius: 12px;
	font-size: 0.75em;
	font-weight: 500;
	text-transform: uppercase;
}

.spv-days-status--completed {
	background: #e8f5e8;
	color: #27ae60;
}

.spv-days-status--ongoing {
	background: #fff3cd;
	color: #856404;
}

.spv-days-status--scheduled {
	background: #e3f2fd;
	color: #1976d2;
}

.spv-days-link {
	display: inline-flex;
	align-items: center;
	padding: 6px 12px;
	background: #3498db;
	color: #fff;
	text-decoration: none;
	border-radius: 4px;
	font-size: 0.85em;
	font-weight: 500;
	transition: background 0.2s ease;
	align-self: flex-start;
}

.spv-days-link:hover {
	background: #2980b9;
}

.spv-days-timeline {
	position: relative;
	padding-left: 30px;
}

.spv-days-timeline-item {
	position: relative;
	padding-bottom: 24px;
}

.spv-days-timeline-item:not(:last-child)::before {
	content: '';
	position: absolute;
	left: -23px;
	top: 16px;
	bottom: -8px;
	width: 2px;
	background: #ddd;
}

.spv-days-timeline-dot {
	position: absolute;
	left: -30px;
	top: 6px;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #3498db;
	border: 2px solid #fff;
	box-shadow: 0 0 0 2px #ddd;
}

.spv-days-timeline-content {
	background: #fff;
	border: 1px solid rgba(0, 0, 0, .1);
	border-radius: 6px;
	padding: 12px;
}

.spv-days-table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
	border-radius: 6px;
	overflow: hidden;
	box-shadow: 0 2px 4px rgba(0, 0, 0, .05);
}

.spv-days-table th {
	background: #f8f9fa;
	padding: 12px;
	text-align: left;
	font-weight: 600;
	color: #24244d;
	border-bottom: 2px solid #dee2e6;
}

.spv-days-table td {
	padding: 12px;
	border-bottom: 1px solid #dee2e6;
}

.spv-days-table tr:last-child td {
	border-bottom: none;
}

/* Responsive per nuovi widget */
@media (max-width: 768px) {
	.spv-days-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}
	
	.spv-days-timeline {
		padding-left: 20px;
	}
	
	.spv-days-timeline-dot {
		left: -20px;
	}
	
	.spv-days-timeline-item:not(:last-child)::before {
		left: -13px;
	}
}
