/* ===== Scheda annuncio ===== */
.nsp { --a: #a67c2e; --ad: #876322; --ink: #2b2f3a; --mut: #6b7280; --line: #d9dce1; background: #fff; color: var(--ink); padding-bottom: 40px; }
.nsp * { box-sizing: border-box; }
.nsp-wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }

.nsp-top { border-bottom: 1px solid #eceef1; background: #fff; }
.nsp-toprow { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; flex-wrap: wrap; }
.nsp-back, .nsp-pn a { color: var(--ad); font-weight: 600; text-decoration: none; font-size: 15px; }
.nsp-pn { display: flex; align-items: center; gap: 18px; font-size: 15px; }
.nsp-pn span { color: var(--ink); }
.nsp-tools { display: flex; gap: 8px; }
.nsp-tools button { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 8px 14px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--ink); }
.nsp-tools button:hover { border-color: var(--a); color: var(--ad); }

/* Galleria */
.nsp-gallery { position: relative; display: grid; gap: 6px; height: 470px; margin-top: 18px; border-radius: 16px; overflow: hidden; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
.nsp-g { position: relative; padding: 0; border: 0; background: #e8e9ec; cursor: pointer; overflow: hidden; }
.nsp-g img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.nsp-g:hover img { transform: scale(1.04); }
.nsp-g.g0 { grid-column: 1; grid-row: 1 / span 2; }
.nsp-gallery.n1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.nsp-gallery.n1 .g0 { grid-row: 1; }
.nsp-gallery.n2 { grid-template-columns: 2fr 1fr; }
.nsp-gallery.n2 .g1 { grid-row: 1 / span 2; }
.nsp-gallery.n3 { grid-template-columns: 2fr 1fr; }
.nsp-gallery.n4 .g3 { grid-column: 2 / span 2; }
.nsp-tag { position: absolute; left: 8px; bottom: 8px; background: rgba(0,0,0,.62); color: #fff; font-size: 13px; padding: 3px 9px; border-radius: 5px; }
.nsp-count { position: absolute; right: 14px; bottom: 14px; background: rgba(0,0,0,.65); color: #fff; font-size: 14px; padding: 5px 12px; border-radius: 6px; }
.nsp-more { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.5); color: #fff; font-size: 24px; font-weight: 700; }
.nsp-nophoto { grid-column: 1 / -1; grid-row: 1 / -1; display: flex; align-items: center; justify-content: center; background: #e8e9ec; color: var(--mut); }
.nsp-sold { position: absolute; top: 18px; left: 18px; background: #1e40af; color: #fff; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 8px 18px; border-radius: 8px; z-index: 2; }

.nsp-shortcuts { display: flex; gap: 10px; margin: 14px 0 6px; flex-wrap: wrap; }
.nsp-shortcuts button, .nsp-shortcuts a { display: inline-flex; align-items: center; gap: 6px; padding: 12px 26px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ad); text-decoration: none; font: inherit; font-size: 15px; cursor: pointer; }
.nsp-shortcuts b { font-weight: 600; }
.nsp-shortcuts button:hover, .nsp-shortcuts a:hover { border-color: var(--a); }

/* Tab */
.nsp-tabs { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid #eceef1; margin: 10px -20px 0; padding: 0 20px; }
.nsp-tabs-in { display: flex; align-items: center; gap: 28px; min-height: 58px; max-width: 1240px; margin: 0 auto; }
.nsp-mini { display: none; flex-direction: column; line-height: 1.2; padding-right: 22px; border-right: 1px solid var(--line); }
.nsp-mini b { font-size: 16px; }
.nsp-mini span { font-size: 12px; color: var(--mut); }
.nsp-tabs.is-stuck .nsp-mini { display: flex; }
.nsp-links { display: flex; gap: 6px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.nsp-links::-webkit-scrollbar { display: none; }
.nsp-links a { padding: 8px 16px; border-radius: 999px; color: var(--ink); text-decoration: none; font-size: 15px; white-space: nowrap; border: 1px solid transparent; }
.nsp-links a:hover { background: #f4f5f7; }
.nsp-links a.is-on { border-color: #cfe0f3; background: #eef4fb; color: #0b4a87; font-weight: 600; }
.nsp-cta { display: none; background: var(--a); color: #fff; text-decoration: none; font-weight: 700; padding: 10px 22px; border-radius: 10px; }
.nsp-tabs.is-stuck .nsp-cta { display: inline-block; }

/* Colonne */
.nsp-cols { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; margin-top: 8px; }
.nsp-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding-top: 22px; }
.nsp-head h1 { margin: 0; font-size: 26px; line-height: 1.25; font-weight: 700; color: var(--ink); }
.nsp-place { margin: 6px 0 0; color: var(--mut); font-size: 15px; }
.nsp-price { font-size: 32px; font-weight: 700; white-space: nowrap; }
.nsp-overview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 20px; margin-top: 22px; }
.nsp-overview div { display: flex; align-items: center; gap: 12px; font-size: 16px; }
.nsp-overview svg { width: 24px; height: 24px; flex: none; stroke: var(--ink); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nsp-updated { margin: 22px 0 0; padding: 14px 0; border-top: 1px solid #eceef1; color: var(--mut); font-size: 14px; }

.nsp-sec { padding: 26px 0; border-top: 1px solid #eceef1; scroll-margin-top: 76px; }
.nsp-sec h2 { margin: 0 0 16px; font-size: 22px; font-weight: 700; }
.nsp-sec h3 { margin: 26px 0 12px; font-size: 18px; }
.nsp-desc { font-size: 16px; line-height: 1.7; color: #3b404b; }
.nsp-desc p { margin: 0 0 12px; }

.nsp-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 40px; margin: 0; }
.nsp-specs div { padding-bottom: 12px; border-bottom: 1px solid #f0f1f3; }
.nsp-specs dt { font-weight: 600; font-size: 15px; }
.nsp-specs dd { margin: 2px 0 0; color: var(--mut); font-size: 15px; }
.nsp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.nsp-chips span { padding: 7px 14px; background: #f4f5f7; border-radius: 6px; font-size: 14px; }

.nsp-plans { display: flex; flex-wrap: wrap; gap: 14px; }
.nsp-plans button { padding: 0; border: 1px solid var(--line); border-radius: 10px; background: #fff; width: 240px; overflow: hidden; cursor: pointer; text-align: left; font: inherit; }
.nsp-plans img { width: 100%; height: 170px; object-fit: contain; background: #fff; display: block; }
.nsp-plans span { display: block; padding: 8px 12px; font-size: 14px; border-top: 1px solid #eceef1; }
.nsp-tour iframe { width: 100%; height: 480px; border: 0; border-radius: 12px; }
.nsp-map { height: 420px; border-radius: 14px; border: 1px solid var(--line); z-index: 0; }
.nsp-maplabel { margin: 10px 0 0; color: var(--mut); font-size: 14px; }

/* Contatto */
.nsp-side { position: sticky; top: 76px; padding-top: 22px; }
.nsp-contact { border: 1px solid var(--line); border-radius: 16px; padding: 20px; background: #f7f8f9; box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.nsp-contact h2 { margin: 0 0 14px; font-size: 18px; font-weight: 700; }
.nsp-f { display: block; margin-bottom: 10px; }
.nsp-f span { display: block; font-size: 12px; color: var(--mut); margin-bottom: 3px; }
.nsp-f input, .nsp-f select, .nsp-f textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 15px; background: #fff; color: var(--ink); }
.nsp-f input:focus, .nsp-f select:focus, .nsp-f textarea:focus { border-color: var(--a); outline: 0; box-shadow: 0 0 0 3px rgba(166,124,46,.18); }
.nsp-consent { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; color: var(--mut); line-height: 1.4; margin: 4px 0 12px; }
.nsp-consent input { margin-top: 2px; }
.nsp-msg { border-radius: 8px; font-size: 14px; }
.nsp-msg.is-err { padding: 9px 12px; margin-bottom: 10px; color: #b42318; background: #fef3f2; border: 1px solid #fecdca; }
.nsp-msg.is-ok { padding: 9px 12px; margin-bottom: 10px; color: #067647; background: #ecfdf3; border: 1px solid #abefc6; }
.nsp-send { width: 100%; height: 48px; border: 0; border-radius: 10px; background: var(--a); color: #fff; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
.nsp-send:hover { background: var(--ad); }
.nsp-send[disabled] { opacity: .6; cursor: default; }
.nsp-or { text-align: center; margin: 10px 0 8px; font-size: 13px; color: var(--mut); }
.nsp-visit { width: 100%; height: 46px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: inherit; font-size: 15px; font-weight: 600; color: var(--ink); cursor: pointer; }
.nsp-visit:hover { border-color: var(--a); color: var(--ad); }
.nsp-agent { display: flex; gap: 14px; align-items: center; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.nsp-agent img { width: 72px; height: 72px; object-fit: contain; border-radius: 8px; background: #fff; flex: none; }
.nsp-agname { color: #0b4a87; font-weight: 600; text-decoration: none; font-size: 15px; display: block; }
.nsp-agaddr { font-size: 12px; color: var(--mut); margin: 2px 0 6px; }
.nsp-phone { border: 0; background: transparent; color: #0b4a87; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; padding: 0; }
.nsp-phone a { color: inherit; text-decoration: none; }

.nsp-similar { margin-top: 10px; }
.nsp-mbar { display: none; }

/* Lightbox */
.nsp-lb[hidden] { display: none; }
.nsp-lb { position: fixed; inset: 0; z-index: 99999; background: rgba(10,12,16,.94); display: flex; align-items: center; justify-content: center; }
.nsp-lb figure { margin: 0; max-width: 92vw; max-height: 88vh; text-align: center; }
.nsp-lb img { max-width: 92vw; max-height: 82vh; object-fit: contain; display: block; margin: 0 auto; border-radius: 4px; }
.nsp-lb figcaption { color: #e5e7eb; margin-top: 10px; font-size: 15px; }
.nsp-lb button { position: absolute; border: 0; background: rgba(255,255,255,.14); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 28px; line-height: 1; cursor: pointer; }
.nsp-lb button:hover { background: rgba(255,255,255,.28); }
.nsp-lb-x { top: 18px; right: 18px; font-size: 20px !important; }
.nsp-lb-p { left: 18px; top: 50%; transform: translateY(-50%); }
.nsp-lb-n { right: 18px; top: 50%; transform: translateY(-50%); }

@media (max-width: 1000px) {
	.nsp-cols { grid-template-columns: 1fr; gap: 0; }
	.nsp-side { position: static; padding-top: 0; }
	.nsp-gallery { height: 340px; }
	.nsp-links { display: none; }
	.nsp-tabs-in { gap: 12px; }
}
@media (max-width: 700px) {
	.nsp-wrap { padding: 0 14px; }
	.nsp-tabs { margin: 8px -14px 0; padding: 0 14px; }
	.nsp-gallery { height: 250px; border-radius: 12px; grid-template-columns: 1fr; grid-template-rows: 1fr; }
	.nsp-g { display: none; }
	.nsp-g.g0 { display: block; grid-row: 1; }
	.nsp-head { flex-direction: column; gap: 6px; }
	.nsp-head h1 { font-size: 22px; }
	.nsp-price { font-size: 28px; }
	.nsp-overview { grid-template-columns: 1fr 1fr; }
	.nsp-specs { grid-template-columns: 1fr; }
	.nsp-pn { order: 3; width: 100%; justify-content: space-between; }
	.nsp-mbar { display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 14px; background: #fff; box-shadow: 0 -2px 12px rgba(0,0,0,.12); }
	.nsp-mbar a { flex: 1; text-align: center; padding: 13px 0; border-radius: 10px; font-weight: 700; text-decoration: none; font-size: 15px; }
	.nsp-mcall { border: 2px solid var(--line); color: var(--ink); }
	.nsp-mmsg { background: var(--a); color: #fff; }
	.nsp { padding-bottom: 70px; }
}
@media print {
	.nsp-top, .nsp-tabs, .nsp-shortcuts, .nsp-contact, .nsp-mbar, .nsp-similar, .nsp-lb { display: none !important; }
	.nsp-cols { display: block; }
}

/* Riquadro contatto più compatto: resta interamente visibile mentre si scorre */
.nsp-contact { padding: 16px 18px; }
.nsp-contact h2 { margin-bottom: 10px; }
.nsp-f { margin-bottom: 8px; }
.nsp-f input, .nsp-f select, .nsp-f textarea { padding: 8px 11px; }
.nsp-f textarea { resize: vertical; min-height: 64px; }
.nsp-send { height: 44px; }
.nsp-visit { height: 42px; }
.nsp-agent { margin-top: 14px; padding-top: 12px; }
.nsp-agent img { width: 56px; height: 56px; }
@media (max-height: 820px) and (min-width: 1001px) { .nsp-side { position: static; } }

/* Schermi stretti: la barra con prezzo e "Contatta" compare solo scorrendo, senza occupare spazio */
@media (max-width: 1000px) {
	.nsp-tabs { position: fixed; top: 0; left: 0; right: 0; margin: 0; transform: translateY(-110%); transition: transform .2s; box-shadow: 0 2px 10px rgba(0,0,0,.1); }
	.nsp-tabs.is-stuck { transform: none; }
	.nsp-tabs-in { justify-content: space-between; }
}
