/* ============================================================
   HALLOTECH — sito pubblico
   Palette: ink #071013 · paper #f5f8f3 · mint #63ee9a ·
            mint-dark #18a76b · blue #2f5fdd · amber #e88b3a
   ============================================================ */

@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/InterVariable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/InterVariable-Italic.woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #071013;
  --graphite: #1d272b;
  --muted: #55656c;
  --line: #d9e1df;
  --paper: #f5f8f3;
  --white: #ffffff;
  --mint: #63ee9a;
  --mint-dark: #18a76b;
  --blue: #2f5fdd;
  --amber: #e88b3a;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 20px 60px rgba(7, 16, 19, 0.10);
  --wrap: 1180px;
  --nav-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- Tipografia ---------- */
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mint-dark);
  margin-bottom: 18px;
}
.h2 {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  font-weight: 760;
  letter-spacing: -0.035em;
  line-height: 1.04;
  margin-bottom: 22px;
}
.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--muted);
  max-width: 46em;
}

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 650;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease), background 200ms;
  font-family: inherit;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 10px 30px rgba(7, 16, 19, 0.22);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(7, 16, 19, 0.3); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
.btn-ghost:hover { background: rgba(7, 16, 19, 0.05); transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-lg { padding: 16px 32px; font-size: 16.5px; }
.btn-block { width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(245, 248, 243, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: box-shadow 250ms;
}
.nav.scrolled { box-shadow: 0 1px 0 var(--line), 0 8px 30px rgba(7, 16, 19, 0.06); }
.nav-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.nav-mark { height: 34px; width: 34px; }
.nav-lettering { height: 19px; width: auto; }
.nav-links {
  display: flex;
  gap: 26px;
  margin-left: 12px;
}
.nav-links a {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--graphite);
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 150ms;
}
.nav-links a:hover { opacity: 1; }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.lang-switch {
  display: inline-flex;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 700;
}
.lang-switch span { padding: 6px 12px; color: var(--muted); }
.lang-switch .on { background: var(--ink); color: var(--white); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + clamp(70px, 12vh, 130px)) 0 clamp(60px, 9vh, 110px);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  animation: drift 18s ease-in-out infinite alternate;
}
.blob-mint {
  width: 560px; height: 560px;
  background: radial-gradient(circle, var(--mint), transparent 65%);
  top: -140px; right: -120px;
}
.blob-blue {
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(47, 95, 221, 0.55), transparent 65%);
  bottom: -220px; left: -160px;
  animation-delay: -9s;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-40px, 34px, 0) scale(1.12); }
}
.grid-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(7, 16, 19, 0.13) 1px, transparent 1.5px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 70% 62% at 50% 32%, #000 20%, transparent 72%);
  mask-image: radial-gradient(ellipse 70% 62% at 50% 32%, #000 20%, transparent 72%);
}
.hero-inner { position: relative; text-align: center; }
.hero-mark {
  width: 66px;
  height: 66px;
  margin: 0 auto 26px;
  filter: drop-shadow(0 14px 30px rgba(24, 167, 107, 0.30));
}
.hero .eyebrow { color: var(--graphite); opacity: 0.75; }
.hero-title {
  font-size: clamp(2.9rem, 8.4vw, 6.7rem);
  font-weight: 790;
  letter-spacing: -0.045em;
  line-height: 0.99;
  margin: 6px 0 26px;
}
.hero-title .accent {
  background: linear-gradient(100deg, var(--mint-dark) 5%, var(--blue) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-title .accent-dot { color: var(--mint-dark); }
.hero-sub {
  font-size: clamp(1.1rem, 1.8vw, 1.38rem);
  color: var(--muted);
  max-width: 42em;
  margin: 0 auto 38px;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Marquee app ---------- */
.apps { padding: clamp(30px, 5vh, 60px) 0 clamp(50px, 8vh, 90px); }
.apps-caption {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  padding: 10px 0;
}
.marquee + .marquee { margin-top: 6px; }
.marquee-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee-reverse .marquee-track { animation-direction: reverse; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.logo-chip {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 76px;
  padding: 0 34px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 6px 24px rgba(7, 16, 19, 0.05);
}
.logo-chip img { height: 30px; width: auto; max-width: 150px; object-fit: contain; }

/* ---------- Framework ---------- */
.fw { background: var(--white); padding: clamp(70px, 11vh, 130px) 0; }
.fw-grid {
  margin-top: 54px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.fw-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 22px 24px;
  transition: transform 250ms var(--ease), box-shadow 250ms var(--ease), border-color 250ms;
}
.fw-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--mint-dark);
}
.fw-num {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--mint-dark);
}
.fw-card h3 {
  font-size: 18.5px;
  font-weight: 720;
  letter-spacing: -0.015em;
  margin: 10px 0 8px;
}
.fw-card p { font-size: 14.5px; color: var(--muted); line-height: 1.55; }

/* ---------- Stats (dark) ---------- */
.stats {
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(99, 238, 154, 0.14), transparent 60%),
    radial-gradient(700px 380px at 0% 110%, rgba(47, 95, 221, 0.18), transparent 60%),
    var(--ink);
  color: var(--white);
  padding: clamp(70px, 11vh, 130px) 0;
}
.stats-title {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: 760;
  letter-spacing: -0.035em;
  line-height: 1.06;
  margin-bottom: 52px;
  max-width: 16em;
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat { border-top: 1px solid rgba(255, 255, 255, 0.18); padding-top: 20px; }
.stat-n {
  display: block;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 780;
  letter-spacing: -0.03em;
  color: var(--mint);
  line-height: 1;
}
.stat-l {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
}

/* ---------- Metodo ---------- */
.method { background: var(--paper); padding: clamp(70px, 11vh, 130px) 0; }
.method-list { margin-top: 44px; }
.method-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 26px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.method-row:last-child { border-bottom: 1px solid var(--line); }
.method-num {
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 790;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(120deg, var(--mint-dark), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.method-row h3 {
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  font-weight: 740;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.method-row p { color: var(--muted); max-width: 40em; }

/* ---------- About ---------- */
.about { background: var(--white); padding: clamp(70px, 11vh, 130px) 0; }
.about .h2 { max-width: 15em; }
.about-brand { margin-top: 26px; font-weight: 650; }
.about-brand a {
  color: var(--mint-dark);
  text-decoration: none;
  border-bottom: 2px solid var(--mint);
  transition: opacity 150ms;
}
.about-brand a:hover { opacity: 0.75; }

/* ---------- Contact ---------- */
.contact {
  background:
    radial-gradient(800px 460px at 100% 0%, rgba(99, 238, 154, 0.18), transparent 55%),
    var(--paper);
  padding: clamp(70px, 11vh, 130px) 0;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow);
}
.contact-form label { display: block; margin-bottom: 16px; }
.contact-form label span {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--graphite);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  font: inherit;
  font-size: 15.5px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  transition: border-color 150ms, box-shadow 150ms;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--mint-dark);
  box-shadow: 0 0 0 4px rgba(24, 167, 107, 0.14);
  background: var(--white);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.form-privacy { margin-top: 14px; font-size: 12.5px; color: var(--muted); }
.form-banner {
  border-radius: 12px;
  padding: 13px 16px;
  font-size: 14.5px;
  font-weight: 600;
  margin-bottom: 18px;
}
.form-banner.ok { background: rgba(99, 238, 154, 0.2); color: #0c6b44; }
.form-banner.ko { background: rgba(180, 35, 24, 0.08); color: #b42318; }
.form-banner a { color: inherit; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.82);
  padding: clamp(50px, 8vh, 80px) 0;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 13px; }
.footer-mark { height: 40px; width: 40px; }
.footer-lettering { height: 19px; width: auto; filter: invert(1) brightness(1.7); }
.footer-claim { margin-top: 18px; font-size: 15px; color: rgba(255, 255, 255, 0.6); }
.footer-meta { text-align: right; font-size: 14px; display: grid; gap: 6px; }
.footer-meta a { color: var(--mint); text-decoration: none; }
.footer-meta a:hover { text-decoration: underline; }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
  transition-delay: var(--d, 0ms);
}
.reveal.d1 { --d: 90ms; }
.reveal.d2 { --d: 180ms; }
.reveal.d3 { --d: 270ms; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .blob { animation: none; }
  .marquee-track { animation-duration: 90s; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .fw-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 34px 24px; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .nav-inner { gap: 14px; }
  .nav-mark { height: 30px; width: 30px; }
  .nav-lettering { height: 15px; }
  .hero { padding-top: calc(var(--nav-h) + 48px); }
  .hero-mark { width: 56px; height: 56px; margin-bottom: 20px; }
  .hero-title { font-size: clamp(2.5rem, 11.5vw, 3.6rem); }
  .logo-chip { height: 62px; padding: 0 24px; }
  .logo-chip img { height: 24px; max-width: 120px; }
  .method-row { grid-template-columns: 64px 1fr; gap: 16px; padding: 26px 0; }
  .footer-grid { flex-direction: column; }
  .footer-meta { text-align: left; }
  .contact-form { padding: 22px 18px; }
}
@media (max-width: 480px) {
  .fw-grid { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
  .stats-row { grid-template-columns: 1fr 1fr; }
}
