/* ==========================================================================
   Totaliweb · stile delle pagine (header, hero con chat, sezioni, dock,
   footer, pagine legali). Token, bottoni e blocchi sono in blocks.css,
   che va caricato prima di questo file.
   ========================================================================== */

/* ---------- 1. Token di pagina ---------- */
:root {
  --header-h: 76px;
  --gutter: clamp(16px, 3vw, 40px);
  --reflow: .8s cubic-bezier(.65, 0, .25, 1);
}

@property --chat-w { syntax: "<length>"; inherits: true; initial-value: 450px; }
@property --toti-col { syntax: "<length>"; inherits: true; initial-value: 250px; }
@property --ts { syntax: "<number>"; inherits: true; initial-value: 1; }

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  background: var(--tw-bg);
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--tw-text);
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(108, 63, 224, .22), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(242, 106, 31, .12), transparent 60%),
    var(--tw-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { cursor: default; }
svg { display: block; }
img { max-width: 100%; }
a { color: var(--tw-orange-hi); }

::selection { background: rgba(242, 106, 31, .45); color: #fff; }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--tw-orange-hi); outline-offset: 3px; }

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  padding: 10px 16px; border-radius: 999px;
  background: var(--tw-cream-hi); color: var(--tw-ink); font-weight: 700; text-decoration: none;
  transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: 1360px; margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 880px; }

.scroll-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 24px; pointer-events: none; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px; border-radius: 12px;
  color: var(--tw-muted);
  transition: background .2s, color .2s, transform .2s;
}
.icon-btn:hover { background: rgba(255, 255, 255, .08); color: var(--tw-text); }
.icon-btn .ico { font-size: 19px; }

.link-btn {
  color: var(--tw-cream); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(248, 203, 140, .45);
  font-size: inherit; font-weight: 600;
}
.link-btn:hover { color: var(--tw-cream-hi); text-decoration-color: currentColor; }

/* icone statiche: stessa misura prima e dopo il disegno (vedi [data-icon]:empty in blocks.css) */
.icon-btn [data-icon] { font-size: 19px; }
.account-link [data-icon] { font-size: 17px; }
.az__ask [data-icon], .chip [data-icon] { font-size: 14px; }
.thread__start [data-icon], .shelf__link [data-icon], .footer__cookie [data-icon] { font-size: 13px; }
.composer__send [data-icon] { font-size: 20px; }
.kicker [data-icon], .phases__title [data-icon] { font-size: 15px; }
.footer__links [data-icon] { font-size: 12px; }
.page-header__back [data-icon] { font-size: 16px; }

.grad-text {
  background: var(--grad-text);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: gradShift 9s ease-in-out infinite alternate;
  padding-bottom: .06em;
}

/* ---------- 3. Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  height: var(--header-h);
  transition: height .35s var(--ease-out);
}
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(11, 7, 22, .62), rgba(11, 7, 22, .38));
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  transition: background .35s, border-color .35s, box-shadow .35s;
}
.site-header.is-scrolled { height: 62px; }
.site-header.is-scrolled::before {
  background: rgba(11, 7, 22, .82);
  border-bottom-color: rgba(255, 255, 255, .1);
  box-shadow: 0 12px 40px -18px rgba(0, 0, 0, .8);
}
.site-header__inner { height: 100%; display: flex; align-items: center; gap: 20px; }

.brand { display: inline-flex; align-items: center; flex: none; text-decoration: none; color: var(--tw-text); border-radius: 12px; }
.brand__logo { display: inline-flex; align-items: center; height: 36px; transition: transform .35s var(--ease-out); transform-origin: left center; }
.brand__logo svg, .brand__logo img { display: block; height: 100%; width: auto; }
.site-header.is-scrolled .brand__logo { transform: scale(.88); }

.site-nav { flex: 1; display: flex; align-items: center; justify-content: center; min-width: 0; }
.site-nav__list { list-style: none; display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .07); }
.nav-link {
  position: relative; display: inline-flex; align-items: center;
  padding: 8px 14px; border-radius: 999px;
  font-size: 14.5px; font-weight: 600; color: var(--tw-muted); text-decoration: none; white-space: nowrap;
  transition: color .2s, background .2s;
}
.nav-link:hover, .nav-link:focus-visible { color: var(--tw-text); background: rgba(255, 255, 255, .08); }
.nav-link::after {
  content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%;
  background: var(--tw-orange-hi); opacity: 0; transform: scale(0); transition: transform .25s var(--ease-spring), opacity .2s;
}
.nav-link:hover::after, .nav-link.is-current::after { opacity: 1; transform: scale(1); }
.nav-link.is-current { color: var(--tw-text); }

.site-header__actions { display: flex; align-items: center; gap: 10px; flex: none; }
.account-link {
  display: inline-flex; align-items: center; gap: 7px;
  height: 40px; padding: 0 14px; border-radius: 999px;
  font-size: 14px; font-weight: 700; color: var(--tw-text); text-decoration: none; white-space: nowrap;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .14);
  transition: background .2s, border-color .2s;
}
.account-link:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .28); }
.account-link .ico { font-size: 17px; color: var(--tw-cream); }
.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  height: 32px; padding: 0 12px 0 10px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .02em; color: var(--tw-text); white-space: nowrap;
  background: rgba(61, 220, 151, .08); border: 1px solid rgba(61, 220, 151, .28);
}
.status-pill__dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--tw-success); flex: none; display: inline-block; }
.status-pill__dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--tw-success); opacity: 0; animation: ping 2.2s var(--ease-out) infinite; }
.status-pill.is-off { background: rgba(255, 181, 71, .08); border-color: rgba(255, 181, 71, .3); }
.status-pill.is-off .status-pill__dot { background: var(--tw-warn); }
.status-pill.is-off .status-pill__dot::after { display: none; }
.status-pill.is-busy .status-pill__dot { background: var(--tw-orange-hi); }
.status-pill.is-busy .status-pill__dot::after { border-color: var(--tw-orange-hi); animation-duration: 1s; }
.btn--cta { --btn-h: 42px; }

.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); place-items: center; }
.menu-toggle__bars { position: relative; width: 18px; height: 12px; display: block; }
.menu-toggle__bars span { position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: var(--tw-text); transition: transform .3s var(--ease-out), top .3s var(--ease-out); }
.menu-toggle__bars span:first-child { top: 1px; }
.menu-toggle__bars span:last-child { top: 9px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:first-child { top: 5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:last-child { top: 5px; transform: rotate(-45deg); }

.menu-sheet { position: fixed; inset: var(--header-h) 0 0 0; z-index: 59; padding: 10px var(--gutter); overflow-y: auto; background: rgba(5, 3, 12, .62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.site-header.is-scrolled .menu-sheet { top: 62px; }
.menu-sheet__panel {
  border-radius: var(--r-xl); padding: 18px;
  background: linear-gradient(180deg, #1F133E, #110A24);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8);
  animation: sheetIn .28s var(--ease-out);
}
.menu-sheet__kicker { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--tw-muted); margin: 2px 4px 10px; }
.menu-sheet__list { list-style: none; display: grid; gap: 6px; margin-bottom: 14px; }
.menu-sheet__link {
  width: 100%; display: flex; align-items: center; gap: 12px;
  padding: 13px 14px; border-radius: 16px; text-align: left; text-decoration: none;
  font: 700 18px/1.2 var(--font-display); color: var(--tw-text);
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .07);
}
.menu-sheet__link:hover { background: rgba(255, 255, 255, .08); }
.menu-sheet__link > [data-icon]:first-child { width: 34px; height: 34px; border-radius: 10px; background: rgba(242, 106, 31, .14); color: var(--tw-orange-hi); font-size: 18px; }
.menu-sheet__arrow { margin-left: auto; color: var(--tw-muted); }
.menu-sheet__status { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 13px; color: var(--tw-muted); justify-content: center; }

/* ---------- 4. Hero: sfondo ---------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: var(--header-h);
  display: flex; flex-direction: column;
  overflow-x: clip;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora { position: absolute; border-radius: 50%; will-change: transform; }
.aurora--a {
  width: 70vmax; height: 70vmax; top: -34vmax; left: -18vmax;
  background: radial-gradient(closest-side, rgba(108, 63, 224, .55), rgba(108, 63, 224, .16) 55%, transparent);
  animation: driftA 28s ease-in-out infinite alternate;
}
.aurora--b {
  width: 62vmax; height: 62vmax; bottom: -36vmax; right: -16vmax;
  background: radial-gradient(closest-side, rgba(242, 106, 31, .38), rgba(242, 106, 31, .1) 55%, transparent);
  animation: driftB 34s ease-in-out infinite alternate;
}
.aurora--c {
  width: 44vmax; height: 44vmax; top: 18%; left: 38%;
  background: radial-gradient(closest-side, rgba(142, 104, 255, .22), rgba(248, 203, 140, .06) 60%, transparent);
  animation: driftC 24s ease-in-out infinite alternate;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 10%, transparent 75%);
}
.hero__grain {
  position: absolute; inset: -50%;
  opacity: .08; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.hero__vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(5, 3, 12, .55) 100%),
    linear-gradient(180deg, transparent 75%, rgba(11, 7, 22, .7) 100%);
}

/* ---------- 5. Hero: layout e testi ---------- */
.hero__inner {
  --tw0: 210px;
  --th0: 280px;
  --chat-w: 450px;
  --toti-col: 250px;
  --ts: .95;
  --stage-gap: 6px;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) calc(var(--toti-col) + var(--stage-gap) + var(--chat-w));
  align-items: center;
  column-gap: clamp(24px, 3vw, 48px);
  padding-block: clamp(20px, 4vh, 44px) clamp(16px, 3vh, 32px);
  transition: --chat-w var(--reflow), --toti-col var(--reflow), --ts var(--reflow);
}
.hero__copy { min-width: 0; max-width: 640px; }

