/* ===== FloorCheck.it — design system operativo ===== */
/* Palette: off-white sabbia, inchiostro profondo, terracotta industriale, muschio */
/* Tipografia: Bricolage Grotesque (display) + IBM Plex Sans (body) + IBM Plex Mono (codici) */

:root {
  --sand: #F3EEE5;
  --sand-2: #E9E2D3;
  --ink: #1A1D21;
  --ink-soft: #33383F;
  --ink-mute: #6C7278;
  --terracotta: #C24A1E;
  --terracotta-dark: #9E3A14;
  --moss: #2F4A34;
  --moss-light: #4A6B4F;
  --line: #D9D1BF;
  --warn: #E8A23A;
  --ok: #3F7D4A;

  --font-display: 'Bricolage Grotesque', 'IBM Plex Sans', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --radius-s: 4px;
  --radius-m: 10px;
  --radius-l: 18px;

  --maxw: 1180px;
  --gutter: clamp(20px, 4vw, 48px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--sand);
  color: var(--ink);
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--terracotta-dark); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ===== Header / nav ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(243,238,229,0.85);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 700; font-size: 22px; letter-spacing: -0.02em;
  color: var(--ink);
}
.brand .mark {
  width: 32px; height: 32px;
  background: var(--terracotta);
  border-radius: 6px;
  position: relative;
}
.brand .mark::after {
  content: ""; position: absolute; inset: 6px 8px;
  border-bottom: 3px solid var(--sand);
  border-right: 3px solid var(--sand);
  transform: rotate(45deg) translate(-1px,-4px);
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  color: var(--ink-soft); font-size: 15px; font-weight: 500;
  text-decoration: none;
}
.nav-links a:hover { color: var(--terracotta-dark); }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: var(--radius-m);
  font-weight: 600; font-size: 15px;
  text-decoration: none; border: 0; cursor: pointer;
  transition: transform .15s ease, background .2s ease;
  font-family: var(--font-body);
}
.btn-primary { background: var(--ink); color: var(--sand); }
.btn-primary:hover { background: var(--terracotta); text-decoration: none; }
.btn-outline {
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--sand); text-decoration: none; }

.nav-toggle { display: none; background: none; border: 0; font-size: 24px; cursor: pointer; color: var(--ink); }

@media (max-width: 820px) {
  .nav-links {
    position: fixed; top: 72px; left: 0; right: 0;
    background: var(--sand); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start;
    padding: 20px var(--gutter); gap: 18px;
    transform: translateY(-120%); transition: transform .25s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-toggle { display: block; }
}

/* ===== Hero ===== */
.hero {
  padding: clamp(60px, 10vw, 120px) 0 clamp(60px, 8vw, 100px);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; right: -15%; top: -10%;
  width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(194,74,30,0.12), transparent 70%);
  pointer-events: none;
}
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 13px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--terracotta-dark);
  padding: 6px 12px; background: rgba(194,74,30,0.08);
  border-radius: 999px;
  margin-bottom: 22px;
}
.kicker::before {
  content: ""; width: 7px; height: 7px; background: var(--terracotta);
  border-radius: 50%;
}
h1.display {
  font-family: var(--font-display);
  font-size: clamp(42px, 6.2vw, 76px);
  font-weight: 700; line-height: 1.02; letter-spacing: -0.035em;
  color: var(--ink);
  margin-bottom: 26px;
  max-width: 18ch;
}
h1.display em {
  font-style: normal; color: var(--terracotta);
  font-family: var(--font-display);
}
.hero-lead {
  font-size: clamp(18px, 1.6vw, 21px);
  color: var(--ink-soft); max-width: 58ch;
  margin-bottom: 34px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-meta {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; margin-top: 64px;
  padding-top: 32px; border-top: 1px solid var(--line);
  max-width: 720px;
}
.hero-meta div { font-family: var(--font-mono); font-size: 13px; color: var(--ink-mute); }
.hero-meta strong {
  display: block; font-family: var(--font-display);
  font-size: 28px; color: var(--ink); font-weight: 600;
  margin-bottom: 4px; letter-spacing: -0.02em;
}

/* ===== Section base ===== */
.section { padding: clamp(70px, 9vw, 110px) 0; }
.section-tag {
  font-family: var(--font-mono); font-size: 13px; font-weight: 500;
  color: var(--terracotta-dark); text-transform: uppercase;
  letter-spacing: 0.14em; margin-bottom: 14px;
}
h2.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.2vw, 48px);
  font-weight: 700; letter-spacing: -0.025em; line-height: 1.1;
  color: var(--ink); max-width: 22ch; margin-bottom: 20px;
}
.section-lead {
  font-size: 18px; color: var(--ink-soft); max-width: 62ch;
  margin-bottom: 50px;
}

/* ===== Cosa facciamo — cards ===== */
.services {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.service-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-l); padding: 30px 28px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  position: relative;
}
.service-card:hover {
  transform: translateY(-3px);
  border-color: var(--terracotta);
  box-shadow: 0 20px 40px -20px rgba(26,29,33,0.15);
}
.service-card .sc-num {
  font-family: var(--font-mono); font-size: 13px;
  color: var(--terracotta-dark); font-weight: 500;
  margin-bottom: 18px; display: block;
}
.service-card h3 {
  font-family: var(--font-display); font-size: 22px;
  font-weight: 700; letter-spacing: -0.015em;
  color: var(--ink); margin-bottom: 12px; line-height: 1.2;
}
.service-card p {
  color: var(--ink-soft); font-size: 15.5px; line-height: 1.55;
}

