/* =====================================================================
   SOFTWAREGROUP — foglio di stile unico
   Concetto: una rete neurale blu che attraversa il sito. Bianco e blu del
   logo, più una sola tonalità più scura e una più chiara per sfumature.
   Layout: logo flottante in alto a sinistra, barra strumenti a destra
   (desktop) o in basso (tablet e smartphone). Niente barra in alto.
   ===================================================================== */
:root {
  /* Tavolozza: blu del logo come colore principale, il resto per contrasto e decorazioni */
  --blu: #283890;           /* Egyptian Blue — colore principale */
  --glauco: #7683C2;        /* Glaucous — blu chiaro per linee e dettagli */
  --rosso: #8A0A0D;         /* Blood Red — azioni e accenti */
  --mogano: #2A0606;        /* Rich Mahogany — testo e footer */
  --neve: #FCFCFB;          /* Bright Snow — fondo e bianchi */
  --blu-scuro: #1B2668;     /* ombra del blu per profondità */
  --blu-chiaro: #B9C1E8;    /* glauco schiarito per testo piccolo su blu */
  --ghiaccio: #EEF0F8;      /* fondo delle sezioni chiare */
  --bianco: var(--neve);
  --testo: var(--mogano);
  --testo-2: #5E4B4B;
  --linea: #E2E2EC;
  --su-scuro: rgba(252,252,251,0.78);
  --rgb-blu: 40,56,144;
  --rgb-scuro: 27,38,104;
  --rgb-chiaro: 185,193,232;
  --rgb-accento: 138,10,13;
  --linea-scuro: rgba(var(--rgb-chiaro),0.28);
  --cta: var(--rosso);       /* pulsanti */
  --su-cta: var(--neve);
  --piede: var(--mogano);    /* footer */
  --fondo-scuro: var(--blu); /* sezioni "scure" = blu del logo */
  --glow: rgba(118,131,194,0.45);
  --glow2: rgba(27,38,104,0.75);
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --max: 1280px;
  --ease: cubic-bezier(.2,.8,.2,1);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--bianco); color: var(--testo); font-family: var(--display); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
::selection { background: var(--blu); color: var(--bianco); }
:focus-visible { outline: 3px solid var(--blu-chiaro); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
.mono { font-family: var(--mono); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 80; background: var(--blu); color: var(--bianco); padding: 12px 16px; border-radius: 10px; }

/* Etichetta con "nodo" della rete */
.kicker { font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blu); display: inline-flex; align-items: center; gap: 12px; }
.kicker::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--rosso); box-shadow: 0 0 0 4px rgba(var(--rgb-accento),0.16); flex: none; }
[data-tone="dark"] .kicker::before { background: var(--neve); box-shadow: 0 0 0 4px rgba(252,252,251,0.2); }
.kicker::after { content: ""; width: 40px; height: 1px; background: linear-gradient(90deg, currentColor, transparent); flex: none; }
[data-tone="dark"] .kicker { color: var(--su-scuro); }


/* ---------------------------------------------------------------------
   Tavolozze delle app (stesso stile, colori del software)
   --------------------------------------------------------------------- */
.app-geba  { --blu: #C8232F; --blu-scuro: #1A1012; --blu-chiaro: #F87171; --ghiaccio: #FBEFF0; --linea: #F0DCDE; --testo-2: #6E5A5D;
             --rgb-blu: 200,35,47; --rgb-scuro: 26,16,18; --rgb-chiaro: 248,113,113; --testo: var(--blu-scuro); --linea-scuro: rgba(var(--rgb-chiaro),0.24); --cta: var(--blu); --su-cta: #FCFCFB; --piede: var(--blu-scuro); --fondo-scuro: var(--blu-scuro); --glow: rgba(var(--rgb-blu),0.95); --glow2: rgba(var(--rgb-blu),0.55); --rgb-accento: var(--rgb-blu); --bianco: #FCFCFB; --su-scuro: rgba(255,255,255,0.74); }
.app-fest  { --blu: #1E4D35; --blu-scuro: #111A15; --blu-chiaro: #E9A81B; --ghiaccio: #F3F3EE; --linea: #E2E4DB; --testo-2: #4B5750;
             --rgb-blu: 30,77,53; --rgb-scuro: 17,26,21; --rgb-chiaro: 233,168,27; --testo: var(--blu-scuro); --linea-scuro: rgba(var(--rgb-chiaro),0.24); --cta: var(--blu); --su-cta: #FCFCFB; --piede: var(--blu-scuro); --fondo-scuro: var(--blu-scuro); --glow: rgba(var(--rgb-blu),0.95); --glow2: rgba(var(--rgb-blu),0.55); --rgb-accento: var(--rgb-blu); --bianco: #FCFCFB; --su-scuro: rgba(255,255,255,0.74); }
.app-event { --blu: #5B32E6; --blu-scuro: #140A38; --blu-chiaro: #B6A3FF; --ghiaccio: #F1EDFF; --linea: #E2DBFA; --testo-2: #5E5880;
             --rgb-blu: 91,50,230; --rgb-scuro: 20,10,56; --rgb-chiaro: 182,163,255; --testo: var(--blu-scuro); --linea-scuro: rgba(var(--rgb-chiaro),0.24); --cta: var(--blu); --su-cta: #FCFCFB; --piede: var(--blu-scuro); --fondo-scuro: var(--blu-scuro); --glow: rgba(var(--rgb-blu),0.95); --glow2: rgba(var(--rgb-blu),0.55); --rgb-accento: var(--rgb-blu); --bianco: #FCFCFB; --su-scuro: rgba(255,255,255,0.74); }
.app-fest .ahero h1 em, .app-fest .acta h2 em { color: var(--blu-chiaro); }
.app-fest [data-tone="dark"] .btn { background: var(--blu-chiaro); color: var(--blu-scuro); }
.app-geba .kicker::before, .app-fest .kicker::before, .app-event .kicker::before { background: var(--blu); box-shadow: 0 0 0 4px rgba(var(--rgb-blu),0.16); }
.app-geba [data-tone="dark"] .kicker::before, .app-fest [data-tone="dark"] .kicker::before, .app-event [data-tone="dark"] .kicker::before { background: var(--blu-chiaro); }
.app-fest .abadge b, .app-fest .wordmark i { background: var(--blu-chiaro); }
.app-fest .wordmark i svg { stroke: var(--blu-scuro); }

/* ---------------------------------------------------------------------
   Logo flottante (sostituisce la barra in alto)
   --------------------------------------------------------------------- */
.brand { position: fixed; z-index: 60; top: max(18px, env(safe-area-inset-top, 0px)); left: max(18px, env(safe-area-inset-left, 0px)); display: block; padding: 10px 14px; border-radius: 20px; transition: background .45s var(--ease), box-shadow .45s var(--ease), padding .45s var(--ease), backdrop-filter .45s; }
.brand::before { content: ""; position: absolute; inset: -28px -60px -40px -28px; z-index: -1; border-radius: 0 0 140px 0; background: radial-gradient(ellipse at top left, rgba(var(--rgb-scuro),0.65), transparent 70%); opacity: 1; transition: opacity .45s; pointer-events: none; }
.brand .logos { position: relative; display: block; height: 58px; width: 64px; transition: height .45s var(--ease), width .45s var(--ease); }
.brand img { position: absolute; inset: 0; height: 100%; width: auto; transition: opacity .45s var(--ease); }
.brand .col { opacity: 0; }
.brand.small .logos { height: 44px; width: 48px; }
.brand.light { background: rgba(255,255,255,0.82); box-shadow: 0 10px 30px -14px rgba(var(--rgb-scuro),0.35); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); }
.brand.light::before { opacity: 0; }
.brand.light .wht { opacity: 0; }
.brand.light .col { opacity: 1; }

/* ---------------------------------------------------------------------
   Barra in basso (tablet e smartphone) + foglio menu + torna su
   --------------------------------------------------------------------- */
.tabbar { position: fixed; z-index: 71; left: 50%; transform: translateX(-50%); bottom: max(14px, env(safe-area-inset-bottom, 0px)); display: flex; gap: 4px; padding: 7px; border-radius: 24px; background: rgba(255,255,255,0.92); backdrop-filter: blur(16px) saturate(1.5); -webkit-backdrop-filter: blur(16px) saturate(1.5); box-shadow: 0 18px 50px -18px rgba(var(--rgb-scuro),0.55), 0 0 0 1px rgba(var(--rgb-blu),0.1); width: min(calc(100% - 28px), 440px); }
.tabbar a, .tabbar button { flex: 1; min-height: 56px; border-radius: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font: inherit; font-size: 11px; font-weight: 700; color: var(--blu); background: transparent; border: 0; cursor: pointer; transition: background .2s, color .2s; }
.tabbar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tabbar a[aria-current="page"], .tabbar button[aria-expanded="true"] { background: var(--blu); color: var(--bianco); }
.totop { position: fixed; z-index: 59; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(max(14px, env(safe-area-inset-bottom, 0px)) + 84px); width: 50px; height: 50px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--blu); color: var(--bianco); box-shadow: 0 14px 30px -10px rgba(var(--rgb-scuro),0.6); cursor: pointer; opacity: 0; transform: translateY(12px) scale(.9); pointer-events: none; transition: opacity .3s, transform .35s var(--ease); }
.totop.show { opacity: 1; transform: none; pointer-events: auto; }
.totop svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sheet { display: block; position: fixed; z-index: 70; inset: 0; pointer-events: none; }
.sheet .scrim { position: absolute; inset: 0; background: rgba(var(--rgb-scuro),0.55); opacity: 0; transition: opacity .3s; backdrop-filter: blur(2px); }
.sheet .panel-s { position: absolute; left: 12px; right: 12px; bottom: calc(max(14px, env(safe-area-inset-bottom, 0px)) + 84px); max-height: calc(100% - 140px); overflow: auto; background: var(--bianco); border-radius: 26px; padding: 22px; box-shadow: 0 30px 80px -20px rgba(var(--rgb-scuro),0.6); transform: translateY(24px) scale(.97); opacity: 0; transition: transform .35s var(--ease), opacity .25s; }
.sheet.open { pointer-events: auto; }
.sheet.open .scrim { opacity: 1; }
.sheet.open .panel-s { transform: none; opacity: 1; }
.sheet h3 { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--blu); font-weight: 500; margin: 6px 4px 10px; }
.sheet h3:not(:first-child) { margin-top: 20px; }
.sheet ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.sheet li a { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 16px; background: var(--ghiaccio); font-weight: 700; font-size: 17px; min-height: 56px; }
.sheet li a small { display: block; font-weight: 400; font-size: 13px; color: var(--testo-2); }
.sheet li a .ic { width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--blu); color: var(--bianco); display: grid; place-items: center; }
.sheet li a .ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.sheet li a[aria-current="page"] { outline: 2px solid var(--blu); }


