/* Milano Building (MiB) Agency — foglio di stile */

@font-face { font-family: "Antonio"; src: url("../fonts/antonio.woff2") format("woff2"); font-weight: 100 700; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader-300-normal.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --slate: #36454d;
  --slate-deep: #243037;
  --slate-ink: #1a2328;
  --gold: #cfa962;
  --gold-light: #f1d58f;
  --bronze: #8c6a3a;
  --stone: #e9eceb;
  --stone-2: #dde2e1;
  --ink: #26333a;
  --muted-dark: #5b6a71;
  --muted-light: #a9b6bb;
  --white: #f7f8f7;

  --gold-grad: linear-gradient(100deg, #8c6a3a 0%, #cfa962 30%, #f1d58f 52%, #c39b56 74%, #9a7642 100%);

  --display: "Antonio", "Arial Narrow", sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;

  --gutter: clamp(20px, 5vw, 72px);
  --max: 1240px;
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--slate-deep);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(17px, 1.05vw + 10px, 20px);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.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: -9999px; top: 8px; z-index: 100; background: var(--gold); color: var(--slate-ink); padding: 10px 16px; font-family: var(--display); letter-spacing: .04em; text-decoration: none; }
.skip:focus { left: 8px; }

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

/* Tipografia */
h1, h2, h3 { font-family: var(--display); font-weight: 300; line-height: 1.02; letter-spacing: .005em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(48px, 7.4vw, 112px); font-weight: 200; }
h2 { font-size: clamp(38px, 4.6vw, 68px); font-weight: 250; }
h3 { font-size: clamp(25px, 2vw, 31px); font-weight: 400; line-height: 1.12; letter-spacing: .01em; }
p { margin: 0 0 1em; max-width: 64ch; }
.lead { font-size: clamp(20px, 1.4vw + 8px, 25px); line-height: 1.5; font-weight: 300; }
.kicker { font-family: var(--serif); font-style: italic; font-size: 1.05em; color: var(--bronze); margin: 0 0 18px; }
.on-dark .kicker { color: var(--gold); }

/* Pulsanti */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--display); font-weight: 400; font-size: 18px; letter-spacing: .06em;
  text-decoration: none; padding: 15px 28px; border: 1px solid transparent; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-gold { background: var(--gold-grad); color: var(--slate-ink); background-size: 160% 100%; background-position: 0 0; transition: background-position .5s; }
.btn-gold:hover { background-position: 100% 0; }
.btn-line { border-color: rgba(241, 213, 143, .55); color: var(--white); }
.btn-line:hover { border-color: var(--gold-light); background: rgba(207, 169, 98, .08); }
.btn-ink { border-color: var(--ink); color: var(--ink); }
.btn-ink:hover { background: var(--ink); color: var(--stone); }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  display: flex; align-items: center;
  transition: background-color .3s, height .3s, box-shadow .3s;
}
.site-header.is-solid { background: rgba(36, 48, 55, .96); backdrop-filter: blur(8px); box-shadow: 0 1px 0 rgba(207, 169, 98, .18); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img.sym { height: 46px; width: auto; }
.brand img.word { height: 15px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 36px); }
.nav a { font-family: var(--display); font-weight: 300; font-size: 17px; letter-spacing: .07em; color: var(--white); text-decoration: none; padding: 6px 0; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a.minor { color: var(--muted-light); }
.lang { display: flex; gap: 2px; border-left: 1px solid rgba(169, 182, 187, .35); padding-left: clamp(14px, 1.6vw, 26px); }
.lang a, .lang span { font-family: var(--display); font-size: 15px; letter-spacing: .08em; padding: 4px 6px; color: var(--muted-light); text-decoration: none; }
.lang span { color: var(--gold-light); }
.menu-btn { display: none; background: none; border: 0; color: var(--white); padding: 10px; cursor: pointer; }
.menu-btn span { display: block; width: 26px; height: 1px; background: currentColor; margin: 7px 0; transition: transform .25s, opacity .25s; }

@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .brand img.sym { height: 38px; }
  .brand img.word { height: 12px; }
  .menu-btn { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: var(--slate-deep);
    flex-direction: column; align-items: flex-start; gap: 6px; padding: 32px var(--gutter);
    transform: translateX(100%); transition: transform .35s ease; visibility: hidden;
  }
  .nav a { font-size: 30px; font-weight: 200; }
  .lang { border-left: 0; padding-left: 0; margin-top: 22px; }
  .lang a, .lang span { font-size: 18px; }
  body.menu-open .nav { transform: none; visibility: visible; }
  body.menu-open .site-header { background: var(--slate-deep); }
  body.menu-open .menu-btn span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
  body.menu-open .menu-btn span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
}

