/* Colori del marchio: indaco #2f2b5b e rosa #ed93d3 */
:root {
  --ink: #1f1c3d;
  --ink-2: #34305a;
  --muted: #625e7c;
  --bg: #faf8fc;
  --surface: #ffffff;
  --soft: #f4e9f4;
  --primary: #2f2b5b;
  --primary-dark: #221f45;
  --accent: #ed93d3;
  --accent-ink: #a83f8c;
  --accent-soft: #fbe8f5;
  --line: rgba(47, 43, 91, .12);
  --head: 'Fraunces', Georgia, serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 20px;
  --shadow: 0 30px 70px -35px rgba(47, 43, 91, .5);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.65 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); font-weight: 600; line-height: 1.08; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); }
h3 { font-size: 1.35rem; letter-spacing: -0.01em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
section[id] { scroll-margin-top: 80px; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.section { padding: clamp(72px, 10vw, 120px) 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); }
.head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 56px); }
.head h2 { margin: 14px 0 16px; }
.head p { color: var(--muted); font-size: 1.1rem; }
.center { text-align: center; margin-inline: auto; }
.hl { background: linear-gradient(transparent 62%, var(--accent) 62%, var(--accent) 92%, transparent 92%); padding: 0 .08em; }

/* Bottoni */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 999px; padding: 14px 24px; font: 700 16px/1.2 var(--body); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 14px 30px -14px rgba(47, 43, 91, .9); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--primary); }
.btn-lg { padding: 18px 30px; font-size: 17px; }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-block { width: 100%; }

