/* Athena Logos & Engine: il sito su palaferri.com/athena/ (stessi colori dell'interfaccia di Athena) */
:root {
  --bg: #05080f;
  --bg-2: #0a1018;
  --panel: #0b1420cc;
  --line: #152536;
  --line-2: #1d3a52;
  --cyan: #4fc3f7;
  --cyan-2: #2e9bff;
  --violet: #8b5cf6;
  --gold: #ffd9a0;
  --text: #dcecf8;
  --muted: #9fb3c8;
  --dim: #5d7488;
  --serif: Cinzel, "Trajan Pro", Georgia, serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, Menlo, Consolas, monospace;
  --wrap: 1160px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: var(--mono); font-size: .88em; background: #0d1a28; border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; color: #bfe6fb; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* barra in alto */
.top { position: sticky; top: 0; z-index: 20; background: #05080fcc; backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); font-family: var(--serif); letter-spacing: .28em; font-size: 15px; }
.brand:hover { text-decoration: none; }
.brand svg { width: 28px; height: 28px; }
.nav { display: flex; gap: 6px; margin-left: auto; align-items: center; }
.nav a { color: var(--muted); padding: 7px 14px; border-radius: 999px; font-size: 15px; }
.nav a:hover { color: var(--text); text-decoration: none; background: #0f1d2b; }
.nav a.on { color: var(--text); border: 1px solid var(--line-2); background: #0b1826; }
.nav .lang { font-size: 13px; letter-spacing: .08em; color: var(--dim); border: 1px solid var(--line); }
.nav .dl { color: #04111c; background: var(--cyan); font-weight: 600; }
.nav .dl:hover { background: #7fd4fa; }
.menu { display: none; margin-left: auto; background: none; border: 1px solid var(--line-2); color: var(--text); border-radius: 10px; padding: 6px 12px; font: inherit; font-size: 14px; }

/* apertura */
.hero { position: relative; overflow: hidden; min-height: calc(100vh - 64px); display: flex; align-items: center; background: url(img/bg.jpg) center 70% / cover no-repeat, var(--bg); }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 40%, transparent 30%, #05080f 85%); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; text-align: center; padding-top: 40px; padding-bottom: 80px; }
.hero.small { min-height: 0; }
.hero.small .wrap { padding-top: 72px; padding-bottom: 72px; }
.motto { font-family: var(--serif); letter-spacing: .32em; color: var(--gold); font-size: 13px; margin: 0; }
.motto-tr { color: var(--muted); font-style: italic; font-size: 15px; margin: 4px 0 28px; }
h1 { font-family: var(--serif); font-weight: 700; letter-spacing: .06em; font-size: clamp(34px, 6vw, 64px); line-height: 1.12; margin: 0 0 18px; background: linear-gradient(180deg, #f2f9ff, #9fd7f5); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { max-width: 760px; margin: 0 auto 32px; font-size: clamp(18px, 2.2vw, 21px); color: #c7dbeb; }
.ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 24px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text); background: #0b1826cc; font-weight: 500; }
.btn:hover { text-decoration: none; border-color: var(--cyan); }
.btn.primary { background: var(--cyan); color: #04111c; border-color: var(--cyan); font-weight: 600; }
.btn.primary:hover { background: #7fd4fa; }
.badge { display: inline-block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 12px; margin-bottom: 18px; background: #07111bcc; }

/* sezioni */
section { padding: 96px 0; }
section.alt { background: linear-gradient(180deg, var(--bg) 0, var(--bg-2) 18%, var(--bg-2) 82%, var(--bg) 100%); }
.kicker { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--cyan); margin: 0 0 10px; }
h2 { font-family: var(--serif); font-weight: 700; letter-spacing: .04em; font-size: clamp(26px, 3.6vw, 40px); line-height: 1.2; margin: 0 0 18px; color: #eef7ff; }
h3 { font-size: 20px; margin: 0 0 8px; color: #eef7ff; font-weight: 600; }
.intro { max-width: 780px; color: var(--muted); font-size: 18px; margin: 0 0 44px; }
.center { text-align: center; }
.center .intro { margin-left: auto; margin-right: auto; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.four { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 26px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.card .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #0d2133; color: var(--cyan); margin-bottom: 16px; }
.card .ico svg { width: 22px; height: 22px; }
.product { padding: 34px; display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden; }
.product::before { content: ""; position: absolute; inset: -1px; border-radius: 18px; padding: 1px; background: linear-gradient(140deg, #4fc3f766, transparent 40%, #8b5cf644); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.product h3 { font-family: var(--serif); letter-spacing: .08em; font-size: 26px; }
.product ul { margin: 0; padding-left: 20px; color: var(--muted); }
.product .btn { align-self: flex-start; margin-top: auto; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 8px; }
.stat { border-left: 2px solid var(--cyan); padding: 4px 0 4px 18px; }
.stat b { display: block; font-family: var(--serif); font-size: clamp(28px, 3.4vw, 40px); color: #eef7ff; line-height: 1.1; }
.stat span { color: var(--muted); font-size: 15px; }

.shot { margin: 0; }
.shot img { border-radius: 16px; border: 1px solid var(--line-2); box-shadow: 0 30px 80px #000a, 0 0 0 1px #ffffff08; }
.shot figcaption { color: var(--dim); font-size: 14px; margin-top: 12px; text-align: center; }
.split { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center; }
.split.rev { grid-template-columns: 1.25fr 1fr; }
.split.rev .text { order: 2; }
.split .text p { color: var(--muted); }
.split ul { color: var(--muted); padding-left: 20px; }
.split li { margin: 6px 0; }

.case { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 28px; }
.case q { display: block; font-style: italic; color: var(--gold); margin-bottom: 12px; quotes: "«" "»"; }
.case p { color: var(--muted); margin: 0 0 12px; font-size: 16px; }
.case small { color: var(--dim); font-size: 13px; }

.dl-table { width: 100%; border-collapse: collapse; margin: 8px 0 18px; }
.dl-table th, .dl-table td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.dl-table th { color: var(--dim); font-weight: 500; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.dl-table td:last-child { text-align: right; }
.dl-table .btn { padding: 8px 16px; font-size: 15px; }
.note { color: var(--dim); font-size: 14px; }
pre { background: #07111b; border: 1px solid var(--line-2); border-radius: 12px; padding: 16px 18px; overflow-x: auto; font-family: var(--mono); font-size: 14px; color: #bfe6fb; margin: 0 0 16px; }

.models { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.model { border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; background: #08111bcc; }
.model b { color: #eef7ff; }
.model p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }

.quote { max-width: 860px; margin: 0 auto; text-align: center; font-size: clamp(20px, 2.6vw, 26px); color: #d6e8f6; line-height: 1.5; }
.quote em { color: var(--gold); font-style: normal; }

/* piede */
footer { border-top: 1px solid var(--line); padding: 40px 0 48px; color: var(--dim); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: center; }
footer .motto { font-size: 12px; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; margin-left: auto; }
footer a { color: var(--muted); }
.logo-tree { width: 132px; opacity: .92; margin: 0 auto 18px; filter: drop-shadow(0 0 18px #4fc3f733); }

/* entrata delle sezioni */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

@media (max-width: 980px) {
  .grid, .grid.four { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .split, .split.rev { grid-template-columns: 1fr; gap: 32px; }
  .split.rev .text { order: 0; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .menu { display: block; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: #05080ff2; border-bottom: 1px solid var(--line); padding: 12px 16px 18px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; }
  .grid, .grid.two, .grid.four, .models { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  .dl-table th:nth-child(2), .dl-table td:nth-child(2) { display: none; }
}
.mark svg { width: 92px; height: 92px; margin: 0 auto 22px; display: block; filter: drop-shadow(0 0 22px #4fc3f766); }
.split > *, .grid > * { min-width: 0; }

/* la Guida */
.g-index { grid-template-columns: repeat(3, 1fr); }
.g-card { color: var(--text); display: block; transition: border-color .2s, transform .2s; }
.g-card:hover { text-decoration: none; border-color: var(--cyan); transform: translateY(-2px); }
.g-card small { display: block; margin-top: 10px; color: var(--gold); font-size: 13px; }
.g-num { font-family: var(--serif); color: var(--cyan); font-size: 14px; letter-spacing: .12em; display: block; margin-bottom: 8px; }
.g-page { padding: 48px 0 80px; }
.g-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; align-items: start; }
.g-side { position: sticky; top: 88px; max-height: calc(100vh - 110px); overflow: auto; }
.g-side ol { list-style: none; margin: 0; padding: 0; counter-reset: c; }
.g-side li { counter-increment: c; }
.g-side a { display: block; padding: 7px 12px; border-radius: 10px; color: var(--muted); font-size: 15px; }
.g-side a::before { content: counter(c, decimal-leading-zero) "  "; color: var(--dim); font-size: 12px; }
.g-side a:hover { background: #0f1d2b; color: var(--text); text-decoration: none; }
.g-side a.on { background: #0b1826; color: var(--text); border: 1px solid var(--line-2); }
.g-body { max-width: 760px; }
.g-body .kicker a { color: var(--cyan); }
.g-title { font-size: clamp(30px, 4.4vw, 46px); text-align: left; margin-bottom: 8px; }
.g-summary { color: var(--muted); font-size: 19px; margin: 0 0 36px; }
.g-body h2 { font-size: 26px; margin: 44px 0 12px; scroll-margin-top: 84px; }
.g-body h3 { font-size: 19px; margin: 28px 0 8px; scroll-margin-top: 84px; }
.g-body p, .g-body li { color: #c9dbea; }
.g-body ul, .g-body ol { padding-left: 22px; }
.g-body li { margin: 6px 0; }
.g-body strong { color: #eef7ff; }
.ui-path { color: var(--gold); }
.g-pager { display: flex; justify-content: space-between; gap: 16px; margin: 56px 0 28px; border-top: 1px solid var(--line); padding-top: 24px; }
.g-pager a { display: flex; flex-direction: column; color: var(--text); max-width: 48%; }
.g-pager a small { color: var(--dim); font-size: 13px; }
.g-pager a.nx { text-align: right; margin-left: auto; }
@media (max-width: 980px) { .g-index { grid-template-columns: repeat(2, 1fr); } .g-layout { grid-template-columns: 1fr; gap: 24px; } .g-side { position: static; max-height: none; } .g-side ol { display: flex; flex-wrap: wrap; gap: 6px; } .g-side a::before { content: none; } .g-side a { border: 1px solid var(--line); padding: 5px 10px; font-size: 14px; } }
@media (max-width: 760px) { .g-index { grid-template-columns: 1fr; } }
.g-layout > * { min-width: 0; }
h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; }
@media (max-width: 760px) { .g-title { font-size: 28px; } .g-body h2 { font-size: 22px; } }
@media (max-width: 980px) { .g-side { order: 2; border-top: 1px solid var(--line); padding-top: 24px; } }
.prod-logo { width: 96px; margin: 0 0 6px; opacity: .92; }
#orb { width: min(640px, 94vw); height: min(520px, 84vw); margin: -24px auto 0; display: block; }
