/* Aetneas Design · home (bozza) — riferimento Arko Bureau */
:root {
  --ground: #ebeae7;      /* carta calda */
  --ground-2: #e0dfda;    /* passo di tono */
  --ink: #1d1b18;
  --ink-2: #57524b;
  --dark: #24211d;
  --on-dark: #f2efe9;
  --line: rgba(29, 27, 24, .18);
  --m: clamp(16px, 2.6vw, 40px);           /* margine esterno */
  --gap: clamp(96px, 12vw, 180px);         /* tra sezioni */
  --font: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 17px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
::selection { background: var(--ink); color: var(--ground); }

/* ---------- tipografia ---------- */
.h-upper { font-weight: 400; text-transform: uppercase; font-size: clamp(24px, 2.4vw, 36px); line-height: 1.05; letter-spacing: -.01em; max-width: 22ch; }
.text { font-size: clamp(16px, 1.15vw, 18px); max-width: 52ch; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; font: 500 15px/1 var(--font); border: 0; border-radius: 0; cursor: pointer; transition: transform .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease); }
.btn:active { transform: scale(.97); }
.btn--light { background: var(--on-dark); color: var(--ink); }
.btn--light:hover { background: #fff; }
.btn--dark { background: var(--ink); color: var(--on-dark); }
.btn--dark:hover { background: #000; }
.link { border-bottom: 1px solid currentColor; padding-bottom: 2px; }

.arrow { font-size: 22px; line-height: 1; transition: transform .3s var(--ease); }

/* ---------- hero ---------- */
.hero { position: relative; margin: 0; min-height: 100svh; color: var(--on-dark); overflow: hidden; background: var(--dark); }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; transform: scale(1.06); animation: heroIn 2.4s var(--ease) forwards; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,17,14,.62) 0%, rgba(20,17,14,.28) 38%, rgba(20,17,14,0) 58%, rgba(20,17,14,.38) 100%); pointer-events: none; }
.hero__inner { position: relative; z-index: 1; display: flex; flex-direction: column; min-height: inherit; padding: clamp(18px, 2vw, 28px) var(--m) clamp(28px, 3vw, 48px); }

.nav { display: flex; align-items: center; gap: 24px; }
.nav__brand { font-size: 16px; text-transform: uppercase; letter-spacing: .01em; font-weight: 300; }
.nav__brand b { font-weight: 600; }
.nav__links { display: flex; gap: clamp(16px, 2vw, 32px); margin-left: auto; font-size: 15px; }
.nav__links a { position: relative; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav__links a:hover::after { transform: scaleX(1); }

.hero__body { margin-top: clamp(40px, 8vh, 96px); flex: 1; display: flex; flex-direction: column; }
.hero__title { font-size: clamp(56px, 12.4vw, 220px); line-height: .86; letter-spacing: -.045em; text-transform: uppercase; display: flex; flex-wrap: wrap; }
.hero__light { font-weight: 300; }
.hero__bold { font-weight: 600; }
.hero__foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; padding-top: 48px; }
.hero__lead { max-width: 40ch; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.45; }

@keyframes heroIn { to { transform: scale(1); } }

/* ---------- blocchi comuni ---------- */
main > section { padding: 0 var(--m); margin-top: var(--gap); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }

/* ---------- about + numeri ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(56px, 6vw, 96px); border-top: 1px solid var(--line); }
.stat { padding: 28px 24px 8px 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat dt { font-size: clamp(40px, 4.6vw, 72px); font-weight: 300; letter-spacing: -.04em; line-height: 1; }
.stat dd { margin-top: 16px; font-size: 15px; color: var(--ink-2); max-width: 24ch; }

/* ---------- progetti ---------- */
.tabs { display: flex; justify-content: center; gap: 8px; margin: clamp(48px, 5vw, 72px) 0 28px; }
.tab { font: 400 15px/1 var(--font); color: var(--ink-2); background: transparent; border: 0; padding: 12px 16px; cursor: pointer; transition: color .25s var(--ease), background-color .25s var(--ease); }
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--ink); background: var(--ground-2); }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 2vw, 32px) clamp(16px, 1.6vw, 24px); }
.grid[hidden] { display: none; }
.card { display: block; }
.card__img { overflow: hidden; aspect-ratio: 16 / 10; background: var(--ground-2); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card__img img { transform: scale(1.04); }
.card:hover .arrow, .row:hover .arrow { transform: translate(3px, -3px); }
.card__meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-top: 14px; }
.card__meta h3 { font-size: 17px; font-weight: 500; }
.card__meta p { font-size: 14px; color: var(--ink-2); margin-top: 2px; }

