/* ── Reset & Variables ─────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --v3-bg-void: #1B3D6E;
  --v3-bg-surface: #264A7A;
  --v3-footer-bg: #152E55;
  --v3-gold: #C59B76;
  --v3-gold-dim: #C59B7640;
  --v3-text-primary: #F4F4F5;
  --v3-text-muted: #9AAAC2;
  --v3-text-dark: #4E6788;
  --v3-text-pure: #FFFFFF;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Montserrat', 'Helvetica Neue', sans-serif;
}

body {
  background: var(--v3-bg-void);
  color: var(--v3-text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.page-wrapper {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

/* ── Header ────────────────────────────────────────── */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 56px;
  background: var(--v3-bg-void);
}
.brand-lockup {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.brand-name {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 400;
  color: var(--v3-text-pure);
  letter-spacing: 1px;
}
.brand-desc {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  color: var(--v3-gold);
  letter-spacing: 4px;
  text-transform: uppercase;
}
.nav-bar {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-bar a {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  color: var(--v3-text-muted);
  letter-spacing: 3px;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.25s ease-out;
  position: relative;
  padding-bottom: 4px;
}
.nav-bar a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--v3-gold);
  transition: width 0.3s ease-out;
}
.nav-bar a:hover {
  color: var(--v3-gold);
}
.nav-bar a:hover::after {
  width: 100%;
}

/* ── Hamburger Menu ───────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  z-index: 101;
}
.hamburger span {
  display: block;
  width: 28px;
  height: 1.5px;
  background: var(--v3-text-primary);
  transition: transform 0.3s ease-out, opacity 0.2s ease-out;
}
.hamburger.active span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ── Hero ──────────────────────────────────────────── */
.hero {
  position: relative;
  height: 860px;
  overflow: hidden;
  border-bottom: 1px solid var(--v3-gold-dim);
  background: var(--v3-bg-void);
}
.hero-image {
  position: absolute;
  top: 0;
  right: 0;
  width: 864px;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  mix-blend-mode: luminosity;
  will-change: transform;
}
.hero-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 900px;
  height: 100%;
  background: linear-gradient(90deg, #1B3D6E 0%, #1B3D6E 45%, transparent 100%);
}
.hero-content {
  position: absolute;
  left: 56px;
  top: 280px;
  width: 800px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  z-index: 2;
}
.hero-badge {
  display: inline-block;
  width: fit-content;
  padding: 4px 14px;
  border: 1px solid var(--v3-gold);
}
.hero-badge-text {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  color: var(--v3-gold);
  letter-spacing: 3px;
}
.hero-h1 {
  font-family: var(--font-serif);
  font-size: 96px;
  font-weight: 400;
  line-height: 0.95;
  color: var(--v3-text-pure);
}
.hero-h1--gold {
  color: var(--v3-gold);
  font-style: italic;
}
.hero-meta {
  position: absolute;
  left: 56px;
  top: 700px;
  display: flex;
  gap: 64px;
  padding-top: 24px;
  border-top: 1px solid #FFFFFF1A;
  z-index: 2;
}
.hero-city {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-city-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  color: var(--v3-text-pure);
  letter-spacing: 3px;
}
.hero-vert-text {
  position: absolute;
  left: 20px;
  top: 380px;
  transform: rotate(90deg);
  transform-origin: left top;
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 500;
  color: var(--v3-text-dark);
  letter-spacing: 5px;
  z-index: 2;
  white-space: nowrap;
}

/* ── Shared Section Row ────────────────────────────── */
.section-row {
  display: flex;
  gap: 40px;
  padding: 120px 56px;
  width: 100%;
}
.section-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 280px;
  min-width: 280px;
}
.section-num {
  font-family: var(--font-serif);
  font-size: 24px;
  font-style: italic;
  color: var(--v3-gold);
}
.section-title {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 400;
  color: var(--v3-text-primary);
}
.section-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  color: var(--v3-text-muted);
  letter-spacing: 3px;
}

/* ── Lo Studio ─────────────────────────────────────── */
.studio-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
  flex: 1;
}
.studio-lead {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 400;
  color: var(--v3-text-primary);
  line-height: 1.3;
}
.studio-body {
  display: flex;
  gap: 32px;
}
.studio-col {
  flex: 1;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 300;
  color: var(--v3-text-muted);
  line-height: 1.8;
}

/* ── Le Aree ───────────────────────────────────────── */
.practice-list {
  display: flex;
  flex-direction: column;
  flex: 1;
  border-top: 1px solid var(--v3-gold-dim);
}
.practice-block {
  border-bottom: 1px solid var(--v3-gold-dim);
  padding: 28px 0;
  transition: padding-left 0.3s ease-out;
}
.practice-block:hover {
  padding-left: 16px;
}
.practice-item {
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
  cursor: default;
}
.practice-idx {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  color: var(--v3-gold);
  letter-spacing: 2.5px;
  transition: opacity 0.25s ease-out;
}
.practice-block:hover .practice-idx {
  opacity: 0.7;
}
.practice-name {
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 400;
  color: var(--v3-text-muted);
  transition: color 0.3s ease-out;
}
.practice-block:hover .practice-name {
  color: var(--v3-text-primary);
}
.practice-services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 32px;
  list-style: none;
  margin-top: 20px;
  padding-left: calc(24px + 40px);
}
.practice-services li {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  color: var(--v3-text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  line-height: 1.6;
  padding-left: 16px;
  position: relative;
  transition: color 0.3s ease-out;
}
.practice-services li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 1px;
  background: var(--v3-gold);
}
.practice-block:hover .practice-services li {
  color: var(--v3-text-primary);
}

