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

/*  
	
	FONTS UTILIZZATI : Instrument Sans, JetBrains Mono
	
	COLORI UTILIZZATI : nero #1A211C | blu scuro #0A2A38 | verde mid #7EC41B | verde #98D431 | bianco #F4F3F4 | grigio chiaro #ECECEC | blu #0D3D51
	
*/

/* GENERAL */

:root {
	--instrument-sans: "Instrument Sans", sans-serif;
	--jetbrains-mono: "JetBrains Mono", monospace;
	--black: #1A211C;
	--dark-blu: #0A2A38;
	--blu: #0D3D51;
	--dark-green: #7EC41B;
	--green: #98D431;
	--grey: #ECECEC;
	--mid-grey: #c7c7c7;
	--white: #F4F3F4;
	--super-white: #FFFFFF;
	--90-2: clamp(3.889rem, 4.688vw, 5.000rem);
	--90: clamp(3rem, 4.6875vw, 5rem);
	--75: clamp(2rem, 3.90625vw, 4.167rem);
	--60: clamp(1.667rem, 3.125vw, 3.333rem);
	--45: clamp(1.444rem, 2.34375vw, 2.5rem);
	--32: clamp(1.333rem, 1.66vw, 1.778rem);
	--20: clamp(1rem, 1.0416vw, 1.111rem);
	--18: clamp(0.833rem, 0.9375vw, 1rem);
	--16: clamp(0.778rem, 0.833vw, 0.889rem);
}

html,body {
	margin:0;
	padding:0;
	font-family: var(--instrument-sans);
	font-size: 18px !important;
	font-weight: 400;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	-moz-font-smoothing: antialiased;
	-o-font-smoothing: antialiased;
	background-color: var(--grey);
	color: var(--black);
	overflow-x: hidden;
}

@media (min-width: 1600px){
	html,body {
		font-size: 18px !important;
	}
}

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: 700;
}

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

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


@media (min-width: 1200px){
	.container-fluid {
		padding-left: 50px;
		padding-right: 50px;
	}
}

@media (min-width: 1600px){
	.container-fluid {
		padding-left: 100px;
		padding-right: 100px;
	}
}

@media (max-width: 991.99px) {
	.container-fluid {
		padding-left: 30px;
		padding-right: 30px;
	}
}


.no-padding {
	padding-left: 0 !important;
	padding-right: 0 !important;
}

.no-padding-right {
	padding-right: 0 !important;
}

.no-padding-left {
	padding-left: 0 !important;
}

.z-index-2 {
z-index: 2;
	
}

/* 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;
}

/* COLORS */

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

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

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

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

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

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

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

/* BUTTONS */

.primary-btn {
	background-color: var(--green);
	color: var(--black);
	padding: 12px 15px;
	border-radius: 2px;
	transition: all 0.3s ease-in;
	
}

.primary-btn:hover {
	background-color: var(--dark-green);
}

/* ELEMENTI GRAFICI */

.left-bottom-line-hero {
	position: absolute;
	left: 0;
	bottom: 70px;
	margin: 0;
	padding: 0;
	width: 100%;
	height: 2px;
	background-color: var(--green);
	z-index: 2;
}

.left-bottom-line {
	position: absolute;
	left: 0;
	bottom: -30px;
	margin: 0;
	padding: 0;
	width: calc(108.33% + 30px);
	height: 2px;
	background-color: var(--green);
	z-index: 2;
	transform: translateX(calc(-8.33% - 30px));
}

.bg-alberi {
	position: absolute;
	left: 0;
	bottom: 0;
	z-index: 0;
}

.round-border {
	border-radius: 30px;
}

.round-border-right {
	border-radius: 30px 0px 0px 30px;
}

.round-border-left {
	border-radius: 0px 30px 30px 0px;
}

.ramo-left {
	width: 100%;	
}

/* TYPO */

.big{
	font-size: 1.1rem;
}
.small{
	font-size: 0.9rem;
}

h1,.h1,h2,.h2,h3,.h3,h4,.h4,h5,.h5,h6,.h6{

}

h1, .h1 {
	font-family: var(--instrument-sans);
	font-size: var(--90);
	font-weight: 400;
	margin-bottom: 0;
}

h2, .h2 {
	font-family: var(--instrument-sans);
	font-size: var(--75);
	font-weight: 400;
	margin-bottom: 0;
}

h3, .h3 {
	font-family: var(--instrument-sans);
	font-size: var(--60);
	font-weight: 400;
	margin-bottom: 0;
}

