/* =========================================================================
   Grifix — design system
   Navy #0C2F40 e arancio #F2643D presi dal logo; il resto e' costruito
   attorno a questi due. Tema scuro "tecnico" con sezioni chiare a contrasto.
   ========================================================================= */

:root {
  --ink-900: #04141C;
  --ink-800: #071E29;
  --ink-700: #0C2F40;   /* navy del logo */
  --ink-600: #12455C;
  --ink-500: #1C5B77;

  --paper:   #F5F7F9;
  --paper-2: #E7EDF1;
  --paper-3: #D4DEE5;

  --accent:      #F2643D;  /* arancio del logo */
  --accent-soft: #FF8A5C;
  --accent-deep: #D24A26;

  --steel-100: #EDF2F5;
  --steel-300: #B7C6D0;
  --steel-500: #7B8F9C;
  --steel-700: #46606F;

  --txt-on-dark:     #EAF2F6;
  --txt-on-dark-dim: #9DB4C0;
  --txt-on-light:     #0B2431;
  --txt-on-light-dim: #4E6673;

  --font-display: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;

  --shadow-sm: 0 2px 10px rgba(4, 20, 28, .08);
  --shadow-md: 0 10px 34px rgba(4, 20, 28, .14);
  --shadow-lg: 0 28px 70px rgba(4, 20, 28, .28);

  --pad-x: clamp(20px, 5vw, 80px);
  --section-y: clamp(72px, 10vw, 148px);
  --maxw: 1280px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
html:focus-within { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--ink-900);
  color: var(--txt-on-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--accent); color: #fff; }

/* ---------- tipografia ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.02em;
}

.h-display { font-size: clamp(2.4rem, 5.2vw, 4.4rem); font-weight: 700; }
.h1        { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.h2        { font-size: clamp(1.8rem, 3.4vw, 2.85rem); }
.h3        { font-size: clamp(1.15rem, 1.8vw, 1.5rem); }

.lead {
  font-size: clamp(1.02rem, 1.35vw, 1.18rem);
  color: var(--txt-on-dark-dim);
  max-width: 60ch;
}
.section--light .lead { color: var(--txt-on-light-dim); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--accent);
  flex: none;
}

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

/* ---------- layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.section { padding-block: var(--section-y); position: relative; }

.section--light {
  background: var(--paper);
  color: var(--txt-on-light);
}
.section--paper2 { background: var(--paper-2); color: var(--txt-on-light); }

.section-head { max-width: 62ch; margin-bottom: clamp(36px, 5vw, 62px); }
.section-head .h2 { margin-block: 14px 18px; }

.grid { display: grid; gap: clamp(18px, 2.4vw, 30px); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }

/* =========================================================================
   Bottoni
   ========================================================================= */
.btn {
  --btn-bg: var(--accent);
  --btn-fg: #fff;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  background: var(--btn-bg);
  color: var(--btn-fg);
  overflow: hidden;
  isolation: isolate;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
  will-change: transform;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, var(--accent-deep), var(--accent-soft));
  opacity: 0;
  transition: opacity .35s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(242, 100, 61, .34); }
.btn:hover::before { opacity: 1; }
.btn:active { transform: translateY(0); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--txt-on-dark);
  box-shadow: inset 0 0 0 1.5px rgba(234, 242, 246, .28);
}
.btn--ghost::before { background: rgba(234, 242, 246, .1); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px rgba(234, 242, 246, .55); }

.section--light .btn--ghost {
  --btn-fg: var(--txt-on-light);
  box-shadow: inset 0 0 0 1.5px rgba(11, 36, 49, .2);
}
.section--light .btn--ghost::before { background: rgba(11, 36, 49, .06); }

.btn .ico { width: 17px; height: 17px; flex: none; transition: transform .35s var(--ease-out); }
.btn:hover .ico { transform: translateX(4px); }

/* link con freccia */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .93rem;
  color: var(--accent);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .3s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(5px); }

