/* Menu overlay a colonne - Primat Curtis */

:root {
	--pm-red: 206, 14, 45; /* #ce0e2d */
	--pm-bg-opacity: .92;
	--pm-white: #fff;
	--pm-line: rgba(255, 255, 255, .55);
}

html.pm-lock { overflow: hidden; }

.pm-toggle,
.pm-overlay,
.pm-overlay *,
.pm-overlay *::before,
.pm-overlay *::after { box-sizing: border-box; }

/* Pulsante hamburger */
.pm-toggle {
	position: fixed;
	top: 34px;
	right: 34px;
	z-index: 99990;
	width: 48px;
	height: 48px;
	padding: 13px 11px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	border: 0;
	border-radius: 0;
	background: rgb(var(--pm-red));
	cursor: pointer;
}
.pm-toggle span { display: block; height: 2px; background: var(--pm-white); }
.admin-bar .pm-toggle { top: 66px; }

/* Overlay e pannello */
.pm-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	opacity: 0;
	transition: opacity .25s ease;
}
.pm-overlay.is-open { opacity: 1; }

.pm-panel {
	position: absolute;
	top: 0;
	right: 0;
	width: min(60.5vw, 1160px);
	min-width: 760px;
	max-height: 100%;
	overflow-y: auto;
	padding: 36px 40px 36px 70px;
	background: rgba(var(--pm-red), var(--pm-bg-opacity));
	color: var(--pm-white);
	font-family: Lato, sans-serif;
	transform: translateY(-16px);
	transition: transform .25s ease;
}
.pm-overlay.is-open .pm-panel { transform: none; }

/* Anche :visited/:hover/:focus, altrimenti vincono le regole del tema (base.css) */
.pm-panel a,
.pm-panel a:visited,
.pm-panel a:hover,
.pm-panel a:focus,
.pm-panel a:active { color: var(--pm-white); text-decoration: none; }

/* Hover: leggero spostamento a destra; voce corrente: grassetto + triangolo */
.pm-col-title,
.pm-list .pm-link { transition: transform .2s ease, opacity .2s ease; }
.pm-panel a.pm-col-title:hover,
.pm-panel a.pm-col-title:focus-visible { opacity: .75; }
.pm-list .pm-link { position: relative; }
.pm-panel .pm-list a.pm-link:hover,
.pm-panel .pm-list a.pm-link:focus-visible { transform: translateX(5px); }

.pm-panel a[aria-current="page"],
.pm-col-title.is-current-parent { font-weight: 700; }
.pm-list a.pm-link[aria-current="page"]::before {
	content: "";
	position: absolute;
	top: 50%;
	left: -15px;
	width: 0;
	height: 0;
	border-top: 8px solid var(--pm-white);
	border-right: 8px solid transparent;
	transform: translateY(-60%);
}

/* Chiusura */
.pm-top {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 24px;
	min-height: 32px;
	margin-bottom: 14px;
}
.pm-close {
	position: relative;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}
.pm-close::before,
.pm-close::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 2px;
	right: 2px;
	height: 4px;
	background: var(--pm-white);
	transform: rotate(45deg);
}
.pm-close::after { transform: rotate(-45deg); }

/* Righe e colonne */
.pm-row {
	display: grid;
	grid-template-columns: repeat(var(--pm-cols, 3), minmax(0, 1fr));
	gap: 0 14px;
}
.pm-row + .pm-row { margin-top: 30px; }

.pm-col-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 12px;
	margin-bottom: 20px;
	border-bottom: 1px solid var(--pm-line);
}
.pm-col-title {
	font-size: 26px;
	font-weight: 500;
	line-height: 1.2;
}
.pm-col-toggle { display: none; }

.pm-list,
.pm-sublist { margin: 0; padding: 0; list-style: none; }
.pm-list li { margin: 0; }
.pm-list .pm-link {
	display: inline-block;
	font-size: 16px;
	line-height: 1.6;
}
.pm-sublist { padding-left: 14px; }
.pm-sublist .pm-link { font-size: 14px; opacity: .9; }

/* Piede */
.pm-foot {
	display: flex;
	align-items: center;
	gap: 24px;
	margin-top: 36px;
}
.pm-foot-logo img { display: block; width: 72px; height: auto; }
.pm-foot-address { flex: 1; margin: 0; font-size: 12px; text-align: center; }
.pm-foot-social { display: flex; gap: 10px; }
.pm-foot-social a {
	display: grid;
	place-items: center;
	width: 33px;
	height: 33px;
	border: 1.5px solid var(--pm-white);
	border-radius: 50%;
}
.pm-foot-social svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: var(--pm-white);
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* Tablet e mobile: pannello a tutto schermo, colonne a fisarmonica */
@media (max-width: 991px) {
	.pm-toggle { top: 20px; right: 16px; }
	.admin-bar .pm-toggle { top: 66px; }

	.pm-panel {
		width: 100%;
		min-width: 0;
		height: 100%;
		max-height: none;
		padding: 20px 24px 32px;
	}
	.pm-row { grid-template-columns: 1fr; }
	.pm-row + .pm-row { margin-top: 0; }

	.pm-col-head { margin-bottom: 0; padding: 14px 0; }
	.pm-col-title { font-size: 22px; }
	.pm-col-toggle {
		display: block;
		position: relative;
		width: 36px;
		height: 36px;
		flex: none;
		padding: 0;
		border: 0;
		background: none;
		cursor: pointer;
	}
	.pm-col-toggle::before {
		content: "";
		position: absolute;
		top: 11px;
		left: 13px;
		width: 10px;
		height: 10px;
		border-right: 2px solid var(--pm-white);
		border-bottom: 2px solid var(--pm-white);
		transform: rotate(45deg);
		transition: transform .2s ease;
	}
	.pm-col-toggle[aria-expanded="true"]::before { top: 15px; transform: rotate(-135deg); }

	.pm-col .pm-list { display: none; padding: 10px 0 14px; }
	.pm-col.is-expanded .pm-list { display: block; }

	.pm-foot { flex-wrap: wrap; justify-content: space-between; }
	.pm-foot-address { flex-basis: 100%; order: 3; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
	.pm-overlay,
	.pm-panel { transition: none; }
}