/* ===========================================
   ARIL — style.css
   Design system + Landing page styles
   =========================================== */

/* === GOOGLE FONTS === */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

/* === CSS VARIABLES (Design System) === */
:root {
  --color-bg: #f5f5f5;
  --color-surface: #ffffff;
  --color-accent: #1aa3d3;
  --color-accent-dark: #1487b0;
  --color-accent-2: #d4123c;
  --color-accent-2-dark: #bb1539;
  --color-text-primary: #111111;
  --color-text-secondary: #555555;
  --color-text-muted: #999999;
  --color-border: #e8e8e8;
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.07);
  --shadow-card-hover: 0 4px 24px rgba(0, 0, 0, 0.11);
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  --spacing-3xl: 6rem;

  --navbar-height: 72px;
  --container-max: 1200px;
}

/* === RESET & BASE === */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

ul {
  list-style: none;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* === LAYOUT === */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

section {
  padding: var(--spacing-3xl) 0;
}

/* === SCROLL ANIMATIONS === */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.delay-1 {
  transition-delay: 0.1s;
}
.animate-on-scroll.delay-2 {
  transition-delay: 0.2s;
}
.animate-on-scroll.delay-3 {
  transition-delay: 0.3s;
}
.animate-on-scroll.delay-4 {
  transition-delay: 0.4s;
}

/* === TYPOGRAPHY === */
h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text-primary);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
}
h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
}
h3 {
  font-size: 1.2rem;
}
h4 {
  font-size: 1rem;
}

p {
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* === BADGE / TAG === */
.badge {
  display: inline-block;
  background: rgba(26, 163, 211, 0.1);
  color: var(--color-accent);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.3px;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 8px;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.1s ease;
  text-decoration: none;
  white-space: nowrap;
  border: none;
  outline: none;
}

.btn:active {
  transform: scale(0.97) !important;
  transition: transform 0.1s ease !important;
}

.btn-primary {
  background: var(--color-accent);
  color: white;
  box-shadow: 0 2px 8px rgba(26, 163, 211, 0.3);
}

.btn-primary:hover {
  background: var(--color-accent-dark);
  box-shadow: 0 4px 16px rgba(26, 163, 211, 0.4);
}

.btn-secondary {
  background: transparent;
  border: 1.5px solid var(--color-accent);
  color: var(--color-accent);
  padding: 13px 28px;
}

.btn-secondary:hover {
  background: rgba(26, 163, 211, 0.06);
}

.btn-white {
  background: white;
  color: var(--color-accent);
  font-weight: 700;
  padding: 16px 36px;
  font-size: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.btn-large {
  padding: 18px 40px;
  font-size: 17px;
}

/* === CARDS === */
.card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 2rem;
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

/* === SECTION HEADER === */
.section-header {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
}

.section-header h2 {
  margin-bottom: var(--spacing-sm);
}

.section-header p {
  font-size: 17px;
  max-width: 600px;
  margin: 0 auto;
  color: var(--color-text-secondary);
}

/* ===========================================
   NAVBAR
   =========================================== */

#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--navbar-height);
  background: rgba(245, 245, 245, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

#navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.07);
}

#navbar.hidden {
  transform: translateY(-100%);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.navbar-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.navbar-logo img {
  height: 24px;
  width: auto;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
}

.navbar-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color 0.2s ease;
}

.navbar-links a:hover {
  color: var(--color-accent);
}

.navbar-ctas {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.navbar-ctas .btn {
  padding: 10px 18px;
  font-size: 13px;
}

/* Hamburger button */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text-primary);
  border-radius: 2px;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav menu overlay */
.navbar-mobile-menu {
  display: none;
  position: fixed;
  top: var(--navbar-height);
  left: 0;
  right: 0;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding: var(--spacing-md) var(--spacing-lg) var(--spacing-lg);
  z-index: 999;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

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

.mobile-links {
  display: flex;
  flex-direction: column;
  margin-bottom: var(--spacing-md);
}

.mobile-links a {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text-primary);
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
  transition: color 0.2s ease;
}

.mobile-links a:last-child {
  border-bottom: none;
}

.mobile-links a:hover {
  color: var(--color-accent);
}

.mobile-ctas {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

.mobile-ctas .btn {
  width: 100%;
  justify-content: center;
}

/* ===========================================
   HERO SECTION
   =========================================== */

#hero {
  padding-top: calc(var(--navbar-height) + var(--spacing-3xl));
  padding-bottom: var(--spacing-3xl);
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--color-bg);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-3xl);
  align-items: stretch;
  width: 100%;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  justify-content: center;
}