/* =========================================================================
   Header
   ========================================================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding-block: 18px;
  transition: padding .4s var(--ease-out), background .4s var(--ease-out),
              backdrop-filter .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.site-header.is-stuck {
  padding-block: 10px;
  background: rgba(4, 20, 28, .82);
  backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: 0 1px 0 rgba(234, 242, 246, .08);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand img { height: 34px; width: auto; transition: height .4s var(--ease-out); }
.is-stuck .brand img { height: 29px; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  position: relative;
  padding: 9px 15px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: .84rem;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--txt-on-dark-dim);
  transition: color .28s var(--ease-out);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 4px;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .38s var(--ease-out);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--txt-on-dark); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

.header-cta { flex: none; }
.nav > .btn { display: none; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(234, 242, 246, .08);
  box-shadow: inset 0 0 0 1.5px rgba(234, 242, 246, .5);
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 12px;
  width: 20px; height: 2px;
  background: var(--txt-on-dark);
  border-radius: 2px;
  transition: transform .35s var(--ease-out), opacity .2s linear;
}
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 26px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 940px) {
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(360px, 84vw);
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 4px;
    padding: 40px 32px;
    background: var(--ink-800);
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform .5s var(--ease-out);
  }
  .nav.is-open { transform: none; }
  .nav a { font-size: 1.05rem; padding: 16px 8px; letter-spacing: .04em; }
  .nav a::after { left: 8px; right: auto; width: 26px; bottom: 10px; }
  .nav > .btn { display: inline-flex; margin-top: 22px; justify-content: center; }
}

/* =========================================================================
   Hero
   ========================================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 60px;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 78% 18%, rgba(28, 91, 119, .55), transparent 62%),
    linear-gradient(180deg, var(--ink-800) 0%, var(--ink-900) 100%);
}

/* alone che segue il puntatore */
.hero__glow {
  position: absolute;
  width: 46vmax; height: 46vmax;
  left: 0; top: 0;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(242, 100, 61, .16), transparent 62%);
  transform: translate3d(-50%, -50%, 0);
  transition: opacity .6s var(--ease-out);
  opacity: 0;
  mix-blend-mode: screen;
}
.hero:hover .hero__glow { opacity: 1; }

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(155, 190, 205, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(155, 190, 205, .055) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(120% 100% at 50% 0%, #000 30%, transparent 78%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(30px, 5vw, 70px);
  width: 100%;
}

.hero__title { margin-block: 18px 22px; }
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span { display: block; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero__stage {
  position: relative;
  aspect-ratio: 1 / 1;
  min-height: 320px;
}

.hero__scroll {
  position: absolute;
  left: var(--pad-x);
  bottom: 30px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--txt-on-dark-dim);
}
.hero__scroll i {
  display: block;
  width: 1px; height: 42px;
  background: linear-gradient(var(--accent), transparent);
  animation: scrollCue 2.2s var(--ease-in-out) infinite;
  transform-origin: top;
}
@keyframes scrollCue {
  0%, 100% { transform: scaleY(.35); opacity: .4; }
  50%      { transform: scaleY(1);   opacity: 1; }
}

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__stage { order: -1; aspect-ratio: auto; min-height: 0; }
  .hero__scroll { display: none; }
}

/* nastro certificazioni */
.ticker {
  position: relative;
  z-index: 2;
  border-block: 1px solid rgba(155, 190, 205, .14);
  background: rgba(7, 30, 41, .6);
  overflow: hidden;
  padding-block: 16px;
}
.ticker__track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: tickerRun 34s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--txt-on-dark-dim);
  white-space: nowrap;
}
.ticker__item::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}
@keyframes tickerRun { to { transform: translateX(-50%); } }

/* =========================================================================
   Tour 3D
   ========================================================================= */
.tour {
  background:
    radial-gradient(90% 70% at 20% 0%, rgba(18, 69, 92, .5), transparent 60%),
    var(--ink-900);
}

.tour__layout {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
}
@media (max-width: 980px) { .tour__layout { grid-template-columns: 1fr; } }

