/* LUMA Connect — widget */

.lc-root,
.lc-root *,
.lc-sc,
.lc-box,
.lc-box * {
	box-sizing: border-box;
}

.lc-root {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	line-height: 1.35;
	-webkit-font-smoothing: antialiased;
}

.lc-root a,
.lc-root button {
	font: inherit;
	text-decoration: none;
	-webkit-tap-highlight-color: transparent;
}

.lc-root button {
	margin: 0;
	appearance: none;
}

.lc-icon {
	width: 1em;
	height: 1em;
	flex-shrink: 0;
	display: block;
}

.lc-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.lc-root :focus-visible,
.lc-sc:focus-visible {
	outline: 2px solid var(--lc-d-primary, #0F6E56);
	outline-offset: 2px;
}

/* ---------- Pallino ---------- */

.lc-badge {
	position: absolute;
	top: -4px;
	right: -4px;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	border-radius: 10px;
	background: var(--lc-badge);
	color: #fff;
	font-size: var(--lc-badge-fs, 11px);
	font-weight: 600;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 2px solid #fff;
	pointer-events: none;
}

.lc-badge-t {
	display: none;
	top: -7px;
	right: -12px;
	min-width: 17px;
	height: 17px;
	font-size: 10px;
	padding: 0 4px;
}

[data-badge-target="phone"] .lc-side-phone .lc-badge-t,
[data-badge-target="whatsapp"] .lc-side-whatsapp .lc-badge-t,
[data-badge-target="booking"] .lc-side-booking .lc-badge-t,
[data-badge-target="phone"] .lc-bar-phone .lc-badge-t,
[data-badge-target="whatsapp"] .lc-bar-whatsapp .lc-badge-t,
[data-badge-target="booking"] .lc-bar-booking .lc-badge-t {
	display: flex;
}

.lc-pulse .lc-badge {
	animation: lc-pulse 1.8s ease-in-out infinite;
}

@keyframes lc-pulse {
	0%, 30%, 100% { transform: scale(1); }
	15% { transform: scale(1.2); }
}

.lc-badge-seen .lc-badge,
.lc-no-badge-d .lc-desktop .lc-badge,
.lc-no-badge-m .lc-mobile .lc-badge,
.lc-open .lc-badge-d {
	display: none !important;
}

/* ---------- Desktop: menu in basso ---------- */

.lc-bottom {
	position: fixed;
	right: var(--lc-d-offset);
	bottom: var(--lc-d-offset);
	z-index: var(--lc-z);
}

.lc-left .lc-bottom {
	right: auto;
	left: var(--lc-d-offset);
}

.lc-mode-side .lc-bottom,
.lc-root:not(.lc-mode-side) .lc-side-wrap {
	display: none;
}

.lc-fab {
	position: relative;
	height: var(--lc-d-size);
	min-width: var(--lc-d-size);
	padding: 0 20px 0 16px;
	border: 0;
	border-radius: calc(var(--lc-d-size) / 2);
	background: var(--lc-d-primary);
	color: var(--lc-d-on-primary);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: var(--lc-d-fs-button, 15px);
	font-weight: 600;
	box-shadow: 0 6px 20px rgba(0, 0, 0, .16);
	transition: transform .15s ease;
}

.lc-fab:hover {
	transform: translateY(-1px);
}

.lc-fab-state {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.lc-fab .lc-icon {
	font-size: calc(var(--lc-d-size) * .42);
}

.lc-fab-opened,
.lc-open .lc-fab-closed {
	display: none;
}

.lc-open .lc-fab-opened {
	display: inline-flex;
}

.lc-icon-only .lc-fab {
	width: var(--lc-d-size);
	padding: 0;
}

.lc-icon-only .lc-fab-label {
	display: none;
}

.lc-menu {
	position: absolute;
	right: 0;
	bottom: calc(100% + 12px);
	width: var(--lc-d-menu-width);
	padding: 8px;
	background: var(--lc-d-menu-bg);
	color: var(--lc-d-text);
	border: 1px solid rgba(0, 0, 0, .08);
	border-radius: var(--lc-d-radius);
	box-shadow: 0 12px 32px rgba(0, 0, 0, .14);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity .2s ease, transform .2s ease, visibility .2s;
}

.lc-left .lc-menu {
	right: auto;
	left: 0;
}

.lc-open .lc-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.lc-menu-head {
	padding: 6px 10px 8px;
	font-size: var(--lc-d-fs-heading, 13px);
	opacity: .72;
}

.lc-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px;
	border-radius: max(0px, calc(var(--lc-d-radius) - 6px));
	color: var(--lc-d-text) !important;
	transition: background-color .15s ease;
}

.lc-item:hover {
	background: rgba(0, 0, 0, .04);
}

.lc-item-icon {
	width: calc(var(--lc-d-icon, 18px) * 2);
	height: calc(var(--lc-d-icon, 18px) * 2);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	background: rgba(0, 0, 0, .06);
	color: var(--lc-d-primary);
	font-size: var(--lc-d-icon, 18px);
}

.lc-item-text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.lc-item-title {
	font-size: var(--lc-d-fs-title, 14px);
}

.lc-item-sub {
	font-size: var(--lc-d-fs-sub, 12px);
	opacity: .7;
}

.lc-item-sub:empty,
.lc-no-subs .lc-item-sub {
	display: none;
}

.lc-d-hl .lc-item-booking,
.lc-d-hl .lc-item-booking:hover {
	background: var(--lc-d-highlight);
}

.lc-d-hl .lc-item-booking .lc-item-icon {
	background: var(--lc-d-primary);
	color: var(--lc-d-on-primary);
}

.lc-d-hl .lc-item-booking .lc-item-title,
.lc-d-hl .lc-item-booking .lc-item-sub {
	color: var(--lc-d-primary);
	opacity: 1;
}

.lc-d-hl .lc-item-booking .lc-item-title {
	font-weight: 600;
}

.lc-wa-green .lc-item-whatsapp .lc-item-icon,
.lc-wa-green .lc-side-whatsapp {
	background: #25D366;
	color: #fff;
}

/* ---------- Desktop: linguetta sottile a metà schermo ---------- */

.lc-side-wrap {
	position: fixed;
	top: 50%;
	right: 0;
	z-index: var(--lc-z);
}

.lc-left .lc-side-wrap {
	right: auto;
	left: 0;
}

.lc-side {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 6px;
	transform: translateY(-50%);
	transition: transform .25s ease, opacity .25s ease;
}

.lc-left .lc-side {
	align-items: flex-start;
}

.lc-side-item {
	position: relative;
	width: var(--lc-d-side-width);
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--lc-d-radius) 0 0 var(--lc-d-radius);
	box-shadow: -3px 4px 14px rgba(0, 0, 0, .12);
	transition: width .15s ease, filter .15s ease;
}

