/* ==========================================================================
   ITACASA Immobiliare — stile principale
   Identità ufficiale: rosso e grigi del logo, giallo, grafite e mare del volantino.
   Font: Kumbh Sans, alternativa gratuita e web a Nexa (font del brand).
   ========================================================================== */

@font-face { font-family: "Kumbh Sans"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/kumbh-sans-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Kumbh Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/kumbh-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Kumbh Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/kumbh-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Kumbh Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/kumbh-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Kumbh Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/kumbh-sans-latin-700-normal.woff2") format("woff2"); }

:root {
	--red: #BB2648;
	--red-dark: #98193A;
	--red-tint: #FAE8EC;
	--ink: #333638;
	--graphite: #414141;
	--gray: #53575A;
	--muted: #80858A;
	--line: #EBE1D3;
	--ivory: #F8F1E7;
	--paper: #FFFCF7;
	--gold: #1E8290;      /* accento secondario: mare */
	--gold-soft: #D2E8EB;
	--sea: #1E8290;
	--sea-dark: #176670;
	--sun: #FAB947;
	--ok: #2E6B4A;

	--serif: "Kumbh Sans", "Nexa", system-ui, sans-serif;   /* titoli */
	--sans: "Kumbh Sans", "Nexa", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--radius: 16px;
	--radius-sm: 10px;
	--shadow: 0 1px 2px rgba(46, 50, 53, .04), 0 8px 28px rgba(46, 50, 53, .07);
	--shadow-lg: 0 2px 6px rgba(46, 50, 53, .06), 0 24px 60px rgba(46, 50, 53, .14);
	--header-h: 82px;
	--gutter: clamp(16px, 4vw, 40px);
}

*, *::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;
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.65;
	color: var(--ink);
	background: var(--paper);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
img, svg, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red-dark); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.15; letter-spacing: -.025em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3 { font-size: 1.25rem; }
h1 em, h2 em, h3 em, p em.hl { font-style: normal; color: var(--red); font-weight: inherit; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--sea); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--red-tint); color: var(--ink); }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 1000; border-radius: 6px; }
.skip-link:focus { left: 8px; color: #fff; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.narrow-left > * { max-width: 760px; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-tight { padding: clamp(28px, 4vw, 48px) 0; }

.eyebrow {
	display: inline-flex; align-items: center; gap: 10px;
	font-family: var(--serif); font-size: .8rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
	color: var(--red); margin: 0 0 16px;
}
.eyebrow::before {
	content: ""; width: 20px; height: 20px; flex: none;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='m15.5 8.5-2.2 4.8-4.8 2.2 2.2-4.8z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='m15.5 8.5-2.2 4.8-4.8 2.2 2.2-4.8z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
}
.eyebrow-light { color: #fff; }

.lead { font-size: clamp(1.1rem, 1.6vw, 1.28rem); line-height: 1.6; color: var(--gray); }

.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head p { color: var(--gray); font-size: 1.08rem; }
.section-head.row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.section-head.row h2 { margin-bottom: 0; }

/* ---------- Bottoni ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	padding: 14px 26px; border-radius: 999px; border: 1.5px solid transparent;
	font: 500 .95rem/1.2 var(--serif); letter-spacing: 0; text-decoration: none; cursor: pointer;
	transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
	white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; box-shadow: 0 8px 22px rgba(158, 27, 31, .28); }
.btn-outline { border-color: currentColor; color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-light { background: rgba(255,255,255,.94); color: var(--ink); }
.btn-light:hover { background: #fff; color: var(--red); }
.btn-sm { padding: 10px 18px; font-size: .88rem; }
.btn-block { width: 100%; }
.btn .icon { flex: none; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; font-size: .95rem; }
.link-arrow .icon { transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(4px); }
.link-arrow.light { color: var(--gold-soft); margin-top: 14px; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(255, 253, 249, .94);
	backdrop-filter: saturate(160%) blur(12px);
	-webkit-backdrop-filter: saturate(160%) blur(12px);
	border-bottom: 1px solid transparent;
	transition: background .3s, border-color .3s, color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.main-nav .menu a, .header-phone, .header-cta { white-space: nowrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; }
.brand-logo { height: 54px; width: auto; max-width: 260px; object-fit: contain; }
.brand-mark { color: var(--red); display: grid; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font-family: var(--serif); font-size: 1.65rem; font-weight: 600; letter-spacing: .06em; }
.brand-text small { font-size: .62rem; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

.main-nav { margin-left: auto; }
.main-nav .menu { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.main-nav .menu > li { position: relative; }
.main-nav .menu a {
	display: block; padding: 10px 12px; text-decoration: none; color: inherit;
	font-family: var(--serif); font-weight: 400; font-size: .93rem; border-radius: 999px; transition: background .2s, color .2s;
}
.main-nav .menu a:hover, .main-nav .current-menu-item > a, .main-nav .current_page_item > a, .main-nav .current-menu-ancestor > a { color: var(--red); }
.main-nav .sub-menu { list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0; min-width: 220px; background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s; }
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.main-nav .sub-menu a { color: var(--ink); border-radius: 6px; }
.nav-mobile-extra { display: none; }

.header-actions { display: flex; align-items: center; gap: 14px; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-family: var(--serif); font-weight: 500; font-size: .92rem; }
.header-phone .icon { color: var(--red); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 10px; color: inherit; }
.nav-toggle span { display: block; height: 1.6px; background: currentColor; margin: 6px 0; transition: transform .3s, opacity .3s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7.6px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7.6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { max-width: 15ch; text-wrap: balance; }
.hero h1 .h1-brand { display: block; max-width: none; font-size: .5em; font-weight: 600; letter-spacing: .08em; line-height: 1.2; color: var(--red); margin-bottom: .35em; white-space: nowrap; }
.hero-text { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--gray); max-width: 44ch; margin: 0; }

/* variante illustrata (predefinita): cielo crema, mare, barchetta del logo */
.hero-illustrated {
	background: linear-gradient(180deg, var(--ivory) 0%, var(--paper) 70%);
	padding: clamp(40px, 6vw, 80px) 0 clamp(170px, 21vw, 300px);
}
.hero-illustrated .eyebrow { color: var(--red); }
.hero-illustrated h1 em { color: var(--red); }
.hero-scene { position: absolute; left: 0; right: 0; bottom: 0; z-index: -1; height: clamp(190px, 24vw, 340px); pointer-events: none; }
.hero-scene svg { width: 100%; height: 100%; display: block; }
.hero-scene .boat { transform-box: fill-box; transform-origin: 50% 100%; }
.hero-scene .cloud { transform-box: fill-box; }
@media (prefers-reduced-motion: no-preference) {
	.hero-scene .boat { animation: bob 5.5s ease-in-out infinite; }
	.hero-scene .wave-line { animation: drift 9s linear infinite; }
	.hero-scene .cloud-a { animation: float 18s ease-in-out infinite alternate; }
	.hero-scene .cloud-b { animation: float 24s ease-in-out infinite alternate-reverse; }
}
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-1.2deg); } 50% { transform: translateY(-7px) rotate(1.2deg); } }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-120px); } }
@keyframes float { from { transform: translateX(-14px); } to { transform: translateX(18px); } }

