/**
 * Soul Contact — Riga social nel footer.
 *
 * Il markup delle icone è quello di Enfold (ul.social_bookmarks > li > a con
 * glifo da icon-font su :before). Enfold lo stila per l'header con regole
 * `#top .social_bookmarks li` che qui vanno neutralizzate: impongono
 * `float:left`, `width:30px` e `height:100%`, e in un contenitore senza altezza
 * gli <li> si accavallano lasciando visibile solo il primo.
 *
 * Le regole sotto usano `#top` per pareggiare la specificità di quelle di
 * Enfold (0,2,1) senza ricorrere a !important.
 */

.sc-footer-social {
	--scfs-ink: #d9d2c6;          /* testo/glifi su fondo scuro */
	--scfs-line: rgba(217, 210, 198, 0.28);
	--scfs-accent: #bb5a37;       /* terracotta di brand */
	--scfs-size: 42px;            /* lato del quadrato */
	--scfs-radius: 4px;           /* quadrato smussato: i pulsanti del sito
	                                 sono pillole, ma su un'icona il cerchio
	                                 pieno pesa troppo su fondo scuro */
}

/* --- La riga sotto le colonne del footer ---------------------------------- */

#top .sc-footer-social--row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 14px 22px;
	clear: both;                  /* le colonne widget sopra sono floatate */
	margin: 10px 0 0;
	padding: 28px 0 6px;
	border-top: 1px solid var(--scfs-line);
}

#top .sc-footer-social__label {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	line-height: 1.2;
	color: var(--scfs-ink);
}

/* --- Lista icone ---------------------------------------------------------- */

#top .sc-footer-social .social_bookmarks {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
	height: auto;                 /* Enfold la usa a altezza header */
	width: auto;
	float: none;
}

#top .sc-footer-social .social_bookmarks li {
	float: none;                  /* annulla #top .social_bookmarks li */
	display: block;
	width: var(--scfs-size);
	height: var(--scfs-size);
	margin: 0;
	padding: 0;
	border: 0;                    /* Enfold ci mette un border-right */
	background: none;
	list-style: none;
}

#top .sc-footer-social .social_bookmarks li a {
	float: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	line-height: 1;               /* Enfold forza 30px */
	margin: 0;
	padding: 0;
	border: 1px solid var(--scfs-line);
	border-radius: var(--scfs-radius);
	background: transparent;
	color: var(--scfs-ink);
	text-decoration: none;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

#top .sc-footer-social .social_bookmarks li a:before {
	font-size: 18px;
	line-height: 1;
}

#top .sc-footer-social .social_bookmarks li a:hover,
#top .sc-footer-social .social_bookmarks li a:focus-visible {
	background: var(--scfs-accent);
	border-color: var(--scfs-accent);
	color: #fff;
}

#top .sc-footer-social .social_bookmarks li a:focus-visible {
	outline: 2px solid var(--scfs-ink);
	outline-offset: 2px;
}

/* Enfold nasconde questa label agli utenti vedenti; la teniamo accessibile
   agli screen reader ma fuori dal flusso, o allargherebbe il quadrato. */
#top .sc-footer-social .avia_hidden_link_text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

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

@media only screen and (max-width: 767px) {

	#top .sc-footer-social--row {
		justify-content: center;
		text-align: center;
		padding-top: 22px;
	}
}
