:root {
  --domus-green: #1f3d33;
  --domus-green-deep: #122c24;
  --domus-sand: #d9c9b8;
  --domus-fendi: #8c7a6b;
  --domus-off-white: #edece7;
  --domus-paper: #f7f5f0;
  --domus-ink: #183027;
  --domus-line: rgba(31, 61, 51, 0.18);
  --home-shell: min(1200px, calc(100vw - 48px));
  font-family: "Montserrat", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--domus-ink);
  background: var(--domus-off-white);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; overflow-x: hidden; background: var(--domus-off-white); color: var(--domus-ink); font-size: 16px; line-height: 1.65; }
body, button { font-family: inherit; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-weight: 500; line-height: 1.08; letter-spacing: -0.04em; }
h2 { font-size: clamp(2.35rem, 5.2vw, 5rem); }
h3 { font-size: clamp(1.45rem, 2.2vw, 2rem); }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link { position: fixed; z-index: 100; top: 10px; left: 10px; transform: translateY(-170%); padding: 10px 14px; background: #fff; color: var(--domus-green); }
.skip-link:focus { transform: translateY(0); }
.home-shell { width: var(--home-shell); margin-inline: auto; }
.home-section { padding: 112px 0; }
.home-kicker { margin-bottom: 22px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.17em; text-transform: uppercase; }
.home-kicker--dark { color: var(--domus-fendi); }

.home-header { position: absolute; z-index: 20; inset: 0 0 auto; min-height: 92px; display: grid; grid-template-columns: minmax(210px, 1fr) auto minmax(165px, 1fr); align-items: center; gap: 30px; padding: 12px max(24px, calc((100vw - 1200px) / 2)); background: rgba(237, 236, 231, 0.96); border-bottom: 1px solid rgba(31, 61, 51, 0.15); transition: box-shadow 180ms ease, background 180ms ease;
}
.home-header.is-scrolled { position: fixed; background: rgba(237, 236, 231, 0.985); box-shadow: 0 12px 34px rgba(31, 61, 51, 0.12); }
.brand { width: min(250px, 100%); text-decoration: none; }
.brand img { width: 100%; height: auto; }
.home-nav { display: flex; align-items: center; gap: 26px; }
.home-nav a { position: relative; padding: 8px 0; text-decoration: none; font-size: 0.76rem; font-weight: 500; }
.home-nav a::after { content: ""; position: absolute; inset: auto 0 3px; height: 1px; transform: scaleX(0); transform-origin: right; background: currentColor; transition: transform 180ms ease; }
.home-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.menu-toggle { display: none; min-height: 44px; padding: 8px 0; border: 0; background: transparent; color: var(--domus-green); font-size: 0.75rem; font-weight: 600; }
.menu-toggle i, .menu-toggle i::before { display: block; width: 20px; height: 1px; background: currentColor; transition: transform 180ms ease; }
.menu-toggle i { margin-left: 10px; }
.menu-toggle i::before { content: ""; transform: translateY(6px); }
.menu-toggle[aria-expanded="true"] i { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] i::before { transform: rotate(-90deg); }

.home-button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 20px; width: fit-content; padding: 13px 20px; border: 1px solid currentColor; text-decoration: none; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em; transition: transform 180ms ease, background 180ms ease, color 180ms ease; }
.home-button:hover { transform: translateY(-2px); }
.home-button:focus-visible, .home-text-link:focus-visible, .home-social-link:focus-visible, .home-footer__instagram:focus-visible, .home-nav a:focus-visible, .brand:focus-visible, .menu-toggle:focus-visible { outline: 3px solid #c89d75; outline-offset: 4px; }
.home-button--compact { justify-self: end; min-height: 44px; background: var(--domus-green); color: #fff; }
.home-button--compact:hover { background: var(--domus-green-deep); }
.home-button--light { border-color: rgba(255, 255, 255, 0.68); background: rgba(237, 236, 231, 0.08); color: #fff; backdrop-filter: blur(8px); }
.home-button--light:hover { background: var(--domus-off-white); color: var(--domus-green); }
.home-button--outline { margin-top: 38px; color: var(--domus-green); }
.home-button--outline:hover { background: var(--domus-green); color: #fff; }
.home-button--sand { margin: 18px 0 16px; border-color: var(--domus-sand); background: var(--domus-sand); color: var(--domus-green-deep); }
.home-text-link { display: inline-flex; gap: 16px; align-items: center; margin-top: 25px; padding-bottom: 5px; border-bottom: 1px solid currentColor; text-decoration: none; font-size: 0.78rem; font-weight: 600; }

.home-hero { position: relative; min-height: min(900px, 100svh); display: flex; align-items: flex-end; overflow: hidden; background: var(--domus-green-deep); color: #fff; }
.home-hero__image, .home-hero__veil { position: absolute; inset: 0; width: 100%; height: 100%; }
.home-hero__image { object-fit: cover; object-position: center; }
.home-hero__veil { background: linear-gradient(90deg, rgba(12, 31, 25, 0.93) 0%, rgba(12, 31, 25, 0.76) 34%, rgba(12, 31, 25, 0.22) 70%, rgba(12, 31, 25, 0.08) 100%), linear-gradient(0deg, rgba(8, 21, 17, 0.3), transparent 48%); }
.home-hero__content { position: relative; z-index: 1; padding: 180px 0 76px; }
.home-hero h1 { max-width: 880px; margin-bottom: 30px; font-size: clamp(3.25rem, 6.9vw, 7rem); }
.home-hero h1 em { color: var(--domus-sand); font-style: normal; font-weight: 400; }
.home-hero__services { margin-bottom: 16px; font-size: clamp(0.8rem, 1.3vw, 1rem); font-weight: 500; letter-spacing: 0.08em; }
.home-hero__services span { margin: 0 9px; color: var(--domus-sand); }
.home-hero__copy { max-width: 610px; margin-bottom: 32px; color: rgba(255, 255, 255, 0.78); font-size: 1.02rem; }
.home-image-note { position: absolute; z-index: 1; right: max(24px, calc((100vw - 1200px) / 2)); bottom: 22px; margin: 0; color: rgba(255, 255, 255, 0.68); font-size: 0.7rem; }

.home-intro { background: var(--domus-paper); }
.home-intro__grid { display: grid; grid-template-columns: 0.25fr 1.4fr 0.75fr; gap: 50px; align-items: start; }
.home-index { color: var(--domus-fendi); font-size: 0.8rem; }
.home-intro h2 { max-width: 760px; margin-bottom: 0; }
.home-intro__copy { max-width: 430px; margin-top: 46px; color: #53635d; }

.home-solutions { background: var(--domus-green); color: #fff; }
.home-section-heading { display: grid; grid-template-columns: 1.4fr 0.7fr; gap: 80px; align-items: end; }
.home-section-heading h2 { max-width: 760px; margin-bottom: 0; }
.home-section-heading > p { max-width: 420px; margin-bottom: 8px; color: rgba(255, 255, 255, 0.7); }
.home-solution-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 64px; border-top: 1px solid rgba(255, 255, 255, 0.24); }
.home-solution-grid article { min-height: 365px; padding: 28px 30px 34px 0; border-right: 1px solid rgba(255, 255, 255, 0.24); }
.home-solution-grid article:not(:first-child) { padding-left: 30px; }
.home-solution-grid article:last-child { border-right: 0; }
.home-card-number { color: var(--domus-sand); font-size: 0.7rem; }
.home-solution-grid h3 { margin: 94px 0 20px; }
.home-solution-grid p { max-width: 330px; color: rgba(255, 255, 255, 0.7); font-size: 0.9rem; }

.home-process { background: var(--domus-off-white); }
.home-process__grid { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(430px, 0.82fr); gap: clamp(64px, 7vw, 112px); align-items: start; }
.home-process__intro { position: sticky; top: 130px; min-width: 0; height: fit-content; }
.home-process__intro h2 { max-width: min(8.4em, 100%); margin-bottom: 30px; }
.home-process__intro > p:last-child { max-width: 440px; color: #58645f; }
.home-process__list { min-width: 430px; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--domus-line); }
.home-process__list li { display: grid; grid-template-columns: 52px 1fr; gap: 18px; padding: 27px 0; border-bottom: 1px solid var(--domus-line); }
.home-process__list li > span { color: var(--domus-fendi); font-size: 0.72rem; }
.home-process__list h3 { margin: 0 0 9px; font-size: 1.4rem; }
.home-process__list p { margin: 0; color: #5d6964; font-size: 0.9rem; }

.home-differentials { background: var(--domus-fendi); color: #fff; }
.home-differentials h2 { max-width: 850px; }
.home-differential-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 56px; background: rgba(255, 255, 255, 0.25); border: 1px solid rgba(255, 255, 255, 0.25); }
.home-differential-grid article { min-height: 285px; padding: 30px; background: var(--domus-fendi); }
.home-differential-grid span { color: var(--domus-sand); font-size: 0.7rem; }
.home-differential-grid h3 { margin: 70px 0 18px; }
.home-differential-grid p { margin: 0; color: rgba(255, 255, 255, 0.75); font-size: 0.88rem; }

.home-about { background: var(--domus-paper); }
.home-about__grid { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: 100px; align-items: center; }
.home-about__mark { min-height: 560px; display: grid; place-items: center; overflow: hidden; background: var(--domus-green); }
.home-about__mark img { width: min(340px, 68%); border-radius: 50%; box-shadow: 0 26px 70px rgba(9, 32, 24, 0.22); }
.home-about h2 { max-width: 640px; margin-bottom: 30px; }
.home-about > .home-shell > div:last-child > p:not(.home-kicker) { max-width: 590px; color: #58645f; }
.home-service-area { display: flex; gap: 16px; align-items: flex-start; margin-top: 44px; padding-top: 25px; border-top: 1px solid var(--domus-line); }
.home-service-area > span { color: var(--domus-green); font-size: 0.65rem; }
.home-service-area strong { display: block; margin-bottom: 3px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.home-service-area p { margin: 0; font-size: 1.1rem; }

.home-location { background: var(--domus-sand); }
.home-location__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(520px, 1.2fr); gap: clamp(70px, 9vw, 150px); align-items: start; }
.home-location__heading h2 { margin-bottom: 28px; }
.home-location__heading > p:last-child { max-width: 430px; color: #53635d; }
.home-location__details { padding-top: 44px; border-top: 1px solid rgba(31, 61, 51, 0.35); }
.home-location address { display: flex; flex-direction: column; margin: 0; font-style: normal; }
.home-location address strong { margin-bottom: 22px; font-size: clamp(1.45rem, 2.2vw, 2rem); font-weight: 500; letter-spacing: -0.025em; }
.home-location address span { font-size: clamp(1rem, 1.45vw, 1.18rem); line-height: 1.75; }
.home-location__appointment { margin: 28px 0 0; padding-top: 24px; border-top: 1px solid rgba(31, 61, 51, 0.22); font-size: 0.88rem; font-weight: 500; }
.home-location__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 32px; }
.home-button--location { color: var(--domus-green); }
.home-button--location:hover { background: rgba(237, 236, 231, 0.5); }
.home-button--location-primary { border-color: var(--domus-green); background: var(--domus-green); color: #fff; }
.home-button--location-primary:hover { background: var(--domus-green-deep); }
.home-social-link { min-height: 48px; display: inline-flex; align-items: center; gap: 10px; padding: 10px 4px; color: var(--domus-green); text-decoration: none; font-size: 0.78rem; font-weight: 600; }
.home-social-link svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.home-social-link svg circle:last-child { fill: currentColor; stroke: none; }

.home-final { background: var(--domus-green-deep); color: #fff; }
.home-final__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 110px; align-items: end; }
.home-final h2 { max-width: 760px; margin-bottom: 0; }
.home-final__grid > div:last-child > p { color: rgba(255, 255, 255, 0.74); }
.home-final small { display: block; max-width: 430px; color: rgba(255, 255, 255, 0.56); line-height: 1.55; }

.home-footer { padding: 44px 0; background: var(--domus-off-white); }
.home-footer__grid { display: grid; grid-template-columns: 1fr 1fr auto; gap: 40px; align-items: end; }
.home-footer img { width: 245px; }
.home-footer p { margin: 0; font-size: 0.75rem; color: #607069; }
.home-footer p:last-child { text-align: right; }
.home-footer p span { color: var(--domus-fendi); }
.home-footer__instagram { display: inline-block; margin: 4px 0; text-decoration: none; }

@media (max-width: 1040px) {
  .home-header { grid-template-columns: 220px 1fr auto; }
  .home-nav { gap: 16px; }
  .home-header .home-button--compact { display: none; }
  .home-intro__grid { grid-template-columns: 50px 1fr; }
  .home-intro__copy { grid-column: 2; margin-top: 0; }
  .home-process__grid { gap: 60px; }
  .home-about__grid { gap: 60px; }
  .home-location__grid { grid-template-columns: minmax(0, 0.72fr) minmax(470px, 1.28fr); gap: 60px; }
}

@media (max-width: 780px) {
  :root { --home-shell: calc(100vw - 40px); }
  html { scroll-padding-top: 76px; }
  .home-section { padding: 80px 0; }
  .home-header { position: absolute; min-height: 76px; grid-template-columns: 1fr auto; padding: 10px 20px; }
  .brand { width: 205px; }
  .menu-toggle { display: inline-flex; align-items: center; justify-self: end; }
  .home-nav { position: absolute; top: 100%; right: 0; left: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px 22px; background: var(--domus-off-white); border-top: 1px solid var(--domus-line); box-shadow: 0 18px 34px rgba(31, 61, 51, 0.14); }
  .home-nav.is-open { display: flex; }
  .home-nav a { min-height: 46px; display: flex; align-items: center; border-bottom: 1px solid var(--domus-line); }
  .home-nav a::after { display: none; }
  .home-header .home-button--compact { display: none; }
  .home-hero { min-height: 760px; }
  .home-hero__image { object-position: 58% center; }
  .home-hero__veil { background: linear-gradient(0deg, rgba(11, 29, 23, 0.97) 0%, rgba(11, 29, 23, 0.76) 62%, rgba(11, 29, 23, 0.18) 100%); }
  .home-hero__content { padding: 150px 0 58px; }
  .home-hero h1 { font-size: clamp(3rem, 12vw, 4.8rem); }
  .home-hero__services { line-height: 1.7; }
  .home-hero__copy { font-size: 0.94rem; }
  .home-image-note { display: none; }
  .home-section-heading, .home-process__grid, .home-final__grid { grid-template-columns: 1fr; gap: 36px; }
  .home-solution-grid, .home-differential-grid { grid-template-columns: 1fr; }
  .home-solution-grid article, .home-solution-grid article:not(:first-child) { min-height: auto; padding: 28px 0; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.24); }
  .home-solution-grid h3 { margin: 36px 0 14px; }
  .home-process__intro { position: static; }
  .home-process__list { min-width: 0; }
  .home-differential-grid article { min-height: 240px; }
  .home-about__grid { grid-template-columns: 1fr; gap: 48px; }
  .home-location__grid { grid-template-columns: 1fr; gap: 42px; }
  .home-location__details { padding-top: 32px; }
  .home-about__mark { min-height: 390px; }
  .home-footer__grid { grid-template-columns: 1fr; align-items: start; }
  .home-footer p:last-child { text-align: left; }
}

@media (max-width: 430px) {
  .brand { width: 190px; }
  .home-hero { min-height: 720px; }
  .home-hero h1 { font-size: clamp(2.8rem, 13.5vw, 4rem); }
  .home-hero__services span { margin: 0 4px; }
  .home-hero .home-button { width: 100%; }
  .home-intro__grid { grid-template-columns: 1fr; gap: 14px; }
  .home-index { display: none; }
  .home-intro__copy { grid-column: auto; }
  .home-about__mark { min-height: 330px; }
  .home-final .home-button { width: 100%; }
  .home-location__actions { align-items: stretch; }
  .home-location__actions .home-button { width: 100%; }
  .home-social-link { min-height: 52px; width: fit-content; }
}

@media (max-width: 370px) {
  .brand { width: 170px; }
  .menu-toggle span { display: none; }
  .home-hero h1 { font-size: 2.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