/* ===== Come lavoriamo — process ===== */
.process-band {
  background: var(--ink); color: var(--sand);
  border-radius: var(--radius-l);
  padding: clamp(50px, 6vw, 80px) clamp(30px, 5vw, 60px);
  margin-top: 30px;
}
.process-band .section-tag { color: var(--warn); }
.process-band h2.section-title { color: var(--sand); }
.process-band .section-lead { color: #C5BDA9; }
.process-steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px; margin-top: 20px;
}
.process-step {
  border-top: 2px solid var(--terracotta);
  padding-top: 20px;
}
.process-step .ps-num {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--warn); text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 10px;
}
.process-step h4 {
  font-family: var(--font-display); font-size: 19px;
  font-weight: 600; color: var(--sand); margin-bottom: 10px;
}
.process-step p { color: #C5BDA9; font-size: 14.5px; line-height: 1.55; }

/* ===== Settori ===== */
.sectors {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}
.sector-item {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 24px 22px;
  display: flex; flex-direction: column; gap: 8px;
  transition: background .2s ease, border-color .2s ease;
}
.sector-item:hover { background: var(--sand-2); border-color: var(--moss); }
.sector-item .si-code {
  font-family: var(--font-mono); font-size: 12px; color: var(--moss);
  text-transform: uppercase; letter-spacing: 0.1em;
}
.sector-item h4 {
  font-family: var(--font-display); font-size: 17px; font-weight: 600;
  color: var(--ink); letter-spacing: -0.01em;
}
.sector-item p { font-size: 14px; color: var(--ink-mute); line-height: 1.45; }

/* ===== Output ===== */
.output-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: 60px; align-items: center;
}
@media (max-width: 880px) { .output-grid { grid-template-columns: 1fr; gap: 40px; } }

.output-mock {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 28px; font-family: var(--font-mono);
  font-size: 13px; line-height: 1.8;
  box-shadow: 0 30px 60px -30px rgba(26,29,33,0.2);
}
.output-mock .om-head {
  display: flex; justify-content: space-between;
  padding-bottom: 12px; border-bottom: 1px solid var(--line);
  margin-bottom: 14px; color: var(--ink-mute); font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.1em;
}
.output-mock .om-row {
  display: grid; grid-template-columns: 1fr 60px 60px 60px;
  gap: 10px; padding: 6px 0;
}
.output-mock .om-row.header { color: var(--ink-mute); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; }
.output-mock .om-row .ok { color: var(--ok); }
.output-mock .om-row .ko { color: var(--terracotta); font-weight: 600; }
.output-mock .om-row .wn { color: var(--warn); }
.output-mock .om-sku { color: var(--ink); }
.output-mock .om-foot {
  margin-top: 14px; padding-top: 12px;
  border-top: 1px dashed var(--line);
  color: var(--ink-mute); font-size: 12px;
}

.output-list { list-style: none; padding: 0; }
.output-list li {
  padding: 16px 0 16px 28px;
  border-bottom: 1px solid var(--line);
  position: relative;
  font-size: 15.5px; color: var(--ink-soft);
}
.output-list li::before {
  content: ""; position: absolute; left: 0; top: 22px;
  width: 14px; height: 7px;
  border-left: 2px solid var(--terracotta);
  border-bottom: 2px solid var(--terracotta);
  transform: rotate(-45deg);
}
.output-list li strong { color: var(--ink); font-weight: 600; }

/* ===== FAQ ===== */
.faq { max-width: 820px; }
.faq-item {
  border-top: 1px solid var(--line);
  padding: 22px 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; gap: 20px;
  font-family: var(--font-display); font-size: 19px;
  font-weight: 600; letter-spacing: -0.01em; color: var(--ink);
  padding-right: 10px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-family: var(--font-mono); font-size: 24px;
  color: var(--terracotta); font-weight: 400; line-height: 1;
  transition: transform .2s ease;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p {
  margin-top: 14px; color: var(--ink-soft);
  font-size: 15.5px; line-height: 1.6; max-width: 70ch;
}

/* ===== CTA finale ===== */
.cta-band {
  background: var(--moss); color: #F2EADD;
  border-radius: var(--radius-l);
  padding: clamp(50px, 6vw, 80px) clamp(30px, 5vw, 60px);
  display: grid; grid-template-columns: 1.3fr 1fr;
  gap: 40px; align-items: center;
}
@media (max-width: 780px) { .cta-band { grid-template-columns: 1fr; } }
.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 700; letter-spacing: -0.02em; line-height: 1.1;
  color: #F2EADD;
}
.cta-band p { color: #CDC2A8; font-size: 16px; margin-top: 14px; max-width: 48ch; }
.cta-band .cta-side {
  display: flex; flex-direction: column; gap: 14px;
  font-family: var(--font-mono); font-size: 14px;
}
.cta-band .cta-side a {
  color: #F2EADD; text-decoration: none; font-weight: 500;
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-m);
  transition: background .2s ease, border-color .2s ease;
}
.cta-band .cta-side a:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--terracotta);
  text-decoration: none;
}
.cta-band .cta-side .label {
  color: #CDC2A8; font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.12em; display: block; margin-bottom: 2px;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--ink); color: #A8ADB4;
  padding: 60px 0 36px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px; margin-bottom: 40px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 30px; } }
.footer-grid h5 {
  font-family: var(--font-mono); font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--warn); margin-bottom: 14px; font-weight: 500;
}
.footer-grid p, .footer-grid a { color: #A8ADB4; font-size: 14.5px; line-height: 1.65; }
.footer-grid a:hover { color: var(--sand); text-decoration: none; }
.footer-grid ul { list-style: none; padding: 0; }
.footer-grid li { margin-bottom: 6px; }
.footer-brand {
  font-family: var(--font-display); font-size: 22px;
  color: var(--sand); font-weight: 700; letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap;
  gap: 16px; font-size: 13px; color: #70757C;
  font-family: var(--font-mono);
}

/* ===== Utility ===== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
