/* ── Reset & Base ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Palette allineata a quella dell'app (lib/core/theme/colors.dart):
     neutri puri + verde brand. Prima era il blu/slate del vecchio brand
     "Profit", che non esiste più da nessuna parte nel prodotto. */
  --bg:          #0A0A0A;  /* AppColors.appBg */
  --surface:     #18181B;  /* slate900 */
  --card:        #27272A;  /* slate800 */
  --border:      #3F3F46;  /* slate700 */
  --border-sub:  #27272A;
  --accent:      #22C55E;  /* green500 — accento su superfici scure */
  --accent-glow: rgba(34,197,94,0.3);
  --accent-deep: #16A34A;  /* green600 */
  --green:       #22C55E;
  --red:         #EF4444;  /* = AppColors.error */
  --amber:       #F59E0B;
  --purple:      #15803D;  /* green700: la seconda tinta dei gradienti */
  --text:        #FAFAFA;  /* slate50 */
  --text-muted:  #71717A;  /* slate500 */
  --text-sub:    #A1A1AA;  /* slate400 */
  --radius:      16px;
  --radius-sm:   10px;
  --font:        'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* ── Utilities ─────────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.gradient-text {
  background: linear-gradient(135deg, #16A34A 0%, #22C55E 50%, #86EFAC 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.positive { color: var(--green); }
.negative { color: var(--red); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font); font-weight: 600; cursor: pointer;
  border: none; border-radius: 100px; transition: all .2s ease;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 24px var(--accent-glow);
}
.btn-primary:hover { background: #2563EB; transform: translateY(-1px); box-shadow: 0 0 36px var(--accent-glow); }
.btn-outline {
  background: transparent;
  color: var(--text-sub);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--text); background: rgba(34,197,94,.08); }
.btn-lg { padding: 14px 28px; font-size: 15px; }

.section-header { text-align: center; margin-bottom: 64px; }
.section-badge {
  display: inline-block;
  background: rgba(34,197,94,.12);
  color: var(--accent);
  border: 1px solid rgba(34,197,94,.25);
  border-radius: 100px;
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-header h2 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
}
.section-header p {
  font-size: 18px;
  color: var(--text-sub);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── Nav ───────────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.scrolled {
  background: rgba(10,10,15,.85);
  border-bottom-color: var(--border-sub);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  height: 64px; display: flex; align-items: center; gap: 32px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 18px;
}
.logo-svg {
  width: 32px; height: 32px;
  flex-shrink: 0;
  border-radius: 8px;
}
/* Segnaposto del marchio finché non esiste l'arte definitiva del logo
   (DA_FARE.md §5): un lettermark sul verde brand. Riusa le misure di
   .logo-svg, così sostituirlo con un <svg> non richiederà toccare il layout. */
.logo-lettermark {
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent-deep), var(--accent));
  color: #0A0A0A;
  font-size: 14px; font-weight: 900; letter-spacing: -.5px;
}
.nav-links {
  display: flex; gap: 4px; margin-left: 8px;
}
.nav-links a {
  padding: 6px 14px; border-radius: 8px; font-size: 14px; font-weight: 500;
  color: var(--text-sub); transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.nav-ctas { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-login {
  padding: 8px 16px; border-radius: 8px; font-size: 14px; font-weight: 600;
  color: var(--text-sub); transition: color .2s, background .2s;
}
.nav-login:hover { color: var(--text); background: rgba(255,255,255,.05); }
.nav-cta { padding: 8px 20px; font-size: 14px; }
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
  margin-left: auto;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text-sub); border-radius: 2px; transition: all .3s;
}
.mobile-menu {
  display: none; flex-direction: column; gap: 4px;
  padding: 12px 24px 16px;
  border-top: 1px solid var(--border-sub);
  background: rgba(10,10,15,.95);
}
.mobile-menu a {
  padding: 10px 12px; border-radius: 8px; font-size: 15px; font-weight: 500;
  color: var(--text-sub);
}
.mobile-menu.open { display: flex; }

