 /*
Theme Name: Refa
Author: Neiko srl
Author URI: http://www.neiko.it/
Description: Refa Theme - 2024
Version: 1.0
License: GNU General Public License v2 or later
*/

/* LENIS */

html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

.media-loading {
  opacity: 0;
  transform: scale(0.95);
  transition: none;
}

.media-loaded {
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

/*  FONTS e COLORI */
:root {
	--primary-color: #A58E57; 
	--secondary-color: #6A502A;
	--blue-color: #274250;
	--text-color: #262626;
	--subtitle-color: #C8C5BB;
	--text-color-white: #FDFCFA;
	--background-color: #F0EFE8; 
	
	--font-regular: neue-haas-grotesk-display, sans-serif;
	--font-title: ivypresto-headline, serif;
	--font-weight-regular: 500; /* Light */
	--font-weight-title: 300; /* Medium */
	--font-normal: normal;
	--font-italic: italic;
	
	--easing-in: cubic-bezier(0.86,0,0.07,1);
	--easing-out: cubic-bezier(0.19,1,0.22,1);
	
	--header-adjusted-height: 0;
	
	scroll-behavior: smooth;
}

/* SWUP */

/* TAG MAIN */

html.is-changing, html.is-animating {
	scroll-behavior: auto;
}

/* Stile che identifica il processo totale */
html.is-changing .transition-main {
	transition: transform .8s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Stile che identifica il processo di abbandono della pagina corrente */
html.is-animating.is-leaving .transition-main {
	transform: translateY(calc(-1 * 5vh * var(--overlay-direction, 1)));
}

/* Stile che identifica il processo di arrivo alla pagina corrente */
html.is-animating.is-rendering .transition-main {
	transform: translateY(calc(1 * 5vh * var(--overlay-direction, 1)));
}

/* OVERLAY */

#transition-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: var(--secondary-color);
	z-index: 9999;
	transform: translateY(0);
	opacity: 1;
	transform: translate3d(0, 100vh, 0);
}

#transition-overlay img {
	max-width: clamp(50px, 5.208vw, 100px);
	height: auto;
}

/* Stile che identifica il processo totale */
html.is-changing #transition-overlay {
	transition: transform .8s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Stile che si attiva quando clicco un link ad un'altra pagina */
html.is-animating #transition-overlay {
	transform: translate3d(0, 0, 0);
}

/* Stile che si attiva quando la pagina di destinazione è pronta */
html.is-rendering #transition-overlay {
	transform: translate3d(0, calc(var(--overlay-direction, -1) * 100%), 0);
}

html.to-back {
	/* --overlay-direction: -1; */
}

/* GENERAL */

html,
body {
	margin: 0;
	padding: 0;
	background-color: var(--background-color);
	color: var(--text-color);
	font-family: var(--font-regular);
	font-weight: var(--font-weight-regular);
	font-style: var(--font-normal);
	font-size: 16px;
	line-height: 19px;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	-moz-font-smoothing: antialiased;
	-o-font-smoothing: antialiased;
}

img, a img {
	border: none!important;
}

::-moz-selection {
	background: none repeat scroll 0 0 #FFF;
	color:#000;
}

* {
	outline: 0!important;
}

b, strong, .bold { 
	font-weight: var(--font-weight-bold);
}

a, a:visited { 
	outline-style: none;
	text-decoration: none;
	color: var(--text-color);
}

a:hover {
	cursor: pointer !important;
	color: var(--accent-color);
	text-decoration: underline;
}

.container-fluid {
	padding-left: clamp(30px, 3.646vw, 70px);
	padding-right: clamp(30px, 3.646vw, 70px);
}

@media (min-width: 1920px) {
	
	.container-fluid {
		padding-left: calc((100vw - 1780px) / 2);
		padding-right: calc((100vw - 1780px) / 2);
	}
}

.navbar-margin {
	position: relative;
	padding-top: calc(var(--header-adjusted-height) + clamp(30px, 3.646vw, 70px));
}

.padding-top-30 {
	padding-top: clamp(15px, 1.5625vw, 30px);
}

.padding-bottom-30 {
	padding-bottom: clamp(15px, 1.5625vw, 30px);
}

.padding-y-30 {
	padding-top: clamp(15px, 1.5625vw, 30px);
	padding-bottom: clamp(15px, 1.5625vw, 30px);
}

.padding-top-50 {
	padding-top: clamp(25px, 2.604vw, 50px);
}

.padding-bottom-50 {
	padding-bottom: clamp(25px, 2.604vw, 50px);
}

