/* ============================================================
   V2MZ Engineering — site-base.css
   Sistema visivo condiviso (nav, hero, sezioni, footer).
   Riprende il DNA di Homepage v2.html (Variant B — Cinematografica).
   ============================================================ */

:root {
  /* Brand accents */
  --c-rilievo:    #2E6FBA;
  --c-bim:        #2E7D52;
  --c-ingegneria: #C07820;
  --c-formazione: #660000;

  /* Neutri */
  --black:  #0A0A09;
  --ink:    #2B2B2B;
  --mid:    #555555;
  --muted:  #7A7A7A;
  --rule:   #DEDDD8;
  --surface:#F4F3EF;
  --page:   #FAFAF8;
  --white:  #FFFFFF;

  /* Font families */
  --font-display: 'Montserrat', system-ui, -apple-system, sans-serif;
  --font-body:    'Nunito Sans', system-ui, -apple-system, sans-serif;

  --accent-opacity: 1;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* =========== NAV =========== */
nav.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
  height: 58px;
  display: flex; align-items: center;
  padding: 0 3rem;
  justify-content: space-between;
}
.nav-brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.nav-mark { width: 22px; height: 22px; object-fit: contain; display: block; }
.nav-v2mz {
  font-family: var(--font-display);
  font-size: 0.85rem; font-weight: 700;
  letter-spacing: 0.18em; color: var(--black); text-transform: uppercase;
}
.nav-full {
  font-family: var(--font-display);
  font-size: 0.65rem; font-weight: 500;
  letter-spacing: 0.14em; color: var(--muted); text-transform: uppercase;
}
.nav-links { display: flex; gap: 2.5rem; list-style: none; align-items: center; }
.nav-links a {
  font-family: var(--font-display);
  font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  transition: color 0.2s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--black); }
.nav-cta {
  font-family: var(--font-display);
  font-size: 0.7rem !important; font-weight: 600 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase;
  color: var(--white) !important;
  background: var(--black);
  padding: 0.5rem 1.25rem;
  text-decoration: none;
  transition: background 0.2s ease;
}
.nav-cta:hover { background: var(--ink) !important; }

/* mobile burger */
.nav-burger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px; background: none; border: none;
}
.nav-burger span {
  display: block; width: 22px; height: 1px; background: var(--black);
  transition: transform 0.3s, opacity 0.3s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav-drawer {
  display: none; position: fixed; top: 58px; left: 0; right: 0;
  background: var(--white); border-bottom: 1px solid var(--rule);
  padding: 1.5rem; z-index: 99; flex-direction: column; gap: 0;
}
.nav-drawer.open { display: flex; }
.nav-drawer a {
  font-family: var(--font-display);
  font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
  padding: 0.95rem 0; border-bottom: 1px solid var(--rule);
}
.nav-drawer a.drawer-cta {
  border-bottom: none; margin-top: 0.85rem;
  background: var(--black); color: var(--white) !important;
  text-align: center; padding: 0.95rem; display: block;
}

/* =========== BRAND DOTLINE =========== */
.v2-dotline { display: inline-flex; align-items: center; width: 100%; gap: 6px; }
.v2-dotline::before, .v2-dotline::after {
  content: ''; flex: 1; height: 0; border-top: 1px dashed var(--muted);
}
.v2-dotline-inner {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0 8px; opacity: var(--accent-opacity);
}
.v2-dot {
  display: inline-block; width: 8px; height: 8px;
  border-radius: 50%; flex-shrink: 0;
}
.v2-dot--rilievo    { background: var(--c-rilievo); }
.v2-dot--bim        { background: var(--c-bim); }
.v2-dot--ingegneria { background: var(--c-ingegneria); }
.v2-dot--formazione { background: var(--c-formazione); }

/* =========== HERO Cinematografico (Variant B) =========== */
.hero-section { padding: 0; }
.hero {
  position: relative;
  min-height: 720px;
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 0;
  border-bottom: 1px solid var(--rule);
}
.hero-text-col {
  padding: 110px 3rem 60px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
}
.hero-watermark {
  position: absolute; top: 60px; left: 3rem;
  font-family: var(--font-display);
  font-size: clamp(8rem, 15vw, 14rem);
  font-weight: 700; line-height: 0.85;
  color: var(--rule);
  letter-spacing: -0.05em;
  opacity: 0.45;
  pointer-events: none; user-select: none;
}
.hero-content { position: relative; z-index: 2; }
.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--mid);
  display: flex; align-items: center; gap: 0.75rem;
  margin-bottom: 2rem;
}
.hero-eyebrow::before { content: ''; width: 1.5rem; height: 1px; background: var(--mid); }
.breadcrumb {
  font-family: var(--font-display);
  font-size: 0.6rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--black); }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.6vw, 3.6rem);
  font-weight: 700; line-height: 1;
  letter-spacing: -0.025em;
  color: var(--black); text-transform: uppercase;
  margin-bottom: 2rem;
}
.hero h1 small {
  display: block; font-size: 0.4em; font-weight: 500;
  color: var(--mid);
  margin-top: 1.25rem; letter-spacing: 0.02em;
  text-transform: none; line-height: 1.55;
  font-style: italic; max-width: 460px;
}
.hero-actions { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; }