h4, .h4 {
	font-family: var(--instrument-sans);
	font-size: var(--32);
	font-weight: 400;
	margin-bottom: 0;
}

h5, .h5 {
	font-family: var(--instrument-sans);
	font-size: var(--45);
	font-weight: 500;
	margin-bottom: 0;
}

h6, .h6 {
	font-family: var(--jetbrains-mono);
	font-size: var(--20);
	font-weight: 400;
	margin-bottom: 0;
}

span, .span {
	font-family: var(--instrument-sans);
	font-size: var(--18);
	font-weight: 400;
	margin-bottom: 0;
	line-height: normal;
}

/* LOADER */

#loading {
	position:fixed;
	left:0;
	top:0;
	width:100%;
	height:100%;
	z-index:998;
	background-color:#fff; 
}

.loader {
	color:#000; 
	font-size:50px;
	text-indent:-9999em;
	overflow:hidden;
	width:1em;
	height:1em;
	border-radius:50%;
	margin:50px auto;
	position:relative;
	top:40%;
	-webkit-transform:translateZ(0);
	-ms-transform:translateZ(0);
	transform:translateZ(0);
	-webkit-animation:loadnk 1.7s infinite ease,round 1.7s infinite ease;
	animation:loadnk 1.7s infinite ease,round 1.7s infinite ease;
}

@-webkit-keyframes loadnk{0%,100%,5%,95%{box-shadow:0 -.83em 0 -.4em,0 -.83em 0 -.42em,0 -.83em 0 -.44em,0 -.83em 0 -.46em,0 -.83em 0 -.477em}10%,59%{box-shadow:0 -.83em 0 -.4em,-.087em -.825em 0 -.42em,-.173em -.812em 0 -.44em,-.256em -.789em 0 -.46em,-.297em -.775em 0 -.477em}20%{box-shadow:0 -.83em 0 -.4em,-.338em -.758em 0 -.42em,-.555em -.617em 0 -.44em,-.671em -.488em 0 -.46em,-.749em -.34em 0 -.477em}38%{box-shadow:0 -.83em 0 -.4em,-.377em -.74em 0 -.42em,-.645em -.522em 0 -.44em,-.775em -.297em 0 -.46em,-.82em -.09em 0 -.477em}}@keyframes loadnk{0%,100%,5%,95%{box-shadow:0 -.83em 0 -.4em,0 -.83em 0 -.42em,0 -.83em 0 -.44em,0 -.83em 0 -.46em,0 -.83em 0 -.477em}10%,59%{box-shadow:0 -.83em 0 -.4em,-.087em -.825em 0 -.42em,-.173em -.812em 0 -.44em,-.256em -.789em 0 -.46em,-.297em -.775em 0 -.477em}20%{box-shadow:0 -.83em 0 -.4em,-.338em -.758em 0 -.42em,-.555em -.617em 0 -.44em,-.671em -.488em 0 -.46em,-.749em -.34em 0 -.477em}38%{box-shadow:0 -.83em 0 -.4em,-.377em -.74em 0 -.42em,-.645em -.522em 0 -.44em,-.775em -.297em 0 -.46em,-.82em -.09em 0 -.477em}}@-webkit-keyframes round{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes round{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}

/* HEADER */

#header {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 100;
	background-color: transparent;
	transition: background-color 0.3s ease, padding 0.3s ease;
}

#header.scrolled {
	background-color: white;
	padding: 15px 100px;
}

.navbar {
	padding: 0;
}

.nav-link {
	padding: 10px 25px !important;
}

.nav-link span {
	font-family: var(--instrument-sans); 
	font-weight: 400;
	font-size: var(--20);
	text-transform: none;
	color: var(--white);
	transition: all .3s ease; 
}

.nav-link:hover span {
	color: var(--green) !important;
}

.navbar-brand img {
	transition: width 0.3s ease;
}

#header.scrolled .nav-link span {
	color: var(--dark-blu);
	transition: all .3s ease; 
}

#header.scrolled .nav-link:hover span {
	color: var(--dark-green);
}

#full-screen-menu {
	display: none;
}

