/*
	Theme Name: 	Mancini Spurghi
	Description: 	Pulizia fognatura, videoispezioni, mappature 3D, Rimini
	Author: 		Èdita
	Author URI: 	http://www.editarimini.com
	Version: 		1.0.0
	Text Domain: 	mancini
*/


/* @group animations */

@keyframes pulse {
	from,
	to {
		opacity: 1;
	}
	10%, 30%, 50%, 70%, 90% {
		opacity: .3;
	}
	20%, 40%, 60%, 80% {
		opacity: .9;
	}
}

@keyframes point-left {
	0% {
		transform: translateX(0);
	}
	100% {
		transform: translateX(-.8rem);
	}
}

@keyframes point-right {
	0% {
		transform: translateX(0);
	}
	100% {
		transform: translateX(.8rem);
	}
}

body:not(.touch) .pulse:hover,
body:not(.touch) a:hover .pulse,
body:not(.touch) .editor-content a:hover,
body:not(.touch) .menu-list a:hover { animation: pulse 10s infinite; }
body:not(.touch) .point-left:hover,
body:not(.touch) a:hover .point-left,
body:not(.touch) .allclick:hover .point-left,
body:not(.touch) button:hover .point-left { animation: point-left .5s cubic-bezier(.5, 0.05, 1, .5) alternate 6; }
body:not(.touch) .point-right:hover,
body:not(.touch) a:hover .point-right,
body:not(.touch) .allclick:hover .point-right,
body:not(.touch) button:hover .point-right { animation: point-right .5s cubic-bezier(.5, 0.05, 1, .5) alternate 6; }

/* @end */


/* !@group common */

body.menu-open { overflow-y: hidden; }
.pswp__counter { display: none; }

.pswp__bg {

	background: var(--menu-back);
	-webkit-backdrop-filter: blur(.8rem);
	backdrop-filter: blur(.8rem);
}

.bullets {

	display: flex;
	flex-direction: row;
}

.slider-bullet {

	display: block;
	width: 1.1rem;
	height: 1.1rem;
	border: .1rem solid #999;
	border-radius: 50%;
	transition: border-color .25s ease, background-color .25s ease;
	cursor: pointer;
}

.slider-bullet + .slider-bullet { margin-left: 1.8rem; }

.slider-bullet.glide__bullet--active {

	border-color: var(--link);
	background-color: var(--link);
}

.slider-controls {

	display: flex;
	flex-direction: column;
}

.slider-controls .slider-prev { align-self: flex-start; }
.slider-controls .slider-next { align-self: flex-end; }

.text-bullets {

	display: flex;
	flex-direction: row;
	justify-content: center;
	font-size: min(1.25vw, 2.5rem);
}

.text-bullets .text-bullet {

	color: var(--link);
	display: none;
}

.text-bullets .text-bullet.glide__bullet--active { display: inline-block; }
.text-bullets .divider { margin: 0 .75ch; }

.slider-controls { width: 100%;

	max-width: min(12.7vw, 25.4rem);
	margin: 0 auto;
 }

.slider-controls .slider-prev { margin-bottom: max(-.5vw, -1rem); }
.slider-controls .slider-next { margin-top: max(-.5vw, -1rem); }

.slider-controls button {

	--color: #c3c0c0;

	display: flex;
	width: min(3.1vw, 6.2rem);
	height: min(3.1vw, 6.2rem);
	border-radius: 50%;
	border: .1rem solid var(--color);
	transition: border-color .25s ease;
	cursor: pointer;
}

.slider-controls svg {

	display: block;
	width: min(2.2vw, 4.4rem);
	height: min(.9vw, 1.8rem);
	fill: var(--color);
	transition: fill .25s ease;
}

.slider-controls button .svg-arrow-left {

	margin: auto max(-.9vw, -1.8rem) auto auto;
	line-height: .5;
}

.slider-controls button .svg-arrow-right {

	margin: auto auto auto max(-.9vw, -1.8rem);
	line-height: .5;
}

body:not(.touch) .slider-controls button:hover { border-color: var(--link); }
body:not(.touch) .slider-controls button:hover svg { fill: var(--link); }

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

	.text-bullets { font-size: 1.75rem; }
	.slider-controls { max-width: 17.78rem); }
	.slider-controls .slider-prev { margin-bottom: -.7rem; }
	.slider-controls .slider-next { margin-top: -.7rem; }

	.slider-controls button {

		width: 4.33rem;
		height: 4.33rem;
	}

	.slider-controls svg {

		width: 3.08rem;
		height: 1.259rem;
	}

	.slider-controls button .svg-arrow-left { margin-right: -1.26rem; }
	.slider-controls button .svg-arrow-right { margin-left: -1.26rem; }
}

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

	.slider-controls .slider-prev { margin-bottom: .5rem; }
	.slider-controls .slider-next { margin-top: .5rem; }
}

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

	.slider-controls {

		flex-direction: row;
		justify-content: center;
		align-items: center;
		max-width: 100%;
	}

	.slider-controls .slider-prev { margin-bottom: 0; }
	.slider-controls .slider-next { margin-top: 0; }
	.text-bullets { margin: 0 3rem; }
}