.lc-left .lc-side-item {
	border-radius: 0 var(--lc-d-radius) var(--lc-d-radius) 0;
	box-shadow: 3px 4px 14px rgba(0, 0, 0, .12);
}

/* Linguetta principale con testo verticale */
.lc-side-primary {
	flex-direction: column;
	gap: 10px;
	padding: 16px 0;
	background: var(--lc-d-primary);
	color: var(--lc-d-on-primary) !important;
}

.lc-side-primary:hover {
	filter: brightness(1.06);
	width: calc(var(--lc-d-side-width) + 4px);
}

.lc-side-primary .lc-side-label {
	writing-mode: vertical-rl;
	transform: rotate(180deg);
	font-size: var(--lc-d-fs-side, 12px);
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	white-space: nowrap;
}

.lc-side-primary .lc-side-icon {
	color: inherit;
}

/* Pulsanti quadrati con etichetta al passaggio del mouse */
.lc-side-btn {
	height: var(--lc-d-side-width);
	background: var(--lc-d-menu-bg);
	border: 1px solid var(--lc-m-divider, rgba(0, 0, 0, .1));
	border-right: 0;
	color: var(--lc-d-text) !important;
}

.lc-left .lc-side-btn {
	border-right: 1px solid var(--lc-m-divider, rgba(0, 0, 0, .1));
	border-left: 0;
}

.lc-side-btn:hover,
.lc-side-btn:focus-visible {
	width: calc(var(--lc-d-side-width) + 4px);
}

.lc-side-btn .lc-side-label {
	position: absolute;
	top: 50%;
	right: calc(100% + 10px);
	transform: translate(6px, -50%);
	padding: 6px 10px;
	border-radius: 6px;
	background: var(--lc-d-text);
	color: var(--lc-d-menu-bg);
	font-size: 13px;
	font-weight: 500;
	white-space: nowrap;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity .15s ease, transform .15s ease, visibility .15s;
}

