/* ─── ANTI-FLICKER (applicato da <head> su html prima del paint) ─────────── */
html.dark-pre body { background: #080b14; color: #e2e8f4; }

/* ─── RESET ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ─── DESIGN TOKENS ──────────────────────────────────────────────────────── */
:root {
  /* Light mode — corporate cool, niente calore */
  --bg:         #f7f9fc;
  --surface:    #ffffff;
  --surface-2:  #f0f4f8;
  --teal:       #0b6e61;
  --teal-dark:  #085249;
  --teal-light: #e8f4f2;
  --label:      #0b6e61;   /* sostituisce orange su tutti i section-label */
  --text:       #0f172a;
  --muted:      #64748b;
  --border:     #dde3ed;
  --nav-h:      64px;
  --serif:      "DM Serif Display", serif;
  --sans:       "DM Sans", sans-serif;
  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  20px;
}

/* ─── DARK MODE TOKEN OVERRIDES ───────────────────────────────────────────── */
body.dark {
  --bg:         #080b14;
  --surface:    #0e1117;
  --surface-2:  #131720;
  --teal:       #0ccfb2;
  --teal-dark:  #09a88e;
  --teal-light: rgba(12, 207, 178, .1);
  --label:      #0ccfb2;
  --text:       #e2e8f4;
  --muted:      #64748b;
  --border:     #1c2136;
}

/* ─── BASE ───────────────────────────────────────────────────────────────── */
html  { scroll-behavior: smooth; }
body  { font-family: var(--sans); background: var(--bg); color: var(--text); min-height: 100vh; overflow-x: hidden; transition: background .25s, color .25s; }
body.no-scroll { overflow: hidden; }
a   { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul  { list-style: none; }

/* ─── CUSTOM CURSOR ──────────────────────────────────────────────────────── */
#cursor { position: fixed; width: 14px; height: 14px; background: var(--teal); border-radius: 50%; pointer-events: none; z-index: 9999; transform: translate(-50%, -50%); transition: transform .12s, opacity .2s; opacity: 0; mix-blend-mode: screen; }
body:hover #cursor { opacity: 1; }
@media (pointer: coarse) { #cursor { display: none !important; } }

/* ─── PROGRESS BAR ───────────────────────────────────────────────────────── */
#progress-bar { position: fixed; top: 0; left: 0; height: 2px; background: var(--teal); z-index: 10000; width: 0%; transition: width .1s; }

/* ─── NAV ────────────────────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h);
  background: rgba(247, 249, 252, .88);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  z-index: 900; display: flex; align-items: center;
  transition: background .25s, border-color .25s;
}
body.dark nav { background: rgba(8, 11, 20, .9); border-bottom-color: var(--border); }
.nav-inner { max-width: 1200px; margin: 0 auto; width: 100%; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; }
.nav-logo  { display: flex; align-items: center; }
.nav-logo img { height: 26px; width: auto; display: block; }
body.dark .nav-logo img { filter: brightness(0) invert(1); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { font-size: .85rem; font-weight: 500; padding: 6px 12px; border-radius: var(--radius-sm); transition: background .18s, color .18s; color: var(--muted); letter-spacing: .01em; }
.nav-links a:hover, .nav-links a.active { background: var(--teal-light); color: var(--teal); }
.nav-cta { background: var(--teal) !important; color: #fff !important; border-radius: 6px !important; padding: 8px 16px !important; font-weight: 600 !important; letter-spacing: .02em !important; }
.nav-cta:hover { background: var(--teal-dark) !important; transform: none; }

/* ─── HAMBURGER ──────────────────────────────────────────────────────────── */
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s, opacity .2s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── MOBILE MENU ────────────────────────────────────────────────────────── */
.mobile-menu { display: none; position: fixed; top: var(--nav-h); left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--border); padding: 16px 24px 24px; z-index: 899; flex-direction: column; gap: 4px; }
.mobile-menu a { padding: 10px 12px; border-radius: var(--radius-sm); font-weight: 500; color: var(--text); transition: background .18s; }
.mobile-menu a:hover { background: var(--teal-light); color: var(--teal); }
.mobile-menu.open { display: flex; }

/* ─── LAYOUT ─────────────────────────────────────────────────────────────── */
main { padding-top: var(--nav-h); }
.page { display: none; animation: fadeUp .4s ease both; }
.page.active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.section    { padding: 88px 0; }
.container  { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ─── TYPOGRAPHY SYSTEM ──────────────────────────────────────────────────── */
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .7rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--label); margin-bottom: 14px;
}
.section-label::before { content: ""; display: block; width: 20px; height: 1.5px; background: var(--label); border-radius: 2px; }
.section-title { font-family: var(--serif); font-size: clamp(1.9rem, 3.6vw, 2.8rem); line-height: 1.08; letter-spacing: -.03em; margin-bottom: 18px; }
.section-sub   { color: var(--muted); max-width: 560px; line-height: 1.7; font-size: .96rem; }

/* ─── BUTTONS ────────────────────────────────────────────────────────────── */
.btn-teal {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--teal); color: #fff;
  padding: 12px 24px; border-radius: 6px;
  font-weight: 600; font-size: .9rem; border: none; cursor: pointer;
  transition: background .18s, box-shadow .18s, transform .15s; text-decoration: none;
}
.btn-teal:hover { background: var(--teal-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(12, 207, 178, .22); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; color: var(--teal);
  padding: 12px 24px; border-radius: 6px;
  font-weight: 600; font-size: .9rem; border: 1.5px solid var(--teal); cursor: pointer;
  transition: all .18s; text-decoration: none;
}
.btn-outline:hover { background: var(--teal); color: #fff; }
.btn-outline-dark {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; color: var(--text);
  padding: 12px 24px; border-radius: 6px;
  font-weight: 600; font-size: .9rem; border: 1.5px solid var(--border); cursor: pointer;
  transition: all .18s; text-decoration: none;
}
.btn-outline-dark:hover { background: var(--teal); color: #fff; border-color: var(--teal); }
.btn-insta {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #fff; padding: 12px 24px; border-radius: 6px;
  font-weight: 600; font-size: .9rem; border: none; cursor: pointer;
  transition: opacity .18s, transform .18s; text-decoration: none;
}
.btn-insta:hover { opacity: .88; transform: translateY(-1px); }

/* ─── REVEAL ANIMATIONS ──────────────────────────────────────────────────── */
.reveal, .reveal-left, .reveal-right { opacity: 0; transition: opacity .65s, transform .65s; }
.reveal       { transform: translateY(28px); }
.reveal-left  { transform: translateX(-28px); }
.reveal-right { transform: translateX(28px); }
.reveal.visible, .reveal-left.visible, .reveal-right.visible { opacity: 1; transform: none; }

/* ─── HERO ───────────────────────────────────────────────────────────────── */
.home-hero-section { min-height: calc(100vh - var(--nav-h)); display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 64px 0 96px; }
.hero-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .7rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--teal);
  border: 1px solid var(--teal); border-radius: 4px;
  padding: 5px 10px; margin-bottom: 22px;
}
.hero-label::before { content: "//"; font-family: var(--sans); opacity: .5; font-weight: 400; }
.home-headline { font-family: var(--serif); font-size: clamp(2.4rem, 4.8vw, 3.9rem); line-height: 1.06; margin-bottom: 22px; letter-spacing: -.04em; }
.highlight     { color: var(--teal); font-style: italic; }
.home-sub      { color: var(--muted); max-width: 440px; line-height: 1.72; font-size: .98rem; margin-bottom: 34px; }
.home-ctas     { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-img-wrap {
  aspect-ratio: 4/5; border-radius: var(--radius-lg); overflow: hidden; max-height: 580px;
  background: linear-gradient(145deg, #0e1117 0%, #131a2a 50%, #0e1117 100%);
  display: flex; align-items: center; justify-content: center; position: relative;
  border: 1px solid var(--border);
  box-shadow: 0 0 0 1px rgba(12, 207, 178, .06), 0 32px 80px rgba(0, 0, 0, .28);
}
body.dark .hero-img-wrap { box-shadow: 0 0 0 1px rgba(12, 207, 178, .12), 0 32px 80px rgba(0, 0, 0, .48); }
.hero-img-wrap img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.hero-img-placeholder { color: rgba(255,255,255,.4); font-size: 5rem; font-family: var(--serif); z-index: 1; position: relative; }

/* ─── TRUSTED BY ─────────────────────────────────────────────────────────── */
.trusted-by { margin-top: 40px; }
.trusted-by-label {
  display: block; font-size: .65rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 12px;
}
.trusted-by-logos {
  display: flex; align-items: center; gap: 0; flex-wrap: wrap;
}
.tb-logo {
  font-size: .78rem; font-weight: 700; letter-spacing: .06em;
  color: var(--muted); opacity: .55;
  transition: opacity .2s;
  padding: 0 2px;
}
.tb-logo:hover { opacity: 1; color: var(--text); }
.tb-sep {
  display: inline-block; width: 1px; height: 12px;
  background: var(--border); margin: 0 14px;
  flex-shrink: 0;
}

/* ─── METRIC (static, non-animated) ─────────────────────────────────────── */
.metric {
  font-family: var(--serif); font-size: clamp(2.4rem, 4vw, 3.6rem);
  color: var(--teal); display: block; line-height: 1;
}
.metric small { font-family: var(--sans); font-size: 1.1rem; font-weight: 400; opacity: .75; margin-left: 2px; }

/* ─── METHOD CARDS ───────────────────────────────────────────────────────── */
.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 52px; }
.method-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 32px 26px;
  transition: transform .22s, box-shadow .22s, border-color .22s;
}
.method-card:hover { transform: translateY(-4px); border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal-light), 0 12px 32px rgba(0,0,0,.12); }
.method-icon  { font-size: 1.6rem; margin-bottom: 18px; }
.method-card h3 { font-family: var(--serif); font-size: 1.15rem; margin-bottom: 10px; line-height: 1.25; }
.method-card p  { color: var(--muted); font-size: .88rem; line-height: 1.68; }