/* selettore copertura */
.roof-picker { display: grid; gap: 12px; }
.roof-opt {
  position: relative;
  display: grid;
  grid-template-columns: 62px 1fr;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 14px 16px;
  text-align: left;
  border-radius: var(--r-md);
  background: rgba(234, 242, 246, .04);
  box-shadow: inset 0 0 0 1px rgba(155, 190, 205, .14);
  transition: background .3s var(--ease-out), box-shadow .3s var(--ease-out),
              transform .3s var(--ease-out);
}
.roof-opt:hover { background: rgba(234, 242, 246, .08); transform: translateX(3px); }
.roof-opt[aria-selected="true"] {
  background: rgba(242, 100, 61, .12);
  box-shadow: inset 0 0 0 1.5px rgba(242, 100, 61, .6);
}
.roof-opt img { width: 62px; height: 46px; object-fit: contain; }
.roof-opt b {
  display: block;
  font-family: var(--font-display);
  font-size: .98rem;
  font-weight: 600;
}
.roof-opt small { color: var(--txt-on-dark-dim); font-size: .8rem; }

@media (max-width: 980px) {
  .roof-picker { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
}

/* viewport 3D */
.stage {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: linear-gradient(175deg, #14435C 0%, #0A2837 55%, #061C27 100%);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(155, 190, 205, .16);
  aspect-ratio: 16 / 10;
  min-height: 380px;
  touch-action: pan-y;
  cursor: grab;
}
.stage.is-dragging { cursor: grabbing; }
.stage canvas { width: 100%; height: 100%; display: block; }

.stage__fallback {
  position: absolute;
  inset: 0;
  display: none;
  place-content: center;
  text-align: center;
  padding: 32px;
  gap: 14px;
}
.stage.no-webgl .stage__fallback { display: grid; }
.stage.no-webgl canvas { display: none; }

.stage__loader {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 14px;
  justify-items: center;
  background: rgba(6, 28, 39, .9);
  transition: opacity .6s var(--ease-out), visibility .6s;
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--txt-on-dark-dim);
}
.stage.is-ready .stage__loader { opacity: 0; visibility: hidden; }
.stage__spin {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 2px solid rgba(155, 190, 205, .2);
  border-top-color: var(--accent);
  animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* hotspot proiettati sul canvas */
.hotspot {
  position: absolute;
  z-index: 4;
  transform: translate(-50%, -50%);
  width: 30px; height: 30px;
  border-radius: 50%;
  display: grid;
  place-content: center;
  background: rgba(242, 100, 61, .92);
  box-shadow: 0 0 0 6px rgba(242, 100, 61, .18);
  transition: opacity .3s linear, transform .25s var(--ease-out);
  cursor: pointer;
}
.hotspot::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid rgba(242, 100, 61, .8);
  animation: ping 2.4s var(--ease-out) infinite;
}
.hotspot span {
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 700;
  color: #fff;
}
.hotspot:hover { transform: translate(-50%, -50%) scale(1.15); }
.hotspot[data-behind="true"] { opacity: .18; pointer-events: none; }
@keyframes ping {
  0%   { transform: scale(.8); opacity: .9; }
  70%  { transform: scale(1.9); opacity: 0; }
  100% { transform: scale(1.9); opacity: 0; }
}

/* pannello info hotspot */
.stage__panel {
  position: absolute;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 5;
  display: grid;
  grid-template-columns: 78px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 14px 18px;
  border-radius: var(--r-md);
  background: rgba(4, 20, 28, .84);
  backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px rgba(155, 190, 205, .2);
  transform: translateY(130%);
  opacity: 0;
  transition: transform .5s var(--ease-out), opacity .35s linear;
}
.stage__panel.is-open { transform: none; opacity: 1; }
.stage__panel img { width: 78px; height: 62px; object-fit: contain; }
.stage__panel h4 { font-size: 1rem; }
.stage__panel p { font-size: .84rem; color: var(--txt-on-dark-dim); margin-top: 2px; }
.stage__panel .close {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid; place-content: center;
  box-shadow: inset 0 0 0 1px rgba(155, 190, 205, .3);
  font-size: 1.1rem;
  line-height: 1;
}
@media (max-width: 640px) {
  .stage__panel { grid-template-columns: 54px 1fr auto; gap: 12px; padding: 12px; }
  .stage__panel img { width: 54px; height: 46px; }
}

/* barra strumenti 3D */
.stage__tools {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 5;
  display: flex;
  gap: 8px;
}
.stage__tools button {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: grid; place-content: center;
  background: rgba(4, 20, 28, .6);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgba(155, 190, 205, .22);
  transition: background .25s var(--ease-out);
}
.stage__tools button:hover { background: rgba(242, 100, 61, .8); }
.stage__tools svg { width: 17px; height: 17px; }
.stage__tools button[aria-pressed="true"] { background: rgba(242, 100, 61, .8); }

.stage__hint {
  position: absolute;
  left: 16px; top: 16px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 100px;
  background: rgba(4, 20, 28, .55);
  backdrop-filter: blur(10px);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--txt-on-dark-dim);
  transition: opacity .5s linear;
}
.stage.is-touched .stage__hint { opacity: 0; }

