* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

:root {
  --primaryColor: #b09e80;
  --secondaryColor: #1e372c;
  --tertiaryColor: #d8d8d8;
  --whiteColor: #ffffff;
  --blackColor: #000;
  --creamColor: #ddd4c7;
  --fs-title: 35px;
  --fs-title2: 30px;
  --fs-regular: 16px;
  --fs-small: 14px;
  --shadow: 0px 0px 50px 0px rgba(0, 0, 0, 0.5);
  --font-light: "arboria-light";
  --font-bold: "arboria-bold";
  --font-book: "arboria-book";
}

a {
  color: inherit;
  text-decoration: none;
}

header {
  background-color: var(--secondaryColor);
}

header .nav {
  position: relative;
  color: var(--whiteColor);
}

header .nav a {
  width: max-content;
  display: block;
}

header .nav_logo {
  display: inline-block;
  width: 170px;
  height: 140px;
  background-image: url("../img/logo_bianco_header.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}
.popup.desktop{
	display:block;
}
.popup.mobile{
	display:none;
}

.nav_links {
  display: inline-block;
  top: calc(50% - 10px);
  right: 0;
  min-width: max-content;
  position: absolute;
  vertical-align: middle;
}

.nav_voice {
  font-family: var(--font-light);
  position: relative;
  display: inline-block;
  text-transform: uppercase;
  margin-left: 55px;
  font-size: var(--fs-small);
  vertical-align: middle;
}

.nav_voice a {
  color: inherit;
  text-decoration: none;
  position: relative;
}

.nav_voice::before {
  position: absolute;
  display: none;
  content: "";
  width: 100%;
  height: 1px;
  background-color: var(--whiteColor);
  bottom: -5px;
}

.nav_voice.active::before {
  display: block;
}

.nav_voice:hover::before {
  display: block;
}

/* .carousel {
  align-content: center;
  position: relative;
  height: 70vh;
} */

.carousel img {
  position: absolute;
  width: 100%;
  top: 0;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.8);
}

.btn-group {
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 40px 20px;
}

.btn-group .phone,
.btn-group .email {
  padding: 20px;
  background-color: var(--primaryColor);
  border-radius: 50%;
  cursor: pointer;
}

.btn-group .phone {
  margin-bottom: 10px;
}

.phone svg,
.email svg {
  display: block;
  height: 30px;
  width: 30px;
}

.hero {
  /* padding-left: 100px; */
  color: var(--whiteColor);
  position: absolute;
  top: calc(50% - 80px);
}

.hero .description {
  font-family: "arboria-bold";
  letter-spacing: 6px;
  font-size: var(--fs-title);
  text-transform: uppercase;
  text-shadow: 1px 1px 9px rgba(0, 0, 0, 1);
}

.primary_button {
  font-family: var(--font-book);
  margin-top: 40px;
  border-radius: 50px;
  width: max-content;
  padding: 10px 40px;
  background-color: var(--primaryColor);
  cursor: pointer;
  text-transform: uppercase;
  color: var(--whiteColor);
  font-size: var(--fs-regular);
  transition: filter 0.3s ease;
}

.primary_button:hover,
.form button.send:hover,
.btn-group .phone:hover,
.btn-group .email:hover {
  filter: brightness(0.9);
}

.primary_button:active,
.form button.send:active,
.btn-group .phone:active,
.btn-group .email:active {
  filter: brightness(0.8);
}

.image_block {
  vertical-align: middle;
  display: inline-block;
  position: relative;
  width: 51%;
  overflow: hidden;
}

.image_block img {
  display: block;
  width: 100%;
  transition: transform 0.5s ease;
}

.image_block img:hover {
  transform: scale(1.1);
}

.block_content {
  width: calc(49% - 4px);
  vertical-align: middle;
  display: inline-block;
  padding: 60px;
}

.content_logo {
  width: 500px;
  margin-bottom: 100px;
}

.content_logo img {
  width: 100%;
}

.block_item {
  position: relative;
  top: -100px;
  margin-bottom: 70px;
}

.contenitore .block_item:nth-child(3) {
  margin-bottom: 0;
}

.block_item.reverse {
  direction: rtl;
}

.block_item.reverse .block_content {
  direction: ltr;
}

.block_item .block_content .number {
  font-family: var(--font-bold);
  letter-spacing: 6px;
  color: var(--tertiaryColor);
  font-size: var(--fs-title2);
}

.block_item .block_content .title {
  font-family: var(--font-bold);
  color: var(--primaryColor);
  font-size: var(--fs-title);
  margin: 15px 0;
  text-transform: uppercase;
}

.block_item .block_content .description {
  font-family: var(--font-light);
}

.image_bottom_homepage {
  margin-bottom: 120px;
  position: relative;
}

.image_bottom_homepage img {
  display: block;
  width: 100%;
}

.shadow {
  box-shadow: var(--shadow);
}

.image_bottom_homepage img:nth-of-type(2n) {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 70%;
}

/* ----------- */
.contenitore {
  width: 1200px;
  position: relative;
  left: calc(50% - 600px);
  display: block;
  top: 0;
  height: 100%;
}

.herobanner {
  align-content: center;
  position: relative;
  height: 75vh;
  background-image: url("../img/hero.JPG");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.book {
  font-family: var(--font-book);
}

.block_up {
  text-align: center;
  margin-bottom: 60px;
}

.end_block {
  background-color: var(--secondaryColor);
  padding-top: 30px;
  padding-bottom: 60px;
}

.block_up .num {
  font-size: var(--fs-title2);
  color: var(--tertiaryColor);
  letter-spacing: 6px;
  font-family: var(--font-bold);
}

.block_up .location {
  margin-top: 40px;
}

.block_up .location .title {
  font-size: var(--fs-title);
  color: var(--primaryColor);
  text-transform: uppercase;
  font-family: var(--font-bold);
}

.block_up .location .subtitle {
  text-transform: uppercase;
  font-size: 20px;
  margin-top: 10px;
  font-family: var(--font-light);
  color: var(--whiteColor);
}

.block_up .primary_button {
  margin: 0 auto;
  margin-top: 40px;
}

.block_down .card {
  display: inline-block;
  width: calc(33.33% - 27px);
  text-align: center;
  color: var(--whiteColor);
  font-family: var(--font-book);
}

.block_down .card:nth-child(2) {
  margin: 0 40px;
}

.block_down .card .card_place {
  font-size: 20px;
  text-transform: uppercase;
  margin-top: 30px;
}

.block_down .card .card_time {
  margin-top: 40px;
  font-size: var(--fs-title2);
}

.block_down .card_img {
  width: 100%;
  height: 255px;
  background-repeat: no-repeat;
  background-size: cover;
}

.block_down .card_img.first {
  background-image: url("../img/img_5.jpg");
}

.block_down .card_img.second {
  background-image: url("../img/img_6.png");
}

.block_down .card_img.third {
  background-image: url("../img/img_7.png");
}

.footer {
  background-color: var(--creamColor);
  padding: 15px 0;
  text-align: center;
}

.footer_block {
  display: inline-block;
  width: 33.3%;
  text-align: center;
}

.footer_block p {
  font-family: var(--font-book);
}

.footer_middle {
  margin: 20px 0;
}

.footer_block img {
  width: 170px;
}

.footer_down {
  font-family: var(--font-book);
  font-size: var(--fs-small);
  letter-spacing: 1px;
}

.footer_down a:hover {
  text-decoration: underline;
}

.form_container {
  display: inline-block;
  vertical-align: top;
  width: 50%;
  height: 100%;
  font-family: var(--font-book);
  background-color: var(--secondaryColor);
  padding: 70px;
}

.map_background {
  display: inline-block;
  width: 50%;
  height: 100%;
  background-color: var(--primaryColor);
  background-image: url("../img/nuova_mappa.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.form_container .text {
  text-transform: uppercase;
  color: var(--whiteColor);
  letter-spacing: 2px;
  padding-bottom: 20px;
}

.form_input {
  border: 0.6px solid var(--whiteColor);
  background: none;
  padding: 10px;
  font-family: var(--font-book);
  color: var(--whiteColor);
  width: calc(50% - 10px);
  margin-right: 20px;
  letter-spacing: 2px;
}

.form_input#cognome,
.form_input#telefono {
  margin-right: 0;
}

.form_control {
  margin-top: 20px;
}

.form_input::placeholder,
.form .corpo_testo::placeholder {
  /* letter-spacing: 2px; */
  color: var(--whiteColor);
}

.form .corpo_testo {
  width: 100%;
  background: none;
  color: var(--whiteColor);
  font-family: var(--font-book);
  border: 0.6px solid var(--whiteColor);
  height: 200px;
  resize: none;
  padding: 10px;
  margin-block: 20px;
  letter-spacing: 2px;
}

.form button.send {
  border: none;
  width: 100%;
  padding: 10px;
  background-color: var(--primaryColor);
  color: var(--whiteColor);
  cursor: pointer;
  font-family: "arboria-book";
  letter-spacing: 2px;
  transition: filter 0.3s ease;
}

.contact_block {
  height: 630px;
}

select.range {
  border: 0.6px solid var(--whiteColor);
  width: 100%;
  padding: 10px;
  background: none;
  color: var(--whiteColor);
  cursor: pointer;
  font-family: "arboria-book";
  letter-spacing: 2px;
  margin-top: 20px;
}

select option:first-child {
  display: none;
}

/* ---APPARTAMENTI--- */
.appartamenti .contenitore .block_item {
  top: 0;
  margin: 70px 0;
}

.appartamenti .background_attic {
  background-image: url("../img/img_26.png");
  background-position: center;
  background-size: cover;
}

.appartamenti .info {
  text-align: center;
  max-width: 550px;
  margin: 0 auto;
}

.appartamenti .info .title,
.servizi .info .title {
  font-size: var(--fs-title);
  font-family: var(--font-bold);
  color: var(--primaryColor);
  display: inline-block;
  vertical-align: middle;
  margin: 0 40px;
}

.appartamenti .info .head,
.servizi .info .head {
  margin-bottom: 20px;
}

.appartamenti .info .text,
.servizi .info .text {
  font-family: var(--font-light);
}

.appartamenti .info .head .right-arrow,
.servizi .info .head .right-arrow {
  width: 50px;
  height: 50px;
  display: inline-block;
  vertical-align: middle;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  background-image: url("../img/right-arrow.svg");
}

.appartamenti .info .head .left-arrow,
.servizi .info .head .left-arrow {
  width: 50px;
  height: 50px;
  display: inline-block;
  vertical-align: middle;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  background-image: url("../img/left-arrow.svg");
}

.appartamenti .card_block {
  padding: 15px 0;
  margin-top: 60px;
}

.appartamenti .card_block .card {
  position: relative;
  display: inline-block;
  width: calc(25% - 12px);
  height: 500px;
  cursor:pointer;
}

.appartamenti .card_block .card p {
  width: 100%;
  height: 100%;
  align-content: center;
  text-align: center;
  color: var(--whiteColor);
  backdrop-filter: brightness(0.6);
  transition: all 0.3s ease;
  font-family: var(--font-book);
  font-size: 20px;
}

.appartamenti .card_block .card p:hover {
  backdrop-filter: brightness(1);
}

.appartamenti .card_block .card.first {
  background-position: center;
  background-size: cover;
  background-image: url("../img/img_16.jpg");
}

.appartamenti .card_block .card.second {
  margin-left: 16px;
  margin-right: 8px;
  background-position: center;
  background-size: cover;
  background-image: url("../img/img_20.jpg");
}

.appartamenti .card_block .card.third {
  margin-left: 8px;
  margin-right: 16px;
  background-position: center;
  background-size: cover;
  background-image: url("../img/img_8.jpg");
}

.appartamenti .card_block .card.forth {
  background-position: center;
  background-size: cover;
  background-image: url("../img/img_26.png");
}

.appartamenti .background_attic .block_item {
  top: 0;
  margin: 0;
  margin-top: 70px;
  text-align: end;
}

.appartamenti .background_attic .block_item .block_content {
  margin: 100px;
  background-color: var(--whiteColor);
  text-align: left;
  max-width: 500px;
}

/* ---servizi--- */
.servizi .info {
  text-align: center;
  margin: 60px 0;
}

.servizi .info .primary_button {
  margin: 60px auto 0;
}

.servizi .info .text {
  margin: 0 auto;
  max-width: 900px;
}

.puzzle .row .image {
  vertical-align: middle;
  display: inline-block;
  width: 50%;
  height: 400px;
  background-size: cover;
  background-position: center;
}

.puzzle .row .image.first {
  background-image: url("../img/img_3.jpg");
}

.puzzle .row .image.second {
  background-image: url("../img/img_15.jpg");
  background-size: cover;
}

.puzzle .row .image.third {
  background-image: url("../img/evcharging.jpg");
}

.puzzle .row .image.forth {
  background-image: url("../img/img_23.jpg");
}

.puzzle .row .image.fifth {
  background-image: url("../img/img_12.jpg");
}

.puzzle .row .body {
  vertical-align: middle;
  display: inline-block;
  width: 50%;
  padding: 50px;
}

.puzzle .row {
  color: var(--whiteColor);
  font-family: var(--font-book);
}

.puzzle .row .text {
  line-height: 1.5;
  font-size: 18px;
}

.puzzle .row.secondary {
  background-color: var(--secondaryColor);
}

.puzzle .row.secondary .title {
  font-size: var(--fs-title);
  color: var(--primaryColor);
  margin-bottom: 20px;
}

.puzzle .row.primary {
  background-color: var(--primaryColor);
}

.puzzle .row.primary .body {
  text-align: right;
}

.puzzle .row.primary .title {
  font-size: var(--fs-title);
  color: var(--secondaryColor);
  margin-bottom: 20px;
}

/* ---LOCATION--- */
.location .contenitore .block_item:first-child {
  margin-bottom: 200px;
}

.location .block_end {
  background-image: url("../img/img_11.jpg");
  background-size: cover;
  background-position: 50% 60%;
  background-repeat: no-repeat;
  height: 600px;
}

.location .block_end .block_content {
  background-color: var(--whiteColor);
  margin-left: 250px;
  position: relative;
  width: 550px;
}

.location .block_end .block_item {
  margin: 0;
  top: -200px;
}

.location .contenitore .block_item:last-child {
  margin-block: 0 150px;
}

.location .contenitore .block_item:last-child > .image_block {
  margin-bottom: 60px;
  vertical-align: bottom;
}

.location .contenitore .block_item:last-child > .image_block img {
  object-fit: cover;
  height: 500px;
}

.location .contenitore .block_item:last-child .block_content .content_logo {
  position: relative;
  left: -200px;
  margin-bottom: 50px;
}

/* ---GIARDINO--- */

.garden .block_item {
  top: 0;
}

.garden .contenitore {
  top: 100px;
}

.garden .contenitore .block_item.sx .image_block.up {
  height: 500px;
  z-index: 1;
  left: -70px;
}

.garden .contenitore .block_item.sx .image_block.up img {
  height: 100%;
  object-fit: cover;
}

.garden .contenitore .block_item.sx .block_content {
  padding-top: 0;
  vertical-align: top;
  padding-left: 0;
  padding-right: 200px;
}

.garden .contenitore .block_item.sx .image_block:last-child {
  position: relative;
  left: 0;
  top: -100px;
  z-index: 0;
}

.garden .contenitore .block_item:last-child {
  margin-block: 200px 400px;
}

.garden .contenitore .block_item:last-child .image_block:not(.absolute) {
  height: 640px;
}

.garden .contenitore .block_item:last-child .image_block:not(.absolute) img {
  height: 100%;
  object-fit: cover;
}

.garden .contenitore .block_item:last-child .image_block.absolute {
  position: absolute;
  z-index: 1;
}

.garden .contenitore .block_item:last-child .image_block.absolute.up {
  top: -245px;
  left: 40%;
}

.garden .contenitore .block_item:last-child .image_block.absolute.down {
  bottom: -240px;
  left: 10%;
  height: 350px;
  width: 550px;
}

.garden .contenitore .block_item:last-child .image_block.absolute.down img {
  height: 100%;
  object-fit: cover;
}

.nav_mobile,
.contenitore.mobile,
.footer_mobile {
  display: none;
}

.foreground {
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    top: 0;
    left: 0;
    transition: all 1s;
	cursor:pointer;
}

.modal_container {
    width: 1200px;
    height: calc(100% - 40px);
    top: 20px;
    left: calc(50% - 600px);
    position: fixed;
    background: white;
	margin-top:-150%;
    transition: all 1s;
}

.column_sx {
    background-color: #1D372C;
    top: 0;
    left: 0;
    position: absolute;
    width: 170px;
    height: 100%;
}

.close{
	font-family: var(--font-book);
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: larger;
	z-index:3;
}

.column_sx>.logo {
    display: block;
    width: 170px;
    height: 140px;
    background-image: url(../img/logo_bianco_header.png);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}
.column_sx>.menu {
    display: block;
    width: 170px;
    top: 140px;
    height:calc(100% - 140px);
	background:white;
	position:absolute;
}


.column_sx>.menu .voice{
	width: 100%;
	font-family: 'arboria-book';
	line-height: 30px;
	margin: 13px 0;
	cursor: pointer;
}
.column_sx>.menu .voice.active,
.column_sx>.menu .voice:hover {
    background: #1d372c;
    color: white;
}
.column_sx>.menu .voice:hover {
    background: #1d372c88;
    color: white;
}
.map{
	width: calc(100% - 140px);
    height: 100%;
    left: 140px;
    top: 0;
    position: absolute;
}


img.show_map {
    max-width: 90%;
    max-height: 90%;
    position: absolute;
    left: 5%;
    top: 5%;
}
option.option {
    background: var(--secondaryColor);
}
	.galleria{
		height: calc(100vh - 200px);
		position: relative;
		width: 100%;
		left: 0;top: 0;
		display: block;
	}
	.galleria>.contenitore>.label{
		font-family:'arboria-bold';
		padding: 20px 0px;
		font-size: 25px;
	}
	.galleria>.slide_container{
		overflow:hidden;
		height: calc(100% - 70px);
		position: relative;
		width: 100%;
		text-align:center;
		display: block;
		background: #b09e80;;
	}
	.galleria>.slide_container>.arrow{
		position: absolute;
		background: white;
		z-index: 3;
		width: 40px;
		border-radius: 50%;
		height: 40px;
		text-align: center;
		padding-top: 0px;
		font-family: 'arboria-bold';
		font-size: 31px;
		cursor: pointer;
		top: calc(50% - 20px);
	}
	.galleria>.slide_container>.arrow:hover{
		opacity:0.5;
	}
	.galleria>.slide_container>.arrow.prev{
		left: 20px;
	}
	.galleria>.slide_container>.arrow.next{
		right: 20px;
	}
	.galleria>.slide_container>.slide{
		height:100%;
		position:absolute;
		width:100%;
		text-align:center;
		background: var(--creamColor);
	}
	.galleria>.slide_container>.slide>img{
		position: absolute;
		height: 100%;
		max-width: 100%;
		margin: 0 auto;
		padding: 0;
		display: inline-block;
		top: -100%;
		left: 0;
		object-fit: contain;
	}
	.galleria>.slide_container>.slide>img.active{
		position: relative;
		top: 0;
	}
	
	.news>.img_principale{
		align-content: center;
		position: relative;
		height: 75vh;
		background-image: url('../img/news.jpeg');
		background-size: cover;
		background-position: center;
		background-repeat: no-repeat;
	}
	.news>.contenitore>.news_block{
		width:100%;
		height:auto;
		left:0;
		top:0;
		position:relative;
		display:block;
		margin:35px 0;
	}
	.news>.contenitore>.news_block .news_row{
		width:calc(100% + 20px);
		left:-10px;
		position:relative;
		display:block;
	}
	.news>.contenitore>.news_block .news_item{
		vertical-align: top;
		width:33%;
		width:calc(100% / 3);
		height:auto;
		left:0;
		top:0;
		position:relative;
		display:inline-block;
		padding:30px 10px;
	}
	.news>.contenitore>.news_block .news_item>.news_img{
		width: 100%;
		height: 260px;
		left: 0;
		top: 0;
		position: relative;
		display: block;
		margin-bottom: 15px;
		object-fit: cover;
	}
	.news>.contenitore>.news_block .news_item>.news_title{
		font-family:var(--font-bold);
		font-size:19px;
		text-align:justify;
		margin-bottom:15px;
	}
	.news>.contenitore>.news_block .news_item>.news_text{
		font-family:var(--font-book);
		text-align:justify;
	}
	
	
	/*POP UP*/
	.open_contact_1{
		background: var(--primaryColor);
		display: block;
		position: relative;
		color: var(--secondaryColor);
		border-radius: 10px;
		padding: 10px;
		left: calc(50% - 80px);
		top: 220px;
		cursor: pointer;
		border: none;
	}
	
	.band_photo{
		background: white;
		position: relative;
		top: -4px;
		height: 340px;
		object-fit: fill;
		position: relative;
		text-align: center;
	}
	.band_photo img{
		height: 100%;
		object-fit: cover;
		position: relative;
		text-align: center;
		width:100%;
	}
	.band{
		padding: 20px;
		position: relative;
		top: -4px;
		height: 130px;
		color: red;
	}
	
	
/* ---MOBILE--- */
@media screen and (max-width: 1250px) {
	.contenitore {
		width: 900px;
		left: calc(50% - 450px);
	}

	.nav_links {
	}

	.nav_links .nav_voice {
		margin-left: 15.5px;
	}
	.modal_container {
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        margin-top:-200%;
    }
	.column_dx {
		width: calc(100% - 170px);
		position: absolute;
		right: 0;
		height: 100%;
	}
	img.show_map {
		max-width: 100%;
		max-height: 100%;
		position: absolute;
		left: 0;
		top: 0;
	}
	.map{
		width: 100%;
		height: 100%;
		left: 0;
		top: 0;
		position: absolute;
	}
}

@media screen and (max-width: 950px) {
  * {
    -webkit-tap-highlight-color: transparent;
  }

  :root {
    --fs-title: 28px;
    --fs-title2: 24px;
    --fs-regular: 14px;
    --fs-small: 12px;
  }

  .nav_mobile,
  .contenitore.mobile,
  .footer_mobile {
    display: block;
  }

  .nav .nav_links {
    display: none;
  }

  .contenitore {
    width: 100%;
    left: 0;
  }

  /* ---HEADER--- */

  header .contenitore {
    padding: 0;
  }

  .toggle_nav {
    position: absolute;
    top: 50%;
    left: 25px;
    transform: translateY(-50%);
    width: 30px;
    cursor: pointer;
  }

  .toggle_nav span {
    display: block;
    width: 100%;
    height: 1px;
    background: #fff;
  }

  .toggle_nav span:nth-child(2) {
    margin-block: 6px;
  }

  .nav_mobile {
    position: fixed;
    top: 0;
    width: 70%;
    background-color: var(--secondaryColor);
    z-index: 99;
    height: 100vh;
    height: 100dvh;
    transform: translateX(-100%);
    padding-inline: 16px;
    transition: transform 0.5s ease;
  }

  .nav_mobile.active {
    transform: translateX(0);
    box-shadow: var(--shadow);
  }

  .nav_mobile_voices .voice {
    border-top: 0.1px solid gray;
    padding-block: 20px;
    font-family: var(--font-book);
    color: var(--whiteColor);
    text-transform: uppercase;
  }

  .nav_mobile_voices .voice:last-child {
    border-bottom: 0.1px solid gray;
  }

  .nav_mobile_header {
    height: 90px;
    margin-bottom: 10px;
    position: relative;
  }

  header {
    height: 100px;
  }

  .header .logo {
    height: 49px;
    width: 120px;
  }

  .nav_mobile_footer {
    text-align: center;
    position: absolute;
    bottom: 0;
    margin-bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-family: "nexaheavy";
  }

  .nav_mobile_footer .block_social {
    margin-top: 20px;
  }

  .nav_mobile img.social {
    width: 25px;
  }

  .nav_mobile img.social:nth-child(2) {
    margin-inline: 15px;
  }

  .nav_mobile_header .close_navbar {
    width: 20px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
  }

  .close_navbar span:first-child {
    transform: rotate(45deg) translateY(1px);
  }

  .close_navbar span {
    transform: rotate(-45deg) translateY(-1px);
  }

  .nav_mobile_header a {
    display: block;
    margin: 0 auto;
    width: 120px;
    height: 80px;
  }

  .nav_mobile_logo {
    width: 100%;
    height: 100%;
    background-image: url("../img/logo_bianco_header.png");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
  }

  header .nav_logo {
    width: 120px;
    height: 100px;
  }

  .nav > a {
    display: block;
    margin-inline: auto;
  }

  /* ---FORM--- */

  .contact_block {
    height: auto;
  }

  .map_background {
    display: block;
    width: 100%;
    height: 500px;
  }

  .form_container {
    display: block;
    padding: 25px;
    width: 100%;
  }

  /* ---FOOTER--- */

  .footer_up {
    display: none;
  }

  .footer_middle {
    display: none;
  }

  .footer_mobile > .footer_block {
    display: block;
    width: 100%;
    margin-bottom: 20px;
  }

  .footer_mobile > .footer_block p {
    margin-bottom: 10px;
  }

  /* ---HERO--- */
  .btn-group .phone,
  .btn-group .email {
    padding: 12px;
  }

  /* ---HOME--- */
  .block_item {
    top: 0;
    margin-top: 50px;
  }

  .block_item .image_block,
  .block_item .block_content {
    display: block;
    width: 100%;
  }

  .houses_list .contenitore .block_item:first-child .image_block {
    height: 600px;
  }

  .houses_list .contenitore .block_item:first-child .image_block img {
    object-fit: cover;
    height: 100%;
  }

  .houses_list
    .contenitore
    .block_item:first-child
    .block_content
    .content_logo,
  .contenitore .info .head .right-arrow,
  .contenitore .info .head .left-arrow,
  .background_attic .block_item,
  .servizi .info .head .right-arrow,
  .servizi .info .head .left-arrow {
    display: none;
  }

  .block_item .block_content {
    padding: 30px 0;
  }

  .end_block .block_down .card {
    display: block;
    width: 100%;
    margin: 0;
    margin-bottom: 20px;
  }

  .appartamenti .card_block .card {
    display: block;
    width: 100%;
    margin: 0 !important;
  }

  .location .block_end,
  .background_attic {
    height: 300px;
  }

  .block_item.attic {
    margin: 40px 0 !important;
  }

  .location .contenitore .block_item:first-child {
    margin-bottom: 100px;
  }

  .location .contenitore .block_item:last-child .block_content .content_logo {
    left: -30px;
    width: calc(100% + 55px);
  }

  .location .block_end .block_item {
    display: none;
  }

  .location .contenitore .block_item:last-child {
    margin-block: 0 100px;
  }

  .location .contenitore .block_item:nth-child(3) {
    margin-bottom: 70px;
  }

  .content_logo {
    width: 100%;
  }

  .image_block.banner {
    margin-top: 50px !important;
    height: 300px !important;
  }

  .block_item.sx.landscape > .block_content {
    box-shadow: none !important;
  }

  .puzzle .row .body,
  .puzzle .row .image {
    display: block;
    width: 100%;
  }

  .puzzle .row.primary .body {
    text-align: left;
  }

  .garden .contenitore .block_item.sx .block_content {
    padding: 0;
    padding-bottom: 50px;
  }

  .garden .contenitore .block_item.sx .image_block.up {
    width: 100% !important;
    left: 0;
  }

  .garden .contenitore .block_item.sx .image_block:last-child {
    top: 0;
    margin-top: 50px;
  }

  .garden .contenitore .block_item:last-child .image_block:not(.absolute) {
    display: none;
  }

  .garden .contenitore .block_item:last-child .image_block.absolute {
    position: relative;
    top: 0 !important;
    left: 0 !important;
  }

  .garden .contenitore .block_item:last-child {
    margin-block: 70px 140px;
  }

  .garden .contenitore .block_item:last-child .image_block.absolute.down {
    margin-top: 40px;
    bottom: 0;
    left: 0;
    width: 100%;
  }

  .block_content,
  .hero {
    padding-inline: 25px !important;
  }

  .shadow {
    box-shadow: unset;
  }
  .news>.contenitore>.news_block{
		width: calc(100% - 40px);
		left: 20px;
	}
	.news>.contenitore>.news_block .news_item{
		width:50%;
	}
	.popup.desktop{
		display:none;
	}
	.popup.mobile{
		display:block;
	}
    .popup {
        width: 100% !important;
        left: 0 !important;
    }
    
    /*Popup*/
    .popup.mobile .popup_close{
        font-family: var(--font-book);
        z-index: 1;
        cursor: pointer;
    }
    
   
}


@media screen and (orientation: portrait){

	.galleria>.contenitore>.label{
		padding-left: 30px;
	}

.column_sx {
	    width: 100%;
    height: 140px;
}
.column_sx>.menu {
    display: block;
    height: 100%;
    top: 0;
    width: calc(100% - 140px);
    background: white;
    position: absolute;
    left: 170px;
}
.column_sx>.menu .voice {
    width: 100%;
    font-family: 'arboria-book';
    line-height: 28px;
    margin: 0;
    cursor: pointer;
}

    .column_dx {
        height: calc(100% - 170px);
        position: absolute;
        right: 0;
        width: 100%;
        top: 170px;
    }

.close {
    font-family: var(--font-book);
        cursor: pointer;
        position: absolute;
        top: -154px;
        right: 20px;
        font-size: larger;
        background: white;
        border-radius: 50%;
        width: 24px;
        height: 24px;
        border: solid 1px #1D372C;
}
.map{
	    width: 100%;
    height: 100%;
    position: absolute;
}
    img.show_map {
        width: 100%;
        height: auto;
        position: absolute;
        left: 0;
        top: 0;
    }
	
	.news>.contenitore>.news_block{
		width: calc(100% - 40px);
		left: 20px;
	}
  .news>.contenitore>.news_block .news_item{
		width:100%;
  }
}
.foreground_popup {
    position: fixed;
    background: rgba(0, 0, 0, 0.3);
    width: 100%;
    height: 100vh;
    z-index: 99;
}

.popup {
    position: fixed;
    z-index: 99;
    width: 800px;
    height: 500px;
    left: calc(50% - 400px);
    top: calc(50% - 250px);
    transition: all 1s;
}

.popup .popup_column_dx .popup_close {
    font-family: var(--font-book);
    color: white;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: larger;
}

.popup_column_sx {
       position: relative;
    width: 50%;
    vertical-align: top;
    background: white;
    height: 100%;
    display: inline-block;
    background-color: var(--secondaryColor);
}

.popup_column_sx .text {
    position: relative;
    font-size: 25px;
    top: calc(50% - 100px);
    text-align: center;
    padding: 10px;
    color: var(--creamColor);
}

.popup_column_dx {
     width: 50%;
     height: 100%;
     display: inline-block;
     background-color: var(--secondaryColor);
}

.popup_column_dx img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
