/* =========================================================
   VEYLON — Sistema di design
   Look Mantine 2026-07-05: palette veylon-gold + veylon-ink,
   font Lora headings + Inter body + JetBrains Mono, radius soft
   ========================================================= */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Lora:ital,wght@0,400;0,500;0,600;1,400;1,500&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  /* Carta & inchiostro ---------------------------------- */
  /* Look Mantine: bianco puro con leggero accento gold sui pannelli */
  --paper:    #ffffff;                    /* fondo bianco puro */
  --paper-2:  #fbf6ec;                    /* card / pannelli (veylon-gold-0) */
  --paper-3:  #f4e8d0;                    /* zone piu scure (veylon-gold-1) */
  --ink:      #1a1a1a;                    /* nero (veylon-ink-7) */
  --ink-2:    #494949;                    /* testo secondario (veylon-ink-5) */
  --ink-3:    #727272;                    /* didascalie (veylon-ink-4) */
  --ink-4:    #a0a0a0;                    /* placeholder (veylon-ink-3) */
  --rule:     #c8c8c8;                    /* hairline forte (veylon-ink-2) */
  --rule-2:   #e5e5e5;                    /* hairline tenue (veylon-ink-1) */

  /* Accenti --------------------------------------------- */
  /* Sostituzione: rosso ceralacca -> gold Mantine (identita nuova) */
  --seal:     #b8995e;                    /* gold-5 primary */
  --seal-2:   #a07f4a;                    /* gold-6 pressed */
  --seal-50:  #fbf6ec;                    /* gold-0 fondo tenue */
  --verify:   #16a34a;                    /* verde Tailwind-500 */
  --gold:     #b8995e;                    /* gold nastro (= seal) */
  --amber:    #d97706;                    /* amber-600 attesa */

  /* Tipografia ------------------------------------------ */
  --serif:    "Lora", "Times New Roman", serif;
  --sans:     "Inter", system-ui, -apple-system, sans-serif;
  --mono:     "JetBrains Mono", ui-monospace, monospace;

  /* Geometria ------------------------------------------- */
  --hairline: 1px solid var(--rule-2);
  --hairline-strong: 1px solid var(--rule);
  --col:      1180px;
  --col-narrow: 760px;

  /* Radius Mantine (nuovo) ------------------------------ */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 12px;
  --radius-xl: 20px;

  /* Ombre Mantine (nuovo) ------------------------------- */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px -2px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px -4px rgba(0, 0, 0, 0.12);
}

/* Reset ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* Selezione testo nel colore ceralacca */
::selection { background: var(--seal); color: var(--paper); }

/* Grana sottile del fondo (carta) */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(circle at 20% 30%, oklch(0.5 0.02 60 / 0.025) 0 1px, transparent 1px),
    radial-gradient(circle at 80% 70%, oklch(0.5 0.02 60 / 0.02) 0 1px, transparent 1px);
  background-size: 4px 4px, 7px 7px;
  mix-blend-mode: multiply;
}
body > * { position: relative; z-index: 1; }

/* =========================================================
   Tipografia
   ========================================================= */
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.005em; }
.serif-italic { font-family: var(--serif); font-style: italic; font-weight: 400; }
.mono { font-family: var(--mono); font-weight: 400; }
.sans { font-family: var(--sans); }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow-ink { color: var(--ink); }
.eyebrow-seal { color: var(--seal); }

.display {
  font-family: var(--serif);
  font-size: clamp(48px, 7.4vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  font-weight: 400;
  color: var(--ink);
}
.display em { font-style: italic; color: var(--seal); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.012em; }
h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.04; margin: 0; }
h3 { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.15; margin: 0; }

.lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 38ch;
}

p { margin: 0 0 1em; }
p.body { font-size: 15px; line-height: 1.65; color: var(--ink-2); max-width: 62ch; }
small, .small { font-size: 12px; color: var(--ink-3); }

/* Numerazione romana caratteristica */
.roman {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}
.section-num {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.16em;
}

/* =========================================================
   Layout
   ========================================================= */
.col      { max-width: var(--col); margin: 0 auto; padding: 0 32px; }
.col-narrow { max-width: var(--col-narrow); margin: 0 auto; padding: 0 32px; }

.rule    { height: 1px; background: var(--rule); border: 0; margin: 0; }
.rule-2  { height: 1px; background: var(--rule-2); border: 0; margin: 0; }

