/* =====================================================================
   Pagine interne — ogni pagina ha un'idea propria, costruita sul suo contenuto.
   Software: un desktop con finestre trascinabili.   Hardware: il banco dei dispositivi.
   Arredi: la planimetria che si disegna.            Chi siamo: 1992–oggi.
   Case studies: l'indice dei progetti.              Consulenza: il check-up.
   Assistenza: il pannello di guardia e i livelli.   Buffetti: lo sportello.
   Contatti: il modulo che si legge come una frase.  Lavora con noi: il badge.
   ===================================================================== */

.pg .page-hero { padding-block: clamp(36px, 5vw, 72px) clamp(56px, 8vw, 112px); }
.pg-h1 { font-size: clamp(2.3rem, 1.3rem + 4vw, 5.2rem); line-height: 1; letter-spacing: -.035em; max-width: 15ch; }
.pg-sec { padding-block: var(--space-section); position: relative; }
.pg-head { display: grid; gap: 16px; max-width: 780px; margin-bottom: clamp(28px, 4vw, 56px); }
.pg-head h2 { font-size: var(--step-3); }
.pg-head p { color: var(--muted); font-size: var(--step-1); line-height: 1.5; max-width: 60ch; }
.dark .pg-head p { color: var(--muted-ink); }
.pg .lead { color: var(--muted); }
.pg .dark .lead, .pg .is-dark .lead { color: var(--muted-ink); }

/* Chiusura di pagina: stesso invito, colore e parole della pagina */
.pg-close { padding-block: var(--space-section-tight) var(--space-section); }
.pg-close-box {
  --c: var(--orange);
  border-radius: 36px; padding: clamp(36px, 6vw, 80px); display: grid; gap: 22px;
  background: var(--c); color: var(--ink); position: relative; overflow: hidden; isolation: isolate;
}
.pg-close-box h2 { font-size: var(--step-4); max-width: 17ch; }
.pg-close-box p { max-width: 54ch; font-size: var(--step-1); line-height: 1.5; }
.pg-close-box .btn { justify-self: start; }
.pg-close-box .btn::before { background: var(--paper); }
.pg-close-box .btn:hover { --fg: var(--ink); }
.pg-close-box .ring {
  position: absolute; z-index: -1; right: -8%; bottom: -55%; width: min(60vw, 620px); aspect-ratio: 1;
  border-radius: 50%; border: clamp(40px, 7vw, 90px) solid rgba(255, 255, 255, .22);
}

/* =====================================================================
   SOFTWARE — il desktop
   ===================================================================== */
.sw-grid { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (min-width: 1000px) { .sw-grid { grid-template-columns: 5fr 6fr; } }
.sw-grid > * { min-width: 0; }
.sw-copy { display: grid; gap: 24px; align-content: start; }
.sw-pick { display: grid; gap: 10px; }
.sw-pick > span { font-weight: 600; font-size: .95rem; }
.sw-switch { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 6px; background: var(--white); border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line); justify-self: start; }
.sw-switch button {
  font: 600 1rem/1 var(--f-body); padding: 13px 20px; border: 0; border-radius: var(--radius); cursor: pointer;
  background: transparent; color: var(--ink); transition: background .3s, color .3s;
}
.sw-switch button:hover { background: var(--paper-2); }
.sw-switch button[aria-selected="true"] { background: var(--ink); color: var(--paper); }

.sw-desk {
  position: relative; aspect-ratio: 6 / 5; border-radius: 26px; background: #1b1e25; overflow: hidden; isolation: isolate;
  box-shadow: 0 50px 90px -50px rgba(21, 23, 28, .7), 0 0 0 10px var(--ink), 0 0 0 11px #2c3039;
  margin: 11px; user-select: none; -webkit-user-select: none; touch-action: pan-y;
}
.sw-wall { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .9; }
.sw-dock {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 20;
  display: flex; align-items: center; gap: 12px; padding: 8px 14px; border-radius: var(--radius);
  background: rgba(21, 23, 28, .72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: var(--paper); font-size: .78rem; white-space: nowrap;
}
.sw-dock i { width: 22px; height: 10px; border-radius: var(--radius); display: block; }
.sw-dock b { font-weight: 600; }
.sw-dock .clk { font-variant-numeric: tabular-nums; color: var(--muted-ink); }
.win {
  --c: var(--orange);
  position: absolute; left: var(--x, 6%); top: var(--y, 8%); width: 54%; z-index: var(--z, 1);
  background: var(--paper); border-radius: 14px; overflow: hidden;
  box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .06);
  font-size: clamp(.62rem, .5rem + .35vw, .8rem);
}
.win[hidden] { display: none; }
.win-bar { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: var(--white); border-bottom: 1px solid var(--line); cursor: grab; }
.win-bar:active { cursor: grabbing; }
.win-bar i { width: 16px; height: 7px; border-radius: var(--radius); background: var(--c); flex: none; }
.win-bar i + i { width: 7px; background: var(--line); }
.win-bar b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win-body { padding: 12px; display: grid; gap: 7px; min-height: 7.5em; }
.win-body .l { height: .75em; border-radius: var(--radius); background: var(--paper-2); }
.win-body .l.s { width: 55%; } .win-body .l.m { width: 75%; }
/* mini interfacce */
.v-rows .r { display: grid; grid-template-columns: 1.6em 1fr; gap: 8px; align-items: center; }
.v-rows .r > i { width: 1.6em; height: 1.6em; border-radius: 50%; background: var(--c2, var(--c)); }
.v-rows .r > span { display: grid; gap: 4px; }
.v-bars { grid-template-columns: repeat(7, 1fr); align-items: end; height: 8em; gap: 6px; }
.v-bars i { border-radius: 6px 6px 3px 3px; background: var(--c); height: var(--h); transform-origin: bottom; }
.v-bars i:nth-child(odd) { background: var(--ink); }
.v-doc .row { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); }
.v-doc .row b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.v-doc .tot { border-top: 1.5px solid var(--ink); padding-top: 6px; color: var(--ink); }
.v-flow { grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 6px; text-align: center; }
.v-flow span { border-radius: 10px; padding: 1em .4em; background: var(--paper-2); font-weight: 600; }
.v-flow span:nth-of-type(1) { background: var(--orange); }
.v-flow span:nth-of-type(2) { background: var(--yellow); }
.v-flow span:nth-of-type(3) { background: var(--green); }
.v-flow em { width: 1.4em; height: 3px; background: var(--ink); border-radius: 2px; }
.v-shield { grid-template-columns: auto 1fr; align-items: center; gap: 12px; }
.v-shield svg { width: 3.6em; height: auto; }
.v-shield p { display: grid; gap: 3px; }
.v-shield p b { font-weight: 600; }
.v-shield p span { color: var(--muted); }
.v-cal { grid-template-columns: repeat(7, 1fr); gap: 4px; }
.v-cal i { aspect-ratio: 1; border-radius: 4px; background: var(--paper-2); }
.v-cal i.on { background: var(--c); }
.v-cal i.on2 { background: var(--ink); }
.v-ticket .row { display: flex; gap: 8px; align-items: baseline; }
.v-ticket .row b { min-width: 1.6em; font-weight: 700; }
.v-ticket .row span { flex: 1; border-bottom: 1px dashed var(--line); padding-bottom: 3px; }
.v-ticket .row em { font-style: normal; color: var(--muted); }
.v-stock .row { display: grid; grid-template-columns: 5em 1fr; gap: 8px; align-items: center; color: var(--muted); }
.v-stock .row i { height: .9em; border-radius: var(--radius); background: linear-gradient(90deg, var(--c) var(--p), var(--paper-2) var(--p)); }
.v-folders { grid-template-columns: repeat(3, 1fr); gap: 10px; }
.v-folders .f { display: grid; gap: 4px; justify-items: center; color: var(--muted); }
.v-folders .f i { width: 100%; aspect-ratio: 4 / 3; border-radius: 4px 8px 8px 8px; background: var(--c); position: relative; }
.v-folders .f i::before { content: ""; position: absolute; left: 0; top: -12%; width: 45%; height: 18%; border-radius: 4px 6px 0 0; background: inherit; }
.v-folders .f:nth-child(2) i { background: var(--blue); } .v-folders .f:nth-child(3) i { background: var(--yellow); }
.v-folders .up { grid-column: 1 / -1; height: .7em; border-radius: var(--radius); background: linear-gradient(90deg, var(--green) 72%, var(--paper-2) 72%); }

/* Elenco per settore */
.sw-list { border-top: 1.5px solid var(--ink); }
.sw-item {
  display: grid; gap: 10px 32px; padding-block: clamp(22px, 3vw, 34px); border-bottom: 1px solid var(--line); align-items: baseline;
}
@media (min-width: 820px) { .sw-item { grid-template-columns: 2.4rem minmax(0, 1fr) minmax(0, 1.1fr); } }
.sw-item .g { width: 2.4rem; height: 1.6rem; border-radius: 6px; background: var(--white); box-shadow: inset 0 0 0 1.5px var(--ink); position: relative; align-self: center; }
.sw-item .g::before { content: ""; position: absolute; left: 4px; right: 4px; top: 4px; height: 4px; border-radius: 2px; background: var(--c, var(--orange)); }
.sw-item h3 { font-size: var(--step-2); }
.sw-item p { color: var(--muted); max-width: 52ch; }
.tabpanel.sw-panel { outline: none; }
.sw-partners { display: grid; gap: 24px; }
@media (min-width: 900px) { .sw-partners { grid-template-columns: 4fr 8fr; align-items: center; } }

/* =====================================================================
   HARDWARE — il banco
   ===================================================================== */
.hw-hero { background: var(--ink); color: var(--paper); isolation: isolate; }
.hw-hero .crumbs { color: var(--muted-ink); }
.hw-grid { display: grid; gap: clamp(32px, 5vw, 56px); align-items: end; }
@media (min-width: 1000px) { .hw-grid { grid-template-columns: 4fr 7fr; } }
.hw-grid > * { min-width: 0; }
.hw-copy { display: grid; gap: 24px; align-content: start; align-self: center; }
.hw-copy .lead { color: var(--muted-ink); }
.hw-copy .btn { --bg: var(--paper); --fg: var(--ink); justify-self: start; }
.hw-copy .btn:hover { --fg: var(--white); }
.hw-bench { width: 100%; height: auto; display: block; overflow: visible; }
.hw-bench .dev { cursor: pointer; outline: none; }
.hw-bench .dev > .body { transition: transform .5s var(--ease); transform-box: fill-box; }
.hw-bench .dev:hover > .body, .hw-bench .dev:focus-visible > .body { transform: translateY(-10px); }
.hw-bench .dev .lbl { fill: var(--muted-ink); font: 500 15px var(--f-body); transition: fill .3s; }
.hw-bench .dev:hover .lbl, .hw-bench .dev:focus-visible .lbl { fill: var(--paper); }
.hw-bench .dev:focus-visible .lbl { text-decoration: underline; }
.hw-bench .led { animation: led 1.6s steps(2) infinite; }
.hw-bench .led:nth-of-type(2n) { animation-delay: .4s; }
.hw-bench .led:nth-of-type(3n) { animation-delay: .9s; animation-duration: 2.2s; }
@keyframes led { 50% { opacity: .25; } }
.hw-bench .sheet { animation: sheet 4s var(--ease) infinite; }
@keyframes sheet { 0%, 15% { transform: translateY(-40px); } 55%, 85% { transform: translateY(0); } 100% { transform: translateY(-40px); } }
.hw-hero.grain::after { opacity: .05; }
.hw-bench .chg { animation: chg 3s ease-in-out infinite; transform-origin: bottom; transform-box: fill-box; }
@keyframes chg { 0% { transform: scaleY(.3); } 70%, 100% { transform: scaleY(1); } }
.hw-bench .scr i, .hw-bench .bar { transform-box: fill-box; transform-origin: bottom; animation: chg 3.6s ease-in-out infinite alternate; }

/* Inventario con etichette */
.inv { display: grid; border-top: 1.5px solid var(--ink); }
.inv-row {
  display: grid; gap: 14px 32px; padding-block: clamp(22px, 3vw, 32px); border-bottom: 1px solid var(--line);
  scroll-margin-top: 120px; transition: background .6s;
}
@media (min-width: 860px) { .inv-row { grid-template-columns: 170px minmax(0, 1fr) minmax(0, 1.2fr); align-items: start; } }
.inv-row:target { background: rgba(246, 181, 46, .18); }
.tag-asset {
  --c: var(--orange);
  justify-self: start; display: grid; gap: 6px; padding: 10px 12px 8px; border-radius: 8px; background: var(--white);
  box-shadow: 0 0 0 1px var(--line), 0 6px 14px -10px rgba(21, 23, 28, .5); min-width: 150px; position: relative;
}
.tag-asset::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; border-radius: 8px 0 0 8px; background: var(--c); }
.tag-asset small { font-size: .7rem; color: var(--muted); line-height: 1; }
.tag-asset b { font-family: var(--f-display); font-weight: 500; font-size: .95rem; line-height: 1; }
.tag-asset .code {
  height: 18px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px, var(--ink) 8px 11px, transparent 11px 12px, var(--ink) 12px 13px, transparent 13px 16px);
}
.inv-row h3 { font-size: var(--step-2); }
.inv-row p { color: var(--muted); max-width: 56ch; }
.inv-row.eco h3::after { content: "green"; font: 600 .72rem/1 var(--f-body); background: var(--green); color: var(--ink); padding: 5px 9px; border-radius: var(--radius); margin-left: 10px; vertical-align: middle; }