/* ── Hero ──────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px 24px 80px;
  position: relative; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: .4; animation: orb-float 8s ease-in-out infinite;
}
.orb-1 { width: 600px; height: 600px; background: #15803D; top: -200px; left: -200px; animation-delay: 0s; }
.orb-2 { width: 400px; height: 400px; background: #166534; top: 30%; right: -100px; animation-delay: -3s; }
.orb-3 { width: 300px; height: 300px; background: #14532D; bottom: -100px; left: 40%; animation-delay: -6s; }
@keyframes orb-float {
  0%,100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 80%);
}

.hero-content {
  max-width: 1200px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 60px;
  position: relative; z-index: 1;
}
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(16,185,129,.1);
  border: 1px solid rgba(16,185,129,.3);
  color: var(--green);
  border-radius: 100px; padding: 6px 14px;
  font-size: 13px; font-weight: 600; margin-bottom: 24px;
}
.badge-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--green);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.3); }
}
.hero-text h1 {
  font-size: clamp(44px, 7vw, 80px);
  font-weight: 900; line-height: 1.05;
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 18px; color: var(--text-sub); line-height: 1.7;
  margin-bottom: 36px; max-width: 480px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats {
  display: flex; align-items: center; gap: 24px;
  padding: 20px 24px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border-sub);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
}
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-val { font-size: 20px; font-weight: 800; color: var(--text); }
.stat-label { font-size: 11px; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; }
.stat-divider { width: 1px; height: 32px; background: var(--border); }

/* Phone mockup */
.hero-phone { display: flex; align-items: center; justify-content: center; position: relative; }
.phone-glow {
  position: absolute; width: 260px; height: 400px; border-radius: 40px;
  background: var(--accent); opacity: .12; filter: blur(60px);
  z-index: 0;
}
.phone-frame {
  width: 260px; height: 520px;
  background: var(--surface);
  border-radius: 40px;
  border: 1px solid var(--border);
  box-shadow: 0 40px 120px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.05);
  overflow: hidden; position: relative; z-index: 1;
}
.phone-screen { padding: 20px 16px; height: 100%; display: flex; flex-direction: column; gap: 12px; }
.phone-ui { display: flex; flex-direction: column; gap: 10px; }
.phone-topbar { display: flex; align-items: center; gap: 8px; }
.phone-search {
  flex: 1; background: var(--card); border-radius: 999px;
  padding: 7px 10px; font-size: 10px; color: var(--text-muted);
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.phone-bell { font-size: 14px; }
.phone-tabs { display: flex; gap: 14px; padding: 0 2px 8px; border-bottom: 1px solid var(--border); }
.phone-tab { font-size: 11px; font-weight: 600; color: var(--text-muted); padding-bottom: 6px; }
.phone-tab-attiva { color: var(--text); border-bottom: 2px solid var(--accent); }
.phone-card {
  display: flex; flex-direction: column; gap: 6px;
  padding: 10px 0; border-bottom: 1px solid var(--border-sub);
}
.phone-card-head { display: flex; align-items: center; gap: 6px; }
.phone-pc-avatar {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  background: var(--card); color: var(--text-muted);
  display: grid; place-items: center; font-size: 10px; font-weight: 700;
}
.phone-pc-avatar-m { background: linear-gradient(135deg, var(--accent-deep), var(--accent)); color: #0A0A0A; }
.phone-pc-name { font-size: 11px; font-weight: 700; }
.phone-pc-pill {
  font-size: 9px; color: var(--text-muted); border: 1px solid var(--border);
  border-radius: 999px; padding: 1px 6px;
}
.phone-pc-time { font-size: 10px; color: var(--text-muted); margin-left: auto; }
.phone-pc-azienda {
  align-self: flex-start; font-size: 10px; color: var(--accent);
  border: 1px solid var(--border); border-radius: 999px; padding: 2px 8px;
}
.phone-pc-text { font-size: 11px; color: var(--text-sub); line-height: 1.5; }
.phone-pc-actions { display: flex; gap: 10px; font-size: 10px; color: var(--text-muted); }

.scroll-hint {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center;
}
.scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, transparent, var(--accent), transparent);
  animation: scroll-anim 2s ease-in-out infinite;
}
@keyframes scroll-anim {
  0%,100% { opacity: 0; transform: scaleY(.5) translateY(-10px); }
  50% { opacity: 1; transform: scaleY(1) translateY(0); }
}

