/* ==============================================
   XhiveLab Candidature — Stili plugin
   ============================================== */

/* Forza full width per la singola call */
.post-type-polo_call .site-content,
.post-type-polo_call .content-area,
.post-type-polo_call .entry-content,
.post-type-polo_call .ast-container {
	max-width: 100% !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

.xhl-calls-page {
	width: 100%;
	padding: 0 0 60px;
}

.xhl-calls-header {
	background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
	margin: 0;
	padding: 60px 40px;
	text-align: center;
}

.xhl-calls-header-inner {
	max-width: 680px;
	margin: 0 auto;
}

.xhl-calls-headline {
	font-size: 2.2em;
	font-weight: 700;
	color: #fff !important;
	margin-bottom: 12px;
}

.xhl-calls-subtitle {
	color: rgba(255,255,255,0.75);
	font-size: 1.05em;
	margin-bottom: 28px;
}

.xhl-calls-search-wrap {
	display: flex;
	gap: 10px;
	justify-content: center;
}

.xhl-calls-search-wrap input {
	flex: 1;
	max-width: 420px;
	padding: 12px 18px;
	border-radius: 0;
	border: none;
	font-size: 0.95em;
	outline: none;
}

.xhl-search-btn {
	background: #fbbf24;
	color: #102855;
	border: 1px solid transparent;
	padding: 12px 22px;
	border-radius: 0;
	font-weight: 700;
	font-size: 0.9em;
	cursor: pointer;
	transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.xhl-search-btn:hover {
	background: #102855;
	color: #fff;
	border-color: #fff;
}

/* Come funziona */
.xhl-hiw {
	background: #f8fafc;
	padding: 28px 40px;
	margin: 0 0 0;
	text-align: center;
	border-bottom: 1px solid #e5e7eb;
}

.xhl-hiw-label {
	font-size: 0.75em;
	font-weight: 700;
	letter-spacing: 0.1em;
	color: #9ca3af;
	margin-bottom: 16px;
}

.xhl-hiw-steps {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 24px;
	flex-wrap: wrap;
}

.xhl-hiw-step {
	display: flex;
	align-items: center;
	gap: 12px;
}

.xhl-hiw-num {
	width: 36px;
	height: 36px;
	background: #f59e0b;
	color: #1a1a2e;
	border-radius: 50%;
	font-weight: 700;
	font-size: 1em;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.xhl-hiw-text strong {
	display: block;
	font-size: 0.95em;
	color: #1a1a2e;
}

.xhl-hiw-text span {
	display: block;
	font-size: 0.8em;
	color: #6b7280;
}

.xhl-hiw-arrow {
	color: #d1d5db;
	font-size: 1.2em;
}

/* Layout contenuto */
.xhl-calls-content {
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 32px;
	align-items: start;
	padding: 40px 40px 0;
}

/* Sidebar filtri */
.xhl-calls-sidebar {
	position: sticky;
	top: 100px;
}

.xhl-filter-section {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 0;
	padding: 20px;
}

.xhl-filter-header {
	font-weight: 700;
	font-size: 0.95em;
	color: #374151;
	margin-bottom: 18px;
}

.xhl-filter-group-label {
	font-size: 0.7em;
	font-weight: 700;
	letter-spacing: 0.1em;
	color: #9ca3af;
	margin: 16px 0 8px;
}

.xhl-filter-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.xhl-filter-list li {
	margin-bottom: 6px;
}

.xhl-filter-opt {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	font-size: 0.9em;
	color: #374151;
}

.xhl-filter-opt input[type="radio"] {
	accent-color: #f59e0b;
}

/* Griglia card */
.xhl-calls-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 24px;
	align-content: start;
}

/* Call card */
.xhl-call-card {
	background: #fff;
	border-radius: 0;
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(0,0,0,0.07);
	transition: transform 0.2s, box-shadow 0.2s;
	cursor: pointer;
	border: 1px solid #f3f4f6;
}

.xhl-call-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(0,0,0,0.13);
}

.xhl-card-closed {
	opacity: 0.72;
}

.xhl-call-image {
	position: relative;
	height: 180px;
	overflow: hidden;
	background: #e5e7eb;
}

.xhl-call-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.xhl-call-img-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #1e3a5f, #2d6a8f);
}

/* Badge stato */
.xhl-call-badge {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 0;
	font-size: 0.72em;
	font-weight: 700;
	letter-spacing: 0.04em;
}