/* ─── HOME STRIP ─────────────────────────────────────────────────────────── */
.home-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 40px; margin-bottom: 32px; }
.strip-card { aspect-ratio: 4/3; border-radius: var(--radius-md); overflow: hidden; cursor: pointer; position: relative; transition: transform .22s, box-shadow .22s; border: 1px solid var(--border); }
.strip-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,.24); }
.strip-card-bg { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 2.6rem; }
.strip-card-label { position: absolute; bottom: 0; left: 0; right: 0; padding: 16px 14px 14px; background: linear-gradient(transparent, rgba(0,0,0,.82)); color: #fff; font-size: .8rem; font-weight: 600; transform: translateY(100%); transition: transform .22s; }
.strip-card:hover .strip-card-label { transform: none; }
.strip-card-cat { font-size: .68rem; opacity: .65; font-weight: 400; display: block; margin-bottom: 2px; }
.thumb-dark   { background: linear-gradient(145deg, #0a0d18, #14192e); }
.thumb-medium { background: linear-gradient(145deg, #12151e, #1e2333); }
.thumb-light  { background: linear-gradient(145deg, #1c2035, #252a40); }
.thumb-teal   { background: linear-gradient(145deg, #071a17, #0d3028); }
.strip-center { text-align: center; margin-top: 8px; }

/* ─── CTA BAND ───────────────────────────────────────────────────────────── */
.cta-band {
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 0; text-align: center;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(12, 207, 178, .04) 0%, transparent 60%);
  pointer-events: none;
}
body.dark .cta-band { background: #0a0e1a; border-color: var(--border); }
.cta-band h2 { font-family: var(--serif); font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 12px; }
.cta-band p  { color: var(--muted); margin-bottom: 32px; font-size: .97rem; }
.btn-white {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--teal); color: #fff;
  padding: 13px 28px; border-radius: 6px;
  font-weight: 700; font-size: .95rem; border: none; cursor: pointer;
  transition: background .18s, box-shadow .18s; text-decoration: none;
}
.btn-white:hover { background: var(--teal-dark); box-shadow: 0 8px 24px rgba(12, 207, 178, .3); }

/* ─── COUNTER STRIP ──────────────────────────────────────────────────────── */
.counter-strip { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 80px 0; }
body.dark .counter-strip { background: #090c17; }
.counter-grid  { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.counter-item .counter { font-family: var(--serif); font-size: clamp(2.4rem, 4vw, 3.6rem); color: var(--teal); display: block; line-height: 1; }
.counter-item p { color: var(--muted); font-size: .82rem; margin-top: 8px; letter-spacing: .04em; text-transform: uppercase; font-weight: 600; }

/* ─── FOOTER ─────────────────────────────────────────────────────────────── */
footer { background: #04060d; color: rgba(226, 232, 244, .65); padding: 64px 0 36px; }
.footer-grid  { display: grid; grid-template-columns: 1.8fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand .logo { margin-bottom: 14px; }
.footer-brand .logo img { height: 28px; width: auto; display: block; filter: brightness(0) invert(1); opacity: .7; }
.footer-brand p { font-size: .85rem; line-height: 1.65; max-width: 260px; }
.footer-col h4 { font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(226,232,244,.3); margin-bottom: 16px; }
.footer-col a  { display: block; font-size: .86rem; margin-bottom: 10px; transition: color .18s; }
.footer-col a:hover { color: var(--teal); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.07); padding-top: 28px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.footer-bottom p { font-size: .78rem; }

/* ─── BIO / CHI SONO ─────────────────────────────────────────────────────── */
.bio-grid     { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.bio-photo    { border-radius: var(--radius-md); overflow: hidden; margin-bottom: 32px; position: relative; border: 1px solid var(--border); box-shadow: 0 2px 4px rgba(0,0,0,.08), 0 16px 48px rgba(0,0,0,.14); }
.bio-photo img { width: 100%; height: auto; object-fit: contain; display: block; transition: transform .5s ease; }
.bio-photo:hover img { transform: scale(1.02); }
.bio-text h2  { font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 20px; line-height: 1.1; letter-spacing: -.03em; }
.bio-text p   { color: var(--muted); line-height: 1.72; margin-bottom: 16px; font-size: .94rem; }
.bio-values   { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 36px; }
.bio-val {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 2px solid var(--teal); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px; transition: box-shadow .2s, transform .2s;
}
.bio-val:hover { box-shadow: 0 4px 20px rgba(12, 207, 178, .08); transform: translateX(3px); }
.bio-val strong { font-size: .67rem; font-weight: 700; color: var(--teal); display: block; margin-bottom: 5px; text-transform: uppercase; letter-spacing: .1em; }
.bio-val span   { font-size: .85rem; color: var(--muted); line-height: 1.45; }

/* ─── TIMELINE ───────────────────────────────────────────────────────────── */
.timeline       { position: relative; padding-left: 32px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 0; width: 1px; background: linear-gradient(to bottom, var(--teal), transparent); }
.tl-item        { position: relative; margin-bottom: 40px; }
.tl-item:last-child { margin-bottom: 0; }
.tl-dot         { position: absolute; left: -28px; top: 5px; width: 14px; height: 14px; background: var(--bg); border: 2px solid var(--teal); border-radius: 50%; box-shadow: 0 0 0 3px rgba(12, 207, 178, .1); }
.tl-year        { display: inline-block; font-size: .68rem; font-weight: 700; color: var(--teal); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 8px; font-family: var(--sans); }
.tl-title       { font-weight: 600; font-size: .97rem; margin-bottom: 6px; color: var(--text); line-height: 1.3; }
.tl-desc        { color: var(--muted); font-size: .86rem; line-height: 1.65; }

/* ─── METODO PHASES ──────────────────────────────────────────────────────── */
.metodo-phases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 52px; }
.phase-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 28px 22px; text-align: center;
  transition: transform .22s, border-color .22s, box-shadow .22s;
}
.phase-card:hover { transform: translateY(-4px); border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal-light), 0 8px 24px rgba(0,0,0,.1); }
.phase-num  { font-family: var(--serif); font-size: 2.6rem; color: var(--teal); opacity: .15; margin-bottom: 14px; line-height: 1; }
.phase-card h4 { font-size: .97rem; font-weight: 600; margin-bottom: 9px; }
.phase-card p  { font-size: .85rem; color: var(--muted); line-height: 1.65; }

/* ─── SERVICES ───────────────────────────────────────────────────────────── */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.service-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 36px 28px;
  transition: transform .22s, border-color .22s, box-shadow .22s;
  position: relative;
}
.service-card:hover { transform: translateY(-5px); border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal-light), 0 20px 56px rgba(0,0,0,.14); }
.service-icon { font-size: 2rem; margin-bottom: 20px; }
.service-card h3 { font-family: var(--serif); font-size: 1.2rem; margin-bottom: 10px; line-height: 1.25; }
.service-card p  { color: var(--muted); font-size: .88rem; line-height: 1.68; margin-bottom: 18px; }
.service-list li { font-size: .84rem; color: var(--muted); padding: 5px 0; padding-left: 18px; position: relative; line-height: 1.5; }
.service-list li::before { content: "→"; position: absolute; left: 0; color: var(--teal); font-weight: 600; }

/* ─── SERVICES PRIMARY ───────────────────────────────────────────────────── */
.services-primary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }

.service-card-primary {
  border-color: rgba(12, 207, 178, .28) !important;
  box-shadow: 0 0 0 1px rgba(12, 207, 178, .08), 0 4px 24px rgba(0, 0, 0, .12);
}
.service-card-primary:hover {
  border-color: var(--teal) !important;
  box-shadow: 0 0 0 1px rgba(12, 207, 178, .2), 0 24px 72px rgba(12, 207, 178, .1), 0 2px 8px rgba(0,0,0,.2) !important;
  transform: translateY(-6px) !important;
}
.service-card-tag {
  font-size: .65rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 18px; font-family: var(--sans);
  display: flex; align-items: center; gap: 6px;
}
.service-card-tag::before { content: ""; display: block; width: 16px; height: 1px; background: var(--teal); opacity: .6; }
.service-roi {
  margin-top: 20px; padding: 10px 14px;
  background: var(--teal-light); border-left: 2px solid var(--teal);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: .78rem; font-weight: 600; color: var(--teal); line-height: 1.4;
}

/* ─── SERVICES BRIDGE ────────────────────────────────────────────────────── */
.services-bridge {
  display: flex; align-items: center; gap: 20px;
  margin: 56px 0 0; padding: 28px 0;
  border-top: 1px solid var(--border);
}
.services-bridge-line { flex: 1; height: 1px; background: var(--border); }
.services-bridge p {
  font-size: .9rem; color: var(--muted); font-style: italic;
  text-align: center; max-width: 460px; line-height: 1.6; white-space: nowrap;
}
@media (max-width: 700px) { .services-bridge p { white-space: normal; } }

/* ─── SERVICES SECONDARY ─────────────────────────────────────────────────── */
.secondary-section-label {
  font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 18px; display: block;
}
.services-secondary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.service-card-secondary {
  background: transparent; border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 22px 20px;
  transition: border-color .22s, background .22s, transform .22s;
}
.service-card-secondary:hover { border-color: var(--teal); background: var(--teal-light); transform: translateY(-3px); }
.scs-icon {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
  color: var(--muted); margin-bottom: 14px;
  transition: border-color .22s, color .22s;
}
.service-card-secondary:hover .scs-icon { border-color: var(--teal); color: var(--teal); }
.service-card-secondary h4 { font-size: .9rem; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.service-card-secondary p  { font-size: .8rem; color: var(--muted); line-height: 1.6; }

/* ─── HOW STEPS ──────────────────────────────────────────────────────────── */
.how-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 52px; counter-reset: steps; }
.how-step {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 28px 22px; counter-increment: steps;
  transition: transform .22s, border-color .22s;
}
.how-step:hover { transform: translateY(-4px); border-color: var(--teal); }
.how-step::before { content: counter(steps, decimal-leading-zero); font-family: var(--sans); font-size: .75rem; font-weight: 700; color: var(--teal); letter-spacing: .1em; display: block; margin-bottom: 14px; opacity: .7; }
.how-step h4 { font-size: .97rem; font-weight: 600; margin-bottom: 8px; }
.how-step p  { font-size: .85rem; color: var(--muted); line-height: 1.65; }

/* ─── FAQ ────────────────────────────────────────────────────────────────── */
.faq-list { max-width: 760px; margin: 44px auto 0; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q    { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; cursor: pointer; font-weight: 500; font-size: .95rem; gap: 12px; transition: color .18s; }
.faq-q:hover { color: var(--teal); }
.faq-q svg { flex-shrink: 0; transition: transform .3s; color: var(--teal); }
.faq-q.open svg { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a.open { max-height: 320px; }
.faq-a p { padding: 0 0 20px; color: var(--muted); font-size: .9rem; line-height: 1.75; }

/* ─── WORKS ──────────────────────────────────────────────────────────────── */
.works-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 36px; }
.filter-btn {
  padding: 7px 16px; border-radius: 4px; font-size: .8rem; font-weight: 600;
  border: 1px solid var(--border); background: transparent; cursor: pointer;
  transition: all .18s; color: var(--muted); letter-spacing: .03em;
}
.filter-btn:hover, .filter-btn.active { background: var(--teal); border-color: var(--teal); color: #fff; }
.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.work-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); overflow: hidden;
  transition: transform .22s, border-color .22s, box-shadow .22s; cursor: pointer;
}
.work-card:hover { transform: translateY(-4px); border-color: var(--teal); box-shadow: 0 12px 40px rgba(0,0,0,.15); }
.work-thumb     { aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; font-size: 3rem; position: relative; overflow: hidden; }
.work-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.work-body      { padding: 24px; }
.work-cat       { font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--label); margin-bottom: 8px; }
.work-title     { font-family: var(--serif); font-size: 1.12rem; margin-bottom: 6px; line-height: 1.2; }
.work-sub       { font-size: .86rem; color: var(--muted); margin-bottom: 12px; }
.work-tags      { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.tag            { font-size: .68rem; font-weight: 600; padding: 3px 9px; border-radius: 3px; background: var(--teal-light); color: var(--teal); letter-spacing: .04em; }
.work-results li { font-size: .8rem; color: var(--muted); padding: 2px 0; padding-left: 14px; position: relative; }
.work-results li::before { content: "↑"; position: absolute; left: 0; color: var(--teal); font-weight: 700; }
.work-case-link { display: inline-flex; align-items: center; gap: 5px; font-size: .8rem; font-weight: 600; color: var(--teal); margin-top: 12px; transition: gap .18s; cursor: pointer; }
.work-case-link:hover { gap: 9px; }

/* ─── DETAIL PAGE ────────────────────────────────────────────────────────── */
.detail-back { display: inline-flex; align-items: center; gap: 8px; font-size: .86rem; font-weight: 600; color: var(--muted); padding: 8px 0; margin-bottom: 28px; cursor: pointer; transition: color .18s; background: none; border: none; font-family: var(--sans); }
.detail-back:hover { color: var(--teal); }
.detail-header { max-width: 700px; margin-bottom: 48px; }
.detail-cat    { font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--label); margin-bottom: 10px; }
.detail-title  { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3rem); line-height: 1.08; margin-bottom: 8px; letter-spacing: -.03em; }
.detail-sub    { font-size: 1.05rem; color: var(--muted); margin-bottom: 18px; }
.detail-tags   { display: flex; gap: 8px; flex-wrap: wrap; }
.detail-gallery { margin-bottom: 48px; }
.media-tabs  { display: flex; gap: 8px; margin-bottom: 14px; }
.media-tab   { padding: 7px 20px; border-radius: 5px; border: 1.5px solid var(--border); background: transparent; font-family: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; color: var(--muted); transition: all .18s; }
.media-tab.active { border-color: var(--teal); background: var(--teal); color: #fff; }
.media-tab:hover:not(.active) { border-color: var(--teal); color: var(--teal); }
.detail-viewer { position: relative; margin-bottom: 14px; }
.detail-main-img { border-radius: var(--radius-md); overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 5rem; }
.detail-main-img img { max-width: 100%; max-height: 62vh; width: auto; height: auto; object-fit: contain; display: block; border-radius: var(--radius-sm); }
.detail-main-video { max-width: 100%; max-height: 62vh; width: 100%; display: block; background: #000; outline: none; border-radius: var(--radius-sm); }
.media-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: none; background: rgba(0,0,0,.5); color: #fff; font-size: 1.4rem; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 2; transition: background .18s; line-height: 1; padding: 0; }
.media-arrow:hover { background: rgba(0,0,0,.8); }
.media-arrow.left  { left: 10px; }
.media-arrow.right { right: 10px; }
.media-arrow:disabled { opacity: .25; cursor: default; }
.media-counter { text-align: center; font-size: .8rem; color: var(--muted); margin-bottom: 10px; }
.detail-thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.detail-thumb  { width: 90px; aspect-ratio: 4/3; border-radius: var(--radius-sm); overflow: hidden; border: 1.5px solid var(--border); cursor: pointer; transition: border-color .18s; background: var(--teal-light); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; flex-shrink: 0; }
.detail-thumb:hover, .detail-thumb.active { border-color: var(--teal); box-shadow: 0 0 0 2px var(--teal-light); }
.detail-thumb img { width: 100%; height: 100%; object-fit: cover; }
.detail-thumb-video { background: #111; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; width: 100%; height: 100%; border-radius: 6px; }
.detail-content { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start; }
.detail-section { margin-bottom: 38px; }
.detail-section-label { font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--label); margin-bottom: 10px; display: block; }
.detail-section p { color: var(--muted); line-height: 1.78; font-size: .94rem; }
.detail-sidebar { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 28px; position: sticky; top: calc(var(--nav-h) + 20px); }
.detail-sidebar h4 { font-family: var(--serif); font-size: 1.05rem; margin-bottom: 18px; }
.sidebar-results li { padding: 9px 0; border-bottom: 1px solid var(--border); font-size: .86rem; color: var(--muted); display: flex; align-items: start; gap: 8px; }
.sidebar-results li:last-child { border: none; }
.sidebar-results li::before { content: "✓"; color: var(--teal); font-weight: 700; flex-shrink: 0; }
.sidebar-links { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.detail-nav { display: flex; justify-content: space-between; gap: 20px; padding: 40px 0; border-top: 1px solid var(--border); margin-top: 20px; }
.detail-nav-item { flex: 1; max-width: 280px; }
.detail-nav-item.next { text-align: right; margin-left: auto; }
.detail-nav-label { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 4px; }
.detail-nav-title { font-size: .94rem; font-weight: 600; color: var(--teal); cursor: pointer; transition: color .18s; }
.detail-nav-title:hover { color: var(--teal-dark); }

/* ─── CONTACT ────────────────────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; margin-top: 44px; }
.contact-info h3 { font-family: var(--serif); font-size: 1.3rem; margin-bottom: 10px; }
.contact-info p  { color: var(--muted); font-size: .9rem; line-height: 1.72; margin-bottom: 24px; }
.contact-items { display: flex; flex-direction: column; gap: 14px; }
.contact-item  { display: flex; align-items: center; gap: 12px; font-size: .9rem; }
.contact-item-icon { width: 40px; height: 40px; background: var(--teal-light); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; border: 1px solid var(--border); }
.contact-item a { color: var(--teal); font-weight: 500; }
.contact-item a:hover { text-decoration: underline; }
.contact-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px; }
.form-group { margin-bottom: 20px; }
.form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group label { display: block; font-size: .8rem; font-weight: 600; margin-bottom: 7px; color: var(--text); letter-spacing: .03em; text-transform: uppercase; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-family: var(--sans); font-size: .9rem; background: var(--bg); color: var(--text); transition: border-color .18s, box-shadow .18s; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-light); }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-success { display: none; background: var(--teal-light); border: 1px solid var(--teal); border-radius: var(--radius-sm); padding: 14px 16px; color: var(--teal); font-size: .9rem; margin-top: 12px; font-weight: 600; }

/* ─── PRIVACY ────────────────────────────────────────────────────────────── */
.privacy-content { max-width: 740px; margin: 0 auto; }
.privacy-content h2 { font-family: var(--serif); font-size: 1.45rem; margin: 36px 0 10px; }
.privacy-content p  { color: var(--muted); line-height: 1.78; font-size: .91rem; margin-bottom: 12px; }

/* ─── THEME TOGGLE ───────────────────────────────────────────────────────── */
.theme-toggle { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: none; border: 1px solid var(--border); cursor: pointer; color: var(--muted); transition: background .18s, color .18s, border-color .18s; margin-right: 6px; flex-shrink: 0; }
.theme-toggle:hover { background: var(--teal-light); color: var(--teal); border-color: var(--teal); }
.theme-toggle .icon-moon { display: none; }
.theme-toggle .icon-sun  { display: block; }
body.dark .theme-toggle .icon-moon { display: block; }
body.dark .theme-toggle .icon-sun  { display: none; }

/* ─── DARK MODE SURFACE OVERRIDES ────────────────────────────────────────── */
body.dark .mobile-menu { background: var(--surface); border-bottom-color: var(--border); }
body.dark .bio-val,
body.dark .method-card,
body.dark .phase-card,
body.dark .how-step,
body.dark .service-card,
body.dark .work-card,
body.dark .contact-form,
body.dark .detail-sidebar,
body.dark .detail-thumb { background: var(--surface); border-color: var(--border); }
body.dark .service-card-secondary { background: transparent; border-color: var(--border); }
body.dark .service-card-secondary:hover { background: var(--teal-light); border-color: var(--teal); }
body.dark .media-tab { border-color: var(--border); color: var(--muted); }
body.dark .media-tab:hover:not(.active) { border-color: var(--teal); color: var(--teal); }
body.dark .bio-val { border-left-color: var(--teal); }
body.dark .faq-item { border-bottom-color: var(--border); }
body.dark .form-group input,
body.dark .form-group textarea,
body.dark .form-group select { background: var(--bg); border-color: var(--border); color: var(--text); }
body.dark .form-group input::placeholder,
body.dark .form-group textarea::placeholder { color: #3a4060; }
body.dark .tl-dot { border-color: var(--teal); background: var(--bg); box-shadow: 0 0 0 3px rgba(12,207,178,.08); }
body.dark .btn-outline-dark { color: var(--text); border-color: var(--border); }
body.dark .btn-outline-dark:hover { background: var(--teal); border-color: var(--teal); color: #fff; }
body.dark .work-thumb { filter: brightness(.88); }
body.dark .strip-card { border-color: var(--border); }
body.dark .counter-strip { background: #060910; }
body.dark footer { background: #020408; color: rgba(226,232,244,.5); }
body.dark .footer-bottom { border-top-color: rgba(255,255,255,.06); }

/* ─── RESPONSIVE ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .home-hero-section { grid-template-columns: 1fr; gap: 40px; padding: 40px 0 60px; text-align: center; }
  .hero-img-wrap     { max-height: 380px; aspect-ratio: 4/3; margin: 0 auto; max-width: 380px; }
  .home-ctas         { justify-content: center; }
  .home-sub          { margin: 0 auto 32px; }
  .method-grid, .perche-grid { grid-template-columns: 1fr 1fr; }
  .home-strip        { grid-template-columns: repeat(2, 1fr); }
  .services-primary, .bio-grid, .contact-grid { grid-template-columns: 1fr; }
  .services-secondary { grid-template-columns: repeat(2, 1fr); }
  .metodo-phases, .how-steps { grid-template-columns: repeat(2, 1fr); }
  .counter-grid      { grid-template-columns: repeat(2, 1fr); }
  .works-grid        { grid-template-columns: repeat(2, 1fr); }
  .detail-content    { grid-template-columns: 1fr; }
  .footer-grid       { grid-template-columns: 1fr 1fr; }
  .nav-links         { display: none; }
  .hamburger         { display: flex; }
}
@media (max-width: 600px) {
  .method-grid, .metodo-phases, .how-steps, .services-primary { grid-template-columns: 1fr; }
  .services-secondary { grid-template-columns: 1fr 1fr; }
  .home-strip        { grid-template-columns: 1fr 1fr; }
  .works-grid, .footer-grid { grid-template-columns: 1fr; }
  .form-row          { grid-template-columns: 1fr; }
  .detail-nav        { flex-direction: column; }
  .bio-values        { grid-template-columns: 1fr; }
  .detail-content    { grid-template-columns: 1fr; }
  .section           { padding: 64px 0; }
}
