/* ============ Pagina singola Progetto (CPT) — stile identico all'originale ============ */

/* Hero */
.project-hero {
  position: relative;
  padding: 190px 6vw 84px;
  overflow: hidden;
  background-color: #16233a;
  background-size: cover;
  background-position: center;
}
.project-hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #0f1a2b, transparent), linear-gradient(90deg, #16233a 20%, transparent);
}
.project-hero__in {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin-inline: auto;
}
.project-hero .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  color: #9fb0c4;
  margin-bottom: 20px;
}
.project-hero .breadcrumb a { color: #9fb0c4; }
.project-hero .breadcrumb a:hover { color: #e8842b; }
.project-hero .breadcrumb span { color: #5f718a; }
.tagpill {
  display: inline-block;
  background: rgba(232, 132, 43, 0.9);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 40px;
  margin-bottom: 18px;
}
.project-hero h1 {
  font-size: clamp(34px, 4.4vw, 56px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #fff;
}
.project-hero > .project-hero__in > p {
  font-size: clamp(17px, 1.6vw, 20px);
  color: #cdd7e2;
  margin-top: 14px;
}

/* Corpo + scheda */
.project-wrap { max-width: 1240px; margin-inline: auto; padding: clamp(64px, 9vw, 110px) 6vw; }
.project-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: clamp(30px, 4vw, 56px);
  align-items: start;
}
.project-body .lead-img {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16/9;
  margin-bottom: 34px;
}
.project-body .lead-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.project-body h2 { font-size: clamp(24px, 2.4vw, 32px); margin: 34px 0 16px; font-weight: 800; letter-spacing: -0.02em; color: #fff; line-height: 1.1; }
.project-body h2:first-child { margin-top: 0; }
.project-body p { color: #cdd7e2; font-size: 17px; line-height: 1.8; margin-bottom: 16px; }
.project-body ul.facts { margin: 6px 0 8px; display: flex; flex-direction: column; gap: 10px; list-style: none; padding: 0; }
.project-body ul.facts li { position: relative; padding-left: 26px; color: #cdd7e2; font-size: 16px; }
.project-body ul.facts li::before {
  content: ''; position: absolute; left: 0; top: 7px; width: 12px; height: 8px;
  border-left: 2px solid #e8842b; border-bottom: 2px solid #e8842b; transform: rotate(-45deg);
}
.spec-card {
  background: #16233a; border: 1px solid rgba(255, 255, 255, 0.09); border-radius: 16px;
  padding: 32px; position: sticky; top: 100px;
}
.spec-card h3 { font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; color: #e8842b; margin-bottom: 8px; font-weight: 700; }
.spec-card dl { margin-top: 6px; }
.spec-row { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.09); font-size: 15px; }
.spec-row:last-child { border-bottom: 0; }
.spec-row dt { color: #9fb0c4; }
.spec-row dd { color: #fff; font-weight: 600; text-align: right; margin: 0; }
.spec-card .btn-primary {
  display: flex; width: 100%; justify-content: center; align-items: center; gap: 10px;
  margin-top: 24px; background: #e8842b; color: #fff; font-weight: 700; font-size: 16px;
  padding: 16px 32px; border-radius: 8px; line-height: 1.6;
}
.spec-card .btn-primary:hover { background: #f5983f; }

/* Navigazione progetti */
.project-nav {
  max-width: 1240px; margin: 60px auto 0; padding: 30px 6vw 0;
  display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(255, 255, 255, 0.09);
}
.project-nav a { display: flex; flex-direction: column; color: #9fb0c4; font-size: 13px; letter-spacing: 0.05em; text-transform: uppercase; max-width: 45%; }
.project-nav a b { color: #fff; font-weight: 700; font-size: 17px; letter-spacing: 0; text-transform: none; margin-top: 6px; }
.project-nav a.next { text-align: right; align-items: flex-end; }
.project-nav a:hover b { color: #e8842b; }

@media (max-width: 900px) {
  .project-layout { grid-template-columns: 1fr; }
  .spec-card { position: static; }
}