/* Meta block singola call */
.xhl-call-meta-block {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.xhl-call-meta-row {
	display: flex;
	align-items: center;
	gap: 10px;
}
.xhl-call-meta-label {
	font-size: 0.7em;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #888;
	min-width: 80px;
}
.xhl-call-meta-value {
	font-size: 0.9em;
	font-weight: 500;
	color: inherit;
}

.xhl-badge-open     { background: #d1fae5; color: #065f46; }
.xhl-badge-closing  { background: #fef3c7; color: #92400e; }
.xhl-badge-ongoing  { background: #dbeafe; color: #1d4ed8; }
.xhl-badge-incoming { background: #ede9fe; color: #6d28d9; }
.xhl-badge-closed   { background: #f3f4f6; color: #6b7280; }

/* Overlay chiusa */
.xhl-closed-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,0.45);
	display: flex;
	align-items: center;
	justify-content: center;
}

.xhl-closed-overlay span {
	background: rgba(0,0,0,0.6);
	color: #fff;
	font-weight: 900;
	font-size: 1.1em;
	letter-spacing: 0.15em;
	padding: 8px 18px;
	border: 2px solid rgba(255,255,255,0.6);
	border-radius: 0;
}

/* Body card */
.xhl-call-body {
	padding: 18px 20px 22px;
}

.xhl-call-category {
	font-size: 0.7em;
	font-weight: 700;
	letter-spacing: 0.1em;
	color: #9ca3af;
	margin-bottom: 6px;
}

.xhl-call-title {
	font-size: 1.05em;
	font-weight: 700;
	line-height: 1.35;
	margin-bottom: 8px;

}

.xhl-call-title a {
	color: #1a1a2e !important;
	text-decoration: none !important;
	border-bottom: none !important;
	box-shadow: none !important;
}

.xhl-call-title a:hover {
	color: #d97706 !important;
}

.xhl-call-excerpt {
	font-size: 0.85em;
	color: #6b7280;
	line-height: 1.5;
	margin-bottom: 12px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.xhl-call-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 0.78em;
	color: #6b7280;
	margin-bottom: 14px;
}

.xhl-urgent {
	color: #dc2626 !important;
	font-weight: 600;
}

.xhl-btn {
	display: inline-block;
	padding: 10px 20px;
	border-radius: 0;
	font-size: 0.88em;
	font-weight: 600;
	text-decoration: none !important;
	text-align: center;
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
	border: none;
}

.xhl-btn-primary {
	background: #fbbf24;
	color: #102855 !important;
	border: 1px solid transparent;
	transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.xhl-btn-primary:hover {
	background: #102855;
	color: #fff !important;
	border-color: #fff;
}

.xhl-btn-secondary {
	background: #f3f4f6;
	color: #374151 !important;
}

.xhl-btn-secondary:hover {
	background: #e5e7eb;
}

.xhl-btn-full {
	display: block;
	width: 100%;
}

.xhl-btn-apply {
	background: #fbbf24 !important;
	color: #102855 !important;
	border: 1px solid transparent !important;
	font-weight: 700;
	transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.xhl-btn-apply:hover {
	background: #102855 !important;
	color: #fff !important;
	border-color: #fff !important;
}

.xhl-no-results {
	grid-column: 1 / -1;
	text-align: center;
	padding: 48px 20px;
	color: #9ca3af;
}


/* ==============================================
   CALL & CONTEST — Singola pagina
   ============================================== */

.xhl-single-call {
	width: 100%;
	padding: 0 0 60px;
}

.xhl-single-call-hero {
	position: relative;
	overflow: hidden;
	min-height: 320px;
	background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
	margin-bottom: 40px;
	display: flex;
	align-items: flex-end;
}

.xhl-hero-no-img {
	min-height: 200px;
}

.xhl-single-call-hero-img {
	position: absolute;
	inset: 0;
}

.xhl-single-call-hero-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	opacity: 0.45;
}

.xhl-single-call-hero-overlay {
	position: relative;
	z-index: 2;
	padding: 40px;
	width: 100%;
}

.xhl-single-call-meta-top {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 14px;
}

.xhl-single-call-meta-top .xhl-call-category {
	color: rgba(255,255,255,0.7);
}

.xhl-single-call-meta-top .xhl-call-badge,
.xhl-sidebar-value .xhl-call-badge {
	position: static;
}

.xhl-single-call-title {
	font-size: 2em;
	font-weight: 800;
	color: #fff !important;
	line-height: 1.25;
	margin-bottom: 10px;
}

.xhl-single-call-excerpt {
	color: rgba(255,255,255,0.8);
	font-size: 1.05em;
	line-height: 1.5;
	margin: 0;
}

.xhl-single-call-body {
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: 36px;
	align-items: start;
	padding: 0 40px;
}

.xhl-back-link {
	margin-bottom: 20px;
	font-size: 0.9em;
}

.xhl-back-link a {
	color: #6b7280;
	text-decoration: none;
}

.xhl-back-link a:hover {
	color: #f59e0b;
}

.xhl-single-call-desc {
	font-size: 1em;
	line-height: 1.75;
	color: #374151;
	margin-bottom: 32px;
}

.xhl-single-call-requisiti {
	background: #f8fafc;
	border-left: 4px solid #f59e0b;
	border-radius: 0 8px 8px 0;
	padding: 20px 24px;
}

.xhl-single-call-requisiti h2 {
	font-size: 1.15em;
	margin-bottom: 12px;
	color: #1a1a2e;
}

.xhl-single-call-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 0;
	padding: 22px;
	margin-bottom: 16px;
}

.xhl-sidebar-title {
	font-size: 1em;
	font-weight: 700;
	color: #fbbf24;
	margin-bottom: 18px;
	padding-bottom: 12px;
	border-bottom: 1px solid #f3f4f6;
}

.xhl-sidebar-row {
	display: flex;
	gap: 12px;
	margin-bottom: 14px;
}

.xhl-sidebar-icon {
	font-size: 1.1em;
	flex-shrink: 0;
	margin-top: 1px;
}

.xhl-sidebar-label {
	font-size: 0.75em;
	color: #9ca3af;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 2px;
}

.xhl-sidebar-value {
	font-size: 0.9em;
	color: #374151;
	font-weight: 500;
}

.xhl-single-call-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.xhl-call-closed-msg {
	background: #f3f4f6;
	color: #6b7280;
	border-radius: 0;
	padding: 14px 16px;
	font-size: 0.9em;
	text-align: center;
}

.xhl-already-candidato {
	background: #d1fae5;
	color: #065f46;
	border-radius: 0;
	padding: 14px 16px;
	font-size: 0.9em;
	text-align: center;
	line-height: 1.5;
}

.xhl-already-candidato a {
	display: block;
	margin-top: 6px;
	color: #059669;
	font-weight: 600;
}

.xhl-single-call-form {
	margin: 48px 40px 0;
	padding: 40px;
	background: #f8fafc;
	border-radius: 0;
	border: 1px solid #e5e7eb;
}

.xhl-single-call-form h2 {
	font-size: 1.4em;
	font-weight: 700;
	color: #fbbf24 /*#1a1a2e*/;
	margin-bottom: 8px;
}

.xhl-form-intro {
	color: #fbbf24 /*#6b7280*/;
	font-size: 0.95em;
	margin-bottom: 28px;
}

.xhl-form-locked {
	text-align: center;
}

.xhl-login-required {
	padding: 32px;
	background: #fff;
	border-radius: 0;
	border: 1px solid #e5e7eb;
}

.xhl-login-required p {
	font-size: 1.05em;
	color: #374151;
	margin-bottom: 16px;
}

/* Dashboard candidature */
.xhl-candidature-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.xhl-candidatura-row {
	display: flex;
	align-items: stretch;
	justify-content: space-between;
	gap: 14px;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 0;
	padding: 12px;
	box-shadow: 0 8px 24px rgba(15,23,42,0.08);
	transition: border-color 0.2s, box-shadow 0.2s;
}

.xhl-candidatura-row:hover {
	border-color: #d1d5db;
	box-shadow: 0 12px 32px rgba(15,23,42,0.12);
}

.xhl-cand-info {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 12px;
	min-width: 0;
	flex: 1;
}

.xhl-cand-thumb {
	flex-shrink: 0;
	width: 58px;
	height: 66px;
	border-radius: 0;
	overflow: hidden;
	background: #f3f4f6;
	display: block;
}

.xhl-cand-thumb-img,
.xhl-cand-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.xhl-cand-thumb-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #fef3c7 0%, #e0f2fe 52%, #eef2ff 100%);
}

.xhl-cand-title {
	font-weight: 600;
	font-size: 0.95em;
	color: #171717;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.xhl-candidature-list .xhl-candidatura-row .xhl-cand-title {
	font-size: 0.95em;
	font-weight: 600;
	color: #171717;
}

.xhl-cand-meta {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
}

.xhl-cand-categoria {
	font-size: 0.7em;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: #fff;
	background: #1e3a5f;
	padding: 2px 8px;
	border-radius: 0;
}

.xhl-cand-date {
	font-size: 0.8em;
	color: #5f6b7a;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.xhl-cand-deadline {
	font-size: 0.8em;
	color: #5f6b7a;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.xhl-cand-meta-icon {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 14px;
	height: 14px;
	border: 1.7px solid #405066;
	border-radius: 0;
	flex: 0 0 14px;
}

.xhl-cand-meta-icon::before {
	content: "";
	position: absolute;
	top: -3px;
	left: 3px;
	right: 3px;
	height: 4px;
	border-left: 1.7px solid #405066;
	border-right: 1.7px solid #405066;
}

.xhl-cand-meta-icon::after {
	content: "";
	width: 4px;
	height: 4px;
	background: #405066;
	border-radius: 0;
}

.xhl-status-badge {
	flex-shrink: 0;
	padding: 5px 13px;
	border-radius: 0;
	font-size: 0.78em;
	font-weight: 700;
	white-space: nowrap;
}

.xhl-status-inviata    { background: #dbeafe; color: #1e40af; }
.xhl-status-revisione  { background: #fef3c7; color: #92400e; }
.xhl-status-accettata  { background: #d1fae5; color: #065f46; }
.xhl-status-rifiutata  { background: #fee2e2; color: #991b1b; }
.xhl-status-ritirata   { background: #f3f4f6; color: #6b7280; }

.xhl-cand-actions {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	justify-content: space-between;
	gap: 18px;
	flex-shrink: 0;
}

.xhl-cand-action-buttons {
	display: flex;
	align-items: center;
	gap: 8px;
}

.xhl-btn-dettagli,
.xhl-btn-ritira {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 64px;
	min-height: 34px;
	border-radius: 0;
	font-size: 0.8em;
	font-weight: 700;
	line-height: 1;
	padding: 8px 13px;
	cursor: pointer;
	white-space: nowrap;
	text-decoration: none !important;
	transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.xhl-btn-dettagli {
	background: #fff;
	border: 1px solid #9aa6b2;
	color: #1f2937;
	box-shadow: 0 1px 2px rgba(15,23,42,0.08);
}

.xhl-btn-dettagli:hover {
	background: #f8fafc;
	border-color: #64748b;
	color: #111827;
}

.xhl-btn-ritira {
	background: #ffc400;
	border: 1px solid #ffc400;
	color: #1f2937;
}

.xhl-btn-ritira:hover:not(:disabled) {
	background: #f3b700;
	border-color: #f3b700;
	color: #111827;
}

.xhl-btn-ritira:disabled {
	opacity: 0.38;
	cursor: not-allowed;
}

.xhl-btn-ritira--done {
	pointer-events: none;
}

.xhl-ritira-confirm {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
	justify-content: flex-end;
	min-height: 0;
}

.xhl-ritira-question {
	font-size: 0.75em;
	color: #6b7280;
}

.xhl-ritira-yes,
.xhl-ritira-no {
	border: none;
	border-radius: 0;
	font-size: 0.75em;
	font-weight: 600;
	padding: 3px 10px;
	cursor: pointer;
	transition: opacity 0.15s;
}

.xhl-ritira-yes {
	background: #dc2626;
	color: #fff;
}

.xhl-ritira-yes:hover { opacity: 0.85; }

.xhl-ritira-no {
	background: #f3f4f6;
	color: #374151;
}

.xhl-ritira-no:hover { background: #e5e7eb; }

.xhl-ritira-loading {
	font-size: 0.75em;
	color: #9ca3af;
}

.xhl-ritira-error {
	font-size: 0.75em;
	color: #dc2626;
}

.xhl-cand-details {
	display: none;
}

.xhl-cand-modal {
	position: fixed;
	inset: 0;
	z-index: 99998;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.xhl-cand-modal--open {
	display: flex;
}

.xhl-cand-modal-lock {
	overflow: hidden;
}

.xhl-cand-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15,23,42,0.48);
}

.xhl-cand-modal-dialog {
	position: relative;
	z-index: 1;
	width: min(760px, 100%);
	max-height: min(82vh, 720px);
	overflow: auto;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 0;
	box-shadow: 0 24px 70px rgba(15,23,42,0.22);
}

.xhl-cand-modal-close {
	position: sticky;
	top: 12px;
	float: right;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	margin: 12px 12px 0 0;
	border: 1px solid #e5e7eb;
	border-radius: 999px;
	background: #fff;
	color: #334155;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 1px 2px rgba(15,23,42,0.08);
}

.xhl-cand-modal-close:hover {
	background: #f8fafc;
	color: #0f172a;
}

.xhl-cand-modal-body {
	padding: 28px;
	clear: both;
}

.xhl-cand-detail-head {
	padding-right: 42px;
	margin-bottom: 20px;
}

.xhl-cand-detail-kicker {
	display: block;
	margin-bottom: 6px;
	color: #64748b;
	font-size: 0.78em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.xhl-cand-detail-title {
	margin: 0 0 12px;
	color: #111827;
	font-size: 1.35em;
	line-height: 1.25;
}

.xhl-cand-detail-summary {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	color: #64748b;
	font-size: 0.88em;
}

.xhl-cand-detail-summary strong {
	color: #1f2937;
}

.xhl-cand-detail-table-wrap {
	overflow-x: auto;
	border: 1px solid #e5e7eb;
	border-radius: 0;
}

.xhl-cand-detail-table {
	width: 100%;
	border-collapse: collapse;
	margin: 0;
	font-size: 0.9em;
}

.xhl-cand-detail-table th,
.xhl-cand-detail-table td {
	padding: 13px 14px;
	border-bottom: 1px solid #e5e7eb;
	vertical-align: top;
	text-align: left;
}

.xhl-cand-detail-table tr:last-child th,
.xhl-cand-detail-table tr:last-child td {
	border-bottom: 0;
}

.xhl-cand-detail-table th {
	width: 34%;
	background: #f8fafc;
	color: #475569;
	font-weight: 700;
}

.xhl-cand-detail-table td {
	color: #1f2937;
}

.xhl-cand-detail-table td a {
	color: #1d4ed8;
	font-weight: 600;
}

.xhl-cand-detail-empty,
.xhl-cand-detail-form-id {
	margin: 12px 0 0;
	color: #64748b;
	font-size: 0.86em;
}

.xhl-cand-consent {
	display: inline-flex;
	align-items: center;
	padding: 3px 9px;
	border-radius: 999px;
	font-size: 0.85em;
	font-weight: 600;
}

.xhl-cand-consent--yes {
	background: #dcfce7;
	color: #166534;
}

/* Toast notifiche */
.xhl-toast {
	position: fixed;
	bottom: 32px;
	left: 50%;
	transform: translateX(-50%) translateY(12px);
	background: #1f2c46;
	color: #fff;
	font-size: 0.88em;
	font-weight: 500;
	padding: 12px 24px;
	border-radius: 0;
	box-shadow: 0 8px 24px rgba(0,0,0,0.18);
	opacity: 0;
	transition: opacity 0.25s ease, transform 0.25s ease;
	z-index: 99999;
	white-space: nowrap;
	pointer-events: none;
}

.xhl-toast--visible {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

.xhl-toast--error {
	background: #dc2626;
}

.xhl-no-candidature {
	text-align: center;
	padding: 40px 20px;
	color: #6b7280;
}

.xhl-no-candidature__img {
	display: block;
	margin: 0 auto 16px;
	max-width: 160px;
	width: 100%;
	height: auto;
}

/* Responsive */
@media (max-width: 900px) {
	.xhl-calls-content {
		grid-template-columns: 1fr;
	}

	.xhl-calls-sidebar {
		position: static;
	}

	.xhl-single-call-body {
		grid-template-columns: 1fr;
	}

	.xhl-single-call-sidebar {
		order: -1;
	}
}

@media (max-width: 600px) {
	.xhl-calls-search-wrap {
		flex-direction: column;
	}

	.xhl-calls-search-wrap input {
		max-width: 100%;
	}

	.xhl-single-call-hero-overlay {
		padding: 24px;
	}

	.xhl-single-call-title {
		font-size: 1.4em;
	}

	.xhl-single-call-form {
		padding: 24px;
	}

	.xhl-hiw-steps {
		flex-direction: column;
		gap: 16px;
	}

	.xhl-candidatura-row {
		width: 100%;
		max-width: 320px;
		margin: 0 auto;
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
		padding: 12px;
		box-sizing: border-box;
	}

	.xhl-cand-info {
		width: 100%;
		min-width: 0;
		gap: 10px;
	}

	.xhl-cand-thumb {
		width: 72px;
		height: 72px;
	}

	.xhl-cand-title {
		white-space: normal;
		overflow: visible;
		text-overflow: clip;
	}

	.xhl-cand-date,
	.xhl-cand-deadline {
		width: 100%;
		line-height: 1.35;
	}

	.xhl-cand-meta-icon {
		margin-top: 1px;
	}

	.xhl-cand-actions {
		width: 100%;
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
	}

	.xhl-cand-action-buttons {
		width: 100%;
		margin-left: 0;
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 8px;
	}

	.xhl-status-badge {
		align-self: flex-start;
	}

	.xhl-btn-dettagli,
	.xhl-btn-ritira {
		width: 100%;
		min-width: 0;
		padding-left: 8px;
		padding-right: 8px;
	}

	.xhl-ritira-confirm {
		justify-content: flex-start;
	}

	.xhl-cand-modal {
		padding: 12px;
		align-items: flex-start;
	}

	.xhl-cand-modal-dialog {
		max-height: calc(100vh - 24px);
	}

	.xhl-cand-modal-body {
		padding: 20px;
	}

	.xhl-cand-detail-head {
		padding-right: 36px;
	}

	.xhl-cand-detail-table,
	.xhl-cand-detail-table tbody,
	.xhl-cand-detail-table tr,
	.xhl-cand-detail-table th,
	.xhl-cand-detail-table td {
		display: block;
		width: 100%;
	}

	.xhl-cand-detail-table th {
		border-bottom: 0;
		padding-bottom: 4px;
	}

	.xhl-cand-detail-table td {
		padding-top: 4px;
	}
}

@media (max-width: 380px) {
	.xhl-candidatura-row {
		max-width: 100%;
	}

	.xhl-cand-action-buttons {
		grid-template-columns: 1fr;
	}
}

/* ==============================================
   GRUPPO MANAGER — pagina /gruppo-di-lavoro/
   ============================================== */

.xhl-gruppo-wrap {
	max-width: 1200px;
	margin: 0 auto;
	padding: 24px 16px 80px;
	color: #1a1a1a;
	font-family: inherit;
}

.xhl-gruppo-msg {
	background: #fff;
	border-radius: 0;
	padding: 24px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.04);
	font-size: 15px;
}
.xhl-gruppo-msg.xhl-error {
	border-left: 4px solid #d93025;
}

.xhl-gruppo-errors,
.xhl-gruppo-notices {
	margin: 12px 0;
	padding: 12px 16px;
	border-radius: 0;
	font-size: 14px;
}
.xhl-gruppo-errors {
	background: #fce8e6;
	color: #b3261e;
}
.xhl-gruppo-notices {
	background: #e6f7ed;
	color: #1f8b4c;
}
.xhl-gruppo-errors p,
.xhl-gruppo-notices p {
	margin: 4px 0;
}

/* Top stats bar */
.xhl-gruppo-statsbar {
	background: #fff;
	border-radius: 0;
	padding: 20px 24px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.04);
	margin-bottom: 20px;
	display: grid;
	grid-template-columns: 180px 1fr 1fr 1fr 1fr;
	gap: 24px;
	align-items: center;
}
.xhl-gruppo-stat {
	display: flex;
	align-items: center;
	gap: 14px;
}
.xhl-gruppo-stat-icon {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #fef3d4;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.xhl-gruppo-stat-icon svg {
	width: 22px;
	height: 22px;
	fill: rgb(251 191 36);
}
.xhl-gruppo-stat-label {
	font-size: 12px;
	color: #777;
	text-transform: uppercase;
	letter-spacing: .5px;
	line-height: 1.3;
}
.xhl-gruppo-stat-value {
	font-size: 16px;
	font-weight: 700;
	color: #1a1a1a;
	line-height: 1.2;
}
.xhl-gruppo-stat-value.is-warn {
	color: rgb(251 191 36);
}
.xhl-gruppo-stat-value.is-ok {
	color: #1f8b4c;
}

/* Donut chart */
.xhl-gruppo-donut {
	width: 120px;
	height: 120px;
	position: relative;
}
.xhl-gruppo-donut svg {
	width: 100%;
	height: 100%;
	transform: rotate(-90deg);
}
.xhl-gruppo-donut-track {
	fill: none;
	stroke: #f0f0f0;
	stroke-width: 3;
}
.xhl-gruppo-donut-progress {
	fill: none;
	stroke: rgb(251 191 36);
	stroke-width: 3;
	stroke-linecap: round;
	transition: stroke-dasharray .4s ease;
}
.xhl-gruppo-donut-center {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
}
.xhl-gruppo-donut-value {
	font-size: 22px;
	font-weight: 700;
	color: #1a1a1a;
	line-height: 1;
}
.xhl-gruppo-donut-label {
	font-size: 10px;
	color: #777;
	text-transform: uppercase;
	letter-spacing: .5px;
	margin-top: 4px;
}

/* 2-col layout */
.xhl-gruppo-layout {
	display: grid;
	grid-template-columns: 1fr 340px;
	gap: 20px;
	align-items: start;
}

/* Card generica */
.xhl-gruppo-card {
	background: #fff;
	border-radius: 0;
	padding: 24px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.xhl-gruppo-card + .xhl-gruppo-card {
	margin-top: 20px;
}
.xhl-gruppo-card-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 18px;
}
.xhl-gruppo-card-icon-tile {
	width: 36px;
	height: 36px;
	border-radius: 0;
	background: #1e3a5f;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.xhl-gruppo-card-icon-tile.is-yellow {
	background: rgb(251 191 36);
}
.xhl-gruppo-card-icon-tile svg {
	width: 18px;
	height: 18px;
	fill: #fff;
}
.xhl-gruppo-card-title {
	font-size: 18px;
	font-weight: 600;
	color: #1a1a1a;
	margin: 0;
}

/* Membri table */
.xhl-gruppo-membri-table {
	width: 100%;
	border-collapse: collapse;
}
.xhl-gruppo-membri-table th {
	text-align: left;
	font-size: 12px;
	font-weight: 500;
	color: #888;
	text-transform: none;
	padding: 0 12px 12px;
	border-bottom: 1px solid #eee;
}
.xhl-gruppo-membri-table td {
	padding: 14px 12px;
	border-bottom: 1px solid #f5f5f5;
	font-size: 14px;
	color: #333;
	vertical-align: middle;
}
.xhl-gruppo-membri-table tr:last-child td {
	border-bottom: none;
}
.xhl-gruppo-membri-table .col-actions {
	text-align: right;
	white-space: nowrap;
}
.xhl-gruppo-leader-row td {
	font-weight: 600;
}
.xhl-gruppo-leader-email em {
	font-weight: 400;
	color: #888;
	font-style: normal;
	margin-left: 4px;
}

/* Stato badge */
.xhl-gruppo-badge {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.6;
}
.xhl-gruppo-badge-leader     { background: #e6f7ed; color: #1f8b4c; }
.xhl-gruppo-badge-invitato   { background: #e8f0fe; color: #1a73e8; }
.xhl-gruppo-badge-accettato  { background: #e6f7ed; color: #1f8b4c; }
.xhl-gruppo-badge-rifiutato  { background: #fce8e6; color: #d93025; }
.xhl-gruppo-badge-rimosso    { background: #f0f0f0; color: #666; }

/* Pulsanti (rispettano design system: radius 4, niente border) */
.xhl-gruppo-wrap .xhl-btn,
.xhl-gruppo-wrap .xhl-btn-small,
.xhl-gruppo-wrap button.xhl-btn,
.xhl-gruppo-wrap button.xhl-btn-small,
.xhl-gruppo-manage .xhl-btn,
.xhl-gruppo-manage .xhl-btn-small,
.xhl-gruppo-manage button.xhl-btn,
.xhl-gruppo-manage button.xhl-btn-small {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 8px 14px;
	border: none;
	border-radius: 0;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	text-decoration: none;
	transition: filter .15s, background-color .15s;
	line-height: 1.2;
}
.xhl-gruppo-wrap .xhl-btn:hover,
.xhl-gruppo-wrap .xhl-btn-small:hover,
.xhl-gruppo-manage .xhl-btn:hover,
.xhl-gruppo-manage .xhl-btn-small:hover {
	filter: brightness(0.95);
}
.xhl-gruppo-wrap .xhl-btn-primary,
.xhl-gruppo-manage .xhl-btn-primary {
	background: #fbbf24;
	color: #102855;
	border: 1px solid transparent;
	transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.xhl-gruppo-wrap .xhl-btn-primary:hover,
.xhl-gruppo-manage .xhl-btn-primary:hover {
	background: #102855;
	color: #fff;
	border-color: #fff;
}
.xhl-gruppo-wrap .xhl-btn-reinvita,
.xhl-gruppo-manage .xhl-btn-reinvita {
	background: #fef3d4;
	color: #a87a02;
}
.xhl-gruppo-wrap .xhl-btn-danger,
.xhl-gruppo-manage .xhl-btn-danger {
	background: #fce8e6;
	color: #d93025;
	margin-left: 6px;
}
.xhl-gruppo-wrap .xhl-btn svg,
.xhl-gruppo-wrap .xhl-btn-small svg,
.xhl-gruppo-manage .xhl-btn svg,
.xhl-gruppo-manage .xhl-btn-small svg,
.xhl-gruppo-svg-icon {
	display: block;
	width: 14px;
	height: 14px;
	max-width: 14px;
	max-height: 14px;
	fill: currentColor;
}

/* Form aggiungi */
.xhl-gruppo-wrap .xhl-gruppo-add-card .xhl-gruppo-card-title {
	font-size: 22px;
	line-height: 1.15;
}
.xhl-gruppo-add-form {
	margin: 0;
}
.xhl-gruppo-add-form label {
	display: block;
	font-size: 13px;
	color: #555;
	margin-bottom: 8px;
}
.xhl-gruppo-add-form .xhl-gruppo-input-wrap {
	position: relative;
	margin-bottom: 14px;
}
.xhl-gruppo-add-form input[type="email"] {
	width: 100%;
	height: 46px;
	padding: 0 12px 0 42px;
	border: 1px solid #e0e0e0;
	border-radius: 0;
	font-size: 14px;
	line-height: 46px;
	background: #fff;
	box-sizing: border-box;
}
.xhl-gruppo-add-form input[type="email"]:focus {
	outline: none;
	border-color: rgb(251 191 36);
}
.xhl-gruppo-input-icon {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	width: 18px;
	height: 18px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #9aa0a6;
	pointer-events: none;
}
.xhl-gruppo-input-icon svg {
	width: 16px;
	height: 16px;
	fill: currentColor;
}

.xhl-group-admin-wrap .xhl-gruppo-wrap svg,
.xhl-group-admin-wrap .xhl-gruppo-manage svg {
	display: block;
	max-width: 100%;
	max-height: 100%;
}

.xhl-group-admin-wrap .xhl-gruppo-wrap .xhl-btn-small,
.xhl-group-admin-wrap .xhl-gruppo-manage .xhl-btn-small {
	width: auto;
	min-width: 0;
	min-height: 34px;
	appearance: none;
	-webkit-appearance: none;
}

.xhl-group-admin-wrap .xhl-gruppo-membri-table .col-actions {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 6px;
}

.xhl-group-admin-wrap .xhl-gruppo-membri-table .col-actions form {
	display: inline-flex !important;
	margin: 0;
}

.xhl-group-admin-wrap .xhl-gruppo-membri-table .col-actions .xhl-btn-danger {
	margin-left: 0;
}
.xhl-gruppo-add-form .xhl-btn-primary {
	width: 100%;
	padding: 12px 14px;
}

/* Invio candidatura panel */
.xhl-gruppo-invio-info {
	font-size: 14px;
	color: #555;
	line-height: 1.5;
	margin-bottom: 14px;
}
.xhl-gruppo-invio-info strong {
	color: #1a1a1a;
}
.xhl-gruppo-invio-warning {
	background: #fff8e1;
	color: #8a6a00;
	padding: 12px 14px;
	border-radius: 0;
	font-size: 13px;
	display: flex;
	align-items: center;
	gap: 8px;
}
.xhl-gruppo-invio-warning svg {
	width: 16px;
	height: 16px;
	fill: rgb(251 191 36);
	flex-shrink: 0;
}
.xhl-gruppo-invio-ok {
	background: #e6f7ed;
	color: #1f8b4c;
	padding: 12px 14px;
	border-radius: 0;
	font-size: 13px;
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 500;
}
.xhl-gruppo-invio-ok svg {
	width: 24px;
	height: 24px;
	fill: currentColor;
	flex-shrink: 0;
}

/* Crea gruppo */
.xhl-gruppo-create .xhl-gruppo-emails {
	display: grid;
	gap: 10px;
	margin: 16px 0 20px;
}
.xhl-gruppo-email-row {
	display: grid;
	grid-template-columns: 200px 1fr;
	gap: 12px;
	align-items: center;
}
.xhl-gruppo-email-row label {
	font-size: 13px;
	color: #555;
}
.xhl-gruppo-email-row input[type="email"] {
	padding: 10px 12px;
	border: 1px solid #e0e0e0;
	border-radius: 0;
	font-size: 14px;
}
.xhl-required { color: #d93025; margin-left: 2px; }

/* =========================================================
   Scelta modalità (contest ibridi: individuale o gruppo)
   ========================================================= */
.xhl-scelta {
	max-width: 860px;
	margin: 0 auto;
}
.xhl-scelta-header {
	text-align: center;
	margin-bottom: 28px;
}
.xhl-scelta-header h2 {
	font-size: 24px;
	font-weight: 700;
	margin: 0 0 8px;
	color: #1a1a1a;
}
.xhl-scelta-header p {
	margin: 0;
	color: #666;
	font-size: 14px;
}
.xhl-scelta-cards {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}
.xhl-scelta-card {
	background: #fff;
	border-radius: 0;
	border: 2px solid #ececec;
	padding: 28px 24px;
	text-decoration: none !important;
	color: #1a1a1a;
	transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.xhl-scelta-card:hover {
	border-color: rgb(251 191 36);
	box-shadow: 0 8px 22px rgba(0,0,0,0.08);
	transform: translateY(-2px);
	color: #1a1a1a;
}
.xhl-scelta-card-icon {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: #fff7e0;
	color: rgb(251 191 36);
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.xhl-scelta-card-icon svg {
	width: 28px;
	height: 28px;
	fill: currentColor;
}
.xhl-scelta-card h3 {
	font-size: 18px;
	font-weight: 700;
	margin: 6px 0 0;
	color: #1a1a1a;
}
.xhl-scelta-card p {
	flex: 1;
	margin: 0;
	color: #666;
	font-size: 13.5px;
	line-height: 1.5;
}
.xhl-scelta-card-cta {
	color: rgb(251 191 36);
	font-weight: 700;
	font-size: 13px;
	margin-top: 6px;
}
@media (max-width: 720px) {
	.xhl-scelta-cards { grid-template-columns: 1fr; }
}

/* =========================================================
   CTA candidatura individuale
   ========================================================= */
.xhl-individuale-cta {
	max-width: 720px;
	margin: 0 auto;
	background: #fff;
	border-radius: 0;
	padding: 32px;
	box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.xhl-individuale-cta-header h2 {
	font-size: 22px;
	font-weight: 700;
	margin: 0 0 6px;
	color: #1a1a1a;
}
.xhl-individuale-cta-header p {
	margin: 0 0 22px;
	color: #555;
	font-size: 14px;
}
.xhl-individuale-cta-info {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	background: #f6f7fa;
	border-radius: 0;
	padding: 16px 18px;
	margin: 0 0 22px;
}
.xhl-individuale-cta-icon {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: rgb(251 191 36);
	flex-shrink: 0;
	box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.xhl-individuale-cta-icon svg {
	width: 22px;
	height: 22px;
	fill: currentColor;
}
.xhl-individuale-cta-info strong {
	display: block;
	font-size: 14px;
	color: #1a1a1a;
	margin-bottom: 2px;
}
.xhl-individuale-cta-info span {
	font-size: 13px;
	color: #555;
}
.xhl-individuale-cta-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}
@media (max-width: 600px) {
	.xhl-individuale-cta { padding: 22px; }
	.xhl-individuale-cta-actions {
		flex-direction: column-reverse;
		align-items: stretch;
	}
	.xhl-individuale-cta-actions .xhl-btn { width: 100%; text-align: center; }
}

/* =========================================================
   Crea gruppo di lavoro — UI v2 (tag-style)
   ========================================================= */
.xhl-gruppo-create--v2 {
	max-width: 980px;
	margin: 0 auto;
	background: #fff;
	border-radius: 0;
	padding: 32px 36px;
	box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
/* Fix: gli elementi con display:flex non rispettano [hidden] di default */
.xhl-gruppo-create--v2 [hidden] { display: none !important; }
.xhl-gruppo-create-header h2 {
	font-size: 22px;
	font-weight: 700;
	margin: 0 0 6px;
	color: #1a1a1a;
}
.xhl-gruppo-create-header p {
	margin: 0 0 18px;
	color: #555;
	font-size: 14px;
}
.xhl-gruppo-create-info {
	display: flex;
	gap: 14px;
	align-items: center;
	background: linear-gradient(120deg, #faf0ff 0%, #fff5e0 100%);
	border-radius: 0;
	padding: 14px 18px;
	margin: 0 0 18px;
}
.xhl-gruppo-create-info-icon {
	font-size: 20px;
	flex-shrink: 0;
	line-height: 1.2;
}
.xhl-gruppo-create-info strong {
	display: block;
	font-size: 14px;
	color: #1a1a1a;
	margin-bottom: 2px;
}
.xhl-gruppo-create-info span {
	font-size: 13px;
	color: #555;
}
.xhl-gruppo-create-leader {
	display: flex;
	align-items: center;
	gap: 14px;
	background: #f6f7fa;
	border-radius: 0;
	padding: 12px 16px;
	margin: 0 0 22px;
}
.xhl-gruppo-create-leader-icon {
	width: 36px;
	height: 36px;
	background: #fff;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	flex-shrink: 0;
	box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.xhl-gruppo-create-leader-role {
	display: block;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .5px;
	color: #888;
	margin-bottom: 2px;
}
.xhl-gruppo-create-leader strong {
	font-size: 14px;
	color: #1a1a1a;
}

/* Input aggiungi */
.xhl-gruppo-add-row {
	margin: 0 0 14px;
}
.xhl-gruppo-add-label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #333;
	margin-bottom: 8px;
}
.xhl-gruppo-add-input-wrap {
	display: flex;
	gap: 10px;
}
.xhl-gruppo-add-input,
.xhl-gruppo-wrap input[type="email"],
.xhl-gruppo-wrap input[type="text"] {
	flex: 1;
	padding: 11px 14px;
	border: 1px solid #d0d4dc;
	border-radius: 0 !important;
	font-size: 14px;
	background: #fff;
	color: #1a1a1a;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.xhl-gruppo-add-input:focus {
	outline: none;
	border-color: rgb(251 191 36);
	box-shadow: 0 0 0 3px rgba(251, 191, 36, .18);
}
.xhl-gruppo-add-input:disabled {
	background: #f6f7fa;
	color: #999;
}
.xhl-gruppo-add-btn {
	flex-shrink: 0;
	padding: 0 22px;
}
.xhl-gruppo-add-error {
	margin: 8px 0 0;
	color: #c2362b;
	font-size: 13px;
}

/* Lista pills email */
.xhl-gruppo-pill-list {
	list-style: none;
	margin: 0 0 14px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.xhl-gruppo-pill {
	display: flex;
	align-items: center;
	gap: 12px;
	background: #fff;
	border: 1px solid #e6e8ec;
	border-radius: 0;
	padding: 10px 14px;
	font-size: 14px;
	color: #1a1a1a;
}
.xhl-gruppo-pill-icon {
	width: 28px;
	height: 28px;
	background: #e8f0fe;
	color: #1a73e8;
	border-radius: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	flex-shrink: 0;
}
.xhl-gruppo-pill-email {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.xhl-gruppo-pill-badge {
	display: none;
}
.xhl-gruppo-pill-remove {
	background: transparent;
	border: none;
	color: #999;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	padding: 4px 6px;
	border-radius: 0;
	transition: background .15s ease, color .15s ease;
}
.xhl-gruppo-pill-remove:hover {
	background: #fde7e7;
	color: #c2362b;
}

/* Bottone "Aggiungi un altro membro" dashed */
.xhl-gruppo-add-more {
	display: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
	background: #fff;
	border: 2px dashed #d0d4dc;
	border-radius: 0;
	padding: 14px 18px;
	cursor: pointer;
	color: #555;
	font: inherit;
	text-align: left;
	margin: 0 0 16px;
	transition: border-color .15s ease, background .15s ease;
}
.xhl-gruppo-add-more:hover {
	border-color: rgb(251 191 36);
	background: #fffbf0;
}
.xhl-gruppo-add-more-plus {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #f6f7fa;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	color: #555;
	flex-shrink: 0;
}
.xhl-gruppo-add-more-body strong {
	display: block;
	font-size: 14px;
	color: #1a1a1a;
	font-weight: 600;
}
.xhl-gruppo-add-more-body em {
	font-style: normal;
	font-size: 12px;
	color: #888;
}

/* Feedback */
.xhl-gruppo-feedback {
	display: flex;
	align-items: center;
	gap: 10px;
	border-radius: 0;
	padding: 12px 16px;
	margin: 0 0 18px;
	font-size: 13px;
}
.xhl-gruppo-feedback--info {
	background: #f0f6ff;
	color: #1a4e8a;
}
.xhl-gruppo-feedback--success {
	background: #eafaf0;
	color: #156d3d;
}
.xhl-gruppo-feedback-icon {
	font-size: 16px;
}

/* Actions */
.xhl-gruppo-actions--v2 {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	margin-top: 22px;
	gap: 12px;
	flex-wrap: wrap;
}
.xhl-btn-ghost {
	background: transparent;
	border: none;
	color: #555;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	padding: 8px 10px;
	border-radius: 0;
	transition: background .15s ease, color .15s ease;
}
.xhl-btn-ghost:hover {
	background: #f6f7fa;
	color: #1a1a1a;
}
.xhl-gruppo-submit-v2 {
	padding: 12px 24px;
	font-size: 14px;
}
.xhl-gruppo-submit-v2:disabled {
	opacity: .55;
	cursor: not-allowed;
}

@media (max-width: 600px) {
	.xhl-gruppo-create--v2 {
		padding: 20px;
		border-radius: 0;
	}
	.xhl-gruppo-add-input-wrap {
		flex-direction: column;
	}
	.xhl-gruppo-add-btn {
		width: 100%;
	}
	.xhl-gruppo-actions--v2 {
		flex-direction: column;
		align-items: stretch;
	}
	.xhl-gruppo-submit-v2 {
		width: 100%;
	}
}

/* Wrapper input + bottone rimuovi per le righe extra (aggiunte dinamicamente) */
.xhl-gruppo-email-extra-wrap {
	display: flex;
	gap: 8px;
	align-items: stretch;
}
.xhl-gruppo-email-extra-wrap input[type="email"] {
	flex: 1;
	padding: 10px 12px;
	border: 1px solid #e0e0e0;
	border-radius: 0;
	font-size: 14px;
}
.xhl-btn-remove-email {
	background: transparent;
	border: 1px solid #e0e0e0;
	border-radius: 0;
	width: 38px;
	color: #888;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.xhl-btn-remove-email:hover {
	background: #fde7e7;
	border-color: #f4c1bd;
	color: #c2362b;
}

/* Bottone "Aggiungi invitato" */
.xhl-gruppo-add-wrap {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	margin: 0 0 20px;
}
.xhl-btn-add-email {
	background: #fff;
	color: rgb(251 191 36);
	border: 1px dashed rgb(251 191 36);
	border-radius: 0;
	padding: 9px 18px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background .15s ease, color .15s ease;
}
.xhl-btn-add-email:hover:not(:disabled) {
	background: rgb(251 191 36);
	color: #1a1a1a;
}
.xhl-btn-add-email:disabled {
	opacity: .5;
	cursor: not-allowed;
}
.xhl-gruppo-add-hint {
	font-size: 12px;
	color: #888;
}

.xhl-gruppo-leader-info {
	background: #f8f8f8;
	padding: 10px 14px;
	border-radius: 0;
	font-size: 13px;
	color: #555;
}

/* Table mobile wrapper (horizontal scroll quando non sta in larghezza) */
.xhl-gruppo-membri-table-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

/* Spinner per pulsanti in caricamento */
.xhl-gruppo-spinner {
	display: inline-block;
	width: 12px;
	height: 12px;
	border: 2px solid currentColor;
	border-top-color: transparent;
	border-radius: 50%;
	animation: xhl-gruppo-spin .7s linear infinite;
	vertical-align: middle;
}
@keyframes xhl-gruppo-spin {
	to { transform: rotate(360deg); }
}
.xhl-gruppo-wrap button[disabled] {
	opacity: .65;
	cursor: wait;
}

/* Pulsante Annulla (ghost / link-style) */
.xhl-gruppo-annulla-wrap {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid #f0f0f0;
	text-align: left;
}
.xhl-gruppo-wrap .xhl-btn-ghost {
	width: 100%;
	background: #fff;
	color: #6b7280;
	border: 1px solid #e5e7eb;
	border-radius: 0;
	padding: 11px 16px;
	font-size: 13px;
	cursor: pointer;
	text-decoration: none;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
}
.xhl-gruppo-wrap .xhl-btn-ghost:hover {
	background: #fff5f5;
	border-color: #f6c7c3;
	color: #d93025;
}
.xhl-gruppo-wrap .xhl-btn-ghost svg {
	width: 15px;
	height: 15px;
	fill: currentColor;
}

/* Responsive */
@media (max-width: 1080px) {
	.xhl-gruppo-statsbar {
		grid-template-columns: 140px 1fr 1fr;
		gap: 16px;
		padding: 18px 20px;
	}
	.xhl-gruppo-donut {
		grid-row: span 2;
	}
	.xhl-gruppo-layout {
		grid-template-columns: 1fr;
	}
}
@media (max-width: 720px) {
	.xhl-gruppo-wrap {
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
		overflow: hidden;
		padding: 16px 12px 60px;
	}
	.xhl-gruppo-statsbar {
		grid-template-columns: 1fr 1fr;
		gap: 14px;
		padding: 16px;
	}
	.xhl-gruppo-donut {
		grid-column: span 2;
		grid-row: auto;
		justify-self: center;
		width: 110px;
		height: 110px;
	}
	.xhl-gruppo-card {
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
		overflow: hidden;
		padding: 18px;
	}
	.xhl-gruppo-stat-icon {
		width: 36px;
		height: 36px;
	}
	.xhl-gruppo-stat-icon svg {
		width: 18px;
		height: 18px;
	}
	.xhl-gruppo-membri-table-wrap {
		overflow-x: visible;
	}
	.xhl-gruppo-membri-table,
	.xhl-gruppo-membri-table thead,
	.xhl-gruppo-membri-table tbody,
	.xhl-gruppo-membri-table tr,
	.xhl-gruppo-membri-table td {
		display: block;
		width: 100%;
		box-sizing: border-box;
	}
	.xhl-gruppo-membri-table thead {
		display: none;
	}
	.xhl-gruppo-membri-table tr {
		margin: 0 0 12px;
		padding: 12px;
		border: 1px solid #edf0f4;
		border-radius: 0;
		background: #fff;
	}
	.xhl-gruppo-membri-table td {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		min-width: 0;
		padding: 8px 0;
		border-bottom: 1px solid #f3f5f7;
		font-size: 13px;
		overflow-wrap: anywhere;
	}
	.xhl-gruppo-membri-table td::before {
		content: attr(data-label);
		flex: 0 0 auto;
		color: #777;
		font-size: 11px;
		font-weight: 700;
		text-transform: uppercase;
		letter-spacing: .02em;
	}
	.xhl-gruppo-membri-table td:not([data-label])::before {
		content: "";
		display: none;
	}
	.xhl-gruppo-membri-table tr:last-child td,
	.xhl-gruppo-membri-table td:last-child {
		border-bottom: 0;
	}
	.xhl-gruppo-membri-table .col-actions {
		display: grid;
		grid-template-columns: 1fr;
		gap: 8px;
		text-align: left;
		white-space: normal;
	}
	.xhl-gruppo-membri-table .col-actions::before {
		display: none;
	}
	.xhl-gruppo-membri-table .col-actions form,
	.xhl-gruppo-membri-table .col-actions .xhl-btn-small {
		width: 100%;
	}
	.xhl-gruppo-membri-table .col-actions .xhl-btn-danger {
		margin-left: 0;
	}
	.xhl-gruppo-add-form .xhl-gruppo-input-wrap {
		margin-bottom: 10px;
	}
}
@media (max-width: 480px) {
	.xhl-gruppo-statsbar {
		grid-template-columns: 1fr;
	}
	.xhl-gruppo-donut {
		grid-column: auto;
	}
	.xhl-gruppo-card-title {
		font-size: 16px;
	}
	.xhl-gruppo-membri-table th,
	.xhl-gruppo-membri-table td {
		padding: 10px 8px;
		font-size: 12px;
	}
	.xhl-gruppo-email-row {
		grid-template-columns: 1fr;
		gap: 6px;
	}
}

/* Statsbar variante 3 colonne (per vista individuale) */
.xhl-gruppo-statsbar.xhl-statsbar-3col {
	grid-template-columns: 1fr 1fr 1fr;
}
@media (max-width: 720px) {
	.xhl-gruppo-statsbar.xhl-statsbar-3col {
		grid-template-columns: 1fr 1fr;
	}
}
@media (max-width: 480px) {
	.xhl-gruppo-statsbar.xhl-statsbar-3col {
		grid-template-columns: 1fr;
	}
}

/* Tabella riepilogo dati form (vista individuale) */
.xhl-individuale-form-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 4px;
}
.xhl-individuale-form-table th,
.xhl-individuale-form-table td {
	border-bottom: 1px solid #f5f5f5;
	padding: 14px 12px;
	font-size: 14px;
	color: #333;
	vertical-align: top;
}
.xhl-individuale-form-table th {
	color: #555;
	background: #fafafa;
	font-weight: 600;
	text-align: left;
	width: 35%;
}
.xhl-individuale-form-table tr:last-child th,
.xhl-individuale-form-table tr:last-child td {
	border-bottom: none;
}
.xhl-individuale-form-table a {
	color: rgb(251 191 36);
	word-break: break-word;
}
.xhl-individuale-form-table img {
	display: block;
	max-width: 180px;
	height: auto;
	border-radius: 0;
	border: 1px solid #eee;
}

/* ==============================================
   DASHBOARD wp-admin — lista candidature utente
   ============================================== */

.xhl-customer-panel-wrap {
	background: #f6f7fa;
	min-height: 100vh;
	margin: 0 0 0 -20px;
	padding: 24px 30px;
}
.xhl-customer-panel-wrap h1 {
	font-size: 24px;
	margin: 0;
	color: #1a1a1a;
}
.xhl-dashboard-section {
	margin-bottom: 36px;
}
.xhl-dashboard-section-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 14px;
	padding-bottom: 10px;
	border-bottom: 1px solid #e0e0e0;
}
.xhl-dashboard-section-title {
	font-size: 18px;
	font-weight: 600;
	margin: 0;
	color: #1a1a1a;
}

.xhl-cand-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 16px;
}
.xhl-cand-card {
	display: block;
	background: #fff;
	border-radius: 0;
	padding: 18px 20px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.05);
	text-decoration: none !important;
	color: #1a1a1a;
	transition: transform .15s ease, box-shadow .15s ease;
	border: 1px solid #f0f0f0;
}
.xhl-cand-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 22px rgba(0,0,0,0.08);
	color: #1a1a1a;
}
.xhl-cand-card-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 12px;
	gap: 8px;
	flex-wrap: wrap;
}
.xhl-cand-card-badge {
	display: inline-block;
	font-size: 11px;
	padding: 3px 10px;
	border-radius: 999px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .4px;
}
.xhl-cand-card-badge-individuale { background: #e8f0fe; color: #1a73e8; }
.xhl-cand-card-badge-gruppo      { background: #fef3d4; color: #a87a02; }
.xhl-cand-card-stato {
	font-size: 12px;
	color: #888;
	font-style: italic;
}
.xhl-cand-card-title {
	font-size: 16px;
	font-weight: 600;
	margin: 0 0 6px;
	line-height: 1.3;
	color: #1a1a1a;
}
.xhl-cand-card-meta {
	font-size: 12px;
	color: #888;
	margin: 0 0 14px;
}
.xhl-cand-card-cta {
	color: rgb(251 191 36);
	font-size: 13px;
	font-weight: 600;
}
.xhl-cand-empty {
	background: #fff;
	border-radius: 0;
	padding: 30px;
	text-align: center;
	color: #888;
}

/* Amelia placeholder card */
.xhl-amelia-card {
	background: #fff;
	border-radius: 0;
	padding: 24px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.05);
	display: flex;
	align-items: center;
	gap: 18px;
	border: 1px solid #f0f0f0;
}
.xhl-amelia-card-text {
	flex: 1;
}
.xhl-amelia-card-text strong {
	display: block;
	font-size: 16px;
	color: #1a1a1a;
	margin-bottom: 4px;
}
.xhl-amelia-card-text span {
	font-size: 13px;
	color: #666;
}
.xhl-amelia-card a.button {
	background: #fbbf24;
	color: #102855;
	border: 1px solid transparent;
	border-radius: 0;
	padding: 10px 20px;
	font-weight: 600;
	text-decoration: none;
	font-size: 13px;
	transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.xhl-amelia-card a.button:hover {
	background: #102855;
	color: #fff;
	border-color: #fff;
}
.xhl-amelia-card a.button:hover {
	background: rgb(220 165 15);
	color: #fff;
}

/* Iframe sub-pagine wp-admin */
.xhl-iframe-wrap {
	background: #f6f7fa;
	margin: 0 0 0 -20px;
}
.xhl-iframe-wrap iframe {
	display: block;
	width: 100%;
	min-height: calc(100vh - 32px);
	border: none;
}

/* =========================================================
   Dashboard utente — pannello unificato stile Amelia
   ========================================================= */
.xhl-dashboard-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
	margin-bottom: 28px;
	flex-wrap: nowrap;
}
.xhl-dashboard-header-title {
	display: flex;
	align-items: center;
	gap: 18px;
	flex: 1 1 0;
	min-width: 0;
}
.xhl-dashboard-h1 {
	margin: 0;
	font-size: 25px;
	line-height: 1.15;
	font-weight: 800;
	color: #081b3a;
	letter-spacing: -.2px;
}
.xhl-dashboard-h1-icon {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background: #e8eef8;
	color: #0b3470;
	font-size: 25px;
	line-height: 1;
	flex: 0 0 auto;
}
.xhl-dashboard-h1-icon::before {
	line-height: 1;
}

/* --- Filtri date range --- */
.xhl-dashboard-filters {
	display: flex;
	align-items: stretch;
	gap: 10px;
	margin-bottom: 0;
	flex-wrap: nowrap;
	flex-shrink: 0;
	margin-left: auto;
}
.xhl-dashboard-daterange {
	display: flex;
	align-items: center;
	gap: 10px;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 0;
	padding: 6px 12px;
	min-height: 40px;
	flex: 0 0 auto;
	min-width: 0;
}
.xhl-dashboard-daterange-chevron {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 14px;
	height: 14px;
	color: #999;
	margin-left: 2px;
}
.xhl-dashboard-daterange-chevron svg {
	width: 100%;
	height: 100%;
}
.xhl-dashboard-daterange-icon {
	width: 18px;
	height: 18px;
	color: #888;
	flex-shrink: 0;
}
.xhl-dashboard-daterange-icon svg {
	width: 100%;
	height: 100%;
}
.xhl-dashboard-daterange-field {
	position: relative;
	display: inline-flex;
	align-items: center;
	cursor: pointer;
}
.xhl-dashboard-daterange-field input[type="date"] {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	border: none;
	cursor: pointer;
}
.xhl-dashboard-daterange-display {
	font-size: 14px;
	color: #333;
	padding: 4px 8px;
	border-radius: 0;
	pointer-events: none;
	text-transform: capitalize;
}
.xhl-dashboard-daterange-field:hover .xhl-dashboard-daterange-display {
	background: #f6f7fa;
}
.xhl-dashboard-daterange-sep {
	color: #aaa;
	font-weight: 600;
}
.xhl-dashboard-filter-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #fbbf24;
	color: #102855;
	border: 1px solid transparent;
	border-radius: 0;
	padding: 0 18px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	min-height: 42px;
	transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.xhl-dashboard-filter-btn:hover {
	background: #102855;
	color: #fff;
	border-color: #fff;
}
.xhl-dashboard-filter-btn svg {
	width: 16px;
	height: 16px;
}

/* --- Empty state --- */
.xhl-dashboard-empty {
	background: #fff;
	border-radius: 0;
	padding: 40px 24px;
	text-align: center;
	color: #888;
	border: 1px solid #ececec;
}
.xhl-dashboard-empty p {
	margin: 0 0 18px;
}
.xhl-dashboard-empty-cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	border: 1px solid transparent;
	border-radius: 0;
	font-size: 13px;
	font-weight: 600;
	background: #fbbf24;
	color: #102855;
	text-decoration: none;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.xhl-dashboard-empty-cta:hover {
	background: #102855;
	color: #fff;
	border-color: #fff;
}
.xhl-dashboard-empty-cta-icon {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	font-size: 16px;
	line-height: 1;
}
.xhl-dashboard-empty-cta-icon::before {
	line-height: 1;
}

/* --- Day groups --- */
.xhl-dashboard-days {
	display: flex;
	flex-direction: column;
	gap: 28px;
}
.xhl-dashboard-day-title {
	font-size: 15px;
	font-weight: 700;
	margin: 0 0 12px;
	color: #091223;
	text-transform: capitalize;
	letter-spacing: .1px;
}
.xhl-dashboard-day--past .xhl-dashboard-day-title {
	color: #8a8f99;
	font-weight: 600;
}
.xhl-dashboard-day-cards {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

/* --- Timeline verticale a sinistra dei gruppi giornalieri --- */
.xhl-dashboard-days {
	position: relative;
	padding-left: 32px;
}
.xhl-dashboard-days::before {
	content: "";
	position: absolute;
	left: 12px;
	top: 10px;
	bottom: 10px;
	width: 2px;
	background: #e4e4e4;
	border-radius: 0;
}
.xhl-dashboard-day {
	position: relative;
}
.xhl-dashboard-day-title {
	position: relative;
}
.xhl-dashboard-day-title::before {
	content: "";
	position: absolute;
	left: -25px;
	top: 50%;
	transform: translateY(-50%);
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #fff;
	border: 2px solid #d0d5dd;
	box-sizing: border-box;
}
.xhl-dashboard-day--past .xhl-dashboard-day-title::before {
	background: #f4f4f4;
	border-color: #e4e4e4;
}

/* --- Card --- */
.xhl-dashboard-card {
	background: #fff;
	border-radius: 0;
	border: 1px solid transparent;
	box-shadow: 0 1px 3px rgba(0,0,0,0.06);
	transition: border-color .15s ease, box-shadow .15s ease;
	overflow: hidden;
}
.xhl-dashboard-card--open {
	border-color: rgb(251 191 36);
	box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}
.xhl-dashboard-day--past .xhl-dashboard-card,
.xhl-dashboard-card--canceled {
	opacity: .55;
}
.xhl-dashboard-card--canceled .xhl-dashboard-card-title {
	text-decoration: line-through;
}
.xhl-dashboard-card-header {
	display: flex;
	align-items: center;
	gap: 16px;
	width: 100%;
	background: transparent;
	border: none;
	padding: 16px 20px;
	cursor: pointer;
	text-align: left;
	font: inherit;
	color: inherit;
}
.xhl-dashboard-card-header[disabled] {
	cursor: default;
}
.xhl-dashboard-card-header:hover:not([disabled]) {
	background: #fafbfc;
}
.xhl-dashboard-card-time {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-width: 56px;
	padding: 6px 10px;
	background: #f1f1f1;
	border-radius: 0;
	font-size: 13px;
	font-weight: 600;
	color: #555;
	flex-shrink: 0;
}
.xhl-dashboard-card-time-icon--clock {
	color: #091223;
}
.xhl-dashboard-card-time-icon--clock svg {
	width: 14px;
	height: 14px;
}
.xhl-dashboard-card-time-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
}
.xhl-dashboard-card-time-icon svg {
	width: 100%;
	height: 100%;
}
.xhl-dashboard-card-time-icon--candidatura {
	color: rgb(251 191 36);
}
.xhl-dashboard-card-body {
	flex: 1;
	min-width: 0;
}
.xhl-dashboard-card-title {
	font-size: 15px;
	font-weight: 600;
	color: #1a1a1a;
	line-height: 1.3;
}
.xhl-dashboard-card-subtitle {
	font-size: 12px;
	color: #888;
	margin-top: 3px;
}
.xhl-dashboard-card-canceled-note {
	margin-top: 6px;
	color: #9a3412;
	font-size: 12px;
	font-weight: 700;
}
.xhl-dashboard-card-right {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
}

.xhl-dashboard-badge {
	display: inline-block;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .5px;
	text-transform: uppercase;
	padding: 4px 9px;
	border-radius: 0;
}
.xhl-dashboard-badge--evento {
	background: #fef3d4;
	color: #a87a02;
}
.xhl-dashboard-badge--candidatura {
	background: #e8f0fe;
	color: #1a73e8;
}

.xhl-dashboard-status {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 600;
	padding: 5px 12px;
	border-radius: 999px;
	background: #eafaf0;
	color: #1d9b56;
}
.xhl-dashboard-status-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: currentColor;
}
.xhl-dashboard-status--canceled,
.xhl-dashboard-status--rejected,
.xhl-dashboard-status--rifiutata,
.xhl-dashboard-status--ritirata {
	background: #fde7e7;
	color: #c2362b;
}
.xhl-dashboard-status--pending,
.xhl-dashboard-status--inviata,
.xhl-dashboard-status--in_revisione {
	background: #fff7e0;
	color: #a87a02;
}
.xhl-dashboard-status--bozza_gruppo,
.xhl-dashboard-status--in_attesa_quorum {
	background: #f0f0f0;
	color: #666;
}
.xhl-dashboard-status--no-show {
	background: #f0f0f0;
	color: #888;
}

.xhl-dashboard-card-chevron {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	color: #999;
	transition: transform .2s ease;
}
.xhl-dashboard-card-chevron svg {
	width: 16px;
	height: 16px;
}
.xhl-dashboard-card--open .xhl-dashboard-card-chevron {
	transform: rotate(180deg);
}

/* --- Card details (accordion) --- */
.xhl-dashboard-card-details {
	background: #fafbfc;
	border-top: 1px solid #ececec;
	padding: 14px 20px 18px;
}
.xhl-dashboard-card-meta-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
}
.xhl-dashboard-card-meta-row {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: #555;
}
.xhl-dashboard-card-meta-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	color: rgb(251 191 36);
}
.xhl-dashboard-card-meta-icon svg {
	width: 100%;
	height: 100%;
}
.xhl-dashboard-card-meta-link {
	color: rgb(251 191 36);
	text-decoration: none;
	font-weight: 600;
}
.xhl-dashboard-card-meta-link:hover {
	color: rgb(220 165 15);
	text-decoration: underline;
}

/* --- Card actions (Amelia event booking) --- */
.xhl-dashboard-card-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px dashed #e5e5e5;
}
.xhl-dashboard-card-action {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border: none;
	border-radius: 0;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	text-decoration: none;
	transition: background-color .15s ease, color .15s ease, opacity .15s ease;
}
.xhl-dashboard-card-action:disabled {
	opacity: .55;
	cursor: progress;
}
.xhl-dashboard-card-action-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
}
.xhl-dashboard-card-action-icon svg {
	width: 100%;
	height: 100%;
}
.xhl-dashboard-card-action--eticket {
	background: #fbbf24;
	color: #102855;
	border: 1px solid transparent;
	transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.xhl-dashboard-card-action--eticket:hover:not(:disabled) {
	background: #102855;
	color: #fff;
	border-color: #fff;
}
.xhl-dashboard-card-action--ics {
	background: rgb(254 243 212);
	color: rgb(168 122 2);
}
.xhl-dashboard-card-action--ics:hover {
	background: rgb(252 232 175);
	color: rgb(148 100 0);
}
.xhl-dashboard-card-action--cancel {
	background: #fde7e7;
	color: #c2362b;
}
.xhl-dashboard-card-action--cancel:hover:not(:disabled) {
	background: #c2362b;
	color: #fff;
}

/* --- Responsive --- */
@media (max-width: 720px) {
	.xhl-dashboard-card-header {
		flex-wrap: wrap;
	}
	.xhl-dashboard-card-right {
		width: 100%;
		justify-content: flex-end;
		margin-top: 4px;
	}
	.xhl-dashboard-card-meta-list {
		flex-direction: column;
		gap: 8px;
	}
	.xhl-dashboard-card-actions {
		flex-direction: column;
		align-items: stretch;
	}
	.xhl-dashboard-card-action {
		justify-content: center;
	}
}

/* --- Tablet + mobile: filter allineato alla larghezza degli altri elementi --- */
@media (max-width: 1024px) {
	.xhl-dashboard-header {
		flex-direction: column;
		align-items: stretch;
	}
	.xhl-dashboard-filters {
		flex-wrap: wrap;
		margin-left: 0;
	}
	.xhl-dashboard-daterange {
		min-width: 0;
		width: 100%;
		box-sizing: border-box;
	}
	.xhl-dashboard-filter-btn {
		width: 100%;
		justify-content: center;
		box-sizing: border-box;
	}
}

/* =========================================================
   Centro assistenza (Supporto)
   ========================================================= */
.xhl-support {
	max-width: 920px;
	margin-left: auto;
	margin-right: auto;
}

/* WP admin: #wpcontent ha padding-left asimmetrico (20px desktop, 10px mobile) senza padding-right.
   Lo azzeriamo sulle pagine del Centro assistenza / Richieste per garantire spaziature simmetriche. */
body.admin_page_xhl-support #wpcontent,
body.admin_page_xhl-requests #wpcontent {
	padding-left: 0;
}

/* Su mobile forziamo margini simmetrici su .xhl-support, sovrascrivendo il .wrap di WP core
   (che a ≤782px imposta margin-left:0; margin-right:12px, causando spaziatura sbilanciata). */
@media (max-width: 782px) {
	.wrap.xhl-support {
		margin-right: 12px;
		margin-left: 12px;
	}
}

@media (max-width: 600px) {
	.wrap.xhl-support {
		margin-right: 10px;
		margin-left: 10px;
	}
}
.xhl-support__header {
	margin-bottom: 28px;
}
.xhl-support__header h1 {
	font-size: 22px;
	font-weight: 600;
	margin: 0 0 6px;
	color: #1a1a1a;
}
.xhl-support__intro {
	font-size: 14px;
	color: #666;
	margin: 0;
}
.xhl-support__section-title {
	font-size: 16px;
	font-weight: 600;
	margin: 0 0 14px;
	color: #1a1a1a;
}

/* FAQ accordion */
.xhl-support__faq {
	background: #fff;
	border-radius: 0;
	padding: 24px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.06);
	margin-bottom: 28px;
}
.xhl-support__faq-list {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid #ececec;
}
.xhl-support__faq-item {
	border-bottom: 1px solid #ececec;
}
.xhl-support__faq-question {
	width: 100%;
	background: transparent;
	border: none;
	padding: 14px 0;
	font-size: 14px;
	font-weight: 600;
	color: #1a1a1a;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	text-align: left;
}
.xhl-support__faq-question:hover {
	color: rgb(251 191 36);
}
.xhl-support__faq-q-chev {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	color: #999;
	flex-shrink: 0;
	transition: transform .2s ease;
}
.xhl-support__faq-q-chev svg {
	width: 16px;
	height: 16px;
}
.xhl-support__faq-item--open .xhl-support__faq-q-chev {
	transform: rotate(180deg);
	color: rgb(251 191 36);
}
.xhl-support__faq-answer {
	padding: 0 0 16px;
	color: #555;
	font-size: 14px;
	line-height: 1.55;
}
.xhl-support__faq-answer p {
	margin: 0;
}

/* Form */
.xhl-support__form-section {
	background: #fff;
	border-radius: 0;
	padding: 24px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.xhl-support__form-section + .xhl-support__form-section {
	margin-top: 1em;
}
.xhl-support__form-intro {
	margin-bottom: 18px;
}
.xhl-support__form-intro p {
	color: #666;
	font-size: 14px;
	margin: 4px 0 0;
}
.xhl-support__form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.xhl-support__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.xhl-support__field label {
	font-size: 13px;
	font-weight: 600;
	color: #333;
}
.xhl-support__field input[type="text"],
.xhl-support__field input[type="email"],
.xhl-support__field input[type="number"],
.xhl-support__field input[type="date"],
.xhl-support__field input[type="datetime-local"],
.xhl-support__field textarea,
.xhl-support__select {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #d0d4dc;
	border-radius: 0;
	font-size: 14px;
	color: #1a1a1a;
	background: #fff;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.xhl-support__field input[readonly] {
	background: #f6f7fa;
	color: #777;
}
.xhl-support__field input:focus,
.xhl-support__field textarea:focus,
.xhl-support__select:focus {
	outline: none;
	border-color: rgb(251 191 36);
	box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.18);
}
.xhl-support__field textarea {
	min-height: 140px;
	resize: vertical;
}
.xhl-support__req {
	color: #c2362b;
	font-weight: 700;
}
.xhl-support__opt {
	color: #999;
	font-weight: 400;
	font-size: 11px;
	margin-left: 4px;
}
.xhl-support__actions {
	display: flex;
	justify-content: flex-end;
}
.xhl-support__submit {
	background: #fbbf24;
	color: #102855;
	border: 1px solid transparent;
	border-radius: 0;
	padding: 10px 22px;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.xhl-support__submit:hover {
	background: #102855;
	color: #fff;
	border-color: #fff;
}

/* Notice */
.xhl-support__notice {
	border-radius: 0;
	padding: 14px 18px;
	margin-bottom: 20px;
	font-size: 14px;
}
.xhl-support__notice p {
	margin: 0;
}
.xhl-support__notice--success {
	background: #eafaf0;
	color: #156d3d;
	border-left: 4px solid #1d9b56;
}
.xhl-support__notice--error {
	background: #fde7e7;
	color: #8a2a22;
	border-left: 4px solid #c2362b;
}
.xhl-support__notice a {
	color: inherit;
	font-weight: 600;
	text-decoration: underline;
}

@media (max-width: 600px) {
	.xhl-support__faq,
	.xhl-support__form-section {
		padding: 18px;
	}
	.xhl-support__actions {
		justify-content: stretch;
	}
	.xhl-support__submit {
		width: 100%;
	}
}

/* =====================================================
   Richieste utente — Reskin completo
   ===================================================== */

/* Card wrapper (sostituisce widefat/striped WP) */
.xhl-requests-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 0;
	padding: 24px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

/* Notice success migliorata */
.xhl-requests-notice {
	display: flex;
	align-items: center;
	gap: 12px;
	background: #ecfdf5;
	border: 1px solid #a7f3d0;
	color: #065f46;
	border-radius: 0;
	padding: 12px 16px;
	margin: 16px 0;
}
.xhl-requests-notice p {
	margin: 0;
	flex: 1;
	color: #065f46;
}
.xhl-requests-notice__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #10b981;
	color: #fff;
}
.xhl-requests-notice__close {
	background: none;
	border: 0;
	font-size: 20px;
	line-height: 1;
	color: #065f46;
	cursor: pointer;
	padding: 0 4px;
}
.xhl-requests-notice__close:hover { color: #064e3b; }

/* Input wrap con icona (per il select Tipo richiesta) */
.xhl-requests-input-wrap {
	position: relative;
}
.xhl-requests-input-wrap--icon .xhl-requests-input-icon {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: #6b7280;
	pointer-events: none;
}
.xhl-requests-select {
	padding-left: 42px !important;
	background-color: #fff !important;
}

/* Textarea + char counter */
.xhl-requests-textarea-field {
	position: relative;
}
.xhl-requests-char-counter {
	position: absolute;
	right: 12px;
	bottom: 10px;
	font-size: 12px;
	color: #9ca3af;
	background: rgba(255,255,255,0.85);
	padding: 2px 6px;
	border-radius: 0;
	pointer-events: none;
}

/* Submit: allineamento icona+testo, stile ereditato da .xhl-support__submit */
.xhl-requests-submit {
	display: inline-flex !important;
	align-items: center;
	gap: 8px;
}
.xhl-requests-submit svg {
	flex-shrink: 0;
}

/* Stats cards */
.xhl-requests-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin: 16px 0;
}
.xhl-requests-stats__card {
	display: flex;
	align-items: center;
	gap: 12px;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 0;
	padding: 16px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.xhl-requests-stats__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	flex-shrink: 0;
}
.xhl-requests-stats__card--blue   .xhl-requests-stats__icon { background: #dbeafe; color: #2563eb; }
.xhl-requests-stats__card--orange .xhl-requests-stats__icon { background: #fef3c7; color: #d97706; }
.xhl-requests-stats__card--green  .xhl-requests-stats__icon { background: #d1fae5; color: #059669; }
.xhl-requests-stats__body {
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.xhl-requests-stats__label {
	font-size: 12px;
	color: #6b7280;
	font-weight: 500;
}
.xhl-requests-stats__value {
	font-size: 24px;
	font-weight: 700;
	color: #111827;
	line-height: 1.1;
}

/* Tabella richieste */
.xhl-requests-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	margin-top: 12px;
}
.xhl-requests-table thead th {
	background: transparent;
	color: #6b7280;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	padding: 8px 12px;
	border-bottom: 1px solid #e5e7eb;
	text-align: left;
}
.xhl-requests-table tbody td {
	padding: 14px 12px;
	border-bottom: 1px solid #f3f4f6;
	color: #374151;
	font-size: 14px;
	vertical-align: middle;
}
.xhl-requests-table tbody tr:last-child td { border-bottom: 0; }
.xhl-requests-table__actions-col {
	width: 40px;
	text-align: right;
}
.xhl-requests-date {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
}
.xhl-requests-date span {
	color: #9ca3af;
	font-size: 12px;
}

/* Kebab button */
.xhl-requests-kebab {
	background: transparent;
	border: 0;
	width: 32px;
	height: 32px;
	border-radius: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: #6b7280;
}
.xhl-requests-kebab:hover { background: #f3f4f6; color: #111827; }
.xhl-requests-kebab[aria-expanded="true"] { background: #eef2ff; color: #4f46e5; }

/* Status pill */
.xhl-status-pill {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
}
.xhl-status-pill--inviata      { background: #d1fae5; color: #059669; }
.xhl-status-pill--in_revisione { background: #fef3c7; color: #d97706; }
.xhl-status-pill--approvata    { background: #dbeafe; color: #2563eb; }
.xhl-status-pill--respinta     { background: #fee2e2; color: #dc2626; }
.xhl-status-pill--chiusa       { background: #e5e7eb; color: #4b5563; }
.xhl-status-pill--annullata    { background: #f3f4f6; color: #6b7280; }
.xhl-status-pill--unknown      { background: #f3f4f6; color: #6b7280; }

/* Detail expanded row */
.xhl-requests-detail-row td {
	background: #f9fafb;
	padding: 16px 18px !important;
}
.xhl-requests-detail__block {
	margin: 8px 0 12px;
}
.xhl-requests-detail__block strong {
	display: inline-block;
	margin-bottom: 6px;
	font-size: 13px;
	color: #374151;
	font-weight: 600;
}
.xhl-requests-detail__date {
	color: #6b7280;
	font-size: 12px;
	margin-left: 6px;
}
.xhl-requests-detail__reply {
	background: #ecfdf5;
	border-left: 3px solid #10b981;
	padding: 12px 14px;
	border-radius: 0;
}
.xhl-requests-detail__hint {
	margin: 10px 0 0;
	font-size: 13px;
	color: #6b7280;
	font-style: italic;
}

/* Pulsante "Annulla richiesta" */
.xhl-requests-cancel-form {
	margin: 12px 0 0;
}
.xhl-requests-cancel-btn {
	background: transparent;
	border: 1px solid #fca5a5;
	color: #b91c1c;
	padding: 6px 14px;
	border-radius: 0;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	transition: background .15s ease, color .15s ease;
}
.xhl-requests-cancel-btn:hover {
	background: #fee2e2;
	color: #991b1b;
}

/* "Nuova risposta" badge */
.xhl-requests-badge {
	display: inline-block;
	color: #ef4444;
	font-size: 14px;
	line-height: 1;
	margin-left: 4px;
	vertical-align: middle;
}

/* Link "Visualizza tutte" */
.xhl-requests-viewall {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid #f3f4f6;
}
.xhl-requests-viewall-link {
	color: #2563eb;
	text-decoration: none;
	font-weight: 500;
	font-size: 14px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.xhl-requests-viewall-link:hover {
	color: #1d4ed8;
	text-decoration: underline;
}

@media (max-width: 600px) {
	.xhl-requests-stats {
		grid-template-columns: 1fr;
	}
	.xhl-requests-table thead { display: none; }
	.xhl-requests-table tbody td {
		display: block;
		padding: 6px 0;
		border-bottom: 0;
	}
	.xhl-requests-table tbody tr {
		display: block;
		padding: 12px 0;
		border-bottom: 1px solid #f3f4f6;
	}
}
