/**
 * FP Manager — App layout (professional)
 */

#fp-manager-root,
#fp-manager-root button,
#fp-manager-root input,
#fp-manager-root select,
#fp-manager-root textarea {
	font-family: inherit;
	font-size: inherit;
}

/* ── App shell ── */
.fp-app-shell {
	display: flex;
	min-height: min(760px, 88vh);
	background: var(--fp-bg);
	border-radius: var(--fp-radius-lg);
	overflow: hidden;
	box-shadow: var(--fp-shadow);
	border: 1px solid var(--fp-border);
}

.fp-mode-prenotazioni.fp-app-shell,
.fp-mode-anamnesi.fp-app-shell,
.fp-mode-registrazione.fp-app-shell {
	box-shadow: var(--fp-shadow-sm);
	min-height: auto;
}

.fp-mode-prenotazioni .fp-main-content,
.fp-mode-anamnesi .fp-main-content {
	padding: var(--fp-space-7);
}

/* ── Sidebar ── */
.fp-sidebar {
	width: var(--fp-sidebar-width);
	flex-shrink: 0;
	background: linear-gradient(180deg, var(--fp-primary-dark) 0%, color-mix(in srgb, var(--fp-primary-dark) 78%, #000) 100%);
	color: rgba(255, 252, 247, 0.92);
	display: flex;
	flex-direction: column;
	min-height: 100%;
	border-right: 1px solid color-mix(in srgb, var(--fp-accent) 28%, transparent);
}

.fp-sidebar-brand {
	padding: var(--fp-space-6) var(--fp-space-5) var(--fp-space-5);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	display: flex;
	align-items: center;
	gap: var(--fp-space-3);
}

.fp-sidebar-logo {
	width: 36px;
	height: 36px;
	flex-shrink: 0;
}

.fp-sidebar-logo-fallback {
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.12);
	display: grid;
	place-items: center;
	font-size: 0.7rem;
	font-weight: 700;
	color: #fff;
}

.fp-sidebar-brand-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.fp-sidebar-brand-title {
	display: block;
	font-family: var(--fp-font-display);
	font-size: 1.05rem;
	font-weight: 600;
	letter-spacing: -0.03em;
	line-height: 1.2;
	color: #fff;
	text-transform: none;
}

.fp-sidebar-brand-sub {
	display: block;
	font-size: 0.6875rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: rgba(255, 255, 255, 0.45);
}

.fp-sidebar-user {
	display: flex;
	align-items: center;
	gap: var(--fp-space-3);
	width: calc(100% - var(--fp-space-4));
	margin: 0 var(--fp-space-2) var(--fp-space-2);
	padding: var(--fp-space-3);
	background: rgba(255, 255, 255, 0.06);
	border: none;
	border-radius: var(--fp-radius-sm);
	color: #fff;
	cursor: pointer;
	text-align: left;
}

.fp-sidebar-user-avatar {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--fp-primary-light);
	display: grid;
	place-items: center;
	font-size: 0.7rem;
	font-weight: 700;
	flex-shrink: 0;
}

.fp-sidebar-user-meta {
	display: flex;
	flex-direction: column;
	gap: 1px;
	min-width: 0;
}

.fp-sidebar-user-meta strong {
	font-size: 0.8125rem;
	font-weight: 650;
}

.fp-sidebar-user-meta small {
	font-size: 0.6875rem;
	color: rgba(255, 255, 255, 0.5);
}

.fp-dash-card {
	flex-direction: column;
	gap: var(--fp-space-4);
}

.fp-dash-card-meta {
	margin-top: var(--fp-space-3);
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.fp-dash-card-meta-label {
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--fp-muted);
	font-weight: 650;
}

.fp-dash-card-meta-value {
	font-size: 0.875rem;
	font-weight: 650;
	color: var(--fp-primary);
}

.fp-dash-card-cta {
	display: inline-flex;
	margin-top: var(--fp-space-4);
	padding: 8px 12px;
	border: 1px solid var(--fp-primary);
	border-radius: var(--fp-radius-sm);
	color: var(--fp-primary);
	font-size: 0.8125rem;
	font-weight: 650;
	align-self: flex-start;
}

.fp-dash-card-arrow { display: none; }

.fp-help-footer {
	margin: var(--fp-space-4) 0 0;
	text-align: center;
	font-size: 0.8125rem;
	color: var(--fp-muted);
}

.fp-sidebar-scroll {
	flex: 1;
	overflow-y: auto;
	overflow-x: hidden;
	padding: var(--fp-space-3) 0 var(--fp-space-4);
}

.fp-sidebar-group {
	margin-bottom: var(--fp-space-4);
}

.fp-sidebar-group-label {
	display: block;
	padding: var(--fp-space-2) var(--fp-space-5) var(--fp-space-2);
	font-size: 0.625rem;
	font-weight: 650;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: rgba(255, 255, 255, 0.35);
}

