:root {
  --navy: #102a43;
  --navy-2: #173e57;
  --teal: #147d78;
  --teal-dark: #0d6864;
  --ink: #17242d;
  --muted: #60717b;
  --cream: #f5f3ed;
  --line: #dce3e1;
  --white: #fff;
  --shell: 1180px;
  --shadow: 0 18px 50px rgba(15, 42, 58, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff; font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img, svg { display: block; }
button, a { -webkit-tap-highlight-color: transparent; }
.shell { width: min(calc(100% - 48px), var(--shell)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; left: 16px; top: -100px; padding: 12px 16px; background: #fff; color: var(--navy); border-radius: 4px; }
.skip-link:focus { top: 16px; }

.site-header { position: absolute; z-index: 10; inset: 0 0 auto; border-bottom: 1px solid rgba(255,255,255,.24); color: #fff; }
.header-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-size: 1.35rem; font-weight: 750; letter-spacing: -.035em; }
.brand > span > span { color: #67d3c8; }
.brand img { flex: none; }
.header-contact { text-decoration: none; font-size: .9rem; font-weight: 600; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.5); }

.hero { min-height: 760px; position: relative; isolation: isolate; display: grid; align-items: center; overflow: hidden; background: var(--navy); color: #fff; }
.hero-photo { position: absolute; z-index: -3; inset: 0; background: url("abitareia-home.webp") center/cover no-repeat; }
.hero-shade { position: absolute; z-index: -2; inset: 0; background: linear-gradient(90deg, rgba(10,31,47,.96) 0%, rgba(10,31,47,.9) 34%, rgba(10,31,47,.32) 67%, rgba(10,31,47,.08) 100%), linear-gradient(0deg, rgba(4,22,34,.35), transparent 40%); }
.hero-inner { padding-top: 112px; }
.hero-copy { width: min(650px, 58%); }
.eyebrow, .kicker { text-transform: uppercase; letter-spacing: .16em; font-size: .72rem; font-weight: 750; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; color: #b5e7e2; }
.eyebrow span { width: 28px; height: 1px; background: #67d3c8; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 730px; margin-bottom: 26px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3rem, 5.8vw, 5.3rem); line-height: .98; font-weight: 400; letter-spacing: -.045em; text-wrap: balance; }
h1 em { color: #8ee1d8; font-weight: 400; }
.intro { max-width: 570px; color: rgba(255,255,255,.78); font-size: 1.12rem; line-height: 1.7; }
.actions { display: flex; align-items: center; gap: 28px; margin-top: 38px; }
.button { min-height: 54px; display: inline-flex; align-items: center; justify-content: center; gap: 11px; padding: 0 23px; border: 0; border-radius: 4px; background: var(--teal); color: #fff; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); background: var(--teal-dark); }
.button:focus-visible, .text-link:focus-visible, .header-contact:focus-visible, .footer-links button:focus-visible, .close:focus-visible { outline: 3px solid #8ee1d8; outline-offset: 3px; }
.button svg { width: 22px; height: 22px; fill: currentColor; }
.text-link { color: #fff; text-decoration: none; font-size: .94rem; font-weight: 650; }
.text-link span { padding-left: 7px; color: #8ee1d8; }

.section { padding-block: 110px; }
.services { background: var(--cream); }
.section-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: end; margin-bottom: 58px; }
.kicker { margin-bottom: 18px; color: var(--teal); }
.section-heading h2, .contact h2 { margin-bottom: 0; color: var(--navy); font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.5rem, 4.3vw, 4.15rem); font-weight: 400; line-height: 1.06; letter-spacing: -.04em; }
.section-heading > p { max-width: 500px; margin-bottom: 7px; color: var(--muted); font-size: 1.04rem; line-height: 1.75; }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; box-shadow: var(--shadow); }
.service-card { position: relative; min-height: 330px; padding: 40px 30px 34px; border-right: 1px solid var(--line); }
.service-card:last-child { border-right: 0; }
.service-card svg { width: 48px; height: 48px; margin: 31px 0 35px; fill: none; stroke: var(--teal); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card-number { position: absolute; top: 23px; right: 24px; color: #9cabaf; font-size: .72rem; letter-spacing: .12em; }
.service-card h3 { color: var(--navy); font-size: 1.05rem; }
.service-card p { margin: 0; color: var(--muted); font-size: .91rem; line-height: 1.65; }

.contact { background: #fff; }
.contact-stack { display: grid; gap: 28px; }
.contact-panel { padding: 62px 70px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 70px; align-items: end; background: var(--navy); color: #fff; }
.kicker.light { color: #8ee1d8; }
.contact h2 { margin-bottom: 20px; color: #fff; }
.contact p:not(.kicker) { max-width: 610px; margin: 0; color: rgba(255,255,255,.68); line-height: 1.7; }
.contact-list { border-top: 1px solid rgba(255,255,255,.2); }
.contact-list a, .contact-list > div { display: block; padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,.2); text-decoration: none; }
.contact-list span, .contact-list strong { display: block; }
.contact-list span { margin-bottom: 6px; color: #8ee1d8; font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; }
.contact-list strong { font-size: 1rem; }
.contact-list a:hover strong { color: #8ee1d8; }
.checkup-card { padding: 64px 70px; border: 1px solid var(--line); background: var(--cream); box-shadow: var(--shadow); }
.checkup-copy { max-width: 860px; }
.checkup-card h2 { margin-bottom: 28px; color: var(--navy); }
.contact .checkup-card p:not(.kicker) { max-width: 840px; margin-bottom: 18px; color: var(--muted); }
.contact .checkup-card p strong { color: var(--navy); }
.checkup-contacts { display: flex; flex-wrap: wrap; gap: 14px 30px; margin: 30px 0 22px; }
.checkup-contacts a { color: var(--navy); text-decoration: none; }
.checkup-contacts a:hover { color: var(--teal-dark); }
.checkup-button { width: fit-content; }

.site-footer { padding: 37px 0; background: #0b2133; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; gap: 30px; }
.footer-brand { font-size: 1.15rem; }
.footer-identity > p { margin: 13px 0 0; color: rgba(255,255,255,.5); font-size: .8rem; line-height: 1.55; }
.footer-contacts { display: grid; gap: 10px; }
.footer-contacts a { width: fit-content; color: rgba(255,255,255,.76); font-size: .83rem; text-decoration: none; }
.footer-contacts a:hover { color: #8ee1d8; }
.footer-links { justify-self: end; display: flex; align-items: center; gap: 22px; color: rgba(255,255,255,.58); font-size: .76rem; }
.footer-links button { padding: 0; border: 0; border-bottom: 1px solid currentColor; background: none; color: #fff; font: inherit; cursor: pointer; }

.privacy-dialog { width: min(620px, calc(100% - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 8px; color: var(--ink); box-shadow: 0 30px 80px rgba(0,0,0,.3); }
.privacy-dialog::backdrop { background: rgba(8, 27, 41, .74); backdrop-filter: blur(4px); }
.dialog-top { display: flex; justify-content: space-between; gap: 20px; padding: 28px 30px 20px; border-bottom: 1px solid var(--line); }
.dialog-top h2 { margin: 0; color: var(--navy); font-family: Georgia, "Times New Roman", serif; font-size: 1.7rem; font-weight: 400; }
.close { border: 0; padding: 0; background: none; color: var(--navy); font-size: 2rem; line-height: .8; cursor: pointer; }
.dialog-body { padding: 24px 30px 8px; color: var(--muted); font-size: .92rem; line-height: 1.65; }
.dialog-body a { color: var(--teal-dark); font-weight: 650; }
.privacy-note { padding: 13px 15px; background: var(--cream); color: #475761; font-size: .82rem; }
.dialog-button { margin: 6px 30px 28px; }

@media (max-width: 900px) {
  .hero { min-height: 700px; align-items: end; }
  .hero-photo { background-position: 62% center; }
  .hero-shade { background: linear-gradient(90deg, rgba(10,31,47,.95), rgba(10,31,47,.48)), linear-gradient(0deg, rgba(7,27,41,.8), transparent 55%); }
  .hero-inner { padding-block: 170px 80px; }
  .hero-copy { width: min(650px, 82%); }
  .section { padding-block: 80px; }
  .section-heading { gap: 35px; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .service-card:nth-child(2) { border-right: 0; }
  .service-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .contact-panel { padding: 50px; grid-template-columns: 1fr; gap: 40px; }
  .checkup-card { padding: 50px; }
}

@media (max-width: 620px) {
  .shell { width: min(calc(100% - 32px), var(--shell)); }
  .header-inner { min-height: 76px; }
  .brand { font-size: 1.16rem; }
  .brand img { width: 41px; height: 41px; }
  .header-contact { display: none; }
  .hero { min-height: 720px; }
  .hero-photo { background-position: 67% center; transform: scale(1.01); }
  .hero-shade { background: linear-gradient(180deg, rgba(7,26,40,.58), rgba(7,26,40,.86) 55%, rgba(7,26,40,.97)); }
  .hero-inner { padding-block: 135px 56px; }
  .hero-copy { width: 100%; }
  h1 { font-size: clamp(2.75rem, 13vw, 4rem); }
  .intro { font-size: 1rem; line-height: 1.65; }
  .actions { align-items: stretch; flex-direction: column; gap: 18px; }
  .button { width: 100%; }
  .text-link { text-align: center; }
  .section { padding-block: 66px; }
  .section-heading { grid-template-columns: 1fr; gap: 24px; margin-bottom: 38px; }
  .section-heading h2 { font-size: 2.55rem; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .service-card:last-child { border-bottom: 0; }
  .service-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .contact-panel { width: 100%; padding: 44px 24px; }
  .contact-stack { width: 100%; }
  .checkup-card { padding: 44px 24px; }
  .checkup-contacts { display: grid; }
  .checkup-button { width: 100%; }
  .contact h2 { font-size: 2.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .footer-links { justify-self: start; }
  .dialog-top, .dialog-body { padding-inline: 22px; }
  .dialog-button { margin-inline: 22px; width: calc(100% - 44px); }
}

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