/* Lachi Solutions — design system: Archivo, nero su grigio, un solo rosso, angoli vivi. */
@font-face { font-family: "Archivo"; font-weight: 300; font-display: swap; src: url("fonts/Archivo-Light.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 400; font-display: swap; src: url("fonts/Archivo-Regular.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 800; font-display: swap; src: url("fonts/Archivo-ExtraBold.woff2") format("woff2"); }

:root {
  --ink: #201e1d;
  --ground: #f3f2f2;
  --white: #ffffff;
  --accent: #ec3013;
  --accent-deep: #ae1800;
  --accent-tint: #ffe0d9;
  --grey-600: #605d5d;
  --grey-500: #7d7979;
  --grey-300: #bab6b6;
  --line: #e7e5e4;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 68rem;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
::selection { background: var(--accent-tint); }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--grey-300); text-underline-offset: 0.18em; }
a:hover, a:focus-visible { color: var(--accent-deep); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { font-weight: 800; line-height: 1.1; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

/* Header */
.site-header { background: var(--ground); }
.site-header .wrap { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; padding-bottom: 1.5rem; }
.logo { display: inline-block; color: var(--ink); text-decoration: none; line-height: 1; }
.logo:hover { color: var(--ink); }
.logo-word { display: flex; align-items: baseline; gap: 0.3rem; font-size: 1.45rem; font-weight: 800; letter-spacing: -0.04em; }
.logo-dot { width: 0.42rem; height: 0.42rem; background: var(--accent); }
.logo-bar { display: block; height: 2px; background: var(--ink); margin: 0.28rem 0 0.3rem; }
.logo-sub { font-size: 0.78rem; font-weight: 300; letter-spacing: 0.06em; }
.lang { display: flex; gap: 0.15rem; margin: 0; padding: 0; list-style: none; font-size: 0.82rem; letter-spacing: 0.06em; }
.lang a { display: inline-block; padding: 0.35rem 0.5rem; color: var(--grey-500); text-decoration: none; }
.lang a[aria-current="page"] { color: var(--ink); font-weight: 800; }
.lang a:hover { color: var(--accent-deep); }

/* Hero */
.hero { padding: 2.5rem 0 3rem; }
.hero h1 { font-size: clamp(2.2rem, 7vw, 4.25rem); max-width: 16ch; }
.hero .lead { margin-top: 1.25rem; font-size: 1.2rem; color: var(--grey-600); max-width: 34rem; }
.btn {
  display: inline-block; margin-top: 1.75rem; padding: 0.9rem 1.6rem;
  background: var(--ink); color: var(--white); font-weight: 800; letter-spacing: 0.02em; text-decoration: none;
}
.btn:hover, .btn:focus-visible { background: var(--accent); color: var(--white); }

/* Sections */
section { padding: 2.75rem 0; }
section + section, .site-footer { border-top: 2px solid var(--ink); }
.eyebrow { display: block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.75rem; }
section h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.sec-lead { margin-top: 0.75rem; color: var(--grey-600); }
.services { display: grid; gap: 0; margin-top: 1.5rem; border-top: 1px solid var(--grey-300); }
.services article { padding: 1.25rem 0; border-bottom: 1px solid var(--grey-300); }
.services h3 { font-size: 1.1rem; margin-bottom: 0.45rem; }
.services p { color: var(--grey-600); }
.prose { margin-top: 1.25rem; max-width: 40rem; }
.prose p + p { margin-top: 1rem; }
.langs { color: var(--grey-500); }

/* Contact form */
.contact-form { margin-top: 1.5rem; display: grid; gap: 1rem; max-width: 40rem; }
.contact-form > label, .form-row > label, .contact-form .hp label { display: grid; gap: 0.4rem; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey-500); }
.contact-form input, .contact-form textarea { font: 400 1.0625rem/1.5 var(--font); letter-spacing: 0; text-transform: none; color: var(--ink); background: var(--white); border: 1px solid var(--grey-300); border-radius: 0; padding: 0.7rem 0.85rem; width: 100%; }
.contact-form textarea { resize: vertical; min-height: 7rem; }
.form-row { display: grid; gap: 1rem; }
.contact-form input:focus-visible, .contact-form textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--ink); }
.contact-form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.form-actions .btn { margin-top: 0; border: 0; cursor: pointer; font-family: var(--font); }
.form-actions .btn:disabled { opacity: 0.5; cursor: progress; }
.form-status { font-size: 0.95rem; color: var(--grey-600); }
.form-status:empty { display: none; }
.form-status[data-state="error"] { color: var(--accent-deep); font-weight: 800; }
altcha-widget {
  --altcha-border-radius: 0; --altcha-border-color: var(--grey-300); --altcha-border-width: 1px;
  --altcha-color-base: var(--white); --altcha-color-base-content: var(--ink);
  --altcha-color-primary: var(--accent); --altcha-color-error: var(--accent-deep);
  --altcha-checkbox-border-radius: 0; --altcha-max-width: 20rem; font-family: var(--font);
}

/* Footer */
.site-footer { padding: 1.75rem 0 2.5rem; font-size: 0.88rem; color: var(--grey-600); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.site-footer nav { display: flex; align-items: center; gap: 1.25rem; }
.site-footer nav a { color: var(--grey-600); text-decoration: none; }
.site-footer nav a:hover { color: var(--accent-deep); }
.site-footer svg { width: 1.1rem; height: 1.1rem; fill: currentColor; display: block; }

/* Secondary pages */
.page { padding: 3rem 0 4rem; border-top: 2px solid var(--ink); }
.page h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.page h2 { font-size: 1.25rem; margin-top: 2.25rem; }
.page p { margin-top: 0.9rem; max-width: 40rem; }
.back { display: inline-block; margin-top: 2.5rem; }

@media (min-width: 720px) {
  .wrap { padding: 0 2.5rem; }
  .hero { padding: 3.5rem 0 4rem; }
  section { padding: 3.5rem 0; }
  .services { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; }
  .services article:nth-last-child(-n+2) { border-bottom: 0; }
  .form-row { grid-template-columns: 1fr 1fr; }
}
/* Da 960 px: titolo di sezione a sinistra, contenuto a destra */
@media (min-width: 960px) {
  .split .wrap { display: grid; grid-template-columns: 14rem 1fr; column-gap: 3rem; align-items: start; }
  .split .sec-head { position: sticky; top: 1.5rem; }
  .split .services, .split .prose, .split .contact-form { margin-top: 0; }
  .split .contact-form { max-width: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
