/*
Theme Name: Avada Child
Description: Child theme for Avada theme
Author: ThemeFusion
Author URI: https://theme-fusion.com
Template: Avada
Version: 1.0.0
Text Domain:  Avada
*/

/*
 Theme Name:   Astra Child
 Theme URI:    http://xhivelab.local
 Description:  Tema figlio di Astra per XhiveLabs
 Author:       XhiveLabs
 Template:     astra
 Version:      1.0.0
 Text Domain:  astra-child
*/

/* ===== TEMPLATE CUSTOM XHL ===== */
.xhl-event-item {
	display: flex;
	flex-direction: row;
	gap: 0;
}

.xhl-event-image {
	width: 40%;
	flex-shrink: 0;
	overflow: hidden;
	position: relative;
}

.xhl-event-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.xhl-event-date-placeholder {
	width: 100%;
	height: 100%;
	min-height: 160px;
	background: linear-gradient(135deg, #1e3a5f, #2d6a8f);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.xhl-day {
	font-size: 3em;
	font-weight: 700;
	color: #fff;
	line-height: 1;
}

.xhl-month {
	font-size: 1.1em;
	color: rgba(255,255,255,0.8);
	text-transform: uppercase;
	letter-spacing: 0.1em;
}

.xhl-event-info {
	padding: 20px 28px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	flex: 1;
	background: #fff;
	color: #333;
}

.xhl-event-tags-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin-bottom: 8px;
}

.xhl-event-tags-row .xhl-event-tags {
	margin-bottom: 0;
}

.xhl-event-tags {
	margin-bottom: 8px;
}

.xhl-event-tags a {
	display: inline-block;
	background: #ede9fe;
	color: #6d28d9;
	font-size: 0.75em;
	font-weight: 600;
	padding: 2px 10px;
	border-radius: 20px;
	margin-right: 5px;
	text-decoration: none;
}

.xhl-event-title {
	font-size: 1.3em;
	font-weight: 700;
	margin: 0 0 6px 0;
	line-height: 1.3;
}

.xhl-event-title a {
	color: #1a1a2e;
	text-decoration: none;
	font-weight: 700;
	border-bottom: none;
	box-shadow: none;
}

.xhl-event-title a:hover {
	color: #6d28d9;
	text-decoration: none;
	box-shadow: none;
}

.xhl-event-title a:visited {
	color: #1a1a2e;
}

.xhl-event-excerpt {
	color: #555;
	font-size: 0.88em;
	line-height: 1.5;
	margin: 0 0 12px 0;
}

.xhl-event-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	margin-bottom: 14px;
}

.xhl-meta-item {
	font-size: 0.82em;
	color: #555;
}

.xhl-meta-item a {
	color: #555;
	text-decoration: none;
	border-bottom: none;
	box-shadow: none;
}

.xhl-meta-item a:hover {
	color: #333;
	text-decoration: none;
}

.xhl-event-actions {
	display: flex;
	gap: 12px;
	align-items: center;
}

.xhl-btn {
	padding: 8px 20px;
	border-radius: 6px;
	font-size: 0.88em;
	font-weight: 600;
	text-decoration: none;
	display: inline-block;
}

.xhl-btn-primary {
	background: #f59e0b;
	color: #fff;
}

.xhl-btn-primary:hover {
	background: #d97706;
	color: #fff;
}

.xhl-btn-secondary {
	background: transparent;
	color: #555;
	border: 1px solid #ddd;
}

.xhl-btn-secondary:hover {
	color: #6d28d9;
	border-color: #6d28d9;
}

/* ===== SPOTLIGHT wrapper ===== */
.polo-spotlight .xhl-event-item {
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 16px rgba(0,0,0,0.07);
	margin-bottom: 32px;
	position: relative;
}

.polo-spotlight .xhl-event-image::before {
	content: "SPOTLIGHT";
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 10;
	background: #f59e0b;
	color: #fff;
	font-size: 0.72em;
	font-weight: 700;
	letter-spacing: 0.08em;
	padding: 4px 10px;
	border-radius: 5px;
	text-transform: uppercase;
}

@media (max-width: 768px) {
	.polo-spotlight .xhl-event-item { flex-direction: column; }
	.polo-spotlight .xhl-event-image { width: 100%; height: 200px; }
}

/* ===== OLD SPOTLIGHT (legacy) ===== */
.polo-spotlight .em-event {
	display: flex !important;
	flex-direction: row !important;
	background: #fff !important;
	border-radius: 12px !important;
	overflow: hidden !important;
	min-height: 0 !important;
	max-height: 160px !important;
	margin-bottom: 40px !important;
	border: 1px solid #e5e7eb !important;
	box-shadow: 0 2px 16px rgba(0,0,0,0.07) !important;
	position: relative !important;
}

/* Badge SPOTLIGHT */
.polo-spotlight .em-item-image {
	width: 40% !important;
	flex-shrink: 0 !important;
	position: relative !important;
}

.polo-spotlight .em-item-image::before {
	content: "SPOTLIGHT" !important;
	position: absolute !important;
	top: 14px !important;
	left: 14px !important;
	z-index: 10 !important;
	background: #f59e0b !important;
	color: #fff !important;
	font-size: 0.72em !important;
	font-weight: 700 !important;
	letter-spacing: 0.08em !important;
	padding: 4px 10px !important;
	border-radius: 5px !important;
	text-transform: uppercase !important;
}

.polo-spotlight .em-item-image img,
.polo-spotlight .em-item-image-wrapper {
	width: 100% !important;
	height: 100% !important;
}

.polo-spotlight .em-item-image img {
	object-fit: cover !important;
	display: block !important;
	height: 100% !important;
}

