/* =========================================================================
   Mamify — design system
   Fondo chiaro, testi scuri, accento rosso. Gradiente di marca ripreso dal
   logo, usato solo come accento sui grafici dell'ecosistema.
   ========================================================================= */

:root{
  --bg:            #FBFAF8;
  --bg-tint:       #F4F2EE;
  --surface:       #FFFFFF;
  --ink:           #14131A;
  --ink-2:         #3A3844;
  --muted:         #66636F;
  --line:          rgba(20,19,26,.12);
  --line-soft:     rgba(20,19,26,.07);

  --red:           #E03127;
  --red-dark:      #B4241B;
  --red-soft:      rgba(224,49,39,.10);

  --g1:#7C6BD8; --g2:#4FB3F5; --g3:#F2685E; --g4:#F6B25A;
  --brand-gradient: linear-gradient(115deg,var(--g1) 0%,var(--g2) 34%,var(--g3) 68%,var(--g4) 100%);

  --ok:#1F9D63; --ok-soft:rgba(31,157,99,.12);
  --wait:#A9761C; --wait-soft:rgba(169,118,28,.13);
  --plan:#5B5A66; --plan-soft:rgba(91,90,102,.10);

  --r-s:10px; --r-m:16px; --r-l:24px; --r-xl:34px;
  --shadow-s:0 1px 2px rgba(20,19,26,.05), 0 2px 8px rgba(20,19,26,.04);
  --shadow-m:0 2px 6px rgba(20,19,26,.05), 0 12px 34px rgba(20,19,26,.08);
  --shadow-l:0 8px 20px rgba(20,19,26,.07), 0 30px 70px rgba(20,19,26,.11);

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
  --nav-h: 66px;
  --ease: cubic-bezier(.22,.68,.32,1);
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%; scroll-behavior:smooth; scroll-padding-top:calc(var(--nav-h) + 18px)}
body{
  margin:0; background:var(--bg); color:var(--ink);
  font-family:var(--sans); font-size:17px; line-height:1.62;
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
  overflow-x:hidden;
}
img{max-width:100%; height:auto; display:block}
a{color:inherit}
button,input,select,textarea{font:inherit; color:inherit}
:focus-visible{outline:3px solid var(--red); outline-offset:3px; border-radius:6px}
::selection{background:var(--red); color:#fff}

h1,h2,h3,h4{margin:0 0 .5em; line-height:1.1; letter-spacing:-.022em; font-weight:680}
h1{font-size:clamp(2.35rem,1.4rem + 3.9vw,4.35rem); letter-spacing:-.033em; font-weight:720}
h2{font-size:clamp(1.75rem,1.15rem + 2.2vw,2.9rem); letter-spacing:-.028em}
h3{font-size:clamp(1.16rem,1.02rem + .6vw,1.42rem)}
h4{font-size:1.03rem; letter-spacing:-.01em}
p{margin:0 0 1.1em}
.lead{font-size:clamp(1.06rem,.99rem + .42vw,1.32rem); color:var(--ink-2); line-height:1.58}
small,.small{font-size:.855rem; line-height:1.55}
.muted{color:var(--muted)}
.mono-label{
  font-size:.735rem; font-weight:640; letter-spacing:.13em; text-transform:uppercase;
  color:var(--red); display:inline-flex; align-items:center; gap:.55em; margin:0 0 1em;
}
.mono-label::before{content:""; width:20px; height:2px; background:var(--red); border-radius:2px}
.gradient-text{background:var(--brand-gradient); -webkit-background-clip:text; background-clip:text; color:transparent}

/* ---------- layout ---------- */
.wrap{width:min(100% - 40px, var(--wrap)); margin-inline:auto}
.wrap-narrow{width:min(100% - 40px, 790px); margin-inline:auto}
section{position:relative}
.section{padding:clamp(60px,7.5vw,118px) 0}
.section--tint{background:var(--bg-tint)}
.section--ink{background:var(--ink); color:#F4F3F1}
.section--ink h2,.section--ink h3{color:#fff}
.section--ink .lead,.section--ink p{color:rgba(244,243,241,.76)}
.section--ink .mono-label{color:#FF8079}
.section--ink .mono-label::before{background:#FF8079}
.section-head{max-width:730px; margin-bottom:clamp(30px,4vw,54px)}
.grid{display:grid; gap:22px}
.g-2{grid-template-columns:repeat(2,1fr)}
.g-3{grid-template-columns:repeat(3,1fr)}
.g-4{grid-template-columns:repeat(4,1fr)}
.center{text-align:center}
.center .mono-label{justify-content:center}
.center .section-head{margin-inline:auto}
.stack-s>*+*{margin-top:10px}
.divider{height:1px; background:var(--line-soft); border:0; margin:0}

/* ---------- bottoni ---------- */
.btn{
  --btn-bg:var(--ink); --btn-fg:#fff; --btn-bd:var(--ink);
  display:inline-flex; align-items:center; justify-content:center; gap:.6em;
  padding:.82em 1.5em; border-radius:999px; border:1.5px solid var(--btn-bd);
  background:var(--btn-bg); color:var(--btn-fg);
  font-weight:600; font-size:.96rem; letter-spacing:-.01em; text-decoration:none;
  cursor:pointer; transition:transform .3s var(--ease), box-shadow .3s var(--ease), background .2s, color .2s, border-color .2s;
  will-change:transform;
}
.btn:hover{transform:translateY(-2px); box-shadow:var(--shadow-m)}
.btn:active{transform:translateY(0)}
.btn--red{--btn-bg:var(--red); --btn-bd:var(--red)}
.btn--red:hover{--btn-bg:var(--red-dark); --btn-bd:var(--red-dark)}
.btn--ghost{--btn-bg:transparent; --btn-fg:var(--ink); --btn-bd:var(--line)}
.btn--ghost:hover{--btn-bd:var(--ink)}
.btn--light{--btn-bg:#fff; --btn-fg:var(--ink); --btn-bd:#fff}
.btn--sm{padding:.6em 1.1em; font-size:.87rem}
.btn--block{width:100%}
.btn[aria-disabled="true"],.btn:disabled{
  opacity:.48; cursor:not-allowed; pointer-events:none; box-shadow:none;
}
.btn-row{display:flex; flex-wrap:wrap; gap:12px; align-items:center}
.link-arrow{
  display:inline-flex; align-items:center; gap:.42em; font-weight:600; color:var(--red);
  text-decoration:none; border-bottom:1.5px solid transparent; transition:border-color .2s, gap .25s var(--ease);
}
.link-arrow:hover{border-bottom-color:var(--red); gap:.7em}
.link-arrow::after{content:"→"}

/* ---------- badge ---------- */
.badge{
  display:inline-flex; align-items:center; gap:.45em; padding:.3em .74em; border-radius:999px;
  font-size:.745rem; font-weight:640; letter-spacing:.02em; background:var(--plan-soft); color:var(--plan);
  white-space:nowrap;
}
.badge::before{content:""; width:6px; height:6px; border-radius:50%; background:currentColor}
.badge--ok{background:var(--ok-soft); color:var(--ok)}
.badge--wait{background:var(--wait-soft); color:var(--wait)}
.badge--red{background:var(--red-soft); color:var(--red-dark)}

/* ---------- header ---------- */
.skip{
  position:absolute; left:-9999px; top:8px; z-index:200; background:var(--ink); color:#fff;
  padding:.7em 1.2em; border-radius:var(--r-s); font-weight:600;
}
.skip:focus{left:16px}
.site-header{
  position:sticky; top:0; z-index:90; height:var(--nav-h);
  background:rgba(251,250,248,.78); backdrop-filter:saturate(180%) blur(18px);
  -webkit-backdrop-filter:saturate(180%) blur(18px);
  border-bottom:1px solid transparent; transition:border-color .3s, background .3s, box-shadow .3s;
}
.site-header.is-stuck{border-bottom-color:var(--line-soft); box-shadow:0 1px 20px rgba(20,19,26,.05)}
.nav{display:flex; align-items:center; gap:18px; height:100%}
.brand{display:flex; align-items:center; gap:10px; text-decoration:none; flex:0 0 auto; margin-right:4px}
.brand img{height:26px; width:auto}
.nav-links{display:flex; align-items:center; gap:2px; margin:0 auto 0 6px; padding:0; list-style:none}
.nav-links a{
  display:block; padding:.5em .72em; border-radius:999px; text-decoration:none;
  font-size:.925rem; font-weight:540; color:var(--ink-2); white-space:nowrap;
  transition:background .2s, color .2s;
}
.nav-links a:hover{background:rgba(20,19,26,.05); color:var(--ink)}
.nav-links a[aria-current="page"]{color:var(--ink); font-weight:640}
.nav-actions{display:flex; align-items:center; gap:8px; flex:0 0 auto}
.icon-btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.4em;
  height:38px; padding:0 .85em; border-radius:999px; border:1.5px solid var(--line);
  background:var(--surface); cursor:pointer; font-size:.87rem; font-weight:600; text-decoration:none;
  transition:border-color .2s, transform .25s var(--ease);
}
.icon-btn:hover{border-color:var(--ink); transform:translateY(-1px)}
.icon-btn svg{width:16px; height:16px; flex:0 0 auto}
.nav-toggle{display:none}

/* menu lingua */
.lang{position:relative}
.lang-menu{
  position:absolute; right:0; top:calc(100% + 10px); min-width:220px; padding:8px;
  background:var(--surface); border:1px solid var(--line); border-radius:var(--r-m);
  box-shadow:var(--shadow-l); display:none; z-index:95;
}
.lang.is-open .lang-menu{display:block}
.lang-menu button{
  display:flex; width:100%; align-items:center; justify-content:space-between; gap:10px;
  padding:.55em .7em; border:0; background:none; border-radius:var(--r-s); cursor:pointer;
  font-size:.9rem; text-align:left;
}
.lang-menu button:hover{background:var(--bg-tint)}
.lang-menu button[disabled]{opacity:.62; cursor:default}
.lang-menu .badge{font-size:.68rem}

/* ---------- barra mobile ---------- */
.mobile-bar{
  display:none; position:fixed; left:0; right:0; bottom:0; z-index:88;
  background:rgba(255,255,255,.92); backdrop-filter:saturate(180%) blur(18px);
  -webkit-backdrop-filter:saturate(180%) blur(18px);
  border-top:1px solid var(--line-soft);
  padding:7px 10px calc(7px + env(safe-area-inset-bottom));
}
.mobile-bar ul{display:flex; margin:0; padding:0; list-style:none; gap:4px}
.mobile-bar li{flex:1}
.mobile-bar a,.mobile-bar button{
  display:flex; flex-direction:column; align-items:center; gap:3px; width:100%;
  padding:5px 2px; border:0; background:none; border-radius:12px; cursor:pointer;
  font-size:.665rem; font-weight:600; letter-spacing:-.01em; color:var(--ink-2); text-decoration:none;
}
.mobile-bar a[aria-disabled="true"]{opacity:.45}
.mobile-bar svg{width:20px; height:20px}
.mobile-bar .is-accent{color:var(--red)}

/* ---------- forme geometriche ---------- */
.deco{position:absolute; inset:0; overflow:hidden; pointer-events:none; z-index:0}
.shape{position:absolute; border-radius:50%; opacity:.5; filter:blur(42px)}
.shape--a{width:min(46vw,460px); aspect-ratio:1; background:radial-gradient(circle at 32% 32%, rgba(124,107,216,.45), transparent 68%); top:-13%; right:-9%}
.shape--b{width:min(38vw,380px); aspect-ratio:1; background:radial-gradient(circle at 60% 40%, rgba(224,49,39,.30), transparent 66%); bottom:-16%; left:-8%}
.shape--c{width:min(28vw,260px); aspect-ratio:1; background:radial-gradient(circle at 50% 50%, rgba(79,179,245,.34), transparent 66%); top:38%; left:44%}
.ring{
  position:absolute; border:1.5px solid var(--line-soft); border-radius:50%;
  opacity:.85; pointer-events:none;
}

/* ---------- hero ---------- */
.hero{position:relative; padding:clamp(52px,8vw,104px) 0 clamp(48px,6vw,88px); overflow:hidden}
.hero .wrap{position:relative; z-index:1}
.hero-grid{display:grid; grid-template-columns:1.04fr .96fr; gap:clamp(26px,4vw,58px); align-items:center}
.hero h1{margin-bottom:.36em}
.hero h1 .l{display:block}
.hero .lead{max-width:33em}
.hero-cta{margin-top:30px}
.hero-note{margin-top:22px; font-size:.85rem; color:var(--muted); display:flex; align-items:center; gap:.5em}
.hero-note::before{content:""; width:7px; height:7px; border-radius:50%; background:var(--ok); flex:0 0 auto}

/* ---------- orbita ecosistema ---------- */
.orbit{position:relative; width:100%; aspect-ratio:1/1; max-width:474px; margin-inline:auto}
.orbit__svg{position:absolute; inset:0; width:100%; height:100%; overflow:visible}
.orbit__spin{position:absolute; inset:0; animation:spin 64s linear infinite}
.orbit:hover .orbit__spin,.orbit.is-paused .orbit__spin{animation-play-state:paused}
@keyframes spin{to{transform:rotate(360deg)}}
.orbit__core{
  position:absolute; left:50%; top:50%; translate:-50% -50%;
  width:35%; aspect-ratio:1; border-radius:50%; background:var(--surface);
  box-shadow:var(--shadow-l); display:grid; place-items:center; padding:10%;
  z-index:3; border:1px solid var(--line-soft);
}
.orbit__core img{width:100%}
.orbit__core::after{
  content:""; position:absolute; inset:-9px; border-radius:50%;
  background:var(--brand-gradient); opacity:.14; z-index:-1;
  animation:pulse 5.5s ease-in-out infinite;
}
@keyframes pulse{0%,100%{transform:scale(1); opacity:.13} 50%{transform:scale(1.07); opacity:.24}}
.orbit__node{
  position:absolute; left:50%; top:50%; width:68px; height:68px; margin:-34px 0 0 -34px;
  translate:calc(cos(var(--a)) * var(--r)) calc(sin(var(--a)) * var(--r));
  border-radius:50%; border:1px solid var(--line); background:var(--surface);
  box-shadow:var(--shadow-s); cursor:pointer; display:grid; place-items:center;
  padding:0; z-index:2; animation:spin-rev 64s linear infinite;
  transition:box-shadow .3s var(--ease), border-color .25s, scale .3s var(--ease);
}
@keyframes spin-rev{to{transform:rotate(-360deg)}}
.orbit:hover .orbit__node,.orbit.is-paused .orbit__node{animation-play-state:paused}
.orbit__node:hover,.orbit__node.is-active{border-color:var(--ink); box-shadow:var(--shadow-m); scale:1.1}
.orbit__node svg{width:26px; height:26px}
.orbit__node .nm{
  position:absolute; top:calc(100% + 7px); left:50%; translate:-50% 0; white-space:nowrap;
  font-size:.72rem; font-weight:640; color:var(--ink-2); letter-spacing:-.01em;
}
.orbit__hint{position:absolute; left:50%; bottom:-6px; translate:-50% 0; font-size:.78rem; color:var(--muted)}

.orbit-detail{
  margin-top:20px; background:var(--surface); border:1px solid var(--line);
  border-radius:var(--r-l); padding:clamp(18px,2.4vw,26px); box-shadow:var(--shadow-s);
  min-height:150px;
}
.orbit-detail__head{display:flex; align-items:center; gap:12px; margin-bottom:10px; flex-wrap:wrap}
.orbit-detail__mark{width:40px; height:40px; border-radius:12px; display:grid; place-items:center; flex:0 0 auto}
.orbit-detail__mark svg{width:21px; height:21px}
.orbit-detail h3{margin:0}
.orbit-detail p{margin:0 0 14px; color:var(--ink-2); font-size:.98rem}

/* ---------- card ---------- */
.card{
  position:relative; background:var(--surface); border:1px solid var(--line);
  border-radius:var(--r-l); padding:clamp(20px,2.4vw,28px);
  transition:transform .38s var(--ease), box-shadow .38s var(--ease), border-color .3s;
  overflow:hidden;
}
.card--hover:hover{transform:translateY(-5px); box-shadow:var(--shadow-l); border-color:transparent}
.card__mark{
  width:46px; height:46px; border-radius:14px; display:grid; place-items:center; margin-bottom:16px;
}
.card__mark svg{width:23px; height:23px}
.card h3{margin-bottom:.35em}
.card p{color:var(--muted); font-size:.95rem; margin-bottom:1em}
.card__top{display:flex; align-items:flex-start; justify-content:space-between; gap:12px}
.card__meta{display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-bottom:14px}
.card__cat{font-size:.755rem; font-weight:640; letter-spacing:.09em; text-transform:uppercase; color:var(--muted)}
.card__dest{font-size:.79rem; color:var(--muted); margin:0 0 14px; word-break:break-word}
.card__dest code{font-size:.95em; background:var(--bg-tint); padding:.12em .45em; border-radius:5px; color:var(--ink-2)}
.card--accent::before{
  content:""; position:absolute; inset:0 0 auto 0; height:3px; background:var(--acc,var(--red));
  transform:scaleX(0); transform-origin:left; transition:transform .45s var(--ease);
}
.card--accent:hover::before{transform:scaleX(1)}

/* passi */
.steps{counter-reset:s; display:grid; gap:18px; grid-template-columns:repeat(4,1fr)}
.step{position:relative; padding-top:26px; border-top:2px solid var(--line); counter-increment:s}
.step::before{
  content:counter(s,decimal-leading-zero); position:absolute; top:-1px; left:0; transform:translateY(-50%);
  background:var(--bg); padding-right:12px; font-size:.82rem; font-weight:700; color:var(--red); letter-spacing:.06em;
}
.section--tint .step::before{background:var(--bg-tint)}
.step h3{font-size:1.06rem; margin-bottom:.4em}
.step p{color:var(--muted); font-size:.94rem; margin:0}

/* elenco puntato con segno */
.ticks{list-style:none; padding:0; margin:0; display:grid; gap:13px}
.ticks li{position:relative; padding-left:31px; color:var(--ink-2)}
.ticks li::before{
  content:""; position:absolute; left:0; top:.42em; width:17px; height:17px; border-radius:50%;
  background:var(--red-soft);
}
.ticks li::after{
  content:""; position:absolute; left:5px; top:.72em; width:6px; height:3px;
  border-left:2px solid var(--red); border-bottom:2px solid var(--red);
  transform:rotate(-45deg);
}
.ticks strong{color:var(--ink)}

/* ---------- accordion ---------- */
.acc{border-top:1px solid var(--line)}
.acc details{border-bottom:1px solid var(--line)}
.acc summary{
  display:flex; align-items:flex-start; justify-content:space-between; gap:18px;
  padding:1.05em 0; cursor:pointer; font-weight:620; list-style:none; font-size:1.02rem;
}
.acc summary::-webkit-details-marker{display:none}
.acc summary::after{
  content:"+"; flex:0 0 auto; width:26px; height:26px; border-radius:50%; border:1.5px solid var(--line);
  display:grid; place-items:center; font-weight:500; font-size:1.06rem; line-height:1;
  transition:transform .3s var(--ease), background .25s, color .25s, border-color .25s;
}
.acc details[open] summary::after{content:"+"; transform:rotate(45deg); background:var(--red); color:#fff; border-color:var(--red)}
.acc .acc__body{padding:0 0 1.3em; color:var(--ink-2); max-width:62em}
.acc .acc__body p:last-child{margin-bottom:0}

/* ---------- timeline roadmap ---------- */
.tl{position:relative; padding-left:30px; margin:0}
.tl::before{content:""; position:absolute; left:7px; top:6px; bottom:6px; width:2px; background:var(--line)}
.tl__item{position:relative; padding:0 0 26px}
.tl__item::before{
  content:""; position:absolute; left:-30px; top:5px; width:16px; height:16px; border-radius:50%;
  background:var(--surface); border:3px solid var(--plan);
}
.tl__item[data-stato="disponibile"]::before{border-color:var(--ok)}
.tl__item[data-stato="in-sviluppo"]::before{border-color:var(--wait)}
.tl__item h3{font-size:1.05rem; margin-bottom:.25em; display:flex; align-items:center; gap:10px; flex-wrap:wrap}
.tl__item p{color:var(--muted); font-size:.94rem; margin:0}

/* ---------- form ---------- */
.form{display:grid; gap:16px}
.field{display:grid; gap:6px}
.field label{font-size:.88rem; font-weight:620}
.field .hint{font-size:.79rem; color:var(--muted)}
.field input,.field select,.field textarea{
  width:100%; padding:.76em .9em; border:1.5px solid var(--line); border-radius:var(--r-s);
  background:var(--surface); font-size:.97rem; transition:border-color .2s, box-shadow .2s;
}
.field input:focus,.field select:focus,.field textarea:focus{
  outline:none; border-color:var(--red); box-shadow:0 0 0 4px var(--red-soft);
}
.field textarea{min-height:132px; resize:vertical}
.field--row{display:grid; grid-template-columns:1fr 1fr; gap:16px}
.check{display:flex; gap:10px; align-items:flex-start; font-size:.87rem; color:var(--ink-2)}
.check input{margin-top:.25em; width:17px; height:17px; accent-color:var(--red); flex:0 0 auto}
.notice{
  border:1px solid var(--line); border-left:3px solid var(--red); background:var(--surface);
  border-radius:var(--r-s); padding:.95em 1.1em; font-size:.89rem; color:var(--ink-2);
}
.notice strong{color:var(--ink)}
.notice--ok{border-left-color:var(--ok)}
.notice--info{border-left-color:var(--g2)}
.form-status{font-size:.9rem; min-height:1.2em}

/* ---------- AGIBot ---------- */
.agibot-fab{
  position:fixed; right:20px; bottom:20px; z-index:92;
  display:inline-flex; align-items:center; gap:.55em; padding:.8em 1.25em;
  border:0; border-radius:999px; background:var(--ink); color:#fff; cursor:pointer;
  font-weight:620; font-size:.93rem; box-shadow:var(--shadow-l);
  transition:transform .3s var(--ease), background .25s;
}
.agibot-fab:hover{transform:translateY(-3px); background:#000}
.agibot-fab .dot{width:8px; height:8px; border-radius:50%; background:var(--brand-gradient); flex:0 0 auto}
.agibot-panel{
  position:fixed; right:20px; bottom:20px; z-index:95; width:min(408px, calc(100vw - 32px));
  height:min(624px, calc(100vh - 40px)); background:var(--surface); border:1px solid var(--line);
  border-radius:var(--r-xl); box-shadow:var(--shadow-l); display:none; flex-direction:column; overflow:hidden;
}
.agibot-panel.is-open{display:flex; animation:pop .34s var(--ease)}
@keyframes pop{from{opacity:0; transform:translateY(18px) scale(.97)} to{opacity:1; transform:none}}
.agibot-head{
  display:flex; align-items:center; gap:11px; padding:15px 16px; border-bottom:1px solid var(--line-soft);
  background:var(--bg);
}
.agibot-head .av{width:36px; height:36px; border-radius:50%; background:var(--brand-gradient); flex:0 0 auto; display:grid; place-items:center; color:#fff; font-weight:700; font-size:.82rem}
.agibot-head h4{margin:0; font-size:.97rem}
.agibot-head .st{font-size:.755rem; color:var(--muted); display:flex; align-items:center; gap:.4em}
.agibot-head .st::before{content:""; width:6px; height:6px; border-radius:50%; background:var(--ok)}
.agibot-close{margin-left:auto; background:none; border:0; cursor:pointer; font-size:1.3rem; line-height:1; color:var(--muted); padding:.2em .4em; border-radius:8px}
.agibot-close:hover{background:var(--bg-tint); color:var(--ink)}
.agibot-log{flex:1; overflow-y:auto; padding:16px; display:flex; flex-direction:column; gap:12px; scroll-behavior:smooth}
.msg{max-width:88%; font-size:.91rem; line-height:1.55}
.msg .who{font-size:.68rem; font-weight:660; letter-spacing:.07em; text-transform:uppercase; color:var(--muted); margin-bottom:4px; display:flex; align-items:center; gap:.4em}
.msg .bubble{padding:.72em .92em; border-radius:15px; border:1px solid var(--line-soft); background:var(--bg)}
.msg.me{align-self:flex-end; max-width:82%}
.msg.me .who{justify-content:flex-end}
.msg.me .bubble{background:var(--ink); color:#fff; border-color:var(--ink); border-bottom-right-radius:5px}
.msg.bot .bubble{border-bottom-left-radius:5px}
.msg.sys .bubble{background:var(--red-soft); border-color:transparent; color:var(--ink-2); font-size:.855rem}
.msg .who .ai-dot{width:6px; height:6px; border-radius:50%; background:var(--brand-gradient)}
.msg .who .hu-dot{width:6px; height:6px; border-radius:50%; background:var(--ok)}
.agibot-chips{display:flex; flex-wrap:wrap; gap:7px; padding:0 16px 12px}
.chip{
  border:1.5px solid var(--line); background:var(--surface); border-radius:999px;
  padding:.42em .82em; font-size:.8rem; font-weight:560; cursor:pointer; transition:border-color .2s, transform .2s;
}
.chip:hover{border-color:var(--ink); transform:translateY(-1px)}
.agibot-foot{border-top:1px solid var(--line-soft); padding:11px 12px; display:flex; gap:8px; align-items:flex-end; background:var(--bg)}
.agibot-foot textarea{
  flex:1; border:1.5px solid var(--line); border-radius:14px; padding:.6em .8em; font-size:.9rem;
  resize:none; height:42px; max-height:104px; background:var(--surface);
}
.agibot-foot textarea:focus{outline:none; border-color:var(--red)}
.agibot-send{
  width:42px; height:42px; flex:0 0 auto; border:0; border-radius:50%; background:var(--red); color:#fff;
  cursor:pointer; display:grid; place-items:center; transition:background .2s, transform .25s var(--ease);
}
.agibot-send:hover{background:var(--red-dark); transform:scale(1.06)}
.agibot-disclaimer{padding:0 16px 10px; font-size:.7rem; color:var(--muted); text-align:center; background:var(--bg)}
.typing{display:inline-flex; gap:4px; align-items:center; padding:.3em 0}
.typing i{width:6px; height:6px; border-radius:50%; background:var(--muted); animation:blink 1.25s infinite}
.typing i:nth-child(2){animation-delay:.18s}
.typing i:nth-child(3){animation-delay:.36s}
@keyframes blink{0%,60%,100%{opacity:.25} 30%{opacity:1}}

/* ---------- cookie ---------- */
.cookie{
  position:fixed; left:16px; right:16px; bottom:16px; z-index:96; max-width:640px; margin-inline:auto;
  background:var(--surface); border:1px solid var(--line); border-radius:var(--r-l);
  box-shadow:var(--shadow-l); padding:20px; display:none;
}
.cookie.is-open{display:block; animation:pop .34s var(--ease)}
.cookie h4{margin-bottom:.4em}
.cookie p{font-size:.88rem; color:var(--muted); margin-bottom:1em}

/* ---------- footer ---------- */
.site-footer{background:var(--ink); color:rgba(244,243,241,.72); padding:clamp(46px,5.4vw,80px) 0 34px; margin-top:0}
.site-footer a{color:rgba(244,243,241,.72); text-decoration:none; transition:color .2s}
.site-footer a:hover{color:#fff}
.footer-top{display:grid; grid-template-columns:1.5fr repeat(3,1fr); gap:34px; padding-bottom:38px}
.footer-brand img{height:28px; width:auto}
.footer-brand p{font-size:.88rem; margin:16px 0 18px; max-width:32ch}
.footer-col h5{color:#fff; font-size:.78rem; letter-spacing:.12em; text-transform:uppercase; margin:0 0 14px; font-weight:640}
.footer-col ul{list-style:none; margin:0; padding:0; display:grid; gap:9px; font-size:.9rem}
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.12); padding-top:22px; display:flex; flex-wrap:wrap;
  gap:14px 26px; align-items:center; font-size:.8rem;
}
.footer-bottom .legal{display:flex; flex-wrap:wrap; gap:14px 20px; margin-left:auto}
.store-badges{display:flex; gap:10px; flex-wrap:wrap}
.store-badge{
  display:inline-flex; align-items:center; gap:9px; padding:.55em 1em; border-radius:12px;
  border:1.5px solid rgba(255,255,255,.22); text-decoration:none; transition:border-color .2s, transform .25s var(--ease);
}
.store-badge:hover{border-color:#fff; transform:translateY(-2px)}
.store-badge svg{width:20px; height:20px; flex:0 0 auto}
.store-badge span{display:block; line-height:1.18}
.store-badge .s1{font-size:.62rem; opacity:.72}
.store-badge .s2{font-size:.88rem; font-weight:640; color:#fff}
.store-badge[aria-disabled="true"]{opacity:.55; pointer-events:none}
.site-footer .store-badge{color:rgba(244,243,241,.72)}

/* store badge su fondo chiaro */
.store-badge--light{border-color:var(--line); color:var(--ink-2)}
.store-badge--light .s2{color:var(--ink)}
.store-badge--light:hover{border-color:var(--ink); transform:translateY(-2px)}

/* ---------- animazioni di ingresso ---------- */
.reveal{opacity:0; transform:translateY(22px); transition:opacity .7s var(--ease), transform .7s var(--ease)}
.reveal.is-in{opacity:1; transform:none}
.reveal[data-d="1"]{transition-delay:.08s}
.reveal[data-d="2"]{transition-delay:.16s}
.reveal[data-d="3"]{transition-delay:.24s}
.reveal[data-d="4"]{transition-delay:.32s}
.reveal[data-d="5"]{transition-delay:.4s}

/* ---------- utility pagina ---------- */
.page-head{padding:clamp(44px,5.6vw,86px) 0 clamp(24px,3vw,40px); position:relative; overflow:hidden}
.page-head .wrap{position:relative; z-index:1}
.crumbs{font-size:.82rem; color:var(--muted); margin-bottom:1.4em}
.crumbs a{text-decoration:none}
.crumbs a:hover{color:var(--red)}
.prose h2{margin-top:1.9em}
.prose h3{margin-top:1.6em}
.prose ul,.prose ol{padding-left:1.25em; color:var(--ink-2)}
.prose li{margin-bottom:.5em}
.prose table{width:100%; border-collapse:collapse; font-size:.93rem; margin:1.4em 0}
.prose th,.prose td{text-align:left; padding:.72em .8em; border-bottom:1px solid var(--line)}
.prose th{font-size:.78rem; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); font-weight:640}
.table-scroll{overflow-x:auto}
.anchor-nav{
  position:sticky; top:calc(var(--nav-h) + 16px); align-self:start;
  display:grid; gap:3px; font-size:.88rem;
}
.anchor-nav a{
  padding:.42em .7em; border-radius:8px; text-decoration:none; color:var(--muted);
  border-left:2px solid var(--line); transition:color .2s, border-color .2s, background .2s;
}
.anchor-nav a:hover{color:var(--ink); border-left-color:var(--red); background:var(--bg-tint)}
.with-aside{display:grid; grid-template-columns:230px 1fr; gap:clamp(26px,4vw,58px); align-items:start}

.kpi{display:grid; gap:4px}
.kpi dt{font-size:.76rem; letter-spacing:.09em; text-transform:uppercase; color:var(--muted); font-weight:640}
.kpi dd{margin:0; font-size:1.02rem; font-weight:600}
.kpi dd.todo{color:var(--muted); font-weight:500; font-style:italic}

/* risultati ricerca */
.result{padding:18px 0; border-bottom:1px solid var(--line)}
.result h3{margin-bottom:.25em; font-size:1.08rem}
.result a{text-decoration:none}
.result a:hover{color:var(--red)}
.result p{margin:0; color:var(--muted); font-size:.92rem}
.result mark{background:var(--red-soft); color:var(--red-dark); padding:0 .15em; border-radius:3px}

/* ---------- responsive ---------- */
@media (max-width:1040px){
  .nav-links{display:none}
  .nav-toggle{display:inline-flex}
  .hero-grid{grid-template-columns:1fr; gap:38px}
  .orbit{max-width:440px}
  .with-aside{grid-template-columns:1fr}
  .anchor-nav{position:static; display:flex; flex-wrap:wrap; gap:6px}
  .anchor-nav a{border-left:0; border:1.5px solid var(--line); border-radius:999px}
  .footer-top{grid-template-columns:1fr 1fr}
}
@media (max-width:860px){
  .g-4{grid-template-columns:repeat(2,1fr)}
  .g-3{grid-template-columns:repeat(2,1fr)}
  .steps{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:680px){
  body{font-size:16.5px; padding-bottom:70px}
  /* su telefono le azioni stanno nella barra in basso: l'intestazione resta pulita */
  .nav-actions .icon-btn[data-cfg],
  .nav-actions .icon-btn[data-agibot-open]{display:none}
  .brand img{height:23px}
  .wrap,.wrap-narrow{width:calc(100% - 32px)}
  .g-2,.g-3,.g-4{grid-template-columns:1fr}
  .steps{grid-template-columns:1fr}
  .field--row{grid-template-columns:1fr}
  .footer-top{grid-template-columns:1fr; gap:26px}
  .mobile-bar{display:block}
  .agibot-fab{display:none}
  .agibot-panel{right:0; left:0; bottom:0; width:100%; height:88vh; border-radius:var(--r-xl) var(--r-xl) 0 0; border-bottom:0}
  .cookie{bottom:78px}
  .footer-bottom .legal{margin-left:0}
  .btn{width:100%}
  .btn-row{flex-direction:column; align-items:stretch}
  .btn-row .btn{width:100%}
}

/* menu mobile a tendina */
.mobile-menu{
  position:fixed; inset:var(--nav-h) 0 0; z-index:89; background:var(--bg);
  padding:22px 20px calc(90px + env(safe-area-inset-bottom)); overflow-y:auto; display:none;
}
.mobile-menu.is-open{display:block; animation:fade .25s var(--ease)}
@keyframes fade{from{opacity:0; transform:translateY(-8px)} to{opacity:1; transform:none}}
.mobile-menu ul{list-style:none; margin:0 0 22px; padding:0; display:grid; gap:2px}
.mobile-menu a{
  display:flex; align-items:center; justify-content:space-between; padding:.82em .2em;
  border-bottom:1px solid var(--line-soft); text-decoration:none; font-size:1.1rem; font-weight:600;
}
.mobile-menu a::after{content:"→"; color:var(--muted)}

@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; scroll-behavior:auto !important}
  .reveal{opacity:1; transform:none}
}
@media print{
  .site-header,.mobile-bar,.agibot-fab,.agibot-panel,.cookie,.site-footer .footer-top{display:none !important}
  body{background:#fff}
}

/* =========================================================================
   Sfondi animati, vetrina dei progetti, pagine di progetto
   Aggiunte successive: tutto rispetta prefers-reduced-motion (in fondo al file).
   ========================================================================= */

/* ---------- aurora: il fondo che cambia colore ogni 3 secondi ---------- */
.aurora{
  position:absolute; inset:-25% -10%; z-index:0; pointer-events:none; overflow:hidden;
  mask-image:linear-gradient(#000 58%, transparent 96%);
  -webkit-mask-image:linear-gradient(#000 58%, transparent 96%);
}
.aurora__blob{
  position:absolute; width:58%; aspect-ratio:1; border-radius:50%;
  filter:blur(96px); opacity:.40; mix-blend-mode:multiply;
  animation:auroraColor 12s steps(1,end) infinite, auroraDrift 26s ease-in-out infinite;
}
.aurora__blob:nth-child(1){top:-14%; left:-6%;  animation-delay:0s, -3s}
.aurora__blob:nth-child(2){top:6%;  right:-10%; animation-delay:-3s, -11s; width:52%}
.aurora__blob:nth-child(3){bottom:-22%; left:26%; animation-delay:-6s, -18s; width:46%; opacity:.3}
@keyframes auroraColor{
  0%   {background:radial-gradient(circle at 40% 40%, #7C6BD8, transparent 70%)}
  25%  {background:radial-gradient(circle at 40% 40%, #4FB3F5, transparent 70%)}
  50%  {background:radial-gradient(circle at 40% 40%, #E03127, transparent 70%)}
  75%  {background:radial-gradient(circle at 40% 40%, #F6B25A, transparent 70%)}
  100% {background:radial-gradient(circle at 40% 40%, #7C6BD8, transparent 70%)}
}
@keyframes auroraDrift{
  0%,100%{transform:translate3d(0,0,0) scale(1)}
  33%    {transform:translate3d(6%,4%,0) scale(1.12)}
  66%    {transform:translate3d(-5%,-3%,0) scale(.94)}
}

/* ---------- trama “crescita”: griglia + curva che si disegna ---------- */
.growth{position:absolute; inset:0; z-index:0; pointer-events:none; opacity:.45}
.growth__grid{
  position:absolute; inset:0;
  background-image:linear-gradient(var(--line-soft) 1px, transparent 1px),
                   linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size:62px 62px;
  mask-image:radial-gradient(ellipse 70% 62% at 50% 34%, #000 30%, transparent 78%);
  -webkit-mask-image:radial-gradient(ellipse 70% 62% at 50% 34%, #000 30%, transparent 78%);
}
.growth__svg{position:absolute; inset:0; width:100%; height:100%}
.growth__line{
  fill:none; stroke:var(--red); stroke-width:2.4; stroke-linecap:round; opacity:.34;
  stroke-dasharray:1400; stroke-dashoffset:1400;
  animation:traccia 7s var(--ease) infinite;
}
.growth__area{fill:var(--red); opacity:.05}
.growth__bar{fill:var(--ink); opacity:.035; animation:cresci 6s ease-in-out infinite}
.growth__bar:nth-of-type(2){animation-delay:.35s}
.growth__bar:nth-of-type(3){animation-delay:.7s}
.growth__bar:nth-of-type(4){animation-delay:1.05s}
.growth__dot{fill:var(--red); opacity:.55}
@keyframes traccia{0%{stroke-dashoffset:1400} 45%,72%{stroke-dashoffset:0} 100%{stroke-dashoffset:-1400}}
@keyframes cresci{0%,100%{transform:scaleY(.72)} 50%{transform:scaleY(1)}}
.growth__bars{transform-box:fill-box; transform-origin:bottom}
.growth__bar{transform-box:fill-box; transform-origin:bottom}

/* ---------- vetrina dei progetti (carosello) ---------- */
.showcase{position:relative; overflow:hidden}
.showcase__head{display:flex; align-items:flex-end; gap:24px; flex-wrap:wrap; margin-bottom:clamp(24px,3vw,40px)}
.showcase__head .section-head{margin-bottom:0; flex:1 1 440px}
.showcase__nav{display:flex; gap:10px; align-items:center; margin-left:auto; padding-bottom:6px}
.round-btn{
  width:48px; height:48px; border-radius:50%; border:1.5px solid var(--line); background:var(--surface);
  display:grid; place-items:center; cursor:pointer; transition:border-color .2s, transform .25s var(--ease), background .2s;
}
.round-btn:hover{border-color:var(--ink); transform:translateY(-2px)}
.round-btn:disabled{opacity:.35; cursor:default; transform:none}
.round-btn svg{width:19px; height:19px}

.showcase__track{
  display:flex; gap:clamp(16px,1.8vw,26px); overflow-x:auto; scroll-snap-type:x mandatory;
  padding-block:14px 30px; padding-inline:max(20px, calc((100% - var(--wrap)) / 2));
  scrollbar-width:none; -ms-overflow-style:none; scroll-behavior:smooth;
}
.showcase__track::-webkit-scrollbar{display:none}

.slide{
  position:relative; flex:0 0 auto; width:clamp(276px, 31vw, 408px); scroll-snap-align:center;
  border-radius:var(--r-xl); overflow:hidden; background:var(--surface); text-decoration:none;
  border:1px solid var(--line); box-shadow:var(--shadow-s);
  transform:perspective(1200px) translateY(0) scale(.955); opacity:.72;
  transition:transform .55s var(--ease), opacity .45s var(--ease), box-shadow .55s var(--ease), border-color .3s;
  will-change:transform;
}
.slide.is-active{transform:perspective(1200px) translateY(-6px) scale(1); opacity:1; box-shadow:var(--shadow-l); border-color:transparent}
.slide:hover{opacity:1}
.slide:hover .slide__img{transform:scale(1.07)}
.slide:hover .slide__go{gap:.85em; background:var(--acc)}
.slide__media{position:relative; aspect-ratio:4/3.1; overflow:hidden; background:var(--bg-tint)}
.slide__img{width:100%; height:100%; object-fit:cover; transition:transform 1.1s var(--ease); display:block}
.slide__shade{position:absolute; inset:auto 0 0 0; height:62%; background:linear-gradient(transparent, rgba(10,9,14,.62))}
.slide__badge{position:absolute; top:15px; left:15px; backdrop-filter:blur(8px); background:rgba(255,255,255,.86)}
.slide__mark{
  position:absolute; right:16px; bottom:16px; width:46px; height:46px; border-radius:15px;
  display:grid; place-items:center; background:rgba(255,255,255,.92); color:var(--acc);
  box-shadow:0 6px 20px rgba(10,9,14,.22);
}
.slide__mark svg{width:23px; height:23px}
.slide__body{padding:20px 22px 24px}
.slide__body h3{margin:6px 0 .3em; font-size:1.3rem}
.slide__body p{color:var(--muted); font-size:.93rem; margin:0 0 16px; min-height:2.9em}
.slide__go{
  display:inline-flex; align-items:center; gap:.5em; padding:.56em 1.1em; border-radius:999px;
  background:var(--ink); color:#fff; font-size:.85rem; font-weight:620;
  transition:gap .3s var(--ease), background .3s;
}
.slide__go::after{content:"→"}
.slide::before{
  content:""; position:absolute; inset:0; border-radius:inherit; pointer-events:none;
  box-shadow:inset 0 0 0 2px var(--acc); opacity:0; transition:opacity .35s;
}
.slide.is-active::before{opacity:.35}

.showcase__dots{display:flex; justify-content:center; gap:8px; margin-top:6px}
.showcase__dots button{
  width:8px; height:8px; padding:0; border:0; border-radius:50%; background:var(--line);
  cursor:pointer; transition:width .35s var(--ease), background .3s;
}
.showcase__dots button[aria-current="true"]{width:26px; border-radius:999px; background:var(--red)}

/* ---------- pagina di progetto ---------- */
.proj-hero{position:relative; padding:clamp(26px,4vw,56px) 0 clamp(34px,4vw,64px); overflow:hidden}
.proj-hero .wrap{position:relative; z-index:1}
.proj-hero__grid{display:grid; grid-template-columns:1fr 1.06fr; gap:clamp(26px,4vw,60px); align-items:center}
.proj-hero__meta{display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:16px}
.proj-hero h1{font-size:clamp(2.2rem,1.4rem + 3vw,3.6rem)}
.proj-hero__dest{margin-top:22px; font-size:.85rem; color:var(--muted)}
.proj-hero__dest code{background:var(--bg-tint); padding:.14em .5em; border-radius:6px; color:var(--ink-2)}
.proj-hero__cover{
  position:relative; margin:0; border-radius:var(--r-xl); overflow:hidden;
  box-shadow:var(--shadow-l); aspect-ratio:3/2; background:var(--bg-tint);
}
.proj-hero__cover img{width:100%; height:100%; object-fit:cover; display:block}
.proj-hero__mark{
  position:absolute; left:20px; bottom:20px; width:56px; height:56px; border-radius:18px;
  display:grid; place-items:center; background:rgba(255,255,255,.93); color:var(--acc);
  box-shadow:0 8px 26px rgba(10,9,14,.24);
}
.proj-hero__mark svg{width:27px; height:27px}

@media (max-width:900px){
  .proj-hero__grid{grid-template-columns:1fr; gap:30px}
  .proj-hero__cover{order:-1}
}
@media (max-width:680px){
  .slide{width:80vw}
  .showcase__head{flex-direction:column; align-items:stretch}
  .showcase__nav{display:none}
  .aurora__blob{filter:blur(58px)}
}

@media (prefers-reduced-motion: reduce){
  .aurora__blob{animation:none; background:radial-gradient(circle at 40% 40%, #7C6BD8, transparent 70%)}
  .growth__line{animation:none; stroke-dashoffset:0}
  .growth__bar{animation:none}
  .slide{opacity:1; transform:none}
  .showcase__track{scroll-behavior:auto}
}

/* =========================================================================
   Bande, schede colorate e passi animati: danno ritmo alle sezioni sotto
   la vetrina dei progetti.
   ========================================================================= */

/* ---------- banda a tutta larghezza ---------- */
.band{
  position:relative; overflow:hidden; color:#fff;
  padding:clamp(58px,7vw,104px) 0;
  isolation:isolate;
}
.band__bg{
  position:absolute; inset:-12% 0; z-index:-2; width:100%; height:124%;
  object-fit:cover; display:block; will-change:transform;
}
.band::after{
  content:""; position:absolute; inset:0; z-index:-1;
  background:linear-gradient(100deg, rgba(11,10,18,.72) 8%, rgba(11,10,18,.34) 52%, rgba(11,10,18,.62) 100%);
}
.band h2{color:#fff; max-width:17ch}
.band .lead{color:rgba(255,255,255,.84); max-width:52ch}
.band .mono-label{color:#FFC9C5}
.band .mono-label::before{background:#FFC9C5}
.band__grid{display:grid; grid-template-columns:1.25fr .75fr; gap:clamp(26px,4vw,64px); align-items:center}
.band__figures{display:grid; gap:14px}
.band__fig{
  background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.19);
  border-radius:var(--r-m); padding:16px 18px; backdrop-filter:blur(7px);
  transition:transform .4s var(--ease), background .3s;
}
.band__fig:hover{transform:translateX(6px); background:rgba(255,255,255,.16)}
.band__fig strong{display:block; font-size:1.02rem; margin-bottom:3px}
.band__fig span{font-size:.88rem; color:rgba(255,255,255,.74)}

/* ---------- nastro dei progetti ---------- */
.ticker{
  position:relative; overflow:hidden; padding:20px 0;
  background:var(--ink); border-block:1px solid rgba(255,255,255,.08);
  mask-image:linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  -webkit-mask-image:linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.ticker__run{display:flex; width:max-content; animation:scorri 38s linear infinite}
.ticker:hover .ticker__run{animation-play-state:paused}
@keyframes scorri{from{transform:translateX(0)} to{transform:translateX(-50%)}}
.ticker__item{
  display:inline-flex; align-items:center; gap:12px; padding:0 30px; text-decoration:none;
  font-size:clamp(1.15rem,1rem + .8vw,1.7rem); font-weight:660; letter-spacing:-.02em;
  color:rgba(255,255,255,.5); white-space:nowrap; transition:color .3s;
}
.ticker__item:hover{color:#fff}
.ticker__item::before{
  content:""; width:9px; height:9px; border-radius:50%; background:var(--acc,#fff); flex:0 0 auto;
}

/* ---------- schede colorate ---------- */
.card--color{
  --tinta:var(--red);
  position:relative; overflow:hidden; border-color:transparent;
  background:linear-gradient(160deg, color-mix(in srgb, var(--tinta) 13%, #fff), #fff 62%);
  box-shadow:var(--shadow-s);
}
.card--color .card__mark{background:color-mix(in srgb, var(--tinta) 16%, #fff); color:var(--tinta)}
.card--color::after{
  content:""; position:absolute; right:-46px; bottom:-56px; width:150px; height:150px; border-radius:50%;
  background:var(--tinta); opacity:.11; transition:transform .6s var(--ease), opacity .5s;
}
.card--color:hover{transform:translateY(-6px); box-shadow:var(--shadow-l)}
.card--color:hover::after{transform:scale(1.5); opacity:.17}
.card--color h3{position:relative}
@supports not (background: color-mix(in srgb, red 10%, white)){
  .card--color{background:#fff}
  .card--color .card__mark{background:var(--bg-tint)}
}

/* ---------- passi con filo animato ---------- */
.steps--filo{position:relative}
.steps--filo::before{
  content:""; position:absolute; top:2px; left:0; right:0; height:2px;
  background:linear-gradient(90deg, var(--g1), var(--g2), var(--g3), var(--g4));
  transform:scaleX(0); transform-origin:left; transition:transform 1.5s var(--ease);
}
.steps--filo.is-in::before{transform:scaleX(1)}
.steps--filo .step{border-top-color:transparent; padding-top:34px}
.steps--filo .step::before{
  top:15px; left:0; transform:none; background:transparent; padding:0;
  color:var(--tinta,var(--red)); font-size:.76rem; letter-spacing:.12em;
}
.steps--filo .step::after{
  content:""; position:absolute; top:-6px; left:0; width:14px; height:14px; border-radius:50%;
  background:var(--surface); border:2.5px solid var(--tinta,var(--red)); opacity:0; transform:scale(.4);
  transition:opacity .5s var(--ease), transform .5s var(--ease);
}
.steps--filo.is-in .step::after{opacity:1; transform:scale(1)}
.steps--filo .step:nth-child(2)::after{transition-delay:.18s}
.steps--filo .step:nth-child(3)::after{transition-delay:.36s}
.steps--filo .step:nth-child(4)::after{transition-delay:.54s}

/* ---------- riquadro con sfondo animato ---------- */
.glow-box{
  position:relative; border-radius:var(--r-xl); overflow:hidden; padding:clamp(26px,3vw,40px);
  background:var(--surface); border:1px solid var(--line); isolation:isolate;
}
.glow-box::before{
  content:""; position:absolute; inset:-40%; z-index:-1; opacity:.22; filter:blur(52px);
  background:conic-gradient(from 0deg, var(--g1), var(--g2), var(--g3), var(--g4), var(--g1));
  animation:gira 22s linear infinite;
}
@keyframes gira{to{transform:rotate(360deg)}}

/* ---------- chiusura a gradiente ---------- */
.section--gradient{
  position:relative; overflow:hidden; color:#fff;
  background:linear-gradient(125deg, #1B1730, #3A2A63 38%, #93334C 72%, #C4452C);
}
.section--gradient h2{color:#fff}
.section--gradient .lead{color:rgba(255,255,255,.84)}
.section--gradient .btn--ghost{--btn-fg:#fff; --btn-bd:rgba(255,255,255,.42)}
.section--gradient .btn--ghost:hover{--btn-bd:#fff}
.section--gradient .aurora__blob{mix-blend-mode:screen; opacity:.34}

/* ---------- comparse con direzione ---------- */
.reveal--left{transform:translateX(-26px)}
.reveal--right{transform:translateX(26px)}
.reveal--zoom{transform:scale(.94)}
.reveal--left.is-in,.reveal--right.is-in,.reveal--zoom.is-in{transform:none}

@media (max-width:900px){
  .band__grid{grid-template-columns:1fr; gap:30px}
}
@media (prefers-reduced-motion: reduce){
  .ticker__run{animation:none}
  .glow-box::before{animation:none}
  .steps--filo::before{transform:scaleX(1)}
  .steps--filo .step::after{opacity:1; transform:none}
}

/* =========================================================================
   AGI Post — variante di tema.
   Stesso sistema di mamify.ai con l'accento del progetto.
   ========================================================================= */
:root{
  --red:       #6C5CE0;
  --red-dark:  #5344BE;
  --red-soft:  rgba(108,92,224,.11);
}
.section--ink .mono-label,.band .mono-label{color:#BFB4FF}
.section--ink .mono-label::before,.band .mono-label::before{background:#BFB4FF}

/* ---------- statistiche reali ---------- */
.stats{display:grid; grid-template-columns:repeat(4,1fr); gap:18px}
.stat{
  position:relative; background:var(--surface); border:1px solid var(--line); color:var(--ink);
  border-radius:var(--r-l); padding:24px 22px; overflow:hidden;
  transition:transform .4s var(--ease), box-shadow .4s var(--ease);
}
.stat:hover{transform:translateY(-4px); box-shadow:var(--shadow-m)}
.stat::after{
  content:""; position:absolute; inset:auto 0 0 0; height:3px;
  background:var(--brand-gradient); transform:scaleX(.18); transform-origin:left;
  transition:transform .7s var(--ease);
}
.stat:hover::after{transform:scaleX(1)}
.stat__n{
  display:block; font-size:clamp(1.9rem,1.3rem + 1.7vw,2.7rem); font-weight:700;
  letter-spacing:-.035em; line-height:1.05; font-variant-numeric:tabular-nums;
  background:var(--brand-gradient); -webkit-background-clip:text; background-clip:text; color:transparent;
}
.stat__l{display:block; margin-top:8px; font-weight:640; font-size:.98rem; color:var(--ink)}
.stat__n2{display:block; margin-top:4px; font-size:.83rem; color:var(--muted) !important}

/* ripartizione per piattaforma */
.pf{display:grid; grid-template-columns:34px 1fr 2.4fr auto; gap:14px; align-items:center; padding:11px 0; border-bottom:1px solid var(--line-soft)}
.pf:last-child{border-bottom:0}
.pf__ico{width:34px; height:34px; border-radius:11px; display:grid; place-items:center; background:var(--bg-tint); color:var(--ink-2)}
.pf__ico svg{width:18px; height:18px}
.pf__nome{font-weight:600; font-size:.95rem}
.pf__barra{height:9px; border-radius:999px; background:var(--bg-tint); overflow:hidden}
.pf__barra i{display:block; height:100%; width:var(--q); border-radius:999px; background:var(--brand-gradient); animation:riempi 1.2s var(--ease) both}
@keyframes riempi{from{width:0}}
.pf__n{font-variant-numeric:tabular-nums; font-weight:640; font-size:.92rem; color:var(--muted); min-width:3ch; text-align:right}

/* ---------- costellazione social nell'apertura ---------- */
.costellazione{position:relative; width:100%; aspect-ratio:1/.92; max-width:480px; margin-inline:auto}
.costellazione__svg{position:absolute; inset:0; width:100%; height:100%}
.costellazione__linea{stroke:var(--line); stroke-width:.4; stroke-dasharray:2 2.4}
.costellazione__nodo{
  position:absolute; width:66px; height:66px; margin:-33px 0 0 -33px; left:50%; top:50%;
  border-radius:20px; background:var(--surface); border:1px solid var(--line);
  box-shadow:var(--shadow-s); display:grid; place-items:center; color:var(--ink-2);
  animation:fluttua 7s ease-in-out infinite;
}
.costellazione__nodo svg{width:26px; height:26px}
.costellazione__nodo:nth-child(2){animation-delay:-1.1s}
.costellazione__nodo:nth-child(3){animation-delay:-2.2s}
.costellazione__nodo:nth-child(4){animation-delay:-3.3s}
.costellazione__nodo:nth-child(5){animation-delay:-4.4s}
.costellazione__nodo:nth-child(6){animation-delay:-5.5s}
@keyframes fluttua{0%,100%{transform:translateY(0)} 50%{transform:translateY(-11px)}}
.costellazione__centro{
  position:absolute; left:50%; top:50%; translate:-50% -50%; width:33%; aspect-ratio:1;
  border-radius:50%; background:var(--surface); box-shadow:var(--shadow-l);
  display:grid; place-items:center; padding:9%; border:1px solid var(--line-soft); z-index:2;
}
.costellazione__centro::after{
  content:""; position:absolute; inset:-10px; border-radius:50%; z-index:-1;
  background:var(--brand-gradient); opacity:.16; animation:pulse 5.5s ease-in-out infinite;
}

/* ---------- passi collegati ---------- */
.flusso{display:grid; grid-template-columns:repeat(4,1fr); gap:20px; counter-reset:f}
.flusso__p{position:relative; counter-increment:f; padding:26px 22px; border-radius:var(--r-l); background:var(--surface); border:1px solid var(--line)}
.flusso__p::before{
  content:counter(f); position:absolute; top:-15px; left:22px; width:32px; height:32px;
  border-radius:50%; background:var(--brand-gradient); color:#fff; display:grid; place-items:center;
  font-weight:700; font-size:.9rem; box-shadow:var(--shadow-s);
}
.flusso__p h3{margin:10px 0 .4em; font-size:1.07rem}
.flusso__p p{margin:0; color:var(--muted); font-size:.93rem}

@media (max-width:900px){ .stats{grid-template-columns:repeat(2,1fr)} .flusso{grid-template-columns:repeat(2,1fr)} }
@media (max-width:620px){ .stats{grid-template-columns:1fr} .flusso{grid-template-columns:1fr} .pf{grid-template-columns:30px 1fr auto; gap:10px} .pf__barra{display:none} }
@media (prefers-reduced-motion: reduce){ .costellazione__nodo{animation:none} .pf__barra i{animation:none} }

/* ---------- intestazione AGI Post ---------- */
.brand__nome{font-weight:700; font-size:1.06rem; letter-spacing:-.025em}
.brand img{height:30px}
.footer-brand img{height:28px}
@media (max-width:1040px){ .nav-mamify span{display:none} }
@media (max-width:680px){ .nav-mamify{display:none} body{padding-bottom:0} }

/* testo riservato ai lettori di schermo: non deve comparire a video */
.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden;
  clip:rect(0 0 0 0); white-space:nowrap; border:0;
}
.btn svg{width:15px; height:15px; flex:0 0 auto}
.btn--esterno svg{opacity:.85}
/* il titolo di apertura sta su due righe anche con la frase lunga */
.hero h1{font-size:clamp(2.2rem,1.35rem + 3vw,3.45rem)}