/* @end */


/* !@group header */

#site-header {

	background: var(--blue) url('./assets/background/header.jpg') no-repeat center top;
	background-size: cover;
}

/* @end */


/* !@group header feature */

#header-feature::before {

	content: '';
	display: block;
	background-color: var(--blue);
	position: absolute;
	left: 0;
	right: 0;
	bottom: 100%;
	height: var(--header);
}

#header-slideshow { position: relative; }

#header-slider-controls {

	position: absolute;
	left: 2rem;
	bottom: 2rem;
}

#header-slider-controls.slider-controls button {

	--color: #fff;
}

#header-slider-controls .text-bullets { color: #fff; }
#header-slider-controls .text-bullets .text-bullet.glide__bullet--active { color: var(--cyan); }
body:not(.touch) .slider-controls button:hover { border-color: var(--cyan); }
body:not(.touch) .slider-controls button:hover svg { fill: var(--cyan); }

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

	#header-slider-controls { left: 0; }
}

/* @end */


/* !@group menu */

#open-menu .line {

	transform-origin: center center;
	transition: opacity .25s ease, transform .25s ease;
}

.menu-open #open-menu { cursor: pointer; }

.menu-open #open-menu .line.top,
.menu-open #open-menu .line.bottom {

	opacity: 0;
	transform: scaleX(0);
}

.menu-open #open-menu .line.close-1 { transform: rotate(45deg); }
.menu-open #open-menu .line.close-2 { transform: rotate(-45deg); }

#main-menu {

	display: none;
	opacity: 0;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	background: var(--menu-back);
	flex-direction: column;
	padding: var(--header) 3rem 3rem;
	justify-content: flex-end;
}

.menu-open #main-menu {

	pointer-events: all;
	display: flex;
	opacity: 0;
	-webkit-backdrop-filter: blur(.8rem);
	backdrop-filter: blur(.8rem);
}

.main-menu-container {

	flex-grow: 1;
	display: flex;
	overflow-y: scroll;
}

.menu-list {

	width: 50%;
	margin: auto auto auto 0;
	text-align: right;
}

.menu-item {

	position: relative;
	text-align: right;
}

.submenu-list {

	position: absolute;
	top: 0;
	left: 100%;
	width: 100%;
	padding-top: .8ch;
}

.submenu-list.hide-menu { display: none; }
.submenu-item { text-align: left; }

.menu-item > a,
.submenu-item > a {

	display: inline-block;
	color: var(--page);
	text-decoration: none;
	line-height: min(6vmin, 7rem);
	font-weight: 300;
	letter-spacing: .1ch;
	transition: color .3s ease;
}

.menu-item > a {

	font-size: 3rem;
	text-transform: uppercase;
	padding-right: 1.5ch;
	position: relative;
}

.menu-item.current_page_item > a,
.submenu-item.current_page_item > a { color: cyan; }

.menu-item > a .svg-submenu {

	position: absolute;
	right: 0;
	transform-origin: center center;
	transform: rotate(90deg);
	transition: transform .35s;
}

.menu-item > a .svg-submenu svg {

	fill: var(--page);
	display: inline-block;
}

.menu-item.click-show-menu > a .svg-submenu { transform: rotate(0deg); }

.submenu-item > a {

	font-size: 2.6rem;
	line-height: 4.5vmin;
	padding-left: 2ch;
	letter-spacing: -.05ch;
	text-transform: normal;
}

.lang-menu-container {

	padding: 3rem 0;
	display: flex;
	flex-direction: row;
	justify-content: center;
}

#lang-menu {

	display: flex;
	flex-direction: row;
	justify-content: center;
}

#lang-menu li + li { margin-left: 2rem; }

#lang-menu a {

	color: var(--page);
	text-transform: uppercase;
	text-decoration: none;
	letter-spacing: .1ch;
	transition: color .4s ease;
}

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

	.main-menu-container {

		width: 100%;
		margin: auto;
	}

	.menu-list {

		width: 100%;
		margin: auto 0;
		text-align: center;
	}

	.menu-item,
	.submenu-item {

		text-align: center;
		padding: .5rem 0;
	}

	.submenu-list { position: static; }
	.menu-item > a .svg-submenu { top: .3ch; }
}

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

	#lang-menu { font-size: 1.8rem; }
	.language-list-link span { display: none; }

	.menu-item > a,
	.submenu-item > a {

		font-size: 2.2rem;
		padding-left: 1.5ch;
	}
}

/* @end */


/* !@group editor content */

.editor-content h2,
.editor-content h3,
.editor-content h4,
.editor-content h5,
.editor-content h6 {

	color: var(--blue);
	font-weight: 800;
	margin-bottom: 1.5rem;
}

.editor-content h2 { font-size: 3rem; }
.editor-content h3 { font-size: 2.8rem; }
.editor-content h4 { font-size: 2.4rem; }
.editor-content h5 { font-size: 2.2rem; }
.editor-content h6 { font-size: 2rem; }

