/*
  site.css — Night Heron
  I token vengono dal design system dell'app (../REMember/DESIGN-SYSTEM.md, DSColor.swift):
  stessi colori, stessi caratteri, stesse misure. Solo scuro, come l'app.
  Regole del brand: l'alba (--dawn) solo per le azioni e per la notte 1 (dove si parte, come
  "stanotte" nell'app); l'indaco per la struttura. Niente studi sul sito (PRODUCT.md).
*/

@font-face {
  font-family: "Fraunces";
  src: url("fonts/Fraunces.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Figtree";
  src: url("fonts/Figtree.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;

  /* Superfici (DSColor) */
  --night: #08071a;
  --night-deep: #050410;
  --surface: #12102b;
  --raised: #1c1940;

  /* Testo: contrasto calcolato su --night (DESIGN-SYSTEM.md) */
  --text: #e8e6f5;      /* 16,2:1 */
  --text-2: #a9a5c9;    /* 8,4:1 */
  --text-3: #817da6;    /* 5,1:1 — mai su --raised per il testo piccolo */

  /* Accenti */
  --dawn: #f7b77c;
  --dawn-pressed: #fcd9ae;
  --on-dawn: #12102b;
  --dawn-subtle: rgb(247 183 124 / 0.16);
  --indigo: #a5b4fc;
  --indigo-subtle: rgb(165 180 252 / 0.16);
  --blush: #f2a0a8;

  /* Bordi: tutti Indigo 300 */
  --hair-faint: rgb(165 180 252 / 0.1);
  --hair-soft: rgb(165 180 252 / 0.12);
  --hair: rgb(165 180 252 / 0.14);
  --dashed: rgb(165 180 252 / 0.18);
  --strong: rgb(165 180 252 / 0.28);
  --dashed-strong: rgb(165 180 252 / 0.32);
  --accent: rgb(165 180 252 / 0.42);

  --voice: "Fraunces", "Iowan Old Style", Georgia, serif;
  --ui: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* DSSpacing, più due passi per il web */
  --s-xs: 0.25rem;
  --s-s: 0.5rem;
  --s-m: 0.75rem;
  --s-l: 1rem;
  --s-xl: 1.5rem;
  --s-xxl: 2rem;
  --s-xxxl: 2.5rem;
  --s-huge: 3.5rem;
  --s-chapter: clamp(5rem, 4rem + 5vw, 9rem);

  --r-s: 10px;
  --r-m: 16px;
  --r-l: 24px;

  --tap: 0.15s;
  --standard: 0.3s;
  --gentle: 0.6s;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* La griglia: un margine sinistro "appeso" (orari, icona) e il testo; "wide" per le figure */
  --edge: 1.25rem;
  --cols: [full-start] var(--edge) [wide-start hang-start hang-end text-start] minmax(0, 1fr) [text-end wide-end] var(--edge) [full-end];
}

@media (min-width: 40rem) {
  :root {
    --edge: 2rem;
    --cols: [full-start] minmax(var(--edge), 1fr) [wide-start hang-start hang-end text-start] minmax(0, 38rem) [text-end wide-end] minmax(var(--edge), 1fr) [full-end];
  }
}

@media (min-width: 64rem) {
  :root {
    --edge: 2.5rem;
    --hang: 7rem;
    --measure: 37rem;
    --cols: [full-start] minmax(var(--edge), 1fr) [wide-start hang-start] var(--hang) [hang-end text-start] minmax(0, var(--measure)) [text-end] var(--hang) [wide-end] minmax(var(--edge), 1fr) [full-end];
  }
}

@media (min-width: 75rem) {
  :root {
    --hang: 9rem;
    --measure: 40rem;
  }
}

/* MARK: Base */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--night);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 1.5rem;
}

body {
  margin: 0;
  background: var(--night);
  color: var(--text-2);
  font-family: var(--ui);
  font-size: 1.0625rem;
  line-height: 1.7;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

@media (min-width: 64rem) {
  body {
    font-size: 1.125rem;
  }
}

img,
svg {
  display: block;
  max-width: 100%;
}

p,
ul,
ol,
figure,
blockquote,
h1,
h2,
h3 {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: var(--dawn);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color var(--tap) ease-out;
}

a:hover {
  color: var(--dawn-pressed);
}

:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 3px;
  border-radius: 4px;
}

strong {
  color: var(--text);
  font-weight: 600;
}

