/* ============================================================
   AKSAI INDUSTRIAL PARK — style.css
   Stile "Mithril": foto a tutto schermo, testo in sovraimpressione
   con pannelli traslucidi, tipografia editoriale, scroll fluido.
   ============================================================ */

:root {
  --navy:        #0b1f3a;
  --navy-deep:   #06101f;
  --azure:       #3b82d6;
  --azure-soft:  #6ba6e6;
  --cream:       #f5f2ec;
  --line:        rgba(255,255,255,.16);
  --panel:       rgba(6,16,31,.58);
  --panel-solid: rgba(6,16,31,.92);
  --font-head:   "Playfair Display", Georgia, serif;
  --font-body:   "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --maxw:        1200px;
  --ease:        cubic-bezier(.22,.61,.36,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--cream);
  background: var(--navy-deep);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- Tipografia ---------- */
h1,h2,h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.12; }
.label {
  font-size: .74rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--azure-soft); font-weight: 600; margin-bottom: 1.1rem; display: block;
}
.lead { font-size: 1.18rem; color: rgba(245,242,236,.86); font-weight: 300; }
p { color: rgba(245,242,236,.8); font-weight: 300; }
p + p { margin-top: 1rem; }

/* ---------- Navbar ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px clamp(20px,5vw,56px);
  transition: background .4s var(--ease), padding .4s var(--ease), box-shadow .4s var(--ease);
}
.nav.scrolled {
  background: rgba(6,16,31,.9);
  backdrop-filter: blur(10px);
  padding-top: 12px; padding-bottom: 12px;
  box-shadow: 0 1px 0 var(--line);
}
.nav .brand { display: flex; align-items: center; gap: 12px; }
.nav .brand img { height: 40px; width: auto; }
.nav .brand span {
  font-family: var(--font-head); font-size: 1.02rem; letter-spacing: .04em;
  color: #fff; line-height: 1.15; max-width: 190px;
}
.nav-links { display: flex; align-items: center; gap: clamp(18px,2.4vw,38px); }
.nav-links a {
  font-size: .82rem; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.82); font-weight: 500; position: relative; padding: 4px 0;
  transition: color .25s;
}
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: var(--azure);
}
.lang { display: flex; gap: 2px; margin-left: 6px; }
.lang button {
  background: none; border: 1px solid var(--line); color: rgba(255,255,255,.7);
  font: inherit; font-size: .74rem; letter-spacing: .1em; padding: 5px 10px; cursor: pointer;
  transition: all .25s;
}
.lang button:first-child { border-radius: 3px 0 0 3px; }
.lang button:last-child { border-radius: 0 3px 3px 0; border-left: none; }
.lang button.active { background: var(--azure); border-color: var(--azure); color: #fff; }

/* hamburger */
.burger { display: none; background: none; border: none; cursor: pointer; width: 30px; height: 22px; position: relative; }
.burger span { position: absolute; left: 0; height: 2px; width: 100%; background: #fff; transition: .3s var(--ease); }
.burger span:nth-child(1){ top: 0; } .burger span:nth-child(2){ top: 10px; } .burger span:nth-child(3){ top: 20px; }
.burger.open span:nth-child(1){ top:10px; transform: rotate(45deg); }
.burger.open span:nth-child(2){ opacity: 0; }
.burger.open span:nth-child(3){ top:10px; transform: rotate(-45deg); }

/* ---------- Sezioni foto full-bleed ---------- */
.section {
  position: relative; width: 100%;
  display: flex; align-items: center;
  padding: clamp(90px,14vh,150px) clamp(20px,5vw,56px);
  background-size: cover; background-position: center;
  overflow: hidden;
}
.section.bg-fixed { background-attachment: fixed; }
.section::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,16,31,.55) 0%, rgba(6,16,31,.68) 60%, rgba(6,16,31,.8) 100%);
}
.section > .inner { position: relative; width: 100%; max-width: var(--maxw); margin: 0 auto; z-index: 2; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 120px clamp(20px,5vw,56px) 90px;
  background-size: cover; background-position: center; position: relative;
}
.hero::before {
  content:""; position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(6,16,31,.5) 0%, rgba(6,16,31,.35) 40%, rgba(6,16,31,.85) 100%);
}
.hero .inner { position: relative; z-index: 2; max-width: 900px; margin: 0 auto; width: 100%; }
.hero h1 {
  font-size: clamp(2.4rem,6vw,4.6rem); color: #fff; letter-spacing: -.01em;
  text-shadow: 0 2px 30px rgba(0,0,0,.35);
}
.hero .lead { margin-top: 1.6rem; max-width: 640px; font-size: clamp(1rem,1.6vw,1.28rem); }
.hero .actions { margin-top: 2.4rem; display: flex; gap: 16px; flex-wrap: wrap; }

