:root {
  --green: #173f35;
  --green-2: #23594a;
  --ivory: #f7f4ed;
  --paper: #fffdf8;
  --sand: #c2a47e;
  --ink: #17302a;
  --muted: #5d6b66;
  --line: rgba(23, 63, 53, .16);
  --shadow: 0 24px 60px rgba(22, 48, 42, .10);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--ivory); font-family: var(--sans); font-size: 16px; line-height: 1.65; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; top: 10px; left: 10px; transform: translateY(-150%); padding: 10px 14px; background: #fff; color: #000; }
.skip-link:focus { transform: none; }

.site-header { position: absolute; z-index: 20; top: 0; left: 0; right: 0; color: white; border-bottom: 1px solid rgba(255,255,255,.24); }
.header-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 52px; height: 52px; object-fit: cover; border-radius: 50%; }
.brand span { display: flex; flex-direction: column; line-height: 1.05; }
.brand strong { font-family: var(--serif); font-size: 1.18rem; font-weight: 600; }
.brand small { margin-top: 6px; font-size: .68rem; text-transform: uppercase; letter-spacing: .32em; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { text-decoration: none; font-size: .92rem; font-weight: 500; }
.nav a:not(.nav-cta):hover { color: #f0ddbd; }
.nav-cta { padding: 12px 18px; border: 1px solid rgba(255,255,255,.65); border-radius: 999px; }
.nav-cta:hover { background: white; color: var(--green); }
.menu-toggle { display: none; color: white; background: transparent; border: 1px solid rgba(255,255,255,.5); border-radius: 99px; padding: 8px 14px; font: inherit; }

.hero { position: relative; min-height: 790px; display: flex; align-items: center; color: white; overflow: hidden; background: var(--green); }
.hero-media, .hero-shade { position: absolute; inset: 0; }
.hero-media { background: url("assets/dimora-care-hero.webp") center center / cover no-repeat; transform: scale(1.01); }
.hero-shade { background: linear-gradient(90deg, rgba(11,38,31,.92) 0%, rgba(11,38,31,.74) 40%, rgba(11,38,31,.22) 72%, rgba(11,38,31,.08) 100%); }
.hero-content { position: relative; z-index: 2; padding-top: 136px; padding-bottom: 72px; }
.hero-content > * { max-width: 670px; }
.eyebrow { margin: 0 0 16px; color: var(--sand); font-size: .78rem; font-weight: 600; letter-spacing: .21em; text-transform: uppercase; }
h1, h2 { margin: 0; font-family: var(--serif); font-weight: 500; letter-spacing: -.025em; line-height: 1.06; }
h1 { max-width: 780px !important; font-size: clamp(3.25rem, 6vw, 5.5rem); }
h2 { font-size: clamp(2.35rem, 4.2vw, 4.25rem); }
h3 { margin: 0; font-size: 1.28rem; line-height: 1.25; }
.hero-lead { margin: 28px 0 0; font-size: clamp(1.05rem, 1.7vw, 1.28rem); line-height: 1.65; color: rgba(255,255,255,.88); }
.hero-target { margin-top: 28px; padding-left: 18px; border-left: 3px solid var(--sand); }
.target-claim { margin: 0; color: white; font-size: clamp(1.1rem, 1.8vw, 1.4rem); font-weight: 600; line-height: 1.45; }
.target-context { margin: 9px 0 0; color: rgba(255,255,255,.85); font-size: .875rem; line-height: 1.55; }
.keep-together { white-space: nowrap; }
.hero-actions { display: flex; gap: 13px; margin-top: 34px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 52px; padding: 13px 22px; border-radius: 999px; text-decoration: none; font-size: .95rem; font-weight: 600; transition: transform .2s ease, background .2s ease, color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--sand); color: #162f28; }
.button-primary:hover { background: #d4bd9c; }
.button-ghost { color: white; border: 1px solid rgba(255,255,255,.55); }
.button-ghost:hover { background: rgba(255,255,255,.12); }
.hero-points { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 34px; padding: 0; list-style: none; color: rgba(255,255,255,.78); font-size: .9rem; }
.hero-points li::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 9px; border-radius: 50%; background: var(--sand); }

.trust-strip { background: var(--green); color: white; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.trust-grid > div { display: grid; grid-template-columns: 46px 1fr; gap: 16px; padding: 30px 34px; border-left: 1px solid rgba(255,255,255,.13); }
.trust-grid > div:last-child { border-right: 1px solid rgba(255,255,255,.13); }
.trust-grid span { color: var(--sand); font-family: var(--serif); font-size: 1.1rem; }
.trust-grid p { margin: 0; color: rgba(255,255,255,.7); font-size: .87rem; line-height: 1.45; }
.trust-grid strong { display: block; margin-bottom: 3px; color: white; font-size: .96rem; }

.section { padding: 112px 0; }
.section-heading { max-width: 760px; margin-bottom: 48px; }
.section-heading > p:last-child, .method-intro > p:last-child { max-width: 690px; margin: 24px 0 0; color: var(--muted); font-size: 1.05rem; }
.property-evaluation { background: var(--ivory); }
.evaluation-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); gap: 64px; align-items: center; }
.evaluation-copy .eyebrow { color: var(--green-2); font-size: .875rem; }
.evaluation-copy h2 { font-size: clamp(2.25rem, 3.7vw, 3.4rem); }
.evaluation-copy > p:last-child { margin: 24px 0 0; color: var(--muted); font-size: 1.05rem; }
.evaluation-actions { min-width: 0; padding-left: 32px; border-left: 1px solid var(--line); }
.evaluation-actions h3 { font-family: var(--serif); font-size: 1.75rem; }
.evaluation-actions p { color: var(--muted); }
.evaluation-actions .button { width: 100%; margin-top: 8px; text-align: center; }
#contatti, #valuta-immobile { scroll-margin-top: 90px; }
.services { background: var(--paper); }
.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.service-card { padding: 38px; border: 1px solid var(--line); border-radius: 6px; background: var(--ivory); }
.service-card.featured { background: var(--green); color: white; box-shadow: var(--shadow); }
.card-top { margin-bottom: 26px; }
.card-label { margin: 0; color: var(--green-2); font-size: .875rem; font-weight: 600; letter-spacing: .09em; line-height: 1.4; text-transform: uppercase; }
.featured .card-label { color: #dfc7a4; }
.service-card > p:not(.card-note) { color: var(--muted); }
.featured > p:not(.card-note) { color: rgba(255,255,255,.74); }
.service-card ul { margin: 28px 0; padding: 0; list-style: none; }
.service-card li { position: relative; padding: 11px 0 11px 27px; border-bottom: 1px solid var(--line); }
.featured li { border-color: rgba(255,255,255,.13); }
.service-card li::before { content: "✓"; position: absolute; left: 0; color: var(--green-2); font-weight: 600; }
.featured li::before { color: var(--sand); }
.card-note { margin: 26px 0 0; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .87rem; line-height: 1.55; }
.featured .card-note { border-color: rgba(255,255,255,.15); color: rgba(255,255,255,.65); }
.card-note strong { color: var(--ink); }
.featured .card-note strong { color: white; }
.proposal-note { margin: 22px 0 0; color: var(--muted); font-size: .9375rem; }

.method { background: var(--ivory); }
.method-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; align-items: start; }
.method-intro { position: sticky; top: 40px; }
.steps { margin: 0; padding: 0; list-style: none; }
.steps li { display: grid; grid-template-columns: 58px 1fr; gap: 22px; padding: 28px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps > li > span { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--sand); border-radius: 50%; font-family: var(--serif); }
.steps h3 { font-family: var(--serif); font-size: 1.45rem; }
.steps p { margin: 8px 0 0; color: var(--muted); }

.standards { background: #e9e1d4; }
.standards-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 100px; align-items: end; }
.standards-copy p:last-child { max-width: 690px; margin: 26px 0 0; color: #53625c; font-size: 1.05rem; }
.standards-list { border-top: 1px solid rgba(23,63,53,.25); }
.standards-list p { display: grid; grid-template-columns: 42px 1fr; gap: 10px; margin: 0; padding: 18px 0; border-bottom: 1px solid rgba(23,63,53,.25); font-weight: 500; }
.standards-list span { color: var(--green-2); font-family: var(--serif); }

.faq { background: var(--paper); }
.faq-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 80px; align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { position: relative; padding: 24px 44px 24px 0; cursor: pointer; list-style: none; font-family: var(--serif); font-size: 1.25rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; top: 23px; right: 4px; color: var(--green-2); font-family: var(--sans); font-size: 1.45rem; }
details[open] summary::after { content: "−"; }
details p { margin: -4px 48px 24px 0; color: var(--muted); }

.contact { padding: 96px 0; background: var(--green); color: white; }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact h2 { max-width: 670px; }
.contact p:not(.eyebrow) { max-width: 690px; color: rgba(255,255,255,.72); }
.email-link { color: rgba(255,255,255,.78); text-underline-offset: 4px; word-break: break-word; }
.contact-form { min-width: 0; padding: 34px; background: var(--paper); color: var(--ink); border-radius: 8px; box-shadow: var(--shadow); }
.contact-form h3 { font-family: var(--serif); font-size: 1.75rem; }
.contact .contact-form p { color: var(--muted); }
.form-intro { margin: 12px 0 24px; font-size: 1rem; }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 16px; }
.form-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.form-field-wide { grid-column: 1 / -1; }
.form-field label { font-size: .9375rem; font-weight: 600; }
.form-field input { display: block; width: 100%; min-width: 0; min-height: 50px; padding: 11px 13px; border: 1px solid #9caea4; border-radius: 4px; background: white; color: var(--ink); font: inherit; }
.form-field small { font-size: .875rem; line-height: 1.45; color: var(--muted); }
:focus-visible { outline: 3px solid var(--sand); outline-offset: 4px; }
.form-field input:focus-visible { outline: 3px solid var(--green-2); outline-offset: 2px; }
.form-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.form-data-note { margin: 22px 0; font-size: .875rem; line-height: 1.55; overflow-wrap: anywhere; }
.form-submit { width: 100%; border: 0; cursor: pointer; font-family: var(--sans); }
.form-submit:disabled { cursor: wait; opacity: .7; transform: none; }
.form-status { margin: 18px 0 0; padding: 13px 15px; border-radius: 4px; font-size: .9375rem; line-height: 1.5; }
.contact .form-status[data-state="success"] { color: #173f35; background: #e8f0eb; }
.contact .form-status[data-state="error"] { color: #812d22; background: #fff0eb; }

footer { padding: 30px 0; background: #0d2c25; color: rgba(255,255,255,.65); }
.footer-inner { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 30px; font-size: .78rem; }
.footer-brand { color: white; }
.footer-brand img { width: 46px; height: 46px; }

@media (max-width: 900px) {
  .site-header { position: fixed; background: rgba(13,44,37,.96); backdrop-filter: blur(10px); }
  .header-inner { min-height: 72px; }
  .brand img { width: 44px; height: 44px; }
  .menu-toggle { display: block; }
  .nav { position: absolute; top: 72px; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px 22px; background: #0d2c25; border-top: 1px solid rgba(255,255,255,.15); }
  .nav.open { display: flex; }
  .nav a { padding: 13px 4px; }
  .nav-cta { margin-top: 8px; text-align: center; }
  .hero { min-height: 740px; }
  .hero-shade { background: linear-gradient(90deg, rgba(11,38,31,.9), rgba(11,38,31,.48)); }
  .trust-grid, .service-grid, .method-layout, .standards-grid, .faq-layout, .contact-inner, .evaluation-layout { grid-template-columns: 1fr; }
  .trust-grid > div { border-right: 1px solid rgba(255,255,255,.13); border-bottom: 1px solid rgba(255,255,255,.13); }
  .service-grid { gap: 18px; }
  .method-layout, .standards-grid, .faq-layout, .contact-inner { gap: 46px; }
  .evaluation-layout { gap: 32px; }
  .evaluation-actions { padding: 28px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .evaluation-actions .button { width: auto; max-width: 100%; }
  .method-intro { position: static; }
  .footer-inner { grid-template-columns: 1fr; gap: 10px; }
}

@media (max-width: 620px) {
  .container { width: min(100% - 28px, 1180px); }
  .brand strong { font-size: 1rem; }
  .hero { min-height: 760px; }
  .hero-media { background-position: 62% center; }
  .hero-shade { background: linear-gradient(0deg, rgba(11,38,31,.95) 0%, rgba(11,38,31,.7) 70%, rgba(11,38,31,.42) 100%); }
  .hero-content { padding-top: 104px; }
  h1 { font-size: clamp(3rem, 16vw, 4.4rem); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-points { flex-direction: column; gap: 8px; }
  .section { padding: 82px 0; }
  .service-card { padding: 26px 22px; }
  .card-top { flex-direction: column; margin-bottom: 30px; }
  .steps li { grid-template-columns: 48px 1fr; gap: 14px; }
  .steps > li > span { width: 40px; height: 40px; }
  .contact { padding: 78px 0; }
  .contact-form { padding: 26px 20px; }
  .evaluation-actions .button { width: 100%; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
}

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