/* ---------------------------------------------------------------------
   Rete neurale (canvas) e testate scure
   --------------------------------------------------------------------- */
.neural { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
[data-tone="dark"] { position: relative; isolation: isolate; overflow: hidden; color: var(--bianco); background: radial-gradient(1200px 700px at 80% 10%, var(--glow), transparent 70%), radial-gradient(900px 600px at 0% 100%, var(--glow2), transparent 70%), var(--fondo-scuro); }
.hero::after, .phero::after, .ahero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, rgba(var(--rgb-scuro),0.78) 0%, rgba(var(--rgb-scuro),0.35) 55%, rgba(var(--rgb-scuro),0) 100%); }
.hero::before, .phero::before, .ahero::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; z-index: -1; pointer-events: none; background: linear-gradient(180deg, transparent, rgba(var(--rgb-scuro),0.6)); }

/* Testata home */
.hero > .wrap { padding-block: clamp(150px, 18vh, 200px) clamp(90px, 12vh, 130px); display: flex; flex-direction: column; gap: 30px; }
.hero .kicker { flex-wrap: wrap; }
.hero .kicker span + span::before { content: "·"; margin-right: 12px; opacity: .6; }
.hero .kicker .dot { display: none; }
.hero h1 { font-weight: 900; font-stretch: 72%; font-size: clamp(44px, 10.6vw, 168px); line-height: 0.84; letter-spacing: -0.035em; text-transform: uppercase; }
.hero h1 .line { display: block; overflow: hidden; padding: 0 0.12em 0.12em 0; margin-bottom: -0.1em; }
.hero h1 .line > span { display: inline-block; animation: rise 1.1s var(--ease) both; }
.hero h1 .line:nth-child(2) > span { animation-delay: .1s; }

@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes shine { to { background-position: -220% 0; } }
.hero-low { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px 40px; }
.hero-low p { max-width: 600px; font-size: clamp(18px, 1.8vw, 23px); line-height: 1.5; color: rgba(255,255,255,0.7); }
.hero-low p b { color: var(--bianco); }
.rot { white-space: nowrap; }
.rot span:not(.on):not(.tw):not(.caret) { display: none; }
.rot span.on { display: inline; }
.rot .tw { color: var(--bianco); font-weight: 800; letter-spacing: -0.005em; }
.rot .caret { display: inline-block; width: 3px; height: 1.05em; margin-left: 3px; vertical-align: -0.16em; background: var(--bianco); border-radius: 2px; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); width: 26px; height: 42px; border-radius: 14px; border: 2px solid rgba(255,255,255,0.45); }
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; border-radius: 2px; background: var(--bianco); transform: translateX(-50%); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translate(-50%, 0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 14px); } }

/* ---------------------------------------------------------------------
   Pulsanti: uno stile solo, sempre pieni
   --------------------------------------------------------------------- */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 56px; padding: 0 28px; border-radius: 999px; border: 0; font: inherit; font-weight: 700; font-size: 16px; letter-spacing: 0.01em; background: var(--cta); color: var(--su-cta); cursor: pointer; box-shadow: 0 14px 30px -14px rgba(var(--rgb-accento),0.7), inset 0 0 0 1px rgba(255,255,255,0.16); transition: transform .3s var(--ease), box-shadow .3s, background .25s; will-change: transform; }
.btn::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120px circle at var(--bx, 50%) var(--by, 50%), rgba(255,255,255,0.28), transparent 70%); opacity: 0; transition: opacity .3s; }
.btn:hover::before { opacity: 1; }
.btn:hover { box-shadow: 0 20px 40px -14px rgba(var(--rgb-accento),0.85), inset 0 0 0 1px rgba(255,255,255,0.24); }
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); position: relative; }
.btn:hover svg { transform: translateX(4px); }
[data-tone="dark"] .btn { box-shadow: 0 16px 36px -14px rgba(0,0,0,0.55), inset 0 0 0 1px rgba(252,252,251,0.35); }

/* ---------------------------------------------------------------------
   Sezioni chiare
   --------------------------------------------------------------------- */
.sec { position: relative; padding-block: clamp(80px, 10vw, 132px); }
.sec.tint { background: var(--ghiaccio); isolation: isolate; overflow: hidden; }
.sec.tint .neural { opacity: .9; }
.head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 40px; margin-bottom: 56px; }
.head > div { display: flex; flex-direction: column; gap: 16px; }
.head h2 { font-weight: 900; font-stretch: 80%; font-size: clamp(40px, 6vw, 88px); line-height: 0.92; letter-spacing: -0.03em; text-transform: uppercase; }
.head h2 em { font-style: normal; color: var(--blu); }
[data-tone="dark"] .head h2 em { color: var(--blu-chiaro); }
.head p { max-width: 440px; font-size: 18px; line-height: 1.55; color: var(--testo-2); }
[data-tone="dark"] .head p { color: var(--su-scuro); }
.lead2 { font-size: clamp(20px, 2.1vw, 28px); line-height: 1.45; font-weight: 500; max-width: 860px; letter-spacing: -0.01em; }
.lead2 strong { color: var(--blu); }

/* Tab e card servizi */
.tabs { display: inline-flex; padding: 6px; border-radius: 999px; background: var(--ghiaccio); gap: 4px; margin-bottom: 28px; }
.tabs button { font: inherit; font-weight: 700; font-size: 15px; border: 0; background: transparent; color: var(--blu); padding: 12px 24px; border-radius: 999px; cursor: pointer; min-height: 48px; transition: background .25s, color .25s; }
.tabs button[aria-selected="true"] { background: var(--blu); color: var(--bianco); box-shadow: 0 8px 20px -10px rgba(var(--rgb-blu),0.8); }
.panel { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.panel[hidden] { display: none !important; }
.card, .feat { position: relative; overflow: hidden; border: 1px solid var(--linea); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 14px; background: var(--bianco); scroll-margin-top: 30px; transition: border-color .3s, transform .4s var(--ease), box-shadow .4s; }
.card { min-height: 260px; }
.card::before, .feat::before { content: ""; position: absolute; inset: 0; background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgba(var(--rgb-blu),0.10), transparent 60%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.card::after, .feat::after { content: ""; position: absolute; top: 22px; right: 22px; width: 8px; height: 8px; border-radius: 50%; background: var(--linea); box-shadow: -18px 14px 0 -2px var(--linea), -30px 0 0 -2.5px var(--linea); transition: background .3s, box-shadow .3s; }
.card:hover, .feat:hover { border-color: rgba(var(--rgb-blu),0.35); transform: translateY(-5px); box-shadow: 0 28px 56px -28px rgba(var(--rgb-blu),0.45); }
.card:hover::before, .feat:hover::before { opacity: 1; }
.card:hover::after, .feat:hover::after { background: var(--blu); box-shadow: -18px 14px 0 -2px var(--blu-chiaro), -30px 0 0 -2.5px var(--blu-chiaro); }
.card .ico, .feat .ico { width: 56px; height: 56px; border-radius: 18px; background: var(--ghiaccio); display: grid; place-items: center; transition: background .3s, transform .45s var(--ease); }
.feat .ico { width: 50px; height: 50px; border-radius: 16px; }
.card:hover .ico, .feat:hover .ico { background: var(--blu); transform: rotate(-6deg) scale(1.05); }
.card .ico svg, .feat .ico svg { width: 26px; height: 26px; fill: none; stroke: var(--blu); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s; }
.card:hover .ico svg, .feat:hover .ico svg { stroke: var(--bianco); }
.card h3 { font-size: 25px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; margin-top: auto; }
.feat h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.015em; line-height: 1.2; }
.card p, .feat p { color: var(--testo-2); font-size: 16px; line-height: 1.55; }
.card .tag { display: none; }
.card .more { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: var(--blu); }
.card .more svg, .appcard .more svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; transition: transform .25s; }
a.card:hover .more svg, .appcard:hover .more svg { transform: translateX(4px); }
.feats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.feat ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 7px; font-size: 15px; color: var(--testo-2); }
.feat ul li { display: flex; gap: 10px; }
.feat ul li::before { content: ""; width: 7px; height: 7px; margin-top: 8px; border-radius: 50%; background: var(--blu); flex: none; box-shadow: 0 0 0 3px rgba(var(--rgb-blu),0.12); }
.soon { display: none; }

/* ---------------------------------------------------------------------
   Sezioni scure e cruscotto
   --------------------------------------------------------------------- */