.hero-text .badge {
  align-self: flex-start;
}

.hero-text h1 {
  margin-top: var(--spacing-xs);
  line-height: 1.15;
}

.hero-subtitle {
  font-size: 17px;
  line-height: 1.75;
  color: var(--color-text-secondary);
  max-width: 520px;
}

.hero-ctas {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
  margin-top: var(--spacing-xs);
}

/* Hero visual — Lottie */
.hero-visual {
  display: flex;
  align-items: stretch;
}

.hero-lottie {
  flex: 1;
  width: 100%;
  min-height: 380px;
}

/* ===========================================
   NUMBERS / SOCIAL PROOF SECTION
   =========================================== */

.numbers-section {
  background: #efefef;
  padding: var(--spacing-2xl) 0;
}

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

.number-item {
  text-align: center;
  padding: var(--spacing-xl) var(--spacing-lg);
}

.number-item + .number-item {
  border-left: 1px solid var(--color-border);
}

.number-prefix {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-secondary);
  letter-spacing: 0.6px;
  height: 18px;
  line-height: 1.5;
  margin-bottom: var(--spacing-sm);
}

.number-big {
  display: block;
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 700;
  color: var(--color-accent-2);
  line-height: 1;
  margin-bottom: var(--spacing-sm);
}

.number-label {
  display: block;
  font-size: 15px;
  color: var(--color-text-secondary);
  font-weight: 500;
  max-width: 200px;
  margin: 0 auto;
  line-height: 1.5;
}

.numbers-source {
  text-align: center;
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: var(--spacing-lg);
  font-style: italic;
}

/* ===========================================
   PROBLEM SECTION
   =========================================== */

#problema {
  background: var(--color-surface);
}

.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
}

.problem-card {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.card-emoji {
  font-size: 2.5rem;
  line-height: 1;
}

.problem-card h3 {
  font-size: 1.3rem;
}

.problem-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.problem-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.problem-list li::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  min-width: 7px;
  background: var(--color-accent);
  border-radius: 50%;
  margin-top: 7px;
}

/* ===========================================
   SOLUTION SECTION
   =========================================== */

#soluzione {
  background: var(--color-bg);
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
}

.solution-card {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.solution-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: var(--spacing-xs);
  line-height: 1;
}

.solution-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

.solution-card p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--color-text-secondary);
}

/* ===========================================
   HOW IT WORKS SECTION
   =========================================== */

#come-funziona {
  background: var(--color-surface);
}

.steps-container {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-2xl);
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--spacing-md);
  flex: 1;
  max-width: 260px;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-accent);
  color: white;
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(26, 163, 211, 0.35);
}

.step-text {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-primary);
  line-height: 1.5;
}

.step-arrow {
  font-size: 1.4rem;
  color: var(--color-accent);
  opacity: 0.45;
  flex-shrink: 0;
  margin-top: 17px; /* align with circle center */
  display: inline-block;
}

/* Steps CTA accent box */
.steps-cta-box {
  background: var(--color-accent);
  border-radius: var(--radius-xl);
  padding: var(--spacing-2xl) var(--spacing-xl);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-md);
}

.steps-cta-text {
  font-size: 20px;
  font-weight: 600;
  color: white;
}

.steps-cta-caption {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
}

/* ===========================================
   BENEFITS SECTION
   =========================================== */

#vantaggi {
  background: var(--color-bg);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-lg);
}

.benefit-card {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.benefit-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.benefit-icon {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: var(--spacing-xs);
}

.benefit-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text-primary);
}

.benefit-card p {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.65;
}

/* ===========================================
   WAITLIST SECTION
   =========================================== */

#waitlist {
  background: var(--color-accent);
  padding: var(--spacing-3xl) 0;
}

.waitlist-inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

#waitlist h2 {
  color: white;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--spacing-sm);
}

.waitlist-subtitle {
  color: rgba(255, 255, 255, 0.85);
  font-size: 17px;
  margin-bottom: var(--spacing-2xl);
}

/* Form */
#waitlist-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.form-group {
  width: 100%;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  font-family: inherit;
  font-size: 15px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  outline: none;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.form-group input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.form-group input:focus,
.form-group select:focus {
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.25);
}