/* Certificato ZeroZero Toner */
.cert-wrap { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (min-width: 940px) { .cert-wrap { grid-template-columns: 5fr 6fr; } }
.cert-wrap > * { min-width: 0; }
.cert {
  position: relative; background: var(--white); padding: clamp(28px, 4vw, 48px); border-radius: 6px;
  box-shadow: 0 30px 60px -30px rgba(21, 23, 28, .45); transform: rotate(-1.2deg);
  outline: 1.5px solid var(--ink); outline-offset: -14px;
}
.cert::after { content: ""; position: absolute; inset: 20px; border: 1px solid var(--line); pointer-events: none; }
.cert h3 { font-size: var(--step-2); margin-bottom: 18px; max-width: 16ch; }
.cert .ticks { display: grid; gap: 10px; }
.cert .ticks li { --c: var(--green); }
.stamp {
  position: absolute; right: clamp(-10px, 2vw, 28px); top: clamp(-30px, -2vw, -10px); width: 128px; height: 128px; border-radius: 50%;
  display: grid; place-items: center; text-align: center; transform: rotate(14deg);
  border: 3px solid var(--green); color: #4c8a1d; font: 700 .78rem/1.15 var(--f-body); background: rgba(255, 255, 255, .85);
  box-shadow: inset 0 0 0 5px var(--white), inset 0 0 0 7px var(--green);
}

/* =====================================================================
   ARREDI — fascione video
   ===================================================================== */
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
/* Fascione con video: un ufficio vero a tutta prima schermata */
.ar-vhero { position: relative; isolation: isolate; overflow: hidden; min-height: calc(100svh - var(--hero-top, 104px)); display: grid; align-items: center; background: #e9e7e1; }
.ar-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--vx, 72%) 50%; z-index: -3; }
.ar-vshade {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(243, 243, 240, .94) 0%, rgba(243, 243, 240, .82) 30%, rgba(243, 243, 240, .35) 48%, rgba(243, 243, 240, 0) 62%),
    linear-gradient(0deg, rgba(243, 243, 240, .55), rgba(243, 243, 240, 0) 22%);
}
.ar-vcopy { display: grid; gap: 22px; align-content: center; padding-block: clamp(48px, 8vh, 96px); }
.ar-vcopy > * { max-width: 500px; }
.ar-vhero .pg-h1 { font-size: clamp(2.2rem, .8rem + 2.6vw, 3.8rem); max-width: 11ch; }
.ar-vhero .lead { color: var(--ink-2); }
.ar-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.ar-cta span { color: var(--ink-2); font-size: .95rem; }
/* Variante Buffetti: stesso fascione video, sfumatura blu e testo chiaro */
.bf-vhero { background: var(--navy); color: var(--white); }
.bf-vhero .ar-vshade {
  background:
    linear-gradient(90deg, rgba(20, 42, 102, .96) 0%, rgba(29, 60, 143, .9) 34%, rgba(29, 60, 143, .48) 52%, rgba(29, 60, 143, 0) 66%),
    linear-gradient(0deg, rgba(20, 42, 102, .45), rgba(20, 42, 102, 0) 24%);
}
.bf-vhero .crumbs, .bf-vhero .lead, .bf-vhero .bf-addr { color: #d5def6; }
.bf-vhero .logo-b { width: 170px; height: auto; background: none; padding: 0; border-radius: 0; }
.bf-vhero .pg-h1 { max-width: 12ch; }
/* su telefono: testo in alto, il video in una fascia sotto, così gli arredi non finiscono sotto la scritta */
@media (max-width: 760px) {
  .ar-vhero { grid-template-rows: auto minmax(44svh, 1fr); align-items: stretch; background: var(--paper); }
  .ar-vcopy { grid-row: 1; padding-block: 28px 22px; gap: 16px; }
  .ar-vid { position: relative; grid-row: 2; height: 100%; min-height: 44svh; --vx: 78%; }
  .ar-vshade { background: linear-gradient(180deg, var(--paper) 0, rgba(243, 243, 240, 0) 70px); top: auto; bottom: 0; height: calc(44svh + 70px); }
  }

/* Introduzione */
.ar-intro-grid { display: grid; gap: clamp(24px, 4vw, 64px); align-items: start; }
@media (min-width: 960px) { .ar-intro-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); } }
.ar-intro h2 { font-size: var(--step-4); line-height: 1.1; max-width: 13ch; }
.ar-intro-copy { display: grid; gap: 28px; }
.ar-intro-copy > p { font-size: var(--step-1); line-height: 1.5; color: var(--muted); }
.ar-facts { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
.ar-facts li { display: grid; grid-template-columns: 11rem 1fr; gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ar-facts b { font-family: var(--f-display); font-weight: 500; font-size: 1.15rem; letter-spacing: -.02em; }
.ar-facts span { color: var(--muted); }

/* Soluzioni: righe alternate testo / illustrazione */
.ar-sols { padding-top: 0; }
.ar-sol { display: grid; gap: clamp(24px, 4vw, 64px); align-items: center; padding-block: clamp(28px, 4vw, 56px); border-top: 1px solid var(--line); }
@media (min-width: 900px) {
  .ar-sol { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ar-sol:nth-of-type(even) .ar-photo { order: 2; }
}
.ar-tx { display: grid; gap: 16px; align-content: start; }
.ar-tx h3 { font-size: var(--step-3); line-height: 1.1; }
.ar-tx > p { color: var(--muted); font-size: 1.05rem; line-height: 1.55; max-width: 56ch; }
.dark .ar-tx > p { color: var(--muted-ink); }
.ar-tx .ticks { display: grid; gap: 8px; }
.ar-tx .ticks li { --c: inherit; }
.ar-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ar-chips li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border-radius: var(--radius); background: var(--white); box-shadow: inset 0 0 0 1px var(--line); font-weight: 500; font-size: .95rem; }
.ar-chips li::before { content: ""; width: 14px; height: 8px; border-radius: var(--radius); background: var(--c); }

.ar-photo { margin: 0; position: relative; aspect-ratio: 4 / 3; border-radius: 28px; overflow: hidden; background: var(--paper-2); }
.ar-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.ar-sol:hover .ar-photo img { transform: scale(1.03); }

/* Contract: il percorso chiavi in mano */
.ar-contract-grid { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (min-width: 960px) { .ar-contract-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: clamp(64px, 8vw, 128px); } .ar-contract .ar-tx { padding-right: clamp(0px, 2vw, 32px); } }
.ar-contract h2 { font-size: clamp(2.2rem, .3rem + 3.6vw, 4.4rem); line-height: 1.1; }
.ar-contract-grid > * { min-width: 0; }
.ar-flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: fl; }
@media (min-width: 640px) { .ar-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.ar-flow li { position: relative; display: grid; gap: 6px; padding: 22px 22px 24px; border-radius: 22px; background: var(--ink-2); }
.ar-flow li::before { content: ""; width: 30px; height: 10px; border-radius: var(--radius); background: var(--c); margin-bottom: 8px; }
.ar-flow b { font-family: var(--f-display); font-weight: 500; font-size: 1.25rem; letter-spacing: -.02em; }
.ar-flow span { color: var(--muted-ink); }

@media (prefers-reduced-motion: reduce) { .ar-photo img { transition: none; } }

/* =====================================================================
   CHI SIAMO — 1992 → oggi
   ===================================================================== */
.cs-hero { overflow: hidden; }
.cs-hero .wrap { gap: 28px; }
.cs-years {
  font-family: var(--f-display); font-weight: 600; letter-spacing: -.06em; line-height: .82;
  font-size: clamp(4.4rem, 15vw, 13rem); display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 .12em;
  font-variant-numeric: tabular-nums; margin-top: 8px; white-space: nowrap;
}
.cs-years .dash { display: inline-block; width: .55em; height: .2em; border-radius: var(--radius); background: linear-gradient(90deg, var(--orange) 0 25%, var(--yellow) 25% 50%, var(--green) 50% 75%, var(--blue) 75%); transform: translateY(-.28em); }
.cs-years .now { color: var(--orange); }
.cs-sub { display: grid; gap: 20px; }
@media (min-width: 900px) { .cs-sub { grid-template-columns: 7fr 5fr; align-items: end; } }
.cs-sub .lead { color: var(--muted); }
.cs-count { font-size: var(--step-1); color: var(--muted); }
.cs-count b { color: var(--ink); font-family: var(--f-display); font-weight: 500; }

/* Linea del tempo con anno fisso */
.tl { display: grid; gap: 32px; }
@media (min-width: 900px) { .tl { grid-template-columns: 5fr 7fr; gap: 64px; } }
.tl-year { position: sticky; top: 110px; align-self: start; display: none; }
@media (min-width: 900px) { .tl-year { display: block; } }
.tl-year b { display: block; font-family: var(--f-display); font-weight: 600; font-size: clamp(5rem, 12vw, 11rem); line-height: .85; letter-spacing: -.06em; color: var(--paper); font-variant-numeric: tabular-nums; }
.tl-year span { display: block; margin-top: 18px; width: 120px; height: 14px; border-radius: var(--radius); background: var(--c, var(--orange)); transition: background .5s; }
.tl-list { display: grid; gap: 0; border-left: 2px solid #33363f; }
.tl-item { position: relative; padding: 0 0 clamp(40px, 6vw, 72px) clamp(24px, 4vw, 48px); display: grid; gap: 10px; }
.tl-item::before { content: ""; position: absolute; left: -9px; top: .45em; width: 16px; height: 16px; border-radius: 50%; background: var(--ink); box-shadow: inset 0 0 0 3px var(--c); transition: background .4s; }
.tl-item.on::before { background: var(--c); }
.tl-item .y { font-family: var(--f-display); font-size: var(--step-1); color: var(--c); }
.tl-item h3 { font-size: var(--step-2); }
.tl-item p { color: var(--muted-ink); max-width: 52ch; }
.tl-item a { color: var(--paper); font-weight: 600; text-underline-offset: 4px; }
.tl-item a:hover { color: var(--yellow); }

/* Venn delle tre aree */
.venn-wrap { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (min-width: 940px) { .venn-wrap { grid-template-columns: 6fr 5fr; } }
.venn-wrap > * { min-width: 0; }
.venn { width: 100%; max-width: 560px; height: auto; display: block; margin-inline: auto; overflow: visible; }
.venn a circle { mix-blend-mode: multiply; transition: transform .6s var(--ease); transform-box: fill-box; transform-origin: center; }
.venn a:hover circle, .venn a:focus-visible circle { transform: scale(1.05); }
.venn a { outline: none; }
.venn a:focus-visible text { text-decoration: underline; }
.venn text { font-family: var(--f-display); font-size: 21px; fill: var(--ink); font-weight: 500; }
.venn .core { font-family: var(--f-body); font-size: 12.5px; font-weight: 700; }

/* Manifesto dei valori */
.mf { display: grid; gap: clamp(28px, 4vw, 56px); }
@media (min-width: 960px) { .mf { grid-template-columns: 7fr 5fr; align-items: start; } }
.mf-list { display: grid; }
.mf-list button {
  all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 18px;
  font-family: var(--f-display); font-size: clamp(1.4rem, .9rem + 2.2vw, 2.9rem); line-height: 1.1; letter-spacing: -.025em;
  padding-block: 12px; color: var(--paper); transition: color .35s, transform .5s var(--ease);
}
.mf-list button::before { content: ""; flex: none; width: .9em; height: .36em; border-radius: var(--radius); background: var(--c); transition: width .5s var(--ease); }
.mf.js .mf-list button:not([aria-pressed="true"]) { color: #5c616c; }
.mf.js .mf-list button:hover { color: var(--paper); }
.mf-list button[aria-pressed="true"]::before { width: 1.8em; }
.mf-list button:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; border-radius: 6px; }
.mf-list .d { color: var(--muted-ink); padding: 0 0 18px calc(.9em + 18px); max-width: 52ch; }
.mf.js .mf-list .d { display: none; }
.mf-panel { display: none; }
.mf.js .mf-panel { display: grid; gap: 16px; position: sticky; top: 120px; padding: 32px; border-radius: 28px; background: var(--ink-2); }
.mf-panel b { font-family: var(--f-display); font-weight: 500; font-size: var(--step-2); line-height: 1.15; }
.mf-panel p { color: var(--muted-ink); font-size: var(--step-1); line-height: 1.5; }
.mf-panel i { width: 64px; height: 22px; border-radius: var(--radius); background: var(--c, var(--orange)); }
@media (max-width: 959px) { .mf.js .mf-panel { position: static; } }

.cs-strip { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .cs-strip { grid-template-columns: repeat(4, 1fr); } }
.cs-strip a { text-decoration: none; display: grid; gap: 10px; }
.cs-strip img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 18px; transition: transform .6s var(--ease), border-radius .6s var(--ease); }
.cs-strip a:hover img { transform: scale(.97); border-radius: 40px; }
.cs-strip b { font-weight: 600; }

/* =====================================================================
   CASE STUDIES — l'indice
   ===================================================================== */
.ix-top { display: flex; flex-wrap: wrap; gap: 20px; align-items: end; justify-content: space-between; margin-bottom: 28px; }
.ix-filter { display: flex; flex-wrap: wrap; gap: 6px; }
.ix-filter button {
  font: 600 .95rem/1 var(--f-body); padding: 12px 16px; border-radius: var(--radius); border: 0; cursor: pointer;
  background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); display: inline-flex; gap: 8px; align-items: center;
}
.ix-filter button sup { font-size: .72rem; color: var(--muted); top: 0; }
.ix-filter button[aria-pressed="true"] { background: var(--ink); color: var(--paper); box-shadow: none; }
.ix-filter button[aria-pressed="true"] sup { color: var(--muted-ink); }
.ix { border-top: 1.5px solid var(--ink); }
.ix-row {
  --c: var(--orange);
  display: grid; gap: 14px 32px; padding-block: clamp(18px, 2.4vw, 28px); border-bottom: 1px solid var(--line);
  text-decoration: none; position: relative; align-items: center;
}
.ix-row[hidden] { display: none; }
@media (min-width: 900px) { .ix-row { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) 190px; } }
.ix-row .nm { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.7rem, 1rem + 2.6vw, 3.6rem); line-height: 1; letter-spacing: -.035em; display: flex; align-items: center; gap: 0; transition: gap .5s var(--ease), color .3s; }
.ix-row .nm::before { content: ""; width: 0; height: .42em; border-radius: var(--radius); background: var(--c); transition: width .5s var(--ease); flex: none; }
.ix-row:hover .nm, .ix-row:focus-visible .nm { gap: .3em; }
.ix-row:hover .nm::before, .ix-row:focus-visible .nm::before { width: .9em; }
.ix-row p { color: var(--muted); max-width: 46ch; }
.ix-row .sec { font-size: .9rem; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-start; }
@media (min-width: 900px) { .ix-row .sec { justify-content: flex-end; text-align: right; } }
.ix-row .thumb { border-radius: 14px; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
@media (min-width: 900px) and (pointer: fine) { .ix-row .thumb { display: none; } }
.ix-float {
  position: fixed; left: 0; top: 0; z-index: 40; width: 300px; aspect-ratio: 4 / 3; border-radius: 22px; overflow: hidden;
  pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(.7) rotate(-4deg); transition: opacity .3s, transform .45s var(--ease);
  box-shadow: 0 40px 70px -30px rgba(21, 23, 28, .6);
}
.ix-float.on { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-2deg); }
.ix-float img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 899px), (pointer: coarse) { .ix-float { display: none; } }
.ix-empty { padding: 32px 0; color: var(--muted); }