.editor-content p,
.editor-content ul,
.editor-content ol { margin-bottom: 2.5ch; }

.editor-content strong,
.editor-content b { font-weight: 600; }

.editor-content em,
.editor-content i { font-style: italic; }

.editor-content a { color: var(--link); }

.editor-content ul,
.editor-content ol { margin-left: 0; }

.editor-content ul { list-style-type: none; }
.editor-content ol { list-style-type: decimal; }

.editor-content li::marker {

	color: var(--blue);
	font-weight: 700;
}

.editor-content ul li {

	background: url('assets/svg/check.svg') no-repeat left top 1ch;
	padding-left: 1.5ch;
}

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

	.editor-content h2,
	.editor-content h3,
	.editor-content h4,
	.editor-content h5,
	.editor-content h6,
	.editor-content p,
	.editor-content ul,
	.editor-content ol { font-size: .8em; }
}

/* @end */


/* !@group page gallery */

.page-gallery {

	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: row;
	justify-content: flex-end;
	align-items: center;
}

.with-section .page-gallery { margin-top: max(-8.25vw, -16.5rem); }
.gallery-slider-container,
#page-gallery-controls { position: relative; }
.with-section .gallery-slider-container,
.with-section #page-gallery-controls { top: min(8.25vw, 16.5rem); }
.gallery-slider-container { width: min(49.2vw, 98.4rem); }
#page-gallery-controls { width: min(16.15vw, 32.3rem); }

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

	#page-gallery-controls { align-self: flex-start; }
}

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

	.page-gallery,
	.with-section .page-gallery {

		margin-top: initial;
		flex-direction: column;
	}

	.gallery-slider-container { width: 100%; }

	.gallery-slider-container,
	#page-gallery-controls,
	.with-section .gallery-slider-container,
	.with-section #page-gallery-controls {

		width: 100%;
		top: initial;
		padding: 1.5rem 0;
	}
}

/* @end */


/* !@group cosa facciamo */

#cosa-facciamo {

	--rule: #97cfef;

	background: var(--blue) url('./assets/background/cosa-facciamo.jpg') no-repeat center;
	background-size: cover;
}

#cosa-facciamo > .inner {

	max-width: 200rem;
	margin: 0 auto;
	padding: 0 var(--gutter) min(11.7vw, 23.4rem);
}

#cosa-facciamo > .inner .section-title {

	overflow: hidden;
	height: min(22vw, 44rem);
	border-left: .1rem solid var(--rule);
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-bottom: min(10.6vw, 21.2rem);
}

#cosa-facciamo > .inner .section-title h2 {

	color: var(--page);
	font-size: min(2vw, 4rem);
	font-weight: 300;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: .05ch;
	text-align: center;
	margin-top: auto;
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: flex-end;
	position: relative;
}

#cosa-facciamo > .inner .section-title h2 b {

	font-size: min(9.4vw, 18.8rem);
	font-weight: 800;
	line-height: .825;
	padding-left: .5ch;
}

#cosa-facciamo > .inner .section-title h2::before {

	content: '';
	display: block;
	background-color: var(--rule);
	height: .1rem;
	width: 50vw;
	position: absolute;
	bottom: .1rem;
	right: calc( 100% + min(2.5vw, 5rem) );
}

#cosa-facciamo > .inner .section-content {

	display: flex;
	flex-direction: row;
	justify-content: center;
	gap: min(12.4vw, 24.8rem);
}

.cosa-facciamo {

	position: relative;
	color: var(--page);
	display: flex;
	flex-direction: column;
	padding: min(1vw, 2rem) 0 min(.5vw, 1rem);
	width: 33%;
}

.cosa-facciamo h3 				{ order: 2; }
.cosa-facciamo .desc 			{ order: 3; }
.cosa-facciamo .article-img 	{ order: 1; }
.cosa-facciamo .article-cta 	{ order: 4; }

.cosa-facciamo h3 {

	font-size: min(2.5vw, 5rem);
	line-height: 1;
	margin-bottom: min(2vw, 4rem);
}

.cosa-facciamo h3 a { color: var(--page); }

.cosa-facciamo .desc {

	font-size: min(1vw, 2rem);
	line-height: 1.5;
	letter-spacing: .05ch;
	margin-bottom: min(2.25vw, 4.5rem);
}

.cosa-facciamo .article-cta {

	align-self: flex-start;
	display: flex;
	border: .1rem solid var(--page);
	height: min(3.5vw, 7rem);
	width: min(4.6vw, 9.2rem);
	border-radius: min(1.75vw, 3.5rem);
	background-color: rgba(255,255,255,0);
	transition: background-color .3s ease;
}

body:not(.touch) .cosa-facciamo:hover .article-cta { background-color: rgba(255,255,255,.2); }
.cosa-facciamo .article-cta > span { margin: auto; }

.cosa-facciamo .article-cta svg {

	display: block;
	width: min(2.2vw, 4.4rem);
	height: min(.9vw, 1.8rem);
	fill: var(--page);

}