.btn-black {
  font-family: var(--font-display);
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--white); background: var(--black);
  padding: 0.95rem 2rem;
  text-decoration: none;
  transition: background 0.2s ease;
  display: inline-block; border: none; cursor: pointer; border-radius: 0;
}
.btn-black:hover { background: var(--ink); }
.btn-ghost {
  font-family: var(--font-display);
  font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--mid); text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 3px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.btn-ghost:hover { color: var(--black); border-color: var(--ink); }
.btn-white {
  font-family: var(--font-display);
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--black); background: var(--white);
  padding: 0.95rem 2rem;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s ease;
}
.btn-white:hover { background: var(--surface); }

/* hero right column */
.hero-img-col {
  position: relative;
  background: var(--black);
  overflow: hidden;
  min-height: 560px;
}
.hero-img-col img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center; display: block;
}
.hero-img-cat {
  position: absolute; top: 1.5rem; left: 1.5rem;
  background: var(--c-rilievo); /* default — override per-page */
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.6rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 0.5rem 0.85rem;
}
.hero-img-cat[data-svc="bim"]        { background: var(--c-bim); }
.hero-img-cat[data-svc="ingegneria"] { background: var(--c-ingegneria); }
.hero-img-cat[data-svc="formazione"] { background: var(--c-formazione); }
.hero-img-meta {
  position: absolute; bottom: 1.5rem; left: 1.5rem; right: 1.5rem;
  display: flex; justify-content: space-between; align-items: end;
  font-family: var(--font-display);
}
.hero-img-meta .l {
  font-size: 0.6rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.hero-img-meta .r {
  font-size: 0.85rem; font-weight: 600;
  color: var(--white); text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* =========== Stats strip sotto hero =========== */
.hero-stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--rule);
}
.hero-stats-strip .stat-cell {
  padding: 2rem; border-right: 1px solid var(--rule);
  position: relative;
}
.hero-stats-strip .stat-cell:last-child { border-right: none; }
.hero-stats-strip .stat-cell::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 2px; background: var(--rule);
}
.hero-stats-strip .stat-cell[data-svc="rilievo"]::before    { background: var(--c-rilievo); }
.hero-stats-strip .stat-cell[data-svc="bim"]::before        { background: var(--c-bim); }
.hero-stats-strip .stat-cell[data-svc="ingegneria"]::before { background: var(--c-ingegneria); }
.hero-stats-strip .stat-cell[data-svc="formazione"]::before { background: var(--c-formazione); }
.stat-n {
  font-family: var(--font-display);
  font-size: 2.6rem; font-weight: 700;
  color: var(--black); line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
}
.stat-label {
  font-family: var(--font-display);
  font-size: 0.65rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--mid); line-height: 1.4;
}
.stat-label span {
  display: block;
  color: var(--ink); font-weight: 600;
  font-size: 0.7rem; letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
}
.stat-detail {
  font-family: var(--font-body);
  font-size: 0.8rem; color: var(--muted);
  margin-top: 0.4rem; line-height: 1.55;
}