@media (max-width: 1299.99px) {
	
	#menu-top-menu {
		display: none;
	}
	
	#full-screen-menu {
		display: block;
		transform: translateX(100%);
		transition: .65s cubic-bezier(0.86,0,0.07,1);
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background-color: var(--light); /* Aggiunto colore di sfondo */
		z-index: 11;
		-webkit-box-shadow: 0px 0px 0px 0px rgba(0,0,0,0.15);
		-moz-box-shadow: 0px 0px 0px 0px rgba(0,0,0,0.15);
		box-shadow: 0px 0px 0px 0px rgba(0,0,0,0.15);
	}
	
	#full-screen-menu.active {
		transform: translateX(0);
		-webkit-box-shadow: 0px 0px 60px 0px rgba(0,0,0,0.15);
		-moz-box-shadow: 0px 0px 60px 0px rgba(0,0,0,0.15);
		box-shadow: 0px 0px 60px 0px rgba(0,0,0,0.15);
	}
	
	#full-screen-menu ul {
		display: flex;
		flex-direction: column;
		list-style: none;
		padding: 0;
		margin: 0;
		text-align: center;
		position: absolute;
		top: 50%;
		left: 50%;
		width: 50%;
		transform: translate(-50%, -50%);
		align-items: center;
	}
	
	#full-screen-menu li {
		padding: 0px !important;
		margin: 10px 0px;
		font-size: 1.5rem;
		width: fit-content !important;
		position: relative;
	}
	
	.menu-toggle span {
	  display: block;
	  width: 25px;
	  height: 3px;
	  background-color: var(--black);
	  margin: 5px auto;
	  -webkit-transition: all 0.3s ease-in-out;
	  -o-transition: all 0.3s ease-in-out;
	  transition: all 0.3s ease-in-out;
	}
	
	.menu-toggle {
	  padding: 7px;
	  position: absolute;
	  display: block;
	  top: 50%;
	  transform: translate(0, -50%);
	  right: 0px;
	  z-index: 12;
	}
	
	#mobile-menu.is-active .bar:nth-child(2){
	  opacity: 0;
	  background-color: var(--black) !important;
	}
	
	#mobile-menu.is-active .bar:nth-child(1){
	  -webkit-transform: translateY(7px) rotate(45deg);
	  -ms-transform: translateY(7px) rotate(45deg);
	  -o-transform: translateY(7px) rotate(45deg);
	  transform: translateY(7px) rotate(45deg);
	  background-color: var(--black) !important;
	}
	
	#mobile-menu.is-active .bar:nth-child(3){
	  -webkit-transform: translateY(-8px) rotate(-45deg);
	  -ms-transform: translateY(-8px) rotate(-45deg);
	  -o-transform: translateY(-8px) rotate(-45deg);
	  transform: translateY(-9px) rotate(-45deg);
	  background-color: var(--black) !important;
	}
	
	.nav-link span {
		color: var(--black);
		font-weight: 400;
		font-family: var(--font-family);
		font-size: var(--32);
	}
	
	.menu-toggle .bar {
		background-color: var(--light); /* Colore iniziale bianco */
	}
	
	.menu-toggle.scrolled .bar {
		background-color: var(--black); /* Colore dopo lo scroll */
	}
	
	.navbar-brand img {
		width: 200px;
		height: auto;
	}
	
	#header.scrolled .menu-toggle .bar {
		background-color: var(--black);
	}
	
}

#full-screen-menu nav-link span {
	color: var(--black) !important;
}


/* FOOTER */

.footer-logo {
	width: auto;
	height: 50px;
}

#indicazioni {
	position: absolute;
	left: 30px;
	bottom: 30px;
	z-index: 2;
}


/* PAGINE */

/* HOMEPAGE */

/* SEZIONE HERO */


#container-hero {
	width: 100%;
	height: 100dvh;
}

.overlay {
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	background-color: var(--black);
	opacity: .5;
	z-index: 1;
}

.hero-img-wrapper {
	width: 100%;
	height: 100dvh;
	position: relative;
	z-index: 0;
	background-size: cover;
	background-position: center center;
}

#hero-wrapper {
	position: absolute;
	bottom: 100px;
	left: 0;
	z-index: 2;
}


/* SEZIONE LOCATION */ 

.wrapper-section-name {
	position: absolute;
	top: 50px;
	right: 0;
}

.right-small-line {
	width: 100%;
	height: 2px;
	background-color: var(--green);
}

.wrapper-rete {
	background-color: var(--super-white);
	border-radius: 30px;
	padding: 30px;
	width: 100%;
	gap: 25px;
}

/* SEZIONE MAGAZZINO */