/* =========================================================================
   Card prodotto
   ========================================================================= */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
}
.chip {
  padding: 10px 20px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: .84rem;
  font-weight: 500;
  color: var(--txt-on-light-dim);
  box-shadow: inset 0 0 0 1.5px rgba(11, 36, 49, .16);
  transition: all .3s var(--ease-out);
}
.chip:hover { box-shadow: inset 0 0 0 1.5px rgba(11, 36, 49, .4); }
.chip[aria-pressed="true"] {
  background: var(--ink-700);
  color: #fff;
  box-shadow: inset 0 0 0 1.5px var(--ink-700);
}

.product-grid { display: grid; gap: clamp(16px, 2vw, 26px); grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }

.product {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: box-shadow .45s var(--ease-out), transform .45s var(--ease-out),
              opacity .4s linear;
}
.product:hover { box-shadow: var(--shadow-md); }
.product.is-hidden { display: none; }

.product__media {
  position: relative;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  background:
    radial-gradient(70% 60% at 50% 42%, #FFFFFF 0%, var(--steel-100) 60%, var(--paper-3) 100%);
  overflow: hidden;
}
.product__media img {
  width: 82%;
  transform: translateZ(38px) scale(.95);
  transition: transform .6s var(--ease-out);
  filter: drop-shadow(0 18px 22px rgba(11, 36, 49, .22));
}
.product:hover .product__media img { transform: translateZ(38px) scale(1.06) rotate(-1.5deg); }

/* filigrana con il pezzo degli scacchi: i prodotti si chiamano
   Knight / Rook / Bishop / Pawn, vale la pena raccontarlo */
.product__glyph {
  position: absolute;
  right: -12px; bottom: -34px;
  font-size: 9rem;
  line-height: 1;
  color: rgba(11, 36, 49, .06);
  pointer-events: none;
  transition: transform .6s var(--ease-out), color .6s var(--ease-out);
}
.product:hover .product__glyph { transform: translateY(-6px); color: rgba(242, 100, 61, .12); }

.product__type {
  position: absolute;
  top: 14px; left: 14px;
  padding: 6px 12px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: var(--ink-700);
  color: #fff;
}
.product__type--a { background: var(--steel-700); }

.product__body {
  padding: 22px 24px 26px;
  color: var(--txt-on-light);
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.product__body h3 { font-size: 1.22rem; }
.product__roof {
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--steel-500);
}
.product__specs { display: grid; gap: 7px; margin-top: 2px; }
.product__specs li {
  list-style: none;
  position: relative;
  padding-left: 22px;
  font-size: .9rem;
  color: var(--txt-on-light-dim);
}
.product__specs li::before {
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: 11px; height: 6px;
  border-left: 1.8px solid var(--accent);
  border-bottom: 1.8px solid var(--accent);
  transform: rotate(-45deg);
}
.product__body .link-arrow { margin-top: auto; padding-top: 8px; }

/* =========================================================================
   Mission / split con foto
   ========================================================================= */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.split__media {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.split__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform 1.2s var(--ease-out);
}
.split__media.is-visible img { transform: scale(1); }

.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 22px; margin-top: 40px; }
.figure b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.figure span { font-size: .84rem; color: var(--txt-on-dark-dim); }
.section--light .figure span { color: var(--txt-on-light-dim); }

/* =========================================================================
   Servizi
   ========================================================================= */
.svc {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(26px, 3vw, 38px);
  border-radius: var(--r-lg);
  background: rgba(234, 242, 246, .04);
  box-shadow: inset 0 0 0 1px rgba(155, 190, 205, .14);
  overflow: hidden;
  transition: background .45s var(--ease-out), transform .45s var(--ease-out);
}
.svc::before {
  content: "";
  position: absolute;
  inset: auto -30% -60% auto;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 100, 61, .22), transparent 68%);
  opacity: 0;
  transition: opacity .5s var(--ease-out);
}
.svc:hover { background: rgba(234, 242, 246, .07); transform: translateY(-4px); }
.svc:hover::before { opacity: 1; }
.svc__num {
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--accent);
}
.svc h3 { font-size: 1.34rem; }
.svc p { color: var(--txt-on-dark-dim); font-size: .95rem; }
.svc .link-arrow { margin-top: auto; padding-top: 10px; }

