/* ==========================================================================
   Casamà — stili del tema
   ========================================================================== */

/* Font ospitati nel tema ------------------------------------------------- */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/montserrat-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/montserrat-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/montserrat-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Acme Gothic"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/acme-gothic-light.woff2") format("woff2"); }
@font-face { font-family: "Acme Gothic"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/acme-gothic-regular.woff2") format("woff2"); }
@font-face { font-family: "Acme Gothic"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/acme-gothic-semibold.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/montserrat-latin-600-normal.woff2") format("woff2"); }

/* Variabili ----------------------------------------------------------------- */
:root {
	--green-900: #0f3d34;
	--green-800: #164a40;
	--green-600: #037d64;
	--green-100: #e6f0ed;
	--ivory: #f6f4ef;
	--sand: #ebe6dc;
	--ink: #17231f;
	--text: #3e4a46;
	--muted: #6b7672;
	--line: #e2ded5;
	--white: #fff;

	--display: "Acme Gothic", "Montserrat", -apple-system, "Segoe UI", sans-serif; /* font dei titoli */
	--sans: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

	--container: 1240px;
	--gutter: clamp(20px, 4vw, 40px);
	--section: clamp(72px, 10vw, 136px);
	--radius: 2px;
	--header-h: 88px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

/* Base ---------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--white);
	color: var(--text);
	font-family: var(--sans);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body.nav-open,
body.lightbox-open { overflow: hidden; }

img,
svg,
video,
iframe { max-width: 100%; }

img { height: auto; display: block; }

a { color: var(--green-600); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--green-900); }

:focus-visible { outline: 2px solid var(--green-600); outline-offset: 3px; }

h1, h2, h3, h4 { margin: 0 0 .6em; color: var(--ink); font-family: var(--display); font-weight: 400; line-height: 1.1; letter-spacing: -.01em; }
h1, .section-title, .cta-band__title { font-weight: 300; }
p { margin: 0 0 1.2em; }

em { font-style: italic; }
h1 em, h2 em, h3 em { color: var(--green-600); font-style: normal; }

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
.skip-link:focus {
	clip: auto;
	width: auto;
	height: auto;
	top: 12px;
	left: 12px;
	z-index: 1000;
	padding: 12px 18px;
	background: var(--white);
	color: var(--green-900);
}

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: calc(780px + var(--gutter) * 2); }

.icon { flex-shrink: 0; }

/* Elementi tipografici ricorrenti ------------------------------------------- */
.eyebrow {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 22px;
	color: var(--green-600);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .28em;
	line-height: 1.4;
	text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.eyebrow--light { color: #9fd3c5; }

.section-title { font-size: clamp(32px, 3.8vw, 50px); }

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding-bottom: 4px;
	border-bottom: 1px solid currentColor;
	color: var(--green-900);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: .16em;
	text-transform: uppercase;
	white-space: nowrap;
}
.link-arrow .icon { transition: transform .3s var(--ease); }
.link-arrow:hover { color: var(--green-600); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* Pulsanti ------------------------------------------------------------------ */
.casama-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 54px;
	padding: 0 30px;
	border: 1px solid transparent;
	border-radius: var(--radius);
	font-family: var(--sans);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: .18em;
	line-height: 1.2;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.casama-btn .icon { transition: transform .3s var(--ease); }
.casama-btn:hover .icon-arrow { transform: translateX(4px); }
.casama-btn--primary { background: var(--green-900); color: var(--white); }
.casama-btn--primary:hover { background: var(--green-600); color: var(--white); }
.casama-btn--ghost { border-color: var(--green-900); background: transparent; color: var(--green-900); }
.casama-btn--ghost:hover { background: var(--green-900); color: var(--white); }
.casama-btn--light { background: var(--white); color: var(--green-900); }
.casama-btn--light:hover { background: var(--ivory); color: var(--green-900); }
.casama-btn--small { min-height: 44px; padding: 0 20px; font-size: 11px; }

/* Intestazione -------------------------------------------------------------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, .96);
	backdrop-filter: saturate(160%) blur(10px);
	border-bottom: 1px solid transparent;
	transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.admin-bar .site-header { top: 32px; }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 10px 30px -24px rgba(15, 61, 52, .5); }
.site-header__inner { display: flex; align-items: center; gap: 32px; height: var(--header-h); }

.site-logo { display: block; flex-shrink: 0; }
.site-logo img { width: 184px; height: auto; }

.main-nav { margin-left: auto; }
.main-nav__list { display: flex; gap: 34px; margin: 0; padding: 0; list-style: none; }
.main-nav__list a {
	position: relative;
	display: block;
	padding: 8px 0;
	color: var(--ink);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: .16em;
	text-transform: uppercase;
}
.main-nav__list a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 2px;
	height: 1px;
	background: var(--green-600);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .35s var(--ease);
}
.main-nav__list a:hover::after,
.main-nav__list .current-menu-item > a::after,
.main-nav__list .current_page_item > a::after,
.main-nav__list .current-menu-ancestor > a::after { transform: scaleX(1); }
.main-nav__mobile-extra { display: none; }

.site-header__actions { display: flex; align-items: center; gap: 24px; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-size: 13px; font-weight: 500; white-space: nowrap; }
.nav-toggle { display: none; padding: 8px; border: 0; background: none; color: var(--green-900); cursor: pointer; }
.nav-toggle__close { display: none; }

/* Hero home ----------------------------------------------------------------- */
.hero { position: relative; padding: clamp(40px, 6vw, 72px) 0 0; background: linear-gradient(to bottom, var(--ivory) 0, var(--ivory) 78%, var(--white) 78%); }
.hero__inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.hero__content { padding: clamp(24px, 4vw, 56px) 0 clamp(80px, 9vw, 120px); }
.hero__title { margin-bottom: 28px; font-size: clamp(42px, 5.6vw, 78px); line-height: 1.04; }
.hero__title em { display: inline-block; }
.hero__text { max-width: 470px; margin-bottom: 40px; font-size: 17px; font-weight: 300; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__visual { position: relative; align-self: stretch; min-height: 520px; }
.hero__img,
.hero__panel { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__img { object-fit: cover; }
.hero__panel {
	display: grid;
	place-items: center;
	overflow: hidden;
	background:
		radial-gradient(120% 90% at 85% 0%, rgba(3, 125, 100, .55) 0%, rgba(3, 125, 100, 0) 55%),
		linear-gradient(160deg, var(--green-800) 0%, var(--green-900) 70%);
}
.hero__panel::before {
	content: "";
	position: absolute;
	inset: 28px;
	border: 1px solid rgba(255, 255, 255, .16);
}
.hero__panel img { width: 46%; max-width: 260px; opacity: .92; }
.hero__search { position: relative; z-index: 2; margin-top: -56px; }

/* Ricerca ------------------------------------------------------------------- */
.search-form {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	align-items: end;
	gap: 0;
	background: var(--white);
	box-shadow: 0 30px 60px -30px rgba(15, 61, 52, .28);
	border: 1px solid var(--line);
}
.search-form__field { position: relative; padding: 18px 24px 16px; border-right: 1px solid var(--line); }
.search-form__field label {
	display: block;
	margin-bottom: 4px;
	color: var(--muted);
	font-size: 10px;
	font-weight: 500;
	letter-spacing: .2em;
	text-transform: uppercase;
}
.search-form select {
	width: 100%;
	padding: 4px 22px 4px 0;
	border: 0;
	background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%230f3d34' stroke-width='1.4'%3E%3Cpath d='m2 4 4 4 4-4'/%3E%3C/svg%3E") no-repeat right center;
	color: var(--ink);
	font-family: var(--sans);
	font-size: 15px;
	appearance: none;
	cursor: pointer;
}
.search-form select:focus { outline: none; }
.search-form__field:focus-within { background: var(--ivory); }
.search-form__submit { align-self: stretch; }
.search-form__submit .casama-btn { width: 100%; height: 100%; min-height: 78px; border-radius: 0; }

.search-form--full { box-shadow: none; }

/* Sezioni ------------------------------------------------------------------- */
.section { padding: var(--section) 0; }
.section--tight { padding-top: clamp(48px, 6vw, 80px); }
.section--flush { padding-top: 0; }
.section--ivory { background: var(--ivory); }
.section--green { background: var(--green-900); color: rgba(255, 255, 255, .78); }
.section--green .section-title { color: var(--white); }
.section--green .section-title em { color: #9fd3c5; }

.section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 32px;
	margin-bottom: clamp(40px, 5vw, 64px);
}
.section-head .section-title { margin: 0; }

/* Schede immobile ----------------------------------------------------------- */
.property-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px) clamp(20px, 2.4vw, 32px); }

.property-card { display: flex; flex-direction: column; }
.property-card__media { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; background: var(--sand); }
.property-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.property-card:hover .property-card__media > img { transform: scale(1.045); }
.property-card__badges { position: absolute; top: 16px; left: 16px; display: flex; gap: 6px; }
.badge {
	display: inline-block;
	margin: 0;
	padding: 6px 12px;
	background: var(--white);
	color: var(--green-900);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: .18em;
	line-height: 1.4;
	text-transform: uppercase;
}
.badge--status { background: var(--green-900); color: var(--white); }
.property-card.is-closed .property-card__media > img { filter: grayscale(.6); opacity: .85; }

.property-card__body { display: flex; flex: 1; flex-direction: column; padding: 24px 0 0; }
.property-card__location { margin: 0 0 8px; color: var(--muted); font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; }
.property-card__title { margin: 0 0 16px; font-size: 23px; line-height: 1.22; }
.property-card__title a { color: var(--ink); }
.property-card__title a:hover { color: var(--green-600); }

.specs { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0 0 20px; padding: 0; list-style: none; color: var(--text); font-size: 13px; }
.specs li { display: inline-flex; align-items: center; gap: 7px; }
.specs .icon { color: var(--green-600); }

.property-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: auto;
	padding-top: 18px;
	border-top: 1px solid var(--line);
}
.property-card__price { margin: 0; color: var(--green-900); font-family: var(--display); font-size: 26px; font-weight: 400; line-height: 1; }

.placeholder-img {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	min-height: 200px;
	background: linear-gradient(150deg, var(--green-800), var(--green-900));
}
.placeholder-img img { width: 64px !important; height: auto !important; opacity: .35; }

/* Intro home ---------------------------------------------------------------- */
.intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 8vw, 120px); }
.intro__body > p { font-size: 17px; font-weight: 300; }
.pillars { margin: 40px 0 44px; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.pillars li {
	display: grid;
	grid-template-columns: 48px 210px 1fr;
	align-items: baseline;
	padding: 20px 0;
	border-bottom: 1px solid var(--line);
	font-size: 15px;
}
.pillars__num { color: var(--green-600); font-family: var(--display); font-size: 18px; }
.pillars strong { color: var(--ink); font-family: var(--display); font-size: 20px; font-weight: 400; }

/* Servizi (home) ------------------------------------------------------------ */
.service-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	border-top: 1px solid var(--line);
	border-left: 1px solid var(--line);
}
.service-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 290px;
	padding: 40px 36px 36px;
	border-right: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	color: var(--text);
	transition: background-color .35s var(--ease), color .35s var(--ease);
}
.service-card__icon { margin-bottom: auto; color: var(--green-600); transition: color .35s var(--ease); }
.service-card__num { position: absolute; top: 40px; right: 36px; color: var(--muted); font-family: var(--display); font-size: 18px; }
.service-card__title { margin: 48px 0 12px; font-size: 22px; transition: color .35s var(--ease); }
.service-card__text { margin: 0; font-size: 14px; }
.service-card:hover { background: var(--green-900); color: rgba(255, 255, 255, .75); }
.service-card:hover .service-card__title { color: var(--white); }
.service-card:hover .service-card__icon,
.service-card:hover .service-card__num { color: #9fd3c5; }

/* Fascia valutazione -------------------------------------------------------- */
.cta-band { position: relative; overflow: hidden; padding: clamp(64px, 8vw, 104px) 0; background: var(--green-900); color: rgba(255, 255, 255, .78); }
.cta-band__inner { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(32px, 5vw, 72px); }
.cta-band__mark { width: 96px; opacity: .9; }
.cta-band__title { margin: 0 0 12px; color: var(--white); font-size: clamp(32px, 4vw, 50px); }
.cta-band__title em { color: #9fd3c5; }
.cta-band__text { max-width: 560px; margin: 0; font-weight: 300; }

/* Visita / contatti --------------------------------------------------------- */
.visit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 8vw, 120px); align-items: start; }
.visit__text { max-width: 440px; margin-bottom: 36px; font-weight: 300; font-size: 17px; }

.contact-list { margin: 0; border-top: 1px solid var(--line); }
.contact-list__item { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.contact-list dt { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; }
.contact-list dt .icon { color: var(--green-600); }
.contact-list dd { margin: 0; color: var(--ink); font-size: 16px; }
.contact-list dd a { color: var(--ink); }
.contact-list dd a:hover { color: var(--green-600); }

/* Intestazione pagine interne ---------------------------------------------- */
.page-hero { padding: clamp(64px, 9vw, 120px) 0 clamp(48px, 6vw, 80px); background: var(--ivory); }
.page-hero__title { max-width: 900px; margin: 0; font-size: clamp(40px, 5.2vw, 70px); line-height: 1.06; }
.page-hero__text { max-width: 620px; margin: 24px 0 0; font-size: 17px; font-weight: 300; }

/* Archivio ------------------------------------------------------------------ */
.filters { margin-bottom: 36px; }
.filters__toggle { display: none; }
.results-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 36px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.results-bar__count { margin: 0; color: var(--ink); font-size: 14px; }
.results-bar__reset { margin-left: 12px; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.results-bar__sort { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.results-bar__sort label { color: var(--muted); }
.results-bar__sort select { padding: 8px 32px 8px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%230f3d34' stroke-width='1.4'%3E%3Cpath d='m2 4 4 4 4-4'/%3E%3C/svg%3E") no-repeat right 10px center; color: var(--ink); font-family: var(--sans); font-size: 13px; appearance: none; }

.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 64px; }
.pagination .page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 8px; border: 1px solid var(--line); color: var(--ink); font-size: 14px; }
.pagination .page-numbers.current,
.pagination a.page-numbers:hover { border-color: var(--green-900); background: var(--green-900); color: var(--white); }
.pagination .dots { border: 0; }

.empty-state { max-width: 560px; margin: 40px auto; text-align: center; }
.empty-state > img { margin: 0 auto 28px; }
.empty-state .eyebrow { justify-content: center; }
.empty-state .eyebrow::before { display: none; }
.empty-state h1,
.empty-state h2 { font-size: clamp(30px, 4vw, 44px); }
.empty-state p { margin-bottom: 32px; }

/* Scheda immobile ----------------------------------------------------------- */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; padding: 28px 0; color: var(--muted); font-size: 12px; letter-spacing: .04em; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--green-600); }
.breadcrumb [aria-current] { color: var(--ink); }

.gallery { position: relative; display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 8px; height: clamp(340px, 44vw, 600px); }
.gallery__item { position: relative; display: block; overflow: hidden; background: var(--sand); }
.gallery__item:first-child { grid-row: span 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.gallery__item:hover img { transform: scale(1.03); }
.gallery--count-1 { grid-template-columns: 1fr; }
.gallery--count-0 { grid-template-columns: 1fr; height: 300px; }
.gallery--count-2 { grid-template-columns: 2fr 1fr; }
.gallery--count-2 .gallery__item { grid-row: span 2; }
.gallery--count-3 { grid-template-columns: 2fr 1fr; }
.gallery--count-4 { grid-template-columns: 2fr 1fr 1fr; }
.gallery--count-4 .gallery__item:nth-child(2) { grid-row: span 2; }
.gallery__all {
	position: absolute;
	right: 20px;
	bottom: 20px;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 18px;
	border: 0;
	background: var(--white);
	color: var(--green-900);
	font-family: var(--sans);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .14em;
	text-transform: uppercase;
	cursor: pointer;
	box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .35);
}
.gallery__all:hover { background: var(--green-900); color: var(--white); }

.property__layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: clamp(40px, 6vw, 96px); padding: clamp(48px, 6vw, 72px) 0 var(--section); }
.property__header .eyebrow { margin-bottom: 18px; }
.property__title { margin-bottom: 16px; font-size: clamp(38px, 4.6vw, 60px); }
.property__location { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--muted); }
.property__location .icon { color: var(--green-600); }