.cosa-facciamo .article-img {

	display: flex;
	flex-direction: row;
	justify-content: flex-end;
	margin-bottom: min(1.5vw, 3rem);
}

.cosa-facciamo .article-img img {

	display: block;
	height: min(5.25vw, 10.2rem);
	object-fit: contain;
	object-position: right bottom;
}

.cosa-facciamo + .cosa-facciamo::before {

	content: '';
	display: block;
	background-color: var(--rule);
	width: .1rem;
	position: absolute;
	right: calc( 100% + min(6.2vw, 12.4rem) );
	top: 0;
	bottom: 0;
}

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

	.cosa-facciamo .desc { font-size: 1.6rem; }
}

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

	.cosa-facciamo .article-cta {

		height: 4.9rem;
		width: 6.43rem;
		border-radius: 2.45rem;
	}

	.cosa-facciamo .article-cta svg {

		width: 3.08rem;
		height: 1.259rem;
	}
}

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

	#cosa-facciamo > .inner .section-title { align-items: flex-end; }
	#cosa-facciamo > .inner .section-title h2 { font-size: 1.4rem; }

	#cosa-facciamo > .inner .section-content {

		flex-direction: column;
		gap: min(12.4vw, 24.8rem);
	}

	.cosa-facciamo { width: 100%; }

	.cosa-facciamo + .cosa-facciamo::before {

		width: initial;
		height: .1rem;
		bottom: calc( 100% + min(6.2vw, 12.4rem) );
		top: initial;
		left: 0;
		right: 0;
	}

	.cosa-facciamo h3 {

		font-size: 2.5rem;
		margin-bottom: 2rem;
	}

	.cosa-facciamo .article-img { margin-bottom: 1.5rem; }
	.cosa-facciamo .article-img img { height: 5.25rem; }
	.cosa-facciamo .desc { margin-bottom: 2.25rem; }
}

/* @end */


/* !@group opinioni */

#opinioni {

	width: 100%;
	max-width: 200rem;
	margin: 0 auto;
	padding: min(6.1vw, 12.2rem) var(--gutter) min(9.5vw, 19rem);
}

#opinioni > .inner { position: relative; }

#opinioni > .inner::before,
#opinioni > .inner::after {

	background-color: var(--rule);
	content: '';
	display: block;
	position: absolute;
	left: 0;
}

#opinioni > .inner::before {

	width: .1rem;
	top: 0;
	bottom: 0;
}

#opinioni > .inner::after {

	height: .1rem;
	width: min(8.5vw, 17rem);
	bottom: 0;
}

#opinioni .section-header {

	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: flex-end;
	padding-top: min(1.25vw, 2.5rem);
	margin:
		0
		max(-2.4vw, -4.8rem)
		min(9.5vw, 19rem)
		max(-1.85vw, -3.7rem)
	;
}

#opinioni .section-header h2 {

	color: var(--grey);
	font-size: min(9.2vw, 18.4rem);
	line-height: .76;
	font-weight: 800;
	text-transform: uppercase;
}

#opinioni .section-header h2 span { color: var(--blue); }

#opinioni .section-header p {

	color: var(--blue);
	font-size: min(1.9vw, 3.8rem);
	line-height: 1.18;
	font-weight: 200;
	text-align: right;
	position: relative;
}

#opinioni .section-header p::before {

	content: '';
	display: block;
	width: min(12.15vw, 24.3rem);
	height: min(12.15vw, 24.3rem);
	background: url('./assets/pseudo/hippo.png') no-repeat center center;
	background-size: cover;
	position: absolute;
	right: min(1.1vw, 2.2rem);
	bottom: calc( 100% + min(3.2vw, 6.4rem) );
}

#opinioni .section-content {

	display: flex;
	flex-direction: row;
	align-items: center;
}

.review-slider-container {

	width: 77.2%;
	border-right: .1rem solid var(--rule);
	padding:
		min(3vw, 6rem)
		min(3.9vw, 7.8rem)
		0
		min(15.3vw, 30.6rem)
	;
	position: relative;
}

.review-slider-container::before,
.review-slider-container::after {

	content: '';
	display: block;
	width: min(8.85vw, 17.7rem);
	height: min(6.2vw, 12.4rem);
	position: absolute;
}

.review-slider-container::before {

	background: url('./assets/pseudo/open-quote.png') no-repeat center center;
	background-size: contain;
	right: max(-.75vw, -1.5rem);
	top: max(-3vw, -6rem);
}

.review-slider-container::after {

	background: url('./assets/pseudo/close-quote.png') no-repeat center center;
	background-size: contain;
	left: min(8.5vw, 17rem);
	bottom: max(-1.5vw, -3rem);
}

#review-slider-controls-container { width: 22.8%; }

.review-slide {

	white-space: normal;
	display: flex;
	flex-direction: row;
}

.review-slide blockquote {

	color: #424444;
	font-size: min(1.85vw, 3.7rem);
	line-height: 1.2;
	font-weight: 200;
	margin-bottom: min(10.5vw, 21rem);
}

