/* ============================================================
   ELINVES — Gestione Patrimoniale d'Élite
   CSS Master Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500&family=Inter:wght@300;400;500;600&display=swap');

/* ---- CSS Variables ---- */
:root {
  --bg:            #060f0a;
  --bg2:           #0d1a10;
  --bg3:           #111f14;
  --emerald:       #2d6a4f;
  --emerald-light: #52b788;
  --emerald-dim:   #1b4332;
  --cream:         #f0ebe0;
  --cream-dim:     #c8c0ae;
  --text-muted:    #8a9e92;
  --gold:          #c9a227;
  --gold-light:    #e8c048;
  --white:         #ffffff;
  --border:        rgba(82, 183, 136, 0.15);
  --border-strong: rgba(82, 183, 136, 0.3);
  --radius:        8px;
  --radius-sm:     4px;
  --shadow:        0 8px 32px rgba(0,0,0,0.4);
  --shadow-lg:     0 20px 60px rgba(0,0,0,0.6);
  --transition:    0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --font-head:     'Cormorant Garamond', Georgia, serif;
  --font-body:     'Inter', -apple-system, sans-serif;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--emerald-light); }
ul { list-style: none; }

/* ---- Typography ---- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 400;
  line-height: 1.2;
  color: var(--cream);
  letter-spacing: 0.02em;
}

h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); font-weight: 300; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 300; }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: 1.3rem; }
h5 { font-size: 1.1rem; }

.section-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--emerald-light);
  margin-bottom: 1rem;
  display: block;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  color: var(--cream);
  margin-bottom: 1.2rem;
  line-height: 1.15;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.8;
}

/* ---- Layout ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

section { padding: 100px 0; }

.section-header {
  margin-bottom: 60px;
}

.section-header.centered {
  text-align: center;
}

.section-header.centered .section-subtitle {
  margin: 0 auto;
}

/* ---- Gold Divider ---- */
.divider {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: 1.5rem 0;
}

.divider.centered { margin: 1.5rem auto; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--emerald);
  color: var(--cream);
  border: 1px solid var(--emerald);
}

.btn-primary:hover {
  background: var(--emerald-light);
  border-color: var(--emerald-light);
  color: var(--bg);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(82, 183, 136, 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--cream);
  border: 1px solid var(--border-strong);
}

.btn-outline:hover {
  background: rgba(82, 183, 136, 0.08);
  border-color: var(--emerald-light);
  color: var(--emerald-light);
  transform: translateY(-1px);
}

.btn-gold {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}

.btn-gold:hover {
  background: var(--gold);
  color: var(--bg);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(201, 162, 39, 0.25);
}

/* ---- HEADER ---- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0;
  transition: all var(--transition);
}

.site-header.scrolled {
  background: rgba(6, 15, 10, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.logo {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--cream);
  transition: color var(--transition);
}

.logo span { color: var(--emerald-light); }
.logo:hover { color: var(--white); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream-dim);
  position: relative;
  transition: color var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--emerald-light);
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--cream);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  margin-left: 1rem;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--cream);
  transition: all var(--transition);
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(6, 15, 10, 0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.mobile-nav.open {
  display: flex;
  opacity: 1;
  pointer-events: all;
}

.mobile-nav a {
  font-family: var(--font-head);
  font-size: 2.2rem;
  color: var(--cream);
  letter-spacing: 0.04em;
  transition: color var(--transition);
}

.mobile-nav a:hover { color: var(--emerald-light); }

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.05);
  transition: transform 8s ease;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(6, 15, 10, 0.88) 0%,
    rgba(6, 15, 10, 0.65) 50%,
    rgba(6, 15, 10, 0.82) 100%
  );
}

.hero.loaded .hero-bg { transform: scale(1); }

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding: 0 2rem;
  margin: 0 auto;
  padding-top: 80px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2rem;
}

.hero-tag::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--gold);
}

.hero h1 {
  margin-bottom: 1.5rem;
  color: var(--cream);
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.hero h1 em {
  font-style: italic;
  color: var(--emerald-light);
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--cream-dim);
  max-width: 520px;
  margin-bottom: 3rem;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--emerald-light), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.1); }
}

/* ---- PILLARS ---- */
.pillars {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.pillar-item {
  padding: 60px 50px;
  border-right: 1px solid var(--border);
  transition: background var(--transition);
  position: relative;
  overflow: hidden;
}

.pillar-item::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--emerald), var(--emerald-light));
  transform: scaleX(0);
  transition: transform var(--transition);
}

.pillar-item:hover::before { transform: scaleX(1); }
.pillar-item:hover { background: var(--bg3); }
.pillar-item:last-child { border-right: none; }

