/* crmerp.it — pagina iniziale. Nessuna risorsa esterna: caratteri di sistema, nessuno script. */
:root {
  --panel: #e9ecea;        /* grigio chiaro da quadro elettrico */
  --paper: #f8f9f7;
  --ink: #15284a;          /* blu inchiostro */
  --ink-soft: #46546b;
  --rule: #c9cfcc;
  --red: #c4122f;          /* rosso dei decimali del numeratore */
  --drum: #1d1f22;
  --display: "Bahnschrift", "DIN Alternate", "Roboto Condensed", "Arial Narrow", "DejaVu Sans Condensed", sans-serif;
  --text: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --wrap: 72rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1.0625rem/1.6 var(--text); }
a { color: var(--ink); }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -.005em; line-height: 1.12; margin: 0; }
p { margin: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }

/* Pulsanti */
.btn { display: inline-block; font-family: var(--display); font-weight: 600; font-size: 1.05rem; text-decoration: none;
  background: var(--ink); color: #fff; padding: .8rem 1.35rem; border-radius: .4rem; border: 2px solid var(--ink); }
.btn:hover { background: #0e1d38; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: #fff; }
.btn-small { padding: .45rem .9rem; font-size: .95rem; }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: var(--panel); }

/* Testata */
.top { max-width: var(--wrap); margin: 0 auto; padding: 1.25rem 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.45rem; }
.brand .tld { color: var(--ink-soft); font-weight: 400; }
.brand-mark { width: 2rem; height: 2rem; }
.brand-mark rect { fill: var(--drum); }
.brand-mark rect:first-child { fill: var(--ink); }
.brand-mark rect + rect { fill: #fff; }
.brand-mark rect.red { fill: var(--red); }
.top nav { display: flex; align-items: center; gap: 1.4rem; }
.top nav a:not(.btn) { text-decoration: none; color: var(--ink-soft); }
.top nav a:not(.btn):hover { color: var(--ink); text-decoration: underline; }

/* Apertura */
.hero { max-width: var(--wrap); margin: 0 auto; padding: 3.5rem 1.5rem 4.5rem; display: grid; grid-template-columns: 1.05fr 1fr; gap: 3.5rem; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 4.2vw, 3.4rem); max-width: 18ch; }
.lead { margin-top: 1.4rem; font-size: 1.2rem; color: var(--ink-soft); max-width: 36rem; }
.actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .8rem; }

