:root {
  --black: #0b0b0b;
  --ink: #141414;
  --ink-2: #1c1c1c;
  --gold: #b89d55;
  --gold-light: #d4bd7f;
  --paper: #f6f3ec;
  --text: #1d1d1b;
  --muted: #6b675e;
  --line: rgba(184, 157, 85, .25);
  --radius: 4px;
  --head: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --display: "Michroma", "Eurostile Extended", "Archivo", sans-serif;
  --body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; scrollbar-color: #8a7540 #0b0b0b; background: #0b0b0b; }
/* Barra di scorrimento scura con cursore oro (Chrome, Edge, Safari) */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: #0b0b0b; }
::-webkit-scrollbar-thumb { background: #6f5f35; border-radius: 6px; border: 3px solid #0b0b0b; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }
::-webkit-scrollbar-corner { background: #0b0b0b; }
body { margin: 0; font-family: var(--body); color: var(--text); background: var(--paper); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
/* Titoli: Michroma, carattere largo simile alla scritta del logo */
h1, h2, h3 { font-family: var(--display); font-weight: 400; -webkit-text-stroke: .07em currentColor; paint-order: stroke fill; line-height: 1.25; margin: 0 0 .7em; letter-spacing: 0; }
h2 { font-size: clamp(1.35rem, 2.6vw, 2.1rem); }
h3 { font-size: 1rem; }
p { margin: 0 0 1em; }
.container { width: min(1180px, 100% - 48px); margin-inline: auto; }
.gold { color: var(--gold); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.eyebrow { font-family: var(--head); font-weight: 700; font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; display: flex; align-items: center; gap: .75rem; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; font-family: var(--head); font-weight: 700; font-size: .92rem; letter-spacing: .04em; text-decoration: none; padding: .95em 1.7em; border-radius: var(--radius); border: 2px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--black); }
.btn-gold:hover { background: var(--gold-light); }
.btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-sm { padding: .6em 1.1em; font-size: .85rem; }

/* Header */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; background: rgba(11,11,11,.0); transition: background .3s, box-shadow .3s; }
.site-header.scrolled { background: rgba(11,11,11,.94); backdrop-filter: blur(8px); box-shadow: 0 1px 0 var(--line); }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 76px; }
.main-nav { justify-self: start; }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 1.3rem; }
.header-tel { display: inline-flex; align-items: center; gap: .45rem; color: rgba(255,255,255,.8); text-decoration: none; font-size: .9rem; font-weight: 500; }
.header-tel:hover { color: var(--gold-light); }
.header-cta { gap: .5rem; }
.header-tel svg, .header-cta svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.brand { justify-self: center; display: flex; flex-direction: column; align-items: center; gap: .35rem; text-decoration: none; color: #fff; }
.brand-mark { width: 30px; height: auto; }
.brand-word { width: 120px; height: auto; }
.brand-text small { font-size: .56rem; font-weight: 700; letter-spacing: .42em; color: var(--gold); margin-top: 4px; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
#menu { display: flex; align-items: center; gap: 1.7rem; }

/* Menu a tendina (Esplora) */
.has-dropdown { position: relative; display: flex; align-items: center; gap: .3rem; }
.dropdown-toggle { color: rgba(255,255,255,.85); background: none; border: 0; padding: 6px 2px; cursor: pointer; display: inline-flex; align-items: center; }
.dropdown-toggle svg { width: 10px; height: 7px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .25s; }
.dropdown-toggle:hover, .has-dropdown.open .dropdown-toggle { color: #fff; }
.has-dropdown.open .dropdown-toggle svg { transform: rotate(180deg); }
.dropdown { position: absolute; top: calc(100% + 22px); left: -1.2rem; min-width: 240px; background: var(--black); border: 1px solid var(--line); border-top: 2px solid var(--gold); border-radius: 0 0 var(--radius) var(--radius); padding: .4rem 0; box-shadow: 0 18px 40px rgba(0,0,0,.5); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .2s, visibility .2s; }
.dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -24px; height: 24px; } /* ponte per il passaggio del mouse */
.has-dropdown.open .dropdown { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) and (min-width: 861px) { .has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: none; } .has-dropdown:hover .dropdown-toggle svg { transform: rotate(180deg); } }
.main-nav .dropdown a { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .8rem 1.2rem; white-space: nowrap; }
.main-nav .dropdown a::after { display: none; }
.main-nav .dropdown a:hover, .main-nav .dropdown a.active { background: #161616; color: var(--gold-light); }
.dropdown small { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.4); }
.main-nav a:not(.btn) { color: rgba(255,255,255,.85); text-decoration: none; font-weight: 500; font-size: .93rem; position: relative; }
.main-nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px; background: var(--gold); transition: right .25s; }
.main-nav a:not(.btn):hover, .main-nav a.active { color: #fff; }
.main-nav a:not(.btn):hover::after, .main-nav a.active::after { right: 0; }
.nav-toggle { display: none; position: relative; width: 40px; height: 40px; background: none; border: 0; cursor: pointer; z-index: 2; }
.nav-toggle span:not(.sr-only) { position: absolute; left: 8px; width: 24px; height: 2px; background: #fff; transition: transform .25s, opacity .25s; }
.nav-toggle span:nth-child(1) { top: 12px; }
.nav-toggle span:nth-child(2) { top: 19px; }
.nav-toggle span:nth-child(3) { top: 26px; }

/* Hero */
.hero { position: relative; background: radial-gradient(ellipse at 75% 40%, #1d1a12 0%, var(--black) 60%); color: #fff; padding: 150px 0 0; overflow: hidden; }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 72px 72px; opacity: .25; mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%); }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 3rem; min-height: 60vh; }
.hero h1 { font-size: clamp(1.9rem, 5vw, 4rem); line-height: 1.15; margin-bottom: .5em; }
.lead { font-size: 1.15rem; color: rgba(255,255,255,.75); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.hero-emblem { justify-self: center; width: min(380px, 80%); }
.hero-emblem img { height: auto; filter: drop-shadow(0 20px 60px rgba(184,157,85,.25)); animation: rise 1.2s cubic-bezier(.2,.7,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
.hero-stats { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); margin-top: 4rem; }
.hero-stats div { padding: 2rem 1.5rem 2.4rem 0; display: flex; flex-direction: column; }
.hero-stats div + div { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.hero-stats strong { font-family: var(--display); font-size: 1.9rem; font-weight: 400; -webkit-text-stroke: .07em currentColor; paint-order: stroke fill; color: var(--gold); line-height: 1; }
.hero-stats .deg { font-family: var(--body); font-weight: 600; color: inherit; font-size: 1em; margin: 0; -webkit-text-stroke: 0; }
.hero-stats span { color: rgba(255,255,255,.6); font-size: .9rem; margin-top: .4rem; }

/* Sections */
.section { padding: clamp(80px, 11vw, 130px) 0; }
.section-dark { background: var(--ink); color: #fff; }
.section-dark p { color: rgba(255,255,255,.7); }
.section-head { max-width: 760px; margin-bottom: 3.5rem; }
.section-head p { font-size: 1.08rem; }
.two-col { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
#azienda .two-col > div > p { font-size: 1.08rem; color: var(--muted); }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--gold), rgba(184,157,85,.15)); }
.timeline li { position: relative; padding: 0 0 2.4rem 2.6rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 3px solid var(--gold); }
.timeline .gen { font-family: var(--head); font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.timeline h3 { font-size: 1.15rem; margin: .25rem 0 .4rem; }
.timeline p { color: var(--muted); margin: 0; }
/* Massimo: attuale amministratore, in evidenza */
.timeline li.current { padding: 1.4rem 1.6rem 1.5rem; margin: 0 0 2.4rem 2.6rem; background: var(--black); border-radius: var(--radius); border-left: 3px solid var(--gold); box-shadow: 0 18px 40px rgba(0,0,0,.12); }
.timeline li.current::before { left: -2.6rem; top: 1.6rem; width: 20px; height: 20px; margin-left: -2px; background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 6px rgba(184,157,85,.2); }
.timeline li.current h3 { color: #fff; font-size: 1.35rem; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.timeline li.current p { color: rgba(255,255,255,.7); }
.timeline .role { font-family: var(--body); -webkit-text-stroke: 0; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; background: var(--gold); color: var(--black); padding: .35em .7em; border-radius: 999px; }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.pillars article { background: var(--ink); padding: 2.6rem 2.2rem; transition: background .3s; }
.pillars article:hover { background: var(--ink-2); }
.pillars .num { font-family: var(--head); font-weight: 800; color: var(--gold); font-size: 1rem; letter-spacing: .1em; display: block; margin-bottom: 2.2rem; }
.pillars h3 { font-size: 1.2rem; }
.pillars p { margin: 0; }

/* Services */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.service { background: #fff; border: 1px solid #e8e2d4; border-radius: var(--radius); padding: 2rem 1.6rem; transition: transform .25s, box-shadow .25s, border-color .25s; }
.service:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,0,0,.08); border-color: var(--gold); }
.service svg { width: 40px; height: 40px; fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 1.4rem; }
.service p { color: var(--muted); font-size: .94rem; margin: 0; }

/* Projects */
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; align-items: start; }
.project { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.project-media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: #000; }
.project-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 80%; transition: transform .8s; }
.project:hover .project-media img { transform: scale(1.04); }
.badge { position: absolute; top: 1rem; left: 1rem; background: var(--gold); color: var(--black); font-family: var(--head); font-weight: 800; font-size: .78rem; letter-spacing: .08em; padding: .45em .8em; border-radius: var(--radius); }
.project-media .gallery-main { object-position: center; transition: opacity .25s, transform .8s; }
.project-media .gallery-main.fading { opacity: 0; }
.badge-dark { background: rgba(11,11,11,.82); color: var(--gold-light); backdrop-filter: blur(4px); border: 1px solid var(--line); }
.thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; padding: 6px; background: #111; }
.thumbs button { padding: 0; border: 2px solid transparent; border-radius: 2px; background: none; cursor: pointer; aspect-ratio: 1; overflow: hidden; opacity: .55; transition: opacity .2s, border-color .2s; }
.thumbs button:hover { opacity: .9; }
.thumbs button.active { opacity: 1; border-color: var(--gold); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.project-cta { margin-top: 1.6rem; }
.credit { font-size: .75rem; margin: 1.2rem 0 0; color: rgba(255,255,255,.4) !important; }
/* Edifici cliccabili in Esplora: aprono la pagina del fabbricato */
.project[data-href] { cursor: pointer; transition: border-color .3s, transform .3s, box-shadow .3s; }
.project[data-href]:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: 0 24px 50px rgba(0,0,0,.45); }
.project[data-href] .project-media::after { content: "Scopri gli appartamenti  →"; position: absolute; left: 0; right: 0; bottom: 0; padding: 3rem 1.4rem 1.2rem; background: linear-gradient(transparent, rgba(0,0,0,.85)); color: #fff; font-family: var(--head); font-weight: 700; font-size: .95rem; letter-spacing: .03em; opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s; pointer-events: none; }
.project[data-href]:hover .project-media::after { opacity: 1; transform: none; }
@media (hover: none) { .project[data-href] .project-media::after { opacity: 1; transform: none; } }
.project-title-link { color: inherit; text-decoration: none; }
.project[data-href]:hover .project-title-link { color: var(--gold-light); }
.thumbs button, .project-cta { cursor: pointer; position: relative; z-index: 1; }
.project-body { padding: 1.8rem 1.8rem 2rem; }
.project-place { font-family: var(--head); font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold) !important; font-weight: 700; margin-bottom: .3rem; }
.project h3 { font-size: 1.35rem; }
.features { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: .1rem; }
.features li { position: relative; padding: .75rem 0 .75rem 1.9rem; border-top: 1px solid rgba(255,255,255,.08); color: rgba(255,255,255,.62); font-size: .93rem; }
.features li::before { content: ""; position: absolute; left: 2px; top: 1.05rem; width: 10px; height: 6px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); }
.features strong { display: block; color: #fff; font-weight: 600; }

/* Works */
.works { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 240px; gap: 1rem; }
.work { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--ink-2); }
.works-2 { grid-template-columns: repeat(2, 1fr); grid-auto-rows: clamp(300px, 38vw, 480px); }
.work img, .work-ph { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.work-ph { background: linear-gradient(135deg, #24221c, #151515); position: relative; }
.work-ph::before { content: ""; position: absolute; inset: 0; background: url("img/emblema-300.png") center / 22% no-repeat; opacity: .12; }
.work-ph::after { content: attr(data-label); position: absolute; top: 1rem; right: 1rem; font-size: .7rem; letter-spacing: .15em; text-transform: uppercase; color: rgba(255,255,255,.35); }
.work:hover img, .work:hover .work-ph { transform: scale(1.05); }
.work figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1.2rem 1rem; background: linear-gradient(transparent, rgba(0,0,0,.8)); font-family: var(--head); font-weight: 700; font-size: .95rem; }

/* Contact */
.contact-list { list-style: none; margin: 2rem 0 0; padding: 0; border-top: 1px solid #e0d9c8; }
.contact-list li { display: grid; grid-template-columns: 110px 1fr; padding: 1rem 0; border-bottom: 1px solid #e0d9c8; }
.contact-list span { font-family: var(--head); font-size: .75rem; letter-spacing: .15em; text-transform: uppercase; color: var(--gold); font-weight: 700; padding-top: .2em; }
.contact-list a { text-decoration: none; font-weight: 600; }
.contact-list a:hover { color: var(--gold); }
.quote-form { background: var(--black); color: #fff; padding: clamp(1.8rem, 4vw, 3rem); border-radius: var(--radius); display: grid; gap: 1.1rem; }
.quote-form h3 { font-size: 1.2rem; margin-bottom: .2rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
.quote-form label { display: grid; grid-template-rows: auto auto; align-content: start; gap: .4rem; font-size: .82rem; font-weight: 600; color: rgba(255,255,255,.75); line-height: 1.3; }
.quote-form input:not([type=checkbox]):not([type=radio]), .quote-form select, .quote-form textarea { box-sizing: border-box; width: 100%; margin: 0; font: inherit; font-size: 1rem; font-weight: 400; line-height: 1.3; color: #fff; background: #191919; border: 1px solid #2f2f2f; border-radius: var(--radius); padding: 0 .9em; transition: border-color .2s; }
/* Tutti i campi su una riga hanno la stessa altezza, così i riquadri restano allineati */
.quote-form input:not([type=checkbox]):not([type=radio]), .quote-form select { height: 52px; }
.quote-form select { appearance: none; -webkit-appearance: none; padding-right: 2.6em; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23d4bd7f' stroke-width='1.8'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1em center; background-size: 12px 8px; }
.quote-form textarea { padding: .8em .9em; min-height: 110px; resize: vertical; }
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus { outline: none; border-color: var(--gold); }
.quote-form .invalid { border-color: #d9654b !important; }
.quote-form .check { display: flex; align-items: flex-start; gap: .6rem; font-weight: 400; }
.quote-form .check { cursor: pointer; }
.quote-form .check input { accent-color: var(--gold); margin: 0; width: 22px; height: 22px; flex: none; cursor: pointer; }
.quote-form .check a { color: var(--gold); }
.quote-form button { justify-self: start; }
.form-msg { margin: 0; font-size: .9rem; color: var(--gold-light); min-height: 1.2em; }
.quote-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; } /* trappola anti-spam */
.quote-form button[disabled] { opacity: .6; cursor: wait; transform: none; }
.form-msg.ok { color: #9fd3a9; }
.form-msg.err { color: #f0a58f; }
.visit-type { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.visit-type[hidden] { display: none; }
.visit-type legend { font-size: .82rem; font-weight: 600; color: rgba(255,255,255,.75); margin-bottom: .4rem; padding: 0; }
.visit-type label { display: block; cursor: pointer; }
.visit-type input { position: absolute; opacity: 0; pointer-events: none; }
.visit-type span { display: flex; flex-direction: column; gap: .15rem; padding: .75rem .9rem; border: 1px solid #2f2f2f; border-radius: var(--radius); background: #191919; font-size: .8rem; font-weight: 400; color: rgba(255,255,255,.55); transition: border-color .2s, background .2s; }
.visit-type strong { font-size: .95rem; color: #fff; font-weight: 600; }
.visit-type input:checked + span { border-color: var(--gold); background: rgba(184,157,85,.12); }
.visit-type input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.visit-where { margin: -.3rem 0 0; font-size: .85rem; color: var(--gold-light); padding: .7rem .9rem; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(184,157,85,.08); }
.form-intro { margin: -.4rem 0 .2rem; font-size: .9rem; color: rgba(255,255,255,.6); }
.quote-form textarea::placeholder { color: rgba(255,255,255,.3); }
.quote-form input[type=date] { color-scheme: dark; }
.quote-form optgroup { color: var(--gold-light); background: #191919; }
.quote-form option { color: #fff; }

/* Passi per l'appuntamento */
.steps { list-style: none; counter-reset: step; margin: 1.8rem 0 0; padding: 0; display: grid; gap: .8rem; }
.steps li { counter-increment: step; display: flex; align-items: center; gap: .9rem; color: var(--muted); }
.steps li::before { content: counter(step); flex: 0 0 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--black); color: var(--gold); font-family: var(--display); font-size: .85rem; }
.steps strong { color: var(--text); }
.map-link { font-size: .85rem; color: var(--gold) !important; }
.contact-list li > div { line-height: 1.6; }

/* Riquadro "vieni in sede" nelle pagine dei fabbricati */
.visit-band { margin-top: 3rem; background: var(--black); color: #fff; border-radius: var(--radius); border-top: 3px solid var(--gold); padding: clamp(1.8rem, 4vw, 3rem); display: grid; grid-template-columns: 1.4fr auto; gap: 2rem; align-items: center; }
.visit-band h3 { font-size: clamp(1.05rem, 2vw, 1.4rem); margin-bottom: .6em; }
.visit-band p { color: rgba(255,255,255,.65); margin: 0; }
.visit-actions { display: flex; flex-direction: column; gap: .7rem; }

/* Barra fissa su telefono: Chiama / Prenota */
.mobile-cta { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; grid-template-columns: 1fr 2fr; gap: .6rem; padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom)); background: rgba(11,11,11,.96); border-top: 1px solid var(--line); backdrop-filter: blur(8px); }
.mobile-cta .btn { padding: .85em .5em; font-size: .88rem; }

/* Footer */
.site-footer { background: var(--black); color: rgba(255,255,255,.6); padding: 4rem 0 2.5rem; text-align: center; border-top: 1px solid var(--line); }
.footer-logo { width: 190px; height: auto; margin: 0 auto 1.8rem; }
.site-footer p { margin: .3rem 0; font-size: .9rem; }
.footer-info span { white-space: nowrap; }
.footer-info strong { color: rgba(255,255,255,.85); }
.footer-info a { text-decoration: none; }
@media (max-width: 640px) {
  .footer-info { display: flex; flex-direction: column; align-items: center; gap: .35rem; line-height: 1.4; }
  .footer-info .sep { display: none; }
  .footer-social { gap: .8rem 2rem; }
  .site-footer { padding-bottom: 2rem; }
}
.footer-social { list-style: none; padding: 0; margin: 1.4rem 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem 1.6rem; }
.footer-social a { display: inline-flex; align-items: center; gap: .45rem; text-decoration: none; font-size: .9rem; }
.footer-social svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.footer-social svg .dot { fill: currentColor; stroke: none; }
.site-footer .small { font-size: .8rem; margin-top: 1.4rem; }
.site-footer a { color: rgba(255,255,255,.6); }
.site-footer a:hover { color: var(--gold); }

/* Pagine dei fabbricati */
.building-hero { background: radial-gradient(ellipse at 80% 30%, #1d1a12 0%, var(--black) 60%); color: #fff; padding: 130px 0 clamp(60px, 8vw, 100px); }
.building-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.building-media { position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden; background: #000; border: 1px solid var(--line); }
.building-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 80%; }
.building-media .gallery-main { object-position: center; transition: opacity .25s; }
.building-media .gallery-main.fading { opacity: 0; }
.building-media-wrap .thumbs { margin-top: 8px; padding: 0; background: none; }
.building-info h1 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); margin-bottom: .5em; }
.building-info .lead { font-size: 1.05rem; }
.building-info .features { margin-bottom: 2rem; }
.back-link { display: inline-block; font-size: .85rem; color: rgba(255,255,255,.55); text-decoration: none; margin-bottom: 1.6rem; }
.back-link:hover { color: var(--gold); }

/* Posizione del fabbricato */
.location-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.location-list { list-style: none; padding: 0; margin: 1.6rem 0 2rem; border-top: 1px solid rgba(255,255,255,.1); }
.location-list li { display: grid; grid-template-columns: 100px 1fr; padding: .8rem 0; border-bottom: 1px solid rgba(255,255,255,.1); color: #fff; }
.location-list span { font-family: var(--head); font-size: .72rem; letter-spacing: .15em; text-transform: uppercase; color: var(--gold); font-weight: 700; padding-top: .2em; }
.map-frame { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #1a1a1a; }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.35) contrast(1.05); }
.map-consent { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .9rem; text-align: center; padding: 2rem; background: radial-gradient(ellipse at center, #232019 0%, #141414 75%); color: var(--gold); }
.map-consent p { color: rgba(255,255,255,.7) !important; max-width: 26rem; margin: 0; font-size: .92rem; }
.map-info { font-size: .8rem; color: rgba(255,255,255,.5); }
.map-info:hover { color: var(--gold-light); }
.map-frame.loaded .map-consent { display: none; }
.map-frame:not(.loaded) iframe { display: none; }

/* Pagine legali (privacy e cookie) */
.legal { background: var(--paper); padding: 140px 0 100px; }
body[data-page="legale"] .site-header { background: var(--black); box-shadow: 0 1px 0 var(--line); }
.legal-inner { max-width: 820px; }
.legal h1 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); margin-bottom: .3em; }
.legal-updated { color: var(--muted); font-size: .9rem; margin-bottom: 2.5rem; }
.legal h2 { font-size: 1.15rem; margin: 2.6rem 0 .9rem; padding-top: 1.6rem; border-top: 1px solid #e3dccb; }
.legal h3 { font-family: var(--head); -webkit-text-stroke: 0; font-weight: 700; font-size: 1rem; margin: 1.4rem 0 .5rem; }
.legal p, .legal li { color: #3d3a34; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: .4rem; }
.legal a { color: #8a6a1c; }
.legal-table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: .92rem; background: #fff; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: .8rem 1rem; border: 1px solid #e3dccb; }
.legal-table th { background: var(--black); color: var(--gold-light); font-family: var(--head); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
.legal-note { font-size: .88rem; color: #2d6a3e; margin-left: .6rem; }
@media (max-width: 640px) { .legal-table, .legal-table tbody, .legal-table tr, .legal-table td { display: block; } .legal-table thead { display: none; } .legal-table td { border-top: 0; } .legal-table tr { border-top: 1px solid #e3dccb; margin-bottom: .8rem; } }

.project-address { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; color: var(--gold-light); text-decoration: none; margin-top: .2rem; position: relative; z-index: 1; }
.project-address:hover { text-decoration: underline; }

/* Elenco appartamenti */
.apt-head { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.apt-head h2 { margin-bottom: .3em; }
.apt-count { color: var(--muted); margin: 0; }
.apt-filters { display: inline-flex; border: 1px solid #ddd5c3; border-radius: 999px; padding: 4px; background: #fff; }
.apt-filters[hidden] { display: none; }
.apt-filters button { font: inherit; font-size: .85rem; font-weight: 600; border: 0; background: none; padding: .55em 1.2em; border-radius: 999px; cursor: pointer; color: var(--muted); }
.apt-filters button.active { background: var(--black); color: #fff; }
.apt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 1.5rem; }
.apt { background: #fff; border: 1px solid #e8e2d4; border-radius: var(--radius); padding: 1.6rem; display: flex; flex-direction: column; transition: border-color .25s, box-shadow .25s; }
.apt:hover { border-color: var(--gold); box-shadow: 0 16px 36px rgba(0,0,0,.07); }
.apt-plan { position: relative; display: block; width: calc(100% + 3.2rem); margin: -1.6rem -1.6rem 1.4rem; padding: 0; border: 0; border-bottom: 1px solid #e8e2d4; background: #e4e1dc; cursor: zoom-in; aspect-ratio: 1 / 1; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; }
.apt-plan img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s; }
.apt-plan:hover img { transform: scale(1.03); }
.apt-plan span { position: absolute; right: .8rem; bottom: .8rem; background: rgba(11,11,11,.8); color: #fff; font-size: .75rem; font-weight: 600; padding: .4em .8em; border-radius: 999px; }
.apt header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1.2rem; }
.apt h3 { margin: 0; font-size: 1.05rem; }
.apt-floor { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin: 0 0 .35rem; }
.apt-status { flex-shrink: 0; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .35em .75em; border-radius: 999px; white-space: nowrap; }
.apt-disponibile .apt-status { background: #e3f1e6; color: #2d6a3e; }
.apt-prenotato .apt-status { background: #f6ecd2; color: #8a6a1c; }
.apt-venduto .apt-status { background: #ececec; color: #777; }
/* Appartamento venduto: piantina sbiadita in bianco e nero */
.apt-venduto .apt-plan img { filter: grayscale(1) contrast(.85); opacity: .35; }
.apt-venduto .apt-plan:hover img { transform: none; }
.apt-venduto .apt-plan span { display: none; }
.apt-venduto h3, .apt-venduto .apt-specs dd { color: #8b877e; }
.apt-specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem .6rem; margin: 0 0 1rem; padding: 1rem 0; border-top: 1px solid #eee7d8; border-bottom: 1px solid #eee7d8; }
.apt-specs dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.apt-specs dd { margin: .15rem 0 0; font-weight: 600; }
.apt-extra { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.apt-extra li { font-size: .78rem; background: var(--paper); border: 1px solid #e8e2d4; padding: .25em .7em; border-radius: 999px; }
.apt-price { font-family: var(--body); font-weight: 600; font-size: 1.2rem; margin: auto 0 1rem; padding-top: .4rem; }
.apt-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.apt-actions .btn-ghost { color: var(--text); border-color: #d8cfbb; }
.apt-actions .btn-ghost:hover { color: var(--gold); border-color: var(--gold); }
.apt-empty { grid-column: 1 / -1; text-align: center; background: #fff; border: 1px dashed #d8cfbb; border-radius: var(--radius); padding: clamp(2.5rem, 6vw, 4rem) 1.5rem; }
.apt-empty img { margin: 0 auto 1.2rem; opacity: .9; }
.apt-empty p { color: var(--muted); max-width: 32rem; margin: 0 auto 1.6rem; }
.apt-none { color: var(--muted); }
.plan-dialog { border: 0; padding: 0; border-radius: var(--radius); max-width: min(960px, 94vw); background: #fff; }
.plan-dialog::backdrop { background: rgba(0,0,0,.8); }
.plan-bar { display: flex; justify-content: space-between; align-items: center; padding: .8rem 1.2rem; border-bottom: 1px solid #eee; font-weight: 600; }
.plan-close { font-size: 1.6rem; line-height: 1; background: none; border: 0; cursor: pointer; }
.plan-dialog img { max-height: 80vh; margin: 0 auto; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .reveal, .hero-emblem img { opacity: 1; transform: none; transition: none; animation: none; } }

/* Responsive */
@media (max-width: 1024px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .works { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  #menu { position: fixed; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--black); padding: 1rem 24px 2rem; box-shadow: 0 20px 40px rgba(0,0,0,.5); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: transform .3s, opacity .3s, visibility .3s; }
  #menu.open { transform: none; opacity: 1; visibility: visible; }
  .main-nav li a:not(.btn) { display: block; padding: 1rem 0; border-bottom: 1px solid #222; }
  .has-dropdown { flex-wrap: wrap; gap: 0; }
  .has-dropdown > .dropdown-link { flex: 1; }
  .dropdown-toggle { width: 52px; align-self: stretch; justify-content: center; padding: 0; border-bottom: 1px solid #222; border-left: 1px solid #222; }
  .dropdown-toggle svg { width: 13px; height: 9px; }
  .dropdown { flex-basis: 100%; }
  .dropdown { position: static; min-width: 0; border: 0; box-shadow: none; padding: 0; border-radius: 0; background: #121212; display: none; opacity: 1; visibility: visible; transform: none; }
  .dropdown::before { display: none; }
  .has-dropdown.open .dropdown { display: block; }
  .main-nav .dropdown a { padding: .9rem 1rem; border-bottom: 1px solid #1e1e1e; }
  .header-tel { display: none; }
  .header-cta { width: 40px; height: 40px; padding: 0; }
  .header-cta span { display: none; }
  .mobile-cta { display: grid; }
  body { padding-bottom: 72px; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-header, .site-header.scrolled { background: var(--black); backdrop-filter: none; }
  .hero { padding-top: 120px; }
  .hero-inner { grid-template-columns: 1fr; min-height: 0; }
  .hero-emblem { order: -1; width: 150px; justify-self: start; }
  .two-col, .pillars, .projects, .building-grid, .location-grid { grid-template-columns: 1fr; }
  .building-hero { padding-top: 106px; }
  /* Su telefono e tablet gli edifici vengono subito dopo l'apertura, prima di Azienda/Mission/Servizi */
  body[data-page="home"] main { display: flex; flex-direction: column; }
  body[data-page="home"] main > .hero { order: -2; }
  body[data-page="home"] main > #esplora { order: -1; border-top: 1px solid #1f1f1f; }
}
@media (max-width: 560px) {
  .services, .works, .field-row { grid-template-columns: 1fr; }
  .works-2 { grid-template-columns: 1fr; grid-auto-rows: 300px; }
  .hero-stats { grid-template-columns: 1fr; }
  .hero-stats div, .hero-stats div + div { padding: 1.2rem 0; border-left: 0; border-bottom: 1px solid var(--line); flex-direction: row; align-items: baseline; gap: 1rem; }
  .contact-list li { grid-template-columns: 1fr; gap: .2rem; }
  /* Schede appartamento: etichetta di stato sopra il nome, così il nome sta su una riga */
  .apt header { flex-direction: column-reverse; align-items: flex-start; gap: .7rem; }
  .visit-band { grid-template-columns: 1fr; }
  /* Servizi compatti: titolo con icona, descrizione che si apre con un tocco */
  .services { gap: .6rem; }
  .service { display: grid; grid-template-columns: 28px 1fr 12px; align-items: center; column-gap: .9rem; padding: 1rem 1.1rem; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .service:hover { transform: none; box-shadow: none; }
  .service svg { width: 28px; height: 28px; margin: 0; }
  .service h3 { margin: 0; font-size: 1rem; }
  .service::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: translateY(-2px) rotate(45deg); transition: transform .25s; justify-self: end; grid-column: 3; grid-row: 1; }
  .service.open { border-color: var(--gold); }
  .service.open::after { transform: translateY(2px) rotate(-135deg); }
  .service p { grid-column: 1 / -1; display: none; padding-top: .6rem; }
  .service.open p { display: block; }
}