.eyebrow {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 8px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  font-size: 13px; font-weight: 600; letter-spacing: .01em; color: var(--tw-cream-hi);
  background: linear-gradient(90deg, rgba(242, 106, 31, .14), rgba(108, 63, 224, .12));
  border: 1px solid rgba(255, 140, 66, .28);
  animation: rise .8s var(--ease-out) both;
}
.eyebrow__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--tw-orange-hi); box-shadow: 0 0 0 4px rgba(255, 140, 66, .18), 0 0 14px rgba(255, 140, 66, .9); animation: breathe 2.4s ease-in-out infinite; }
.eyebrow__sep { color: rgba(255, 227, 184, .45); }

.hero__title {
  margin-top: 22px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, .9rem + 4vw, 5.4rem);
  line-height: .98;
  letter-spacing: -.035em;
  font-variation-settings: "opsz" 96;
  color: var(--tw-text);
  text-wrap: balance;
  transition: font-size var(--reflow), margin var(--reflow);
}
.hero__line { display: block; animation: rise .9s var(--ease-out) both; }
.hero__line:nth-child(1) { animation-delay: .08s; }
.hero__line:nth-child(2) { animation-delay: .18s; }

.hero__sub {
  margin-top: 22px;
  max-width: 560px;
  font-size: clamp(1rem, .92rem + .3vw, 1.15rem);
  line-height: 1.6;
  color: var(--tw-muted);
  animation: rise .9s .28s var(--ease-out) both;
  transition: opacity .5s, max-height var(--reflow), margin var(--reflow);
  max-height: 12em;
}
.hero__sub strong { color: var(--tw-text); font-weight: 700; }

.trust { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; animation: rise .9s .36s var(--ease-out) both; }
.trust__item {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px 5px 5px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; color: var(--tw-text); white-space: nowrap;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1);
}
.trust__icon { width: 24px; height: 24px; border-radius: 50%; color: var(--tw-orange-hi); background: rgba(242, 106, 31, .14); font-size: 15px; }
.trust__item:nth-child(2) .trust__icon { color: var(--tw-violet-hi); background: rgba(108, 63, 224, .2); }
.trust__item:nth-child(3) .trust__icon { color: var(--tw-cream); background: rgba(248, 203, 140, .14); }

/* ---------- 6. AI dalla A alla Z ---------- */
.az {
  position: relative;
  margin-top: 26px;
  max-width: 540px;
  padding: 14px 16px 14px;
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
  border: 1px solid rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  animation: rise .9s .44s var(--ease-out) both;
  overflow: hidden;
  container-type: inline-size;
}
.az::before {
  content: ""; position: absolute; left: 0; top: 0; height: 2px; width: var(--az-p, 4%);
  background: linear-gradient(90deg, var(--tw-violet-hi), var(--tw-orange-hi));
  transition: width .6s var(--ease-out);
}
.az__head { display: flex; align-items: center; gap: 10px; }
.az__kicker { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .16em; color: var(--tw-muted); }
.az__kicker b { color: var(--tw-text); }
.az__kicker-ai { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.az__count { margin-left: auto; font: 600 11.5px/1 var(--font-mono); color: rgba(184, 172, 216, .75); }
.az__pause { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; color: var(--tw-muted); font-size: 13px; background: rgba(255, 255, 255, .05); }
.az__pause:hover { color: var(--tw-text); background: rgba(255, 255, 255, .1); }
.az__main { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; align-items: center; gap: 14px; margin: 8px 0 12px; min-height: 64px; }
.az__letter {
  display: block; text-align: center;
  font: 800 58px/1 var(--font-display);
  letter-spacing: -.04em;
  background: linear-gradient(160deg, var(--tw-cream-hi), var(--tw-orange-hi) 45%, var(--tw-violet-hi));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 18px rgba(242, 106, 31, .35));
}
.az__title { font: 700 20px/1.15 var(--font-display); letter-spacing: -.01em; color: var(--tw-text); }
.az__desc { font-size: 13.5px; color: var(--tw-muted); margin-top: 3px; line-height: 1.4; }
.az__ask {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; color: var(--tw-cream-hi);
  background: rgba(242, 106, 31, .12); border: 1px solid rgba(255, 140, 66, .35);
  transition: background .2s, transform .2s;
}
.az__ask:hover { background: rgba(242, 106, 31, .22); transform: translateY(-1px); }
.az__ask .ico { font-size: 14px; }
.az.is-swap .az__letter { animation: letterIn .65s var(--ease-out) both; }
.az.is-swap .az__title, .az.is-swap .az__desc { animation: fadeUp .55s .06s var(--ease-out) both; }
@container (max-width: 440px) {
  .az__main { grid-template-columns: 50px minmax(0, 1fr); row-gap: 8px; }
  .az__letter { font-size: 50px; }
  .az__ask { grid-column: 2; justify-self: start; }
  .az__track span { font-size: 9.5px; }
}
.az__track { display: grid; grid-template-columns: repeat(26, minmax(0, 1fr)); gap: 2px; }
.az__track span {
  text-align: center; padding: 3px 0; border-radius: 6px; cursor: pointer;
  font: 700 10.5px/1.2 var(--font-body); color: rgba(247, 242, 255, .26);
  transition: color .35s, background .35s, transform .35s var(--ease-spring);
}
.az__track span.is-past { color: rgba(248, 203, 140, .6); }
.az__track span.is-on { color: var(--tw-ink); background: var(--grad-brand); transform: translateY(-1px) scale(1.12); }

/* ---------- 7. Palco della mascotte ---------- */
.hero__stage {
  position: relative;
  display: grid;
  grid-template-columns: var(--toti-col) var(--chat-w);
  column-gap: var(--stage-gap);
  align-items: end;
  justify-content: end;
  min-width: 0;
}
.toti-stage {
  position: relative;
  align-self: end;
  justify-self: center;
  width: calc(var(--tw0) * var(--ts));
  height: calc(var(--th0) * var(--ts) + 26px);
  margin-bottom: 12px;
  z-index: 3;
}
.toti-stage__halo {
  position: absolute; left: 50%; bottom: 10px;
  width: 190%; aspect-ratio: 1; transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 140, 66, .3), rgba(108, 63, 224, .22) 45%, transparent 72%);
  pointer-events: none;
  animation: haloPulse 6s ease-in-out infinite;
}
.toti-stage__body { position: absolute; left: 0; right: 0; bottom: 26px; top: 0; z-index: 2; }
.toti-holder {
  position: absolute; left: 50%; bottom: 0;
  width: var(--tw0); height: var(--th0);
  transform: translateX(-50%) scale(var(--ts));
  transform-origin: 50% 100%;
  display: flex; align-items: flex-end; justify-content: center;
  filter: drop-shadow(0 22px 30px rgba(11, 7, 22, .55));
}
.toti-holder > * { flex: none; }
.toti-holder > img { width: 210px; height: 280px; object-fit: cover; object-position: 50% 30%; }
.toti-stage__pedestal {
  position: absolute; left: 50%; bottom: 0; z-index: 1;
  width: calc(var(--tw0) * var(--ts) * 1.15); height: 52px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 140, 66, .55), rgba(108, 63, 224, .3) 55%, transparent);
}
.ring {
  position: absolute; inset: 6px 4%;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 140, 66, .55);
  opacity: 0;
  animation: ringOut 4.5s var(--ease-out) infinite;
}
.ring--2 { animation-delay: 1.5s; border-color: rgba(142, 104, 255, .55); }
.ring--3 { animation-delay: 3s; border-color: rgba(248, 203, 140, .45); }

.toti-bubble {
  position: absolute; z-index: 4;
  left: auto; right: 2%; bottom: calc(var(--th0) * var(--ts) + 34px);
  width: max-content; max-width: min(250px, 92vw);
  padding: 11px 15px;
  border-radius: 18px 18px 6px 18px;
  font-size: 14px; font-weight: 700; line-height: 1.35; color: var(--tw-ink);
  background: linear-gradient(160deg, #FFF1DC, var(--tw-cream-hi) 50%, var(--tw-cream));
  box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .5) inset;
  transform-origin: calc(100% - 18px) 100%;
  transform: scale(.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease-out), transform .45s var(--ease-spring), visibility 0s .3s;
  pointer-events: none;
}
.toti-bubble::after {
  content: ""; position: absolute; right: 30px; bottom: -8px;
  width: 16px; height: 16px;
  background: var(--tw-cream);
  transform: skewX(22deg) rotate(12deg);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}
.toti-bubble.is-on { opacity: 1; visibility: visible; transform: scale(1); transition: opacity .3s var(--ease-out), transform .5s var(--ease-spring), visibility 0s; }

/* ---------- 8. Chat ---------- */
.chat-slot { position: relative; min-width: 0; }
.chat-slot__placeholder {
  display: grid; place-content: center; justify-items: center; gap: 12px;
  height: clamp(500px, calc(100svh - var(--header-h) - 170px), 660px);
  padding: 24px; text-align: center;
  border-radius: var(--r-xl);
  border: 1.5px dashed rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .025);
  color: var(--tw-muted); font-size: 14px;
}
.chat-slot__placeholder .ico { font-size: 28px; color: var(--tw-orange-hi); }

