/* ===========================================================
   UGC Video — ugcvideo.it
   Stylesheet unico, mobile-first, ottimizzato performance/SEO.
   Nessun framework, font di sistema, zero render-blocking esterni.
   =========================================================== */

:root {
  --ink: #16131f;
  --ink-soft: #4a4458;
  --muted: #6f6880;
  --line: #e7e3ef;
  --bg: #ffffff;
  --bg-soft: #f7f5fc;
  --primary: #6d28d9;        /* viola */
  --primary-dark: #5b21b6;
  --primary-soft: #f3eefe;
  --accent: #ff5a5f;         /* corallo */
  --accent-dark: #e8484d;
  --ok: #16a34a;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(45, 23, 92, .08);
  --shadow-lg: 0 24px 60px rgba(45, 23, 92, .14);
  --wrap: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.18; color: var(--ink); letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.28rem; font-weight: 700; }
p  { margin: 0 0 1.1em; color: var(--ink-soft); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }

.section { padding: 72px 0; }
.section--soft { background: var(--bg-soft); }
.section__lead { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section__lead p { font-size: 1.12rem; color: var(--muted); }

.eyebrow {
  display: inline-block; font-size: .82rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--primary); background: var(--primary-soft);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em; cursor: pointer;
  font-weight: 700; font-size: 1rem; padding: 14px 26px; border-radius: 999px;
  border: 2px solid transparent; transition: transform .15s ease, box-shadow .15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 8px 22px rgba(255,90,95,.35); }
.btn--primary:hover { background: var(--accent-dark); }
.btn--ghost { background: transparent; color: var(--primary); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--primary); background: var(--primary-soft); }
.btn--light { background: #fff; color: var(--primary); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.18rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand__mark {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; font-size: 1rem;
}
.brand__mark svg { width: 18px; height: 18px; }
.nav__links { display: flex; align-items: center; gap: 26px; }
.nav__links a { color: var(--ink-soft); font-weight: 600; font-size: .98rem; }
.nav__links a:hover { color: var(--primary); text-decoration: none; }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--bg-soft); }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 60% at 85% 10%, rgba(255,90,95,.18), transparent 60%),
    radial-gradient(55% 55% at 10% 90%, rgba(109,40,217,.16), transparent 60%);
  pointer-events: none;
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding: 84px 0; }
.hero h1 span { color: var(--primary); }
.hero p.lead { font-size: 1.22rem; color: var(--ink-soft); max-width: 540px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 22px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 22px; color: var(--muted); font-size: .92rem; font-weight: 600; }
.hero__trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero__trust svg { width: 18px; height: 18px; color: var(--ok); }

/* mockup phone in hero */
.hero__media { display: grid; place-items: center; }
.phone {
  width: 270px; aspect-ratio: 9/19; border-radius: 34px; background: #0e0a18;
  padding: 12px; box-shadow: var(--shadow-lg); position: relative; rotate: 4deg;
}
.phone__screen {
  width: 100%; height: 100%; border-radius: 24px; overflow: hidden; position: relative;
  background: linear-gradient(160deg, #6d28d9, #ff5a5f);
  display: grid; place-items: center; color: #fff; text-align: center;
}
.phone__play {
  width: 70px; height: 70px; border-radius: 50%; background: rgba(255,255,255,.92);
  display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.phone__play svg { width: 26px; height: 26px; color: var(--primary); margin-left: 4px; }
.phone__label { position: absolute; bottom: 18px; left: 16px; right: 16px; font-size: .8rem; font-weight: 600; opacity: .92; }
.phone__tag {
  position: absolute; top: 16px; left: 16px; background: rgba(0,0,0,.35); backdrop-filter: blur(4px);
  padding: 5px 11px; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .04em;
}

/* ---------- Stat strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; text-align: center; box-shadow: var(--shadow); }
.stat b { display: block; font-size: 2.1rem; font-weight: 800; color: var(--primary); letter-spacing: -.03em; }
.stat span { font-size: .95rem; color: var(--muted); }

/* ---------- Cards grid ---------- */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary); margin-bottom: 16px;
}
.card__icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; font-size: 1rem; color: var(--muted); }
.card--link { display: block; }
.card--link, .card--link:hover { text-decoration: none; }
.card--link h3 { color: var(--primary); }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step { position: relative; padding-top: 12px; }
.step::before {
  counter-increment: step; content: counter(step);
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; font-weight: 800;
  margin-bottom: 14px;
}
.step h3 { font-size: 1.12rem; }
.step p { font-size: .98rem; margin: 0; color: var(--muted); }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.price {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.price--featured { border-color: var(--primary); box-shadow: var(--shadow-lg); position: relative; }
.price--featured::after {
  content: "Più richiesto"; position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: .74rem; font-weight: 700; letter-spacing: .05em;
  padding: 5px 14px; border-radius: 999px;
}
.price h3 { font-size: 1.15rem; }
.price__amount { font-size: 2.4rem; font-weight: 800; color: var(--ink); letter-spacing: -.03em; margin: 6px 0 2px; }
.price__amount small { font-size: .95rem; font-weight: 600; color: var(--muted); }
.price ul { list-style: none; padding: 0; margin: 18px 0 24px; }
.price li { padding: 8px 0 8px 28px; position: relative; font-size: .98rem; color: var(--ink-soft); border-bottom: 1px solid var(--line); }
.price li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
.price .btn { margin-top: auto; justify-content: center; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary) 55%, var(--accent));
  color: #fff; border-radius: 24px; padding: 56px 40px; text-align: center; box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 600px; margin: 0 auto 26px; font-size: 1.1rem; }

