/* =========================================================================
   ADACTUA — Private Family Office
   Visual system: Goldman Sachs structure · JPMorganChase palette (bronze/travertine)
   ========================================================================= */

:root {
  /* Palette */
  --ink:        #0A0A0A;
  --ink-soft:   #2A2722;
  --bronze:     #8F5A39;
  --bronze-dk:  #6E4329;
  --bronze-lt:  #B07C58;
  --travertine: #F4EFE7;
  --travertine-dp: #E9E1D2;
  --paper:      #FFFFFF;
  --sky:        #A6D7F0;
  --muted:      #6B655B;
  --line:       #DED6C7;
  --line-dk:    #2E2A24;

  /* Type */
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Metrics */
  --maxw: 1240px;
  --gut:  clamp(20px, 5vw, 64px);
  --nav-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
}
/* proportional old-style figures in prose, lining tabular in data */
.lead, .article p, .holding__body p, p { font-variant-numeric: oldstyle-nums proportional-nums; }
.display, h1, h2, h3, .stat__val, .holding__stake, .bigstat .v, .perf-table, .navchart, .year { font-variant-numeric: lining-nums tabular-nums; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Language toggle visibility ---------- */
html.lang-en .t-it { display: none !important; }
html.lang-it .t-en { display: none !important; }

/* ---------- Layout helpers ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut); }
.section { padding: clamp(64px, 9vw, 132px) 0; }
.section--tight { padding: clamp(48px, 6vw, 84px) 0; }
.bg-travertine { background: var(--travertine); }
.bg-ink { background: var(--ink); color: var(--paper); }
.bg-ink .muted { color: #ABA391; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.08; margin: 0; letter-spacing: -0.01em; }
.display { font-size: clamp(40px, 6.4vw, 84px); font-weight: 300; letter-spacing: -0.02em; }
h2 { font-size: clamp(30px, 4vw, 52px); }
h3 { font-size: clamp(22px, 2.4vw, 30px); }
p { margin: 0 0 1.1em; }
.lead { font-size: clamp(19px, 2vw, 23px); line-height: 1.5; color: var(--ink-soft); }
.muted { color: var(--muted); }
.serif { font-family: var(--serif); }

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bronze);
  margin: 0 0 22px;
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--bronze); display: inline-block; }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.04em;
  padding: 14px 26px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  transition: background .2s, color .2s, border-color .2s; border-radius: 0;
}
.btn:hover { background: var(--bronze); border-color: var(--bronze); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-dk); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--light:hover { background: var(--bronze); border-color: var(--bronze); color: var(--paper); }
.link-arrow { color: var(--bronze-dk); font-weight: 600; font-size: 15px; letter-spacing: .02em; display: inline-flex; gap: 8px; align-items: center; }
.link-arrow span { transition: transform .2s; }
.link-arrow:hover span { transform: translateX(4px); }

/* =========================================================================
   HEADER
   ========================================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92); backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }
.brand { display: flex; align-items: center; gap: 13px; line-height: 1; }
.brand__seal { width: 40px; height: 40px; flex: none; }
.brand__txt { display: flex; flex-direction: column; }
.brand__name { font-family: var(--serif); font-size: 23px; letter-spacing: .14em; color: var(--ink); }
.brand__sub { font-size: 9.5px; letter-spacing: .34em; text-transform: uppercase; color: var(--bronze); margin-top: 5px; }
.footer-seal { width: 72px; height: 72px; margin-bottom: 22px; opacity: .92; }
.nav__links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav__links a { font-size: 14.5px; font-weight: 500; color: var(--ink-soft); position: relative; padding: 6px 0; }
.nav__links a:hover { color: var(--ink); }
.nav__links a.is-active { color: var(--ink); }
.nav__links a.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--bronze); }
.nav__right { display: flex; align-items: center; gap: 20px; }
.langtoggle { display: inline-flex; align-items: center; font-size: 13px; font-weight: 600; letter-spacing: .06em; color: var(--muted); user-select: none; }
.langtoggle button { background: none; border: 0; padding: 4px 5px; color: var(--muted); font-weight: 600; font-size: 13px; }
.langtoggle button.is-on { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--bronze); }
.langtoggle span { opacity: .4; }
.nav__cta { font-size: 13px; font-weight: 600; letter-spacing: .04em; border: 1px solid var(--line-dk); padding: 9px 16px; }
.nav__cta:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.burger { display: none; background: none; border: 0; width: 40px; height: 40px; flex-direction: column; justify-content: center; gap: 5px; }
.burger span { height: 1.5px; background: var(--ink); display: block; transition: .25s; }

/* =========================================================================
   HERO
   ========================================================================= */
.hero { position: relative; padding: clamp(64px, 10vw, 132px) 0 clamp(56px, 8vw, 96px); background: var(--paper); }
.hero__grid { display: grid; grid-template-columns: 1.06fr .94fr; gap: clamp(40px, 5vw, 84px); align-items: center; }
.hero__inner { max-width: 660px; }
.hero__media { position: relative; }
.hero__media picture, .hero__media img { display: block; width: 100%; }
.hero__media img { aspect-ratio: 4 / 5; object-fit: cover; max-height: 620px; }
.hero__media::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1px solid var(--bronze); z-index: -1; }
.hero .display { margin-bottom: 28px; }
.hero .lead { max-width: 640px; margin-bottom: 38px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__meta { margin-top: clamp(48px, 7vw, 88px); display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.hero__meta .stat { padding: 26px 26px 26px 0; border-right: 1px solid var(--line); }
.hero__meta .stat:last-child { border-right: 0; }
.stat__val { font-family: var(--serif); font-size: clamp(28px, 3.4vw, 40px); font-weight: 300; color: var(--ink); line-height: 1; }
.stat__val .pending { color: var(--bronze-lt); }
.stat__lbl { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 12px; }

/* =========================================================================
   GENERIC SECTIONS
   ========================================================================= */
.sec-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.sec-head h2 { margin-bottom: 20px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.grid-3 .cell { background: var(--paper); padding: clamp(28px, 3vw, 40px); }
.cell .num { font-family: var(--serif); font-size: 17px; color: var(--bronze); display: block; margin-bottom: 18px; }
.cell h3 { font-size: 22px; margin-bottom: 12px; }
.cell p { font-size: 15.5px; color: var(--muted); margin: 0; }

/* Pull statement */
.statement { font-family: var(--serif); font-weight: 300; font-size: clamp(26px, 3.6vw, 44px); line-height: 1.22; letter-spacing: -0.015em; max-width: 980px; }
.statement em { font-style: italic; color: var(--bronze); }

/* =========================================================================
   PERFORMANCE / TABLE
   ========================================================================= */
.perf-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.perf-table th, .perf-table td { text-align: right; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.perf-table th { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.perf-table td:first-child, .perf-table th:first-child { text-align: left; }
.perf-table tbody tr:hover { background: var(--travertine); }
.perf-table .year { font-family: var(--serif); font-size: 18px; }
.pos { color: #2F6B3D; font-weight: 600; }
.neg { color: #A23B2D; font-weight: 600; }
.pending { color: var(--bronze-lt); font-style: italic; }

.bigstat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-dk); }
.bg-ink .bigstat { background: rgba(255,255,255,.14); }
.bigstat .b { background: var(--ink); padding: 36px 30px; }
.bg-ink .bigstat .b { background: var(--ink); }
.bigstat .b .v { font-family: var(--serif); font-weight: 300; font-size: clamp(34px, 4vw, 52px); color: var(--paper); line-height: 1; }
.bigstat .b .v .pending { color: var(--bronze-lt); }
.bigstat .b .l { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #ABA391; margin-top: 14px; }

/* =========================================================================
   HOLDINGS
   ========================================================================= */
.holding {
  display: grid; grid-template-columns: 1fr; gap: 0;
  border: 1px solid var(--line); margin-bottom: 28px; background: var(--paper);
}
.holding__bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 28px clamp(26px, 3vw, 40px); border-bottom: 1px solid var(--line); }
.holding__id { display: flex; align-items: baseline; gap: 18px; }
.holding__id h3 { font-size: clamp(26px, 3vw, 36px); }
.tag { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--bronze-dk); border: 1px solid var(--line); padding: 6px 12px; background: var(--travertine); }
.holding__stake { font-family: var(--serif); font-size: clamp(28px, 3vw, 40px); font-weight: 300; color: var(--bronze); }
.holding__body { padding: clamp(26px, 3vw, 40px); }
.holding__body p { max-width: 720px; }
.holding__meta { display: flex; flex-wrap: wrap; gap: 36px; margin-top: 28px; padding-top: 26px; border-top: 1px solid var(--line); }
.holding__meta .m .k { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.holding__meta .m .v { font-family: var(--serif); font-size: 19px; }

/* =========================================================================
   MEMOS
   ========================================================================= */
.memo-list { border-top: 1px solid var(--line); }
.memo-item { display: grid; grid-template-columns: 150px 1fr auto; gap: 28px; align-items: baseline; padding: 32px 0; border-bottom: 1px solid var(--line); transition: padding-left .2s; }
.memo-item:hover { padding-left: 12px; }
.memo-item .date { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.memo-item h3 { font-size: clamp(21px, 2.2vw, 28px); margin-bottom: 8px; }
.memo-item p { font-size: 15px; color: var(--muted); margin: 0; max-width: 640px; }
.memo-item .arrow { color: var(--bronze); font-size: 20px; }

/* Memo article */
.article { max-width: 720px; margin: 0 auto; }
.article .display { font-size: clamp(34px, 4.6vw, 56px); margin: 18px 0 26px; }
.article .meta-row { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); display: flex; gap: 18px; margin-bottom: 40px; }
.article p { font-size: 18.5px; line-height: 1.72; margin-bottom: 1.4em; }
.article h2 { font-size: 30px; margin: 1.6em 0 .6em; }
.article blockquote { border-left: 2px solid var(--bronze); margin: 1.6em 0; padding: 4px 0 4px 28px; font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--ink-soft); }
.signature { margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--line); }
.signature .sig { font-family: var(--serif); font-size: 26px; }
.signature .role { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }

/* =========================================================================
   CONTACT / FORM
   ========================================================================= */
.form { display: grid; gap: 22px; max-width: 560px; }
.field label { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 9px; }
.field input, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 16px; color: var(--ink);
  padding: 14px 16px; border: 1px solid var(--line); background: var(--paper); border-radius: 0;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--bronze); }
.field textarea { min-height: 140px; resize: vertical; }

/* =========================================================================
   PRIVATE AREA NOTICE
   ========================================================================= */
.gate { max-width: 520px; margin: 0 auto; text-align: center; }
.gate .lock { width: 44px; height: 44px; margin: 0 auto 28px; color: var(--bronze); }

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer { background: var(--ink); color: #C9C2B4; padding: clamp(56px, 7vw, 88px) 0 40px; }
.site-footer a { color: #C9C2B4; }
.site-footer a:hover { color: var(--paper); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.14); }
.footer-brand .brand__name { color: var(--paper); }
.footer-brand p { font-size: 14px; max-width: 320px; margin-top: 20px; color: #9A9385; }
.footer-col h4 { font-family: var(--sans); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #8A8474; margin-bottom: 18px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 12px; font-size: 14.5px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 32px; font-size: 12.5px; color: #847E70; }
.footer-bottom .disclaimer { max-width: 720px; line-height: 1.6; }

/* =========================================================================
   NAV CHART
   ========================================================================= */
.navchart { width: 100%; }
.navchart svg { width: 100%; height: auto; display: block; }

/* =========================================================================
   SCROLL REVEAL (added only when JS enables it)
   ========================================================================= */
html.reveal-on [data-reveal] {
  opacity: 0; transform: translateY(22px);
  transition: opacity .8s cubic-bezier(.2,.6,.2,1), transform .8s cubic-bezier(.2,.6,.2,1);
  will-change: opacity, transform;
}
html.reveal-on [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.reveal-on [data-reveal] { opacity: 1 !important; transform: none !important; transition: none; }
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__media { max-width: 480px; }
  .hero__media img { aspect-ratio: 16 / 10; max-height: 360px; }
  .hero__media::before { inset: 12px -12px -12px 12px; }
  .grid-2, .footer-top { grid-template-columns: 1fr; }
  .grid-3, .bigstat { grid-template-columns: 1fr; }
  .hero__meta { grid-template-columns: 1fr 1fr; }
  .hero__meta .stat:nth-child(2) { border-right: 0; }
  .memo-item { grid-template-columns: 1fr; gap: 8px; }
  .memo-item .arrow { display: none; }
}
@media (max-width: 760px) {
  .nav__links, .nav__cta { display: none; }
  .burger { display: flex; }
  .nav__links.is-open {
    display: flex; flex-direction: column; position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 24px var(--gut); gap: 20px; align-items: flex-start;
  }
  .hero__meta { grid-template-columns: 1fr; }
  .hero__meta .stat { border-right: 0; }
}
