/* Questo codice è stato progettato, scritto e generato da Andrea Gentile C.f GNTNDR88S28F158M */

/**
 * Identità Recordia — foglio unico condiviso da tutta la suite.
 *
 * I colori vengono dal marchio: il tortora della scritta RECORDIA, il grigio
 * del nodo, il tricolore del filetto. Non se ne aggiungono altri: il colore
 * nell'interfaccia è quasi tutto sui prodotti, e i prodotti sono le foto e i
 * materiali degli album.
 */

:root {
  /* marchio */
  --rc-taupe:      #7C6C5D;
  --rc-taupe-dark: #6E6055;
  --rc-taupe-soft: #B6A899;
  --rc-grey:       #9C9995;

  --rc-verde: #009246;
  --rc-rosso: #CE2B37;

  /* superfici */
  --rc-paper:   #FCFBFA;
  --rc-surface: #F4F2EF;
  --rc-sunken:  #EDEAE5;
  --rc-line:    #E3DED8;
  --rc-ink:     #322D28;
  --rc-ink-2:   #6B655E;

  /* stato */
  --rc-ok:    #2E7D57;
  --rc-warn:  #A9762A;
  --rc-error: #A6392C;

  --rc-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
             "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif;
  --rc-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --rc-r-sm: 8px;
  --rc-r-md: 12px;
  --rc-r-lg: 18px;

  --rc-shadow: 0 1px 2px rgba(50, 45, 40, 0.05), 0 8px 24px rgba(50, 45, 40, 0.07);
}

@media (prefers-color-scheme: dark) {
  :root {
    --rc-paper:   #17130F;
    --rc-surface: #201B16;
    --rc-sunken:  #120F0C;
    --rc-line:    #2E2822;
    --rc-ink:     #EDE8E2;
    --rc-ink-2:   #A29A91;
    --rc-taupe:      #B9A796;
    --rc-taupe-dark: #CDBEAF;
    --rc-grey:       #8B8681;
    --rc-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
  }
}

/* --------------------------------------------------------------- di base */

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--rc-paper);
  color: var(--rc-ink);
  font-family: var(--rc-sans);
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: -0.003em;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--rc-taupe); color: var(--rc-paper); }

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* --------------------------------------------------------------- marchio */

.rc-brand { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; }
.rc-brand img { display: block; height: auto; }

.rc-wordmark {
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  color: var(--rc-taupe);
}

.rc-sub {
  font-size: 0.6rem;
  letter-spacing: 0.32em;
  text-indent: 0.32em;
  text-transform: uppercase;
  color: var(--rc-grey);
}

/* Il filetto del marchio: unico segno decorativo ammesso. */
.rc-tricolore {
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg,
    var(--rc-verde) 0 33.33%, var(--rc-line) 33.33% 66.66%, var(--rc-rosso) 66.66%);
}

/* ------------------------------------------------------------- struttura */

.rc-topbar {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 58px;
  padding: 0 20px;
  background: color-mix(in srgb, var(--rc-paper) 82%, transparent);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--rc-line);
  position: sticky;
  top: 0;
  z-index: 40;
}

.rc-topbar .rc-mark { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.rc-topbar .rc-mark img { height: 26px; }
.rc-topbar .rc-mark .rc-wordmark { font-size: 1rem; letter-spacing: 0.2em; }

.rc-spacer { flex: 1; }

/* Passi del flusso: dicono sempre a che punto è il lavoro. */
.rc-steps { display: flex; align-items: center; gap: 4px; }

.rc-step {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--rc-ink-2);
  text-decoration: none;
  white-space: nowrap;
}

.rc-step[aria-current="step"] { background: var(--rc-surface); color: var(--rc-ink); font-weight: 600; }
.rc-step[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }

.rc-step i {
  display: grid;
  place-items: center;
  width: 19px; height: 19px;
  border-radius: 50%;
  background: var(--rc-line);
  color: var(--rc-ink-2);
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 600;
}

.rc-step[aria-current="step"] i { background: var(--rc-taupe); color: var(--rc-paper); }
.rc-step.is-done i { background: var(--rc-ok); color: #fff; }

@media (max-width: 760px) {
  .rc-steps .rc-step span { display: none; }
  .rc-step { padding: 6px; }
}

/* -------------------------------------------------------------- comandi */

.rc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--rc-taupe);
  color: var(--rc-paper);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.16s, transform 0.16s, opacity 0.16s;
}

.rc-btn:hover { background: var(--rc-taupe-dark); }
.rc-btn:active { transform: scale(0.985); }
.rc-btn[disabled] { opacity: 0.45; cursor: default; }

.rc-btn--ghost {
  background: transparent;
  color: var(--rc-ink);
  border-color: var(--rc-line);
}
.rc-btn--ghost:hover { background: var(--rc-surface); }

.rc-btn--plain { background: transparent; color: var(--rc-taupe); padding: 8px 10px; }
.rc-btn--plain:hover { background: var(--rc-surface); }

/* ---------------------------------------------------------------- schede */

.rc-card {
  background: var(--rc-surface);
  border: 1px solid var(--rc-line);
  border-radius: var(--rc-r-lg);
  padding: 20px;
}

.rc-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 56px 24px;
  text-align: center;
  color: var(--rc-ink-2);
  border: 1px dashed var(--rc-line);
  border-radius: var(--rc-r-lg);
}

/* ------------------------------------------------------------ tipografia */

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; text-wrap: balance; }
h1 { font-size: 1.9rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.02rem; }

.rc-muted { color: var(--rc-ink-2); }
.rc-small { font-size: 0.85rem; line-height: 1.5; }

.rc-eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rc-taupe);
}

.rc-code {
  font-family: var(--rc-mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--rc-ink-2);
}

/* ------------------------------------------------------------ avanzamento */

.rc-progress { height: 4px; border-radius: 999px; background: var(--rc-line); overflow: hidden; }
.rc-progress > i { display: block; height: 100%; background: var(--rc-taupe); transition: width 0.35s ease; }
