/* GAS Elementor Pack · Socials Channels
 * Dimensioni e colori dal widget (scheda Stile) tramite variabili CSS:
 * --gep-icona, --gep-box, --gep-raggio, --gep-bordo, --gep-spazio-titolo.
 * Con "colori ufficiali" ogni link riceve --gep-brand (colore del social) e --gep-brand-su (icona sopra il colore). */

.gep-socials {
	--gep-icona: 18px;
	--gep-box: 40px;
	--gep-raggio: 8px;
	--gep-bordo: 1px;
	--gep-spazio-titolo: 10px;

	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.gep-socials__item {
	margin: 0;
	padding: 0;
}

.gep-socials__item::before,
.gep-socials__item::marker {
	content: none;
}

:where(.gep-socials) .gep-socials__link {
	display: inline-flex;
	align-items: center;
	gap: var(--gep-spazio-titolo);
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease-out;
}

.gep-socials-sottolineato-yes .gep-socials__link:is(:hover, :focus-visible) .gep-socials__titolo {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.gep-socials__link:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

/* ---- Icona e forme (in :where, così i colori scelti nel widget vincono sempre) ---- */

:where(.gep-socials__icona) {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: var(--gep-box);
	height: var(--gep-box);
	color: currentColor;
	background-color: transparent;
	border: 0 solid currentColor;
	transition: color 0.2s ease-out, background-color 0.2s ease-out, border-color 0.2s ease-out;
}

.gep-socials__icona svg,
.gep-socials__icona i {
	display: block;
	width: var(--gep-icona);
	height: var(--gep-icona);
	font-size: var(--gep-icona);
	line-height: 1;
}

:where(.gep-socials--forma-nessuna) :where(.gep-socials__icona) {
	width: auto;
	height: auto;
}

:where(.gep-socials--forma-cerchio) :where(.gep-socials__icona) {
	border-radius: 50%;
}

:where(.gep-socials--forma-quadrato) :where(.gep-socials__icona) {
	border-radius: 0;
}

:where(.gep-socials--forma-arrotondato) :where(.gep-socials__icona) {
	border-radius: var(--gep-raggio);
}

:where(.gep-socials--pieno:not(.gep-socials--forma-nessuna)) :where(.gep-socials__icona) {
	color: #ffffff;
	background-color: #1f2933;
}

:where(.gep-socials--contorno) :where(.gep-socials__icona) {
	border-width: var(--gep-bordo);
}

/* ---- Colori ufficiali dei social ---- */

.gep-socials--colori-ufficiali .gep-socials__link .gep-socials__icona {
	color: var(--gep-brand);
}

.gep-socials--colori-ufficiali.gep-socials--pieno:not(.gep-socials--forma-nessuna) .gep-socials__link .gep-socials__icona {
	color: var(--gep-brand-su);
	background-color: var(--gep-brand);
}

.gep-socials--colori-ufficiali.gep-socials--contorno .gep-socials__link .gep-socials__icona {
	border-color: var(--gep-brand);
}

.gep-socials--colori-ufficiali .gep-socials__link:is(:hover, :focus-visible) .gep-socials__icona {
	filter: brightness(0.9);
}

/* ---- Titolo solo per screen reader ---- */

.gep-socials__titolo--sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

@media (prefers-reduced-motion: reduce) {
	.gep-socials__link,
	.gep-socials__icona {
		transition: none;
	}
}