.stack-8  { display: flex; flex-direction: column; gap: 8px; }
.stack-12 { display: flex; flex-direction: column; gap: 12px; }
.stack-16 { display: flex; flex-direction: column; gap: 16px; }
.stack-24 { display: flex; flex-direction: column; gap: 24px; }
.stack-32 { display: flex; flex-direction: column; gap: 32px; }
.stack-48 { display: flex; flex-direction: column; gap: 48px; }

.row      { display: flex; align-items: center; }
.row-gap  { gap: 16px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

/* =========================================================
   Masthead (header)
   ========================================================= */
.masthead {
  border-bottom: var(--hairline-strong);
  background: var(--paper);
}
.masthead-inner {
  max-width: var(--col);
  margin: 0 auto;
  padding: 18px 32px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.wordmark {
  font-family: var(--serif);
  font-size: 28px;
  letter-spacing: 0.32em;
  color: var(--ink);
  font-weight: 400;
  padding-left: 6px;
}
.wordmark::after {
  content: "·";
  margin-left: 0.4em;
  color: var(--seal);
}
.masthead-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex;
  gap: 18px;
  justify-content: center;
  text-align: center;
}
.masthead-meta span { white-space: nowrap; }
.masthead-meta .sep { color: var(--rule); }
.masthead-nav {
  display: flex;
  gap: 22px;
  justify-content: flex-end;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.masthead-nav a {
  color: var(--ink-2);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color .15s, border-color .15s;
}
.masthead-nav a:hover { color: var(--ink); border-bottom-color: var(--seal); }
.masthead-nav a.current, .nav-aux.current { color: var(--ink); border-bottom: 1px solid var(--seal); }
/* Masthead nav esteso — per pagine riservate con molti servizi */
.masthead-nav.full {
  gap: 11px;
  font-size: 9.5px;
  letter-spacing: 0.09em;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.masthead-nav.full a {
  white-space: nowrap;
}
.masthead-nav.full .nav-sep {
  color: var(--rule);
  user-select: none;
}
.masthead-nav.full .nav-aux {
  color: var(--seal);
  border-bottom: 1px solid var(--seal);
  margin-left: 6px;
}

/* Banda inferiore del masthead */
.masthead-band {
  border-top: var(--hairline);
  border-bottom: var(--hairline-strong);
  background: var(--paper-2);
}
.masthead-band-inner {
  max-width: var(--col);
  margin: 0 auto;
  padding: 8px 32px;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* =========================================================
   Sigillo (marca)
   ========================================================= */
.seal-mark {
  width: 84px; height: 84px;
  border-radius: 50%;
  border: 1px solid var(--seal);
  color: var(--seal);
  display: grid; place-items: center;
  position: relative;
  flex-shrink: 0;
}
.seal-mark::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 1px solid var(--seal);
  opacity: 0.6;
}
.seal-mark .glyph {
  font-family: var(--serif);
  font-style: italic;
  font-size: 36px;
  line-height: 1;
  color: var(--seal);
}

/* Sigillo grande illustrato per certificato */
.seal-mark-lg {
  width: 168px; height: 168px;
}
.seal-mark-lg .glyph { font-size: 72px; }

/* =========================================================
   Pulsanti
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--seal); border-color: var(--seal); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn.seal { background: var(--seal); border-color: var(--seal); }
.btn.seal:hover { background: var(--seal-2); border-color: var(--seal-2); }
.btn.lg { padding: 16px 28px; font-size: 13px; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

.btn .arrow {
  width: 16px; height: 1px; background: currentColor;
  position: relative;
}
.btn .arrow::after {
  content: ""; position: absolute; right: 0; top: -3px;
  width: 7px; height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}

/* Link testuale con underline ceralacca */
.link-seal {
  color: var(--ink);
  border-bottom: 1px solid var(--seal);
  padding-bottom: 1px;
}
.link-seal:hover { color: var(--seal); }

/* =========================================================
   Card / Riquadri
   ========================================================= */
.panel {
  background: var(--paper-2);
  border: var(--hairline-strong);
  padding: 32px;
}
.panel-inset {
  background: var(--paper);
  border: var(--hairline);
  padding: 24px;
}

.label-rail {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-left: 1px solid var(--seal);
  padding-left: 12px;
}

/* Hash come opera */
.hash-art {
  font-family: var(--mono);
  font-weight: 300;
  font-size: clamp(14px, 1.4vw, 18px);
  line-height: 1.85;
  letter-spacing: 0.06em;
  color: var(--ink);
  word-break: break-all;
}
.hash-art .group { display: inline-block; margin-right: 0.4em; }

.hash-display {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink);
  background: var(--paper);
  border: var(--hairline);
  padding: 16px 18px;
  word-break: break-all;
  letter-spacing: 0.04em;
}

/* =========================================================
   Tabelle / Registro
   ========================================================= */
.register {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.register thead th {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-align: left;
  padding: 14px 16px 12px;
  border-bottom: var(--hairline-strong);
}
.register tbody td {
  padding: 18px 16px;
  border-bottom: var(--hairline);
  vertical-align: top;
}
.register tbody tr:hover td { background: var(--paper-2); cursor: pointer; }
.register .col-num { font-family: var(--mono); color: var(--ink-3); font-size: 12px; width: 56px; }
.register .col-hash { font-family: var(--mono); font-size: 12px; color: var(--ink); }
.register .col-title { font-family: var(--serif); font-size: 17px; line-height: 1.25; }
.register .col-meta { font-family: var(--mono); font-size: 11.5px; color: var(--ink-2); letter-spacing: 0.04em; }

/* =========================================================
   Stato / Status pill (parsimoniosa, niente colorate forti)
   ========================================================= */
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.status .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ink-3);
}
.status.confirmed .dot { background: var(--verify); }
.status.confirmed { color: var(--verify); }
.status.pending .dot { background: var(--amber); animation: pulse 1.8s ease-in-out infinite; }
.status.pending { color: var(--amber); }
.status.failed .dot { background: var(--seal); }
.status.failed { color: var(--seal); }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.35} }