/* =====================================================================
   CONSULENZA — il check-up
   ===================================================================== */
/* Consulenza: fascione scuro con l'indicatore del 99% */
.cn3-gauge { position: relative; width: 100%; max-width: 600px; aspect-ratio: 1; justify-self: center; display: grid; place-items: center; }
.cn3-gauge canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cn3-stat { position: relative; display: grid; justify-items: center; text-align: center; gap: 8px; max-width: 46%; }
.cn3-stat b { font-family: var(--f-display); font-weight: 500; font-size: clamp(3.6rem, 2rem + 6vw, 7.5rem); line-height: .9; letter-spacing: -.06em;
  background: linear-gradient(135deg, #3f9fe0, #79bf3f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cn3-stat b small { font-size: .42em; letter-spacing: -.03em; vertical-align: top; margin-left: .04em; }
.cn3-stat > span { color: var(--muted-ink); font-size: clamp(.82rem, .7rem + .3vw, 1rem); line-height: 1.35; }
@media (max-width: 999px) { .cn3-gauge { max-width: 420px; } }
/* su desktop l'indicatore sta a destra, staccato dal titolo */
.hw-hero.cn3-hero .pg-h1 { font-size: clamp(2.3rem, .9rem + 3.2vw, 4.4rem); max-width: none; }
@media (min-width: 1000px) { .hw-hero.cn3-hero .hw-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); } }
@media (min-width: 1000px) { .cn3-hero .hw-grid { column-gap: clamp(56px, 7vw, 120px); } .cn3-gauge { width: 86%; max-width: 540px; justify-self: end; } }
.big-stat { display: grid; gap: 10px; }
.big-stat b {
  font-family: var(--f-display); font-weight: 600; font-size: clamp(6rem, 22vw, 15rem); line-height: .8; letter-spacing: -.07em;
  color: var(--blue); font-variant-numeric: tabular-nums;
}
.big-stat b small { font-size: .42em; letter-spacing: -.03em; vertical-align: top; margin-left: .04em; }
.big-stat > span { font-size: var(--step-1); line-height: 1.4; max-width: 26ch; font-weight: 500; }

