/* CGCG · China Georgia Commerce Gate. Colori di marca: blu notte, verde smeraldo, oro, bianco. */
:root {
  --navy: #07162c;
  --navy-2: #0c2242;
  --on-navy: #eef2f9;
  --muted: #aebcd4;
  --line: rgba(238, 242, 249, .13);
  --paper: #fbfcfe;
  --ink: #0b1b35;
  --ink-2: #45546f;
  --rule: #dfe5ee;
  --gold: #d3ad58;
  --gold-ink: #7a5b13;
  --emerald: #0b7a59;
  --emerald-2: #0e8e68;
  --emerald-lt: #52d3a5;
  --serif: "Source Serif 4", "Noto Serif Georgian", Cambria, Georgia, "Sylfaen", serif;
  --sans: Manrope, "Noto Sans Georgian", "Segoe UI", system-ui, -apple-system, "Sylfaen", sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --bar: 72px;
}
:root:lang(zh) {
  --serif: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", sans-serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--navy); scroll-padding-top: var(--bar); overflow-x: clip; -webkit-text-size-adjust: 100%; }
body { color: var(--on-navy); font-family: var(--sans); font-size: 16px; line-height: 1.6; overflow-x: clip; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; font-style: normal; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 60; background: var(--gold); color: var(--navy); padding: 10px 16px; border-radius: 4px; font-weight: 700; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 32px; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* Fondo unico e fermo: il contenuto gli sale sopra */
.bg { position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(1100px 760px at 78% 42%, rgba(24, 86, 128, .42), transparent 62%),
    radial-gradient(900px 640px at -6% 104%, rgba(11, 122, 89, .26), transparent 64%),
    var(--navy); }
.bg::after { content: ""; position: absolute; right: -90px; bottom: 0; width: 620px; height: 620px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400' fill='none' stroke='%23d3ad58'%3E%3Cpath d='M20 400V200a180 180 0 0 1 360 0v200'/%3E%3Cpath d='M70 400V204a130 130 0 0 1 260 0v196'/%3E%3Cpath d='M120 400V208a80 80 0 0 1 160 0v192'/%3E%3C/svg%3E") no-repeat bottom right / contain;
  opacity: calc(.11 * (1 - var(--globe, 0))); }   /* gli archi compaiono quando il globo se ne va */
.globe { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; opacity: var(--globe, 1); }
.globe-off .globe { visibility: hidden; }

/* Barra in alto */
.top { position: fixed; inset: 0 0 auto 0; height: var(--bar); z-index: 30; background: var(--navy); border-bottom: 1px solid var(--line); }
.top-in { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; flex: none; }
.mark { width: 38px; height: 38px; flex: none; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.15; }
.brand-txt b { font-family: "Source Serif 4", Cambria, Georgia, serif; font-size: 20px; letter-spacing: .1em; font-weight: 600; }
.brand-txt span { font-size: 11px; color: var(--muted); letter-spacing: .02em; }
.menu { margin-left: auto; }
.menu ul { display: flex; gap: 22px; }
.menu a { font-size: 14px; color: var(--muted); text-decoration: none; white-space: nowrap; padding: 8px 0; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.menu a:hover { color: var(--on-navy); }
.menu a[aria-current="true"] { color: var(--on-navy); border-bottom-color: var(--gold); }
.langs { display: flex; gap: 2px; flex: none; }
.langs a { display: block; font-size: 12.5px; font-weight: 600; line-height: 1; padding: 7px 8px; border-radius: 4px; text-decoration: none; color: var(--muted); }
.langs a:hover { color: var(--on-navy); background: rgba(238, 242, 249, .08); }
.langs a[aria-current="true"] { background: var(--gold); color: var(--navy); }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 6px; background: none; color: inherit; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.burger span { width: 18px; height: 2px; background: var(--on-navy); transition: transform .25s var(--ease), opacity .2s; }
.menu-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.drawer { position: fixed; inset: var(--bar) 0 0 0; z-index: 29; background: var(--navy); padding: 20px 20px 32px; overflow-y: auto; }
.drawer[hidden] { display: none; }
.drawer-nav a { display: block; font-family: var(--serif); font-size: 24px; text-decoration: none; padding: 14px 0; border-bottom: 1px solid var(--line); }
.drawer-langs { margin-top: 24px; gap: 8px; }
.drawer-langs a { font-size: 15px; padding: 12px 16px; border: 1px solid var(--line); }

/* Apertura */
.hero { min-height: 100vh; min-height: 100svh; display: flex; padding-top: var(--bar); }
.hero-in { display: flex; flex-direction: column; flex: 1; }
.hero-copy { margin: auto 0; padding: 48px 0 40px; max-width: 690px; }
.hero h1 { font-size: clamp(34px, 4.5vw, 60px); line-height: 1.1; letter-spacing: -.012em; }
.line { display: block; overflow: hidden; padding-bottom: .06em; }
.line > span { display: block; animation: curtain 1s var(--ease) both; animation-delay: calc(var(--i) * .13s + .1s); }
.line:last-of-type > span { color: var(--emerald-lt); }
@keyframes curtain { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.hero-lead { margin-top: 22px; max-width: 34rem; color: var(--muted); font-size: 18px; text-wrap: pretty; animation: fade-up .9s var(--ease) .5s both; }
:root:lang(zh) .hero-lead { max-width: 36rem; }
.actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; animation: fade-up .9s var(--ease) .64s both; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px; border-radius: 5px; border: 1px solid transparent; font: 600 15px/1.2 var(--sans); text-decoration: none; text-align: center; cursor: pointer; transition: background-color .25s, border-color .25s; }
.btn-main { background: var(--emerald); color: #fff; }
.btn-main:hover { background: var(--emerald-2); }
.btn-main:disabled { background: #8b97aa; cursor: not-allowed; }
.btn-line { border-color: rgba(211, 173, 88, .6); color: var(--on-navy); }
.btn-line:hover { background: rgba(211, 173, 88, .14); border-color: var(--gold); }
.hero-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 28px; padding: 20px 0 26px; border-top: 1px solid var(--line); animation: fade-up .9s var(--ease) .8s both; }
.route { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 14px; color: var(--muted); }
.route .ge { color: var(--gold); font-weight: 700; }
.arr { width: 34px; height: 10px; color: var(--emerald-lt); flex: none; }
.slogan { font-family: var(--serif); font-size: 17px; color: var(--gold); }

/* Sezioni */
.sec { padding: 76px 0; }
.grid { display: grid; grid-template-columns: minmax(0, 290px) minmax(0, 1fr); column-gap: 48px; align-items: start; }
.side { grid-column: 1; }
.body { grid-column: 2; }
.sec-title { font-size: clamp(28px, 3vw, 40px); letter-spacing: -.008em; }
.sec-name { font-size: 14px; font-weight: 700; color: var(--gold); }
.lead { color: var(--muted); font-size: 17px; max-width: 40rem; }
[data-rise] { transform-origin: 50% 70%; backface-visibility: hidden; }
[data-rise].fl-live { will-change: transform, opacity; }

/* Chi siamo */
.statement { font-family: var(--serif); font-weight: 500; font-size: clamp(22px, 2.3vw, 30px); line-height: 1.4; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 44px; }
.duo h3 { font-family: var(--sans); font-size: 14px; font-weight: 700; color: var(--gold); margin-bottom: 14px; }
.rows li { padding: 12px 0; border-top: 1px solid var(--line); font-size: 17px; }

/* Messaggio del presidente (scheda chiara) */
.paper { background: var(--paper); color: var(--ink); border-radius: 12px; box-shadow: 0 34px 64px -36px rgba(0, 0, 0, .7); }
.president { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); overflow: hidden; }
.president figure { position: relative; min-height: 520px; background: #3a3d42; }
.president figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.message { padding: 42px 48px; }
.tag { font-size: 13.5px; font-weight: 700; color: var(--gold-ink); margin-bottom: 8px; }
.message .sec-title { margin-bottom: 20px; }
.message > p:not(.tag):not(.sign):not(.resp) { color: var(--ink-2); font-size: 16px; margin-top: 12px; }
.message blockquote { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--rule); font-family: var(--serif); font-size: clamp(21px, 2vw, 25px); line-height: 1.34; text-wrap: balance; }
.sign { margin-top: 22px; display: flex; flex-direction: column; line-height: 1.5; }
.sign b { font-family: var(--serif); font-size: 21px; font-weight: 600; }
.sign span { font-size: 14px; color: var(--ink-2); }
.resp { margin-top: 16px; font-size: 14px; color: var(--emerald); font-weight: 600; max-width: 34rem; }

.rep { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 5fr); gap: 30px; align-items: center; margin-top: 18px; padding: 30px 34px; border: 1px solid rgba(211, 173, 88, .45); border-radius: 12px; background: rgba(12, 34, 66, .94); }
.rep .tag { color: var(--gold); margin-bottom: 14px; }
.gtg { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; }
.gtg b { font-family: "Source Serif 4", Cambria, Georgia, serif; font-size: 30px; letter-spacing: .14em; font-weight: 600; line-height: 1; }
.gtg i { width: 20px; height: 1px; background: var(--gold); transform: translateY(-7px); }
.gtg span { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.rep h3 { font-family: var(--sans); font-size: 14px; font-weight: 500; color: var(--muted); margin-top: 8px; }
.person { font-family: var(--serif); font-size: 24px; font-weight: 600; line-height: 1.2; }
.role { color: var(--muted); font-size: 14px; margin-top: 6px; }
.rep-do p { color: var(--muted); font-size: 15px; }
.link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 14.5px; font-weight: 700; color: var(--gold); text-decoration: none; border-bottom: 1px solid transparent; }
.link:hover { border-bottom-color: currentColor; }
.ext { width: 11px; height: 11px; flex: none; }

/* Settori */
.sectors .head { margin-bottom: 38px; align-items: end; }
.group { padding: 28px 0 30px; border-top: 1px solid var(--line); }
.group h3.side { font-size: 22px; color: var(--gold); line-height: 1.25; }
.items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 28px; }
.items li::before { content: ""; display: block; width: 22px; height: 2px; background: var(--emerald-lt); margin-bottom: 14px; }
.items h4 { font-family: var(--sans); font-size: 16.5px; font-weight: 700; line-height: 1.35; }
.items p { margin-top: 7px; font-size: 14.5px; color: var(--muted); }

/* Progetti */
.projects { padding: 40px 0; }
.pipeline { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; padding: 36px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pipeline p { margin-top: 10px; color: var(--muted); max-width: 36rem; }
.project-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 28px; }
.project { padding: 26px; border: 1px solid var(--line); border-radius: 12px; background: rgba(12, 34, 66, .9); }
.project .tag { color: var(--gold); }
.project h3 { font-size: 22px; margin-bottom: 10px; }
.project p:not(.tag) { color: var(--muted); font-size: 15px; }

/* Partner */
.partners .head { margin-bottom: 36px; }
.partners .lead { margin-top: 14px; }
.partner-list { display: grid; gap: 14px; }
.partner { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3.4fr); gap: 32px; padding: 28px 32px; }
.partner h3 { font-size: 23px; line-height: 1.22; }
.partner .logo { max-height: 54px; width: auto; max-width: 220px; margin-bottom: 8px; }
.meta { font-size: 13.5px; color: var(--ink-2); margin-top: 8px; }
.partner .link { color: var(--emerald); }
.partner dl > div + div { margin-top: 14px; }
.partner dt { font-size: 12.5px; font-weight: 700; color: var(--gold-ink); margin-bottom: 3px; }
.partner dd { font-size: 15px; line-height: 1.55; }

