/*
 * Studio Arfia · cookie.css · v0.127 · 08/11/2026
 * Il banner dei cookie (template-parts/site/cookie-banner.php): vetro scuro squircle in basso a sinistra (da telefono in
 * basso, coi margini, mai a tutto schermo). v0.128: pulsanti «Personalizza» e «Accetta», «Rifiuta» come link sotto (Rami, 08/11).
 * Il link «Preferenze cookie» del footer ha la forma dei link legali accanto.
 */
.as-cookie[hidden] { display: none !important; }
.as-cookie {
	position: fixed;
	z-index: 950;
	left: 24px;
	bottom: 24px;
	width: min(420px, calc(100vw - 48px));
	opacity: 0;
	transform: translate3d(0, 16px, 0);
	transition: opacity .4s ease, transform .5s cubic-bezier(.2, .8, .2, 1);
	font-family: inherit;
}
.as-cookie.is-dentro { opacity: 1; transform: none; }
.as-cookie__vetro {
	position: relative;
	padding: 22px 22px 18px;
	border-radius: calc(22px * var(--as-brm, 1));
	background: rgba(18, 17, 22, .95); /* opaco quasi del tutto: regge anche dove la sfocatura non si disegna */
	-webkit-backdrop-filter: blur(18px) saturate(140%);
	backdrop-filter: blur(18px) saturate(140%);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 30px 70px -30px rgba(0, 0, 0, .7);
	color: #fff;
}
@supports (corner-shape: squircle) { .as-cookie__vetro, .as-cookie__btn { corner-shape: squircle; } }
.as-cookie__t { margin: 0 34px 8px 0; font-size: 18px; font-weight: 500; line-height: 1.25; letter-spacing: -.01em; }
.as-cookie__d { margin: 0; font-size: 14.5px; line-height: 1.55; color: rgba(255, 255, 255, .72); }
.as-cookie__d a { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .4); transition: color .35s ease; }
@media (hover: hover) { .as-cookie__d a:hover { color: var(--as-arancio, #F37022); } }

.as-cookie__x {
	position: absolute; top: 10px; right: 10px;
	display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
	background: transparent; color: rgba(255, 255, 255, .7); cursor: pointer; transition: background .25s ease, color .25s ease;
}
.as-cookie__x svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
@media (hover: hover) { .as-cookie__x:hover { background: rgba(255, 255, 255, .08); color: #fff; } }

.as-cookie__pref { display: grid; gap: 4px; margin-top: 14px; padding-top: 6px; border-top: 1px solid rgba(255, 255, 255, .1); }
.as-cookie__pref[hidden] { display: none; }
.as-cookie__voce { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 52px; padding: 6px 0; cursor: pointer; }
.as-cookie__voce + .as-cookie__voce { border-top: 1px solid rgba(255, 255, 255, .07); }
.as-cookie__voce > span { display: grid; gap: 2px; }
.as-cookie__voce b { font-size: 14.5px; font-weight: 500; }
.as-cookie__voce small { font-size: 12.5px; line-height: 1.4; color: rgba(255, 255, 255, .6); }
/* l'interruttore: un input vero, solo vestito */
.as-cookie__voce input {
	-webkit-appearance: none; appearance: none; flex: none; position: relative; width: 44px; height: 26px; margin: 0;
	border-radius: 999px; background: rgba(255, 255, 255, .18); cursor: pointer; transition: background .3s ease;
}
.as-cookie__voce input::after {
	content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff;
	transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}
.as-cookie__voce input:checked { background: var(--as-arancio, #F37022); }
.as-cookie__voce input:checked::after { transform: translateX(18px); }
.as-cookie__voce input:disabled { opacity: .55; cursor: default; }
.as-cookie__voce input:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.as-cookie__bottoni { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.as-cookie__btn {
	flex: 1 1 0; min-height: 44px; padding: 0 16px; border: 0; border-radius: calc(14px * var(--as-brm, 1));
	background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
	color: #fff; font: inherit; font-size: 14.5px; font-weight: 500; cursor: pointer; transition: background .3s ease, color .3s ease;
}
.as-cookie__btn[hidden] { display: none; }
.as-cookie__btn--salva { flex-basis: 100%; }
@media (hover: hover) { .as-cookie__btn:hover { background: #fff; color: #0A0A0A; } }
.as-cookie__btn:focus-visible, .as-cookie__link:focus-visible, .as-cookie__x:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.as-cookie__link {
	flex: 1 0 100%; min-height: 40px; padding: 0; border: 0; background: none; color: rgba(255, 255, 255, .72);
	font: inherit; font-size: 13.5px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; transition: color .35s ease;
}
.as-cookie__link[hidden] { display: none; }
@media (hover: hover) { .as-cookie__link:hover { color: var(--as-arancio, #F37022); } }

@media (max-width: 699px) {
	.as-cookie { left: 12px; right: 12px; bottom: 12px; bottom: max(12px, env(safe-area-inset-bottom)); width: auto; }
	/* da telefono fondo pieno, senza sfocatura: su Safari il vetro lasciava passare la pagina sotto (provato in WebKit, 08/11) */
	.as-cookie__vetro { padding: 18px 16px 12px; background: rgb(18, 17, 22); -webkit-backdrop-filter: none; backdrop-filter: none; }
	.as-cookie__t { font-size: 17px; }
	.as-cookie__d { font-size: 14px; }
}

/* «Preferenze cookie» nel footer: un bottone con l'aspetto dei link legali accanto */
.as-footer__legalvoci .as-footer__cookie { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; transition: opacity .22s ease; }
@media (hover: hover) { .as-footer__legalvoci .as-footer__cookie:hover { opacity: .6; } }
@media (max-width: 699px) { .as-footer__legalvoci .as-footer__cookie { display: inline-block; padding-block: 12px; } }