/* =========================================================
   Footer
   ========================================================= */
.footer {
  border-top: var(--hairline-strong);
  background: var(--paper-2);
  margin-top: 96px;
}
.footer-inner {
  max-width: var(--col);
  margin: 0 auto;
  padding: 56px 32px 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer h4 {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 16px;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer a { color: var(--ink-2); font-size: 13px; }
.footer a:hover { color: var(--seal); }
.footer-base {
  border-top: var(--hairline);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 20px 32px;
  max-width: var(--col);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
}

/* =========================================================
   Drop zone (notarizzazione)
   ========================================================= */
.drop {
  border: 1px dashed var(--rule);
  background: var(--paper);
  padding: 64px 32px;
  text-align: center;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.drop:hover, .drop.over {
  border-color: var(--seal);
  background: oklch(from var(--paper-2) l c h);
}
.drop .icon {
  width: 48px; height: 48px;
  border: 1px solid var(--ink);
  margin: 0 auto 24px;
  position: relative;
}
.drop .icon::before, .drop .icon::after {
  content: ""; position: absolute;
  background: var(--ink);
}
.drop .icon::before { left: 50%; top: 12px; bottom: 12px; width: 1px; transform: translateX(-50%); }
.drop .icon::after { top: 50%; left: 12px; right: 12px; height: 1px; transform: translateY(-50%); }
.drop .title { font-family: var(--serif); font-size: 24px; line-height: 1.2; color: var(--ink); }
.drop .sub { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-top: 8px; }

/* =========================================================
   Form
   ========================================================= */
.field-label {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 8px;
}
.field-input {
  width: 100%;
  padding: 10px 0 12px;
  border: 0;
  border-bottom: var(--hairline-strong);
  background: transparent;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  outline: none;
  transition: border-color .15s;
}
.field-input:focus { border-bottom-color: var(--seal); }
.field-input.mono { font-family: var(--mono); font-size: 13px; }
.field-input::placeholder { color: var(--ink-4); }

/* =========================================================
   Helpers
   ========================================================= */
.ink-2 { color: var(--ink-2); }
.ink-3 { color: var(--ink-3); }
.seal-c { color: var(--seal); }
.verify-c { color: var(--verify); }
.right { text-align: right; }
.center { text-align: center; }
.upper { text-transform: uppercase; letter-spacing: 0.12em; }
.tabular { font-variant-numeric: tabular-nums; }
.no-wrap { white-space: nowrap; }

/* Decorazione ornamentale (filetto) */
.ornament {
  display: flex; align-items: center; gap: 16px;
  font-family: var(--serif); font-style: italic; color: var(--ink-3);
  font-size: 18px;
}
.ornament::before, .ornament::after {
  content: ""; flex: 1; height: 1px; background: var(--rule);
}

/* Animazioni di entrata */
@media (prefers-reduced-motion: no-preference) {
  .fade-in { animation: fadeIn .6s ease-out both; }
  .rise { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
  @keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}

/* Responsive grossolano */
@media (max-width: 1180px) {
  .masthead-meta { display: none; }
  .masthead-inner { grid-template-columns: auto 1fr; }
  .wordmark { grid-column: 1; }
  .masthead-nav { grid-column: 2; }
}
@media (max-width: 720px) {
  .masthead-inner { grid-template-columns: 1fr; gap: 14px; padding: 16px 24px; }
  .wordmark { font-size: 22px; }
  .masthead-nav { justify-content: flex-start; gap: 18px; flex-wrap: wrap; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .col, .col-narrow { padding: 0 20px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}

/* =========================================================
   LANDING — Hero, trust strip
   ========================================================= */
.hero-veylon {
  padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 80px);
}
.hero-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--seal);
  margin-bottom: 28px;
}
.hero-eyebrow::before {
  content: "§ ";
  color: var(--ink-3);
}
.hero-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 1.8vw, 24px);
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 48ch;
  margin: 28px 0 0;
}
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
}
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(16px, 2.5vw, 32px);
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--rule-2);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.trust-strip .item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.trust-strip .item::before {
  content: "✓";
  color: var(--verify);
  font-size: 13px;
  letter-spacing: 0;
}