.review-slide figcaption {

	flex: 0 0 min(11.5vw, 23rem);
	text-align: right;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	text-align: right;
	align-self: flex-end;
}

.review-slide cite,
.review-slide time {

	color: #7d8081;
	font-size: min(.75vw, 1.5rem);
	line-height: 1.1;
	text-transform: uppercase;
}

.review-slide .source {

	color: #2b2e2f;
	font-size: min(.95vw, 1.9rem);
	line-height: 1.4;
	font-weight: 700;
	letter-spacing: .05ch;
}

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

	.review-slide figcaption { flex: 0 0 18.4rem; }
	.review-slide cite,
	.review-slide time { font-size: 1.2rem; }
	.review-slide .source { font-size: 1.52rem; }
}

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

	.review-slide blockquote { font-size: 2.59rem; }
}

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

	.review-slide { flex-direction: column; }
	.review-slide blockquote { margin-bottom: 3rem; }
	.review-slide figcaption { flex: initial; }
}

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

	#opinioni .section-header {

		flex-direction: column;
		justify-content: space-between;
		align-items: flex-start;
		padding-top: 1.4rem;
	}

	#opinioni .section-header p {

		font-size: 1.8rem;
		margin-top: 1.8rem;
		align-self: flex-end;
	}

	#opinioni .section-header p::before {

		width: 9rem;
		height: 9rem;
	}

	#opinioni .section-content {

		display: flex;
		flex-direction: column;
	}

	#review-slider-controls-container { padding-top: 3rem; }
	.review-slider-container { width: 100%; }
	.review-slide blockquote { font-size: 1.8rem; }
}

/* @end */


/* !@group team */

#team {

	width: 100%;
	max-width: 200rem;
	margin: 0 auto;
	padding: 0 var(--gutter-small);
}

#team > .inner {

	display: grid;
	grid-template-columns:
		min(24.5vw, 49rem)
		min(5vw, 10rem)
		min(28.3vw, 56.6rem)
		0
		min(24.2vw, 48.4rem)
		;
	grid-template-rows:
		min(25.7vw, 51.4rem)
		min(15.3vw, 30.6rem)
		min(18.7vw, 37.4rem)
		min(21.5vw, 43rem)
		;
	grid-column-gap: var(--gutter-small);
	grid-row-gap: var(--gutter-small);
}

#team > .inner > div { display: flex; }

#team > .inner > div:nth-of-type(1) { grid-area: 2 / 2 / 3 / 6; }
#team > .inner > div:nth-of-type(2) { grid-area: 3 / 2 / 4 / 5; }
#team > .inner > div:nth-of-type(3) { grid-area: 1 / 1 / 3 / 2; }
#team > .inner > div:nth-of-type(4) { grid-area: 1 / 2 / 2 / 4; }
#team > .inner > div:nth-of-type(5) { grid-area: 1 / 4 / 2 / 6; }
#team > .inner > div:nth-of-type(6) { grid-area: 3 / 1 / 4 / 2; }
#team > .inner > div:nth-of-type(7) { grid-area: 4 / 1 / 5 / 3; }
#team > .inner > div:nth-of-type(8) { grid-area: 4 / 3 / 5 / 5; }
#team > .inner > div:nth-of-type(9) { grid-area: 3 / 5 / 5 / 6; }

#team img[class^='team-img-'] { object-fit: cover; }

.team-img-2,
.team-img-3 { margin-top: auto; }
.team-img-6,
.team-img-7 { margin-bottom: min(6.1vw, 12.2rem); }

.team-img-1 {

	width: min(24.5vw, 49rem);
	height: min(44vw, 88rem);
}

.team-img-2 {

	width: min(36.3vw, 72.6rem);
	height: min(20.5vw, 41rem);
}

.team-img-3 {

	width: min(27.2vw, 54.4rem);
	height: min(20.5vw, 41rem);
}

.team-img-4 {

	width: min(24.5vw, 49rem);
	height: min(18.7vw, 37.4rem);
}

.team-img-5 {

	width: min(32.5vw, 65rem);
	height: min(21.5vw, 43rem);
}

.team-img-6 {

	width: min(31.3vw, 62.6rem);
	height: min(15.4vw, 30.8rem);
}

.team-img-7 {

	width: min(24.2vw, 48.4rem);
	height: min(32.6vw, 65.2rem);
	margin-top: auto;
}

#team .text {

	position: relative;
	margin-left: var(--gutter-small);
}

#team .text::before,
#team .text::after {

	content: '';
	display: block;
	background-color: var(--rule);
	position: absolute;
	left: 0;
	bottom: 0;
	z-index: 1;
}

#team .inner > div:nth-of-type(1) .text::before {

	width: .1rem;
	top: 0;
	bottom: calc( (var(--gutter-small) * -1) - 1px );
}

#team .inner > div:nth-of-type(2) .text::before {

	width: .1rem;
	top: 0;
}

#team .inner > div:nth-of-type(2) .text::after {

	height: .1rem;
	left: 0;
	right: calc( var(--gutter-small) * -1 );
}