/* =========================================================================
   Contatti
   ========================================================================= */
.contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(28px, 4vw, 60px);
  align-items: start;
}

.info-list { display: grid; gap: 22px; margin-top: 30px; }
.info-item { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.info-item .ic {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-content: center;
  background: rgba(242, 100, 61, .14);
  color: var(--accent);
}
.info-item .ic svg { width: 19px; height: 19px; }
.info-item dt {
  font-family: var(--font-display);
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--txt-on-dark-dim);
  margin-bottom: 2px;
}
.info-item dd { margin: 0; font-size: 1rem; }
.info-item dd a:hover { color: var(--accent); }

.form { display: grid; gap: 16px; }
.field { position: relative; display: grid; gap: 7px; }
.field label {
  font-family: var(--font-display);
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--txt-on-dark-dim);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--r-sm);
  background: rgba(234, 242, 246, .05);
  border: 1.5px solid rgba(155, 190, 205, .2);
  transition: border-color .3s var(--ease-out), background .3s var(--ease-out);
}
.field textarea { min-height: 120px; resize: vertical; }
.field select { appearance: none; cursor: pointer; }
.field select option { background: var(--ink-800); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(234, 242, 246, .08);
}
.field .err {
  font-size: .78rem;
  color: var(--accent-soft);
  min-height: 1em;
  opacity: 0;
  transition: opacity .25s linear;
}
.field.is-invalid .err { opacity: 1; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--accent); }

.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }

.form__note { font-size: .8rem; color: var(--txt-on-dark-dim); }
.form__note a { text-decoration: underline; }

.form-status {
  padding: 14px 18px;
  border-radius: var(--r-sm);
  background: rgba(242, 100, 61, .14);
  box-shadow: inset 0 0 0 1px rgba(242, 100, 61, .4);
  font-size: .9rem;
  display: none;
}
.form-status.is-shown { display: block; }

/* =========================================================================
   Documentazione
   ========================================================================= */
.doc-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 22px 26px;
  border-radius: var(--r-md);
  background: rgba(234, 242, 246, .04);
  box-shadow: inset 0 0 0 1px rgba(155, 190, 205, .14);
  transition: background .35s var(--ease-out), transform .35s var(--ease-out);
}
.doc-card:hover { background: rgba(234, 242, 246, .08); transform: translateX(5px); }
.doc-card .ic {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid; place-content: center;
  background: rgba(242, 100, 61, .14);
  color: var(--accent);
}
.doc-card h3 { font-size: 1.05rem; }
.doc-card p { font-size: .85rem; color: var(--txt-on-dark-dim); }

/* =========================================================================
   CTA finale + footer
   ========================================================================= */
.cta-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--ink-700), var(--ink-600) 55%, var(--ink-500));
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 60vmax; height: 60vmax;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 100, 61, .28), transparent 60%);
}
.cta-band__inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.site-footer {
  background: var(--ink-900);
  padding-block: clamp(50px, 6vw, 80px) 30px;
  border-top: 1px solid rgba(155, 190, 205, .12);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(150px, 1fr));
  gap: clamp(28px, 4vw, 56px);
}
.footer-grid h4 {
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--txt-on-dark-dim);
  margin-bottom: 16px;
}
.footer-grid ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.footer-grid a { font-size: .92rem; color: var(--txt-on-dark-dim); transition: color .25s var(--ease-out); }
.footer-grid a:hover { color: var(--accent); }
.footer-brand img { height: 44px; width: auto; margin-bottom: 18px; }
.footer-brand p { font-size: .92rem; color: var(--txt-on-dark-dim); max-width: 34ch; }