.padding-y-50 {
	padding-top: clamp(25px, 2.604vw, 50px);
	padding-bottom: clamp(25px, 2.604vw, 50px);
}

.padding-top-70 {
	padding-top: clamp(30px, 3.646vw, 70px);
}

.padding-bottom-70 {
	padding-bottom: clamp(30px, 3.646vw, 70px);
}

.padding-y-70 {
	padding-top: clamp(30px, 3.646vw, 70px);
	padding-bottom: clamp(30px, 3.646vw, 70px);
}

.padding-left-70 {
	padding-left: clamp(30px, 3.646vw, 70px);
}

.padding-top-100 {
	padding-top: clamp(50px, 5.208vw, 100px);
}

.padding-bottom-100 {
	padding-bottom: clamp(50px, 5.208vw, 100px);
}

.padding-y-100 {
	padding-top: clamp(50px, 5.208vw, 100px);
	padding-bottom: clamp(50px, 5.208vw, 100px);
}

.margin-top-30 {
	margin-top: clamp(15px, 1.5625vw, 30px);
}

.margin-bottom-30 {
	margin-bottom: clamp(15px, 1.5625vw, 30px);
}

.margin-y-30 {
	margin-top: clamp(15px, 1.5625vw, 30px);
	margin-bottom: clamp(15px, 1.5625vw, 30px);
}

.margin-top-50 {
	margin-top: clamp(25px, 2.604vw, 50px);
}

.margin-bottom-50 {
	margin-bottom: clamp(25px, 2.604vw, 50px);
}

.margin-y-50 {
	margin-top: clamp(25px, 2.604vw, 50px);
	margin-bottom: clamp(25px, 2.604vw, 50px);
}

.margin-top-70 {
	margin-top: clamp(30px, 3.646vw, 70px);
}

.margin-bottom-70 {
	margin-bottom: clamp(30px, 3.646vw, 70px);
}

.margin-y-70 {
	margin-top: clamp(30px, 3.646vw, 70px);
	margin-bottom: clamp(30px, 3.646vw, 70px);
}

.margin-top-100 {
	margin-top: clamp(50px, 5.208vw, 100px);
}

.margin-bottom-100 {
	margin-bottom: clamp(50px, 5.208vw, 100px);
}

.margin-y-100 {
	margin-top: clamp(50px, 5.208vw, 100px);
	margin-bottom: clamp(50px, 5.208vw, 100px);
}

/* Backgrounds */

.brown-decoration {
	background-image: url(images/brown-decoration-background.svg);
	background-size: cover;
	background-repeat: no-repeat;
	background-attachment: fixed;
}

.gold-decoration {
	background-image: url(images/gold-decoration-background.svg);
	background-size: cover;
	background-repeat: no-repeat;
	background-position: bottom left;
}

.blue-decoration {
	background-image: url(images/blue-bottom-decoration.svg);
	background-size: cover;
	background-repeat: no-repeat;
	background-position: bottom left;
}

.light-left-top-decoration {
	background-image: url(images/light-left-top-decoration.svg);
	background-size: cover;
	background-repeat: no-repeat;
	background-position: top left;
}

.light-left-bottom-decoration {
	background-image: url(images/light-left-bottom-decoration.svg);
	background-size: cover;
	background-repeat: no-repeat;
	background-position: bottom left;
}

.light-right-top-decoration {
	background-image: url(images/light-right-top-decoration.svg);
	background-size: cover;
	background-repeat: no-repeat;
	background-position: top right;
}

.light-right-bottom-decoration {
	background-image: url(images/light-right-bottom-decoration.svg);
	background-size: cover;
	background-repeat: no-repeat;
	background-position: bottom right;
}

.light-to-white-decoration {
	background-image: url(images/light-to-white-decoration.svg);
	background-size: cover;
	background-repeat: no-repeat;
	background-position: top right;
}

.white-to-light-decoration {
	background-image: url(images/white-to-light-decoration.svg);
	background-size: cover;
	background-repeat: no-repeat;
	background-position: top left;
}

.gold-bg {
	background-color: var(--primary-color);
}

.brown-bg {
	background-color: var(--secondary-color);
}

.blue-bg {
	background-color: var(--blue-color);
}

.white-bg {
	background-color: var(--text-color-white);
}

/* TYPO */

p {
	margin: 0;
}

.big {
	font-size: 1.1rem;
}

.small {
	font-size: 0.8rem;
}

h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6 { 
	font-family: var(--font-title);
	font-weight: var(--font-weight-title);
	color: var(--text-color);
	font-style: var(--font-normal);
	margin: 0;
}

