/* ═══════════════════════════════════════════════════
   REN LP — ren.css
   GigaSolar Reddito Energetico Nazionale 2026
   Mobile-first · Touch 48px · Navy/Gold/Cyan
   ═══════════════════════════════════════════════════ */

/* ── TOKENS ── */
:root {
  --gs-navy: #1B2E4A;
  --gs-navy-deep: #142338;
  --gs-navy-light: #243B5C;
  --gs-navy-card: #1a3050;
  --gs-gold: #F5A623;
  --gs-gold-light: #FFD080;
  --gs-gold-dim: rgba(245,166,35,0.12);
  --gs-cyan: #00D2FF;
  --gs-cyan-dim: rgba(0,210,255,0.12);
  --gs-green: #27AE60;
  --gs-green-light: #2ECC71;
  --gs-red: #E74C3C;
  --gs-red-dim: rgba(231,76,60,0.12);
  --gs-white: #FFFFFF;
  --gs-white-soft: rgba(255,255,255,0.85);
  --gs-white-muted: rgba(255,255,255,0.55);
  --gs-white-faint: rgba(255,255,255,0.08);
  --gs-border: rgba(255,255,255,0.12);
  --gs-shadow: 0 4px 20px rgba(0,0,0,0.25);
  --gs-radius: 16px;
  --gs-radius-sm: 10px;
  --gs-radius-pill: 28px;
  --gs-touch: 48px;
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --area-bg: #F5F7FA;
  --area-card: #FFFFFF;
  --area-text: #1B2E4A;
  --area-text-muted: #6B7B8D;
  --area-border: #E2E8F0;
  --area-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  overflow-x: hidden;
}

/* ── SCREENS ── */
.screen {
  display: none;
  min-height: 100dvh;
  width: 100%;
}
.screen.active { display: flex; flex-direction: column; }

/* ══════════════════════════════════════════
   SCREEN 1 — CAROUSEL
   ══════════════════════════════════════════ */
#screen-carousel {
  background: var(--gs-navy-deep);
  color: var(--gs-white);
  overflow: hidden;
  height: 100dvh;
  position: relative;
}

/* Fixed header */
.gs-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to bottom, var(--gs-navy-deep) 60%, transparent);
}
.gs-header .gs-logo { height: 36px; }
.gs-header-btn {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--gs-gold);
  background: var(--gs-gold-dim);
  border: 1.5px solid rgba(245,166,35,0.3);
  border-radius: var(--gs-radius-pill);
  padding: 8px 20px;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}
.gs-header-btn:hover {
  background: rgba(245,166,35,0.25);
  border-color: var(--gs-gold);
}
.gs-header-link {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--gs-gold);
  text-decoration: none;
  padding: 8px 4px;
  transition: opacity 0.3s;
}
.gs-header-link:hover { opacity: 0.7; }

