/* Outfit per i titoli: file nel sito (licenza in fonts/Outfit-OFL.txt) */
@font-face {
  font-family: "Outfit";
  src: url("/fonts/Outfit-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
/* Angolo del bordo che gira attorno ai bottoni */
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

:root {
  color-scheme: light dark;
  --paper: #f3f1f6;
  --surface: #ffffff;
  --surface-sunk: #e9e5ef;
  --ink: #211a2a;
  --ink-soft: #564e62;
  --ink-faint: #6f687c;
  --flame: #f07a3e;
  --flame-hi: #ffc2a0;
  --brand: #b93a0a;
  --onflame: #211a2a;
  --rule: #d9d3e2;
  --rule-soft: #e7e2ee;
  --data-muscle: #2563a8;
  --data-fat: #d6336c;
  --data-water: #12898a;
  --band: #211a2a;
  --band-ink: #f3f1f6;
  --band-soft: #b9b0c6;
  --band-rule: #3b3247;
  --file-xls: #1d7044;
  --file-doc: #2a5ab0;
  --file-pdf: #c8322b;
  --sil-opacity: .035;
  --font: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --display: "Outfit", ui-sans-serif, system-ui, sans-serif;
  --logo: "Montserrat", ui-sans-serif, system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #15111b;
    --surface: #1f1927;
    --surface-sunk: #0f0c14;
    --ink: #f4f1f8;
    --ink-soft: #bcb3c9;
    --ink-faint: #9b92a9;
    --flame: #ec8450;
    --flame-hi: #ffd0b4;
    --brand: #f39563;
    --rule: #362d42;
    --rule-soft: #2a2333;
    --data-muscle: #6aa8ec;
    --data-fat: #ff6fa3;
    --data-water: #4fd0cc;
    --band: #0d0a11;
    --band-ink: #f4f1f8;
    --band-soft: #a89fb6;
    --band-rule: #2d2537;
    --file-xls: #2f9a61;
    --file-doc: #4b7fd6;
    --file-pdf: #e0524a;
    --sil-opacity: .03;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; scroll-padding-top: 84px; }
body {
  margin: 0; min-height: 100dvh;
  background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.6;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Il profilo di Atena dietro a tutto il sito, appena visibile */
body::before {
  content: ""; position: fixed; z-index: -1; pointer-events: none;
  right: -12vw; bottom: -6vh; width: min(92vh, 100vw); aspect-ratio: 1;
  background: url("/atena-silhouette.png") center / contain no-repeat;
  opacity: var(--sil-opacity);
  transform: translateY(calc(var(--sp, 0) * -6vh));
}
@media (prefers-color-scheme: dark) { body::before { filter: invert(1); } }
@media (max-width: 719px) { body::before { right: -30vw; width: 120vw; } }

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; line-height: 1.08; letter-spacing: -.005em; text-wrap: balance; }
h1, h2 { font-weight: 800; letter-spacing: -.012em; }
p { margin: 0; text-wrap: pretty; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
.tnum { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2.5px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--flame); color: var(--onflame); }
.skip { position: absolute; left: 12px; top: -60px; background: var(--surface); color: var(--ink); padding: 10px 16px; border-radius: 8px; z-index: 60; border: 1px solid var(--rule); }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 36px; } }

