/* =========================================================
   Stara Tech S.r.l. — foglio di stile del sito
   Colori sociali: rosso Stara Tech, antracite, arancio,
   sfumatura Group LTT (blu notte → ambra → acquamarina)
   ========================================================= */

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/outfit-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/outfit-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --red: #E4002B;
  --red-dark: #B5001F;
  --orange: #F3953F;
  --amber: #F9B13E;
  --navy: #1F3970;
  --teal: #A6CFD5;
  --ink: #1B1B1D;
  --charcoal: #2B2B2E;
  --graphite: #3A3A3E;
  --text: #2C2C2C;
  --muted: #66666B;
  --muted-on-dark: #B9B9BE;
  --paper: #F5F4F1;
  --line: #E4E2DD;
  --white: #FFFFFF;
  --ltt-gradient: linear-gradient(90deg, #1F3970 0%, #8A7357 22%, #F9B13E 45%, #D5BD7D 62%, #A6CFD5 100%);
  --ltt-gradient-v: linear-gradient(180deg, #1F3970 0%, #8A7357 28%, #F9B13E 55%, #D5BD7D 75%, #A6CFD5 100%);

  --font: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius: 4px;
  --header-h: 84px;
  --shadow: 0 18px 40px -22px rgba(20, 20, 25, .45);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(16px, 0.35vw + 15px, 18px);
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.015em; color: var(--ink); }
h1 { font-size: clamp(2.3rem, 4.6vw + .6rem, 4.6rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.8rem, 2.4vw + .8rem, 3rem); }
h3 { font-size: clamp(1.2rem, .6vw + 1rem, 1.5rem); }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--red); color: #fff; padding: 10px 16px; border-radius: var(--radius); text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: saturate(160%) blur(8px);
  -webkit-backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(0,0,0,.4); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand img { width: 58px; height: 56px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 700; font-size: 1.15rem; letter-spacing: .01em; }
.brand-sub { font-size: .72rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }

.main-nav { margin-left: auto; display: flex; align-items: center; }
.main-nav ul { list-style: none; display: flex; gap: clamp(18px, 2.4vw, 38px); align-items: center; }
.main-nav a {
  text-decoration: none; font-weight: 500; font-size: 1rem; color: var(--ink);
  position: relative; padding: 6px 0;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--red);
  transition: right .3s var(--ease);
}
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { right: 0; }
.lang-switch { display: flex; gap: 10px; font-size: .9rem; font-weight: 500; margin-left: clamp(8px, 2vw, 28px); }
.lang-switch a { text-decoration: none; color: var(--muted); padding: 4px 2px; }
.lang-switch a[aria-current="true"] { color: var(--red); }
.lang-switch a:hover { color: var(--ink); }