.chat {
  position: relative;
  z-index: 2;
  width: var(--chat-w);
  max-width: 100%;
  height: clamp(500px, calc(100svh - var(--header-h) - 170px), 660px);
  display: flex; flex-direction: column;
  border-radius: var(--r-xl);
  background:
    radial-gradient(120% 60% at 100% 0%, rgba(108, 63, 224, .18), transparent 60%),
    radial-gradient(90% 50% at 0% 100%, rgba(242, 106, 31, .1), transparent 60%),
    linear-gradient(180deg, rgba(30, 18, 60, .82), rgba(14, 8, 30, .9));
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  backdrop-filter: blur(22px) saturate(150%);
  box-shadow:
    0 40px 100px -30px rgba(0, 0, 0, .85),
    0 30px 90px -40px rgba(108, 63, 224, .7),
    inset 0 1px 0 rgba(255, 255, 255, .08);
  animation: chatIn 1s .2s var(--ease-out) both;
  transition: height var(--reflow), box-shadow .5s;
  outline: none;
}
.chat::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(150deg, rgba(255, 140, 66, .75), rgba(142, 104, 255, .35) 30%, rgba(255, 255, 255, .06) 55%, rgba(142, 104, 255, .5) 85%, rgba(255, 140, 66, .4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.chat::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; opacity: 0;
  box-shadow: 0 0 0 1px rgba(255, 140, 66, .5), 0 0 60px -10px rgba(255, 140, 66, .55);
  transition: opacity .5s;
}
.chat.is-thinking::after { opacity: 1; animation: thinkGlow 1.6s ease-in-out infinite; }
.chat:focus-visible { box-shadow: 0 0 0 3px rgba(255, 140, 66, .6), 0 40px 100px -30px rgba(0, 0, 0, .85); }
.chat.is-flash { animation: chatFlash .9s var(--ease-out); }

.chat__head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  flex: none;
}
.chat__avatar {
  position: relative; flex: none;
  width: 42px; height: 42px; border-radius: 14px;
  display: grid; place-items: center;
  background: radial-gradient(circle at 30% 25%, rgba(255, 140, 66, .3), rgba(108, 63, 224, .25));
  border: 1px solid rgba(255, 255, 255, .14);
  overflow: hidden;
}
.chat__avatar img { width: 34px; height: 34px; }
.chat__avatar::after { content: ""; position: absolute; right: 3px; bottom: 3px; width: 9px; height: 9px; border-radius: 50%; background: var(--tw-success); box-shadow: 0 0 0 2px #1b1038; }
.chat__id { min-width: 0; flex: 1; }
.chat__name { font: 700 15.5px/1.2 var(--font-display); letter-spacing: -.01em; color: var(--tw-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat__role { font-family: var(--font-body); font-weight: 600; font-size: 13px; color: var(--tw-muted); }
.chat__status { display: flex; flex-wrap: wrap; row-gap: 4px; align-items: center; gap: 7px; margin-top: 4px; font-size: 12px; font-weight: 600; color: var(--tw-success); white-space: nowrap; }
.chat__online { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; animation: breathe 2.4s ease-in-out infinite; }
.chat.is-thinking .chat__status { color: var(--tw-orange-hi); }
.ai-badge {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 5px;
  margin-left: 4px; padding: 2px 8px 2px 6px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .02em; color: var(--tw-cream-hi);
  background: rgba(108, 63, 224, .16); border: 1px solid rgba(142, 104, 255, .38);
}
.ai-badge__icon { font-size: 12px; color: var(--tw-violet-hi); }
.chat.is-thinking .ai-badge::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 140, 66, .35) 50%, transparent 80%);
  animation: sweep 1.1s linear infinite;
}
.chat__close { display: none; margin-left: 2px; }

.lead-ring { display: flex; align-items: center; gap: 8px; flex: none; }
.lead-ring__label { font-size: 11.5px; font-weight: 700; color: var(--tw-muted); text-transform: uppercase; letter-spacing: .1em; }
.lead-ring__dial { position: relative; width: 42px; height: 42px; display: grid; place-items: center; }
.lead-ring__dial > svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.lead-ring__track { fill: none; stroke: rgba(255, 255, 255, .1); stroke-width: 3.5; }
.lead-ring__fill { fill: none; stroke: url(#leadGrad); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 0 100; transition: stroke-dasharray 1s var(--ease-out); }
.lead-ring__value { position: relative; display: inline-flex; align-items: center; justify-content: center; font: 800 11px/1 var(--font-body); color: var(--tw-text); font-variant-numeric: tabular-nums; }
.lead-ring__value .ico { stroke-width: 2.6; }
.lead-ring__value.is-full { font-size: 9.5px; letter-spacing: -.03em; }
.lead-ring.is-bump .lead-ring__dial { animation: bump .6s var(--ease-spring); }
.lead-ring.is-sent .lead-ring__fill { stroke: var(--tw-success); }
.lead-ring.is-sent .lead-ring__value { color: var(--tw-success); font-size: 17px; }

.chat__log {
  position: relative;
  flex: 1; min-height: 0;
  overflow-y: auto; overflow-x: hidden;
  overscroll-behavior: contain;
  padding: 16px 16px 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .16) transparent;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 16px, #000 calc(100% - 10px), transparent);
  mask-image: linear-gradient(180deg, transparent 0, #000 16px, #000 calc(100% - 10px), transparent);
}
.chat__log::-webkit-scrollbar { width: 8px; }
.chat__log::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .14); border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }
.chat__log:focus-visible { outline-offset: -3px; }
.chat__thread { display: flex; flex-direction: column; justify-content: flex-end; gap: 16px; min-height: 100%; }
.thread__start { display: flex; align-items: center; gap: 10px; margin: 0 6px 2px; font-size: 11.5px; font-weight: 600; color: rgba(184, 172, 216, .78); text-align: center; }
.thread__start::before, .thread__start::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .14)); }
.thread__start::after { background: linear-gradient(270deg, transparent, rgba(255, 255, 255, .14)); }
.thread__start .ico { font-size: 13px; color: var(--tw-violet-hi); margin-right: -4px; }
.thread__restored { font-size: 11.5px; font-weight: 600; color: rgba(184, 172, 216, .7); text-align: center; }

