/* Riseward: sito statico, direzione "Vetrina" (handoff di design).
   Palette e caratteri dell'app (app/lib/ui/theme.dart): pagina chiara, una
   fascia scura al centro, lime del marchio solo per azioni e "adesso". */

@font-face { font-family: "Archivo"; src: url("../fonts/archivo-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Archivo Wide"; src: url("../fonts/archivo-wide-900.woff2") format("woff2"); font-weight: 900; font-display: swap; }

:root {
  /* tema chiaro (pagina) */
  --bg: #f2f4f7;
  --surface: #ffffff;
  --border: #e1e5ea;
  --border-strong: #d5dae1;
  --text: #0a0d12;
  --text2: #3a4553;
  --text3: #5b6573;
  /* tema scuro (fascia centrale) */
  --d-bg: #0a0d12;
  --d-surface: #121821;
  --d-high: #18202a;
  --d-border: #222b36;
  --d-border-strong: #2e3946;
  --d-text: #eef1f5;
  --d-text2: #c9d0d8;
  --d-text3: #9aa4b1;
  --d-muted: #7d8794;
  /* marchio */
  --lime: #d4ff3a;
  --ink: #0a0d12;
  --gutter: clamp(20px, 5vw, 64px);
  --section: clamp(80px, 11vw, 140px);
  --wide: "Archivo Wide", "Archivo", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 18px/1.6 "Archivo", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: 3px; }
a:hover { opacity: .85; }
a:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.band a:focus-visible { outline-color: var(--lime); }
img { display: block; max-width: 100%; }

.wrap { max-width: 1320px; margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--lime); padding: 8px 14px; border-radius: 999px; }
.skip:focus { left: 8px; z-index: 10; }

.caps { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.display { font-family: var(--wide); font-weight: 900; letter-spacing: -0.025em; }

/* ------------------------------------------------------------ pulsanti */
.btn {
  display: inline-block; text-decoration: none; white-space: nowrap;
  font-weight: 800; font-size: 16px; line-height: 1.2;
  padding: 17px 28px; border-radius: 999px;
}
.btn-ink { background: var(--ink); color: var(--lime); }
.btn-light { background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); padding: 16px 28px; }
.btn-line { color: var(--ink); border: 1.5px solid var(--ink); padding: 16px 27px; }
.btn.soon { cursor: default; }
.btn.soon:hover { opacity: 1; }
.btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ------------------------------------------------------------ testata */
.top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 22px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand span { font: 900 21px/1 var(--wide); letter-spacing: -0.02em; }
.top nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 30px); font-weight: 600; font-size: 15px; }
.top nav a { text-decoration: none; }
.top nav .get { background: var(--ink); color: var(--lime); padding: 10px 18px; border-radius: 999px; font-weight: 700; }
@media (max-width: 640px) {
  .top nav .opt { display: none; }
}

/* ------------------------------------------------------------ apertura */
.hero { padding-top: clamp(32px, 5vw, 64px); text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero h1 {
  margin: 0; font: 900 clamp(46px, 8.4vw, 136px)/.88 var(--wide);
  letter-spacing: -0.035em; max-width: 12ch; text-wrap: balance;
}
.hero .lead {
  margin: 28px 0 0; max-width: 50ch; color: var(--text2);
  font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; text-wrap: pretty;
}
.hero .btns { margin-top: 32px; }
.hero small { margin-top: 16px; color: var(--text3); font-size: 14px; }

/* tre telefoni */
.phones { position: relative; margin-top: clamp(48px, 6vw, 80px); }
.phones::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 62%;
  background: var(--d-bg); border-radius: 40px 40px 0 0;
}
.phones .row {
  position: relative; display: flex; justify-content: center; align-items: flex-end;
  gap: clamp(12px, 2.5vw, 36px); padding-bottom: clamp(40px, 5vw, 72px);
}
.phone {
  flex: 0 1 250px; aspect-ratio: 9 / 19.5; border-radius: 42px; background: var(--d-high);
  padding: 8px; box-shadow: 0 30px 70px rgba(10, 13, 18, .35);
}
.phone .screen { width: 100%; height: 100%; border-radius: 35px; overflow: hidden; background: var(--d-surface); }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone.left { transform: translateY(-30px) rotate(-5deg); }
.phone.right { transform: translateY(-30px) rotate(5deg); }
.phone.mid { flex-basis: 290px; border-radius: 46px; padding: 9px; box-shadow: 0 40px 90px rgba(10, 13, 18, .45); z-index: 1; }
.phone.mid .screen { border-radius: 38px; }
@media (max-width: 600px) {
  .phone.left, .phone.right { display: none; }
  .phone.mid { flex-basis: 260px; }
}

/* ------------------------------------------------------------ fascia scura */
.band { background: var(--d-bg); color: var(--d-text); }
.band .wrap { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(80px, 10vw, 128px); }
.sports { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.sports li { border-radius: 24px; padding: 24px; display: flex; flex-direction: column; gap: 40px; }
.sports .name { font: 900 30px/1 var(--wide); letter-spacing: -0.02em; }

.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(32px, 6vw, 96px); align-items: center; }
.band .split { margin-top: clamp(80px, 10vw, 128px); }
h2.display { margin: 0 0 24px; font-size: clamp(32px, 4.6vw, 62px); line-height: 1; max-width: 12ch; }
h2.display .hl { color: var(--lime); }
.band p { color: var(--d-text2); max-width: 52ch; }
.zones { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.zones li { font-size: 13px; font-weight: 700; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--d-border-strong); }

