@charset "utf-8";
/* CSS Document */

/* -------------reset----------------*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td, video {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    font-size: 100%;
    vertical-align: baseline;
    background: transparent;
}

input:focus, button:focus {outline:0;}

img {
      vertical-align: middle;
}

a{
	text-decoration:none;
}

ul li{ 
	list-style:none;
}

html,body{
	font-family: "Open Sans", sans-serif;
	color:#343434 /*color-text*/;
	height:100%;
	width:100%;
      background-color:white;
}

/* ----------testosotto video-- */

h1{
	font-size: 5em;
	text-align:left;
	font-weight: bold;
	color:#A39382/* primary color*/;
}

h2{
	font-size: 4em;
	text-align:left;
	font-weight: bold;
	color:#A39382/* primary color*/;
}

.contenitore {
  max-width: 100%;
  margin: auto;
  padding: 70px 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.contenuto {
  max-width: 770px;
  max-height: auto;
  margin-top: -80px;
  color: #343434;
  font-size: 1em;
  font-weight: normal;
}

.contenitore img {                    /* -----------------foto linea inizio-----------------*/
  max-width: 100%;
  height: auto;
  margin-top: 0px;
}

.contenitore .contenuto b{
	color:#343434 /* primary color*/;
	font-size: 1.5em;
	font-weight: bold;
}

.image-grid {
  position: relative;
  z-index: -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 10px;
  margin-top: 50px;
}

.image-item {
  position: relative;
  padding-bottom: 25px;
  background-color: #transparent; /* Colore di sfondo per il segnaposto dell'immagine */
	align-items: center;
	justify-content: center;
	text-align: center;

}

@media (max-width: 980px) {

h1 {font-size: 4em;}

h2 {font-size: 3.3em;}

.contenuto {margin-top: 0px;}

}

/* -----------------foto linea fine-----------------*/

#madre {
  width: 100%;
  height: auto;
}

#madre img {
  width: 100%;
  height:auto;
  object-fit: scale-down; 
}

@media (max-width: 700px) {

#madre {width:100%; height:80%; margin: 0 auto; }
#madre img {object-fit: none; }

}


/* -----------------video iniziale-----------------*/

.showcase {
	height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	color: #fff;
	padding: 0 20px;
}

.video-container {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	background-color: #fff;
}

.video-container img {
	min-width: 100%;
	min-height: 100%;
      position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	object-fit: cover;
}

.video-container:after {
	content: '';
	z-index: 1;
	height: 100%;
	width: 100%;
	top: 0;
	left: 0;
	background: rgba(0, 0, 0, 0);      /* -----------------(0, 0, 0, 0.5)-----------------*/
	position: absolute;
}

.content {
	z-index: 2;
}


/* -----------------linea del tempo-----------------*/


.container {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #fff;
  flex-direction: column;
  position: relative;
}

.timeline {
  width: 100%;
  background-color: #fff;
}

.timeline .swiper-container {
  height: 600px;
  width: 100%;
  position: relative;
}

.timeline .swiper-wrapper {
  transition: 2s cubic-bezier(0.68, -0.4, 0.27, 1.34) 0.2s;
}

.timeline .swiper-slide {
  position: relative;
  color: #fff;
  overflow: hidden;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}

.timeline .swiper-slide::after {
  content: "";
  position: absolute;
  z-index: 1;
  right: -115%;
  bottom: -10%;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  box-shadow: -230px 0 150px 60vw rgba(0, 0, 0, 0.7);
  border-radius: 100%;
}

.timeline .swiper-slide-content {
  position: absolute;
  text-align: center;
  width: 80%;
  max-width: 310px;
  right: 50%;
  top: 13%;
  transform: translate(50%, 0);
  font-size: 12px;
  z-index: 2;
}

.timeline .swiper-slide .timeline-year {
  display: block;
  font-style: italic;
  font-size: 42px;
  margin-bottom: 50px;
  transform: translate3d(20px, 0, 0);
  color: #A39382;
  font-weight: 300;
  opacity: 0;
  transition: 0.2s ease 0.4s;
}

.timeline .swiper-slide .timeline-title {
  font-weight: 800;
  font-size: 34px;
  margin: 0 0 30px;
  opacity: 0;
  transform: translate3d(20px, 0, 0);
  transition: 0.2s ease 0.5s;
}

.timeline .swiper-slide .timeline-text {
  line-height: 1.5;
  opacity: 0;
  transform: translate3d(20px, 0, 0);
  transition: 0.2s ease 0.6s;
}

.timeline .swiper-slide-active .timeline-year {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: 0.4s ease 1.6s;
}

.timeline .swiper-slide-active .timeline-title {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: 0.4s ease 1.7s;
}

.timeline .swiper-slide-active .timeline-text {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: 0.4s ease 1.8s;
}

