/* ============================================================
   Elicandra — "Vendi il tuo orologio"
   Design system dedicato: maison di alta orologeria, non un form.
   Pagina self-contained (non usa assets/css/style.css).
   ============================================================ */

:root {
  --vo-avorio:      #F5F0E8;
  --vo-avorio-rgb:  245,240,232;
  --vo-verde:       #0E2A22;
  --vo-verde-rgb:   14,42,34;
  --vo-bronzo:      #B08D57;
  --vo-bronzo-rgb:  176,141,87;
  --vo-testo:       #1B1B1B;
  --vo-testo-2:     #6B665E;
  --vo-bianco:      #FFFFFF;

  --vo-font-serif: 'Cormorant Garamond', Georgia, serif;
  --vo-font-sans:  'Inter', sans-serif;

  --vo-radius-card:  24px;
  --vo-radius-input: 14px;
  --vo-radius-pill:  999px;

  --vo-shadow-soft: 0 20px 50px -20px rgba(14,42,34,0.25);
  --vo-shadow-card: 0 30px 70px -30px rgba(14,42,34,0.3);

  --vo-max: 1200px;
  --vo-gutter: 20px;

  --vo-transition: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

html:has(.vo-root) { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html:has(.vo-root) { scroll-behavior: auto; }
}

/* ----------------------------------------------------------
   RESET locale (pagina self-contained)
   ---------------------------------------------------------- */
.vo-root, .vo-root *, .vo-root *::before, .vo-root *::after {
  box-sizing: border-box;
}
.vo-root {
  margin: 0;
  font-family: var(--vo-font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--vo-testo);
  background: var(--vo-avorio);
  -webkit-font-smoothing: antialiased;
}
.vo-root img { display: block; max-width: 100%; height: auto; }
.vo-root a { color: inherit; text-decoration: none; }
.vo-root button { font-family: var(--vo-font-sans); cursor: pointer; }
.vo-root ul, .vo-root ol { margin: 0; padding: 0; list-style: none; }
.vo-root h1, .vo-root h2, .vo-root h3, .vo-root p { margin: 0; }

.vo-shell {
  max-width: var(--vo-max);
  margin: 0 auto;
  padding: 0 var(--vo-gutter);
}

.vo-eyebrow {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 12px;
  font-weight: 600;
  color: var(--vo-bronzo);
  margin-bottom: 16px;
}

.vo-h2 {
  font-family: var(--vo-font-serif);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--vo-testo);
  letter-spacing: 0.01em;
}
.vo-section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.vo-section-head .vo-eyebrow { text-align: center; }

.vo-hr {
  border: none;
  border-top: 1px solid rgba(var(--vo-bronzo-rgb), 0.35);
}

/* ----------------------------------------------------------
   BOTTONI
   ---------------------------------------------------------- */
.vo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 32px;
  border-radius: var(--vo-radius-pill);
  font-family: var(--vo-font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  transition: transform var(--vo-transition), background var(--vo-transition), color var(--vo-transition), border-color var(--vo-transition), box-shadow var(--vo-transition);
  white-space: nowrap;
}
.vo-btn:focus-visible {
  outline: 2px solid var(--vo-bronzo);
  outline-offset: 3px;
}