/* variante con foto (se caricata nel Personalizza) */
.hero.has-image { color: #fff; min-height: min(86svh, 820px); display: flex; align-items: flex-end; padding: 80px 0 clamp(48px, 7vw, 96px); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero.has-image::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(46,50,53,.35) 0%, rgba(46,50,53,.15) 40%, rgba(46,50,53,.75) 100%); }
.hero.has-image h1, .hero.has-image .eyebrow { color: #fff; }
.hero.has-image .hero-text { color: rgba(255,255,255,.88); }

.hero-panel {
	background: #fff; color: var(--ink);
	border-radius: var(--radius); padding: 10px; box-shadow: var(--shadow-lg);
}
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--ivory); border-radius: 10px; padding: 5px; }
.tabs button { border: 0; background: transparent; padding: 11px 12px; border-radius: 8px; font: 500 .92rem var(--serif); color: var(--gray); cursor: pointer; transition: .2s; }
.tabs button.is-active { background: #fff; color: var(--red); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.tab-panel { padding: 18px 14px 14px; }
.tab-lead { color: var(--gray); font-size: .98rem; }
.hero .tab-panel .link-arrow.light { color: var(--red); }

/* ---------- Form ricerca ---------- */
.search-form label > span, .lead-form label > span, .mutuo label > span {
	display: block; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px;
}
select, input[type="text"], input[type="email"], input[type="tel"], input[type="number"], textarea {
	width: 100%; font: 500 .98rem/1.3 var(--sans); color: var(--ink);
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
	padding: 12px 14px; transition: border-color .2s, box-shadow .2s; appearance: none; -webkit-appearance: none;
}
select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%237A7E84' stroke-width='1.6'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px;
}
select:focus, input:focus, textarea:focus { outline: none; border-color: var(--sea); box-shadow: 0 0 0 3px rgba(31, 126, 138, .16); }
textarea { resize: vertical; min-height: 96px; }