/* =========== Section scaffolding =========== */
section.std { padding: 80px 3rem; }
section.std.surf { background: var(--page); }
section.std.dark { background: var(--black); }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-tag {
  font-family: var(--font-display);
  font-size: 0.6875rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.section-tag::before {
  content: ''; display: block; width: 1.5rem; height: 1px; background: var(--rule);
}
.section-tag .v2-dot { width: 8px; height: 8px; opacity: var(--accent-opacity); }
section.std.dark .section-tag { color: rgba(255,255,255,0.4); }
section.std.dark .section-tag::before { background: rgba(255,255,255,0.15); }

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
  font-weight: 600; letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--black); line-height: 1.15;
  margin-bottom: 1.5rem;
}
section.std.dark h2 { color: var(--white); }
h3 {
  font-family: var(--font-display);
  font-size: 0.88rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--black); margin-bottom: 0.6rem;
}
section.std.dark h3 { color: var(--white); }

.lead {
  font-family: var(--font-body);
  font-size: 0.9375rem; font-weight: 400;
  color: var(--mid); line-height: 1.85; max-width: 640px;
}
.lead + .lead { margin-top: 1rem; }
section.std.dark .lead { color: rgba(255,255,255,0.6); }

.prose {
  font-family: var(--font-body);
  font-size: 0.88rem; font-weight: 400;
  color: var(--mid); line-height: 1.85;
}
.prose + .prose { margin-top: 0.9rem; }
section.std.dark .prose { color: rgba(255,255,255,0.55); }

hr.rule { border: none; border-top: 1px solid var(--rule); margin: 0; }

