/* Banner dei cookie (AsteIncanto). Colori del sito; nessuna dipendenza dagli altri fogli del plugin. */
.aic-cookies {
	--aic-ck-primary: #0e76bc;
	--aic-ck-text: #3f3f46;
	--aic-ck-heading: #18181b;
	--aic-ck-border: #e4e4e7;
	font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 14px;
	line-height: 1.55;
	color: var(--aic-ck-text);
}
.aic-cookies [hidden] { display: none !important; }
.aic-cookies a { color: var(--aic-ck-primary); text-decoration: underline; text-underline-offset: 2px; }

.aic-cookies__banner {
	position: fixed;
	right: 16px;
	bottom: 16px;
	left: 16px;
	z-index: 99998;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 250px;
	gap: 22px 28px;
	align-items: center;
	max-width: 1040px;
	max-height: calc(100vh - 32px);
	margin: 0 auto;
	padding: 24px 26px;
	overflow-y: auto;
	border: 1px solid rgba(228, 228, 231, .9);
	border-radius: 20px;
	background: rgba(255, 255, 255, .97);
	box-shadow: 0 2px 6px rgba(15, 23, 42, .04), 0 24px 60px rgba(15, 23, 42, .16);
	backdrop-filter: blur(12px);
	animation: aic-ck-in .45s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes aic-ck-in { from { opacity: 0; transform: translateY(24px); } }
.aic-cookies__head { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; color: var(--aic-ck-heading); font-size: 17px; font-weight: 700; line-height: 1.3; }
.aic-cookies__icon { flex: none; width: 44px; height: 44px; object-fit: contain; }
.aic-cookies__text { margin: 0; font-size: 14px; }
.aic-cookies__more { margin: 10px 0 0; }
.aic-cookies__more summary { display: inline-flex; align-items: center; gap: 6px; color: var(--aic-ck-primary); font-size: 13px; font-weight: 600; cursor: pointer; list-style: none; }
.aic-cookies__more summary::-webkit-details-marker { display: none; }
.aic-cookies__more summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
.aic-cookies__more[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.aic-cookies__more p, .aic-cookies__more ul { margin: 8px 0 0; font-size: 13px; }
.aic-cookies__more ul { padding-left: 20px; }

.aic-cookies__actions { display: flex; flex-direction: column; gap: 10px; }
/* Accetta e Rifiuta: stessa evidenza. Personalizza: secondario. */
.aic-cookies__btn {
	min-height: 46px;
	padding: 11px 18px;
	border: 2px solid var(--aic-ck-primary);
	border-radius: 9999px;
	background: var(--aic-ck-primary);
	color: #fff;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}
.aic-cookies__btn:hover { border-color: #0b5f98; background: #0b5f98; }
.aic-cookies__btn:active { transform: translateY(1px); }
.aic-cookies__btn--ghost { border-color: #d4d4d8; background: #fff; color: var(--aic-ck-heading); }
.aic-cookies__btn--ghost:hover { border-color: var(--aic-ck-primary); background: #fff; color: var(--aic-ck-primary); }
.aic-cookies__btn:focus-visible, .aic-cookies__panel:focus-visible, .aic-cookies__switch input:focus-visible + span { outline: 3px solid rgba(14, 118, 188, .45); outline-offset: 2px; }

.aic-cookies__overlay {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: grid;
	place-items: center;
	padding: 16px;
	background: rgba(24, 24, 27, .45);
}
.aic-cookies__panel {
	width: min(640px, 100%);
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	padding: 28px 28px 0;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 24px 60px rgba(15, 23, 42, .25);
	animation: aic-ck-in .3s cubic-bezier(.2, .8, .2, 1) both;
}
.aic-cookies__title { margin: 0 0 8px; color: var(--aic-ck-heading); font-size: 20px; font-weight: 700; line-height: 1.3; }
.aic-cookies__cat { margin: 12px 0 0; padding: 14px 16px; border: 1px solid var(--aic-ck-border); border-radius: 14px; background: #fafafa; }
.aic-cookies__cat p { margin: 6px 0 0; }
.aic-cookies__cat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.aic-cookies__cat h3 { margin: 0; color: var(--aic-ck-heading); font-size: 15px; font-weight: 600; }
.aic-cookies__always { padding: 3px 10px; border-radius: 999px; background: #e7f6ec; color: #0b7a3b; font-size: 12px; font-weight: 600; white-space: nowrap; }
.aic-cookies__panel .aic-cookies__actions { position: sticky; bottom: 0; flex-direction: row; margin: 16px -28px 0; padding: 16px 28px 22px; border-top: 1px solid var(--aic-ck-border); background: #fff; }
.aic-cookies__panel .aic-cookies__btn { flex: 1; }

.aic-cookies__switch { position: relative; display: inline-block; flex: none; width: 44px; height: 26px; cursor: pointer; }
.aic-cookies__switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.aic-cookies__switch span { position: absolute; inset: 0; border-radius: 99px; background: #d4d4d8; transition: background-color .2s; pointer-events: none; }
.aic-cookies__switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s; }
.aic-cookies__switch input:checked + span { background: var(--aic-ck-primary); }
.aic-cookies__switch input:checked + span::after { transform: translateX(18px); }

html.aic-cookies-open { overflow: hidden; }

/* Contenuti bloccati finché manca il consenso (es. mappa nella pagina Contatti). */
.aic-consent-placeholder { display: grid; place-items: center; gap: 10px; min-height: 220px; padding: 24px; border-radius: 15px; background: #f4f4f5; color: #3f3f46; text-align: center; }
.aic-consent-placeholder button { padding: 8px 16px; border: 2px solid #0e76bc; border-radius: 9999px; background: #fff; color: #0e76bc; font: inherit; font-weight: 600; cursor: pointer; }

@media (max-width: 760px) {
	.aic-cookies__banner { grid-template-columns: 1fr; gap: 16px; right: 10px; bottom: 10px; left: 10px; max-height: calc(100vh - 20px); padding: 18px; border-radius: 18px; }
	.aic-cookies__panel .aic-cookies__actions { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { .aic-cookies__banner, .aic-cookies__panel { animation: none; } }
