:root{
  --bg:#081120;
  --panel:#101a2b;
  --panel2:#15243a;
  --text:#f7fafc;
  --muted:#a9b7ce;
  --line:#22344f;
  --brand:#ff7a00;
  --brand2:#ffb200;
  --brand3:#ff6a00;
  --ok:#1dbf73;
  --danger:#ff5a5f;
  --grad:linear-gradient(135deg,#ff7a00 0%,#ffb200 100%);
  --grad-strong:linear-gradient(135deg,#ff6a00 0%,#ffc400 100%);
  --shadow:0 16px 40px rgba(0,0,0,.22);
}

*,
*::before,
*::after{
  box-sizing:border-box;
}

html,
body{
  margin:0;
  padding:0;
}

html{
  scroll-behavior:smooth;
  -webkit-text-size-adjust:100%;
}

body{
  font-family:'Poppins',Arial,Helvetica,sans-serif;
  background:linear-gradient(180deg,#07101c 0%,#0d1727 100%);
  color:var(--text);
  overflow-x:hidden;
}

a{
  text-decoration:none;
  color:inherit;
}

img{
  max-width:100%;
  height:auto;
  display:block;
}

.wrap{
  width:100%;
  max-width:1180px;
  margin:0 auto;
  padding:0 18px;
}

/* HEADER */
.topbar{
  position:sticky;
  top:0;
  z-index:1000;
  background:rgba(8,14,24,.94);
  backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(255,255,255,.06);
}

.topbar .inner{
  min-height:78px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}

.brand{
  display:flex;
  align-items:center;
  flex:0 0 auto;
}

.brand img{
  height:44px;
  width:auto;
}

/* NAV DESKTOP */
.nav{
  display:flex;
  align-items:center;
  gap:18px;
  flex-wrap:wrap;
}

.nav a{
  color:var(--muted);
  font-weight:600;
  font-size:15px;
  line-height:1;
  min-height:42px;
  display:inline-flex;
  align-items:center;
}

.nav a:hover{
  color:#fff;
}

/* BOTTONI */
.btn,
.btn-outline{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  padding:12px 18px;
  border-radius:14px;
  font-weight:700;
  transition:.2s ease;
  border:none;
  cursor:pointer;
}

.btn{
  background:var(--grad);
  color:#fff;
  box-shadow:0 12px 24px rgba(255,122,0,.22);
}

.btn:hover{
  background:var(--grad-strong);
  transform:translateY(-1px);
}

.btn-outline{
  border:1px solid rgba(255,255,255,.14);
  color:#fff;
  background:rgba(255,255,255,.03);
}

.btn-outline:hover{
  border-color:rgba(255,178,0,.55);
  background:rgba(255,255,255,.06);
}

/* HAMBURGER */
.menu-toggle{
  display:none;
  width:48px;
  height:48px;
  padding:0;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.04);
  border-radius:14px;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:5px;
  cursor:pointer;
  transition:.2s ease;
}

.menu-toggle:hover{
  background:rgba(255,255,255,.08);
  border-color:rgba(255,178,0,.35);
}

.menu-toggle span{
  display:block;
  width:20px;
  height:2px;
  border-radius:999px;
  background:#fff;
  transition:.25s ease;
}

.menu-toggle.is-active span:nth-child(1){
  transform:translateY(7px) rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2){
  opacity:0;
}

.menu-toggle.is-active span:nth-child(3){
  transform:translateY(-7px) rotate(-45deg);
}

/* MOBILE MENU */
.mobile-menu{
  display:none;
  border-top:1px solid rgba(255,255,255,.06);
  background:rgba(8,14,24,.98);
}

.mobile-menu.is-open{
  display:block;
}

.mobile-menu-inner{
  padding:12px 0 18px;
}

.mobile-nav{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.mobile-nav a{
  display:flex;
  align-items:center;
  width:100%;
  min-height:46px;
  padding:12px 14px;
  color:#e7eefc;
  border-radius:12px;
  font-weight:600;
}

.mobile-nav a:hover{
  background:rgba(255,255,255,.06);
}

.mobile-register-btn{
  margin-top:6px;
  justify-content:center;
}

/* HERO E COMPONENTI BASE */
.hero{
  padding:72px 0 54px;
  background:
    radial-gradient(circle at top right,rgba(255,122,0,.26),transparent 32%),
    radial-gradient(circle at top left,rgba(255,178,0,.14),transparent 25%);
}

.hero-grid{
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:28px;
  align-items:center;
}

.eyebrow{
  display:inline-block;
  padding:8px 12px;
  border:1px solid rgba(255,255,255,.1);
  border-radius:999px;
  color:#ffe2b5;
  background:rgba(255,255,255,.03);
  font-size:13px;
  font-weight:700;
}

.hero h1{
  font-size:62px;
  line-height:1.02;
  margin:16px 0;
}

.hero p{
  font-size:19px;
  line-height:1.6;
  color:var(--muted);
  max-width:720px;
}

.hero-card,
.card{
  background:linear-gradient(180deg,rgba(255,255,255,.04),rgba(255,255,255,.02));
  border:1px solid rgba(255,255,255,.08);
  border-radius:24px;
  padding:24px;
  box-shadow:0 10px 30px rgba(0,0,0,.24);
}

.metrics{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:14px;
  margin-top:18px;
}

.metric{
  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.05);
  border-radius:18px;
  padding:18px;
}

.metric strong{
  font-size:28px;
  display:block;
}

.section{
  padding:42px 0;
}

.section h2{
  font-size:34px;
  margin:0 0 12px;
}

.section p.lead{
  color:var(--muted);
  max-width:780px;
}

.grid-3{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}

.grid-4{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px;
}

.pill{
  display:inline-block;
  padding:9px 12px;
  background:#172338;
  border:1px solid #263b5c;
  border-radius:999px;
  margin:6px 6px 0 0;
  color:#d5deed;
  font-size:14px;
}

.flash{
  margin:18px auto 0;
  max-width:1180px;
  padding:14px 18px;
  border-radius:14px;
}

.flash.success{
  background:rgba(29,191,115,.14);
  border:1px solid rgba(29,191,115,.32);
}

.flash.error{
  background:rgba(255,90,95,.14);
  border:1px solid rgba(255,90,95,.32);
}

.table-wrap{
  overflow:auto;
}

.table{
  width:100%;
  border-collapse:collapse;
}

.table th,
.table td{
  padding:12px 10px;
  border-bottom:1px solid rgba(255,255,255,.08);
  text-align:left;
}

.table th{
  color:#ffd4a6;
  font-size:13px;
  text-transform:uppercase;
  letter-spacing:.03em;
}

.form-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:16px;
}

.form-grid-3{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
}

label{
  display:block;
  font-size:14px;
  color:#dbe6f8;
  margin-bottom:6px;
}

input,
select,
textarea{
  width:100%;
  padding:13px 14px;
  border-radius:14px;
  background:#0f1a2d;
  border:1px solid #24354f;
  color:#fff;
}

.sidebar-layout{
  display:grid;
  grid-template-columns:270px 1fr;
  gap:20px;
  padding:24px 0;
}

.sidebar{
  background:#0f1a2d;
  border:1px solid #23344d;
  border-radius:22px;
  padding:18px;
  height:fit-content;
  position:sticky;
  top:88px;
}

.sidebar a{
  display:block;
  padding:12px 14px;
  border-radius:14px;
  color:#d8e1f0;
  margin-bottom:6px;
}

.sidebar a.active,
.sidebar a:hover{
  background:rgba(255,255,255,.06);
}

.kpis{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
}

.kpi{
  padding:18px;
  border-radius:18px;
  background:#101b2d;
  border:1px solid #22354e;
}

.kpi small{
  display:block;
  color:var(--muted);
  margin-bottom:8px;
}

.kpi strong{
  font-size:28px;
}

.checkout-box{
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:center;
  flex-wrap:wrap;
  background:#131f34;
  border:1px solid #243650;
  padding:18px;
  border-radius:18px;
}

/* FOOTER */
.footer{
  padding:38px 0 40px;
  color:#d6deec;
  background:#08111f;
}

.footer-main{
  display:grid;
  grid-template-columns:1.1fr .85fr .85fr .95fr;
  gap:22px;
  padding-bottom:24px;
  border-bottom:1px solid rgba(255,255,255,.08);
}

.footer h4{
  margin:0 0 12px;
  color:#fff;
  font-size:15px;
  text-transform:uppercase;
  letter-spacing:.06em;
}

.footer a,
.footer p,
.footer li{
  color:#d6deec;
}

.footer ul{
  margin:0;
  padding:0;
  list-style:none;
  display:grid;
  gap:10px;
}

.company-card{
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
  border-radius:20px;
  padding:20px;
}

.company-card .footer-logo{
  display:block;
  max-width:143px;
  width:100%;
  height:auto;
  margin:0 0 10px;
}

.group-line{
  margin:10px 0 8px;
  color:#ffd8aa;
  font-size:12px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.footer-bottom{
  display:flex;
  justify-content:space-between;
  gap:20px;
  flex-wrap:wrap;
  padding-top:18px;
  color:#98a9c5;
  font-size:14px;
}

.small-note{
  color:#98a9c5;
  font-size:14px;
}

/* TABLET */
@media (max-width: 1100px){
  .hero-grid,
  .sidebar-layout,
  .grid-3,
  .grid-4,
  .kpis,
  .form-grid,
  .form-grid-3,
  .footer-main{
    grid-template-columns:1fr;
  }

  .hero h1{
    font-size:46px;
  }
}

/* MOBILE */
@media (max-width: 980px){
  .topbar .inner{
    min-height:72px;
  }

  .desktop-nav{
    display:none;
  }

  .menu-toggle{
    display:flex;
    margin-left:auto;
  }

  .brand img{
    height:40px;
  }

  .hero{
    padding:56px 0 40px;
  }

  .hero h1{
    font-size:38px;
  }

  .hero p{
    font-size:16px;
  }

  .metrics{
    grid-template-columns:1fr;
  }

  .wrap{
    padding:0 16px;
  }
}

@media (min-width: 981px){
  .mobile-menu{
    display:none !important;
  }
}

@media (max-width: 640px){
  .topbar .inner{
    gap:12px;
  }

  .btn,
  .btn-outline{
    width:100%;
  }

  .mobile-nav .btn{
    width:100%;
  }

  .hero h1{
    font-size:32px;
  }

  .section h2{
    font-size:28px;
  }

  .card,
  .hero-card{
    padding:18px;
  }

  .footer{
    padding:30px 0;
  }
}