.vo-btn--primary {
  background: var(--vo-verde);
  color: var(--vo-avorio);
  box-shadow: var(--vo-shadow-soft);
}
.vo-btn--primary:hover { transform: translateY(-2px); background: #123a2d; }

.vo-btn--outline {
  background: transparent;
  border-color: rgba(var(--vo-verde-rgb), 0.3);
  color: var(--vo-verde);
}
.vo-btn--outline:hover { border-color: var(--vo-bronzo); color: var(--vo-bronzo); }

.vo-btn--on-dark {
  background: transparent;
  border-color: rgba(var(--vo-avorio-rgb), 0.4);
  color: var(--vo-avorio);
}
.vo-btn--on-dark:hover { border-color: var(--vo-bronzo); color: var(--vo-bronzo); }

.vo-btn--light {
  background: var(--vo-avorio);
  color: var(--vo-verde);
}
.vo-btn--light:hover { transform: translateY(-2px); background: var(--vo-bianco); }

.vo-btn--block { width: 100%; }
.vo-btn--sm { min-height: 44px; padding: 0 22px; font-size: 13px; }

/* ----------------------------------------------------------
   TOPBAR
   ---------------------------------------------------------- */
.vo-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(var(--vo-avorio-rgb), 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(var(--vo-bronzo-rgb), 0.25);
}
.vo-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.vo-topbar__wordmark {
  font-family: var(--vo-font-serif);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: 0.28em;
  color: var(--vo-verde);
}

/* ----------------------------------------------------------
   HERO
   ---------------------------------------------------------- */
.vo-hero {
  padding: 56px 0 72px;
}
.vo-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
.vo-hero__title {
  font-family: var(--vo-font-serif);
  font-weight: 600;
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  line-height: 1.08;
  color: var(--vo-testo);
  margin-bottom: 20px;
}
.vo-hero__subtitle {
  font-size: 1.15rem;
  color: var(--vo-testo-2);
  max-width: 460px;
  margin-bottom: 32px;
}
.vo-hero__ctas {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.vo-hero__media { position: relative; }
.vo-hero__image {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--vo-radius-card);
  background: linear-gradient(155deg, #1c3b30, var(--vo-verde) 60%);
  box-shadow: var(--vo-shadow-card);
}
.vo-hero__badge {
  position: absolute;
  left: 20px;
  bottom: -20px;
  background: var(--vo-avorio);
  border-radius: var(--vo-radius-input);
  box-shadow: var(--vo-shadow-soft);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--vo-verde);
  max-width: 240px;
}
.vo-hero__badge svg { flex-shrink: 0; color: var(--vo-bronzo); }

/* ----------------------------------------------------------
   TRUST STRIP
   ---------------------------------------------------------- */
.vo-trust { padding: 40px 0; border-top: 1px solid rgba(var(--vo-bronzo-rgb), 0.25); border-bottom: 1px solid rgba(var(--vo-bronzo-rgb), 0.25); }
.vo-trust__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
.vo-trust__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
}
.vo-trust__item + .vo-trust__item { border-top: 1px solid rgba(var(--vo-bronzo-rgb), 0.2); }
.vo-trust__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(var(--vo-bronzo-rgb), 0.4);
  color: var(--vo-bronzo);
}
.vo-trust__label { font-size: 0.95rem; font-weight: 500; color: var(--vo-testo); }

/* ----------------------------------------------------------
   STEP "COME FUNZIONA"
   ---------------------------------------------------------- */
.vo-howworks { padding: 88px 0; }
.vo-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  position: relative;
}
.vo-steps__item { text-align: center; padding: 0 12px; }
.vo-steps__num {
  font-family: var(--vo-font-serif);
  font-weight: 600;
  font-size: 3.2rem;
  color: var(--vo-bronzo);
  line-height: 1;
  margin-bottom: 12px;
}
.vo-steps__title {
  font-family: var(--vo-font-serif);
  font-weight: 600;
  font-size: 1.5rem;
  margin-bottom: 10px;
}
.vo-steps__text { font-size: 0.95rem; color: var(--vo-testo-2); max-width: 320px; margin: 0 auto; }

/* ----------------------------------------------------------
   FORM — sezione verde scuro, card avorio, multi-step
   ---------------------------------------------------------- */
.vo-form-band {
  background: var(--vo-verde);
  padding: 88px 0;
  scroll-margin-top: 24px;
}
.vo-form-band .vo-section-head .vo-h2,
.vo-form-band .vo-eyebrow { color: var(--vo-avorio); }
.vo-form-band .vo-section-head p { color: rgba(var(--vo-avorio-rgb), 0.75); }

.vo-form-card {
  background: var(--vo-avorio);
  border-radius: var(--vo-radius-card);
  box-shadow: var(--vo-shadow-card);
  padding: 40px 24px;
  max-width: 640px;
  margin: 0 auto;
}

/* Barra avanzamento */
.vo-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 36px;
}
.vo-progress__step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--vo-testo-2);
}
.vo-progress__dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(var(--vo-bronzo-rgb), 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--vo-font-serif);
  font-size: 13px;
  color: var(--vo-bronzo);
  transition: background var(--vo-transition), color var(--vo-transition), border-color var(--vo-transition);
}
.vo-progress__step.is-active .vo-progress__dot,
.vo-progress__step.is-done .vo-progress__dot {
  background: var(--vo-bronzo);
  color: var(--vo-avorio);
  border-color: var(--vo-bronzo);
}
.vo-progress__step.is-active { color: var(--vo-testo); }
.vo-progress__label { display: none; }
.vo-progress__line { width: 24px; height: 1px; background: rgba(var(--vo-bronzo-rgb), 0.35); }

.vo-step-panel { display: block; }
.vo-form.is-multistep .vo-step-panel { display: none; }
.vo-form.is-multistep .vo-step-panel.is-active { display: block; animation: voFadeIn 0.4s ease; }

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

.vo-step-title {
  font-family: var(--vo-font-serif);
  font-weight: 600;
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.vo-field { margin-bottom: 20px; display: flex; flex-direction: column; gap: 6px; }

.vo-field label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--vo-testo-2);
}