/* messaggi */
.msg { display: flex; gap: 10px; min-width: 0; animation: msgIn .5s var(--ease-out) both; }
.msg__avatar {
  flex: none; width: 30px; height: 30px; border-radius: 10px; margin-top: 2px;
  display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 30% 25%, rgba(255, 140, 66, .28), rgba(108, 63, 224, .22));
  border: 1px solid rgba(255, 255, 255, .12);
}
.msg__avatar img { width: 25px; height: 25px; }
.msg__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.msg--user { justify-content: flex-end; }
.msg--user .msg__bubble {
  max-width: 84%;
  padding: 10px 15px;
  border-radius: 18px 18px 6px 18px;
  font-size: 15px; font-weight: 600; line-height: 1.45;
  color: var(--tw-ink);
  background: linear-gradient(135deg, #FFA261, var(--tw-orange-hi) 35%, var(--tw-orange));
  box-shadow: 0 12px 30px -14px rgba(242, 106, 31, .9), inset 0 1px 0 rgba(255, 255, 255, .4);
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.msg--user .msg__bubble.is-action::before { content: "↳ "; opacity: .55; }
.msg.is-restored { animation: none; }

/* valutazione della risposta */
.feedback { display: flex; align-items: center; gap: 4px; margin-top: -4px; font-size: 11.5px; color: rgba(184, 172, 216, .75); }
.feedback__label { margin-right: 4px; }
.feedback__btn { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font-size: 15px; color: var(--tw-muted); transition: background .2s, color .2s; }
.feedback__btn:hover { background: rgba(255, 255, 255, .08); color: var(--tw-text); }
.feedback__btn[aria-pressed="true"] { color: var(--tw-ink); background: var(--tw-cream); }
.feedback.is-done .feedback__btn:not([aria-pressed="true"]) { display: none; }

/* traccia di ragionamento */
.trace {
  align-self: flex-start;
  max-width: 100%;
  font-size: 12.5px; color: var(--tw-muted);
  border-radius: 14px;
  background: rgba(108, 63, 224, .1);
  border: 1px solid rgba(142, 104, 255, .22);
  overflow: hidden;
  animation: msgIn .35s var(--ease-out) both;
}
.trace__head { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 12px; text-align: left; font-weight: 700; color: inherit; }
.trace__head[disabled] { cursor: default; }
.trace__spin { width: 14px; height: 14px; flex: none; border-radius: 50%; border: 2px solid rgba(142, 104, 255, .35); border-top-color: var(--tw-orange-hi); animation: spin .8s linear infinite; }
.trace__ok { width: 16px; height: 16px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(61, 220, 151, .16); color: var(--tw-success); font-size: 11px; }
.trace__chev { margin-left: auto; font-size: 13px; transition: transform .3s; opacity: .7; }
.trace.is-open .trace__chev { transform: rotate(180deg); }
.trace__steps { list-style: none; padding: 0 12px 9px 12px; display: grid; gap: 4px; }
.trace.is-done:not(.is-open) .trace__steps { display: none; }
.trace__step { display: flex; align-items: center; gap: 8px; opacity: .45; transition: opacity .25s; }
.trace__step .trace__mark { width: 14px; height: 14px; flex: none; border-radius: 50%; border: 1.5px solid rgba(184, 172, 216, .5); display: grid; place-items: center; font-size: 10px; color: transparent; transition: all .25s; }
.trace__step.is-active { opacity: 1; }
.trace__step.is-active .trace__mark { border-color: var(--tw-orange-hi); border-top-color: transparent; animation: spin .7s linear infinite; }
.trace__step.is-done { opacity: .9; }
.trace__step.is-done .trace__mark { background: var(--tw-success); border-color: var(--tw-success); color: var(--tw-ink); animation: pop .35s var(--ease-spring); }
.shimmer {
  background: linear-gradient(90deg, var(--tw-muted) 0%, var(--tw-muted) 35%, #fff 50%, var(--tw-muted) 65%, var(--tw-muted) 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 1.5s linear infinite;
}
.typing-dots { display: inline-flex; gap: 3px; margin-left: 2px; }
.typing-dots i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; animation: dot 1s ease-in-out infinite; }
.typing-dots i:nth-child(2) { animation-delay: .15s; }
.typing-dots i:nth-child(3) { animation-delay: .3s; }

/* chip + composer */
.chat__dock { flex: none; padding: 6px 14px 12px; border-top: 1px solid rgba(255, 255, 255, .06); background: linear-gradient(180deg, rgba(11, 7, 22, 0), rgba(11, 7, 22, .35)); border-radius: 0 0 var(--r-xl) var(--r-xl); }
.chips { display: flex; flex-wrap: wrap; gap: 7px; padding: 6px 0 10px; min-height: 0; }
.chips:empty { padding: 0; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  max-width: 100%;
  padding: 7px 13px; border-radius: 999px;
  font-size: 13px; font-weight: 650; line-height: 1.25; color: var(--tw-text); text-align: left;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  transition: background .2s, border-color .2s, transform .25s var(--ease-out), color .2s;
  animation: chipIn .45s var(--ease-out) both;
}
.chip:hover { background: rgba(255, 255, 255, .11); border-color: rgba(255, 255, 255, .28); transform: translateY(-1px); }
.chip .ico { font-size: 14px; color: var(--tw-orange-hi); }
.chip--primary { color: var(--tw-cream-hi); background: linear-gradient(135deg, rgba(255, 140, 66, .24), rgba(242, 106, 31, .1)); border-color: rgba(255, 140, 66, .55); }
.chip--primary:hover { background: linear-gradient(135deg, rgba(255, 140, 66, .34), rgba(242, 106, 31, .16)); border-color: var(--tw-orange-hi); }

.composer__box {
  position: relative;
  display: flex; align-items: flex-end; gap: 6px;
  padding: 6px 6px 6px 16px;
  border-radius: 18px;
  background: rgba(8, 4, 20, .62);
  border: 1px solid rgba(255, 255, 255, .14);
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.composer__box:focus-within { border-color: rgba(255, 140, 66, .65); box-shadow: 0 0 0 4px rgba(242, 106, 31, .14), 0 0 40px -12px rgba(242, 106, 31, .55); background: rgba(8, 4, 20, .78); }
.composer.is-busy .composer__box { opacity: .7; }
.composer__input {
  flex: 1; min-width: 0;
  min-height: 40px; max-height: 148px;
  padding: 9px 0;
  border: 0; outline: 0; resize: none;
  background: transparent;
  font-size: 15px; font-weight: 500; line-height: 1.45; color: var(--tw-text);
  scrollbar-width: thin;
}
.composer__input::placeholder { color: rgba(184, 172, 216, .7); transition: opacity .3s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.composer__input.is-ph-swap::placeholder { opacity: 0; }
.composer__input[readonly] { cursor: progress; }
.composer__tools { display: flex; align-items: center; gap: 4px; flex: none; }
.composer__count { font: 600 11.5px/1 var(--font-mono); color: var(--tw-muted); padding: 0 4px; font-variant-numeric: tabular-nums; }
.composer__count.is-warn { color: var(--tw-warn); }
.composer__count.is-max { color: var(--tw-danger); }
.composer__mic.is-rec { color: var(--tw-ink); background: var(--tw-orange-hi); animation: recPulse 1.2s ease-in-out infinite; }
.composer__send {
  width: 40px; height: 40px; border-radius: 13px;
  display: grid; place-items: center;
  color: var(--tw-ink);
  background: var(--grad-brand);
  box-shadow: 0 8px 22px -8px rgba(242, 106, 31, .9), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: transform .25s var(--ease-spring), opacity .2s, filter .2s;
}
.composer__send .ico { font-size: 20px; stroke-width: 2.2; }
.composer__send:hover:not(:disabled) { transform: translateY(-1px) scale(1.04); }
.composer__send:disabled { opacity: .35; filter: grayscale(.6); box-shadow: none; }

.chat__legal { margin-top: 9px; font-size: 11.5px; line-height: 1.5; color: var(--tw-muted); text-wrap: pretty; }
.chat__legal .link-btn { font-size: 11.5px; }
.kbd-hint { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; margin-right: 2px; border-radius: 7px; font: 700 12px/1 var(--font-mono); color: var(--tw-muted); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-bottom-width: 2px; transition: opacity .2s; }
.composer__box:focus-within .kbd-hint, .composer.has-text .kbd-hint { opacity: 0; width: 0; min-width: 0; padding: 0; margin: 0; border-width: 0; overflow: hidden; }
.privacy-note { margin-top: 8px; padding: 10px 12px; border-radius: 12px; font-size: 12px; line-height: 1.5; color: var(--tw-muted); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); animation: fadeUp .3s var(--ease-out) both; }
.privacy-note a { color: var(--tw-cream); font-weight: 700; }

/* coriandoli (richiesta inviata) */
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; border-radius: inherit; z-index: 5; }
.confetti i { position: absolute; top: -12px; width: 8px; height: 12px; border-radius: 2px; animation: confetti 1.6s cubic-bezier(.2, .6, .4, 1) forwards; }

/* stati del collegamento */
.chat.is-offline .chat__status { color: var(--tw-warn); }
.chat.is-offline .chat__avatar::after { background: var(--tw-warn); }
.chat.is-locked .composer__box { border-color: rgba(255, 181, 71, .45); }

/* ---------- 9. Marquee ---------- */
.marquee {
  position: relative;
  flex: none;
  border-top: 1px solid rgba(255, 255, 255, .07);
  background: linear-gradient(180deg, rgba(11, 7, 22, .2), rgba(11, 7, 22, .65));
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee__track { list-style: none; display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track li {
  display: inline-flex; align-items: center; gap: 28px;
  padding: 17px 0 17px 28px;
  font: 700 15px/1 var(--font-display); letter-spacing: -.005em;
  color: rgba(247, 242, 255, .66); white-space: nowrap;
}
.marquee__track li::after {
  content: ""; width: 9px; height: 9px; flex: none;
  background: linear-gradient(135deg, var(--tw-orange-hi), var(--tw-violet-hi));
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
.marquee__track li:nth-child(3n+1) { color: rgba(255, 227, 184, .85); }

/* ---------- 10. Sezioni ---------- */
.section { position: relative; padding-block: clamp(64px, 9vw, 120px); scroll-margin-top: var(--header-h); }
.section--tight { padding-block: clamp(36px, 5vw, 56px); }
.section--band {
  background:
    radial-gradient(70% 60% at 100% 0%, rgba(108, 63, 224, .16), transparent 60%),
    radial-gradient(60% 60% at 0% 100%, rgba(242, 106, 31, .09), transparent 60%),
    linear-gradient(180deg, rgba(20, 11, 42, 0), rgba(20, 11, 42, .72) 18%, rgba(20, 11, 42, .72) 82%, rgba(20, 11, 42, 0));
}
.section__head { max-width: 780px; margin-bottom: clamp(28px, 4vw, 48px); }
.section__head--center { margin-inline: auto; text-align: center; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--tw-orange-hi); }
.kicker .ico { font-size: 15px; }
.section__title { margin-top: 12px; font: 800 clamp(2rem, 1.2rem + 2.6vw, 3.4rem)/1.04 var(--font-display); letter-spacing: -.03em; color: var(--tw-text); text-wrap: balance; }
.section__lead { margin-top: 14px; font-size: clamp(1rem, .95rem + .25vw, 1.15rem); line-height: 1.6; color: var(--tw-muted); max-width: 62ch; text-wrap: pretty; }
.section__head--center .section__lead { margin-inline: auto; }
.section__lead strong { color: var(--tw-text); }
.section__foot { margin-top: clamp(24px, 3vw, 36px); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.section__foot--center { justify-content: center; }
.muted { color: var(--tw-muted); }

.card-surface {
  position: relative;
  border-radius: var(--r-lg);
  background: linear-gradient(170deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
  border: 1px solid rgba(255, 255, 255, .09);
}

/* 10.1 Fiducia */
.trustbar { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.trustbar > li { display: flex; min-width: 0; }
.trustbar__item { flex: 1; display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: var(--r-lg); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); min-width: 0; }
.trustbar__icon { width: 44px; height: 44px; flex: none; border-radius: 14px; display: grid; place-items: center; font-size: 22px; color: var(--tw-orange-hi); background: rgba(242, 106, 31, .14); }
.trustbar > :nth-child(2) .trustbar__icon { color: var(--tw-violet-hi); background: rgba(108, 63, 224, .2); }
.trustbar > :nth-child(3) .trustbar__icon { color: var(--tw-cream); background: rgba(248, 203, 140, .14); }
.trustbar > :nth-child(4) .trustbar__icon { color: var(--tw-success); background: rgba(61, 220, 151, .14); }
.trustbar__value { display: block; font: 800 22px/1.1 var(--font-display); letter-spacing: -.02em; color: var(--tw-text); }
.trustbar__label { display: block; margin-top: 3px; font-size: 13px; line-height: 1.35; color: var(--tw-muted); }
.trustbar__value .stars { font-size: 15px; vertical-align: 1px; margin-left: 6px; }
a.trustbar__item { color: inherit; text-decoration: none; transition: border-color .2s, background .2s; }
a.trustbar__item:hover { border-color: rgba(61, 220, 151, .45); background: rgba(61, 220, 151, .06); }

/* 10.2 Servizi */
.promo {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px;
  margin-bottom: 22px; padding: 14px 18px;
  border-radius: var(--r-lg);
  background: linear-gradient(100deg, rgba(242, 106, 31, .22), rgba(108, 63, 224, .22));
  border: 1px solid rgba(255, 140, 66, .4);
}
.promo__icon { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; flex: none; font-size: 18px; color: var(--tw-ink); background: var(--grad-brand); }
.promo__text { flex: 1 1 260px; font-weight: 700; color: var(--tw-cream-hi); }
.services { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 14px; }
.svc {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: 20px; border-radius: var(--r-lg);
  background: linear-gradient(170deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
  border: 1px solid rgba(255, 255, 255, .09);
  transition: transform .3s var(--ease-out), border-color .3s, box-shadow .3s;
}
.svc:hover { transform: translateY(-3px); border-color: rgba(255, 140, 66, .42); box-shadow: 0 24px 50px -30px rgba(242, 106, 31, .7); }
.svc__top { display: flex; align-items: center; gap: 12px; }
.svc__icon { width: 44px; height: 44px; flex: none; border-radius: 14px; display: grid; place-items: center; font-size: 22px; color: var(--tw-orange-hi); background: linear-gradient(140deg, rgba(255, 140, 66, .22), rgba(108, 63, 224, .18)); border: 1px solid rgba(255, 255, 255, .1); }
.svc:nth-child(3n+2) .svc__icon { color: var(--tw-violet-hi); }
.svc:nth-child(3n) .svc__icon { color: var(--tw-cream); }
.svc__name { font: 700 18px/1.2 var(--font-display); letter-spacing: -.01em; color: var(--tw-text); }
.svc__weeks { display: block; margin-top: 2px; font-size: 12px; font-weight: 600; color: var(--tw-muted); }
.svc__pitch { font-size: 14px; line-height: 1.5; color: rgba(247, 242, 255, .84); }
.svc__price { font-size: 13px; color: var(--tw-muted); }
.svc__price strong { font: 800 20px/1.1 var(--font-display); letter-spacing: -.01em; color: var(--tw-orange-hi); }
.svc__inc { list-style: none; display: grid; gap: 6px; font-size: 13px; color: rgba(247, 242, 255, .82); }
.svc__inc li { display: flex; gap: 8px; align-items: flex-start; }
.svc__inc .ico { margin-top: 3px; font-size: 13px; color: var(--tw-success); stroke-width: 2.4; }
.svc__ask { margin-top: auto; align-self: flex-start; }
.services-note { margin-top: 18px; font-size: 13px; color: var(--tw-muted); }

/* 10.3 Come funziona */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: step; }
.step { position: relative; padding: 22px 20px 20px; border-radius: var(--r-lg); background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .09); }
.step__n { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; font: 800 17px/1 var(--font-display); color: var(--tw-ink); background: var(--grad-brand); box-shadow: 0 10px 24px -12px rgba(242, 106, 31, .9); }
.step:last-child .step__n { background: var(--grad-violet); color: #fff; box-shadow: 0 10px 24px -12px rgba(108, 63, 224, .9); }
.step__title { margin-top: 14px; font: 700 18px/1.2 var(--font-display); color: var(--tw-text); }
.step__text { margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--tw-muted); }
.step:not(:last-child)::after { content: ""; position: absolute; top: 41px; right: -11px; width: 8px; height: 8px; border-top: 2px solid rgba(255, 140, 66, .6); border-right: 2px solid rgba(255, 140, 66, .6); transform: rotate(45deg); }
.phases { margin-top: 22px; padding: 18px 18px 8px; border-radius: var(--r-lg); background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .07); }
.phases__title { display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--tw-muted); }
.phases__title .ico { font-size: 15px; color: var(--tw-orange-hi); }
.phases__list { list-style: none; display: flex; gap: 0; overflow-x: auto; padding: 16px 2px 12px; scrollbar-width: thin; scroll-snap-type: x proximity; }
.phase { position: relative; flex: 1 0 150px; padding-right: 14px; scroll-snap-align: start; }
.phase::before { content: ""; position: absolute; left: 14px; right: 0; top: 13px; height: 2px; background: linear-gradient(90deg, rgba(255, 140, 66, .6), rgba(142, 104, 255, .4)); }
.phase:last-child::before { display: none; }
.phase__dot { position: relative; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 800 12px/1 var(--font-display); color: var(--tw-ink); background: var(--tw-cream); box-shadow: 0 0 0 4px rgba(248, 203, 140, .14); }
.phase__label { display: block; margin-top: 10px; font-weight: 700; font-size: 14px; color: var(--tw-text); }
.phase__detail { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.4; color: var(--tw-muted); }
.phase__dur { display: inline-block; margin-top: 6px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; color: var(--tw-cream); background: rgba(248, 203, 140, .1); border: 1px solid rgba(248, 203, 140, .2); }

/* 10.4 Progetti di Antonio */
.projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.proj {
  --pa: var(--tw-orange-hi); --pa-rgb: 255, 140, 66;
  position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: 22px; border-radius: var(--r-xl);
  background: radial-gradient(120% 80% at 100% 0%, rgba(var(--pa-rgb), .16), transparent 60%), linear-gradient(170deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015));
  border: 1px solid rgba(var(--pa-rgb), .3);
  min-width: 0;
}
.proj--hostwebo { --pa: #6CB8FF; --pa-rgb: 108, 184, 255; }
.proj--mailamber { --pa: #FFB547; --pa-rgb: 255, 181, 71; }
.proj--webam { --pa: #3DDC97; --pa-rgb: 61, 220, 151; }
.proj__head { display: flex; align-items: center; gap: 12px; }
.proj__logo { width: 48px; height: 48px; flex: none; border-radius: 16px; display: grid; place-items: center; font: 800 24px/1 var(--font-display); color: var(--tw-ink); background: linear-gradient(140deg, #fff, var(--pa) 62%); box-shadow: 0 12px 26px -14px rgba(var(--pa-rgb), .9); }
.proj__name { font: 800 21px/1.1 var(--font-display); letter-spacing: -.02em; color: var(--tw-text); }
.proj__title { display: block; margin-top: 3px; font-size: 13px; font-weight: 700; color: var(--pa); }
.proj__text { font-size: 14px; line-height: 1.55; color: rgba(247, 242, 255, .85); }
.proj__price { display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-weight: 800; font-size: 14px; color: var(--tw-ink); background: var(--pa); }
.proj__hl { list-style: none; display: grid; gap: 7px; font-size: 13.5px; color: rgba(247, 242, 255, .86); }
.proj__hl li { display: flex; gap: 9px; align-items: flex-start; }
.proj__hl .ico { margin-top: 3px; font-size: 13px; color: var(--pa); stroke-width: 2.4; }
.plans { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.plan { display: flex; align-items: baseline; gap: 10px; padding: 8px 12px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .07); font-size: 13.5px; }
.plan__name { font-weight: 700; color: var(--tw-text); }
.plan__note { flex: 1; min-width: 0; font-size: 12px; color: var(--tw-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plan__price { margin-left: auto; font-weight: 800; color: var(--pa); white-space: nowrap; font-variant-numeric: tabular-nums; }
.plan.is-recommended { border-color: rgba(var(--pa-rgb), .6); background: rgba(var(--pa-rgb), .1); }
.plan__badge { padding: 1px 7px; border-radius: 999px; font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--tw-ink); background: var(--pa); }
.proj__note { font-size: 12px; line-height: 1.45; color: var(--tw-muted); }
.proj__apps { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.proj__app { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .07); color: inherit; text-decoration: none; transition: border-color .2s, background .2s; }
a.proj__app:hover { border-color: rgba(var(--pa-rgb), .55); background: rgba(var(--pa-rgb), .08); }
.proj__app-icon { width: 34px; height: 34px; flex: none; border-radius: 11px; display: grid; place-items: center; font-size: 18px; color: var(--tw-ink); background: linear-gradient(140deg, #fff -30%, var(--pa)); }
.proj__app-text { min-width: 0; flex: 1; }
.proj__app-name { display: block; font-weight: 700; font-size: 13.5px; color: var(--tw-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.proj__app-desc { display: block; font-size: 12px; color: var(--tw-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.proj__app .ico.ext { font-size: 13px; color: var(--tw-muted); }
.proj__cta { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.proj .btn--primary { background: linear-gradient(135deg, #fff -20%, var(--pa) 70%); box-shadow: 0 10px 28px -12px rgba(var(--pa-rgb), .85), inset 0 1px 0 rgba(255, 255, 255, .45); }
.proj__by { font-size: 12px; font-weight: 600; color: var(--tw-muted); }

.shelf { margin-top: 18px; padding: 22px 0 10px; border-radius: var(--r-xl); background: linear-gradient(170deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015)); border: 1px solid rgba(255, 255, 255, .08); overflow: hidden; }
.shelf__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 0 22px 6px; }
.shelf__title { font: 800 21px/1.15 var(--font-display); letter-spacing: -.02em; color: var(--tw-text); }
.shelf__sub { flex: 1 1 260px; font-size: 13.5px; color: var(--tw-muted); }
.shelf__nav { display: flex; gap: 6px; margin-left: auto; }
.shelf__nav .icon-btn { border: 1px solid rgba(255, 255, 255, .14); }
.shelf__nav .icon-btn:disabled { opacity: .35; }
.shelf .books { padding: 6px 0 0; background: none; border: 0; animation: none; }
.shelf .books__row { padding-inline: 22px; scroll-padding-inline: 22px; }
.shelf .books__item { width: 148px; }
.shelf__foot { padding: 4px 22px 10px; }
.shelf__link { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--tw-cream); text-decoration: none; }
.shelf__link:hover { color: var(--tw-cream-hi); text-decoration: underline; }
.shelf__link .ico { font-size: 13px; }

/* 10.5 Chi sono */
.owner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.owner__card { position: relative; padding: 28px; border-radius: var(--r-xl); background: radial-gradient(90% 90% at 0% 0%, rgba(108, 63, 224, .28), transparent 60%), radial-gradient(90% 90% at 100% 100%, rgba(242, 106, 31, .16), transparent 60%), rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); overflow: hidden; }
.owner__monogram { width: 92px; height: 92px; border-radius: 28px; display: grid; place-items: center; font: 800 34px/1 var(--font-display); letter-spacing: -.03em; color: var(--tw-ink); background: linear-gradient(140deg, var(--tw-cream-hi), var(--tw-orange-hi) 55%, var(--tw-orange)); box-shadow: 0 18px 40px -14px rgba(242, 106, 31, .85); }
.owner__name { margin-top: 18px; font: 800 28px/1.1 var(--font-display); letter-spacing: -.02em; color: var(--tw-text); }
.owner__role { margin-top: 4px; font-weight: 700; color: var(--tw-orange-hi); }
.owner__tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.owner__tags li { padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: var(--tw-cream-hi); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.owner__sign { margin-top: 20px; padding-top: 16px; border-top: 1px dashed rgba(255, 255, 255, .16); font-size: 14px; color: var(--tw-muted); }
.owner__sign strong { display: block; font: 700 20px/1.2 var(--font-display); color: var(--tw-cream-hi); font-style: italic; }
.owner__bio { list-style: none; display: grid; gap: 10px; }
.owner__bio li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; line-height: 1.5; color: rgba(247, 242, 255, .88); }
.owner__bio .ico { margin-top: 4px; font-size: 16px; color: var(--tw-orange-hi); }
.owner__quote { margin-top: 22px; padding: 18px 20px; border-radius: var(--r-lg); background: rgba(242, 106, 31, .1); border: 1px solid rgba(255, 140, 66, .3); font: 700 clamp(1.1rem, 1rem + .4vw, 1.35rem)/1.35 var(--font-display); color: var(--tw-cream-hi); }

/* 10.6 Recensioni */
.reviews-grid { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 16px; align-items: start; }
.score-card { padding: 24px; border-radius: var(--r-xl); text-align: center; background: radial-gradient(100% 100% at 50% 0%, rgba(61, 220, 151, .16), transparent 65%), rgba(255, 255, 255, .045); border: 1px solid rgba(61, 220, 151, .32); }
.score-card__source { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--tw-muted); }
.score-card__value { margin-top: 8px; font: 800 64px/1 var(--font-display); letter-spacing: -.04em; color: var(--tw-text); font-variant-numeric: tabular-nums; }
.score-card .stars { margin-top: 10px; font-size: 24px; }
.score-card__label { margin-top: 10px; font-size: 14px; color: var(--tw-muted); }
.score-card__label strong { color: var(--tw-text); }
.score-card .btn { margin-top: 16px; }
.quotes { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 12px; }
.quote { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: var(--r-lg); background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .09); }
.quote__mark { font-size: 22px; color: var(--tw-orange-hi); }
.quote__text { font-size: 14.5px; line-height: 1.55; color: rgba(247, 242, 255, .9); }
.quote__who { margin-top: auto; display: flex; align-items: center; gap: 10px; font-size: 13px; }
.quote__avatar { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; font: 800 14px/1 var(--font-display); color: var(--tw-ink); background: var(--tw-cream); }
.quote__author { display: block; font-weight: 700; color: var(--tw-text); }
.quote__role { display: block; color: var(--tw-muted); }
.quote .stars { font-size: 13px; }
.quotes-empty { padding: 22px; border-radius: var(--r-lg); border: 1.5px dashed rgba(255, 255, 255, .14); color: var(--tw-muted); font-size: 14.5px; line-height: 1.55; }

/* 10.7 FAQ */
.faq { display: grid; gap: 10px; max-width: 880px; margin-inline: auto; }
.faq__item { border-radius: var(--r-lg); background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .09); transition: border-color .25s, background .25s; }
.faq__item[open] { border-color: rgba(255, 140, 66, .4); background: rgba(255, 255, 255, .06); }
.faq__q { list-style: none; display: flex; align-items: center; gap: 14px; padding: 18px 20px; cursor: pointer; font: 700 17px/1.3 var(--font-display); color: var(--tw-text); border-radius: var(--r-lg); }
.faq__q::-webkit-details-marker { display: none; }
.faq__q::marker { content: ""; }
.faq__chev { margin-left: auto; width: 30px; height: 30px; flex: none; border-radius: 10px; display: grid; place-items: center; font-size: 16px; color: var(--tw-orange-hi); background: rgba(242, 106, 31, .12); transition: transform .3s var(--ease-out); }
.faq__item[open] .faq__chev { transform: rotate(180deg); }
.faq__a { padding: 0 20px 18px; font-size: 15px; line-height: 1.6; color: rgba(247, 242, 255, .84); }
.faq__a p + p { margin-top: .6em; }

/* 10.8 CTA finale */
.final { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: clamp(28px, 4vw, 48px); border-radius: var(--r-xl); overflow: hidden; isolation: isolate;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(242, 106, 31, .38), transparent 55%),
    radial-gradient(120% 140% at 100% 100%, rgba(108, 63, 224, .6), transparent 55%),
    #1a0f33;
  border: 1px solid rgba(255, 140, 66, .4);
  box-shadow: 0 40px 90px -40px rgba(242, 106, 31, .7);
}
.final__title { font: 800 clamp(1.9rem, 1.2rem + 2.4vw, 3.1rem)/1.05 var(--font-display); letter-spacing: -.03em; color: #fff; text-wrap: balance; }
.final__text { margin-top: 12px; max-width: 52ch; font-size: 16px; line-height: 1.6; color: rgba(247, 242, 255, .86); }
.final__actions { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.final__toti { position: relative; width: 190px; height: 236px; justify-self: center; }
.final__toti > img, .final__toti > svg { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 22px 30px rgba(11, 7, 22, .55)); }
.final__toti::before { content: ""; position: absolute; left: 50%; bottom: -12px; width: 150%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; z-index: -1; background: radial-gradient(closest-side, rgba(255, 140, 66, .35), rgba(108, 63, 224, .2) 50%, transparent 72%); }

/* ---------- 11. Footer ---------- */
.site-footer { position: relative; margin-top: clamp(40px, 6vw, 80px); padding: 48px 0 calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255, 255, 255, .08); background: linear-gradient(180deg, rgba(20, 11, 42, .4), rgba(11, 7, 22, .9)); font-size: 14px; color: var(--tw-muted); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 28px; }
.footer__grid--short { grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); }
.footer__brand .brand__logo { height: 32px; }
.footer__claim { margin-top: 12px; max-width: 36ch; line-height: 1.55; }
.footer__title { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--tw-text); margin-bottom: 10px; }
.footer__links { list-style: none; display: grid; gap: 7px; }
.footer__links a, .footer__links button { color: var(--tw-muted); text-decoration: none; font-size: 14px; text-align: left; }
.footer__links a:hover, .footer__links button:hover { color: var(--tw-cream-hi); text-decoration: underline; }
.footer__links .ico { display: inline-block; vertical-align: -2px; margin-left: 4px; font-size: 12px; }
.footer__legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .07); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; font-size: 12.5px; line-height: 1.55; }
.footer__company { flex: 1 1 420px; color: rgba(247, 242, 255, .72); }
.footer__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.footer__cookie { display: inline-flex; align-items: center; gap: 6px; }
.footer__cookie .ico { font-size: 13px; color: var(--tw-success); }
.footer__legal:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.footer__meta a { color: inherit; text-underline-offset: 2px; }
.footer__meta a:hover { color: var(--tw-cream-hi); }

/* ---------- 12. Dock di Toti ---------- */
.dock-launcher {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 70;
  display: inline-flex; align-items: center; gap: 10px;
  height: 60px; padding: 0 18px 0 8px; border-radius: 999px;
  font-weight: 800; font-size: 14.5px; color: var(--tw-ink);
  background: linear-gradient(135deg, #FFF1DC, var(--tw-cream-hi) 45%, var(--tw-cream));
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255, 255, 255, .55) inset;
  transform: translateY(140%) scale(.9); opacity: 0; visibility: hidden;
  transition: transform .45s var(--ease-spring), opacity .3s, visibility 0s .45s;
}
.dock-launcher.is-visible { transform: none; opacity: 1; visibility: visible; transition: transform .45s var(--ease-spring), opacity .3s, visibility 0s; }
.dock-launcher:hover { transform: translateY(-2px); }
.dock-launcher__toti { position: relative; width: 46px; height: 46px; flex: none; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 30% 25%, rgba(255, 140, 66, .45), rgba(108, 63, 224, .5)); overflow: hidden; }
.dock-launcher__toti img { width: 40px; height: 50px; margin-top: 10px; object-fit: contain; }
.dock-launcher__toti::after { content: ""; position: absolute; right: 2px; top: 2px; width: 10px; height: 10px; border-radius: 50%; background: var(--tw-success); box-shadow: 0 0 0 2px #FFE3B8; }
.dock-launcher__badge { position: absolute; top: -4px; right: -2px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff; background: var(--tw-orange); box-shadow: 0 0 0 2px var(--tw-bg); }

.dock-panel {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 90;
  width: min(460px, calc(100vw - 32px));
  height: min(720px, calc(100svh - 32px));
  display: flex; flex-direction: column;
  animation: dockIn .4s var(--ease-out) both;
}
.dock-panel .chat { --chat-w: 100%; width: 100%; height: 100%; flex: 1; animation: none; }
.dock-panel .chat__close { display: inline-grid; }
.dock-panel .lead-ring__label { display: none; }
.dock-backdrop { position: fixed; inset: 0; z-index: 85; background: rgba(5, 3, 12, .5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: fadeIn .3s ease both; }
html.has-dock { scroll-behavior: auto; }

/* annuncio (sale sopra il banner dei consensi quando è aperto: --tc-space lo calcola consent.js) */
.announce {
  position: fixed; left: max(16px, env(safe-area-inset-left)); bottom: max(16px, env(safe-area-inset-bottom), var(--tc-space, 0px)); z-index: 65;
  transition: bottom .35s var(--ease-out);
  display: flex; align-items: flex-start; gap: 10px;
  max-width: min(420px, calc(100vw - 32px));
  padding: 12px 10px 12px 14px; border-radius: 16px;
  font-size: 14px; line-height: 1.45; color: var(--tw-text);
  background: linear-gradient(160deg, #24164A, #160D30);
  border: 1px solid rgba(255, 140, 66, .45);
  box-shadow: 0 20px 50px -18px rgba(0, 0, 0, .9);
  animation: dockIn .45s .8s var(--ease-out) both;
}
.announce__icon { margin-top: 1px; font-size: 18px; color: var(--tw-orange-hi); }
.announce__text { flex: 1; }
.announce .icon-btn { width: 30px; height: 30px; margin: -4px -2px 0 0; }

/* ---------- 13. Modulo senza JavaScript ---------- */
.noscript-box { margin-top: 18px; padding: 22px; border-radius: var(--r-xl); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); }
.noscript-box__title { font: 800 20px/1.2 var(--font-display); color: var(--tw-text); }
.noscript-box__text { margin-top: 6px; font-size: 14px; color: var(--tw-muted); }
.nsform { display: grid; gap: 12px; margin-top: 16px; }
.nsform__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.nsform .check { align-items: center; }
.nsform .check__box { position: static; opacity: 1; width: 20px; height: 20px; margin: 0; accent-color: var(--tw-orange); }
.nsform select.field__input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--tw-muted) 50%), linear-gradient(135deg, var(--tw-muted) 50%, transparent 50%); background-position: calc(100% - 18px) 19px, calc(100% - 13px) 19px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.nsform select.field__input option { background: #140B2A; color: var(--tw-text); }

/* ---------- 14. Pagine interne (legali, 404) ---------- */
.page-header { position: sticky; top: 0; z-index: 60; border-bottom: 1px solid rgba(255, 255, 255, .08); background: rgba(11, 7, 22, .85); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.page-header__inner { height: 68px; display: flex; align-items: center; gap: 14px; }
.page-header__nav { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.page-header__back { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--tw-muted); text-decoration: none; }
.page-header__back:hover { color: var(--tw-text); background: rgba(255, 255, 255, .06); }
.page-header__back .ico { font-size: 16px; }
@media (max-width: 479px) { .page-header__back { display: none; } }

.legal { padding-block: clamp(36px, 6vw, 72px) 24px; }
.legal__head { margin-bottom: 28px; }
.legal__title { margin-top: 10px; font: 800 clamp(2rem, 1.3rem + 2.4vw, 3rem)/1.05 var(--font-display); letter-spacing: -.03em; color: var(--tw-text); }
.legal__updated { margin-top: 10px; font-size: 13.5px; color: var(--tw-muted); }
.legal__toc { margin-bottom: 28px; padding: 16px 18px; border-radius: var(--r-lg); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); }
.legal__toc p { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--tw-muted); margin-bottom: 8px; }
.legal__toc ol { padding-left: 1.3em; display: grid; gap: 4px; font-size: 14.5px; }
.legal__toc a { color: var(--tw-cream); text-decoration: none; }
.legal__toc a:hover { text-decoration: underline; }
.prose { font-size: 16px; line-height: 1.7; color: rgba(247, 242, 255, .88); }
.prose h2 { margin: 2.1em 0 .6em; font: 800 1.45rem/1.2 var(--font-display); letter-spacing: -.015em; color: var(--tw-text); scroll-margin-top: 90px; }
.prose h3 { margin: 1.5em 0 .4em; font: 700 1.1rem/1.3 var(--font-display); color: var(--tw-cream-hi); }
.prose p, .prose ul, .prose ol, .prose table { margin: 0 0 1em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose li::marker { color: var(--tw-orange-hi); }
.prose strong { color: var(--tw-text); }
.prose a { color: var(--tw-cream); font-weight: 600; text-underline-offset: 2px; }
.prose a:hover { color: var(--tw-cream-hi); }
.prose code { font: 600 .9em var(--font-mono); padding: 1px 6px; border-radius: 6px; background: rgba(255, 255, 255, .08); color: var(--tw-cream-hi); }
.prose .tbl-wrap { margin-bottom: 1em; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; }
.prose th, .prose td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.prose th { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--tw-muted); background: rgba(255, 255, 255, .04); }
.callout { margin: 0 0 1.2em; padding: 14px 16px; border-radius: var(--r-md); background: rgba(108, 63, 224, .12); border: 1px solid rgba(142, 104, 255, .32); color: #E4DBFF; font-size: 15px; }
.callout strong { color: #fff; }

.notfound { min-height: calc(100svh - 68px); display: grid; place-items: center; padding-block: 40px; text-align: center; }
.notfound__toti { width: 180px; height: 224px; margin: 0 auto; display: grid; place-items: end center; }
.notfound__toti > img, .notfound__toti > svg { width: 100%; height: 100%; object-fit: contain; }
.notfound__code { margin-top: 18px; font: 800 14px/1 var(--font-mono); letter-spacing: .2em; color: var(--tw-orange-hi); }
.notfound__title { margin-top: 10px; font: 800 clamp(2rem, 1.4rem + 2vw, 2.8rem)/1.1 var(--font-display); letter-spacing: -.03em; color: var(--tw-text); }
.notfound__text { margin: 12px auto 0; max-width: 46ch; color: var(--tw-muted); }
.notfound__actions { margin-top: 24px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* ---------- 15. Pannello sviluppatore (solo fuori produzione) ---------- */
.devpanel {
  position: fixed; left: 12px; bottom: max(12px, var(--tc-space, 0px)); z-index: 120;
  width: min(340px, calc(100vw - 24px));
  max-height: min(70vh, 560px);
  display: flex; flex-direction: column;
  border-radius: 16px;
  font: 500 11.5px/1.45 var(--font-mono);
  color: #E9E3FF;
  background: rgba(10, 6, 22, .94);
  border: 1px solid rgba(142, 104, 255, .45);
  box-shadow: 0 20px 60px -10px rgba(0, 0, 0, .9);
  overflow: hidden;
}
.devpanel__head { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: rgba(108, 63, 224, .25); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: 10.5px; }
.devpanel__head button { margin-left: auto; padding: 2px 8px; border-radius: 6px; background: rgba(255, 255, 255, .1); font-size: 11px; }
.devpanel__body { overflow: auto; min-height: 0; padding: 8px 10px 10px; display: grid; gap: 8px; }
.devpanel.is-min .devpanel__body { display: none; }
.devpanel h4 { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--tw-orange-hi); margin-bottom: 3px; }
.devpanel dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 1px 10px; }
.devpanel dt { color: var(--tw-muted); }
.devpanel dd { color: #fff; overflow-wrap: anywhere; }
.devpanel pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; color: #fff; max-height: 120px; overflow: auto; }
.devpanel__btns { display: flex; flex-wrap: wrap; gap: 6px; }
.devpanel__btns button { padding: 6px 10px; border-radius: 8px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); font: inherit; font-weight: 700; }
.devpanel__btns button:hover { background: rgba(255, 255, 255, .16); }

/* ==========================================================================
   16. Modalità chat (dopo il primo messaggio dell'utente)
   ========================================================================== */
.is-chatting .hero__inner {
  --chat-w: clamp(560px, 47vw, 720px);
  --toti-col: 196px;
  --ts: .72;
  align-items: start;
}
.is-chatting .hero__title { font-size: clamp(2rem, 1rem + 2vw, 2.9rem); margin-top: 16px; }
.is-chatting .hero__sub { opacity: 0; max-height: 0; margin-top: 0; overflow: hidden; }
.is-chatting .trust { margin-top: 18px; }
.is-chatting .eyebrow { font-size: 12px; }
.is-chatting .az { margin-top: 18px; }
.is-chatting .hero .chat, .is-chatting .chat-slot__placeholder { height: clamp(560px, calc(100svh - var(--header-h) - 44px), 940px); }
.is-chatting .hero__copy { padding-top: 6px; }
.is-chatting .hero__stage { align-items: end; }
@media (min-width: 1200px) {
  .is-chatting .toti-bubble { right: 30%; max-width: 230px; }
}

/* ==========================================================================
   17. Responsive
   ========================================================================== */
@media (max-width: 1279px) {
  .nav-link { padding: 8px 11px; font-size: 14px; }
  .status-pill { display: none; }
}

/* 980–1199: testi | chat, Toti appollaiato sopra la chat */
@media (max-width: 1199px) {
  .hero__inner {
    --chat-w: 430px;
    --ts: .5;
    grid-template-columns: minmax(0, 1fr) var(--chat-w);
  }
  .is-chatting .hero__inner { --chat-w: clamp(470px, 52vw, 600px); --ts: .42; }
  .hero__stage { display: block; padding-top: calc(var(--th0) * var(--ts) + 6px); }
  .toti-stage { position: absolute; top: 0; right: 28px; margin: 0; height: calc(var(--th0) * var(--ts) + 12px); }
  .toti-stage__body { bottom: 0; }
  .toti-stage__pedestal { display: none; }
  .toti-stage__halo { bottom: -30px; width: 230%; }
  .toti-bubble { left: auto; right: calc(100% + 6px); bottom: 30%; transform-origin: 100% 100%; transform: scale(.6); border-radius: 18px 18px 6px 18px; }
  .toti-bubble.is-on { transform: scale(1); }
  .toti-bubble::after { left: auto; right: -6px; bottom: 4px; transform: rotate(-90deg) skewX(-10deg); }
  .hero .chat { width: 100%; }
  .site-nav { display: none; }
  .menu-toggle { display: inline-grid; }
  .site-header__actions { margin-left: auto; }
  .trustbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step:nth-child(2)::after { display: none; }
  .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}

/* 680–979: impilato (intro · fiducia · chat · A→Z) */
@media (max-width: 979px) {
  .hero__inner {
    --ts: .56;
    grid-template-columns: minmax(0, 1fr);
    row-gap: 26px;
    align-items: start;
  }
  .is-chatting .hero__inner { --ts: .42; }
  .hero__copy { display: contents; }
  .hero__intro { order: 1; max-width: 720px; }
  .trust { order: 2; margin-top: -8px; }
  .hero__stage { order: 3; }
  .az { order: 4; margin-top: 0; max-width: none; }
  .hero .chat, .is-chatting .hero .chat, .chat-slot__placeholder, .is-chatting .chat-slot__placeholder { height: clamp(520px, 70svh, 720px); }
  .is-chatting .hero__title { font-size: clamp(1.9rem, 1rem + 3vw, 2.6rem); }
  .is-chatting .hero__sub { display: none; }
  .is-chatting .trust { display: none; }
  .owner { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .final { grid-template-columns: 1fr; }
  .final__toti { width: 150px; height: 186px; grid-row: 1; }
}

/* < 680: telefono */
@media (max-width: 679px) {
  :root { --header-h: 64px; }
  .site-header.is-scrolled { height: 58px; }
  .site-header.is-scrolled .menu-sheet { top: 58px; }
  .site-header__inner { gap: 10px; }
  .brand__logo { height: 30px; }
  .account-link { display: none; }
  .btn--cta { --btn-h: 40px; padding: 0 14px; font-size: 14px; }
  .btn--cta .btn__icon { display: none; }
  .hero__inner { --ts: .44; row-gap: 22px; padding-top: 18px; }
  .is-chatting .hero__inner { --ts: .34; }
  .trust { margin-top: -6px; }
  .hero__stage { padding-top: calc(var(--th0) * var(--ts) + 4px); }
  .toti-stage { right: 14px; height: calc(var(--th0) * var(--ts) + 10px); }
  .toti-stage__halo { bottom: -40px; width: 260%; }
  .toti-bubble { left: auto; right: calc(100% + 4px); bottom: 26%; max-width: min(220px, calc(100vw - 150px)); font-size: 13px; padding: 9px 12px; transform-origin: 100% 100%; transform: scale(.6); border-radius: 16px 16px 6px 16px; }
  .toti-bubble.is-on { transform: scale(1); }
  .toti-bubble::after { left: auto; right: -6px; bottom: 4px; transform: rotate(-90deg) skewX(-10deg); }
  .eyebrow { font-size: 12px; padding: 5px 12px 5px 9px; }
  .hero__title { margin-top: 16px; font-size: clamp(2.3rem, 9.6vw, 3rem); }
  .hero__sub { margin-top: 14px; font-size: 15.5px; }
  .trust__item { font-size: 12.5px; padding: 5px 11px 5px 6px; }
  .trust__icon { width: 22px; height: 22px; font-size: 13px; }
  .hero .chat, .is-chatting .hero .chat, .chat-slot__placeholder, .is-chatting .chat-slot__placeholder { height: min(640px, calc(100svh - var(--header-h) - 120px)); min-height: 470px; }
  .chat { border-radius: 24px; }
  .chat__head { padding: 12px 12px 10px; gap: 10px; }
  .chat__avatar { width: 38px; height: 38px; }
  .chat__role { display: block; font-size: 12px; margin-top: 1px; }
  .chat__sep { display: none; }
  .chat__name { white-space: normal; }
  .lead-ring__label { display: none; }
  .chat__log { padding: 14px 12px 6px; }
  .chat__thread { justify-content: flex-start; }
  .chat__dock { padding: 4px 10px 10px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -10px; padding-inline: 10px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10px, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, transparent, #000 10px, #000 calc(100% - 24px), transparent); }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; white-space: nowrap; }
  .msg__avatar { width: 26px; height: 26px; }
  .msg__avatar img { width: 22px; height: 22px; }
  .kbd-hint { display: none; }
  .az__main { grid-template-columns: 48px minmax(0, 1fr); }
  .az__letter { font-size: 48px; }
  .az__ask { grid-column: 1 / -1; justify-self: start; }
  .az__track span { font-size: 9.5px; }
  .is-chatting .hero__title { font-size: 1.9rem; }
  .composer__input { font-size: 16px; }
  .marquee__track li { font-size: 14px; padding-block: 15px; }
  .trustbar { grid-template-columns: 1fr; gap: 8px; }
  .trustbar__item { padding: 14px; }
  .steps { grid-template-columns: 1fr; }
  .step::after { display: none; }
  .projects { grid-template-columns: 1fr; }
  .proj { padding: 18px; }
  .shelf__nav { display: none; }
  .faq__q { padding: 16px; font-size: 16px; }
  .faq__a { padding: 0 16px 16px; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dock-launcher { width: 60px; height: 60px; padding: 0; justify-content: center; }
  .dock-launcher__label { display: none; }
  .dock-panel { inset: 0; width: 100%; height: 100%; height: 100dvh; right: 0; bottom: 0; }
  .dock-panel .chat { border-radius: 0; }
  .dock-panel .chat::before { display: none; }
  .dock-panel .chat__dock { border-radius: 0; padding-bottom: max(10px, env(safe-area-inset-bottom)); }
  .announce { right: 16px; bottom: max(84px, var(--tc-space, 0px)); }
}

@media (max-width: 379px) {
  .btn--cta .btn__label { font-size: 13px; }
  .eyebrow > .eyebrow__sep:nth-last-child(2), .eyebrow > span:last-child { display: none; }
}

/* schermi bassi (portatili 1366×768 ecc.) */
@media (min-width: 1200px) and (max-height: 820px) {
  .hero__title { font-size: clamp(2.4rem, 1rem + 3.4vw, 4.2rem); }
  .hero__sub { margin-top: 16px; }
  .trust { margin-top: 18px; }
  .az { margin-top: 18px; }
  .hero__inner { --ts: .82; }
}

/* Stato finale garantito: app.js aggiunge .is-settled quando un'animazione d'ingresso è finita */
body.is-settled .eyebrow, body.is-settled .hero__line, body.is-settled .hero__sub, body.is-settled .trust, body.is-settled .az,
body.is-settled .chat:not(.is-flash) { animation: none; }
.msg.is-settled, .is-settled .trace, .chips.is-settled .chip { animation: none !important; }
.lead-ring.is-settled .lead-ring__fill { transition: none !important; }
.toti-bubble.is-settled { transition: none; }
body.is-reflowed .hero__inner, body.is-reflowed .hero__title, body.is-reflowed .hero__sub, body.is-reflowed .chat { transition: none; }

/* ---------- 18. Keyframes di pagina ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes msgIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes chatIn { from { opacity: 0; transform: translateY(26px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes dockIn { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheetIn { from { transform: translateY(-10px) scale(.98); } to { transform: none; } }
@keyframes letterIn { 0% { opacity: 0; transform: translateY(40%) rotateX(70deg) scale(.8); filter: blur(6px) drop-shadow(0 6px 18px rgba(242, 106, 31, .35)); } 100% { opacity: 1; transform: none; filter: drop-shadow(0 6px 18px rgba(242, 106, 31, .35)); } }
@keyframes gradShift { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
@keyframes driftA { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(8vmax, 6vmax, 0) scale(1.12); } }
@keyframes driftB { from { transform: translate3d(0, 0, 0) scale(1.05); } to { transform: translate3d(-10vmax, -5vmax, 0) scale(.95); } }
@keyframes driftC { from { transform: translate3d(0, 0, 0) scale(.9); } to { transform: translate3d(-6vmax, 8vmax, 0) scale(1.1); } }
@keyframes ping { 0% { opacity: .8; transform: scale(.6); } 80%, 100% { opacity: 0; transform: scale(1.8); } }
@keyframes breathe { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes ringOut { 0% { opacity: 0; transform: scale(.45); } 20% { opacity: .9; } 100% { opacity: 0; transform: scale(1.35); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -150% 0; } }
@keyframes dot { 0%, 100% { opacity: .3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-2px); } }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.18); } 100% { transform: scale(1); } }
@keyframes sweep { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@keyframes thinkGlow { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes chatFlash { 0% { box-shadow: 0 0 0 0 rgba(255, 140, 66, .7), 0 40px 100px -30px rgba(0, 0, 0, .85); } 100% { box-shadow: 0 0 0 18px rgba(255, 140, 66, 0), 0 40px 100px -30px rgba(0, 0, 0, .85); } }
@keyframes recPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 140, 66, .6); } 50% { box-shadow: 0 0 0 8px rgba(255, 140, 66, 0); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes confetti { 0% { transform: translate3d(0, 0, 0) rotate(0); opacity: 1; } 100% { transform: translate3d(var(--dx, 0), 520px, 0) rotate(var(--rot, 540deg)); opacity: 0; } }

/* ---------- 19. Movimento ridotto, colori forzati, stampa ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }
  .marquee__track { animation: none !important; }
  .marquee__track li[aria-hidden="true"] { display: none; }
  .aurora, .toti-stage__halo, .ring { animation: none !important; }
  .ring { opacity: .35; transform: scale(.9); }
  .shimmer { animation: none !important; color: var(--tw-text); background: none; }
}

@media (forced-colors: active) {
  .grad-text, .az__letter, .shimmer { color: CanvasText; background: none; }
  .composer__send { border: 1px solid ButtonText; }
}

@media print {
  .site-header, .page-header, .hero__bg, .dock-launcher, .dock-panel, .announce, .marquee, .menu-sheet, .skip-link { display: none !important; }
  body { background: #fff; color: #000; }
  .prose, .prose strong, .legal__title, .prose h2, .prose h3 { color: #000; }
  .prose a { color: #000; }
}
