/* Profumania – cookie banner
   Palette neutra (nero/bianco) coerente con il concept store. */

.pmx-cc,
.pmx-pref {
	--pmx-bg: #111;
	--pmx-fg: #fff;
	--pmx-muted: rgba(255, 255, 255, .68);
	--pmx-line: rgba(255, 255, 255, .22);
	font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	-webkit-font-smoothing: antialiased;
}

.pmx-sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

html.pmx-lock {
	overflow: hidden;
}

/* Deve vincere sulle regole display sottostanti, altrimenti il pannello
   resta a coprire la pagina con opacity 0 intercettando i clic. */
.pmx-cc[hidden],
.pmx-pref[hidden],
.pmx-fab[hidden] {
	display: none !important;
}

/* ------------------------------------------------- pulsante fisso a sinistra */

.pmx-fab {
	position: fixed;
	z-index: 999980;
	left: 18px;
	bottom: 18px;
	display: flex;
	align-items: center;
	gap: 0;
	height: 44px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, .22);
	border-radius: 999px;
	background: #111 !important;
	color: #fff !important;
	box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
	cursor: pointer;
	overflow: hidden;
	font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	opacity: 0;
	transform: translateY(10px);
	transition: opacity .3s ease, transform .3s ease, box-shadow .2s ease;
}

.pmx-fab.is-visible {
	opacity: 1;
	transform: none;
}

.pmx-fab__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	flex-shrink: 0;
}

.pmx-fab__label {
	max-width: 0;
	white-space: nowrap;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	opacity: 0;
	transition: max-width .3s ease, opacity .2s ease, padding .3s ease;
}

.pmx-fab:hover,
.pmx-fab:focus-visible {
	box-shadow: 0 8px 26px rgba(0, 0, 0, .35);
}

.pmx-fab:hover .pmx-fab__label,
.pmx-fab:focus-visible .pmx-fab__label {
	max-width: 200px;
	padding-right: 18px;
	opacity: 1;
}

.pmx-fab:focus-visible {
	outline: 2px solid #111;
	outline-offset: 2px;
}

@media (max-width: 900px) {
	.pmx-fab {
		left: 12px;
		bottom: 12px;
		height: 40px;
	}

	.pmx-fab__icon {
		width: 38px;
		height: 38px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pmx-fab,
	.pmx-fab__label {
		transition: none;
	}
}

/* ------------------------------------------------------------------ banner */

.pmx-cc {
	position: fixed;
	z-index: 999990;
	inset: auto 0 0 0;
	padding: 16px;
	opacity: 0;
	transform: translateY(16px);
	transition: opacity .3s ease, transform .3s ease;
}

.pmx-cc.is-visible {
	opacity: 1;
	transform: none;
}

.pmx-cc__box {
	max-width: 1180px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: 28px;
	padding: 22px 26px;
	background: var(--pmx-bg);
	color: var(--pmx-fg);
	border-radius: 4px;
	box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
}

.pmx-cc__title {
	margin: 0 0 6px;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--pmx-fg);
}

.pmx-cc__desc {
	margin: 0;
	font-size: 13px;
	line-height: 1.65;
	color: var(--pmx-muted);
}

.pmx-cc__desc a,
.pmx-pref__foot a {
	color: var(--pmx-fg);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.pmx-cc__actions {
	display: flex;
	flex-shrink: 0;
	gap: 10px;
}

/* ----------------------------------------------------------------- bottoni */

.pmx-btn {
	appearance: none;
	cursor: pointer;
	font: inherit;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	padding: 12px 22px;
	border-radius: 2px;
	border: 1px solid var(--pmx-line);
	background: transparent;
	color: var(--pmx-fg);
	transition: background .2s ease, color .2s ease, border-color .2s ease;
	white-space: nowrap;
}

.pmx-btn--ghost:hover {
	border-color: var(--pmx-fg);
}

.pmx-btn--solid {
	background: var(--pmx-fg);
	border-color: var(--pmx-fg);
	color: var(--pmx-bg);
}

.pmx-btn--solid:hover {
	background: transparent;
	color: var(--pmx-fg);
}

.pmx-btn:focus-visible,
.pmx-pref__x:focus-visible,
.pmx-prefs-link:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

/* -------------------------------------------------------------- preferenze */

.pmx-pref {
	position: fixed;
	inset: 0;
	z-index: 999995;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	opacity: 0;
	transition: opacity .25s ease;
}

.pmx-pref.is-visible {
	opacity: 1;
}

.pmx-pref__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .6);
}

.pmx-pref__panel {
	position: relative;
	display: flex;
	flex-direction: column;
	width: min(620px, 100%);
	max-height: min(88vh, 720px);
	background: var(--pmx-bg);
	color: var(--pmx-fg);
	border-radius: 4px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
}

.pmx-pref__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 22px 26px;
	border-bottom: 1px solid var(--pmx-line);
}

.pmx-pref__head h2 {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--pmx-fg);
}

/* Il tema/kit Elementor applica uno sfondo globale ai <button>: qui va annullato. */
.pmx-pref .pmx-pref__x {
	appearance: none;
	background: none !important;
	background-color: transparent !important;
	border: 0 !important;
	border-radius: 0;
	box-shadow: none;
	color: var(--pmx-fg) !important;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	padding: 0 4px;
	margin: 0;
}