.vo-field input[type="text"],
.vo-field input[type="email"],
.vo-field input[type="tel"],
.vo-field select,
.vo-field textarea {
  font-family: var(--vo-font-sans);
  font-size: 1rem;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid rgba(var(--vo-bronzo-rgb), 0.4);
  border-radius: var(--vo-radius-input);
  background: var(--vo-bianco);
  color: var(--vo-testo);
  width: 100%;
  transition: border-color var(--vo-transition), box-shadow var(--vo-transition);
}
.vo-field textarea { min-height: 110px; resize: vertical; padding-top: 14px; }

.vo-field input:focus,
.vo-field select:focus,
.vo-field textarea:focus {
  outline: none;
  border-color: var(--vo-bronzo);
  box-shadow: 0 0 0 3px rgba(var(--vo-bronzo-rgb), 0.18);
}

.vo-field.is-invalid input,
.vo-field.is-invalid select,
.vo-field.is-invalid textarea { border-color: #b3261e; }
.vo-field__error {
  font-size: 12px;
  color: #b3261e;
  display: none;
}
.vo-field.is-invalid .vo-field__error { display: block; }

.vo-field--checkbox { flex-direction: row; align-items: flex-start; gap: 10px; }
.vo-field--checkbox label {
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
  font-size: 13px;
  color: var(--vo-testo);
}
.vo-field--checkbox input {
  margin-top: 3px;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  accent-color: var(--vo-verde);
}

/* Dropzone drag&drop */
.vo-dropzone {
  border: 1.5px dashed rgba(var(--vo-bronzo-rgb), 0.5);
  border-radius: var(--vo-radius-input);
  padding: 32px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--vo-transition), background var(--vo-transition);
  position: relative;
}
.vo-dropzone:hover,
.vo-dropzone.is-dragover {
  border-color: var(--vo-bronzo);
  background: rgba(var(--vo-bronzo-rgb), 0.06);
}
.vo-dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.vo-dropzone__icon { color: var(--vo-bronzo); margin-bottom: 10px; }
.vo-dropzone__text { font-size: 0.9rem; color: var(--vo-testo-2); }
.vo-dropzone__hint { font-size: 12px; color: var(--vo-testo-2); opacity: 0.8; margin-top: 4px; }

.vo-foto-error { display: block; color: #b3261e; font-size: 12px; margin-top: 8px; }

.vo-foto-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.vo-foto-preview__item {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: var(--vo-radius-input);
  overflow: hidden;
  border: 1px solid rgba(var(--vo-bronzo-rgb), 0.4);
  background: var(--vo-bianco);
}
.vo-foto-preview__item img { width: 100%; height: 100%; object-fit: cover; }
.vo-foto-preview__item span.vo-foto-preview__name {
  font-size: 9px;
  padding: 4px;
  display: block;
  color: var(--vo-testo-2);
  word-break: break-all;
}
.vo-foto-preview__remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(27,27,27,0.7);
  color: #fff;
  border: none;
  font-size: 13px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vo-form-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
}
.vo-form-nav .vo-btn { flex: 1; }
.vo-form-nav .vo-btn--only { flex: none; margin-left: auto; }

.vo-required-note { font-size: 12px; color: var(--vo-testo-2); margin-bottom: 16px; }