/* =========================================================
   PAIN → SOLUTION grid
   ========================================================= */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.pain-cell {
  padding: 36px 32px;
  border-right: 1px solid var(--rule-2);
}
.pain-cell:last-child { border-right: 0; }
.pain-cell .num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--seal);
  margin-bottom: 16px;
}
.pain-cell .pain {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.3;
  color: var(--ink);
  margin: 0 0 16px;
}
.pain-cell .pain em { color: var(--seal); font-style: italic; }
.pain-cell .solution {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--rule-2);
}
.pain-cell .solution::before {
  content: "Con Veylon →";
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--seal);
  margin-bottom: 8px;
}

/* =========================================================
   9 ATTI grid
   ========================================================= */
.atti-grid-9 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--rule);
  background: var(--paper-2);
}
.atto-card {
  display: block;
  padding: 28px 24px;
  background: var(--paper);
  border-right: 1px solid var(--rule-2);
  border-bottom: 1px solid var(--rule-2);
  transition: background .15s, transform .25s;
}
.atto-card:nth-child(3n) { border-right: 0; }
.atto-card:nth-last-child(-n+3) { border-bottom: 0; }
.atto-card:hover { background: var(--paper-2); }
.atto-card .icon {
  width: 32px;
  height: 32px;
  margin-bottom: 18px;
  color: var(--seal);
}
.atto-card .icon svg { width: 100%; height: 100%; }
.atto-card .num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.atto-card .name {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.1;
  color: var(--ink);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.atto-card .desc {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0 0 18px;
  min-height: 3.5em;
}
.atto-card .cta {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  transition: color .15s;
}
.atto-card:hover .cta { color: var(--seal); }

/* =========================================================
   STEPS 3
   ========================================================= */
.steps-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-left: 1px solid var(--rule);
  margin-top: 32px;
}
.step-card {
  padding: 28px 32px 32px;
  border-right: 1px solid var(--rule);
}
.step-card .step-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 56px;
  line-height: 1;
  color: var(--seal);
  margin-bottom: 18px;
}
.step-card .step-title {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 12px;
}
.step-card .step-body {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
}

/* =========================================================
   DIFFERENZIATORI
   ========================================================= */
.differenziatori {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}
.diff-card {
  background: var(--paper-2);
  border: 1px solid var(--rule-2);
  border-left: 3px solid var(--seal);
  padding: 28px;
}
.diff-card .diff-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--seal);
  margin-bottom: 14px;
}
.diff-card .diff-title {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 12px;
}
.diff-card .diff-body {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
}

/* =========================================================
   USES GRID 8
   ========================================================= */
.uses-grid-8 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--rule);
}
.use-card {
  display: block;
  padding: 24px 22px;
  border-right: 1px solid var(--rule-2);
  border-bottom: 1px solid var(--rule-2);
  background: var(--paper);
  transition: background .15s;
}
.use-card:nth-child(4n) { border-right: 0; }
.use-card:nth-last-child(-n+4) { border-bottom: 0; }
.use-card:hover { background: var(--paper-2); }
.use-card .use-segment {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--seal);
  margin-bottom: 12px;
}
.use-card .use-title {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 10px;
}
.use-card .use-body {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0;
}

/* =========================================================
   PRICING teaser 3-tier
   ========================================================= */
