/* =========================================================
   Stoccaggio Magnani — landing one-page
   Palette vivace su sfondo neutro, estetica "bento grid".
   ========================================================= */

:root {
  /* Neutri */
  --bg: #f6f5f1;
  --surface: #ffffff;
  --ink: #1c1d22;
  --ink-soft: #5d5f68;
  --line: #e4e2dc;

  /* Palette professionale muted (copper / navy / sage / champagne / rose / lavender) */
  --orange: #c2895a;        /* warm copper */
  --orange-strong: #9c6d44; /* per testo accenti su sfondo chiaro */
  --blue: #3d5a8a;          /* navy refined */
  --blue-strong: #2d4565;   /* deep navy AA su bianco */
  --lime: #8a9a6b;          /* sage muted */
  --yellow: #c9a44a;        /* champagne gold */
  --magenta: #a8688a;       /* dusty rose */
  --purple: #6b6691;        /* lavender muted */

  /* Tinte tenui (sfondo box) — versioni desaturate */
  --orange-soft: #f3e9dc;
  --blue-soft: #e6eaf2;
  --lime-soft: #ecefe3;
  --yellow-soft: #f1ead6;
  --magenta-soft: #efe4ea;
  --purple-soft: #e8e7ee;

  /* Forme */
  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 14px;
  --r-pill: 999px;

  /* Ombre */
  --shadow: 0 1px 2px rgba(24, 22, 19, 0.04), 0 10px 30px rgba(24, 22, 19, 0.06);
  --shadow-lift: 0 2px 4px rgba(24, 22, 19, 0.06), 0 22px 48px rgba(24, 22, 19, 0.12);

  /* Layout */
  --container: 1160px;
  --gap: 20px;
  --header-h: 72px;
}

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

* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

html {
  background: var(--bg);
}

body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: transparent;
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ---------- Ambient React island background ---------- */
#bg-root {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.55;
  /* leggera sfumatura verso il cream ai bordi inferiori */
  mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
}
#bg-root canvas { display: block; width: 100% !important; height: 100% !important; }
@media (prefers-reduced-motion: reduce) {
  #bg-root { opacity: 0.32; }
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(18px, 5vw, 40px);
}

.section { padding-block: clamp(64px, 9vw, 120px); }

.section-head {
  max-width: 720px;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.section-head.center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue-strong);
  background: var(--blue-soft);
  padding: 7px 14px;
  border-radius: var(--r-pill);
  margin-bottom: 18px;
}
.eyebrow svg { width: 16px; height: 16px; flex: none; }

h1, h2, h3 { line-height: 1.08; font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
h3 { font-size: 1.18rem; font-weight: 700; letter-spacing: -0.01em; }

.section-head p {
  margin-top: 16px;
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  color: var(--ink-soft);
}

.text-accent { color: var(--orange-strong); }

/* Segnaposto da sostituire col committente */
.ph {
  background: #fef0c7;
  color: var(--ink);
  border-radius: 0.3em;
  padding: 0.04em 0.36em;
  font-weight: 700;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  padding: 15px 24px;
  border-radius: var(--r-pill);
  border: 2px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease,
    border-color 0.18s ease;
  white-space: nowrap;
}
.btn svg { width: 19px; height: 19px; }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--orange);
  color: #1b1206;
  box-shadow: 0 8px 20px rgba(194, 137, 90, 0.28);
}
.btn-primary:hover {
  background: var(--orange-strong);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(156, 109, 68, 0.38);
}

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; transform: translateY(-2px); }

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }

.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.08rem;
}
.brand .mark { width: 34px; height: 34px; border-radius: 9px; flex: none; }
.brand small {
  display: block;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--ink-soft);
  padding: 9px 13px;
  border-radius: 10px;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav a:hover { color: var(--ink); background: rgba(24, 22, 19, 0.05); }
/* pagina corrente evidenziata nel menu */
.nav a[aria-current="page"] { color: var(--ink); background: rgba(24, 22, 19, 0.08); }
/* il CTA dentro .nav serve solo nel menu mobile: nascosto su desktop */
.nav .btn { display: none; }

.header-cta { display: flex; align-items: center; gap: 12px; }
.header-cta .btn { padding: 11px 20px; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(48px, 8vw, 96px); overflow: hidden; }