.dash-wrap { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; position: relative; }
.dash-copy { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.dash-copy ul, .ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.dash-copy li { display: flex; gap: 14px; align-items: flex-start; font-size: 17px; line-height: 1.5; color: rgba(255,255,255,0.88); }
.dash-copy li svg, .ticks li svg, .mode ul li svg { width: 22px; height: 22px; flex: none; margin-top: 1px; fill: none; stroke: var(--blu-chiaro); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.dash, .editor, .ticket, .mock { border-radius: 22px; overflow: hidden; }
.dash { flex: 1.6 1 560px; min-width: 0; background: linear-gradient(180deg, rgba(var(--rgb-blu),0.55), rgba(var(--rgb-scuro),0.9)); border: 1px solid var(--linea-scuro); box-shadow: 0 50px 120px -40px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.08); backdrop-filter: blur(6px); transform: perspective(1600px) rotateY(-6deg) rotateX(3deg); transition: transform .9s var(--ease); }
.dash:hover { transform: none; }
.dash-bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--linea-scuro); }
.dash-bar i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,0.2); }
.dash-bar span { margin-left: 10px; font-family: var(--mono); font-size: 12px; color: var(--su-scuro); }
.dash-bar .live { margin-left: auto; display: flex; align-items: center; gap: 8px; color: var(--blu-chiaro); }
.dash-bar .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--blu-chiaro); box-shadow: 0 0 10px var(--blu-chiaro); animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.dash-body { padding: 20px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.kpi, .box { background: rgba(255,255,255,0.05); border: 1px solid var(--linea-scuro); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.box { gap: 10px; }
.kpi small { font-family: var(--mono); font-size: 11px; color: var(--su-scuro); text-transform: uppercase; letter-spacing: 0.05em; }
.kpi strong { font-size: clamp(22px, 2.4vw, 32px); font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.kpi em { font-style: normal; font-size: 12px; color: var(--blu-chiaro); font-family: var(--mono); }
.box h4 { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.85); display: flex; justify-content: space-between; gap: 8px; }
.box h4 span { font-family: var(--mono); font-weight: 400; color: var(--su-scuro); font-size: 11px; }
.box.wide { grid-column: span 2; }
#line { width: 100%; height: 170px; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 140px; padding-top: 6px; }
.bars div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bars b { width: 100%; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, var(--blu-chiaro), rgba(var(--rgb-chiaro),0.35)); transform-origin: bottom; transition: transform 1s var(--ease); }
.bars div:nth-child(6) b { background: linear-gradient(180deg, #FCFCFB, var(--blu-chiaro)); }
.bars small { font-family: var(--mono); font-size: 10px; color: var(--su-scuro); }
.donut-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.donut { width: 120px; height: 120px; flex: none; }
.donut circle { fill: none; stroke-width: 14; }
.donut .seg { transition: stroke-dasharray 1.2s var(--ease); }
.legend { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: rgba(255,255,255,0.85); }
.legend span { display: flex; align-items: center; gap: 8px; }
.legend i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dash-note, .mock-note { font-family: var(--mono); font-size: 11px; color: var(--su-scuro); padding: 0 20px 16px; }

/* ---------------------------------------------------------------------
   Metodo / passaggi
   --------------------------------------------------------------------- */
.metodo-grid { display: flex; flex-wrap: wrap; gap: 48px 64px; }
.metodo-side { flex: 1 1 320px; }
.metodo-side .sticky { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 22px; }
.metodo-side .head { margin: 0; }
.metodo-side p { font-size: 18px; color: var(--testo-2); max-width: 380px; }
.prog { height: 4px; border-radius: 4px; background: var(--linea); overflow: hidden; max-width: 360px; }
.prog i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--blu-chiaro), var(--blu)); transform-origin: left; transform: scaleX(var(--p, 1)); }
.steps { flex: 2 1 560px; min-width: 0; list-style: none; margin: 0; padding: 0 0 0 28px; display: flex; flex-direction: column; position: relative; }
.steps::before { content: ""; position: absolute; left: 6px; top: 46px; bottom: 46px; width: 2px; background: var(--linea); }
.step { position: relative; display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 8px 24px; padding-block: 34px; border-top: 1px solid var(--linea); }
.step:last-child { border-bottom: 1px solid var(--linea); }
.step::before { content: ""; position: absolute; left: -28px; top: 44px; width: 14px; height: 14px; border-radius: 50%; background: var(--bianco); border: 2px solid var(--linea); transition: background .4s, border-color .4s, box-shadow .4s; }
.step.on::before { background: var(--blu); border-color: var(--blu); box-shadow: 0 0 0 6px rgba(var(--rgb-blu),0.14); }
.step .n { font-weight: 900; font-stretch: 70%; font-size: 70px; line-height: 0.8; color: transparent; -webkit-text-stroke: 1.5px var(--blu); transition: color .4s; }
.step.on .n { color: var(--blu); }
.step h3 { font-weight: 800; font-stretch: 90%; font-size: clamp(28px, 3.4vw, 46px); line-height: 1; letter-spacing: -0.02em; text-transform: uppercase; }
.step p { grid-column: 2; font-size: 18px; line-height: 1.55; color: var(--testo-2); max-width: 560px; }

/* ---------------------------------------------------------------------
   Contatti finali
   --------------------------------------------------------------------- */
.cta-sec .wrap { padding-block: clamp(96px, 12vw, 160px); display: flex; flex-direction: column; gap: 36px; }
.cta-sec .big { font-weight: 900; font-stretch: 72%; font-size: clamp(60px, 12.5vw, 196px); line-height: 0.84; letter-spacing: -0.035em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 0.12em; align-self: flex-start; transition: gap .45s var(--ease), color .3s; }
.cta-sec .big:hover { gap: 0.28em; color: var(--blu-chiaro); }
.cta-sec .big svg { width: 0.7em; height: 0.7em; stroke: currentColor; fill: none; stroke-width: 2.4; }
.contacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 14px; }
.contacts > div { background: rgba(255,255,255,0.07); border: 1px solid var(--linea-scuro); border-radius: 20px; padding: 20px 22px; display: flex; flex-direction: column; gap: 6px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background .3s, border-color .3s; }
.contacts > div:hover { background: rgba(255,255,255,0.12); border-color: rgba(var(--rgb-chiaro),0.5); }
.contacts small { font-family: var(--mono); font-size: 11px; color: var(--blu-chiaro); letter-spacing: 0.08em; }
.contacts a, .contacts span { font-size: 19px; font-weight: 600; }

/* Modulo di contatto */
.cform { background: rgba(255,255,255,0.06); border: 1px solid var(--linea-scuro); border-radius: 26px; padding: clamp(20px, 3vw, 34px); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: flex; flex-direction: column; gap: 22px; flex-basis: 100%; scroll-margin-top: 30px; }
.cf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cf-grid .full { grid-column: 1 / -1; }
.fld { display: flex; flex-direction: column; gap: 8px; }
.fld > span { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--blu-chiaro); text-transform: uppercase; }
.fld input, .fld select, .fld textarea { font: inherit; font-size: 16px; color: var(--bianco); background: rgba(255,255,255,0.08); border: 1px solid var(--linea-scuro); border-radius: 14px; padding: 14px 16px; min-height: 52px; width: 100%; transition: border-color .2s, background .2s, box-shadow .2s; }
.fld textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
.fld select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--bianco) 50%), linear-gradient(135deg, var(--bianco) 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.fld select option { color: var(--testo); background: var(--bianco); }
.fld input::placeholder, .fld textarea::placeholder { color: rgba(255,255,255,0.45); }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--blu-chiaro); background: rgba(255,255,255,0.12); box-shadow: 0 0 0 4px rgba(var(--rgb-chiaro),0.18); }
.fld.err input, .fld.err textarea, .check.err { border-color: #FCFCFB; box-shadow: 0 0 0 3px rgba(255,255,255,0.35); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--su-scuro); border-radius: 12px; padding: 4px; }
.check input { width: 22px; height: 22px; flex: none; margin: 1px 0 0; accent-color: var(--blu-chiaro); }
.check a { color: var(--bianco); text-decoration: underline; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.cf-status { font-size: 15px; line-height: 1.5; color: var(--bianco); min-height: 1.5em; }
.cf-status a { text-decoration: underline; }
.cform.sent .cf-grid, .cform.sent .cf-foot .btn { display: none; }
.cform.sent .cf-status { font-size: clamp(20px, 2.4vw, 28px); font-weight: 700; }
.cform.busy .btn { opacity: .6; pointer-events: none; }
.acta .cform { margin-top: 8px; }
@media (max-width: 760px) { .cf-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------- */
.foot[data-tone="dark"] { background: radial-gradient(900px 500px at 90% 0%, rgba(var(--rgb-accento),0.35), transparent 70%), var(--piede); }
.foot { background: var(--piede); color: var(--bianco); position: relative; isolation: isolate; overflow: hidden; border-top: 1px solid var(--linea-scuro); }
.foot .wrap { padding-block: 64px 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 36px 32px; }
.foot .fbrand { display: flex; flex-direction: column; gap: 16px; }
.foot .fbrand img { height: 64px; width: auto; align-self: flex-start; }
.foot .fbrand p { color: var(--su-scuro); font-size: 15px; line-height: 1.55; max-width: 280px; }
.foot h4 { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; color: var(--blu-chiaro); margin-bottom: 14px; text-transform: uppercase; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.foot ul a { display: inline-block; padding: 6px 0; color: rgba(255,255,255,0.88); font-weight: 500; transition: color .2s, transform .25s var(--ease); }
.foot ul a:hover { color: var(--bianco); transform: translateX(4px); }
.foot .legal { grid-column: 1 / -1; border-top: 1px solid var(--linea-scuro); padding-top: 24px; font-family: var(--mono); font-size: 12px; color: var(--su-scuro); line-height: 1.7; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.foot .legal a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------------------
   Pagine interne: testata
   --------------------------------------------------------------------- */
.phero > .wrap, .ahero > .wrap { padding-block: clamp(140px, 16vh, 180px) clamp(80px, 10vh, 110px); display: flex; flex-wrap: wrap; align-items: center; gap: 48px 56px; }
.phero-copy, .ahero-copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.phero-vis, .ahero-vis { flex: 1 1 420px; min-width: 0; position: relative; }
.crumb { font-family: var(--mono); font-size: 12px; letter-spacing: 0.05em; color: var(--su-scuro); display: flex; gap: 8px; flex-wrap: wrap; }
.crumb a { text-decoration: underline; text-underline-offset: 3px; }
.crumb a:hover { color: var(--bianco); }
.phero h1, .ahero h1 { font-weight: 900; font-stretch: 74%; font-size: clamp(42px, 5.6vw, 96px); line-height: 0.88; letter-spacing: -0.035em; text-transform: uppercase; overflow-wrap: break-word; }
.ahero h1 { text-transform: none; font-stretch: 78%; letter-spacing: -0.03em; line-height: 0.92; }
.ahero h1 em { font-style: normal; color: var(--blu-chiaro); }
.lead, .phero p.lead { font-size: clamp(18px, 1.7vw, 22px); line-height: 1.5; color: rgba(255,255,255,0.86); max-width: 580px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { font-family: var(--mono); font-size: 12px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--linea-scuro); background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.9); }
.bigtype .chips span { border-color: var(--linea); color: var(--blu); background: var(--ghiaccio); }

/* Editor di codice */
.editor { background: rgba(var(--rgb-scuro),0.85); border: 1px solid var(--linea-scuro); box-shadow: 0 40px 100px -40px rgba(0,0,0,0.8); backdrop-filter: blur(6px); }
.editor-body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); min-height: 300px; }
.editor pre { margin: 0; padding: 18px; font-family: var(--mono); font-size: 12.5px; line-height: 1.7; color: rgba(255,255,255,0.86); white-space: pre-wrap; word-break: break-word; border-right: 1px solid var(--linea-scuro); min-height: 300px; }
.editor pre::after { content: ""; display: inline-block; width: 8px; height: 15px; background: var(--blu-chiaro); vertical-align: -2px; margin-left: 2px; animation: blink 1s steps(1) infinite; }
.preview { padding: 18px; display: flex; flex-direction: column; gap: 10px; background: var(--bianco); color: var(--testo); }
.preview .pbar { height: 10px; width: 46%; border-radius: 6px; background: var(--blu); }
.preview .ph { height: 46px; border-radius: 10px; background: linear-gradient(110deg, var(--blu), var(--blu-chiaro)); animation: grow 3.2s ease-in-out infinite alternate; transform-origin: left; }
.preview .row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.preview .row i { height: 54px; border-radius: 10px; background: var(--ghiaccio); animation: pop 3.2s ease-in-out infinite alternate; }
.preview .row i:nth-child(2) { animation-delay: .3s; } .preview .row i:nth-child(3) { animation-delay: .6s; }
.preview .ln { height: 8px; border-radius: 6px; background: var(--linea); }
.preview .ln.s { width: 70%; }
.preview .btnm { align-self: flex-start; height: 24px; width: 96px; border-radius: 999px; background: var(--blu); }
@keyframes grow { from { transform: scaleX(.35); } to { transform: none; } }
@keyframes pop { from { transform: scale(.85); opacity: .5; } to { transform: none; opacity: 1; } }

/* Richiesta di assistenza */
.ticket { background: rgba(255,255,255,0.07); border: 1px solid var(--linea-scuro); padding: 24px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 40px 100px -40px rgba(0,0,0,0.8); display: flex; flex-direction: column; gap: 16px; }
.ticket header { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-family: var(--mono); font-size: 12px; color: var(--su-scuro); }
.ticket h3 { font-size: 20px; font-weight: 700; }
.ticket ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; position: relative; }
.ticket ol::before { content: ""; position: absolute; left: 13px; top: 24px; bottom: 24px; width: 2px; background: var(--linea-scuro); }
.ticket li { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; align-items: start; padding: 10px 0; color: var(--su-scuro); transition: color .4s; }
.ticket li b { display: block; color: inherit; font-size: 15px; }
.ticket li small { font-family: var(--mono); font-size: 11px; }
.ticket li .st { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--linea-scuro); background: var(--blu-scuro); display: grid; place-items: center; transition: background .4s, border-color .4s; }
.ticket li .st svg { width: 14px; height: 14px; fill: none; stroke: var(--blu-scuro); stroke-width: 3; opacity: 0; transition: opacity .3s; }
.ticket li.done { color: rgba(255,255,255,0.92); }
.ticket li.done .st { background: var(--blu-chiaro); border-color: var(--blu-chiaro); }
.ticket li.done .st svg { opacity: 1; }
.ticket li.now { color: var(--bianco); }
.ticket li.now .st { border-color: var(--bianco); box-shadow: 0 0 0 6px rgba(var(--rgb-chiaro),0.3); animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 11px rgba(var(--rgb-chiaro),0.05); } }