.quiz {
  background: var(--ink); color: var(--paper); border-radius: 36px; padding: clamp(28px, 5vw, 64px);
  display: grid; gap: 28px; position: relative; overflow: hidden; min-height: 420px;
}
.quiz-prog { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; max-width: 360px; }
.quiz-prog i { height: 8px; border-radius: var(--radius); background: #33363f; transition: background .4s; }
.quiz-prog i.on { background: var(--c); }
.quiz-q { display: grid; gap: 20px; align-content: start; }
.quiz-q[hidden] { display: none; }
.quiz-q .n { color: var(--muted-ink); font-size: .95rem; }
.quiz-q h3 { font-size: clamp(1.5rem, 1rem + 2vw, 2.6rem); max-width: 24ch; line-height: 1.12; }
.quiz-a { display: flex; flex-wrap: wrap; gap: 10px; }
.quiz-a button {
  font: 600 1.05rem/1 var(--f-body); padding: 16px 28px; border-radius: var(--radius); border: 0; cursor: pointer;
  background: transparent; color: var(--paper); box-shadow: inset 0 0 0 1.5px #4a4e58; transition: background .3s, color .3s, box-shadow .3s;
}
.quiz-a button:hover { background: var(--paper); color: var(--ink); box-shadow: none; }
.quiz-res { display: grid; gap: 22px; }
.quiz-res[hidden] { display: none; }
.quiz-res h3 { font-size: clamp(1.5rem, 1rem + 2vw, 2.6rem); max-width: 22ch; }
.quiz-res ul { display: grid; gap: 10px; }
.quiz-res li { display: flex; gap: 14px; align-items: baseline; font-size: var(--step-1); }
.quiz-res li::before { content: ""; flex: none; width: 22px; height: 10px; border-radius: var(--radius); background: var(--c, var(--yellow)); transform: translateY(-2px); }
.quiz-res .acts { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.quiz-res .btn { --bg: var(--paper); --fg: var(--ink); }
.quiz-res .btn:hover { --fg: var(--white); }
.quiz-res .again { background: none; border: 0; color: var(--muted-ink); font: 600 1rem var(--f-body); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.quiz-res .again:hover { color: var(--paper); }
.quiz noscript p { color: var(--muted-ink); }

/* Persone | Tecnologia */
.pt { display: grid; gap: 0; }
.pt-head { display: none; }
@media (min-width: 900px) {
  .pt { grid-template-columns: 1fr 1fr; column-gap: 0; }
  .pt-head { display: block; padding-bottom: 18px; border-bottom: 1.5px solid var(--ink); }
  .pt-head h3 { font-size: var(--step-2); display: flex; align-items: center; gap: 14px; }
  .pt-head h3::before { content: ""; width: 34px; height: 14px; border-radius: var(--radius); background: var(--c); }
  .pt > :nth-child(odd) { padding-right: clamp(24px, 4vw, 56px); border-right: 1px solid var(--line); }
  .pt > :nth-child(even) { padding-left: clamp(24px, 4vw, 56px); }
}
.pt-item { padding-block: clamp(22px, 3vw, 34px); border-bottom: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.pt-item h4 { font-size: var(--step-1); line-height: 1.2; display: flex; gap: 12px; align-items: baseline; }
.pt-item h4::before { content: ""; flex: none; width: 18px; height: 8px; border-radius: var(--radius); background: var(--c); transform: translateY(-3px); }
@media (min-width: 900px) { .pt-item h4::before { display: none; } }
.pt-item p { color: var(--muted); max-width: 52ch; }
.pt-item .q { font-family: var(--f-display); font-size: var(--step-2); color: var(--ink); line-height: 1.1; }

/* =====================================================================
   ASSISTENZA — di guardia
   ===================================================================== */
@keyframes beat { from { stroke-dashoffset: 660; } to { stroke-dashoffset: 0; } }
.st { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: #1b1e25; }
.st i { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(121, 191, 63, .6); animation: ping 2.2s infinite; }
.st:nth-child(3) i { animation-delay: .5s; } .st:nth-child(4) i { animation-delay: 1s; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(121, 191, 63, 0); } 100% { box-shadow: 0 0 0 0 rgba(121, 191, 63, 0); } }
.st span { color: var(--paper); }
.st em { font-style: normal; color: var(--muted-ink); font-size: .85rem; }

.perks { display: grid; gap: 0; border-top: 1.5px solid var(--ink); }
@media (min-width: 900px) { .perks { grid-template-columns: repeat(3, 1fr); } .perk + .perk { border-left: 1px solid var(--line); } }
.perk { padding: clamp(24px, 3vw, 36px) clamp(0px, 2vw, 28px) clamp(24px, 3vw, 36px) 0; display: grid; gap: 12px; align-content: start; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .perk + .perk { padding-left: clamp(16px, 2.5vw, 32px); } }
.perk .gl { font-family: var(--f-display); font-size: clamp(3rem, 6vw, 5rem); line-height: .9; color: var(--c); height: 1em; display: flex; align-items: center; }
.perk .gl svg { height: .8em; width: auto; }
.perk h3 { font-size: var(--step-2); }
.perk p { color: var(--muted); }

/* Livelli di protezione */
.lv { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (min-width: 960px) { .lv { grid-template-columns: 5fr 6fr; } }
.lv > * { min-width: 0; }
.lv-ctl button { font: 600 .98rem/1 var(--f-body); padding: 13px 18px; border-radius: var(--radius); border: 0; cursor: pointer; background: transparent; color: var(--ink); }
.lv-ctl button[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.lv-panel { display: grid; gap: 18px; align-content: start; }
.lv-panel + .lv-panel { margin-top: 40px; }
.lv.js .lv-panel + .lv-panel { margin-top: 0; }
.lv-panel[hidden] { display: none; }
.lv-panel h3 { font-size: var(--step-3); }
.lv-panel .sub-l { color: var(--muted); font-size: var(--step-1); }
.lv-panel ul { display: grid; gap: 0; border-top: 1px solid var(--line); }
.lv-panel li { display: flex; justify-content: space-between; gap: 12px; padding-block: 14px; border-bottom: 1px solid var(--line); font-size: var(--step-1); }
.lv-3d { position: relative; width: 100%; max-width: 560px; aspect-ratio: 1 / .92; margin-inline: auto; }
.lv-3d canvas, .as3-shield canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.as3-shield { position: relative; width: 100%; max-width: 600px; aspect-ratio: 1; justify-self: center; }
@media (max-width: 999px) { .as3-shield { max-width: 420px; } }
/* bundle su fondo scuro */
.as3-levels .lv-ctl { background: none; box-shadow: none; padding: 0; margin-bottom: 40px; }
.as3-levels .lv-ctl button { color: var(--paper); }
.as3-levels .lv-ctl button[aria-selected="true"] { background: var(--paper); color: var(--ink); }
.as3-levels .lv-panel .sub-l { color: var(--muted-ink); }
.as3-levels .lv-panel ul, .as3-levels .lv-panel li { border-color: rgba(255, 255, 255, .12); }
.as3-levels .lv-panel li em { color: var(--ink); }
.as3-levels .lv-panel .btn { --bg: var(--paper); --fg: var(--ink); }
/* altezza fissa: i tre pannelli stanno nella stessa cella, quelli non scelti restano invisibili ma occupano spazio */
.as3-levels .lv > div:last-child { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; }
.as3-levels .lv-ctl { grid-row: 1; justify-self: start; }
.as3-levels .lv-panel { grid-row: 2; grid-column: 1; }
.as3-levels .lv-panel + .lv-panel { margin-top: 0; }
.as3-levels .lv-panel[hidden] { display: grid; visibility: hidden; }
.lv-panel li em { font-style: normal; font-size: .8rem; font-weight: 700; padding: 5px 10px; border-radius: var(--radius); background: var(--c, var(--yellow)); align-self: center; white-space: nowrap; }
.lv-panel .btn { justify-self: start; }

/* =====================================================================
   BUFFETTI — lo sportello
   ===================================================================== */
.bf-sub { color: var(--muted); font-size: var(--step-1); line-height: 1.5; max-width: 60ch; }
.bf-chip { justify-self: start; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .8rem; padding: 6px 12px 6px 9px; border-radius: var(--radius); background: color-mix(in oklab, var(--c) 16%, var(--white)); color: var(--ink); }
.bf-chip::before { content: ""; width: 12px; height: 7px; border-radius: var(--radius); background: var(--c); }

/* E-commerce: un solo invito e il percorso ordine -> ritiro */
.bf-order { padding-block: clamp(40px, 6vw, 88px) 0; }
.bf-order-box {
  position: relative; overflow: hidden; isolation: isolate; border-radius: 36px; color: var(--white);
  padding: clamp(32px, 5vw, 72px); display: grid; gap: clamp(32px, 4vw, 64px); align-items: center;
  background: radial-gradient(60% 90% at 88% 10%, #3a63d6 0%, rgba(58, 99, 214, 0) 60%), linear-gradient(135deg, #1d3c8f, #132a68);
}
@media (min-width: 980px) { .bf-order-box { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
.bf-order-word {
  position: absolute; z-index: -1; right: -2%; bottom: -8%; margin: 0; pointer-events: none; white-space: nowrap;
  font-family: var(--f-display); font-weight: 600; font-size: clamp(6rem, 16vw, 15rem); line-height: .8; letter-spacing: -.05em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .1); animation: bf-drift 18s ease-in-out infinite alternate;
}
@keyframes bf-drift { to { transform: translateX(-6%); } }
.bf-order-copy { display: grid; gap: 20px; align-content: start; }
.bf-order-copy h2 { font-size: clamp(2.2rem, 1.2rem + 3vw, 4.2rem); line-height: 1.05; max-width: 13ch; }
.bf-order-copy p { color: #d5def6; font-size: var(--step-1); line-height: 1.5; max-width: 46ch; }
.bf-order-copy .btn { justify-self: start; }
.bf-tag { justify-self: start; font-weight: 600; font-size: .85rem; padding: 7px 14px; border-radius: var(--radius); background: rgba(255, 255, 255, .12); }
.bf-flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; position: relative; }
.bf-flow::before { content: ""; position: absolute; left: 46px; top: 42px; bottom: 42px; border-left: 2px dashed rgba(255, 255, 255, .25); }
.bf-flow::after { content: ""; position: absolute; left: 41px; top: 42px; width: 12px; height: 12px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 6px rgba(246, 181, 46, .25); animation: bf-run 6s var(--ease) infinite; }
@keyframes bf-run { 0%, 8% { top: 36px; background: var(--yellow); } 38%, 46% { top: calc(50% - 6px); background: var(--green); } 76%, 100% { top: calc(100% - 48px); background: var(--orange); } }
.bf-flow li { position: relative; display: grid; grid-template-columns: 64px 1fr; column-gap: 16px; align-items: center; padding: 14px 20px 14px 14px; border-radius: 22px; background: rgba(255, 255, 255, .06); animation: bf-lit 6s var(--ease) infinite; }
.bf-flow li:nth-child(2) { animation-delay: 2s; } .bf-flow li:nth-child(3) { animation-delay: 4s; }
.bf-flow .ic { grid-row: span 2; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .1); position: relative; z-index: 1; transition: background .4s; }
.bf-flow .ic svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bf-flow b { font-family: var(--f-display); font-weight: 500; font-size: 1.15rem; letter-spacing: -.02em; }
.bf-flow li > span:last-child { color: #c7d3f3; font-size: .95rem; }
@keyframes bf-lit { 0%, 34%, 100% { background: rgba(255, 255, 255, .06); transform: none; } 6%, 28% { background: rgba(255, 255, 255, .14); transform: translateX(8px); } }
.bf-flow li .ic { animation: bf-ic 6s var(--ease) infinite; animation-delay: inherit; }
@keyframes bf-ic { 0%, 34%, 100% { background: rgba(255, 255, 255, .1); color: var(--white); } 6%, 28% { background: var(--c); color: var(--ink); } }

/* Servizi digitali: i biglietti dello sportello */
.tickets { display: grid; gap: 22px; grid-template-columns: 1fr; padding-block: 10px; }
@media (min-width: 860px) { .tickets { grid-template-columns: repeat(3, 1fr); } }
.ticket {
  --c: var(--blue);
  position: relative; background: var(--white); border-radius: 14px; display: grid; grid-template-rows: auto 1fr;
  filter: drop-shadow(0 18px 24px rgba(29, 60, 143, .18));
  -webkit-mask: radial-gradient(circle 12px at 0 92px, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 12px at 100% 92px, transparent 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 12px at 0 92px, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 12px at 100% 92px, transparent 98%, #000) right / 51% 100% no-repeat;
  transition: transform .5s var(--ease);
}
@media (min-width: 860px) {
  .ticket:nth-child(1) { transform: rotate(-2.5deg); } .ticket:nth-child(2) { transform: translateY(14px) rotate(1.5deg); } .ticket:nth-child(3) { transform: rotate(-1deg); }
  .ticket:hover { transform: translateY(-8px) rotate(0); }
}
.ticket .top { height: 92px; background: var(--c); color: var(--ink); display: flex; align-items: center; justify-content: space-between; padding: 0 24px; border-bottom: 2px dashed rgba(255, 255, 255, .8); }
.ticket .top b { font-family: var(--f-display); font-weight: 600; font-size: 2.4rem; letter-spacing: -.04em; }
.ticket .top span { font-size: .78rem; font-weight: 600; text-align: right; line-height: 1.2; }
.ticket .bd { padding: 24px; display: grid; gap: 8px; align-content: start; }
.ticket h3 { font-size: var(--step-1); }
.ticket p { color: var(--muted); }

/* Volantini: spaziature più strette */
.bf-flyers { padding-block: clamp(40px, 5vw, 72px); }
.bf-flyers .sw3-head { margin-bottom: clamp(12px, 2vw, 24px); }
@media (min-width: 960px) { .bf-flyers .fan { padding: 18px 0 0; } }

/* Chiusura: orari dello store */
.bf-hours { display: grid; gap: 10px; max-width: 520px; padding: 20px 24px; border-radius: 22px; background: rgba(255, 255, 255, .45); }
.bf-hours h3 { font-size: 1.05rem; }
.bf-hours dl { margin: 0; display: grid; }
.bf-hours dl > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 20px; padding: 10px 0; border-top: 1px solid rgba(21, 23, 28, .15); }
.bf-hours dt { font-weight: 600; }
.bf-hours dd { margin: 0; font-variant-numeric: tabular-nums; }
.bf-hours dd span { opacity: .5; padding-inline: 4px; }

/* Sugli scaffali: mosaico di foto del negozio */
.bf-shelf { display: grid; gap: 16px; }
@media (min-width: 900px) { .bf-shelf { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); grid-template-rows: repeat(2, minmax(260px, 1fr)); } .bf-cat--big { grid-row: span 2; } }
.bf-cat { position: relative; overflow: hidden; isolation: isolate; border-radius: 28px; min-height: 300px; color: var(--white); display: flex; align-items: flex-end; }
.bf-cat--big { min-height: 420px; }
.bf-cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.4s var(--ease); }
.bf-cat::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 18, 40, 0) 35%, rgba(10, 18, 40, .78) 100%); transition: opacity .5s; }
.bf-cat:hover img { transform: scale(1.06); }
.bf-cat .tx { display: grid; gap: 8px; padding: clamp(20px, 2.5vw, 32px); transform: translateY(6px); transition: transform .6s var(--ease); }
.bf-cat:hover .tx { transform: none; }
.bf-cat .bf-chip { background: var(--white); }
.bf-cat h3 { font-size: var(--step-2); line-height: 1.1; }
.bf-cat p { color: rgba(255, 255, 255, .85); max-width: 42ch; }
@media (prefers-reduced-motion: reduce) {
  .bf-order-word, .bf-flow::after, .bf-flow li, .bf-flow li .ic { animation: none; }
}

@keyframes swing { 20% { transform: rotate(4deg); } 45% { transform: rotate(-3deg); } 70% { transform: rotate(1.5deg); } 100% { transform: rotate(0); } }

.fan { display: grid; gap: 20px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 960px) {
  .fan { display: flex; justify-content: center; padding: 30px 0 10px; gap: 0; }
  .fan .flyer { width: 250px; margin-inline: -22px; transition: transform .6s var(--ease); position: relative; }
  .fan .flyer:nth-child(1) { transform: rotate(-9deg) translateY(24px); }
  .fan .flyer:nth-child(2) { transform: rotate(-3deg); z-index: 1; }
  .fan .flyer:nth-child(3) { transform: rotate(3deg); z-index: 1; }
  .fan .flyer:nth-child(4) { transform: rotate(9deg) translateY(24px); }
  .fan .flyer:hover, .fan .flyer:focus-visible { transform: translateY(-26px) rotate(0) scale(1.04); z-index: 3; }
  .fan .flyer:hover .cover { transform: none; }
  .fan .flyer b, .fan .flyer span { padding-inline: 8px; }
}

/* =====================================================================
   CONTATTI — la frase
   ===================================================================== */
/* Contatti: sezioni con più respiro */
.pg .ct-hero { padding-bottom: clamp(40px, 5vw, 72px); }
.ct-form-sec { padding-top: clamp(32px, 4vw, 56px); padding-bottom: clamp(36px, 4vw, 56px); }
.ct-map-sec { padding-top: 0; padding-bottom: clamp(72px, 9vw, 128px); }
.ct-grid .ml { display: grid; gap: clamp(24px, 2.5vw, 36px); }
.ct-map { border-radius: 28px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); background: #e7eae3; aspect-ratio: 16 / 7; min-height: 340px; }
.ct-map iframe { display: block; width: 100%; height: 100%; border: 0; }
@media (max-width: 640px) { .ct-map { aspect-ratio: 4 / 5; } }

.ct-grid { display: grid; gap: clamp(48px, 6vw, 96px); }
@media (min-width: 1040px) { .ct-grid { grid-template-columns: 7fr 4fr; } }
.ct-grid > * { min-width: 0; }
.ml { display: grid; gap: 28px; }
.ml-text { font-family: var(--f-display); font-size: clamp(1.35rem, .9rem + 1.8vw, 2.4rem); line-height: 1.9; letter-spacing: -.02em; margin: 0; }
.ml-text input, .ml-text select {
  font: inherit; letter-spacing: inherit; color: var(--orange); background: transparent; border: 0; border-bottom: 2.5px solid var(--ink);
  border-radius: 0; padding: 0 .1em; margin: 0 .1em; line-height: 1.2; min-width: 5ch; max-width: 100%;
  field-sizing: content; transition: border-color .25s, background .25s; vertical-align: baseline;
}
.ml-text input::placeholder { color: #a5aab2; }
.ml-text select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: .7em; background: linear-gradient(45deg, transparent 50%, var(--ink) 50%) right .15em center / .3em .3em no-repeat, linear-gradient(-45deg, transparent 50%, var(--ink) 50%) right 0 center / .3em .3em no-repeat; background-size: .3em .3em; background-position: calc(100% - .32em) 55%, calc(100% - .02em) 55%; width: auto; }
.ml-text select option { font-family: var(--f-body); font-size: 1rem; color: var(--ink); }
.ml-text input:focus, .ml-text select:focus { outline: none; border-color: var(--orange); background: rgba(236, 90, 36, .07); }
.ml-text input:user-invalid { border-color: #c4361b; }
.ml .field textarea { min-height: 120px; }
.ml-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.lines { display: grid; }
.line { display: grid; gap: 4px; padding-block: 18px; border-bottom: 1px solid var(--line); text-decoration: none; }
.line:first-child { border-top: 1.5px solid var(--ink); }
.line small { color: var(--muted); font-size: .9rem; }
.line b { font-family: var(--f-display); font-weight: 500; font-size: var(--step-2); letter-spacing: -.02em; overflow-wrap: anywhere; }
a.line:hover b { color: var(--orange); }
.street { display: block; border-radius: 28px; overflow: hidden; text-decoration: none; background: #e7eae3; box-shadow: 0 0 0 1px var(--line); position: relative; }
.street svg { display: block; width: 100%; height: auto; }
.street .pin { transition: transform .5s var(--ease); transform-box: fill-box; transform-origin: bottom center; }
.street:hover .pin { transform: translateY(-8px); }
.street .go { position: absolute; right: 18px; bottom: 18px; }

/* =====================================================================
   LAVORA CON NOI — il badge
   ===================================================================== */
.jb3-hero .pg-h1 { max-width: 11ch; }
.jb3-note { color: var(--muted-ink); max-width: 52ch; }
.jb3-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.jb3-mail { color: var(--paper); text-decoration: none; font-weight: 600; border-bottom: 2px solid var(--orange); padding-bottom: 2px; overflow-wrap: anywhere; }
.jb3-mail:hover { color: var(--yellow); }
.jb3-badge { position: relative; width: 100%; max-width: 600px; aspect-ratio: 4 / 5; justify-self: center; cursor: pointer; }
.jb3-badge canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
@media (min-width: 1000px) { .jb3-hero .hw-grid { column-gap: clamp(56px, 7vw, 120px); } .jb3-badge { width: 100%; justify-self: end; } }
@media (max-width: 999px) { .jb3-badge { max-width: 360px; } }

/* Schermi piccoli: niente desktop simulato troppo affollato */
@media (max-width: 560px) {
  .win { width: 70%; }
  .sw-dock .clk { display: none; }
}

/* Consulenza: matrice consulenza / formazione / assistenza */
.mx { border-top: 1.5px solid var(--ink); }
.mx-row { display: grid; gap: 14px 40px; padding-block: clamp(26px, 3.5vw, 44px); border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .mx-row { grid-template-columns: minmax(0, .9fr) minmax(0, 2fr); } }
.mx-row > h3 { font-size: var(--step-2); display: flex; flex-direction: column; gap: 14px; }
.mx-row > h3::after { content: ""; width: 56px; height: 18px; border-radius: var(--radius); background: var(--c); }
.mx-row article { display: grid; gap: 10px; align-content: start; }
.mx-row h4 { font-size: var(--step-1); line-height: 1.2; }
.mx-row p { color: var(--muted); max-width: 62ch; }
.mx-row .st-q { font-family: var(--f-display); font-size: var(--step-2); line-height: 1; color: var(--ink); }
@media (min-width: 960px) {
  .fan { padding-bottom: 80px; }
  .fan .flyer > b, .fan .flyer > span { position: absolute; left: 4px; right: 4px; opacity: 0; transition: opacity .3s; pointer-events: none; }
  .fan .flyer > b { top: calc(100% + 10px); }
  .fan .flyer > span { top: calc(100% + 36px); }
  .fan .flyer:hover > b, .fan .flyer:hover > span, .fan .flyer:focus-visible > b, .fan .flyer:focus-visible > span { opacity: 1; }
}
@supports not (field-sizing: content) { .ml-text input { width: 10ch; } .ml-text #c-name { width: 12ch; } }
.line b.sm { font-size: var(--step-1); }
@media (max-width: 600px) {
  .sw-switch, .lv-ctl { border-radius: 22px; display: grid; justify-self: stretch; }
  .sw-switch button, .lv-ctl button { text-align: left; border-radius: 16px; }
  .lv-ctl { display: grid; }
}

/* Chi siamo: Venn su fondo scuro, manifesto dei valori su fondo chiaro */
.dark .venn a circle { mix-blend-mode: normal; }
.dark .venn a:nth-of-type(2) circle, .dark .venn a:nth-of-type(3) circle { mix-blend-mode: lighten; }
.pg-sec:not(.dark) .mf-list button { color: var(--ink); }
.pg-sec:not(.dark) .mf.js .mf-list button:not([aria-pressed="true"]) { color: #a3a9b2; }
.pg-sec:not(.dark) .mf.js .mf-list button:hover { color: var(--ink); }
.pg-sec:not(.dark) .mf-list .d { color: var(--muted); }
.pg-sec:not(.dark) .mf.js .mf-panel { background: var(--white); box-shadow: 0 0 0 1px var(--line); }
.pg-sec:not(.dark) .mf-panel p { color: var(--muted); }

/* Chi siamo: schema delle tre aree, versione su fondo scuro */
.venn2 { max-width: 600px; }
.dark .venn2 .v-area circle.v-c, .venn2 .v-area circle.v-c {
  fill: var(--c); fill-opacity: .14; stroke: var(--c); stroke-width: 2.5; mix-blend-mode: screen; transform: none;
  stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s var(--ease), fill-opacity .45s;
}
.venn2 .v-area:nth-of-type(2) circle.v-c { transition-delay: .15s, 0s; }
.venn2 .v-area:nth-of-type(3) circle.v-c { transition-delay: .3s, 0s; }
.venn2.pre:not(.in) .v-area circle.v-c { stroke-dashoffset: 1; fill-opacity: 0; }
.venn2 .v-t { font-family: var(--f-display); font-size: 22px; font-weight: 500; fill: var(--paper); }
.venn2 .v-s { font: 500 12.5px var(--f-body); fill: var(--muted-ink); }
.venn2 .v-x text { font: 600 12px var(--f-body); fill: var(--paper); opacity: .8; }
.venn2 .v-core rect { fill: var(--paper); }
.venn2 .v-core text { font: 700 12.5px var(--f-body); fill: var(--ink); }
.venn2 .v-x, .venn2 .v-core { transition: opacity .6s .9s; }
.venn2.pre:not(.in) .v-x, .venn2.pre:not(.in) .v-core { opacity: 0; }

/* Chi siamo: i sei principi come pannelli che si aprono */
.vals { display: flex; gap: 10px; height: clamp(420px, 38vw, 500px); }
.val {
  flex: 1 1 0; min-width: 0; position: relative; overflow: hidden; border-radius: 26px;
  background: var(--white); box-shadow: inset 0 0 0 1px var(--line);
  transition: flex-grow .7s var(--ease), background .5s, box-shadow .5s;
}
.val::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px; background: var(--c); transition: height .5s var(--ease); }
.val h3 { margin: 0; height: 100%; }
.val button {
  all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: flex-end; justify-content: center;
  width: 100%; height: 100%; padding: 28px 0 24px;
}
.val button span {
  font-family: var(--f-display); font-weight: 500; font-size: clamp(1rem, .8rem + .5vw, 1.25rem); line-height: 1.15; letter-spacing: -.02em;
  writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; color: var(--ink);
}
.val button:focus-visible { outline: 3px solid var(--blue); outline-offset: -6px; border-radius: 26px; }
.val p {
  position: absolute; left: clamp(24px, 3vw, 40px); right: clamp(24px, 3vw, 40px); bottom: clamp(24px, 3vw, 40px);
  margin: 0; max-width: 40ch; font-size: var(--step-1); line-height: 1.5; color: var(--fg);
  opacity: 0; transform: translateY(14px); transition: opacity .3s, transform .5s var(--ease); pointer-events: none;
}
.val.on { flex-grow: 5; background: var(--c); box-shadow: none; }
.val.on::before { height: 0; }
.val.on::after {
  content: ""; position: absolute; right: -90px; top: -90px; width: 300px; height: 300px; border-radius: 50%;
  border: 46px solid rgba(255, 255, 255, .18); pointer-events: none;
}
.val.on button { align-items: flex-start; justify-content: flex-start; padding: clamp(28px, 3vw, 40px); cursor: default; }
.val.on button span {
  writing-mode: horizontal-tb; transform: none; white-space: normal; max-width: 13ch; color: var(--fg);
  font-size: clamp(1.8rem, 1.1rem + 2vw, 3rem); line-height: 1.02; letter-spacing: -.035em;
}
.val.on p { opacity: 1; transform: none; transition-delay: .25s; }
.val:not(.on):hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.val:not(.on):hover::before { height: 18px; }

@media (max-width: 819px) {
  .vals { flex-direction: column; height: auto; gap: 8px; }
  .val { flex: none; border-radius: 20px; }
  .val::before { top: 0; bottom: 0; right: auto; width: 8px; height: auto; }
  .val button { padding: 20px 20px 20px 28px; justify-content: flex-start; align-items: center; min-height: 64px; }
  .val button span { writing-mode: horizontal-tb; transform: none; white-space: normal; }
  .val p { position: static; display: none; padding: 0 24px 26px; }
  .val.on button { padding: 26px 24px 12px; }
  .val.on button span { font-size: 1.7rem; }
  .val.on p { display: block; }
  .val.on::after { width: 180px; height: 180px; border-width: 30px; right: -60px; top: -60px; }
}
.venn2 .v-t { font-size: 19px; }
.venn2 .v-core text { font: 600 12px var(--f-body); fill: var(--paper); letter-spacing: .01em; }
.venn2 .v-core text { font: 600 16px var(--f-body); fill: var(--white); paint-order: stroke; stroke: rgba(21, 23, 28, .55); stroke-width: 4px; stroke-linejoin: round; }

/* =====================================================================
   CASE STUDIES v2 — pellicola di foto e griglia di progetti
   ===================================================================== */
.cs2-hero { background: var(--ink); color: var(--paper); padding-bottom: clamp(40px, 5vw, 72px) !important; overflow: hidden; }
.cs2-hero .crumbs { color: var(--muted-ink); }
.cs2-head { display: grid; gap: 22px; }
.cs2-hero .pg-h1 { font-size: clamp(3rem, 1.4rem + 7vw, 8rem); max-width: none; letter-spacing: -.045em; }
.cs2-hero .lead { color: var(--muted-ink); max-width: 46ch; }
.cs2-legend { display: flex; flex-wrap: wrap; gap: 8px; }
.cs2-legend li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--radius); background: var(--ink-2); font-size: .9rem; }
.cs2-legend li::before { content: ""; width: 18px; height: 8px; border-radius: var(--radius); background: var(--c); }
.cs2-reel { display: grid; gap: 14px; margin-top: clamp(36px, 5vw, 64px); transform: rotate(-2deg); margin-inline: -40px; }
.cs2-track { display: flex; width: max-content; animation: cs-reel 70s linear infinite; }
.cs2-track--rev { animation-direction: reverse; animation-duration: 85s; }
.cs2-reel:hover .cs2-track { animation-play-state: paused; }
.cs-strip-row { display: flex; gap: 14px; padding-right: 14px; }
.cs-strip-row li { flex: none; }
.cs-strip-row img { height: clamp(150px, 15vw, 230px); width: auto; border-radius: 18px; display: block; }
.cs2-track--rev .cs-strip-row img { height: clamp(120px, 12vw, 180px); }
@keyframes cs-reel { to { transform: translateX(-50%); } }

.cs-grid {
  display: grid; gap: 16px; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: clamp(250px, 23vw, 330px);
  grid-template-areas:
    "a a a a a a a b b b b b"
    "a a a a a a a c c c c c"
    "d d d d d d e e e e e e";
}
.cs-a { grid-area: a; } .cs-b { grid-area: b; } .cs-c { grid-area: c; } .cs-d { grid-area: d; }
.cs-e { grid-area: e; }
.cs-card { position: relative; overflow: hidden; border-radius: 24px; text-decoration: none; color: var(--white); background: var(--ink); isolation: isolate; }
.cs-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), opacity .7s; z-index: -2; }
.cs-img--alt { opacity: 0; }
.cs-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(10, 12, 16, .88) 0%, rgba(10, 12, 16, .35) 45%, rgba(10, 12, 16, 0) 70%); transition: opacity .5s; }
.cs-card:hover .cs-img, .cs-card:focus-visible .cs-img { transform: scale(1.06); }
.cs-card:hover .cs-img--alt, .cs-card:focus-visible .cs-img--alt { opacity: 1; }
.cs-meta { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(20px, 2.4vw, 32px); display: grid; gap: 8px; }
.cs-sec { font-size: .85rem; color: rgba(255, 255, 255, .78); }
.cs-meta h2 { font-size: clamp(1.35rem, 1rem + 1.1vw, 2.1rem); line-height: 1.05; }
.cs-a .cs-meta h2 { font-size: clamp(1.8rem, 1rem + 2.6vw, 3.6rem); }
.cs-meta p { color: rgba(255, 255, 255, .86); max-width: 44ch; font-size: .98rem; line-height: 1.45; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .6s var(--ease), opacity .4s; }
.cs-card:hover .cs-meta p, .cs-card:focus-visible .cs-meta p { max-height: 6em; opacity: 1; }
.cs-a .cs-meta p { max-height: 6em; opacity: 1; }
.cs-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.cs-tags li { font-size: .78rem; font-weight: 600; padding: 5px 10px; border-radius: var(--radius); background: var(--c); color: var(--ink); }
.cs-go {
  position: absolute; top: 18px; right: 18px; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--white); color: var(--ink); font-size: 1.1rem; transform: scale(.8); opacity: 0; transition: transform .5s var(--ease), opacity .3s;
}
.cs-card:hover .cs-go, .cs-card:focus-visible .cs-go { transform: scale(1) rotate(-45deg); opacity: 1; }
.cs-card:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