.seg { display: inline-flex; gap: 4px; margin-bottom: 16px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-block; padding: 7px 16px; border-radius: 999px; font-family: var(--serif); font-size: .85rem; font-weight: 400; color: var(--gray); border: 1px solid var(--line); transition: .2s; }
.seg input:checked + span { background: var(--graphite); color: #fff; border-color: var(--graphite); }
.seg input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

.search-hero .search-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.search-hero .search-fields label:first-child { grid-column: 1 / -1; }
.search-hero .search-fields .btn { grid-column: 1 / -1; padding: 14px 20px; margin-top: 4px; }

.search-band { background: var(--ivory); border-bottom: 1px solid var(--line); }
.search-bar .search-fields { display: grid; grid-template-columns: repeat(5, 1fr) auto; gap: 12px; align-items: end; }
.search-bar .search-fields .btn { padding: 13px 22px; }
.search-extra { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 14px; flex-wrap: wrap; }
.check-inline { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; color: var(--gray); cursor: pointer; }
.check-inline input, .check input { accent-color: var(--red); width: 17px; height: 17px; }
.sort { display: flex; align-items: center; gap: 10px; }
.sort > span { margin: 0 !important; }
.sort select { width: auto; padding-top: 9px; padding-bottom: 9px; }

/* ---------- Manifesto ---------- */
.manifesto { text-align: center; background: var(--paper); position: relative; }
.manifesto-compass { color: var(--red); display: inline-grid; margin-bottom: 22px; }
.manifesto-text { font-family: var(--serif); font-size: clamp(1.3rem, 2.3vw, 1.8rem); line-height: 1.4; font-weight: 300; color: var(--ink); text-wrap: balance; margin: 0 auto 26px; }
.manifesto-sign { font-family: var(--serif); font-size: 1.05rem; color: var(--gray); margin: 0; display: inline-flex; align-items: center; gap: 10px; }
.manifesto-sign .icon { color: var(--red); }
.manifesto-text strong { color: var(--red); font-weight: 500; }
.manifesto-sign span { font-family: var(--sans); font-style: normal; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* ---------- Card immobili ---------- */
.immobili-home { background: var(--ivory); }
.grid-immobili { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 30px); }
.card-immobile { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s; }
.card-immobile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.card-media { position: relative; aspect-ratio: 4 / 3; background: var(--ivory); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card-immobile:hover .card-media img { transform: scale(1.04); }
.card-placeholder { width: 100%; height: 100%; display: grid; place-items: center; background: var(--ivory); }
.card-badges { position: absolute; top: 14px; left: 14px; display: flex; gap: 6px; flex-wrap: wrap; }
.card-badges.inline { position: static; margin-bottom: 14px; }
.badge { display: inline-block; padding: 5px 11px; border-radius: 999px; background: rgba(255,255,255,.95); color: var(--ink); font-family: var(--serif); font-size: .7rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.badge-ghost { background: var(--ivory); color: var(--gray); }
.badge-trattativa { background: var(--sun); color: var(--ink); }
.badge-venduto, .badge-affittato { background: var(--red); color: #fff; }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card-loc { display: flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600; letter-spacing: .04em; color: var(--muted); text-transform: uppercase; margin-bottom: 8px; }
.card-title { font-size: 1.18rem; line-height: 1.3; margin-bottom: 4px; }
.card-type { font-size: .9rem; color: var(--gray); margin-bottom: 14px; }
.card-specs { list-style: none; margin: 0 0 16px; padding: 0; display: flex; gap: 16px; flex-wrap: wrap; font-size: .9rem; color: var(--gray); }
.card-specs li { display: inline-flex; align-items: center; gap: 6px; }
.card-specs .icon { color: var(--gold); }
.card-price { margin: auto 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-family: var(--serif); font-size: 1.3rem; font-weight: 500; color: var(--red); }
.card-immobile.is-closed .card-media img { filter: grayscale(.5); }
.card-immobile.is-closed .card-price { color: var(--muted); }

.empty-state { text-align: center; max-width: 640px; margin: 0 auto; padding: 32px 0; }
.empty-state p { color: var(--gray); font-size: 1.08rem; }
.narrow-form { text-align: left; margin-top: 28px; }
.results-count { color: var(--muted); font-size: .92rem; font-weight: 600; margin-bottom: 22px; }

/* ---------- Promesse (banda scura rotante) ---------- */
.promesse { background: var(--graphite); color: #fff; padding: clamp(64px, 8vw, 104px) 0; text-align: center; position: relative; overflow: hidden; }
.promesse::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40px; opacity: .18; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 20'%3E%3Cpath d='M0 10c15-8 30-8 45 0s30 8 45 0 22-6 30-3' fill='none' stroke='white' stroke-width='2'/%3E%3C/svg%3E") repeat-x 0 50% / 180px 20px; pointer-events: none; }
.promesse-track { position: relative; min-height: 170px; display: grid; }
.promessa { grid-area: 1 / 1; opacity: 0; transform: translateY(14px); transition: opacity .7s, transform .7s; pointer-events: none; }
.promessa.is-active { opacity: 1; transform: none; pointer-events: auto; }
.promessa-q { font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 3.2vw, 2.4rem); line-height: 1.25; margin: 0 auto 14px; max-width: 22ch; text-wrap: balance; }
.promessa-q em { color: var(--sun); font-style: normal; }
.promessa-a { font-family: var(--serif); font-size: .84rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: #fff; opacity: .8; margin: 0; }
.promesse-dots { display: flex; justify-content: center; gap: 10px; margin-top: 30px; position: relative; }
.promesse-dots button { width: 34px; height: 3px; border: 0; padding: 0; background: rgba(255,255,255,.22); cursor: pointer; border-radius: 2px; transition: background .3s; }
.promesse-dots button[aria-selected="true"] { background: var(--sun); }

/* ---------- Servizi ---------- */
.servizi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.servizio { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; display: flex; flex-direction: column; transition: border-color .3s, transform .3s, box-shadow .3s; }
.servizio:hover { border-color: var(--gold-soft); transform: translateY(-3px); box-shadow: var(--shadow); }
.servizio-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.servizio-icon { width: 54px; height: 54px; border-radius: 50%; background: var(--red-tint); color: var(--red); display: grid; place-items: center; }
.servizio-brand { font-family: var(--serif); font-size: .7rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--sea); background: var(--gold-soft); padding: 4px 10px; border-radius: 999px; }
.servizio h3 { font-size: 1.25rem; }
.servizio p { color: var(--gray); font-size: .96rem; }
.servizio .link-arrow { margin-top: auto; padding-top: 8px; }
.servizi.is-full .servizi-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
.servizi.is-full .servizio { padding: 36px 34px; }

.ticks { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; color: var(--gray); font-size: .98rem; }
.ticks .icon { color: var(--red); flex: none; margin-top: 4px; }


/* ---------- Home staging ---------- */
.staging { background: var(--paper); }
.staging-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.staging-copy p { color: var(--gray); font-size: 1.06rem; }
.staging-copy .btn { margin-top: 6px; }
.staging-visual { display: grid; gap: 16px; }
.staging-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.staging-steps > div { background: var(--ivory); border-radius: var(--radius); padding: 24px 22px; }
.staging-steps span { display: block; font-family: var(--serif); font-size: 1.6rem; font-weight: 500; color: var(--red); line-height: 1; margin-bottom: 12px; }
.staging-steps strong { display: block; font-family: var(--serif); font-size: 1.12rem; font-weight: 500; margin-bottom: 4px; }
.staging-steps p { color: var(--gray); font-size: .94rem; margin: 0; }
.compare { margin: 0; }
.compare-frame { position: relative; aspect-ratio: 3 / 2; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); --pos: 50%; user-select: none; }
.compare-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; pointer-events: none; }
.compare-handle::after { content: "‹ ›"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--red); display: grid; place-items: center; font-weight: 700; font-size: 1.1rem; letter-spacing: 2px; box-shadow: 0 4px 14px rgba(0,0,0,.2); }
.compare input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.compare-tag { position: absolute; top: 14px; padding: 5px 11px; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; pointer-events: none; }
.tag-before { left: 14px; background: rgba(30,32,35,.75); color: #fff; }
.tag-after { right: 14px; background: var(--red); color: #fff; }
.compare figcaption { font-size: .88rem; color: var(--muted); margin-top: 8px; }
.compare.is-secondary .compare-frame { aspect-ratio: 16 / 7; }
.staging-note { font-size: .84rem; color: var(--muted); font-style: italic; margin: 0; }


/* ---------- Guide gratuite ---------- */
.kit-tag { font-family: var(--serif); font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--sea); margin-bottom: 6px; }
.guide-section { background: var(--ivory); }
.guide-grid { display: grid; grid-template-columns: 1.25fr .95fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.guide-books { display: grid; gap: 22px; }
.guide-book { display: grid; grid-template-columns: 180px 1fr; gap: 26px; background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); align-items: start; }
.guide-cover { position: relative; display: block; border-radius: 6px; overflow: hidden; box-shadow: 0 10px 24px rgba(51,54,56,.22); transform: rotate(-2deg); transition: transform .3s; }
.guide-cover:hover { transform: rotate(0) translateY(-3px); }
.guide-cover img { width: 100%; height: auto; display: block; }
.guide-badge { position: absolute; left: 8px; bottom: 8px; background: var(--red); color: #fff; font-size: .68rem; font-weight: 600; letter-spacing: .06em; padding: 4px 8px; border-radius: 999px; }
.guide-info h3 { font-size: 1.3rem; margin-bottom: 8px; }
.guide-info p { color: var(--gray); font-size: .97rem; }
.guide-info .ticks { margin: 0; gap: 6px; }
.guide-info .ticks li { font-size: .93rem; }
.guide-form-wrap { position: sticky; top: calc(var(--header-h) + 20px); }
.guide-section.is-single .guide-grid { grid-template-columns: 1fr 1fr; }
.guide-choose { border: 0; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.guide-choose legend { font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.guide-pick { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; transition: border-color .2s, background .2s; }
.guide-pick:has(input:checked) { border-color: var(--red); background: var(--red-tint); }
.guide-pick input { accent-color: var(--red); width: 18px; height: 18px; flex: none; }
.guide-pick strong { display: block; font-size: .98rem; }
.guide-pick small { display: block; color: var(--muted); font-size: .82rem; }
.lead-form label.guide-pick > span { margin: 0; font-size: inherit; letter-spacing: 0; text-transform: none; color: var(--ink); font-weight: 400; }
.guide-ready { background: #EAF4EE; border-radius: var(--radius-sm); padding: 20px; margin-bottom: 18px; }
.guide-ready-title { display: flex; align-items: center; gap: 8px; font-family: var(--serif); font-weight: 600; font-size: 1.15rem; color: var(--ok); margin-bottom: 4px; }
.guide-ready p { color: var(--gray); }
.guide-ready-buttons { display: grid; gap: 10px; }
.guide-more { font-size: .9rem; margin: 14px 0 0; }
.guide-band { background: var(--ivory); padding: 40px 0; border-top: 1px solid var(--line); }
.guide-band-inner { display: grid; grid-template-columns: 110px 1fr auto; gap: 28px; align-items: center; }
.guide-band img { width: 110px; height: auto; border-radius: 4px; box-shadow: 0 8px 18px rgba(51,54,56,.2); transform: rotate(-3deg); }
.guide-band h2 { font-size: 1.45rem; margin-bottom: 6px; }
.guide-band p:last-child { color: var(--gray); margin: 0; }
.portal-band { margin-top: 40px; padding: 22px 26px; border: 1px dashed var(--line); border-radius: var(--radius); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; background: rgba(255,255,255,.6); }
.portal-band p { margin: 0; font-weight: 600; color: var(--ink); }
.portal-band-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.portal-band .btn { background: #fff; }
.empty-state .portal-band { text-align: left; }

/* ---------- Affitti brevi ---------- */
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; position: relative; z-index: 1; }
.btn-ghost-light { color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.lg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.lg-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; transition: transform .3s, box-shadow .3s; }
.lg-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.lg-card .servizio-icon { margin-bottom: 18px; }
.lg-card h3 { font-size: 1.15rem; margin-bottom: 6px; }
.lg-card p { color: var(--gray); font-size: .95rem; margin: 0; }
.lg-n { position: absolute; top: 22px; right: 24px; font-family: var(--serif); font-weight: 600; color: var(--line); font-size: 1.6rem; line-height: 1; }
.lg-values { background: var(--graphite); color: #fff; }
.lg-values h2, .lg-values h3 { color: #fff; }
.lg-values h2 em { color: var(--sun); }
.lg-values .eyebrow { color: var(--sun) !important; }
.lg-values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.lg-value-icon { width: 56px; height: 56px; border-radius: 50%; background: rgba(250,185,71,.16); color: var(--sun); display: grid; place-items: center; margin-bottom: 16px; }
.lg-value h3 { font-size: 1.15rem; margin-bottom: 6px; }
.lg-value p { color: rgba(255,255,255,.75); font-size: .95rem; margin: 0; }
.lg-platforms { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 44px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.14); }
.lg-platforms span { color: rgba(255,255,255,.7); font-size: .9rem; margin-right: 6px; }
.lg-platforms strong { border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 7px 16px; font-weight: 600; font-size: .92rem; }
.lg-transitori-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.lg-transitori-grid p { color: var(--gray); font-size: 1.04rem; }
.lg-formule { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.lg-formula { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 30px; display: flex; flex-direction: column; }
.lg-formula h3 { font-size: 1.5rem; margin-bottom: 8px; }
.lg-formula h3 small { display: block; font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--sea); margin-top: 6px; }
.lg-formula > p { color: var(--gray); }
.lg-formula .link-arrow { margin-top: auto; }
.lg-anno { display: flex; gap: 14px; align-items: flex-start; margin-top: 24px; padding: 20px 24px; background: var(--ivory); border-radius: var(--radius); color: var(--ink); }
.lg-anno .icon { color: var(--red); flex: none; margin-top: 2px; }
.lg-anno p { margin: 0; }
.lg-transitori { background: var(--ivory); }
.tab-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; }
.tab-links .link-arrow { font-size: .9rem; }
.cta-copy > .btn { margin-top: 4px; }

/* ---------- Mare sopra il footer ---------- */
.footer-sea { height: 48px; margin-top: -1px; background: var(--ivory); }
.footer-sea svg { width: 100%; height: 100%; display: block; }
.footer-logo .brand-logo { height: 118px; width: auto; max-width: none; }
.card-placeholder .brand-logo { height: auto; width: 42%; max-width: none; opacity: .35; }

/* ---------- Il viaggio ---------- */
.viaggio { background: var(--ivory); }
.tappe { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; counter-reset: t; }
.tappe::before { content: ""; position: absolute; top: 34px; left: 0; right: 0; border-top: 2.5px dashed var(--red); opacity: .55; }
.tappa { position: relative; padding: 0 22px 0 0; }
.tappa-n {
	position: relative; display: inline-grid; place-items: center; width: 68px; height: 68px; border-radius: 50%;
	background: var(--paper); border: 2px solid var(--red); font-family: var(--serif); font-size: 1.25rem; font-weight: 500; color: var(--red); margin-bottom: 24px;
}
.tappa h3 { font-size: 1.4rem; margin-bottom: 4px; }
.tappa-sub { font-family: var(--serif); font-size: .74rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--sea); margin-bottom: 12px; }
.tappa p:last-child { color: var(--gray); font-size: .97rem; }

/* ---------- Recensioni ---------- */
.reviews-band { text-align: center; }
.reviews-inner { max-width: 640px; }
.stars { display: flex; justify-content: center; gap: 4px; color: var(--sun); margin-bottom: 16px; }
.stars .icon { fill: currentColor; }
.reviews-band p { color: var(--gray); }

/* ---------- CTA valutazione ---------- */
.cta-vendi { background: linear-gradient(180deg, var(--paper), var(--ivory)); }
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.cta-copy p { color: var(--gray); font-size: 1.06rem; }
.cta-alt { margin-top: 24px; font-size: .96rem; }
.cta-alt a { font-weight: 700; }
.card-surface { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(22px, 3vw, 36px); }

/* ---------- Form lead ---------- */
.lead-form .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
.lead-form .span-2 { grid-column: 1 / -1; }
.lead-form.is-compact .form-grid { grid-template-columns: 1fr; }
.lead-form.is-compact .form-grid > label { grid-column: auto; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .84rem; line-height: 1.5; color: var(--gray); margin-bottom: 12px; cursor: pointer; }
.check input { margin-top: 2px; flex: none; }
.lead-form .check > span { display: inline; font-size: .84rem; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--gray); margin: 0; }
.lead-form .btn { margin-top: 8px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-notice { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-sm); margin-bottom: 18px; font-size: .95rem; font-weight: 500; }
.form-notice.is-ok { background: #E8F2EC; color: var(--ok); }
.form-notice.is-err { background: var(--red-tint); color: var(--red-dark); }
.form-notice .icon { flex: none; margin-top: 2px; }

/* ---------- Page hero ---------- */
.page-hero { background: var(--graphite); color: #fff; padding: clamp(72px, 10vw, 128px) 0 clamp(56px, 8vw, 96px); position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: 6%; top: 18%; width: clamp(70px, 9vw, 120px); aspect-ratio: 1; border-radius: 50%; background: var(--sun); opacity: .9; pointer-events: none; }
.page-hero::before { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 26px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 26' preserveAspectRatio='none'%3E%3Cpath d='M0 14c15-10 30-10 45 0s30 10 45 0 22-8 30-4v16H0z' fill='%23FFFCF7'/%3E%3C/svg%3E") repeat-x 0 0 / 240px 26px; z-index: 1; }
.page-hero.compact { padding: clamp(48px, 7vw, 80px) 0 clamp(36px, 5vw, 56px); }
.page-hero h1 { color: #fff; position: relative; z-index: 1; }
.page-hero h1 em { color: var(--sun); }
.page-hero .lead { color: rgba(255,255,255,.8); position: relative; z-index: 1; }
.page-hero .eyebrow { color: #fff; }
.page-hero .btn { margin-top: 12px; position: relative; z-index: 1; }

/* ---------- Prose ---------- */
.prose { font-size: 1.06rem; }
.prose > * + * { margin-top: 0; }
.prose h2 { font-size: 1.7rem; margin-top: 1.4em; }
.prose h3 { font-size: 1.3rem; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose img { border-radius: var(--radius-sm); }
.prose .lead { font-family: var(--serif); font-weight: 300; font-size: clamp(1.25rem, 2vw, 1.55rem); line-height: 1.45; color: var(--ink); }
.prose blockquote { margin: 1.6em 0; padding-left: 22px; border-left: 3px solid var(--red); font-family: var(--serif); font-weight: 300; font-size: 1.3rem; }

/* ---------- Scheda immobile ---------- */
.single-top { padding-top: 22px; }
.crumbs { font-size: .84rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--red); }
.crumbs span { margin: 0 6px; }
.crumbs [aria-current] { margin: 0; color: var(--ink); }

.gallery-mosaic { position: relative; display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 240px 240px; gap: 8px; }
.gallery-mosaic .g-item { position: relative; overflow: hidden; border-radius: 6px; display: block; background: var(--ivory); }
.gallery-mosaic .g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery-mosaic .g-item:hover img { transform: scale(1.03); }
.gallery-mosaic .g-0 { grid-row: 1 / 3; }
.gallery-mosaic.count-1 { grid-template-columns: 1fr; grid-template-rows: 520px; }
.gallery-mosaic.count-2 { grid-template-columns: 2fr 1fr; }
.gallery-mosaic.count-2 .g-1 { grid-row: 1 / 3; }
.gallery-mosaic.count-3 { grid-template-columns: 2fr 1fr; }
.gallery-mosaic.count-4 .g-3 { grid-column: 2 / 4; }
.g-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(30,32,35,.55); color: #fff; font-weight: 700; font-size: 1.1rem; }
.g-all { position: absolute; right: calc(var(--gutter) + 16px); bottom: 16px; box-shadow: var(--shadow); }

.single-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(32px, 5vw, 64px); padding-top: 40px; padding-bottom: 72px; align-items: start; }
.single-head h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 10px; }
.single-loc { display: flex; align-items: center; gap: 8px; color: var(--gray); margin-bottom: 14px; }
.single-loc .icon { color: var(--gold); }
.single-price { font-family: var(--serif); font-size: 1.9rem; font-weight: 500; color: var(--red); margin: 0; }

.spec-row { list-style: none; padding: 22px 0; margin: 28px 0 36px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 14px 40px; }
.spec-row li { display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 12px; align-items: center; }
.spec-row .icon { grid-row: 1 / 3; color: var(--gold); }
.spec-row strong { font-size: 1.12rem; line-height: 1.2; }
.spec-row span { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

.h-sub { font-size: 1.45rem; margin: 40px 0 18px; }
.single-main .prose .h-sub { margin-top: 0; }
.feat-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 20px; }
.feat-list li { display: flex; align-items: center; gap: 8px; color: var(--gray); }
.feat-list .icon { color: var(--gold); flex: none; }
.details { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 32px; margin: 0; }
.details div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.details dt { color: var(--muted); }
.details dd { margin: 0; font-weight: 600; text-align: right; }

.energy-scale { list-style: none; padding: 0; margin: 0 0 12px; display: flex; gap: 3px; }
.energy-scale li { flex: 1; text-align: center; padding: 8px 0; font-size: .78rem; font-weight: 700; color: #fff; border-radius: 3px; opacity: .38; }
.energy-scale li.is-current { opacity: 1; transform: scaleY(1.25); box-shadow: 0 4px 10px rgba(0,0,0,.18); }
.e-0 { background: #1a7f3c; } .e-1 { background: #2f9443; } .e-2 { background: #4fa846; } .e-3 { background: #7cbc42; } .e-4 { background: #b5cf38; }
.e-5 { background: #e6d22c; color: #333 !important; } .e-6 { background: #f2b229; } .e-7 { background: #ec8a2a; } .e-8 { background: #e2572b; } .e-9 { background: #c9262c; }
.energy-note { font-weight: 600; color: var(--gray); }
.video-embed iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border-radius: var(--radius-sm); }

.mutuo { margin-top: 48px; }
.mutuo-head p { color: var(--gray); font-size: .95rem; }
.mutuo .h-sub { margin-top: 0; margin-bottom: 8px; }
.mutuo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 18px 0 22px; }
.mutuo-out { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mutuo-out div { background: var(--ivory); border-radius: var(--radius-sm); padding: 16px 18px; }
.mutuo-out span { display: block; font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.mutuo-out strong { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; }
.mutuo-out .big { background: var(--red-tint); }
.mutuo-out .big strong { color: var(--red); }

.single-side { position: sticky; top: calc(var(--header-h) + 20px); }
.side-title { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; line-height: 1.25; margin-bottom: 4px; }
.side-sub { color: var(--gray); font-size: .95rem; }
.side-quick { display: flex; gap: 8px; margin-bottom: 18px; }
.side-quick .btn { flex: 1; }
.side-portals { margin: 4px 0 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.side-portals p { width: 100%; margin: 0 0 2px; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.side-portals .btn { flex: 1; background: var(--ivory); border-color: var(--line); }
.side-portals .btn:hover { border-color: var(--red); color: var(--red); background: #fff; }
.related { background: var(--ivory); }
.related .h-sub { margin-top: 0; }

.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(15, 16, 18, .96); display: grid; place-items: center; padding: 60px 70px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 82vh; object-fit: contain; border-radius: 4px; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; cursor: pointer; padding: 12px; font-size: 3rem; line-height: 1; }
.lb-close { top: 10px; right: 14px; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.7); font-size: .9rem; margin: 0; }
.mobile-bar { display: none; }

/* ---------- Vendi / Chi siamo / Contatti ---------- */
.verifica-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.verifica-grid p { color: var(--gray); font-size: 1.06rem; }
.check-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check-cards li { display: flex; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.check-cards .icon { color: var(--red); flex: none; margin-top: 2px; }
.check-cards strong { display: block; margin-bottom: 4px; }
.check-cards span { font-size: .92rem; color: var(--gray); line-height: 1.5; }

.faq { background: var(--ivory); }
.faq-list { margin-top: 32px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative; font-family: var(--serif); font-size: 1.12rem; font-weight: 500; line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-family: var(--sans); font-weight: 400; font-size: 1.6rem; color: var(--red); transition: transform .3s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--gray); padding-bottom: 22px; margin: 0; max-width: 68ch; }

.chi-grid { display: grid; grid-template-columns: 1.3fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.chi-side { display: grid; gap: 20px; position: sticky; top: calc(var(--header-h) + 20px); }
.chi-photo { margin: 0; border-radius: var(--radius); overflow: hidden; }
.address-card { display: flex; gap: 14px; align-items: center; padding: 18px 22px; border: 1px solid var(--line); border-radius: var(--radius); }
.address-card .icon { color: var(--red); }
.address-card strong, .address-card span { display: block; }
.address-card span { color: var(--muted); font-size: .92rem; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 22px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list .icon { color: var(--red); flex: none; margin-top: 3px; }
.contact-list strong { display: block; font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.contact-list span, .contact-list a:not(.link-arrow) { display: block; font-size: 1.08rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.contact-list a:not(.link-arrow):hover { color: var(--red); }
.contact-list .link-arrow { margin-top: 4px; font-size: .88rem; }

.post-item { padding: 28px 0; border-bottom: 1px solid var(--line); }
.post-item h2 a { color: inherit; text-decoration: none; }
.post-date { font-size: .84rem; color: var(--muted); margin-bottom: 6px; }

.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 48px; }
.pagination .page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px; text-decoration: none; color: var(--ink); border: 1px solid var(--line); font-weight: 600; }
.pagination .page-numbers.current { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination a.page-numbers:hover { border-color: var(--red); color: var(--red); }

/* ---------- Footer ---------- */
.site-footer { background: var(--graphite); color: rgba(255,255,255,.78); font-size: .95rem; position: relative; }
.site-footer a { color: rgba(255,255,255,.86); text-decoration: none; }
.site-footer a:hover { color: var(--gold-soft); }
.footer-top { display: grid; grid-template-columns: 1.2fr 1.1fr .9fr 1fr; gap: 36px; padding-top: 48px; padding-bottom: 56px; }
.footer-logo { margin: 0 0 14px; }
.footer-logo img { height: 120px; width: auto; }

.footer-claim { font-style: italic; font-size: 1.05rem; color: rgba(255,255,255,.8); }
.footer-col h4 { font-family: var(--serif); font-size: .76rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--sun); margin-bottom: 16px; }
.footer-col p { margin-bottom: 10px; }
.footer-col p, .footer-col p > a { display: flex; gap: 10px; align-items: flex-start; }
.footer-col p > a { display: inline-flex; }
.footer-col .icon { margin-top: 4px; flex: none; color: var(--sun); }
.footer-col .indent { padding-left: 26px; display: block; }
.footer-col p:has(.indent) { display: block; }
.footer-col p:has(.indent) .icon { display: inline-block; vertical-align: -3px; margin-right: 8px; }
.footer-menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; transition: .2s; }
.social a:hover { background: var(--red); border-color: var(--red); color: #fff; }
.footer-network { border-top: 1px solid rgba(255,255,255,.08); border-bottom: 1px solid rgba(255,255,255,.08); padding: 18px 0; font-size: .86rem; }
.footer-network .container { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; }
.footer-network strong { color: #fff; letter-spacing: .04em; }
.footer-network em { font-style: normal; color: rgba(255,255,255,.5); }
.footer-network .dot { color: var(--sun); }
.footer-legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 28px; font-size: .82rem; color: rgba(255,255,255,.5); }
.footer-legal p { margin: 0; }

.wa-float {
	position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 58px; height: 58px; border-radius: 50%;
	background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.22); transition: transform .2s;
}
.wa-float:hover { transform: scale(1.06); color: #fff; }

/* Eyebrow: prevale sugli stili dei paragrafi delle singole sezioni */
body .eyebrow { font-size: .8rem; line-height: 1.4; color: var(--red); margin-bottom: 16px; }
body .eyebrow-light, body .page-hero .eyebrow { color: #fff; }

/* ---------- Animazioni d'ingresso ---------- */
@media (prefers-reduced-motion: no-preference) {
	.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
	.js .reveal.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
	html { scroll-behavior: auto; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1320px) {
	.header-phone span { display: none; }
}
@media (max-width: 1240px) and (min-width: 1025px) {
	.header-cta { display: none; }
	.main-nav .menu a { padding: 10px 9px; }
}
@media (max-width: 1180px) {
	.servizi-grid { grid-template-columns: repeat(2, 1fr); }
	.search-bar .search-fields { grid-template-columns: repeat(3, 1fr); }
	.search-bar .search-fields .btn { grid-column: span 3; }
}

@media (max-width: 1024px) {
	:root { --header-h: 68px; }
	.nav-toggle { display: block; }
	.header-actions { margin-left: auto; }
	.header-phone { display: none; }
	.main-nav {
		position: fixed; inset: var(--header-h) 0 0 0; background: var(--paper); color: var(--ink);
		padding: 24px var(--gutter) 40px; overflow-y: auto; display: flex; flex-direction: column; gap: 28px;
		opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .25s, visibility .25s;
	}
	.nav-open .main-nav { opacity: 1; visibility: visible; transform: none; }
	.main-nav .menu { flex-direction: column; gap: 0; }
	.main-nav .menu a { font-family: var(--serif); font-size: 1.9rem; font-weight: 600; padding: 12px 0; border-radius: 0; border-bottom: 1px solid var(--line); color: var(--ink); }
	.main-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 0 16px; background: none; }
	.main-nav .sub-menu a { font-size: 1.3rem; }
	.nav-mobile-extra { display: grid; gap: 10px; }
	.nav-open { overflow: hidden; }

	.hero-inner { grid-template-columns: 1fr; }
	.hero h1 { max-width: 16ch; }
	.hero h1 .h1-brand { font-size: .56em; white-space: normal; }
	.grid-immobili { grid-template-columns: repeat(2, 1fr); }
	.tappe { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
	.tappe::before { display: none; }
	.cta-grid, .verifica-grid, .chi-grid, .contact-grid, .staging-grid, .guide-grid, .guide-section.is-single .guide-grid, .lg-transitori-grid { grid-template-columns: 1fr; }
	.guide-form-wrap { position: static; }
	.lg-grid, .lg-values-grid { grid-template-columns: 1fr 1fr; }
	.chi-side { position: static; }
	.single-layout { grid-template-columns: 1fr; }
	.single-side { position: static; }
	.footer-top { grid-template-columns: 1fr 1fr; }
	.footer-brand { grid-column: 1 / -1; }
	.gallery-mosaic { grid-template-rows: 200px 200px; }
}

@media (max-width: 720px) {
	body { font-size: 16px; }
	.header-cta { display: none; }
	.hero-illustrated { padding-top: 32px; }
	.hero-copy { margin-bottom: 4px; }
	.grid-immobili, .servizi-grid, .servizi.is-full .servizi-grid { grid-template-columns: 1fr; }
	.tappe { grid-template-columns: 1fr; gap: 0; }
	.tappa { display: grid; grid-template-columns: 56px 1fr; column-gap: 18px; padding: 0 0 28px; position: relative; }
	.tappa::before { content: ""; position: absolute; left: 27px; top: 56px; bottom: 0; border-left: 2.5px dashed var(--red); opacity: .5; }
	.tappa:last-child::before { display: none; }
	.tappa-n { width: 56px; height: 56px; font-size: 1.3rem; grid-row: 1 / 4; margin: 0; }
	.tappa h3 { font-size: 1.7rem; }
	.search-bar .search-fields { grid-template-columns: 1fr 1fr; }
	.search-bar .search-fields label:first-child { grid-column: 1 / -1; }
	.search-bar .search-fields .btn { grid-column: 1 / -1; }
	.lead-form .form-grid { grid-template-columns: 1fr; }
	.lead-form .form-grid > label { grid-column: auto; }
	.check-cards { grid-template-columns: 1fr; }
	.guide-book { grid-template-columns: 110px 1fr; gap: 18px; padding: 18px; }
	.guide-band-inner { grid-template-columns: 80px 1fr; }
	.guide-band img { width: 80px; }
	.guide-band .btn { grid-column: 1 / -1; }
	.portal-band { flex-direction: column; align-items: stretch; text-align: center; }
	.portal-band-buttons .btn { flex: 1; }
	.lg-grid, .lg-values-grid, .lg-formule { grid-template-columns: 1fr; }
	.brand-logo { height: 44px; }
	.staging-steps { grid-template-columns: 1fr; }
	.compare.is-secondary .compare-frame { aspect-ratio: 3 / 2; }
	.feat-list { grid-template-columns: 1fr 1fr; }
	.details { grid-template-columns: 1fr; }
	.mutuo-grid { grid-template-columns: 1fr 1fr; }
	.mutuo-grid label:last-child { grid-column: 1 / -1; }
	.mutuo-out { grid-template-columns: 1fr; }
	.footer-top { grid-template-columns: 1fr; gap: 32px; }
	.section-head.row .btn { width: 100%; }

	.gallery-mosaic { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter); gap: 8px; scrollbar-width: none; }
	.gallery-mosaic::-webkit-scrollbar { display: none; }
	.gallery-mosaic .g-item { flex: 0 0 86%; height: 280px; scroll-snap-align: center; }
	.gallery-mosaic.count-1 .g-item { flex-basis: 100%; }
	.g-more { display: none; }
	.g-all { right: calc(var(--gutter) + 8px); bottom: 12px; }
	.single-layout { padding-top: 28px; }
	.spec-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
	.spec-row li { min-width: 0; }
	.spec-row strong { overflow-wrap: anywhere; }

	.mobile-bar {
		display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; align-items: center; justify-content: space-between; gap: 12px;
		padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0,0,0,.06);
	}
	.mobile-bar strong { display: block; font-family: var(--serif); font-size: 1.1rem; font-weight: 500; color: var(--red); line-height: 1.2; }
	.mobile-bar span { font-size: .8rem; color: var(--muted); }
	.single-immobile .wa-float { bottom: 88px; }
	.single-immobile .site-footer { padding-bottom: 76px; }
	.lightbox { padding: 50px 8px; }
}