.key-specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); margin: 40px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.key-specs li { display: flex; flex-direction: column; gap: 6px; padding: 26px 20px 24px 0; }
.key-specs li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.key-specs .icon { margin-bottom: 6px; color: var(--green-600); }
.key-specs strong { color: var(--ink); font-family: var(--display); font-size: 30px; font-weight: 400; line-height: 1; }
.key-specs span { color: var(--muted); font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; }

.property__section { padding-top: 56px; }
.property__section-title { margin-bottom: 24px; font-size: 28px; }

.details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; margin: 0; }
.details > div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.details dt { color: var(--muted); }
.details dd { margin: 0; color: var(--ink); font-weight: 500; text-align: right; }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 24px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.features li { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.features .icon { color: var(--green-600); }

.video-embed iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; }

.property__aside { position: relative; }
.contact-card { position: sticky; top: calc(var(--header-h) + 24px); padding: 36px 32px; border: 1px solid var(--line); background: var(--white); }
.contact-card__label { margin: 0 0 6px; color: var(--muted); font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
.contact-card__price { margin: 0 0 12px; color: var(--green-900); font-family: var(--display); font-size: 40px; font-weight: 400; line-height: 1; }
.contact-card__actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin: 24px 0 32px; }
.contact-card__actions .casama-btn { min-height: 48px; padding: 0 14px; }
.contact-card__title { margin: 0 0 20px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 21px; }