@media (max-width: 1023px) {
  .cs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 300px; grid-template-areas: "a a" "b c" "d e"; }
}
@media (max-width: 639px) {
  .cs-grid { grid-template-columns: 1fr; grid-auto-rows: 320px; grid-template-areas: "a" "b" "c" "d" "e"; gap: 12px; }
  .cs-meta p { max-height: none; opacity: 1; }
  .cs-go { opacity: 1; transform: none; width: 40px; height: 40px; }
  .cs2-reel { margin-inline: -16px; }
}
@media (hover: none) { .cs-meta p { max-height: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .cs2-track { animation: none; } }
/* Case studies: fascione iniziale, spaziature */
.cs2-hero { padding-top: clamp(40px, 5vw, 72px) !important; padding-bottom: clamp(56px, 6vw, 96px) !important; }
.cs2-head { gap: clamp(28px, 4vw, 56px); }
.cs2-row { display: grid; gap: 28px; align-items: end; }
@media (min-width: 960px) { .cs2-row { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); } }
.cs2-hero .pg-h1 { line-height: .9; margin: 0; }
.cs2-side { display: grid; gap: 20px; padding-bottom: .4em; }
.cs2-side .lead { margin: 0; max-width: 44ch; font-size: clamp(1.05rem, .95rem + .4vw, 1.3rem); }
.cs2-reel { margin-top: clamp(48px, 6vw, 88px); transform: rotate(-1.5deg); padding-block: 12px; }
.cs2-side .lead { text-wrap: pretty; }

/* =====================================================================
   SOFTWARE v2 — due porte (Azienda, Retail), Suite Aladino, retail
   ===================================================================== */
.sw2-top { display: grid; gap: clamp(28px, 4vw, 56px); }
.sw2-intro { display: grid; gap: 24px; align-items: end; }
@media (min-width: 960px) { .sw2-intro { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); } }
.sw2-intro .pg-h1 { margin: 0; max-width: 12ch; }
.sw2-intro .lead { margin: 0; max-width: 44ch; text-wrap: pretty; }
.sw2-doors { display: grid; gap: 16px; }
@media (min-width: 820px) { .sw2-doors { grid-template-columns: 1fr 1fr; } }
.sw2-door {
  position: relative; overflow: hidden; isolation: isolate; border-radius: 30px; padding: clamp(26px, 3vw, 40px);
  min-height: clamp(260px, 26vw, 340px); display: flex; flex-direction: column; gap: 10px; text-decoration: none;
  transition: transform .6s var(--ease);
}
.sw2-door--az { background: var(--ink); color: var(--paper); }
.sw2-door--rt { background: var(--orange); color: var(--ink); }
.sw2-door::before {
  content: ""; position: absolute; z-index: -1; right: -70px; bottom: -110px; width: 320px; height: 320px; border-radius: 50%;
  border: 56px solid rgba(255, 255, 255, .08); transition: transform .8s var(--ease);
}
.sw2-door--rt::before { border-color: rgba(255, 255, 255, .22); }
.sw2-door:hover { transform: translateY(-6px); }
.sw2-door:hover::before { transform: scale(1.15) rotate(20deg); }
.sw2-door__k { font-size: .95rem; opacity: .75; }
.sw2-door b { font-family: var(--f-display); font-weight: 500; font-size: clamp(2.6rem, 1.6rem + 4vw, 5.2rem); line-height: .95; letter-spacing: -.045em; }
.sw2-door ul { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; max-width: 30em; }
.sw2-door li { font-size: .9rem; font-weight: 500; padding: 7px 13px; border-radius: var(--radius); background: rgba(255, 255, 255, .1); }
.sw2-door--rt li { background: rgba(21, 23, 28, .1); }
.sw2-door__go {
  position: absolute; top: clamp(22px, 2.6vw, 34px); right: clamp(22px, 2.6vw, 34px); width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.2rem; box-shadow: inset 0 0 0 1.5px currentColor; transition: transform .5s var(--ease), background .3s;
}
.sw2-door:hover .sw2-door__go { transform: translateY(5px); background: rgba(255, 255, 255, .14); }