#team .text h2 {

	color: var(--grey);
	font-size: min(9.2vw, 18.4rem);
	line-height: .76;
	font-weight: 800;
	text-transform: uppercase;
	margin: min(1.3vw, 2.6rem) 0 0 max(-1.9vw, -3.8rem);
}

#team .text h2 span { color: var(--blue); }

#team .text p {

	font-size: min(1.6vw, 3.2rem);
	line-height: 1.2;
	font-weight: 200;
	margin: min(3.5vw, 7rem) min(8.5vw, 17rem) 0 min(5vw, 10rem);
}

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

	#team .text p {

		font-size: .9rem;
		line-height: 1;
		margin: 0 var(--gutter-small) 0;
	}
}

/* @end */


/* !@group site footer */

#site-footer {

	background-color: var(--footer);
	padding: 0 3rem 0;
}

#site-footer > .inner {

	width: 94%;
	max-width: 188rem;
	margin: 0 auto;
	padding: min(3.6vw, 7.2rem);
}

.footer-top { border-bottom: .1rem solid var(--rule); }

.footer-bottom {

	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
}

.footer-top .row-1,
.footer-top .row-2 {

	display: flex;
	flex-direction: row;
}

.footer-top .row-1 {

	justify-content: flex-start;
	padding-bottom: min(3.5vw, 7rem);
}

.footer-top .row-1 .left { flex: 0 0 35%; }
.footer-top .row-1 .center { flex: 0 0 38%; }
.footer-top .row-1 .right { flex: 0 0 21%; }
.footer-top .row-1 .center { padding: 0 3rem; }

.footer-top .row-1 .right {

	display: flex;
	flex-direction: row;
	justify-content: flex-end;
	margin-left: auto;
}

.footer-top .row-2 {

	justify-content: space-between;
	align-items: flex-end;
}

.footer-top .row-2 .left { flex: 0 0 70% }
.footer-top .row-2 .right { flex: 0 0 30%; }

.footer-top .row-2 .left {

	display: flex;
	flex-direction: row;
	justify-content: flex-start;
	align-items: flex-end;
}

.footer-top .row-2 .left > * { margin-right: min(6.5vw, 13rem); }

.footer-top .row-2 .right {

	display: flex;
	flex-direction: row;
	justify-content: flex-end;
	text-align: right;
}

.footer-top .row-2 dl,
.legal {

	font-size: min(.9vw, 1.8rem);
	line-break: 1.4;
}

.footer-top .row-2 dt {

	font-size: min(1.1vw, 2.2rem);
	line-height: 1;
	font-weight: 600;
	margin-bottom: min(1.5vw, 3rem);
}

.footer-logo {

	margin-top: min(1.3vw, 2.6rem);
	display: inline-block;
}

.footer-claim {

	color: #616161;
	font-size: min(1.9vw, 3.8rem);
	line-height: 1.18;
	font-weight: 200;
	margin-top: min(3.5vw, 7rem);
}

.bancomat { margin-top: min(5.5vw, 11rem); }

.bancomat > div {

	display: flex;
	flex-direction: row;
	justify-content: center;
	padding-bottom: min(.75vw, 1.5rem);
}

.bancomat .label {

	font-size: min(1.2vw, 2.4rem);
	line-height: 1.25;
	font-weight: 500;
	padding-right: min(1.5vw, 3rem);
}

.bancomat img {

	display: block;
	width: min(5.5vw, 11rem);
	height: min(5.15vw, 10.3rem);
}

.bancomat > div.bancomat-claim {

	--background: #2978b9;

	color: var(--page);
	background-color: var(--background);
	display: flex;
	flex-direction: column;
	justify-content: center;
	height: min(3.5vw, 7rem);
	border-radius: min(1.75vw, 3.5rem);
	padding: 0 min(2vw, 4rem) 0;
	font-size: min(1.4vw, 2.8rem);
	line-height: 1;
	text-transform: uppercase;
	text-align: center;
	position: relative;
	transition: background-color .3s ease;
}

.bancomat-claim::before {

	content: '';
	display: block;
	background-color: var(--background);
	-webkit-mask-image: url('./assets/svg/cta-arrow.svg');
	mask-image: url('./assets/svg/cta-arrow.svg');
	-webkit-mask-position: center bottom;
	mask-position: center-bottom;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	width: min(4.05vw, 8.1rem);
	height: min(.85vw, 1.7rem);
	position: absolute;
	left: min(1.75vw, 3.5rem);
	bottom: calc(100% - .1rem);
}

.bancomat-claim > span {

	display: inline-block;
	line-height: 1;
	margin: auto;
}

.site-data { font-size: min(.75vw, 1.5rem); }
.site-data li + li { margin-top: min(.5vw, 1rem); }

.footer-top .row-2 dl a,
.legal a,
.site-data a {

	color: var(--text);
	text-decoration: underline;
	text-decoration-color: #b9b9b9;
	text-decoration-thickness: .1rem;
}