.pillar-number {
  font-family: var(--font-head);
  font-size: 3.5rem;
  color: var(--border-strong);
  font-weight: 300;
  line-height: 1;
  margin-bottom: 1rem;
  transition: color var(--transition);
}

.pillar-item:hover .pillar-number { color: rgba(82, 183, 136, 0.2); }

.pillar-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.5rem;
  color: var(--emerald-light);
}

.pillar-item h3 {
  font-size: 1.1rem;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 1rem;
}

.pillar-item p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ---- STATS ---- */
.stats-section {
  padding: 80px 0;
  background: var(--bg);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--border);
}

.stat-item {
  background: var(--bg);
  padding: 50px 40px;
  text-align: center;
  transition: background var(--transition);
}

.stat-item:hover { background: var(--bg2); }

.stat-number {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 300;
  color: var(--emerald-light);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-unit {
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--gold);
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ---- CARDS ---- */
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--emerald), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card:hover::before { opacity: 1; }

.card-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 1.5rem;
  color: var(--emerald-light);
}

.card-number {
  font-family: var(--font-head);
  font-size: 0.85rem;
  color: var(--emerald-light);
  letter-spacing: 0.1em;
  margin-bottom: 0.8rem;
}

.card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
}

.card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.2rem;
}

.card-link {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--emerald-light);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap var(--transition);
}

.card-link:hover { gap: 0.9rem; color: var(--emerald-light); }
.card-link::after { content: '→'; }

/* ---- SERVICES GRID ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--border);
  margin-top: 60px;
}

.service-card {
  background: var(--bg2);
  padding: 3rem 2.5rem;
  transition: all var(--transition);
}

.service-card:hover {
  background: var(--bg3);
}

/* ---- TESTIMONIAL ---- */
.testimonial-section {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.testimonial-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 100px 2rem;
}

.quote-mark {
  font-family: var(--font-head);
  font-size: 8rem;
  color: var(--border-strong);
  line-height: 0.5;
  margin-bottom: 2rem;
  display: block;
}

.testimonial-text {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 300;
  font-style: italic;
  color: var(--cream);
  line-height: 1.55;
  margin-bottom: 2.5rem;
}

.testimonial-author {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.testimonial-author span {
  color: var(--gold);
}

/* ---- CTA SECTION ---- */
.cta-section {
  padding: 120px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(45, 106, 79, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section h2 {
  margin-bottom: 1.2rem;
}

.cta-section p {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 3rem;
  line-height: 1.8;
}

/* ---- FOOTER ---- */
.site-footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand .logo {
  font-size: 1.6rem;
  display: inline-block;
  margin-bottom: 1.2rem;
}

.footer-brand p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 280px;
}

.footer-col h5 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--emerald-light);
  margin-bottom: 1.5rem;
}

.footer-col ul li {
  margin-bottom: 0.75rem;
}

.footer-col ul li a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-col ul li a:hover { color: var(--cream); }

.footer-contact p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  line-height: 1.7;
}

.footer-contact strong {
  color: var(--cream-dim);
  font-weight: 400;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  font-size: 0.78rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-bottom-links a:hover { color: var(--cream); }

.footer-regulator {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  opacity: 0.7;
}

/* ---- PAGE HERO (inner pages) ---- */
.page-hero {
  min-height: 50vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.page-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(6,15,10,0.5) 0%, rgba(6,15,10,0.85) 100%);
}

.page-hero-content {
  position: relative;
  z-index: 2;
  padding-top: 100px;
}

/* ---- TEAM CARDS ---- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 60px;
}

.team-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  overflow: hidden;
  border-radius: var(--radius);
  transition: all var(--transition);
}

.team-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.team-photo {
  aspect-ratio: 3/4;
  background: var(--bg3);
  overflow: hidden;
  position: relative;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%);
  transition: filter var(--transition);
}

.team-card:hover .team-photo img { filter: grayscale(0%); }

.team-info {
  padding: 1.5rem;
}

.team-info h4 {
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
}

.team-role {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--emerald-light);
  margin-bottom: 0.8rem;
  display: block;
}

.team-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ---- VALUES GRID ---- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  margin-top: 60px;
}

.value-item {
  background: var(--bg2);
  padding: 3rem 2.5rem;
}

.value-item h4 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
}

.value-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ---- CERTIFICATIONS ---- */
.certs-section {
  background: var(--bg2);
  padding: 60px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.certs-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5rem;
  flex-wrap: wrap;
}

.cert-item {
  text-align: center;
  opacity: 0.6;
  transition: opacity var(--transition);
}

.cert-item:hover { opacity: 1; }

.cert-item h5 {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 0.3rem;
}

.cert-item p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ---- SERVICES PAGE ---- */
.service-detail {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}

.service-detail:last-child { border-bottom: none; }

.service-detail-inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: start;
}