.vo-alert {
  padding: 14px 18px;
  border-radius: var(--vo-radius-input);
  font-size: 13px;
  margin-bottom: 24px;
}
.vo-alert--error { background: #fdecea; color: #b3261e; border: 1px solid #f3c2be; }

/* Honeypot — nascosto agli utenti, visibile ai bot che non leggono il CSS */
.vo-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ----------------------------------------------------------
   MARCHI
   ---------------------------------------------------------- */
.vo-brands { padding: 80px 0; text-align: center; }
.vo-brands__list {
  font-family: var(--vo-font-serif);
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  line-height: 2.4;
  color: var(--vo-testo);
  max-width: 760px;
  margin: 0 auto;
}
.vo-brands__intro { color: var(--vo-testo-2); margin-bottom: 24px; }
.vo-brands__note { margin-top: 28px; font-size: 13px; color: var(--vo-testo-2); }

/* ----------------------------------------------------------
   FAQ
   ---------------------------------------------------------- */
.vo-faq { padding: 80px 0; }
.vo-faq-wrap { max-width: 680px; margin: 0 auto; }
.vo-faq-wrap details {
  border-bottom: 1px solid rgba(var(--vo-bronzo-rgb), 0.3);
  padding: 20px 0;
}
.vo-faq-wrap summary {
  cursor: pointer;
  font-family: var(--vo-font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--vo-testo);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.vo-faq-wrap summary::-webkit-details-marker { display: none; }
.vo-faq-wrap summary::after {
  content: '+';
  font-family: var(--vo-font-sans);
  font-size: 1.4rem;
  color: var(--vo-bronzo);
  flex-shrink: 0;
}
.vo-faq-wrap details[open] summary::after { content: '\2212'; }
.vo-faq-wrap p { font-size: 0.95rem; color: var(--vo-testo-2); margin-top: 14px; line-height: 1.7; }

/* ----------------------------------------------------------
   CTA FINALE
   ---------------------------------------------------------- */
.vo-final-cta {
  background: var(--vo-verde);
  color: var(--vo-avorio);
  padding: 72px 0;
  text-align: center;
}
.vo-final-cta .vo-h2 { color: var(--vo-avorio); margin-bottom: 12px; }
.vo-final-cta p { color: rgba(var(--vo-avorio-rgb), 0.75); margin-bottom: 28px; }
.vo-final-cta__ctas { display: flex; flex-direction: column; gap: 14px; align-items: center; }

/* ----------------------------------------------------------
   FOOTER minimale
   ---------------------------------------------------------- */
.vo-footer {
  padding: 32px 0 calc(32px + env(safe-area-inset-bottom));
  text-align: center;
  font-size: 12px;
  color: var(--vo-testo-2);
}

/* ----------------------------------------------------------
   BARRA MOBILE FISSA
   ---------------------------------------------------------- */
.vo-mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  gap: 10px;
  padding: 10px var(--vo-gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(var(--vo-avorio-rgb), 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(var(--vo-bronzo-rgb), 0.3);
  box-shadow: 0 -10px 30px rgba(14,42,34,0.12);
}
.vo-mobile-bar .vo-btn { flex: 1; min-height: 48px; }

/* Spazio extra in fondo alla pagina su mobile per non coprire il footer */
.vo-has-mobile-bar { padding-bottom: 76px; }

/* ----------------------------------------------------------
   SCROLL REVEAL
   ---------------------------------------------------------- */
.vo-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.vo-reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .vo-reveal { opacity: 1; transform: none; transition: none; }
  .vo-root *, .vo-root *::before, .vo-root *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ----------------------------------------------------------
   RESPONSIVE — desktop ≥ 960px
   ---------------------------------------------------------- */
@media (min-width: 960px) {
  .vo-hero__grid { grid-template-columns: 1fr 1fr; gap: 64px; }
  .vo-hero__ctas { flex-direction: row; }
  .vo-hero { padding: 88px 0 120px; }

  .vo-trust__list { grid-template-columns: repeat(4, 1fr); }
  .vo-trust__item { flex-direction: column; text-align: center; gap: 12px; }
  .vo-trust__item + .vo-trust__item { border-top: none; border-left: 1px solid rgba(var(--vo-bronzo-rgb), 0.2); }

  .vo-steps { grid-template-columns: repeat(3, 1fr); }
  .vo-steps::before {
    content: '';
    position: absolute;
    top: 26px;
    left: 16%;
    right: 16%;
    height: 1px;
    background: rgba(var(--vo-bronzo-rgb), 0.35);
    z-index: 0;
  }
  .vo-steps__item { position: relative; z-index: 1; background: var(--vo-avorio); }

  .vo-form-card { padding: 56px; }

  .vo-progress__label { display: inline; }

  .vo-final-cta__ctas { flex-direction: row; justify-content: center; }

  .vo-mobile-bar { display: none; }
  .vo-has-mobile-bar { padding-bottom: 0; }
}

/* ----------------------------------------------------------
   PAGINA GRAZIE
   ---------------------------------------------------------- */
.vo-grazie {
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 0;
}
.vo-grazie__card {
  background: var(--vo-bianco);
  border-radius: var(--vo-radius-card);
  box-shadow: var(--vo-shadow-card);
  padding: 56px 32px;
  max-width: 480px;
  width: 100%;
  text-align: center;
}
.vo-grazie__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(var(--vo-bronzo-rgb), 0.5);
  color: var(--vo-bronzo);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}
.vo-grazie__card h1 {
  font-family: var(--vo-font-serif);
  font-weight: 600;
  font-size: 2rem;
  margin-bottom: 16px;
}
.vo-grazie__card p { color: var(--vo-testo-2); margin-bottom: 32px; line-height: 1.7; }
.vo-grazie__actions { display: flex; flex-direction: column; gap: 12px; }
.vo-grazie-band {
  background: var(--vo-verde);
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: center;
}