/* Il numeratore del contatore */
.meter { margin: 0; }
.meter-face { background: var(--panel); border: 1px solid var(--rule); border-radius: 1.1rem; padding: 1.4rem 1.5rem 1.2rem;
  box-shadow: inset 0 2px 0 #fff, 0 18px 40px -24px rgba(21, 40, 74, .45); }
.meter-head, .meter-foot { display: flex; justify-content: space-between; align-items: center; font-family: var(--display); color: var(--ink-soft); }
.meter-head { font-size: 1.1rem; margin-bottom: .8rem; }
.meter-class { font-size: .95rem; }
.meter-foot { margin-top: .9rem; font-size: .95rem; }
.seal { color: var(--red); border: 1.5px solid var(--red); border-radius: 999px; padding: .1rem .65rem; }
.register { display: flex; gap: .3rem; background: #0f1012; padding: .55rem; border-radius: .5rem; }
.drum { --h: clamp(2.6rem, 5.4vw, 4.2rem); position: relative; flex: 1; height: var(--h); overflow: hidden; border-radius: .25rem;
  background: linear-gradient(#000 0, var(--drum) 22%, #2c2f33 50%, var(--drum) 78%, #000 100%); }
.drum.dec { background: linear-gradient(#5c0614 0, var(--red) 25%, #d8304b 50%, var(--red) 75%, #5c0614 100%); }
.drum:nth-child(6) { margin-left: .5rem; }
.strip { position: absolute; left: 0; right: 0; top: 0; display: block; color: #f4f4f2;
  font: 600 calc(var(--h) * .72)/var(--h) var(--display); text-align: center; word-break: break-all; width: 1ch; margin: 0 auto;
  transform: translateY(calc(var(--d) * var(--h) * -1)); animation: roll 1.6s cubic-bezier(.2, .7, .2, 1) both; }
.drum:nth-child(1) .strip { animation-delay: .05s; } .drum:nth-child(2) .strip { animation-delay: .1s; }
.drum:nth-child(3) .strip { animation-delay: .15s; } .drum:nth-child(4) .strip { animation-delay: .2s; }
.drum:nth-child(5) .strip { animation-delay: .25s; } .drum:nth-child(6) .strip { animation-delay: .35s; }
.drum:nth-child(7) .strip { animation-delay: .45s; } .drum:nth-child(8) .strip { animation-delay: .55s; }
@keyframes roll { from { transform: translateY(0); } }
.meter figcaption { margin-top: .9rem; color: var(--ink-soft); font-size: .95rem; }

/* Percorso */
.path, .clients { max-width: var(--wrap); margin: 0 auto; padding: 4.5rem 1.5rem; }
.path { border-top: 1px solid var(--rule); }
h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.section-lead { margin-top: .8rem; color: var(--ink-soft); max-width: 40rem; }
.steps { list-style: none; counter-reset: step; margin: 2.8rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.4rem; position: relative; }
.steps::before { content: ""; position: absolute; left: 1.2rem; right: calc(20% - 1.2rem); top: 1.2rem; height: 2px; background: var(--rule); }
.steps li { counter-increment: step; position: relative; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--ink); font: 700 1.1rem var(--display); position: relative; margin-bottom: 1rem; }
.steps li:last-child::before { background: var(--ink); color: #fff; }
.steps h3 { font-size: 1.25rem; margin-bottom: .45rem; }
.steps p { color: var(--ink-soft); font-size: .98rem; }

/* Ruoli */
.roles { background: var(--panel); border-block: 1px solid var(--rule); }
.roles-in { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); }
.role { padding: 3rem 1.5rem 3.2rem; }
.role + .role { border-left: 1px solid var(--rule); }
.role h3 { font-size: 1.35rem; margin-bottom: .6rem; }
.role p { color: var(--ink-soft); }

/* Area clienti */
.portals { list-style: none; margin: 2rem 0 0; padding: 0; border-top: 2px solid var(--ink); }
.portals li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.5rem 0; border-bottom: 1px solid var(--rule); }
.portals h3 { font-size: 1.6rem; }
.portals p { color: var(--ink-soft); }
.note { margin-top: 1rem; font-size: .95rem; color: var(--ink-soft); }

/* Contatti */
.contact { background: var(--ink); color: #fff; padding: 4rem 0; }
.contact-in { max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem; }
.contact h2 { color: #fff; }
.contact p { margin: .8rem 0 1.8rem; color: #d3dae6; max-width: 40rem; }

.foot { max-width: var(--wrap); margin: 0 auto; padding: 1.8rem 1.5rem 2.4rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; color: var(--ink-soft); font-size: .95rem; }

/* Schermi piccoli */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 2.5rem; padding-top: 2rem; }
  .steps { grid-template-columns: 1fr; gap: 1.6rem; }
  .steps::before { left: 1.2rem; right: auto; top: 1.2rem; bottom: 1.2rem; width: 2px; height: auto; }
  .steps li { padding-left: 3.4rem; }
  .steps li::before { position: absolute; left: 0; top: -.2rem; margin: 0; }
  .roles-in { grid-template-columns: 1fr; }
  .role { padding: 2rem 1.5rem; }
  .role + .role { border-left: 0; border-top: 1px solid var(--rule); }
}
@media (max-width: 560px) {
  .top nav a:not(.btn) { display: none; }
  .register { gap: .18rem; padding: .4rem; }
  .drum:nth-child(6) { margin-left: .3rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .strip { animation: none; }
}