.lc-left .lc-side-btn .lc-side-label {
	right: auto;
	left: calc(100% + 10px);
	transform: translate(-6px, -50%);
}

.lc-side-btn:hover .lc-side-label,
.lc-side-btn:focus-visible .lc-side-label {
	opacity: 1;
	visibility: visible;
	transform: translate(0, -50%);
}

.lc-side-icon {
	position: relative;
	display: inline-flex;
	font-size: var(--lc-d-side-icon, 19px);
	color: var(--lc-d-primary);
}

.lc-side-whatsapp .lc-side-icon {
	color: var(--lc-m-wa, #1A8F4A);
}

.lc-wa-green .lc-side-whatsapp {
	background: #25D366;
	border-color: #25D366;
}

.lc-wa-green .lc-side-whatsapp .lc-side-icon {
	color: #fff;
}

.lc-side-btn .lc-badge-t {
	top: -12px;
	right: auto;
	left: -14px;
}

.lc-left .lc-side-btn .lc-badge-t {
	left: auto;
	right: -14px;
}

.lc-side-close {
	width: 26px;
	height: 26px;
	margin-bottom: 2px;
	border: 1px solid var(--lc-m-divider, rgba(0, 0, 0, .1));
	border-radius: 50%;
	background: var(--lc-d-menu-bg);
	color: var(--lc-d-text);
	cursor: pointer;
	display: none;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	padding: 0;
	margin-right: calc((var(--lc-d-side-width) - 26px) / 2);
	box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
	opacity: .75;
	transition: opacity .15s ease;
}

.lc-left .lc-side-close {
	margin-right: 0;
	margin-left: calc((var(--lc-d-side-width) - 26px) / 2);
}

.lc-side-close:hover {
	opacity: 1;
}

.lc-closable .lc-side-close {
	display: flex;
}

.lc-handle {
	position: absolute;
	top: 0;
	right: 0;
	width: 26px;
	height: 88px;
	border: 0;
	border-radius: 10px 0 0 10px;
	background: var(--lc-d-primary);
	color: var(--lc-d-on-primary);
	cursor: pointer;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 0;
	font-size: 15px;
	box-shadow: -3px 4px 14px rgba(0, 0, 0, .12);
	opacity: 0;
	visibility: hidden;
	transform: translate(100%, -50%);
	transition: transform .25s ease, opacity .25s ease, visibility .25s;
}

.lc-left .lc-handle {
	right: auto;
	left: 0;
	border-radius: 0 10px 10px 0;
	transform: translate(-100%, -50%);
}

.lc-side-closed .lc-side {
	opacity: 0;
	pointer-events: none;
	transform: translate(110%, -50%);
}

.lc-left.lc-side-closed .lc-side {
	transform: translate(-110%, -50%);
}

.lc-side-closed .lc-handle {
	opacity: 1;
	visibility: visible;
	transform: translate(0, -50%);
}

/* ---------- Mobile: barra ---------- */

.lc-mobile {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: var(--lc-z);
	background: var(--lc-m-bg);
	border-top: 1px solid var(--lc-m-divider);
	padding-bottom: env(safe-area-inset-bottom, 0px);
	box-shadow: 0 -4px 16px rgba(0, 0, 0, .06);
}

.lc-bar {
	display: grid;
}

.lc-bar-item {
	height: var(--lc-m-height);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 3px;
	padding: 0 6px;
	color: var(--lc-m-text) !important;
	font-size: var(--lc-m-font);
	white-space: nowrap;
	overflow: hidden;
}

.lc-bar-item + .lc-bar-item {
	border-left: 1px solid var(--lc-m-divider);
}

.lc-bar-whatsapp {
	color: var(--lc-m-wa) !important;
}

.lc-bar-icon {
	position: relative;
	display: inline-flex;
	font-size: var(--lc-m-icon);
}

.lc-bar-label {
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
}

.lc-bar-hl {
	background: var(--lc-m-highlight);
	color: var(--lc-m-on-highlight) !important;
	border-left-color: var(--lc-m-highlight) !important;
}

.lc-bar-hl + .lc-bar-item {
	border-left-color: var(--lc-m-highlight);
}

.lc-m-bold .lc-bar-hl .lc-bar-label {
	font-weight: 600;
}

/* Mobile: dock sospeso */
.lc-m-dock .lc-mobile {
	left: 10px;
	right: 10px;
	bottom: calc(10px + env(safe-area-inset-bottom, 0px));
	padding: 6px;
	border: 0;
	border-radius: 18px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}

.lc-m-dock .lc-bar {
	gap: 6px;
}

.lc-m-dock .lc-bar-item {
	border: 0 !important;
	border-radius: 13px;
	gap: 2px;
	transition: background-color .15s ease;
}

.lc-m-dock .lc-bar-item:active {
	background: rgba(0, 0, 0, .05);
}

.lc-m-dock .lc-bar-hl {
	flex-direction: row;
	gap: 7px;
	font-size: calc(var(--lc-m-font) + 1px);
}

.lc-m-dock .lc-bar-hl .lc-badge-t {
	top: -6px;
	right: -10px;
}

.lc-m-dock .lc-bar-item .lc-badge-t {
	top: -7px;
	right: -11px;
}

.lc-m-dock .lc-bar-hl:active {
	background: var(--lc-m-highlight);
	filter: brightness(.95);
}

/* ---------- Anteprima admin ---------- */

.lc-preview .lc-bottom,
.lc-preview .lc-side-wrap,
.lc-preview .lc-mobile {
	position: absolute;
	z-index: 2;
}

.lc-force-desktop .lc-mobile,
.lc-force-mobile .lc-desktop {
	display: none !important;
}

/* ---------- Shortcode pulsante ---------- */

.lc-sc-wrap {
	display: block;
	margin: 0 0 1em;
}

.lc-align-center { text-align: center; }
.lc-align-right { text-align: right; }

.lc-sc {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: var(--lc-sc-height);
	padding: 0 20px;
	border-radius: var(--lc-sc-radius);
	border: 1px solid var(--lc-sc-border);
	font-size: var(--lc-sc-fs, 15px);
	font-weight: var(--lc-sc-weight, 600);
	text-transform: var(--lc-sc-transform, none);
	letter-spacing: normal;
	line-height: 1.2;
	text-decoration: none !important;
	cursor: pointer;
	transition: filter .15s ease, background-color .15s ease;
}

.lc-sc .lc-icon {
	font-size: 1.2em;
}

.lc-align-full .lc-sc {
	display: flex;
	width: 100%;
}

.lc-sc-filled {
	background: var(--lc-sc-bg);
	color: var(--lc-sc-text) !important;
	border-color: var(--lc-sc-bg);
}

.lc-sc-filled:hover {
	filter: brightness(1.08);
}

.lc-sc-outline {
	background: transparent;
	color: var(--lc-sc-border) !important;
}

.lc-sc-outline:hover {
	background: rgba(0, 0, 0, .03);
}

.lc-sc-link {
	min-height: 0;
	padding: 0;
	border: 0;
	background: none;
	color: var(--lc-sc-bg) !important;
	text-decoration: underline !important;
	text-underline-offset: 3px;
}

.lc-sc-outline.lc-sc-type-whatsapp,
.lc-sc-link.lc-sc-type-whatsapp {
	color: var(--lc-sc-wa) !important;
	border-color: var(--lc-sc-wa);
}

/* ---------- Shortcode gruppo pulsanti ---------- */

.lc-sc-group {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 1em;
}

.lc-group-center { justify-content: center; }
.lc-group-right { justify-content: flex-end; }

.lc-group-full .lc-sc {
	flex: 1 1 0;
	min-width: 0;
	padding: 0 12px;
}

.lc-group-full .lc-sc-grow {
	flex-grow: 1.4;
}

.lc-layout-column {
	flex-direction: column;
	align-items: flex-start;
}

.lc-layout-column.lc-group-center { align-items: center; }
.lc-layout-column.lc-group-right { align-items: flex-end; }

.lc-layout-column.lc-group-full {
	align-items: stretch;
}

.lc-layout-column.lc-group-full .lc-sc {
	flex: none;
}

.lc-sc span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

@media (max-width: 480px) {
	.lc-sc-group.lc-layout-row.lc-group-full {
		flex-direction: column;
	}
	.lc-sc-group.lc-layout-row.lc-group-full .lc-sc {
		flex: none;
		min-height: var(--lc-sc-height);
	}
}

/* ---------- Shortcode banner con gradiente ---------- */

.lc-banner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 18px 24px;
	margin: 1.5em 0;
	padding: var(--lc-bn-pad, 26px);
	border-radius: var(--lc-bn-radius, 14px);
	background: linear-gradient(var(--lc-bn-angle, 110deg), var(--lc-bn-c1, #495869) 0%, var(--lc-bn-c2, #619AD2) 100%);
	color: var(--lc-bn-text, #fff);
	box-shadow: 0 10px 30px rgba(73, 88, 105, .18);
	box-sizing: border-box;
}

.lc-banner * {
	box-sizing: border-box;
}

.lc-banner-text {
	flex: 1 1 260px;
	min-width: 0;
}

.lc-banner-title {
	font-size: var(--lc-bn-title-fs, 20px);
	font-weight: 600;
	line-height: 1.25;
	color: inherit;
}

.lc-banner-sub {
	margin-top: 4px;
	font-size: var(--lc-bn-sub-fs, 14px);
	line-height: 1.4;
	opacity: .85;
}

.lc-banner-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.lc-banner a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	text-decoration: none !important;
	line-height: 1.2;
	white-space: nowrap;
	cursor: pointer;
	transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, filter .15s ease;
}

.lc-banner a:hover {
	transform: translateY(-1px);
}

.lc-banner .lc-icon {
	font-size: 1.2em;
}

.lc-bn-ghost {
	height: 44px;
	padding: 0 16px;
	border: 1px solid rgba(255, 255, 255, .45);
	border-radius: 10px;
	background: rgba(255, 255, 255, .06);
	color: var(--lc-bn-text, #fff) !important;
	font-size: 14px;
	font-weight: 500;
}

.lc-bn-ghost:hover {
	background: rgba(255, 255, 255, .16);
	border-color: rgba(255, 255, 255, .7);
}

.lc-bn-main {
	height: 52px;
	padding: 0 26px;
	border-radius: 12px;
	background: var(--lc-sc-bg, #D98254);
	color: var(--lc-sc-text, #fff) !important;
	font-size: var(--lc-bn-btn-fs, 16px);
	font-weight: 600;
	text-transform: var(--lc-bn-transform, none);
	box-shadow: 0 8px 20px rgba(0, 0, 0, .22);
}

.lc-bn-main:hover {
	filter: brightness(1.06);
	box-shadow: 0 10px 26px rgba(0, 0, 0, .28);
}

.lc-banner a:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

@media (max-width: 600px) {
	.lc-banner {
		flex-direction: column;
		align-items: stretch;
		text-align: center;
	}
	.lc-banner-text {
		flex-basis: auto;
	}
	.lc-banner-actions {
		display: grid;
		grid-template-columns: 1fr 1fr;
	}
	.lc-bn-main {
		grid-column: 1 / -1;
		order: -1;
		width: 100%;
	}
	.lc-bn-ghost {
		width: 100%;
	}
	.lc-bn-ghost:first-child:nth-last-child(2) {
		grid-column: 1 / -1;
	}
}

/* ---------- Shortcode box ---------- */

.lc-box {
	margin: 1.5em 0;
	padding: 18px;
	border: 1px solid rgba(0, 0, 0, .1);
	border-radius: 14px;
	background: var(--lc-sc-box-bg);
	color: var(--lc-sc-box-color, inherit);
}

.lc-box-title {
	font-size: var(--lc-sc-box-title-fs, 17px);
	font-weight: 600;
	line-height: 1.3;
}

.lc-box-sub {
	margin-top: 2px;
	font-size: var(--lc-sc-box-sub-fs, 14px);
	opacity: .75;
}

.lc-box-actions {
	display: grid;
	grid-template-columns: var(--lc-box-cols, 1fr 1fr 1fr);
	gap: 10px;
	margin-top: 14px;
}

.lc-box-actions .lc-sc {
	padding: 0 10px;
}

@media (max-width: 480px) {
	.lc-box-actions {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.lc-pulse .lc-badge {
		animation: none;
	}
	.lc-menu,
	.lc-side,
	.lc-handle,
	.lc-fab {
		transition: none;
	}
}

@media print {
	.lc-root {
		display: none !important;
	}
}