.left-bottom-line-small {
	position: absolute;
	left: 0;
	bottom: -30px;
	margin: 0;
	padding: 0;
	width: calc(108.33% + 70px);
	height: 2px;
	background-color: var(--green);
	z-index: 2;
	transform: translateX(calc(-8.33% - 70px));
} 

.icona-tooltip {
	width: 25px;
	height: 25px;
	border-radius: 50px;
	background-color:var(--green);
	border: 1px solid var(--white);
	position: absolute;
	top: 0%;
	left: 0%;
	z-index: 2;
	cursor: pointer;
}

#tooltip-1 {
	position: absolute;
	top: 53%;
	left: 5.5%;
	z-index: 2;
}

#tooltip-2 {
	position: absolute;
	top: 58%;
	left: 46%;
	z-index: 2;
}

#tooltip-3 {
	position: absolute;
	top: 62%;
	left: 8%;
	z-index: 2;
}

#tooltip-4 {
	position: absolute;
	top: 70%;
	left: 68%;
	z-index: 2;
}

#tooltip-5 {
	position: absolute;
	top: 70%;
	left: 31%;
	z-index: 2;
}

#tooltip-6 {
	width: 25px;
	height: 25px;
	border-radius: 50px;
	position: absolute;
	top: 70%;
	left: 49.5%;
	z-index: 2;
}

#tooltip-7 {
	width: 25px;
	height: 25px;
	border-radius: 50px;
	position: absolute;
	top: 65%;
	left: 15%;
	z-index: 2;
}

#tooltip-8 {
	width: 25px;
	height: 25px;
	border-radius: 50px;
	position: absolute;
	top: 80%;
	left: 14.5%;
	z-index: 2;
}

#tooltip-9 {
	position: absolute;
	top: 58%;
	left: 53%;
	z-index: 2;
}

.desc-tooltip {
	transform: translate(-50%, 0px);
	visibility: hidden;
	background-color: var(--white);
	padding: 20px 20px;
	position: absolute;
	z-index: 10;
	bottom: 40px;
	left: 50%;
	opacity: 0;
	transition: 0.3s;
	width: 190px;
	border-radius: 10px;
	
}

.desc-tooltip::after {
	content: "";
	position: absolute;
	top: 100%;
	left: 50%;
	width: 1px;
	height: 15px;
	background-color: var(--white);
	opacity: 0;
	transition: opacity 0.15s;
}

.icona-tooltip:hover .desc-tooltip, .desc-tooltip::after {
	visibility: visible;
	opacity: 1;
	z-index: 10;
}

@media (max-width: 767.98px) {
	.icona-tooltip {
		transform-origin: center center;
		transform: scale(.7);
	}
}

.vertical-small-line {
	height: 100px;
	width: 2px;
	background-color: var(--green);
	position: absolute;
	left: calc((48px / 2) + 15px);
	bottom: -100px;
}

/* SEZIONE UFFICI */

.icon-office {
	width: 50px;
	height: auto;
}

.office-infos {
	position: relative;
	left: -100px;
	margin-top: 30px;
	padding-left: 115px;
	width: calc(100% + 100px);
}

/* SEZIONE SOSTENIBILITÀ */

.left-bottom-line-sost {
	position: absolute;
	left: 0;
	bottom: -30px;
	margin: 0;
	padding: 0;
	width: calc(58.33% + 30px);
	height: 2px;
	background-color: var(--green);
	z-index: 2;
	transform: translateX(calc(-8.33% - 45px));
}

.icon-sost {
	width: 70px;
	height: auto;
}

.ramo-left-sost {
	max-width: 15%;
	position: absolute;
	right: 0;
	top: 10%;
	padding: 0px;
	transform: translateX(100%);	
}

.box-esg {
	width: 32%;
	height: auto;
}

.table .thead th {
	border: 0px solid;
}

.table td {
	border-left: 1px solid var(--green) !important;
}

@media (max-width: 991.99px) {
	
	.vertical-small-line {
		height: 50px;
		width: 2px;
		background-color: var(--green);
		position: absolute;
		left: calc((48px / 2) + 15px);
		bottom: -50px;
	}
	
	.office-infos {
		position: relative;
		left: -50px;
		margin-top: 30px;
		padding-left: 0px;
		width: 100%;
	}

}