/* =========== Card grid riusabile =========== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--rule);
  margin-top: 2.5rem;
  border: 1px solid var(--rule);
}
.card {
  background: var(--white);
  padding: 1.75rem 1.5rem;
}
.card-n {
  font-family: var(--font-display);
  font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.18em; color: var(--muted);
  margin-bottom: 0.85rem;
}
.list-rows { display: flex; flex-direction: column; }
.row-item {
  padding: 1.1rem 0;
  border-top: 1px solid var(--rule);
  display: grid; grid-template-columns: 4rem 1fr; gap: 1.25rem;
  align-items: start;
}
.row-item:last-child { border-bottom: 1px solid var(--rule); }
.row-n {
  font-family: var(--font-display);
  font-size: 0.65rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); padding-top: 3px;
}

/* =========== Index list (Variant B) — riga 80/1.3/1.6/40 =========== */
.idx-list {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--rule);
  margin-top: 2.5rem;
}
.idx {
  display: grid;
  grid-template-columns: 80px 1.3fr 1.6fr 40px;
  align-items: start;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.idx::before {
  content: ''; position: absolute;
  top: 0; left: 0; width: 0; height: 2px;
  background: currentColor;
  transition: width 0.4s ease;
}
.idx[data-svc="rilievo"]    { color: var(--c-rilievo); }
.idx[data-svc="bim"]        { color: var(--c-bim); }
.idx[data-svc="ingegneria"] { color: var(--c-ingegneria); }
.idx[data-svc="formazione"] { color: var(--c-formazione); }
.idx:hover::before { width: 80px; }
.idx-num {
  font-family: var(--font-display);
  font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.16em; color: var(--muted);
  padding-top: 6px;
}
.idx-title {
  font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 600;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  color: var(--black);
  line-height: 1.25;
  padding-right: 2rem;
}
.idx-title small {
  display: block;
  font-size: 0.62rem; font-weight: 500;
  letter-spacing: 0.16em; color: currentColor;
  margin-bottom: 0.4rem; text-transform: uppercase;
}
.idx-body {
  font-family: var(--font-body);
  font-size: 0.85rem; color: var(--mid);
  line-height: 1.7;
}
.idx-arrow {
  font-family: var(--font-display);
  font-size: 1rem; color: var(--muted);
  text-align: right; padding-top: 4px;
}

/* =========== Pull quote cinematografica =========== */
.pull-quote-section {
  background: var(--black);
  padding: 100px 3rem;
  text-align: center;
  position: relative; overflow: hidden;
}
.pull-quote-watermark {
  position: absolute; top: 30px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: clamp(6rem, 12vw, 10rem);
  font-weight: 700; line-height: 1;
  color: rgba(255,255,255,0.04);
  letter-spacing: -0.04em;
  pointer-events: none; user-select: none;
}
.pull-quote-section blockquote {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 500;
  font-style: italic;
  color: var(--white);
  line-height: 1.4;
  max-width: 900px; margin: 0 auto 2rem;
  letter-spacing: -0.015em;
}
.pull-quote-section cite {
  position: relative;
  font-family: var(--font-display);
  font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  font-style: normal;
  display: flex; align-items: center; justify-content: center; gap: 0.75rem;
}
.pull-quote-section cite::before, .pull-quote-section cite::after {
  content: ''; width: 2rem; height: 1px; background: rgba(255,255,255,0.3);
}

/* =========== CTA dark band =========== */
.cta-dark {
  background: var(--black);
  padding: 90px 3rem;
}
.cta-dark .section-inner {
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: 5rem; align-items: center;
}
.cta-dark h2 { color: var(--white); margin-bottom: 1.5rem; }
.cta-dark .lead { color: rgba(255,255,255,0.6); margin-bottom: 2rem; }
.cta-dark .section-tag { color: rgba(255,255,255,0.4); }
.cta-dark .section-tag::before { background: rgba(255,255,255,0.15); }
.cta-related { display: flex; flex-direction: column; }
.cta-related-row {
  padding: 1rem 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: grid; grid-template-columns: 5rem 1fr;
  align-items: baseline;
}
.cta-related-row:last-child { border-bottom: 1px solid rgba(255,255,255,0.08); }
.cta-related-row .l {
  font-family: var(--font-display);
  font-size: 0.6rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}
.cta-related-row a {
  font-family: var(--font-display);
  font-size: 0.85rem; font-weight: 500;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.cta-related-row a:hover { color: var(--white); }

/* =========== FOOTER =========== */
footer.site-footer {
  background: #0a0a09;
  padding: 3rem 3rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 3rem; padding-bottom: 2.5rem;
}
.footer-brand-mark { width: 32px; height: 32px; margin-bottom: 1rem; opacity: 0.7; }
.footer-brand {
  font-family: var(--font-display);
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-bottom: 0.75rem;
}
.footer-desc {
  font-family: var(--font-body);
  font-size: 0.78rem; font-weight: 400;
  color: rgba(255,255,255,0.4); line-height: 1.7;
}
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.footer-col h4 .v2-dot { width: 6px; height: 6px; opacity: var(--accent-opacity); }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.55rem; }
.footer-col a {
  font-family: var(--font-body);
  font-size: 0.8rem; font-weight: 400;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-col a:hover { color: rgba(255,255,255,0.85); }
.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex; justify-content: space-between;
  font-family: var(--font-display);
  font-size: 0.65rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  flex-wrap: wrap; gap: 0.5rem;
}
.footer-bottom .dotline-small {
  display: inline-flex; gap: 4px; align-items: center;
  margin: 0 0.75rem;
}
.footer-bottom .dotline-small .v2-dot { width: 5px; height: 5px; opacity: var(--accent-opacity); }

/* =========== Animations =========== */
.ani { opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease, transform 0.7s ease; }
.ani.in { opacity: 1; transform: translateY(0); }

/* =========== Responsive =========== */
@media (max-width: 960px) {
  nav.site-nav { padding: 0 1.5rem; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  section.std { padding: 60px 1.5rem; }
  .hero { grid-template-columns: 1fr; gap: 0; min-height: auto; }
  .hero-text-col { padding: 100px 1.5rem 3rem; }
  .hero-img-col { aspect-ratio: 4/3; min-height: 0; }
  .hero-watermark { font-size: 6rem; left: 1.5rem; top: 40px; }
  .hero-stats-strip { grid-template-columns: repeat(2, 1fr); }
  .hero-stats-strip .stat-cell { border-right: none; border-bottom: 1px solid var(--rule); }
  .two-col { grid-template-columns: 1fr; gap: 3rem; }
  .card-grid { grid-template-columns: 1fr; }
  .idx { grid-template-columns: 50px 1fr; gap: 0.5rem 1rem; }
  .idx-body { grid-column: 2; }
  .idx-arrow { display: none; }
  .cta-dark { padding: 60px 1.5rem; }
  .cta-dark .section-inner { grid-template-columns: 1fr; gap: 3rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  footer.site-footer { padding: 2rem 1.5rem 1rem; }
  .pull-quote-section { padding: 60px 1.5rem; }
}