.polo-spotlight .em-item-image-placeholder {
	width: 100% !important;
	height: 100% !important;
	min-height: 0 !important;
	background: linear-gradient(135deg, #1e3a5f, #2d6a8f) !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
}

.polo-spotlight .em-item-image-placeholder .date {
	text-align: center !important;
}

.polo-spotlight .em-item-image-placeholder .day {
	display: block !important;
	font-size: 3.5em !important;
	font-weight: 700 !important;
	color: #fff !important;
	line-height: 1 !important;
}

.polo-spotlight .em-item-image-placeholder .month {
	display: block !important;
	font-size: 1.1em !important;
	color: rgba(255,255,255,0.8) !important;
	text-transform: uppercase !important;
	letter-spacing: 0.1em !important;
}

.polo-spotlight .em-item-info {
	padding: 16px 24px !important;
	display: flex !important;
	flex-direction: column !important;
	justify-content: center !important;
	flex: 1 !important;
	color: #111 !important;
	background: #fff !important;
}

/* Forza colore scuro su TUTTO il testo nella parte info */
.polo-spotlight .em-item-info,
.polo-spotlight .em-item-info * {
	color: #333 !important;
}

.polo-spotlight .em-item-title,
.polo-spotlight .em-item-title a,
.polo-spotlight h3.em-item-title,
.polo-spotlight h3.em-item-title a {
	color: #1a1a2e !important;
	font-size: 1.3em !important;
	font-weight: 700 !important;
	display: block !important;
	margin-bottom: 8px !important;
}

/* Meta orizzontale e compatta */
.polo-spotlight .em-event-meta {
	display: flex !important;
	flex-wrap: wrap !important;
	gap: 8px 20px !important;
	margin-bottom: 12px !important;
}

.polo-spotlight .em-item-meta-line {
	display: flex !important;
	flex-direction: row !important;
	align-items: center !important;
	gap: 4px !important;
	font-size: 0.82em !important;
	color: #555 !important;
	margin-bottom: 0 !important;
}

/* Rimuove linea verde EM */
.polo-spotlight .em-event::before,
.polo-spotlight .em-event::after {
	display: none !important;
	border: none !important;
}

/* Categorie come pillole */
.polo-spotlight .em-event-categories {
	margin-bottom: 12px !important;
	border: none !important;
	padding: 0 !important;
}

.polo-spotlight .em-event-categories .em-icon,
.polo-spotlight .em-event-categories > .em-icon-category {
	display: none !important;
}

.polo-spotlight .em-event-categories a {
	display: inline-block !important;
	background: #ede9fe !important;
	color: #6d28d9 !important;
	font-size: 0.78em !important;
	font-weight: 600 !important;
	padding: 3px 10px !important;
	border-radius: 20px !important;
	margin-right: 6px !important;
	text-decoration: none !important;
}

.polo-spotlight .em-item-title {
	font-size: 1.5em !important;
	font-weight: 700 !important;
	margin-bottom: 10px !important;
	color: #111 !important;
	line-height: 1.3 !important;
}

.polo-spotlight .em-item-title a {
	color: #111 !important;
	text-decoration: none !important;
}

.polo-spotlight .em-item-title a:hover {
	color: #6d28d9 !important;
}

.polo-spotlight .em-item-desc {
	color: #555 !important;
	font-size: 0.92em !important;
	line-height: 1.6 !important;
	margin-bottom: 18px !important;
}

/* Meta data (data, ora, location) */
.polo-spotlight .em-event-meta {
	display: flex !important;
	flex-wrap: wrap !important;
	gap: 16px !important;
	margin-bottom: 20px !important;
}

.polo-spotlight .em-item-meta-line {
	font-size: 0.85em !important;
	color: #444 !important;
	display: flex !important;
	flex-direction: column !important;
}

.polo-spotlight .em-item-meta-line .em-icon {
	color: #f59e0b !important;
	margin-bottom: 2px !important;
}

.polo-spotlight .em-item-meta-line a {
	color: #444 !important;
	text-decoration: none !important;
}

/* Nascondi categorie/tag dalla meta (già mostrate come pillole sopra) */
.polo-spotlight .em-event-categories,
.polo-spotlight .em-event-tags {
	display: none !important;
}

/* Bottoni */
.polo-spotlight .em-item-actions {
	display: flex !important;
	align-items: center !important;
	gap: 16px !important;
	margin-top: 4px !important;
}

.polo-spotlight .em-event-book-now {
	background: #f59e0b !important;
	color: #fff !important;
	padding: 10px 22px !important;
	border-radius: 7px !important;
	text-decoration: none !important;
	font-weight: 700 !important;
	font-size: 0.9em !important;
	border: none !important;
	display: inline-flex !important;
	align-items: center !important;
	gap: 6px !important;
}

.polo-spotlight .em-event-book-now:hover {
	background: #d97706 !important;
	color: #fff !important;
}

.polo-spotlight .em-item-read-more {
	background: transparent !important;
	color: #444 !important;
	padding: 10px 0 !important;
	border: none !important;
	text-decoration: none !important;
	font-size: 0.9em !important;
	font-weight: 500 !important;
	box-shadow: none !important;
}

.polo-spotlight .em-item-read-more:hover {
	color: #6d28d9 !important;
}

/* Responsive spotlight */
@media (max-width: 768px) {
	.polo-spotlight .em-event {
		flex-direction: column !important;
	}
	.polo-spotlight .em-item-image {
		width: 100% !important;
		height: 220px !important;
	}
}

/* ===== GRIGLIA EVENTI ===== */
.polo-eventi-grid .events-grid {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
	gap: 24px !important;
}

.polo-eventi-grid .em-event {
	border-radius: 10px !important;
	overflow: hidden !important;
	box-shadow: 0 2px 12px rgba(0,0,0,0.07) !important;
	transition: transform 0.2s, box-shadow 0.2s !important;
	background: #fff !important;
	border: 1px solid #e5e7eb !important;
	border-left: none !important;
}

.polo-eventi-grid .em-event:hover {
	transform: translateY(-4px) !important;
	box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
}

.polo-eventi-grid .em-item-image img {
	width: 100% !important;
	height: 180px !important;
	object-fit: cover !important;
	display: block !important;
}

.polo-eventi-grid .em-item-image-placeholder {
	height: 180px !important;
	background: linear-gradient(135deg, #1e3a5f, #2d6a8f) !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
}

.polo-eventi-grid .em-item-image-placeholder .day {
	display: block !important;
	font-size: 2.5em !important;
	font-weight: 700 !important;
	color: #fff !important;
	line-height: 1 !important;
}

.polo-eventi-grid .em-item-image-placeholder .month {
	display: block !important;
	font-size: 1em !important;
	color: rgba(255,255,255,0.8) !important;
	text-transform: uppercase !important;
}

.polo-eventi-grid .em-item-info {
	padding: 16px 20px 20px !important;
}

.polo-eventi-grid .em-item-title {
	font-size: 1em !important;
	font-weight: 600 !important;
	margin-bottom: 8px !important;
}

.polo-eventi-grid .em-item-title a {
	color: #111 !important;
	text-decoration: none !important;
}

.polo-eventi-grid .em-item-title a:hover {
	color: #6d28d9 !important;
}

.polo-eventi-grid .em-item-meta-line {
	font-size: 0.82em !important;
	color: #666 !important;
	margin-bottom: 4px !important;
}

.polo-eventi-grid .em-item-meta-line a {
	color: #666 !important;
}

/* ===== GRIGLIA CUSTOM XHL ===== */
.xhl-grid-item {
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(0,0,0,0.07);
	transition: transform 0.2s, box-shadow 0.2s;
	background: #fff;
	border: 1px solid #e5e7eb;
	cursor: pointer;
}

.xhl-grid-item:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.xhl-grid-image img {
	width: 100%;
	height: 180px;
	object-fit: cover;
	display: block;
}

.xhl-grid-info {
	padding: 14px 16px 18px;
}

.xhl-grid-info .xhl-event-title {
	font-size: 0.95em;
	font-weight: 600;
	margin: 0 0 8px 0;
}

/* ===== MODALITÀ EVENTO (singola pagina) ===== */
.xhl-evento-modalita {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 16px 0;
	padding: 14px 18px;
	background: #f8f9fa;
	border-radius: 8px;
	border-left: 4px solid #6d28d9;
}

.xhl-modalita-badge {
	font-size: 0.9em;
	font-weight: 600;
	padding: 4px 12px;
	border-radius: 20px;
}

.xhl-modalita-presenza { background: #d1fae5; color: #065f46; }
.xhl-modalita-online   { background: #dbeafe; color: #1e40af; }
.xhl-modalita-ibrido   { background: #ede9fe; color: #5b21b6; }

.xhl-btn-online {
	margin-left: auto;
}

/* ===== SINGOLA PAGINA EVENTO ===== */

/* Nascondi meta autore/data di Astra sulla pagina evento */
.single-event .entry-meta,
.single-event .posted-by,
.single-event .ast-author-meta {
	display: none !important;
}

.xhl-single-event {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 20px 60px;
}

/* Hero */
.xhl-single-hero {
	position: relative;
	overflow: hidden;
	margin-bottom: 36px;
	background: linear-gradient(135deg, #1e3a5f, #2d6a8f);
	min-height: 300px;
}

.xhl-single-hero-img img {
	width: 100%;
	max-height: 420px;
	object-fit: cover;
	display: block;
	opacity: 0.75;
}

.xhl-single-hero-overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 30px 36px;
	background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}

.xhl-single-hero .xhl-event-tags-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin-bottom: 10px;
}

.xhl-single-hero .xhl-event-tags {
	margin-bottom: 0;
}

.xhl-single-hero .xhl-modalita-badge {
	background: rgba(255,255,255,0.2);
	color: #fff;
	border: 1px solid rgba(255,255,255,0.4);
}

.xhl-single-title {
	color: #fff;
	font-size: 2em;
	font-weight: 700;
	margin: 0;
	line-height: 1.2;
}

/* Body layout */
.xhl-single-body {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 32px;
	align-items: start;
}

/* Descrizione */
.xhl-single-description {
	font-size: 1em;
	line-height: 1.8;
	color: #333;
}

/* Sidebar card */
.xhl-single-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 20px;
	margin-bottom: 14px;
	box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.xhl-single-meta-row {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid #f3f4f6;
}

.xhl-single-meta-row:last-child {
	border-bottom: none;
}

.xhl-meta-icon {
	font-size: 1.2em;
	width: 24px;
	flex-shrink: 0;
	margin-top: 2px;
}

.xhl-meta-label {
	font-size: 0.75em;
	color: #888;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 2px;
}

.xhl-meta-value {
	font-size: 0.92em;
	color: #1a1a2e;
	font-weight: 500;
}

.xhl-meta-value a {
	color: #6d28d9;
	text-decoration: none;
}

.xhl-meta-value small {
	color: #888;
	font-weight: 400;
}

.xhl-already-booked {
	background: #d1fae5;
	color: #065f46;
	border: 1px solid #6ee7b7;
	border-radius: 8px;
	padding: 12px 16px;
	font-size: 0.9em;
	font-weight: 600;
	text-align: center;
	margin-bottom: 10px;
}

.xhl-btn-full {
	display: block !important;
	text-align: center !important;
	width: 100% !important;
	margin-bottom: 10px !important;
	box-sizing: border-box !important;
}

/* Booking section */
.xhl-single-booking {
	margin-top: 48px;
	padding-top: 32px;
	border-top: 2px solid #f3f4f6;
}

.xhl-single-booking h2 {
	font-size: 1.4em;
	margin-bottom: 20px;
	color: #1a1a2e;
}

/* Responsive */
@media (max-width: 768px) {
	.xhl-single-body {
		grid-template-columns: 1fr;
	}
	.xhl-single-title {
		font-size: 1.4em;
	}
}


/* Stili Call & Contest e Candidature → plugin xhivelab-candidature/assets/candidature.css */

/* ==============================================
   HOME — Call & Contests cards (shortcode)
   ============================================== */

.xhl-home-calls-section {
	padding: 0;
}

.xhl-home-calls-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	margin-bottom: 24px;
	flex-wrap: wrap;
	gap: 8px;
}

.xhl-home-calls-title {
	font-size: 1.6em;
	font-weight: 700;
	color: #111;
	margin: 0 0 4px;
}

.xhl-home-calls-subtitle {
	font-size: 0.95em;
	color: #6b7280;
	margin: 0;
}

.xhl-home-calls-viewall {
	font-size: 0.9em;
	font-weight: 600;
	color: #f59e0b;
	text-decoration: none;
	white-space: nowrap;
}
.xhl-home-calls-viewall:hover { text-decoration: underline; }

.xhl-home-calls-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

/* Card homepage call */
.xhl-hc-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-top: 3px solid var(--hc-border, #e5e7eb);
	border-radius: 10px;
	padding: 20px;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	gap: 12px;
	transition: box-shadow 0.2s, transform 0.2s;
}
.xhl-hc-card:hover {
	box-shadow: 0 6px 24px rgba(0,0,0,0.10);
	transform: translateY(-2px);
}

.xhl-hc-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
}

.xhl-hc-badge {
	font-size: 0.72em;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: 3px 10px;
	border-radius: 20px;
}

.xhl-hc-days {
	font-size: 0.78em;
	color: #6b7280;
	white-space: nowrap;
}

.xhl-hc-title {
	font-size: 1.05em;
	font-weight: 700;
	color: #111;
	margin: 0;
	line-height: 1.35;
}
.xhl-hc-title a {
	color: inherit !important;
	text-decoration: none !important;
	box-shadow: none !important;
}
.xhl-hc-title a:hover { color: #f59e0b !important; }

.xhl-hc-excerpt {
	font-size: 0.875em;
	color: #6b7280;
	line-height: 1.55;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.xhl-hc-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.xhl-hc-tag {
	font-size: 0.75em;
	background: #f3f4f6;
	color: #374151;
	padding: 3px 10px;
	border-radius: 20px;
}

.xhl-hc-footer {
	margin-top: auto;
	padding-top: 12px;
	border-top: 1px solid #f3f4f6;
}

.xhl-hc-cta {
	font-size: 0.875em;
	font-weight: 600;
	color: #111;
	text-decoration: none;
	display: flex;
	align-items: center;
	gap: 4px;
}
.xhl-hc-cta span { transition: transform 0.15s; }
.xhl-hc-cta:hover span { transform: translateX(4px); }
.xhl-hc-cta-secondary { color: #6b7280; }

@media (max-width: 900px) {
	.xhl-home-calls-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
	.xhl-home-calls-grid { grid-template-columns: 1fr; }
}

/* ==============================================
   HOME — Upcoming Events (shortcode)
   ============================================== */

.xhl-home-events-section {
	padding: 0;
}

.xhl-home-events-header {
	margin-bottom: 24px;
}

.xhl-home-events-title {
	font-size: 1.6em;
	font-weight: 700;
	color: #111;
	margin: 0;
	text-align: center;
}

.xhl-home-events-body {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 28px;
	align-items: start;
}
.xhl-home-events-body a,
.xhl-home-events-body a:hover {
	text-decoration: none !important;
}

/* Featured event */
.xhl-ev-featured {
	display: block;
	position: relative;
	border-radius: 14px;
	text-decoration: none;
	overflow: hidden;
	text-decoration: none;
	background: #1e293b;
	min-height: 340px;
}

.xhl-ev-feat-img {
	position: absolute;
	inset: 0;
}
.xhl-ev-feat-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	opacity: 0.6;
}
.xhl-ev-feat-img-placeholder {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.xhl-ev-feat-overlay {
	position: relative;
	z-index: 2;
	padding: 28px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-height: 340px;
	justify-content: flex-end;
	background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 60%);
}

.xhl-ev-feat-cat {
	display: inline-block;
	background: #f59e0b;
	color: #111;
	font-size: 0.72em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 3px 10px;
	border-radius: 20px;
	align-self: flex-start;
}

.xhl-ev-feat-date {
	font-size: 0.82em;
	color: rgba(255,255,255,0.75);
}

.xhl-ev-feat-title {
	font-size: 1.3em;
	font-weight: 700;
	color: #fff;
	margin: 0;
	line-height: 1.3;
}

.xhl-ev-feat-excerpt {
	font-size: 0.875em;
	color: rgba(255,255,255,0.8);
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.xhl-ev-feat-btn {
	display: inline-block;
	margin-top: 6px;
	font-size: 0.875em;
	font-weight: 700;
	color: #f59e0b;
}
.xhl-ev-featured:hover .xhl-ev-feat-btn { text-decoration: none; }

/* Lista eventi */
.xhl-ev-list {
	display: flex;
	flex-direction: column;
	gap: 0;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
}

.xhl-ev-item {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px 20px;
	text-decoration: none;
	border-bottom: 1px solid #f3f4f6;
	transition: background 0.15s;
}
.xhl-ev-item:last-of-type { border-bottom: none; }
.xhl-ev-item:hover { background: #f9fafb; }

.xhl-ev-date-block {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 44px;
	background: #f3f4f6;
	border-radius: 8px;
	padding: 6px 10px;
}

.xhl-ev-month {
	font-size: 0.65em;
	font-weight: 700;
	color: #f59e0b;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.xhl-ev-day {
	font-size: 1.4em;
	font-weight: 800;
	color: #111;
	line-height: 1;
}

.xhl-ev-info { flex: 1; min-width: 0; }

.xhl-ev-item-title {
	font-size: 0.9em;
	font-weight: 600;
	color: #111;
	margin-bottom: 4px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.xhl-ev-item-meta {
	display: flex;
	gap: 12px;
	font-size: 0.78em;
	color: #6b7280;
	flex-wrap: wrap;
}

.xhl-ev-list-footer {
	padding: 16px 20px;
	text-align: center;
	border-top: 1px solid #f3f4f6;
}

.xhl-ev-viewcal-btn {
	display: inline-block;
	padding: 9px 24px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 0.875em;
	font-weight: 600;
	color: #374151;
	text-decoration: none;
	transition: background 0.15s;
}
.xhl-ev-viewcal-btn:hover { background: #f3f4f6; }

@media (max-width: 780px) {
	.xhl-home-events-body { grid-template-columns: 1fr; }
}

/* ==============================================
   NEWS & COMMUNICATIONS — shortcode
   ============================================== */

.xhl-news-section { width: 100%; }

/* Header */
.xhl-news-header {
	background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
	padding: 48px 40px;
	margin-bottom: 0;
}
.xhl-news-header-title {
	font-size: 2em;
	font-weight: 700;
	color: #fff;
	margin: 0 0 8px;
}
.xhl-news-header-sub {
	font-size: 1em;
	color: rgba(255,255,255,0.7);
	margin: 0;
	max-width: 500px;
}

/* Body: featured + sidebar */
.xhl-news-body {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 32px;
	padding: 40px 40px 0;
	align-items: start;
}

/* Featured */
.xhl-news-featured {
	display: block;
	text-decoration: none;
	color: inherit;
	text-decoration: none;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	overflow: hidden;
	background: #fff;
	transition: box-shadow 0.2s;
}
.xhl-news-featured:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.10); }

.xhl-news-feat-img { height: 320px; overflow: hidden; }
.xhl-news-feat-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.xhl-news-feat-body { padding: 28px; }

.xhl-news-feat-badge {
	display: inline-block;
	background: #f59e0b;
	color: #111;
	font-size: 0.72em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 3px 10px;
	border-radius: 20px;
	margin-bottom: 14px;
}

.xhl-news-feat-meta {
	display: flex;
	gap: 12px;
	font-size: 0.82em;
	color: #6b7280;
	margin-bottom: 12px;
	align-items: center;
}

.xhl-news-feat-cat {
	background: #f3f4f6;
	color: #374151;
	padding: 2px 10px;
	border-radius: 20px;
	font-size: 0.9em;
}

.xhl-news-feat-title {
	font-size: 1.4em;
	font-weight: 700;
	color: #111;
	margin: 0 0 12px;
	line-height: 1.3;
}

.xhl-news-feat-excerpt {
	font-size: 0.9em;
	color: #6b7280;
	line-height: 1.6;
	margin: 0 0 16px;
}

.xhl-news-feat-link {
	font-size: 0.9em;
	font-weight: 600;
	color: #f59e0b;
}
.xhl-news-featured:hover .xhl-news-feat-link { text-decoration: underline; }

/* Sidebar */
.xhl-news-sidebar { display: flex; flex-direction: column; gap: 20px; }

/* Quick Actions */
.xhl-news-qa {
	background: #1e293b;
	border-radius: 12px;
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.xhl-news-qa-title {
	font-size: 0.9em;
	font-weight: 700;
	color: #fff;
	margin-bottom: 4px;
}
.xhl-news-qa-btn {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: rgba(255,255,255,0.07);
	border: 1px solid rgba(255,255,255,0.12);
	border-radius: 8px;
	padding: 10px 14px;
	text-decoration: none;
	color: #e2e8f0;
	font-size: 0.875em;
	font-weight: 500;
	transition: background 0.15s;
}
.xhl-news-qa-btn:hover { background: rgba(255,255,255,0.13); color: #fff; }
.xhl-news-qa-arrow { font-size: 1em; opacity: 0.6; }

/* Widget title */
.xhl-news-widget-title {
	font-size: 0.9em;
	font-weight: 700;
	color: #111;
	margin-bottom: 12px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.xhl-news-widget-viewall {
	font-size: 0.85em;
	font-weight: 500;
	color: #f59e0b;
	text-decoration: none;
}

/* Trending Topics */
.xhl-news-trending {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 18px;
}
.xhl-news-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.xhl-news-tag {
	display: inline-block;
	background: #f3f4f6;
	color: #374151;
	font-size: 0.8em;
	padding: 4px 12px;
	border-radius: 20px;
	text-decoration: none;
	transition: background 0.15s;
}
.xhl-news-tag:hover { background: #e5e7eb; }

/* Upcoming */
.xhl-news-upcoming {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 18px;
}
.xhl-news-ev-item {
	display: flex;
	gap: 12px;
	align-items: center;
	padding: 10px 0;
	border-bottom: 1px solid #f3f4f6;
	text-decoration: none;
}
.xhl-news-ev-item:last-child { border-bottom: none; padding-bottom: 0; }
.xhl-news-ev-date {
	display: flex;
	flex-direction: column;
	align-items: center;
	background: #f3f4f6;
	border-radius: 8px;
	padding: 6px 10px;
	min-width: 44px;
}
.xhl-news-ev-month { font-size: 0.6em; font-weight: 700; color: #f59e0b; text-transform: uppercase; }
.xhl-news-ev-day   { font-size: 1.3em; font-weight: 800; color: #111; line-height: 1; }
.xhl-news-ev-info  { flex: 1; min-width: 0; }
.xhl-news-ev-title { font-size: 0.85em; font-weight: 600; color: #111; margin-bottom: 2px; }
.xhl-news-ev-meta  { font-size: 0.75em; color: #6b7280; }

/* Latest Updates */
.xhl-news-latest { padding: 40px 40px 0; }

.xhl-news-latest-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	flex-wrap: wrap;
	gap: 12px;
}
.xhl-news-latest-title { font-size: 1.3em; font-weight: 700; color: #111; margin: 0; }

.xhl-news-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.xhl-news-filter {
	padding: 6px 16px;
	border-radius: 20px;
	border: 1px solid #e5e7eb;
	background: #fff;
	font-size: 0.82em;
	font-weight: 500;
	color: #374151;
	cursor: pointer;
	transition: all 0.15s;
}
.xhl-news-filter:hover  { border-color: #f59e0b; color: #f59e0b; }
.xhl-news-filter.active { background: #f59e0b; border-color: #f59e0b; color: #111; font-weight: 700; }

.xhl-news-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.xhl-news-card {
	display: flex;
	text-decoration: none;
	color: inherit;
	flex-direction: column;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
	text-decoration: none;
	transition: box-shadow 0.2s, transform 0.2s;
}
.xhl-news-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.09); transform: translateY(-2px); }

.xhl-news-card-img { height: 160px; overflow: hidden; }
.xhl-news-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.xhl-news-card-body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }

.xhl-news-card-cat {
	font-size: 0.72em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #f59e0b;
}
.xhl-news-card-title {
	font-size: 0.95em;
	font-weight: 700;
	color: #111;
	margin: 0;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.xhl-news-card-excerpt {
	font-size: 0.82em;
	color: #6b7280;
	line-height: 1.5;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.xhl-news-card-date { font-size: 0.75em; color: #9ca3af; margin-top: auto; }

/* Responsive */
@media (max-width: 960px) {
	.xhl-news-body { grid-template-columns: 1fr; }
	.xhl-news-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
	.xhl-news-header { padding: 36px 20px; }
	.xhl-news-body, .xhl-news-latest { padding-left: 20px; padding-right: 20px; }
	.xhl-news-grid { grid-template-columns: 1fr; }
}

/* ==============================================
   SPAZI & PRENOTAZIONI — page template
   ============================================== */

.post-type-polo_spazio .site-content,
.post-type-polo_spazio .content-area,
.post-type-polo_spazio .entry-content,
.post-type-polo_spazio .ast-container,
.page-template-page-template-spazi .site-content,
.page-template-page-template-spazi .content-area,
.page-template-page-template-spazi .entry-content,
.page-template-page-template-spazi .ast-container {
	max-width: 100% !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

.xhl-spazi-page { width: 100%; padding-bottom: 60px; }

/* Header */
.xhl-spazi-header {
	background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
	padding: 60px 40px;
}
.xhl-spazi-headline {
	font-size: 2.2em;
	font-weight: 700;
	color: #fff;
	margin: 0 0 10px;
}
.xhl-spazi-subtitle {
	font-size: 1em;
	color: rgba(255,255,255,0.7);
	margin: 0;
}

/* Sezione spazi */
.xhl-spazi-section { padding: 48px 40px 0; }

.xhl-spazi-section-title {
	font-size: 1.4em;
	font-weight: 700;
	color: #111;
	margin: 0 0 24px;
}

.xhl-spazi-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

/* Shortcode [xhl_spazi] */
.xhl-spazio-card-sc {
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
	cursor: pointer;
	transition: box-shadow 0.2s, transform 0.2s;
}
.xhl-spazio-card-sc:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.1); transform: translateY(-2px); }

.xhl-spazio-sc-img { position: relative; }
.xhl-spazio-sc-img img { width: 100%; height: 180px; object-fit: cover; display: block; }
.xhl-spazio-sc-placeholder { width: 100%; height: 180px; background: linear-gradient(135deg, #1e3a5f, #2d6a8f); }
.xhl-spazio-sc-badge {
	position: absolute; top: 10px; right: 10px;
	background: rgba(34,197,94,0.9); color: #fff;
	font-size: 11px; font-weight: 600;
	padding: 3px 10px; border-radius: 20px;
}

.xhl-spazio-sc-body { padding: 20px; }
.xhl-spazio-sc-tipo { font-size: 11px; font-weight: 700; color: #6b7280; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 6px; }
.xhl-spazio-sc-title { font-size: 16px; font-weight: 700; color: #111827; margin: 0 0 10px; }
.xhl-spazio-sc-title a { color: inherit; text-decoration: none; }
.xhl-spazio-sc-meta { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: #6b7280; margin-bottom: 16px; }
.xhl-spazio-sc-btn { margin-top: auto; }

/* Card spazio */
.xhl-spazio-card {
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.2s, transform 0.2s;
}
.xhl-spazio-card:hover {
	box-shadow: 0 6px 24px rgba(0,0,0,0.09);
	transform: translateY(-2px);
}
.xhl-spazio-non-prenotabile { opacity: 0.6; }

.xhl-spazio-img {
	position: relative;
	height: 160px;
	overflow: hidden;
	background: #f3f4f6;
}
.xhl-spazio-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.xhl-spazio-img-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2.5em;
	background: linear-gradient(135deg, #1e293b, #1e3a5f);
}

.xhl-spazio-tipo {
	position: absolute;
	top: 10px;
	left: 10px;
	background: rgba(0,0,0,0.6);
	color: #fff;
	font-size: 0.72em;
	font-weight: 600;
	padding: 3px 10px;
	border-radius: 20px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.xhl-spazio-body {
	padding: 18px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
}

.xhl-spazio-name {
	font-size: 1.05em;
	font-weight: 700;
	color: #111;
	margin: 0;
}

.xhl-spazio-excerpt {
	font-size: 0.85em;
	color: #6b7280;
	line-height: 1.5;
	margin: 0;
}

.xhl-spazio-meta {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.xhl-spazio-meta-item {
	font-size: 0.8em;
	color: #6b7280;
}

.xhl-spazio-btn {
	margin-top: auto;
}

.xhl-spazio-non-disponibile {
	font-size: 0.82em;
	color: #9ca3af;
	font-style: italic;
	margin-top: auto;
}

/* Form Amelia */
.xhl-spazi-form-section {
	padding: 48px 40px 0;
}

.xhl-spazi-form-header {
	margin-bottom: 28px;
}
.xhl-spazi-form-header h2 {
	font-size: 1.4em;
	font-weight: 700;
	color: #111;
	margin: 0 0 8px;
}
.xhl-spazi-form-header p {
	font-size: 0.95em;
	color: #6b7280;
	margin: 0;
}

.xhl-spazi-amelia {
	background: #f8fafc;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	padding: 32px;
}

/* Responsive */
@media (max-width: 1100px) {
	.xhl-spazi-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
	.xhl-spazi-header, .xhl-spazi-section, .xhl-spazi-form-section { padding-left: 20px; padding-right: 20px; }
	.xhl-spazi-grid { grid-template-columns: 1fr; }
}

/* ====================================================
   CALENDARIO UNIFICATO
   ==================================================== */

.xhl-calendario-wrap {
	width: 100%;
	padding: 0;
}

.xhl-calendario-legend {
	display: flex;
	gap: 20px;
	margin-bottom: 16px;
	flex-wrap: wrap;
}

.xhl-leg-item {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: #374151;
}

.xhl-leg-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	flex-shrink: 0;
}

/* FullCalendar overrides */
#xhl-fullcalendar .fc-toolbar-title {
	font-size: 1.1rem;
	font-weight: 700;
}

#xhl-fullcalendar .fc-button {
	background: #1e2939;
	border-color: #1e2939;
	font-size: 13px;
}

#xhl-fullcalendar .fc-button:hover {
	background: #374151;
	border-color: #374151;
}

#xhl-fullcalendar .fc-button-active,
#xhl-fullcalendar .fc-button:not(:disabled):active {
	background: #111827 !important;
	border-color: #111827 !important;
}

#xhl-fullcalendar .fc-event {
	cursor: pointer;
	font-size: 12px;
	border: none;
	padding: 2px 5px;
	border-radius: 4px;
}

#xhl-fullcalendar .fc-daygrid-event-dot {
	border-color: inherit;
}

@media (max-width: 600px) {
	#xhl-fullcalendar .fc-toolbar { flex-direction: column; gap: 8px; }
}

/* ===== SINGLE CANDIDATURA ===== */
.xhl-single-candidatura {
	max-width: 800px;
	margin: 0 auto;
	padding: 0 20px 60px;
}

.xhl-cand-hero {
	background: linear-gradient(135deg, #1e3a5f, #2d6a8f);
	color: #fff;
	padding: 40px;
	margin-bottom: 32px;
}

.xhl-cand-back {
	color: rgba(255,255,255,0.75);
	font-size: 14px;
	text-decoration: none;
	display: inline-block;
	margin-bottom: 16px;
}
.xhl-cand-back:hover { color: #fff; }

.xhl-cand-hero-top {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}

.xhl-cand-title {
	font-size: 28px;
	font-weight: 700;
	margin: 0;
	color: #fff;
}

.xhl-cand-stato-badge {
	padding: 4px 14px;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 600;
}

.xhl-cand-meta-date {
	margin: 12px 0 0;
	font-size: 14px;
	color: rgba(255,255,255,0.7);
}

.xhl-cand-body {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.xhl-cand-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 28px;
	box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.xhl-cand-card-title {
	font-size: 18px;
	font-weight: 700;
	color: #111827;
	margin: 0 0 20px;
	padding-bottom: 12px;
	border-bottom: 1px solid #f3f4f6;
}

.xhl-cand-call-info {
	display: flex;
	gap: 16px;
	align-items: flex-start;
}

.xhl-cand-call-thumb {
	flex-shrink: 0;
	width: 80px;
	height: 60px;
	border-radius: 8px;
	overflow: hidden;
}
.xhl-cand-call-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.xhl-cand-call-name {
	font-size: 17px;
	font-weight: 600;
	margin: 0 0 6px;
}
.xhl-cand-call-name a {
	color: #1e3a5f;
	text-decoration: none;
}
.xhl-cand-call-name a:hover { text-decoration: underline; }

.xhl-cand-call-cat {
	display: inline-block;
	background: #eff6ff;
	color: #1d4ed8;
	font-size: 12px;
	padding: 2px 10px;
	border-radius: 10px;
	margin-bottom: 6px;
}

.xhl-cand-call-scadenza {
	font-size: 13px;
	color: #6b7280;
	margin: 4px 0 0;
}

.xhl-cand-stato-row {
	display: flex;
	align-items: flex-start;
	gap: 16px;
}

.xhl-cand-stato-lg {
	font-size: 14px;
	padding: 6px 18px;
	border-radius: 20px;
	font-weight: 600;
	white-space: nowrap;
	flex-shrink: 0;
}

.xhl-cand-stato-desc {
	color: #374151;
	font-size: 15px;
	margin: 4px 0 0;
}

.xhl-cand-note {
	margin-top: 20px;
	padding: 16px;
	background: #fefce8;
	border-left: 4px solid #f59e0b;
	border-radius: 6px;
	font-size: 14px;
	color: #374151;
}
.xhl-cand-note p { margin: 6px 0 0; }

.xhl-cand-utente {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 16px;
}
.xhl-cand-utente img {
	border-radius: 50%;
	width: 48px;
	height: 48px;
}
.xhl-cand-utente strong {
	display: block;
	font-size: 15px;
	color: #111827;
}
.xhl-cand-utente span {
	font-size: 13px;
	color: #6b7280;
}

.xhl-cand-ff-link {
	font-size: 13px;
	display: inline-block;
}

.xhl-cand-access-denied {
	max-width: 500px;
	margin: 60px auto;
	text-align: center;
	padding: 40px;
	background: #fff;
	border-radius: 12px;
	border: 1px solid #e5e7eb;
}

.xhl-cand-empty {
	color: #9ca3af;
	font-style: italic;
}

@media (max-width: 600px) {
	.xhl-cand-hero { padding: 24px; }
	.xhl-cand-call-info { flex-direction: column; }
	.xhl-cand-stato-row { flex-direction: column; }
}

/* ===== SINGLE SPAZIO ===== */
.xhl-single-spazio {
	width: 100vw;
	max-width: 100vw;
	margin: 0;
	padding: 0 0 60px;
}

.xhl-spazio-hero {
	position: relative;
	overflow: hidden;
	margin-bottom: 32px;
	min-height: 280px;
	background: linear-gradient(135deg, #1e3a5f, #2d6a8f);
}

.xhl-spazio-hero-img img {
	width: 100%;
	height: 320px;
	object-fit: cover;
	display: block;
}

.xhl-spazio-hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 60%);
	padding: 28px;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
}

.xhl-spazio-back {
	position: absolute;
	top: 20px;
	left: 28px;
	color: rgba(255,255,255,0.8);
	font-size: 14px;
	text-decoration: none;
}
.xhl-spazio-back:hover { color: #fff; }

.xhl-spazio-hero-meta {
	display: flex;
	gap: 8px;
	margin-bottom: 10px;
}

.xhl-spazio-tipo-badge {
	background: rgba(255,255,255,0.2);
	color: #fff;
	font-size: 12px;
	padding: 3px 12px;
	border-radius: 20px;
	backdrop-filter: blur(4px);
}

.xhl-spazio-prenotabile-badge {
	background: rgba(34,197,94,0.3);
	color: #fff;
	font-size: 12px;
	padding: 3px 12px;
	border-radius: 20px;
}

.xhl-spazio-title {
	font-size: 32px;
	font-weight: 700;
	color: #fff;
	margin: 0;
}

.xhl-spazio-body {
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding: 0 32px;
}

.xhl-spazio-top-row {
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: 24px;
	align-items: start;
	margin-bottom: 24px;
}

.xhl-spazio-bottom-row {
	display: grid;
	grid-template-columns: 300px 1fr;
	gap: 24px;
	align-items: start;
}

.xhl-spazio-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 28px;
	box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.xhl-spazio-card-title {
	font-size: 18px;
	font-weight: 700;
	color: #111827;
	margin: 0 0 20px;
	padding-bottom: 12px;
	border-bottom: 1px solid #f3f4f6;
}

.xhl-spazio-detail-list {
	list-style: none;
	margin: 0 0 24px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.xhl-spazio-detail-list li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.xhl-det-icon { font-size: 18px; flex-shrink: 0; }
.xhl-det-label { font-size: 13px; color: #6b7280; min-width: 90px; padding-top: 2px; }
.xhl-det-val { font-size: 14px; color: #111827; font-weight: 500; }

.xhl-spazio-prenota-btn { width: 100%; text-align: center; margin-top: 8px; }

.xhl-spazio-cal-wrap {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.xhl-cal-toggle-btn {
	white-space: nowrap;
	align-self: flex-start;
}

.xhl-spazio-cal-panel {
	display: none;
	width: 100%;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 20px;
	box-shadow: 0 4px 16px rgba(0,0,0,0.1);
	box-sizing: border-box;
}
.xhl-spazio-cal-panel.xhl-cal-open { display: block; }

.xhl-spazio-cal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 14px;
}

.xhl-spazio-cal-title {
	font-size: 15px;
	font-weight: 600;
	color: #111827;
}

.xhl-spazio-cal-legend {
	display: flex;
	gap: 14px;
	font-size: 12px;
	color: #6b7280;
}

.xhl-cal-dot {
	display: inline-block;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	margin-right: 6px;
	vertical-align: middle;
}
.xhl-cal-dot-free { background: #22c55e; }
.xhl-cal-dot-busy { background: #ef4444; }

/* Tutti gli slot visibili (08-20) → verde tenue = disponibile di default */
#xhl-spazio-calendar .fc-timegrid-slot-lane { background: rgba(34, 197, 94, 0.10); }
/* Giorni/ore fuori business hours (es. domenica) → grigio = chiuso */
#xhl-spazio-calendar .fc-non-business { background: rgba(0, 0, 0, 0.07) !important; }

.xhl-spazio-booking-wrap {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 32px;
	box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.xhl-spazio-booking-title {
	font-size: 20px;
	font-weight: 700;
	color: #111827;
	margin: 0 0 24px;
	padding-bottom: 14px;
	border-bottom: 1px solid #f3f4f6;
}

@media (max-width: 700px) {
	.xhl-spazio-top-row { grid-template-columns: 1fr; }
	.xhl-spazio-bottom-row { grid-template-columns: 1fr; }
	.xhl-spazio-title { font-size: 24px; }
	.xhl-spazio-body { padding: 0 16px; }
}

/* ===================================================
 * LIBRERIA DIGITALE — polo_risorsa
 * =================================================== */

.xhl-libreria-wrap {
	width: 100%;
	max-width: 1100px;
	margin: 0 auto;
	padding: 40px 20px 60px;
}

.xhl-libreria-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 32px;
	gap: 16px;
}

.xhl-libreria-title {
	font-size: 32px;
	font-weight: 800;
	color: #111827;
	margin: 0 0 6px;
}

.xhl-libreria-subtitle {
	color: #6b7280;
	margin: 0;
	font-size: 15px;
}

/* Tabs */
.xhl-libreria-tabs {
	display: flex;
	gap: 4px;
	border-bottom: 2px solid #e5e7eb;
	margin-bottom: 20px;
}

.xhl-lib-tab {
	padding: 10px 18px;
	font-size: 14px;
	font-weight: 600;
	color: #6b7280;
	text-decoration: none;
	border-bottom: 2px solid transparent;
	margin-bottom: -2px;
	transition: color 0.15s, border-color 0.15s;
}

.xhl-lib-tab:hover { color: #111827; }

.xhl-lib-tab.active {
	color: #2563eb;
	border-bottom-color: #2563eb;
}

/* Filtri tipo */
.xhl-libreria-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 28px;
}

.xhl-lib-filter {
	padding: 6px 14px;
	border-radius: 20px;
	border: 1px solid #e5e7eb;
	background: #fff;
	font-size: 13px;
	font-weight: 500;
	color: #374151;
	text-decoration: none;
	transition: background 0.15s, border-color 0.15s;
}

.xhl-lib-filter:hover {
	background: #f3f4f6;
	border-color: #d1d5db;
}

.xhl-lib-filter.active {
	background: #2563eb;
	border-color: #2563eb;
	color: #fff;
}

/* Grid card */
.xhl-libreria-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 20px;
}

.xhl-lib-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	transition: box-shadow 0.15s;
}

.xhl-lib-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }

.xhl-lib-card--locked {
	opacity: 0.65;
}

.xhl-lib-card-icon {
	font-size: 28px;
	line-height: 1;
}

.xhl-lib-card-body { flex: 1; }

.xhl-lib-card-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 8px;
}

.xhl-lib-badge {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 12px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	background: #f3f4f6;
	color: #374151;
}

.xhl-lib-badge--pdf    { background: #fef2f2; color: #b91c1c; }
.xhl-lib-badge--video  { background: #eff6ff; color: #1d4ed8; }
.xhl-lib-badge--audio  { background: #f0fdf4; color: #15803d; }
.xhl-lib-badge--link   { background: #faf5ff; color: #7c3aed; }
.xhl-lib-badge--doc    { background: #fff7ed; color: #c2410c; }
.xhl-lib-badge--private  { background: #fef9c3; color: #a16207; }
.xhl-lib-badge--assigned { background: #e0f2fe; color: #0369a1; }
.xhl-lib-badge--download { background: #f0fdf4; color: #15803d; }

.xhl-lib-card-title {
	font-size: 15px;
	font-weight: 700;
	margin: 0 0 4px;
	line-height: 1.4;
}

.xhl-lib-card-title a {
	color: #111827;
	text-decoration: none;
}

.xhl-lib-card-title a:hover { color: #2563eb; }

.xhl-lib-card-owner {
	font-size: 12px;
	color: #9ca3af;
	margin: 0;
}

.xhl-lib-card-action { margin-top: auto; }

.xhl-lib-locked {
	font-size: 13px;
	color: #9ca3af;
}

.xhl-libreria-empty {
	padding: 60px 20px;
	text-align: center;
	color: #9ca3af;
	font-size: 15px;
}

/* Singola risorsa */
.xhl-risorsa-wrap {
	max-width: 1100px;
	margin: 0 auto;
	padding: 40px 20px 60px;
}

.xhl-risorsa-back {
	margin-bottom: 24px;
}

.xhl-risorsa-back a {
	color: #6b7280;
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
}

.xhl-risorsa-back a:hover { color: #111827; }

.xhl-risorsa-layout {
	display: grid;
	grid-template-columns: 1fr 280px;
	gap: 32px;
	align-items: start;
}

.xhl-risorsa-header {
	margin-bottom: 20px;
}

.xhl-risorsa-title {
	font-size: 28px;
	font-weight: 800;
	color: #111827;
	margin: 10px 0 0;
}

/* Viewer */
.xhl-risorsa-viewer {
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	overflow: hidden;
	margin-bottom: 24px;
}

.xhl-pdf-viewer {
	display: block;
	width: 100%;
	height: 600px;
	border: none;
}

.xhl-video-player {
	display: block;
	width: 100%;
	max-height: 480px;
	background: #000;
}

.xhl-audio-player {
	display: block;
	width: 100%;
	padding: 24px;
}

.xhl-risorsa-link-box,
.xhl-risorsa-doc-box {
	padding: 40px 24px;
	text-align: center;
}

.xhl-risorsa-doc-icon { font-size: 48px; display: block; margin-bottom: 12px; }

/* Embed oEmbed */
.xhl-risorsa-viewer iframe {
	display: block;
	width: 100%;
	aspect-ratio: 16/9;
	border: none;
}

.xhl-risorsa-description {
	font-size: 15px;
	color: #374151;
	line-height: 1.7;
}

/* Sidebar info */
.xhl-risorsa-info-box {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 20px;
	margin-bottom: 16px;
}

.xhl-risorsa-info-box h3 {
	font-size: 14px;
	font-weight: 700;
	color: #111827;
	margin: 0 0 16px;
	padding-bottom: 10px;
	border-bottom: 1px solid #f3f4f6;
}

.xhl-risorsa-dl {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 8px 12px;
	font-size: 13px;
	margin: 0;
}

.xhl-risorsa-dl dt {
	color: #9ca3af;
	font-weight: 600;
}

.xhl-risorsa-dl dd {
	color: #111827;
	margin: 0;
}

.xhl-risorsa-actions { margin-top: 8px; }

/* Locked */
.xhl-risorsa-locked {
	text-align: center;
	padding: 80px 20px;
}

.xhl-risorsa-locked p {
	font-size: 16px;
	color: #6b7280;
	margin-bottom: 16px;
}

@media (max-width: 768px) {
	.xhl-libreria-header { flex-direction: column; }
	.xhl-libreria-grid { grid-template-columns: 1fr; }
	.xhl-risorsa-layout { grid-template-columns: 1fr; }
	.xhl-pdf-viewer { height: 400px; }
	.xhl-libreria-title { font-size: 24px; }
	.xhl-risorsa-title { font-size: 22px; }
}

/* ===== CALL & CONTEST — sezioni shortcode ===== */

.xhl-single-call-section {
	width: 100%;
	overflow-wrap: break-word;
	word-break: break-word;
}

.xhl-single-call-section h2 {
	margin: 0 0 16px;
}

.xhl-single-call-section ol,
.xhl-single-call-section ul {
	padding-left: 24px;
	margin: 0;
}

.xhl-single-call-section li {
	display: list-item !important;
	margin-bottom: 6px;
	line-height: 1.6;
	white-space: normal;
	overflow-wrap: break-word;
	word-break: break-word;
}


/* ===== PROFILO UTENTE XHL ===== */

.xhl-profile-wrap {
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 0 0 60px;
}

/* ---- HERO ---- */
.xhl-profile-hero {
	background: linear-gradient(135deg, #1e3a5f 0%, #2d6a8f 100%);
	padding: 48px 40px 0;
	position: relative;
}

.xhl-profile-hero-inner {
	display: flex;
	align-items: flex-end;
	gap: 28px;
	max-width: 900px;
	margin: 0 auto;
	padding-bottom: 28px;
}

/* Avatar */
.xhl-profile-avatar-wrap {
	position: relative;
	flex-shrink: 0;
}

.xhl-profile-avatar-img,
.xhl-profile-avatar-placeholder {
	width: 110px;
	height: 110px;
	border-radius: 50%;
	border: 4px solid rgba(255,255,255,0.85);
	object-fit: cover;
	display: block;
	background: #b0c4de;
}

.xhl-profile-avatar-edit {
	position: absolute;
	bottom: 4px;
	right: 4px;
	width: 28px;
	height: 28px;
	background: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	text-decoration: none;
	box-shadow: 0 1px 4px rgba(0,0,0,0.2);
	line-height: 1;
}

/* Info name / role */
.xhl-profile-hero-info {
	flex: 1;
	min-width: 0;
}

.xhl-profile-name {
	font-size: 28px;
	font-weight: 700;
	color: #fff;
	margin: 0 0 8px;
	line-height: 1.2;
}

.xhl-profile-role-badge {
	display: inline-block;
	background: rgba(255,255,255,0.18);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	padding: 3px 14px;
	border-radius: 20px;
	backdrop-filter: blur(4px);
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

/* Navbar UM (messaggi, segui ecc.) — striscia sotto l'hero-inner */
.xhl-profile-navbar-row {
	max-width: 900px;
	margin: 0 auto;
	padding: 10px 0 0;
	border-top: 1px solid rgba(255,255,255,0.12);
}

.xhl-profile-navbar-row .um-profile-navbar {
	background: transparent;
	border: none;
	padding: 0;
}

.xhl-profile-navbar-row .um-profile-navbar .um-profile-nav-item a,
.xhl-profile-navbar-row .um-profile-navbar a {
	color: rgba(255,255,255,0.85);
}
.xhl-profile-navbar-row .um-profile-navbar .um-profile-nav-item a:hover,
.xhl-profile-navbar-row .um-profile-navbar a:hover {
	color: #fff;
}

/* ---- BODY ---- */
.xhl-profile-body {
	max-width: 900px;
	margin: 0 auto;
	padding: 32px 40px 0;
}

/* Override stile UM menu tab dentro il body custom */
.xhl-profile-body .um-profile-menu {
	border-bottom: 2px solid #e5e7eb;
	margin-bottom: 28px;
}

.xhl-profile-body .um-profile-subnav-item a,
.xhl-profile-body .um-profile-nav-item a {
	font-size: 14px;
	font-weight: 600;
	color: #6b7280;
	padding: 10px 18px;
	border-bottom: 2px solid transparent;
	margin-bottom: -2px;
}

.xhl-profile-body .um-profile-subnav-item.active a,
.xhl-profile-body .um-profile-nav-item.active a {
	color: #1e3a5f;
	border-bottom-color: #1e3a5f;
}

/* Contenuto tab About: rimuove bordi UM di default */
.xhl-profile-body .um-profile-body {
	border: none;
	padding: 0;
	background: transparent;
}

/* Campi profilo UM nel tab */
.xhl-profile-body .um-field-label label {
	font-weight: 600;
	color: #374151;
	font-size: 13px;
}

.xhl-profile-body .um-field-value {
	color: #111827;
	font-size: 15px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
	.xhl-profile-hero { padding: 32px 20px 0; }
	.xhl-profile-hero-inner { gap: 18px; }
	.xhl-profile-avatar-img,
	.xhl-profile-avatar-placeholder { width: 80px; height: 80px; }
	.xhl-profile-name { font-size: 22px; }
	.xhl-profile-body { padding: 24px 20px 0; }
}


/* Nasconde il container Amelia iniettato da [xhl_prenota_evento] —
   il panel slide-up si apre ugualmente perché è fuori da questo div. */
.amelia-v2-booking:has(+ .xhl-amelia-event-id) {
	display: none !important;
}


/* ===== HERO GALLERY SLIDER [xhl_evento_gallery] ===== */
.xhl-hs {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
}
.xhl-hs-track {
	position: relative;
	width: 100%;
	height: 100%;
}
.xhl-hs-slide {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	opacity: 0;
	transition: opacity 0.8s ease;
}
.xhl-hs-slide.xhl-hs-active {
	opacity: 1;
}
.xhl-hs-bars {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 6px;
	z-index: 10;
}
.xhl-hs-bar {
	width: 40px;
	height: 3px;
	background: rgba(255,255,255,0.35);
	border-radius: 2px;
	overflow: hidden;
}
.xhl-hs-bar-fill {
	height: 100%;
	width: 0%;
	background: #fff;
	border-radius: 2px;
}
.xhl-hs-bar.xhl-hs-active .xhl-hs-bar-fill {
	animation: xhl-hs-progress var(--xhl-hs-dur, 5000ms) linear forwards;
}
@keyframes xhl-hs-progress { to { width: 100%; } }

/* ==============================================
   CALL FORM — toggle on button click
   ============================================== */
#xhl-call-form-col {
    display: none;
}
#xhl-call-form-col.xhl-visible {
    display: block;
}

/* ==============================================
   CONTENT BOX — font override
   ============================================== */
.xhl-detail-box .fusion-content-box-content,
.xhl-detail-box .fusion-content-box-title,
.xhl-detail-box .content-container {
    font-family: 'IBM Plex Sans', sans-serif !important;
}

/* ==============================================
   EVENTO PROGRAMMA - compact content boxes
   ============================================== */
.timeline_programma .content-box-wrapper.content-wrapper-background {
    padding: 10px 14px !important;
}

.timeline_programma .content-container,
.timeline_programma .fusion-content-box-content {
    margin: 0 !important;
    padding: 0 !important;
}

.timeline_programma .heading,
.timeline_programma .fusion-content-box-title {
    margin-bottom: 4px !important;
}

.timeline_programma .content-icon-wrapper {
    margin-right: 10px !important;
}

/* ==============================================
   AVADA CHECKLIST - inherit global body font
   ============================================== */
.fusion-checklist .fusion-li-item-content,
.fusion-checklist .fusion-li-item-content * {
    font-family: var(--body_typography-font-family, Arial, Helvetica, sans-serif) !important;
}

/* ==============================================
   EVENTO DATE BADGE
   ============================================== */
.xhl-date-badge {
    width: 58px;
    min-height: 82px;
    background: #ffc928;
    border-radius: 8px;
    color: #07182d;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-align: center;
    padding: 6px 4px;
}

.xhl-date-badge__day {
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
}

.xhl-date-badge__month {
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}

.xhl-date-badge__divider {
    width: 34px;
    height: 1px;
    margin: 2px 0;
    background: rgba(7, 24, 45, .35);
}

.xhl-date-badge__year {
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    margin-top: 2px;
}

/* ==============================================
   DASHBOARD — glassmorphism
   ============================================== */