/* ---------- Article (pillar) ---------- */
.article { max-width: 820px; margin: 0 auto; }
.breadcrumb { font-size: .88rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }
.article__meta { color: var(--muted); font-size: .92rem; margin-bottom: 30px; }
.article h2 { margin-top: 1.6em; padding-top: .2em; }
.article h3 { margin-top: 1.4em; }
.article ul, .article ol { color: var(--ink-soft); padding-left: 1.3em; }
.article li { margin-bottom: .5em; }
.article blockquote {
  margin: 1.5em 0; padding: 18px 24px; background: var(--primary-soft);
  border-left: 4px solid var(--primary); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 1.05rem; color: var(--ink);
}
.toc {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 28px; margin: 0 0 36px;
}
.toc strong { display: block; margin-bottom: 10px; font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.toc ol { margin: 0; padding-left: 1.2em; columns: 2; gap: 26px; }
.toc li { margin-bottom: 6px; }
.toc a { color: var(--ink-soft); font-weight: 600; }

.keyfact {
  display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 24px; margin: 28px 0; box-shadow: var(--shadow);
}
.keyfact svg { width: 26px; height: 26px; color: var(--accent); flex: 0 0 auto; margin-top: 3px; }
.keyfact p { margin: 0; font-size: 1rem; }

/* ---------- FAQ ---------- */
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 4px 22px; margin-bottom: 14px; box-shadow: var(--shadow);
}
.faq summary {
  cursor: pointer; font-weight: 700; font-size: 1.08rem; padding: 16px 0; list-style: none;
  display: flex; justify-content: space-between; gap: 16px; align-items: center; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--primary); font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 16px; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: #15101f; color: #cfc7df; padding: 56px 0 28px; }
.site-footer a { color: #cfc7df; }
.site-footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 36px; }
.footer__grid h4 { color: #fff; font-size: .92rem; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 14px; }
.footer__grid ul { list-style: none; padding: 0; margin: 0; }
.footer__grid li { margin-bottom: 9px; font-size: .95rem; }
.footer__brand p { color: #9990ab; font-size: .95rem; max-width: 280px; }
.footer__bottom { border-top: 1px solid #2a2238; padding-top: 22px; font-size: .85rem; color: #8a82a0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Page hero (sottopagine) ---------- */
.page-hero { background: var(--bg-soft); position: relative; overflow: hidden; padding: 64px 0 56px; }
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(50% 60% at 90% 0%, rgba(255,90,95,.14), transparent 60%),
              radial-gradient(50% 60% at 0% 100%, rgba(109,40,217,.14), transparent 60%);
  pointer-events: none;
}
.page-hero__inner { position: relative; max-width: 760px; }
.page-hero h1 { margin-bottom: .35em; }
.page-hero p { font-size: 1.18rem; color: var(--ink-soft); max-width: 620px; }
.page-hero .hero__cta { margin-top: 26px; }

/* ---------- Prose two-col ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split--text p { color: var(--ink-soft); }
.checklist { list-style: none; padding: 0; margin: 16px 0 0; }
.checklist li { padding: 9px 0 9px 30px; position: relative; color: var(--ink-soft); border-bottom: 1px solid var(--line); }
.checklist li:last-child { border-bottom: 0; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }

/* ---------- Form ---------- */
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; display: flex; flex-direction: column; }
.field label { font-weight: 600; font-size: .92rem; margin-bottom: 6px; color: var(--ink); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 1rem; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: #fff; color: var(--ink); transition: border-color .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.field textarea { resize: vertical; min-height: 120px; }
.form .btn { width: 100%; justify-content: center; margin-top: 6px; }
.form__note { font-size: .85rem; color: var(--muted); text-align: center; margin: 14px 0 0; }

@media (max-width: 640px) {
  .split { grid-template-columns: 1fr; gap: 28px; }
  .form__row { grid-template-columns: 1fr; }
  .form { padding: 24px; }
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-32 { margin-top: 32px; }
.hide-mobile { }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; padding: 56px 0; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero__cta, .hero__trust { justify-content: center; }
  .grid--3, .grid--2, .steps, .pricing, .stats { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .toc ol { columns: 1; }
}
/* Nav collapses to hamburger before links get cramped */
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .nav--open .nav__links {
    display: flex; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column;
    background: #fff; padding: 18px 22px; gap: 16px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
}

@media (max-width: 640px) {
  body { font-size: 17px; }
  .section { padding: 52px 0; }
  .grid--3, .grid--2, .steps, .pricing, .stats { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 24px; }
  .hero__inner { padding: 40px 0 48px; }
  .hero__media { margin-top: 8px; }
  .phone { width: 210px; rotate: 0deg; }
}
