/*
 * Orderui — adattamento della landing (orderui.com)
 * sopra il template "Clearwave" (TemplateMo 622).
 *
 * Qui stanno solo le regole aggiuntive: colori, tipografia, spaziature e
 * componenti base restano quelli del template (templatemo-622-clearwave.css).
 */

/* ── LOGO ─────────────────────────────────────────────────────────── */
.nav-logo.brand-logo { display: inline-flex; align-items: center; }
.nav-logo.brand-logo img { height: 34px; width: auto; }
.footer-brand .brand-logo { margin-bottom: 16px; }
.footer-brand .brand-logo img { height: 42px; width: auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 2000;
  background: var(--accent); color: #fff; padding: 12px 20px;
  border-radius: 0 0 var(--radius) 0; font-size: 0.875rem; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ── SEZIONI GENERICHE ────────────────────────────────────────────── */
.section { padding: 100px 0; }
.section--surface {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-head { text-align: center; margin-bottom: 64px; }
.section-head .section-sub { margin: 16px auto 0; text-align: center; }
.section-note {
  max-width: 820px; margin: 40px auto 0; text-align: center;
  font-size: 0.875rem; line-height: 1.8; color: var(--text-3);
}
.section-note strong { color: var(--text-2); }

/* ── HERO ─────────────────────────────────────────────────────────── */
/* Titolo più corto di quello del template: l'italiano è più lungo
   dell'inglese, quindi la scala tipografica viene ridotta di un gradino. */
.hero-title { font-size: clamp(2rem, 3vw, 2.9rem); }
.hero-sub { max-width: 520px; }
.hero-shot {
  width: 100%; max-width: 560px;
  background: var(--surface-2);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: transform var(--silk-dur) var(--silk);
}
.hero-shot:hover { transform: scale(1.01); }
.hero-shot img { width: 100%; height: auto; display: block; }
.hero-note {
  margin-top: 24px; font-size: 0.8125rem; line-height: 1.7; color: var(--text-3);
}
.hero-note strong { color: var(--text-2); }

/* ── CAROSELLO: cornici orizzontali per gli screenshot ────────────── */
/* Il template ha un blocco CSS incompleto ("Reflection floor line") che
   annulla la regola dei comandi del carosello: qui la rimettiamo. */
.carousel-controls {
  display: flex; align-items: center; justify-content: center;
  gap: 24px; width: 100%; margin-top: 40px;
}
.phone-shell { border-radius: 20px; padding: 7px; }
.phone-screen {
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  background: var(--surface-2);
  display: flex; flex-direction: column;
}
.shot-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 10px; flex-shrink: 0;
  background: var(--bg-alt); border-bottom: 1px solid var(--border);
}
.shot-bar .db-dot { width: 8px; height: 8px; }
.phone-screen img {
  width: 100%; flex: 1; min-height: 0;
  object-fit: cover; object-position: left top;
}
.tablet-caption {
  margin-top: 16px; text-align: center;
  font-size: 0.8125rem; font-weight: 600; color: var(--text-2);
  transition: opacity 0.6s var(--silk);
}
.phone-card[data-pos="left2"] .tablet-caption,
.phone-card[data-pos="right2"] .tablet-caption { opacity: 0.55; }

/* ── CONFRONTO COSTI ──────────────────────────────────────────────── */
.savings-grid {
  display: grid; grid-template-columns: 1.4fr 1fr;
  gap: 28px; align-items: center;
}
.savings-table {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.savings-table-scroll { overflow-x: auto; }
.savings-table table {
  width: 100%; border-collapse: collapse; font-size: 0.875rem;
}
.savings-table caption {
  caption-side: top; text-align: left;
  font-size: 0.78rem; line-height: 1.7; color: var(--text-3);
  padding: 24px 28px 20px;
  border-bottom: 1px solid var(--border);
}
.savings-table th, .savings-table td {
  padding: 13px 14px; text-align: right; white-space: nowrap;
  border-bottom: 1px solid var(--border);
}
.savings-table thead th {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-3);
}
.savings-table tbody th {
  text-align: left; font-weight: 600; color: var(--text-1);
}
.savings-table td { color: var(--text-2); }
.savings-table .is-us {
  background: var(--accent-ghost); color: var(--accent); font-weight: 700;
}
.savings-table .savings-row th, .savings-table .savings-row td {
  border-bottom: none; font-weight: 600; color: var(--text-1);
}

.calculator {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 32px;
}
.calculator h3 {
  font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px;
}
.calculator-hint {
  font-size: 0.8125rem; line-height: 1.7; color: var(--text-3); margin-bottom: 24px;
}
.calculator label {
  display: block; font-size: 0.8125rem; font-weight: 600; color: var(--text-2);
  margin-bottom: 10px;
}
.calculator + * { margin-top: 0; }
.calc-field { margin-bottom: 22px; }
.range-row { display: flex; align-items: center; gap: 16px; }
.range-row input[type="range"] {
  -webkit-appearance: none; appearance: none;
  flex: 1; height: 6px; border-radius: 100px;
  background: var(--bg-alt); outline: none; cursor: pointer;
}
.range-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); border: 3px solid #fff;
  box-shadow: var(--shadow-sm); cursor: pointer;
}
.range-row input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent); border: 3px solid #fff; cursor: pointer;
}
.range-row input[type="number"] {
  width: 110px; padding: 10px 14px; font-family: inherit; font-size: 0.875rem;
  color: var(--text-1); background: var(--bg);
  border: 1px solid var(--border); border-radius: 100px;
}
.range-row input[type="number"]:focus,
.range-row input[type="range"]:focus-visible {
  outline: 2px solid var(--accent-light); outline-offset: 2px;
}
.range-row output {
  font-size: 0.8125rem; font-weight: 700; color: var(--accent);
  min-width: 96px; text-align: right;
}
.calculator-results {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 10px; margin: 4px 0 0;
}
.calculator-results > div {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px;
}
.calculator-results dt { font-size: 0.7rem; color: var(--text-3); margin-bottom: 4px; }
.calculator-results dd {
  font-size: 1.0625rem; font-weight: 700; color: var(--text-1); letter-spacing: -0.02em;
}
.calculator-results .is-highlight {
  background: var(--accent-ghost); border-color: var(--accent-border);
}
.calculator-results .is-highlight dt { color: var(--accent); }
.calculator-results .is-highlight dd { color: var(--accent); }
.calculator-note {
  margin-top: 20px; font-size: 0.8125rem; line-height: 1.7;
  color: var(--text-2); font-weight: 500;
}
.calculator-disclaimer {
  margin-top: 10px; font-size: 0.72rem; line-height: 1.7; color: var(--text-3);
}
.btn-block {
  display: block; width: 100%; margin-top: 24px; text-align: center;
  padding: 15px 24px; border-radius: 100px;
  font-size: 0.9375rem; font-weight: 600; color: #fff; background: var(--accent);
  box-shadow: 0 6px 24px rgba(26, 122, 110, 0.3);
  transition: background var(--silk-dur) var(--silk), transform var(--silk-dur) var(--silk);
}
.btn-block:hover { background: var(--accent-mid); transform: scale(1.01); }