h1,
h2 {
  color: var(--text);
  font-family: var(--voice);
  font-weight: 400;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2rem, 1.35rem + 2.2vw, 3.25rem);
  line-height: 1.08;
  margin-bottom: var(--s-xl);
}

h3 {
  color: var(--text);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
  text-wrap: balance;
}

.skip {
  position: absolute;
  left: var(--s-l);
  top: -4rem;
  z-index: 20;
  padding: var(--s-m) var(--s-l);
  background: var(--dawn);
  color: var(--on-dawn);
  border-radius: var(--r-s);
  font-weight: 700;
  text-decoration: none;
}

.skip:focus {
  top: var(--s-l);
}

.icon {
  width: 1em;
  height: 1em;
  flex: none;
}

/* MARK: Bottoni (DSButtonStyle: capsule, 52 pt) */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 52px;
  padding: 0 1.6rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 700 1rem/1.1 var(--ui);
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color var(--tap) ease-out,
    border-color var(--tap) ease-out,
    color var(--tap) ease-out,
    transform var(--tap) ease-out;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--dawn);
  color: var(--on-dawn);
}

.btn-primary:hover {
  background: var(--dawn-pressed);
  color: var(--on-dawn);
}

.btn-quiet {
  background: var(--surface);
  border-color: var(--strong);
  color: var(--text-2);
  font-weight: 600;
}

.btn-quiet:hover {
  background: var(--raised);
  color: var(--text);
}

.btn-small {
  min-height: 44px;
  padding: 0 1.1rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.btn-large {
  min-height: 56px;
  padding: 0 2rem;
  font-size: 1.0625rem;
}

.btn-large .icon {
  width: 1.25rem;
  height: 1.25rem;
}

/* Ciò che deve ancora arrivare: il contorno tratteggiato del design system */
.pending {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 56px;
  padding: 0 1.75rem;
  border: 1px dashed var(--dashed-strong);
  border-radius: 999px;
  color: var(--text-2);
  font-weight: 600;
}

.pending .icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--indigo);
}

@media (max-width: 39.99rem) {
  .btn {
    padding: 0 1.25rem;
  }
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-m);
  margin-top: var(--s-xxl);
}

.small {
  margin-top: var(--s-l);
  color: var(--text-3);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.small a {
  color: var(--text-2);
}

.small a:hover {
  color: var(--text);
}

/* MARK: Barra in alto */

.topbar {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-l);
  padding: var(--s-l) var(--edge);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 44px;
  color: var(--text);
  font-family: var(--voice);
  font-size: 1.3125rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand:hover {
  color: var(--text);
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.topbar nav {
  display: flex;
  align-items: center;
  gap: var(--s-xs);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--s-m);
  color: var(--text-2);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}

.nav-link:hover {
  color: var(--text);
}

.nav-link .short {
  display: none;
}

.nav-app {
  margin-left: var(--s-s);
}

.nav-app .short {
  display: none;
}

/* Sul telefono: la lingua in due lettere e l'app sempre a portata, in alto */
@media (max-width: 39.99rem) {
  .nav-support {
    display: none;
  }

  .nav-link .long,
  .nav-app .long {
    display: none;
  }

  .nav-link .short,
  .nav-app .short {
    display: inline;
  }

  .nav-link .short {
    font-weight: 600;
    letter-spacing: 0.04em;
  }

  .nav-app {
    margin-left: 0;
  }
}

/* MARK: La griglia annotata */

.chapter,
.plain,
.hero-grid,
.footer {
  display: grid;
  grid-template-columns: var(--cols);
}

.row,
.timeline {
  grid-column: full;
  display: grid;
  grid-template-columns: subgrid;
}

.row > .hang,
.row > .text,
.row > h2 {
  grid-column: text;
}

.text > p + p {
  margin-top: var(--s-l);
}

.chapter {
  padding-top: var(--s-chapter);
}

.chapter > .row + .row {
  margin-top: var(--s-xxl);
}

/* Il titolo sta vicino al suo testo, lontano dalla sezione prima */
.chapter > .row:has(> h2) + .row {
  margin-top: 0;
}

@media (min-width: 64rem) {
  .row > .hang {
    grid-column: hang;
    grid-row: 1;
  }

  .row > .text,
  .row > h2 {
    grid-column: text;
    grid-row: 1;
  }
}

/* MARK: Prima schermata */

.hero {
  position: relative;
  isolation: isolate;
}

.scene {
  position: relative;
  height: clamp(14rem, 38svh, 22rem);
  overflow: hidden;
}

/* Sul telefono la scena è una fascia: luna e airone al centro (scene.mjs: FOCUS_X 1946 su W 2700) */
.scene-art {
  position: absolute;
  top: 0;
  left: 50%;
  height: 100%;
  width: auto;
  max-width: none;
  aspect-ratio: 2700 / 1350;
  transform: translateX(-72.07%);
}

.hero-grid {
  padding-top: var(--s-s);
  row-gap: var(--s-xxl);
}

.hero-copy {
  grid-column: text;
}

.hero h1 {
  font-size: clamp(2.5rem, 1.2rem + 4.2vw, 5.25rem);
  line-height: 1.02;
  max-width: 12.5ch;
}

.lead {
  margin-top: var(--s-xl);
  max-width: 34rem;
  color: var(--text);
  font-size: 1.1875rem;
  line-height: 1.6;
}

.lead-2 {
  margin-top: var(--s-l);
  max-width: 34rem;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-xs) var(--s-l);
  margin-top: var(--s-xl);
  color: var(--text-3);
  font-size: 0.875rem;
  font-weight: 500;
}