/* Track */
.carousel-viewport {
  width: 100%; height: 100dvh;
  position: relative; overflow: hidden;
}
.carousel-track {
  display: flex; width: 100%; height: 100%;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.slide {
  min-width: 100%; height: 100%;
  display: flex; flex-direction: column;
  justify-content: flex-start; align-items: center;
  padding: 72px 28px 120px;
  text-align: center;
  position: relative; overflow: hidden;
}

/* Slide backgrounds */
.slide::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
}
.slide-1::before { background: radial-gradient(ellipse at 50% 30%, var(--gs-navy-light) 0%, var(--gs-navy-deep) 70%); }
.slide-2::before { background: radial-gradient(ellipse at 30% 60%, #1a3a5c 0%, var(--gs-navy-deep) 70%); }
.slide-3::before { background: radial-gradient(ellipse at 70% 40%, #1c3552 0%, var(--gs-navy-deep) 70%); }
.slide-4::before { background: radial-gradient(ellipse at 50% 50%, #1a3a5c 0%, var(--gs-navy-deep) 70%); }
.slide-5::before { background: radial-gradient(ellipse at 40% 30%, #153248 0%, var(--gs-navy-deep) 70%); }
.slide-6::before { background: radial-gradient(ellipse at 60% 60%, #1a3552 0%, var(--gs-navy-deep) 70%); }
.slide-7::before { background: radial-gradient(ellipse at 50% 40%, #1c3856 0%, var(--gs-navy-deep) 70%); }

.slide-content {
  position: relative; z-index: 1;
  max-width: 480px; width: 100%;
}

/* Slide typography */
.slide-icon {
  font-size: 52px; margin-bottom: 24px;
  display: inline-block;
  animation: gentlePulse 3s ease-in-out infinite;
}
@keyframes gentlePulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }

.slide-eyebrow {
  font-family: var(--font-display);
  font-size: 13px; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--gs-gold); margin-bottom: 16px;
}
.slide-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 6.5vw, 36px);
  font-weight: 800; line-height: 1.2;
  margin-bottom: 20px; color: var(--gs-white);
}
.slide-title .hl-gold { color: var(--gs-gold); }
.slide-title .hl-cyan { color: var(--gs-cyan); }

.slide-body {
  font-size: clamp(16px, 4vw, 19px);
  line-height: 1.65; color: var(--gs-white-soft);
  margin-bottom: 24px;
}
.slide-body strong { color: var(--gs-white); font-weight: 700; }

.slide-note {
  font-size: 14px; color: var(--gs-white-muted); line-height: 1.5;
}

/* Requirement pills */
.req-pills { display: flex; flex-direction: column; gap: 12px; margin: 20px 0; text-align: left; }
.req-pill {
  display: flex; align-items: center; gap: 14px;
  background: var(--gs-white-faint);
  border: 1px solid var(--gs-border);
  border-radius: var(--gs-radius-sm);
  padding: 14px 18px; font-size: 16px; color: var(--gs-white-soft);
}
.req-pill .pill-icon { font-size: 22px; flex-shrink: 0; }
.req-pill strong { color: var(--gs-gold); }

/* Steps list */
.steps-list { display: flex; flex-direction: column; gap: 14px; margin: 20px 0; text-align: left; }
.step-item { display: flex; align-items: flex-start; gap: 14px; }
.step-num {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
  background: var(--gs-gold-dim); border: 1.5px solid rgba(245,166,35,0.4);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 14px; font-weight: 800;
  color: var(--gs-gold);
}
.step-text { font-size: 16px; line-height: 1.5; color: var(--gs-white-soft); padding-top: 4px; }

/* Accumulo card (cyan) */
.accumulo-card {
  background: linear-gradient(135deg, var(--gs-cyan-dim), rgba(0,210,255,0.03));
  border: 1.5px solid rgba(0,210,255,0.3);
  border-radius: var(--gs-radius); padding: 24px; margin-top: 20px;
  text-align: center;
}
.accumulo-card .price-tag {
  font-family: var(--font-display); font-size: 42px; font-weight: 800;
  color: var(--gs-cyan); margin: 8px 0 4px;
}
.accumulo-card .price-sub { font-size: 15px; color: var(--gs-white-muted); }
.accumulo-card .price-detail { font-size: 13px; color: var(--gs-white-muted); margin-top: 4px; opacity: 0.7; }

.badge-exclusive {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display); font-size: 11px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 7px 16px; border-radius: 20px;
  background: var(--gs-cyan-dim); color: var(--gs-cyan);
  border: 1px solid rgba(0,210,255,0.25); margin-bottom: 16px;
}

/* Energy dots */
.energy-dots { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.energy-dots span {
  position: absolute; width: 3px; height: 3px; border-radius: 50%;
  background: var(--gs-cyan); opacity: 0;
  animation: twinkle 4s ease-in-out infinite;
}
@keyframes twinkle { 0%,100% { opacity: 0; transform: scale(0.5); } 50% { opacity: 0.5; transform: scale(1.2); } }

/* Trust badges */
.trust-row { display: flex; gap: 12px; margin: 20px 0; justify-content: center; flex-wrap: wrap; }
.trust-badge {
  display: flex; align-items: center; gap: 8px;
  background: var(--gs-white-faint); border: 1px solid var(--gs-border);
  border-radius: var(--gs-radius-pill); padding: 10px 16px;
  font-size: 13px; font-weight: 600; color: var(--gs-white-soft);
  white-space: nowrap;
}
.trust-badge .badge-icon { font-size: 18px; }

/* CTA buttons */
.cta-buttons { display: flex; flex-direction: column; gap: 14px; margin-top: 28px; width: 100%; }
.cta-primary {
  font-family: var(--font-display); font-size: 17px; font-weight: 700;
  color: var(--gs-navy-deep);
  background: linear-gradient(135deg, var(--gs-gold), var(--gs-gold-light));
  border: none; border-radius: 14px; padding: 18px 32px; cursor: pointer;
  transition: all 0.3s; box-shadow: 0 4px 20px rgba(245,166,35,0.35);
  width: 100%; text-align: center;
}
.cta-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 28px rgba(245,166,35,0.45); }
.cta-secondary {
  font-family: var(--font-display); font-size: 15px; font-weight: 600;
  color: var(--gs-white-soft);
  background: var(--gs-white-faint); border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 14px; padding: 16px 32px; cursor: pointer;
  transition: all 0.3s; width: 100%; text-align: center;
}
.cta-secondary:hover { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.35); }

/* Carousel nav (bottom) */
.carousel-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 20px 24px;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  background: linear-gradient(to top, var(--gs-navy-deep) 50%, transparent);
}
.dot-indicators { display: flex; gap: 8px; align-items: center; }
.dot {
  width: 8px; height: 8px; border-radius: 4px;
  background: rgba(255,255,255,0.2);
  transition: all 0.4s; cursor: pointer;
}
.dot.active { width: 28px; background: var(--gs-gold); }
.nav-btn-continua {
  font-family: var(--font-display); font-size: 16px; font-weight: 700;
  color: var(--gs-navy-deep); background: var(--gs-white);
  border: none; border-radius: 14px; padding: 16px 40px;
  cursor: pointer; transition: all 0.3s;
  width: 100%; max-width: 360px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.nav-btn-continua:hover { transform: translateY(-2px); }
.nav-btn-continua.hidden { display: none; }

/* Slide enter animations */
.slide-content > * {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.slide.active .slide-content > * { opacity: 1; transform: translateY(0); }
.slide.active .slide-content > *:nth-child(1) { transition-delay: 0.1s; }
.slide.active .slide-content > *:nth-child(2) { transition-delay: 0.2s; }
.slide.active .slide-content > *:nth-child(3) { transition-delay: 0.35s; }
.slide.active .slide-content > *:nth-child(4) { transition-delay: 0.5s; }
.slide.active .slide-content > *:nth-child(5) { transition-delay: 0.65s; }
.slide.active .slide-content > *:nth-child(6) { transition-delay: 0.8s; }

/* Decorative circles */
.deco-circle {
  position: absolute; border-radius: 50%; opacity: 0.04;
  background: var(--gs-white); pointer-events: none;
}
.slide-1 .deco-circle { width: 300px; height: 300px; top: -80px; right: -100px; }
.slide-3 .deco-circle { width: 250px; height: 250px; bottom: 20%; left: -60px; }
.slide-5 .deco-circle { width: 350px; height: 350px; top: 10%; right: -120px; }


/* ══════════════════════════════════════════
   SCREEN 2 — REGISTRAZIONE
   ══════════════════════════════════════════ */
#screen-register {
  background: var(--gs-navy-deep);
  color: var(--gs-white);
  flex-direction: column;
  align-items: stretch;
  padding: 0;
}

.reg-header {
  background: var(--gs-navy-deep);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
}
.reg-back {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
  min-height: var(--gs-touch);
}
.reg-back:hover { color: #fff; }
.reg-header-logo { height: 28px; width: auto; display: block; }

.form-container {
  width: 100%; max-width: 440px;
  margin: 0 auto;
  padding: 24px 20px 40px;
}

.form-title {
  font-family: var(--font-display); font-size: 24px; font-weight: 800;
  margin-bottom: 8px;
}
.form-subtitle {
  font-size: 15px; color: var(--gs-white-muted); margin-bottom: 32px;
}

.form-section-label {
  font-family: var(--font-display); font-size: 12px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--gs-gold); margin: 24px 0 12px;
}

.field-group { margin-bottom: 16px; }
.field-group label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--gs-white-soft); margin-bottom: 6px;
}
.field-group input,
.field-group select {
  width: 100%; height: var(--gs-touch);
  font-family: var(--font-body); font-size: 16px;
  color: var(--gs-white); background: var(--gs-white-faint);
  border: 1.5px solid var(--gs-border); border-radius: var(--gs-radius-sm);
  padding: 0 14px; outline: none;
  transition: border-color 0.3s;
}
.field-group input::placeholder { color: var(--gs-white-muted); }
.field-group input:focus { border-color: var(--gs-gold); }
.field-group input.error { border-color: var(--gs-red); }
.field-error {
  font-size: 12px; color: var(--gs-red); margin-top: 4px; display: none;
}
.field-group.has-error .field-error { display: block; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Autocomplete comuni dropdown */
.autocomplete-wrapper { position: relative; }
.autocomplete-list {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 50;
  background: var(--gs-navy-card); border: 1px solid var(--gs-border);
  border-radius: var(--gs-radius-sm); margin-top: 4px;
  max-height: 200px; overflow-y: auto;
  display: none;
}
.autocomplete-list.open { display: block; }
.autocomplete-item {
  padding: 12px 14px; font-size: 15px; color: var(--gs-white-soft);
  cursor: pointer; border-bottom: 1px solid var(--gs-border);
  min-height: var(--gs-touch); display: flex; align-items: center;
}
.autocomplete-item:hover,
.autocomplete-item.selected { background: var(--gs-gold-dim); color: var(--gs-white); }
.autocomplete-item:last-child { border-bottom: none; }

.btn-submit {
  font-family: var(--font-display); font-size: 16px; font-weight: 700;
  color: var(--gs-navy-deep);
  background: linear-gradient(135deg, var(--gs-gold), var(--gs-gold-light));
  border: none; border-radius: 14px;
  padding: 16px; width: 100%; margin-top: 24px;
  cursor: pointer; transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(245,166,35,0.3);
  min-height: var(--gs-touch);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-submit:hover { transform: translateY(-1px); }
.btn-submit:disabled {
  opacity: 0.5; cursor: not-allowed; transform: none;
}

.btn-submit .spinner {
  width: 20px; height: 20px; border: 2.5px solid rgba(20,35,56,0.3);
  border-top-color: var(--gs-navy-deep); border-radius: 50%;
  animation: spin 0.7s linear infinite; display: none;
}
.btn-submit.loading .spinner { display: inline-block; }
.btn-submit.loading .btn-text { display: none; }

@keyframes spin { to { transform: rotate(360deg); } }


/* ══════════════════════════════════════════
   SCREEN 3 — OTP
   ══════════════════════════════════════════ */
#screen-otp {
  background: var(--gs-navy-deep);
  color: var(--gs-white);
  justify-content: center; align-items: center;
  padding: 20px;
}

.otp-container {
  width: 100%; max-width: 400px; text-align: center;
}
.otp-logo { height: 48px; margin-bottom: 32px; }
.otp-title {
  font-family: var(--font-display); font-size: 24px; font-weight: 800;
  margin-bottom: 8px;
}
.otp-subtitle {
  font-size: 15px; color: var(--gs-white-muted); margin-bottom: 8px;
}
.otp-email {
  font-size: 16px; font-weight: 700; color: var(--gs-gold); margin-bottom: 28px;
}

/* Email field (solo per flusso "Accedi") */
.otp-email-field { margin-bottom: 20px; display: none; }
.otp-email-field.visible { display: block; }
.otp-email-field input {
  width: 100%; height: var(--gs-touch);
  font-family: var(--font-body); font-size: 16px;
  color: var(--gs-white); background: var(--gs-white-faint);
  border: 1.5px solid var(--gs-border); border-radius: var(--gs-radius-sm);
  padding: 0 14px; outline: none; text-align: center;
}
.otp-email-field input:focus { border-color: var(--gs-gold); }

/* Code inputs */
.otp-digits {
  display: flex; gap: 10px; justify-content: center; margin-bottom: 24px;
}
.otp-digit {
  width: 48px; height: 56px;
  font-family: var(--font-display); font-size: 24px; font-weight: 700;
  text-align: center; color: var(--gs-white);
  background: var(--gs-white-faint); border: 1.5px solid var(--gs-border);
  border-radius: var(--gs-radius-sm); outline: none;
  transition: border-color 0.3s;
  -webkit-appearance: none;
}
.otp-digit:focus { border-color: var(--gs-gold); background: rgba(245,166,35,0.08); }

.otp-timer {
  font-size: 14px; color: var(--gs-white-muted); margin-bottom: 20px;
}
.otp-timer .time { font-weight: 700; color: var(--gs-gold); font-variant-numeric: tabular-nums; }
.otp-timer.expired .time { color: var(--gs-red); }

.otp-resend {
  font-family: var(--font-display); font-size: 14px; font-weight: 600;
  color: var(--gs-gold); background: none; border: none;
  cursor: pointer; padding: 8px; display: none;
  min-height: var(--gs-touch);
}
.otp-resend.visible { display: inline-block; }

.otp-error {
  font-size: 14px; color: var(--gs-red); margin-bottom: 16px;
  display: none;
}
.otp-error.visible { display: block; }

.otp-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display); font-size: 14px; font-weight: 600;
  color: var(--gs-white-muted); background: none; border: none;
  cursor: pointer; margin-top: 24px; padding: 8px;
  min-height: var(--gs-touch);
}


/* ══════════════════════════════════════════
   SCREEN 4 — AREA RISERVATA (mockup v3)
   ══════════════════════════════════════════ */
#screen-area {
  background: #f5f7fa;
  color: var(--area-text);
  min-height: 100dvh;
  flex-direction: column;
  align-items: stretch;
}

/* Header navy */
.area-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--gs-navy-deep);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.area-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.area-header .gs-logo {
  height: 28px;
  width: auto;
  flex-shrink: 0;
}
.area-header .user-name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--gs-white-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.area-header .btn-logout {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 6px 14px;
  cursor: pointer;
  transition: 0.2s;
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: var(--gs-touch);
}
.area-header .btn-logout:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

/* Contenuto */
.area-container {
  max-width: 520px;
  margin: 0 auto;
  padding: 20px 16px 40px;
  width: 100%;
}

/* Welcome Diletta */
.welcome-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #fff8ed;
  border: 1px solid rgba(245, 166, 35, 0.35);
  border-radius: var(--gs-radius);
  padding: 16px;
  margin-bottom: 24px;
}
.welcome-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  background: rgba(245, 166, 35, 0.1);
}
.welcome-text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--area-text);
}
.welcome-text strong {
  color: var(--gs-navy-deep);
}