.socials { display: flex; gap: 10px; margin-top: 22px; }
.socials a {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: grid; place-content: center;
  box-shadow: inset 0 0 0 1px rgba(155, 190, 205, .2);
  transition: background .3s var(--ease-out), transform .3s var(--ease-out);
}
.socials a:hover { background: var(--accent); color: #fff; transform: translateY(-3px); }
.socials svg { width: 17px; height: 17px; }

.legal {
  margin-top: clamp(36px, 5vw, 60px);
  padding-top: 24px;
  border-top: 1px solid rgba(155, 190, 205, .12);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  justify-content: space-between;
  font-size: .78rem;
  color: var(--steel-500);
}

/* pulsante WhatsApp flottante */
.wa-fab {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 90;
  width: 56px; height: 56px;
  border-radius: 50%;
  display: grid; place-content: center;
  background: #25D366;
  color: #fff;
  box-shadow: 0 12px 30px rgba(37, 211, 102, .35);
  transform: translateY(90px) scale(.8);
  opacity: 0;
  transition: transform .5s var(--ease-out), opacity .4s linear;
}
.wa-fab.is-shown { transform: none; opacity: 1; }
.wa-fab:hover { transform: scale(1.08); }
.wa-fab svg { width: 27px; height: 27px; }

/* barra di avanzamento lettura */
.progress {
  position: fixed;
  inset: 0 0 auto;
  height: 2px;
  z-index: 110;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(0);
}

/* =========================================================================
   Animazioni d'ingresso
   ========================================================================= */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  transition-delay: var(--delay, 0ms);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="left"] { transform: translateX(-30px); }
.js [data-reveal="right"] { transform: translateX(30px); }
.js [data-reveal="scale"] { transform: scale(.94); }

.js .hero__title .line > span {
  transform: translateY(105%);
  transition: transform 1s var(--ease-out);
  transition-delay: var(--delay, 0ms);
}
.hero.is-ready .hero__title .line > span { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html:focus-within { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .hero__title .line > span { transform: none; }
}

/* =========================================================================
   Testata delle pagine interne
   ========================================================================= */
.page-hero {
  position: relative;
  padding-block: clamp(140px, 16vw, 210px) clamp(50px, 7vw, 90px);
  overflow: hidden;
  background:
    radial-gradient(110% 85% at 82% 12%, rgba(28, 91, 119, .5), transparent 62%),
    linear-gradient(180deg, var(--ink-800), var(--ink-900));
}
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero .h1 { margin-block: 16px 20px; }
.page-hero .lead { max-width: 56ch; }

/* le schede documento sono link a tutta larghezza */
a.doc-card { color: inherit; }
a.doc-card h3 { margin-bottom: 2px; }
@media (max-width: 620px) {
  .doc-card { grid-template-columns: auto 1fr; }
  .doc-card .link-arrow { grid-column: 2; }
}

/* elenco puntato riusato nelle pagine servizi, su fondo chiaro */
.section--light .product__specs li,
.section--paper2 .product__specs li { color: var(--txt-on-light-dim); }


/* =========================================================================
   Componente in apertura
   Un solo pezzo, grande, su un alone caldo: fa da immagine dell'hero.
   ========================================================================= */
.hero__product {
  display: grid;
  grid-template-rows: 1fr auto;
  place-items: center;
  margin: 0;
  isolation: isolate;
}

.hero__product-glow {
  position: absolute;
  inset: 8% 8% 14%;
  z-index: -1;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, rgba(242, 100, 61, .38), transparent 72%),
    radial-gradient(closest-side at 62% 38%, rgba(120, 190, 235, .32), transparent 74%);
  filter: blur(8px);
}

/* cerchio tecnico dietro al pezzo, come una quota di disegno */
.hero__product::before {
  content: "";
  position: absolute;
  inset: 12%;
  z-index: -1;
  border-radius: 50%;
  border: 1px dashed rgba(155, 190, 205, .22);
}

.hero__product img {
  width: 88%;
  max-width: 520px;
  filter:
    drop-shadow(0 26px 34px rgba(2, 12, 18, .55))
    drop-shadow(0 2px 3px rgba(2, 12, 18, .4));
  transition: transform .5s var(--ease-out);
  will-change: transform;
}

/* ombra di appoggio: senza, il pezzo galleggia nel vuoto */
.hero__product::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 11%;
  width: 46%;
  height: 26px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(2, 12, 18, .6), transparent 78%);
  filter: blur(7px);
  z-index: -1;
}

