/* LT Data Consulting — shared styles for inner pages (case studies, services) */
:root {
  --navy: #1a1d24;
  --navy-mid: #262a33;
  --gold: #2f93c8;
  --gold-light: #5bb8e0;
  --cream: #f5f7f9;
  --cream-dark: #e9eef3;
  --text: #1a1d24;
  --text-light: #4a5568;
  --white: #ffffff;
  --border: rgba(47,147,200,0.3);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text);
  overflow-x: hidden;
}

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(26,29,36,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 5%;
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.nav-logo {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.4rem; font-weight: 600;
  color: var(--white); letter-spacing: 0.05em; text-decoration: none;
}
.nav-logo span { color: var(--gold); }
.nav-logo { display: flex; align-items: center; gap: 0.7rem; }
.nav-logo .brand { color: var(--white); }
.nav-mark {
  height: 34px; width: auto; display: block;
  background: var(--white); padding: 4px 6px; border-radius: 3px;
}
.footer-logo img { height: 64px; width: auto; display: block; }
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
  color: rgba(255,255,255,0.75);
  text-decoration: none; font-size: 0.82rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  transition: color 0.25s;
}
.nav-links a:hover { color: var(--gold); }
.lang-switch { display: flex; gap: 0.5rem; }
.lang-switch a, .lang-switch span {
  border: 1px solid var(--border);
  padding: 0.3rem 0.7rem;
  font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; color: rgba(255,255,255,0.5);
}
.lang-switch .active { border-color: var(--gold); color: var(--gold); }
.lang-switch a:hover { border-color: var(--gold); color: var(--gold); }

/* CASE STUDY HERO */
.cs-hero {
  background: var(--navy);
  padding: 140px 5% 70px;
}
.cs-inner { max-width: 900px; margin: 0 auto; }
.breadcrumb {
  font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.45); margin-bottom: 1.5rem;
}
.breadcrumb a { color: rgba(255,255,255,0.6); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }
.cs-tag {
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 1rem;
}
.cs-hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 400; line-height: 1.2;
  color: var(--white); margin-bottom: 1.25rem;
}
.cs-lead {
  font-size: 1.05rem; line-height: 1.75;
  color: rgba(255,255,255,0.65); max-width: 700px;
}
.cs-meta {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; margin-top: 3rem;
  border-top: 1px solid var(--border); padding-top: 2rem;
}
.cs-meta-label {
  font-size: 0.68rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.4rem;
}
.cs-meta-value { font-size: 0.9rem; color: rgba(255,255,255,0.8); line-height: 1.5; }

/* CASE STUDY BODY */
.cs-body { padding: 80px 5%; }
.cs-section { margin-bottom: 3.5rem; }
.cs-section h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.6rem; font-weight: 500; color: var(--navy);
  margin-bottom: 1rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.cs-section h2::before {
  content: ''; display: block; width: 24px; height: 2px; background: var(--gold);
}
.cs-section p {
  font-size: 1rem; line-height: 1.85; color: var(--text-light); margin-bottom: 1rem;
}
.cs-section ul { margin: 0 0 1rem 1.4rem; color: var(--text-light); }
.cs-section li { line-height: 1.75; margin-bottom: 0.5rem; }
.cs-section li strong, .cs-section p strong { color: var(--navy); font-weight: 500; }

.cs-figure {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.06);
  margin: 2rem 0;
}
.cs-figure img { display: block; width: auto; max-width: 100%; height: auto; margin: 0 auto; }
.cs-figure figcaption {
  font-size: 0.8rem; color: var(--text-light); padding: 0.75rem 1rem;
  border-top: 1px solid var(--cream-dark);
}

.cs-results {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 1.5rem;
}
.cs-result {
  background: var(--white); border-left: 3px solid var(--gold);
  padding: 1.5rem 1.25rem;
}
.cs-result-number {
  font-family: 'Montserrat', sans-serif; font-size: 1.8rem; font-weight: 400;
  color: var(--gold); margin-bottom: 0.3rem;
}
.cs-result-label { font-size: 0.85rem; color: var(--text-light); line-height: 1.5; }

.stack-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.stack-tag {
  font-size: 0.7rem; padding: 0.3rem 0.75rem;
  background: var(--cream-dark); color: var(--navy);
  letter-spacing: 0.08em; text-transform: uppercase;
}

.cs-note {
  font-size: 0.85rem; line-height: 1.7; font-style: italic;
  color: var(--text-light);
  border: 1px solid var(--border); padding: 1.25rem 1.5rem; margin-top: 2rem;
}

/* CTA */
.cs-cta { background: var(--navy); padding: 70px 5%; text-align: center; }
.cs-cta h2 {
  font-family: 'Montserrat', sans-serif; font-weight: 400;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem); color: var(--white); margin-bottom: 1rem;
}
.cs-cta p { color: rgba(255,255,255,0.6); line-height: 1.75; margin-bottom: 2rem; }
.btn {
  display: inline-block; background: var(--gold); color: var(--navy);
  text-decoration: none; padding: 0.9rem 2rem;
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  transition: background 0.25s;
}
.btn:hover { background: var(--gold-light); }
.btn-ghost {
  display: inline-block; border: 1px solid var(--border); color: rgba(255,255,255,0.75);
  text-decoration: none; padding: 0.9rem 2rem; margin-left: 1rem;
  font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* FOOTER */
footer {
  background: #121419; padding: 2rem 5%;
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--border);
}
.footer-logo { font-family: 'Montserrat', sans-serif; color: rgba(255,255,255,0.4); }
.footer-logo span { color: var(--gold); }
.footer-copy, .footer-vat { font-size: 0.72rem; color: rgba(255,255,255,0.25); }

