/* Stilista.ai — sito pubblico. Stessa grafica dell'app: "lusso scuro" in stile cartoon
   (nero caldo, crema, un solo accento dorato, contorni spessi, angoli tondi, pulsanti a cuscino).
   Caratteri ospitati qui (font/, licenza SIL OFL): nessun collegamento a servizi esterni. */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(font/fraunces.woff2) format("woff2") }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 400 700; font-display: swap; src: url(font/fraunces-italic.woff2) format("woff2") }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(font/nunito.woff2) format("woff2") }

:root {
  --paper: #0c0c0d; --surface: #18171a; --surface2: #222125; --ink: #f3efe6; --muted: #a39e94; --line: #302d29;
  --edge: #403b34; --ledge: #8a6f3f; --drop: #000;
  --accent: #c9a96e; --accent-soft: rgba(201, 169, 110, .13); --on-accent: #15130f;
  --display: "Fraunces", Georgia, serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box }
html, body { margin: 0 }
html { scroll-behavior: smooth }
body { background: var(--paper); color: var(--ink); font: 500 17px/1.6 var(--body); -webkit-text-size-adjust: 100%; overflow-x: hidden }
a { color: var(--accent); text-underline-offset: 3px }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px }
h1, h2, h3, .logo, .num { font-family: var(--display); font-variation-settings: "SOFT" 100, "WONK" 1 }
h1 em, h2 em { color: var(--accent); font-style: italic }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; position: relative; z-index: 1 }

/* testata */
header.top { border-bottom: 2px solid var(--line); background: rgba(12, 12, 13, .86); backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 5 }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px }
.logo { font-weight: 700; font-size: 23px; color: var(--ink); text-decoration: none; white-space: nowrap }
.logo i { color: var(--accent); font-style: normal; display: inline-block; animation: twk 3s ease-in-out infinite }
nav.links { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end }
nav.links a { color: var(--muted); text-decoration: none; font-weight: 700; font-size: 14.5px; padding: 6px 10px; border-radius: 12px }
nav.links a:hover, nav.links a[aria-current] { color: var(--ink); background: var(--accent-soft) }
nav.links a.lang { border: 2px solid var(--edge) }

/* apertura */
.hero { padding: 64px 0 44px; display: grid; grid-template-columns: 1.25fr .75fr; gap: 32px; align-items: center }
.hero h1 { font-weight: 600; font-size: clamp(36px, 6.4vw, 64px); line-height: 1.04; letter-spacing: -.02em; margin: 0 0 18px }
.hero p.lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); max-width: 600px; margin: 0 0 26px }
.hero .art { justify-self: center; width: min(100%, 300px); aspect-ratio: 1; display: grid; place-items: center; background: var(--accent-soft);
  border: 2px solid var(--edge); border-radius: 46% 54% 42% 58% / 55% 45% 55% 45%; box-shadow: 0 8px 0 var(--drop); animation: wob 7s ease-in-out infinite }
.hero .art svg { width: 64%; height: 64%; overflow: visible }
.hero .art .doodle { all: unset; display: contents } .hero .art .doodle svg { width: 64%; height: 64% }
.badge { display: inline-block; font: 800 11.5px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--on-accent);
  background: var(--accent); padding: 7px 11px; border-radius: 10px; margin-bottom: 18px }
.cta { display: flex; gap: 12px; flex-wrap: wrap }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 12px 22px; border-radius: 18px;
  font: 800 16px/1 var(--body); text-decoration: none; background: var(--accent); color: var(--on-accent); border: 2px solid transparent;
  box-shadow: 0 4px 0 var(--ledge); transition: transform .08s, box-shadow .08s }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ledge) }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--edge); box-shadow: 0 4px 0 var(--drop) }
.btn.ghost:active { box-shadow: 0 1px 0 var(--drop) }

/* sezioni */
section { padding: 44px 0; border-top: 2px dashed var(--line) }
.shead { display: flex; align-items: center; gap: 14px; margin-bottom: 18px }
section h2, .doc h2.big { font-weight: 600; font-size: clamp(25px, 3.6vw, 34px); line-height: 1.15; margin: 0 }
.doodle { flex: 0 0 64px; height: 64px; display: grid; place-items: center; color: var(--ink); background: var(--accent-soft); border: 2px solid var(--edge);
  border-radius: 46% 54% 42% 58% / 55% 45% 55% 45%; box-shadow: 0 4px 0 var(--drop); animation: wob 6s ease-in-out infinite }