.meta li {
  display: inline-flex;
  align-items: center;
  gap: var(--s-s);
}

.meta li::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

@media (min-width: 64rem) {
  .hero {
    min-height: max(100svh, 50vw);
    display: grid;
  }

  /* Sul computer il lago riempie la pagina in larghezza, e sfuma nella notte in fondo */
  .scene {
    position: absolute;
    inset: 0 0 auto;
    z-index: -1;
    height: auto;
    aspect-ratio: 2700 / 1350;
  }

  .scene-art {
    left: 0;
    width: 100%;
    height: 100%;
    transform: none;
  }

  .hero-grid {
    align-content: center;
    padding-block: clamp(6.5rem, 12vh, 9rem) clamp(4rem, 10vh, 7rem);
  }

  .hero-copy {
    grid-column: hang-start / text-end;
  }

  .hero .lead {
    font-size: 1.3125rem;
  }

  /* Tra 1024 e 1200 px la luna e la sua scia sono più vicine al testo */
  .hero .lead,
  .hero .lead-2 {
    max-width: min(34rem, 54vw);
  }

}

/* MARK: Il percorso */

.path-figure {
  grid-column: text;
  margin-top: var(--s-huge);
}

.weeks {
  display: grid;
  gap: var(--s-huge);
}

.week {
  padding-top: var(--s-xl);
  border-top: 1px solid var(--hair);
}