h1 i, .h1 i, h2 i, .h2 i, h3 i, .h3 i, h4 i, .h4 i, h5 i, .h5 i, h6 i, .h6 i, h1 em, .h1 em, h2 em, .h2 em, h3 em, .h3 em, h4 em, .h4 em, h5 em, .h5 em, h6 em, .h6 em {
	font-style: var(--font-italic);
}

h1, .h1 {
	font-size: clamp(40px, 3.906vw, 75px);
}

h2, .h2 {
	font-size: clamp(30px, 2.604vw, 50px);
}

h3, .h3 {
	font-size: clamp(22px, 1.5625vw, 30px);
}

h4, .h4 {
	font-size: clamp(18px, 1.042vw, 20px);
}

.title {
	font-size: clamp(50px, 5.208vw, 100px);
	line-height: clamp(55px, 5.729vw, 110px);
}

.sans-serif {
	font-family: var(--font-regular) !important;
}

.white-text {
	color: var(--text-color-white);
}

.gold-text {
	color: var(--primary-color);
}

.brown-text {
	color: var(--secondary-color);
}

.gold-bg .gold-text {
	color: var(--text-color-white) !important;
}

/* Animazione Testi */

.animated-text {
	overflow: hidden;
	display: block;
}

.animated-text span {
	display: inline-block;
	transform: translateY(100%);
	opacity: 0;
	transition: transform 1.5s cubic-bezier(0.08,0.82,0.17,1), opacity 1s cubic-bezier(0.08,0.82,0.17,1);
}

.animated-text.visible span {
	transform: translateY(0);
	opacity: 1;
}

/* BREADCRUMB */

.rank-math-breadcrumb .last {
	color: var(--primary-color);
}

/* LOADER */

#loader {
	position: fixed;
	width: 100%;
	height: 100%;
	background: rgba(255, 255, 255, 0.8);
	z-index: 9999; 
	display: flex;
	justify-content: center;
	align-items: center;
}

#loader.hidden {
	opacity: 0;
	visibility: hidden;
}

.loader-inner {
	border: 8px solid #fff; /* Colore di sfondo del loader */
	border-top: 8px solid #000; /* Colore del loader */
	border-radius: 50%;
	width: 50px;
	height: 50px;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

#loading-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: var(--secondary-color);
	z-index: 9999;
	transform: translateY(0);
}

#loading-overlay img {
	max-width: clamp(50px, 5.208vw, 100px);
	height: auto;
}

#loading-overlay.transition-active {
	animation-name: enter;
	animation-duration: .75s;
	animation-timing-function: var(--easing-out);
	animation-fill-mode: forwards;
}

#loading-overlay.transition-leaving {
	animation-name: leave;
	animation-duration: .75s;
	animation-timing-function: var(--easing-in);
	animation-fill-mode: forwards;
	overflow: hidden;
}

@keyframes leave {
	0% {
		transform: translateY(0);
	}
	100% {
		transform: translateY(-100%);
	}
}

@keyframes enter {
	0% {
		transform: translateY(100%);
	}
	100% {
		transform: translateY(0);
	}
}

@media (max-width: 776px) {
	
	@keyframes leave {
		0% {
			transform: translateX(0);
		}
		100% {
			transform: translateX(100%);
		}
	}
	
	@keyframes enter {
		0% {
			transform: translateX(-100%);
		}
		100% {
			transform: translateY(0);
		}
	}
	
}

/* BOTTONI */

a.primary-btn, .primary-btn {
	position: relative;
	padding: clamp(7px, 0.521vw, 10px) clamp(10px, 0.781vw, 15px);
	background: transparent;
	border: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	text-decoration: none;
	color: var(--text-color);
	z-index: 1;
	transition: .5s var(--easing-out);
	border: 1px solid var(--primary-color);
	border-radius: 2px;
}

a.primary-btn::before, .primary-btn::before {
	content: '';
	position: absolute; 
	bottom: -1px;
	left: 0;
	width: 100%;
	height: 1px;
	background-color: var(--primary-color);
	transition: .5s var(--easing-out);
	z-index: -1;
}

a.primary-btn svg, .primary-btn svg {
	width: 15px;
	height: 15px;
	stroke: var(--text-color);
	transition: .5s var(--easing-out);
}

a.primary-btn:hover, .primary-btn:hover {
	color: var(--text-color-white);
	text-decoration: none;
}

a.primary-btn:hover::before, .primary-btn:hover::before {
	height: 100%;
	bottom: 0px;
}

a.primary-btn:hover svg, .primary-btn:hover svg {
	stroke: var(--text-color-white);
}