/* Bottoni: pillola arancio, un filo di luce che le gira attorno, riflesso al passaggio */
.btn {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 32px; border-radius: 999px;
  font: 700 1.0313rem/1 var(--font); font-stretch: 108%; letter-spacing: .005em;
  text-decoration: none; cursor: pointer; border: 0;
  color: var(--onflame);
  background: linear-gradient(110deg, var(--flame) 0 38%, var(--flame-hi) 50%, var(--flame) 62% 100%) 100% 0 / 260% 100%;
  box-shadow: 0 12px 26px -14px color-mix(in srgb, var(--flame) 90%, transparent);
  transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s, background-position .7s cubic-bezier(.2,.7,.2,1);
}
.btn::before {
  content: ""; position: absolute; inset: -5px; border-radius: inherit; padding: 2px; z-index: -1;
  background: conic-gradient(from var(--ang), color-mix(in srgb, var(--flame) 22%, transparent) 0 52%, color-mix(in srgb, var(--flame) 35%, transparent) 70%, var(--flame) 88%, var(--flame-hi) 96%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: orbit 3.2s linear infinite;
}
.btn:active { transform: translateY(0) scale(.98); }
/* L'effetto al passaggio solo dove c'è un puntatore: sul telefono resterebbe "appiccicato" dopo il tocco */
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); background-position: 0 0; box-shadow: 0 18px 34px -14px color-mix(in srgb, var(--flame) 95%, transparent); }
}
/* Bottone secondario: solo contorno, per "Accedi" */
.btn-line {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1.5px solid var(--ink); background: transparent; color: var(--ink);
  font: 700 .9375rem/1 var(--font); font-stretch: 104%; letter-spacing: .005em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, color .2s, transform .2s;
}
.btn-line svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.btn-line:active { transform: scale(.97); }
@media (hover: hover) { .btn-line:hover { background: var(--ink); color: var(--paper); } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@keyframes orbit { to { --ang: 360deg; } }
.btn[disabled] { opacity: .7; cursor: progress; }
.btn[disabled]::before { animation-duration: .9s; }
.link { display: inline-block; padding: 10px 0; font-weight: 700; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; text-decoration-color: var(--flame); transition: text-underline-offset .2s, color .2s; }
.link:hover { color: var(--brand); text-underline-offset: 8px; }
footer.foot { padding: 32px 0 48px; border-top: 1px solid var(--rule); color: var(--ink-faint); font-size: .9375rem; }
.foot-grid { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px 32px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0 12px; margin: 0 -8px; }
.foot nav a, .foot .ck-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; text-decoration: none; color: var(--ink-soft); font-weight: 600; }
.foot nav a:hover, .foot .ck-link:hover, .foot nav a:active, .foot .ck-link:active { color: var(--brand); }
.foot .brandmark { font-size: 1.25rem; min-height: 44px; }
.foot .brandmark img { width: 36px; height: 36px; }
.legal { margin-top: 20px; font-size: .875rem; }
.legal + .legal { margin-top: 4px; }
.legal a { display: inline-block; padding: 12px 0; margin: -12px 0; color: var(--ink-soft); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; text-decoration-color: var(--flame); transition: color .2s; }
.legal a:hover { color: var(--brand); }
:root { --sp: 0; }

/* Pagine interne: testata semplice, contenuto di testo, errori */
.pg-head { border-bottom: 1px solid var(--rule); }
.pg-head .bar { min-height: 76px; }
.pg-head .bar-end { display: flex; align-items: center; gap: 4px; }
.pg-head .back { white-space: nowrap; display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; font-weight: 600; font-size: .9375rem; color: var(--ink-soft); text-decoration: none; }
.pg-head .back:hover, .pg-head .back:active { color: var(--brand); }
/* Su telefono il logo porta già alla home: "Torna al sito" lascia posto ad Accedi */
@media (max-width: 460px) { .pg-head .back { display: none; } }
@media (max-width: 400px) {
  .pg-head .bar { gap: 8px; }
  .pg-head .brandmark { min-height: 44px; gap: 8px; font-size: 1.3125rem; }
  .pg-head .brandmark img { width: 40px; height: 40px; }
  .pg-head .btn-line { padding: 0 14px; }
}
.doc { padding: 48px 0 72px; max-width: 46rem; }
.doc h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); }
.doc .upd { margin-top: 12px; color: var(--ink-faint); font-size: .9375rem; }
.doc h2 { font-size: 1.5rem; margin-top: 44px; }
.doc p, .doc li { color: var(--ink-soft); margin-top: 12px; }
.doc ul { list-style: disc; padding-left: 1.25rem; }
.doc a:not(.btn) { color: var(--brand); text-underline-offset: 3px; }
.doc strong { color: var(--ink); }
.tbl-wrap { margin-top: 16px; overflow-x: auto; border: 1px solid var(--rule); border-radius: 14px; background: var(--surface); }
.doc table { width: 100%; border-collapse: collapse; font-size: .9375rem; min-width: 560px; }
.doc th, .doc td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--rule); vertical-align: top; color: var(--ink-soft); }
.doc th { color: var(--ink); font-weight: 700; background: var(--surface-sunk); }
.doc tr:last-child td { border-bottom: 0; }
.doc code { font-size: .9em; color: var(--ink); }
.doc .btn { margin-top: 20px; }