.pricing-teaser {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--ink);
  margin-top: 32px;
}
.pricing-tier {
  padding: 32px 28px;
  border-right: 1px solid var(--rule);
  background: var(--paper);
}
.pricing-tier:last-child { border-right: 0; }
.pricing-tier .tier-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--seal);
  margin-bottom: 12px;
}
.pricing-tier .tier-name {
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1.1;
  color: var(--ink);
  margin: 0 0 18px;
}
.pricing-tier .tier-price {
  font-family: var(--serif);
  font-size: 44px;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.pricing-tier .tier-price-unit {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 22px;
}
.pricing-tier .tier-included {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0 0 22px;
  padding-top: 18px;
  border-top: 1px solid var(--rule-2);
}
.pricing-tier .tier-cta {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--seal);
  padding-bottom: 2px;
}

/* =========================================================
   FAQ ACCORDION
   ========================================================= */
.faq-accordion {
  border-top: 1px solid var(--ink);
}
.faq-item {
  border-bottom: 1px solid var(--rule);
}
.faq-item summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  cursor: pointer;
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.3;
  color: var(--ink);
  list-style: none;
  transition: color .15s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--mono);
  font-size: 24px;
  color: var(--seal);
  flex-shrink: 0;
  line-height: 1;
  transition: transform .25s;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item summary:hover { color: var(--seal); }
.faq-body {
  padding: 0 0 28px;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 64ch;
}
.faq-body p { margin: 0 0 12px; }
.faq-body p:last-child { margin-bottom: 0; }

/* =========================================================
   FINAL CTA section
   ========================================================= */
.final-cta {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(56px, 8vw, 96px) 0;
  text-align: center;
}
.final-cta h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.05;
  color: var(--paper);
  margin: 0 0 18px;
  letter-spacing: -0.02em;
}
.final-cta h2 em { color: var(--gold); font-style: italic; }
.final-cta p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 1.8vw, 22px);
  color: var(--paper);
  opacity: 0.78;
  margin: 0 auto 32px;
  max-width: 44ch;
}
.final-cta .btn {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
.final-cta .btn:hover {
  background: var(--seal);
  border-color: var(--seal);
  color: var(--paper);
}
.final-cta .small-link {
  display: block;
  margin-top: 24px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper);
  opacity: 0.6;
}
.final-cta .small-link a {
  border-bottom: 1px solid var(--gold);
  padding-bottom: 1px;
}
.final-cta .small-link a:hover { color: var(--gold); }

/* =========================================================
   FOOTER ricco (4 colonne)
   ========================================================= */
.footer-rich {
  border-top: var(--hairline-strong);
  background: var(--paper-2);
  margin-top: 0;
}
.footer-rich-inner {
  max-width: var(--col);
  margin: 0 auto;
  padding: 64px 32px 40px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-rich .brand-col p {
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 34ch;
  margin: 14px 0 24px;
}
.footer-rich .brand-col .footer-stamp {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  line-height: 1.6;
}
.footer-rich h4 {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 18px;
}
.footer-rich ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-rich a {
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.4;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color .15s, border-color .15s;
}
.footer-rich a:hover { color: var(--seal); border-color: var(--seal); }
.footer-rich-base {
  border-top: var(--hairline);
  max-width: var(--col);
  margin: 0 auto;
  padding: 22px 32px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* =========================================================
   Section headers landing
   ========================================================= */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}
.section-head .head-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 12px;
}
.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
  max-width: 22ch;
}
.section-head h2 em { color: var(--seal); font-style: italic; }
.section-head .head-roman {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-3);
}
.section-head .head-link {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  border-bottom: 1px solid var(--seal);
  padding-bottom: 2px;
}
.section-head .head-link:hover { color: var(--seal); }

/* =========================================================
   FADE-IN on scroll (CSS-only via @starting-style fallback)
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    animation: revealFade 0.7s cubic-bezier(.16,1,.3,1) both;
    animation-timeline: view();
    animation-range: entry 0% entry 60%;
  }
  @keyframes revealFade {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: none; }
  }
}

/* =========================================================
   AUTH — Trust strip per login/signup
   ========================================================= */
.auth-trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 22px;
  margin: 0 0 28px;
  padding: 14px 18px;
  background: var(--paper-2);
  border: 1px solid var(--rule-2);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.auth-trust-strip .item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.auth-trust-strip .item::before {
  content: "✓";
  color: var(--verify);
  font-size: 12px;
  letter-spacing: 0;
}