.nav-toggle {
  display: none; margin-left: auto; width: 46px; height: 46px; border: 0; background: transparent; cursor: pointer;
  position: relative; border-radius: var(--radius);
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  position: absolute; left: 11px; width: 24px; height: 2px; background: var(--ink); content: ""; transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle span { top: 22px; }
.nav-toggle span::before { top: -8px; left: 0; }
.nav-toggle span::after { top: 8px; left: 0; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Buttons & small UI ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; font-weight: 500; font-size: 1rem; text-decoration: none;
  border: 1.5px solid transparent; transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease);
  cursor: pointer;
}
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--orange);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 34px; height: 3px; background: var(--ltt-gradient); border-radius: 2px; }
.lead { font-size: clamp(1.1rem, .5vw + 1rem, 1.35rem); font-weight: 300; line-height: 1.55; color: var(--graphite); }
.text-link {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--red); text-decoration: none;
}
.text-link svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.text-link:hover svg { transform: translateX(4px); }
.dashes { display: flex; gap: 6px; margin: 14px 0 18px; }
.dashes i { width: 22px; height: 3px; background: var(--amber); border-radius: 2px; }
.dashes i:first-child { background: var(--navy); }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 130px) 0; position: relative; }
.section--paper { background: var(--paper); }
.section--dark { background: var(--charcoal); color: #E9E9EC; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .lead { color: var(--muted-on-dark); }
.section--ink { background: var(--ink); color: #E9E9EC; }
.section--ink h2, .section--ink h3 { color: #fff; }
.section--ink .lead { color: var(--muted-on-dark); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head--split { max-width: none; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: end; }
.section-head--split .lead { margin: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: min(92vh, 900px); display: flex; align-items: flex-end;
  color: #fff; overflow: hidden; background: var(--ink);
}
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media img { object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 1.6s ease, transform 9s linear; }
.hero-media img.is-active { opacity: 1; transform: scale(1); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(18,18,20,.86) 0%, rgba(18,18,20,.55) 45%, rgba(18,18,20,.1) 100%),
    linear-gradient(0deg, rgba(18,18,20,.75) 0%, rgba(18,18,20,0) 45%);
}
.hero-bars {
  position: absolute; z-index: 1; right: clamp(16px, 5vw, 80px); top: 0; bottom: 0; display: flex; gap: clamp(6px, 1vw, 14px);
  opacity: .55; pointer-events: none;
}
.hero-bars i { width: clamp(6px, 1vw, 16px); background: var(--ltt-gradient-v); transform-origin: top; animation: bar-in 1.6s var(--ease) both; }
.hero-bars i:nth-child(2) { animation-delay: .1s; height: 86%; }
.hero-bars i:nth-child(3) { animation-delay: .2s; height: 72%; }
.hero-bars i:nth-child(4) { animation-delay: .3s; height: 92%; }
.hero-bars i:nth-child(5) { animation-delay: .4s; height: 64%; }
@keyframes bar-in { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.hero-content { position: relative; z-index: 2; padding-top: 120px; padding-bottom: clamp(56px, 9vh, 110px); }
.hero h1 { color: #fff; max-width: 15ch; margin-bottom: .35em; }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero .lead { color: rgba(255,255,255,.85); max-width: 46ch; margin-bottom: 34px; }
.hero .eyebrow { color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-dots { position: absolute; z-index: 3; bottom: 28px; right: var(--gutter); display: flex; gap: 8px; }
.hero-dots button { width: 36px; height: 4px; border: 0; padding: 0; background: rgba(255,255,255,.35); cursor: pointer; border-radius: 2px; }
.hero-dots button[aria-current="true"] { background: var(--red); }

/* Page hero (inner pages) */
.page-hero { position: relative; color: #fff; background: var(--ink); overflow: hidden; }
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--ltt-gradient); }
.page-hero .container { position: relative; padding-top: clamp(80px, 12vw, 170px); padding-bottom: clamp(56px, 7vw, 96px); }
.page-hero h1 { color: #fff; max-width: 18ch; }
.page-hero .lead { color: rgba(255,255,255,.85); max-width: 58ch; margin: 0; }
.page-hero .eyebrow { color: #fff; }
.breadcrumb { font-size: .85rem; color: rgba(255,255,255,.7); margin-bottom: 22px; }
.breadcrumb a { text-decoration: none; color: rgba(255,255,255,.85); }
.breadcrumb a:hover { color: #fff; }

/* ---------- Facts strip ---------- */
.facts { background: var(--charcoal); color: #fff; }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 34px 28px 34px 0; border-right: 1px solid rgba(255,255,255,.12); }
.fact + .fact { padding-left: 28px; }
.fact:last-child { border-right: 0; }
.fact strong { display: block; font-size: clamp(1.3rem, 1.2vw + .8rem, 1.8rem); font-weight: 600; color: var(--amber); line-height: 1.2; }
.fact span { display: block; color: var(--muted-on-dark); font-size: .95rem; margin-top: 6px; }

/* ---------- Split (text + image) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.split--wide-img { grid-template-columns: .9fr 1.1fr; }
.split-media { position: relative; }
.split-media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.split-media .media-badge {
  position: absolute; left: -18px; bottom: -18px; background: var(--red); color: #fff; padding: 18px 22px; border-radius: var(--radius);
  font-weight: 600; line-height: 1.2; max-width: 220px; box-shadow: var(--shadow);
}
.split-media .media-badge small { display: block; font-weight: 400; opacity: .85; font-size: .82rem; margin-top: 4px; }
.media-stack { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.media-stack img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.media-stack img:first-child { grid-column: 1 / -1; aspect-ratio: 16/9; }
.media-stack img:not(:first-child) { aspect-ratio: 4/3; }

.check-list { list-style: none; display: grid; gap: 12px; margin: 22px 0 30px; }
.check-list li { position: relative; padding-left: 30px; }
.check-list--2col { grid-template-columns: 1fr 1fr; column-gap: 40px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 14px; height: 14px; border-radius: 50%;
  border: 3px solid var(--orange);
}
.section--dark .check-list li { color: #DCDCE0; }

/* ---------- EPC process ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { background: var(--graphite); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; position: relative; }
.step-img { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.step-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.step:hover .step-img img { transform: scale(1.05); }
.step-num {
  position: absolute; top: 0; left: 0; background: var(--charcoal); color: var(--amber); font-weight: 700; font-size: 1.15rem;
  padding: 6px 14px;
}
.step-body { padding: 22px 22px 26px; }
.step h3 { color: #fff; font-size: 1.2rem; }
.step p { color: var(--muted-on-dark); font-size: .95rem; margin: 0; }
.step:not(:last-child)::after {
  content: ""; position: absolute; right: -17px; top: calc(28% - 7px); width: 12px; height: 12px;
  border-top: 3px solid var(--amber); border-right: 3px solid var(--amber); transform: rotate(45deg); z-index: 2;
}
.process-note { margin-top: 34px; color: var(--muted-on-dark); }
.process-note strong { color: var(--amber); font-weight: 600; }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 26px; }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: #fff; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
  border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  text-decoration: none; color: inherit;
}
a.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-img { aspect-ratio: 16/10; overflow: hidden; background: var(--paper); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
a.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 24px 24px 28px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: .4em; }
.card-body p { color: var(--muted); font-size: .97rem; }
.card-body .text-link { margin-top: auto; }
.card-tag { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--orange); margin-bottom: 8px; }

/* Feature tiles (equipment) */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.tile { display: flex; flex-direction: column; }
.tile-img { aspect-ratio: 16/9; overflow: hidden; border-radius: var(--radius); margin-bottom: 16px; background: var(--paper); }
.tile-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.tile:hover .tile-img img { transform: scale(1.04); }
.tile h3 { color: var(--red); font-size: 1.15rem; margin-bottom: .35em; }
.tile p { color: var(--muted); font-size: .95rem; margin: 0; }
.section--dark .tile p { color: var(--muted-on-dark); }
.section--dark .tile h3 { color: var(--amber); }

/* Spec list (icon rows) */
.spec-list { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
.spec-list li { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.spec-list strong { font-weight: 600; color: var(--ink); }
.spec-list span { color: var(--muted); }

/* Solution blocks */
.solution { padding: clamp(56px, 8vw, 110px) 0; border-top: 1px solid var(--line); scroll-margin-top: var(--header-h); }
.solution:first-of-type { border-top: 0; }
.solution-num { font-size: .85rem; font-weight: 600; color: var(--red); letter-spacing: .12em; margin-bottom: 10px; display: block; }
.anchor-nav { position: sticky; top: var(--header-h); z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.anchor-nav ul { list-style: none; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 12px 0; }
.anchor-nav ul::-webkit-scrollbar { display: none; }
.anchor-nav a {
  display: block; white-space: nowrap; text-decoration: none; padding: 8px 16px; border-radius: 999px; font-size: .92rem; font-weight: 500;
  color: var(--graphite); border: 1px solid var(--line); transition: all .2s;
}
.anchor-nav a:hover, .anchor-nav a.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Sectors ---------- */
.sectors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--line); border-radius: var(--radius); overflow: hidden; }
.sector { background: #fff; padding: clamp(28px, 3vw, 44px); position: relative; }
.sector-icon { width: 54px; height: 54px; color: var(--red); margin-bottom: 22px; }
.sector h3 { margin-bottom: .45em; }
.sector p { color: var(--muted); margin: 0; font-size: .97rem; }

/* ---------- Group ---------- */
.group-grid { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 18px; align-items: stretch; }
.group-card { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 30px 28px; }
.group-card.is-us { border: 2px solid var(--orange); background: rgba(243,149,63,.07); }
.group-card h3 { font-size: 1.35rem; margin-bottom: 4px; }
.group-card .role { color: var(--amber); font-weight: 500; margin-bottom: 16px; display: block; }
.group-card ul { list-style: none; display: grid; gap: 8px; font-size: .95rem; color: var(--muted-on-dark); }
.group-card li { padding-left: 18px; position: relative; }
.group-card li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border: 2px solid var(--orange); border-radius: 50%; }
.group-plus { align-self: center; color: var(--orange); font-size: 1.8rem; font-weight: 300; }
.group-logo { height: 40px; margin-bottom: 14px; display: flex; align-items: center; }
.group-logo img { height: 100%; width: auto; }
.group-card.is-us .group-logo { height: 52px; }
.group-logo .wordmark { font-size: 1.35rem; font-weight: 600; color: #fff; letter-spacing: .02em; }
.group-banner {
  margin-top: 34px; padding: 22px 28px; border-radius: var(--radius); background: var(--navy); color: #fff; font-size: 1.05rem;
}
.group-banner strong { font-weight: 600; }
.numbers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 44px; }
.number strong { display: block; font-size: clamp(2.2rem, 3vw + 1rem, 3.6rem); font-weight: 600; line-height: 1; background: linear-gradient(90deg, #F3953F, #F9B13E 40%, #D5BD7D 70%, #A6CFD5); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 6px; }
.number span { color: var(--muted-on-dark); }

/* ---------- Statement ---------- */
.statement { font-size: clamp(1.6rem, 2.6vw + .6rem, 2.9rem); font-weight: 300; line-height: 1.25; letter-spacing: -0.015em; max-width: 26ch; color: #fff; margin: 0; }
.statement strong { font-weight: 600; color: var(--amber); }

/* ---------- References ---------- */
.ref-countries { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 26px; }
.ref-country { border-top: 3px solid var(--ink); padding-top: 16px; }
.ref-country h3 { font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); margin-bottom: 12px; }
.ref-country ul { list-style: none; display: grid; gap: 6px; }
.ref-country li { font-size: 1.05rem; font-weight: 500; color: var(--ink); }
.client-marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.client-track { display: flex; gap: 56px; width: max-content; animation: marquee 40s linear infinite; }
.client-track span { font-size: clamp(1.1rem, 1vw + .8rem, 1.5rem); font-weight: 600; color: #9A9AA0; white-space: nowrap; }
.client-track span::after { content: "•"; margin-left: 56px; color: var(--orange); }
@keyframes marquee { to { transform: translateX(-50%); } }
.world { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.world span { padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 500; font-size: .95rem; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; grid-auto-flow: dense; gap: 12px; }
.gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); cursor: zoom-in; background: var(--graphite); }
.gallery figure.w2 { grid-column: span 2; }
.gallery figure.h2 { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), opacity .3s; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 12px; font-size: .88rem; color: #fff; font-weight: 500;
  background: linear-gradient(0deg, rgba(0,0,0,.75), transparent);
}
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(12,12,14,.94); display: none; align-items: center; justify-content: center; padding: 4vw; }
.lightbox.is-open { display: flex; }
.lightbox img { max-height: 84vh; width: auto; border-radius: var(--radius); }
.lightbox p { position: absolute; bottom: 3vh; left: 0; right: 0; text-align: center; color: #ddd; margin: 0; padding: 0 20px; }
.lightbox button { position: absolute; top: 16px; right: 16px; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 1.6rem; cursor: pointer; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; position: relative; display: grid; gap: 0; margin: 0; padding: 0; }
.timeline::before { content: ""; position: absolute; left: 116px; top: 8px; bottom: 8px; width: 3px; background: var(--ltt-gradient-v); border-radius: 2px; }
.timeline li { display: grid; grid-template-columns: 96px 1fr; gap: 50px; padding: 0 0 44px; position: relative; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 109px; top: 8px; width: 17px; height: 17px; border-radius: 50%; background: #fff; border: 4px solid var(--red); }
.timeline .year { font-size: 1.6rem; font-weight: 700; color: var(--ink); text-align: right; line-height: 1.2; }
.timeline h3 { margin-bottom: .3em; }
.timeline p { color: var(--muted); margin: 0; }
.timeline li.is-us::before { background: var(--red); }
.timeline li.is-us .year { color: var(--red); }

/* Values */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.value { padding-top: 22px; border-top: 3px solid var(--red); }
.value h3 { font-size: 1.2rem; }
.value p { color: var(--muted); font-size: .96rem; margin: 0; }
.section--dark .value p { color: var(--muted-on-dark); }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; background: var(--red); color: #fff; }
.cta::before { content: ""; position: absolute; right: -120px; top: -140px; width: 520px; height: 520px; background: url("../img/logo-stara-tech.svg") center/contain no-repeat; opacity: .12; filter: brightness(0) invert(1); }
.cta .container { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding-top: clamp(52px, 7vw, 90px); padding-bottom: clamp(52px, 7vw, 90px); }
.cta h2 { color: #fff; margin: 0 0 .25em; max-width: 20ch; }
.cta p { margin: 0; opacity: .9; max-width: 52ch; }
.cta .btn { background: #fff; color: var(--red); }
.cta .btn:hover { background: var(--ink); color: #fff; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(36px, 6vw, 80px); }
.contact-cards { display: grid; gap: 18px; }
.contact-card { display: flex; gap: 20px; align-items: flex-start; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; text-decoration: none; color: inherit; transition: border-color .25s, box-shadow .25s; }
a.contact-card:hover { border-color: var(--red); box-shadow: var(--shadow); }
.contact-card svg { width: 30px; height: 30px; color: var(--red); flex-shrink: 0; margin-top: 2px; }
.contact-card h3 { font-size: 1rem; margin: 0 0 4px; color: var(--muted); font-weight: 500; }
.contact-card p { margin: 0; font-size: 1.15rem; font-weight: 500; color: var(--ink); }
.map-box { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 380px; background: var(--charcoal); color: #fff; display: flex; align-items: flex-end; }
.map-box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.map-box::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(20,20,22,.95) 0%, rgba(20,20,22,.6) 45%, rgba(20,20,22,.1) 100%); }
.map-box .map-content { z-index: 2; }
.map-box .map-content { position: relative; padding: 32px; }
.map-box h3 { color: #fff; }
.group-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.group-link { padding: 26px; background: #fff; border-radius: var(--radius); text-decoration: none; color: inherit; border: 1px solid transparent; transition: border-color .2s; }
.group-link:hover { border-color: var(--ink); }
.group-link strong { display: block; font-size: 1.15rem; margin-bottom: 4px; color: var(--ink); }
.group-link span { color: var(--muted); font-size: .95rem; }

/* ---------- Prose (privacy) ---------- */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.5rem; margin-top: 1.8em; }
.prose p, .prose li { color: var(--graphite); }
.prose ul { padding-left: 1.2em; margin-bottom: 1em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--muted-on-dark); font-size: .95rem; position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--ltt-gradient); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding: 72px 0 48px; }
.footer-brand img.logo { width: 76px; height: 74px; margin-bottom: 18px; }
.footer-brand img.ltt { width: 180px; margin-top: 18px; opacity: .85; }
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; margin-bottom: 18px; }
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; color: var(--muted-on-dark); transition: color .2s; }
.site-footer a:hover { color: #fff; }
.site-footer address { font-style: normal; line-height: 1.7; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0 28px; display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; font-size: .85rem; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .1s; } .reveal-d2 { transition-delay: .2s; } .reveal-d3 { transition-delay: .3s; }
.no-js .reveal { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .process { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2)::after { display: none; }
  .group-grid { grid-template-columns: 1fr; }
  .group-plus { justify-self: center; line-height: 1; }
  .values { grid-template-columns: repeat(2, 1fr); }
  .card-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 960px) {
  :root { --header-h: 70px; }
  .brand img { width: 46px; height: 45px; }
  .site-header { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: #fff; padding: 28px var(--gutter);
    transform: translateX(100%); transition: transform .4s var(--ease); overflow-y: auto; margin: 0;
    display: flex; flex-direction: column; align-items: stretch; gap: 30px; visibility: hidden;
  }
  .nav-open .main-nav { transform: none; visibility: visible; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav li { border-bottom: 1px solid var(--line); }
  .main-nav a { display: block; padding: 18px 0; font-size: 1.35rem; }
  .main-nav a::after { display: none; }
  .main-nav a[aria-current="page"] { color: var(--red); }
  .lang-switch { margin: 0; font-size: 1.05rem; gap: 18px; }
  .nav-open { overflow: hidden; }

  .split, .split--wide-img, .contact-grid, .section-head--split { grid-template-columns: 1fr; }
  .split-media { order: -1; }
  .split-media .media-badge { left: 14px; bottom: -22px; }
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .fact { padding: 26px 18px 26px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .fact + .fact { padding-left: 0; }
  .fact:nth-child(even) { padding-left: 18px; border-right: 0; }
  .fact:nth-child(n+3) { border-bottom: 0; }
  .tiles, .card-grid--3, .sectors { grid-template-columns: repeat(2, 1fr); }
  .numbers { grid-template-columns: 1fr 1fr 1fr; }
  .group-links { grid-template-columns: 1fr; }
  .check-list--2col { grid-template-columns: 1fr; }
  .spec-list li { grid-template-columns: 1fr; gap: 4px; }
}

@media (max-width: 640px) {
  .hero { min-height: 88vh; }
  .hero-bars { opacity: .35; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .process, .tiles, .card-grid--2, .card-grid--4, .card-grid--3, .sectors, .values { grid-template-columns: 1fr; }
  .step::after { display: none !important; }
  .numbers { grid-template-columns: 1fr; gap: 22px; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .gallery figure.w2 { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; padding-top: 56px; }
  .timeline::before { left: 8px; }
  .timeline li { grid-template-columns: 1fr; gap: 6px; padding-left: 40px; }
  .timeline li::before { left: 1px; }
  .timeline .year { text-align: left; }
  .brand-sub { display: none; }
  .cta::before { width: 320px; height: 320px; right: -110px; top: -60px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-media img.is-active { transform: none; }
}

@media print {
  .site-header, .hero-bars, .hero-dots, .cta, .anchor-nav { display: none; }
  .hero, .page-hero { min-height: 0; color: #000; background: none; }
  .hero::before, .hero-media, .page-hero img { display: none; }
  .hero h1, .page-hero h1 { color: #000; }
}