/* ── FUNZIONI: schermate vere al posto dei mockup ─────────────────── */
.feature-visual--shot { padding: 0; background: var(--surface-2); aspect-ratio: 16 / 10; }
.shot-frame {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
}
.shot-frame img {
  width: 100%; flex: 1; min-height: 0;
  object-fit: cover; object-position: left top;
}
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; margin-top: 100px;
}
.feature-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform var(--silk-dur) var(--silk), box-shadow var(--silk-dur) var(--silk);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-card-media {
  aspect-ratio: 16 / 10; background: var(--bg-alt);
  border-bottom: 1px solid var(--border); display: flex;
}
.feature-card-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: left top;
}
.feature-card-body { padding: 24px; }
.feature-card-body h3 {
  font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px;
}
.feature-card-body p { font-size: 0.875rem; line-height: 1.75; color: var(--text-2); }

/* ── DEMO ─────────────────────────────────────────────────────────── */
.demo-band { padding: 20px 0 100px; }
.demo-panel {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-mid) 60%, var(--accent-light) 100%);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(26, 122, 110, 0.28);
  padding: 64px;
  display: grid; grid-template-columns: 1.5fr auto; gap: 56px; align-items: center;
  color: #fff;
}
.demo-panel::before {
  content: ''; position: absolute; top: -30%; right: -10%;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.18) 0%, transparent 70%);
  pointer-events: none;
}
.demo-text { position: relative; z-index: 1; }
.demo-panel h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700;
  letter-spacing: -0.03em; line-height: 1.2; color: #fff; margin-bottom: 16px;
}
.demo-panel h2 em { font-family: 'Playfair Display', serif; font-style: italic; }
.demo-panel p { font-size: 1rem; line-height: 1.75; color: rgba(255, 255, 255, 0.88); margin-bottom: 24px; }
.demo-panel p strong { color: #fff; }
.demo-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }
.demo-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.9rem; line-height: 1.6; color: rgba(255, 255, 255, 0.9);
}
.demo-list li::before {
  content: '✓'; flex-shrink: 0;
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.18); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; margin-top: 1px;
}
.demo-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-on-accent {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--accent);
  font-size: 0.9375rem; font-weight: 600;
  padding: 15px 32px; border-radius: 100px;
  box-shadow: 0 8px 28px rgba(13, 30, 28, 0.18);
  transition: transform var(--silk-dur) var(--silk);
}
.btn-on-accent:hover { transform: scale(1.02); }
.btn-on-accent-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid rgba(255, 255, 255, 0.55); color: #fff;
  font-size: 0.9375rem; font-weight: 500;
  padding: 13px 28px; border-radius: 100px;
  transition: background var(--silk-dur) var(--silk);
}
.btn-on-accent-ghost:hover { background: rgba(255, 255, 255, 0.14); }
.demo-qr {
  position: relative; z-index: 1;
  background: #fff; border-radius: var(--radius-lg);
  padding: 22px; text-align: center;
  box-shadow: 0 20px 48px rgba(13, 30, 28, 0.22);
}
.demo-qr img { width: 190px; height: 190px; margin: 0 auto; }
.demo-qr figcaption {
  margin-top: 12px; font-size: 0.78rem; line-height: 1.5; color: var(--text-2);
}
.demo-qr figcaption span { display: block; color: var(--accent); font-weight: 600; }