/* Moduli -------------------------------------------------------------------- */
.casama-form__hp { position: absolute; left: -9999px; }
.casama-form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.casama-form__field { margin: 0 0 18px; }
.casama-form label,
.casama-form legend { display: block; margin-bottom: 6px; color: var(--muted); font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.casama-form input[type="text"],
.casama-form input[type="email"],
.casama-form input[type="tel"],
.casama-form input[type="number"],
.casama-form select,
.casama-form textarea {
	width: 100%;
	padding: 12px 0;
	border: 0;
	border-bottom: 1px solid #cfcac0;
	border-radius: 0;
	background: transparent;
	color: var(--ink);
	font-family: var(--sans);
	font-size: 15px;
	transition: border-color .2s var(--ease);
	appearance: none;
}
.casama-form select { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%230f3d34' stroke-width='1.4'%3E%3Cpath d='m2 4 4 4 4-4'/%3E%3C/svg%3E") no-repeat right center; }
.casama-form textarea { resize: vertical; min-height: 100px; }
.casama-form input:focus,
.casama-form select:focus,
.casama-form textarea:focus { outline: none; border-bottom-color: var(--green-600); }
.casama-form__choices { margin: 4px 0 22px; padding: 0; border: 0; }
.casama-form__choices label { display: inline-flex; align-items: center; gap: 8px; margin: 6px 20px 0 0; color: var(--ink); font-size: 14px; letter-spacing: 0; text-transform: none; cursor: pointer; }
.casama-form__privacy label { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 10px; color: var(--muted); font-size: 12px; font-weight: 400; letter-spacing: 0; line-height: 1.6; text-transform: none; }
.casama-form__privacy input { margin-top: 3px; accent-color: var(--green-600); }
.casama-form input[type="radio"] { accent-color: var(--green-600); }
.casama-form__submit { margin: 24px 0 0; }
.casama-form__submit .casama-btn { width: 100%; }
.casama-form-notice { margin-bottom: 20px; padding: 16px 18px; border-left: 2px solid var(--green-600); background: var(--green-100); color: var(--green-900); font-size: 14px; }
.casama-form-notice.is-error { border-color: #b3261e; background: #fbeeed; color: #7a1d17; }

/* Moduli su fondo verde */
.section--green .casama-form label,
.section--green .casama-form legend,
.section--green .casama-form__privacy label { color: rgba(255, 255, 255, .6); }
.section--green .casama-form input,
.section--green .casama-form select,
.section--green .casama-form textarea { border-bottom-color: rgba(255, 255, 255, .28); color: var(--white); }
.section--green .casama-form select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23ffffff' stroke-width='1.4'%3E%3Cpath d='m2 4 4 4 4-4'/%3E%3C/svg%3E"); }
.section--green .casama-form select option { color: var(--ink); }
.section--green .casama-form input:focus,
.section--green .casama-form select:focus,
.section--green .casama-form textarea:focus { border-bottom-color: #9fd3c5; }
.section--green .casama-form__choices label { color: var(--white); }
.section--green .casama-form__privacy a { color: #9fd3c5; }
.section--green .casama-btn--primary { background: var(--white); color: var(--green-900); }
.section--green .casama-btn--primary:hover { background: #9fd3c5; }

/* Contenuti esterni con consenso (mappe, video) ------------------------------ */
.video-consent { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; background: var(--green-900); color: rgba(255, 255, 255, .75); text-align: center; }
.video-consent .map-consent__inner .icon { color: #9fd3c5; }
.video-consent .casama-btn--ghost { border-color: var(--white); color: var(--white); }
.video-consent .casama-btn--ghost:hover { background: var(--white); color: var(--green-900); }
.video-consent small,
.video-consent small a { color: rgba(255, 255, 255, .6); }
.video-consent.is-loaded { display: block; }
.video-consent iframe { display: block; width: 100%; height: 100%; border: 0; }
.map-consent__inner small a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* Mappa con consenso -------------------------------------------------------- */
.map-consent { position: relative; display: grid; place-items: center; min-height: 380px; background: var(--ivory); border: 1px solid var(--line); text-align: center; }
.map-consent__inner { max-width: 380px; padding: 32px; }
.map-consent__inner .icon { margin: 0 auto 12px; color: var(--green-600); }
.map-consent__inner p { color: var(--ink); font-family: var(--display); font-size: 20px; line-height: 1.3; }
.map-consent__inner .casama-btn { white-space: nowrap; }
.map-consent__inner small { display: block; margin-top: 14px; color: var(--muted); font-size: 11px; }
.map-consent.is-loaded { display: block; }
.map-consent iframe { display: block; width: 100%; height: 420px; border: 0; }

/* Contenuti testuali (editor) ----------------------------------------------- */
.prose { font-size: 16px; }
.prose > *:last-child { margin-bottom: 0; }
.prose .wp-block-group__inner-container { display: contents; }
.prose h2 { margin-top: 1.6em; font-size: clamp(30px, 3.4vw, 42px); }
.prose h3 { margin-top: 1.4em; font-size: 22px; }
.prose ul,
.prose ol { padding-left: 1.2em; }
.prose blockquote { margin: 2em 0; padding-left: 24px; border-left: 2px solid var(--green-600); color: var(--ink); font-family: var(--display); font-size: 24px; font-weight: 300; line-height: 1.4; }
.prose--page > p:first-child { color: var(--ink); font-size: clamp(18px, 1.8vw, 21px); font-weight: 300; line-height: 1.6; }
.prose--page h2:first-child { margin-top: 0; }

/* Chi siamo */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 112px); align-items: start; }
.about__media { position: sticky; top: calc(var(--header-h) + 32px); }
.about__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about__panel { display: grid; place-items: center; aspect-ratio: 4 / 5; background: linear-gradient(160deg, var(--green-800), var(--green-900)); }
.about__panel img { width: 40%; aspect-ratio: auto; opacity: .9; }
.about__content > h2:first-child { margin-top: 0; }
.prose .values { margin: 3em 0; padding: 40px 0 8px; border-top: 1px solid var(--line); }
.prose .values > h2 { margin-top: 0; }
.prose .value-item { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.prose .value-item h3 { margin: 0; color: var(--green-600); font-weight: 400; }
.prose .value-item p { margin: 0; }

/* Servizi */
.services-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(40px, 7vw, 112px); align-items: start; }
.services-nav { position: sticky; top: calc(var(--header-h) + 32px); }
.services-nav ol { margin: 0 0 32px; padding: 0; list-style: none; counter-reset: srv; border-top: 1px solid var(--line); }
.services-nav li { counter-increment: srv; border-bottom: 1px solid var(--line); }
.services-nav ol a { display: flex; gap: 14px; padding: 14px 0; color: var(--ink); font-size: 14px; line-height: 1.45; }
.services-nav ol a::before { content: counter(srv, decimal-leading-zero); color: var(--green-600); font-family: var(--display); }
.services-nav ol a:hover { color: var(--green-600); }
.services-content { counter-reset: service; }
.prose .service-item { counter-increment: service; position: relative; padding: 48px 0 40px 88px; border-top: 1px solid var(--line); }
.prose .service-item::before { content: counter(service, decimal-leading-zero); position: absolute; top: 50px; left: 0; color: var(--green-600); font-family: var(--display); font-size: 34px; font-weight: 300; line-height: 1; }
.prose .service-item h2 { margin-top: 0; font-size: clamp(28px, 3vw, 38px); }
.prose .service-item p:last-child { margin-bottom: 0; }
.services-content > p:first-child { margin-bottom: 48px; }

.valuation { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 8vw, 120px); }
.valuation__intro > p:not(.eyebrow) { font-weight: 300; font-size: 17px; }
.valuation__steps { margin: 40px 0 0; padding: 0; list-style: none; }
.valuation__steps li { display: flex; align-items: center; gap: 18px; padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, .14); color: var(--white); }
.valuation__steps span { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 50%; font-family: var(--display); }

/* Contatti */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 8vw, 120px); }
.contact-layout__info .prose { margin-bottom: 40px; }
.contact-layout__form { padding: clamp(28px, 4vw, 48px); background: var(--ivory); }
.contact-layout__title { font-size: 34px; }

/* Piè di pagina ------------------------------------------------------------- */
.site-footer { padding: clamp(64px, 8vw, 104px) 0 32px; background: #0b2f28; color: rgba(255, 255, 255, .66); font-size: 14px; }
.site-footer a { color: rgba(255, 255, 255, .86); }
.site-footer a:hover { color: #9fd3c5; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr; gap: 48px; padding-bottom: 56px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.site-footer__brand .site-logo img { width: 200px; margin-bottom: 24px; }
.site-footer__brand p { max-width: 320px; }
.site-footer__title { margin-bottom: 20px; color: var(--white); font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; }
.site-footer__links,
.site-footer__contacts { margin: 0; padding: 0; list-style: none; }
.site-footer__links li { margin-bottom: 10px; }
.site-footer__contacts li { display: flex; gap: 12px; margin-bottom: 14px; }
.site-footer__contacts .icon { margin-top: 3px; color: #9fd3c5; }
.site-footer__hours-note { font-size: 12px; font-style: italic; }
.social { display: flex; gap: 10px; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 50%; }
.social a:hover { border-color: #9fd3c5; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 28px; font-size: 12px; }
.site-footer__bottom p { margin: 0; }
.site-footer__legal { display: flex; gap: 24px; margin: 0; padding: 0; list-style: none; }

.whatsapp-float {
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 90;
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--green-600);
	color: var(--white);
	box-shadow: 0 14px 30px -10px rgba(15, 61, 52, .6);
	transition: transform .3s var(--ease), background-color .3s var(--ease);
}
.whatsapp-float:hover { transform: translateY(-3px); background: var(--green-900); color: var(--white); }

/* Banner cookie ------------------------------------------------------------- */
.cookie-banner {
	position: fixed;
	left: 24px;
	bottom: 24px;
	z-index: 950;
	width: min(560px, calc(100vw - 32px));
	max-height: calc(100vh - 48px);
	overflow-y: auto;
	padding: 32px 32px 28px;
	background: var(--white);
	border: 1px solid var(--line);
	border-top: 3px solid var(--green-900);
	box-shadow: 0 30px 70px -30px rgba(15, 61, 52, .45);
	opacity: 0;
	transform: translateY(16px);
	transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.cookie-banner.is-visible { opacity: 1; transform: none; }
.cookie-banner[hidden] { display: none; }
.cookie-banner__close { position: absolute; top: 14px; right: 14px; padding: 6px; border: 0; background: none; color: var(--muted); cursor: pointer; }
.cookie-banner__close:hover { color: var(--green-900); }
.cookie-banner__title { margin: 0 0 10px; padding-right: 32px; color: var(--ink); font-family: var(--display); font-size: 24px; font-weight: 400; line-height: 1.2; }
.cookie-banner__text { margin: 0 0 22px; font-size: 13px; line-height: 1.7; }
.cookie-banner__text a { text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner__prefs fieldset { margin: 0 0 22px; padding: 0; border: 0; border-top: 1px solid var(--line); }
.cookie-option { display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.6; cursor: pointer; }
.cookie-option input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--green-600); }
.cookie-option strong { display: block; color: var(--ink); font-weight: 500; }
.cookie-option.is-locked { cursor: default; opacity: .75; }
.cookie-banner__actions { display: grid; grid-template-columns: repeat(3, auto); justify-content: end; gap: 8px; }
.cookie-banner__actions [hidden] { display: none; }
.cookie-banner__actions .casama-btn { padding: 0 16px; }

/* Pagine legali */
.prose .wp-block-table { margin: 1.4em 0 2em; overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 1.55; }
.prose th { padding: 10px 12px; border-bottom: 1px solid var(--green-900); color: var(--ink); font-weight: 500; text-align: left; white-space: nowrap; }
.prose td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose mark { padding: 0 4px; background: #fcf4e3; color: #7a5a12; font-size: .9em; }
.site-footer__legal-wrap { display: flex; flex-wrap: wrap; gap: 24px; }
.site-footer__legal-wrap a { color: rgba(255, 255, 255, .86); }

/* Galleria a schermo intero ------------------------------------------------- */
.lightbox { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; background: rgba(8, 28, 24, .96); }
.lightbox[hidden] { display: none; }
.lightbox__figure { margin: 0; max-width: 88vw; max-height: 86vh; text-align: center; }
.lightbox__figure img { max-width: 88vw; max-height: 80vh; width: auto; margin: 0 auto; object-fit: contain; }
.lightbox__counter { margin-top: 16px; color: rgba(255, 255, 255, .7); font-size: 12px; letter-spacing: .2em; }
.lightbox__close,
.lightbox__nav { position: absolute; border: 0; background: none; color: var(--white); font-size: 44px; line-height: 1; cursor: pointer; opacity: .8; }
.lightbox__close:hover,
.lightbox__nav:hover { opacity: 1; }
.lightbox__close { top: 18px; right: 26px; }
.lightbox__prev { left: 20px; }
.lightbox__next { right: 20px; }

/* Responsive ---------------------------------------------------------------- */
@media (max-width: 1180px) {
	.header-phone span { display: none; }
	.main-nav__list { gap: 26px; }
}

@media (max-width: 1024px) {
	:root { --header-h: 76px; }

	/* backdrop-filter farebbe da contenitore al menu "fixed": su mobile l'intestazione è bianca piena. */
	.site-header { background: var(--white); backdrop-filter: none; -webkit-backdrop-filter: none; }
	.site-header__actions { margin-left: auto; gap: 8px; }
	.header-phone { padding: 10px; }
	.site-logo img { width: 150px; }
	.nav-toggle { display: block; margin-right: -8px; }
	.site-header__actions .casama-btn { display: none; }
	.main-nav {
		position: fixed;
		inset: var(--header-h) 0 0 0;
		z-index: 99;
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		padding: 24px var(--gutter) calc(32px + env(safe-area-inset-bottom));
		overflow-y: auto;
		overscroll-behavior: contain;
		background: var(--white);
		opacity: 0;
		visibility: hidden;
		transform: translateY(-8px);
		transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
	}
	.admin-bar .main-nav { top: calc(var(--header-h) + 46px); }
	.nav-open .main-nav { opacity: 1; visibility: visible; transform: none; }
	.nav-open .nav-toggle__open { display: none; }
	.nav-open .nav-toggle__close { display: block; }
	.main-nav__list { flex-direction: column; gap: 0; }
	.main-nav__list a { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); font-family: var(--display); font-size: 30px; font-weight: 300; letter-spacing: 0; text-transform: none; }
	.main-nav__list a::after { display: none; }
	.main-nav__mobile-extra { display: block; padding-top: 28px; }
	.main-nav__mobile-extra a { display: inline-flex; align-items: center; gap: 10px; color: var(--green-900); font-size: 16px; }

	.hero { background: var(--ivory); }
	.hero__inner { grid-template-columns: 1fr; }
	.hero__content { padding-bottom: 8px; }
	.hero__visual { min-height: 360px; }
	.hero__search { margin-top: 0; padding-top: 0; transform: translateY(-40px); margin-bottom: -40px; }

	.property-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.intro,
	.visit,
	.valuation,
	.contact-layout { grid-template-columns: 1fr; }
	.cta-band__inner { grid-template-columns: 1fr; }
	.cta-band__mark { width: 72px; }

	.property__layout { grid-template-columns: 1fr; }
	.contact-card { position: static; }
	.about,
	.services-layout { grid-template-columns: 1fr; }
	.about__media,
	.services-nav { position: static; }
	.about__media { max-width: 520px; }

	.site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 782px) {
	.admin-bar .site-header { top: 46px; }
}

@media (max-width: 720px) {
	body { font-size: 15px; }
	.cookie-banner { left: 16px; bottom: 16px; padding: 26px 20px 20px; }
	.cookie-banner__actions { grid-template-columns: 1fr 1fr; }
	.cookie-banner__actions .js-cookie-customize,
	.cookie-banner__actions .js-cookie-save { grid-column: span 2; }
	.section-head { flex-direction: column; align-items: flex-start; }

	.search-form { grid-template-columns: 1fr; }
	.search-form__field { border-right: 0; border-bottom: 1px solid var(--line); padding: 14px 20px 12px; }
	.search-form__submit .casama-btn { min-height: 58px; }

	.filters__toggle {
		display: flex;
		align-items: center;
		gap: 10px;
		padding: 16px 20px;
		border: 1px solid var(--line);
		color: var(--green-900);
		font-size: 12px;
		font-weight: 500;
		letter-spacing: .16em;
		text-transform: uppercase;
		cursor: pointer;
		list-style: none;
	}
	.filters__toggle::-webkit-details-marker { display: none; }
	.filters[open] .filters__toggle { border-bottom: 0; }
	.results-bar { flex-direction: column; align-items: flex-start; }

	.property-grid,
	.service-grid { grid-template-columns: 1fr; }
	.service-card { min-height: 0; }

	.pillars li { grid-template-columns: 40px 1fr; row-gap: 2px; font-size: 14px; }
	.pillars li > span:last-child { grid-column: 2; }

	.gallery { grid-template-columns: 1fr 1fr !important; grid-template-rows: auto; height: auto; }
	.gallery__item { aspect-ratio: 4 / 3; }
	.gallery__item:first-child { grid-column: span 2; grid-row: auto; }
	.gallery__item:nth-child(n+4) { display: none; }
	.gallery--count-2 .gallery__item { grid-row: auto; }
	.gallery--count-4 .gallery__item:nth-child(2) { grid-row: auto; }

	.key-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.key-specs li + li { padding-left: 0; border-left: 0; }
	.key-specs li:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
	.key-specs li:nth-child(n+3) { border-top: 1px solid var(--line); }
	.details { grid-template-columns: 1fr; }
	.features { grid-template-columns: 1fr 1fr; }
	.contact-card { padding: 28px 22px; }

	.casama-form__row { grid-template-columns: 1fr; }
	.contact-list__item { grid-template-columns: 1fr; gap: 6px; }
	.prose .value-item { grid-template-columns: 1fr; gap: 8px; }
	.prose .service-item { padding-left: 0; padding-top: 88px; }
	.prose .service-item::before { top: 40px; }

	.site-footer__grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
.prose .js-cookie-prefs { margin: .4em 0 1.6em; }

/* Testi modificabili: grassetto scelto dall'editor */
h1 strong, h2 strong, h3 strong, h4 strong,
.eyebrow strong, .casama-btn strong { font-weight: 600; }
p strong, li strong, dd strong, dt strong, p b, h1 b, h2 b, h3 b { font-weight: 600; }