a.secondary-btn {
	position: relative;
	padding: clamp(7px, 0.521vw, 10px) clamp(10px, 0.781vw, 15px);
	background: transparent;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	text-decoration: none;
	color: var(--text-color-white);
	z-index: 1;
	transition: .5s var(--easing-out);
	border: 1px solid var(--text-color-white);
	border-radius: 2px;
}

a.secondary-btn::before {
	content: '';
	position: absolute; 
	bottom: -1px;
	left: 0;
	width: 100%;
	height: 1px;
	background-color: var(--background-color);
	transition: .5s var(--easing-out);
	z-index: -1;
}

a.secondary-btn svg {
	width: 15px;
	height: 15px;
	/* stroke: var(--text-color-white); */
	transition: .5s var(--easing-out);
}

a.secondary-btn:hover {
	color: var(--text-color);
	text-decoration: none;
}

a.secondary-btn:hover::before {
	height: 100%;
	bottom: 0;
}

a.secondary-btn:hover svg {
	/* stroke: var(--text-color); */
}

/* HEADER */

#header {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 1021;
	transition: .75s var(--easing-out);
}

#header.background {
	background-color: var(--text-color-white);
}

#header.hide {
	transform: translateY(-100%);
	transition: .75s var(--easing-out);
}

#header * {
	color: var(--text-color);
}

#header svg {
	fill: var(--primary-color);
}

#header .navbar-brand {
	padding: clamp(15px, 1.041vw, 20px) 0;
}

#header.light.background {
	background-color: var(--primary-color);
}

#header.light, #header.light *, #header.light svg {
	color: var(--text-color-white) !important;
	fill: var(--text-color-white);
}

#header nav {
	padding: 0;
	border-bottom: 1px solid var(--subtitle-color);
}

#header.light nav {
	padding: 0;
	border-bottom: 1px solid var(--text-color-white);
}

#header .navbar-nav {
	display: flex;
	gap: clamp(15px, 1.5625vw, 30px);
	flex-direction: row;
	padding: clamp(25px, 2.6vw, 50px) 0;
}

#header .navbar-nav .menu-item a {
	position: relative;
	text-decoration: none;
}

#header .navbar-nav .menu-item a::after {
	content: '';
	position: absolute;
	right: 0;
	bottom: -5px;
	width: 0;
	height: 1px;
	background-color: var(--primary-color);
	transition: .5s var(--easing-out);
}

#header .navbar-nav .menu-item a:hover::after {
	right: unset;
	left: 0;
	width: 100%;
	transition: .5s var(--easing-in);
}

#header.menu-open {
	background-color: var(--secondary-color) !important;
}

#burger-button {
	width: 35px;
	aspect-ratio: 1 / 1;
	display: flex;
	justify-content: center;
	align-items: center;
	background-color: var(--primary-color);
	flex-direction: column;
	gap: 5px;
}

#burger-button .line {
	width: 20px;
	height: 1px;
	background-color: var(--text-color-white);
}

.mobile-navbar {
	position: fixed;
	top: 0;
	left: 0;
	background-color: var(--secondary-color);
	padding-bottom: clamp(30px, 3.646vw, 70px);
	transform: translateY(-100%);
	transition: .75s var(--easing-in);
	z-index: 9;
}

.mobile-navbar.open {
	transform: translateY(0);
	transition: .75s var(--easing-out);
}

.mobile-navbar .spacer {
	height: var(--header-adjusted-height);
}

.mobile-navbar .col-md-4 {
	padding-top: clamp(20px, 3.646vw, 70px);
	border-right: 1px solid var(--primary-color);
}

.mobile-navbar .col-md-3 {
	padding-top: clamp(20px, 3.646vw, 70px);
}

.mobile-menu {
	display: flex;
	flex-direction: column;
	list-style: none;
	margin: 0;
	padding: 0;
}

.mobile-menu .menu-item {
	margin-bottom: clamp(15px, 1.042vw, 20px);
	margin-left: clamp(25px, 2.604vw, 50px);
}

.mobile-menu .menu-item:last-of-type {
	margin-bottom: 0;
}

.mobile-menu .menu-item a {
	text-decoration: none;
	font-size: clamp(22px, 1.5625vw, 30px);
	font-family: var(--font-regular);
	color: var(--text-color-white);
}

.border-bottom-gold {
	border-bottom: 1px solid var(--primary-color);
}

.mobile-navbar .contacts a {
	color: var(--text-color-white);
	position: relative;
	text-decoration: underline dotted;
}