@media (max-width: 900px) {
  .cs-meta, .cs-results { grid-template-columns: 1fr; }
  .btn-ghost { margin: 1rem 0 0; }
  footer { flex-direction: column; gap: 0.75rem; text-align: center; }
}

/* FLOW DIAGRAM */
.cs-flow {
  display: flex; flex-wrap: wrap; gap: 0; margin: 1.75rem 0; counter-reset: step;
}
.cs-step {
  flex: 1 1 160px; background: var(--white);
  border: 1px solid rgba(0,0,0,0.06); border-top: 3px solid var(--gold);
  padding: 1.1rem 1rem 1.2rem; position: relative; margin: 0 1.6rem 1rem 0;
}
.cs-step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: block; font-family: 'Montserrat', sans-serif; font-size: 0.75rem;
  color: var(--gold); letter-spacing: 0.1em; margin-bottom: 0.4rem;
}
.cs-step::after {
  content: '→'; position: absolute; right: -1.25rem; top: 50%;
  transform: translateY(-50%); color: var(--gold);
}
.cs-step:last-child::after { content: none; }
.cs-step strong { display: block; color: var(--navy); font-weight: 500; margin-bottom: 0.3rem; font-size: 0.95rem; }
.cs-step span { font-size: 0.84rem; color: var(--text-light); line-height: 1.55; display: block; }

/* FEATURE GRID */
.cs-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--cream-dark); border: 1px solid var(--cream-dark); margin: 1.5rem 0;
}
.cs-tile { background: var(--white); padding: 1.1rem 1.2rem; }
.cs-tile strong { display: block; color: var(--navy); font-weight: 500; font-size: 0.92rem; margin-bottom: 0.25rem; }
.cs-tile span { font-size: 0.82rem; color: var(--text-light); line-height: 1.55; }

/* FIGURES */
.cs-figure { max-width: 100%; width: fit-content; }
.cs-figure figcaption { max-width: 100%; }
.cs-figure-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin: 2rem 0; align-items: start; }
.cs-figure-row .cs-figure { margin: 0; }

/* MORE PROJECTS */
.cs-more { padding: 60px 5%; background: var(--cream-dark); }
.cs-more h2 { font-family: 'Montserrat', sans-serif; font-weight: 500; font-size: 1.3rem; color: var(--navy); margin-bottom: 1.25rem; }
.cs-more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.cs-more-grid a {
  background: var(--white); padding: 1.1rem 1.2rem; text-decoration: none;
  border-top: 3px solid var(--gold); color: var(--navy); font-size: 0.92rem; line-height: 1.45;
  transition: transform 0.2s, box-shadow 0.2s;
}
.cs-more-grid a:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(26,29,36,0.08); }
.cs-more-grid small { display: block; color: var(--gold); font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 0.35rem; }

@media (max-width: 900px) {
  .cs-grid, .cs-more-grid, .cs-figure-row { grid-template-columns: 1fr; }
  .cs-step { margin-right: 0; flex-basis: 100%; }
  .cs-step::after { content: '↓'; right: auto; left: 50%; top: auto; bottom: -1rem; transform: none; }
}

/* DEMO BADGE */
.cs-badge {
  display: inline-block; margin-bottom: 1.25rem;
  border: 1px solid var(--gold); color: var(--gold-light);
  padding: 0.35rem 0.8rem; font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase;
}

/* MOBILE MENU + BACK TO TOP */
.nav-right { display: flex; align-items: center; gap: 0.75rem; }
.nav-toggle {
  display: none; width: 40px; height: 40px; padding: 0;
  background: none; border: 1px solid var(--border); cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--white); transition: transform 0.25s, opacity 0.25s; }
nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 46px; height: 46px; border: none; border-radius: 50%;
  background: var(--gold); color: var(--navy); font-size: 1.3rem; line-height: 1;
  cursor: pointer; box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s, background 0.2s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--gold-light); }
@media (max-width: 900px) {
  nav { padding: 0 16px; backdrop-filter: none; background: var(--navy); }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none; position: fixed; top: 70px; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 0.5rem 0;
    background: var(--navy); border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 30px rgba(0,0,0,0.35);
  }
  nav.open .nav-links { display: flex; }
  .nav-links li { list-style: none; }
  .nav-links a { display: block; padding: 0.95rem 24px; font-size: 0.9rem; }
  body.it .nav-links a[data-lang="it"] { display: block; }
}
@media (max-width: 480px) {
  nav { padding: 0 12px; }
  .nav-logo { font-size: 0.86rem; gap: 0.4rem; letter-spacing: 0.01em; }
  .nav-mark { height: 26px; padding: 3px 4px; }
  .nav-right { gap: 0.5rem; }
  .lang-btn, .lang-switch a, .lang-switch span { padding: 0.25rem 0.45rem; }
  .lang-toggle, .lang-switch { gap: 0.3rem; }
  .nav-toggle { width: 36px; height: 36px; }
}
@media (max-width: 340px) {
  .nav-logo > span { display: none; }
}
