/* Innario LLDM — sito dell'app. Palette: zaffiro, perla, carta, oro. */
:root {
  --sapphire: #13285A;
  --sapphire-deep: #0C1A3D;
  --pearl: #ECE6DC;
  --paper: #F7F3EC;
  --gold: #C5A34A;
  --gold-text: #8A6A1F;
  --ink: #1C2438;
  --muted: #586074;
  --rule: #DCD2C0;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--sans); }
img, video { max-width: 100%; height: auto; }
a { color: var(--gold-text); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--sapphire); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 28px; }

/* Testata */
.top { background: var(--sapphire-deep); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; color: #F3ECDD; text-decoration: none; font: 600 19px/1 var(--serif); letter-spacing: .02em; }
.brand img { width: 32px; height: 32px; border-radius: 7px; }
.brand:hover { color: #fff; }
.top nav { display: flex; gap: 26px; }
.top nav a { color: #D9D1BF; text-decoration: none; font-size: 15px; padding: 4px 0; border-bottom: 1px solid transparent; }
.top nav a:hover, .top nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--gold); }

/* Apertura: la copertina dell'innario, cornice d'oro impressa */
.cover { overflow: hidden; background: radial-gradient(120% 90% at 30% 10%, #1A3470 0%, var(--sapphire) 45%, var(--sapphire-deep) 100%); color: #EEF0F5; padding: 28px 0 0; }
.cover .frame {
  position: relative; border: 1px solid rgba(197,163,74,.75); outline: 1px solid rgba(197,163,74,.35); outline-offset: 6px;
  margin: 14px 0 48px; padding: 64px 56px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
}
.cover h1 { font: 600 clamp(40px, 5.6vw, 64px)/1.04 var(--serif); color: #F6EFDF; margin: 0 0 22px; letter-spacing: -.005em; }
.cover .lead { font-size: 19px; color: #D5DBE8; max-width: 31em; margin: 0 0 18px; }
.cover .detail { font-size: 16px; color: #AEB8CD; max-width: 32em; margin: 0; }
.cover .detail strong { color: #F2E6C4; font-weight: 600; }
.cover .shot { justify-self: center; position: relative; }
/* Un alone dorato dietro il telefono, come la luce sulla doratura della copertina */
.cover .shot::before {
  content: ""; position: absolute; inset: -14% -45%; z-index: 0; pointer-events: none;
  background: radial-gradient(closest-side, rgba(197,163,74,.30), rgba(197,163,74,.08) 55%, rgba(197,163,74,0) 75%);
}

/* iPhone disegnato in CSS: cornice, schermo e tasti laterali */
.device {
  position: relative; z-index: 1; width: 290px; padding: 11px; border-radius: 56px; background: #060B1A;
  box-shadow: 0 0 0 1.5px #3B4668, 0 0 0 3.5px #0A1124, 0 44px 80px -24px rgba(2,6,18,.75);
}
.device::before, .device::after { content: ""; position: absolute; width: 3px; border-radius: 2px; background: #2C3656; }
.device::before { right: -5px; top: 27%; height: 13%; }
.device::after { left: -5px; top: 21%; height: 7.5%; box-shadow: 0 calc(290px * .2) 0 #2C3656; }
.screen { position: relative; overflow: hidden; border-radius: 45px; background: #0A285D; aspect-ratio: 600 / 1304; }
.screen video, .screen img { display: block; width: 100%; height: 100%; object-fit: cover; }
.screen .still { display: none; }
.device.small { width: 236px; padding: 9px; border-radius: 47px; box-shadow: 0 0 0 1.5px #3B4668, 0 0 0 3px #0A1124, 0 34px 60px -26px rgba(12,26,61,.55); }
.device.small .screen { border-radius: 38px; aspect-ratio: 506 / 1100; }
.device.small::after { box-shadow: 0 calc(236px * .2) 0 #2C3656; }

/* Un solo momento in movimento: l'apertura della copertina */
@media (prefers-reduced-motion: no-preference) {
  .cover h1, .cover .lead, .cover .detail { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
  .cover .lead { animation-delay: .1s; }
  .cover .detail { animation-delay: .2s; }
  .cover .device { animation: lift 1.3s cubic-bezier(.16,.8,.24,1) .15s both; }
  .cover .shot::before { animation: glow 2.6s ease-out .35s both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes lift { from { opacity: 0; transform: translateY(56px) scale(.96); } }
@keyframes glow { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .screen .motion { display: none; }
  .screen .still { display: block; }
}

/* Sezioni */
section { padding: 80px 0; }
.serif-h { font: 600 32px/1.15 var(--serif); color: var(--sapphire); margin: 0 0 16px; }
.measure { max-width: 36em; }
.uses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 48px; margin-top: 40px; }
.uses h3 { font: 600 20px/1.3 var(--serif); color: var(--sapphire); margin: 0 0 8px; padding-top: 14px; border-top: 1px solid var(--gold); }
.uses p { margin: 0; color: var(--muted); font-size: 16px; }
.split { display: grid; grid-template-columns: auto 1fr; gap: 72px; align-items: center; }
.pearl { background: var(--pearl); }
.quiet { font-size: 15px; color: var(--muted); }
.fr { background: var(--sapphire); color: #E3E7F0; }
.fr .serif-h { color: #F6EFDF; }
.fr a { color: #E9D28F; }

/* Pagine di testo */
.doc { padding: 64px 0 88px; }
.doc .wrap { display: grid; grid-template-columns: 200px minmax(0, 36em); gap: 64px; }
.doc aside { position: sticky; top: 24px; align-self: start; font-size: 15px; }
.doc aside p { margin: 0 0 8px; color: var(--muted); }
.doc aside a { display: block; padding: 5px 0 5px 12px; border-left: 2px solid var(--rule); text-decoration: none; color: var(--ink); }
.doc aside a:hover { border-left-color: var(--gold); color: var(--sapphire); }
.doc h1 { font: 600 40px/1.1 var(--serif); color: var(--sapphire); margin: 0 0 8px; }
.doc .updated { color: var(--muted); font-size: 15px; margin: 0 0 36px; }
.doc h2 { font: 600 21px/1.3 var(--serif); color: var(--sapphire); margin: 34px 0 6px; }
.doc p { margin: 0 0 12px; }
.lang-block + .lang-block { margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--rule); }
.lang-block > h1.sub { font-size: 30px; }
.contact { background: var(--sapphire); color: #E3E7F0; border-radius: 4px; padding: 24px 28px; margin: 0 0 48px; box-shadow: inset 0 0 0 1px rgba(197,163,74,.55), inset 0 0 0 5px var(--sapphire), inset 0 0 0 6px rgba(197,163,74,.3); }
.contact p { margin: 0 0 6px; }
.contact a { color: #F2DB97; font: 600 20px/1.4 var(--serif); }
.contact .quiet { color: #AEB8CD; margin: 8px 0 0; }
details { border-bottom: 1px solid var(--rule); }
details:first-of-type { border-top: 1px solid var(--rule); }
summary { cursor: pointer; list-style: none; padding: 16px 32px 16px 0; font-weight: 600; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 6px; top: 24px; width: 8px; height: 8px; border-right: 2px solid var(--gold-text); border-bottom: 2px solid var(--gold-text); transform: rotate(45deg); transition: transform .2s; }
details[open] summary::after { transform: rotate(225deg); top: 28px; }
details p { margin: 0 0 18px; color: #3A4256; }
@media (prefers-reduced-motion: reduce) { summary::after { transition: none; } }

footer { background: var(--sapphire-deep); color: #AEB6C8; font-size: 14px; padding: 32px 0; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 32px; }
footer a { color: #E2D8BE; margin-left: 20px; }
footer nav a:first-child { margin-left: 0; }

@media (max-width: 860px) {
  .cover .frame { grid-template-columns: 1fr; padding: 44px 26px 48px; gap: 44px; margin-bottom: 36px; }
  .cover .device { width: 250px; padding: 10px; border-radius: 49px; }
  .cover .device .screen { border-radius: 39px; }
  .cover .device::after { box-shadow: 0 calc(250px * .2) 0 #2C3656; }
  .uses, .split { grid-template-columns: 1fr; gap: 32px; }
  .split .device { justify-self: center; }
  .doc .wrap { grid-template-columns: 1fr; gap: 24px; }
  .doc aside { position: static; display: flex; gap: 16px; flex-wrap: wrap; }
  .doc aside p { width: 100%; margin: 0; }
  section { padding: 60px 0; }
}

.brand { white-space: nowrap; }
@media (max-width: 860px) { .cover h1 { font-size: 36px; } .top nav { gap: 18px; } .cover .frame { padding: 36px 22px 44px; } }

@media (max-width: 420px) {
  .top .wrap { padding: 0 18px; }
  .brand { font-size: 17px; gap: 10px; }
  .brand img { width: 28px; height: 28px; }
  .top nav { gap: 14px; }
  .top nav a { font-size: 14px; }
}