@media (max-width: 767.98px) {
	
	#header.menu-open {
		background-color: transparent;
	}
	
	#header {
		border-bottom: 1px solid var(--subtitle-color);
		transition: .75s var(--easing-in);
	}
	
	#header.menu-open {
		border-bottom: 1px solid var(--primary-color);
		transition: .75s var(--easing-out);
	}
	
	#header svg {
		transition: .75s var(--easing-in);
	}
	
	#header.menu-open svg {
		transition: .75s var(--easing-out);
		fill: var(--text-color-white);
	}
	
	#header nav {
		padding: 0;
		border-bottom: none;
	}
	
	#header.light.menu-open {
		border-bottom: 1px solid var(--primary-color);
		transition: .75s var(--easing-out);
	}
	
	#header.light nav {
		padding: 0;
		border-bottom: none;
	}
	
	.mobile-navbar {
		transform: translateX(100%);
		height: 100dvh;
		max-height: 100dvh;
		overflow: auto;
	}
	
	.mobile-navbar.open {
		transform: translateX(0);
	}
	
	.mobile-navbar .col-md-4 {
		border-right: none;
		padding-bottom: clamp(40px, 3.646vw, 70px);
	}
	
	.mobile-navbar .col-md-4.menu-list, .mobile-navbar .col-md-3 {
		padding-top: clamp(40px, 3.646vw, 70px);
		padding-bottom: clamp(40px, 3.646vw, 70px);
	}
	
	.mobile-menu .menu-item {
		margin-bottom: clamp(15px, 1.042vw, 20px);
		margin-left: 0 !important;
	}
	
	.divider {
		background-color: var(--primary-color);
		height: 1px;
	}
	
	.border-bottom-gold {
		border-bottom: none;
	}
}

.border-bottom {
	border-bottom: 1px solid var(--primary-color) !important;
}

.menu-item-21 a {
	background-color: var(--primary-color);
	padding: 10px 15px;
	color: var(--text-color-white) !important;
	&::after {
		display: none;
	}
}

/* FOOTER */

#footer {
	color: var(--text-color-white);
}

#footer img {
	width: clamp(9.375rem, 10.417vw, 12.500rem);
}

#footer-logo-bouncing {
	position: fixed;
	height: auto;
	display: none;
	z-index: 9999;
}

#footer .footer-menu {
	display: flex;
	flex-flow: column;
	padding: 0;
	margin: 0;
	gap: clamp(15px, 1.042vw, 20px);
	list-style: none;
}

#footer a {
	color: var(--text-color-white);
	position: relative
}

#footer a:hover {
	text-decoration: none;
}

#footer .footer-menu .menu-item a {
	font-size: clamp(22px, 1.5625vw, 30px);
	color: var(--text-color-white);
	position: relative;
}

#footer .footer-menu .menu-item a:hover {
	text-decoration: none;
}

#footer .footer-menu .menu-item a::before, #footer a::before {
	content: '';
	position: absolute;
	bottom: 0;
	right: 0;
	transform: translateY(3px);
	width: 0;
	height: 1px;
	background-color: var(--text-color-white);
	transition: .5s var(--easing-in);
}

#footer .footer-menu .menu-item a:hover::before, #footer a:hover::before {
	left: 0;
	width: 100%;
	transition: .5s var(--easing-out);
}

#footer .footer-logos {
	width: auto;
	max-width: clamp(3.750rem, 6.250vw, 7.500rem);
	height: auto;
	max-height: clamp(2.500rem, 4.167vw, 5.000rem);
}

/* PAGINE */

/* Pagina Home */

#hero-section {
	position: relative;
	width: 100%;
	height: 100vh;
	background-color: var(--primary-color);
	color: var(--text-color-white);
}

#hero-section .place-holder {
	height: 100%;
	background-color: #BDBDBD;
}

#hero-section .left-side, #hero-section .right-side {
	height: 100%;
	display: flex;
}

#hero-section .left-side {
	padding-left: clamp(30px, 3.646vw, 70px);
	width: 50%;
}

#hero-section .right-side {
	background-color: grey;
	width: 50%;
}

@media (max-width: 991px) {
	
	#hero-section .left-side {
		width: 100%;
		padding-bottom: clamp(30px, 3.646vw, 70px);
	}
	
	#hero-section .right-side {
		width: 100%;
	}
	
}

.slick-dotted.slick-slider {
	margin-bottom: 0;
}

#hero-section .slick-track {
	height: 100%;
}

#hero-section .slick-dots {
	bottom: clamp(30px, 3.646vw, 70px);
	right: clamp(30px, 3.646vw, 70px);
	display: flex;
	justify-content: end;
}

