/* ============================================================
   Vox Aequilibrium — landing page
   ============================================================ */

:root {
  --bg:          #1d1330;
  --bg-deep:     #150d24;
  --bg-panel:    #1a1029;
  --gold:        #c2a06b;
  --gold-bright: #d8bd8a;
  --cream:       #f2ece1;
  --muted:       #9b8ea8;
  --line:        rgba(255, 255, 255, 0.08);

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans:  "Nunito", "Helvetica Neue", Arial, sans-serif;

  --maxw: 1280px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg-deep);
  color: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.page {
  width: 100%;
  background:
    radial-gradient(120% 80% at 80% 0%, #2a1b41 0%, rgba(42, 27, 65, 0) 55%),
    linear-gradient(180deg, #211634 0%, #1a1029 55%, #160d25 100%);
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

/* ============================== HEADER ============================== */
.header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 40px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--cream);
}

.brand__mark {
  width: 52px;
  height: 52px;
  color: var(--cream);
  flex: 0 0 auto;
  display: inline-flex;
}

.brand__name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav__list a {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #d9d2e2;
  white-space: nowrap;
  transition: color 0.25s ease;
}

.nav__list a:hover { color: var(--gold-bright); }

.nav__list a.nav__cta {
  border: 1px solid rgba(194, 160, 107, 0.55);
  border-radius: 6px;
  padding: 9px 16px;
  color: var(--gold-bright);
}
.nav__list a.nav__cta:hover {
  background: rgba(194, 160, 107, 0.14);
  color: var(--cream);
}

/* ============================== CONTATORI ============================== */
.counters {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
  gap: clamp(40px, 10vw, 140px);
  flex-wrap: wrap;
  padding: 56px 48px;
  background: rgba(20, 12, 33, 0.55);
  border-top: 1px solid var(--line);
}
.counter {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.counter__eyebrow {
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.counter__num {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  line-height: 1;
  color: var(--cream);
}
.counter__unit {
  font-family: var(--sans);
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 8px;
}
@media (max-width: 980px) { .counters { padding: 44px 28px; gap: 48px; } }

/* ============================== STAFF / GERARCHIA ============================== */
.staff {
  position: relative;
  z-index: 10;
  background: linear-gradient(180deg, rgba(20,12,33,0.55) 0%, rgba(22,13,37,0.85) 100%);
  border-top: 1px solid var(--line);
  padding: 78px 48px 96px;
}
.staff__head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.staff__eyebrow {
  font-family: var(--sans); font-weight: 400; font-size: 0.78rem;
  letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold);
}
.staff__title {
  font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 4vw, 3rem);
  color: var(--cream); margin: 12px 0 14px;
}
.staff__sub { color: var(--muted); font-weight: 300; font-size: 1.05rem; }
.staff__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px; max-width: 1080px; margin: 0 auto;
}
.staff__empty { grid-column: 1/-1; text-align: center; color: var(--muted); font-weight: 300; }
.staff-card {
  background: rgba(38,26,60,0.6);
  border: 1px solid var(--line);
  border-top: 3px solid var(--role-color, var(--gold));
  border-radius: 14px; padding: 26px 22px 28px; text-align: center;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.staff-card:hover {
  transform: translateY(-5px);
  border-color: rgba(194,160,107,0.45);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}
/* area render skin a corpo intero */
.staff-card__render {
  height: 200px; margin-bottom: 16px;
  display: flex; align-items: flex-end; justify-content: center;
}
.staff-card__skin {
  height: 100%; width: auto; object-fit: contain;
  filter: drop-shadow(0 10px 14px rgba(0,0,0,0.45));
  image-rendering: pixelated;
}
.staff-card__initial {
  width: 92px; height: 92px; align-self: center; border-radius: 50%;
  border: 2px solid rgba(194,160,107,0.5);
  display: flex; align-items: center; justify-content: center;
  background: rgba(194,160,107,0.08); font-family: var(--serif);
  font-size: 2.2rem; color: var(--gold-bright);
}
.staff-card__title {
  font-family: var(--sans); font-size: 0.74rem; letter-spacing: 0.22em;
  text-transform: uppercase; font-weight: 500; margin-bottom: 4px;
}
.staff-card__name { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; color: var(--cream); }
.staff-card__mc { margin-top: 10px; font-size: 0.82rem; color: var(--muted); }
.staff-card__mc b { color: #cfc7da; font-weight: 400; }

@media (max-width: 980px) { .staff { padding: 60px 28px 70px; } }

.menu-toggle {
  width: 54px;
  height: 54px;
  border: 1px solid rgba(194, 160, 107, 0.55);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  display: none; /* visibile solo su mobile (vedi media query) */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex: 0 0 auto;
  transition: border-color 0.25s ease;
}

.menu-toggle:hover { border-color: var(--gold-bright); }

.menu-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--gold);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ============================== HERO ============================== */
.hero {
  position: relative;
  min-height: calc(100vh - 112px);
  padding: 70px 48px 90px;
  display: flex;
  align-items: center;
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* darken the image so the overlaid text stays readable */
.hero__fade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20, 12, 33, 0.92) 0%, rgba(24, 15, 40, 0.7) 38%, rgba(29, 19, 48, 0.28) 70%, rgba(29, 19, 48, 0.15) 100%),
    linear-gradient(0deg, rgba(18, 11, 30, 0.85) 0%, rgba(22, 13, 37, 0) 35%),
    linear-gradient(180deg, rgba(18, 11, 30, 0.6) 0%, rgba(22, 13, 37, 0) 25%);
}