/* ── COME FUNZIONA ────────────────────────────────────────────────── */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 32px;
  transition: transform var(--silk-dur) var(--silk), box-shadow var(--silk-dur) var(--silk);
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step-number {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 700; margin-bottom: 20px;
}
.step-card h3 { font-size: 1.125rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }
.step-card p { font-size: 0.9rem; line-height: 1.75; color: var(--text-2); }

/* ── PER CHI È PENSATO ────────────────────────────────────────────── */
.audience-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.audience-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 26px 28px;
  font-size: 0.9375rem; line-height: 1.75; color: var(--text-2);
}
.audience-card strong {
  display: block; color: var(--text-1); font-size: 1rem;
  font-weight: 700; letter-spacing: -0.02em; margin-bottom: 6px;
}
.audience-grid > .audience-card:last-child:nth-child(odd) { grid-column: span 2; }

/* ── PREZZO ───────────────────────────────────────────────────────── */
.pricing-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 900px; margin: 0 auto;
}
.price-note { margin-top: 20px; font-size: 0.78rem; line-height: 1.7; color: var(--text-3); }
.pricing-card.featured .price-note { color: rgba(255, 255, 255, 0.5); }
.hosting-note {
  margin-top: 48px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
  background: var(--surface-2);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 32px 36px;
}
.hosting-note h3 { font-size: 1.125rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }
.hosting-note p { font-size: 0.9rem; line-height: 1.75; color: var(--text-2); max-width: 620px; }

/* ── BARRA AZIONI MOBILE ──────────────────────────────────────────── */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
  display: none; gap: 10px; padding: 12px 16px;
  background: rgba(244, 250, 250, 0.96);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  transition: transform 0.5s var(--silk);
}
.mobile-bar.is-hidden { transform: translateY(130%); }
.mobile-bar .btn {
  flex: 1; text-align: center; padding: 12px 16px; border-radius: 100px;
  font-size: 0.875rem; font-weight: 600;
}
.mobile-bar .btn-outline { border: 1.5px solid var(--accent-border); color: var(--accent); }
.mobile-bar .btn-primary { background: var(--accent); color: #fff; }

/* ── ADATTAMENTI RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 1024px) {
  .savings-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: 1fr; }
  .demo-panel { grid-template-columns: 1fr; padding: 48px 40px; gap: 40px; }
  .demo-qr { justify-self: start; }
}
@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 44px; }
  .feature-grid { grid-template-columns: 1fr; margin-top: 64px; }
  .audience-grid { grid-template-columns: 1fr; }
  .audience-grid > .audience-card:last-child:nth-child(odd) { grid-column: auto; }
  .pricing-grid--two { grid-template-columns: 1fr; }
  .calculator { padding: 24px; }
  .calculator-results { grid-template-columns: 1fr; }
  .demo-panel { padding: 40px 24px; }
  .demo-qr img { width: 160px; height: 160px; }
  .hosting-note { padding: 24px; }
  .mobile-bar { display: flex; }
  body { padding-bottom: 70px; }
  .nav-logo.brand-logo img { height: 28px; }
}