.welcome-success {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: rgba(39, 174, 96, 0.08);
  border: 1px solid rgba(39, 174, 96, 0.35);
  border-radius: var(--gs-radius);
  padding: 16px;
  margin-bottom: 24px;
}

/* Stepper */
.stepper {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 28px;
  padding: 0 4px;
  position: relative;
}
.stepper::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 32px;
  right: 32px;
  height: 2px;
  background: var(--area-border);
  z-index: 0;
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
  flex: 1;
}
.step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.3s;
  background: #fff;
}
.step.done .step-circle {
  background: var(--gs-green);
  color: #fff;
  box-shadow: 0 2px 6px rgba(39, 174, 96, 0.25);
}
.step.current .step-circle {
  background: var(--gs-gold);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(245, 166, 35, 0.12), 0 2px 6px rgba(245, 166, 35, 0.2);
}
.step.todo .step-circle {
  background: #fff;
  border: 2px solid var(--area-border);
  color: var(--area-text-muted);
}
.step-label {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--area-text-muted);
  text-align: center;
  letter-spacing: 0.3px;
  line-height: 1.3;
}
.step.done .step-label {
  color: var(--gs-green);
}
.step.current .step-label {
  color: var(--gs-gold);
  font-weight: 700;
}
.stepper-progress {
  position: absolute;
  top: 16px;
  left: 32px;
  height: 2px;
  background: var(--gs-green);
  z-index: 0;
  transition: width 0.5s ease;
  max-width: calc(100% - 64px);
}