.err-main { min-height: calc(100dvh - 77px); display: grid; place-items: center; padding: 40px 0 64px; }
.err { text-align: center; display: grid; justify-items: center; gap: 18px; max-width: 34rem; margin: 0 auto; }
.err img { width: 112px; height: 112px; border-radius: 50%; }
.err .code { font-family: var(--display); font-weight: 800; font-size: clamp(4.5rem, 20vw, 8rem); line-height: .9; letter-spacing: -.03em; color: var(--brand); }
.err h1 { font-size: clamp(1.75rem, 5vw, 2.5rem); }
.err p { color: var(--ink-soft); font-size: 1.125rem; }
.err .btn { margin-top: 12px; }
.err-list { display: grid; gap: 12px; margin-top: 28px; }
.err-list a { display: flex; justify-content: space-between; gap: 16px; padding: 16px 18px; border: 1px solid var(--rule); border-radius: 14px; background: var(--surface); text-decoration: none; font-weight: 700; }
.err-list a span { color: var(--ink-faint); font-weight: 400; }
.err-list a:hover { border-color: var(--flame); }

@media (prefers-reduced-motion: no-preference) {
  @keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
  .err > * { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
  .err > :nth-child(2) { animation-delay: .08s; } .err > :nth-child(3) { animation-delay: .16s; }
  .err > :nth-child(4) { animation-delay: .24s; } .err > :nth-child(5) { animation-delay: .32s; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn::before { animation: none; --ang: 200deg; }
  .btn, .btn-line, .link, .legal a { transition: none !important; }
  .btn:hover { transform: none; }
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brandmark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--logo); font-weight: 800; font-size: 1.5rem; letter-spacing: -.01em; }
.brandmark img { width: 46px; height: 46px; border-radius: 50%; }

/* Privacy del servizio */
.doc h3 { font-size: 1.1875rem; margin-top: 28px; }
.doc .btn { margin-top: 16px; }
/* Tabelle a due colonne: stanno nello schermo del telefono, senza scorrere. */
.doc table.t-fit { min-width: 0; }
.doc-toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.doc .doc-toc a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border: 1px solid var(--rule); border-radius: 999px; background: var(--surface); color: var(--ink); text-decoration: none; font-size: .9375rem; font-weight: 600; }
.doc .doc-toc a:hover { border-color: var(--brand); color: var(--brand); }
.doc [id] { scroll-margin-top: 96px; }

/* Guarda l'app */
.ga { padding-top: 40px; padding-bottom: 72px; }
.ga figure { margin: 0; }
.ga figcaption { margin-top: 12px; color: var(--ink-soft); font-size: .9375rem; line-height: 1.45; }
.ga figcaption strong { color: var(--ink); }
.ga img, .ga video { display: block; width: 100%; height: auto; background: var(--surface-sunk); }
.ga-hero { display: grid; gap: 40px; align-items: center; }
.ga-hero h1 { font-size: clamp(2.4rem, 7vw, 4.25rem); }
.ga-lead { margin-top: 20px; max-width: 34rem; color: var(--ink-soft); font-size: 1.1875rem; }
.ga-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 28px; }
.ga-cta span { color: var(--ink-soft); }
.ga-phone img, .ga-phone video { border: 6px solid #15111b; border-radius: 30px; box-shadow: 0 18px 40px rgba(33, 26, 42, .18); }
.ga-phone-hero { width: min(300px, 100%); margin: 0 auto; }
.ga-sec { margin-top: 72px; }
.ga-sec h2, .ga-end h2 { font-size: clamp(1.9rem, 5vw, 3rem); }
.ga-sub { margin-top: 12px; max-width: 38rem; color: var(--ink-soft); font-size: 1.125rem; }
.ga-phones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; margin-top: 36px; }
.ga-screen img, .ga-screen video { border: 1px solid var(--rule); border-radius: 16px; box-shadow: 0 14px 34px rgba(33, 26, 42, .12); }
.ga-screen-video { margin-top: 36px !important; }
.ga-screens { display: grid; gap: 32px; margin-top: 40px; }
.ga-end { margin-top: 80px; padding: 40px 24px; border-radius: 24px; background: var(--surface); border: 1px solid var(--rule); text-align: center; }
.ga-end p { margin: 12px auto 24px; max-width: 34rem; color: var(--ink-soft); font-size: 1.125rem; }
.ga-credit { margin-top: 28px; color: var(--ink-faint); font-size: .8125rem; }
.ga-credit a { color: inherit; }
@media (min-width: 700px) {
  .ga-phones { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; }
  .ga-screens { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .ga { padding-top: 64px; }
  .ga-hero { grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; }
  .ga-phone-hero { width: 100%; }
  .ga-sec { margin-top: 104px; }
  .ga-phones { grid-template-columns: repeat(3, minmax(0, 260px)); justify-content: space-between; }
}
