:root{
  --black:#000000;
  --navy:#3d4461;
  --slate:#5f6b7a;
  --orange:#fc7419;
  --red:#fe3500;
  --white:#ffffff;
  --ink:#3d4461;
  --grey:#5f6b7a;
  --grey-soft:rgba(95,107,122,.62);
  --line:#e3e5eb;
  --bg:#ffffff;
  --bg-soft:#f6f7f9;
  --on-navy:rgba(255,255,255,.8);
  --on-navy-dim:rgba(255,255,255,.55);
  --radius:16px;
  --sidebar-w:284px;
}
@font-face{
  font-family:'Inter'; font-style:normal; font-weight:100 900; font-display:swap;
  src:url("../fonts/Inter/Inter-VariableFont_opsz,wght.ttf") format('truetype');
}
@font-face{
  font-family:'Manrope'; font-style:normal; font-weight:200 800; font-display:swap;
  src:url("../fonts/Manrope/Manrope-VariableFont_wght.ttf") format('truetype');
}
*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{
  font-family:'Inter',system-ui,sans-serif;
  color:var(--ink);
  background:var(--bg);
  line-height:1.6;
  font-size:16px;
}
h1,h2,h3,h4{font-family:'Manrope',system-ui,sans-serif; line-height:1.18; letter-spacing:-0.01em; text-wrap:balance;}
p{text-wrap:pretty;}
a{color:inherit; text-decoration:none;}
::selection{background:var(--orange); color:var(--black);}

/* ===== LAYOUT ===== */
.layout{display:flex; min-height:100vh;}