/* Custom dropdown — sostituisce il <select> nativo */
.custom-select {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 14px 44px 14px 18px;
  font-family: inherit;
  font-size: 15px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  user-select: none;
  box-sizing: border-box;
  outline: none;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.custom-select:focus,
.custom-select.open {
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.25);
}

.custom-select.has-value {
  color: white;
}

.custom-select-arrow {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.2s ease;
  pointer-events: none;
  flex-shrink: 0;
}

.custom-select.open .custom-select-arrow {
  transform: translateY(-50%) rotate(180deg);
}

.custom-select-options {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #0e87b3;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  list-style: none;
  margin: 0;
  padding: 6px 0;
  z-index: 25;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.custom-select.open .custom-select-options {
  display: block;
  animation: dropdown-appear 0.15s ease;
}

@keyframes dropdown-appear {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.custom-select-options li {
  padding: 11px 18px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  cursor: pointer;
  transition: background 0.12s;
}

.custom-select-options li:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

.custom-select-options li[aria-selected="true"] {
  color: white;
  font-weight: 500;
}

.form-submit {
  margin-top: var(--spacing-xs);
}

.form-submit .btn-white {
  width: 100%;
  justify-content: center;
}

.privacy-text {
  margin-top: var(--spacing-md);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  position: relative;
  z-index: 0;
}

.privacy-text a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  transition: color 0.15s;
}

.privacy-text a:hover {
  color: white;
}

/* Form feedback messages */
.form-message {
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  display: none;
  animation: msg-appear 0.3s ease;
  margin-top: 12px;
}

.form-message.success {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.4);
  display: block;
}

.form-message.error {
  background: rgba(220, 60, 60, 0.25);
  color: white;
  border: 1px solid rgba(220, 60, 60, 0.5);
  display: block;
}

@keyframes msg-appear {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(4px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ===========================================
   FOOTER
   =========================================== */

footer {
  background: #111111;
  padding: var(--spacing-2xl) 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--spacing-2xl);
}

.footer-logo {
  height: 120px;
  width: auto;
  margin-bottom: var(--spacing-sm);
  /* Logo-footer.svg è già bianco — nessun filtro necessario */
}

.footer-tagline {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.45);
}

footer h4 {
  color: white;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--spacing-md);
}

footer ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

footer ul li a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s ease;
}

footer ul li a:hover {
  color: white;
}

.footer-contact-email {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: var(--spacing-md);
}

.copyright {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
  margin-top: var(--spacing-xl);
  line-height: 1.6;
}

/* ===========================================
   DEMO PAGE (demo.html) styles
   =========================================== */

/* Body override for demo page */
body.demo-page {
  overflow: hidden;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --- Mobile blocker (< 768px) --- */
.demo-mobile-block {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--color-bg);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-lg);
}

.demo-mobile-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  padding: var(--spacing-2xl);
  text-align: center;
  max-width: 420px;
  width: 100%;
}

.demo-mobile-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: var(--spacing-lg);
}

.demo-mobile-card h2 {
  font-size: 1.35rem;
  margin-bottom: var(--spacing-md);
  color: var(--color-text-primary);
}

.demo-mobile-card p {
  font-size: 15px;
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-xl);
  line-height: 1.7;
}

/* --- Demo content wrapper --- */
#demo-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

.demo-nav-back {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-accent);
  transition: opacity 0.2s;
}

.demo-nav-back:hover {
  opacity: 0.7;
}

/* --- Demo layout 2-col --- */
.demo-layout {
  display: grid;
  grid-template-columns: 1fr 3fr;
  flex: 1;
  overflow: hidden;
}

/* --- Sidebar --- */
.demo-sidebar {
  background: var(--color-surface);
  border-right: 1px solid var(--color-border);
  padding: var(--spacing-lg) var(--spacing-lg) var(--spacing-xl);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.sidebar-back {
  display: block;
  margin-bottom: var(--spacing-md);
}

.demo-disclaimer {
  margin-bottom: var(--spacing-xl);
}

.demo-disclaimer p {
  font-size: 12px;
  line-height: 1.55;
  color: var(--color-text-secondary);
  margin: 0;
}

.demo-disclaimer strong {
  font-weight: 600;
}

.sidebar-steps {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  flex: 1;
}

.sidebar-step {
  display: flex;
  gap: var(--spacing-md);
  align-items: flex-start;
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  transition: background 0.2s;
  pointer-events: none;
}

.sidebar-step.active {
  background: rgba(26, 163, 211, 0.08);
  pointer-events: none;
}

.sidebar-step.locked {
  opacity: 0.35;
}

.sidebar-step.available {
  opacity: 1;
  pointer-events: auto;
  cursor: pointer;
}

.sidebar-step.available:hover {
  background: rgba(26, 163, 211, 0.06);
}

.sidebar-step-num {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent);
  min-width: 2.2rem;
  line-height: 1.1;
}