.week { background: var(--d-surface); border: 1px solid var(--d-border); border-radius: 24px; padding: clamp(18px, 3vw, 32px); }
.week .caps { color: #ff9f5a; }
.week .sub { color: var(--d-text3); font-size: 14px; margin: 6px 0 18px; }
.week ol { margin: 0; padding: 0; list-style: none; }
.week li { display: grid; grid-template-columns: 4.5ch 1fr auto; gap: 12px; padding: 12px 0; border-top: 1px solid var(--d-border); align-items: center; }
.week .day { font-weight: 700; color: var(--d-text3); }
.week .what { display: flex; gap: 12px; align-items: center; font-weight: 600; }
.week .what i { flex: none; width: 4px; height: 34px; border-radius: 2px; }
.week .what small { display: block; color: var(--d-text3); font-size: 14px; font-weight: 400; }
.week .min { font-variant-numeric: tabular-nums; font-weight: 700; }

/* ------------------------------------------------------------ piano */
.plan { padding-block: var(--section); }
.plan h2.display { margin-bottom: 20px; max-width: 16ch; }
.plan .intro { color: var(--text2); max-width: 60ch; margin: 0 0 36px; }
.chart { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: clamp(20px, 3vw, 40px); }
.bars { display: flex; align-items: flex-end; gap: clamp(4px, .9vw, 12px); height: clamp(160px, 22vw, 300px); margin: 0; padding: 0; list-style: none; }
.bars li {
  flex: 1; border-radius: 5px; transform-origin: 50% 100%;
  transform: skewX(-16deg);
  animation: grow 800ms cubic-bezier(.2, .8, .2, 1) both;
  animation-delay: calc(var(--i) * 45ms + 150ms);
}
@keyframes grow { from { transform: skewX(-16deg) scaleY(0); } to { transform: skewX(-16deg) scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .bars li { animation: none; } }
.bars .now { background: var(--lime); border: 2px solid var(--ink); }
.legend { display: grid; grid-template-columns: 8fr 4fr 3fr 2fr 1fr; margin-top: 12px; font-size: 14px; font-weight: 700; }
.legend span { padding: 10px 0 0 8px; border-top: 3px solid; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.legend span:first-child { padding-left: 0; }
@media (max-width: 520px) { .legend span { font-size: 12px; padding-left: 4px; } }

.cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; margin-top: clamp(64px, 8vw, 104px); }
.cases div { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 28px; }
.cases h3 { margin: 0 0 8px; font-size: 21px; line-height: 1.25; }
.cases p { margin: 0; color: var(--text2); line-height: 1.55; }
.cases .dark { background: var(--ink); border-color: var(--ink); }
.cases .dark h3 { color: var(--lime); }
.cases .dark p { color: var(--d-text2); }

/* ------------------------------------------------------------ privacy */
.privacy .split { border-top: 1px solid var(--border-strong); padding-block: clamp(64px, 8vw, 104px) var(--section); align-items: start; }
.privacy h2.display { margin: 0; max-width: 14ch; }
.privacy p { color: var(--text2); margin-top: 0; }

/* ------------------------------------------------------------ lancio */
.launch { padding: 0 clamp(12px, 2vw, 24px) clamp(12px, 2vw, 24px); }
.launch .box {
  background: var(--lime); border-radius: 40px; max-width: 1400px; margin: 0 auto;
  padding: clamp(56px, 8vw, 104px) var(--gutter);
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.launch img { width: 88px; height: 88px; border-radius: 22px; box-shadow: 0 18px 40px rgba(10, 13, 18, .3); }
.launch h2 { margin: 32px 0 20px; font: 900 clamp(36px, 5.8vw, 88px)/.92 var(--wide); letter-spacing: -0.03em; max-width: 13ch; }
.launch p { max-width: 56ch; margin: 0; line-height: 1.55; }
.launch .btns { margin-top: 32px; }

/* ------------------------------------------------------------ piede */
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; padding-block: 40px 100px; font-size: 15px; color: var(--text3); }
.foot p { margin: 0; max-width: 60ch; }
.foot nav { display: flex; flex-wrap: wrap; gap: 10px 26px; font-weight: 600; color: var(--text); }
.foot nav a { text-decoration: none; }

/* ------------------------------------------------------------ pagine di testo */
.doc { padding-block: clamp(32px, 6vw, 72px) 96px; }
.doc article { max-width: 66ch; font-size: 17px; }
.doc h1 { font: 900 clamp(34px, 5.4vw, 64px)/1.0 var(--wide); letter-spacing: -0.025em; margin: 0 0 28px; }
.doc h2 { font-size: 23px; line-height: 1.25; margin: 2.2em 0 .5em; }
.doc h3 { font-size: 18px; margin: 1.8em 0 .4em; }
.doc li { margin: .35em 0; }
.doc blockquote { margin: 0 0 2em; padding: 16px 20px; border-radius: 16px; background: var(--surface); border: 2px solid var(--ink); }
.doc blockquote p { margin: 0; }
.doc table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 1em 0; display: block; overflow-x: auto; }
.doc th, .doc td { border-top: 1px solid var(--border); padding: 9px 12px 9px 0; text-align: left; vertical-align: top; }
.doc hr { border: 0; border-top: 1px solid var(--border); margin: 2.4em 0; }
.doc .steps { padding-left: 1.3em; }
.faq dt { font-weight: 700; font-size: 19px; margin-top: 1.6em; }
.faq dd { margin: .4em 0 0; color: var(--text2); }
.mail { display: inline-block; margin-top: 8px; font-weight: 700; font-size: 19px; }