/* Sezione titoli */
.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--area-text-muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-label i {
  font-size: 14px;
}
.section-badge {
  font-size: 10px;
  font-weight: 700;
  color: var(--gs-green);
  letter-spacing: 0;
  text-transform: none;
}

/* Lista documenti (righe compatte v3) */
.doc-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 28px;
}

.doc-done {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(39, 174, 96, 0.06);
  border: 1px solid rgba(39, 174, 96, 0.35);
  border-radius: var(--gs-radius-sm);
  padding: 11px 14px;
  box-shadow: var(--area-shadow);
}
.doc-done-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gs-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #fff;
  flex-shrink: 0;
}
.doc-done-name {
  flex: 1;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--area-text);
}
.doc-done-actions {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}
.doc-btn-sm {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: 0.2s;
}
.doc-btn-view {
  background: rgba(0, 0, 0, 0.04);
  color: var(--area-text-muted);
}
.doc-btn-view:hover {
  background: rgba(0, 0, 0, 0.08);
  color: var(--area-text);
}
.doc-btn-del {
  background: var(--gs-red-dim);
  color: var(--gs-red);
}
.doc-btn-del:hover {
  background: rgba(231, 76, 60, 0.2);
}

.doc-missing {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--area-card);
  border: 1px solid var(--area-border);
  border-radius: var(--gs-radius-sm);
  padding: 11px 14px;
  box-shadow: var(--area-shadow);
}
.doc-missing-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--area-bg);
  border: 1.5px dashed var(--area-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--area-text-muted);
  flex-shrink: 0;
}
.doc-missing-name {
  flex: 1;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--area-text-muted);
}
.doc-btn-upload {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  color: var(--gs-gold);
  background: #fff8ed;
  border: 1px solid rgba(245, 166, 35, 0.35);
  border-radius: 8px;
  padding: 7px 14px;
  cursor: pointer;
  transition: 0.2s;
  flex-shrink: 0;
  min-height: 36px;
}
.doc-btn-upload:hover {
  background: rgba(245, 166, 35, 0.1);
}