.timeline .swiper-pagination {
  right: 15% !important;
  height: 100%;
  display: none;
  flex-direction: column;
  justify-content: center;
  font-style: italic;
  font-weight: 300;
  font-size: 18px;
  z-index: 2;
}

.timeline .swiper-pagination::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 0;
  height: 100%;
  width: 1px;
  background-color: rgba(255, 255, 255, 0.2);
}

.timeline .swiper-pagination-bullet {
  width: auto;
  height: auto;
  text-align: center;
  opacity: 1;
  background: transparent;
  color: #A39382;
  margin: 15px 0 !important;
  position: relative;
}

.timeline .swiper-pagination-bullet::before {
  content: "";
  position: absolute;
  top: 8px;
  left: -32.5px;
  width: 6px;
  height: 6px;
  border-radius: 100%;
  background-color: #A39382;
  transform: scale(0);
  transition: 0.2s;
}

.timeline .swiper-pagination-bullet-active {
  color: #A39382;
}

.timeline .swiper-pagination-bullet-active::before {
  transform: scale(1);
}

.timeline .swiper-button-next,
.timeline .swiper-button-prev {
  background-size: 20px 20px;
  top: 15%;
  width: 20px;
  height: 20px;
  margin-top: 0;
  z-index: 3;
  transition: 0.2s;
}

.timeline .swiper-button-prev {
  left: 8%;
}

.timeline .swiper-button-prev:hover {
  transform: translateX(-3px);
}

.timeline .swiper-button-next {
  right: 8%;
}

.timeline .swiper-button-next:hover {
  transform: translateX(3px);
}

@media screen and (min-width: 980px) {
  .timeline .swiper-slide::after {
    right: -30%;
    bottom: -8%;
    width: 240px;
    height: 50%;
    box-shadow: -230px 0 150px 50vw rgba(0, 0, 0, 0.7);
  }
  .timeline .swiper-slide-content {
    right: 30%;
    top: 50%;
    transform: translateY(-50%);
    width: 310px;
    font-size: 11px;
    text-align: right;
  }
  .timeline .swiper-slide .timeline-year {
    margin-bottom: 0;
    font-size: 32px;
  }
  .timeline .swiper-slide .timeline-title {
    font-size: 46px;
    margin: 0;
  }
  .timeline .swiper-pagination {
    display: flex;
  }
  .timeline .swiper-button-prev {
    top: 15%;
    left: auto;
    right: 15%;
    transform: rotate(90deg) translate(0, 10px);
  }
  .timeline .swiper-button-prev:hover {
    transform: rotate(90deg) translate(-3px, 10px);
  }
  .timeline .swiper-button-next {
    top: auto;
    bottom: 15%;
    right: 15%;
    transform: rotate(90deg) translate(0, 10px);
  }
  .timeline .swiper-button-next:hover {
    transform: rotate(90deg) translate(3px, 10px);
  }
}

@media screen and (min-width: 980px) {
  .timeline .swiper-slide::after {
    right: -20%;
    bottom: -12%;
    width: 240px;
    height: 50%;
    box-shadow: -230px 0 150px 39vw rgba(0, 0, 0, 0.7);
  }
  .timeline .swiper-slide-content {
    right: 25%;
  }
}


/* -----------------Menu nella versione mobile-----------------*/

.rettangolo {
      height:80px;
	background-color:#fff; 
	position:fixed;
	width:100%;
	margin-top:0px;
      margin-left: 0px;
	overflow:auto;
}

.content {
	z-index: 1;
}


nav{
	height:40%;
	background-color:#fff; 
	position:fixed;
	width:40%;
	margin-top:70px;
      margin-left: 10px;
      z-index: 1000;
	visibility:hidden;
	overflow:auto;/* permette lo scroll quando il menu è aperto*/	   
}

nav ul li a {
	padding: 16px 0 16px 32px;
	display:block;
	color:#343434;
	font-size:16px;
	transition: background-color 0.3s ease;
}

nav ul li ul {
	padding-left:0; 
	padding-bottom:0;
}

nav ul li ul li a {
	font-size:16px;
	padding:10px 0 10px 55px;
	border:hidden; 
}

:target:before {                                   /* ----------------- ancoraggio ------------------ */
    content: "";
    display: block;
    height: 90px;
    margin: -50px 0 0;
}


/* ----------------- div bar per l'attivazione del menu ------------------ */

#bar{
	height:100px;
      margin-top: 15px;
	width:100%;
	z-index:2;
	position:fixed;
}

#bar #logo{
	margin-left: 50%;
}

/* ----------------- Hamburger animation ------------------ */

#hamburger {
  display: none;
}

.menuicon {
 	position:fixed;
	height:54px;
	width:54px;
	margin-left:5px;
	z-index:3;
}