.doodle svg { width: 42px; height: 42px; overflow: visible }
.f { fill: var(--accent) } .k { fill: var(--ink) }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin-top: 8px }
.card { background: var(--surface); border: 2px solid var(--edge); border-radius: 28px; padding: 22px; box-shadow: 0 6px 0 var(--drop) }
.card h3 { margin: 0 0 6px; font-size: 20px; font-weight: 600 }
.card p { margin: 0; color: var(--muted); font-size: 15.5px }
.num { font-weight: 700; font-size: 34px; line-height: 1; color: var(--accent); display: block; margin-bottom: 10px }
a.card { display: block; text-decoration: none; color: inherit; transition: transform .12s, border-color .12s }
a.card:hover { border-color: var(--accent); transform: translateY(-2px) }
a.card .badge { margin-bottom: 12px }
.note { background: var(--accent-soft); border: 2px solid var(--edge); border-radius: 22px; padding: 18px 20px; font-size: 15.5px }
.note b { color: var(--accent) }
ul.plain { padding-left: 0; list-style: none; margin: 0 } ul.plain li { margin: 10px 0; padding-left: 28px; position: relative }
ul.plain li::before { content: "✦"; position: absolute; left: 2px; color: var(--accent) }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px }
.muted { color: var(--muted) }

/* pagine di testo (privacy, termini, guide…) */
.doc { padding: 44px 0 60px; max-width: 760px }
.doc h1 { font-weight: 600; font-size: clamp(32px, 5.4vw, 46px); line-height: 1.1; margin: 0 0 10px; letter-spacing: -.01em }
.doc h2 { font-family: var(--display); font-weight: 600; font-size: 23px; margin: 34px 0 8px }
.doc h3 { font-size: 18px; margin: 22px 0 6px }
.doc .meta { color: var(--muted); font-size: 14.5px }
.doc ul { padding-left: 22px } .doc li { margin: 5px 0 }
.todo { background: #4a3a14; color: #ffe2a3; padding: 1px 6px; border-radius: 6px; font-weight: 700 }

/* piede */
footer { border-top: 2px solid var(--line); padding: 28px 0 44px; color: var(--muted); font-size: 14.5px; position: relative; z-index: 1 }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 16px }
footer a { color: var(--muted) } footer a:hover { color: var(--ink) }

/* sfondo in movimento (come nell'app): disegnini dorati che salgono piano */
#bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden }
#bg span { position: absolute; top: 0; color: var(--accent); opacity: var(--o); animation: drift var(--d) linear var(--dl) infinite; will-change: transform }
#bg svg { width: 100%; height: 100%; display: block }
@keyframes drift { 0% { transform: translate3d(0, 105vh, 0) rotate(0deg) } 50% { transform: translate3d(var(--sw), 45vh, 0) rotate(calc(var(--r) / 2)) } 100% { transform: translate3d(0, -12vh, 0) rotate(var(--r)) } }
@keyframes wob { 0%, 100% { transform: rotate(-4deg) } 50% { transform: rotate(4deg) translateY(-3px) } }
@keyframes twk { 0%, 100% { transform: scale(1) rotate(0) } 50% { transform: scale(1.25) rotate(20deg) } }
@media (prefers-reduced-motion: reduce) {
  #bg span { animation: none; transform: translateY(var(--y)) }
  .doodle, .hero .art, .logo i { animation: none } .btn, a.card { transition: none } html { scroll-behavior: auto } }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding: 36px 0 30px; gap: 22px }
  .hero .art { order: -1; width: 150px } .two { grid-template-columns: 1fr }
  header.top .wrap { flex-direction: column; align-items: flex-start; padding-top: 10px; padding-bottom: 8px; gap: 6px }
  nav.links { justify-content: flex-start; margin-left: -10px } nav.links a { font-size: 14px; padding: 5px 9px }
  .doodle { flex-basis: 52px; height: 52px } .doodle svg { width: 34px; height: 34px }
}