/* Dispositivi (noleggio) */
.devices { position: relative; height: 340px; }
.dev { position: absolute; border-radius: 14px; background: linear-gradient(160deg, var(--blu), var(--blu-scuro)); border: 1px solid var(--linea-scuro); box-shadow: 0 30px 70px -30px rgba(0,0,0,0.8); animation: float 6s ease-in-out infinite; }
.dev::before { content: ""; position: absolute; inset: 10px 10px 28px; border-radius: 6px; background: linear-gradient(130deg, var(--blu-scuro), var(--blu) 55%, var(--blu-chiaro)); }
.dev.mon { width: 62%; height: 62%; left: 0; top: 0; }
.dev.mon::after { content: ""; position: absolute; left: 42%; bottom: -26px; width: 16%; height: 26px; background: var(--blu); border-radius: 0 0 6px 6px; }
.dev.lap { width: 54%; height: 44%; right: 0; top: 34%; animation-delay: -2s; }
.dev.lap::after { content: ""; position: absolute; left: -6%; right: -6%; bottom: -12px; height: 12px; border-radius: 0 0 10px 10px; background: var(--blu); }
.dev.tab { width: 26%; height: 46%; left: 18%; bottom: 0; animation-delay: -4s; border-radius: 18px; }
.dev.tab::before { inset: 10px; }
@keyframes float { 50% { transform: translateY(-12px); } }

/* Tipologie in grande */
.bigtypes { display: flex; flex-direction: column; }
.bigtype { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px 48px; padding-block: 40px; border-top: 1px solid var(--linea); scroll-margin-top: 30px; transition: background .3s; }
.bigtype:last-child { border-bottom: 1px solid var(--linea); }
.bigtype h3 { font-weight: 900; font-stretch: 80%; font-size: clamp(34px, 4.4vw, 62px); line-height: 0.95; letter-spacing: -0.025em; text-transform: uppercase; transition: color .3s; }
.bigtype:hover h3 { color: var(--blu); }
.bigtype h3 small { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-weight: 400; font-stretch: 100%; font-size: 12px; letter-spacing: 0.06em; color: var(--blu); margin-bottom: 12px; }
.bigtype h3 small::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--blu); }
.bigtype .txt { display: flex; flex-direction: column; gap: 14px; font-size: 17px; line-height: 1.6; color: var(--testo-2); }

/* Modalità (su scuro) */
.modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; position: relative; }
.mode { border-radius: 24px; padding: 30px; display: flex; flex-direction: column; gap: 14px; background: rgba(255,255,255,0.06); border: 1px solid var(--linea-scuro); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: transform .4s var(--ease), border-color .3s, background .3s; }
.mode:hover { transform: translateY(-5px); border-color: rgba(var(--rgb-chiaro),0.55); }
.mode h3 { font-size: 27px; font-weight: 800; letter-spacing: -0.02em; }
.mode p { color: var(--su-scuro); font-size: 16px; line-height: 1.55; }
.mode ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; color: rgba(255,255,255,0.9); font-size: 15px; }
.mode ul li { display: flex; gap: 10px; }
.mode.hl { background: var(--blu); border-color: rgba(var(--rgb-chiaro),0.5); }

.stack { display: flex; flex-wrap: wrap; gap: 10px; }
.stack span { font-family: var(--mono); font-size: 13px; padding: 10px 16px; border-radius: 12px; border: 1px solid var(--linea); background: var(--bianco); color: var(--blu); transition: background .2s, color .2s, transform .25s var(--ease); }
.stack span:hover { background: var(--blu); color: var(--bianco); transform: translateY(-3px); }

/* Configuratore noleggio */
.cfg { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.cfg-main { flex: 2 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.cfg fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.cfg legend { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--blu); margin-bottom: 12px; padding: 0; }
.qrow { display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid var(--linea); border-radius: 18px; padding: 14px 16px; transition: border-color .2s, background .2s; }
.qrow.has { border-color: var(--blu); background: var(--ghiaccio); }
.qrow .nm { display: flex; align-items: center; gap: 14px; min-width: 0; }
.qrow .nm svg { width: 28px; height: 28px; flex: none; fill: none; stroke: var(--blu); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.qrow b { display: block; font-size: 17px; }
.qrow small { color: var(--testo-2); font-size: 14px; }
.qty { display: flex; align-items: center; gap: 6px; flex: none; }
.qty button { width: 44px; height: 44px; border-radius: 12px; border: 0; background: var(--blu); font: inherit; font-size: 20px; font-weight: 700; color: var(--bianco); cursor: pointer; transition: transform .2s; }
.qty button:active { transform: scale(.92); }
.qty output { width: 36px; text-align: center; font-weight: 800; font-size: 18px; font-variant-numeric: tabular-nums; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills label { position: relative; }
.pills input { position: absolute; opacity: 0; inset: 0; }
.pills span { display: inline-flex; align-items: center; min-height: 46px; padding: 0 18px; border-radius: 999px; background: var(--ghiaccio); color: var(--blu); font-weight: 700; cursor: pointer; transition: background .2s, color .2s; }
.pills input:checked + span { background: var(--blu); color: var(--bianco); }
.pills input:focus-visible + span { outline: 3px solid var(--blu-chiaro); outline-offset: 2px; }
.cfg select { font: inherit; font-size: 16px; min-height: 50px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--linea); background: var(--bianco); color: var(--testo); max-width: 100%; }
.cfg-sum { flex: 1 1 300px; min-width: 0; position: sticky; top: 30px; background: var(--blu-scuro); color: var(--bianco); border-radius: 24px; padding: 26px; display: flex; flex-direction: column; gap: 16px; }
.cfg-sum .kicker { color: var(--blu-chiaro); }
.cfg-sum pre { margin: 0; font-family: var(--mono); font-size: 14px; line-height: 1.7; white-space: pre-wrap; color: rgba(255,255,255,0.9); background: rgba(255,255,255,0.07); border-radius: 14px; padding: 16px; user-select: all; }
.cfg-sum .linkbtn { font: inherit; background: none; border: 0; color: var(--su-scuro); text-decoration: underline; cursor: pointer; padding: 8px 0; min-height: 44px; }
.cfg-sum small { color: var(--su-scuro) !important; }

/* FAQ */
.faq { display: flex; flex-direction: column; max-width: 920px; }
.faq details { border-top: 1px solid var(--linea); }
.faq details:last-child { border-bottom: 1px solid var(--linea); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; font-size: clamp(18px, 1.8vw, 22px); font-weight: 700; letter-spacing: -0.01em; transition: color .2s; }
.faq summary:hover { color: var(--blu); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--ghiaccio); color: var(--blu); display: grid; place-items: center; font-size: 22px; font-weight: 500; transition: transform .35s var(--ease), background .3s, color .3s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--blu); color: var(--bianco); }
.faq details p { padding: 0 0 24px; color: var(--testo-2); font-size: 17px; line-height: 1.6; max-width: 760px; }

/* Altri servizi */
.others { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.other { display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: 24px; background: var(--bianco); border: 1px solid var(--linea); transition: background .3s, color .3s, transform .4s var(--ease), border-color .3s; }
.other:hover { background: var(--blu); border-color: var(--blu); color: var(--bianco); transform: translateY(-5px); }
.other small { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--blu); transition: color .3s; }
.other:hover small { color: var(--blu-chiaro); }
.other b { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.other b svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; transition: transform .3s; }
.other:hover b svg { transform: translateX(6px); }

