:root {
  --ink: #33343a;
  --muted: #79818d;
  --line: #e8eaed;
  --amber: #efa900;
  --blue: #0b8ed8;
  --surface: #ffffff;
  --soft: #f6f7f8;
  --shadow: 0 24px 48px rgba(20, 24, 32, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: Montserrat, Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.75;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; }
.container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 82px;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.nav-wrap { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.logo img { width: 170px; height: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .78rem;
  color: #777b82;
  transition: color .2s ease;
}
.nav a:hover, .nav a[aria-current="page"] { color: #202227; }
.nav-toggle { display: none; border: 0; background: transparent; padding: 8px; font-size: 1.4rem; }

.split-hero { min-height: 470px; display: grid; grid-template-columns: 1fr 1fr; }
.split-hero__panel { position: relative; min-height: 470px; background-size: cover; background-position: center; }
.split-hero__panel:first-child::after { content: ""; position: absolute; inset: 0; background: rgba(239,169,0,.88); }
.split-hero__copy { position: relative; z-index: 1; display: flex; min-height: 100%; flex-direction: column; justify-content: center; align-items: flex-start; width: min(500px, calc(100% - 48px)); margin-left: auto; padding-right: 70px; }
.split-hero h1 { margin: 0 0 22px; font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1.05; letter-spacing: .02em; }
.split-hero h1 span { display: block; }
.split-hero p { max-width: 430px; margin: 0 0 26px; font-weight: 700; line-height: 1.35; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 22px; border: 2px solid currentColor; border-radius: 28px; color: inherit; background: transparent; font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; cursor: pointer; }
.button:hover { background: #fff; color: var(--ink); }
.button--dark { color: #606974; }

.notice { padding: 20px; text-align: center; color: #777f8a; font-size: .9rem; box-shadow: 0 8px 22px rgba(20,24,32,.08); }
.section { padding: 82px 0; }
.section--soft { background: var(--soft); }
.section-title { margin: 0 0 12px; text-align: center; text-transform: uppercase; font-size: clamp(1.55rem, 3vw, 2.15rem); line-height: 1.2; }
.dots { margin: 0 0 26px; color: var(--blue); text-align: center; font-size: 2rem; letter-spacing: .08em; line-height: 1; }
.prose { color: var(--muted); }
.prose p { margin: 0 0 1.25em; }
.center { text-align: center; }
.narrow { width: min(720px, 100%); margin-inline: auto; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.feature-image { width: 100%; height: 460px; object-fit: cover; }

.page-hero { position: relative; padding: 64px 0 40px; }
.page-hero__image { width: 100%; height: 320px; object-fit: cover; }
.page-hero__card { position: relative; z-index: 2; width: min(540px, calc(100% - 52px)); margin: -76px 0 0 10%; padding: 46px 54px; background: #fff; box-shadow: var(--shadow); }
.page-hero__card h1 { margin: 0; text-transform: uppercase; font-size: clamp(1.8rem, 4vw, 2.5rem); line-height: 1.15; }
.about-card { padding: 58px; background: #fff; box-shadow: var(--shadow); }
.about-card h1 { margin-top: 0; font-size: 2.1rem; line-height: 1.1; }
.service-icons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px; margin-top: 70px; text-align: center; }
.service-icons img { height: 84px; width: 84px; object-fit: contain; margin: 0 auto 22px; }
.service-icons h3 { margin: 0; font-size: 1rem; line-height: 1.35; }

.service-strip { display: grid; grid-template-columns: 38% 62%; min-height: 190px; margin-bottom: 28px; color: #fff; background-size: cover; background-position: center; overflow: hidden; }
.service-strip__title { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px; background: rgba(20,20,22,.84); text-align: center; }
.service-strip__title img { width: 72px; height: 72px; object-fit: contain; filter: brightness(0) invert(1); }
.service-strip__title h2 { margin: 0; font-size: 1rem; }
.service-strip__copy { display: flex; align-items: center; padding: 34px 48px; background: rgba(20,20,22,.62); }
.service-strip__copy ul { margin: 0; padding-left: 20px; }
.faq { width: min(760px, 100%); margin: 34px auto 0; }
.faq details { margin: 0 0 14px; border-radius: 18px; background: #fff; box-shadow: 0 7px 18px rgba(20,24,32,.12); overflow: hidden; }
.faq summary { padding: 18px 24px; cursor: pointer; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { margin: 0; padding: 0 24px 24px; color: var(--muted); }

.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.gallery-grid a { display: block; aspect-ratio: 1 / 1; overflow: hidden; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery-grid a:hover img { transform: scale(1.04); }

.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 70px; align-items: center; }
.contact-list { color: var(--muted); }
.contact-list strong { color: var(--ink); }
.contact-list a { text-decoration-color: var(--amber); text-decoration-thickness: 2px; }
.map { min-height: 390px; border: 0; width: 100%; }

.contact-band { position: relative; padding: 92px 0; color: #fff; background: var(--amber) url('/assets/ristrutturazione-edilizi-achiavi-in-mano.jpg') center/cover no-repeat; }
.contact-band::before { content: ""; position: absolute; inset: 0; background: rgba(239,169,0,.91); }
.contact-band .container { position: relative; z-index: 1; }
.contact-band h2 { margin: 0; text-align: center; text-transform: uppercase; font-size: 1.8rem; }
.contact-band p { text-align: center; font-weight: 600; }
.contact-form { width: min(700px, 100%); margin: 42px auto 0; }
.field { margin-bottom: 12px; }
.field label { display: block; margin-bottom: 4px; font-size: .84rem; font-weight: 700; }
.field input, .field textarea { width: 100%; border: 0; border-bottom: 1px solid rgba(255,255,255,.9); padding: 9px 4px; color: #fff; background: transparent; outline: none; }
.field textarea { min-height: 86px; resize: vertical; }
.radio-row, .consent { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 18px 0; font-size: .85rem; }
.consent { align-items: flex-start; }
.contact-form .button { color: #fff; }
.form-note { display: none; padding: 12px 0; font-weight: 700; text-align: left !important; }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.post-card { border: 1px solid var(--line); background: #fff; box-shadow: 0 10px 26px rgba(20,24,32,.06); }
.post-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post-card__body { padding: 24px; }
.post-card time { color: var(--muted); font-size: .8rem; }
.post-card h2 { margin: 8px 0 12px; font-size: 1.18rem; line-height: 1.35; }
.post-card h2 a { text-decoration: none; }
.post-card p { margin: 0; color: var(--muted); font-size: .93rem; }
.article { width: min(820px, calc(100% - 40px)); margin: 0 auto; padding: 72px 0; }
.article h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.12; margin: 0 0 16px; }
.article-meta { color: var(--muted); margin-bottom: 32px; }
.article-cover { width: 100%; max-height: 500px; object-fit: cover; margin: 0 0 36px; }
.article-content h2, .article-content h3 { line-height: 1.25; margin-top: 1.7em; }
.article-content img { height: auto; margin: 28px auto; }
.article-content a { color: #006cae; }
.article-content li { margin-bottom: .5em; }

.site-footer { padding: 24px 0; color: #8c8e94; background: #171717; font-size: .78rem; }
.footer-wrap { display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.footer-links { display: flex; gap: 18px; }
.footer-links a { color: #66b9e8; }
.socials { display: flex; gap: 10px; justify-content: center; margin-top: 28px; }
.socials a { display: grid; place-items: center; width: 34px; height: 34px; color: #fff; background: #2563a5; text-decoration: none; font-weight: 800; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 82px; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px 22px; background: #fff; border-bottom: 1px solid var(--line); }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px; }
  .split-hero { grid-template-columns: 1fr; }
  .split-hero__panel { min-height: 360px; }
  .split-hero__copy { margin: 0 auto; padding: 44px 0; }
  .service-icons { grid-template-columns: repeat(2, 1fr); }
  .two-col, .contact-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .container { width: min(100% - 28px, 1160px); }
  .section { padding: 58px 0; }
  .split-hero__panel { min-height: 320px; }
  .split-hero__copy { width: calc(100% - 40px); }
  .page-hero { padding-top: 28px; }
  .page-hero__image { height: 240px; }
  .page-hero__card { margin: -48px auto 0; padding: 30px; }
  .about-card { padding: 30px; }
  .service-icons { gap: 32px 18px; }
  .service-strip { grid-template-columns: 1fr; }
  .service-strip__copy { padding: 28px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-wrap { flex-direction: column; text-align: center; }
}