.fp-sidebar-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.fp-sidebar-item {
	display: flex;
	align-items: center;
	gap: var(--fp-space-3);
	width: calc(100% - var(--fp-space-4));
	margin: 1px var(--fp-space-2);
	padding: 9px var(--fp-space-3);
	background: none;
	border: none;
	border-radius: var(--fp-radius-sm);
	color: rgba(255, 255, 255, 0.78);
	font-size: 0.8125rem;
	font-weight: 500;
	cursor: pointer;
	text-align: left;
	transition: background 0.1s ease, color 0.1s ease;
	line-height: 1.35;
}

.fp-sidebar-item:hover {
	background: rgba(255, 255, 255, 0.07);
	color: #fff;
}

.fp-sidebar-item-attiva {
	background: rgba(255, 255, 255, 0.12) !important;
	color: #fff !important;
	font-weight: 600;
}

.fp-sidebar-item-attiva .fp-nav-icon {
	background: rgba(255, 255, 255, 0.18);
	color: #fff;
}

.fp-nav-icon {
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	border-radius: var(--fp-radius-xs);
	background: rgba(255, 255, 255, 0.06);
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(255, 255, 255, 0.85);
}

.fp-nav-icon svg {
	width: 15px;
	height: 15px;
	stroke: currentColor;
	fill: none;
	stroke-width: 1.75;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.fp-sidebar-label {
	flex: 1;
	min-width: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.fp-sidebar-badge {
	flex-shrink: 0;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: var(--fp-radius-pill);
	background: var(--fp-accent);
	color: #fff;
	font-size: 0.625rem;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

.fp-sidebar-footer {
	padding: var(--fp-space-3) var(--fp-space-4) var(--fp-space-4);
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.fp-dark-toggle {
	width: 100%;
	margin: 0;
	justify-content: flex-start;
	color: rgba(255, 255, 255, 0.55) !important;
	font-size: 0.75rem !important;
}

.fp-dark-toggle:hover {
	color: #fff !important;
}

/* ── Main content ── */
.fp-main-layout {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-width: 0;
	background: var(--fp-bg);
}

.fp-main-topbar {
	display: flex;
	align-items: center;
	min-height: 52px;
	padding: 0 var(--fp-space-7);
	background: var(--fp-surface);
	border-bottom: 1px solid var(--fp-border-soft);
	flex-shrink: 0;
}

.fp-main-topbar-title {
	margin: 0;
	font-size: 0.9375rem;
	font-weight: 650;
	color: var(--fp-text);
	letter-spacing: -0.01em;
}

.fp-main-content {
	flex: 1;
	padding: var(--fp-space-7) var(--fp-space-8);
	overflow-x: hidden;
	overflow-y: auto;
}

.fp-main-content-inner {
	max-width: var(--fp-content-max);
	margin: 0 auto;
	width: 100%;
}

.fp-panoramica .fp-cards-row {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* ── Prenotazioni ── */
.fp-prenotazioni-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
	gap: var(--fp-space-5);
	align-items: start;
}

.fp-prenotazioni-calendario {
	padding: var(--fp-space-5) !important;
}

.fp-calendar-container {
	min-height: 480px;
	margin-top: var(--fp-space-3);
	border: 1px solid var(--fp-border-soft);
	border-radius: var(--fp-radius-sm);
	background: var(--fp-surface);
	padding: var(--fp-space-2);
}

/* ── Documenti ── */
.fp-documenti-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: var(--fp-space-4);
}

.fp-documento-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--fp-space-3);
	padding: var(--fp-space-5) var(--fp-space-4);
	text-decoration: none !important;
	color: inherit !important;
	text-align: center;
	transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.fp-documento-card:hover {
	border-color: var(--fp-primary-light);
	box-shadow: var(--fp-shadow-sm);
}

.fp-documento-icon {
	width: 40px;
	height: 40px;
	border-radius: var(--fp-radius-sm);
	background: var(--fp-surface-muted);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.125rem;
}

.fp-documento-titolo {
	font-weight: 600;
	font-size: 0.8125rem;
	line-height: var(--fp-line-tight);
	color: var(--fp-text);
}

/* ── Chat ── */
.fp-chat-layout-frontend {
	display: grid;
	grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
	min-height: 520px;
	border: 1px solid var(--fp-border-soft);
	border-radius: var(--fp-radius);
	overflow: hidden;
	background: var(--fp-surface);
	box-shadow: var(--fp-shadow-xs);
}

.fp-chat-sidebar-frontend {
	border-right: 1px solid var(--fp-border-soft);
	background: var(--fp-surface-muted);
	display: flex;
	flex-direction: column;
}

.fp-btn-nuova-chat {
	margin: var(--fp-space-3);
	padding: 9px var(--fp-space-3);
	background: var(--fp-primary);
	color: #fff;
	border: none;
	border-radius: var(--fp-radius-sm);
	cursor: pointer;
	font-weight: 600;
	font-size: 0.8125rem;
	width: calc(100% - var(--fp-space-6));
}

.fp-nuova-chat-panel {
	padding: 0 var(--fp-space-3) var(--fp-space-3);
	display: flex;
	flex-direction: column;
	gap: var(--fp-space-2);
	border-bottom: 1px solid var(--fp-border-soft);
}

.fp-chat-staff-btn {
	display: block;
	width: calc(100% - var(--fp-space-6));
	margin: 2px var(--fp-space-3);
	padding: 8px var(--fp-space-3);
	background: var(--fp-surface);
	border: 1px solid var(--fp-border-soft);
	border-radius: var(--fp-radius-xs);
	cursor: pointer;
	text-align: left;
	font-size: 0.8125rem;
}

.fp-chat-conv-item-fe {
	padding: var(--fp-space-3) var(--fp-space-4);
	cursor: pointer;
	border-bottom: 1px solid var(--fp-border-soft);
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: var(--fp-space-2);
	font-size: 0.8125rem;
}

.fp-chat-conv-item-fe.fp-active {
	background: var(--fp-surface);
	border-left: 2px solid var(--fp-primary);
	padding-left: calc(var(--fp-space-4) - 2px);
	font-weight: 600;
}

.fp-chat-thread-frontend {
	display: flex;
	flex-direction: column;
	min-height: 520px;
}

.fp-chat-messages-frontend {
	flex: 1;
	overflow-y: auto;
	padding: var(--fp-space-5);
	display: flex;
	flex-direction: column;
	gap: var(--fp-space-3);
}

.fp-bubble-fe {
	max-width: 75%;
	padding: var(--fp-space-3) var(--fp-space-4);
	border-radius: var(--fp-radius);
	font-size: 0.875rem;
	line-height: var(--fp-line);
}

.fp-bubble-fe p { margin: 0; }

.fp-bubble-fe-mine {
	background: var(--fp-primary);
	color: #fff;
	margin-left: auto;
	border-bottom-right-radius: var(--fp-radius-xs);
}

.fp-bubble-fe-theirs {
	background: var(--fp-surface-muted);
	color: var(--fp-text);
	border: 1px solid var(--fp-border-soft);
	border-bottom-left-radius: var(--fp-radius-xs);
}

.fp-chat-form-frontend {
	display: flex;
	gap: var(--fp-space-2);
	padding: var(--fp-space-3) var(--fp-space-4);
	border-top: 1px solid var(--fp-border-soft);
	background: var(--fp-surface);
	align-items: flex-end;
}

.fp-chat-form-frontend textarea {
	flex: 1;
	min-height: 40px;
	resize: vertical;
	font-size: 0.875rem;
}

.fp-chat-form-frontend button {
	padding: 9px var(--fp-space-4);
	background: var(--fp-primary);
	color: #fff;
	border: none;
	border-radius: var(--fp-radius-sm);
	cursor: pointer;
	font-weight: 600;
	font-size: 0.8125rem;
	flex-shrink: 0;
}

/* ── Avvisi ── */
.fp-avviso-card {
	cursor: pointer;
	transition: box-shadow 0.12s ease;
}

.fp-avviso-card:hover {
	box-shadow: var(--fp-shadow-sm);
}

.fp-avviso-non-letto {
	border-left: 3px solid var(--fp-primary);
	padding-left: calc(var(--fp-space-7) - 3px);
}

/* ── FullCalendar: see fullcalendar-fp.css ── */

/* ── Home grid ── */
.fp-home-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--fp-space-4);
}