/* ── Features ──────────────────────────────────────────────────────── */
.features { padding: 120px 0; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border-sub);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color .3s, transform .3s, box-shadow .3s;
  position: relative; overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.06), transparent);
}
.feature-card:hover {
  border-color: rgba(34,197,94,.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
}
.feature-card-wide { grid-column: span 2; }
.feature-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.feature-icon svg { width: 22px; height: 22px; color: #fff; }
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.feature-card p { font-size: 14px; color: var(--text-sub); line-height: 1.65; }
.feature-chart { margin-top: 20px; height: 60px; border-radius: 8px; overflow: hidden; }
.feature-chart svg { width: 100%; height: 100%; }
.ticker-row {
  display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px;
}
.ticker-item {
  display: flex; align-items: center; gap: 8px;
  background: var(--card); border-radius: 8px; padding: 8px 12px;
  font-size: 12px;
}
.t-sym { font-weight: 700; color: var(--text); }
.t-val { color: var(--text-sub); }
.t-chg { font-weight: 700; }

/* ── How ───────────────────────────────────────────────────────────── */
.how {
  padding: 120px 0;
  background: linear-gradient(to bottom, var(--bg), var(--surface), var(--bg));
}
.steps {
  display: flex; align-items: flex-start; gap: 0;
  max-width: 900px; margin: 0 auto;
}
.step {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 16px; padding: 0 20px;
}
.step-num {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--accent), #166534);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 900;
  box-shadow: 0 0 32px var(--accent-glow);
}
.step-content h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.step-content p { font-size: 14px; color: var(--text-sub); line-height: 1.65; }
.step-connector {
  flex: 0 0 80px; height: 1px; background: var(--border);
  margin-top: 32px; position: relative;
}
.step-connector::after {
  content: '→';
  position: absolute; top: -10px; right: -8px;
  color: var(--border); font-size: 14px;
}

/* ── Download ──────────────────────────────────────────────────────── */
.download {
  padding: 120px 0; position: relative; overflow: hidden;
}
.download-bg { position: absolute; inset: 0; pointer-events: none; }
.orb-dl1 { width: 500px; height: 500px; background: #15803D; bottom: -200px; left: -150px; opacity: .25; filter: blur(100px); }
.orb-dl2 { width: 350px; height: 350px; background: #166534; top: -100px; right: -100px; opacity: .2; filter: blur(80px); }
.download-inner {
  display: grid; grid-template-columns: 1fr auto;
  align-items: center; gap: 60px;
  background: rgba(255,255,255,.02);
  border: 1px solid var(--border);
  border-radius: 24px; padding: 60px;
  position: relative; z-index: 1;
  backdrop-filter: blur(10px);
}
.download-text h2 { font-size: clamp(32px,5vw,52px); font-weight: 900; line-height: 1.1; margin-bottom: 16px; }
.download-text p { font-size: 17px; color: var(--text-sub); line-height: 1.7; margin-bottom: 32px; max-width: 480px; }
.download-badges { display: flex; gap: 12px; flex-wrap: wrap; }
.store-badge {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
  border-radius: 14px; padding: 14px 20px;
  transition: all .2s;
}
.store-badge:hover { background: rgba(255,255,255,.1); border-color: var(--accent); }
.store-badge-disabled { cursor: default; opacity: .6; }
.store-badge-disabled:hover { background: rgba(255,255,255,.06); border-color: var(--border); }
.store-sub { display: block; font-size: 10px; color: var(--text-muted); font-weight: 500; }
.store-name { display: block; font-size: 16px; font-weight: 700; }
.download-qr { flex-shrink: 0; }
.qr-placeholder {
  width: 140px; height: 140px;
  border: 2px dashed var(--border);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
}
.qr-inner {
  display: flex; flex-direction: column; align-items: center;
  gap: 6px; color: var(--text-muted); font-size: 12px; font-weight: 500;
}
.qr-grid {
  width: 48px; height: 48px;
  background:
    repeating-linear-gradient(0deg, var(--border-sub) 0, var(--border-sub) 6px, transparent 6px, transparent 12px),
    repeating-linear-gradient(90deg, var(--border-sub) 0, var(--border-sub) 6px, transparent 6px, transparent 12px);
  border-radius: 4px;
}

/* ── Footer ────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border-sub);
  padding: 64px 0 32px;
}
.footer-top {
  display: grid; grid-template-columns: 1fr 2fr;
  gap: 60px; margin-bottom: 48px;
}
.footer-brand .nav-logo { margin-bottom: 16px; }
.footer-brand p { font-size: 14px; color: var(--text-muted); line-height: 1.65; max-width: 280px; }
.footer-links { display: grid; grid-template-columns: repeat(3,1fr); gap: 40px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-sub); margin-bottom: 4px; }
.footer-col a { font-size: 14px; color: var(--text-muted); transition: color .2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border-sub);
  padding-top: 24px;
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  font-size: 13px; color: var(--text-muted);
}
.footer-disclaimer { max-width: 460px; line-height: 1.5; font-size: 12px; }

/* ── Legal page ────────────────────────────────────────────────────── */
.legal-hero {
  padding: 120px 24px 60px;
  text-align: center;
  border-bottom: 1px solid var(--border-sub);
}
.legal-hero h1 { font-size: clamp(32px,5vw,56px); font-weight: 900; margin-bottom: 12px; }
.legal-hero p { color: var(--text-sub); font-size: 16px; }
.legal-nav {
  position: sticky; top: 64px; z-index: 50;
  background: rgba(10,10,15,.9);
  border-bottom: 1px solid var(--border-sub);
  backdrop-filter: blur(16px);
  padding: 0 24px;
}
.legal-nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
}
.legal-nav-inner::-webkit-scrollbar { display: none; }
.legal-tab {
  flex-shrink: 0; padding: 14px 18px;
  font-size: 14px; font-weight: 600; color: var(--text-muted);
  border-bottom: 2px solid transparent;
  transition: all .2s; cursor: pointer;
}
.legal-tab.active, .legal-tab:hover { color: var(--text); border-bottom-color: var(--accent); }
.legal-body { max-width: 800px; margin: 0 auto; padding: 60px 24px 100px; }
.legal-section { display: none; }
.legal-section.active { display: block; }
.legal-section h2 {
  font-size: 28px; font-weight: 800; margin-bottom: 8px;
}
.legal-section .legal-date {
  font-size: 13px; color: var(--text-muted); margin-bottom: 32px;
  display: block;
}
.legal-section h3 {
  font-size: 17px; font-weight: 700; margin: 28px 0 10px;
  color: var(--text);
}
.legal-section p {
  font-size: 15px; color: var(--text-sub); line-height: 1.75; margin-bottom: 14px;
}
.legal-section ul {
  list-style: disc; padding-left: 20px;
  font-size: 15px; color: var(--text-sub); line-height: 1.75;
  margin-bottom: 14px;
}
.legal-section ul li { margin-bottom: 6px; }
.legal-section a { color: var(--accent); }
.legal-section a:hover { text-decoration: underline; }
.legal-highlight {
  background: rgba(34,197,94,.08);
  border: 1px solid rgba(34,197,94,.2);
  border-radius: 12px; padding: 16px 20px;
  margin: 20px 0; font-size: 14px; color: var(--text-sub); line-height: 1.65;
}
.legal-highlight strong { color: var(--text); }

/* ── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
  .feature-card-wide { grid-column: span 2; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }

  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-phone { display: none; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .badge { display: inline-flex; }

  .features { padding: 80px 0; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-card-wide { grid-column: span 1; }

  .steps { flex-direction: column; align-items: center; gap: 32px; }
  .step-connector { display: none; }

  .download-inner { grid-template-columns: 1fr; gap: 32px; padding: 36px 24px; }
  .download-qr { display: none; }

  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; }

  .legal-body { padding: 40px 20px 60px; }
}

@media (max-width: 480px) {
  .hero-stats { flex-wrap: wrap; gap: 12px; }
  .stat-divider { display: none; }
  .footer-links { grid-template-columns: 1fr; }
}

/* ── Animations / Reveals ──────────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ---- Documenti ----
   Griglia delle schede che portano ai testi legali (sezione #documenti).
   Stesse spaziature di .features: le due sezioni si alternano nella pagina e
   una differenza di padding si nota subito nello scorrimento. */
.documenti { padding: 120px 0; }
.doc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.doc-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--border-sub);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  transition: border-color .2s ease, transform .2s ease;
}
.doc-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.doc-card-title { font-size: 17px; font-weight: 700; }
.doc-card-desc { font-size: 14px; color: var(--text-sub); line-height: 1.55; }
.doc-nota {
  margin-top: 32px;
  text-align: center;
  color: var(--text-sub);
  font-size: 15px;
}
.doc-nota a { color: var(--accent); }