.footer-top .row-2 dl a[data-trackClick='telefono'] { text-decoration: none; }

.footer-top .row-2 dl a[data-trackClick='clickemail'] {

	color: var(--link);
	text-decoration-color: var(--link);
}

.copyright {

	font-size: min(.95vw, 1.9rem);
	line-height: 1;
	font-weight: 500;
}

#credits {

	font-size: 1.4rem;
	line-height: 1;
}

img.edita-logo {

	display: inline-block;
	vertical-align: middle;
	margin-left: .5rem;
}

a#maplink {

	display: none;
	flex-direction: row;
	align-items: center;
	color: var(--page);
	background-color: var(--blue);
	font-size: 1.8rem;
	line-height: 1;
	text-transform: uppercase;
	height: 4rem;
	border-radius: 2rem;
	padding: 0 3rem;
	margin-top: 3rem;
}

a#maplink svg {

	width: 2.2rem;
	height: .9rem;
	fill: var(--page);
	margin-left: .5rem;
}

.touch a#maplink { display: flex; }

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

	.footer-top .row-2 dl,
	.legal { font-size: 1.76rem; }

	.footer-top .row-2 dt {

		font-size: 1.44rem;
		margin-bottom: 2.4rem;
	}

	.site-data { font-size: 1.2rem; }
	.site-data li + li { margin-top: .8rem; }
}

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

	.copyright { font-size: 1.33rem; }
}

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

	#site-footer > .inner { padding: 5rem 0; }

	.footer-top .row-1,
	.footer-top .row-2 {

		flex-direction: column;
		align-items: center;
	}

	.footer-top .row-1 .left { text-align: center; }
	.footer-top .row-1 .right { margin-left: initial; }
	.footer-top .row-1 .center { padding: 3rem 0; }
	.footer-top .row-1 .center img { max-width: 45rem; }
	.footer-logo { margin-top: initial; }

	.footer-claim {

		font-size: 3rem;
		text-align: center;
	}

	.bancomat { margin: 3rem 0 5rem; }
	.bancomat > div { padding-bottom: 1.5rem; }

	.bancomat .label {

		font-size: 1.9rem;
		padding-right: 2.4rem;
	}

	.bancomat img {

		width: 8.8rem;
		height: 8.24rem;
	}

	.bancomat > div.bancomat-claim {

		height: 5.6rem;
		border-radius: 2.8rem;
		padding: 0 3.2rem;
		font-size: 2.24rem;
	}

	.bancomat > div.bancomat-claim::before {

		width: 6.48rem;
		height: 1.49rem;
		left: 2.8rem;
	}

	.footer-top .row-2 .left { justify-content: center; }
	.footer-top .row-2 .left > .legal { margin-right: initial; }
	.footer-top .row-2 dt { font-size: 2rem; }

	.footer-top .row-2 .right {

		margin-top: 3rem;
		justify-content: center;
		text-align: center;
	}
}

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

	.footer-logo img { width: 14rem; }
	.footer-claim { font-size: 2rem; }

	.footer-top .row-1 .center img {

		max-width: 80%;
		margin: 0 auto;
	}

	.footer-top .row-2 .left {

		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.footer-top .row-2 .left > * { margin: 2rem 0 0; }
	#site-footer > .inner { padding: 3rem 0; }

	.footer-bottom {

		display: flex;
		flex-direction: column;
	}

	#credits {

		font-size: 1.2rem;
		margin-top: 1.5rem;
	}
}

/* @end */


/* !@group table */

.table-responsive {

	display: flex;
	flex-direction: column;
	width: 100%;
	margin: 5rem 0;
}

.table-responsive div {

	display: flex;
	flex-direction: row;
	width: 100%;
	margin: 0 1.5rem;
	justify-content: flex-start;
	font-size: 1.6rem;
	line-height: 1.3;
}

.table-responsive h3 { margin: 0; }

.table-responsive > div:first-child {

	padding-bottom: 1rem;
	border-bottom: 1px solid var(--rule);
	font-weight: 700;
}

.table-responsive > div:not(:first-child) {

	padding: 2rem 0;
	border-bottom: 1px solid var(--rule);
}