.fp-home-grid--secondary {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fp-home-welcome {
	margin-bottom: var(--fp-space-5);
	animation: fp-home-in 0.45s ease both;
}

.fp-home-welcome__title {
	margin: 0 0 6px;
	font-family: var(--fp-font-display);
	font-size: clamp(1.55rem, 3.5vw, 1.95rem);
	font-weight: 600;
	letter-spacing: -0.03em;
	line-height: 1.15;
	color: var(--fp-text);
}

.fp-home-welcome__lead {
	margin: 0;
	color: var(--fp-text-soft);
	font-size: 0.95rem;
	max-width: 40ch;
}

.fp-home-primary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--fp-space-5);
	width: 100%;
	margin: 0 0 var(--fp-space-5);
	padding: var(--fp-space-5) var(--fp-space-6);
	border: 1px solid var(--fp-border);
	border-radius: var(--fp-radius);
	background: var(--fp-surface);
	box-shadow: var(--fp-shadow-sm);
	cursor: pointer;
	text-align: left;
	position: relative;
	overflow: hidden;
	animation: fp-home-in 0.45s ease both;
	animation-delay: 0.05s;
	-webkit-tap-highlight-color: transparent;
	transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.fp-home-primary::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 4px;
	background: var(--fp-accent);
}

.fp-home-primary:hover {
	border-color: color-mix(in srgb, var(--fp-primary) 35%, var(--fp-border));
	box-shadow: var(--fp-shadow);
}

