/* Sito di Stock'n'Roll: stessi colori e font dell'app. Le pagine si generano con tools/site/build.mjs */
@font-face { font-family: "Manrope"; src: url("manrope-latin.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
:root {
  --bg: #F4F5F7; --surface: #FFFFFF; --ink: #15181D; --muted: #5B6270; --line: #E3E6EB;
  --accent: #0E6B53; --accent-soft: #E3F1EC; --brand: #C2410C; --brand-soft: #FDEBDD;
  --phone: #15181D;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111317; --surface: #1A1D22; --ink: #EEF0F3; --muted: #A3A9B4; --line: #2A2E35;
    --accent: #4FBF9A; --accent-soft: #17302A; --brand: #F08A4B; --brand-soft: #3A2316; --phone: #2A2E35;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Manrope", system-ui, sans-serif; line-height: 1.6; }
a { color: var(--accent); }
img { max-width: 100%; height: auto; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 20px 16px 48px; }
.wrap.narrow { max-width: 760px; }

/* Intestazione */
.top { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; margin-bottom: 32px; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 800; font-size: 20px; }
.brand img { width: 40px; height: 40px; border-radius: 11px; }
.langs { margin-left: auto; display: flex; flex-wrap: wrap; gap: 4px; font-size: 14px; }
.langs a, .langs span { padding: 4px 10px; border-radius: 999px; text-decoration: none; color: var(--muted); }
.langs a:hover { color: var(--ink); background: var(--surface); }
.langs span { color: var(--ink); font-weight: 700; background: var(--surface); border: 1px solid var(--line); }

.langbar { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 8px 16px; background: var(--accent-soft); font-size: 14px; }
.langbar[hidden] { display: none; }
.langbar a { font-weight: 700; }
.langbar button { border: 0; background: none; color: var(--muted); font: inherit; font-size: 20px; line-height: 1; cursor: pointer; padding: 4px 8px; }

/* Testi */
h1 { font-size: clamp(32px, 6vw, 52px); line-height: 1.08; letter-spacing: -0.025em; margin: 8px 0 16px; }
.narrow h1 { font-size: clamp(28px, 5vw, 38px); }
h2 { font-size: clamp(22px, 3.4vw, 30px); line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 12px; }
.narrow h2 { font-size: 20px; margin: 32px 0 8px; }
.lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); max-width: 34em; }
.eyebrow { margin: 0; color: var(--brand); font-weight: 700; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; }
.muted { color: var(--muted); font-size: 14px; }

/* Schermate dell'app in una cornice da telefono */
.phone { display: block; width: 100%; max-width: 300px; border: 8px solid var(--phone); border-radius: 34px;
  box-shadow: 0 24px 48px -20px rgba(21, 24, 29, 0.35); background: var(--phone); }

/* Apertura */
.hero { display: grid; gap: 32px; align-items: center; margin-bottom: 72px; }
.hero .phone { justify-self: center; max-width: 280px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 24px; }
.badge { display: inline-block; padding: 10px 18px; border-radius: 999px; background: var(--ink); color: var(--bg); font-weight: 700; }
.actions a { font-weight: 700; }

/* Funzioni principali: schermata + testo, alternati */
.row { display: grid; gap: 24px; align-items: center; margin: 0 0 64px; }
.row .phone { justify-self: center; max-width: 260px; }
.row p { font-size: 17px; color: var(--muted); max-width: 30em; margin: 0; }

@media (min-width: 760px) {
  .hero { grid-template-columns: 1.3fr 1fr; gap: 48px; margin-top: 24px; }
  .hero .phone { max-width: 320px; }
  .row { grid-template-columns: 1fr 1fr; gap: 56px; }
  .row .phone { justify-self: end; max-width: 280px; }
  .row.flip .phone { order: 2; justify-self: start; }
  .row.flip > div { justify-self: end; }
}

/* Altre funzioni */
section { margin-bottom: 64px; }
.grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid li { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; color: var(--muted); }
.grid strong { display: block; color: var(--ink); margin-bottom: 2px; }

.band { background: var(--accent-soft); border-radius: 24px; padding: clamp(24px, 4vw, 40px); }
.band p { max-width: 36em; margin: 0 0 8px; }
.band a { font-weight: 700; }

details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 18px; margin-bottom: 8px; }
summary { cursor: pointer; font-weight: 700; padding: 14px 0; }
details p { margin: 0 0 16px; color: var(--muted); }

/* Informativa */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px; margin: 16px 0; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }

.foot { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot p { margin: 4px 0; }
.langs i { display: none; font-style: normal; }
.langs b { font-weight: inherit; }
@media (max-width: 520px) {
  .langs b { display: none; }
  .langs i { display: inline; }
  .langs a, .langs span { padding: 4px 8px; }
}
