/* Ninfeo Cookie Consent – stile del Grand Hotel Il Ninfeo (Lato, teal #76B1C4, ardesia #455969) */
#ncc, #ncc *, .ncc-ph, .ncc-ph * { box-sizing: border-box; }

#ncc {
	position: fixed; left: 24px; bottom: 24px; z-index: 2147483000;
	width: 420px; max-width: calc(100vw - 48px); max-height: calc(100vh - 48px); overflow: auto;
	background: #fff; color: #455969;
	font-family: Lato, "Helvetica Neue", Arial, sans-serif; font-size: 14px; line-height: 1.6;
	border-top: 3px solid #76B1C4; border-radius: 3px;
	box-shadow: 0 12px 40px rgba(69, 89, 105, .22);
	padding: 28px 28px 22px;
	opacity: 0; transform: translateY(12px); transition: opacity .3s ease, transform .3s ease;
}
#ncc.ncc-show { opacity: 1; transform: none; }
#ncc[hidden] { display: none; }

#ncc .ncc-eyebrow { margin: 0 0 6px; font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: #76B1C4; font-weight: 700; }
#ncc .ncc-title { margin: 0 0 10px; font-family: inherit; font-size: 22px; line-height: 1.3; font-weight: 400; letter-spacing: 1px; color: #455969; }
#ncc .ncc-text { margin: 0 0 18px; color: #7E7E7E; }
#ncc .ncc-text a { color: #455969; text-decoration: underline; }

#ncc button { all: unset; box-sizing: border-box; cursor: pointer; font-family: inherit; }
#ncc button:focus-visible, .ncc-ph button:focus-visible, #ncc input:focus-visible + .ncc-sw { outline: 2px solid #455969; outline-offset: 2px; }

#ncc .ncc-x { position: absolute; top: 10px; right: 12px; width: 32px; height: 32px; text-align: center; line-height: 32px; font-size: 22px; color: #7E7E7E; }
#ncc .ncc-x:hover { color: #455969; }

#ncc .ncc-actions { display: flex; gap: 10px; }
#ncc .ncc-btn, .ncc-ph .ncc-btn {
	flex: 1; text-align: center; padding: 13px 16px; border-radius: 3px;
	background: #3F7F94; color: #fff; border: 1px solid #3F7F94;
	font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; line-height: 1.2;
	transition: background .2s ease;
}
#ncc .ncc-btn:hover, .ncc-ph .ncc-btn:hover { background: #2F6577; border-color: #2F6577; }
#ncc .ncc-btn-ghost { background: #fff; color: #3F7F94; }
#ncc .ncc-btn-ghost:hover { background: #EEF4F6; color: #2F6577; }

#ncc .ncc-more { display: block; margin: 14px auto 0; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; text-decoration: underline; color: #455969; }

#ncc .ncc-prefs { margin: 0 0 18px; border-top: 1px solid #E3EBEE; }
#ncc .ncc-row { display: flex; align-items: flex-start; gap: 14px; padding: 12px 0; border-bottom: 1px solid #E3EBEE; }
#ncc .ncc-row-txt { flex: 1; }
#ncc .ncc-row-txt strong { display: block; color: #455969; font-weight: 700; }
#ncc .ncc-row-txt span { display: block; font-size: 13px; color: #7E7E7E; line-height: 1.5; }
#ncc .ncc-toggle { position: relative; flex: 0 0 auto; margin-top: 2px; }
#ncc .ncc-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
#ncc .ncc-sw { display: block; width: 42px; height: 24px; border-radius: 12px; background: #C9D3D8; position: relative; cursor: pointer; transition: background .2s ease; }
#ncc .ncc-sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s ease; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
#ncc .ncc-toggle input:checked + .ncc-sw { background: #3F7F94; }
#ncc .ncc-toggle input:checked + .ncc-sw::after { transform: translateX(18px); }
#ncc .ncc-toggle input:disabled + .ncc-sw { opacity: .55; cursor: not-allowed; }

/* Segnaposto al posto di mappe e video bloccati */
.ncc-ph {
	position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
	padding: 20px; text-align: center; background: #EEF4F6; color: #455969;
	font-family: Lato, "Helvetica Neue", Arial, sans-serif; font-size: 14px; line-height: 1.5;
}
.ncc-ph p { margin: 0; max-width: 420px; }
.ncc-ph .ncc-btn { all: unset; box-sizing: border-box; cursor: pointer; padding: 12px 20px; border-radius: 3px; background: #3F7F94; color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.ncc-ph a { color: #455969; font-size: 13px; text-decoration: underline; }

@media (max-width: 600px) {
	#ncc { left: 0; right: 0; bottom: 0; width: auto; max-width: none; max-height: 85vh; border-radius: 0; padding: 24px 20px 18px; }
	#ncc .ncc-title { font-size: 20px; }
	#ncc .ncc-actions { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
	#ncc { transition: none; }
}