/* Password strength meter */
.pw-strength {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-top: 10px;
}
.pw-strength span {
  height: 3px;
  background: var(--rule-2);
  transition: background .2s;
}
.pw-strength.level-1 span:nth-child(-n+1) { background: var(--seal); }
.pw-strength.level-2 span:nth-child(-n+2) { background: var(--amber); }
.pw-strength.level-3 span:nth-child(-n+3) { background: var(--gold); }
.pw-strength.level-4 span { background: var(--verify); }
.pw-strength-label {
  display: block;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* =========================================================
   ONBOARDING stepper
   ========================================================= */
.stepper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--rule);
  margin-bottom: 32px;
}
.stepper .step {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  border-right: 1px solid var(--rule-2);
  background: var(--paper);
  color: var(--ink-3);
  font-family: var(--serif);
  font-size: 15px;
}
.stepper .step:last-child { border-right: 0; }
.stepper .step .num {
  width: 28px;
  height: 28px;
  border: 1px solid var(--ink-3);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
}
.stepper .step.current { background: var(--paper-2); color: var(--ink); }
.stepper .step.current .num { background: var(--seal); border-color: var(--seal); color: var(--paper); }
.stepper .step.done { color: var(--verify); }
.stepper .step.done .num { background: var(--verify); border-color: var(--verify); color: var(--paper); }

.progress-bar {
  height: 2px;
  background: var(--rule-2);
  margin-bottom: 28px;
  overflow: hidden;
}
.progress-bar > span {
  display: block;
  height: 100%;
  background: var(--seal);
  transition: width .4s cubic-bezier(.16,1,.3,1);
}

/* =========================================================
   DASHBOARD — Empty state + KPI delta
   ========================================================= */
.empty-state-hero {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--seal);
  padding: clamp(28px, 4vw, 48px);
  margin-bottom: 48px;
}
.empty-state-hero h3 {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.1;
  margin: 0 0 14px;
}
.empty-state-hero p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--ink-2);
  margin: 0 0 24px;
  max-width: 48ch;
}
.empty-state-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.empty-state-action {
  display: block;
  padding: 20px 22px;
  background: var(--paper);
  border: 1px solid var(--rule);
  transition: border-color .15s, background .15s;
}
.empty-state-action:hover {
  border-color: var(--seal);
  background: var(--paper-2);
}
.empty-state-action .label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--seal);
  margin-bottom: 8px;
}
.empty-state-action .title {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--ink);
}

.kpi-delta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  margin-top: 6px;
}
.kpi-delta.up { color: var(--verify); }
.kpi-delta.up::before { content: "▲"; }
.kpi-delta.down { color: var(--seal); }
.kpi-delta.down::before { content: "▼"; }
.kpi-delta.flat { color: var(--ink-3); }
.kpi-delta.flat::before { content: "–"; }

/* =========================================================
   Responsive landing
   ========================================================= */
@media (max-width: 980px) {
  .pain-grid,
  .steps-3,
  .differenziatori,
  .atti-grid-9 {
    grid-template-columns: 1fr;
  }
  .pain-cell,
  .step-card {
    border-right: 0;
    border-bottom: 1px solid var(--rule-2);
  }
  .pain-cell:last-child,
  .step-card:last-child { border-bottom: 0; }
  .atto-card {
    border-right: 0;
  }
  .atto-card:nth-child(3n) { border-right: 0; }
  .uses-grid-8 { grid-template-columns: repeat(2, 1fr); }
  .use-card:nth-child(4n) { border-right: 1px solid var(--rule-2); }
  .use-card:nth-child(2n) { border-right: 0; }
  .pricing-teaser { grid-template-columns: 1fr; }
  .pricing-tier {
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }
  .pricing-tier:last-child { border-bottom: 0; }
  .footer-rich-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-rich .brand-col { grid-column: 1 / -1; }
  .empty-state-actions { grid-template-columns: 1fr; }
  .stepper { grid-template-columns: 1fr; }
  .stepper .step {
    border-right: 0;
    border-bottom: 1px solid var(--rule-2);
  }
  .stepper .step:last-child { border-bottom: 0; }
}
@media (max-width: 600px) {
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .uses-grid-8 { grid-template-columns: 1fr; }
  .use-card { border-right: 0; }
  .footer-rich-inner { grid-template-columns: 1fr; }
  .footer-rich-base { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   APP SHELL — sidebar laterale fissa (semplice, 11 voci flat)
   Manuel 2026-06-15
   ========================================================================== */

body.app {
  margin: 0;
  --app-sidebar-w: 220px;
  --app-sidebar-bg: oklch(98% 0.005 80);
  --app-sidebar-ink: oklch(22% 0.02 250);
  --app-sidebar-ink-muted: oklch(50% 0.015 250);
  --app-sidebar-accent: var(--seal, oklch(45% 0.12 30));
  --app-sidebar-border: oklch(88% 0.008 80);
  --app-sidebar-hover: oklch(95% 0.008 80);
  --app-sidebar-active-bg: oklch(96% 0.012 60);
}

body.app::before { display: none; }
body.app > header.masthead,
body.app .masthead { display: none !important; }

.app-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--app-sidebar-w);
  height: 100vh;
  background: var(--app-sidebar-bg);
  color: var(--app-sidebar-ink);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  z-index: 100;
  border-right: 1px solid var(--app-sidebar-border);
}
.app-sidebar::-webkit-scrollbar { width: 6px; }
.app-sidebar::-webkit-scrollbar-thumb { background: var(--app-sidebar-border); border-radius: 3px; }

