/* Analitica – landing temporanea. Font self-hosted (Barlow Condensed, OFL), nessuna risorsa esterna. */
@font-face {
  font-family: "Barlow Condensed";
  src: url("/fonts/barlow-condensed-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("/fonts/barlow-condensed-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}

:root {
  --bg: #D9E6F1;          /* cornice azzurra */
  --ink: #0F1B24;
  --ink-2: #34444F;       /* 8.2:1 su --bg */
  --line: #A9BCCB;
  --night: #0B1823;
  --night-2: #12283A;
  --trace: #5CC8F5;
  --night-ink: #EEF4F8;
  --night-ink-2: #B4C6D4;
  --focus: #F2B705;
  --sans: system-ui, -apple-system, "Segoe UI Variable Text", "Segoe UI", "Noto Sans", "Ubuntu", "Cantarell", sans-serif;
  --cond: "Barlow Condensed", "DIN Condensed", "Bahnschrift Condensed", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Menlo", "Consolas", monospace;
  --r: clamp(16px, 2vw, 28px);
  --pad: clamp(1.25rem, 3vw, 2.25rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, p, dl, dd, ul { margin: 0; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: .08em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 10; background: var(--focus); color: #111; padding: .6rem 1rem; border-radius: 6px; font-weight: 600; }
.skip:focus { top: 1rem; }

.frame { padding: clamp(.5rem, 1.2vw, 1rem); max-width: 1680px; margin: 0 auto; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: min(92vh, 940px);
  display: grid; grid-template-rows: auto 1fr auto auto;
  padding: var(--pad) var(--pad) 0;
  border-radius: var(--r);
  color: var(--night-ink);
  background:
    radial-gradient(120% 90% at 78% 0%, rgba(92,200,245,.16), transparent 55%),
    radial-gradient(80% 70% at 0% 100%, rgba(11,103,155,.35), transparent 60%),
    linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%);
}
.hero__chroma { position: absolute; inset: auto 0 0 0; width: 100%; height: 58%; z-index: -1; }
.hero__about, .hero__msg { text-shadow: 0 1px 12px rgba(11,24,35,.9); }
.hero__grid path { stroke: rgba(169,188,203,.09); stroke-width: 1; fill: none; vector-effect: non-scaling-stroke; }
.hero__trace { fill: none; stroke: var(--trace); stroke-width: 2; vector-effect: non-scaling-stroke; opacity: .6; filter: drop-shadow(0 0 6px rgba(92,200,245,.55)); }
.hero__area { fill: url(#hero-area); }
.hero__cursor { stroke: var(--trace); stroke-width: 1; stroke-dasharray: 4 6; vector-effect: non-scaling-stroke; opacity: .5; }
.hero__fade { transition: opacity .7s; }
.hero__fade.off { opacity: 0; }

.hero__top { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: #fff; }
.brand__name { font-family: var(--cond); font-weight: 700; font-size: 1.75rem; letter-spacing: .04em; text-transform: uppercase; line-height: 1; }
.hero__status {
  margin-left: auto; display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--night-ink-2);
}
.hero__led { width: .5rem; height: .5rem; border-radius: 50%; background: #3DDC97; box-shadow: 0 0 8px #3DDC97; }
.pill {
  display: inline-flex; align-items: center; min-height: 44px; padding: .5rem 1.1rem;
  border: 1px solid rgba(238,244,248,.35); border-radius: 999px; text-decoration: none;
  font-size: .95rem; color: var(--night-ink); background: rgba(11,24,35,.35); backdrop-filter: blur(6px);
}
.pill:hover { border-color: var(--trace); color: #fff; }

.hero__title {
  align-self: center;
  font-family: var(--cond); font-weight: 700; text-transform: uppercase;
  font-size: clamp(3.6rem, calc((100vw - 7rem) / 6.3), 15.5rem); line-height: .86; white-space: nowrap; letter-spacing: -.005em;
  color: #fff; margin: clamp(2rem, 6vw, 4rem) 0 clamp(1.5rem, 4vw, 2.5rem);
  text-shadow: 0 6px 40px rgba(0,0,0,.35);
}

.hero__bottom {
  display: grid; gap: 1.75rem; align-items: end;
  padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
}
@media (min-width: 62rem) {
  .hero__bottom { grid-template-columns: minmax(0, 22rem) 1fr minmax(0, 26rem); padding-bottom: 7.5rem; }
  .hero__msg { grid-column: 3; }
}
.hero__about { font-size: .95rem; line-height: 1.6; color: var(--night-ink); max-width: 22rem; }
.hero__lead { font-size: clamp(1.25rem, 1rem + .9vw, 1.6rem); line-height: 1.3; color: #fff; margin-bottom: .9rem; }
.hero__sub { font-size: .95rem; line-height: 1.6; color: var(--night-ink-2); }

/* Linguetta CTA ritagliata nell'angolo, come una scheda */
.hero__tab { margin: 0 calc(var(--pad) * -1); }
.cta {
  display: flex; align-items: center; justify-content: center; gap: .9rem;
  min-height: 4.75rem; padding: 1rem 2rem; background: #0A0F14; color: #fff; text-decoration: none;
  font-size: clamp(1.05rem, 1rem + .3vw, 1.3rem); font-weight: 500;
  border-top: 1px solid rgba(255,255,255,.08);
}
.cta span { transition: transform .25s; }
.cta:hover span { transform: translateX(4px); }
@media (min-width: 62rem) {
  .hero__tab {
    position: absolute; right: 0; bottom: 0; margin: 0;
    padding: 1.25rem 0 0 1.25rem; background: var(--bg); border-top-left-radius: calc(var(--r) + 14px);
  }
  .hero__tab::before, .hero__tab::after {
    content: ""; position: absolute; width: var(--r); height: var(--r);
    background: radial-gradient(circle at 0 0, transparent calc(var(--r) - .5px), var(--bg) var(--r));
  }
  .hero__tab::before { right: 0; top: calc(var(--r) * -1); }
  .hero__tab::after { left: calc(var(--r) * -1); bottom: 0; }
  .cta { width: 26rem; border-radius: var(--r); border: 0; }
}

/* ---------- Numeri ---------- */
.stats {
  display: grid; gap: 2rem; padding: clamp(3rem, 7vw, 5.5rem) var(--pad) clamp(2.5rem, 6vw, 4.5rem);
  max-width: 1280px; margin: 0 auto;
}
@media (min-width: 52rem) {
  .stats { grid-template-columns: repeat(3, 1fr); gap: 0; }
  .stat { padding: 0 clamp(1.5rem, 3.5vw, 3.5rem); }
  .stat + .stat { border-left: 1.5px solid var(--line); }
}
.stat__num {
  font-family: var(--cond); font-weight: 700; text-transform: uppercase;
  line-height: .95; letter-spacing: -.005em; margin-bottom: .9rem;
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 .35rem;
}
.stat__big { font-size: clamp(3.2rem, 2.2rem + 2.4vw, 4.4rem); font-variant-numeric: tabular-nums; }
.stat__unit { font-size: clamp(1.4rem, 1rem + .8vw, 1.8rem); color: var(--ink-2); }
.stat__txt { color: var(--ink-2); max-width: 22rem; }

/* ---------- Partner ---------- */
.partners { padding: clamp(1.5rem, 4vw, 3rem) var(--pad) clamp(3rem, 7vw, 5rem); text-align: center; }
.partners__title { font-family: var(--sans); font-weight: 500; font-size: 1.05rem; color: var(--ink-2); margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.partners__list {
  list-style: none; padding: 0; max-width: 1000px; margin: 0 auto;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: clamp(1.75rem, 4vw, 3.5rem) clamp(2.25rem, 5vw, 4.5rem);
}
.partners__list img {
  height: auto; width: auto; max-height: 48px; max-width: 150px; opacity: .9;
}

/* ---------- Contatti ---------- */
.contacts {
  margin: 0 auto; max-width: 1280px; padding: clamp(2.5rem, 6vw, 4rem) var(--pad);
  border-top: 1.5px solid var(--line);
  display: grid; gap: 1.5rem;
}
@media (min-width: 52rem) { .contacts { grid-template-columns: 14rem 1fr; align-items: baseline; } }
.contacts__title { font-family: var(--cond); font-weight: 700; text-transform: uppercase; font-size: clamp(2rem, 1.6rem + 1.4vw, 2.8rem); line-height: 1; }
.contacts__list { display: grid; gap: 1.25rem; }
@media (min-width: 52rem) { .contacts__list { grid-template-columns: auto auto 1fr; gap: 3rem; } }
.contacts__list dt { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin-bottom: .3rem; }
.contacts__list dd { font-size: 1.125rem; font-weight: 600; overflow-wrap: anywhere; }
.contacts__list a { color: #0A5A87; }
.contacts__list address { font-style: normal; font-weight: 500; }

/* ---------- Footer ---------- */
.foot {
  border-radius: var(--r); background: var(--night); color: var(--night-ink-2);
  padding: clamp(1.75rem, 4vw, 2.5rem) var(--pad); font-size: .9rem; line-height: 1.7;
  display: grid; gap: 1.25rem;
}
@media (min-width: 52rem) { .foot { grid-template-columns: 1fr auto; align-items: end; } .foot__meta { text-align: right; } }
.foot__name { color: #fff; font-weight: 600; }
.foot a { color: #fff; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (max-width: 30rem) { .hero__title { white-space: normal; } }

/* ---------- Varianti centrate (28/10) ---------- */
.hero--a, .hero--b { grid-template-rows: auto 1fr; padding-bottom: var(--pad); min-height: min(86vh, 860px); }
.hero__center { display: grid; place-items: center; text-align: center; padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(5rem, 12vw, 9rem); }
.hero--a .hero__center { align-items: start; padding-top: clamp(2rem, 5vw, 3.5rem); }
.hero--b .hero__center { padding: clamp(2rem, 5vw, 3rem) 0; }
.hero__block { max-width: 52rem; display: grid; justify-items: center; }
.hero__kicker {
  font-family: var(--cond); font-weight: 700; text-transform: uppercase; color: #fff;
  font-size: clamp(3rem, 2rem + 4.5vw, 6.5rem); line-height: .9; letter-spacing: .01em;
  margin-bottom: clamp(1.25rem, 3vw, 2rem); text-shadow: 0 6px 40px rgba(0,0,0,.35);
}
.hero__center .hero__lead { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.3rem); font-weight: 500; line-height: 1.25; margin-bottom: 1rem; text-shadow: 0 1px 14px rgba(11,24,35,.9); }
.hero__lead--xl { font-family: var(--cond); font-weight: 700 !important; text-transform: uppercase; font-size: clamp(2.6rem, 1.6rem + 4.2vw, 6rem) !important; line-height: .95 !important; letter-spacing: .005em; margin-bottom: 1.5rem !important; }
.hero__center .hero__sub { font-size: clamp(1rem, .95rem + .25vw, 1.15rem); max-width: 40rem; text-shadow: 0 1px 12px rgba(11,24,35,.9); }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .85rem; margin-top: clamp(1.75rem, 4vw, 2.5rem); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 3.4rem; padding: .8rem 1.6rem;
  border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 1.02rem; border: 1.5px solid transparent;
}
.btn--primary { background: var(--trace); color: var(--night); }
.btn--primary:hover { background: #8AD8FA; }
.btn--ghost { color: #fff; border-color: rgba(238,244,248,.5); background: rgba(11,24,35,.4); backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: var(--trace); }
@media (max-width: 30rem) { .hero__actions { flex-direction: column; width: 100%; } .btn { width: 100%; } }

.intro { max-width: 60rem; margin: 0 auto; padding: clamp(3rem, 7vw, 5rem) var(--pad) 0; text-align: center; }
.intro__text { font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); line-height: 1.45; color: var(--ink); }
.intro + .stats { padding-top: clamp(2.5rem, 6vw, 4rem); }

.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { list-style: none; margin: 0; padding: .5rem 0; display: flex; align-items: center; gap: clamp(3rem, 6vw, 5rem); width: max-content; animation: scorri 40s linear infinite; }
.marquee__track li { flex: none; }
.marquee__track img { height: auto; width: auto; max-height: 48px; max-width: 150px; opacity: .9; }
@keyframes scorri { to { transform: translateX(calc(-50% - clamp(3rem, 6vw, 5rem) / 2)); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee__track { width: auto; flex-wrap: wrap; justify-content: center; }
  .marquee__track li[aria-hidden="true"] { display: none; }
}
.hero__center .hero__lead, .hero__center .hero__sub, .intro__text { text-wrap: balance; }
