/* Athesya, pagina pubblica (athesya.com). Stile scelto dall'utente il 17/11 (file di esempio: barra sospesa, griglia leggera,
   Plus Jakarta Sans), colori dell'app, impostazione con la skill frontend-design: un solo elemento memorabile (il disegno del
   "fiume" che dal logo arriva all'operazione), il resto sobrio. Persone in Plus Jakarta Sans, strumenti in JetBrains Mono.
   Solo tema chiaro. Caratteri nella cartella fonts/ (licenze OFL accanto), niente chiamate a Google. */

@font-face { font-family: "Plus Jakarta Sans"; src: url(/fonts/jakarta-400.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url(/fonts/jakarta-500.woff2) format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url(/fonts/jakarta-600.woff2) format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url(/fonts/jakarta-700.woff2) format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url(/fonts/jakarta-800.woff2) format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(/fonts/jetbrains-mono-500.woff2) format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --notte: #11273C;       /* testo, bottoni */
  --notte-2: #1B3654;
  --petrolio: #007A8A;    /* inizio del fiume, numeri dei passi */
  --acqua: #12A9BA;
  --menta: #36C9A0;
  --oro: #E0B73E;         /* solo la punta: l'operazione */
  --fondo: #F5F9FA;
  --carta: #FFFFFF;
  --ardesia: #4F5E69;     /* testo secondario */
  --linea: #DCE5EA;
  --linea-2: #C9D6DD;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--fondo); color: var(--notte); font: 400 16.5px/1.6 var(--sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img, svg { display: block; }
a { color: inherit; }
::selection { background: rgba(0, 122, 138, .2); }
:focus-visible { outline: 2px solid var(--petrolio); outline-offset: 3px; border-radius: 8px; }
section[id] { scroll-margin-top: 96px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* barra sospesa */
.bar { position: fixed; top: 14px; left: 0; right: 0; z-index: 20; padding: 0 16px; }
.bar-in {
  max-width: 1120px; margin: 0 auto; height: 60px; padding: 0 10px 0 18px;
  display: flex; align-items: center; gap: 24px;
  background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  border: 1px solid rgba(201, 214, 221, .75); border-radius: 16px; box-shadow: 0 8px 30px rgba(17, 39, 60, .05);
}
.brand img { height: 28px; width: auto; }
.nav { display: flex; gap: 26px; margin-left: auto; font-size: 14px; font-weight: 500; color: var(--ardesia); }
.nav a { text-decoration: none; }
.nav a:hover { color: var(--notte); }
.bar .btn { margin-left: auto; }
.nav + .btn { margin-left: 4px; }

/* bottoni */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 20px; border-radius: 12px;
  background: var(--notte); color: #FFFFFF; text-decoration: none;
  font: 600 14.5px/1.2 var(--sans); transition: background-color .15s ease;
}
.btn:hover { background: var(--notte-2); }
.btn-sm { padding: 9px 16px; border-radius: 10px; font-size: 13.5px; }
.btn-light { background: var(--carta); color: var(--notte); box-shadow: inset 0 0 0 1px var(--linea-2); }
.btn-light:hover { background: #EEF4F6; }

/* prima schermata: griglia leggera, testo a sinistra, il fiume a destra */
.hero {
  position: relative; overflow: hidden; padding: 112px 0 36px;
  background-image:
    linear-gradient(to right, rgba(17, 39, 60, .035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(17, 39, 60, .035) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 72% 46%, rgba(54, 201, 160, .09), transparent 52%); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; pointer-events: none; background: linear-gradient(to bottom, transparent, var(--fondo)); }
.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: 5fr 7fr; gap: 36px; align-items: center; }
.pill { display: inline-block; margin: 0; padding: 6px 14px; border-radius: 999px; background: var(--carta); border: 1px solid var(--linea); font-size: 13px; font-weight: 500; color: var(--ardesia); }
h1 { margin: 18px 0 16px; font: 800 clamp(40px, 4.9vw, 56px)/1.03 var(--sans); letter-spacing: -.035em; color: var(--notte); }
h1 .pt { margin-left: -.07em; }   /* virgola e punto di Plus Jakarta Sans: troppo staccati con le lettere strette */
.lead { margin: 0 0 26px; max-width: 30em; font-size: 17px; line-height: 1.65; color: var(--ardesia); }
.lead strong { font-weight: 600; color: var(--notte); }
.cta { display: flex; flex-wrap: wrap; gap: 10px; }
.note { margin: 14px 0 0; font-size: 13.5px; color: var(--ardesia); }

/* il disegno: rete di contatti, il percorso (fiume) che passa dalle persone e arriva all'operazione, gli strumenti come affluenti */
.flow { margin: 0; }
.flow-box { position: relative; width: 100%; max-width: 600px; aspect-ratio: 600 / 540; margin: 0 auto; container-type: inline-size; }
.flow-box svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.net path { fill: none; stroke: #DCE5EA; stroke-width: 1; }
.ties path { fill: none; stroke: #BFD0D8; stroke-width: 1; }
.dots circle { fill: #C2D1D9; }
.tribs path { fill: none; stroke: #9AAEBA; stroke-width: 1.1; stroke-dasharray: 3 4; }
.river-bed { fill: none; stroke: rgba(18, 169, 186, .12); stroke-width: 16; stroke-linecap: round; }
.river { fill: none; stroke: url(#fiume); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: 0; }

.tool, .who { position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); }
.t-notizie { --x: 11.67; --y: 62.22; } .t-bilanci { --x: 62; --y: 80.74; } .t-dati { --x: 32.67; --y: 41.85; } .t-ai { --x: 94.33; --y: 39.63; }
.p-advisor { --x: 15.32; --y: 88.77; } .p-banker { --x: 35.78; --y: 79.47; } .p-imprenditore { --x: 46.01; --y: 56.45; }
.p-consulente { --x: 65.79; --y: 51.23; } .p-investitore { --x: 78.77; --y: 38.09; }

.tool {
  transform: translate(-50%, -50%); white-space: nowrap;
  padding: 3px 8px; border-radius: 6px; background: rgba(245, 249, 250, .95); border: 1px dashed #B5C6CF;
  font: 500 clamp(10.5px, 2.15cqw, 12.5px)/1.3 var(--mono); color: var(--ardesia);
}
.who { width: 0; height: 0; }
.who i {
  position: absolute; left: 0; top: 0; width: clamp(14px, 3.3cqw, 20px); aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; background: var(--carta); border: 2px solid var(--petrolio); box-shadow: 0 0 0 4px rgba(18, 169, 186, .15);
}
.who i::after { content: ""; position: absolute; inset: 22%; border-radius: 50%; background: var(--petrolio); }
.who b {
  position: absolute; white-space: nowrap; padding: 6px 10px;
  background: var(--carta); border: 1px solid var(--linea); border-radius: 10px; box-shadow: 0 6px 16px -8px rgba(17, 39, 60, .18);
  font: 700 clamp(11px, 2.3cqw, 13.5px)/1.2 var(--sans); color: var(--notte);
}
.who small { display: block; margin-top: 2px; font: 500 clamp(10px, 2cqw, 12px)/1.25 var(--sans); color: var(--ardesia); }
.up b { bottom: clamp(12px, 3cqw, 18px); left: -14px; }
.down b { top: clamp(12px, 3cqw, 18px); left: -14px; }
.left b { right: clamp(12px, 3cqw, 18px); top: 0; transform: translateY(-50%); }
.right b { left: clamp(12px, 3cqw, 18px); top: 0; transform: translateY(-50%); }

.deal {
  position: absolute; right: 0; top: 19.3%; transform: translateY(-50%); overflow: hidden;
  padding: clamp(10px, 2.4cqw, 14px) clamp(12px, 3cqw, 18px);
  background: var(--carta); border: 1px solid var(--linea); border-radius: 14px; box-shadow: 0 18px 40px -16px rgba(17, 39, 60, .25);
}
.deal::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, #E0B73E, #ECCF80); }
.deal b { display: block; font: 800 clamp(14px, 3cqw, 18px)/1.15 var(--sans); letter-spacing: -.015em; color: var(--notte); }
.deal small { display: block; margin-top: 3px; font: 500 clamp(10px, 2.1cqw, 12.5px)/1.3 var(--sans); color: var(--ardesia); }
.flow figcaption { margin-top: 6px; text-align: center; font-size: 13.5px; color: var(--ardesia); }

@container (max-width: 470px) {
  .who small, .deal small { display: none; }
}

/* l'unico movimento: all'apertura il percorso si disegna, le persone compaiono quando il fiume le raggiunge, poi l'operazione */
@media (prefers-reduced-motion: no-preference) {
  .river { stroke-dashoffset: 1; animation: scorre 1.9s .25s cubic-bezier(.6, 0, .3, 1) forwards; }
  .who, .deal, .tool, .tribs { opacity: 0; animation: compare .5s ease-out forwards; }
  .p-advisor { animation-delay: .35s; } .p-banker { animation-delay: .7s; } .p-imprenditore { animation-delay: 1.05s; }
  .p-consulente { animation-delay: 1.35s; } .p-investitore { animation-delay: 1.65s; }
  .tool, .tribs { animation-delay: 1.9s; }
  .deal { animation: compare-scheda .6s 2s cubic-bezier(.2, .8, .2, 1) forwards; }
  @keyframes scorre { to { stroke-dashoffset: 0; } }
  @keyframes compare { to { opacity: 1; } }
  @keyframes compare-scheda { from { opacity: 0; transform: translateY(calc(-50% + 8px)); } to { opacity: 1; transform: translateY(-50%); } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

/* l'idea: la frase e i tre principi nella stessa fascia */
.idea { padding: 56px 0 52px; background: var(--carta); border-top: 1px solid var(--linea); border-bottom: 1px solid var(--linea); }
.idea blockquote { margin: 0 auto; max-width: 28em; text-align: center; font: 700 clamp(22px, 2.7vw, 30px)/1.3 var(--sans); letter-spacing: -.02em; color: var(--notte); }
.cols { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 40px; border-top: 1px solid var(--linea); }
.cols article { padding: 22px 28px 0 0; }
.cols article + article { padding-left: 28px; border-left: 1px solid var(--linea); }
.cols h3 { margin: 0 0 6px; font: 700 17.5px/1.3 var(--sans); color: var(--notte); }
.cols p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--ardesia); }

/* come si entra */
.access { padding: 52px 0 60px; }
.access-box {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center;
  padding: 36px 40px; background: var(--carta); border: 1px solid var(--linea); border-radius: 20px;
  box-shadow: 0 12px 32px -20px rgba(17, 39, 60, .2);
}
.access-box::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, #007A8A, #36C9A0 70%, #E0B73E); }
.access h2 { margin: 0 0 10px; font: 800 clamp(24px, 2.6vw, 30px)/1.15 var(--sans); letter-spacing: -.025em; color: var(--notte); }
.access p { margin: 0; max-width: 34em; font-size: 16px; color: var(--ardesia); }
.steps { list-style: none; margin: 0 0 18px; padding: 0; counter-reset: passo; }
.steps li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--linea); font-size: 15px; color: var(--notte); }
.steps li::before {
  counter-increment: passo; content: counter(passo); flex: none; display: grid; place-items: center;
  width: 24px; height: 24px; border-radius: 50%; background: #E3F3F4; color: var(--petrolio); font: 500 12px/1 var(--mono);
}
.steps code { font: 500 14px/1.2 var(--mono); color: var(--notte); }

/* piede */
.foot { border-top: 1px solid var(--linea); }
.foot-in { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px 28px; font-size: 13.5px; color: var(--ardesia); }
.foot a { color: var(--petrolio); font-weight: 600; text-decoration: none; }
.foot a:hover { text-decoration: underline; }

/* pagina non trovata */
.nf { padding: 150px 0 120px; }

@media (max-width: 960px) {
  .hero { padding-top: 104px; }
  .hero-in { grid-template-columns: 1fr; gap: 28px; }
  .flow-box { max-width: 560px; }
  .access-box { grid-template-columns: 1fr; gap: 24px; padding: 30px 28px; }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .bar .btn { margin-left: auto; }
  .cols { grid-template-columns: 1fr; border-top: 0; margin-top: 32px; }
  .cols article, .cols article + article { padding: 18px 0; border-left: 0; border-top: 1px solid var(--linea); }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .foot-in { padding: 18px 16px 26px; }
  .bar { top: 10px; padding: 0 10px; }
  .bar-in { height: 56px; padding: 0 8px 0 14px; }
  .brand img { height: 25px; }
  .hero { padding: 92px 0 24px; }
  .lead { font-size: 16.5px; }
  .idea { padding: 44px 0 36px; }
  .access { padding: 40px 0 48px; }
  .access-box { padding: 26px 20px; border-radius: 16px; }
}