@media (max-width: 900px) {
  .doc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .documenti { padding: 80px 0; }
  .doc-grid { grid-template-columns: 1fr; }
}

/* ---- Modulo di segnalazione (segnala.html) ---- */
.modulo { display: flex; flex-direction: column; gap: 20px; }
.campo { display: flex; flex-direction: column; gap: 6px; }
.campo > span { font-weight: 600; font-size: 15px; }
.campo > small { color: var(--text-sub); font-size: 13px; line-height: 1.5; }
.campo input, .campo select, .campo textarea {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  width: 100%;
}
.campo textarea { resize: vertical; min-height: 120px; line-height: 1.55; }
.campo input:focus, .campo select:focus, .campo textarea:focus {
  outline: none; border-color: var(--accent);
}
.scelta { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.5; }
.scelta input { margin-top: 3px; width: 18px; height: 18px; flex-shrink: 0; }
.riga-doppia { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.esito {
  margin-top: 28px;
  padding: 20px 24px;
  border-radius: 14px;
  border: 1px solid var(--border-sub);
  background: var(--card);
  line-height: 1.6;
}
.esito-ok { border-color: var(--accent); }
.esito-errore { border-color: #EF4444; }
.esito .nota { color: var(--text-sub); font-size: 14px; }
/* Il codice è la ricevuta: deve essere leggibile e trascrivibile a mano, quindi
   monospaziato, grande e selezionabile. */
.esito .codice {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--accent);
  margin: 16px 0;
  user-select: all;
}

@media (max-width: 640px) {
  .riga-doppia { grid-template-columns: 1fr; }
}