.fp-home-primary:active {
	transform: scale(0.992);
}

.fp-home-primary__copy {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
	padding-left: 6px;
}

.fp-home-primary__copy strong {
	font-family: var(--fp-font-display);
	font-size: 1.2rem;
	font-weight: 600;
	letter-spacing: -0.02em;
	color: var(--fp-text);
}

.fp-home-primary__copy em {
	font-style: normal;
	font-size: 0.875rem;
	color: var(--fp-text-soft);
}

.fp-home-primary__cta {
	flex-shrink: 0;
	border-radius: 999px;
	padding: 11px 16px;
	background: var(--fp-primary);
	color: #fff;
	font-size: 0.8125rem;
	font-weight: 750;
	white-space: nowrap;
}

.fp-home-grid .fp-dash-card--secondary {
	background: transparent;
	box-shadow: none;
}

.fp-home-grid .fp-dash-card--secondary .fp-dash-card-cta {
	color: var(--fp-muted);
	font-weight: 600;
}

.fp-home-grid .fp-dash-card {
	margin: 0;
	min-height: 100%;
}

.fp-home-grid .fp-dash-card h3 {
	font-size: 1.05rem;
	margin: 0 0 6px;
}

.fp-home-grid .fp-dash-card p {
	font-size: 0.8125rem;
	line-height: 1.4;
	color: var(--fp-muted);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.fp-home-hero {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--fp-space-5);
	margin-bottom: var(--fp-space-5);
	padding: var(--fp-space-6);
	border-radius: var(--fp-radius-lg);
	background:
		radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--fp-accent) 28%, transparent) 0%, transparent 55%),
		linear-gradient(145deg, var(--fp-primary-dark) 0%, var(--fp-primary) 55%, color-mix(in srgb, var(--fp-primary-light) 70%, var(--fp-primary-dark)) 100%);
	color: #fff;
	box-shadow: var(--fp-shadow);
	position: relative;
	overflow: hidden;
	animation: fp-home-in 0.45s ease both;
}

.fp-home-hero::after {
	content: '';
	position: absolute;
	inset: auto -20% -40% 40%;
	height: 140%;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 65%);
	pointer-events: none;
}

.fp-home-hero__copy {
	position: relative;
	z-index: 1;
	min-width: 0;
}

.fp-home-hero__eyebrow {
	margin: 0 0 6px;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	opacity: 0.7;
}

.fp-home-hero__title {
	margin: 0 0 8px;
	font-family: var(--fp-font-display);
	font-size: clamp(1.5rem, 4vw, 1.85rem);
	font-weight: 600;
	letter-spacing: -0.03em;
	line-height: 1.15;
	color: #fff;
}

.fp-home-hero__lead {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.45;
	opacity: 0.82;
	max-width: 32ch;
}

