/* =====================================================
   PINORO — COUNTRY/LANGUAGE SWITCHER (shortcode)
   v2.4.5 — testo select non tagliato + bandiere SVG
===================================================== */

.pinoro-mc-switcher,
.pinoro-mc-switcher *,
.pinoro-mc-switcher *::before,
.pinoro-mc-switcher *::after {
	box-sizing: border-box;
}

.pinoro-mc-switcher {
	font-family: inherit;
	display: inline-flex;
	align-items: flex-start;
	gap: 34px;
	flex-wrap: nowrap;
	line-height: 1;
}

/* ---------- Dropdown ---------- */

.pinoro-mc-switcher--dropdown { gap: 34px; }

.pinoro-mc-switcher__field {
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
}

.pinoro-mc-switcher__label {
	margin: 0;
	padding: 0;
	font-family: 'Lexend Exa', sans-serif;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: 0.24em;
	line-height: 1.15;
	text-transform: uppercase;
	color: rgba(26, 23, 21, 0.42);
}

.pinoro-mc-switcher__select-wrap {
	position: relative;
	display: block;
	width: 280px;
	max-width: 100%;
}

.pinoro-mc-switcher__select {
	appearance: none !important;
	-webkit-appearance: none !important;
	-moz-appearance: none !important;
	display: block !important;
	width: 100% !important;
	height: 64px !important;
	min-height: 64px !important;
	margin: 0 !important;
	padding: 0 58px 0 32px !important;
	border: 2px solid rgba(26, 23, 21, 0.12) !important;
	border-radius: 999px !important;
	background-color: rgba(255, 255, 255, 0.22) !important;
	color: #4c4341 !important;
	cursor: pointer !important;
	font-family: inherit !important;
	font-size: 24px !important;
	font-weight: 600 !important;
	line-height: normal !important;
	letter-spacing: -0.02em !important;
	text-overflow: ellipsis !important;
	white-space: nowrap !important;
	overflow: visible !important;
	box-shadow: none !important;
	transition: border-color .2s ease, background .2s ease, color .2s ease;
}

.pinoro-mc-switcher__select--country {
	padding-left: 64px !important;
}

.pinoro-mc-switcher__select:hover {
	border-color: rgba(234, 78, 63, 0.38) !important;
	background-color: rgba(255, 255, 255, 0.36) !important;
}

.pinoro-mc-switcher__select:focus {
	outline: none !important;
	border-color: #ea4e3f !important;
	box-shadow: 0 0 0 3px rgba(234, 78, 63, 0.14) !important;
}

.pinoro-mc-switcher__select option {
	background: #f5f3ea;
	color: #4c4341;
	font-size: 15px;
	font-weight: 500;
}

.pinoro-mc-switcher__chev {
	position: absolute;
	right: 26px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 16px;
	line-height: 1;
	pointer-events: none;
	color: rgba(26, 23, 21, 0.42);
}

/* ---------- SVG flags ---------- */

.pinoro-mc-switcher__flag-svg {
	display: inline-block;
	flex: 0 0 auto;
	width: 24px;
	height: 16px;
	border-radius: 2px;
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
	box-shadow: 0 0 0 1px rgba(26, 23, 21, 0.08);
}

.pinoro-mc-switcher__select-wrap--country .pinoro-mc-switcher__flag-svg {
	position: absolute;
	left: 30px;
	top: 50%;
	z-index: 2;
	transform: translateY(-50%);
	pointer-events: none;
}

.pinoro-mc-switcher__select-wrap--country[data-pinoro-country="IT"] .pinoro-mc-switcher__flag-svg,
.pinoro-mc-switcher__flag-svg[data-pinoro-country="IT"] { background-image: url("../flags/it.svg"); }

.pinoro-mc-switcher__select-wrap--country[data-pinoro-country="DE"] .pinoro-mc-switcher__flag-svg,
.pinoro-mc-switcher__flag-svg[data-pinoro-country="DE"] { background-image: url("../flags/de.svg"); }

.pinoro-mc-switcher__select-wrap--country[data-pinoro-country="AT"] .pinoro-mc-switcher__flag-svg,
.pinoro-mc-switcher__flag-svg[data-pinoro-country="AT"] { background-image: url("../flags/at.svg"); }

/* ---------- Inline pills ---------- */

.pinoro-mc-switcher--inline {
	align-items: center;
	gap: 12px;
}

.pinoro-mc-switcher__pills {
	display: inline-flex;
	gap: 4px;
	padding: 4px;
	border-radius: 999px;
	background: rgba(76, 67, 65, 0.06);
	border: 1px solid rgba(76, 67, 65, 0.10);
}