/* Sezioni */
section { position: relative; }
.on-dark { color: var(--white); }
.on-dark p { color: #d6dddf; }
.bg-slate { background: var(--slate); }
.bg-deep { background: var(--slate-deep); }
.bg-stone { background: var(--stone); }
.pad { padding: clamp(84px, 11vw, 168px) 0; }

/* Hero */
.hero { min-height: 100svh; display: flex; align-items: flex-end; background: var(--slate); overflow: hidden; padding-top: var(--header-h); }
.hero::before { /* luce morbida dietro lo skyline */
  content: ""; position: absolute; right: -10%; bottom: -30%; width: 75vw; height: 90vh;
  background: radial-gradient(closest-side, rgba(207, 169, 98, .16), rgba(207, 169, 98, 0)); pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: end; }
.hero-text { padding-bottom: clamp(64px, 10vh, 120px); position: relative; z-index: 2; }
.hero h1 { color: var(--white); margin-bottom: 40px; }
.hero h1 .gold { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { color: #d6dddf; max-width: 36ch; margin-bottom: 40px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.skyline { position: relative; height: min(76vh, 700px); display: flex; align-items: flex-end; justify-content: flex-end; gap: clamp(8px, 1.2vw, 18px); padding-right: 2%; }
.skyline::after { content: ""; position: absolute; left: -20%; right: -40vw; bottom: 0; height: 1px; background: linear-gradient(90deg, rgba(207,169,98,0), rgba(207,169,98,.7) 30%, rgba(207,169,98,.7)); }
.tower {
  position: relative; width: var(--w, 9%); height: var(--h, 50%);
  background: var(--gold-grad);
  -webkit-mask-image: repeating-linear-gradient(32deg, #000 0 3px, transparent 3px 10px);
          mask-image: repeating-linear-gradient(32deg, #000 0 3px, transparent 3px 10px);
  transform-origin: bottom; transform: scaleY(0);
  animation: rise 1.6s cubic-bezier(.2, .7, .1, 1) forwards; animation-delay: var(--d, 0s);
}
.tower.solid { -webkit-mask-image: none; mask-image: none; background: linear-gradient(180deg, rgba(207,169,98,.10), rgba(207,169,98,.02)); box-shadow: inset 0 0 0 1px rgba(207,169,98,.28); }
.ring { position: absolute; inset: auto -6% 4% -12%; height: 40%; pointer-events: none; overflow: visible; }
.ring path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.8s .9s cubic-bezier(.5, 0, .2, 1) forwards; }
@keyframes rise { to { transform: scaleY(1); } }
@keyframes draw { to { stroke-dashoffset: 0; } }

@media (max-width: 900px) {
  .hero { align-items: stretch; }
  .hero .wrap { grid-template-columns: 1fr; gap: 0; align-content: end; }
  .hero-text { padding-top: 40px; padding-bottom: 36px; }
  .skyline { height: 38vh; min-height: 220px; justify-content: center; padding-right: 0; }
}

/* Posizionamento */
.statement { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.statement h2 { color: var(--slate-deep); }
.statement .body p:first-child { font-size: clamp(20px, 1.4vw + 8px, 25px); font-weight: 300; line-height: 1.5; color: var(--slate-deep); }
.statement .body p { color: #3c4a51; }
@media (max-width: 860px) { .statement { grid-template-columns: 1fr; } }

/* Due interlocutori */
.sides { display: grid; grid-template-columns: 1fr 1fr; margin-top: clamp(72px, 9vw, 130px); border-top: 1px solid rgba(38, 51, 58, .25); }
.side { padding: 44px clamp(0px, 4vw, 60px) 0 0; }
.side + .side { padding-left: clamp(28px, 4vw, 60px); padding-right: 0; border-left: 1px solid rgba(38, 51, 58, .25); }
.side h3 { color: var(--slate-deep); margin-bottom: 18px; }
.side > p { color: #3c4a51; }
.ticks { list-style: none; margin: 26px 0 0; padding: 0; }
.ticks li { position: relative; padding: 13px 0 13px 30px; border-top: 1px solid rgba(38, 51, 58, .14); color: var(--ink); font-size: .95em; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 1.15em; width: 14px; height: 1px; background: var(--bronze); }
@media (max-width: 760px) {
  .sides { grid-template-columns: 1fr; }
  .side, .side + .side { padding: 40px 0 0; border-left: 0; }
  .side + .side { margin-top: 40px; border-top: 1px solid rgba(38, 51, 58, .25); }
}

/* Asset class */
.assets-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 100px); align-items: end; margin-bottom: clamp(48px, 6vw, 84px); }
.assets-head p { margin: 0; }
.asset-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid rgba(207, 169, 98, .35); }
.asset-list li { padding: 34px 32px 40px 0; border-bottom: 1px solid rgba(169, 182, 187, .18); }
.asset-list li:not(:nth-child(3n+1)) { padding-left: 32px; border-left: 1px solid rgba(169, 182, 187, .18); }
.asset-list h3 { color: var(--white); margin-bottom: 12px; }
.asset-list p { font-size: .92em; color: var(--muted-light); margin: 0; }
@media (max-width: 960px) {
  .assets-head { grid-template-columns: 1fr; }
  .asset-list { grid-template-columns: 1fr 1fr; }
  .asset-list li:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .asset-list li:nth-child(even) { padding-left: 28px; border-left: 1px solid rgba(169, 182, 187, .18); }
}
@media (max-width: 600px) {
  .asset-list { grid-template-columns: 1fr; }
  .asset-list li:nth-child(even) { padding-left: 0; border-left: 0; }
  .asset-list li { padding: 26px 0 30px; }
}

/* Metodo */
.method-head { max-width: 760px; margin-bottom: clamp(48px, 6vw, 84px); }
.method-head h2 { color: var(--slate-deep); margin-bottom: 22px; }
.method-head p { color: #3c4a51; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: step; }
.steps li { counter-increment: step; padding: 0 28px 0 0; position: relative; }
.steps li::before {
  content: counter(step); display: block; font-family: var(--display); font-weight: 200; font-size: 76px; line-height: 1;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: 20px; margin-bottom: 24px; border-bottom: 1px solid rgba(38, 51, 58, .25);
}
.steps h3 { color: var(--slate-deep); margin-bottom: 12px; font-size: clamp(23px, 1.8vw, 28px); }
.steps p { font-size: .93em; color: #3c4a51; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 48px; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Riservatezza e permute */
.pledge { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 120px); }
.pledge blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(28px, 2.6vw + 8px, 46px); line-height: 1.25; color: var(--white); max-width: 22ch; }
.pledge blockquote::before { content: ""; display: block; width: 64px; height: 2px; background: var(--gold-grad); margin-bottom: 36px; }
.pledge .notes h3 { color: var(--gold-light); margin: 0 0 10px; font-size: 24px; }
.pledge .notes p { color: #c9d2d5; font-size: .95em; }
.pledge .notes > div + div { margin-top: 34px; padding-top: 34px; border-top: 1px solid rgba(169, 182, 187, .2); }
@media (max-width: 860px) { .pledge { grid-template-columns: 1fr; } }

/* Residenze (secondario) */
.residences { background: var(--stone-2); padding: clamp(56px, 7vw, 96px) 0; }
.residences .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px 64px; align-items: center; }
.residences h2 { font-size: clamp(30px, 3vw, 44px); color: var(--slate-deep); margin-bottom: 14px; }
.residences p { color: #3c4a51; margin: 0; }
.residences .actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.residences .note { font-size: .82em; color: var(--muted-dark); }
@media (max-width: 860px) { .residences .wrap { grid-template-columns: 1fr; } }

/* Contatti */
.contact { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(48px, 7vw, 120px); }
.contact h2 { margin-bottom: 22px; }
.contact-details { margin-top: 44px; display: grid; gap: 26px; }
.contact-details dt { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: .9em; margin-bottom: 2px; }
.contact-details dd { margin: 0; font-family: var(--display); font-weight: 300; font-size: clamp(22px, 1.7vw, 27px); letter-spacing: .02em; }
.contact-details dd a { text-decoration: none; background-image: linear-gradient(var(--gold), var(--gold)); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .25s; }
.contact-details dd a:hover { background-size: 100% 1px; }
.contact-details dd small { display: block; font-family: var(--serif); font-size: 15px; color: var(--muted-light); letter-spacing: 0; margin-top: 4px; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 28px; align-content: start; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font-family: var(--display); font-weight: 300; letter-spacing: .06em; font-size: 16px; color: var(--muted-light); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 18px; color: var(--white); background: transparent;
  border: 0; border-bottom: 1px solid rgba(169, 182, 187, .45); padding: 10px 0; border-radius: 0; width: 100%;
  transition: border-color .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 12px) 55%, calc(100% - 6px) 55%; background-size: 6px 6px; background-repeat: no-repeat; }
.field select option { color: var(--ink); background: var(--white); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--gold-light); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { box-shadow: 0 2px 0 0 var(--gold-light); }
.field .hint { font-size: 14px; color: var(--muted-light); }
.consent { grid-column: 1 / -1; display: flex; gap: 14px; align-items: flex-start; font-size: 15px; color: #c9d2d5; line-height: 1.5; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--gold); flex: none; }
.consent a { color: var(--gold-light); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.form-status { font-size: 16px; margin: 0; }
.form-status.ok { color: var(--gold-light); }
.form-status.err { color: #f2b8a8; }
.btn[disabled] { opacity: .6; cursor: progress; }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--slate-ink); color: var(--muted-light); padding: 72px 0 40px; font-size: 15px; line-height: 1.6; }
.foot-grid { display: grid; grid-template-columns: auto 1fr auto; gap: 48px 72px; align-items: start; }
.foot-grid img { width: 170px; }
.site-footer p { margin: 0 0 6px; max-width: 52ch; }
.site-footer a { color: #d6dddf; text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); }
.foot-links { display: grid; gap: 6px; }
.foot-base { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(169, 182, 187, .15); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr; } }

/* Pagine interne */
.page-hero { background: var(--slate); padding: calc(var(--header-h) + clamp(64px, 9vw, 130px)) 0 clamp(64px, 8vw, 110px); position: relative; overflow: hidden; }
.page-hero h1 { color: var(--white); font-size: clamp(46px, 6vw, 92px); max-width: 15ch; margin-bottom: 26px; }
.page-hero .lead { color: #d6dddf; max-width: 46ch; }
.page-hero .hatch { position: absolute; right: var(--gutter); bottom: 0; width: clamp(60px, 9vw, 130px); height: 78%; background: var(--gold-grad); opacity: .85;
  -webkit-mask-image: repeating-linear-gradient(32deg, #000 0 3px, transparent 3px 10px); mask-image: repeating-linear-gradient(32deg, #000 0 3px, transparent 3px 10px); }
@media (max-width: 700px) { .page-hero .hatch { opacity: .25; } }

.prose { max-width: 760px; color: #3c4a51; }
.prose h2 { font-size: clamp(30px, 2.8vw, 42px); color: var(--slate-deep); margin: 64px 0 18px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { color: var(--slate-deep); margin: 36px 0 10px; font-size: 24px; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.prose a { color: var(--bronze); }

.res-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px clamp(28px, 3.4vw, 56px); padding-top: 40px; border-top: 1px solid rgba(38, 51, 58, .25); margin: 56px 0 64px; }
.res-grid h3 { color: var(--slate-deep); margin-bottom: 10px; }
.res-grid p { font-size: .94em; color: #3c4a51; }
@media (max-width: 800px) { .res-grid { grid-template-columns: 1fr; } }

.res-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hours { margin-top: 48px; font-size: .9em; color: var(--muted-dark); }

/* Movimento ridotto */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tower { animation: none; transform: none; }
  .ring path { animation: none; stroke-dashoffset: 0; }
  * { transition-duration: .01ms !important; }
}

/* Progetti: mosaico a tutta larghezza */
.projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: clamp(260px, 27vw, 440px); gap: 4px; background: var(--slate-ink); }
.projects figure { margin: 0; position: relative; overflow: hidden; background: var(--slate-deep); }
.projects img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.1,1); }
.projects figure:hover img { transform: scale(1.03); }
.projects figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 24px 18px;
  background: linear-gradient(180deg, rgba(26,35,40,0), rgba(26,35,40,.82));
  color: var(--white); font-size: 15px; line-height: 1.4;
}
.projects .p-text { background: var(--slate-deep); color: var(--white); padding: clamp(28px, 3.4vw, 52px); display: flex; flex-direction: column; justify-content: space-between; }
.projects .p-text h2 { font-size: clamp(32px, 3.2vw, 50px); }
.projects .p-text p { font-size: 15px; color: var(--muted-light); margin: 18px 0 0; }
.projects .tall { grid-row: span 2; }
.projects .wide { grid-column: span 2; }
.projects .tall img { object-position: 50% 30%; }
@media (max-width: 860px) {
  .projects { grid-template-columns: 1fr 1fr; grid-auto-rows: 58vw; }
  .projects .p-text { grid-column: 1 / -1; }
  .projects .tall { grid-row: span 1; }
  .projects .wide { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .projects { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .projects figure { aspect-ratio: 4 / 3; }
  .projects .tall { aspect-ratio: 4 / 5; }
  .projects .wide { aspect-ratio: 16 / 9; }
}

/* Fascia residenze con immagine */
.residences.with-img .wrap { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr) auto; }
.residences .thumb { aspect-ratio: 4 / 3; overflow: hidden; }
.residences .thumb img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 960px) { .residences.with-img .wrap { grid-template-columns: 1fr; } .residences .thumb { max-width: 520px; } }

/* Pagina residenze: immagini nelle colonne */
.res-grid .res-img { aspect-ratio: 4 / 3; overflow: hidden; margin-bottom: 24px; }
.res-grid .res-img img { width: 100%; height: 100%; object-fit: cover; }