/* ---------- definisci il progetto (live) ---------- */
.define { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 3vw, 48px); align-items: stretch; }
.define__img { overflow: hidden; min-height: 100%; }
.define__img img { width: 100%; height: 100%; object-fit: cover; }
.define__body { background: var(--ground-2); padding: clamp(28px, 3.4vw, 56px); display: flex; flex-direction: column; gap: 20px; }
.picker { display: flex; flex-direction: column; gap: 22px; margin-top: 8px; }
.picker fieldset { border: 0; margin: 0; padding: 0; }
.picker legend { font-size: 15px; font-weight: 500; margin-bottom: 10px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-block; padding: 11px 16px; font-size: 15px; background: var(--ground); transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease); }
.chip:hover span { background: #fff; }
.chip input:checked + span { background: var(--ink); color: var(--on-dark); }
.chip input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.chip:active span { transform: scale(.97); }
.picker__preview { font-size: 16px; padding: 16px 18px; background: var(--ground); border-left: 3px solid var(--ink); }
.picker .btn { align-self: flex-start; }

/* ---------- Utopian Garden ---------- */
.feature { display: grid; grid-template-columns: 1.7fr 1fr; gap: clamp(16px, 1.6vw, 24px); }
.feature__media { position: relative; overflow: hidden; min-height: clamp(520px, 52vw, 760px); background: var(--dark); }
.feature__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature__card { position: absolute; left: clamp(16px, 2vw, 32px); bottom: clamp(16px, 2vw, 32px); width: min(440px, calc(100% - 32px)); background: var(--ground); padding: clamp(22px, 2.4vw, 36px); display: flex; flex-direction: column; gap: 16px; }
.feature__card p { font-size: 16px; }
.feature__facts { display: grid; gap: 10px; padding-top: 6px; border-top: 1px solid var(--line); }
.feature__facts div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; font-size: 14px; padding-top: 10px; }
.feature__facts dt { color: var(--ink-2); }
.compare { display: flex; flex-direction: column; gap: 12px; }
.compare__switch { display: flex; gap: 4px; }
.compare__stage { position: relative; flex: 1; min-height: 420px; background: #fff; overflow: hidden; }
.compare__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .6s var(--ease), transform .8s var(--ease); transform: scale(1.02); }
.compare__img[data-view="render"] { object-fit: cover; }
.compare__img.is-on { opacity: 1; transform: none; }

