/* Maestria Immobiliare — site stylesheet.
   Dark architectural base (#121212 / #262626), architectural white (#F4F2EE), restrained signature red (#B91C1C).
   Display: Source Serif 4 · Text: Inter. No inline styles anywhere (strict CSP). */

@font-face { font-family: 'Source Serif 4'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(../fonts/source-serif-4.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(../fonts/inter-var.woff2) format('woff2'); }

:root {
  --ink: #121212;
  --ink-2: #191919;
  --char: #262626;
  --paper: #F4F2EE;
  --paper-2: #EBE7E0;
  --white: #fff;
  --text: #1c1b1a;
  --muted: #5c5853;
  --line: #dcd7cf;
  --line-dk: rgba(255, 255, 255, .14);
  --on-dk: rgba(255, 255, 255, .78);
  --on-dk-2: rgba(255, 255, 255, .6);
  --red: #B91C1C;
  --red-hover: #9a1616;
  --red-dk: #EF4B4B;          /* red for small text on dark (AA) */
  --serif: 'Source Serif 4', 'Times New Roman', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --wrap: 1240px;
  --gut: clamp(16px, 4vw, 40px);
  --sect: clamp(72px, 9vw, 128px);
  --hdr-h: 96px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.sect--dark :focus-visible, .hdr :focus-visible, .mnav :focus-visible, .ftr :focus-visible, .hero :focus-visible, .phero :focus-visible, .turnkey :focus-visible, .why :focus-visible, .cta-band :focus-visible { outline-color: #fff; }
main:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: #fff; color: var(--ink); padding: 10px 16px; border-radius: 2px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.ico { flex: none; }

/* ---------- type ---------- */
.display { font-family: var(--serif); font-weight: 400; line-height: 1.06; letter-spacing: -.015em; font-size: clamp(2.3rem, 4.6vw, 3.9rem); text-wrap: balance; }
.display--xl { font-size: clamp(2.6rem, 6.2vw, 5.3rem); line-height: 1.02; }
.display--lg { font-size: clamp(2rem, 3.6vw, 3.15rem); }
.display--md { font-size: clamp(1.7rem, 2.6vw, 2.3rem); }
.eyebrow { display: inline-flex; align-items: center; gap: 14px; font: 600 12px/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--red); margin-bottom: 18px; }
.eyebrow::before { content: ''; width: 22px; height: 2px; background: currentColor; }
.hero .eyebrow, .phero .eyebrow, .sect--dark .eyebrow, .turnkey .eyebrow, .why .eyebrow, .eyebrow--light { color: var(--red-dk); }
.lead, .sect__lead { font-size: clamp(1.02rem, 1.3vw, 1.15rem); line-height: 1.7; color: var(--muted); }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; color: var(--red); font-weight: 600; text-decoration: none; }
.sect--dark .link-arrow { color: var(--red-dk); }
.link-arrow .ico { transition: transform .3s var(--ease); }
.link-arrow:hover .ico { transform: translateX(4px); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 0 26px; border: 1px solid transparent; border-radius: 2px; font: 500 15px/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: background-color .25s, border-color .25s, color .25s; white-space: nowrap; }
.btn .ico { transition: transform .3s var(--ease); }
.btn:hover .ico { transform: translateX(4px); }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-hover); }
.btn--ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--ink); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--char); }
.btn--line { border-color: var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: #fff; }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 14px; }

/* ---------- header ---------- */
.hdr { position: fixed; inset: 0 0 auto; z-index: 50; color: #fff; transition: background-color .35s, box-shadow .35s; }
.hdr::before { content: ''; position: absolute; inset: 0 0 -40px; background: linear-gradient(rgba(8, 8, 8, .6), transparent); pointer-events: none; transition: opacity .35s; }
.hdr__in { position: relative; display: flex; align-items: center; gap: 32px; height: var(--hdr-h); transition: height .35s var(--ease); }
.hdr__logo { flex: none; display: block; }
.hdr__logo img { height: 76px; width: auto; transition: height .35s var(--ease); }
.hdr__nav { margin-left: auto; }
.hdr__nav ul { display: flex; gap: clamp(16px, 2vw, 30px); }
.hdr__nav a { position: relative; display: block; padding: 10px 0; font-size: 14px; color: rgba(255, 255, 255, .82); text-decoration: none; transition: color .2s; }
.hdr__nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.hdr__nav a:hover, .hdr__nav a[aria-current] { color: #fff; }
.hdr__nav a:hover::after, .hdr__nav a[aria-current]::after { transform: scaleX(1); }
.hdr__burger { display: none; margin-left: auto; width: 48px; height: 48px; align-items: center; justify-content: center; background: none; border: 1px solid var(--line-dk); border-radius: 2px; color: #fff; cursor: pointer; }
.hdr__burger .i-close { display: none; }
.hdr.is-solid { background: rgba(18, 18, 18, .94); box-shadow: 0 1px 0 var(--line-dk); }
@supports (backdrop-filter: blur(1px)) { .hdr.is-solid { background: rgba(18, 18, 18, .82); backdrop-filter: blur(14px) saturate(1.2); } }
.hdr.is-solid::before { opacity: 0; }
.hdr.is-solid .hdr__in { height: 72px; }
.hdr.is-solid .hdr__logo img { height: 56px; }
html.menu-open { overflow: hidden; }
html.menu-open .hdr { background: var(--ink); }
html.menu-open .hdr__burger .i-open { display: none; }
html.menu-open .hdr__burger .i-close { display: block; }

.mnav { position: fixed; inset: 0; z-index: 45; background: var(--ink); color: #fff; padding: calc(var(--hdr-h) + 16px) var(--gut) 32px; display: flex; flex-direction: column; gap: 28px; overflow-y: auto; }
.mnav[hidden] { display: none; }
.mnav ul { border-top: 1px solid var(--line-dk); }
.mnav li { border-bottom: 1px solid var(--line-dk); }
.mnav a:not(.btn) { display: block; padding: 16px 0; font: 400 1.6rem/1.2 var(--serif); text-decoration: none; }
.mnav a[aria-current] { color: var(--red-dk); }
.mnav .btn { align-self: flex-start; }
.mnav__legal { font-size: 13px; color: var(--on-dk-2); margin-top: auto; }

@media (max-width: 1099px) {
  :root { --hdr-h: 80px; }
  .hdr__nav, .hdr__cta { display: none; }
  .hdr__burger { display: inline-flex; }
  .hdr__logo img { height: 62px; }
  .hdr.is-solid .hdr__in { height: 64px; }
  .hdr.is-solid .hdr__logo img { height: 50px; }
}

/* ---------- sections ---------- */
.sect { padding: var(--sect) 0; }
.sect--paper { background: var(--paper); }
.sect--light { background: #faf9f6; }
.sect--white { background: #fff; }
.sect--dark { background: var(--ink-2); color: #fff; }
.sect--dark p { color: var(--on-dk); }
.sect__head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.sect__head .display + p { margin-top: 20px; }
.sect__head--split { max-width: none; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 64px; align-items: end; }
.sect__head--split .sect__lead { margin-bottom: 24px; }
.sect__head-side { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 16px; }
.sect__head--center { margin-inline: auto; text-align: center; }
.sect__head--center .eyebrow { justify-content: center; }
@media (max-width: 860px) {
  .sect__head--split { grid-template-columns: 1fr; }
  .sect__head-side { justify-content: flex-start; }
}

/* ---------- hero (home) ---------- */
.hero { position: relative; min-height: max(640px, 100svh); display: flex; flex-direction: column; color: #fff; background: var(--ink); overflow: hidden; isolation: isolate; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; z-index: -2; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 10, 10, .9) 0%, rgba(10, 10, 10, .66) 38%, rgba(10, 10, 10, .12) 72%), linear-gradient(0deg, rgba(10, 10, 10, .85) 0%, transparent 32%); }
.hero__in { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-top: calc(var(--hdr-h) + 40px); padding-bottom: 56px; }
.hero h1 { max-width: 11em; }
.hero h1 span { display: block; }
.hero__lead { max-width: 520px; margin-top: 26px; font-size: clamp(1.02rem, 1.3vw, 1.14rem); color: rgba(255, 255, 255, .86); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero__strip { border-top: 1px solid var(--line-dk); background: rgba(12, 12, 12, .5); }
@supports (backdrop-filter: blur(1px)) { .hero__strip { backdrop-filter: blur(10px); } }
.hero__strip ul { display: grid; grid-template-columns: repeat(4, 1fr); }
.hero__strip a { display: flex; align-items: center; gap: 16px; padding: 24px 20px 24px 0; font-size: 14px; line-height: 1.35; color: rgba(255, 255, 255, .88); text-decoration: none; transition: color .2s; }
.hero__strip li + li a { padding-left: 24px; border-left: 1px solid var(--line-dk); }
.hero__strip a:hover { color: #fff; }
.hero__strip .ico { color: #fff; }
.hero__strip a:hover .ico { color: var(--red-dk); }
@media (max-width: 860px) {
  .hero { min-height: max(600px, 92svh); }
  .hero__img { object-position: 70% 50%; }
  .hero::before { background: linear-gradient(0deg, rgba(10, 10, 10, .95) 0%, rgba(10, 10, 10, .55) 55%, rgba(10, 10, 10, .35) 100%); }
  .hero__in { justify-content: flex-end; padding-bottom: 36px; }
  .hero__strip ul { grid-template-columns: 1fr 1fr; }
  .hero__strip li a, .hero__strip li + li a { padding: 18px 12px; border-left: 0; }
  .hero__strip li:nth-child(even) a { border-left: 1px solid var(--line-dk); }
  .hero__strip li:nth-child(n+3) a { border-top: 1px solid var(--line-dk); }
  .hero__strip .ico { width: 24px; height: 24px; }
}
@media (max-width: 420px) { .hero__ctas .btn { flex: 1 1 100%; } }

/* ---------- page hero (inner pages) ---------- */
.phero { position: relative; min-height: clamp(440px, 66vh, 640px); display: flex; align-items: flex-end; color: #fff; background: var(--ink); isolation: isolate; overflow: hidden; }
.phero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.phero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 10, 10, .88) 0%, rgba(10, 10, 10, .6) 45%, rgba(10, 10, 10, .25) 100%), linear-gradient(0deg, rgba(10, 10, 10, .7), transparent 50%); }
.phero__in { padding-top: calc(var(--hdr-h) + 48px); padding-bottom: clamp(48px, 7vw, 88px); }
.phero h1 { max-width: 16ch; }
.phero__lead { max-width: 620px; margin-top: 22px; font-size: clamp(1.02rem, 1.3vw, 1.14rem); color: rgba(255, 255, 255, .84); }
.phero--plain { min-height: 0; }
.phero--plain::before { background: none; }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; font-size: 13px; color: var(--on-dk-2); }
.crumbs a { color: var(--on-dk); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs [aria-current] { color: #fff; }

/* ---------- home: company intro ---------- */
.intro { padding: 0; }
.intro__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, .9fr); align-items: stretch; }
.intro__media { min-height: 420px; position: relative; overflow: hidden; }
.intro__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.intro__copy { padding: clamp(48px, 6vw, 96px) clamp(24px, 5vw, 72px); align-self: center; }
.intro__copy p { margin: 22px 0 26px; max-width: 520px; }
.intro__links { border-left: 1px solid var(--line-dk); align-self: center; padding: 32px clamp(20px, 3vw, 48px); }
.intro__links li + li { border-top: 1px solid var(--line-dk); }
.intro__links a { display: flex; align-items: center; gap: 20px; padding: 22px 0; font-size: 14.5px; line-height: 1.4; color: rgba(255, 255, 255, .88); text-decoration: none; }
.intro__links a > .ico:first-child { color: #fff; }
.intro__links .i-go { margin-left: auto; color: var(--on-dk-2); transition: transform .3s var(--ease), color .2s; }
.intro__links a:hover .i-go { transform: translateX(4px); color: var(--red-dk); }
@media (max-width: 1023px) {
  .intro__grid { grid-template-columns: 1fr 1fr; }
  .intro__links { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line-dk); display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; padding-top: 8px; padding-bottom: 40px; }
  .intro__links li + li { border-top: 0; }
  .intro__links li { border-bottom: 1px solid var(--line-dk); }
}
@media (max-width: 700px) {
  .intro__grid { grid-template-columns: 1fr; }
  .intro__media { min-height: 260px; }
  .intro__links { grid-template-columns: 1fr; }
}

/* ---------- service cards ---------- */
.scards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.scard { display: flex; flex-direction: column; background: #fff; text-decoration: none; color: var(--text); border: 1px solid var(--line); transition: box-shadow .35s var(--ease), transform .35s var(--ease); }
.scard__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); }
.scard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.scard__body { flex: 1; display: flex; flex-direction: column; padding: 24px 24px 22px; }
.scard__ico { color: var(--red); margin-bottom: 16px; }
.scard h3 { font: 400 1.4rem/1.15 var(--serif); margin-bottom: 10px; }
.scard p { font-size: 14.5px; color: var(--muted); }
.scard__go { margin-top: auto; padding-top: 18px; color: var(--red); }
.scard__go .ico { transition: transform .3s var(--ease); }
.scard:hover { box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .35); transform: translateY(-3px); }
.scard:hover img { transform: scale(1.05); }
.scard:hover .scard__go .ico { transform: translateX(5px); }
@media (max-width: 1023px) { .scards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .scards { grid-template-columns: 1fr; }
  .scard { flex-direction: row; }
  .scard__media { flex: 0 0 38%; aspect-ratio: auto; }
  .scard__body { padding: 18px; }
  .scard__ico { margin-bottom: 10px; width: 26px; height: 26px; }
  .scard h3 { font-size: 1.2rem; }
  .scard p { font-size: 13.5px; }
  .scard__go { display: none; }
}

/* ---------- turnkey feature (home) ---------- */
.turnkey { position: relative; background: var(--ink); color: #fff; overflow: hidden; isolation: isolate; padding: var(--sect) 0 48px; }
.turnkey__img { position: absolute; top: 0; right: 0; width: 64%; height: 100%; object-fit: cover; z-index: -2; }
.turnkey::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--ink) 0%, var(--ink) 34%, rgba(18, 18, 18, .55) 58%, rgba(18, 18, 18, .05) 85%); }
.turnkey__copy { max-width: 540px; }
.turnkey__copy > p { margin: 22px 0 30px; color: var(--on-dk); }
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 34px; }
.benefits li { display: flex; flex-direction: column; gap: 12px; font-size: 13.5px; line-height: 1.35; color: rgba(255, 255, 255, .9); }
.benefits li + li { border-left: 1px solid var(--line-dk); padding-left: 12px; }
.stagestrip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-top: clamp(48px, 7vw, 96px); }
.stagestrip li { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; font-size: 13px; line-height: 1.35; color: rgba(255, 255, 255, .88); }
.stagestrip__ico { width: 58px; height: 58px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .45); border-radius: 50%; background: rgba(18, 18, 18, .55); }
@media (max-width: 1023px) {
  .turnkey { padding-top: 0; }
  .turnkey__img { position: relative; width: 100%; height: auto; aspect-ratio: 16 / 10; }
  .turnkey::before { background: linear-gradient(0deg, var(--ink) 0%, var(--ink) 52%, transparent 70%); }
  .turnkey__in { margin-top: -80px; }
  .stagestrip { grid-template-columns: repeat(4, 1fr); row-gap: 24px; }
}
@media (max-width: 560px) {
  .benefits { grid-template-columns: 1fr 1fr; row-gap: 20px; }
  .benefits li:nth-child(3) { border-left: 0; padding-left: 0; }
  .stagestrip { grid-template-columns: repeat(2, 1fr); justify-items: start; }
  .stagestrip li { flex-direction: row; text-align: left; }
  .stagestrip__ico { width: 46px; height: 46px; }
}

/* ---------- project cards / archive ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 0 16px; border: 1px solid var(--line); background: #fff; border-radius: 2px; font-size: 13.5px; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.filters { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; margin-bottom: 36px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.filters__grp { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.filters__lab { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.pgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pgrid--3 { grid-template-columns: repeat(3, 1fr); }
.pgrid__none { padding: 32px 0; color: var(--muted); }
.pcard[hidden] { display: none; }
.pcard__link { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--text); transition: box-shadow .35s var(--ease); }
.pcard__media { position: relative; aspect-ratio: 10 / 7; overflow: hidden; background: var(--paper-2); }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.pcard__body { flex: 1; display: flex; flex-direction: column; padding: 18px 20px 20px; }
.pcard__meta { font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.pcard__title { font: 400 1.25rem/1.2 var(--serif); }
.pcard__more { margin-top: auto; padding-top: 16px; display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--red); }
.pcard__more .ico { transition: transform .3s var(--ease); }
.pcard__link:hover { box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .35); }
.pcard__link:hover img { transform: scale(1.05); }
.pcard__link:hover .pcard__more .ico { transform: translateX(4px); }
.badge { position: absolute; top: 12px; right: 12px; padding: 5px 10px; font: 600 11px/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: #fff; background: var(--red); }
.badge--in-corso { background: var(--ink); }
.badge--pianificato { background: #fff; color: var(--ink); }
.badge--static { position: static; display: inline-block; }
.pempty { display: grid; grid-template-columns: auto 1fr auto; gap: 24px 32px; align-items: center; padding: clamp(28px, 4vw, 44px); background: #fff; border: 1px solid var(--line); }
.pempty > .ico { color: var(--red); }
.pempty h3 { font: 400 1.6rem/1.2 var(--serif); margin-bottom: 8px; }
.pempty p { color: var(--muted); max-width: 620px; }
@media (max-width: 1023px) { .pgrid, .pgrid--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) {
  .pempty { grid-template-columns: 1fr; }
}
@media (max-width: 560px) { .pgrid, .pgrid--3 { grid-template-columns: 1fr; } }

/* ---------- why maestria ---------- */
.why { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); background: var(--ink); color: #fff; }
.why__art { position: relative; min-height: 420px; overflow: hidden; background: var(--red); }
.why__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.25) brightness(.9); mix-blend-mode: multiply; }
.why__art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 60%, var(--ink)); }
.why__copy { padding: var(--sect) var(--gut); max-width: 720px; }
.why__copy > p { margin-top: 20px; color: var(--on-dk); max-width: 560px; }
.whylist { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; margin-top: 44px; }
.whylist li { display: flex; gap: 16px; }
.whylist .ico { width: 52px; height: 52px; padding: 12px; border: 1px solid var(--line-dk); color: #fff; }
.whylist h3 { font: 600 15px/1.35 var(--sans); margin-bottom: 4px; }
.whylist p { font-size: 14px; color: var(--on-dk-2); }
@media (max-width: 960px) {
  .why { grid-template-columns: 1fr; }
  .why__art { min-height: 280px; }
  .why__art::after { background: linear-gradient(0deg, var(--ink), transparent 50%); }
}
@media (max-width: 560px) { .whylist { grid-template-columns: 1fr; } }

/* ---------- CTA band + forms ---------- */
.cta-band { position: relative; background: var(--ink-2); color: #fff; padding: var(--sect) 0; overflow: hidden; isolation: isolate; }
.cta-band__art { position: absolute; inset: 0 auto 0 0; width: 46%; z-index: -1; background: url(../photos/disegno-sm.webp) center / cover no-repeat; filter: grayscale(1); opacity: .22; mask-image: linear-gradient(90deg, #000 30%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 30%, transparent); }
.cta-band__art::after { content: ''; position: absolute; inset: 0; background: var(--red); mix-blend-mode: color; }
.cta-band__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px clamp(40px, 6vw, 96px); align-items: start; }
.cta-band__copy > p { margin-top: 20px; color: var(--on-dk); max-width: 480px; }
.cta-band__pts { display: grid; gap: 16px; margin-top: 34px; }
.cta-band__pts li { display: flex; align-items: center; gap: 14px; font-size: 14.5px; color: rgba(255, 255, 255, .9); }
.cta-band__pts .ico { color: var(--red-dk); }
@media (max-width: 900px) { .cta-band__in { grid-template-columns: 1fr; } .cta-band__art { width: 100%; height: 50%; mask-image: linear-gradient(180deg, #000, transparent); -webkit-mask-image: linear-gradient(180deg, #000, transparent); } }

.qform { display: grid; gap: 18px; }
.qform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 13.5px; font-weight: 500; }
.field input[type=text], .field input[type=email], .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; background: #fff; border: 1px solid #cfc9c0; border-radius: 2px; transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 120px; line-height: 1.55; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(185, 28, 28, .18); }
.field [aria-invalid="true"] { border-color: var(--red); }
.field__err { font-size: 13px; color: var(--red); }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; }
.select .ico { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.field--check { grid-template-columns: auto 1fr; align-items: start; gap: 4px 12px; }
.field--check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--red); cursor: pointer; }
.field--check label { font-size: 13.5px; font-weight: 400; line-height: 1.5; }
.field--check .field__err { grid-column: 2; }
.qform .btn { justify-self: start; }
.qform__alert { padding: 12px 14px; border-left: 3px solid var(--red); background: #fbecec; color: #7a1414; font-size: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.qform--dark .field label { color: rgba(255, 255, 255, .85); }
.qform--dark .field input[type=text], .qform--dark .field select, .qform--dark .field textarea { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .22); color: #fff; }
.qform--dark .field select option { color: var(--ink); }
.qform--dark .field input:focus, .qform--dark .field select:focus, .qform--dark .field textarea:focus { border-color: #fff; box-shadow: 0 0 0 3px rgba(239, 75, 75, .3); }
.qform--dark .field--check label { color: var(--on-dk); }
.qform--dark .field--check a { color: #fff; }
.qform--dark .field__err { color: #ff8a8a; }
@media (max-width: 560px) { .qform__row { grid-template-columns: 1fr; } .qform .btn { justify-self: stretch; } }

.okbox { display: flex; gap: 16px; padding: 24px; background: #fff; border: 1px solid var(--line); border-left: 3px solid #1d7a46; }
.okbox .ico { color: #1d7a46; }
.okbox h2 { font: 400 1.6rem/1.2 var(--serif); margin-bottom: 6px; }
.okbox p { color: var(--muted); }

/* ---------- split rows (services, company) ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px clamp(40px, 6vw, 96px); align-items: center; }
.split + .split { margin-top: clamp(72px, 9vw, 120px); }
.split--rev .split__media { order: 2; }
.split__media { position: relative; }
.split__media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.split__media::after { content: ''; position: absolute; left: -14px; bottom: -14px; width: 38%; height: 38%; border-left: 2px solid var(--red); border-bottom: 2px solid var(--red); pointer-events: none; }
.split--rev .split__media::after { left: auto; right: -14px; border-left: 0; border-right: 2px solid var(--red); }
.split__copy .display + p, .split__copy .display + .lead { margin-top: 20px; }
.split__copy .btn, .split__copy .link-arrow { margin-top: 30px; }
.split__ico { color: var(--red); margin-bottom: 18px; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split--rev .split__media { order: 0; }
  .split__media::after { display: none; }
}
.checklist { display: grid; gap: 12px; margin-top: 26px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist .ico { color: var(--red); margin-top: 2px; }
.sect--dark .checklist .ico { color: var(--red-dk); }

/* ---------- icon cards ---------- */
.icards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.icards--4 { grid-template-columns: repeat(4, 1fr); }
.icard { background: #fff; padding: clamp(24px, 3vw, 36px); }
.icard .ico { color: var(--red); margin-bottom: 18px; }
.icard h3 { font: 400 1.35rem/1.2 var(--serif); margin-bottom: 10px; }
.icard p { font-size: 14.5px; color: var(--muted); }
.icard__n { display: block; font: 600 12px/1 var(--sans); letter-spacing: .16em; color: var(--red); margin-bottom: 14px; }
.sect--dark .icards { background: var(--line-dk); border-color: var(--line-dk); }
.sect--dark .icard { background: var(--ink-2); }
.sect--dark .icard p { color: var(--on-dk-2); }
.sect--dark .icard .ico, .sect--dark .icard__n { color: var(--red-dk); }
@media (max-width: 1023px) { .icards, .icards--4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .icards, .icards--4 { grid-template-columns: 1fr; } }

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tiles li { display: flex; align-items: center; gap: 14px; padding: 18px; background: #fff; border: 1px solid var(--line); font-size: 14.5px; }
.tiles .ico { color: var(--red); }
@media (max-width: 860px) { .tiles { grid-template-columns: 1fr 1fr; } }

/* promise band */
.promise { background: var(--red); color: #fff; padding: clamp(48px, 6vw, 80px) 0; }
.promise__in { display: grid; grid-template-columns: auto 1fr; gap: 24px 48px; align-items: center; }
.promise .eyebrow { color: #fff; margin: 0; }
.promise p.display { font-size: clamp(1.7rem, 3.2vw, 2.7rem); color: #fff; }
@media (max-width: 760px) { .promise__in { grid-template-columns: 1fr; } }

/* ---------- method steps ---------- */
.tabs { display: inline-flex; padding: 4px; background: #fff; border: 1px solid var(--line); margin-bottom: 40px; }
.tab { min-height: 44px; padding: 0 20px; border: 0; background: none; font-size: 14px; font-weight: 500; cursor: pointer; color: var(--muted); }
.tab[aria-selected="true"] { background: var(--ink); color: #fff; }
.steps { counter-reset: step; display: grid; gap: 0; border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(0, 300px); gap: 24px 32px; align-items: center; padding: 28px 0; border-bottom: 1px solid var(--line); }
.step__num { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--red); color: #fff; font: 600 14px/1 var(--sans); }
.step h3 { font: 400 1.55rem/1.2 var(--serif); margin-bottom: 8px; }
.step p { color: var(--muted); max-width: 620px; }
.step__alt { display: none; }
.step__img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
html.js [data-mode="investimenti"] .step__main { display: none; }
html.js [data-mode="investimenti"] .step__alt { display: block; }
html:not(.js) .step__alt { display: block; margin-top: 10px; }
html:not(.js) .step__alt::before { content: 'Per gli investimenti: '; font-weight: 600; color: var(--text); }
html:not(.js) .tabs { display: none; }
@media (max-width: 860px) {
  .step { grid-template-columns: 56px 1fr; }
  .step__img { grid-column: 2; }
}

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); max-width: 900px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; cursor: pointer; list-style: none; font: 400 1.25rem/1.3 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { color: var(--red); transition: transform .3s var(--ease); }
.faq details[open] summary .ico { transform: rotate(45deg); }
.faq details p { padding: 0 48px 24px 0; color: var(--muted); }

/* ---------- project detail ---------- */
.pd-head { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px 64px; align-items: start; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 36px 0 0; }
.facts div { background: #fff; padding: 20px; }
.facts dt { display: flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.facts .ico { color: var(--red); }
.facts dd { font-weight: 500; }
.sect__body { margin-top: clamp(40px, 5vw, 64px); }
.pd-mat { margin-top: 36px; }
.pd-cta { margin-top: 36px; }
@media (max-width: 860px) { .facts { grid-template-columns: 1fr 1fr; } .pd-head { grid-template-columns: 1fr; } }
.prose { max-width: 720px; }
.prose p + p { margin-top: 1.1em; }
.prose h2 { font: 400 1.7rem/1.2 var(--serif); margin: 2.2em 0 .6em; }
.prose h3 { font: 600 1rem/1.4 var(--sans); margin: 1.6em 0 .4em; }
.prose ul { list-style: disc; padding-left: 1.3em; margin: .8em 0; }
.prose li + li { margin-top: .35em; }
.prose a { color: var(--red); }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery button { display: block; position: relative; padding: 0; border: 0; background: var(--paper-2); cursor: zoom-in; overflow: hidden; aspect-ratio: 4 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gallery button:hover img { transform: scale(1.04); }
.gallery button:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
@media (max-width: 700px) { .gallery { grid-template-columns: 1fr 1fr; } }
.lb { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(10, 10, 10, .96); color: #fff; }
.lb[open] { display: grid; place-items: center; }
.lb::backdrop { background: rgba(0, 0, 0, .8); }
.lb figure { max-width: min(1400px, 92vw); }
.lb img { max-height: 82vh; width: auto; margin: 0 auto; }
.lb figcaption { text-align: center; padding-top: 12px; font-size: 14px; color: var(--on-dk); }
.lb__btn { position: absolute; width: 52px; height: 52px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); border: 1px solid var(--line-dk); color: #fff; cursor: pointer; }
.lb__btn:hover { background: rgba(255, 255, 255, .18); }
.lb__close { top: 16px; right: 16px; }
.lb__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb__next { right: 16px; top: 50%; transform: translateY(-50%); }

.ba { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: var(--paper-2); user-select: none; --pos: 50%; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__after { clip-path: inset(0 0 0 var(--pos)); }
.ba__line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; pointer-events: none; }
.ba__line::after { content: '‹ ›'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--red); color: #fff; font-size: 18px; letter-spacing: 2px; box-shadow: 0 4px 16px rgba(0, 0, 0, .35); }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba__range:focus-visible + .ba__line::after { outline: 3px solid #fff; outline-offset: 2px; }
.ba__tag { position: absolute; top: 14px; padding: 5px 10px; background: rgba(18, 18, 18, .75); color: #fff; font: 600 11px/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; pointer-events: none; }
.ba__tag--l { left: 14px; }
.ba__tag--r { right: 14px; }

.lists2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .lists2 { grid-template-columns: 1fr; } }
.h-sub { font: 400 1.6rem/1.2 var(--serif); margin-bottom: 18px; }

/* ---------- company ---------- */
.creds { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.creds div { background: #fff; padding: 18px 22px; }
.creds dt { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.creds dd { font-weight: 500; overflow-wrap: anywhere; }
.creds div.wide { grid-column: 1 / -1; }
.creds__note { margin-top: 14px; font-size: 13px; color: var(--muted); }
@media (max-width: 560px) { .creds { grid-template-columns: 1fr; } }
.quote { font: 400 clamp(1.6rem, 3vw, 2.4rem)/1.25 var(--serif); max-width: 900px; }
.quote::before { content: ''; display: block; width: 48px; height: 2px; background: var(--red); margin-bottom: 26px; }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 48px clamp(40px, 6vw, 96px); align-items: start; }
.cinfo { background: var(--ink); color: #fff; padding: clamp(28px, 4vw, 44px); }
.cinfo h2 { font: 400 1.7rem/1.2 var(--serif); margin-bottom: 22px; }
.cinfo ul { display: grid; gap: 20px; }
.cinfo li { display: flex; gap: 14px; }
.cinfo .ico { color: var(--red-dk); margin-top: 2px; }
.cinfo b { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dk-2); font-weight: 600; margin-bottom: 2px; }
.cinfo a { color: #fff; overflow-wrap: anywhere; }
.cinfo p.small { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line-dk); font-size: 13.5px; color: var(--on-dk-2); }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */
.nf { min-height: 70vh; display: flex; align-items: center; background: var(--ink); color: #fff; padding-top: var(--hdr-h); }
.nf p { color: var(--on-dk); margin: 18px 0 30px; max-width: 520px; }

/* ---------- footer ---------- */
.ftr { background: #0d0d0d; color: var(--on-dk-2); font-size: 14px; }
.ftr__top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 40px; padding-top: 72px; padding-bottom: 56px; }
.ftr__logo img { height: 96px; width: auto; }
.ftr__brand p { margin-top: 18px; max-width: 300px; }
.ftr__h { font: 600 12px/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.ftr__col li + li { margin-top: 10px; }
.ftr a { color: var(--on-dk); text-decoration: none; }
.ftr a:hover { color: #fff; text-decoration: underline; }
.ftr__contact li { display: flex; gap: 12px; }
.ftr__contact .ico { color: var(--red-dk); margin-top: 2px; }
.ftr__contact a, .ftr__contact span { overflow-wrap: anywhere; }
.ftr__social { display: flex; gap: 10px; margin-top: 20px; }
.ftr__social a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line-dk); }
.ftr__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-top: 24px; padding-bottom: 28px; border-top: 1px solid var(--line-dk); font-size: 12.5px; }
.ftr__legal strong { color: #fff; font-weight: 500; }
.ftr__links { display: flex; gap: 20px; }
@media (max-width: 960px) { .ftr__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ftr__top { grid-template-columns: 1fr; padding-top: 56px; } .ftr__logo img { height: 80px; } }

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

@media print {
  .hdr, .mnav, .cta-band, .ftr__social { display: none; }
  .hero, .phero { min-height: 0; color: #000; }
}
.contact__lead { margin: 12px 0 28px; }
.prose h2:first-child { margin-top: 0; }
.turnkey__copy { max-width: 600px; }

/* ---------- Tiara ---------- */
.scard { position: relative; }
.scard__link { color: inherit; text-decoration: none; }
.scard__link::after { content: ''; position: absolute; inset: 0; }
.scard__link:focus-visible { outline: none; }
.scard:has(.scard__link:focus-visible) { outline: 2px solid var(--red); outline-offset: 3px; }
html.is-editing .scard__link::after { display: none; }
html.is-editing .reveal { opacity: 1 !important; transform: none !important; }
.tiara-hp { display: none !important; }
.tiara-form-error { padding: 12px 14px; border-left: 3px solid var(--red); background: #fbecec; color: #7a1414; font-size: 14px; margin: 0; }
.qform--dark .tiara-form-error { background: rgba(239, 75, 75, .14); color: #ffd2d2; border-left-color: var(--red-dk); }