.hero-boxes {
  display: none; /* lo sfondo animato WebGL sostituisce le forme decorative */
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-boxes span {
  position: absolute;
  border-radius: 18px;
  opacity: 0.9;
  animation: float 9s ease-in-out infinite;
}
.hero-boxes span:nth-child(1) { width: 88px; height: 88px; background: var(--orange-soft); top: 8%; left: 4%; }
.hero-boxes span:nth-child(2) { width: 56px; height: 56px; background: var(--orange); top: 13%; left: 7%; animation-delay: -1s; border-radius: 14px; }
.hero-boxes span:nth-child(3) { width: 120px; height: 120px; background: var(--blue-soft); top: 58%; left: 3%; animation-delay: -3s; }
.hero-boxes span:nth-child(4) { width: 64px; height: 64px; background: var(--yellow); bottom: 12%; left: 9%; animation-delay: -2s; border-radius: 16px; }
.hero-boxes span:nth-child(5) { width: 100px; height: 100px; background: var(--lime-soft); top: 10%; right: 6%; animation-delay: -4s; }
.hero-boxes span:nth-child(6) { width: 58px; height: 58px; background: var(--magenta); top: 16%; right: 9%; animation-delay: -1.5s; border-radius: 15px; }
.hero-boxes span:nth-child(7) { width: 132px; height: 132px; background: var(--purple-soft); bottom: 8%; right: 4%; animation-delay: -2.5s; }
.hero-boxes span:nth-child(8) { width: 60px; height: 60px; background: var(--blue); bottom: 14%; right: 8%; animation-delay: -3.5s; border-radius: 15px; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-18px) rotate(3deg); }
}

.hero-inner { position: relative; z-index: 1; max-width: 880px; margin-inline: auto; text-align: center; }

.hero h1 {
  font-size: clamp(2.5rem, 6.4vw, 4.6rem);
  margin-top: 22px;
}
.hero .lead {
  margin: 22px auto 0;
  max-width: 620px;
  font-size: clamp(1.06rem, 2vw, 1.3rem);
  color: var(--ink-soft);
}

.hero-claim {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
  background: var(--ink);
  color: #fff;
  padding: 12px 22px;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 1.05rem;
}
.hero-claim svg { width: 22px; height: 22px; color: var(--yellow); flex: none; }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 30px;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 38px;
}
.hero-pills li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 9px 16px;
  border-radius: var(--r-pill);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow);
}
.hero-pills svg { width: 17px; height: 17px; color: var(--blue-strong); }

/* ---------- Icon chip (riusato in bento / step) ---------- */
.chip {
  width: 52px;
  height: 52px;
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  flex: none;
}
.chip svg { width: 27px; height: 27px; }

/* ---------- Bento grid ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}
.box {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 168px;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  overflow: hidden;
}
.box:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.box h3 { margin-top: auto; }
.box p { color: var(--ink-soft); font-size: 0.97rem; }
.box .chip { color: #fff; }

/* span helpers */
.box.wide { grid-column: span 2; }