.hero__product figcaption {
  grid-row: 2;
  justify-self: start;
  display: grid;
  gap: 3px;
  padding-left: 16px;
  border-left: 2px solid var(--accent);
}
.hero__product figcaption b {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: .04em;
}
.hero__product figcaption span {
  font-size: .8rem;
  color: var(--txt-on-dark-dim);
}

@media (max-width: 900px) {
  .hero__product { grid-template-rows: auto auto; gap: 16px; }
  .hero__product img { width: 68%; max-width: 340px; }
  .hero__product::after { display: none; }
  .hero__product-glow { inset: 4% 12% 22%; }
  .hero__product::before { inset: 6% 14% 24%; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__product img { transform: none !important; }
}

/* =========================================================================
   Intro a scorrimento
   Colonna di testo che scorre, componente fermo di fianco che cambia:
   ogni pezzo entra in assonometria mentre il passo corrispondente
   attraversa il centro dello schermo.
   ========================================================================= */
.intro {
  background:
    radial-gradient(80% 60% at 78% 10%, rgba(18, 69, 92, .55), transparent 62%),
    var(--ink-900);
  --section-y: clamp(40px, 6vw, 90px);
}

.intro__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: start;
}

/* ---- colonna ferma con il pezzo ---- */
.intro__sticky {
  position: sticky;
  top: clamp(84px, 12vh, 120px);
  display: grid;
  justify-items: center;
  gap: 18px;
}

.intro__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 62vh;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.intro__ring {
  position: absolute;
  inset: 9%;
  z-index: -1;
  border-radius: 50%;
  border: 1px dashed rgba(155, 190, 205, .2);
}
.intro__ring::before {
  content: "";
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  border: 1px solid rgba(155, 190, 205, .1);
}

.intro__glow {
  position: absolute;
  inset: 14%;
  z-index: -1;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, rgba(242, 100, 61, .34), transparent 70%),
    radial-gradient(closest-side at 64% 36%, rgba(120, 190, 235, .28), transparent 74%);
  filter: blur(10px);
}

/* i pezzi stanno impilati nella stessa cella: solo quello attivo è visibile */
.intro__piece {
  grid-area: 1 / 1;
  width: 84%;
  justify-self: center;
  opacity: 0;
  transform: translate3d(9%, 12%, 0) rotate(6deg) scale(.86);
  transition:
    opacity .55s var(--ease-out),
    transform .8s var(--ease-out);
  filter: drop-shadow(0 24px 30px rgba(2, 12, 18, .5));
  pointer-events: none;
}
.intro__piece.is-active {
  opacity: 1;
  transform: none;
}
/* i pezzi già visti escono dal lato opposto */
.intro__piece.is-past {
  opacity: 0;
  transform: translate3d(-9%, -10%, 0) rotate(-5deg) scale(.9);
}

.intro__counter {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: .82rem;
  letter-spacing: .14em;
  color: var(--txt-on-dark-dim);
}
.intro__counter b { color: var(--accent); font-weight: 600; }
.intro__counter i { width: 34px; height: 1px; background: rgba(155, 190, 205, .3); }

/* ---- colonna di testo ---- */
.intro__steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.intro__step {
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  opacity: .28;
  transition: opacity .5s var(--ease-out);
}
.intro__step.is-current { opacity: 1; }
.intro__step .h2 { margin-top: 6px; }

.intro__name {
  font-family: var(--font-display);
  font-size: .84rem;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--accent);
  padding-left: 14px;
  border-left: 2px solid var(--accent);
  align-self: flex-start;
}

@media (max-width: 980px) {
  .intro__layout { grid-template-columns: 1fr; gap: 0; }
  .intro__sticky {
    top: 76px;
    padding-block: 12px 4px;
    background: linear-gradient(180deg, var(--ink-900) 76%, transparent);
  }
  .intro__stage { max-height: 34vh; }
  .intro__piece { width: 62%; }
  .intro__step { min-height: 62vh; }
}

@media (prefers-reduced-motion: reduce) {
  .intro__sticky { position: static; }
  .intro__stage { max-height: 40vh; }
  .intro__piece { transition: none; }
  .intro__step { opacity: 1; min-height: 0; padding-block: 30px; }
}