.pmx-pref .pmx-pref__x:hover {
	opacity: .7;
}

.pmx-pref__scroll {
	overflow-y: auto;
	padding: 6px 26px 10px;
}

.pmx-cat {
	padding: 20px 0;
	border-bottom: 1px solid var(--pmx-line);
}

.pmx-cat:last-child {
	border-bottom: 0;
}

.pmx-cat__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 8px;
}

.pmx-cat h3 {
	margin: 0;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--pmx-fg);
}

.pmx-cat p {
	margin: 0;
	font-size: 13px;
	line-height: 1.65;
	color: var(--pmx-muted);
}

.pmx-cat__always {
	font-size: 11px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--pmx-muted);
}

/* interruttore */

.pmx-switch {
	position: relative;
	flex-shrink: 0;
	cursor: pointer;
}

.pmx-switch input {
	position: absolute;
	opacity: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	cursor: pointer;
}

.pmx-switch__ui {
	display: block;
	width: 44px;
	height: 24px;
	border-radius: 999px;
	border: 1px solid var(--pmx-line);
	background: transparent;
	transition: background .2s ease, border-color .2s ease;
}

.pmx-switch__ui::after {
	content: "";
	display: block;
	width: 16px;
	height: 16px;
	margin: 3px;
	border-radius: 50%;
	background: var(--pmx-muted);
	transition: transform .2s ease, background .2s ease;
}

.pmx-switch input:checked + .pmx-switch__ui {
	background: var(--pmx-fg);
	border-color: var(--pmx-fg);
}

.pmx-switch input:checked + .pmx-switch__ui::after {
	background: var(--pmx-bg);
	transform: translateX(20px);
}

.pmx-switch input:focus-visible + .pmx-switch__ui {
	outline: 2px solid var(--pmx-fg);
	outline-offset: 2px;
}

.pmx-pref__foot {
	display: flex;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
	padding: 18px 26px;
	border-top: 1px solid var(--pmx-line);
	font-size: 12px;
}

.pmx-pref__btns {
	display: flex;
	gap: 10px;
	margin-left: auto;
}

/* -------------------------------------------------- embed bloccati / extra */

.pmx-blocked {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 260px;
	height: 100%;
	padding: 28px;
	background: #f2f2f2;
	border: 1px solid #e0e0e0;
	text-align: center;
	font-family: "Poppins", sans-serif;
}

.pmx-blocked__text {
	margin: 0 0 16px;
	font-size: 13px;
	line-height: 1.6;
	color: #444;
}

.pmx-blocked__btn {
	appearance: none;
	cursor: pointer;
	font: inherit;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	padding: 12px 22px;
	border: 1px solid #111;
	border-radius: 2px;
	background: #111;
	color: #fff;
}

.pmx-blocked__btn:hover {
	background: transparent;
	color: #111;
}

.pmx-blocked__link {
	display: block;
	margin: 12px auto 0;
	appearance: none;
	background: none;
	border: 0;
	padding: 0;
	font: inherit;
	font-size: 12px;
	color: #666;
	text-decoration: underline;
	cursor: pointer;
}

.pmx-prefs-link {
	appearance: none;
	background: none;
	border: 0;
	padding: 0;
	font: inherit;
	color: inherit;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.pmx-recaptcha-note {
	margin: 14px 0 0;
	font-size: 11px;
	line-height: 1.6;
	opacity: .7;
}

.pmx-recaptcha-note a {
	color: inherit;
	text-decoration: underline;
}

/* Badge reCAPTCHA nascosto: sostituito dalla nota testuale sopra,
   come consentito dalle linee guida Google. */
.grecaptcha-badge {
	visibility: hidden;
}

/* Protezione dagli stili globali dei <button> del kit Elementor. */
.pmx-cc .pmx-btn,
.pmx-pref .pmx-btn {
	box-shadow: none;
	text-shadow: none;
	min-height: 0;
	line-height: 1.2;
}

.pmx-cc .pmx-btn--ghost,
.pmx-pref .pmx-btn--ghost {
	background-color: transparent;
	color: var(--pmx-fg);
}

.pmx-cc .pmx-btn--solid,
.pmx-pref .pmx-btn--solid {
	background-color: var(--pmx-fg);
	color: var(--pmx-bg);
}

.pmx-blocked .pmx-blocked__link,
.pmx-prefs-link {
	background-color: transparent;
	box-shadow: none;
}

/* ---------------------------------------------------------------- responsive */

@media (max-width: 900px) {
	.pmx-cc__box {
		flex-direction: column;
		align-items: stretch;
		gap: 18px;
		padding: 20px;
	}

	.pmx-cc__actions {
		flex-wrap: wrap;
	}

	.pmx-cc__actions .pmx-btn {
		flex: 1 1 auto;
		text-align: center;
	}

	.pmx-pref__foot {
		flex-direction: column;
		align-items: flex-start;
	}

	.pmx-pref__btns {
		margin-left: 0;
		width: 100%;
	}

	.pmx-pref__btns .pmx-btn {
		flex: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pmx-cc,
	.pmx-pref,
	.pmx-btn,
	.pmx-switch__ui,
	.pmx-switch__ui::after {
		transition: none;
	}
}
