/* Cookie consent (GDPR) — brand Nextplora, caricato per ultimo */

.np-cookie-consent {
	--np-cookie-lime: #b7c600;
	--np-cookie-lime-hover: #c9d81a;
	--np-cookie-lime-active: #9eb000;
	font-family: var(--np-font, 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
}

html.np-cookie-consent-open {
	overflow: hidden;
}

/* display:flex sul modal sovrascriveva l'attributo hidden → bar + modal visibili insieme */
.np-cookie-consent[hidden],
.np-cookie-consent__bar[hidden],
.np-cookie-consent__overlay[hidden],
.np-cookie-consent__modal[hidden] {
	display: none !important;
}

.np-cookie-consent__overlay:not([hidden]) {
	position: fixed;
	inset: 0;
	background: rgba(5, 5, 6, 0.72);
	z-index: 100000;
}

.np-cookie-consent__bar:not([hidden]) {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 100001;
	background: var(--np-dark, #050506);
	border-top: 12px solid var(--np-cookie-lime);
	box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.35);
}

.np-cookie-consent__bar::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(
		90deg,
		rgba(11, 141, 181, 0.28) 0%,
		rgba(11, 141, 181, 0.06) 42%,
		rgba(0, 0, 0, 0.18) 100%
	);
	pointer-events: none;
}

.np-cookie-consent__bar-inner {
	position: relative;
	z-index: 1;
	max-width: var(--np-container, 1296px);
	margin: 0 auto;
	padding: 1.35rem var(--np-gutter, 72px);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 1.5rem;
}

.np-cookie-consent__text {
	margin: 0;
	flex: 1 1 320px;
	font-size: 14px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.78);
}

.np-cookie-consent__link {
	color: var(--np-cookie-lime);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.np-cookie-consent__link:hover,
.np-cookie-consent__link:focus-visible {
	color: var(--np-cookie-lime-hover);
}

.np-cookie-consent__actions,
.np-cookie-consent__modal-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.625rem;
}

