
:root {
  --bg: #0b0f19;
  --bg2: #0e1424;
  --card: rgba(255, 255, 255, 0.06);
  --card2: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.12);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.72);
  --muted2: rgba(255, 255, 255, 0.58);

  --primary: #f7931e;
  --secondary: #ffb457;

  --shadow: 0 12px 34px rgba(0, 0, 0, 0.45);
  --radius: 18px;

  --container: 1120px;
  --gutter: 20px;

  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica,
    Arial, "Apple Color Emoji", "Segoe UI Emoji";
  --font-graffiti: 'Tourney', sans-serif; 
}

:target {
  scroll-margin-top: 90px;
}


.hero-title,
.graffiti {
  font-family: var(--font-graffiti);
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings: "wdth" 100;
  color: var(--primary);
}

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

html,
body {
  height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;

  /* Glow uniforme su tutta la pagina */
  background:
    radial-gradient(1100px 700px at 20% 20%, rgba(247, 147, 30, 0.12), transparent 62%),
    radial-gradient(1100px 700px at 80% 30%, rgba(255, 180, 87, 0.08), transparent 65%);

  /* evita “banding” su alcuni monitor */
  transform: translateZ(0);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(247, 147, 30, 0.18);
  border-color: rgba(255, 180, 87, 0.38);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  transition: background 160ms ease, transform 120ms ease;
}

.lang-switch:hover {
  background: rgba(255, 255, 255, 0.08);
}

.lang-switch:active {
  transform: translateY(1px);
}

.lang-switch img {
  width: 22px;
  height: auto;
  display: block;
  border-radius: 4px;
}


/* Typography */
h1, h2, h3 {
  margin: 0 0 12px;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 3.2vw, 3.25rem);
}

h2 {
  font-size: clamp(1.45rem, 2.2vw, 2.1rem);
}

h3 {
  font-size: 1.1rem;
}

p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.55;
}

.lead {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.78);
  max-width: 62ch;
}

.lead-sm {
  font-size: 1rem;
  max-width: 70ch;
}

.microcopy {
  margin-top: 10px;
  font-size: 0.92rem;
  color: var(--muted2);
}

.note {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.76);
}

/* Layout helpers */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: 76px 0;
}

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(10, 14, 25, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  min-width: 140px;
}

.brand__logo {
  height: 46px;
  width: auto;
  display: block;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
}

.brand__logo--footer {
  height: 40px;
  opacity: 0.95;
}


.nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav__link {
  color: rgba(255, 255, 255, 0.76);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 8px 10px;
  border-radius: 12px;
  transition: background 160ms ease, color 160ms ease;
}

.nav__link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 650;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  user-select: none;
  transition: transform 120ms ease, filter 120ms ease, background 160ms ease,
    border-color 160ms ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  color: #111;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-color: rgba(255, 180, 87, 0.35);
  box-shadow: 0 14px 34px rgba(247, 147, 30, 0.16);
}

.btn--primary:hover {
  filter: brightness(1.03);
}

.btn--ghost {
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.10);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.09);
}

/* Hero */
.hero {
  padding: 88px 0 76px;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 34px;
  align-items: center;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

/* Hero visual mock */
.hero__visual {
  display: flex;
  justify-content: flex-end;
}

.mock-card {
  width: min(420px, 100%);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: var(--shadow);
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.mock-card::before {
  content: "";
  position: absolute;
  inset: -40% -30% auto auto;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(247, 147, 30, 0.32), transparent 60%);
  transform: rotate(15deg);
  filter: blur(2px);
}

.mock-card__title {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 12px;
}

.mock-card__row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.mock-pill {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.9rem;
}

.mock-card__chart {
  height: 150px;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03)),
    repeating-linear-gradient(
      90deg,
      rgba(255,255,255,0.08) 0px,
      rgba(255,255,255,0.08) 1px,
      transparent 1px,
      transparent 18px
    );
  border: 1px solid rgba(255, 255, 255, 0.10);
  position: relative;
  overflow: hidden;
}

.mock-card__chart::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120px 80px at 18% 70%, rgba(255, 180, 87, 0.20), transparent 60%),
    radial-gradient(140px 90px at 70% 35%, rgba(247, 147, 30, 0.18), transparent 62%);
}

.mock-card__hint {
  margin-top: 12px;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.72);
}

/* Lists / grids / cards */
.bullets {
  margin: 18px 0 0;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.74);
}

.bullets li {
  margin: 8px 0;
  line-height: 1.5;
}

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

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

.card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
}

.card p {
  margin-bottom: 0;
}

/* Steps */
.steps {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.step {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
}

.step__num {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(247,147,30,0.30), rgba(255,180,87,0.18));
  border: 1px solid rgba(255, 180, 87, 0.22);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 800;
}

.cta-strip{
  margin-top:18px;
  padding:16px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

.cta-title{ font-weight:900; font-size: 1.1rem; padding-bottom: 12px;}
.cta-sub{ font-size:13px; margin-top:2px; }

/* Form */
.form {
  margin-top: 22px;
  max-width: 680px;
}

.form__row {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.label {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.78);
}

/* Solo input "testuali", non checkbox/radio */
input:not([type="checkbox"]):not([type="radio"]),
textarea {
  width: 100%;
  padding: 12px 13px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.22);
  color: rgba(255, 255, 255, 0.92);
  outline: none;
  transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}


