@import url('https://api.fontshare.com/v2/css?f[]=satoshi@400,500,600,700,800&display=swap');

/* ─── TEMA (sovrascrivi per pagina) ────────────── */
:root {
  --accent: #2aa01c;
  --accent-light: #5cd44e;
  --accent-rgb: 42, 160, 28;
}

/* ─── RESET ────────────────────────────────────── */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Satoshi','Inter',sans-serif; background: #000000; color: #d4d4d4; min-height: 100vh; padding: 40px 32px 60px; overflow-x: clip; }

/* ─── NAV ──────────────────────────────────────── */
.topnav { position: sticky; top: 0; z-index: 100; background: rgba(13,13,13,0.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(225,225,225,0.07); display: flex; align-items: center; justify-content: space-between; padding: 0 36px; height: 84px; margin: -40px -32px 0; }
.topnav .nav-logo a { display: block; }
.topnav .nav-logo img { height: 38px; width: auto; display: block; }
.topnav .nav-links { display: flex; gap: 4px; }
.topnav .nav-links a { text-decoration: none; font-size: 14px; font-weight: 600; padding: 9px 20px; border-radius: 8px; transition: background 0.15s, color 0.15s; color: #999999; }
.topnav .nav-links a:hover { background: rgba(255,255,255,0.06); color: #d4d4d4; }
.topnav .nav-links a.active { background: rgba(42,160,28,0.12); color: #5cd44e; border: 1px solid rgba(42,160,28,0.25); }
.topnav .nav-cta { text-decoration: none; font-size: 14px; font-weight: 800; padding: 11px 24px; border-radius: 8px; background: #2aa01c; color: #ffffff; text-transform: uppercase; letter-spacing: 0.5px; transition: background 0.15s; }
.topnav .nav-cta:hover { background: #1d7a14; }

/* ─── DROPDOWN NAV ─────────────────────────────── */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger { background: none; border: none; cursor: pointer; font-family: inherit; font-size: 14px; font-weight: 600; padding: 9px 20px; border-radius: 8px; color: #999999; display: flex; align-items: center; gap: 6px; transition: background 0.15s, color 0.15s; }
.nav-dropdown-trigger:hover { background: rgba(255,255,255,0.06); color: #d4d4d4; }
.nav-dropdown-trigger.active { background: rgba(42,160,28,0.12); color: #5cd44e; border: 1px solid rgba(42,160,28,0.25); }
.nav-dropdown-trigger .dd-arrow { font-size: 10px; opacity: 0.6; transition: transform 0.2s; }
.nav-dropdown:hover .nav-dropdown-trigger .dd-arrow { transform: rotate(180deg); }
.nav-dropdown-menu { position: absolute; top: calc(100% + 6px); left: 0; background: #111111; border: 1px solid rgba(225,225,225,0.1); border-radius: 12px; padding: 6px; min-width: 220px; opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity 0.15s, transform 0.15s, visibility 0.15s; z-index: 200; box-shadow: 0 8px 32px rgba(0,0,0,0.4); }
.nav-dropdown:hover .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown-menu a { display: block; text-decoration: none; font-size: 13px; font-weight: 600; color: #777; padding: 9px 14px; border-radius: 8px; transition: background 0.15s, color 0.15s; white-space: nowrap; }
.nav-dropdown-menu a:hover { background: rgba(255,255,255,0.06); color: #d4d4d4; }
.nav-dropdown-menu a.current { color: #5cd44e; background: rgba(42,160,28,0.08); }
.nav-dropdown-menu .dd-divider { height: 1px; background: rgba(225,225,225,0.07); margin: 6px 0; }

/* ─── SUB-NAV ──────────────────────────────────── */
.subnav { background: #0a0a0a; border-bottom: 1px solid rgba(225,225,225,0.07); padding: 0 36px; display: flex; gap: 0; overflow-x: auto; margin: 0 -32px 48px; }
.subnav a { text-decoration: none; font-size: 14px; font-weight: 600; color: #555; padding: 14px 18px; border-bottom: 2px solid transparent; white-space: nowrap; transition: color 0.15s; }
.subnav a:hover { color: #999; }
.subnav a.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ─── HERO ─────────────────────────────────────── */
.hero { max-width: 800px; margin: 0 auto 52px; text-align: center; position: relative; overflow: hidden; padding-top: 10px; }
.hero::before { content: ''; position: absolute; top: -60px; left: 50%; transform: translateX(-50%); width: 600px; height: 350px; background: radial-gradient(ellipse, rgba(var(--accent-rgb),0.09) 0%, transparent 65%); pointer-events: none; }
.hero > * { position: relative; }
.hero-label { display: inline-flex; align-items: center; gap: 8px; background: rgba(var(--accent-rgb),0.08); border: 1px solid rgba(var(--accent-rgb),0.2); color: var(--accent-light); font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; padding: 6px 16px; border-radius: 100px; margin-bottom: 24px; }
.hero h1 { font-size: 46px; font-weight: 600; color: #ffffff; line-height: 1.1; letter-spacing: -1.8px; margin-bottom: 16px; }
.hero h1 em { font-style: italic; color: var(--accent-light); }
.hero p { font-size: 18px; color: #999; line-height: 1.7; max-width: 580px; margin: 0 auto; }

/* ─── PROBLEM BOX ──────────────────────────────── */
.problem-box { max-width: 800px; margin: 0 auto 48px; background: #0a0a0a; border: 1px solid rgba(239,68,68,0.2); border-left: 3px solid #ef4444; border-radius: 12px; padding: 20px 24px; }
.problem-box .pb-label { font-size: 10px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: #ef4444; margin-bottom: 8px; }
.problem-box p { font-size: 15px; color: #999; line-height: 1.7; }
.problem-box strong { color: #d4d4d4; }

/* ─── SEZIONI BENEFIT ──────────────────────────── */
.section-label { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: #999; margin-bottom: 20px; text-align: center; }
.benefit-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; max-width: 900px; margin: 0 auto 48px; }
.benefit-card { background: #0a0a0a; border: 1px solid rgba(225,225,225,0.1); border-radius: 14px; padding: 22px 20px; }
.bc-icon { font-size: 28px; margin-bottom: 12px; display: block; }
.bc-title { font-size: 15px; font-weight: 700; color: #ffffff; margin-bottom: 8px; line-height: 1.3; }
.bc-text { font-size: 14px; color: #999; line-height: 1.6; }
.bc-highlight { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--accent-light); }

/* ─── HOW IT WORKS ─────────────────────────────── */
.how-section { max-width: 900px; margin: 0 auto 48px; }
.how-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 0; position: relative; }
.how-steps::before { content: ''; position: absolute; top: 20px; left: 16%; right: 16%; height: 1px; background: linear-gradient(90deg, var(--accent), var(--accent-light), var(--accent)); opacity: 0.25; }
.how-step { text-align: center; padding: 0 16px; }
.hs-num { width: 40px; height: 40px; border-radius: 50%; background: rgba(var(--accent-rgb),0.1); border: 1px solid rgba(var(--accent-rgb),0.25); color: var(--accent-light); font-size: 14px; font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.hs-title { font-size: 15px; font-weight: 700; color: #d4d4d4; margin-bottom: 6px; }
.hs-text { font-size: 14px; color: #999; line-height: 1.6; }

/* ─── PREVIEW DASHBOARD ────────────────────────── */
.preview-section { max-width: 900px; margin: 0 auto 52px; }
.preview-box { background: #0d0d0d; border: 1px solid rgba(225,225,225,0.1); border-radius: 16px; overflow: hidden; box-shadow: 0 0 40px rgba(var(--accent-rgb),0.08); }
.preview-header { background: #0a0a0a; border-bottom: 1px solid rgba(225,225,225,0.1); padding: 14px 20px; display: flex; align-items: center; gap: 8px; }
.ph-dot { width: 9px; height: 9px; border-radius: 50%; }
.ph-title { margin-left: 6px; font-size: 12px; font-weight: 600; color: #555; }
.preview-body { padding: 20px; }
.preview-title { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #555; margin-bottom: 16px; }
.preview-note { margin-top: 16px; background: rgba(var(--accent-rgb),0.05); border: 1px solid rgba(var(--accent-rgb),0.12); border-radius: 8px; padding: 10px 14px; font-size: 13px; color: #999; line-height: 1.5; }
.preview-note strong { color: var(--accent-light); }

/* ─── SECTION NAVIGATOR ────────────────────────── */
.section-nav { max-width: 900px; margin: 0 auto 52px; }
.sn-title { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: #555; margin-bottom: 16px; text-align: center; }
.sn-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 8px; }
.sn-card { background: #0a0a0a; border: 1px solid rgba(225,225,225,0.08); border-radius: 10px; padding: 14px 12px; text-decoration: none; text-align: center; transition: border-color 0.2s, transform 0.15s; }
.sn-card:hover { transform: translateY(-2px); }
.sn-card.current { background: rgba(var(--accent-rgb),0.06); border-color: rgba(var(--accent-rgb),0.25); }
.sn-icon { font-size: 18px; display: block; margin-bottom: 4px; }
.sn-num { font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #444; margin-bottom: 3px; }
.sn-name { font-size: 12px; font-weight: 600; color: #999; line-height: 1.3; }
.sn-card.current .sn-name { color: var(--accent-light); }
.sn-logos { display: flex; gap: 5px; justify-content: center; align-items: center; margin-top: 8px; }
.sn-logos img { width: 13px; height: 13px; filter: brightness(0) invert(1); opacity: 0.35; }
.sn-card:hover .sn-logos img { opacity: 0.65; }
.sn-card.current .sn-logos img { opacity: 0.6; }

/* ─── CTA ──────────────────────────────────────── */
.cta-section { max-width: 720px; margin: 0 auto 60px; background: linear-gradient(135deg,#0a0a0a,#0d0d0d); border: 1px solid rgba(225,225,225,0.1); border-radius: 24px; padding: 48px; text-align: center; position: relative; overflow: hidden; }
.cta-section::before { content: ''; position: absolute; top: -60px; left: 50%; transform: translateX(-50%); width: 300px; height: 300px; background: radial-gradient(ellipse, rgba(var(--accent-rgb),0.12) 0%, transparent 70%); pointer-events: none; }
.cta-badge { display: inline-block; background: rgba(var(--accent-rgb),0.12); border: 1px solid rgba(var(--accent-rgb),0.3); color: var(--accent-light); font-size: 10px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; padding: 5px 14px; border-radius: 100px; margin-bottom: 20px; }
.cta-section h2 { font-size: 30px; font-weight: 600; color: #ffffff; line-height: 1.25; margin-bottom: 12px; }
.cta-section h2 span { color: var(--accent-light); }
.cta-section p { color: #999; font-size: 14px; line-height: 1.7; max-width: 480px; margin: 0 auto 28px; }
.cta-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-primary { display: inline-flex; align-items: center; gap: 8px; background: #2aa01c; color: #fff; text-decoration: none; font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; padding: 15px 28px; border-radius: 10px; transition: background 0.15s, transform 0.15s; }
.btn-primary:hover { background: #1d7a14; transform: translateY(-1px); }
.btn-secondary { display: inline-flex; align-items: center; gap: 8px; background: transparent; color: #999; text-decoration: none; font-size: 13px; font-weight: 600; padding: 15px 24px; border-radius: 10px; border: 1px solid rgba(225,225,225,0.15); transition: border-color 0.15s, color 0.15s; }
.btn-secondary:hover { border-color: var(--accent); color: #d4d4d4; }

/* ─── FOOTER ───────────────────────────────────── */
.site-footer {
  border-top: 1px solid rgba(225,225,225,0.08);
  margin-top: 48px;
  padding: 40px 24px 32px;
}
.footer-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.footer-logo img {
  height: 28px;
  width: auto;
  opacity: 0.75;
  filter: brightness(0) invert(1);
}
.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a {
  color: #666;
  font-size: 12px;
  text-decoration: none;
  transition: color 0.15s;
}
.footer-links a:hover { color: #d4d4d4; }
.footer-social {
  display: flex;
  gap: 16px;
  align-items: center;
}
.footer-social a {
  color: #555;
  transition: color 0.15s;
  display: flex;
  align-items: center;
}
.footer-social a:hover { color: #d4d4d4; }
.footer-social svg { width: 18px; height: 18px; fill: currentColor; }
.footer-copy {
  color: #444;
  font-size: 11px;
}

/* ─── PAGE VISUAL WRAP — responsive ────────────── */
@media (max-width: 640px) {
  .page-visual-wrap img { height: 200px !important; }
  .page-visual-overlay { padding: 20px !important; }
  .pvo-title { font-size: 18px !important; }
  .pvo-sub { font-size: 13px !important; }
}

/* ─── HAMBURGER ─────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.15s;
  flex-shrink: 0;
}
.nav-hamburger:hover { background: rgba(255,255,255,0.06); }
.nav-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: #d4d4d4;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.2s;
  transform-origin: center;
}
.topnav.is-open .nav-hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.topnav.is-open .nav-hamburger span:nth-child(2) { opacity: 0; }
.topnav.is-open .nav-hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── RESPONSIVE (768px) ───────────────────────── */
@media (max-width: 768px) {
  body { padding: 20px 16px 40px; }
  .topnav { margin: -20px -16px 0; padding: 0 16px; height: 64px; }
  .topnav .nav-logo img { height: 32px; }
  .nav-hamburger { display: flex; }
  .topnav .nav-links { display: none; }
  .topnav .nav-cta { display: none; }
  .subnav { margin: 0 -16px 32px; padding: 0 8px; }
  .hero h1 { font-size: 32px; letter-spacing: -1px; }
  .hero p { font-size: 16px; }
  .cta-section { padding: 32px 20px; border-radius: 16px; }
  .cta-section h2 { font-size: 22px; }
  .benefit-grid { grid-template-columns: 1fr; }
  .how-steps { grid-template-columns: 1fr; gap: 24px; }
  .how-steps::before { display: none; }
  .sn-grid { grid-template-columns: repeat(3,1fr); }

  /* Mobile menu aperto — position:absolute sotto la topnav sticky
     (position:absolute non è affetto dal bug backdrop-filter di fixed) */
  .topnav.is-open .nav-links {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(13,13,13,0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(225,225,225,0.1);
    padding: 8px 16px 16px;
    gap: 2px;
  }
  .topnav.is-open .nav-links > a {
    padding: 12px 16px;
    font-size: 15px;
    border-radius: 8px;
  }
  .topnav.is-open .nav-dropdown { display: flex; flex-direction: column; }
  .topnav.is-open .nav-dropdown-trigger {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    justify-content: flex-start;
    border-radius: 8px;
  }
  .topnav.is-open .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: transparent;
    border: none;
    border-left: 2px solid rgba(225,225,225,0.08);
    border-radius: 0;
    padding: 4px 0 4px 12px;
    margin: 2px 0 4px 16px;
    min-width: auto;
  }
  .topnav.is-open .nav-dropdown-menu a {
    padding: 9px 12px;
    font-size: 14px;
    white-space: normal;
  }
}

/* ─── RESPONSIVE (480px) ───────────────────────── */
@media (max-width: 480px) {
  body { padding: 16px 12px 32px; }
  .topnav { margin: -16px -12px 0; padding: 0 12px; height: 56px; }

  .subnav { margin: 0 -12px 24px; }
  .hero h1 { font-size: 26px; }
  .sn-grid { grid-template-columns: repeat(2,1fr); }
  .sn-logos img { width: 11px; height: 11px; }
  .cta-section { padding: 20px 14px; }
  .cta-buttons { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-secondary { justify-content: center; }
}