/* scroll cue */
.scroll-cue {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 3;
  font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: rgba(255,255,255,.7);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.scroll-cue::after { content:""; width: 1px; height: 40px; background: linear-gradient(rgba(255,255,255,.7), transparent); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0%{ transform: scaleY(0); transform-origin: top; } 50%{ transform: scaleY(1); transform-origin: top; } 51%{ transform-origin: bottom; } 100%{ transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-block; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase;
  padding: 15px 30px; border: 1px solid rgba(255,255,255,.5); color: #fff; font-weight: 500;
  transition: all .3s var(--ease); cursor: pointer; background: none;
}
.btn:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn.primary { background: var(--azure); border-color: var(--azure); }
.btn.primary:hover { background: #fff; color: var(--navy); border-color: #fff; }

/* ---------- Pannello traslucido testo ---------- */
.panel {
  background: var(--panel); backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: 4px;
  padding: clamp(28px,4vw,54px); max-width: 720px;
}
.panel.wide { max-width: 940px; }
.panel h2 { font-size: clamp(1.8rem,3.6vw,2.9rem); color: #fff; margin-bottom: .3rem; }
.panel h2 + .lead, .panel .lead { margin-top: 1rem; }
.panel p { margin-top: 1rem; }

/* two-column intro */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px,5vw,70px); align-items: center; }
.split .txt h2 { font-size: clamp(1.9rem,3.4vw,2.8rem); color: #fff; }

/* ---------- Stat / numeri asset ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); gap: 1px; background: var(--line); margin-top: 2.4rem; border: 1px solid var(--line); }
.stat { background: rgba(6,16,31,.66); padding: 26px 22px; text-align: left; }
.stat .num { font-family: var(--font-head); font-size: clamp(1.9rem,3.2vw,2.7rem); color: #fff; line-height: 1; }
.stat .num small { font-size: .5em; color: var(--azure-soft); margin-left: 3px; }
.stat .cap { font-size: .78rem; letter-spacing: .04em; color: rgba(245,242,236,.72); margin-top: 8px; }

/* ---------- Griglia feature / servizi ---------- */
.grid { display: grid; gap: 22px; margin-top: 2.4rem; }
.grid.cols-3 { grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); }
.grid.cols-2 { grid-template-columns: repeat(auto-fit,minmax(280px,1fr)); }
.card {
  background: rgba(6,16,31,.5); backdrop-filter: blur(6px);
  border: 1px solid var(--line); border-radius: 4px; padding: 30px 28px;
  transition: transform .35s var(--ease), border-color .35s;
}
.card:hover { transform: translateY(-5px); border-color: rgba(107,166,230,.5); }
.card .k { font-family: var(--font-head); font-size: 1.35rem; color: #fff; margin-bottom: .5rem; }
.card p { font-size: .95rem; }

/* elenco servizi */
.svc-list { columns: 2; column-gap: 40px; margin-top: 2rem; list-style: none; }
.svc-list li {
  break-inside: avoid; padding: 12px 0 12px 26px; position: relative;
  border-bottom: 1px solid var(--line); color: rgba(245,242,236,.86); font-weight: 300;
}
.svc-list li::before { content:"—"; position: absolute; left: 0; color: var(--azure); }

/* ---------- Sezione con contenuto testuale scuro (leggibilità) ---------- */
.section.solid { background: var(--navy-deep); }
.section.solid::before { display: none; }

/* ---------- Residenti ---------- */
.resident-hero { min-height: 62vh; }
.resident {
  display: grid; grid-template-columns: 320px 1fr; gap: clamp(28px,4vw,60px);
  align-items: start; padding: clamp(56px,8vh,96px) 0; border-top: 1px solid var(--line);
}
.resident:first-of-type { border-top: none; }
.resident .aside { position: sticky; top: 100px; }
.logo-box {
  background: #fff; border-radius: 6px; padding: 26px;
  display: flex; align-items: center; justify-content: center; min-height: 130px;
}
.logo-box img { max-height: 92px; max-width: 100%; width: auto; }
.logo-box img[src*="logo-contraflex"], .logo-box img[src*="logo-garant"] { max-height: 112px; }
.resident .photo { margin-top: 18px; border-radius: 6px; overflow: hidden; }
.resident .photo img { width: 100%; height: 220px; object-fit: cover; }
.resident h3 { font-size: clamp(1.7rem,3vw,2.3rem); color: #fff; }
.resident .tagline { color: var(--azure-soft); font-style: italic; font-size: 1.06rem; margin: .5rem 0 1.2rem; font-weight: 300; }
.resident .est { margin-top: 1.4rem; font-size: .92rem; color: rgba(245,242,236,.62); border-left: 2px solid var(--azure); padding-left: 16px; }
.resident .facts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }
.resident .facts .chip {
  font-size: .78rem; letter-spacing: .04em; padding: 8px 14px; border: 1px solid var(--line);
  border-radius: 40px; color: rgba(245,242,236,.82);
}
.resident .facts .chip b { color: #fff; font-weight: 600; }

/* ---------- Contatti ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px,5vw,64px); }
.contact-item { padding: 22px 0; border-bottom: 1px solid var(--line); }
.contact-item .label { margin-bottom: .4rem; }
.contact-item .val { font-size: 1.1rem; color: #fff; font-weight: 300; }
.contact-item a.val:hover { color: var(--azure-soft); }
.map-embed { width: 100%; height: 100%; min-height: 340px; border: 1px solid var(--line); border-radius: 6px; filter: grayscale(.3) contrast(1.05); }

/* ---------- Footer ---------- */
.footer { background: var(--navy-deep); border-top: 1px solid var(--line); padding: 64px clamp(20px,5vw,56px) 32px; }
.footer .inner { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 40px; }
.footer .f-brand img { height: 52px; margin-bottom: 16px; }
.footer .f-brand p { font-size: .9rem; max-width: 320px; }
.footer h4 { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--azure-soft); margin-bottom: 16px; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { font-size: .92rem; color: rgba(245,242,236,.75); }
.footer ul a:hover { color: #fff; }
.footer .copyright { max-width: var(--maxw); margin: 40px auto 0; padding-top: 24px; border-top: 1px solid var(--line); font-size: .8rem; color: rgba(245,242,236,.5); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .section.bg-fixed { background-attachment: scroll; }
  .split { grid-template-columns: 1fr; }
  .svc-list { columns: 1; }
  .resident { grid-template-columns: 1fr; }
  .resident .aside { position: static; max-width: 320px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer .inner { grid-template-columns: 1fr; }
  .nav-links {
    position: fixed; inset: 0 0 0 auto; width: min(78vw,320px); flex-direction: column;
    align-items: flex-start; justify-content: center; gap: 26px; padding: 40px;
    background: rgba(6,16,31,.97); backdrop-filter: blur(12px);
    transform: translateX(100%); transition: transform .4s var(--ease);
  }
  .nav-links.open { transform: none; }
  .nav-links a { font-size: 1rem; }
  .burger { display: block; z-index: 101; }
  .lang { margin-left: 0; }
}

/* lingua: mostra solo la lingua attiva */
[data-lang-en] [lang="ru"], [data-lang-ru] [lang="en"] { display: none; }