/* Privacy */
.ptext { max-width: 760px; }
.ptext h2 { font-size: 22px; font-weight: 800; margin: 36px 0 10px; }
.ptext p { font-size: 17px; line-height: 1.65; color: var(--testo-2); }
.ptext p + p { margin-top: 12px; }
.ptext a { color: var(--blu); text-decoration: underline; }

/* ---------------------------------------------------------------------
   App: card in home e landing
   --------------------------------------------------------------------- */
.apps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 16px; }
.appcard { position: relative; overflow: hidden; isolation: isolate; border-radius: 26px; padding: 30px; min-height: 320px; display: flex; flex-direction: column; gap: 12px; color: var(--bianco); background: radial-gradient(500px 320px at 100% 0%, var(--blu), transparent 70%), var(--blu-scuro); transition: transform .45s var(--ease), box-shadow .45s; }
.appcard .neural { opacity: .8; }
.appcard:hover { transform: translateY(-7px); box-shadow: 0 36px 70px -30px rgba(var(--rgb-scuro),0.8); }
.appcard small { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--blu-chiaro); }
.appcard b { font-weight: 900; font-stretch: 85%; font-size: clamp(40px, 4vw, 56px); line-height: 1; letter-spacing: -0.02em; margin-top: auto; }
.appcard p { color: rgba(255,255,255,0.85); font-size: 16px; line-height: 1.5; }
.appcard .more { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; }