.sw2-sechead { display: grid; gap: 18px; margin-bottom: clamp(32px, 4vw, 56px); max-width: 820px; }
.sw2-sechead h2 { font-size: var(--step-3); }
.sw2-tag { justify-self: start; display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: var(--radius); font-weight: 600; background: var(--ink-2); color: var(--paper); }
.sw2-tag::before { content: ""; width: 22px; height: 10px; border-radius: var(--radius); background: var(--c); }
.sw2-rt .sw2-tag { background: var(--white); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
#azienda, #retail, #aladino { scroll-margin-top: 90px; }

/* Suite Aladino */
.aladino { background: var(--ink-2); border-radius: 32px; padding: clamp(24px, 4vw, 48px); display: grid; gap: clamp(28px, 4vw, 44px); }
.aladino__intro { display: grid; gap: 24px; align-items: center; }
@media (min-width: 820px) { .aladino__intro { grid-template-columns: auto minmax(0, 1fr); gap: 40px; } }
.aladino__hero { width: clamp(110px, 12vw, 160px); height: auto; }
.aladino__intro h3 { font-size: var(--step-3); margin-bottom: 10px; }
.aladino__intro p { color: var(--muted-ink); font-size: var(--step-1); line-height: 1.5; max-width: 56ch; }
.aladino__list { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.aladino__list li {
  display: grid; gap: 10px; align-content: start; padding: 14px 14px 20px; border-radius: 22px; background: var(--ink);
  box-shadow: inset 0 0 0 1px #33363f; transition: transform .5s var(--ease), box-shadow .3s;
}
.aladino__list li:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1.5px var(--c); }
.aladino__logo { display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 14px; background: var(--white); padding: 16px; }
.aladino__logo img { max-width: 72%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.aladino__list b { font-family: var(--f-display); font-weight: 500; font-size: 1.1rem; display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.aladino__list b::before { content: ""; width: 14px; height: 8px; border-radius: var(--radius); background: var(--c); flex: none; }
.aladino__list span:last-child { color: var(--muted-ink); font-size: .95rem; line-height: 1.45; }

/* Le altre soluzioni per l'azienda */
.sw2-rows { margin-top: clamp(40px, 5vw, 72px); border-top: 1px solid #33363f; }
.sw2-row { display: grid; gap: 14px 40px; padding-block: clamp(26px, 3vw, 40px); border-bottom: 1px solid #33363f; }
@media (min-width: 900px) { .sw2-row { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.sw2-row h3 { font-size: var(--step-2); display: flex; gap: 14px; align-items: baseline; }
.sw2-row h3::before { content: ""; flex: none; width: 34px; height: 14px; border-radius: var(--radius); background: var(--c); transform: translateY(-3px); }
.sw2-row p { color: var(--muted-ink); max-width: 56ch; }
.sw2-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.sw2-chips li { font-size: .88rem; padding: 6px 12px; border-radius: var(--radius); background: var(--ink-2); color: var(--paper); }

/* Retail */
.sw2-rtgrid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .sw2-rtgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .sw2-rtgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sw2-rtcard {
  display: flex; flex-direction: column; gap: 10px; padding: 12px 12px 24px; border-radius: 26px; background: var(--white);
  box-shadow: 0 0 0 1px var(--line); text-decoration: none; transition: transform .5s var(--ease), box-shadow .3s;
}
.sw2-rtcard:hover { transform: translateY(-6px); box-shadow: 0 0 0 1.5px var(--c), 0 26px 40px -30px rgba(21, 23, 28, .5); }
.sw2-rtcard h3 { font-size: var(--step-1); padding: 10px 12px 0; }
.sw2-rtcard p { color: var(--muted); padding: 0 12px; font-size: .98rem; }
.sw2-vis {
  height: 180px; border-radius: 18px; background: color-mix(in oklab, var(--c) 22%, var(--paper)); display: grid; place-items: center; padding: 20px;
  font-size: .82rem; overflow: hidden;
}
.sw2-vis .win-body { width: 100%; max-width: 260px; background: var(--white); border-radius: 12px; box-shadow: 0 14px 30px -18px rgba(21, 23, 28, .45); min-height: 0; }
.sw2-vis .v-cal { grid-template-columns: repeat(7, 1fr); }
.sw2-vis--logo { background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.sw2-vis--logo img { max-height: 120px; width: auto; }
.aladino__logo img { height: 80%; max-height: 110px; max-width: 80%; width: auto; }
@media (max-width: 639px) {
  .aladino__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .aladino__list li { padding: 10px 10px 16px; border-radius: 18px; }
  .aladino__list b { font-size: .98rem; }
  .aladino__list span:last-child { font-size: .88rem; }
}

/* =====================================================================
   SOFTWARE v3 — hero orbitale, Aladino a scorrimento, schede animate
   ===================================================================== */
@property --ac { syntax: "<color>"; inherits: true; initial-value: #7fb52a; }

.sw3-hero { background: var(--ink); color: var(--paper); position: relative; overflow: hidden; isolation: isolate; min-height: calc(100svh - 110px); display: grid; align-items: center; }
.sw3-hero .crumbs { color: var(--muted-ink); }
.sw3-glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.sw3-glow i { position: absolute; width: 46vw; height: 46vw; border-radius: 50%; filter: blur(90px); opacity: .28; animation: sw3-drift 18s ease-in-out infinite alternate; }
.sw3-glow i:nth-child(1) { background: var(--orange); left: -12vw; top: -18vw; }
.sw3-glow i:nth-child(2) { background: var(--blue); right: -14vw; top: 10vw; animation-delay: -6s; }
.sw3-glow i:nth-child(3) { background: var(--green); left: 30vw; bottom: -30vw; animation-delay: -12s; opacity: .18; }
@keyframes sw3-drift { to { transform: translate(6vw, 4vw) scale(1.15); } }
.sw3-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1000px) { .sw3-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); } }
.sw3-copy { display: grid; gap: 24px; }
.sw3-hero .pg-h1 { font-size: clamp(2.8rem, 1.4rem + 4.8vw, 6.2rem); max-width: 11ch; }
.sw3-hero .lead { color: var(--muted-ink); max-width: 46ch; }
.sw3-jump { display: flex; flex-wrap: wrap; gap: 10px; }
.sw3-jump .btn:not(.btn--ghost) { --bg: var(--paper); --fg: var(--ink); }
.sw3-jump .btn:not(.btn--ghost):hover { --fg: var(--white); }
.sw3-orbit { position: relative; aspect-ratio: 1; width: min(100%, 540px); justify-self: center; }
.sw3-ring { position: absolute; inset: 6%; border-radius: 50%; border: 1.5px dashed rgba(255, 255, 255, .14); animation: sw3-spin 60s linear infinite; }
.sw3-ring--2 { inset: 24%; border-style: solid; border-color: rgba(255, 255, 255, .08); animation-duration: 40s; animation-direction: reverse; }
@keyframes sw3-spin { to { transform: rotate(360deg); } }
.sw3-orbit .o { position: absolute; width: 22%; height: auto; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .45)); animation: sw3-float 6s ease-in-out infinite; }
.sw3-orbit .o0 { width: 38%; left: 31%; top: 33%; animation-duration: 7s; }
.sw3-orbit .o1 { left: 4%; top: 10%; animation-delay: -1s; }
.sw3-orbit .o2 { right: 2%; top: 16%; animation-delay: -2.5s; }
.sw3-orbit .o3 { right: 8%; bottom: 4%; animation-delay: -4s; }
.sw3-orbit .o4 { left: 2%; bottom: 12%; animation-delay: -5s; }
@keyframes sw3-float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-14px) rotate(-3deg); } }
@media (max-width: 999px) { .sw3-orbit { width: min(100%, 360px); order: -1; } .sw3-hero { min-height: 0; } }

/* Aladino: sezione fissata che scorre tra i cinque prodotti */
.aln { position: relative; height: calc(var(--n) * 90vh + 10vh); background: #0e1014; color: var(--paper); }
.aln-stage { position: sticky; top: 0; height: 100vh; overflow: hidden; display: grid; align-items: center; isolation: isolate; }
.aln-bg { position: absolute; inset: 0; z-index: -2; background: radial-gradient(60% 70% at 72% 50%, color-mix(in oklab, var(--ac) 38%, transparent), transparent 70%); transition: --ac .9s ease; }
.aln-word {
  position: absolute; z-index: -1; left: 0; bottom: 2vh; margin: 0; white-space: nowrap; pointer-events: none;
  font-family: var(--f-display); font-weight: 600; font-size: 26vw; line-height: .8; letter-spacing: -.05em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .07); transform: translateX(var(--wx, 0)); will-change: transform;
}
.aln-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 820px) { .aln-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 80px); } }
.aln-copy { display: grid; gap: 18px; align-content: center; }
.aln-kicker { justify-self: start; font-weight: 600; font-size: .9rem; padding: 7px 14px; border-radius: var(--radius); background: rgba(255, 255, 255, .08); }
.aln h2 { font-size: clamp(2.6rem, 1.4rem + 4vw, 5.4rem); line-height: .95; }
.aln-intro { color: var(--muted-ink); max-width: 44ch; font-size: var(--step-1); line-height: 1.5; }
.aln-list { display: grid; gap: 2px; margin-top: 10px; }
.aln-list button {
  all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 8px 0;
  font-family: var(--f-display); font-weight: 500; font-size: clamp(1.15rem, .9rem + .8vw, 1.6rem); letter-spacing: -.02em; color: #5f646e; transition: color .4s;
}
.aln-list button:hover { color: var(--paper); }
.aln-list button:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; border-radius: 8px; }
.aln-dot { width: 14px; height: 14px; border-radius: var(--radius); background: #3a3d46; transition: width .5s var(--ease), background .4s; flex: none; }
.aln-list li.on button { color: var(--paper); }
.aln-list li.on .aln-dot { width: 40px; background: var(--c); }
.aln-m { display: none; }
.aln-prog { height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .1); max-width: 320px; overflow: hidden; }
.aln-prog i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: var(--ac); }
.aln-show { position: relative; height: min(72vh, 600px); }
.aln-logos { position: absolute; inset: 0 0 26% 0; animation: sw3-float 7s ease-in-out infinite; }
.aln-logos img {
  position: absolute; left: 50%; top: 50%; width: auto; height: auto; max-width: 74%; max-height: 92%;
  transform: translate(-50%, -40%) scale(.75) rotate(-10deg); opacity: 0; filter: drop-shadow(0 40px 60px rgba(0, 0, 0, .5));
  transition: opacity .7s var(--ease), transform 1s var(--ease);
}
.aln-logos img.on { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0); }
.aln-logos img.out { opacity: 0; transform: translate(-50%, -62%) scale(.85) rotate(8deg); }
.aln-cap { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 8px; text-align: center; justify-items: center; }
.aln-cap b { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.6rem, 1rem + 1.6vw, 2.6rem); letter-spacing: -.03em; }
.aln-cap p { color: var(--muted-ink); max-width: 42ch; }
.aln-cap.swap { animation: aln-cap .6s var(--ease); }
@keyframes aln-cap { from { opacity: 0; transform: translateY(14px); } }

/* Su telefono e con movimento ridotto: elenco statico */
@media (max-width: 819px), (prefers-reduced-motion: reduce) {
  .aln { height: auto; }
  .aln-stage { position: relative; height: auto; padding-block: clamp(64px, 12vw, 120px); }
  .aln-show, .aln-prog { display: none; }
  .aln-word { font-size: 40vw; bottom: auto; top: 4vh; }
  .aln-list { gap: 12px; }
  .aln-list li { border-radius: 20px; background: rgba(255, 255, 255, .05); padding: 14px 16px; }
  .aln-list button { color: var(--paper); cursor: default; }
  .aln-list .aln-dot { width: 30px; background: var(--c); }
  .aln-m { display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: center; margin-top: 8px; }
  .aln-m img { width: 72px; height: auto; }
  .aln-m p { color: var(--muted-ink); font-size: .95rem; }
}

