/* Footer POLiS: bande full-width come orientamento.unibas.it, contenuto in .container Bootstrap */

.footer-polis-embed {
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 0;
	font-family: "Titillium Web", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.4;
	color: #323232;
	box-sizing: border-box;
}
.footer-polis-embed *,
.footer-polis-embed *::before,
.footer-polis-embed *::after {
	box-sizing: border-box;
}

.footer-polis-embed .footer {
	margin: 0;
	border: 0;
}

.footer-polis-embed .footer__top {
	background-color: #f5f5f5;
	padding-top: 48px;
	padding-bottom: 72px;
}

.footer-polis-embed .footer__logo {
	margin-top: 24px;
	margin-bottom: 24px;
}
.footer-polis-embed .footer__logo-img {
	height: 96px;
	width: auto;
	max-width: 100%;
}

.footer-polis-embed .footer__list,
.footer-polis-embed .footer__sub-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-polis-embed .footer__list {
	display: flex;
	flex-wrap: wrap;
}

.footer-polis-embed .footer__item {
	list-style: none;
	min-width: 25%;
	max-width: 25%;
}

.footer-polis-embed .footer__label {
	font-weight: 700;
	font-size: 16px;
	line-height: 1.4;
	color: #323232;
	cursor: default;
	padding: 24px 0;
	border: 0;
	background: transparent;
	text-align: left;
	width: 100%;
}

.footer-polis-embed .footer__sub-list {
	padding-right: 24px;
}

.footer-polis-embed .footer__sub-item {
	list-style: none;
	font-size: 14px;
	line-height: 1.4;
	color: #323232;
	padding: 4px 0;
}

.footer-polis-embed .footer__link {
	position: relative;
	display: inline-block;
	color: #323232;
	text-decoration: none;
	font-size: 14px;
	line-height: 1.4;
	padding: 4px 0;
	padding-left: 32px;
	transition: color 0.2s ease-in-out, text-shadow 0.2s ease-in-out;
	max-width: 100%;
}
.footer-polis-embed .footer__link span {
	display: inline;
}
.footer-polis-embed .footer__link .ico-svg {
	position: absolute;
	top: calc(50% - 11px);
	left: 0;
	width: 13px;
	height: 13px;
	max-width: 13px;
	max-height: 22px;
	color: #3e769a;
	fill: currentColor;
	transition: left 0.2s ease-in-out;
	flex: none;
}
.footer-polis-embed .footer__link:hover {
	color: #3e769a;
	text-shadow: 0 0 1px #3e769a, 0 0 1px #3e769a;
	text-decoration: none;
}
.footer-polis-embed .footer__link:hover .ico-svg {
	left: 8px;
}

.footer-polis-embed .footer__bottom {
	font-size: 14px;
	line-height: 1.4;
	color: #fff;
	background-color: #55585c;
	padding: 24px 0;
	border-radius: 0 !important;
}

.footer-polis-embed .footer__copyright {
	text-align: right;
}

.footer-polis-embed .sxFooter div {
	margin-bottom: 0.25rem;
}

/* Subfooter Edustar: full width, contenuto allineato al .container sopra */
body.frontend .subfooter-edustar {
	width: 100%;
	max-width: 100%;
	margin: 0;
	background: #fff;
	border-top: 1px solid #dee2e6;
}

/* Desktop: 4 colonne come portale */
@media (min-width: 768px) {
	.footer-polis-embed .footer__list {
		flex-direction: row;
		flex-wrap: wrap;
	}
	.footer-polis-embed .footer__item {
		min-width: 25%;
		max-width: 25%;
	}
	.footer-polis-embed .footer__label,
	.footer-polis-embed .footer__label.d-flex {
		display: block !important;
		padding: 24px 0 !important;
		border: 0 !important;
		cursor: default;
		pointer-events: none;
	}
	.footer-polis-embed .footer__label .ico-svg,
	.footer-polis-embed .footer__label .ico-svg.d-md-none {
		display: none !important;
	}
	.footer-polis-embed .footer__sub {
		max-height: none !important;
		overflow: visible !important;
		display: block !important;
	}
	.footer-polis-embed .footer__bottom .d-flex {
		display: flex !important;
		flex-direction: row !important;
		justify-content: space-between !important;
		align-items: flex-start;
	}
	.footer-polis-embed .footer__copyright {
		text-align: right;
		margin-top: 0 !important;
	}
}

@media (min-width: 768px) and (max-width: 991.98px) {
	.footer-polis-embed .footer__item {
		min-width: 50%;
		max-width: 50%;
	}
}

/* Mobile: accordion */
@media (max-width: 767.98px) {
	.footer-polis-embed .footer__top {
		padding-top: 8px;
		padding-bottom: 32px;
	}
	.footer-polis-embed .footer__logo {
		margin-top: 0;
		margin-bottom: 16px;
	}
	.footer-polis-embed .footer__list {
		flex-direction: column;
	}
	.footer-polis-embed .footer__item {
		min-width: 100%;
		max-width: 100%;
	}
	.footer-polis-embed .footer__label,
	.footer-polis-embed .footer__label.d-flex {
		display: flex !important;
		justify-content: space-between !important;
		align-items: center;
		width: 100%;
		padding: 16px 0 !important;
		border: 0;
		border-bottom: 1px solid #3e769a;
		cursor: pointer;
		pointer-events: auto;
	}
	.footer-polis-embed .footer__label .ico-svg {
		display: inline-block !important;
		position: static !important;
		width: 13px !important;
		height: 13px !important;
		color: #3e769a;
		transform: rotate(90deg);
		transition: transform 0.35s cubic-bezier(0.77, 0, 0.175, 1);
	}
	.footer-polis-embed .footer__item.open .footer__label .ico-svg {
		transform: rotate(-90deg);
	}
	.footer-polis-embed .footer__sub {
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.4s cubic-bezier(0.77, 0, 0.175, 1);
	}
	.footer-polis-embed .footer__item.open .footer__sub {
		max-height: 3500px;
	}
	.footer-polis-embed .footer__sub-list {
		padding-top: 16px;
		padding-right: 0;
		padding-bottom: 24px;
	}
	.footer-polis-embed .footer__copyright {
		text-align: left;
		margin-top: 1rem !important;
	}
}