.pinoro-mc-switcher__pill {
	border: none;
	background: transparent;
	border-radius: 999px;
	padding: 6px 12px;
	font-size: 12px;
	font-family: inherit;
	cursor: pointer;
	color: inherit;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	transition: background 0.25s ease, color 0.25s ease;
}

.pinoro-mc-switcher__pill:hover { background: rgba(234, 78, 63, 0.08); }

.pinoro-mc-switcher__pill.is-active {
	background: #1a1715;
	color: #f5f3ea;
}

.pinoro-mc-switcher__pill--lang {
	font-family: 'Lexend Exa', sans-serif;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.12em;
	padding: 6px 10px;
}

.pinoro-mc-switcher__flag-svg--inline {
	width: 18px;
	height: 12px;
}

.pinoro-mc-switcher__divider {
	width: 1px;
	height: 22px;
	background: rgba(76, 67, 65, 0.18);
}

/* ---------- Modal trigger ---------- */

.pinoro-mc-switcher--modal-trigger {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	border-radius: 999px;
	background: transparent;
	border: 1px solid rgba(76, 67, 65, 0.18);
	font-family: inherit;
	font-size: 12px;
	cursor: pointer;
	color: inherit;
	transition: background 0.25s ease, border-color 0.25s ease;
}

.pinoro-mc-switcher--modal-trigger:hover {
	background: rgba(234, 78, 63, 0.06);
	border-color: rgba(234, 78, 63, 0.35);
}

.pinoro-mc-switcher__flag-svg--trigger {
	width: 18px;
	height: 12px;
}

.pinoro-mc-switcher__current {
	font-weight: 600;
	letter-spacing: 0.04em;
}

.pinoro-mc-switcher__sep { opacity: 0.4; }

.pinoro-mc-switcher__edit {
	font-family: 'Lexend Exa', sans-serif;
	font-size: 9px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	opacity: 0.55;
	margin-left: 4px;
}

/* ---------- Status indicator ---------- */

.pinoro-mc-switcher__status {
	display: none !important;
}

/* ---------- Dark footer variant ---------- */

.section-footer .pinoro-mc-switcher__select,
.section-footer .pinoro-mc-switcher--modal-trigger {
	border-color: rgba(245, 243, 234, 0.2) !important;
	color: rgba(245, 243, 234, 0.85) !important;
}

.section-footer .pinoro-mc-switcher__select:hover,
.section-footer .pinoro-mc-switcher--modal-trigger:hover {
	border-color: rgba(245, 243, 234, 0.5) !important;
	background: rgba(245, 243, 234, 0.06) !important;
}

.section-footer .pinoro-mc-switcher__pills {
	background: rgba(245, 243, 234, 0.06);
	border-color: rgba(245, 243, 234, 0.12);
}

.section-footer .pinoro-mc-switcher__pill { color: rgba(245, 243, 234, 0.75); }

.section-footer .pinoro-mc-switcher__pill.is-active {
	background: #f5f3ea;
	color: #1a1715;
}

.section-footer .pinoro-mc-switcher__label { color: rgba(245, 243, 234, 0.55); }

/* ---------- Mobile ---------- */

@media (max-width: 849px) {
	.pinoro-mc-switcher,
	.pinoro-mc-switcher--dropdown {
		width: 100%;
		gap: 14px;
		justify-content: center;
		flex-wrap: nowrap;
	}

	.pinoro-mc-switcher__field {
		flex: 1 1 0;
		gap: 8px;
	}

	.pinoro-mc-switcher__label {
		font-size: 10px;
		letter-spacing: 0.20em;
	}

	.pinoro-mc-switcher__select-wrap {
		width: 100%;
	}

	.pinoro-mc-switcher__select {
		height: 48px !important;
		min-height: 48px !important;
		padding-right: 40px !important;
		font-size: 15px !important;
	}

	.pinoro-mc-switcher__select--country {
		padding-left: 46px !important;
	}

	.pinoro-mc-switcher__select-wrap--country .pinoro-mc-switcher__flag-svg {
		left: 18px;
		width: 20px;
		height: 13px;
	}

	.pinoro-mc-switcher__chev {
		right: 18px;
		font-size: 13px;
	}
}

@media (max-width: 576px) {
	.pinoro-mc-switcher,
	.pinoro-mc-switcher--dropdown {
		gap: 10px;
	}

	.pinoro-mc-switcher__label {
		font-size: 8px;
		letter-spacing: 0.16em;
	}

	.pinoro-mc-switcher__select {
		height: 44px !important;
		min-height: 44px !important;
		font-size: 13px !important;
	}

	.pinoro-mc-switcher--inline {
		flex-direction: column;
		align-items: flex-start;
	}

	.pinoro-mc-switcher__divider { display: none; }
}