/* =========================================================================
   Dati tecnici nella scheda prodotto
   ========================================================================= */
.product__data {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  margin: 4px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(11, 36, 49, .1);
}
.product__data dt {
  font-family: var(--font-display);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--steel-500);
}
.product__data dd {
  margin: 2px 0 0;
  font-size: .88rem;
  color: var(--txt-on-light);
  font-variant-numeric: tabular-nums;
}


/* =========================================================================
   Messa a punto per il mobile
   Vale solo sotto i 900px e sui dispositivi touch: il desktop resta com'era.
   ========================================================================= */
@media (max-width: 900px) {

  /* L'apertura partiva con il render a tutta altezza e il titolo finiva
     sotto la piega: prima il messaggio, poi il pezzo. */
  .hero {
    min-height: 0;
    padding-top: 104px;
    padding-bottom: 48px;
  }
  .hero__inner { gap: 26px; }
  .hero__stage { order: 0; max-height: 44vh; }
  .hero__product img { width: 58%; max-width: 250px; }
  .hero__actions { margin-top: 26px; gap: 12px; }
  .hero__actions .btn { flex: 1 1 100%; justify-content: center; }

  /* l'alone che segue il puntatore non ha senso su touch e costa disegno */
  .hero__glow { display: none; }

  /* l'occhiello si spezzava su due righe: meno spaziatura fra le lettere */
  .eyebrow { letter-spacing: .14em; }

  /* sotto i 16px Safari iOS ingrandisce la pagina a ogni tocco sul campo */
  .field input, .field select, .field textarea { font-size: 16px; }

  /* il pulsante WhatsApp copriva l'ultima riga di testo */
  .wa-fab {
    width: 50px; height: 50px;
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  }
  .wa-fab svg { width: 24px; height: 24px; }
  .site-footer { padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
}

/* Aree di tocco: sotto i 44px il dito manca il bersaglio. */
@media (hover: none) and (pointer: coarse) {
  .chip { min-height: 44px; display: inline-flex; align-items: center; }
  .nav-toggle { width: 44px; height: 44px; }
  .stage__tools button { width: 44px; height: 44px; }
  .link-arrow { min-height: 44px; }
  .footer-grid a,
  .legal a,
  .info-item dd a { display: inline-block; padding-block: 5px; }
  .socials a { min-width: 44px; min-height: 44px; }
}

/* Margine di sicurezza sui telefoni con angoli arrotondati o notch. */
@supports (padding: max(0px)) {
  .wrap {
    padding-left: max(var(--pad-x), env(safe-area-inset-left));
    padding-right: max(var(--pad-x), env(safe-area-inset-right));
  }
}

/* Effetti costosi per le GPU dei telefoni, sugli schermi piu' piccoli. */
@media (max-width: 640px) {
  .stage { min-height: 300px; }
  .stage__tools button { backdrop-filter: none; background: rgba(4, 20, 28, .82); }
  .hero__product img { filter: drop-shadow(0 18px 24px rgba(2, 12, 18, .5)); }
}


/* =========================================================================
   Sezione "gamma": il pezzo deve restare in vista mentre cambiano i passi
   ========================================================================= */

/* Il kit di Elementor imponeva overflow-x: hidden !important su html e body:
   cosi' il body diventa un contenitore di scorrimento e position: sticky non
   si aggancia piu'. overflow-x: clip taglia allo stesso modo l'eccedenza
   orizzontale, senza creare lo scorrimento. */
@supports (overflow: clip) {
  html, body { overflow-x: clip !important; }
}

/* Sul telefono la colonna diventa una griglia a due righe e lo sticky resta
   prigioniero della prima riga: torna un blocco, cosi' accompagna tutta la
   sezione. Il pannello si aggancia sotto la barra in alto e sfuma in basso,
   cosi' il testo dei passi ci scorre dietro pulito. */
@media (max-width: 980px) {
  .intro__layout { display: block; }
  .intro__sticky {
    position: sticky;
    top: 64px;
    z-index: 3;
    gap: 12px;
    padding-block: 12px 40px;
    background: linear-gradient(180deg, var(--ink-900) 0 80%, rgba(4, 20, 28, 0) 100%);
  }
  .intro__stage { max-height: 30vh; }
}
