/* Reset base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", sans-serif;
  background-color: #e8f5e9;
  color: #2d4739;
  line-height: 1.6;
  overflow-x: hidden;
}

/*header area*/
.top-header{
	background: #fff !important;
	position: fixed;
	width: 100%;
	z-index: 99999;
}
.header-backup{
	width: 20px;
	height: 119px;
	background: transparent;
	margin:auto;
}
.top-header img.logo{
	margin-bottom: 9px;
	margin-top: -2px;
	transition:all .5s ease 0s;
  -webkit-transition:all .5s ease 0s;
  -moz-transition:all .5s ease 0s;
  -o-transition:all .5s ease 0s;
  -ms-transition:all .5s ease 0s;
  max-height: 150px
}
.navbar-default {
  background-color: transparent;
  border-color: transparent;
  margin-bottom: 0;
  margin-top: 4px;
  transition:all .5s ease 0s;
  -webkit-transition:all .5s ease 0s;
  -moz-transition:all .5s ease 0s;
  -o-transition:all .5s ease 0s;
  -ms-transition:all .5s ease 0s;
}
.nav-bar{
	margin-top: 27px;
}
.navbar-toggle span{
	color: #fff;
}
ul.nav{
	margin: 0;
	padding: 0;
}
.navbar-default .navbar-nav>li>a {
 	font-size: 20px;
	color: #000;
	text-transform: uppercase;
	transition: all .7s ease 0s;
	-webkit-transition: all .7s ease 0s;
	-moz-transition: all .7s ease 0s;
	-o-transition: all .7s ease 0s;
	-ms-transition: all .7s ease 0s;
	padding: 14px 12px;
	font-weight: bold;
  font-family: 'BenchNine', sans-serif;
}
.navbar-default .navbar-nav>li>a:hover{
	color: #999;
}
.navbar-default .navbar-toggle .icon-bar {
  background-color: #000;
}
li a.active{
	color: rgb(255,0,0);
}
.navbar-default .navbar-toggle {
  border-color: #fff;
  margin-top: 4px;
}


.assistenza{
	position: relative;
	top: -40px;

}

.top-header {
	z-index: 10;
  }
  
  .top-header img.logo {
	z-index: 11;
	cursor: pointer;
	position: relative;
  }

/* Main layout */
.main-area {
  position: relative;
  min-height: 800px;
  padding: 20rem 0;
}

.text-title
{
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 40px;
}

/* Immagine centrale */
.image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-image {
  width: 600px;
  max-width: 90%;
  border-radius: 20px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
  z-index: 1;
}

/* Box testuali laterali */
.text-box {
  position: absolute;
  width: 260px;
  background: #f4fff7;
  padding: 1rem 1.2rem;
  border-left: 5px solid #3bb271;
  border-radius: 10px;
  font-size: 1.3rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  color: #2d4739;
  z-index: 2;
}

/* Posizionamento assoluto solo per desktop */
.box1 { top: 300px; left: 30px; }
.box2 { top: 300px; right: 40px; }
.box3 { top: 510px; left: 80px; }
.box4 { top: 500px; right: 80px; }
.box5 { top: 750px; left: 30px; }
.box6 { top: 750px; right: 30px; }

/* Bottone torna indietro */
.back-button {
  position: absolute;
  top: 20px;
  left: 20px;
  background-color: #3bb271;
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  z-index: 3;
}

.back-button:hover {
  background-color: #2e8c59;
}

/* Footer */
footer {
  text-align: center;
  padding: 1.5rem;
  background-color: #d3ecdc;
  color: #37584a;
  font-size: 0.9rem;
}

/* ---------------------------- */
/* Responsive layout (≤1100px) */
/* ---------------------------- */
@media (max-width: 1100px) {
  .text-box {
    position: static !important;
    width: 90%;
    margin: 1.2rem auto;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  }

  .main-area {
    padding: 10rem 1rem;
  }

  .image-container {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 479px) {
  .main-area {
    padding: 15rem 1rem;
  }

	.cd-gallery .grid {
		grid-template-columns: repeat(2, 1fr);
	  }

		.assistenza{
	position: relative;
	top: -10px;
	left: -5px;

}
.modalTest{
	margin-top: 50% !important; 
	width: 90%;
}


.button {
	display: inline-flex;
	height: 50px;
	width: 100px !important;
  }


	.top-header img.logo {
	  margin: 20px 10px;
	  max-height: 150px
	}
	.header-logo{
		margin-top: 20px !important;
	}
	.navbar-default .navbar-toggle {
		 border-color: #fff;
		 margin-top: -7px;
		 right: 10%;
	}
	.navbar-default .navbar-nav>li>a {
	  font-size: 16px;
	  text-align: left;
	}
	.header-backup{
		  height: 80px;
	}
	.footer a i.fa {
	  font-size: 18px;
	  padding: 25px 7px;
	}
	.footer p {
  		font-size: 10px;
}

}