/* Navigazione */
.nav { position: sticky; top: 0; z-index: 40; background: rgba(47, 43, 91, .97); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 70px; }
.logo { display: flex; align-items: center; text-decoration: none; flex: none; }
.logo img { height: 38px; width: auto; }
.nav-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: #d4d0ec; font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: #fff; }
.nav .btn-primary { background: var(--accent); color: var(--ink); box-shadow: none; }
.nav .btn-primary:hover { background: #f3afdf; }
@media (max-width: 860px) { .nav-links { display: none; } }

/* Hero */
.hero { padding: clamp(48px, 7vw, 88px) 0 clamp(64px, 8vw, 100px); position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; width: 720px; height: 720px; right: -260px; top: -320px; border-radius: 50%; background: radial-gradient(circle, var(--soft), transparent 68%); z-index: -1; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 5vw, 64px); align-items: center; }
.hero h1 { margin: 18px 0 22px; }
.hero-lead { font-size: clamp(1.08rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 540px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-micro { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 22px; font-size: 14px; color: var(--muted); }
.hero-micro span::before { content: '\2713'; color: var(--accent-ink); font-weight: 800; margin-right: 6px; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.browser { background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden; position: relative; }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #f3f1f7; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #dcd8e8; }
.browser-bar span { margin-left: 10px; font-size: 12px; color: var(--muted); background: #fff; border-radius: 999px; padding: 3px 12px; flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
/* Miniatura del sito: l'iframe è ingrandito di 1/--s e poi rimpicciolito, così riempie sempre la scheda
   senza allargare la colonna (è fuori dal flusso, in posizione assoluta). */
.browser-view { position: relative; height: 430px; overflow: hidden; --s: .44; }
.browser-view iframe { position: absolute; top: 0; left: 0; width: calc(100% / var(--s)); height: calc(100% / var(--s)); border: 0; transform: scale(var(--s)); transform-origin: 0 0; pointer-events: none; }
@media (max-width: 900px) { .browser-view { height: 380px; --s: .34; } }
.badge-time { position: absolute; left: -14px; bottom: 26px; background: var(--primary); color: #fff; border-radius: 14px; padding: 12px 16px; font-size: 13px; box-shadow: var(--shadow); }
.badge-time strong { display: block; font: 600 20px/1.2 var(--head); color: var(--accent); }
@media (max-width: 900px) { .badge-time { left: 12px; } }

/* Passi */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; position: relative; }
.step-n { width: 44px; height: 44px; border-radius: 12px; background: var(--soft); color: var(--primary); display: grid; place-items: center; font: 700 20px/1 var(--head); margin-bottom: 18px; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15.5px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Perché */
.why { background: var(--primary-dark); color: #e6e3f5; }
.why .eyebrow { color: var(--accent); }
.why h2 { color: #fff; }
.why .head p { color: #bdb8db; }
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.why-item { border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius); padding: 28px; }
.why-item h3 { color: #fff; margin-bottom: 8px; }
.why-item p { color: #bdb8db; font-size: 15.5px; }
@media (max-width: 760px) { .why-grid { grid-template-columns: 1fr; } }

/* Piani */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 32px 28px; display: flex; flex-direction: column; position: relative; }
.plan-hot { border: 2px solid var(--primary); box-shadow: var(--shadow); }
.plan-tag { position: absolute; top: -13px; left: 28px; background: var(--accent); color: var(--ink); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
.plan-kind { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); }
.plan h3 { font-size: 1.8rem; margin: 6px 0 10px; }
.plan-sum { color: var(--muted); font-size: 15px; min-height: 72px; }
.plan-price { margin: 20px 0 4px; font: 700 3rem/1 var(--head); letter-spacing: -0.03em; }
.plan-price small { font: 500 15px var(--body); color: var(--muted); letter-spacing: 0; }
.plan-renew { font-size: 13.5px; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 10px; flex: 1; }
.plan li { display: flex; gap: 10px; font-size: 15px; }
.plan li::before { content: '\2713'; color: var(--accent-ink); font-weight: 800; flex: none; }
.plans-note { text-align: center; margin-top: 26px; color: var(--muted); font-size: 14.5px; }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } .plan-sum { min-height: 0; } }

/* Esempi */
.examples { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.example { text-decoration: none; display: block; min-width: 0; }
.example .browser-view { height: 260px; --s: .28; }
.example p { margin-top: 14px; font-weight: 700; }
.example p span { display: block; font-weight: 400; color: var(--muted); font-size: 14.5px; }
.example:hover .browser { border-color: var(--primary); }
@media (max-width: 960px) { .examples { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-inline: auto; } .example .browser-view { --s: .38; } }

/* FAQ */
.faq { max-width: 820px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; position: relative; font: 600 1.15rem/1.35 var(--head); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); color: var(--primary); font: 400 1.6rem/1 var(--body); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 40px 22px 0; }

/* Banda finale */
.cta-band { background: var(--primary); color: #fff; border-radius: 28px; padding: clamp(36px, 6vw, 64px); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; max-width: 620px; }
.cta-band p { color: #d4d0ec; margin-top: 10px; }
.cta-band .btn { background: var(--accent); color: var(--ink); }
.cta-band .btn:hover { background: #f3afdf; }

/* Footer */
.footer { padding: 48px 0; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); margin-top: clamp(72px, 10vw, 120px); }
.footer-in { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer a { color: var(--muted); }

/* Pagine di servizio (grazie, privacy, condizioni, 404) */
.page { padding: clamp(48px, 7vw, 88px) 0; }
.prose { max-width: 760px; }
.prose h1 { margin-bottom: 18px; font-size: clamp(2.2rem, 5vw, 3.2rem); }
.prose h2 { font-size: 1.6rem; margin: 36px 0 10px; }
.prose p, .prose li { color: var(--ink-2); margin-bottom: 12px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(28px, 5vw, 44px); box-shadow: var(--shadow); }
.thanks { max-width: 620px; margin-inline: auto; text-align: center; }
.thanks h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin: 18px 0 14px; }
.thanks p { color: var(--muted); margin-bottom: 12px; }
.check-big { width: 64px; height: 64px; border-radius: 50%; background: var(--soft); color: var(--primary); display: grid; place-items: center; margin: 0 auto; font-size: 30px; font-weight: 800; }
.nf { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.nf-box { max-width: 460px; text-align: center; display: grid; gap: 16px; justify-items: center; }
.nf-brand { font: 700 22px var(--head); color: var(--primary); }
.nf-box p { color: var(--muted); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .btn:hover { transition: none; transform: none; } }
