/* Selettore di lingua: shortcode + versione flottante. */

.ata-switcher {
	position: relative;
	display: inline-block;
	font-size: 14px;
	line-height: 1.4;
}

.ata-switcher__toggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #fff;
	border: 1px solid #d6d8db;
	border-radius: 6px;
	padding: 7px 12px;
	cursor: pointer;
	font: inherit;
	color: inherit;
}

.ata-switcher__toggle:hover {
	border-color: #a7aaad;
}

.ata-switcher__caret {
	width: 0;
	height: 0;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 5px solid currentColor;
	opacity: 0.6;
}

.ata-switcher__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ata-switcher--dropdown .ata-switcher__list {
	position: absolute;
	z-index: 9999;
	min-width: 100%;
	background: #fff;
	border: 1px solid #d6d8db;
	border-radius: 6px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
	overflow: hidden;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-4px);
	transition: opacity 0.12s ease, transform 0.12s ease, visibility 0.12s;
}

.ata-switcher--dropdown:hover .ata-switcher__list,
.ata-switcher--dropdown:focus-within .ata-switcher__list {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.ata-switcher--list .ata-switcher__list {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.ata-switcher__item a {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 8px 12px;
	text-decoration: none;
	color: inherit;
	white-space: nowrap;
}

.ata-switcher--dropdown .ata-switcher__item a:hover {
	background: #f0f0f1;
}

.ata-switcher__item.is-current a {
	font-weight: 600;
}

/* Versione flottante. */

.ata-floater {
	position: fixed;
	z-index: 99990;
}

.ata-floater--bottom-right {
	bottom: 20px;
	right: 20px;
}

.ata-floater--bottom-left {
	bottom: 20px;
	left: 20px;
}

.ata-floater--top-right {
	top: 20px;
	right: 20px;
}

.ata-floater--top-left {
	top: 20px;
	left: 20px;
}

.ata-floater .ata-switcher__toggle {
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

/* In basso il menu si apre verso l'alto, altrimenti esce dallo schermo. */
.ata-floater--bottom-right .ata-switcher__list,
.ata-floater--bottom-left .ata-switcher__list {
	bottom: 100%;
	margin-bottom: 6px;
}

.ata-floater--top-right .ata-switcher__list,
.ata-floater--top-left .ata-switcher__list {
	top: 100%;
	margin-top: 6px;
}

.ata-floater--bottom-right .ata-switcher__list,
.ata-floater--top-right .ata-switcher__list {
	right: 0;
}