/* Azienda: le altre soluzioni con piccole animazioni */
.sw3-head { display: grid; gap: 18px; margin-bottom: clamp(32px, 4vw, 56px); max-width: 820px; }
.sw3-head h2 { font-size: var(--step-3); }
.sw3-tag { justify-self: start; display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: var(--radius); font-weight: 600; background: var(--white); box-shadow: 0 0 0 1px var(--line); }
.sw3-tag::before { content: ""; width: 22px; height: 10px; border-radius: var(--radius); background: var(--c); }
.dark .sw3-tag { background: var(--ink-2); box-shadow: none; color: var(--paper); }
#azienda, #retail { scroll-margin-top: 80px; }
.sw3-cards { display: grid; gap: 16px; }
@media (min-width: 900px) { .sw3-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sw3-card { background: var(--white); border-radius: 28px; padding: 12px 12px 28px; box-shadow: 0 0 0 1px var(--line); display: grid; gap: 12px; align-content: start; transition: transform .5s var(--ease); }
.sw3-card:hover { transform: translateY(-6px); }
.sw3-card h3 { font-size: var(--step-2); padding: 8px 14px 0; }
.sw3-card p { color: var(--muted); padding: 0 14px; }
.sw3-vis { height: 210px; border-radius: 20px; background: color-mix(in oklab, var(--c) 18%, var(--paper)); position: relative; overflow: hidden; display: grid; place-items: center; color: var(--c); }
.vis-flow { display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 8px 6px; padding: 22px; }
.vis-flow span { background: var(--white); color: var(--ink); font-size: .82rem; font-weight: 600; padding: 9px 12px; border-radius: 12px; box-shadow: 0 10px 20px -14px rgba(21, 23, 28, .5); }
.vis-flow i { width: 22px; height: 2px; background: color-mix(in oklab, var(--c) 50%, transparent); position: relative; align-self: center; overflow: hidden; }
.vis-flow i::after { content: ""; position: absolute; top: -2px; left: -6px; width: 6px; height: 6px; border-radius: 50%; background: var(--c); animation: sw3-pulse 1.6s linear infinite; }
.vis-flow i:nth-of-type(2)::after { animation-delay: .5s; }
.vis-flow i:nth-of-type(3)::after { animation-delay: 1s; }
@keyframes sw3-pulse { to { left: 100%; } }
.vis-cloud svg { width: 150px; height: auto; }
.vis-cloud .up { position: absolute; left: 50%; top: 54%; transform: translateX(-50%); display: flex; gap: 10px; }
.vis-cloud .up i { width: 8px; height: 22px; border-radius: 4px; background: var(--c); animation: sw3-up 1.8s ease-in-out infinite; }
.vis-cloud .up i:nth-child(2) { animation-delay: .3s; }
.vis-cloud .up i:nth-child(3) { animation-delay: .6s; }
@keyframes sw3-up { 0% { transform: translateY(20px); opacity: 0; } 40% { opacity: 1; } 100% { transform: translateY(-30px); opacity: 0; } }
.vis-shield svg { width: 92px; height: auto; position: relative; z-index: 1; }
.vis-shield .scan { position: absolute; left: 0; right: 0; height: 40%; background: linear-gradient(to bottom, transparent, color-mix(in oklab, var(--c) 35%, transparent), transparent); animation: sw3-scan 2.6s ease-in-out infinite; }
@keyframes sw3-scan { 0% { top: -40%; } 100% { top: 100%; } }

/* Retail su fondo scuro */
.sw3-rtgrid { display: grid; gap: 16px; }
@media (min-width: 700px) { .sw3-rtgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .sw3-rtgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sw3-rtcard { background: var(--ink-2); border-radius: 26px; padding: 12px 12px 24px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--paper); transition: transform .5s var(--ease), box-shadow .3s; }
.sw3-rtcard:hover { transform: translateY(-6px); box-shadow: 0 0 0 1.5px var(--c); }
.sw3-rtcard h3 { font-size: var(--step-1); padding: 10px 12px 0; }
.sw3-rtcard p { color: var(--muted-ink); padding: 0 12px; font-size: .98rem; }
.sw3-rtvis { height: 180px; border-radius: 18px; background: color-mix(in oklab, var(--c) 30%, var(--ink)); display: grid; place-items: center; padding: 20px; font-size: .82rem; overflow: hidden; }
.sw3-rtvis .win-body { width: 100%; max-width: 250px; background: var(--white); color: var(--ink); border-radius: 12px; box-shadow: 0 18px 30px -16px rgba(0, 0, 0, .6); min-height: 0; }
.sw3-rtvis .v-cal { grid-template-columns: repeat(7, 1fr); }
.sw3-rtvis--logo img { max-height: 130px; width: auto; filter: drop-shadow(0 20px 26px rgba(0, 0, 0, .45)); animation: sw3-float 6s ease-in-out infinite; }
.tk-anim .row { animation: sw3-row 4.5s ease-in-out infinite both; }
.tk-anim .row:nth-child(2) { animation-delay: .4s; }
.tk-anim .row:nth-child(3) { animation-delay: .8s; }
@keyframes sw3-row { 0% { opacity: 0; transform: translateX(-10px); } 12%, 80% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.cal-anim i.on, .cal-anim i.on2 { animation: sw3-blink 3s ease-in-out infinite; }
.cal-anim i:nth-child(3n).on { animation-delay: .6s; }
.cal-anim i:nth-child(4n) { animation-delay: 1.2s; }
@keyframes sw3-blink { 50% { opacity: .35; } }
.st-anim .row i { animation: sw3-bar 4s ease-in-out infinite; }
.st-anim .row:nth-child(2) i { animation-delay: .5s; }
.st-anim .row:nth-child(3) i { animation-delay: 1s; }
@keyframes sw3-bar { 0%, 100% { clip-path: inset(0 0 0 0 round 99px); } 50% { clip-path: inset(0 30% 0 0 round 99px); } }
.aln-list { list-style: none; padding: 0; margin: 10px 0 0; }
.vis-flow { display: grid; grid-template-columns: repeat(2, auto); gap: 12px 14px; justify-content: center; align-content: center; }
.vis-flow i { display: none; }
.vis-flow span { text-align: center; animation: sw3-lit 4s ease-in-out infinite; }
.vis-flow span:nth-of-type(2) { animation-delay: 1s; }
.vis-flow span:nth-of-type(4) { animation-delay: 2s; }
.vis-flow span:nth-of-type(3) { animation-delay: 3s; }
@keyframes sw3-lit { 0%, 30%, 100% { background: var(--white); color: var(--ink); } 10%, 22% { background: var(--c); color: var(--ink); } }
@media (max-width: 999px) { .sw3-orbit { order: 0; width: min(100%, 320px); } }

/* =====================================================================
   SOFTWARE v4 — prima schermata con finestra di gestionale animata,
   animazioni delle schede azienda e retail
   ===================================================================== */
.sw3-hero .pg-h1 { font-size: clamp(2.6rem, 1.2rem + 3.8vw, 5rem); max-width: 12ch; }
@media (min-width: 1000px) { .sw3-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }

.sw4-app { position: relative; width: 100%; max-width: 640px; justify-self: end; padding: 30px 0 40px; }
.sw4-win {
  background: var(--paper); color: var(--ink); border-radius: 20px; overflow: hidden;
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .08);
  transform: perspective(1400px) rotateY(-9deg) rotateX(4deg); transform-origin: 60% 50%;
  transition: transform 1s var(--ease); animation: sw4-in 1.2s var(--ease) both .3s;
}
.sw4-app:hover .sw4-win { transform: perspective(1400px) rotateY(0) rotateX(0); }
@keyframes sw4-in { from { opacity: 0; transform: perspective(1400px) rotateY(-24deg) rotateX(8deg) translateY(40px); } }
.sw4-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: var(--white); border-bottom: 1px solid var(--line); font-size: .82rem; font-weight: 600; }
.sw4-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.sw4-bar i:nth-child(1) { background: var(--orange); } .sw4-bar i:nth-child(2) { background: var(--yellow); } .sw4-bar i:nth-child(3) { background: var(--green); }
.sw4-bar span { margin-left: 10px; }
.sw4-body { display: grid; grid-template-columns: 128px 1fr; min-height: 330px; }
.sw4-side { background: var(--paper-2); padding: 16px 10px; display: grid; gap: 4px; align-content: start; font-size: .8rem; }
.sw4-side b { font-weight: 500; padding: 8px 10px; border-radius: 9px; color: var(--muted); animation: sw4-nav 10s steps(1) infinite; }
.sw4-side b.on { background: var(--ink); color: var(--paper); animation: none; }
.sw4-main { padding: 18px; display: grid; gap: 14px; align-content: start; }
.sw4-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sw4-kpis div { background: var(--white); border-radius: 12px; padding: 10px 12px; box-shadow: 0 0 0 1px var(--line); display: grid; gap: 8px; }
.sw4-kpis small { font-size: .72rem; color: var(--muted); }
.sw4-kpis .k { height: 12px; border-radius: 6px; background: var(--ink); width: 70%; transform-origin: left; animation: sw4-grow 5s var(--ease) infinite; }
.sw4-kpis div:nth-child(2) .k { width: 52%; background: var(--orange); animation-delay: .4s; }
.sw4-kpis div:nth-child(3) .k { width: 84%; background: var(--blue); animation-delay: .8s; }
.sw4-chart { height: 130px; display: grid; grid-template-columns: repeat(10, 1fr); gap: 8px; align-items: end; padding: 12px; background: var(--white); border-radius: 12px; box-shadow: 0 0 0 1px var(--line); }
.sw4-chart i { height: var(--h); border-radius: 6px 6px 3px 3px; background: var(--ink); transform-origin: bottom; animation: sw4-bar 5s var(--ease) infinite; }
.sw4-chart i:nth-child(odd) { background: var(--orange); }
.sw4-chart i:nth-child(2) { animation-delay: .1s; } .sw4-chart i:nth-child(3) { animation-delay: .2s; } .sw4-chart i:nth-child(4) { animation-delay: .3s; }
.sw4-chart i:nth-child(5) { animation-delay: .4s; } .sw4-chart i:nth-child(6) { animation-delay: .5s; } .sw4-chart i:nth-child(7) { animation-delay: .6s; }
.sw4-chart i:nth-child(8) { animation-delay: .7s; } .sw4-chart i:nth-child(9) { animation-delay: .8s; } .sw4-chart i:nth-child(10) { animation-delay: .9s; }
.sw4-rows { display: grid; gap: 8px; }
.sw4-rows span { height: 10px; border-radius: 5px; background: var(--paper-2); }
.sw4-rows span:nth-child(2) { width: 82%; } .sw4-rows span:nth-child(3) { width: 64%; }
@keyframes sw4-bar { 0% { transform: scaleY(.15); } 30%, 80% { transform: scaleY(1); } 100% { transform: scaleY(.15); } }
@keyframes sw4-grow { 0% { transform: scaleX(.1); } 30%, 80% { transform: scaleX(1); } 100% { transform: scaleX(.1); } }
.sw4-toast {
  position: absolute; display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px;
  background: var(--white); color: var(--ink); font-size: .85rem; font-weight: 600; white-space: nowrap;
  box-shadow: 0 24px 40px -18px rgba(0, 0, 0, .6); opacity: 0; animation: sw4-toast 9s var(--ease) infinite;
}
.sw4-toast i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px color-mix(in oklab, var(--c) 25%, transparent); }
.sw4-toast.t1 { left: -28px; top: 34%; }
.sw4-toast.t2 { right: -18px; top: 8px; animation-delay: 3s; }
.sw4-toast.t3 { right: 24px; bottom: 6px; animation-delay: 6s; }
@keyframes sw4-toast { 0% { opacity: 0; transform: translateY(14px) scale(.96); } 5%, 28% { opacity: 1; transform: none; } 33%, 100% { opacity: 0; transform: translateY(-8px); } }
@media (max-width: 999px) { .sw4-app { justify-self: stretch; max-width: none; } .sw4-win { transform: none; } }
@media (max-width: 560px) {
  .sw4-body { grid-template-columns: 1fr; min-height: 0; }
  .sw4-side { display: none; }
  .sw4-toast.t1 { left: 8px; } .sw4-toast.t2 { right: 8px; }
  .sw4-chart { height: 100px; }
}

/* Gestionali: la fattura che si compila e viene inviata */
.vis-doc .doc { width: 190px; background: var(--white); border-radius: 12px; padding: 16px; display: grid; gap: 9px; box-shadow: 0 18px 30px -18px rgba(21, 23, 28, .5); color: var(--ink); font-size: .8rem; }
.vis-doc .doc b { font-weight: 700; }
.vis-doc .ln { height: 8px; border-radius: 4px; background: var(--paper-2); transform-origin: left; animation: sw4-write 5s var(--ease) infinite; }
.vis-doc .ln:nth-of-type(2) { animation-delay: .35s; }
.vis-doc .ln.s { width: 60%; animation-delay: .7s; }
.vis-doc .tot { display: flex; justify-content: space-between; border-top: 1.5px solid var(--ink); padding-top: 8px; font-weight: 600; }
.vis-doc .tot em { font-style: normal; animation: sw4-fade 5s var(--ease) infinite; }
.vis-doc .stamp {
  position: absolute; right: 18px; bottom: 18px; padding: 7px 12px; border-radius: var(--radius); background: var(--c); color: var(--ink);
  font-size: .76rem; font-weight: 700; animation: sw4-stamp 5s var(--ease) infinite;
}
@keyframes sw4-write { 0% { transform: scaleX(0); } 20%, 90% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
@keyframes sw4-fade { 0%, 25% { opacity: 0; } 35%, 90% { opacity: 1; } 100% { opacity: 0; } }
@keyframes sw4-stamp { 0%, 40% { opacity: 0; transform: scale(1.4) rotate(-8deg); } 48%, 88% { opacity: 1; transform: scale(1) rotate(-4deg); } 100% { opacity: 0; } }

/* Retail: stesse schede della parte azienda, su fondo scuro */
.sw3-cards--dark .sw3-card { background: var(--ink-2); box-shadow: none; }
.sw3-cards--dark .sw3-card p { color: var(--muted-ink); }
.sw3-cards--dark .sw3-vis { background: color-mix(in oklab, var(--c) 26%, var(--ink)); }

/* Ristoranti: la comanda che esce dalla stampante */
.vis-print .printer { position: absolute; left: 50%; top: 36%; width: 130px; height: 54px; margin-left: -65px; border-radius: 14px; background: var(--white); box-shadow: 0 18px 30px -16px rgba(0, 0, 0, .5); z-index: 2; }
.vis-print .slot { position: absolute; left: 22px; right: 22px; bottom: 14px; height: 6px; border-radius: 3px; background: var(--ink); }
.vis-print .paper {
  position: absolute; left: 50%; top: calc(36% + 40px); width: 92px; margin-left: -46px; height: 96px; background: var(--paper); border-radius: 0 0 6px 6px;
  display: grid; gap: 7px; align-content: start; padding: 14px 12px; z-index: 1; transform-origin: top; animation: sw4-print 4s var(--ease) infinite;
  -webkit-mask: linear-gradient(#000 88%, transparent); mask: linear-gradient(#000 88%, transparent);
}
.vis-print .paper i { height: 6px; border-radius: 3px; background: color-mix(in oklab, var(--c) 60%, var(--ink)); }
.vis-print .paper i.s { width: 55%; }
@keyframes sw4-print { 0% { transform: scaleY(0); } 45%, 85% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* Booking: il giorno scelto e la conferma */
.vis-book .cal { position: relative; display: grid; grid-template-columns: repeat(7, 22px); gap: 6px; padding: 14px; background: var(--white); border-radius: 14px; box-shadow: 0 18px 30px -16px rgba(0, 0, 0, .5); }
.vis-book .cal i { height: 22px; border-radius: 6px; background: var(--paper-2); }
.vis-book .pick { position: absolute; left: 14px; top: 14px; width: 22px; height: 22px; border-radius: 6px; background: var(--c); animation: sw4-pick 6s var(--ease) infinite; }
@keyframes sw4-pick { 0% { transform: translate(0, 0); } 20% { transform: translate(84px, 0); } 40% { transform: translate(84px, 28px); } 60%, 100% { transform: translate(140px, 28px); } }
.vis-book .ok { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 7px 12px; border-radius: var(--radius); background: var(--c); color: var(--ink); font-size: .76rem; font-weight: 700; animation: sw4-ok 6s var(--ease) infinite; }
@keyframes sw4-ok { 0%, 58% { opacity: 0; transform: translate(-50%, 10px); } 66%, 92% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; } }

/* Magazzino: il codice a barre letto dal laser */
.vis-scan .code { width: 170px; height: 74px; border-radius: 10px; background-color: var(--white); background-image: repeating-linear-gradient(90deg, var(--ink) 0 3px, transparent 3px 6px, var(--ink) 6px 7px, transparent 7px 11px, var(--ink) 11px 15px, transparent 15px 17px); background-clip: content-box; padding: 14px 16px; box-shadow: 0 18px 30px -16px rgba(0, 0, 0, .5); }
.vis-scan .laser { position: absolute; left: 50%; width: 200px; margin-left: -100px; height: 2px; background: #ff3b30; box-shadow: 0 0 12px 2px rgba(255, 59, 48, .7); top: 50%; animation: sw4-laser 2.4s ease-in-out infinite; }
@keyframes sw4-laser { 0%, 100% { transform: translateY(-30px); } 50% { transform: translateY(30px); } }
.vis-scan .plus { position: absolute; right: 16px; top: 16px; padding: 6px 11px; border-radius: var(--radius); background: var(--c); color: var(--ink); font-size: .76rem; font-weight: 700; animation: sw4-plus 2.4s ease-in-out infinite; }
@keyframes sw4-plus { 0%, 40% { opacity: 0; transform: translateY(6px); } 55%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-6px); } }

/* =====================================================================
   SOFTWARE v5 — sfera di particelle nella prima schermata,
   icona a strati per i gestionali
   ===================================================================== */
.sw5-orb { position: relative; width: 100%; max-width: 600px; aspect-ratio: 1; justify-self: center; }
.sw5-orb canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sw5-chip {
  position: absolute; display: inline-flex; align-items: center; gap: 9px; padding: 10px 15px; border-radius: var(--radius);
  background: rgba(21, 23, 28, .72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); color: var(--paper); font-size: .85rem; font-weight: 600; white-space: nowrap;
  animation: sw3-float 7s ease-in-out infinite;
}
.sw5-chip i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px color-mix(in oklab, var(--c) 30%, transparent); }
.sw5-chip.c1 { left: 2%; top: 18%; }
.sw5-chip.c2 { right: 0; top: 46%; animation-delay: -2.5s; }
.sw5-chip.c3 { left: 10%; bottom: 10%; animation-delay: -5s; }
@media (max-width: 999px) { .sw5-orb { max-width: 420px; } }
@media (max-width: 560px) { .sw5-chip { font-size: .78rem; padding: 8px 12px; } .sw5-chip.c2 { right: 2%; } }

