/**
 * Avviso sui cookie tecnici e tabella della Cookie Policy.
 */

.cookie-notice[hidden] {
	display: none;
}

.cookie-notice {
	position: fixed;
	z-index: 9990;
	inset-inline-end: 1.5rem;
	inset-block-end: 1.5rem;
	width: min(35rem, calc(100% - 3rem));
	padding: clamp(1.25rem, 3vw, 1.5rem);
	border: 1px solid rgb(74 52 37 / 0.18);
	background: var(--color-background, #f7f2ea);
	box-shadow: 0 0.75rem 2.25rem rgb(36 25 19 / 0.12);
	color: var(--color-foreground, #241913);
}

.cookie-notice__content {
	padding-inline-end: 2.75rem;
}

.cookie-notice__close {
	position: absolute;
	inset-block-start: 0.5rem;
	inset-inline-end: 0.5rem;
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 1px solid transparent;
	background: transparent;
	color: currentColor;
	cursor: pointer;
	touch-action: manipulation;
}

.cookie-notice__close:hover {
	border-color: rgb(74 52 37 / 0.16);
	background: rgb(74 52 37 / 0.06);
}

.cookie-notice__close:active {
	opacity: 0.72;
}

.cookie-notice__title {
	margin: 0;
	font-family: var(--font-heading, Georgia, "Times New Roman", serif);
	font-size: clamp(1.375rem, 3vw, 1.75rem);
	font-weight: 400;
	line-height: 1.2;
}

.cookie-notice p {
	margin: 0.75rem 0 0;
	font-size: 0.9375rem;
	line-height: 1.6;
}

.cookie-notice__actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 0.75rem 1rem;
	margin-block-start: 1.125rem;
}

.cookie-notice__link {
	color: var(--color-accent-hover, #5b2f13);
	font-size: 0.8125rem;
	font-weight: 750;
	letter-spacing: 0.08em;
	text-decoration-thickness: 1px;
	text-transform: uppercase;
	text-underline-offset: 0.25em;
}

.cookie-notice__button {
	min-height: 2.75rem;
	padding: 0.65rem 1.25rem;
	border: 1px solid var(--color-accent-hover, #5b2f13);
	background: var(--color-accent-hover, #5b2f13);
	color: var(--color-surface, #fffdf9);
	font: inherit;
	font-size: 0.8125rem;
	font-weight: 750;
	letter-spacing: 0.08em;
	line-height: 1.2;
	text-transform: uppercase;
	cursor: pointer;
	touch-action: manipulation;
}

.cookie-notice__button:hover {
	background: var(--color-foreground, #241913);
}

.cookie-notice__link:focus-visible,
.cookie-notice__close:focus-visible,
.cookie-notice__button:focus-visible {
	outline: 3px solid var(--color-accent, #ad874a);
	outline-offset: 3px;
}

.footer-policies {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.25rem 0.6rem;
}

.footer-policies li + li {
	margin-block-start: 0;
}

.footer-policies li + li::before {
	margin-inline-end: 0.6rem;
	color: var(--color-accent, #ad874a);
	content: "\00b7";
}

/* Allinea visivamente la hero della Cookie Policy alla Privacy Policy. */
.page-cookie-policy .page-title-panel {
	margin-block: 1.5rem 1rem;
	padding: 0;
	border: 0;
	background: transparent;
}

.page-cookie-policy .page-title-panel::after,
.page-cookie-policy .page-title-kicker {
	display: none;
}

.page-cookie-policy .page-title-panel h1 {
	max-width: none;
	margin: 0;
	line-height: 1.08;
}

.cookie-policy-table {
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.cookie-policy-table table {
	min-width: 44rem;
	border-collapse: collapse;
}

.cookie-policy-table th,
.cookie-policy-table td {
	padding: 0.9rem 1rem;
	border: 1px solid var(--color-border, rgb(74 52 37 / 0.18));
	vertical-align: top;
	text-align: start;
}

.cookie-policy-table th {
	background: var(--color-beige-light, #eee3d4);
	color: var(--color-foreground, #241913);
}

.cookie-policy-table code {
	white-space: nowrap;
}

.cookie-policy-note {
	padding-inline-start: 1rem;
	border-inline-start: 2px solid var(--color-accent, #ad874a);
	color: var(--color-muted, #766b61);
}

@media (max-width: 37.5rem) {
	.cookie-notice {
		inset-inline: 0.75rem;
		inset-block-end: 0.75rem;
		width: auto;
		padding: 1.125rem;
	}

	.cookie-notice__actions {
		justify-content: space-between;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cookie-notice *,
	.cookie-notice *::before,
	.cookie-notice *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