/* Note (v3) */
#screen-area .notes-card {
  background: var(--area-card);
  border: 1px solid var(--area-border);
  border-radius: var(--gs-radius);
  padding: 16px;
  box-shadow: var(--area-shadow);
  margin-top: 0;
}
.notes-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--area-text-muted);
  margin-bottom: 10px;
}
#screen-area .notes-card textarea {
  width: 100%;
  min-height: 80px;
  background: var(--area-bg);
  border: 1px solid var(--area-border);
  border-radius: var(--gs-radius-sm);
  color: var(--area-text);
  font-family: var(--font-body);
  font-size: 13px;
  padding: 12px;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s;
}
#screen-area .notes-card textarea::placeholder {
  color: var(--area-text-muted);
}
#screen-area .notes-card textarea:focus {
  border-color: var(--gs-gold);
}
.notes-saved {
  font-size: 12px;
  color: var(--gs-green);
  margin-top: 8px;
  opacity: 0;
  transition: opacity 0.3s;
}
.notes-saved.visible {
  opacity: 1;
}

/* Help */
.help-bar {
  margin-top: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--area-text-muted);
}
.help-bar a {
  color: var(--gs-gold);
  text-decoration: none;
  font-weight: 600;
}
.help-bar a:hover {
  text-decoration: underline;
}