.fp-home-hero__cta {
	position: relative;
	z-index: 1;
	flex-shrink: 0;
	border: none;
	border-radius: 999px;
	padding: 12px 18px;
	background: #fff;
	color: var(--fp-primary-dark);
	font-size: 0.875rem;
	font-weight: 750;
	cursor: pointer;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
	-webkit-tap-highlight-color: transparent;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.fp-home-hero__cta:active {
	transform: scale(0.97);
}

@keyframes fp-home-in {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.fp-home-hero,
	.fp-drawer__backdrop,
	.fp-drawer__panel,
	.fp-appbar__btn,
	.fp-home-hero__cta {
		animation: none !important;
		transition: none !important;
	}
}

/* ── Responsive + mobile app ── */
@media (max-width: 960px) {
	.fp-app-shell {
		flex-direction: column;
		min-height: auto;
		border-radius: var(--fp-radius);
	}

	.fp-sidebar--desktop,
	.fp-main-topbar--desktop {
		display: none !important;
	}

	.fp-main-layout {
		display: flex;
		flex-direction: column;
		flex: 1 1 auto;
		min-height: 0;
		width: 100%;
	}

	.fp-main-content {
		flex: 1 1 auto;
		min-height: 0;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		padding: 12px 14px calc(16px + env(safe-area-inset-bottom, 0px));
	}

	.fp-prenotazioni-layout,
	.fp-chat-layout-frontend {
		grid-template-columns: 1fr;
	}

	.fp-home-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.fp-home-grid--secondary {
		grid-template-columns: 1fr;
	}

	.fp-home-primary {
		flex-direction: column;
		align-items: stretch;
		gap: 14px;
		padding: 18px;
	}

	.fp-home-primary__cta {
		text-align: center;
		min-height: 48px;
		display: grid;
		place-items: center;
	}
}

@media (min-width: 961px) {
	.fp-appbar,
	.fp-drawer {
		display: none !important;
	}
}

@media (max-width: 640px) {
	.fp-page-hero {
		padding: var(--fp-space-4) 0 var(--fp-space-3);
	}

	.fp-page-title {
		font-size: 1.35rem;
	}

	.fp-page-sub,
	.fp-page-lead {
		font-size: 0.875rem;
	}
}

/* ── App bar (mobile) ── */
.fp-appbar {
	display: none;
}

@media (max-width: 960px) {
	.fp-appbar {
		display: flex;
		align-items: center;
		gap: 12px;
		flex: 0 0 auto;
		position: sticky;
		top: 0;
		z-index: 40;
		min-height: 58px;
		padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 10px;
		background:
			linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, transparent 48%),
			linear-gradient(135deg, color-mix(in srgb, var(--fp-primary-dark, #143f34) 88%, #0a221c) 0%, var(--fp-primary-dark, #143f34) 55%, color-mix(in srgb, var(--fp-primary, #1f5f4e) 70%, #0f3229) 100%);
		color: #fff;
		border-bottom: 1px solid rgba(255, 255, 255, 0.08);
		box-shadow: 0 8px 24px rgba(10, 28, 22, 0.18);
	}

	.fp-appbar__btn {
		position: relative;
		width: 44px;
		height: 44px;
		border: none;
		border-radius: 12px;
		background: transparent;
		color: #fff;
		display: grid;
		place-items: center;
		cursor: pointer;
		flex-shrink: 0;
		transition: background 0.18s ease, transform 0.18s ease, opacity 0.18s ease;
		-webkit-tap-highlight-color: transparent;
		opacity: 0.95;
	}

	.fp-appbar__btn svg {
		display: block;
	}

	.fp-appbar__btn:active {
		background: rgba(255, 255, 255, 0.12);
		transform: scale(0.96);
		opacity: 1;
	}

	.fp-appbar__dot {
		position: absolute;
		top: 9px;
		right: 9px;
		width: 8px;
		height: 8px;
		border-radius: 50%;
		background: var(--fp-accent, #c4a06a);
		box-shadow: 0 0 0 2px var(--fp-primary-dark, #143f34);
	}

	.fp-appbar__center {
		flex: 1 1 auto;
		min-width: 0;
		display: flex;
		flex-direction: column;
		gap: 2px;
	}

	.fp-appbar__kicker {
		font-size: 0.625rem;
		font-weight: 700;
		letter-spacing: 0.1em;
		text-transform: uppercase;
		opacity: 0.58;
	}

	.fp-appbar__title {
		font-family: var(--fp-font-display, Georgia, serif);
		font-size: 1.125rem;
		font-weight: 600;
		letter-spacing: -0.03em;
		line-height: 1.15;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	/* ── Drawer laterale (liste raggruppate) ── */
	.fp-drawer {
		position: fixed;
		inset: 0;
		z-index: 80;
		pointer-events: none;
		visibility: hidden;
	}

	.fp-drawer.is-open {
		pointer-events: auto;
		visibility: visible;
	}

	.fp-drawer__backdrop {
		position: absolute;
		inset: 0;
		border: none;
		background: rgba(8, 14, 12, 0.55);
		opacity: 0;
		transition: opacity 0.28s ease;
		cursor: pointer;
		backdrop-filter: blur(2px);
	}

	.fp-drawer.is-open .fp-drawer__backdrop {
		opacity: 1;
	}

	.fp-drawer__panel {
		position: absolute;
		top: 0;
		left: 0;
		bottom: 0;
		width: min(88vw, 340px);
		background:
			radial-gradient(120% 60% at 0% 0%, rgba(196, 160, 106, 0.16) 0%, transparent 55%),
			linear-gradient(180deg, #1a5546 0%, var(--fp-primary-dark, #143f34) 48%, #0e2d24 100%);
		color: #fff;
		padding: calc(16px + env(safe-area-inset-top, 0px)) 14px calc(18px + env(safe-area-inset-bottom, 0px));
		display: flex;
		flex-direction: column;
		gap: 14px;
		transform: translateX(-104%);
		transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
		box-shadow: 16px 0 48px rgba(0, 0, 0, 0.32);
		overflow: hidden;
	}

	.fp-drawer.is-open .fp-drawer__panel {
		transform: translateX(0);
	}

	.fp-drawer__head {
		display: flex;
		align-items: flex-start;
		justify-content: space-between;
		gap: 10px;
		flex: 0 0 auto;
	}

	.fp-drawer__brand {
		display: flex;
		align-items: center;
		gap: 12px;
		min-width: 0;
	}

	.fp-drawer__brand img,
	.fp-drawer__logo-fallback {
		width: 44px;
		height: 44px;
		border-radius: 14px;
		flex-shrink: 0;
		object-fit: cover;
		box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
	}

	.fp-drawer__logo-fallback {
		display: grid;
		place-items: center;
		background: rgba(255, 255, 255, 0.14);
		font-weight: 800;
		font-size: 0.8rem;
		letter-spacing: 0.04em;
	}

	.fp-drawer__brand strong {
		display: block;
		font-family: var(--fp-font-display, Georgia, serif);
		font-size: 1.05rem;
		font-weight: 600;
		letter-spacing: -0.03em;
	}

	.fp-drawer__brand small {
		display: block;
		opacity: 0.62;
		font-size: 0.7rem;
		font-weight: 600;
		letter-spacing: 0.06em;
		text-transform: uppercase;
		margin-top: 3px;
	}

	.fp-drawer__close {
		width: 40px;
		height: 40px;
		border: 1px solid rgba(255, 255, 255, 0.12);
		border-radius: 12px;
		background: rgba(255, 255, 255, 0.08);
		color: #fff;
		display: grid;
		place-items: center;
		cursor: pointer;
		flex-shrink: 0;
		-webkit-tap-highlight-color: transparent;
	}

	.fp-drawer__close:active {
		background: rgba(255, 255, 255, 0.16);
	}

	.fp-drawer__user {
		display: flex;
		align-items: center;
		gap: 12px;
		width: 100%;
		border: 1px solid rgba(255, 255, 255, 0.1);
		border-radius: 16px;
		padding: 12px 14px;
		background: rgba(255, 255, 255, 0.08);
		color: #fff;
		cursor: pointer;
		text-align: left;
		flex: 0 0 auto;
		-webkit-tap-highlight-color: transparent;
		transition: background 0.18s ease;
	}

	.fp-drawer__user.is-active,
	.fp-drawer__user:active {
		background: rgba(255, 255, 255, 0.14);
	}

	.fp-drawer__user-avatar {
		width: 42px;
		height: 42px;
		border-radius: 50%;
		background: color-mix(in srgb, var(--fp-accent, #c4a06a) 55%, #fff);
		color: var(--fp-primary-dark, #143f34);
		display: grid;
		place-items: center;
		font-size: 0.75rem;
		font-weight: 800;
		letter-spacing: 0.04em;
		flex-shrink: 0;
	}

	.fp-drawer__user-meta {
		display: flex;
		flex-direction: column;
		gap: 2px;
		min-width: 0;
		flex: 1 1 auto;
	}

	.fp-drawer__user-meta strong {
		font-size: 0.9375rem;
		font-weight: 700;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.fp-drawer__user-meta small {
		font-size: 0.7rem;
		opacity: 0.62;
	}

	.fp-drawer__chevron {
		opacity: 0.45;
		flex-shrink: 0;
	}

	.fp-drawer__nav {
		flex: 1 1 auto;
		min-height: 0;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		padding-right: 2px;
		display: flex;
		flex-direction: column;
		gap: 16px;
	}

	.fp-drawer__group-label {
		display: block;
		font-size: 0.625rem;
		font-weight: 700;
		letter-spacing: 0.12em;
		text-transform: uppercase;
		opacity: 0.48;
		padding: 0 6px 8px;
	}

	.fp-drawer__list {
		list-style: none;
		margin: 0;
		padding: 0;
		display: flex;
		flex-direction: column;
		gap: 4px;
	}

	.fp-drawer__row {
		display: flex;
		align-items: center;
		gap: 12px;
		width: 100%;
		border: none;
		border-radius: 14px;
		padding: 11px 12px;
		background: transparent;
		color: rgba(255, 255, 255, 0.92);
		cursor: pointer;
		text-align: left;
		-webkit-tap-highlight-color: transparent;
		transition: background 0.16s ease;
	}

	.fp-drawer__row:active {
		background: rgba(255, 255, 255, 0.1);
	}

	.fp-drawer__row.is-active {
		background: rgba(255, 255, 255, 0.14);
		box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
	}

	.fp-drawer__row-icon {
		width: 38px;
		height: 38px;
		border-radius: 12px;
		background: rgba(255, 255, 255, 0.1);
		display: grid;
		place-items: center;
		flex-shrink: 0;
	}

	.fp-drawer__row.is-active .fp-drawer__row-icon {
		background: color-mix(in srgb, var(--fp-accent, #c4a06a) 35%, rgba(255, 255, 255, 0.18));
	}

	.fp-drawer__row-icon .fp-nav-icon,
	.fp-drawer__row-icon .fp-nav-icon svg {
		width: 20px;
		height: 20px;
	}

	.fp-drawer__row-icon svg {
		stroke: currentColor;
		fill: none;
		stroke-width: 1.75;
	}

	.fp-drawer__row-label {
		flex: 1 1 auto;
		min-width: 0;
		font-size: 0.9rem;
		font-weight: 650;
		line-height: 1.25;
	}

	.fp-drawer__row-badge {
		min-width: 20px;
		height: 20px;
		padding: 0 6px;
		border-radius: 999px;
		background: #c45c26;
		color: #fff;
		font-size: 0.6875rem;
		font-weight: 700;
		line-height: 20px;
		text-align: center;
		flex-shrink: 0;
	}

	.fp-drawer__foot {
		margin-top: auto;
		padding-top: 10px;
		border-top: 1px solid rgba(255, 255, 255, 0.1);
		flex: 0 0 auto;
	}

	.fp-drawer__theme {
		width: 100%;
		border: 1px solid rgba(255, 255, 255, 0.1);
		border-radius: 14px;
		padding: 13px 14px;
		background: rgba(255, 255, 255, 0.07);
		color: #fff;
		font-size: 0.875rem;
		font-weight: 650;
		cursor: pointer;
		text-align: left;
		-webkit-tap-highlight-color: transparent;
	}

	.fp-drawer__theme:active {
		background: rgba(255, 255, 255, 0.14);
	}

	/* Legacy grid classes no longer used but keep harmless */
	.fp-drawer__grid,
	.fp-drawer__item,
	.fp-drawer__home {
		display: none;
	}
}

/* ── Install banner ── */
.fp-install-banner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 16px;
	background: color-mix(in srgb, var(--fp-primary) 12%, var(--fp-surface));
	border-bottom: 1px solid var(--fp-border-soft);
}

.fp-install-banner__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	font-size: 0.875rem;
}

.fp-install-banner__text strong {
	font-size: 0.95rem;
}

.fp-install-banner__text span {
	color: var(--fp-muted);
	line-height: 1.35;
}

.fp-install-banner__actions {
	display: flex;
	gap: 8px;
	flex-shrink: 0;
}

@media (max-width: 960px) {
	body.fp-dark-mode,
	body.fp-drawer-open {
		overscroll-behavior-y: none;
	}

	html.fp-area-app,
	body.fp-area-app {
		height: 100%;
		height: 100dvh;
		overflow: hidden !important;
		overscroll-behavior: none;
		background: var(--fp-bg, #f3eee6) !important;
	}

	body.fp-area-app #wpadminbar {
		display: none !important;
	}

	body.fp-area-app header:not(.fp-page-header):not(.fp-medical-header):not(.fp-appbar),
	body.fp-area-app .site-header,
	body.fp-area-app #masthead,
	body.fp-area-app .elementor-location-header,
	body.fp-area-app .elementor-location-footer,
	body.fp-area-app footer,
	body.fp-area-app .site-footer,
	body.fp-area-app #colophon,
	body.fp-area-app .ll-site-header,
	body.fp-area-app .ll-header,
	body.fp-area-app .ll-site-footer,
	body.fp-area-app .ll-footer,
	body.fp-area-app .ast-above-header-bar,
	body.fp-area-app .ast-main-header-wrap,
	body.fp-area-app .ast-header-break-point,
	body.fp-area-app .main-header-bar-wrap,
	body.fp-area-app nav.navigation-top,
	body.fp-area-app .scroll-to-top,
	body.fp-area-app #scroll-top,
	body.fp-area-app .back-to-top,
	body.fp-area-app .go-top,
	body.fp-area-app .progress-wrap,
	body.fp-area-app .cd-top,
	body.fp-area-app .cookie-notice,
	body.fp-area-app #cookie-notice {
		display: none !important;
	}

	body.fp-area-app #page,
	body.fp-area-app #content,
	body.fp-area-app .site,
	body.fp-area-app .site-content,
	body.fp-area-app .content-area,
	body.fp-area-app .entry-content,
	body.fp-area-app .ast-container,
	body.fp-area-app .elementor,
	body.fp-area-app .elementor-section-wrap,
	body.fp-area-app .e-con,
	body.fp-area-app main,
	body.fp-area-app article,
	body.fp-area-app .hentry {
		margin: 0 !important;
		padding: 0 !important;
		max-width: none !important;
		width: 100% !important;
		min-height: 0 !important;
		background: transparent !important;
		border: none !important;
		box-shadow: none !important;
	}

	body.fp-area-app .fp-medical-wrap--app {
		position: fixed !important;
		inset: 0 !important;
		z-index: 2147483000 !important;
		margin: 0 !important;
		max-width: none !important;
		width: 100% !important;
		height: 100% !important;
		height: 100dvh !important;
		background: var(--fp-bg, #f3eee6);
		overflow: hidden;
		border-radius: 0 !important;
		box-shadow: none !important;
	}

	body.fp-area-app .fp-medical-wrap--app #fp-manager-root,
	body.fp-area-app .fp-medical-wrap--app .fp-app-shell--client {
		display: flex;
		flex-direction: column;
		width: 100%;
		height: 100%;
		min-height: 0;
		max-height: 100%;
		border: none !important;
		border-radius: 0 !important;
		box-shadow: none !important;
		margin: 0 !important;
		background: var(--fp-bg, #f3eee6);
		overflow: hidden;
	}

	body.fp-area-app .fp-app-shell--client > .fp-main-layout {
		flex: 1 1 auto;
		min-height: 0;
		display: flex;
		flex-direction: column;
		width: 100%;
		overflow: hidden;
	}

	body.fp-area-app .fp-app-shell--client .fp-main-content {
		flex: 1 1 auto;
		min-height: 0;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		padding: 16px 16px calc(22px + env(safe-area-inset-bottom, 0px));
		background:
			radial-gradient(90% 50% at 50% -10%, color-mix(in srgb, var(--fp-primary) 10%, transparent) 0%, transparent 70%),
			var(--fp-bg, #f3eee6);
		overscroll-behavior: contain;
	}

	body.fp-area-app .fp-install-banner {
		flex: 0 0 auto;
	}

	body.fp-area-app .fp-appbar {
		flex: 0 0 auto;
	}

	body.fp-area-app .fp-home-welcome {
		margin-bottom: 16px;
	}

	body.fp-area-app .fp-home-primary {
		flex-direction: column;
		align-items: stretch;
		gap: 14px;
		padding: 18px;
		margin-bottom: 16px;
		border-radius: 20px;
	}

	body.fp-area-app .fp-home-primary__cta {
		text-align: center;
		padding: 14px 18px;
		min-height: 48px;
		display: grid;
		place-items: center;
	}

	body.fp-area-app .fp-home-grid {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	body.fp-area-app .fp-home-grid .fp-dash-card {
		display: grid;
		grid-template-columns: auto 1fr;
		align-items: center;
		gap: 14px;
		padding: 14px 16px;
		border-radius: 18px;
		min-height: 0;
		animation: fp-home-in 0.4s ease both;
	}

	body.fp-area-app .fp-home-grid .fp-dash-card:nth-child(1) { animation-delay: 0.04s; }
	body.fp-area-app .fp-home-grid .fp-dash-card:nth-child(2) { animation-delay: 0.08s; }
	body.fp-area-app .fp-home-grid .fp-dash-card:nth-child(3) { animation-delay: 0.12s; }
	body.fp-area-app .fp-home-grid .fp-dash-card:nth-child(4) { animation-delay: 0.16s; }

	body.fp-area-app .fp-home-grid .fp-dash-card:active {
		transform: scale(0.985);
	}

	body.fp-area-app .fp-home-grid .fp-dash-card-icon {
		width: 48px;
		height: 48px;
		border-radius: 14px;
		margin: 0;
	}

	body.fp-area-app .fp-home-grid .fp-dash-card p {
		-webkit-line-clamp: 1;
		margin: 0;
	}

	body.fp-area-app .fp-home-grid .fp-dash-card-meta {
		margin-top: 6px;
		flex-direction: row;
		align-items: baseline;
		gap: 6px;
	}

	body.fp-area-app .fp-home-grid .fp-dash-card-cta {
		display: none;
	}

	body.fp-area-app .fp-page-lead {
		margin: 0 0 14px;
		font-size: 0.9rem;
		color: var(--fp-muted);
	}

	body.fp-area-app .fp-card-bianca,
	body.fp-area-app .fp-summary-card,
	body.fp-area-app .fp-section-panel {
		border-radius: 18px;
		box-shadow: var(--fp-shadow-xs);
	}

	body.fp-area-app .fp-button {
		border-radius: 14px;
		font-weight: 700;
	}

	body.fp-area-app .fp-help-footer {
		margin-top: 20px;
		padding: 0 4px;
	}

	.fp-wizard-steps {
		overflow-x: auto;
		flex-wrap: nowrap;
		-webkit-overflow-scrolling: touch;
		padding-bottom: 4px;
	}

	.fp-form-grid-2 {
		grid-template-columns: 1fr;
	}

	.fp-prenotazioni-layout {
		grid-template-columns: 1fr;
	}

	.fp-card-bianca,
	.fp-summary-card,
	.fp-dash-card {
		border-radius: 16px;
	}

	.fp-button,
	.fp-input,
	.fp-select {
		min-height: 44px;
	}

	.fp-calendar-container {
		min-height: 360px;
	}
}

@media (display-mode: standalone) {
	body.fp-area-app .fp-medical-wrap--app,
	.fp-app-shell--client {
		min-height: 100dvh;
		border-radius: 0;
	}

	.fp-install-banner {
		display: none;
	}
}

/* Drawer: icone nested .fp-nav-icon */
.fp-drawer__row-icon .fp-nav-icon,
.fp-drawer__icon .fp-nav-icon,
.fp-drawer__home-icon .fp-nav-icon {
	width: 100%;
	height: 100%;
	background: transparent;
	border-radius: 0;
	color: inherit;
	display: grid;
	place-items: center;
}

.fp-drawer__row-icon .fp-nav-icon svg,
.fp-drawer__icon .fp-nav-icon svg,
.fp-drawer__home-icon .fp-nav-icon svg {
	width: 20px;
	height: 20px;
}