/* ---------- servizi ---------- */
.rows { margin-top: clamp(48px, 5vw, 80px); border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 64px 1.1fr 1.4fr .8fr 32px; gap: 24px; align-items: baseline; padding: 28px 0; border-bottom: 1px solid var(--line); transition: background-color .3s var(--ease), padding .3s var(--ease); }
.row:hover { background: var(--ground-2); }
.row__n { font-size: 15px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.row__t { font-size: clamp(20px, 1.7vw, 26px); font-weight: 400; letter-spacing: -.01em; line-height: 1.15; }
.row__d { font-size: 16px; }
.row__x { font-size: 14px; color: var(--ink-2); }
.row .arrow { justify-self: end; }

/* ---------- processo (Nordhabitat) ---------- */
.process { }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(40px, 4vw, 64px); }
.steps li { padding: 0 24px 0 20px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.steps__n { font-size: clamp(36px, 3.4vw, 52px); font-weight: 300; letter-spacing: -.03em; line-height: 1; padding-bottom: clamp(48px, 6vw, 96px); }
.steps h3 { font-size: 18px; font-weight: 500; }
.steps p { font-size: 15px; color: var(--ink-2); }

/* ---------- team ---------- */
.team__body { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: start; margin-top: clamp(48px, 5vw, 80px); }
.people { border-top: 1px solid var(--line); }
.people li { display: grid; grid-template-columns: 48px 1fr 1.3fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.people__n { font-size: 15px; color: var(--ink-2); }
.people__name { font-size: 18px; font-weight: 500; }
.people__role { font-size: 15px; color: var(--ink-2); }
.team__art { overflow: hidden; }
.team__art img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.team__art figcaption { font-size: 14px; color: var(--ink-2); margin-top: 10px; }

/* ---------- CTA ---------- */
.cta { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 1.6vw, 24px); }
.cta__body { background: var(--ground-2); padding: clamp(28px, 3.4vw, 56px); display: grid; grid-template-rows: auto 1fr auto; gap: 24px; }
.cta__iso { width: 100%; max-height: 380px; object-fit: contain; mix-blend-mode: multiply; }
.cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.cta__photo { overflow: hidden; min-height: 520px; }
.cta__photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- footer ---------- */
.footer { margin: var(--gap) 0 0; background: var(--ground-2); padding: clamp(40px, 4vw, 72px) var(--m) 24px; }
.footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) 1.2fr; gap: 32px; }
.footer__h { font-size: 15px; font-weight: 500; margin-bottom: 12px; }
.footer__cols li { font-size: 15px; color: var(--ink-2); line-height: 1.8; }
.footer__cols a:hover { color: var(--ink); }
.footer__mark { margin-top: clamp(64px, 8vw, 140px); font-size: clamp(44px, 12.1vw, 214px); line-height: .82; letter-spacing: -.05em; text-transform: uppercase; font-weight: 300; white-space: nowrap; }
.footer__mark b { font-weight: 600; }
.footer__legal { display: flex; gap: 24px; margin-top: 24px; font-size: 13px; color: var(--ink-2); }
.footer__legal span { margin-right: auto; }

/* ---------- ingressi ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- tablet ---------- */
@media (max-width: 1024px) {
  .row { grid-template-columns: 48px 1fr 1.3fr 32px; }
  .row__x { display: none; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .feature { grid-template-columns: 1fr; }
  .compare__stage { min-height: 520px; }
  .team__body { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr 1fr; }
}

/* ---------- telefono ---------- */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav__links { display: none; }
  .nav__cta { margin-left: auto; min-height: 40px; padding: 0 14px; font-size: 14px; }
  .hero__title { flex-direction: column; font-size: 17.5vw; }
  .hero__foot { flex-direction: column; align-items: flex-start; gap: 20px; }
  .split, .define, .cta { grid-template-columns: 1fr; gap: 20px; }
  .define__img { aspect-ratio: 3 / 2; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .grid { grid-template-columns: 1fr; }
  .tabs { justify-content: flex-start; }
  .row { grid-template-columns: 36px 1fr 24px; row-gap: 8px; padding: 22px 0; }
  .row__d { grid-column: 2 / 3; grid-row: 2; }
  .row .arrow { grid-column: 3; grid-row: 1; }
  .steps { grid-template-columns: 1fr; }
  .steps li { padding-bottom: 8px; }
  .steps__n { padding-bottom: 12px; }
  .feature__media { min-height: 0; display: flex; flex-direction: column; background: var(--ground); }
  .feature__bg { position: static; aspect-ratio: 4 / 3; height: auto; }
  .feature__card { position: static; width: 100%; padding: 22px 0 0; background: transparent; }
  .compare__stage { min-height: 0; aspect-ratio: 4 / 5; }
  .people li { grid-template-columns: 36px 1fr; }
  .people__role { grid-column: 2; }
  .cta__photo { min-height: 0; aspect-ratio: 4 / 3; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__mark { font-size: 12vw; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .hero__img { transform: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