.slick-dots li button:before {
	color: var(--text-color-white);
}

.slick-dots li.slick-active button:before {
	color: var(--text-color-white);
}

.project-hero {
	height: 100%;
	background-size: cover;
	position: relative;
	background-repeat: no-repeat;
	background-position: center center;
	display: flex !important;
	align-items: end;
	padding: clamp(30px, 3.646vw, 70px);
}

.project-hero::after {
	content: '';
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgb(0,0,0);
	background: linear-gradient(0deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 50%, rgba(0,0,0,1) 100%);
	opacity: .4;
}

.project-data {
	z-index: 1;
}

@media (min-width: 1920px) {
	
	#hero-section .left-side {
		padding-left: calc((100vw - 1780px) / 2);
	}
	#hero-section .right-side {
		/* padding-right: calc((100vw - 1780px) / 2); */
		background-color: grey;
	}
}

#container-video {
	position: relative;
	width: 100%;
	height: 200vh; /* Doppia altezza viewport per avere spazio di scroll */
	background-color: var(--secondary-color);
	box-sizing: border-box;
}

#container-video #video {
	--clip-size: 200px;
	position: sticky;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	object-fit: cover;
	clip-path: inset(calc((100vh - var(--clip-size)) / 2) calc((100vw - var(--clip-size)) / 2));
}

@media (max-width: 991.98px) {
	#container-video #video {
		clip-path: inset(calc((var(--small-clip-size) - var(--clip-size)) / 2) calc((100vw - var(--clip-size)) / 2));
	}
}

#container-video p {
	position: absolute;
	left: 50%;
	top: clamp(50px, 5.208vw, 100px);
	transform: translateX(-50%);
	opacity: var(--opacity);
	@media (max-width: 991.98px) {
		left: 0;
		transform: translateX(0);
		width: 100%;
		text-align: center;
	}
}

.translate-one, .translate-two {
	transform: translateX(var(--translate));
}

.video-container {
	position: relative;
}

.play-icon {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: clamp(50px, 5.208vw, 90px);
	height: clamp(50px, 5.208vw, 90px);
}

/* Pagina About */

/* PAGINA ABOUT */
 
#about-hero {
	position: relative;
	width: 100%;
	height: 100vh;
	background-size: cover;
	background-repeat: no-repeat;
}

#about-hero * {
	z-index: 1;
}

#about-hero::after {
	content: '';
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgb(0,0,0);
	background: linear-gradient(0deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 50%, rgba(0,0,0,1) 100%);
	opacity: .4;
}

#about-hero img {
	position: absolute;
	bottom: 0;
	right: 0;
	max-width: clamp(300px, 39.063vw, 750px);
}

@media (max-width: 575.99px) {
	#about-hero img {
		display: none;
	}
}


.subtitle {
	font-family: var(--font-regular);
	font-size: ;
	
}

#about-video {
	width: 100%;
	height: 100vh;
	position: relative;
}

#about-video video {
	object-fit: cover;
	width: 100%;
	height: 100vh;
	position: absolute;
	top: 0;
	left: 0;
	z-index: 0;
}

.wrapper-video-btn {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: fit-content;
}

.white-gradient {
	background: rgb(253,252,250);
	background: -moz-linear-gradient(180deg, rgba(253,252,250,1) 0%, rgba(240,239,232,1) 100%);
	background: -webkit-linear-gradient(180deg, rgba(253,252,250,1) 0%, rgba(240,239,232,1) 100%);
	background: linear-gradient(180deg, rgba(253,252,250,1) 0%, rgba(240,239,232,1) 100%);
}

.companies {
	gap: clamp(2.778rem, 6.5vw, 6.944rem);
}

/* Pagina Construction */

.thumb-img, .slideshow {
	width: 100%;
	height: 90vh;
	overflow: hidden;
}

.thumb-img img {
	width: 100%;
	height: 110vh;
	transform: translateY(var(--parallax, -10%));
	object-fit: cover;
}

.slideshow .slick-list, .slideshow .slick-track {
	height: 100%;
}

.slideshow img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.process-item {
	width: 100%;
	padding: clamp(25px, 2.604vw, 50px);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	background-color: var(--text-color-white);
}

.process-item .process-title {
	width: 100%;
	display: flex;
	flex-direction: row;
}

.shadow-item {
	box-shadow: 0px 0px 50px var(--shadow-item, 5px) rgba(0,0,0,0.4)
}

@media (max-width: 576px) {
	.thumb-img, .slideshow {
		height: 60vh;
	}
	.thumb-img img {
		height: 70vh;
	}
}