.appside-brand {
  padding: 22px 22px 18px;
  border-bottom: 1px solid var(--app-sidebar-border);
}
.appside-brand-link { display: block; text-decoration: none; color: var(--app-sidebar-ink); }
.appside-brand-name {
  display: block;
  font-family: var(--serif, Georgia, serif);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.14em;
  line-height: 1;
}
.appside-brand-tag {
  display: block;
  margin-top: 6px;
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--app-sidebar-ink-muted);
}

.appside-nav { flex: 1; padding: 14px 10px 20px; overflow-y: auto; }
.appside-list { list-style: none; margin: 0; padding: 0; }
.appside-link {
  display: block;
  padding: 9px 14px;
  margin-bottom: 1px;
  border-radius: 4px;
  font-size: 14px;
  color: var(--app-sidebar-ink);
  text-decoration: none;
  transition: background 0.12s ease;
  position: relative;
  line-height: 1.4;
}
.appside-link:hover { background: var(--app-sidebar-hover); }
.appside-link.is-active {
  background: var(--app-sidebar-active-bg);
  font-weight: 600;
}
.appside-link.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  bottom: 7px;
  width: 3px;
  background: var(--app-sidebar-accent);
  border-radius: 0 2px 2px 0;
}

.appside-user {
  padding: 12px;
  border-top: 1px solid var(--app-sidebar-border);
}
.appside-user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--app-sidebar-border);
  border-radius: 6px;
  color: var(--app-sidebar-ink);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: background 0.12s ease;
}
.appside-user-card:hover { background: var(--app-sidebar-hover); }
.appside-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--app-sidebar-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  font-family: ui-monospace, SFMono-Regular, monospace;
  flex-shrink: 0;
  letter-spacing: 0.04em;
}
.appside-user-meta { display: flex; flex-direction: column; min-width: 0; }
.appside-user-email {
  font-size: 12.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* =========================================================
   OVERRIDE MANTINE STYLE (2026-07-05)
   Trasforma il look delle 97 HTML esistenti al design Mantine
   della SPA apps/web senza toccare markup o logica JS.
   ========================================================= */

/* Card e pannelli con angoli morbidi + ombra soft */
.panel-card, article.panel-card, .card, .svc, .qa, .kpi9, .hero-kpi,
.proof-card, .empty-state-hero, .empty-state-action {
  border-radius: var(--radius-md) !important;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease !important;
}

/* Panel primari con ombra leggera */
.panel-card, article.panel-card, .card,
.empty-state-hero {
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--rule-2) !important;
}

/* Hover eleva */
.svc:hover, .qa:hover, .kpi9:hover, .proof-card:hover, .hero-kpi:hover,
.empty-state-action:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  border-color: var(--seal) !important;
}

/* Grid con radius */
.svc-grid, .quick-actions, .kpis, .hero-kpis, .kpi9-grid {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--rule-2) !important;
}

/* Bottoni Mantine style */
.btn, button.btn, a.btn,
.btn-primary, .btn-secondary, .btn-ghost, .btn-outline,
button[type="submit"], input[type="submit"] {
  border-radius: var(--radius-sm) !important;
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background 150ms ease, border-color 150ms ease, transform 100ms ease, box-shadow 150ms ease !important;
  cursor: pointer;
}

.btn-primary, button[type="submit"], input[type="submit"] {
  background: var(--seal);
  color: var(--paper);
  border: 1px solid var(--seal);
  padding: 10px 18px;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover, button[type="submit"]:hover, input[type="submit"]:hover {
  background: var(--seal-2);
  border-color: var(--seal-2);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--rule);
  padding: 10px 18px;
}
.btn-secondary:hover {
  background: var(--paper-2);
  border-color: var(--seal);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid transparent;
  padding: 8px 14px;
}
.btn-ghost:hover {
  background: var(--paper-2);
  color: var(--seal);
}

