/* ============================================================
   C.B.D. Costruzioni — stylesheet
   Palette: antracite / pietra / ottone
   ============================================================ */

:root {
  --dark:  #07080a;
  --paper: #f4efe6;
  --white: #fff;
  --gold:  #b99045;
  --gold2: #f5c56b;
  --muted: #696969;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--paper);
  color: #151515;
}

img { display: block; max-width: 100%; }
a   { text-decoration: none; color: inherit; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(7,8,10,.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.navin {
  max-width: 1250px; margin: auto;
  padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
}
.brand { display: flex; gap: 14px; align-items: center; color: #fff; }
.logomark {
  height: 48px; width: auto;
  background: #fff; padding: 8px 14px;
  border-radius: 14px;
  box-sizing: border-box;
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
}
.brand small { display: block; color: #ccc; font-size: 12px; letter-spacing: .04em; }
.menu { display: flex; gap: 24px; color: #eee; font-weight: 750; font-size: 14px; }
.menu a:hover { color: var(--gold2); }
.cta {
  border-radius: 999px; background: var(--gold2);
  padding: 13px 20px; font-weight: 900; color: #111;
}
.cta:hover { background: #ffd789; }

/* ---------- hero ---------- */
.hero {
  min-height: 860px; position: relative; color: #fff;
  display: grid; align-items: center; overflow: hidden;
}
.hero > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(7,8,10,.98), rgba(7,8,10,.74), rgba(7,8,10,.16));
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(7,8,10,.88), transparent 50%);
}
.wrap { max-width: 1250px; margin: auto; padding: 0 24px; position: relative; z-index: 1; }
.kicker {
  display: inline-flex;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.1);
  color: #ffe8a6;
  border-radius: 999px; padding: 10px 15px;
  margin-bottom: 26px; font-weight: 900;
}
h1 { font-size: clamp(48px, 7.5vw, 92px); line-height: .93; letter-spacing: -.06em; margin: 0; max-width: 950px; }
h2 { font-size: clamp(34px, 5vw, 60px);  line-height: 1;   letter-spacing: -.045em; margin: 0; }
h3 { font-size: 25px; margin: 0; }
.lead { font-size: 21px; line-height: 1.65; color: #e5e5e5; max-width: 780px; }
.buttons { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.btn { display: inline-flex; border-radius: 999px; padding: 14px 23px; font-weight: 950; border: 0; cursor: pointer; }
.primary { background: linear-gradient(135deg, var(--gold2), var(--gold)); color: #111; }
.primary:hover { filter: brightness(1.05); }
.ghost   { border: 1px solid rgba(255,255,255,.25); color: #fff; background: rgba(255,255,255,.06); }

section { padding: 108px 0; }

/* ---------- stats bar ---------- */
.stats {
  max-width: 1250px; margin: -72px auto 0;
  background: #fff; border-radius: 34px;
  box-shadow: 0 32px 90px rgba(0,0,0,.2);
  padding: 18px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  position: relative; z-index: 2;
}
.stat { background: #fbfaf7; border-radius: 26px; padding: 28px; }
.stat strong { font-size: 34px; display: block; }
.stat span   { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: #777; font-weight: 950; }

/* ---------- generic section titles ---------- */
.title { max-width: 860px; margin-bottom: 54px; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .25em;
  color: var(--gold); font-size: 13px; font-weight: 950;
  margin-bottom: 14px;
}
.title p, .card p, .service p { font-size: 17px; line-height: 1.72; color: #666; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

/* ---------- about photo ---------- */
.photo {
  border-radius: 34px; min-height: 430px; overflow: hidden;
  position: relative; background: #111;
  box-shadow: 0 22px 55px rgba(0,0,0,.18);
}
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.76), transparent 58%);
}
.photo span {
  position: absolute; left: 30px; bottom: 30px;
  color: #fff; z-index: 1; font-weight: 900; font-size: 21px; max-width: 430px;
}

.white { background: #fff; }
.dark  { background: var(--dark); color: #fff; }
.dark .title p { color: #d4d4d8; }

/* ---------- services ---------- */
.service {
  background: var(--paper); border: 1px solid #e6ded2;
  border-radius: 30px; padding: 27px;
}
.service b {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  background: #111; color: var(--gold2);
  border-radius: 16px; margin-bottom: 18px;
}

/* ---------- method ---------- */
.method {
  border: 1px solid rgba(255,255,255,.11);
  background: rgba(255,255,255,.055);
  border-radius: 26px; padding: 28px;
}
.method strong { color: var(--gold2); }

/* ---------- portfolio ---------- */
.portfolio-head {
  display: flex; justify-content: space-between; align-items: end;
  gap: 30px; margin-bottom: 36px;
}
.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.filter {
  border: 0; border-radius: 999px;
  background: #fff; padding: 11px 15px;
  font-weight: 900; cursor: pointer;
}
.filter.active { background: #111; color: #fff; }

.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.card {
  background: #fff; border-radius: 32px; overflow: hidden;
  box-shadow: 0 12px 32px rgba(0,0,0,.05); transition: .25s;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 24px 55px rgba(0,0,0,.10); }
.pic { height: 270px; position: relative; overflow: hidden; background: #111; }
.pic img { width: 100%; height: 100%; object-fit: cover; transition: .75s; }
.card:hover .pic img { transform: scale(1.06); }
.pic::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.72), transparent 62%);
}
.pic span {
  position: absolute; left: 20px; bottom: 20px;
  color: #ffe3a0; text-transform: uppercase; letter-spacing: .18em;
  font-size: 12px; font-weight: 950; z-index: 1;
}
.body { padding: 27px; }
.meta { font-size: 14px !important; color: #777 !important; }
.role {
  background: var(--paper); border-radius: 18px; padding: 15px;
  font-weight: 850; color: #484848; line-height: 1.55;
  font-size: 14px; margin: 18px 0 0;
}

/* ---------- case study ---------- */
.case {
  border-radius: 38px; background: #fff; overflow: hidden;
  display: grid; grid-template-columns: 1.05fr .95fr;
  box-shadow: 0 26px 70px rgba(0,0,0,.12);
}
.casepic { min-height: 520px; position: relative; }
.casepic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.casepic::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.80), transparent 55%);
}
.casetxt { padding: 38px; }
.spec {
  background: var(--paper); border-radius: 18px;
  padding: 16px; margin-bottom: 10px; color: #444;
}

/* ---------- contact ---------- */
.contact {
  border-radius: 38px; background: var(--dark); color: #fff;
  padding: 48px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 44px;
}
.contact a { color: var(--gold2); }
.contact a:hover { text-decoration: underline; }
.form {
  background: #fff; color: #111;
  border-radius: 30px; padding: 28px;
  display: grid; gap: 14px;
}
.form label { font-size: 13px; font-weight: 800; color: #444; }
input, select, textarea {
  border: 1px solid #ddd; border-radius: 17px;
  padding: 15px 16px; font: inherit; width: 100%;
}
textarea { min-height: 125px; resize: vertical; }
.consent {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 13px; color: #555; line-height: 1.4;
}
.consent input { width: auto; margin-top: 3px; }

.form-success {
  background: #fff; color: #111;
  border-radius: 30px; padding: 44px 32px;
  text-align: center;
}
.form-success h3 { color: var(--gold); margin-bottom: 12px; font-size: 28px; }
.form-success p  { font-size: 16px; line-height: 1.6; color: #444; }
.form-success a  { color: var(--gold); text-decoration: underline; }

/* ---------- footer ---------- */
.footer { background: #07080a; color: #aaa; padding: 32px 24px; }
.foot {
  max-width: 1250px; margin: auto;
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 26px;
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.foot a:hover { color: var(--gold2); }
.legal { font-size: 12px; line-height: 1.7; max-width: 760px; }
.legal strong { color: #ccc; }
.foot-links { display: flex; gap: 18px; font-size: 13px; }

/* ---------- cookie banner ---------- */
.cookiebar {
  position: fixed; left: 16px; right: 16px; bottom: 16px;
  background: #07080a; color: #eee;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px; padding: 18px 22px;
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
  z-index: 100; box-shadow: 0 20px 60px rgba(0,0,0,.45);
  font-size: 14px;
}
.cookiebar p { margin: 0; flex: 1 1 280px; line-height: 1.5; }
.cookiebar a { color: var(--gold2); text-decoration: underline; }
.cookiebar button {
  border: 0; border-radius: 999px;
  background: var(--gold2); color: #111;
  padding: 11px 20px; font-weight: 900; cursor: pointer;
}
.cookiebar.hidden { display: none; }

/* ---------- legal pages (privacy / cookie) ---------- */
.legal-page {
  max-width: 860px; margin: auto;
  padding: 64px 24px 96px;
}
.legal-page h1 { font-size: clamp(34px, 5vw, 56px); margin-bottom: 24px; }
.legal-page h2 { font-size: 24px; margin: 36px 0 12px; }
.legal-page p, .legal-page li { font-size: 16px; line-height: 1.72; color: #333; }
.legal-page ul { padding-left: 22px; }
.legal-page a { color: var(--gold); text-decoration: underline; }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .menu, .navin > .cta { display: none; }
  .grid2, .grid3, .grid4, .projects, .stats, .case, .contact, .portfolio-head {
    grid-template-columns: 1fr; display: grid;
  }
  .hero { min-height: 720px; }
  .hero::before { background: linear-gradient(90deg, rgba(7,8,10,.96), rgba(7,8,10,.7)); }
  section { padding: 78px 0; }
  .lead { font-size: 18px; }
  .casepic { min-height: 380px; }
  .contact { padding: 32px; }
  .logomark { height: 42px; padding: 6px 12px; }
}