/* Pagina Furniture */

.slideshow.furniture {
	height: 100vh;
}

.text-area {
	position: absolute;
	bottom: 0;
	left: 0;
	padding: clamp(25px, 2.604vw, 50px);
}

/* Single Projet */

.overview-data {
	background-color: var(--text-color-white);
	padding: clamp(15px, 1.563vw, 30px);
	gap: clamp(15px, 1.563vw, 30px);
	display: flex;
	flex-direction: column;
	align-items: space-between;
}

.overview-data.brown-bg {
	background-color: var(--secondary-color);
}

.overview-data-img {
	width: 25px;
	height: auto;
	align-self: flex-end;
}

.overview-data-text {
	display: flex;
	flex-direction: column;
	align-self: flex-start;
}

.overview-container svg {
	transform: translateX(-3rem);
	height: 100%;
	width: auto;
}

.page-menu {
	position: fixed;
	bottom: 30px;
	left: 50%;
	transform: translateX(-50%);
}

.page-menu ul {
	display: flex;
	flex-direction: row;
	list-style: none;
	gap: 5px;
	background-color: var(--text-color-white);
	padding: 5px;
	border-radius: 100px;
	box-shadow: 0px 0px 35px 5px rgba(0,0,0,0.1);
}

.page-menu ul li a {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 10px 15px;
	background-color: transparent;
	border: 1px solid transparent;
	border-radius: 100px;
	transition: .5s var(--easing-out);
}

.page-menu ul li a:hover {
	border: 1px solid var(--subtitle-color);
	text-decoration: none;
}

.page-menu .contact, .page-menu .contact:hover {
	background-color: var(--primary-color);
	color: var(--text-color-white);
	border: none;
	z-index: 998;
}

@media (max-width: 575.98px) {
	.page-menu {
		display: none;
	}
}

.single-item {
	height: clamp(200px, 26.042vw, 500px);
	width: auto;
	margin-right: 30px;
}

.single-item img {
	height: clamp(200px, 26.042vw, 500px);
	width: auto;
}

/* Pagina Contact */

.contact-container {
	min-height: 100vh;
}

.container-contact {
	min-height: 100vh;
}

.contact-img-wrapper {
	width: 100%;
	background-color: var(--text-color-white);
	position: relative;
	aspect-ratio: 1 / 1;
	display: flex;
	justify-content: center;
	align-items: center;
}

.contact-img {
	position: relative;
	z-index: 2;
}

.contact-maps {
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	background-color: var(--blue-color);
}

.gallery-title-buttons {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
}

.gallery-buttons {
	display: flex;
	flex-direction: row;
	padding-right: clamp(30px, 3.646vw, 70px);
	gap: clamp(10px, 1.042vw, 20px); 
}

.gallery-buttons img {
	max-width: clamp(30px, 2.083vw, 40px);
}

.gallery-button {
	border-radius: 50%;
	background-color: var(--primary-color);
}

/* COMPONENTS */

.project-item {
	position: relative;
	width: 100%;
	aspect-ratio: 9 / 6;
}

.project-item img {
	object-fit: cover;
	width: 100%;
	height: 100%;
}

.project-item .project-data {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: clamp(15px, 1.5625vw, 30px);
}

.project-item .project-data .project-term {
	padding: 5px 10px;
	border-radius: 50px;
	align-self: end;
}

.project-item .project-data .project-term.realises {
	background-color: var(--primary-color);
	color: var(--text-color-white);
}

.project-item .project-data .project-term.en-cours {
	background-color: var(--primary-color);
	color: var(--text-color-white);
}

.project-item .project-data .project-title-link {
	width: 100%;
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	color: var(--text-color-white);
}

@media (max-width: 575.98px) {
	.project-item .project-data .project-title-link {
		flex-direction: column;
		align-items: start;
		gap: clamp(15px, 1.5625vw, 30px);
	}
}

/* FORM */

#form {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	width: 100%;
	gap: 30px;
}

#form input[type="text"], #form input[type="email"], #form select {
	min-width: calc(50% - 15px);
	padding: 10px 0;
	border-radius: 0;
	background-color: transparent;
	border: none;
	border-bottom: 1px solid var(--primary-color);
}

#form input::file-selector-button {
	background-color: var(--primary-color);
	border: 1px solid var(--primary-color);
	border-radius: 2px;
	padding: 7px 10px;
	color: var(--text-color-white);
	cursor: pointer;
	transition: .3s;
}

#form input::file-selector-button:hover {
	background-color: var(--text-color-white);
	color: var(--text-color);
}