.menuicon  span {
    display: block;
    top: 25px;
    width: 40px;
    height:3px;
    left:8px;
    background-color: #A39382;
    position: relative;
    border-radius:20px;
    transition-duration: 0;  
    transition-delay: .1s;
}
    
.menuicon  span::after, .menuicon  span::before {
    display: block;
    content: '';
    position: absolute;
    width: 40px;
    height:3px;
    background-color: #A39382;
    border-radius:20px;
    transition-duration: .1s;
    -webkit-transition-delay: .1s, 0;
    transition-delay: .1s, 0;
}
.menuicon  span::before {
      margin-top: -10px;
}
.menuicon  span::after {
      margin-top: 10px;
}

#hamburger:checked ~ .menuicon span{
    background-color: rgba(0,0,0,0);
}
    
#hamburger:checked ~ .menuicon span::before {
      margin-top: 0px;
      -webkit-transition-delay: 0, .3s;
      -moz-transition-delay: 0, .3s;
      -ms-transition-delay: 0,.3s;
      -o-transition-delay: 0, .3s;
      transition-delay: 0, .3s;
}
	
#hamburger:checked ~ .menuicon span::after {
      margin-top: 0px;
      -webkit-transition-delay: 0, .3s;
      -moz-transition-delay: 0, .3s;
      -ms-transition-delay: 0,.3s;
      -o-transition-delay: 0, .3s;
      transition-delay: 0, .3s;
}

#hamburger:checked ~ .menuicon span::before {
      -webkit-transform: rotate(45deg);
      -moz-transform: rotate(45deg);
      -ms-transform: rotate(45deg);
      -o-transform: rotate(45deg);
      transform: rotate(45deg);
}

#hamburger:checked ~ .menuicon span::after {
      -webkit-transform: rotate(-45deg);
      -moz-transform: rotate(-45deg);
      -ms-transform: rotate(-45deg);
      -o-transform: rotate(-45deg);
      transform: rotate(-45deg);
}

/* ----------------- menu animation faccio apparire il menu ------------------ */

#hamburger:checked ~ .menu-visibility {
	visibility:visible;
}

/* -----------------media per menu orizzontale ------------------ */

@media screen and (min-width: 980px){

.rettangolo {
height:120px;
	background-color:#fff; 
	position:fixed;
	width:100%;
	margin-top:0px;
      margin-left: 0px;
	overflow:auto;
}
	
.menuicon{
	display:none; /* togliere icona hambuger icon */
}
	
#bar #logo nav{
	z-index:3;
	height:auto;
	width:200px;
	float:right;
	right:50%;
	visibility:visible;
	overflow:inherit;
}

nav{
	z-index:3;
	margin-top:80px;
	height:auto;
	background-color:transparent;
	transition:none;
	width:auto;
	float:right;
	right:50%;
      margin-right: -265px;
	visibility:visible;
	font-family:"Open Sans", sans-serif;         /*-------------font menu---------------*/
	overflow:inherit;
}

.active{
	background-color:transparent;
	color:#A39382 /* primary super-lightcolor*/;
}
	
.active-dropdown{
	color:#fff;
	background-color:#A39382/* primary lightcolor*/;
}

nav ul{
	padding:0;
}
	
nav ul li a {
	padding:0;
	display:inline;
	font-size:16px;
	color: #343434;                             /*-------------colore menu---------------*/
}

nav ul li a:hover {
	background-color:transparent;
	color:#A39382;                              /*-------------colore menu passaggio---------------*/
}

nav ul li {	
	margin:0;
	float:left;
	position:relative;
	padding:0 16px;
}

:target:before {                                   /* ----------------- ancoraggio ------------------ */
    content: "";
    display: block;
    height: 120px;
    margin: -50px 0 0;
}

}



/* ----------------- contact form ------------------ */

.contactform {
  width: 100%;
  max-height: auto;
  background: #F1EBE4;
  margin: 20px 0; /* Add margin on the top and bottom */
  position: relative;
  z-index: -4;
}

#container {
  max-width: 768px;
  margin: 0 auto;
  position: relative;
  color: #A39382;
  padding: 30px 0; /* Adjust the padding as needed */
}

form {
  padding: 37.5px;
  margin: 50px 0;
}

#mappa-container {
  max-width: 768px;
  margin: 0;
  position: relative;
  padding: 30px 0; /* Adjust the padding as needed */
}

h4 {
  color: #A39382;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 7px;
  text-align: center;
  margin-top: 50px;
}

.icon_wrapper {
  margin: 0;
  width: 100%;
}

.icon {
  display: block;
  fill: #A39382;
  height: 50px;
  margin: 0 auto;
  width: 50px;
}

.email {
	float: right;
	width: 45%;
}