/* Contatti */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.offices .sec-name { margin-bottom: 10px; }
.offices .sec-title { margin-bottom: 30px; }
.office, .channels { border-top: 1px solid var(--line); padding: 20px 0 22px; }
.office h3, .channels h3 { font-family: var(--sans); font-size: 14px; font-weight: 700; color: var(--gold); margin-bottom: 8px; }
.office p { color: var(--muted); font-size: 15px; }
.phone { display: inline-block; margin-top: 8px; font-family: var(--serif); font-size: 26px; font-variant-numeric: tabular-nums lining-nums; text-decoration: none; }
.phone:hover { color: var(--emerald-lt); }
.channels h3 small { font-weight: 500; color: var(--muted); font-size: 12.5px; margin-left: 6px; }
.channels ul { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.channels li { font-size: 13.5px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; }
.channels li.soon { color: var(--muted); border-style: dashed; }
.form { padding: 36px 38px 30px; }
.form h3 { font-size: 27px; margin-bottom: 16px; }
.notice { background: #fbf1d8; color: #5c440c; border-radius: 6px; padding: 11px 14px; font-size: 14px; margin-bottom: 18px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px; }
.field { min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 5px; }
.field input, .field select, .field textarea { width: 100%; min-height: 46px; font: 400 16px/1.4 var(--sans); color: var(--ink); background: #fff; border: 1px solid #c6cfdd; border-radius: 6px; padding: 10px 12px; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--emerald); outline-offset: 0; border-color: var(--emerald); }
.form :focus-visible { outline-color: var(--emerald); }
.trap { display: none; }
.form .btn { width: 100%; }
.status { font-size: 14px; margin-top: 10px; min-height: 1.2em; }
.status.err { color: #a62b1f; }
.status.ok { color: var(--emerald); }

/* Piede */
.foot { border-top: 1px solid var(--line); padding: 40px 0 30px; background: rgba(7, 22, 44, .9); }
.foot-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.foot-slogan { font-family: var(--serif); font-size: 22px; color: var(--gold); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.foot-nav a { font-size: 14px; color: var(--muted); text-decoration: none; }
.foot-nav a:hover { color: var(--on-navy); }
.foot-end { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-top: 22px; font-size: 13px; color: var(--muted); }

/* Pagina non trovata */
.nf { min-height: 100vh; display: flex; align-items: center; text-align: left; }
.nf .mark { width: 56px; height: 56px; margin-bottom: 22px; }
.nf h1 { font-size: 38px; }
.nf p { color: var(--muted); margin: 12px 0 26px; }

/* Lingue con lettere larghe: titolo un po' piu' piccolo */
:root:lang(ru) .hero h1 { font-size: clamp(31px, 4vw, 54px); }
:root:lang(ka) .hero h1 { font-size: clamp(27px, 3.4vw, 46px); line-height: 1.22; letter-spacing: 0; }
:root:lang(ka) .sec-title { font-size: clamp(25px, 2.5vw, 33px); line-height: 1.28; }
:root:lang(ka) .items h4 { font-size: 15.5px; }
:root:lang(zh) .hero h1 { line-height: 1.24; letter-spacing: .02em; }
:root:lang(zh) h1, :root:lang(zh) h2, :root:lang(zh) h3 { font-weight: 700; }

@media (max-height: 700px) and (min-width: 821px) {
  .hero-copy { padding: 26px 0 22px; }
  .hero h1 { font-size: clamp(32px, 3.9vw, 50px); }
  .hero-lead { margin-top: 14px; font-size: 16.5px; }
  .actions { margin-top: 20px; }
}

@media (max-width: 1100px) {
  .menu, .top-langs { display: none; }
  .burger { display: flex; }
}

@media (max-width: 960px) {
  .grid { grid-template-columns: minmax(0, 1fr); row-gap: 22px; }
  .side, .body { grid-column: 1; }
  .rep { grid-template-columns: 1fr 1fr; }
  .rep-do { grid-column: 1 / -1; }
  .partner { grid-template-columns: 1fr 1fr; }
  .p-id { grid-column: 1 / -1; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
}

@media (max-width: 820px) {
  .president { grid-template-columns: minmax(0, 1fr); }
  .president figure { min-height: 0; aspect-ratio: 4 / 4.6; }
  .globe { opacity: calc(var(--globe, 1) * .42); }
}

@media (max-width: 640px) {
  :root { --bar: 64px; }
  .wrap { padding: 0 20px; }
  .brand-txt span { font-size: 10px; }
  .sec { padding: 56px 0; }
  .projects { padding: 24px 0; }
  .hero-copy { padding: 34px 0 30px; }
  .hero-lead { font-size: 16.5px; }
  .actions .btn { width: 100%; }
  .duo, .rep, .partner, .fields { grid-template-columns: minmax(0, 1fr); }
  .items { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .message { padding: 28px 22px 30px; }
  .rep { padding: 24px 22px; gap: 20px; }
  .partner { padding: 24px 22px; gap: 18px; }
  .form { padding: 26px 20px 22px; }
  .pipeline .btn { width: 100%; }
}

@media print {
  .globe, .bg, .top { display: none; }
  [data-rise] { opacity: 1 !important; transform: none !important; }
}