.hero__content {
  position: relative;
  z-index: 5;
  max-width: 560px;
}

.hero__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 5.2vw, 4.3rem);
  line-height: 1.08;
  letter-spacing: 0.005em;
  color: var(--cream);
}

.rule {
  display: block;
  width: 64px;
  height: 2px;
  background: var(--gold);
  margin: 34px 0 26px;
}

.hero__lead {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.12rem;
  line-height: 1.7;
  color: #c8bfd2;
  margin-bottom: 44px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 18px 30px;
  border: 1px solid rgba(194, 160, 107, 0.6);
  color: var(--gold-bright);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.btn svg { transition: transform 0.3s ease; }

.btn:hover {
  background: rgba(194, 160, 107, 0.12);
  border-color: var(--gold-bright);
  color: var(--cream);
}

.btn:hover svg { transform: translateX(5px); }

/* ============================== VALUES ============================== */
.values {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(20, 12, 33, 0.55);
  border-top: 1px solid var(--line);
  padding: 54px 48px 64px;
}

.value {
  position: relative;
  text-align: center;
  padding: 4px 28px;
}

.value + .value::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--line);
}

.value__icon {
  color: var(--gold);
  display: inline-flex;
  margin-bottom: 22px;
}

.value__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.18rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 16px;
}

.value__text {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--muted);
}

/* ============================== RESPONSIVE ============================== */
@media (max-width: 980px) {
  .header { position: relative; padding: 24px 28px; }
  .menu-toggle { display: inline-flex; }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 30;
    background: rgba(21, 13, 36, 0.97);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 14px 28px;
  }
  .nav.nav--open { display: block; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list a {
    display: block;
    padding: 16px 4px;
    border-bottom: 1px solid var(--line);
  }
  .nav__list li:last-child a { border-bottom: none; }

  .hero { padding: 60px 28px 80px; }

  .hero__fade {
    background:
      linear-gradient(90deg, rgba(20, 12, 33, 0.9) 0%, rgba(24, 15, 40, 0.78) 55%, rgba(29, 19, 48, 0.45) 100%),
      linear-gradient(0deg, rgba(18, 11, 30, 0.85) 0%, rgba(22, 13, 37, 0) 40%);
  }

  .values {
    grid-template-columns: repeat(2, 1fr);
    gap: 44px 0;
    padding: 48px 28px;
  }
  .value:nth-child(3)::before,
  .value:nth-child(odd)::before { display: none; }
  .value:nth-child(even)::before { display: block; }
}

@media (max-width: 560px) {
  .brand__name { font-size: 1.2rem; letter-spacing: 0.12em; }
  .brand__mark { width: 44px; height: 44px; }
  .hero__lead br { display: none; }
  .values { grid-template-columns: 1fr; }
  .value::before { display: none !important; }
  .value + .value { border-top: 1px solid var(--line); padding-top: 44px; }
}