.service-detail-inner.reverse {
  grid-template-columns: 1.5fr 1fr;
}

.service-detail-inner.reverse .service-text { order: -1; }

.service-number {
  font-family: var(--font-head);
  font-size: 5rem;
  color: var(--border);
  line-height: 1;
  margin-bottom: 1rem;
}

.service-text h3 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 1.2rem;
}

.service-text p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 1.5rem;
}

.service-list {
  list-style: none;
}

.service-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--cream-dim);
}

.service-list li::before {
  content: '—';
  color: var(--emerald-light);
  flex-shrink: 0;
  margin-top: 0.05rem;
}

/* ---- PORTFOLIO ---- */
.performance-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 40px;
}

.performance-table th {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.performance-table td {
  padding: 1.4rem 1.5rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--cream);
}

.performance-table tr:hover td { background: var(--bg2); }

.perf-positive { color: var(--emerald-light); font-weight: 500; }
.perf-negative { color: #e07070; font-weight: 500; }

.svg-chart {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-top: 40px;
}

.svg-chart text {
  font-family: var(--font-body);
}

/* ---- CASE STUDIES ---- */
.case-study {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  margin-bottom: 1.5rem;
  transition: all var(--transition);
}

.case-study:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

.case-study-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.case-badge {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--emerald-light);
  background: rgba(82, 183, 136, 0.1);
  border: 1px solid var(--border-strong);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
}

.case-return {
  font-family: var(--font-head);
  font-size: 2rem;
  color: var(--emerald-light);
}

/* ---- ACCESSO PAGE ---- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  margin-top: 60px;
}

.step-item {
  background: var(--bg2);
  padding: 3.5rem 2.5rem;
  position: relative;
}

.step-num {
  font-family: var(--font-head);
  font-size: 4rem;
  color: var(--border);
  line-height: 1;
  margin-bottom: 1.5rem;
  transition: color var(--transition);
}

.step-item:hover .step-num { color: rgba(82, 183, 136, 0.15); }

.step-item h4 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
}

.step-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ---- REQUIREMENTS ---- */
.requirements-box {
  background: var(--bg2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 3rem;
  margin-top: 60px;
}

.requirements-box h3 {
  font-size: 1.6rem;
  margin-bottom: 2rem;
}

.req-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.req-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.req-icon {
  width: 20px;
  height: 20px;
  color: var(--emerald-light);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.req-item h5 {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--cream);
  margin-bottom: 0.3rem;
}

.req-item p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---- FAQ ACCORDION ---- */
.faq-list {
  margin-top: 50px;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  text-align: left;
  color: var(--cream);
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 400;
  transition: color var(--transition);
}

.faq-question:hover { color: var(--emerald-light); }

.faq-icon {
  width: 20px;
  height: 20px;
  color: var(--emerald-light);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer-inner {
  padding-bottom: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.85;
}

.faq-item.open .faq-answer { max-height: 300px; }

/* ---- FORMS ---- */
.contact-form,
.apply-form {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.form-group.full { grid-column: 1 / -1; }

.form-group label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.92rem;
  transition: border-color var(--transition);
  outline: none;
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--emerald-light);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238a9e92' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}

.form-group textarea { min-height: 130px; resize: vertical; }

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }

.form-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 1rem;
}

.form-note a { color: var(--emerald-light); }

/* ---- CONTACT INFO ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.office-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  margin-bottom: 1.5rem;
}

.office-card h4 {
  font-size: 1.2rem;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.office-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald-light);
  display: inline-block;
}

.office-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 0.4rem;
}

.office-card strong {
  color: var(--cream-dim);
  font-weight: 400;
}

/* ---- IMAGE SECTIONS ---- */
.img-section {
  position: relative;
  overflow: hidden;
}

.img-full {
  width: 100%;
  aspect-ratio: 16/6;
  object-fit: cover;
  filter: brightness(0.7);
}

/* ---- ANIMATIONS ---- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ---- PRIVACY BADGE ---- */
.privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(45, 106, 79, 0.1);
  border: 1px solid var(--border);
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
}

.privacy-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald-light);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .pillars-grid { grid-template-columns: 1fr; }
  .pillar-item { border-right: none; border-bottom: 1px solid var(--border); }
  .pillar-item:last-child { border-bottom: none; }
  .service-detail-inner,
  .service-detail-inner.reverse { grid-template-columns: 1fr; gap: 40px; }
  .service-detail-inner.reverse .service-text { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  section { padding: 70px 0; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.8rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .req-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .certs-row { gap: 2.5rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .contact-form, .apply-form { padding: 2rem; }
  .pillar-item { padding: 40px 30px; }
  .cta-section { padding: 80px 0; }
}

@media (max-width: 480px) {
  .container { padding: 0 1.2rem; }
  .stats-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
}
