/* ============================================================
   DILLO, landing. Reset e tipografia di base.
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  width: 100%;
  max-width: none;
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 800;
  letter-spacing: var(--track-display);
  line-height: var(--lh-snug);
  text-wrap: balance;
}

h1 { font-size: var(--fs-hero); line-height: var(--lh-tight); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 700; }

p { margin: 0; }

a { color: inherit; text-decoration: none; }

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

ul { margin: 0; padding: 0; list-style: none; }

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--accent);
  color: #fff;
}

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

/* ---------- elementi di firma ---------- */

/* etichetta tecnica monospace */
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  color: var(--ink-faint);
}
.eyebrow--accent { color: var(--accent); }
.eyebrow--on-ink { color: var(--on-ink-faint); }

/* nastro di pericolo, usato come regola di brand */
.hazard-strip {
  height: 8px;
  width: 100%;
  background-image: repeating-linear-gradient(
    -45deg,
    var(--ink) 0 10px,
    var(--hazard) 10px 20px
  );
}

/* numerali tabulari da registro di cantiere */
.index-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.lead {
  font-size: var(--fs-lead);
  color: var(--ink-soft);
  max-width: 60ch;
}
.lead--on-ink { color: var(--on-ink-soft); }

/* ---------- pulsanti ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  padding: 1rem 1.6rem;
  font-weight: 700;
  line-height: 1.1;
  cursor: pointer;
  transition: background-color var(--dur-fast) ease,
              border-color var(--dur-fast) ease,
              color var(--dur-fast) ease,
              transform 0.12s ease;
}
.btn:active { transform: translateY(1px); }

.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-deep); }

.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: #000; }

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

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

.btn--lg { padding: 1.15rem 2rem; font-size: 1.05rem; }