.sidebar-step.locked .sidebar-step-num {
  color: var(--color-text-muted);
}

.sidebar-step-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary);
  line-height: 1.4;
  margin-bottom: 3px;
}

.sidebar-step-sub {
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* --- Progress indicator --- */
.sidebar-progress {
  padding-top: var(--spacing-xl);
}

.progress-track {
  display: flex;
  align-items: center;
  margin-bottom: var(--spacing-sm);
}

.progress-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-border);
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.3s,
    color 0.3s,
    box-shadow 0.3s;
  flex-shrink: 0;
}

.progress-step.active .progress-dot,
.progress-step.done .progress-dot {
  background: var(--color-accent);
  color: white;
  box-shadow: 0 2px 8px rgba(26, 163, 211, 0.4);
}

.progress-line {
  flex: 1;
  height: 2px;
  background: var(--color-border);
  margin: 0 10px;
  transition: background 0.4s;
}

.progress-line.done {
  background: var(--color-accent);
}

.progress-label {
  font-size: 12px;
  color: var(--color-text-muted);
  font-weight: 500;
}

/* --- Demo main area --- */
.demo-main {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px var(--spacing-lg) 12px;
  position: relative;
}

/* Avanti button — top-right of main column */
.demo-next-btn {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
}

.device-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

/* --- Device mockup (phone frame) --- */
.device-mockup {
  position: relative;
  height: 100%;
  max-height: 820px;
  /* Width derived from the frame image's natural aspect ratio */
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.28));
}

/* iPhone PNG frame — in-flow (height 100% of mockup, width auto = natural ratio) */
.device-frame-img {
  display: block;
  height: 100%;
  width: auto;
  pointer-events: none;
  position: relative;
  z-index: 10;
}

/* Content area — aligned to the screen region of the PNG */
.device-screen-area {
  position: absolute;
  top: 1.8%;
  left: 5%;
  right: 5%;
  bottom: 2.8%;
  overflow: hidden;
  border-radius: 36px;
  background: #f5f5f5;
  z-index: 1;
}

.device-screen {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.device-screen::-webkit-scrollbar {
  display: none;
}

.device-screen-view {
  padding: 12px 24px 18px;
}

/* --- Push notification overlay --- */
.push-notification {
  position: absolute;
  top: 34px;
  left: 18px;
  right: 18px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.22);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 200;
  transform: translateY(-140%);
  transition: transform 0.42s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.push-notification.show {
  transform: translateY(0);
}

.push-notif-icon {
  font-size: 26px;
  flex-shrink: 0;
}

.push-notif-app {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.push-notif-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 1px;
}

.push-notif-body {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.4;
}

.push-notif-body strong {
  color: var(--color-accent);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 3px;
}

/* --- Next button --- */
.demo-next-btn:disabled {
  background: var(--color-border) !important;
  color: var(--color-text-muted) !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
  transform: none !important;
}

.demo-next-btn.unlocked {
  animation: btn-attention 1.6s ease-in-out infinite;
}

@keyframes btn-attention {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 2px 8px rgba(26, 163, 211, 0.3);
  }
  50% {
    transform: scale(1.06);
    box-shadow:
      0 0 0 7px rgba(26, 163, 211, 0.15),
      0 4px 16px rgba(26, 163, 211, 0.4);
  }
}

/* ====================================
   DEMO FORM (inside device screen)
   ==================================== */

/* Welcome screen */
.screen-welcome {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 28px;
  gap: 24px;
  background: var(--color-bg);
  text-align: center;
}

.welcome-logo {
  height: 48px;
  width: auto;
}

.welcome-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.welcome-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1.2;
}

.welcome-sub {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin: 0;
}

.demo-form-header {
  margin-bottom: 18px;
}

.demo-step-badge {
  display: inline-block;
  background: var(--color-accent);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
  letter-spacing: 0.4px;
}

.demo-step-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1.3;
  margin-bottom: 4px;
  margin-top: 36px;
}

.demo-step-sub {
  font-size: 12px;
  color: var(--color-text-muted);
}

.demo-field {
  margin-bottom: 12px;
}

.demo-field-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.demo-field-row .demo-field {
  flex: 1;
  margin-bottom: 0;
}

