:root {
  --ink: #17201d;
  --muted: #5d6863;
  --paper: #f7f5ef;
  --surface: #ffffff;
  --line: #ded9cc;
  --green: #2f6b4f;
  --green-dark: #1d4835;
  --clay: #bd6f46;
  --blue: #315d7f;
  --shadow: 0 18px 50px rgba(23, 32, 29, 0.14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(247, 245, 239, 0.94);
  border-bottom: 1px solid rgba(222, 217, 204, 0.8);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: #fff;
  background: var(--green);
  border-radius: 8px;
  font-weight: 800;
}

.brand-text {
  display: grid;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 1.05rem;
}

.brand-text small {
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 8px;
  color: #24302c;
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: #ebe6da;
}

.site-nav .nav-cta {
  color: #fff;
  background: var(--green);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: calc(100svh - 76px);
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(14, 24, 19, 0.82), rgba(14, 24, 19, 0.38) 52%, rgba(14, 24, 19, 0.1)),
    url("./images/hero-cantiere.jpg")
      center / cover;
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  height: 22%;
  content: "";
  background: linear-gradient(0deg, var(--paper), transparent);
}

.hero-content {
  width: min(760px, calc(100% - 36px));
  margin: 0 auto 8vh clamp(18px, 6vw, 86px);
  color: #fff;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f4be87;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 20px;
  font-size: clamp(2.6rem, 8vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
  line-height: 1.2;
}

.hero-content p:not(.eyebrow) {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.18rem;
}

.hero-actions,
.legal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
  text-align: center;
}

.button.primary {
  color: #fff;
  background: var(--green);
}

.button.ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
}

.button.dark {
  color: #fff;
  background: var(--ink);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  width: min(1180px, calc(100% - 36px));
  margin: 34px auto 0;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.trust-strip div {
  min-height: 132px;
  padding: 26px;
  background: var(--surface);
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip strong {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.trust-strip span {
  color: var(--muted);
}

.section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(70px, 10vw, 122px) 0;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1fr);
  gap: clamp(28px, 7vw, 84px);
  align-items: center;
}

.section-copy p {
  color: var(--muted);
  font-size: 1.05rem;
}

.image-panel {
  position: relative;
  min-height: 520px;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}


.services-section {
  width: 100%;
  max-width: none;
  padding-inline: clamp(18px, 4vw, 56px);
  background: #e8ece7;
}

.section-heading {
  width: min(1180px, 100%);
  margin: 0 auto 34px;
}

.section-heading h2 {
  max-width: 850px;
}

.section-heading.compact {
  margin-bottom: 26px;
}

.services-grid,
.portfolio-grid {
  display: grid;
  width: min(1180px, 100%);
  margin: 0 auto;
  gap: 16px;
}

.services-grid {
  grid-template-columns: repeat(3, 1fr);
}

.service-card {
  min-height: 226px;
  padding: 26px;
  border: 1px solid #d2d9d0;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
}

.service-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 34px;
  color: #fff;
  background: var(--blue);
  border-radius: 50%;
  font-size: 0.82rem;
  font-weight: 900;
}

.service-card p {
  color: var(--muted);
}

.portfolio-grid {
  grid-template-columns: repeat(3, 1fr);
}

.work-card {
  min-height: 430px;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(23, 32, 29, 0.08);
}

.work-card img {
  height: 320px;
}

.work-card figcaption {
  display: grid;
  gap: 4px;
  padding: 18px;
}

.work-card span {
  color: var(--muted);
}

.reviews-section {
  border-top: 1px solid var(--line);
}

.reviews-layout {
  display: grid;
  grid-template-columns: 1fr 430px;
  gap: 28px;
  align-items: start;
}

.reviews-list {
  display: grid;
  gap: 14px;
}

.review {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.review p {
  margin-bottom: 18px;
  color: #303a36;
}

.review-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.review-meta span {
  color: var(--muted);
  font-size: 0.92rem;
}

.review-form,
.quote-form {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.review-form {
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(23, 32, 29, 0.08);
}

.review-form::before {
  display: block;
  width: 58px;
  height: 4px;
  margin-bottom: 22px;
  content: "";
  background: var(--green);
  border-radius: 999px;
}

.review-form h3 {
  font-size: 1.45rem;
}

.review-form p {
  color: var(--muted);
}

.review-form .privacy-check {
  margin-top: 4px;
}

.review-form .button {
  width: 100%;
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: #2d3733;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  color: var(--ink);
  border: 1px solid #cfc8b8;
  border-radius: 8px;
  background: #fff;
}

textarea {
  resize: vertical;
}

.form-status {
  min-height: 24px;
  margin: 12px 0 0;
  color: var(--green-dark);
  font-weight: 800;
}

.quote-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 34px;
  align-items: start;
}

.quote-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 16px;
}

.quote-form .full,
.quote-form button {
  grid-column: 1 / -1;
}

.privacy-check {
  display: flex;
  align-items: start;
  gap: 10px;
  color: var(--muted);
  font-weight: 600;
}

.privacy-check input {
  width: 20px;
  min-width: 20px;
  height: 20px;
  min-height: 20px;
  margin-top: 3px;
}

.site-footer {
  padding: clamp(42px, 8vw, 78px) clamp(18px, 4vw, 56px) 28px;
  color: #fff;
  background: #15231d;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 34px;
  width: min(1180px, 100%);
  margin: 0 auto 28px;
}

.footer-content h2 {
  max-width: 760px;
}

.contact-list {
  display: grid;
  gap: 12px;
  font-style: normal;
}

.contact-list a,
.contact-list span {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.86);
}

.map-wrap {
  width: min(1180px, 100%);
  height: 320px;
  margin: 0 auto 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.legal-row {
  align-items: center;
  width: min(1180px, 100%);
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.92rem;
}

.legal-row a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.policy-page {
  background: var(--paper);
}

.policy-main {
  width: min(860px, calc(100% - 36px));
  margin: 0 auto;
  padding: 70px 0 100px;
}

.policy-main article {
  padding: clamp(24px, 5vw, 46px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.policy-main h1 {
  color: var(--ink);
  font-size: clamp(2.3rem, 6vw, 4rem);
}

.policy-main p,
.policy-main li {
  color: var(--muted);
}

@media (max-width: 960px) {
  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 76px;
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .trust-strip,
  .two-column,
  .reviews-layout,
  .quote-section,
  .footer-content {
    grid-template-columns: 1fr;
  }

  .services-grid,
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .image-panel {
    min-height: 430px;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 68px;
  }

  .brand-text small {
    display: none;
  }

  .site-nav {
    top: 68px;
  }

  .hero {
    min-height: calc(100svh - 68px);
  }

  .hero-media {
    background:
      linear-gradient(180deg, rgba(14, 24, 19, 0.42), rgba(14, 24, 19, 0.88)),
      url("./images/hero-cantiere.jpg")
        center / cover;
  }

  .hero-content {
    width: calc(100% - 32px);
    margin: 0 auto 7vh;
  }

  .hero-actions .button {
    width: 100%;
  }

  .trust-strip {
    grid-template-columns: 1fr;
    margin-top: 0;
    width: 100%;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .section {
    width: calc(100% - 32px);
    padding: 62px 0;
  }

  .services-section {
    width: 100%;
    padding-inline: 16px;
  }

  .services-grid,
  .portfolio-grid,
  .quote-form {
    grid-template-columns: 1fr;
  }

  .work-card {
    min-height: auto;
  }

  .work-card img {
    height: 260px;
  }

  .review-form,
  .quote-form {
    padding: 20px;
  }

  .map-wrap {
    height: 260px;
  }
}