/* Reset tema/Elementor sui <button> */
.np-cookie-consent button.np-cookie-consent__btn {
	-webkit-appearance: none;
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 0 1.25rem;
	margin: 0;
	border-radius: 4px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	cursor: pointer;
	border: 1px solid transparent;
	font-family: inherit;
	line-height: 1.2;
	background-image: none;
	box-shadow: none;
	text-decoration: none;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.np-cookie-consent button.np-cookie-consent__btn:focus {
	outline: none;
}

.np-cookie-consent button.np-cookie-consent__btn:focus-visible {
	outline: 2px solid var(--np-cookie-lime);
	outline-offset: 2px;
}

.np-cookie-consent button.np-cookie-consent__btn--primary,
.np-cookie-consent button.np-cookie-consent__btn--primary:hover,
.np-cookie-consent button.np-cookie-consent__btn--primary:focus,
.np-cookie-consent button.np-cookie-consent__btn--primary:active {
	background-color: var(--np-cookie-lime) !important;
	background-image: none !important;
	color: var(--np-dark, #050506) !important;
	border-color: var(--np-cookie-lime) !important;
	box-shadow: none !important;
}

.np-cookie-consent button.np-cookie-consent__btn--primary:hover {
	background-color: var(--np-cookie-lime-hover) !important;
	border-color: var(--np-cookie-lime-hover) !important;
}

.np-cookie-consent button.np-cookie-consent__btn--primary:active {
	background-color: var(--np-cookie-lime-active) !important;
	border-color: var(--np-cookie-lime-active) !important;
}

.np-cookie-consent button.np-cookie-consent__btn--ghost,
.np-cookie-consent button.np-cookie-consent__btn--ghost:hover,
.np-cookie-consent button.np-cookie-consent__btn--ghost:focus,
.np-cookie-consent button.np-cookie-consent__btn--ghost:active {
	background-color: transparent !important;
	background-image: none !important;
	color: var(--np-white, #ffffff) !important;
	border-color: rgba(255, 255, 255, 0.72) !important;
	box-shadow: none !important;
}

.np-cookie-consent button.np-cookie-consent__btn--ghost:hover {
	background-color: rgba(183, 198, 0, 0.12) !important;
	border-color: var(--np-cookie-lime) !important;
	color: var(--np-cookie-lime) !important;
}

.np-cookie-consent button.np-cookie-consent__btn--ghost:active {
	background-color: rgba(183, 198, 0, 0.2) !important;
	border-color: var(--np-cookie-lime-hover) !important;
	color: var(--np-cookie-lime-hover) !important;
}

.np-cookie-consent__modal:not([hidden]) {
	position: fixed;
	inset: 0;
	z-index: 100002;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
}

.np-cookie-consent__modal-panel {
	position: relative;
	width: min(100%, 560px);
	max-height: min(90vh, 640px);
	overflow: auto;
	background: var(--np-dark, #050506);
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-top: 12px solid var(--np-cookie-lime);
	border-radius: 8px;
	padding: 1.75rem;
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.np-cookie-consent__modal-panel::before {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: linear-gradient(
		135deg,
		rgba(11, 141, 181, 0.22) 0%,
		transparent 55%
	);
	pointer-events: none;
}

.np-cookie-consent__modal-title,
.np-cookie-consent__modal-intro,
.np-cookie-consent__categories,
.np-cookie-consent__modal-actions {
	position: relative;
	z-index: 1;
}

.np-cookie-consent__modal-title {
	margin: 0 0 0.75rem;
	font-size: 1.25rem;
	font-weight: 800;
	color: var(--np-white, #ffffff);
	letter-spacing: -0.01em;
}

.np-cookie-consent__modal-intro {
	margin: 0 0 1.25rem;
	font-size: 14px;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.72);
}

.np-cookie-consent__categories {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.np-cookie-consent__category {
	padding: 1rem 0 0;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.np-cookie-consent__category-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 0.35rem;
}

.np-cookie-consent__category-title {
	font-size: 14px;
	font-weight: 700;
	color: var(--np-white, #ffffff);
}

.np-cookie-consent__category-desc {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.62);
}

.np-cookie-consent__badge {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--np-cookie-lime);
}

.np-cookie-consent__toggle {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	cursor: pointer;
	margin-bottom: 0.35rem;
}

.np-cookie-consent__toggle input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.np-cookie-consent__toggle-ui {
	width: 42px;
	height: 24px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.2);
	position: relative;
	flex-shrink: 0;
	transition: background-color 0.2s ease;
}

.np-cookie-consent__toggle-ui::after {
	content: '';
	position: absolute;
	top: 3px;
	left: 3px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--np-white, #ffffff);
	transition: transform 0.2s ease, background-color 0.2s ease;
}

.np-cookie-consent__toggle input:checked + .np-cookie-consent__toggle-ui {
	background-color: var(--np-cookie-lime);
}

.np-cookie-consent__toggle input:checked + .np-cookie-consent__toggle-ui::after {
	transform: translateX(18px);
	background-color: var(--np-dark, #050506);
}

.np-cookie-consent__toggle input:focus-visible + .np-cookie-consent__toggle-ui {
	outline: 2px solid var(--np-cookie-lime);
	outline-offset: 2px;
}

.np-cookie-consent__modal-actions {
	margin-top: 1.5rem;
	justify-content: flex-end;
}

@media (max-width: 900px) {
	.np-cookie-consent__bar-inner {
		padding: 1.125rem 1.25rem;
	}

	.np-cookie-consent__actions {
		width: 100%;
	}

	.np-cookie-consent button.np-cookie-consent__btn {
		flex: 1 1 auto;
		min-width: 0;
	}

	.np-cookie-consent__modal-panel {
		padding: 1.25rem;
	}
}