/* Input, textarea, select */
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
textarea, select {
  border-radius: var(--radius-sm) !important;
  border: 1px solid var(--rule) !important;
  padding: 10px 12px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  background: var(--paper);
  transition: border-color 150ms ease, box-shadow 150ms ease !important;
}
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):focus,
textarea:focus, select:focus {
  outline: none;
  border-color: var(--seal) !important;
  box-shadow: 0 0 0 3px rgba(184, 153, 94, 0.18);
}

/* Pill Mantine style */
.pill {
  border-radius: var(--radius-lg) !important;
  padding: 3px 10px !important;
  font-weight: 500;
}

/* Masthead ombra sottile */
.masthead {
  box-shadow: var(--shadow-sm);
  background: var(--paper);
}

/* Sidebar Mantine style */
.appside, .app-sidebar {
  background: var(--paper);
  border-right: 1px solid var(--rule-2) !important;
}
.appside-link, .app-sidebar-link, .app-sidebar a {
  border-radius: var(--radius-sm) !important;
  transition: background 150ms ease, color 150ms ease !important;
}
.appside-link:hover, .app-sidebar-link:hover, .app-sidebar a:hover {
  background: var(--paper-2);
  color: var(--seal);
}
.appside-link.active, .app-sidebar-link.active, .app-sidebar a.active {
  background: var(--seal-50);
  color: var(--seal-2);
  font-weight: 600;
}

/* Section num piu' Mantine (uppercase mono con tracking piu' aperto) */
.section-num {
  letter-spacing: 0.18em;
  font-weight: 500;
}

/* Headline serif italic gold (allineato SPA) */
.serif-italic {
  color: var(--seal);
  font-family: var(--serif);
  font-style: italic;
}

/* Table hover morbido */
table tbody tr:hover {
  background: var(--paper-2);
}

/* Feed timeline mark dorato invece che rosso */
.feed-mark {
  background: var(--seal) !important;
}

/* Link-seal (chiamate all'azione secondarie) */
.link-seal, a.link-seal {
  color: var(--seal);
  font-weight: 500;
  transition: color 150ms ease;
}
.link-seal:hover {
  color: var(--seal-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Bordo sotto section head-row piu sottile */
.head-row {
  border-bottom: 1px solid var(--rule-2) !important;
}

/* Focus visible accessibile */
*:focus-visible {
  outline: 2px solid var(--seal);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

/* Rimuovi la grana pesante sul fondo carta (troppo editoriale per Mantine) */
body::before { display: none !important; }
body { background: var(--paper); }

/* =========================================================
   FINE OVERRIDE MANTINE
   ========================================================= */

  text-overflow: ellipsis;
  max-width: 140px;
  color: var(--app-sidebar-ink);
}
.appside-user-action {
  font-size: 10px;
  color: var(--app-sidebar-ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 2px;
}

.app-main {
  margin-left: var(--app-sidebar-w);
  min-height: 100vh;
  padding: 28px 36px 48px;
  background: var(--paper, oklch(98% 0.005 80));
}

.app-drawer-toggle {
  display: none;
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 110;
  background: var(--app-sidebar-bg);
  color: var(--app-sidebar-ink);
  border: 1px solid var(--app-sidebar-border);
  border-radius: 6px;
  padding: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.app-drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 30, 0.5);
  z-index: 99;
}
.app-drawer-backdrop.is-open { display: block; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

@media (max-width: 980px) {
  body.app { --app-sidebar-w: 260px; }
  .app-sidebar {
    transform: translateX(-100%);
    transition: transform 0.22s ease;
    box-shadow: 4px 0 24px -8px rgba(0,0,0,0.25);
  }
  .app-sidebar.is-open { transform: translateX(0); }
  .app-main { margin-left: 0; padding: 56px 18px 32px; }
  .app-drawer-toggle { display: flex; }
}

@media (max-width: 600px) {
  .app-main { padding: 56px 14px 24px; }
}
/* Voce "Esci" in fondo al menu separata da hairline */
.appside-link.is-logout {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--app-sidebar-border);
  color: var(--app-sidebar-ink-muted);
  font-size: 13px;
}
.appside-link.is-logout:hover {
  background: var(--app-sidebar-hover);
  color: var(--app-sidebar-ink);
}