.demo-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.req {
  color: var(--color-accent);
}

.demo-input,
.demo-select {
  width: 100%;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
  border: 1.5px solid var(--color-border);
  border-radius: 8px;
  background: white;
  color: var(--color-text-primary);
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.demo-input::placeholder {
  color: var(--color-text-muted);
}

.demo-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  cursor: pointer;
}

.demo-input:focus,
.demo-select:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(26, 163, 211, 0.12);
}

/* Orari trigger — readonly, looks clickable */
.orari-trigger {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='12' fill='none'%3E%3Cpath d='M1 1l5 5-5 5' stroke='%23999' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  caret-color: transparent;
}

/* Photo upload */
.photo-upload-area {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 2px dashed var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: white;
  transition: border-color 0.2s;
}

.photo-upload-area:hover {
  border-color: var(--color-accent);
}

.photo-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  pointer-events: none;
}

.photo-icon {
  font-size: 1.8rem;
}

.photo-hint {
  font-size: 12px;
  color: var(--color-text-muted);
  font-weight: 500;
}

.photo-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.photo-preview.visible {
  display: block;
}

.photo-file-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

/* Submit button (inside device) */
.demo-btn-submit {
  width: 100%;
  padding: 13px;
  background: var(--color-accent);
  color: white;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.1s;
  margin-top: 6px;
  position: relative;
  min-height: 46px;
}

.demo-btn-submit:hover:not(:disabled) {
  background: var(--color-accent-dark);
}
.demo-btn-submit:active:not(:disabled) {
  transform: scale(0.97);
}

.demo-btn-submit:disabled {
  background: var(--color-border);
  color: var(--color-text-muted);
  cursor: not-allowed;
}

.demo-btn-submit.loading {
  color: transparent;
}

.demo-btn-submit.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  transform: translate(-50%, -50%);
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Demo inline error */
.demo-error {
  font-size: 13px;
  color: #c0392b;
  background: rgba(192, 57, 43, 0.08);
  border: 1px solid rgba(192, 57, 43, 0.2);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 10px;
  display: none;
  font-weight: 500;
  line-height: 1.4;
}

.demo-error.visible {
  display: block;
  animation: msg-appear 0.25s ease;
}

/* === Verification screen === */
#screen-verify {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.verify-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 38% 0 24px;
  width: 100%;
}

.verify-icon {
  font-size: 2.8rem;
  margin-bottom: 12px;
}

.verify-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 8px;
}

.verify-sub {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-bottom: 20px;
  line-height: 1.5;
}

.verify-sub strong {
  color: var(--color-text-primary);
  font-weight: 600;
}

.verify-code-wrap {
  width: 100%;
  margin-bottom: 10px;
}

.verify-code-input {
  width: 100%;
  padding: 14px 12px;
  font-family: "Inter", monospace;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 8px;
  text-align: center;
  border: 2px solid var(--color-border);
  border-radius: 10px;
  background: white;
  color: var(--color-text-primary);
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.verify-code-input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(26, 163, 211, 0.12);
}

.verify-code-input::placeholder {
  letter-spacing: 4px;
  color: var(--color-border);
  font-weight: 400;
}

.verify-code-input.shake {
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-7px);
  }
  40% {
    transform: translateX(7px);
  }
  60% {
    transform: translateX(-4px);
  }
  80% {
    transform: translateX(4px);
  }
}

/* Success state — overlay a schermo pieno dentro .device-screen */
.verify-success {
  display: none;
  position: absolute;
  inset: 0;
  background: var(--color-bg);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  z-index: 50;
  animation: msg-appear 0.35s ease;
}

.verify-success-icon {
  width: 56px;
  height: 56px;
  background: var(--color-accent);
  color: white;
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(26, 163, 211, 0.45);
}

.verify-success-text {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text-primary);
}

/* ====================================
   ORARI DIALOG (overlay inside device-screen-area)
   ==================================== */

.orari-dialog {
  position: absolute;
  inset: 0;
  background: var(--color-bg);
  z-index: 50;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: inherit;
  overflow: hidden;
  padding: 0 8px;
}

.orari-dialog.open {
  transform: translateX(0);
}

.orari-dialog-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 37px 14px 12px;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}

.orari-back-btn {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-accent);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 0.15s;
}
.orari-back-btn:hover {
  opacity: 0.7;
}

.orari-dialog-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-primary);
}

.orari-days {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: none;
}
.orari-days::-webkit-scrollbar {
  display: none;
}