input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.46);
}

input:not([type="checkbox"]):not([type="radio"]):focus,
textarea:focus {
  border-color: rgba(255, 180, 87, 0.38);
  box-shadow: 0 0 0 4px rgba(247, 147, 30, 0.12);
  background: rgba(0, 0, 0, 0.28);
}


.form__actions {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.form__msg {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.78);
  min-height: 1.2em;
}

.form__msg[data-type="info"] { color: rgba(255, 255, 255, 0.78); }
.form__msg[data-type="success"] { color: rgba(170, 255, 210, 0.95); }
.form__msg[data-type="error"] { color: rgba(255, 120, 120, 0.95); }

/* FAQ */
.faq {
  margin-top: 12px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
}

.faq p {
  margin-top: 10px;
  margin-bottom: 0;
}

/* Footer */
.footer {
  padding: 26px 0 38px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(10, 14, 25, 0.45);
}

.footer__inner {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
}

.footer__right {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.footer__link {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 12px;
  transition: background 160ms ease, color 160ms ease;
}

.footer__link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.90);
}

/* Responsive */
@media (max-width: 980px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    justify-content: flex-start;
  }

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

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

  .nav {
    display: none;
  }

  .topbar__inner {
    justify-content: space-between;
  }

  .section {
    padding: 62px 0;
  }
}

@media (max-width: 520px) {
  /* Full width solo nel contenuto pagina, NON nella topbar */
  main .btn {
    width: 100%;
  }

  /* assicurati che i bottoni in header restino compatti */
  .topbar .btn {
    width: auto;
  }

  .footer__inner {
    flex-direction: column;
  }

  .footer__right {
    justify-content: flex-start;
  }

  .brand {
    min-width: 0;
  }

  .topbar__inner{
    display: grid;
    grid-template-columns: 1fr auto auto; /* logo | flag | hamburger */
    align-items: center;
    gap: 10px;
  }

  /* CTA topbar: su mobile meglio spostarla nel menu o nel hero */
  .topbar .btn.btn--primary{
    display: none;
  }

  .brand__logo{
    height: 40px; /* leggermente più piccolo */
  }
}


/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .nav__link, .footer__link { transition: none; }
}

/* Mock dashboard data */
.mock-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.mock-stat {
  padding: 10px 10px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.mock-stat__label {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.62);
  margin-bottom: 6px;
}

.mock-stat__value {
  font-weight: 850;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.12rem;
  line-height: 1.1;
}

.mock-stat__delta {
  margin-top: 6px;
  font-size: 0.82rem;
  color: rgba(255, 180, 87, 0.85);
}

.mock-card__table {
  margin-top: 12px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.10);
  position: relative;
  z-index: 1;
}

.mock-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mock-row:last-child {
  border-bottom: 0;
}

.mock-row__k {
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.9rem;
}

.mock-row__v {
  color: rgba(255, 255, 255, 0.90);
  font-weight: 700;
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  .mock-stats {
    grid-template-columns: 1fr;
  }
}

/* Mobile hamburger */
.nav-toggle{
  display:none;
  appearance:none;
  border:0;
  background:transparent;
  padding:10px;
  border-radius:12px;
  cursor:pointer;
}
.nav-toggle__bar{
  display:block;
  width:22px;
  height:2px;
  margin:4px 0;
  background:rgba(255,255,255,.85);
}

/* Drawer */
.mobile-nav[hidden]{ display:none; }
.mobile-nav{
  position:fixed;
  inset:0;
  z-index:9999;
}
.mobile-nav__backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
}
.mobile-nav__panel{
  position:absolute;
  top:0;
  right:0;
  width:min(88vw, 360px);
  height:100%;
  background:var(--bg);
  border-left:1px solid rgba(255,255,255,.10);
  padding:18px;
  display:flex;
  flex-direction:column;
  gap:12px;
}
.mobile-nav__header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.mobile-nav__close{
  border:0;
  background:transparent;
  color:rgba(255,255,255,.85);
  font-size:18px;
  padding:8px 10px;
  border-radius:10px;
  cursor:pointer;
}
.mobile-nav__links{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:8px;
}
.mobile-nav__link{
  display:block;
  padding:12px 12px;
  border-radius:14px;
  text-decoration:none;
  color:rgba(255,255,255,.9);
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
}

.mobile-nav__link:hover{
  background: rgba(255,255,255,.07);
}


.mobile-nav__link--cta{
  background:rgba(247,147,30,.12);
  border-color:rgba(247,147,30,.35);
}

/* Show hamburger on mobile/tablet, hide desktop nav */
@media (max-width: 980px){
  .nav{ display:none; }
  .nav-toggle{ display:inline-flex; }
}

/* Honeypot anti-bot */
.hp{
  position:absolute !important;
  left:-10000px !important;
  top:auto !important;
  width:1px !important;
  height:1px !important;
  overflow:hidden !important;
  white-space:nowrap !important;
}

.form__row--consent { margin-top: 8px; }

.checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.4;
  font-size: 0.95rem;
}

.checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--primary);
}

.checkbox a {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.checkbox a:hover {
  color: rgba(255, 255, 255, 0.95);
}

.checkbox input[type="checkbox"] {
  appearance: auto;
  -webkit-appearance: auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  padding: 0;
  background: transparent;
  accent-color: var(--primary);
}