.table-responsive > div:nth-child(even) { background-color: #fcfcfc; }
.table-responsive p { margin-bottom: 0; }

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

	.table-responsive-wrapper {

		margin: 4rem 0;
		position: relative;
	}

	.table-responsive-wrapper::before {

		content: '';
		position: absolute;
		top: 4.5rem;
		left: -1.5rem;
		width: 1.5rem;
		height: calc(100% - 4.5rem);
		background: var(--page);
		z-index: 2;
	}

	.table-responsive-wrapper::after {

		content: '';
		position: absolute;
		top: 4.5rem;
		right: -1.5rem;
		width: 1.5rem;
		height: calc(100% - 4.5rem);
		background: var(--page)
	}

	.table-responsive-wrapper .scroll-commands {

		position: relative;
		display: flex;
		flex-direction: row;
		justify-content: flex-end;
		min-height: 4.5rem;
	}

	.table-responsive-wrapper .scroll-commands div {

		display: flex;
		margin: 0 0.3rem;
		background: var(--blue);
		padding: .5rem 1.5rem;
		min-height: 4.5rem;
	}

	.table-responsive-wrapper .scroll-commands div [class^='svg-'] {

		display: block;
		margin: auto;
	}

	.table-responsive-wrapper .scroll-commands div svg {

		fill: var(--page);
		display: block;
		width: 3rem;
	}

	.table-responsive-wrapper .scroll-commands div.disabled { pointer-events: none; }
	.table-responsive-wrapper .scroll-commands div.disabled i { opacity: 0.4; }

	.table-responsive-container {

		overflow-x: scroll;
		padding: 0;
		background: var(--page);
	}

	.table-responsive-container.firstcolumn-container {

		overflow: initial;
		position: relative;
	}

	.table-responsive {

		font-size: 1.4rem;
		position: relative;
		left: 50%;
		margin: 3rem 0;
	}

	.table-responsive div { margin: 0; }

	.table-responsive.firstcolumn {

		left: 0;
		top: 0;
		width: 50%;
		position: absolute;
		z-index: 1;
		margin: 30px 0 50px;
		background: var(--page);
	}

	.table-responsive.firstcolumn::before {

		content: '';
		position: absolute;
		top: 0;
		left: -15px;
		width: 15px;
		height: 100%;
		background: var(--page);
	}

	.table-responsive div {

		width: 100%;
		word-break: break-word;
	}

	.table-responsive > div:first-child {

		padding-bottom: 15px;
		font-size: 14px;
	}

	.table-responsive > div:not(:first-child) { padding: 20px 0 10px; }

	.table-responsive h3 {

		width: 100%;
		font-size: 13px;
	}
}

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

	.table-responsive div { font-size: 1.4rem; }
}

/* @end */


/* !@group form */

#form {

	--rule: #97cfef;

	background: var(--blue) url('./assets/background/cosa-facciamo.jpg') no-repeat center;
	background-size: cover;
}

#form > .inner {

	max-width: 200rem;
	margin: 0 auto;
	padding: 0 var(--gutter) min(7.5vw, 15rem);
}

#form .section-content {

	border-left: .1rem solid var(--rule);
	border-bottom: .1rem solid var(--rule);
	padding: min(5vw, 10rem) min(3.5vw, 7rem) min(3vw, 6rem) min(5vw, 10rem);
}

.efb-section {

	display: flex;
	flex-direction: row;
	justify-content: space-between;
	flex-wrap: wrap;
}

.efb-item {

	flex: 0 0 100%;
	padding-bottom: 2rem;
}

.efb-item.efb-left-half,
.efb-item.efb-right-half { flex: 0 0 calc(50% - 2rem); }

.efb-item.efb-left-third,
.efb-item.efb-middle-third,
.efb-item.efb-right-third { flex: 0 0 calc(33% - 2rem); }

.efb-item-text,
.efb-item-email {

	display: flex;
	flex-direction: column;
}

.efb-textarea { width: 100%; }

.form-style input[type='text'],
.form-style input[type='email'],
.form-style input[type='date'],
.form-style select,
.form-style textarea {

	border: .1rem solid var(--rule);
	background-color: rgba(255,255,255,0);
	height: 7rem;
	width: 100%;
	font-size: 2rem;
	font-family: var(--font1);
	color: var(--page);
	padding: 2rem;
	outline: none;
	transition:
		.35s color,
		.35s background-color,
		.35s border;
}

.form-style input[type='text']:focus,
.form-style input[type='email']:focus,
.form-style input[type='date']:focus,
.form-style select:focus,
.form-style textarea:focus {

	border-color: var(--page);
	background-color: rgba(255,255,255,.15);
}

.form-style textarea { height: 14rem; }

.form-style label {

	display: block;
	color: var(--page);
	font-weight: 400;
	padding-bottom: .5rem;
}

.form-style label.efb-error {

	color: var(--attention);
	text-shadow: 0 0 .4rem #00427a;
}

.efb-required-asterisk { color: var(--attention); }

.efb-item-checkbox {

	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	font-size: 1.6rem;
}

.efb-item-checkbox a { color: var(--page); }

.efb-item-checkbox input[type="checkbox"] {

	margin-right: 1rem;
}

.efb-choice-subtitle {

	color: var(--rule);
	flex: 0 0 100%;
}

.efb-submit {

	color: var(--page);
	background-color: var(--form-button);
	border: .1rem solid var(--rule);
	width: 100%;
	height: 7rem;
	font-size: 2.2rem;
	text-transform: uppercase;
	letter-spacing: .1ch;
	transition: background-color .35s ease;
}

body:not(.touch) .efb-submit:hover { background-color: var(--form-button-hover); }

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

	.efb-item.efb-left-half,
	.efb-item.efb-right-half,
	.efb-item.efb-left-third,
	.efb-item.efb-middle-third,
	.efb-item.efb-right-third { flex: 0 0 100%; }
}

/* @end */