.week h3 {
  font-family: var(--voice);
  font-size: 1.625rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.week-meta,
.week-alt {
  margin-top: var(--s-xs);
  color: var(--text-3);
  font-size: 0.875rem;
  line-height: 1.5;
}

.dots {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: var(--s-l) 0 var(--s-s);
}

/* Le notti senza lezione nel contenuto copiato: il contorno tratteggiato del design system */
.dot {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px dashed var(--dashed-strong);
  color: var(--text-3);
  font-size: 0.6875rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.path-figure figcaption {
  margin-top: var(--s-xxxl);
  max-width: 40rem;
  color: var(--text-3);
  font-size: 0.9375rem;
  line-height: 1.6;
}

@media (min-width: 64rem) {
  .path-figure {
    grid-column: wide;
  }

  .weeks {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: var(--s-huge) var(--s-huge);
  }

  .week.is-written {
    grid-column: span 3;
  }

  .week.is-coming {
    grid-column: span 2;
  }
}

/* Le lezioni: una riga che si apre (DSPathRow, senza card) */
.lessons {
  margin-top: var(--s-s);
}

.lesson {
  border-bottom: 1px solid var(--hair-soft);
}

.lesson summary {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) auto 1rem;
  align-items: baseline;
  column-gap: var(--s-m);
  min-height: 44px;
  padding: 0.8rem var(--s-s);
  margin: 0 calc(var(--s-s) * -1);
  border-radius: var(--r-s);
  cursor: pointer;
  list-style: none;
  transition: background-color var(--tap) ease-out;
}

.lesson summary::-webkit-details-marker {
  display: none;
}

.lesson summary:hover {
  background: var(--surface);
}

.lesson-n {
  color: var(--indigo);
  font-size: 0.875rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* La notte 1, da cui si parte: il cerchio alba di "stanotte" nell'app */
.lesson-n.is-first {
  display: inline-grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  margin-left: -0.25rem;
  border-radius: 50%;
  background: var(--dawn);
  color: var(--on-dawn);
  font-size: 0.75rem;
  font-weight: 700;
  align-self: center;
}

.lesson-t {
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

.lesson-m {
  color: var(--text-3);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.chevron {
  width: 1rem;
  height: 1rem;
  align-self: center;
  color: var(--text-3);
  transition: transform var(--standard) var(--ease-out);
}

details[open] > summary .chevron {
  transform: rotate(180deg);
}

.lesson-more {
  padding: 0 0 var(--s-xl) calc(2rem + var(--s-m));
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* Senza numero (le domande dell'assistenza, le lezioni di sicurezza) */
.lessons-faq summary,
.lessons-safety summary {
  grid-template-columns: minmax(0, 1fr) auto 1rem;
}

.lessons-faq summary {
  grid-template-columns: minmax(0, 1fr) 1rem;
}

.lessons-faq .lesson-more,
.lessons-safety .lesson-more {
  padding-left: 0;
}

/* MARK: Una notte */

.timeline {
  margin-top: var(--s-xxxl);
}

.moment {
  padding-block: var(--s-xxl);
}

.moment::before {
  content: "";
  grid-column: text;
  grid-row: 1;
  align-self: start;
  margin-top: calc(var(--s-xxl) * -1);
  border-top: 1px solid var(--hair-soft);
}

.clock {
  display: block;
  margin-bottom: var(--s-s);
  color: var(--indigo);
  font-size: 1.75rem;
  font-weight: 300;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.clock-word {
  padding-top: 0.15rem;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
}

.moment h3 + p {
  margin-top: var(--s-s);
}

.intention {
  margin-top: var(--s-l);
}

.intention p {
  color: var(--text);
  font-family: var(--voice);
  font-size: clamp(1.375rem, 1.1rem + 0.9vw, 1.75rem);
  font-weight: 300;
  line-height: 1.35;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.intention p::before {
  content: "“";
}

.intention p::after {
  content: "”";
}

@media (min-width: 64rem) {
  .moment::before {
    grid-column: wide;
  }

  .clock {
    margin-bottom: 0;
  }
}

/* MARK: Sicurezza, Watch, dati */

.lessons-intro {
  margin-top: var(--s-xl);
}

.lessons-safety {
  margin-block: var(--s-s) var(--s-xl);
}

/* Una frase da fermarsi a leggere: la voce dell'app (Fraunces 300, lo stile "quote") */
.statement {
  color: var(--text);
  font-family: var(--voice);
  font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.125rem);
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}

.text > .statement + p {
  margin-top: var(--s-xl);
}

.pair {
  display: grid;
  gap: var(--s-chapter);
}

.pair h2 {
  font-size: clamp(1.75rem, 1.25rem + 1.5vw, 2.5rem);
  margin-bottom: var(--s-xl);
}

.facts li {
  padding-block: var(--s-m);
  border-top: 1px solid var(--hair-soft);
}

.facts li:last-child {
  border-bottom: 1px solid var(--hair-soft);
}

@media (min-width: 64rem) {
  .row > .text.pair {
    grid-column: wide;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--s-huge);
  }
}

/* MARK: L'app: la chiusura */

.chapter-app {
  margin-top: var(--s-chapter);
  padding-block: var(--s-chapter);
  background: var(--night-deep);
  border-block: 1px solid var(--hair-faint);
}

.app-icon {
  width: 96px;
  height: 96px;
  margin-bottom: var(--s-xl);
  border-radius: 22px;
}

@media (min-width: 64rem) {
  .app-icon {
    width: min(100%, 96px);
    height: auto;
    margin-top: 0.6rem;
  }
}

.chapter-app h2 {
  font-size: clamp(2.5rem, 1.5rem + 3.4vw, 4.5rem);
  line-height: 1.02;
}

.chapter-app .text > p:first-of-type {
  max-width: 34rem;
  color: var(--text);
  font-size: 1.1875rem;
  line-height: 1.6;
}

/* Il badge ufficiale di App Store, così com'è: alto 54 px (Apple chiede almeno 40) e, intorno,
   spazio libero per almeno un quarto della sua altezza. */
.store-badge {
  display: inline-block;
  margin-block: 14px;
  line-height: 0;
}

.store-badge img {
  display: block;
  width: auto;
  height: 54px;
}

/* MARK: Pagine semplici (assistenza, privacy, termini, 404) */

.plain {
  padding-top: clamp(7rem, 6rem + 4vw, 10rem);
}

.plain h1 {
  font-size: clamp(2.5rem, 1.6rem + 3vw, 4rem);
  line-height: 1.05;
}

.plain .lead {
  font-size: 1.1875rem;
}

.plain h2 {
  margin: var(--s-huge) 0 var(--s-l);
  font-size: clamp(1.625rem, 1.3rem + 1vw, 2rem);
}

.plain .facts {
  max-width: 38rem;
}

.not-found {
  min-height: 70svh;
}

/* I testi legali */
.draft-banner {
  grid-column: full;
  margin-bottom: var(--s-xxxl);
  padding: var(--s-m) var(--edge);
  background: var(--raised);
  border-block: 1px dashed var(--dashed-strong);
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 600;
  text-align: center;
}

.page-legal .plain {
  padding-top: clamp(6rem, 5rem + 3vw, 8rem);
}

.prose {
  font-size: 1rem;
  line-height: 1.7;
}

.prose h1 {
  margin-bottom: var(--s-xl);
}

.prose h2 {
  margin: var(--s-huge) 0 var(--s-l);
  font-size: 1.75rem;
}

.prose h3 {
  margin: var(--s-xxl) 0 var(--s-s);
}

.prose p,
.prose ul,
.prose ol,
.prose blockquote,
.prose .table-wrap {
  margin-top: var(--s-l);
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li + li {
  margin-top: var(--s-s);
}

.prose li::marker {
  color: var(--indigo);
}

.prose hr {
  margin: var(--s-xxxl) 0;
  border: 0;
  border-top: 1px solid var(--hair);
}

.prose blockquote {
  padding: var(--s-l) var(--s-xl);
  background: var(--surface);
  border-radius: var(--r-m);
}

.prose code {
  font-size: 0.9em;
}

.table-wrap {
  overflow-x: auto;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.prose th,
.prose td {
  padding: var(--s-m) var(--s-m) var(--s-m) 0;
  border-bottom: 1px solid var(--hair);
  text-align: left;
  vertical-align: top;
}

.prose th {
  color: var(--text);
  font-weight: 600;
}

.placeholder {
  padding: 0 0.2em;
  border-radius: 4px;
  background: var(--dawn-subtle);
  color: var(--dawn);
}

@media (min-width: 64rem) {
  .row > .text.prose {
    grid-column: text-start / wide-end;
  }
}

/* MARK: Piede */

.footer {
  margin-top: var(--s-chapter);
  padding-block: var(--s-xxxl) var(--s-huge);
  border-top: 1px solid var(--hair);
  color: var(--text-3);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.page-home .footer {
  margin-top: 0;
}

.footer .row {
  row-gap: var(--s-xl);
}

.footer-brand,
.footer-links,
.footer-fine {
  grid-column: text;
}

.footer-name {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: var(--s-xs);
  color: var(--text);
  font-family: var(--voice);
  font-size: 1.25rem;
}

.footer-name img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.footer-links {
  display: grid;
  gap: var(--s-xs);
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-2);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-links .soon {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  column-gap: 0.3em;
  min-height: 44px;
  color: var(--text-2);
}

.footer-links .soon span {
  color: var(--text-3);
}

.footer-fine {
  font-size: 0.8125rem;
}

@media (min-width: 64rem) {
  .footer-brand,
  .footer-fine {
    grid-column: hang-start / text-end;
  }

  .footer-links {
    grid-column: hang-start / wide-end;
    display: flex;
    flex-wrap: wrap;
    gap: 0 var(--s-xxl);
  }
}

/* MARK: L'acqua che si muove — l'unico movimento della pagina */

.glade {
  animation: shimmer 8s ease-in-out infinite;
}

.glade-2 {
  animation-delay: -2.7s;
}

.glade-3 {
  animation-delay: -5.4s;
}

@keyframes shimmer {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

.ripple {
  transform-box: fill-box;
  transform-origin: center;
  animation: ripple 7s cubic-bezier(0.22, 0.61, 0.36, 1) infinite;
}

.ripple-2 {
  animation-delay: -1.4s;
}

.ripple-3 {
  animation-delay: -2.8s;
}

.ripple-4 {
  animation-delay: -4.2s;
}

.ripple-5 {
  animation-delay: -5.6s;
}

@keyframes ripple {
  0% {
    transform: scale(0.82);
    opacity: 0;
  }
  25% {
    opacity: 0.75;
  }
  100% {
    transform: scale(1.18);
    opacity: 0;
  }
}

.scene.is-paused .glade,
.scene.is-paused .ripple {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .glade,
  .ripple {
    animation: none;
  }

  .btn:active {
    transform: none;
  }
}
