/* ===== Home: slideshow con foto intere + ricerca ===== */
.nc-hero-wrap { position: relative; }

/* Le foto non vengono più tagliate: si vedono intere, su sfondo sfocato della stessa foto */
.nc-hero-wrap .n2-ss-slide-background { overflow: hidden; background: #1d2127; }
.nc-hero-wrap .nc-blur { position: absolute; top: -30px; right: -30px; bottom: -30px; left: -30px; background-position: center; background-size: cover; background-repeat: no-repeat; filter: blur(26px) brightness(.72); }
.nc-hero-wrap .n2-ss-slide-background-image { position: relative; z-index: 1; }
.nc-hero-wrap .n2-ss-slide-background-image img,
.nc-hero-wrap .n2-ss-slide-background-image picture { object-fit: contain !important; }

.nc-hero { position: absolute; left: 0; right: 0; bottom: 36px; z-index: 5; display: flex; justify-content: center; padding: 0 16px; pointer-events: none; }
.nc-hero-box { pointer-events: auto; width: min(860px, 100%); background: rgba(255,255,255,.96); border-radius: 18px; padding: 18px 22px 22px; box-shadow: 0 12px 36px rgba(0,0,0,.28); }
.nc-hero-title { margin: 0 0 10px; font-size: 22px; font-weight: 700; color: #2b2f3a; text-align: center; }
.nc-hero-tabs { display: flex; justify-content: center; gap: 6px; margin-bottom: 14px; }
.nc-hero-tabs button { border: 0; background: transparent; padding: 8px 20px; font: inherit; font-size: 16px; font-weight: 600; color: #6b7280; cursor: pointer; border-bottom: 3px solid transparent; }
.nc-hero-tabs button.is-on { color: #876322; border-bottom-color: #a67c2e; }
.nc-hero-form { display: flex; gap: 10px; align-items: stretch; }
.nc-hero-field { display: flex; align-items: center; gap: 8px; height: 52px; border: 1px solid #d9dce1; border-radius: 12px; padding: 0 14px; background: #fff; }
.nc-hero-where { flex: 1; min-width: 0; }
.nc-hero-field svg { width: 20px; height: 20px; flex: none; stroke: #6b7280; fill: none; stroke-width: 2; stroke-linecap: round; }
.nc-hero-field input, .nc-hero-field select { border: 0; outline: 0; background: transparent; width: 100%; height: 100%; font: inherit; font-size: 16px; color: #2b2f3a; padding: 0; box-shadow: none; }
.nc-hero-field:focus-within { border-color: #a67c2e; box-shadow: 0 0 0 3px rgba(166,124,46,.18); }
.nc-hero-go { border: 0; border-radius: 12px; padding: 0 30px; font: inherit; font-size: 16px; font-weight: 700; background: #a67c2e; color: #fff; cursor: pointer; }
.nc-hero-go:hover { background: #876322; }

/* ===== Caroselli annunci ===== */
.nc-home-wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.nc-home-sec { margin: 48px 0 8px; }
.nc-home-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; gap: 12px; }
.nc-home-head h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 26px; font-weight: 700; color: #2b2f3a; }
.nc-home-head h2 svg { width: 26px; height: 26px; stroke: #2b2f3a; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nc-home-nav { display: flex; align-items: center; gap: 8px; }
.nc-home-nav button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid #d9dce1; background: #fff; font-size: 22px; line-height: 1; cursor: pointer; color: #2b2f3a; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.nc-home-nav button[disabled] { opacity: .35; cursor: default; }
.nc-home-nav a { margin-left: 8px; padding: 9px 16px; border: 1px solid #d9dce1; border-radius: 8px; font-size: 14px; font-weight: 600; color: #2b2f3a; text-decoration: none; background: #fff; }
.nc-home-nav a:hover { border-color: #a67c2e; color: #876322; }

.nc-track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 4px 2px 18px; scrollbar-width: none; }
.nc-track::-webkit-scrollbar { display: none; }
.nc-card { flex: 0 0 calc((100% - 60px) / 4); min-width: 250px; scroll-snap-align: start; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.1); transition: box-shadow .2s, transform .2s; }
.nc-card:hover { box-shadow: 0 8px 22px rgba(0,0,0,.14); transform: translateY(-2px); }
.nc-card-img { position: relative; display: block; aspect-ratio: 4 / 3; background: #e8e9ec; overflow: hidden; }
.nc-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nc-card-noimg { display: flex; align-items: center; justify-content: center; height: 100%; color: #6b7280; font-size: 14px; }
.nc-card-badge { position: absolute; top: 10px; right: 10px; background: rgba(255,255,255,.95); color: #2b2f3a; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 4px 9px; border-radius: 6px; }
.nc-card-count { position: absolute; bottom: 10px; right: 10px; display: inline-flex; align-items: center; gap: 5px; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; padding: 3px 8px; border-radius: 6px; }
.nc-card-count svg { width: 14px; height: 14px; stroke: #fff; fill: none; stroke-width: 2; }
.nc-card-body { padding: 14px 16px 16px; }
.nc-card-price { font-size: 22px; font-weight: 700; color: #2b2f3a; margin-bottom: 4px; }
.nc-card-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; font-size: 15px; font-weight: 600; line-height: 1.35; color: #2b2f3a; text-decoration: none; }
.nc-card-title:hover { color: #876322; }
.nc-card-place { margin-top: 6px; font-size: 13px; color: #6b7280; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nc-card-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 10px; font-size: 13px; color: #4b5260; }
.nc-card-meta span { display: inline-flex; align-items: center; gap: 5px; }
.nc-card-meta svg { width: 16px; height: 16px; stroke: #6b7280; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 1100px) { .nc-card { flex-basis: calc((100% - 40px) / 3); } }
@media (max-width: 800px) {
	.nc-hero { position: static; padding: 0; background: #1d2127; }
	.nc-hero-box { width: 100%; border-radius: 0; box-shadow: none; padding: 16px; }
	.nc-hero-title { font-size: 18px; }
	.nc-hero-form { flex-direction: column; }
	.nc-hero-go { height: 50px; }
	.nc-card { flex-basis: 78%; }
	.nc-home-head h2 { font-size: 21px; }
	.nc-home-nav button { display: none; }
}

/* Titolo vuoto della vecchia sezione "Le nostre Proposte" */
body.home .elementor-element-cdb4a27 { display: none !important; }

/* ===== Slideshow a riquadro con bordi arrotondati (stile immobiliare.it) ===== */
.nc-hb { position: relative; max-width: 1240px; margin: 22px auto 8px; width: calc(100% - 40px); border-radius: 28px; overflow: hidden; background: #1d2127; box-shadow: 0 8px 28px rgba(20,22,28,.18); isolation: isolate; }
.nc-hb-slides { position: relative; height: clamp(300px, 34vw, 440px); }
.nc-hb-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; }
.nc-hb-slide.is-on { opacity: 1; z-index: 1; }
.nc-hb-blur { position: absolute; top: -30px; right: -30px; bottom: -30px; left: -30px; background-position: center; background-size: cover; filter: blur(26px) brightness(.7); }
.nc-hb-slide img { position: relative; width: 100%; height: 100%; object-fit: contain; display: block; }
.nc-hb::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 55%; background: linear-gradient(to top, rgba(0,0,0,.45), rgba(0,0,0,0)); z-index: 2; pointer-events: none; }
.nc-hb-nav { position: absolute; top: 40%; z-index: 4; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.85); color: #2b2f3a; font-size: 26px; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.nc-hb-nav:hover { background: #fff; }
.nc-hb-prev { left: 16px; }
.nc-hb-next { right: 16px; }
.nc-hb-dots { position: absolute; top: 14px; left: 0; right: 0; z-index: 4; display: flex; justify-content: center; gap: 7px; }
.nc-hb-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.55); cursor: pointer; }
.nc-hb-dots button.is-on { background: #fff; width: 22px; border-radius: 6px; }
.nc-hb .nc-hero { bottom: 28px; z-index: 5; }
.nc-hb .nc-hero-box { width: min(820px, 100%); }

@media (max-width: 800px) {
	.nc-hb { width: calc(100% - 24px); margin-top: 12px; border-radius: 20px; }
	.nc-hb-slides { height: clamp(200px, 56vw, 300px); }
	.nc-hb::after { display: none; }
	.nc-hb .nc-hero { position: static; background: #fff; padding: 0; }
	.nc-hb .nc-hero-box { width: 100%; border-radius: 0; box-shadow: none; }
	.nc-hb-nav { display: none; }
}

/* Scheda di ricerca più compatta: lascia più foto visibile */
.nc-hb .nc-hero { bottom: 18px; }
.nc-hb .nc-hero-box { width: min(700px, 100%); padding: 10px 16px 14px; border-radius: 16px; }
.nc-hb .nc-hero-title { font-size: 16px; margin: 0 0 4px; }
.nc-hb .nc-hero-tabs { margin-bottom: 8px; }
.nc-hb .nc-hero-tabs button { padding: 5px 18px; font-size: 15px; }
.nc-hb .nc-hero-field { height: 46px; }
.nc-hb .nc-hero-go { padding: 0 26px; }

/* ===== Scheda di ricerca: più piccola, trasparente e sfocata (effetto vetro) – solo desktop/tablet ===== */
@media (min-width: 801px) {
	.nc-hb .nc-hero { bottom: 16px; }
	.nc-hb .nc-hero-box {
		width: min(560px, 100%);
		padding: 8px 12px 12px;
		border-radius: 16px;
		background: rgba(255, 255, 255, .22);
		border: 1px solid rgba(255, 255, 255, .45);
		-webkit-backdrop-filter: blur(14px) saturate(1.3);
		backdrop-filter: blur(14px) saturate(1.3);
		box-shadow: 0 8px 28px rgba(0, 0, 0, .22);
	}
	.nc-hb .nc-hero-title { font-size: 14px; margin: 0 0 2px; color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, .55); }
	.nc-hb .nc-hero-tabs { margin-bottom: 6px; }
	.nc-hb .nc-hero-tabs button { padding: 4px 14px; font-size: 14px; color: rgba(255, 255, 255, .85); text-shadow: 0 1px 4px rgba(0, 0, 0, .5); border-bottom-width: 2px; }
	.nc-hb .nc-hero-tabs button.is-on { color: #fff; border-bottom-color: #fff; }
	.nc-hb .nc-hero-form { gap: 8px; }
	.nc-hb .nc-hero-field { height: 40px; padding: 0 10px; border-radius: 10px; background: rgba(255, 255, 255, .88); border-color: rgba(255, 255, 255, .6); }
	.nc-hb .nc-hero-field input, .nc-hb .nc-hero-field select { font-size: 14px; }
	.nc-hb .nc-hero-field svg { width: 17px; height: 17px; }
	.nc-hb .nc-hero-go { padding: 0 20px; font-size: 14px; border-radius: 10px; }
}

/* ===== Slideshow: le foto riempiono tutto il riquadro (tagliate ai bordi se serve) ===== */
.nc-hb-slide img { object-fit: cover; object-position: center 40%; }
.nc-hb-blur { display: none; }

/* ===== Scheda di ricerca: testi più grandi e leggibili, scheda leggermente più grande ===== */
@media (min-width: 801px) {
	.nc-hb .nc-hero-box {
		width: min(640px, 100%);
		padding: 10px 16px 16px;
		background: linear-gradient(rgba(0, 0, 0, .16), rgba(0, 0, 0, .16)), rgba(255, 255, 255, .2);
	}
	.nc-hb .nc-hero-title { font-size: 20px; font-weight: 700; margin: 0 0 4px; text-shadow: 0 1px 6px rgba(0, 0, 0, .65); }
	.nc-hb .nc-hero-tabs { gap: 10px; margin-bottom: 8px; }
	.nc-hb .nc-hero-tabs button { padding: 5px 18px; font-size: 18px; font-weight: 700; color: rgba(255, 255, 255, .9); text-shadow: 0 1px 6px rgba(0, 0, 0, .65); border-bottom-width: 3px; }
	.nc-hb .nc-hero-tabs button.is-on { color: #fff; }
	.nc-hb .nc-hero-field { height: 44px; padding: 0 12px; }
	.nc-hb .nc-hero-field input, .nc-hb .nc-hero-field select { font-size: 15px; }
	.nc-hb .nc-hero-field svg { width: 18px; height: 18px; }
	.nc-hb .nc-hero-go { padding: 0 24px; font-size: 15px; }
}

/* =====================================================================
   Home – parte bassa: "Perché scegliere noi", icone, modulo "Hai altre domande?"
   ===================================================================== */
body.home .elementor-element-84b7fdf { padding-top: 56px; }
body.home .elementor-element-9479358,
body.home .elementor-element-609652b { border-left: 5px solid #a67c2e !important; }
body.home .elementor-element-9479358 .elementor-heading-title { font-size: 34px; line-height: 1.2; color: #2b2f3a; }
body.home .elementor-element-a4dbf91, body.home .elementor-element-a4dbf91 p { font-size: 16px; line-height: 1.75; color: #4b5260; }

/* tre schede con le icone */
body.home .elementor-element-dec02f1 {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	max-width: 1100px;
	margin: 30px auto 10px;
	padding: 0 20px;
	height: auto !important;
}
body.home .elementor-element-dec02f1 .elementor-widget-icon-box {
	width: auto !important;
	margin: 0 !important;
	background: #fff;
	border-radius: 20px;
	padding: 30px 24px 26px;
	box-shadow: 0 4px 22px rgba(20, 22, 28, .08);
	transition: transform .2s, box-shadow .2s;
}
body.home .elementor-element-dec02f1 .elementor-widget-icon-box:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(20, 22, 28, .13); }
body.home .elementor-element-dec02f1 .elementor-icon {
	width: 68px; height: 68px; display: inline-flex; align-items: center; justify-content: center;
	border-radius: 50%; background: #f6efe0; color: #a67c2e; margin-bottom: 4px;
}
body.home .elementor-element-dec02f1 .elementor-icon i, body.home .elementor-element-dec02f1 .elementor-icon svg { font-size: 28px; width: 28px; height: 28px; color: #a67c2e; fill: #a67c2e; }
body.home .elementor-element-dec02f1 .elementor-icon-box-title { font-size: 21px; font-weight: 700; color: #2b2f3a; margin-bottom: 6px; }
body.home .elementor-element-dec02f1 .elementor-icon-box-description { font-size: 14.5px; line-height: 1.6; color: #6b7280; }

/* modulo contatto */
body.home .elementor-element-0b66a47 { padding: 20px 20px 70px; }
body.home .elementor-element-608eb11 {
	background: #fff !important;
	border-radius: 24px;
	box-shadow: 0 8px 36px rgba(20, 22, 28, .1);
	overflow: hidden;
	max-width: 1100px;
	margin: 0 auto;
}
body.home .elementor-element-608eb11 > .elementor-background-overlay { display: none; }
body.home .elementor-element-608eb11 > .elementor-container { padding: 44px 30px; align-items: center; }
body.home .elementor-element-609652b .elementor-heading-title { font-size: 32px; line-height: 1.2; color: #2b2f3a; }
body.home .elementor-element-e0de07b, body.home .elementor-element-e0de07b p { font-size: 15px; line-height: 1.7; color: #5b6270; }

body.home .elementor-element-e64abe3 .form-control {
	height: 50px; border: 1px solid #d9dce1; border-radius: 12px; background: #fff;
	font-size: 15px; color: #2b2f3a; padding: 0 16px; box-shadow: none;
}
body.home .elementor-element-e64abe3 textarea.form-control { height: auto; min-height: 120px; padding: 12px 16px; }
body.home .elementor-element-e64abe3 .form-control:focus { border-color: #a67c2e; box-shadow: 0 0 0 3px rgba(166, 124, 46, .18); outline: 0; }
body.home .elementor-element-e64abe3 .elementor-field-group { margin-bottom: 12px; }
body.home .elementor-element-e64abe3 .elementor-field-type-acceptance, body.home .elementor-element-e64abe3 label { font-size: 13px; color: #5b6270; }
body.home .elementor-element-e64abe3 a { color: #876322; }
body.home .elementor-element-e64abe3 .elementor-button {
	width: 100%; height: 52px; border-radius: 12px; background: #a67c2e; color: #fff;
	font-size: 15px; font-weight: 700; letter-spacing: .06em; border: 0; transition: background .2s;
}
body.home .elementor-element-e64abe3 .elementor-button:hover { background: #876322; }

@media (max-width: 900px) {
	body.home .elementor-element-dec02f1 { grid-template-columns: 1fr; }
	body.home .elementor-element-9479358 .elementor-heading-title { font-size: 26px; }
	body.home .elementor-element-608eb11 > .elementor-container { padding: 28px 18px; }
	body.home .elementor-element-609652b .elementor-heading-title { font-size: 26px; }
	body.home .elementor-element-0b66a47 { padding: 10px 12px 50px; }
}

@media (max-width: 800px) {
	.nc-hero-form .nc-hero-where { flex: none; height: 50px; }
	.nc-hero-form .nc-hero-type { flex: none; }
}

/* Campi del modulo ben visibili (sfondo grigio chiaro e bordo) */
body.home .elementor-element-e64abe3 .elementor-field-textual,
body.home .elementor-element-e64abe3 .form-control {
	background-color: #f5f6f8 !important;
	border: 1px solid #cfd3da !important;
	border-radius: 12px !important;
	color: #2b2f3a !important;
}
body.home .elementor-element-e64abe3 .elementor-field-textual::placeholder,
body.home .elementor-element-e64abe3 .form-control::placeholder { color: #7a818e; opacity: 1; }
body.home .elementor-element-e64abe3 .elementor-field-textual:focus,
body.home .elementor-element-e64abe3 .form-control:focus { background-color: #fff !important; border-color: #a67c2e !important; }

body.home .elementor-element-e64abe3 .elementor-button,
body.home .elementor-element-e64abe3 .houzez-submit-button { background-color: #a67c2e !important; color: #fff !important; border-radius: 12px !important; }
body.home .elementor-element-e64abe3 .elementor-button:hover,
body.home .elementor-element-e64abe3 .houzez-submit-button:hover { background-color: #876322 !important; }

/* Le icone stanno dentro il contenitore interno di Elementor: la griglia va applicata a quello */
body.home .elementor-element-dec02f1 { display: block !important; max-width: 1100px; margin: 30px auto 10px; padding: 0 20px; }
body.home .elementor-element-dec02f1 > .e-con-inner {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	width: 100% !important;
	max-width: none !important;
	padding: 0 !important;
}
@media (max-width: 900px) {
	body.home .elementor-element-dec02f1 > .e-con-inner { grid-template-columns: 1fr; }
}

/* Meno spazio vuoto attorno al modulo */
body.home .elementor-element-608eb11 .elementor-inner-column > .elementor-widget-wrap { padding: 10px 24px !important; }
body.home .elementor-element-608eb11 .elementor-element-e64abe3 > .elementor-widget-container { padding: 0 !important; }
body.home .elementor-element-608eb11 > .elementor-container { padding: 30px 20px; }

/* I caroselli non devono allargare il contenitore Elementor (flex) */
.nc-home-wrap { width: 100%; min-width: 0; box-sizing: border-box; }
.nc-home-sec, .nc-track { min-width: 0; max-width: 100%; }