input[type='text'], [type='email'], select, textarea {
	background: #fff;
      border: none;
	border-bottom: solid 2px #A39382;
	color: #A39382;
	font-size: 1.000em;
      font-weight: 400;
      letter-spacing: 1px;
	margin: 0em 0 1.875em 0;
	padding: 0 0 0.875em 0;
      text-transform: uppercase;
	width: 100%;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	-ms-box-sizing: border-box;
	-o-box-sizing: border-box;
	box-sizing: border-box;
	-webkit-transition: all 0.3s;
	-moz-transition: all 0.3s;
	-ms-transition: all 0.3s;
	-o-transition: all 0.3s;
	transition: all 0.3s;
}

input[type='text']:focus, [type='email']:focus, textarea:focus {
	outline: none;
	padding: 0 0 0.875em 0;
}

.message {
	float: none;
}

.name {
	float: left;
	width: 45%;
}

.surname {
	float: right;
	width: 45%;
}

select {
  outline: none;
  -moz-appearance: none;
  -webkit-appearance: none;
}

select::-ms-expand {
  display: none;
}

.subject {
	float: left;
	width: 45%;
}

.subject2 {
	float: right;
	width: 45%;
}

.telephone {
  width: 45%;
}

textarea {
	line-height: 150%;
	height: 150px;
	resize: none;
  width: 100%;
}

::-webkit-input-placeholder {
	color: #A39382;
}

:-moz-placeholder {
      align: center;
	color: #A39382;
	opacity: 1;
}

::-moz-placeholder {
	color: #A39382;
	opacity: 1;
}

:-ms-input-placeholder {
	color: #A39382;
}

#form_button {
  background: #fff;
  border: solid 2px #A39382;
  color: #A39382;
  cursor: pointer;
  display: inline-block;
  font-size: 0.875em;
  font-weight: bold;
  outline: none;
  padding: 20px 35px;
  text-transform: uppercase;
  -webkit-transition: all 0.3s;
	-moz-transition: all 0.3s;
	-ms-transition: all 0.3s;
	-o-transition: all 0.3s;
	transition: all 0.3s;
}

#form_button:hover {
  background: #A39382;
  color: #fff;
}

@media screen and (max-width: 768px) {
  #container {
    margin: 20px auto;
    width: 95%;
  }
}

@media screen and (max-width: 480px) {
  h4 {
    font-size: 26px;
  }
  
  .underline {
    width: 68px;
  }
  
  #form_button {
    padding: 15px 25px;
  }
}

@media screen and (max-width: 420px) {
  h4 {
    font-size: 26px;
  }
  
  .icon {
    height: 35px;
    width: 35px;
  }
  
  .underline {
    width: 53px;
  }
  
  input[type='text'], [type='email'], select, textarea {
    font-size: 0.875em;
  }
}




/* ----------------- footer ------------------ */

footer{
    bottom: 0;
    left: 0;
    right: 0;
    background: #A39382 ;
    height: auto;
    width: 100%;
    padding-top: 40px;
    color: #fff;
}
.footer-content{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}
.footer-content h3{
    font-size: 2.1rem;
    font-weight: 500;

    line-height: 3rem;
}
.footer-content p{
    max-width: 500px;
    margin: 10px auto;
    line-height: 28px;
    font-size: 14px;
    color: #fff;
}
.socials{
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem 0 1rem 0;
}
.socials li{
    margin: 0 10px;
}

.socials a:hover i{
    color: #343434;
}

.footer-bottom{
    background: #343434;
    width: 100%;
    padding-top: 20px;
    padding-bottom: 40px;
    text-align: center;
}
.footer-bottom p{
    float: left;
    margin-left: 15px;
    font-size: 14px;
    word-spacing: 2px;
    text-transform: capitalize;
}
.footer-bottom p a{
  color:#A39382 ;
  font-size: 16px;
  text-decoration: none;
}
.footer-bottom span{
    text-transform: uppercase;
    opacity: .4;
    font-weight: 200;
}
.footer-menu{
  float: right;
}
.footer-menu ul{
  display: flex;
}
.footer-menu ul li{
padding-right: 30px;
display: block;
}
.footer-menu ul li a{
  color: #cfd2d6;
  text-decoration: none;
}
.footer-menu ul li a:hover{
  color: #A39382;
}

@media (max-width:700px) {
.socials li{
    margin: 0 8px;
}

.footer-content p{
    max-width: 500px;
    margin: 10px auto;
    line-height: 28px;
    font-size: 13.5px;
    color: #fff;
}


.footer-bottom p{
  font-size: 12px;
margin-left: 10px;
}
.footer-bottom p a{
  font-size: 12px;
}


.footer-menu ul{
  display: flex;
  margin-top: 0px;
  margin-bottom: 15px;
  font-size: 12px;
}
.footer-menu ul li{
padding-right: 10px;
}
}