/* StoccAI · sito vetrina (stoccai.com).
   HTML e CSS statici, nessuna build. Valori presi dal design "StoccAI Sito";
   i token hanno gli stessi nomi di frontend/src/style.css. */

:root {
  --olive: #3D4A2A;
  --olive-deep: #2A3320;
  --olive-soft: #5A6B3F;
  --lime: #C6F24D;
  --paper: #FAF8F3;
  --bone: #F0EDE4;
  --ink: #0E0E0C;
  --ink-soft: #3A3A35;
  --ink-mute: #7A7A70;
  --line: #E3DFD2;
  --line-strong: #D9D4C4;
  --ground: #1A1D14;
  --ground-alt: #252A1C;
  --ok: #4d6132;
  --warn: #8a5a14;

  --font-head: 'Bricolage Grotesque', sans-serif;
  --font-display: Fraunces, Georgia, serif;
  --font-sans: Inter, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--olive); text-decoration: none; }
a:hover { color: var(--olive-deep); }
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }

.wrap { max-width: 1180px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.accent-lime { color: var(--lime); }
.accent-olive { color: var(--olive-soft); }
.lime-italic { color: var(--lime); font-style: italic; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 30;
  background: var(--olive); color: var(--paper);
  padding: 10px 14px; border-radius: 10px; font-size: 14px; font-weight: 600;
}
.skip-link:focus, .skip-link:hover { top: 12px; color: var(--paper); }

/* ---------- Bottoni ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; border-radius: 12px;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-olive { background: var(--olive); color: var(--paper); }
.btn-olive:hover { background: var(--olive-deep); color: var(--paper); }
.btn-lime { background: var(--lime); color: var(--olive-deep); }
.btn-lime:hover { background: #FFFFFF; color: var(--olive-deep); }
.btn-ghost { color: var(--paper); font-weight: 600; border: 1.5px solid rgba(250,248,243,0.3); }
.btn-ghost:hover { border-color: var(--lime); color: var(--lime); }

.btn-sm { font-size: 14px; padding: 10px 16px; border-radius: 10px; }
.btn-md { font-size: 16px; padding: 15px 24px; }
.btn-md.btn-ghost { padding: 15px 22px; }
.btn-lg { font-size: 17px; padding: 16px 28px; }
.btn-lg.btn-ghost { padding: 16px 24px; }

/* ---------- Logo (simbolo + logotipo + payoff) ----------
   Il payoff e' largo quanto il logotipo e il simbolo e' alto quanto i due
   testi insieme. Nel design lo calcolava uno script dopo il caricamento dei
   font; qui i valori sono fissi, misurati nel browser con la stessa formula:
     --pf (corpo payoff) = 100 * larghezza logotipo / (larghezza payoff a 100px - 16)
     --mk (lato simbolo) = (fondo payoff - cima logotipo) * 48 / 40.5
   Bricolage ha l'asse opsz, quindi non sono proporzionali a --wm: se cambi
   il corpo del logotipo vanno rimisurati. */

.brand {
  --wm: 40px;
  --pf: 8.231px;
  --mk: 65.94px;
  display: flex; align-items: center; gap: 13px; flex-shrink: 0;
}
.brand-mark {
  display: block; flex-shrink: 0;
  width: var(--mk); height: var(--mk);
  /* il tratto del simbolo parte a 3.75/48 dal bordo: lo riallineo ai testi */
  margin: calc(var(--mk) * -0.078125) 0;
}
.brand-text { display: flex; flex-direction: column; align-items: flex-start; gap: calc(var(--pf) * 0.9); }
.wordmark {
  font-family: var(--font-head); font-weight: 700; font-size: var(--wm);
  letter-spacing: -0.033em; line-height: 1; color: var(--ink); white-space: nowrap;
}
.wordmark .ai {
  display: inline-block; background: var(--lime); color: var(--olive-deep);
  line-height: 0.72; padding: 0.13em 0.1em; margin-left: 0.05em; border-radius: 0.16em;
}
.payoff {
  display: block; font-family: var(--font-sans); font-weight: 600; font-size: var(--pf);
  letter-spacing: 0.16em; text-transform: uppercase; line-height: 1;
  color: var(--ink-soft); white-space: nowrap;
  margin-right: -0.16em; /* annulla la spaziatura dopo l'ultima lettera */
}

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(250,248,243,0.88);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-bar { padding-top: 14px; padding-bottom: 14px; display: flex; align-items: center; gap: 24px; }
.main-nav {
  flex: 1; min-width: 0; height: 20px;
  display: flex; justify-content: center; gap: 28px;
  font-size: 14px; font-weight: 500; white-space: nowrap;
}
.main-nav a { color: var(--ink-soft); }
.main-nav a:hover { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; margin-left: auto; }
.login-link { font-size: 14px; font-weight: 600; color: var(--olive); padding: 10px 12px; border-radius: 10px; }
.login-link:hover { color: var(--olive); background: rgba(61,74,42,0.06); }

/* ---------- Hero ---------- */

.hero {
  background: var(--olive); color: var(--paper);
  border-bottom-left-radius: 40px; border-bottom-right-radius: 40px;
  overflow: hidden;
}
.hero-grid {
  padding-top: 72px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 48px; align-items: end;
}
.hero-copy { display: flex; flex-direction: column; gap: 26px; padding-bottom: 80px; }
.pill {
  margin: 0; display: inline-flex; align-self: flex-start; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(198,242,77,0.16); color: var(--lime); font-size: 12px; font-weight: 600;
}
.hero .pill { letter-spacing: 0.3px; }
.pill-dot { width: 6px; height: 6px; border-radius: 99px; background: var(--lime); }
.hero-title {
  margin: 0; font-family: var(--font-head); font-weight: 700;
  font-size: clamp(44px, 6.2vw, 80px); line-height: 0.98; letter-spacing: -0.04em; text-wrap: balance;
}
.hero-lead {
  margin: 0; max-width: 520px;
  font-size: clamp(17px, 1.6vw, 20px); line-height: 1.5; color: rgba(250,248,243,0.78); text-wrap: pretty;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin: 0; font-size: 13px; color: rgba(250,248,243,0.6); }
.hero-visual { display: flex; justify-content: center; }

/* ---------- Telefoni (illustrazioni dell'app) ---------- */

.phone {
  width: 320px; max-width: 100%;
  border: 10px solid var(--ink); border-radius: 48px;
  background: var(--paper); color: var(--ink); overflow: hidden;
}
.phone--hero {
  position: relative; height: 600px;
  border-bottom: none; border-radius: 48px 48px 0 0;
  box-shadow: 0 30px 80px rgba(0,0,0,0.35);
}
.phone--ddt { height: 560px; box-shadow: 0 30px 60px rgba(42,51,32,0.22); }
.phone--shop { height: 560px; box-shadow: 0 30px 60px rgba(0,0,0,0.4); }

.app-top {
  background: var(--olive); color: var(--paper);
  padding: 14px 16px 22px;
  border-bottom-left-radius: 26px; border-bottom-right-radius: 26px;
}
.phone--ddt .app-top { padding: 14px 18px 16px; border-bottom-left-radius: 18px; border-bottom-right-radius: 18px; }
.phone--shop .app-top { padding-bottom: 20px; }
.status {
  display: flex; justify-content: space-between;
  font-size: 11px; font-weight: 600; margin-bottom: 14px; padding: 0 6px;
}
.phone--ddt .status { padding: 0 4px; }
.notch { width: 70px; height: 18px; background: var(--ink); border-radius: 99px; margin-top: -4px; }

.app-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.app-logo { display: inline-flex; align-items: center; gap: 8px; }
.app-wordmark { font-family: var(--font-head); font-weight: 700; font-size: 19px; letter-spacing: -0.6px; line-height: 1; }
.app-wordmark .ai {
  display: inline-block; background: var(--lime); color: var(--olive-deep);
  line-height: 0.72; padding: 0.13em 0.1em; margin-left: 1px; border-radius: 4px;
}
.app-actions { display: flex; gap: 6px; }
.app-icon {
  width: 32px; height: 32px; border-radius: 10px; background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
}
.app-sub { font-size: 12px; color: rgba(250,248,243,0.6); letter-spacing: 0.3px; margin-bottom: 6px; }
.app-count { font-family: var(--font-display); font-weight: 600; font-size: 32px; letter-spacing: -0.8px; line-height: 1.1; }

.app-body { padding: 14px 14px 0; display: flex; flex-direction: column; gap: 12px; }
.promo {
  position: relative; overflow: hidden; display: flex; gap: 10px;
  padding: 14px; border-radius: 18px; color: var(--paper);
  background: linear-gradient(135deg, var(--olive) 0%, var(--olive-deep) 100%);
  box-shadow: 0 6px 18px rgba(61,74,42,0.25);
}
.promo-icon {
  width: 34px; height: 34px; border-radius: 10px; background: var(--lime); color: var(--olive);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.promo-text { flex: 1; }
.promo-label { font-size: 10px; color: var(--lime); text-transform: uppercase; letter-spacing: 0.8px; font-weight: 600; margin-bottom: 2px; }
.promo-title { font-family: var(--font-display); font-size: 17px; font-weight: 600; line-height: 1.15; letter-spacing: -0.3px; }
.promo-arrow { flex-shrink: 0; margin-top: 4px; }
.scan-hint {
  display: flex; align-items: center; gap: 10px; padding: 11px 12px;
  background: #fff; border: 1.5px solid var(--line); border-radius: 14px;
}
.scan-hint-icon {
  width: 26px; height: 26px; border-radius: 8px; background: var(--olive); color: var(--lime);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.scan-hint-text { flex: 1; font-size: 12px; color: var(--ink-mute); }
.list-head { display: flex; align-items: center; justify-content: space-between; }
.list-title { font-family: var(--font-display); font-size: 17px; font-weight: 600; letter-spacing: -0.3px; }
.list-meta { font-family: var(--font-mono); font-size: 10px; color: var(--ink-mute); margin-top: 2px; }
.list-link { color: var(--olive); font-size: 12px; font-weight: 600; }

.scan-list { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.scan-row { display: flex; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.scan-list .scan-row:last-child { border-bottom: none; }
.thumb { display: block; width: 40px; height: 40px; border-radius: 10px; background: var(--bone); flex-shrink: 0; object-fit: cover; }
.row-info { flex: 1; min-width: 0; }
.row-codes { display: flex; gap: 6px; align-items: center; margin-bottom: 2px; }
.brand-tag {
  font-family: var(--font-mono); font-size: 10px; font-weight: 500; letter-spacing: 0.5px;
  background: var(--olive); color: var(--lime); padding: 2px 6px; border-radius: 4px;
}
.row-code { font-family: var(--font-mono); font-size: 10px; color: var(--ink-mute); }
.row-name { font-size: 12px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-qty { text-align: right; }
.qty { font-family: var(--font-display); font-weight: 600; font-size: 20px; line-height: 1; }
.qty-unit { font-family: var(--font-mono); font-size: 9px; color: var(--ink-mute); }

.tabbar {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: space-around;
  padding: 8px 4px 10px; background: #fff; border-top: 1px solid var(--line);
}
.tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  color: var(--ink-mute); font-size: 10px; font-weight: 500;
}
.tab.is-active { color: var(--olive); font-weight: 600; }
.tab-fab {
  width: 52px; height: 52px; margin-top: -22px; border-radius: 18px; flex-shrink: 0;
  background: var(--lime); color: var(--olive);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(61,74,42,0.35), 0 0 0 4px rgba(198,242,77,0.2);
}

/* ---------- Numeri ---------- */

.stats { padding-top: 56px; }
.stats-grid {
  margin: 0; padding: 0 0 48px; list-style: none;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 24px;
  border-bottom: 1px solid var(--line);
}
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat-value { font-family: var(--font-head); font-weight: 700; font-size: 44px; letter-spacing: -1.5px; line-height: 1; color: var(--olive); }
.stat-label { font-size: 15px; color: var(--ink-soft); line-height: 1.45; }

/* ---------- Sezioni ---------- */

.section { padding-top: 96px; padding-bottom: 96px; }
.section-intro { display: flex; flex-direction: column; gap: 14px; max-width: 720px; margin-bottom: 48px; }
.eyebrow {
  margin: 0; font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase; color: var(--olive-soft);
}
.section-title {
  margin: 0; font-family: var(--font-head); font-weight: 700;
  font-size: clamp(34px, 4.4vw, 56px); line-height: 1.02; letter-spacing: -0.035em; text-wrap: balance;
}
.section-lead { margin: 0; font-size: 18px; line-height: 1.5; color: var(--ink-soft); text-wrap: pretty; }

/* ---------- Come funziona ---------- */

.steps {
  margin: 0; padding: 0; list-style: none;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px;
}
.step {
  background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  display: flex; flex-direction: column;
}
.step-visual {
  height: 220px; padding: 20px; background: var(--bone);
  display: flex; align-items: center; justify-content: center;
}
.step-visual--dark { background: var(--ground); gap: 14px; }
.shot {
  position: relative; flex: 1; max-width: 120px; aspect-ratio: 3 / 4; overflow: hidden;
  display: flex; align-items: flex-end; justify-content: center;
  padding: 10px; border-radius: 12px; background: var(--ground-alt);
}
/* foto sotto, poi una sfumatura scura in basso per leggere l'etichetta,
   poi gli angoli del mirino e l'etichetta */
.shot-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shot::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(26,29,20,0.85) 0%, rgba(26,29,20,0) 45%);
}
.shot svg { position: absolute; inset: 0; z-index: 2; }
.shot-label { position: relative; z-index: 3; font-family: var(--font-mono); font-size: 10px; color: rgba(250,248,243,0.75); }
.shot--active .shot-label { color: var(--lime); }
.analysis {
  width: 100%; max-width: 280px; padding: 26px 20px; text-align: center;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
}
.spinner {
  width: 40px; height: 40px; margin: 0 auto; border-radius: 50%;
  border: 4px solid var(--line); border-top-color: var(--olive);
  animation: spin 1.1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.analysis-title { font-family: var(--font-display); font-weight: 600; font-size: 20px; letter-spacing: -0.3px; margin: 14px 0 6px; line-height: 1; }
.analysis-text { font-size: 12px; color: var(--ink-mute); line-height: 1.4; }
.result-card {
  width: 100%; max-width: 300px; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
}
.result-card .scan-row { gap: 12px; padding: 12px 14px; }
.result-card .thumb { width: 44px; height: 44px; }
.result-card .row-code { font-size: 11px; }
.result-card .row-name { font-size: 13px; white-space: normal; }
.result-card .qty { font-size: 22px; }
.result-card .qty-unit { font-size: 10px; }
.result-badges { display: flex; gap: 6px; padding: 10px 14px; align-items: center; }
.badge {
  font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: 0.4px;
}
.badge--ok { background: rgba(143,168,105,0.18); color: var(--ok); }
.badge--warn { background: rgba(232,154,43,0.18); color: var(--warn); }
.step-body { padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.step-num { font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--olive-soft); }
.step-body h3 { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: 26px; letter-spacing: -0.6px; }
.step-body p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-soft); text-wrap: pretty; }

/* ---------- DDT ---------- */

.ddt { background: var(--bone); }
.ddt-grid {
  padding-top: 96px; padding-bottom: 96px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 56px; align-items: center;
}
.ddt-visual { display: flex; justify-content: center; }
.ddt-copy { display: flex; flex-direction: column; gap: 22px; }
.ddt-bar { display: flex; align-items: center; justify-content: space-between; }
.ddt-back { color: var(--lime); font-size: 14px; }
.ddt-chip { background: rgba(255,255,255,0.14); font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 999px; }
.ddt-title { margin: 6px 0 2px; font-family: var(--font-display); font-weight: 600; font-size: 26px; letter-spacing: -0.6px; }
.ddt-sub { font-size: 12px; color: rgba(250,248,243,0.7); }
.ddt-body { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.ddt-switch { display: flex; gap: 10px; }
.ddt-switch > div { flex: 1; padding: 13px; border-radius: 12px; font-weight: 700; font-size: 14px; text-align: center; }
.ddt-in { background: rgba(143,168,105,0.2); color: var(--ok); }
.ddt-out { background: var(--olive); color: var(--lime); }
.ddt-item {
  display: flex; align-items: center; gap: 10px; padding: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
}
.ddt-dir {
  width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700;
}
.ddt-dir--out { background: rgba(232,154,43,0.16); color: var(--warn); }
.ddt-dir--in { background: rgba(143,168,105,0.2); color: var(--ok); }
.ddt-info { flex: 1; min-width: 0; }
.ddt-line { display: flex; align-items: center; gap: 6px; }
.ddt-num { font-size: 14px; }
.ddt-state {
  font-size: 9px; text-transform: uppercase; font-weight: 700; padding: 1px 6px; border-radius: 999px;
  background: rgba(143,168,105,0.22); color: var(--ok);
}
.ddt-state--draft { background: var(--bone); color: var(--ink-mute); }
.ddt-party { font-size: 12px; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ddt-meta { font-family: var(--font-mono); font-size: 10px; color: var(--ink-mute); margin-top: 2px; }
.ddt-date { font-family: var(--font-mono); font-size: 10px; color: var(--ink-mute); align-self: flex-start; }

.feature-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; border-top: 1px solid var(--line-strong); }
.feature-list li { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line-strong); }
.feature-list p { margin: 0; font-size: 16px; line-height: 1.5; }
.feature-arrow { font-family: var(--font-mono); font-size: 12px; color: var(--olive-soft); padding-top: 3px; }

/* ---------- Shop ---------- */

.shop-card {
  background: var(--olive-deep); color: var(--paper);
  border-radius: 32px; padding: clamp(32px, 5vw, 64px); overflow: hidden;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 48px; align-items: center;
}
.shop-copy { display: flex; flex-direction: column; gap: 22px; }
.shop-lead { margin: 0; max-width: 480px; font-size: 18px; line-height: 1.5; color: rgba(250,248,243,0.75); text-wrap: pretty; }
.chips { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { font-size: 13px; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(250,248,243,0.2); }
.shop-visual { display: flex; justify-content: center; }
.shop-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.shop-back { font-size: 13px; font-weight: 500; }
.shop-live {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 99px;
  background: rgba(198,242,77,0.18); color: var(--lime); font-size: 11px; font-weight: 600;
}
.shop-live-dot { width: 6px; height: 6px; border-radius: 99px; background: var(--lime); box-shadow: 0 0 8px var(--lime); }
.shop-sub { font-size: 12px; color: rgba(250,248,243,0.6); }
.shop-title { font-family: var(--font-display); font-weight: 600; font-size: 28px; letter-spacing: -0.7px; line-height: 1.1; margin-top: 2px; }
.kpis { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; margin-top: 14px; }
.kpi { padding: 9px; border-radius: 12px; background: rgba(250,248,243,0.08); }
.kpi-label { font-size: 8px; opacity: 0.6; text-transform: uppercase; letter-spacing: 0.5px; }
.kpi-value { font-family: var(--font-display); font-weight: 600; font-size: 16px; margin-top: 2px; line-height: 1; }
.kpi-note { font-size: 9px; color: var(--lime); margin-top: 4px; }
.shop-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.ai-tip {
  display: flex; gap: 10px; padding: 11px;
  background: rgba(198,242,77,0.18); border: 1px dashed var(--olive); border-radius: 12px;
}
.ai-tip-icon {
  width: 24px; height: 24px; border-radius: 8px; background: var(--olive); color: var(--lime);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ai-tip-text { font-size: 11px; color: var(--ink-soft); line-height: 1.4; }
.ai-tip-cta { color: var(--olive); font-weight: 600; }
.listing { display: flex; gap: 10px; padding: 10px; background: #fff; border-radius: 14px; border: 1px solid var(--line); }
.listing-img {
  display: block; width: 52px; height: 52px; border-radius: 10px; flex-shrink: 0;
  background: var(--bone); border: 1px solid var(--line); object-fit: cover;
}
.listing .row-codes { margin-bottom: 3px; }
.listing .brand-tag { font-size: 9px; font-weight: 400; padding: 2px 5px; }
.listing-name { font-weight: 500; font-size: 12px; }
.listing-meta { font-family: var(--font-mono); font-size: 10px; color: var(--ink-mute); margin-top: 3px; }
.listing-price { text-align: right; }
.price { font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--olive); line-height: 1; }
.price-unit { font-family: var(--font-mono); font-size: 8px; color: var(--ink-mute); margin-top: 4px; }

/* ---------- Prezzi ---------- */

.pricing { padding-top: 40px; }
.pricing .section-intro { margin-bottom: 44px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 20px; }
.plan {
  background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 36px;
  display: flex; flex-direction: column; gap: 24px;
}
.plan--dark { background: var(--olive); color: var(--paper); border: none; }
.plan-head { display: flex; flex-direction: column; gap: 6px; }
.plan-kicker { margin: 0; font-size: 14px; font-weight: 600; color: var(--ink-mute); }
.plan--dark .plan-kicker { color: var(--lime); }
.plan-name { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: 30px; letter-spacing: -0.8px; }
.plan-price { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.plan-amount { font-family: var(--font-head); font-weight: 700; font-size: 56px; letter-spacing: -2px; line-height: 1; white-space: nowrap; }
.plan-unit { font-size: 15px; color: var(--ink-mute); }
.plan--dark .plan-unit { color: rgba(250,248,243,0.7); }
.plan-features { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: 15px; color: var(--ink-soft); }
.plan-features li { display: flex; gap: 10px; }
.check { color: var(--olive-soft); font-weight: 700; }
.plan-text { margin: 0; font-size: 15px; line-height: 1.5; color: rgba(250,248,243,0.78); }
.tiers { margin: 0; display: flex; flex-direction: column; border-top: 1px solid rgba(250,248,243,0.18); font-size: 15px; }
.tier { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid rgba(250,248,243,0.18); }
.tier dd { margin: 0; font-family: var(--font-mono); color: var(--lime); }
.plan-cta { margin-top: auto; font-size: 16px; padding: 15px; }

/* ---------- FAQ ---------- */

.faq { border-top: 1px solid var(--line); }
.faq-grid { padding-top: 96px; padding-bottom: 96px; display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.faq-intro { flex: 1 1 280px; display: flex; flex-direction: column; gap: 14px; }
.faq-intro .section-title { text-wrap: wrap; }
.faq-list { flex: 2 1 520px; min-width: 0; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 0; font-size: 18px; font-weight: 600;
}
.faq-plus { font-size: 24px; font-weight: 400; color: var(--olive-soft); transition: transform .2s; }
.faq-item[open] .faq-plus { transform: rotate(45deg); }
.faq-item p { margin: 0 0 22px; max-width: 640px; font-size: 16px; line-height: 1.6; color: var(--ink-soft); }

/* ---------- Invito finale ---------- */

.cta { padding: 0 24px 24px; }
.cta-box {
  max-width: 1180px; margin: 0 auto;
  background: var(--olive); color: var(--paper); border-radius: 32px;
  padding: clamp(40px, 7vw, 96px) clamp(24px, 5vw, 64px);
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 26px;
}
.cta-title {
  margin: 0; max-width: 820px; font-family: var(--font-head); font-weight: 700;
  font-size: clamp(36px, 5.4vw, 68px); line-height: 1; letter-spacing: -0.04em; text-wrap: balance;
}
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- Footer ---------- */

.site-footer {
  padding-top: 32px; padding-bottom: 48px;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.brand--footer { --wm: 44px; --pf: 9.007px; --mk: 72.42px; gap: 10px; }
.copyright { font-size: 13px; color: var(--ink-mute); margin-left: 16px; }
.footer-links { display: flex; gap: 24px; font-size: 14px; }
.footer-links a { color: var(--ink-soft); }
.footer-links a:hover { color: var(--ink); }

/* ---------- Ancore e movimento ---------- */

/* #prezzi e #prova hanno poco margine sopra: senza questo finirebbero sotto l'header */
#prezzi, #prova { scroll-margin-top: 88px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .spinner { animation: none; }
}

/* ---------- Schermi stretti ----------
   Il design e' pensato per desktop: qui solo cio' che serve perche' su
   telefono niente esca dallo schermo. */

@media (max-width: 880px) {
  .main-nav { display: none; }
}

@media (max-width: 935px) {
  /* hero su una colonna: il telefono segue subito il testo */
  .hero-copy { padding-bottom: 0; }
}

@media (max-width: 560px) {
  .section, .ddt-grid, .faq-grid { padding-top: 72px; padding-bottom: 72px; }
  .pricing { padding-top: 24px; }

  /* Header: logo senza payoff (variante "orizzontale" del brand kit, dove il
     simbolo e' alto quanto il riquadro di "AI") e bottoni piu' compatti. */
  .header-bar { gap: 8px; }
  .site-header .brand { --wm: 26px; --mk: calc(var(--wm) * 0.98 * 48 / 40.5); gap: 8px; }
  .site-header .payoff { display: none; }
  .login-link { font-size: 13px; padding: 8px; }
  .header-actions .btn-sm { font-size: 13px; padding: 9px 12px; }

  /* footer: il copyright va sotto il logo */
  .footer-brand { flex-wrap: wrap; row-gap: 12px; }
  .copyright { flex-basis: 100%; margin-left: 0; }

  /* I telefoni sono larghi 320px: quando lo spazio non basta li rimpicciolisco
     in blocco con zoom, invece di schiacciarne il contenuto. */
  .shop-card { padding: 32px 20px; }
  .shop-visual .phone { zoom: 0.9; }
}

@media (max-width: 375px) {
  .shop-visual .phone { zoom: 0.84; }
  .hero-visual .phone, .ddt-visual .phone { zoom: 0.95; }
}

@media (max-width: 374px) {
  .site-header .brand { --wm: 24px; }
}

@media (max-width: 356px) {
  .shop-visual .phone { zoom: 0.72; }
  .hero-visual .phone, .ddt-visual .phone { zoom: 0.84; }
}

@media (max-width: 350px) {
  .login-link { display: none; }
}