@media (max-width: 767.99px) {
	.logo-container {
		display: none;
	}
	
	.ramo-container {
		display: none;
	}
	
	.no-padding-right {
		padding-right: 15px !important;
	}
	
	.vertical-small-line {
		display: none;
	}
	
	.office-infos {
		position: relative;
		left: -15px;
		margin-top: 30px;
		padding-left: 0px;
		width: 100%;
	}
	
	.ramo-left-sost {
		display: none;
	}
	
	.container-leed {
		padding-right: 0 !important;
	}
	
	.box-esg {
		width: 100%;
		height: auto;
	}
	
	.table-container {
		overflow-y: scroll;
	}
	
	h6, .h6 {
		font-size: var(--16) !important;
	}
	
	.table td, .table th {
		padding: 15px;
		vertical-align: middle;
		border-top: 1px solid #dee2e6;
	}
	
	.footer-link {
		font-size: var(--16);
	}
	
	#header.scrolled {
		background-color: var(--white);
		padding: 30px 15px;
	}
	
	#full-screen-menu .nav-link span {
		color: var(--black) !important;	
	}
}

/* FORM DI CONTATTO PERSONE */

.wpcf7-form {
	display: flex !important;
	flex-wrap: wrap;
	column-gap: 10px !important;
	row-gap: 0px !important;
	position: relative;
	z-index: 1;
}

.wpcf7-form .half-label {
	flex: 0 0 calc(50% - 20px) !important;
	box-sizing: border-box;
	color: var(--black);
	font-family: var(--instrument-sans);
	font-size: var(--18);
	border: 0px solid var(--mid-grey);
	min-height: 60px;
	height: auto;
	max-height: 100px;
	border-radius: 0px !important;
}

.wpcf7-form .half-label input {
	background-color: var(--white);
	color: var(--black);
	padding: 6px 12px;
	border: 1px solid var(--mid-grey);
	border-radius: 2px !important;
}

.wpcf7-form .total-label {
	flex: 0 0 calc(100% - 20px);
	color: var(--black);
	font-family: var(--instrument-sans);
	font-size: var(--18);
	border-radius: 0px !important;
}

.half-label label,
.total-label label {
  display: block; 
  width: 100% !important;   /* la label si adatta alla colonna */
}

.wpcf7-form-control {
  width: 100%;   /* forza i campi input/select/textarea a riempire la label */
  box-sizing: border-box;
}

.wpcf7 select.wpcf7-form-control {
  background-color: var(--white);
  border: 1px solid var(--mid-grey);
  color: var(--black);
  width: 100%;
  padding: 6px 12px;
  border-radius: 2px !important;
}

.wpcf7 textarea.wpcf7-form-control {
	background-color: var(--white);
	border: 1px solid var(--mid-grey);
	border-radius: 2px !important;
	color: var(--black);
	padding: 6px 12px;
	height: var(--90);
}


.wpcf7 input[type="submit"] {
 font-family: var(--instrument-sans);
   font-size: var(--18);
   font-weight: 400;
   border: 0px solid var(--orange) !important;
   border-radius: 0px !important;
   color: var(--black) !important;
   padding: 12px 16px;
   background-color: var(--green) !important;
   transition: var(--transition);
   text-decoration: none !important;
   width: fit-content;
}

.wpcf7 input[type="submit"]:hover {
  color: var(--black) !important;
  background-color: var(--dark-green) !important;
}

@media (max-width: 991.99px) {
	.full-height {
		min-height: 90vh;
		height: auto;
		max-height: 300vh;
	}
}

@media (max-width: 575.99px) {
	
	.wpcf7-form {
		display: flex !important;
		flex-wrap: wrap;
		gap: 10px !important;
		position: relative;
		z-index: 1;
	}
	
	.wpcf7-form .half-label {
		flex: 0 0 100% !important;
		box-sizing: border-box;
		color: var(--black);
		font-family: var(--instrument-sans);
		font-size: var(--18);
		width: 100%;
	}
	
	.wpcf7-form .total-label {
		flex: 0 0 100%;
		color: var(--black);
		font-family: var(--instrument-sans);
		font-size: var(--18);
		border-radius: 2px !important;
	}
	
	.full-height {
		min-height: 100vh;
		max-height: 300vh;
		height: auto;
	}
	
}


.wpcf7-turnstile.cf-turnstile {
	position: absolute !important;
}


/* CONTACT BTN */

.contact-btn {
	display: block;
	position: fixed;
	bottom: 10px;
	right: 10px;
	width: var(--90-2);
	height: auto;
	transform: translateY(0);
	transition: all 0.3s ease-in;
	z-index: 1000;
}

.contact-btn img {
	width: var(--90-2);
}

.contact-btn:hover {
	transform: translateY(10px);
}