#form textarea {
	background-color: rgba(255, 255, 255, .5);
	border: none;
	padding: 10px;
	border-bottom: 1px solid var(--primary-color);
}

@supports (-webkit-appearance: none) or (-moz-appearance: none) {
	.checkbox-wrapper {
		display: flex;
		flex-direction: row;
		gap: 10px;
	}
	
	.checkbox-wrapper input[type=checkbox] {
		--active: var(--primary-color);
		--active-inner: #fff;
		--focus: rgba(106, 80, 42, 0.3);
		--border: #e1d2bb;
		--border-hover: var(--primary-color);
		--background: #fff;
		--disabled: #F6F8FF;
		--disabled-inner: #E1E6F9;
		-webkit-appearance: none;
		-moz-appearance: none;
		height: 21px;
		outline: none;
		display: inline-block;
		vertical-align: top;
		position: relative;
		margin: 0;
		cursor: pointer;
		aspect-ratio: 1;
		border: 1px solid var(--bc, var(--border));
		background: var(--b, var(--background));
		transition: background 0.3s, border-color 0.3s, box-shadow 0.2s;
	}

	.checkbox-wrapper input[type=checkbox]:after {
		content: "";
		display: block;
		left: 0;
		top: 0;
		position: absolute;
		transition: transform var(--d-t, 0.3s) var(--d-t-e, ease), opacity var(--d-o, 0.2s);
	}

	.checkbox-wrapper input[type=checkbox]:checked {
		--b: var(--active);
		--bc: var(--active);
		--d-o: .3s;
		--d-t: .6s;
		--d-t-e: cubic-bezier(.2, .85, .32, 1.2);
	}

	.checkbox-wrapper input[type=checkbox]:disabled {
		--b: var(--disabled);
		cursor: not-allowed;
		opacity: 0.9;
	}

	.checkbox-wrapper input[type=checkbox]:disabled:checked {
		--b: var(--disabled-inner);
		--bc: var(--border);
	}

	.checkbox-wrapper input[type=checkbox]:disabled+label {
		cursor: not-allowed;
	}

	.checkbox-wrapper input[type=checkbox]:hover:not(:checked):not(:disabled) {
		--bc: var(--border-hover);
	}

	.checkbox-wrapper input[type=checkbox]:focus {
		box-shadow: 0 0 0 var(--focus);
	}

	.checkbox-wrapper input[type=checkbox]:not(.switch) {
		width: 21px;
	}

	.checkbox-wrapper input[type=checkbox]:not(.switch):after {
		opacity: var(--o, 0);
	}

	.checkbox-wrapper input[type=checkbox]:not(.switch):checked {
		--o: 1;
	}

	.checkbox-wrapper input[type=checkbox]+label {
		display: inline-block;
		vertical-align: middle;
		cursor: pointer;
		margin-left: 4px;
	}

	.checkbox-wrapper input[type=checkbox]:not(.switch) {
		border-radius: 7px;
	}

	.checkbox-wrapper input[type=checkbox]:not(.switch):after {
		width: 5px;
		height: 9px;
		border: 2px solid var(--active-inner);
		border-top: 0;
		border-left: 0;
		left: 7px;
		top: 4px;
		transform: rotate(var(--r, 20deg));
	}

	.checkbox-wrapper input[type=checkbox]:not(.switch):checked {
		--r: 43deg;
	}
}

.checkbox-wrapper * {
	box-sizing: inherit;
}

.checkbox-wrapper *:before,
.checkbox-wrapper *:after {
	box-sizing: inherit;
}

/* Find Your Home */

.property-card {
	padding: 15px;
	margin-bottom: 30px;
	border-radius: 3px;
	background-color: var(--text-color-white);
	.single-projet & {
		background-color: var(--background-color);
	}
	&.lot {
		background-color: var(--text-color-white);
	}
	&.garage {
		padding: 50px;
	}
}

.article-detail {
	display: flex;
	flex-flow: row;
	gap: 5px;
	white-space: nowrap;
	align-items: center;
	font-size: 15px;
	& * {
		white-space: nowrap;
	}
	& img {
		width: 24px;
		height: 24px;
	}
}

.apartment-detail {
	display: flex;
	flex-flow: row;
	gap: 5px;
	white-space: nowrap;
	align-items: center;
	font-size: 1rem;
	& * {
		white-space: nowrap;
	}
	& img {
		width: 32px;
		height: 32px;
	}
}

/* WPML */

.wpml-ls-legacy-list-horizontal.wpml-ls-statics-footer, .otgs-development-site-front-end {
	display: none;
}