.orari-day-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--color-border);
}

.orari-day-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-primary);
  min-width: 28px;
}

.orari-toggle-label {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
  flex-shrink: 0;
}

.orari-open-cb {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.orari-toggle-track {
  position: absolute;
  inset: 0;
  background: var(--color-border);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s;
}

.orari-toggle-track::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  background: white;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.22);
}

.orari-open-cb:checked + .orari-toggle-track {
  background: var(--color-accent);
}
.orari-open-cb:checked + .orari-toggle-track::after {
  transform: translateX(16px);
}

.orari-times {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.orari-time-input {
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-primary);
  border: 1.5px solid var(--color-border);
  border-radius: 6px;
  padding: 5px 6px;
  background: white;
  outline: none;
  width: 74px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.orari-time-input:focus {
  border-color: var(--color-accent);
}

.orari-dash {
  font-size: 12px;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.orari-closed-label {
  font-size: 12px;
  color: var(--color-text-muted);
  font-style: italic;
  display: none;
  flex: 1;
}

.orari-dialog-footer {
  padding: 12px 14px 24px;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  flex-shrink: 0;
}

.orari-dialog-footer .demo-btn-submit {
  margin-top: 0;
}

/* === Mobile override: show blocker, hide content === */
@media (max-width: 767px) {
  .demo-mobile-block {
    display: flex;
  }
  #demo-content {
    display: none;
  }
}

/* ===========================================
   RESPONSIVE — TABLET (≤ 1024px)
   =========================================== */

@media (max-width: 1024px) {
  :root {
    --spacing-3xl: 4.5rem;
  }

  .hero-inner {
    gap: var(--spacing-2xl);
  }

  .solution-grid {
    gap: var(--spacing-md);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
  }

  .footer-grid > :first-child {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
  }

  .footer-grid > :first-child .footer-logo {
    margin-bottom: 0;
  }

  .footer-tagline {
    margin-top: 0;
  }
}

/* ===========================================
   RESPONSIVE — MOBILE (< 768px)
   =========================================== */

@media (max-width: 768px) {
  :root {
    --spacing-3xl: 3rem;
    --spacing-2xl: 2.5rem;
  }

  /* Navbar */
  .navbar-links,
  .navbar-ctas {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  /* Hero — animation above text with overlap */
  #hero {
    min-height: auto;
    padding-top: var(--navbar-height);
    padding-bottom: var(--spacing-2xl);
    overflow: hidden;
  }

  .hero-inner {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .hero-visual {
    order: -1;
  }

  .hero-lottie {
    min-height: 300px;
  }

  .hero-text {
    order: 1;
    margin-top: -2.5rem;
    position: relative;
    z-index: 1;
    background: var(--color-bg);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    padding-top: var(--spacing-xl);
  }

  .hero-ctas {
    flex-direction: column;
  }

  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
  }

  /* Numbers */
  .numbers-grid {
    grid-template-columns: 1fr;
  }

  .number-item + .number-item {
    border-left: none;
    border-top: 1px solid var(--color-border);
  }

  /* Problem */
  .problem-grid {
    grid-template-columns: 1fr;
  }

  /* Solution */
  .solution-grid {
    grid-template-columns: 1fr;
  }

  /* Steps */
  .steps-container {
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
  }

  .step {
    max-width: 100%;
    flex-direction: row;
    text-align: left;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    width: 100%;
  }

  .step-number {
    width: 44px;
    height: 44px;
    min-width: 44px;
    font-size: 1.2rem;
  }

  .step-arrow {
    display: none;
  }

  .step-text {
    text-align: left;
  }

  /* Benefits */
  .benefits-grid {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .footer-grid > :first-child {
    grid-column: auto;
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-grid > :first-child .footer-logo {
    margin-bottom: var(--spacing-xs);
  }

  .footer-logo {
    height: 80px;
  }

  /* Section padding mobile */
  section {
    padding: var(--spacing-2xl) 0;
  }

  .numbers-section {
    padding: var(--spacing-xl) 0;
  }

  /* Steps CTA box */
  .steps-cta-box {
    padding: var(--spacing-xl) var(--spacing-md);
  }

  .steps-cta-text {
    font-size: 17px;
  }

  .btn-large {
    padding: 15px 28px;
    font-size: 15px;
  }

  /* Demo placeholder card */
  .demo-placeholder-card {
    padding: var(--spacing-xl) var(--spacing-lg);
  }
}