/* varianti colore: sfondo tenue + chip pieno */
.c-blue { background: var(--blue-soft); border-color: transparent; }
.c-blue .chip { background: var(--blue); }
.c-orange { background: var(--orange-soft); border-color: transparent; }
.c-orange .chip { background: var(--orange); }
.c-magenta { background: var(--magenta-soft); border-color: transparent; }
.c-magenta .chip { background: var(--magenta); }
.c-purple { background: var(--purple-soft); border-color: transparent; }
.c-purple .chip { background: var(--purple); }
.c-lime { background: var(--lime-soft); border-color: transparent; }
.c-lime .chip { background: var(--lime); color: #1f2a07; }
.c-yellow { background: var(--yellow-soft); border-color: transparent; }
.c-yellow .chip { background: var(--yellow); color: #3a2c00; }

/* box pieno scuro per impatto */
.box.feature {
  background: var(--ink);
  border-color: transparent;
  color: #fff;
  justify-content: space-between;
}
.box.feature p { color: rgba(255, 255, 255, 0.72); }
.box.feature .chip { background: rgba(255, 255, 255, 0.12); color: var(--yellow); }
.box.feature .big { font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.box.feature .big span { color: var(--orange); }

/* ---------- Pricing ---------- */
.pricing {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
  align-items: stretch;
  max-width: 760px;
  margin-inline: auto;
}
.price-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.price-card .chip { background: var(--blue-soft); color: var(--blue-strong); }
.price-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.price-tag { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.price-tag small { display: block; font-size: 0.82rem; font-weight: 600; color: var(--ink-soft); }
.price-card > p { color: var(--ink-soft); font-size: 0.97rem; }
.badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  background: var(--lime-soft);
  color: #3c5111;
}

.price-card.featured {
  background: var(--ink);
  color: #fff;
  border-color: transparent;
  transform: translateY(-8px);
}
.price-card.featured:hover { transform: translateY(-12px); }
.price-card.featured .chip { background: rgba(255, 255, 255, 0.12); color: var(--yellow); }
.price-card.featured > p { color: rgba(255, 255, 255, 0.72); }
.price-card.featured .price-tag small { color: rgba(255, 255, 255, 0.6); }
.price-card.featured .badge { background: var(--yellow); color: #3a2c00; }

.included {
  margin-top: 6px;
  display: grid;
  gap: 9px;
}
.included li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.featured .included li { color: rgba(255, 255, 255, 0.82); }
.included svg { width: 17px; height: 17px; color: var(--lime); flex: none; }

.pricing-note {
  margin-top: 26px;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  justify-content: center;
  align-items: center;
  font-weight: 600;
  color: var(--ink-soft);
}
.pricing-note span { display: inline-flex; align-items: center; gap: 8px; }
.pricing-note svg { width: 18px; height: 18px; color: var(--lime); }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.step .num {
  counter-increment: step;
  position: absolute;
  top: 22px;
  right: 24px;
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  color: var(--line);
  letter-spacing: -0.04em;
}
.step .num::before { content: counter(step); }
.step .chip { background: var(--orange-soft); color: var(--orange); margin-bottom: 18px; }
.step:nth-child(2) .chip { background: var(--blue-soft); color: var(--blue-strong); }
.step:nth-child(3) .chip { background: var(--lime-soft); color: #4e7a0a; }
.step:nth-child(4) .chip { background: var(--magenta-soft); color: var(--magenta); }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: 0.96rem; }

/* ---------- Claim band ---------- */
.claim-band { background: var(--ink); color: #fff; }
.claim-band .container { padding-block: clamp(56px, 8vw, 92px); text-align: center; }
.claim-band p {
  font-size: clamp(1.7rem, 4vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
  max-width: 900px;
  margin-inline: auto;
}
.claim-band p span { color: var(--orange); }
.claim-band .sub { margin-top: 18px; font-size: 1.05rem; font-weight: 500; color: rgba(255, 255, 255, 0.7); }

/* ---------- Why us ---------- */
.why-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.why-list { margin-top: 28px; display: grid; gap: 18px; }
.why-list li { display: flex; gap: 16px; align-items: flex-start; }
.why-list .chip { width: 46px; height: 46px; background: var(--surface); border: 1px solid var(--line); color: var(--blue-strong); }
.why-list .chip svg { width: 23px; height: 23px; }
.why-list strong { display: block; font-size: 1.05rem; }
.why-list p { color: var(--ink-soft); font-size: 0.96rem; }

.why-visual {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: linear-gradient(135deg, #2d4565 0%, #3d5a8a 100%);
  aspect-ratio: 4 / 3.4;
  box-shadow: var(--shadow-lift);
  display: grid;
  place-items: center;
}
.why-visual .ph-note {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 2;
  background: rgba(0, 0, 0, 0.42);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: var(--r-pill);
  backdrop-filter: blur(4px);
}
.why-visual svg.illu { width: 78%; height: auto; }
/* foto reale al posto dell'illustrazione */
.why-visual img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Galleria foto struttura ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  margin-top: 8px;
}
.gallery figure {
  position: relative;
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow);
  background: var(--blue-soft);
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery figure:hover img { transform: scale(1.06); }
.gallery figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  background: rgba(0, 0, 0, 0.46);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: var(--r-pill);
  backdrop-filter: blur(4px);
}
@media (max-width: 860px) { .gallery { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .gallery { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 14px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 4px 24px;
  box-shadow: var(--shadow);
  transition: border-color 0.2s ease;
}
.faq details[open] { border-color: color-mix(in srgb, var(--blue) 40%, var(--line)); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-weight: 700;
  font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--blue-soft);
  color: var(--blue-strong);
  display: grid;
  place-items: center;
  transition: transform 0.25s ease, background 0.2s ease;
}
.faq summary .plus svg { width: 18px; height: 18px; }
.faq details[open] summary .plus { transform: rotate(45deg); background: var(--blue); color: #fff; }
.faq details p { padding: 0 0 20px; color: var(--ink-soft); max-width: 64ch; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(24px, 4vw, 44px);
  align-items: start;
}
.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(24px, 4vw, 38px);
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 0.86rem; font-weight: 700; }
.field label .req { color: var(--orange); }
.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 0.98rem;
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg);
  color: var(--ink);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(47, 107, 255, 0.14);
}
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.86rem; color: var(--ink-soft); margin-bottom: 18px; }
.consent input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--blue); }
.consent a { color: var(--blue-strong); text-decoration: underline; }

.form-status {
  display: none;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--r-sm);
  background: var(--lime-soft);
  color: #355010;
  font-weight: 600;
  font-size: 0.95rem;
}
.form-status svg { width: 20px; height: 20px; flex: none; }
.form-status.show { display: flex; }
.form-status.error { background: #fdecec; color: #b42318; }

.contact-info { display: grid; gap: 14px; align-content: start; }
.info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px 22px;
  display: flex;
  gap: 15px;
  align-items: flex-start;
  box-shadow: var(--shadow);
}
.info-card .chip { width: 44px; height: 44px; background: var(--blue-soft); color: var(--blue-strong); }
.info-card .chip svg { width: 21px; height: 21px; }
.info-card .label { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-soft); }
.info-card .value { font-weight: 600; }
.info-card.dark { background: var(--ink); color: #fff; border-color: transparent; }
.info-card.dark .chip { background: rgba(255, 255, 255, 0.12); color: var(--yellow); }
.info-card.dark .label { color: rgba(255, 255, 255, 0.6); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, 0.72); padding-block: 56px 30px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-brand .brand { color: #fff; }
.footer-brand .brand small { color: rgba(255, 255, 255, 0.55); }
.footer-brand p { margin-top: 16px; max-width: 34ch; font-size: 0.95rem; }
.footer-col h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255, 255, 255, 0.5); margin-bottom: 16px; font-weight: 700; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { font-size: 0.95rem; transition: color 0.15s ease; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}
.footer-bottom a { text-decoration: underline; }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .why-grid { grid-template-columns: 1fr; }
  .why-visual { order: -1; max-width: 520px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .nav, .header-cta .btn { display: none; }
  .nav-toggle { display: inline-flex; }

  /* menu mobile a tendina */
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 16px clamp(18px, 5vw, 40px) 24px;
    box-shadow: var(--shadow-lift);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  body.nav-open .nav { display: flex; opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: 14px 12px; font-size: 1.05rem; border-radius: 12px; }
  .nav .btn { display: inline-flex; margin-top: 8px; }

  .bento { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .pricing { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .price-card.featured, .price-card.featured:hover { transform: none; }
}

@media (max-width: 540px) {
  body { font-size: 16px; }
  .bento { grid-template-columns: 1fr; }
  .box.wide { grid-column: span 1; }
  .steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-claim { font-size: 0.96rem; }
  /* su mobile i box pieni e accesi finivano sopra il titolo: teniamo
     solo le forme tenui, più defilate, per non disturbare la lettura */
  .hero-boxes span:nth-child(2),
  .hero-boxes span:nth-child(4),
  .hero-boxes span:nth-child(6),
  .hero-boxes span:nth-child(8) { display: none; }
  .hero-boxes span { opacity: 0.5; }
  .hero-cta .btn { width: 100%; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   Intro immersiva 3D — esterno ▸ portone giallo ▸ interno ▸ sito
   parallasse + tilt al mouse, elementi fluttuanti (home, 1 volta/sessione)
   ============================================================ */
.intro { position: fixed; inset: 0; z-index: 1000; overflow: hidden; background: #1c1d22; transition: opacity 0.7s ease; perspective: 1100px; }
.intro.is-done { display: none; }
.intro.s-fade { opacity: 0; }
body.intro-lock { overflow: hidden; }

.intro-3d { position: absolute; inset: -7%; transform-style: preserve-3d; transition: transform 0.3s ease-out; }

.intro-layer { position: absolute; inset: 0; transform: translate3d(var(--px, 0px), var(--py, 0px), 0); }
.intro-ext { z-index: 1; }
.intro-int { display: none; }
.intro.s-open { background: transparent; }
.intro.s-open .intro-ext { opacity: 0; }
.intro-zoom { position: absolute; inset: 0; background-size: cover; background-position: center; will-change: transform; }
.intro-ext .intro-zoom { transform: scale(1.05); transition: transform 6s ease-out; }
.intro.playing .intro-ext .intro-zoom { transform: scale(1.22); }
.intro-int .intro-zoom { transform: scale(1.22); transition: transform 3s ease-out; }
.intro.s-open .intro-int .intro-zoom { transform: scale(1.05); }

.intro-cubes { position: absolute; inset: 0; z-index: 2; transform: translate3d(var(--px, 0px), var(--py, 0px), 0); transition: opacity 0.5s ease; pointer-events: none; }
.intro.s-gate .intro-cubes { opacity: 0; }
.intro-cube { position: absolute; border-radius: 18px; opacity: 0.9; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32); }
.intro-cube--1 { width: 74px; height: 74px; top: 23%; left: 12%; background: var(--orange); animation: floatA 7s ease-in-out infinite; }
.intro-cube--2 { width: 50px; height: 50px; top: 17%; right: 15%; background: var(--blue); animation: floatB 8.4s ease-in-out infinite; }
.intro-cube--3 { width: 92px; height: 92px; bottom: 15%; left: 15%; background: var(--yellow); animation: floatC 9s ease-in-out infinite; }
.intro-cube--4 { width: 60px; height: 60px; bottom: 21%; right: 12%; background: var(--lime); animation: floatD 7.6s ease-in-out infinite; }

.intro-gate { z-index: 3; opacity: 0; transition: opacity 0.45s ease; }
.intro.s-gate .intro-gate { opacity: 1; }
.intro-panel {
  position: absolute; top: 0; bottom: 0; width: 54%;
  background-color: #f2b705;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(0, 0, 0, 0.18)),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.07) 0 3px, transparent 3px 78px);
  transition: transform 1.25s cubic-bezier(0.76, 0, 0.24, 1);
  will-change: transform;
}
.intro-panel--l { left: -2%; box-shadow: inset -2px 0 0 rgba(0, 0, 0, 0.18); }
.intro-panel--r { right: -2%; box-shadow: inset 2px 0 0 rgba(0, 0, 0, 0.18); }
.intro.s-open .intro-panel--l { transform: translateX(-102%); }
.intro.s-open .intro-panel--r { transform: translateX(102%); }

.intro-scrim {
  position: absolute; inset: 0; z-index: 4; pointer-events: none; transition: opacity 0.5s ease;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0) 34%, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.66) 100%);
}
.intro.s-open .intro-scrim { opacity: 0; }

.intro-stage {
  position: absolute; inset: 0; z-index: 5;
  display: grid; place-content: center; justify-items: center;
  text-align: center; padding: 24px;
  transition: opacity 0.45s ease, transform 0.6s ease;
}
.intro.s-gate .intro-stage, .intro.s-open .intro-stage { opacity: 0; transform: scale(0.96); pointer-events: none; }
.intro-stage-3d { display: grid; justify-items: center; gap: 12px; transform: translate3d(var(--px, 0px), var(--py, 0px), 0); animation: introBob 6s ease-in-out infinite; }

.intro-mark { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5); animation: introPop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.intro-brand { color: #fff; line-height: 1; margin-top: 6px; text-shadow: 0 2px 22px rgba(0, 0, 0, 0.6); animation: introUp 0.7s ease 0.12s both; }
.intro-brand span { display: block; font-size: 0.82rem; letter-spacing: 0.42em; text-transform: uppercase; color: rgba(255, 255, 255, 0.8); margin-bottom: 10px; padding-left: 0.42em; }
.intro-brand strong { font-size: clamp(2.6rem, 9vw, 4.4rem); font-weight: 800; letter-spacing: 0.05em; }
.intro-tag { color: rgba(255, 255, 255, 0.85); font-size: 0.98rem; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6); animation: introUp 0.7s ease 0.2s both; }
.intro-enter {
  margin-top: 18px; display: inline-flex; align-items: center; gap: 10px;
  background: #f2b705; color: #1b1206; font-weight: 700; font-size: 1.02rem;
  padding: 15px 30px; border-radius: var(--r-pill); border: 0; cursor: pointer;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.5);
  animation: introFade 0.6s ease 0.34s both, introPulse 2.6s ease 1.6s infinite;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.intro-enter svg { width: 18px; height: 18px; }
.intro-enter:hover { background: #ffc62b; transform: translateY(-2px); box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55); }

@keyframes introPop { from { opacity: 0; transform: scale(0.6) translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes introUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes introFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes introPulse { 0%, 100% { box-shadow: 0 14px 38px rgba(0, 0, 0, 0.5); } 50% { box-shadow: 0 16px 48px rgba(242, 183, 5, 0.55); } }
@keyframes introBob { 0%, 100% { transform: translate3d(var(--px, 0px), var(--py, 0px), 0); } 50% { transform: translate3d(var(--px, 0px), calc(var(--py, 0px) - 10px), 0); } }
@keyframes floatA { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-11px) rotate(2deg); } }
@keyframes floatB { 0%, 100% { transform: translateY(0) rotate(3deg); } 50% { transform: translateY(-13px) rotate(-3deg); } }
@keyframes floatC { 0%, 100% { transform: translateY(0) rotate(3deg); } 50% { transform: translateY(-9px) rotate(-2deg); } }
@keyframes floatD { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-12px) rotate(4deg); } }

@media (prefers-reduced-motion: reduce) { .intro { display: none !important; } }