/* Gestionali: tre strati che si separano e si ricompongono */
.vis-stack svg { width: 130px; height: auto; overflow: visible; }
.vis-stack .ly path { stroke: var(--white); stroke-width: 2; stroke-linejoin: round; }
.vis-stack .ly1 path { fill: var(--c); }
.vis-stack .ly2 path { fill: color-mix(in oklab, var(--c) 70%, var(--ink)); }
.vis-stack .ly3 path { fill: color-mix(in oklab, var(--c) 45%, var(--ink)); }
.vis-stack .ly1 { animation: sw5-ly1 4s var(--ease) infinite; }
.vis-stack .ly3 { animation: sw5-ly3 4s var(--ease) infinite; }
@keyframes sw5-ly1 { 0%, 100% { transform: translateY(6px); } 45%, 60% { transform: translateY(-14px); } }
@keyframes sw5-ly3 { 0%, 100% { transform: translateY(-6px); } 45%, 60% { transform: translateY(12px); } }
.vis-stack svg { width: 150px; }

/* Retail: icone uniche animate, nello stile della card Gestionali */
.vis-cloche svg, .vis-calendar svg, .vis-box svg { width: 150px; height: auto; overflow: visible; }
.vis-cloche .lid path, .vis-cloche .plate, .vis-box path, .vis-calendar .cal-back, .vis-calendar .cal-top { stroke: var(--white); stroke-width: 2; stroke-linejoin: round; }
/* Ristoranti: la cloche si solleva e lascia uscire il vapore */
.vis-cloche .lid path { fill: var(--c); }
.vis-cloche .plate { fill: color-mix(in oklab, var(--c) 55%, var(--ink)); }
.vis-cloche .lid { transform-box: fill-box; transform-origin: 85% 100%; animation: sw6-lid 4s var(--ease) infinite; }
.vis-cloche .steam path { fill: none; stroke: color-mix(in oklab, var(--c) 40%, var(--white)); stroke-width: 3; stroke-linecap: round; opacity: 0; animation: sw6-steam 4s ease-in-out infinite; }
.vis-cloche .steam path:nth-child(2) { animation-delay: .15s; }
.vis-cloche .steam path:nth-child(3) { animation-delay: .3s; }
@keyframes sw6-lid { 0%, 25%, 100% { transform: translate(0, 0) rotate(0); } 45%, 75% { transform: translate(8px, -22px) rotate(14deg); } }
@keyframes sw6-steam { 0%, 35% { opacity: 0; transform: translateY(6px); } 50%, 70% { opacity: 1; transform: translateY(-4px); } 85%, 100% { opacity: 0; transform: translateY(-12px); } }
/* Booking: il calendario che conferma con una spunta */
.vis-calendar .cal-back { fill: var(--white); }
.vis-calendar .cal-top { fill: var(--c); }
.vis-calendar .ring { fill: none; stroke: color-mix(in oklab, var(--c) 55%, var(--ink)); stroke-width: 6; stroke-linecap: round; }
.vis-calendar .tick { fill: none; stroke: var(--c); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: sw6-tick 3.6s var(--ease) infinite; }
.vis-calendar svg { animation: sw6-bump 3.6s var(--ease) infinite; }
@keyframes sw6-tick { 0%, 15% { stroke-dashoffset: 1; } 40%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes sw6-bump { 0%, 38%, 100% { transform: scale(1); } 46% { transform: scale(1.06); } 54% { transform: scale(1); } }
/* Magazzino: la scatola che si apre e si richiude */
.vis-box .bx-l { fill: color-mix(in oklab, var(--c) 70%, var(--ink)); }
.vis-box .bx-r { fill: color-mix(in oklab, var(--c) 45%, var(--ink)); }
.vis-box .bx-lid path { fill: var(--c); }
.vis-box .bx-lid { animation: sw6-boxlid 4s var(--ease) infinite; }
.vis-box svg { animation: sw3-float 4s ease-in-out infinite; }
@keyframes sw6-boxlid { 0%, 20%, 100% { transform: translateY(0); } 45%, 70% { transform: translateY(-20px); } }

/* Software: loghi delle software house partner */
.logo-wall--real { list-style: none; margin: 0; padding: 0; }
.logo-wall--real li { aspect-ratio: 2 / 1; border-radius: 16px; background: var(--white); box-shadow: 0 0 0 1px var(--line); display: grid; place-items: center; padding: 14px 18px; transition: transform .4s var(--ease), box-shadow .3s; }
.logo-wall--real li:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--line), 0 18px 30px -20px rgba(21, 23, 28, .45); }
.logo-wall--real img { max-width: 100%; max-height: 64px; width: auto; height: auto; object-fit: contain; }
.logo-wall--real { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important; }
.logo-wall--real li { min-width: 0; }
.logo-wall--real img { max-width: 88%; }
.logo-wall--real { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)) !important; }
.logo-wall--real li { aspect-ratio: 5 / 2; }
.logo-wall--real img { max-height: 70px; }
.logo-wall--real { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)) !important; gap: 14px; }
.logo-wall--real li { aspect-ratio: 2 / 1; padding: 18px 22px; }
.logo-wall--real img { max-height: 92px; max-width: 92%; }

/* Hardware: apertura con modello 3D, come la pagina Software */
.hw-hero { position: relative; overflow: hidden; isolation: isolate; min-height: calc(100svh - 110px); display: grid; align-items: center; }
.hw-hero .hw-grid { align-items: center; }
@media (min-width: 1000px) { .hw-hero .hw-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.hw-hero .pg-h1 { font-size: clamp(2.6rem, 1.2rem + 3.8vw, 5rem); max-width: 12ch; }
.hw3-model { position: relative; width: 100%; max-width: 640px; aspect-ratio: 1.08; justify-self: center; }
.hw3-model canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
@media (max-width: 999px) { .hw-hero { min-height: 0; } .hw3-model { max-width: 440px; } }

/* =====================================================================
   HARDWARE — catalogo 3D a scorrimento (fondo scuro, come la Suite Aladino)
   ===================================================================== */
@property --ac { syntax: "<color>"; inherits: true; initial-value: #ec5a24; }
.hw3d { position: relative; height: calc(var(--n) * 80vh + 20vh); background: #0e1014; color: var(--paper); }
.hw3d-stage { position: sticky; top: 0; height: 100vh; overflow: hidden; display: grid; align-items: center; isolation: isolate; }
.hw3d-bg {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(55% 65% at 68% 55%, color-mix(in oklab, var(--ac) 34%, transparent), transparent 70%),
    radial-gradient(30% 30% at 68% 82%, color-mix(in oklab, var(--ac) 22%, transparent), transparent 70%);
  transition: --ac .9s ease;
}
.hw3d-bg::after {
  content: ""; position: absolute; inset: 0; opacity: .6;
  background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask: radial-gradient(55% 60% at 65% 55%, #000, transparent); mask: radial-gradient(55% 60% at 65% 55%, #000, transparent);
}
.hw3d-word {
  position: absolute; z-index: -1; left: 0; bottom: 2vh; margin: 0; white-space: nowrap; pointer-events: none;
  font-family: var(--f-display); font-weight: 600; font-size: 22vw; line-height: .8; letter-spacing: -.05em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .06);
  transform: translateX(calc(var(--p, 0) * -18vw));
}
.hw3d-grid { display: grid; gap: 24px; align-items: center; height: 100%; padding-block: 96px 48px; }
@media (min-width: 900px) { .hw3d-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 3vw, 48px); } }
.hw3d-side { display: grid; gap: 18px; align-content: center; }
.hw3d-kicker { justify-self: start; font-weight: 600; font-size: .88rem; padding: 7px 14px 7px 10px; border-radius: var(--radius); background: rgba(255, 255, 255, .08); display: inline-flex; gap: 8px; align-items: center; }
.hw3d-kicker::before { content: ""; width: 18px; height: 8px; border-radius: var(--radius); background: var(--ac); transition: background .6s; }
.hw3d h2 { font-size: clamp(2rem, 1.2rem + 2.4vw, 3.4rem); line-height: 1; max-width: 12ch; }
.hw3d-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 0; border-top: 1px solid rgba(255, 255, 255, .1); }
.hw3d-list li { border-bottom: 1px solid rgba(255, 255, 255, .1); }
.hw3d-list button {
  all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 0;
  font-family: var(--f-display); font-weight: 300; font-size: clamp(1.1rem, .8rem + .7vw, 1.5rem); letter-spacing: -.02em; white-space: nowrap; color: #6c717b; transition: color .3s, padding .5s var(--ease);
}
.hw3d-list button::before { content: ""; flex: none; width: 0; height: 10px; border-radius: var(--radius); background: var(--c); transition: width .5s var(--ease); }
.hw3d-list button:hover { color: var(--paper); }
.hw3d-list button:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
.hw3d-list li.on button { color: var(--paper); font-weight: 340; padding-left: 4px; }
.hw3d-list li.on button::before { width: 30px; }
.hw3d-view { position: relative; height: 100%; min-height: 0; }
.hw3d-view canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hw3d-name { position: absolute; left: 0; bottom: 0; display: grid; gap: 6px; pointer-events: none; }
.hw3d-name b { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.8rem, 1rem + 2.6vw, 3.8rem); line-height: 1; letter-spacing: -.035em; max-width: 14ch; }
.hw3d-name.swap { animation: hw3d-name .7s var(--ease); }
@keyframes hw3d-name { from { opacity: 0; transform: translateY(24px); } }
.hw3d-dots { position: absolute; right: clamp(16px, 2.5vw, 36px); top: 50%; transform: translateY(-50%); display: grid; gap: 10px; }
.hw3d-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .18); transition: height .4s var(--ease), background .4s; }
.hw3d-dots i.on { height: 28px; border-radius: 6px; background: var(--ac); }
.hw3d.no3d .hw3d-view { display: none; }
/* su desktop il nome è già nella lista: niente ripetizione sotto il modello */
@media (min-width: 900px) { .hw3d-name { display: none; } }

@media (max-width: 899px) {
  .hw3d { height: calc(var(--n) * 70vh + 30vh); }
  .hw3d-grid { grid-template-rows: auto 1fr; padding-block: 76px 28px; gap: 8px; }
  .hw3d-side { gap: 10px; }
  .hw3d h2 { font-size: 1.7rem; }
  .hw3d-list { display: none; }
  .hw3d-name b { font-size: 1.6rem; }
  .hw3d-dots { right: 10px; }
  .hw3d-word { font-size: 40vw; bottom: auto; top: 10vh; }
}
@media (max-width: 760px) { .bf-vhero { background: var(--navy); } .bf-vhero .ar-vshade { background: linear-gradient(180deg, var(--navy) 0, rgba(29, 60, 143, 0) 70px); } }

/* Newsletter in versione chiara (Lavora con noi, dopo il fascione scuro) */
.nl-light { background: var(--white); color: var(--ink); }
.nl-light .lead { color: var(--muted); }
.nl-light .nl-row input, .nl-light .nl-row select { border-color: var(--line); color: var(--ink); background: var(--white); }
.nl-light .nl-row input::placeholder { color: var(--muted); }
.nl-light .nl-form .check { color: var(--muted); }
.nl-light .nl-form .check a { color: var(--ink); }