.abadge { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 7px; border-radius: 999px; background: rgba(255,255,255,0.08); border: 1px solid var(--linea-scuro); font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: rgba(255,255,255,0.88); }
.abadge b { background: var(--blu-chiaro); color: var(--blu-scuro); padding: 4px 10px; border-radius: 999px; font-weight: 500; }
.wordmark { font-weight: 900; font-stretch: 112%; font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.02em; display: flex; align-items: center; gap: 12px; }
.wordmark i { width: 44px; height: 44px; border-radius: 14px; background: var(--bianco); display: grid; place-items: center; }
.wordmark i svg { width: 24px; height: 24px; fill: none; stroke: var(--blu); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* Finestra app finta */
.mock { background: var(--bianco); color: var(--testo); box-shadow: 0 50px 120px -40px rgba(0,0,0,0.7); transform: perspective(1600px) rotateY(-7deg) rotateX(3deg); transition: transform .9s var(--ease); }
.mock:hover { transform: none; }
.sec .mock { box-shadow: 0 40px 90px -40px rgba(var(--rgb-scuro),0.45); border: 1px solid var(--linea); }
.mock-top { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--blu); color: var(--bianco); font-size: 13px; font-weight: 700; }
.mock-top i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.35); }
.mock-top span { margin-left: 6px; }
.mock-top small { margin-left: auto; font-family: var(--mono); font-weight: 400; opacity: .8; }
.mock-body { display: grid; grid-template-columns: 150px minmax(0, 1fr); min-height: 320px; }
.mock-side { background: var(--ghiaccio); padding: 14px 10px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.mock-side span { padding: 8px 10px; border-radius: 8px; color: var(--testo-2); white-space: nowrap; }
.mock-side span.on { background: var(--blu); color: var(--bianco); font-weight: 700; }
.mock-main { padding: 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.mock-main h4 { font-size: 15px; font-weight: 800; display: flex; justify-content: space-between; gap: 8px; }
.mock-main h4 small { font-family: var(--mono); font-weight: 400; font-size: 11px; color: var(--testo-2); }
.mock .mock-note { color: var(--testo-2); padding: 0; }
.mrow { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--ghiaccio); font-size: 13px; animation: slidein .6s both; }
.mrow:nth-child(3) { animation-delay: .1s; } .mrow:nth-child(4) { animation-delay: .2s; } .mrow:nth-child(5) { animation-delay: .3s; }
.mrow .av { width: 30px; height: 30px; border-radius: 50%; background: var(--bianco); color: var(--blu); display: grid; place-items: center; font-weight: 800; font-size: 11px; }
.mrow .pill { font-size: 11px; padding: 3px 8px; border-radius: 999px; background: var(--blu); color: var(--bianco); font-weight: 700; }
.mrow .pill.out { background: var(--bianco); color: var(--blu); box-shadow: inset 0 0 0 1px var(--blu); }
@keyframes slidein { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.mcal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; font-size: 11px; text-align: center; }
.mcal span { padding: 6px 0; border-radius: 6px; background: var(--ghiaccio); color: var(--testo-2); }
.mcal span.ev { background: var(--blu); color: var(--bianco); font-weight: 700; }
.mcal span.ev2 { background: var(--blu-chiaro); color: var(--blu-scuro); font-weight: 700; }

/* Gest-Fest: flusso */
.flow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.fbox { background: rgba(255,255,255,0.07); border: 1px solid var(--linea-scuro); border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 10px; min-height: 176px; position: relative; overflow: hidden; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.fbox small { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--blu-chiaro); }
.fbox b { font-size: 17px; }
.keys { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.keys span { font-size: 11px; padding: 8px 4px; text-align: center; border-radius: 8px; background: rgba(255,255,255,0.12); animation: tap 4s infinite; }
.keys span:nth-child(2) { animation-delay: .5s; } .keys span:nth-child(5) { animation-delay: 1s; } .keys span:nth-child(3) { animation-delay: 1.5s; }
@keyframes tap { 0%, 12%, 100% { background: rgba(255,255,255,0.12); color: #FCFCFB; } 4% { background: var(--bianco); color: var(--blu); } }
.printer { position: relative; height: 120px; }
.printer::before { content: ""; position: absolute; left: 10%; right: 10%; bottom: 0; height: 38px; border-radius: 10px; background: var(--blu); box-shadow: inset 0 -6px 0 rgba(var(--rgb-scuro),0.5); }
.paper { position: absolute; left: 22%; right: 22%; bottom: 26px; height: 86px; padding: 6px 8px 0; background: #FCFCFB; color: var(--blu-scuro); border-radius: 3px 3px 0 0; overflow: hidden; font-family: var(--mono); font-size: 9px; line-height: 1.5; animation: print 4s infinite; }
.paper p { margin: 0; white-space: nowrap; }
@keyframes print { 0%, 20% { height: 0; padding-top: 0; } 55%, 85% { height: 86px; padding-top: 6px; } 100% { height: 0; padding-top: 0; } }
.kitchen { display: flex; flex-direction: column; gap: 6px; }
.kitchen span { display: flex; justify-content: space-between; font-size: 12px; padding: 7px 10px; border-radius: 8px; background: rgba(255,255,255,0.08); }
.kitchen span i { font-style: normal; font-family: var(--mono); font-size: 10px; padding: 2px 7px; border-radius: 6px; }
.k-wait { background: rgba(255,255,255,0.14); }
.k-prep { background: var(--blu-chiaro); color: var(--blu-scuro); animation: blink 1.6s infinite; }
.k-late { background: transparent; color: #FCFCFB; box-shadow: inset 0 0 0 1px #FCFCFB; font-weight: 700; }
.k-ok { background: #FCFCFB; color: var(--blu); font-weight: 700; }
.monitor { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; text-align: center; }
.monitor div { display: flex; flex-direction: column; gap: 5px; font-family: var(--mono); font-size: 11px; }
.monitor div > small { font-size: 9px; }
.monitor span { padding: 5px 0; border-radius: 6px; background: rgba(255,255,255,0.12); }
.monitor .ready span { background: #FCFCFB; color: var(--blu); font-weight: 700; animation: pop 2.4s infinite alternate; }

/* Scontrino */
.receipt { background: #FCFCFB; color: var(--blu-scuro); width: min(100%, 360px); margin-inline: auto; padding: 26px 24px 30px; font-family: var(--mono); font-size: 13px; line-height: 1.7; box-shadow: 0 40px 80px -30px rgba(var(--rgb-scuro),0.4); border: 1px solid var(--linea);
  -webkit-mask: radial-gradient(10px at 50% 100%, transparent 98%, #000) 50% 100% / 20px 51% repeat-x, linear-gradient(#000 0 0) top / 100% 51% no-repeat;
          mask: radial-gradient(10px at 50% 100%, transparent 98%, #000) 50% 100% / 20px 51% repeat-x, linear-gradient(#000 0 0) top / 100% 51% no-repeat; }
.receipt h4 { text-align: center; font-size: 14px; letter-spacing: 0.08em; margin-bottom: 4px; }
.receipt .c { text-align: center; color: var(--testo-2); font-size: 11px; }
.receipt hr { border: 0; border-top: 1px dashed var(--blu-chiaro); margin: 10px 0; }
.receipt .r { display: flex; justify-content: space-between; gap: 12px; font-variant-numeric: tabular-nums; }
.receipt .r.t { font-weight: 700; font-size: 14px; color: var(--blu); }
.receipt .sign { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; color: var(--testo-2); font-size: 11px; }
.receipt .sign span { border-top: 1px solid var(--linea); padding-top: 4px; flex: 1; text-align: center; }

.split2 { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.split2 > * { flex: 1 1 420px; min-width: 0; }
.split2 .head { margin-bottom: 26px; }
.split2 .head h2 { font-size: clamp(34px, 4.2vw, 62px); }
.split2 > div > p { font-size: 18px; line-height: 1.6; color: var(--testo-2); max-width: 560px; }
.ticks li { display: flex; gap: 12px; font-size: 17px; line-height: 1.55; color: var(--testo-2); }
.ticks li svg { stroke: var(--blu); }
.ticks b { color: var(--testo); }
.roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.role { border-radius: 20px; padding: 24px; background: var(--bianco); border: 1px solid var(--linea); display: flex; flex-direction: column; gap: 6px; transition: transform .4s var(--ease), border-color .3s; }
.role:hover { transform: translateY(-4px); border-color: rgba(var(--rgb-blu),0.35); }
.sec.tint .role { border-color: transparent; }
.role small { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--blu); }
.role b { font-size: 21px; letter-spacing: -0.01em; }
.role p { font-size: 15px; line-height: 1.5; color: var(--testo-2); }

.acta .wrap { padding-block: clamp(96px, 12vw, 150px); display: flex; flex-wrap: wrap; gap: 32px 56px; align-items: flex-end; justify-content: space-between; }
.acta h2 { flex: 1 1 520px; font-weight: 900; font-stretch: 78%; font-size: clamp(44px, 6.4vw, 96px); line-height: 0.9; letter-spacing: -0.03em; text-transform: uppercase; }
.acta h2 em { font-style: normal; color: var(--blu-chiaro); }
.acta .side { flex: 0 1 400px; display: flex; flex-direction: column; gap: 16px; font-size: 17px; line-height: 1.55; color: rgba(255,255,255,0.86); }

/* Gest-Event */
.ticket2 { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 132px; background: #FCFCFB; color: var(--blu-scuro); border-radius: 24px; overflow: hidden; box-shadow: 0 50px 120px -40px rgba(0,0,0,0.75); animation: float 6s ease-in-out infinite; max-width: 520px; margin-inline: auto; }
.ticket2 .l { padding: 26px; display: flex; flex-direction: column; gap: 12px; border-right: 2px dashed var(--linea); }
.ticket2 .l small { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--blu); }
.ticket2 .l b { font-size: 26px; font-weight: 900; font-stretch: 85%; line-height: 1; text-transform: uppercase; }
.ticket2 .meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; font-size: 12px; color: var(--testo-2); }
.ticket2 .meta strong { display: block; color: var(--blu-scuro); font-size: 14px; }
.ticket2 .r { padding: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: var(--ghiaccio); }
.qr { width: 96px; height: 96px; display: grid; grid-template-columns: repeat(11, 1fr); gap: 1px; }
.qr i { background: var(--blu-scuro); border-radius: 1px; }
.qr i.o { background: transparent; }
.ticket2 .r small { font-family: var(--mono); font-size: 10px; color: var(--blu); }
.scanline { position: absolute; right: 18px; width: 96px; height: 2px; background: var(--blu); box-shadow: 0 0 12px var(--blu-chiaro); top: 30%; animation: scan 2.4s ease-in-out infinite alternate; }
@keyframes scan { to { top: 62%; } }
.devbar { display: flex; flex-direction: column; gap: 10px; max-width: 520px; }
.devbar .bar { height: 10px; border-radius: 999px; background: rgba(255,255,255,0.14); overflow: hidden; }
.devbar .bar i { display: block; height: 100%; width: 62%; border-radius: 999px; background: linear-gradient(90deg, var(--blu-chiaro), #FCFCFB, var(--blu-chiaro)); background-size: 200% 100%; animation: shine 2.4s linear infinite; }
.devbar small { font-family: var(--mono); font-size: 12px; color: var(--su-scuro); display: flex; justify-content: space-between; gap: 12px; }

/* ---------------------------------------------------------------------
   Comparsa allo scroll (solo dove supportata, altrimenti tutto visibile)
   --------------------------------------------------------------------- */
@supports (animation-timeline: view()) {
  .reveal { animation: up linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
  @keyframes up { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
}

/* ---------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------- */
@media (max-width: 1099px) {
  .brand { top: max(12px, env(safe-area-inset-top, 0px)); left: max(12px, env(safe-area-inset-left, 0px)); padding: 8px 10px; }
  .brand .logos { height: 48px; width: 53px; }
  .brand.small .logos { height: 40px; width: 44px; }
  .dash, .mock { transform: none; }
}
@media (max-width: 760px) {
  .wrap { padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px)); }
  .hero > .wrap { padding-block: 118px 80px; gap: 24px; }
  .hero h1 { font-size: clamp(40px, 12.6vw, 96px); }
  .hero::after, .phero::after, .ahero::after { background: linear-gradient(180deg, rgba(var(--rgb-scuro),0.55), rgba(var(--rgb-scuro),0.75)); }
  .scroll-cue { display: none; }
  .btns { width: 100%; }
  .btns .btn { flex: 1 1 100%; }
  .phero > .wrap, .ahero > .wrap { padding-block: 112px 64px; gap: 40px; }
  .phero h1 { font-size: clamp(38px, 11vw, 60px); }
  .ahero h1 { font-size: clamp(40px, 11vw, 64px); }
  .head { margin-bottom: 36px; }
  .head h2 { font-size: clamp(36px, 10.5vw, 56px); }
  .sec { padding-block: 72px; }
  .card { min-height: 0; }
  .dash-body { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 14px; gap: 10px; }
  .box.wide { grid-column: 1 / -1; }
  .kpi:nth-child(3) { grid-column: 1 / -1; }
  .steps { padding-left: 24px; }
  .step { grid-template-columns: 56px minmax(0, 1fr); padding-block: 26px; }
  .step::before { left: -24px; top: 34px; }
  .steps::before { left: 5px; }
  .step .n { font-size: 46px; }
  .step p { grid-column: 1 / -1; font-size: 16px; }
  .editor-body { grid-template-columns: minmax(0, 1fr); }
  .editor .preview { display: none; }
  .bigtype { grid-template-columns: minmax(0, 1fr); padding-block: 30px; }
  .devices { height: 220px; }
  .cfg-sum { position: static; }
  .qrow { flex-wrap: wrap; }
  .mock-body { grid-template-columns: minmax(0, 1fr); }
  .mock-side { flex-direction: row; overflow-x: auto; }
  .flow { grid-template-columns: minmax(0, 1fr); }
  .ticket2 { grid-template-columns: minmax(0, 1fr); }
  .ticket2 .l { border-right: 0; border-bottom: 2px dashed var(--linea); }
  .scanline { display: none; }
  .cta-sec .big { font-size: clamp(44px, 13vw, 96px); flex-wrap: wrap; }
  .acta h2 { font-size: clamp(40px, 11vw, 64px); }
  .contacts a, .contacts span { font-size: 17px; }
  .foot .wrap { padding-block: 48px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------------------------------------------------------------------
   Easter egg e ricorrenze
   --------------------------------------------------------------------- */
.egg { position: fixed; z-index: 75; left: 50%; bottom: max(28px, env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 24px) scale(.96); opacity: 0; display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-radius: 999px; background: rgba(255,255,255,0.94); color: var(--testo); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 24px 60px -20px rgba(var(--rgb-scuro),0.55), 0 0 0 1px rgba(var(--rgb-blu),0.12); transition: opacity .5s var(--ease), transform .6s var(--ease); max-width: min(560px, calc(100% - 28px)); }
.egg.in { opacity: 1; transform: translate(-50%, 0) scale(1); }
.egg.love { padding: 12px 22px 12px 24px; }
.egg-txt { font-weight: 900; font-stretch: 85%; font-size: 26px; letter-spacing: -0.01em; color: var(--blu); }
.egg-heart { font-size: 24px; display: inline-block; animation: beat 1.1s ease-in-out infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.25); } 30% { transform: scale(1); } 45% { transform: scale(1.18); } }
.egg.festa { border-radius: 22px; align-items: flex-start; padding: 14px 14px 14px 18px; font-size: 15px; line-height: 1.45; }
.egg-ico { font-size: 22px; line-height: 1.2; }
.egg-msg a, .egg-msg .open-egg { color: var(--blu); font-weight: 700; white-space: nowrap; }
.egg-msg .open-egg { font: inherit; font-weight: 700; background: var(--ghiaccio); border: 0; border-radius: 999px; padding: 4px 12px; margin-left: 4px; cursor: pointer; color: var(--blu); }
.egg .x { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--ghiaccio); color: var(--blu); font-size: 20px; line-height: 1; cursor: pointer; }
.foot .fbrand img { cursor: default; -webkit-tap-highlight-color: transparent; user-select: none; }
.fx-aprile .brand:hover img { transform: rotate(360deg); transition: transform .9s var(--ease), opacity .45s; }
@media (max-width: 1099px) { .egg { bottom: calc(max(14px, env(safe-area-inset-bottom, 0px)) + 88px); } }
@media (min-width: 1100px) { .egg { left: auto; right: 150px; transform: translate(0, 24px) scale(.96); } .egg.in { transform: none; } }
@media (max-width: 760px) { .hero .kicker::after { display: none; } .hero-low p { font-size: 18px; } }
.phero h1 { line-height: 0.96; }

@media (max-width: 760px) { .rot { display: block; min-height: 1.5em; } .rot + br { display: none; } }

/* ---------------------------------------------------------------------
   Evidenziazione "fatto bene": tratto rosso disegnato sotto le parole
   --------------------------------------------------------------------- */
.hl, .shine { position: relative; display: inline-block; isolation: isolate; color: var(--neve); }
.hl::after, .shine::after { content: ""; position: absolute; z-index: -1; left: -0.04em; right: -0.06em; bottom: 0.02em; height: 0.2em; border-radius: 0.06em; background: linear-gradient(90deg, var(--rosso), #8A0A0D); box-shadow: 0 0.06em 0.3em rgba(var(--rgb-accento),0.5); transform: skewX(-14deg) scaleX(0); transform-origin: left center; animation: hl .85s 1.05s var(--ease) forwards; }
.hl2::after { animation-delay: 1.35s; }
.phero .shine::after { animation-delay: .5s; height: 0.16em; }
@keyframes hl { to { transform: skewX(-14deg) scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .hl::after, .shine::after { transform: skewX(-14deg) scaleX(1); } }

/* ---------------------------------------------------------------------
   Menu su desktop: la stessa barra dello smartphone, verticale a destra,
   nascosta dietro una linguetta con freccia
   --------------------------------------------------------------------- */
.tabbar { left: auto; bottom: auto; right: 22px; top: 50%; width: 96px; flex-direction: column; gap: 4px; padding: 8px; border-radius: 26px; transform: translate(calc(100% + 60px), -50%); transition: transform .5s var(--ease); }
.tabbar a, .tabbar button { min-height: 74px; flex: none; font-size: 12px; gap: 5px; }
.tabbar svg { width: 24px; height: 24px; }
.tabbar a:not([aria-current="page"]):hover, .tabbar button:not([aria-expanded="true"]):hover { background: var(--ghiaccio); }
body.menu-open .tabbar { transform: translate(0, -50%); }
.menu-toggle { position: fixed; z-index: 72; right: 0; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 10px 18px 12px; border: 0; border-radius: 18px 0 0 18px; background: rgba(252,252,251,0.94); color: var(--blu); font: inherit; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 18px 40px -16px rgba(var(--rgb-scuro),0.55), 0 0 0 1px rgba(var(--rgb-blu),0.1); transition: right .5s var(--ease), border-radius .3s, background .2s; }
.menu-toggle span { writing-mode: vertical-rl; transform: rotate(180deg); }
.menu-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .45s var(--ease); }
.menu-toggle:hover { background: var(--neve); }
.menu-toggle.hint { animation: nudge 1.2s 1.5s var(--ease) 3; }
@keyframes nudge { 0%, 100% { transform: translateY(-50%); } 40% { transform: translate(-8px, -50%); } }
body.menu-open .menu-toggle { right: 128px; border-radius: 18px; }
body.menu-open .menu-toggle svg { transform: rotate(180deg); }
.sheet .panel-s { left: auto; right: 186px; bottom: auto; top: 50%; width: 400px; max-height: 84vh; transform: translate(20px, -50%) scale(.98); }
.sheet.open .panel-s { transform: translate(0, -50%); }
.sheet .scrim { background: rgba(var(--rgb-scuro),0.25); }
.totop { display: grid; right: 24px; bottom: 24px; }
body.menu-open .totop { right: 138px; }

@media (max-width: 1099px) {
  .tabbar { right: 12px; width: 82px; padding: 6px; gap: 3px; border-radius: 22px; transform: translate(calc(100% + 40px), -50%); }
  body.menu-open .tabbar { transform: translate(0, -50%); }
  .tabbar a, .tabbar button { min-height: 66px; font-size: 11px; border-radius: 16px; }
  .menu-toggle { padding: 16px 8px 16px 10px; }
  body.menu-open .menu-toggle { right: 100px; }
  .sheet .panel-s { left: 10px; right: 104px; width: auto; padding: 16px; max-height: calc(100% - 48px); }
  .sheet li a { gap: 10px; padding: 10px; font-size: 15px; min-height: 52px; }
  .sheet li a .ic { width: 34px; height: 34px; border-radius: 10px; }
  .sheet li a small { font-size: 12px; }
  .totop { right: 14px; bottom: max(16px, env(safe-area-inset-bottom, 0px)); }
  body.menu-open .totop { right: 106px; }
  .egg { bottom: calc(max(16px, env(safe-area-inset-bottom, 0px)) + 4px) !important; }
}



/* =====================================================================
   CRITERIO COLORI (sito principale)
   · Blu = tutto ciò che si clicca: pulsanti, menu, schede, link, icone.
   · Rosso = accento: bordi dei box chiari, evidenziazioni, parte dei titoli,
     avanzamento e puntini decorativi.
   · Bianco = testo e bordi sulle parti blu.
   · Titoli: sempre due colori, una parte scura e una chiara, alternando
     A (blu scuro + rosso chiaro) e B (rosso scuro + blu chiaro).
     Su sfondo blu: bianco + rosso chiaro, alternati.
   ===================================================================== */
:root { --cta: var(--blu); --rosso-chiaro: #8A0A0D; --rosso-su-blu: #8A0A0D; }
.nowrap { white-space: nowrap; }

/* pulsanti: sempre blu */
.btn { background: var(--cta); color: #FCFCFB; box-shadow: 0 14px 30px -14px rgba(var(--rgb-blu),0.75); }
.btn:hover { box-shadow: 0 20px 40px -14px rgba(var(--rgb-blu),0.9); }
[data-tone="dark"] .btn { box-shadow: 0 16px 36px -14px rgba(0,0,0,0.5), inset 0 0 0 2px rgba(252,252,251,0.85); }

/* titolini sopra ai titoli: blu su chiaro, bianco su scuro */
.kicker, .sec:not([data-tone]) .kicker, .cfg legend { color: var(--blu); }
.kicker::before { background: var(--blu); box-shadow: 0 0 0 4px rgba(var(--rgb-blu),0.16); }
[data-tone="dark"] .kicker { color: #FCFCFB; }
[data-tone="dark"] .kicker::before { background: #FCFCFB; box-shadow: 0 0 0 4px rgba(255,255,255,0.22); }
.bigtype h3 small, .role small, .other small { color: var(--blu); }
.bigtype h3 small::before { background: var(--rosso); }

/* titoli */
.head h2.h-a, .acta h2.h-a { color: var(--blu-scuro); }
.head h2.h-a em, .acta h2.h-a em { color: var(--rosso-chiaro); }
.head h2.h-b, .acta h2.h-b { color: var(--rosso); }
.head h2.h-b em, .acta h2.h-b em { color: var(--glauco); }
[data-tone="dark"] .head h2.h-a, .acta h2.h-a { color: #FCFCFB; }
[data-tone="dark"] .head h2.h-a em, .acta h2.h-a em { color: var(--rosso-su-blu); }
[data-tone="dark"] .head h2.h-b, .acta h2.h-b { color: var(--rosso-su-blu); }
[data-tone="dark"] .head h2.h-b em, .acta h2.h-b em { color: #FCFCFB; }

/* box chiari: bordo rosso · box blu: bordo bianco */
.card, .feat, .role, .other, .qrow, .stack span, .faq details, .sec .mock, .receipt { border: 1.5px solid rgba(var(--rgb-accento),0.55); }
.faq details { border-width: 1.5px 0 0; }
.faq details:last-child { border-bottom-width: 1.5px; }
.card:hover, .feat:hover, .role:hover { border-color: var(--rosso); box-shadow: 0 28px 56px -28px rgba(var(--rgb-accento),0.35); }
.card::before, .feat::before { background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgba(var(--rgb-accento),0.07), transparent 60%); }
.card::after, .feat::after { background: rgba(var(--rgb-accento),0.3); box-shadow: -18px 14px 0 -2px rgba(var(--rgb-accento),0.3), -30px 0 0 -2.5px rgba(var(--rgb-accento),0.3); }
.card:hover::after, .feat:hover::after { background: var(--rosso); box-shadow: -18px 14px 0 -2px var(--rosso), -30px 0 0 -2.5px var(--rosso); }
.sec.tint .role { border-color: rgba(var(--rgb-accento),0.55); }
[data-tone="dark"] .contacts > div, .cform, .mode, .kpi, .box, .dash, .ticket, .fbox, .editor, .cfg-sum, .appcard, .chips span, .abadge { border: 1.5px solid rgba(255,255,255,0.7); }
.cfg-sum { border-color: transparent; }
.dash-bar, .editor pre { border-color: rgba(255,255,255,0.35); }
.mode.hl { background: rgba(255,255,255,0.14); }

/* interattivi in blu */
.tabs button[aria-selected="true"], .pills input:checked + span, .qty button { background: var(--blu); color: #FCFCFB; }
.qrow.has { border-color: var(--blu); }
.other:hover, .stack span:hover { background: var(--blu); border-color: var(--blu); color: #FCFCFB; }
.faq summary::after { background: var(--ghiaccio); color: var(--blu); }
.faq details[open] summary::after { background: var(--blu); color: #FCFCFB; }
.faq summary:hover, .faq details[open] summary { color: var(--blu); }
.card .more, .ticks li svg { color: var(--blu); }

/* accenti rossi */
.step.on .n { color: var(--rosso); -webkit-text-stroke-color: var(--rosso); }
.step.on::before { background: var(--rosso); border-color: var(--rosso); box-shadow: 0 0 0 6px rgba(var(--rgb-accento),0.14); }
.prog i { background: linear-gradient(90deg, var(--blu), var(--rosso)); }
.feat ul li::before { background: var(--rosso); box-shadow: 0 0 0 3px rgba(var(--rgb-accento),0.12); }
.lead2 strong { color: var(--rosso); }
.bigtype:hover h3 { color: var(--rosso); }
.foot h4 { color: #FCFCFB; }
.cta-sec .big:hover { color: #FCFCFB; text-shadow: 0 0.06em 0 var(--rosso); }

/* pagine delle app: tengono i loro colori */
.app-geba .sec:not([data-tone]) .kicker, .app-fest .sec:not([data-tone]) .kicker, .app-event .sec:not([data-tone]) .kicker,
.app-geba .role small, .app-fest .role small, .app-event .role small { color: var(--blu); }
.app-geba .sec.tint .head h2 em, .app-fest .sec.tint .head h2 em, .app-event .sec.tint .head h2 em { color: var(--blu); }
.app-geba .acta h2 em, .app-fest .acta h2 em, .app-event .acta h2 em { color: var(--blu-chiaro); }
[class*="app-"] .card, [class*="app-"] .feat, [class*="app-"] .role, [class*="app-"] .cform, [class*="app-"] .mode, [class*="app-"] [data-tone="dark"] .contacts > div { border-top-color: var(--blu); }
[class*="app-"] .card:hover, [class*="app-"] .feat:hover, [class*="app-"] .role:hover { border-color: var(--blu); box-shadow: 0 28px 56px -28px rgba(var(--rgb-blu),0.4); }
[class*="app-"] .feat ul li::before, [class*="app-"] .step.on::before { background: var(--blu); }
[class*="app-"] .step.on .n { color: var(--blu); -webkit-text-stroke-color: var(--blu); }
[class*="app-"] .faq details[open] summary::after { background: var(--blu); }
[class*="app-"] .faq details[open] summary, [class*="app-"] .faq summary::after { color: var(--blu); }
[class*="app-"] .faq details[open] summary::after { color: #FCFCFB; }
[class*="app-"] .mode.hl { background: var(--blu); border-color: var(--blu); }
[class*="app-"] .foot h4 { color: var(--blu-chiaro); }
[class*="app-"] .lead2 strong { color: var(--blu); }
@media (max-width: 1099px) { body:has(.sheet.open) .menu-toggle { opacity: 0; pointer-events: none; } }


[class*="app-"] .card, [class*="app-"] .feat, [class*="app-"] .role, [class*="app-"] .faq details, [class*="app-"] .sec .mock, [class*="app-"] .receipt { border-color: rgba(var(--rgb-blu),0.35); }
[class*="app-"] .kicker::before { background: var(--blu); }
[class*="app-"] [data-tone="dark"] .kicker::before { background: var(--blu-chiaro); }
[class*="app-"] .btn { background: var(--blu); }
.app-fest [data-tone="dark"] .btn { background: var(--blu-chiaro); color: var(--blu-scuro); }
[class*="app-"] .card::after, [class*="app-"] .feat::after { background: var(--linea); box-shadow: -18px 14px 0 -2px var(--linea), -30px 0 0 -2.5px var(--linea); }
[class*="app-"] .card:hover::after, [class*="app-"] .feat:hover::after { background: var(--blu); box-shadow: -18px 14px 0 -2px var(--blu-chiaro), -30px 0 0 -2.5px var(--blu-chiaro); }

/* titoli grandi su blu: bianco + rosso chiaro */
.hero h1 .line:first-child span, .phero h1 { color: var(--rosso-su-blu); }
.hl, .shine { color: #FCFCFB; }
.hl::after, .shine::after { background: linear-gradient(90deg, #8A0A0D, var(--rosso)); }
.cta-sec .big { color: #FCFCFB; }
.cta-sec .big svg { color: var(--rosso-su-blu); stroke: currentColor; }
.egg { border: 1.5px solid rgba(var(--rgb-accento),0.55); }
@media (max-width: 760px) {
  .egg.festa { left: 14px; right: 14px; width: auto; max-width: none; transform: translateY(24px) scale(.96); }
  .egg.festa.in { transform: none; }
}

/* =====================================================================
   CRITERIO DEFINITIVO
   · Rosso solo pieno, mai chiaro/rosato.
   · Titoli in testa alle pagine (sfondo blu): bianchi, sottolineatura rossa.
   · Pulsanti: blu su sfondo chiaro, bianchi (testo blu) su sfondo blu.
   ===================================================================== */
:root { --rosso-chiaro: #8A0A0D; --rosso-su-blu: #8A0A0D; }
.hero h1, .hero h1 .line:first-child span, .phero h1, .hl, .shine { color: #FCFCFB; }
.hl::after, .shine::after { background: linear-gradient(90deg, #8A0A0D, #8A0A0D); box-shadow: 0 0.06em 0.3em rgba(0,0,0,0.25); }
.head h2.h-b em, .acta h2.h-b em { color: var(--glauco); }
[data-tone="dark"] .head h2.h-a em, .acta h2.h-a em, [data-tone="dark"] .head h2.h-b { color: var(--rosso-su-blu); }
.cta-sec .big svg { color: var(--rosso-su-blu); }
.foot h4 { color: #FCFCFB; }
[data-tone="dark"] .btn { background: #FCFCFB; color: var(--blu); box-shadow: 0 16px 36px -14px rgba(0,0,0,0.45); }
[data-tone="dark"] .btn:hover { background: #FCFCFB; color: var(--blu-scuro); box-shadow: 0 22px 44px -14px rgba(0,0,0,0.55), 0 0 0 4px rgba(255,255,255,0.22); }
[data-tone="dark"] .btn svg { color: var(--rosso); }
[class*="app-"] [data-tone="dark"] .btn { background: var(--blu); color: #FCFCFB; }
[class*="app-"] [data-tone="dark"] .btn svg { color: currentColor; }
.app-fest [data-tone="dark"] .btn { background: var(--blu-chiaro); color: var(--blu-scuro); }

/* Menu desktop: barra flottante sempre visibile a destra, senza linguetta */
@media (min-width: 1100px) {
  .tabbar, body.menu-open .tabbar { transform: translate(0, -50%); }
  .menu-toggle { display: none !important; }
  .totop, body.menu-open .totop { right: 138px; }
}

/* =====================================================================
   MENU: elenco di pulsanti (pagine e sezioni)
   desktop: barra fissa a destra · tablet/smartphone: esce con la linguetta
   ===================================================================== */
.sheet { display: none !important; }
.tabbar { align-items: stretch; }
.tabbar a, .tabbar button { position: relative; color: var(--blu); background: transparent; border: 0; cursor: pointer; }
.tabbar a:hover, .tabbar button:hover { background: var(--ghiaccio); }
.tabbar a[aria-current="page"], .tabbar a.on { background: var(--blu); color: #FCFCFB; }
.tabbar hr { border: 0; height: 1px; background: var(--linea); margin: 4px 8px; }
.tabbar .up { opacity: .45; }
.tabbar .up.show { opacity: 1; }
.tabbar .tip { display: none; }
.tabbar .lb { font-size: 10.5px; font-weight: 700; line-height: 1.1; }
@media (min-width: 1100px) {
  .tabbar { width: auto; right: 22px; padding: 7px; gap: 6px; border-radius: 26px; }
  .tabbar a, .tabbar button { width: 52px; min-height: 52px; height: 52px; padding: 0; border-radius: 16px; background: #FCFCFB; box-shadow: 0 0 0 1px rgba(var(--rgb-blu),0.08); }
  .tabbar a:hover, .tabbar button:hover { background: var(--ghiaccio); }
  .tabbar a[aria-current="page"], .tabbar a.on { background: var(--blu); color: #FCFCFB; box-shadow: 0 10px 22px -10px rgba(var(--rgb-blu),0.8); }
  .tabbar .lb { display: none; }
  .tabbar .tip { display: block; position: absolute; right: calc(100% + 14px); top: 50%; transform: translate(6px, -50%); white-space: nowrap; padding: 7px 12px; border-radius: 10px; background: var(--blu-scuro); color: #FCFCFB; font-size: 13px; font-weight: 700; opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s var(--ease); }
  .tabbar a:hover .tip, .tabbar button:hover .tip, .tabbar a:focus-visible .tip { opacity: 1; transform: translate(0, -50%); }
  .tabbar hr { margin: 2px 6px; }
  .totop { display: none !important; }
}
@media (max-width: 1099px) {
  .tabbar { width: 80px; }
  .tabbar a, .tabbar button { min-height: 58px; gap: 4px; }
  .tabbar svg { width: 21px; height: 21px; }
}

/* =====================================================================
   SOLO PALETTE (sito principale)
   #283890 blu · #7683C2 glauco · #8A0A0D rosso · #2A0606 mogano · #FCFCFB neve
   Titoli: solo blu e rosso pieni (su chiaro) · neve e rosso (su blu)
   ===================================================================== */
:root {
  --blu-scuro: #283890; --blu-chiaro: #7683C2; --bianco: #FCFCFB;
  --rosso-chiaro: #8A0A0D; --rosso-su-blu: #8A0A0D;
  --ghiaccio: color-mix(in srgb, #283890 7%, #FCFCFB);
  --linea: color-mix(in srgb, #283890 14%, #FCFCFB);
  --testo-2: color-mix(in srgb, #2A0606 72%, #FCFCFB);
}
.head h2.h-a, .acta h2.h-a { color: #283890; }
.head h2.h-a em, .acta h2.h-a em { color: #8A0A0D; }
.head h2.h-b, .acta h2.h-b { color: #8A0A0D; }
.head h2.h-b em, .acta h2.h-b em { color: #283890; }
[data-tone="dark"] .head h2.h-a { color: #FCFCFB; }
[data-tone="dark"] .head h2.h-a em { color: #8A0A0D; }
[data-tone="dark"] .head h2.h-b { color: #8A0A0D; }
[data-tone="dark"] .head h2.h-b em { color: #FCFCFB; }
.hero h1, .phero h1, .hl, .shine, .cta-sec .big { color: #FCFCFB; }
.hl::after, .shine::after { background: #8A0A0D; }
.cta-sec .big svg { color: #8A0A0D; }
.bigtype h3, .steps h3, .step h3 { color: #283890; }
.bigtype:hover h3 { color: #8A0A0D; }
.tabbar .tip { background: #283890; }

/* rosso su sfondo blu: contorno neve per renderlo leggibile */
[data-tone="dark"] .head h2.h-a em, [data-tone="dark"] .head h2.h-b > :not(em), [data-tone="dark"] .head h2.h-b .r,
.cta-sec .big svg {
  --o: 0.035em;
}
[data-tone="dark"] .head h2.h-a em, [data-tone="dark"] .head h2 .r {
  color: #8A0A0D;
  text-shadow:
    var(--o) 0 0 #FCFCFB, calc(var(--o) * -1) 0 0 #FCFCFB, 0 var(--o) 0 #FCFCFB, 0 calc(var(--o) * -1) 0 #FCFCFB,
    var(--o) var(--o) 0 #FCFCFB, calc(var(--o) * -1) var(--o) 0 #FCFCFB, var(--o) calc(var(--o) * -1) 0 #FCFCFB, calc(var(--o) * -1) calc(var(--o) * -1) 0 #FCFCFB,
    0 0.08em 0.3em rgba(42,6,6,0.45);
  --o: 0.026em;
}
.cta-sec .big svg { filter: drop-shadow(1.5px 0 0 #FCFCFB) drop-shadow(-1.5px 0 0 #FCFCFB) drop-shadow(0 1.5px 0 #FCFCFB) drop-shadow(0 -1.5px 0 #FCFCFB); }
[data-tone="dark"] .head h2.h-b {
  --o: 0.026em;
  text-shadow:
    var(--o) 0 0 #FCFCFB, calc(var(--o) * -1) 0 0 #FCFCFB, 0 var(--o) 0 #FCFCFB, 0 calc(var(--o) * -1) 0 #FCFCFB,
    var(--o) var(--o) 0 #FCFCFB, calc(var(--o) * -1) var(--o) 0 #FCFCFB, var(--o) calc(var(--o) * -1) 0 #FCFCFB, calc(var(--o) * -1) calc(var(--o) * -1) 0 #FCFCFB,
    0 0.08em 0.3em rgba(42,6,6,0.45);
}
[data-tone="dark"] .head h2.h-b em { text-shadow: none; }

/* IoTi a tutto schermo */
.love-fx { position: fixed; inset: 0; z-index: 95; width: 100%; height: 100%; cursor: pointer; opacity: 0; transition: opacity .5s; }
.love-fx.on { opacity: 1; }
.love-cap { position: fixed; z-index: 96; left: 50%; bottom: max(36px, env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 30px) scale(.9); opacity: 0; display: flex; align-items: center; gap: 14px; padding: 12px 26px; border-radius: 999px; background: rgba(252,252,251,0.96); box-shadow: 0 20px 60px -10px rgba(138,10,13,0.6), 0 0 0 2px #8A0A0D; transition: opacity .6s var(--ease), transform .7s var(--ease); cursor: pointer; }
.love-cap.in { opacity: 1; transform: translate(-50%, 0) scale(1); }
.love-word { font-weight: 900; font-stretch: 80%; font-size: 34px; letter-spacing: -0.01em; color: #283890; text-transform: none; }
.love-h { font-size: 30px; display: inline-block; animation: beat 1s ease-in-out infinite; }

/* smartphone e tablet: torna su solo nel menu */
@media (max-width: 1099px) { .totop { display: none !important; } }
