/* Martinella — sito. Tema chiaro, caratteri di sistema, nessuna risorsa esterna. */
:root {
  --bg: #fbfbfd;
  --surface: #ffffff;
  --soft: #f5f5f7;
  --ink: #1d1d1f;
  --ink2: #6e6e73;
  --line: #e3e3e8;
  --accent: #f4581c;
  --accent-dark: #d9480f;
  --accent-soft: #ffe9df;
  --radius: 28px;
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 3px; border-radius: 8px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 251, 253, .78);
  -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-in { max-width: var(--max); margin: 0 auto; padding: 0 22px; height: 54px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 600; letter-spacing: -.01em; }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 14px; color: var(--ink2); }
.nav-links a:hover { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.lang { display: flex; background: var(--soft); border-radius: 999px; padding: 3px; }
.lang button {
  border: 0; background: transparent; font: inherit; font-size: 12px; font-weight: 600; color: var(--ink2);
  padding: 4px 10px; border-radius: 999px; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  background: var(--accent); color: #fff; font-weight: 600; font-size: 17px;
  padding: 13px 26px; border-radius: 999px; transition: background .2s, transform .2s;
}
.btn:hover { background: var(--accent-dark); }
.btn:active { transform: scale(.97); }
.btn-small { font-size: 13px; padding: 7px 15px; }
.btn-big { font-size: 18px; padding: 16px 34px; width: 100%; max-width: 320px; }
.btn-price:not(:empty)::before { content: "· "; opacity: .7; }
.btn.is-soon { background: var(--soft); color: var(--ink2); pointer-events: none; }
.link { color: var(--accent-dark); font-weight: 500; }
.link::after { content: " ›"; }
.link:hover { text-decoration: underline; }

/* ---------- hero ---------- */
.hero { text-align: center; padding: 84px 22px 36px; max-width: 900px; margin: 0 auto; }
.eyebrow { color: var(--accent-dark); font-weight: 600; font-size: 17px; margin-bottom: 12px; }
h1 { font-size: clamp(52px, 10vw, 104px); line-height: 1.02; letter-spacing: -.045em; font-weight: 700; }
.lead { font-size: clamp(19px, 2.3vw, 24px); line-height: 1.38; color: var(--ink2); max-width: 680px; margin: 24px auto 0; letter-spacing: -.012em; text-wrap: balance; }
.cta { display: flex; gap: 26px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 34px; }
.fine { font-size: 13px; color: var(--ink2); margin-top: 18px; }

/* ---------- stage (wheel) ---------- */
.stage-wrap { max-width: var(--max); margin: 28px auto 0; padding: 0 22px; display: grid; grid-template-columns: 1.25fr .75fr; gap: 44px; align-items: center; }
.stage {
  position: relative; overflow: hidden; overflow: clip; border-radius: 36px; min-height: 560px;
  background: linear-gradient(135deg, #dbeaf8, #fbe6d8);
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 34px 18px 26px;
  box-shadow: 0 30px 70px -40px rgba(60, 40, 20, .35);
}
.blob { position: absolute; border-radius: 50%; filter: blur(46px); opacity: .75; animation: drift 22s ease-in-out infinite alternate; }
.b1 { width: 340px; height: 340px; background: #ff9a62; left: -60px; top: -80px; }
.b2 { width: 300px; height: 300px; background: #7cc4ff; right: -40px; top: 60px; animation-duration: 27s; }
.b3 { width: 280px; height: 280px; background: #c2a3ff; left: 22%; bottom: -120px; animation-duration: 31s; }
.b4 { width: 220px; height: 220px; background: #ffd966; right: 14%; bottom: -70px; animation-duration: 25s; }
@keyframes drift { to { transform: translate(40px, 30px) scale(1.12); } }

.files { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 6px; max-width: 100%; }
.files button {
  border: 1px solid rgba(255,255,255,.85); background: rgba(255,255,255,.5); color: #33414f; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 550; padding: 7px 13px; border-radius: 11px;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: background .2s, box-shadow .2s;
}
.files button:hover { background: rgba(255,255,255,.8); }
.files button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 6px 16px -8px rgba(40,30,20,.45); }

.wheel-box { position: relative; width: min(100%, 440px); z-index: 1; }
#wheel { width: 100%; height: auto; display: block; overflow: visible; }
.petal { cursor: pointer; outline: none; transform-box: view-box; transform-origin: 200px 200px; animation: bloom .5s cubic-bezier(.2, 1.3, .4, 1) both; }
.petal .shape { transition: transform .22s cubic-bezier(.2, .9, .3, 1.2); }
.petal .shape { filter: url(#fSoft); }
.petal path { fill: url(#gPetal); stroke: url(#gPetal); stroke-width: 12; stroke-linejoin: round; transition: fill .15s; }
.petal text { font-size: 14.5px; font-weight: 550; fill: #2a2118; pointer-events: none; letter-spacing: -.01em; }
.petal.hot .shape { transform: translate(var(--dx), var(--dy)); }
.petal.hot path { fill: url(#gHot); stroke: url(#gHot); }
.petal:focus-visible path { stroke: var(--accent); }
@keyframes bloom { from { opacity: 0; transform: scale(.55) rotate(-18deg); } }
#coreTitle { font-size: 17px; font-weight: 700; fill: #2a2118; letter-spacing: -.02em; }
#coreSub { font-size: 10.5px; fill: #8a6f5c; }

.groups {
  position: relative; z-index: 1; margin-top: 10px; max-width: 100%; display: flex; gap: 5px; flex-wrap: wrap; justify-content: center;
  background: rgba(255,255,255,.62); border: 1px solid rgba(255,255,255,.85); padding: 6px; border-radius: 999px;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 10px 30px -14px rgba(60,40,20,.35);
}
.groups button {
  border: 0; font: inherit; font-size: 13.5px; font-weight: 550; cursor: pointer; color: #3b3027;
  background: rgba(255,255,255,.55); padding: 7px 15px; border-radius: 999px; transition: background .2s, color .2s;
}
.groups button:hover { background: #fff; }
.groups button[aria-selected="true"] { background: var(--accent); color: #fff; }

.toast {
  position: relative; z-index: 2; margin-top: 12px; width: min(290px, calc(100% - 24px));
  background: rgba(255,255,255,.86); border: 1px solid #fff; border-radius: 16px; padding: 12px 14px 11px;
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 18px 40px -18px rgba(40,30,20,.45);
  transform: translateY(24px); opacity: 0; pointer-events: none; transition: transform .35s cubic-bezier(.2,.9,.3,1.1), opacity .3s;
}
.toast.show { transform: none; opacity: 1; }
.toast-row { display: flex; flex-direction: column; gap: 1px; font-size: 13px; }
.toast-row span { color: var(--ink2); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toast-bar { height: 4px; border-radius: 4px; background: #eee6df; margin-top: 9px; overflow: hidden; }
.toast-bar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 4px; }
.toast.done .toast-bar i { background: #34c759; }

.explain-kicker { color: var(--accent-dark); font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.explain-title { font-size: clamp(34px, 4vw, 48px); line-height: 1.06; letter-spacing: -.035em; font-weight: 700; }
.explain-text { color: var(--ink2); font-size: 19px; line-height: 1.42; margin-top: 14px; min-height: 5.7em; }
.hint { font-size: 13px; color: var(--ink2); margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }

/* ---------- sections ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: 120px 22px 0; text-align: center; }
.section.narrow { max-width: 780px; }
.h2 { font-size: clamp(38px, 6vw, 64px); line-height: 1.05; letter-spacing: -.04em; font-weight: 700; text-wrap: balance; }

.sub { font-size: clamp(18px, 2vw, 21px); line-height: 1.4; color: var(--ink2); max-width: 660px; margin: 20px auto 0; text-wrap: balance; }
.glass { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 52px; }
.glass figure { margin: 0; }
.glass figure.big { grid-column: span 2; }
.glass img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: 0 30px 60px -40px rgba(60, 40, 20, .4); }
.glass figure.big img { max-width: 634px; margin: 0 auto; border-radius: 36px; }
.glass figcaption { font-size: 14px; color: var(--ink2); margin-top: 14px; }
.glass figcaption b { color: var(--ink); font-weight: 650; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; text-align: left; }
.steps article { background: var(--surface); border-radius: var(--radius); padding: 34px 30px 36px; border: 1px solid var(--line); }
.num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark); font-weight: 700; margin-bottom: 22px; }
h3 { font-size: 22px; letter-spacing: -.02em; line-height: 1.2; font-weight: 650; }
.steps p, .card p, .grid3 p { color: var(--ink2); margin-top: 9px; font-size: 16px; }

.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; text-align: left; }
.card { background: var(--soft); border-radius: var(--radius); padding: 34px 30px 30px; display: flex; flex-direction: column; transition: transform .35s cubic-bezier(.2,.8,.3,1), box-shadow .35s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -30px rgba(0,0,0,.3); }
.card.wide { grid-column: span 2; }
.card h3 { font-size: 26px; }
.card p { max-width: 54ch; }
.chips { list-style: none; padding: 0; margin: auto 0 0; padding-top: 24px; display: flex; flex-wrap: wrap; gap: 7px; }
.chips li { font-size: 12.5px; font-weight: 600; color: #48484d; background: var(--surface); border-radius: 999px; padding: 5px 12px; border: 1px solid var(--line); }
.card-ico { width: 46px; height: 46px; border-radius: 14px; margin-bottom: 22px; background: var(--c, var(--accent)); position: relative; box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 8px 18px -8px var(--c, var(--accent)); }
.card-ico::after { content: ""; position: absolute; inset: 0; background: #fff; -webkit-mask: var(--m) center / 24px no-repeat; mask: var(--m) center / 24px no-repeat; }
.i-video { --c: #f4581c; --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5.5v13l11-6.5z'/%3E%3C/svg%3E"); }
.i-crop  { --c: #ff8a00; --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M7 2v15h15M2 7h15v15'/%3E%3C/svg%3E"); }
.i-audio { --c: #af52de; --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M4 10v4M8 6v12M12 3v18M16 7v10M20 10v4'/%3E%3C/svg%3E"); }
.i-photo { --c: #30a46c; --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 19l6-8 4 5 3-3 5 6z'/%3E%3Ccircle cx='16.5' cy='7' r='2.5'/%3E%3C/svg%3E"); }
.i-pdf   { --c: #e5484d; --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.3' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M6 2.5h8l4.5 4.5v14.5H6zM9.5 12h5M9.5 16h5'/%3E%3C/svg%3E"); }
.i-subs  { --c: #0a84ff; --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='5' width='19' height='14' rx='3'/%3E%3Cpath d='M6.5 14.5h4M13.5 14.5h4'/%3E%3C/svg%3E"); }
.i-files { --c: #8e8e93; --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2.5 6.5a2 2 0 0 1 2-2h5l2 2.5h8a2 2 0 0 1 2 2V18a2 2 0 0 1-2 2h-15a2 2 0 0 1-2-2z'/%3E%3C/svg%3E"); }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 46px 40px; margin-top: 60px; text-align: left; }
.grid3 article { border-top: 1px solid var(--line); padding-top: 22px; }
.grid3 em { font-style: normal; color: var(--ink); font-weight: 500; }

/* ---------- pro band ---------- */
.band { background: var(--soft); margin-top: 120px; padding: 110px 22px; text-align: center; }
.band-in { max-width: var(--max); margin: 0 auto; }
.pro { display: grid; grid-template-columns: repeat(4, 1fr); gap: 44px 32px; margin-top: 60px; text-align: left; }
.pro b { display: block; font-size: 25px; letter-spacing: -.03em; line-height: 1.15; background: linear-gradient(90deg, var(--accent), #ff9a52); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pro span { display: block; color: var(--ink2); margin-top: 8px; font-size: 16px; }

/* ---------- price ---------- */
.price-card { max-width: 460px; margin: 52px auto 0; background: var(--surface); border: 1px solid var(--line); border-radius: 34px; padding: 44px 36px 36px; display: flex; flex-direction: column; align-items: center; box-shadow: 0 40px 80px -50px rgba(244, 88, 28, .45); }
.price-card h3 { margin-top: 14px; font-size: 24px; }
.price { font-size: 72px; font-weight: 700; letter-spacing: -.05em; line-height: 1.1; margin-top: 6px; }
.price-note { color: var(--ink2); font-size: 15px; }
.ticks { list-style: none; padding: 0; margin: 28px 0 30px; text-align: left; display: grid; gap: 11px; font-size: 16px; }
.ticks li { padding-left: 30px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 19px; height: 19px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23d9480f' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 10.5l3 3 6-7'/%3E%3C/svg%3E") center / 15px no-repeat; }

/* ---------- faq ---------- */
.faq { margin-top: 44px; text-align: left; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-size: 19px; font-weight: 600; letter-spacing: -.015em; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--ink2); border-bottom: 2px solid var(--ink2); transform: translateY(-70%) rotate(45deg); transition: transform .25s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq p { color: var(--ink2); padding: 0 40px 24px 0; }

/* ---------- contact form ---------- */
.form { margin-top: 40px; text-align: left; display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 7px; font-size: 14px; font-weight: 600; }
.form input, .form textarea {
  font: inherit; font-weight: 400; color: var(--ink); background: var(--surface); width: 100%;
  border: 1px solid #d2d2d7; border-radius: 14px; padding: 13px 15px; transition: border-color .2s, box-shadow .2s;
}
.form textarea { resize: vertical; min-height: 140px; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.form .btn { border: 0; cursor: pointer; font-family: inherit; justify-self: start; min-width: 160px; }
.form .btn:disabled { opacity: .55; cursor: default; }
.form .fine { margin-top: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 15px; min-height: 1.5em; color: var(--ink2); }
.form-status.ok { color: #1f8a45; font-weight: 600; }
.form-status.err { color: #c9302c; font-weight: 600; }
.link-plain { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 680px) { .form-row { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.foot { margin-top: 130px; border-top: 1px solid var(--line); background: var(--soft); }
.foot-in { max-width: var(--max); margin: 0 auto; padding: 34px 22px 44px; display: grid; gap: 16px; font-size: 13px; color: var(--ink2); }
.foot-brand { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); font-size: 15px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot-links a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- legal page ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 70px 22px 0; }
.legal h1 { font-size: clamp(38px, 6vw, 56px); }
.legal h2 { font-size: 28px; letter-spacing: -.025em; margin: 64px 0 14px; scroll-margin-top: 80px; }
.legal p, .legal li { color: #3a3a3f; margin-top: 12px; }
.legal a { color: var(--accent-dark); text-decoration: underline; }
.legal .todo { background: #fff4d6; border-radius: 6px; padding: 1px 6px; color: #7a5200; font-weight: 500; }
.legal .draft { background: var(--accent-soft); border-radius: 16px; padding: 16px 20px; margin-top: 26px; color: #6b2b0c; font-size: 15px; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .stage-wrap { grid-template-columns: 1fr; gap: 30px; }
  .explain { text-align: center; }
  .explain-text { min-height: 4.4em; }
  .bento, .steps, .grid3, .pro { grid-template-columns: repeat(2, 1fr); }
  .card.wide { grid-column: span 2; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .nav-right { margin-left: auto; }
  .nav-in { padding: 0 16px; gap: 12px; }
  .hero { padding: 56px 16px 26px; }
  .stage-wrap, .section { padding-left: 16px; padding-right: 16px; }
  .section { padding-top: 88px; }
  .stage { min-height: 0; border-radius: 28px; padding: 22px 8px 18px; }
  .files button { padding: 6px 10px; font-size: 12.5px; }
  .groups { border-radius: 22px; }
  .groups button { padding: 7px 11px; font-size: 13px; }
  .bento, .steps, .grid3, .pro, .glass { grid-template-columns: 1fr; }
  .glass figure.big { grid-column: auto; }
  .glass figure.big img { border-radius: var(--radius); }
  .card.wide { grid-column: auto; }
  .grid3, .pro { gap: 30px; }
  .band { margin-top: 88px; padding: 80px 16px; }
  .price { font-size: 60px; }
  .price-card { padding: 36px 22px 28px; }
  .explain-text { min-height: 6em; font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .blob, .petal { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