/* ===== SIDEBAR / DYNAMIC INDEX ===== */
.sidebar{
  width:var(--sidebar-w); flex-shrink:0; position:fixed; top:0; left:0; bottom:0;
  background:linear-gradient(180deg,var(--navy) 0%, #000000 130%);
  color:var(--on-navy); display:flex; flex-direction:column; z-index:100;
  border-right:1px solid rgba(255,255,255,.06);
}
.sidebar-head{padding:26px 26px 22px; border-bottom:1px solid rgba(255,255,255,.09);}
.brand-lockup{display:flex; align-items:center; gap:10px;}
.brand-icon{width:26px; height:26px; flex-shrink:0;}
.brand-wordmark{font-family:'Manrope',sans-serif; font-weight:800; font-size:21px; color:#fff; letter-spacing:-.02em;}
.brand-wordmark span{color:var(--orange);}
.sidebar-sub{margin-top:8px; font-size:12.5px; font-weight:600; letter-spacing:.06em; text-transform:uppercase; color:var(--on-navy-dim);}
.sidebar-tagline{margin-top:4px; font-size:11.5px; font-weight:500; line-height:1.4; color:var(--on-navy-dim);}

.side-nav{flex:1; overflow-y:auto; padding:18px 14px; display:flex; flex-direction:column; gap:2px;}
.side-nav a{
  display:flex; align-items:center; gap:12px; padding:11px 12px; border-radius:10px;
  font-size:14px; font-weight:600; color:var(--on-navy); opacity:.72;
  transition:background .15s ease, opacity .15s ease, color .15s ease;
  border-left:2px solid transparent;
}
.side-nav a .idx{
  display:flex; align-items:center; justify-content:center; width:19px; height:19px;
  color:var(--on-navy-dim); flex-shrink:0; transition:color .15s ease;
}
.side-nav a .idx svg{width:19px; height:19px; display:block;}
.side-nav a:hover{opacity:1; background:rgba(255,255,255,.06);}
.side-nav a:hover .idx{color:var(--on-navy);}
.side-nav a.active{
  opacity:1; color:#fff; background:rgba(252,116,25,.16); border-left-color:var(--red);
}
.side-nav a.active .idx{color:var(--orange);}

.sidebar-foot{padding:16px 26px 24px; border-top:1px solid rgba(255,255,255,.09); display:flex; align-items:center; gap:10px;}
.sidebar-foot .brand-icon{width:18px; height:18px;}
.sidebar-foot-text{font-size:12px; color:var(--on-navy-dim); line-height:1.4;}
.sidebar-foot-text strong{display:block; color:var(--on-navy); font-weight:600; margin-bottom:2px;}

/* mobile top-bar version of the index */
.topbar{display:none;}

/* ===== CONTENT ===== */
.content{margin-left:var(--sidebar-w); flex:1; min-width:0;}
.container{max-width:840px; margin:0 auto; padding:0 48px;}
section{padding:104px 0; border-bottom:1px solid var(--line); scroll-margin-top:24px;}
section:last-of-type{border-bottom:none;}

.eyebrow{
  display:inline-flex; align-items:center; gap:8px; font-size:12.5px; font-weight:700; letter-spacing:.09em;
  text-transform:uppercase; color:var(--orange); margin-bottom:16px;
}
.eyebrow::before{content:""; width:16px; height:2px; background:var(--red); display:inline-block;}
h2{font-size:32px; font-weight:800; margin-bottom:18px; max-width:620px;}
.lead{font-size:17.5px; color:var(--grey); max-width:600px; margin-bottom:8px;}

/* ---- CLAIM (impactful pull-statements) ---- */
.claim{
  font-family:'Manrope',sans-serif; font-weight:800; font-size:25px; line-height:1.34;
  color:var(--navy); max-width:600px; margin:40px 0; padding-left:22px; border-left:3px solid var(--red);
  text-wrap:balance;
}
.claim-light{color:#fff; border-left-color:var(--red);}

/* ---- COVER ---- */
.cover{
  background:linear-gradient(165deg,var(--navy) 0%, #232741 55%, #000000 100%);
  color:#fff; padding:0; min-height:100vh; display:flex; align-items:center; position:relative; overflow:hidden;
  border-bottom:none;
}
.cover::before{
  content:""; position:absolute; inset:-12%; z-index:0;
  background:radial-gradient(circle at 82% 18%, rgba(252,116,25,.22), transparent 55%);
  pointer-events:none; animation:cover-orange-drift 36s ease-in-out infinite alternate;
}
.cover::after{
  content:""; position:absolute; inset:-12%; z-index:0;
  background:radial-gradient(circle at 8% 90%, rgba(254,53,0,.16), transparent 45%);
  pointer-events:none; animation:cover-red-drift 48s ease-in-out infinite alternate;
}
.cover .container{position:relative; z-index:1; padding:110px 48px;}
.cover-logo{width:min(420px,80vw); height:auto; margin-bottom:40px; display:block;}
.cover h1{font-size:46px; font-weight:800; max-width:760px; margin-bottom:22px;}
.cover .lead{color:var(--on-navy); font-size:19px; max-width:600px;}
.cover-badges{display:flex; gap:10px; flex-wrap:wrap; margin-top:8px;}
.cover-badge{
  padding:9px 16px; border-radius:999px; border:1px solid rgba(255,255,255,.22); font-size:13.5px;
  font-weight:600; color:var(--on-navy); background:rgba(255,255,255,.05);
  text-decoration:none; transition:background .2s ease, border-color .2s ease;
}
a.cover-badge:hover, a.cover-badge:focus-visible{
  background:rgba(255,255,255,.14); border-color:rgba(255,255,255,.45);
}
.cover-scroll{
  position:absolute; left:48px; bottom:40px; font-size:13px; font-weight:600; color:var(--on-navy-dim);
  display:flex; align-items:center; gap:8px;
}
.cover-scroll .arrow{animation:bob 1.8s ease-in-out infinite;}
@keyframes cover-orange-drift{
  0%{transform:translate3d(-4%,-2%,0) scale(1);}
  50%{transform:translate3d(5%,3%,0) scale(1.12);}
  100%{transform:translate3d(-2%,6%,0) scale(1.05);}
}
@keyframes cover-red-drift{
  0%{transform:translate3d(3%,2%,0) scale(1.03);}
  50%{transform:translate3d(-5%,-3%,0) scale(1.14);}
  100%{transform:translate3d(2%,5%,0) scale(1);}
}
@keyframes bob{0%,100%{transform:translateY(0);} 50%{transform:translateY(5px);}}
@media (prefers-reduced-motion:reduce){
  .cover-scroll .arrow, .cover::before, .cover::after{animation:none;}
}

/* ---- IL CONTESTO / SCOPE ---- */
.pain-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin:36px 0 8px;}
.pain{
  border:1px solid var(--line); border-radius:12px; padding:20px; background:var(--bg-soft);
}
.pain .num{font-family:'Manrope',sans-serif; font-weight:800; font-size:13px; color:var(--grey-soft); margin-bottom:8px;}
.pain h5{font-size:15px; font-weight:700; margin-bottom:5px;}
.pain p{font-size:13.5px; color:var(--grey);}
.scope-box{
  border-radius:var(--radius); background:var(--navy); color:#fff; padding:34px 36px; margin-top:32px;
  position:relative; overflow:hidden;
}
.scope-box::before{content:""; position:absolute; inset:0; background:radial-gradient(circle at 90% 0%, rgba(252,116,25,.3), transparent 60%);}
.scope-box .tag{position:relative; font-size:12.5px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--orange); margin-bottom:12px; display:block;}
.scope-claim{position:relative; font-family:'Manrope',sans-serif; font-weight:800; font-size:21px; line-height:1.36; color:#fff; margin-bottom:14px; max-width:560px;}
.scope-box p:not(.scope-claim){position:relative; font-size:16px; color:var(--on-navy); max-width:600px;}

/* ===== SCOPE TAGS ===== */
.scope-tags{position:relative; display:flex; gap:8px; flex-wrap:wrap; margin-top:18px;}
.scope-tags span{
  font-size:12px; font-weight:700; letter-spacing:.02em; padding:6px 12px; border-radius:999px;
  background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.18); color:#fff;
}

/* ---- I PARTNER ---- */
.founders{display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-top:36px;}
@media (max-width:720px){ .founders{grid-template-columns:1fr;} }
.founder-card{border:1px solid var(--line); border-radius:var(--radius); padding:24px; background:var(--bg);}
.logo-slot{
  height:88px; border-radius:10px; display:flex; align-items:center;
  justify-content:center; margin-bottom:18px; background:var(--bg-soft); padding:10px 16px;
}
.logo-slot img{max-height:100%; max-width:100%; width:auto; height:auto; object-fit:contain;}
a.logo-slot{
  text-decoration:none; transition:background .2s ease, box-shadow .2s ease, transform .2s ease;
}
a.logo-slot:hover, a.logo-slot:focus-visible{
  background:var(--bg); box-shadow:0 4px 16px rgba(0,0,0,.10); transform:translateY(-2px);
}
@media (prefers-reduced-motion:reduce){ a.logo-slot{transition:none;} a.logo-slot:hover, a.logo-slot:focus-visible{transform:none;} }
.logo-slot.is-placeholder{border:1.5px dashed var(--line); justify-content:center; color:var(--grey-soft); font-size:12px; font-weight:600;}
.founder-card h5{font-size:16.5px; font-weight:700; margin-bottom:4px;}
.founder-card p{font-size:13.5px; color:var(--grey);}
.founder-card p:empty{display:none;}

/* ---- IL NOSTRO APPROCCIO ---- */
.approach-section{background:var(--bg-soft);}
.roadmap{position:relative; margin-top:40px; padding-left:2px;}
.rm-step{display:grid; grid-template-columns:52px 1fr; gap:20px; position:relative; padding-bottom:30px;}
.rm-step:last-child{padding-bottom:0;}
.rm-line{position:absolute; left:25px; top:38px; bottom:-4px; width:2px; background:var(--line);}
.rm-step:last-child .rm-line{display:none;}
.rm-dot{
  width:52px; height:52px; border-radius:50%; background:#fff; border:1px solid var(--line);
  display:flex; align-items:center; justify-content:center; font-family:'Manrope',sans-serif;
  font-weight:800; font-size:15px; color:var(--orange); flex-shrink:0; z-index:1;
}
.rm-body h5{font-size:16px; font-weight:700; margin-bottom:4px; padding-top:12px;}
.rm-body p{font-size:14.5px; color:var(--grey); max-width:520px;}
.approach-note{
  margin-top:36px; padding:22px 26px; border-left:3px solid var(--orange);
  background:#fff; border:1px solid var(--line); border-left-width:3px; border-radius:0 12px 12px 0;
  font-size:15.5px; color:var(--ink);
}
.method-block{margin-top:44px; padding-top:36px; border-top:1px solid var(--line);}
.method-block h3{font-size:23px; font-weight:800; margin-bottom:10px; max-width:560px;}
.method-block p{font-size:15.5px; color:var(--grey); max-width:560px;}

/* ---- SERVIZI E PRODOTTI ---- */
.services-section{background:var(--bg-soft);}
.service-grid-compact{display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin-top:36px;}
@media (max-width:760px){ .service-grid-compact{grid-template-columns:1fr 1fr;} }
@media (max-width:520px){ .service-grid-compact{grid-template-columns:1fr;} }
.service-card{
  background:#fff; border:1px solid var(--line); border-radius:12px; padding:22px 20px;
  display:flex; flex-direction:column; gap:8px;
}
.service-card .service-tag{
  font-size:11px; font-weight:700; letter-spacing:.07em; text-transform:uppercase; color:var(--orange);
}
.service-card h5{font-size:15.5px; font-weight:700;}
.service-card p{font-size:13.5px; color:var(--grey);}

/* ---- CONTATTI ---- */
.contact-card{
  border:1px solid var(--line); border-radius:12px; padding:22px 24px; background:#fff;
  margin-top:28px; width:fit-content; max-width:100%;
  display:flex; flex-direction:column; gap:16px;
}
.contact-person{display:flex; align-items:center; gap:12px;}
.contact-avatar{
  width:42px; height:42px; border-radius:50%; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  background:var(--bg-soft); border:1px solid var(--line);
  font-family:'Manrope',sans-serif; font-weight:800; font-size:14.5px; color:var(--orange);
}
.contact-card h5{font-size:17px; font-weight:700;}
.contact-details{display:flex; flex-wrap:wrap; gap:10px;}
.contact-item{
  display:inline-flex; align-items:center; gap:9px; padding:10px 14px;
  border:1px solid var(--line); border-radius:10px; background:var(--bg-soft);
  font-size:14px; font-weight:600; color:var(--navy);
  transition:color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}
.contact-item svg{width:17px; height:17px; color:var(--orange); flex-shrink:0;}
.contact-item:hover, .contact-item:focus-visible{
  color:var(--orange); border-color:rgba(252,116,25,.45); background:#fff; transform:translateY(-1px);
}
@media (prefers-reduced-motion:reduce){
  .contact-item{transition:none;}
  .contact-item:hover, .contact-item:focus-visible{transform:none;}
}
@media (max-width:560px){
  .contact-card{width:auto;}
  .contact-details{flex-direction:column; align-items:stretch;}
}

footer{margin-left:var(--sidebar-w); background:linear-gradient(180deg,var(--navy),#000000); color:var(--on-navy-dim); padding:40px 0; font-size:13px;}
footer .container{max-width:none; margin:0; display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px;}
.footer-brand{display:flex; align-items:center; gap:10px;}
.footer-brand .brand-icon{width:20px; height:20px;}
.footer-brand-text{color:var(--on-navy); font-weight:600; font-size:13.5px;}

/* ===== SCROLL-REVEAL (progressive enhancement: hidden state only when JS runs) ===== */
.reveal{opacity:1; transform:none;}
html.has-js .reveal{
  opacity:0; transform:translateY(18px);
  transition:opacity .6s cubic-bezier(.16,.8,.24,1), transform .6s cubic-bezier(.16,.8,.24,1);
}
html.has-js .reveal.in-view{opacity:1; transform:none;}
.reveal:nth-child(1){transition-delay:.02s;}
.reveal:nth-child(2){transition-delay:.08s;}
.reveal:nth-child(3){transition-delay:.14s;}
.reveal:nth-child(4){transition-delay:.20s;}
.reveal:nth-child(5){transition-delay:.26s;}
.reveal:nth-child(6){transition-delay:.32s;}
.reveal:nth-child(7){transition-delay:.38s;}
.reveal:nth-child(8){transition-delay:.44s;}
.reveal:nth-child(9){transition-delay:.50s;}
@media (prefers-reduced-motion:reduce){
  html.has-js .reveal{opacity:1; transform:none; transition:none;}
}

/* ===== RESPONSIVE: collapse sidebar to top bar ===== */
@media (max-width:900px){
  .sidebar{display:none;}
  .content{margin-left:0;}
  footer{margin-left:0;}
  .topbar{
    display:flex; align-items:stretch; gap:10px; padding:0 16px; min-height:56px;
    position:sticky; top:0; z-index:100; background:var(--navy);
    border-bottom:1px solid rgba(255,255,255,.1);
  }
  .topbar-bar{display:flex; align-items:center; gap:10px; flex-shrink:0; min-width:0;}
  .topbar-brand{display:flex; align-items:center; gap:8px; flex-shrink:0;}
  .topbar-brand .brand-icon{width:22px; height:22px;}
  .topbar-brand .brand-wordmark{font-size:17px;}
  .topbar-current{
    display:none; min-width:0; flex:1; font-size:12.5px; font-weight:600; letter-spacing:.02em;
    color:var(--on-navy-dim); white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  }
  .topbar-current::before{content:"/"; margin-right:6px; opacity:.5;}

  /* inline row: shown while the whole index still fits the screen */
  .topbar-menu{display:flex; align-items:stretch; flex:1; min-width:0; gap:2px; overflow:hidden;}
  .topbar-menu a{
    display:flex; align-items:center; flex-shrink:0; padding:0 10px;
    font-size:13px; font-weight:600; color:var(--on-navy); opacity:.7;
    border-bottom:2px solid transparent; white-space:nowrap;
  }
  .topbar-menu a.active{opacity:1; color:#fff; border-bottom-color:var(--red);}

  .topbar-toggle{
    display:none; flex-direction:column; align-items:center; justify-content:center; gap:5px;
    width:42px; height:42px; flex-shrink:0; margin-left:auto; padding:0; cursor:pointer;
    border:1px solid rgba(255,255,255,.18); border-radius:10px; background:rgba(255,255,255,.05);
    -webkit-tap-highlight-color:transparent;
  }
  .topbar-toggle span{
    display:block; width:18px; height:2px; border-radius:2px; background:#fff;
    transition:transform .25s ease, opacity .18s ease;
  }

  /* collapsed: the index no longer fits, so it becomes a hamburger menu */
  .topbar.is-collapsed .topbar-bar{flex:1;}
  .topbar.is-collapsed .topbar-toggle{display:flex;}
  .topbar.is-collapsed .topbar-current{display:block;}
  .topbar.is-collapsed .topbar-menu{
    position:absolute; left:0; right:0; top:100%; z-index:99; align-items:stretch;
    flex-direction:column; flex:none; gap:2px; padding:8px 10px 14px;
    background:var(--navy); border-bottom:1px solid rgba(255,255,255,.1);
    box-shadow:0 18px 40px rgba(0,0,0,.38);
    max-height:0; opacity:0; visibility:hidden; overflow:hidden;
    transition:max-height .28s ease, opacity .2s ease, visibility .28s ease;
  }
  .topbar.is-collapsed.is-open .topbar-menu{
    max-height:min(70vh,520px); opacity:1; visibility:visible; overflow-y:auto;
  }
  .topbar.is-collapsed .topbar-menu a{
    width:100%; padding:13px 14px; font-size:14.5px; border-radius:9px;
    border-bottom:none; border-left:2px solid transparent;
  }
  .topbar.is-collapsed .topbar-menu a.active{
    opacity:1; color:#fff; background:rgba(252,116,25,.16); border-left-color:var(--red);
  }
  .topbar.is-collapsed.is-open .topbar-toggle span:nth-child(1){transform:translateY(7px) rotate(45deg);}
  .topbar.is-collapsed.is-open .topbar-toggle span:nth-child(2){opacity:0;}
  .topbar.is-collapsed.is-open .topbar-toggle span:nth-child(3){transform:translateY(-7px) rotate(-45deg);}
  @media (prefers-reduced-motion:reduce){
    .topbar-menu, .topbar-toggle span{transition:none;}
  }
  .container{padding:0 24px;}
  section{padding:64px 0; scroll-margin-top:68px;}
  .cover .container{padding:80px 24px;}
  .cover h1{font-size:32px;}
  .cover-logo{width:min(320px,72vw);}
  .pain-grid{grid-template-columns:1fr;}
  .claim{font-size:21px;}
}

/* ===== TOPBAR-ONLY BRANCH: use the top bar at every viewport width ===== */
@media (min-width:901px){
  .sidebar{display:none;}
  .content{margin-left:0;}
  footer{margin-left:0;}
  .container{max-width:1200px;}
  .topbar{
    display:flex; align-items:stretch; gap:10px; padding:0 16px; min-height:56px;
    position:sticky; top:0; z-index:100; background:var(--navy);
    border-bottom:1px solid rgba(255,255,255,.1);
  }
  .topbar-bar{display:flex; align-items:center; gap:10px; flex-shrink:0; min-width:0;}
  .topbar-brand{display:flex; align-items:center; gap:8px; flex-shrink:0;}
  .topbar-brand .brand-icon{width:22px; height:22px;}
  .topbar-brand .brand-wordmark{font-size:17px;}
  .topbar-current{
    display:none; min-width:0; flex:1; font-size:12.5px; font-weight:600; letter-spacing:.02em;
    color:var(--on-navy-dim); white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  }
  .topbar-current::before{content:"/"; margin-right:6px; opacity:.5;}
  .topbar-menu{display:flex; align-items:stretch; flex:1; min-width:0; gap:2px; overflow:hidden;}
  .topbar-menu a{
    display:flex; align-items:center; flex-shrink:0; padding:0 10px;
    font-size:13px; font-weight:600; color:var(--on-navy); opacity:.7;
    border-bottom:2px solid transparent; white-space:nowrap;
  }
  .topbar-menu a.active{opacity:1; color:#fff; border-bottom-color:var(--red);}
  .topbar-toggle{
    display:none; flex-direction:column; align-items:center; justify-content:center; gap:5px;
    width:42px; height:42px; flex-shrink:0; margin-left:auto; padding:0; cursor:pointer;
    border:1px solid rgba(255,255,255,.18); border-radius:10px; background:rgba(255,255,255,.05);
    -webkit-tap-highlight-color:transparent;
  }
  .topbar-toggle span{
    display:block; width:18px; height:2px; border-radius:2px; background:#fff;
    transition:transform .25s ease, opacity .18s ease;
  }
  .topbar.is-collapsed .topbar-bar{flex:1;}
  .topbar.is-collapsed .topbar-toggle{display:flex;}
  .topbar.is-collapsed .topbar-current{display:block;}
  .topbar.is-collapsed .topbar-menu{
    position:absolute; left:0; right:0; top:100%; z-index:99; align-items:stretch;
    flex-direction:column; flex:none; gap:2px; padding:8px 10px 14px;
    background:var(--navy); border-bottom:1px solid rgba(255,255,255,.1);
    box-shadow:0 18px 40px rgba(0,0,0,.38);
    max-height:0; opacity:0; visibility:hidden; overflow:hidden;
    transition:max-height .28s ease, opacity .2s ease, visibility .28s ease;
  }
  .topbar.is-collapsed.is-open .topbar-menu{
    max-height:min(70vh,520px); opacity:1; visibility:visible; overflow-y:auto;
  }
  .topbar.is-collapsed .topbar-menu a{
    width:100%; padding:13px 14px; font-size:14.5px; border-radius:9px;
    border-bottom:none; border-left:2px solid transparent;
  }
  .topbar.is-collapsed .topbar-menu a.active{
    opacity:1; color:#fff; background:rgba(252,116,25,.16); border-left-color:var(--red);
  }
  .topbar.is-collapsed.is-open .topbar-toggle span:nth-child(1){transform:translateY(7px) rotate(45deg);}
  .topbar.is-collapsed.is-open .topbar-toggle span:nth-child(2){opacity:0;}
  .topbar.is-collapsed.is-open .topbar-toggle span:nth-child(3){transform:translateY(-7px) rotate(-45deg);}
}

@media (prefers-reduced-motion:reduce){
  .topbar-menu, .topbar-toggle span{transition:none;}
}
