/* Pagine statiche del sito (aiuto, installazione, privacy, termini) e base della home: impaginazione.
   Colori, caratteri, sfondi per sezione e movimento vengono dal design system unico (ds/quadriamo.css, da src/design). */
* { box-sizing: border-box; }
body { margin: 0; background: transparent; color: var(--text); font: 17px/1.6 var(--font-ui); -webkit-font-smoothing: antialiased; }
.wrap { max-width: 760px; margin: 0 auto; padding: 24px 16px 64px; }
header { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.logo { font-family: "DM Serif Display", Georgia, serif; font-size: 26px; text-decoration: none; color: inherit; }
.logo span { color: var(--b1); }
h1, h2 { font-weight: 600; letter-spacing: -.025em; }
h1 { font-size: clamp(32px, 7vw, 46px); line-height: 1.1; margin: 28px 0 10px; }
h2 { font-size: 24px; margin: 32px 0 8px; }
h3 { font-size: 18px; margin: 20px 0 6px; }
a { color: var(--text); text-underline-offset: 3px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; margin: 16px 0; }
.card h2 { margin-top: 0; }
ol, ul { padding-left: 22px; }
li { margin: 8px 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border-radius: 10px;
  background: var(--accent); color: var(--on-accent); font-weight: 600; text-decoration: none; }
.langs { display: flex; gap: 6px; flex-wrap: wrap; }
.langs button { font: inherit; font-size: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--text);
  border-radius: 99px; padding: 4px 12px; min-height: 36px; cursor: pointer; }
.langs button[aria-pressed="true"] { border-color: var(--text); color: var(--text); font-weight: 600; }
.qr { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.qr img { width: 150px; height: 150px; background: #fff; border-radius: 12px; padding: 8px; }
kbd { font: inherit; font-weight: 600; border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; background: var(--surface); }
code { font-size: 14px; word-break: break-all; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; }
[data-lang] { display: none; }
[data-lang].on { display: block; }
footer { margin-top: 40px; font-size: 14px; color: var(--muted); }

/* interfaccia ferma come un'app: niente zoom con il doppio tocco, niente rimbalzo della pagina, testo che non si ingrandisce
   da solo; campi da 16px perché su iPhone quelli più piccoli fanno ingrandire la pagina quando li tocchi */
html { touch-action: manipulation; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { overscroll-behavior: none; }
input, select, textarea { font-size: max(16px, 1em); }

/* centro assistenza: domande che si aprono al tocco, righe separate da una linea */
.faq { border-top: 1px solid var(--line); margin: 0 0 8px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 14px 28px 14px 0; position: relative; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 6px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg); transition: transform .25s ease; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq details p { margin: 0 0 16px; color: var(--muted); }
.contact { margin-top: 40px; }
.contact-mail { font-size: 22px; font-weight: 600; }

/* Roadmap: tre gruppi, un segno per lo stato (fatto, in corso, prossimamente) */
.rm-list { list-style: none; padding: 0; margin: 0 0 var(--s6); border-top: 1px solid var(--line); }
.rm-list li { padding: 12px 0 12px 22px; border-bottom: 1px solid var(--line); position: relative; }
.rm-list li::before { content: ''; position: absolute; left: 2px; top: 20px; width: 9px; height: 9px; border-radius: 2px; background: var(--fill-2); }
.rm-list.rm-done li::before { background: var(--b1); }
.rm-list.rm-now li::before { background: var(--b2); }
/* Blog: un indice e gli articoli uno sotto l'altro */
.blog-index { display: grid; gap: 6px; margin: var(--s4) 0 var(--s8); }
.blog-index a { font-weight: 600; }
.post { padding-top: var(--s6); border-top: 1px solid var(--line); margin-top: var(--s6); }
.post p { max-width: 62ch; }
