/* ============================================================
QDP FOOTER SITES SELECTOR - CSS
============================================================ */

.qdp-sites-strip {
	background-color: var(--theme-palette-color-12, #1d1d1b);
	font-family: inherit;
	display: grid;
	justify-content: center;
	align-content: center;
}

/* === TRIGGER === */
.qdp-sites-trigger {
	background: none;
	border: none;
	color: rgba(255, 255, 255, 0.7);
	font-size: 13px;
	font-weight: 400;
	padding: 16px 40px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	transition: all 0.2s ease;
	font-family: inherit;
	width: fit-content;
	justify-self: center;
}


.qdp-sites-trigger-flag {
	display: inline-flex;
	border-radius: 2px;
	overflow: hidden;
}

.qdp-sites-trigger-flag .fi {
	font-size: 16px;
	line-height: 1;
	border-radius: 2px;
}

.qdp-sites-world-icon {
	width: 16px;
	height: 16px;
	fill: var(--theme-palette-color-11, #FFD000);
}

.qdp-sites-trigger-separator {
	color: rgba(255, 255, 255, 0.3);
	margin: 0 2px;
}

.qdp-sites-trigger-arrow {
	display: inline-flex;
	align-items: center;
	transition: transform 0.3s ease;
	margin-left: 4px;
}

.qdp-sites-arrow-icon {
	width: 12px;
	height: 12px;
	fill: rgba(255, 255, 255, 0.4);
}

.qdp-sites-strip.is-open .qdp-sites-trigger-arrow {
	transform: rotate(180deg);
}

/* === PANEL === */
.qdp-sites-panel {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.35s ease-out;	
}

.qdp-sites-strip.is-open .qdp-sites-panel {
	max-height: 800px;
}

.qdp-sites-panel-inner {
	padding: 24px 40px 28px;
	max-width: 900px;
	margin: 0 auto;
}

@media (max-width: 689.98px) {
	.qdp-sites-trigger {
		padding: 14px 20px;
		font-size: 12px;
	}

	.qdp-sites-panel-inner {
		padding: 20px;
	}
}

/* === SECTIONS === */
.qdp-sites-section {
	margin-bottom: 20px;
}

.qdp-sites-section:last-child {
	margin-bottom: 0;
}

.qdp-sites-section-title {
	color: rgba(255, 255, 255, 0.4);
	font-size: 10px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-bottom: 12px;
	text-align: center;
}

/* === GRID === */
.qdp-sites-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
}

/* === LINK === */
.qdp-sites-link {
	color: rgba(255, 255, 255, 0.65);
	text-decoration: none;
	font-size: 12px;
	font-weight: 400;
	padding: 7px 12px;
	border-radius: 5px;
	background-color: rgba(255, 255, 255, 0.08);
	transition: all 0.2s ease;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}


.qdp-sites-link.is-current {
	background-color: var(--theme-palette-color-11, #FFD000);
	color: var(--theme-palette-color-12, #1d1d1b);
	font-weight: 500;
}


.qdp-sites-link .fi {
	font-size: 14px;
	border-radius: 2px;
	box-shadow: 0 0 0 1px rgba(0,0,0,0.1);	
}

.qdp-sites-link .fi-at {
	margin-top: 1px;
}

/* === DIVIDER === */
.qdp-sites-divider {
	height: 1px;
	background-color: rgba(255, 255, 255, 0.1);
	margin: 20px 0;
}

/* === SERVICE LINK === */
.qdp-sites-service {
	color: rgba(255, 255, 255, 0.65);
	text-decoration: none;
	font-size: 12px;
	font-weight: 400;
	padding: 7px 14px;
	border-radius: 5px;
	background-color: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.1);
	transition: all 0.2s ease;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.qdp-sites-service.is-current {
	background-color: var(--theme-palette-color-11, #FFD000);
	border-color: var(--theme-palette-color-11, #FFD000);
	color: var(--theme-palette-color-12, #1d1d1b);
	font-weight: 500;
}

.qdp-sites-service.is-current .qdp-sites-icon {
	fill: var(--theme-palette-color-12, #1d1d1b);
}

/* === SVG ICONS === */
.qdp-sites-icon {
	width: 16px;
	height: 16px;
	fill: rgba(255, 255, 255, 0.5);
	transition: fill 0.2s ease;
	flex-shrink: 0;
}

.qdp-sites-icon--frozen {
	fill: #7dd3fc;
}


.qdp-sites-icon--world {
	fill: var(--theme-palette-color-11, #FFD000);
}

/* === HOVER STATES (solo dispositivi con mouse) === */
@media (hover: hover) {
	.qdp-sites-trigger:hover {
		color: var(--theme-palette-color-8, #ffffff);
		background-color: rgba(255, 255, 255, 0.05);
	}

	.qdp-sites-link:not(.is-current):hover {
		background-color: rgba(255, 255, 255, 0.15);
		color: var(--theme-palette-color-8, #ffffff);
	}

	.qdp-sites-service:not(.is-current):hover {
		background-color: rgba(255, 255, 255, 0.12);
		border-color: rgba(255, 255, 255, 0.2);
		color: var(--theme-palette-color-8, #ffffff);
	}

	.qdp-sites-service:not(.is-current):hover .qdp-sites-icon {
		fill: var(--theme-palette-color-11, #FFD000);
	}

	.qdp-sites-service:not(.is-current):hover .qdp-sites-icon--frozen {
		fill: #38bdf8;
	}

	.qdp-sites-service:not(.is-current):hover .qdp-sites-icon--world {
		fill: var(--theme-palette-color-13, #e6bc00);
	}
}