@media (max-width: 400px) {
  .step-label {
    font-size: 9.5px;
  }
  .step-circle {
    width: 28px;
    height: 28px;
    font-size: 11px;
  }
  .stepper::before,
  .stepper-progress {
    top: 14px;
  }
}


/* ══════════════════════════════════════════
   TOAST
   ══════════════════════════════════════════ */
.toast-container {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  z-index: 9999; display: flex; flex-direction: column; gap: 8px;
  align-items: center; pointer-events: none;
}
.toast {
  font-family: var(--font-display); font-size: 14px; font-weight: 600;
  padding: 14px 24px; border-radius: var(--gs-radius-sm);
  color: var(--gs-white); pointer-events: auto;
  animation: toastIn 0.3s ease, toastOut 0.3s ease 3.5s forwards;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  max-width: 90vw; text-align: center;
}
.toast.success { background: var(--gs-green); }
.toast.error { background: var(--gs-red); }
.toast.info { background: var(--gs-navy); }

@keyframes toastIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-10px); } }

/* ══════════════════════════════════════════
   LOADING OVERLAY
   ══════════════════════════════════════════ */
.loading-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(20,35,56,0.85);
  display: none; justify-content: center; align-items: center;
}
.loading-overlay.active { display: flex; }
.loading-spinner {
  width: 48px; height: 48px;
  border: 4px solid rgba(255,255,255,0.15);
  border-top-color: var(--gs-gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}


/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */
@media (min-width: 768px) {
  .slide { padding: 100px 40px 160px; }
  .slide-icon { font-size: 64px; }
  .slide-title { font-size: 40px; }
  .slide-body { font-size: 20px; }
  .gs-header .gs-logo { height: 44px; }
  .accumulo-card .price-tag { font-size: 52px; }
  .form-container { padding-top: 28px; }
  #screen-area .area-container { padding: 28px 24px 60px; }
}