/* ── I Partner ─────────────────────────────────────── */
.team-content {
  display: flex;
  flex-direction: column;
  gap: 48px;
  flex: 1;
}
.team-intro {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 400;
  color: var(--v3-text-primary);
  line-height: 1.4;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--v3-gold-dim);
}
.team-intro-sub {
  display: block;
  margin-top: 12px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 300;
  font-style: normal;
  color: var(--v3-text-muted);
  letter-spacing: 1px;
  line-height: 1.8;
}
.team-grid {
  display: flex;
  gap: 32px;
}
.team-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.team-role {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  color: var(--v3-gold);
  letter-spacing: 3px;
}
.team-name {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 400;
  color: var(--v3-text-pure);
}

/* ── Footer ────────────────────────────────────────── */
#contatti {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding: 64px 56px;
  background: var(--v3-footer-bg);
  border-top: 1px solid var(--v3-gold-dim);
}
.footer-grid {
  display: flex;
  gap: 32px;
  width: 100%;
}
.footer-col {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.footer-brand-name {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 400;
  color: var(--v3-text-pure);
  letter-spacing: 1px;
}
.footer-brand-sub {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  color: var(--v3-gold);
  letter-spacing: 4px;
  margin-top: 4px;
}
.footer-col-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  color: var(--v3-gold);
  letter-spacing: 3px;
  margin-bottom: 12px;
}
.footer-col-text {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  color: var(--v3-text-muted);
  letter-spacing: 1px;
  line-height: 2;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid #FFFFFF0D;
  width: 100%;
}
.footer-copy,
.footer-legal {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  color: var(--v3-text-muted);
  letter-spacing: 2px;
}

/* ── Fade-in elements (initial state) ──────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(32px);
}

/* ── Responsive: Tablet (≤1024px) ─────────────────── */
@media (max-width: 1024px) {
  .header { padding: 20px 32px; }
  .hero-content { left: 32px; width: 600px; }
  .hero-h1 { font-size: 72px; }
  .hero-meta { left: 32px; }
  .hero-gradient { width: 100%; }
  .section-row { padding: 80px 32px; flex-direction: column; gap: 32px; }
  .section-header { width: 100%; min-width: unset; }
  .practice-name { font-size: 32px; }
  .team-grid { flex-direction: column; gap: 40px; }
  #contatti { padding: 48px 32px; }
  .footer-grid { flex-wrap: wrap; gap: 24px; }
  .footer-col { min-width: 45%; }
}

/* ── Responsive: Mobile (≤768px) ────────────────────── */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .header {
    padding: 16px 20px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
  }
  .nav-bar {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100dvh;
    background: var(--v3-bg-void);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    transform: translateX(100%);
    transition: transform 0.35s ease-out;
    z-index: 100;
  }
  .nav-bar.open {
    transform: translateX(0);
  }
  .nav-bar a {
    font-size: 13px;
    letter-spacing: 4px;
  }
  .nav-bar a::after { display: none; }

  .hero {
    height: auto;
    min-height: 100dvh;
    padding-bottom: 40px;
  }
  .hero-image {
    width: 100%;
    height: 100%;
  }
  .hero-gradient {
    width: 100%;
    background: linear-gradient(180deg, #1B3D6E 0%, #1B3D6E80 40%, #1B3D6E90 100%);
  }
  .hero-content {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    padding: 120px 20px 0;
    gap: 16px;
  }
  .hero-h1 { font-size: 48px; }
  .hero-meta {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    padding: 24px 20px 0;
    gap: 32px;
  }
  .hero-vert-text { display: none; }

  .section-row {
    padding: 60px 20px;
    flex-direction: column;
    gap: 24px;
  }
  .section-header { width: 100%; min-width: unset; }
  .section-title { font-size: 32px; }
  .studio-lead { font-size: 24px; }
  .studio-body { flex-direction: column; gap: 20px; }
  .studio-col { font-size: 15px; }

  .practice-name { font-size: 24px; }
  .practice-block { padding: 20px 0; }
  .practice-block:hover { padding-left: 8px; }
  .practice-services {
    grid-template-columns: 1fr;
    gap: 6px;
    margin-top: 16px;
    padding-left: 0;
  }
  .practice-services li { font-size: 11px; letter-spacing: 1.2px; }

  .team-grid { flex-direction: column; gap: 32px; }
  .team-name { font-size: 24px; }
  .team-intro { font-size: 20px; padding-bottom: 28px; }
  .team-content { gap: 32px; }

  #contatti { padding: 40px 20px; }
  .footer-grid { flex-direction: column; gap: 32px; }
  .footer-col { min-width: 100%; }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
}

/* ── Responsive: Small Mobile (≤375px) ──────────────── */
@media (max-width: 375px) {
  .hero-h1 { font-size: 36px; }
  .studio-lead { font-size: 20px; }
  .section-title { font-size: 28px; }
  .practice-name { font-size: 20px; }
}

/* ── Reduced Motion ────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .fade-in {
    opacity: 1;
    transform: none;
  }
}
