/* Ecommatrix Labs — stile del sito.
   Gli inline style del design di Claude Design sono stati mantenuti nel markup;
   qui vivono solo gli stati (hover/focus), il layout responsive e le regole
   che un attributo inline non puo' esprimere. */

:root {
  --bg: #080B1F;
  --bg-2: #0C1029;
  --card: #131836;
  --card-2: #151A3B;
  --fg: #EEF1FF;
  --violet: #6C3BF4;
  --violet-light: #A98BFF;
  --cyan: #22D3EE;
  --line: rgba(226, 231, 255, 0.08);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: Manrope, system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--violet-light); text-decoration: none; }
a:hover { color: #C4B0FF; }
::selection { background: var(--violet); color: #fff; }

/* L'header e' sticky: senza questo le ancore finiscono sotto di esso */
section[id] { scroll-margin-top: 84px; }

/* Focus visibile per chi naviga da tastiera */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

/* ---------- stati hover, ex attributi style-hover ---------- */
.nav-link { color: rgba(226, 231, 255, 0.7); transition: color .18s ease; }
.nav-link:hover { color: var(--fg); }

.btn-ghost { color: var(--violet-light); transition: background .18s ease, color .18s ease; }
.btn-ghost:hover { background: var(--violet); color: #fff; }

.btn-primary { transition: background .18s ease; }
.btn-primary:hover { background: #8A63FF; }

.btn-outline { transition: border-color .18s ease; }
.btn-outline:hover { border-color: var(--fg); }

.card { transition: border-color .18s ease; }
.card:hover { border-color: rgba(108, 59, 244, 0.5); }

.footer-link { color: rgba(226, 231, 255, 0.62); transition: color .18s ease; }
.footer-link:hover { color: var(--violet-light); }

.field { transition: border-color .18s ease; }
.field:focus { border-color: var(--violet-light); }
.field::placeholder { color: rgba(226, 231, 255, 0.32); }

/* ---------- FAQ: accordion nativo, nessun JavaScript ---------- */
.faq-item { border-bottom: 1px solid rgba(226, 231, 255, 0.12); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 26px 4px;
  font-size: 19px; font-weight: 700; letter-spacing: -0.01em;
  transition: color .18s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--violet-light); }
.faq-item summary .sign {
  flex: 0 0 auto; font-size: 24px; font-weight: 400; color: var(--violet-light);
  line-height: 1; transition: transform .2s ease;
}
.faq-item[open] summary .sign { transform: rotate(45deg); }
.faq-answer { padding: 0 60px 30px 4px; display: flex; flex-direction: column; gap: 14px; }
.faq-answer p { margin: 0; font-size: 16px; line-height: 1.72; color: rgba(226, 231, 255, 0.7); }

/* ---------- form ---------- */
.honeypot {
  position: absolute; left: -9999px; width: 1px; height: 1px;
  overflow: hidden; opacity: 0; pointer-events: none;
}
.form-error {
  margin: 0; font-size: 14px; line-height: 1.5; color: #FF9A9A;
  font-weight: 500; letter-spacing: normal; text-transform: none;
}
button[disabled] { opacity: .6; cursor: progress; }

/* ---------- responsive: il design nasce desktop-only ---------- */
@media (max-width: 900px) {
  .grid-2 { grid-template-columns: minmax(0, 1fr) !important; gap: 48px !important; }
  .intro-media { grid-template-rows: 180px 180px !important; }
  .hero { min-height: auto !important; padding: 88px 6vw 72px !important; }
  section { padding-top: 72px !important; padding-bottom: 72px !important; }
  .faq-answer { padding-right: 4px; }
}

@media (max-width: 720px) {
  .hdr { flex-wrap: wrap; gap: 14px !important; padding: 14px 6vw !important; }
  .hdr-nav { gap: 18px !important; width: 100%; justify-content: space-between; }
  .hdr-nav .nav-link { font-size: 12px !important; }
  .hdr-nav .btn-ghost { padding: 9px 14px !important; }
  .stats { grid-template-columns: repeat(3, 1fr) !important; gap: 12px !important; }
  .faq-item summary { font-size: 17px; }
  .footer-bottom { flex-direction: column; gap: 8px !important; }
}
