/* Tema "quaderno": lo stesso del checkout e dell'area studenti del progetto Mappe Mentali
   (carta rigata, tratto scuro, ombra secca, titoli a mano). Font: stack di sistema; per usare
   Balsamiq Sans e Nunito autoospitali, aggiungi i file in /public/fonts e le regole @font-face. */
:root {
  --bg-main: #f1f5f9; --paper: #fdfbf7; --line: #cbd5e1; --ink: #1e293b; --edge: #334155; --muted: #64748b;
  --green: #047857; --green-soft: #d1fae5; --amber-soft: #fef3c7; --amber: #b45309; --rose-soft: #ffe4e6; --err: #be123c;
  --teal: #2bb3a3; --sun: #f2a93b; --coral: #ee6c6c; --violet: #7a6cf0;
  --shadow: 3px 3px 0 var(--edge);
  --hand: "Balsamiq Sans", "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  --body: Nunito, "Segoe UI", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--bg-main); font: 17px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--edge); }
[hidden] { display: none !important; }
h1, h2, h3, .hand { font-family: var(--hand); font-weight: 700; line-height: 1.15; margin: 0; }
.ico { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.wrap { max-width: 880px; margin: 0 auto; padding: 0 18px; }
section.block { padding: 44px 0; }
section.block.alt { background: #fff; border-top: 2px solid var(--edge); border-bottom: 2px solid var(--edge); }
h2.title { font-size: clamp(1.5rem, 5vw, 2rem); margin-bottom: 14px; }
.lead { font-size: 1.12rem; color: #475569; }
.micro { font-size: .86rem; color: var(--muted); }

/* ---- card e pulsanti ---- */
.card { background: var(--paper); border: 2px solid var(--edge); border-radius: 16px; padding: 22px; box-shadow: 4px 4px 0 var(--edge); }
.paper { background-image: linear-gradient(rgba(203, 213, 225, .5) 1px, transparent 1px); background-size: 100% 2rem; background-position: 0 1.6rem; }
/* ---- selettore di lingua ---- */
nav.langs .wrap { display: flex; gap: 8px; justify-content: flex-end; padding-top: 10px; }
nav.langs a { font: 700 .85rem var(--hand); color: var(--ink); text-decoration: none; padding: 2px 10px; border: 2px solid transparent; border-radius: 8px; }
nav.langs a:hover { border-color: var(--line); }
nav.langs a[aria-current] { border-color: var(--edge); background: #fff; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 26px; border: 2px solid var(--edge); border-radius: 14px; background: var(--green); color: #fff;
  font: 700 1.1rem var(--hand); text-decoration: none; cursor: pointer; box-shadow: 4px 4px 0 var(--edge); transition: transform .12s, box-shadow .12s; }
.btn:hover:not(:disabled) { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--edge); }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn.block { display: flex; width: 100%; }
.btn.alt { background: #fff; color: var(--ink); }
.pill { display: inline-block; background: var(--edge); color: #fff; font: 700 .72rem var(--hand); letter-spacing: .05em; text-transform: uppercase; padding: 3px 10px; border-radius: 8px; }

/* ---- hero ---- */
.hero { padding: 36px 0 44px; background: var(--paper); border-bottom: 2px solid var(--edge); background-image: linear-gradient(rgba(203, 213, 225, .45) 1px, transparent 1px); background-size: 100% 2rem; }
.hero h1 { font-size: clamp(2rem, 7.4vw, 3.2rem); margin: 14px 0 12px; }
.hero h1 em { font-style: normal; color: var(--green); }
.hero-grid { display: grid; gap: 28px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 820px) { .hero-grid { grid-template-columns: 1.1fr .9fr; } }
.hero-imgs { display: flex; gap: 10px; justify-content: center; }
.hero-imgs img { width: 48%; border: 2px solid var(--edge); border-radius: 10px; box-shadow: 4px 4px 0 var(--edge); background: #fff; }
.hero-imgs img:first-child { transform: rotate(-2.5deg); }
.hero-imgs img:last-child { transform: rotate(2.5deg) translateY(12px); }
.trust { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 16px; font-size: .88rem; font-weight: 700; color: #475569; }
.trust span { display: inline-flex; align-items: center; gap: 6px; }
.trust .ico { color: var(--green); }

/* ---- liste e griglie ---- */
ul.check { list-style: none; padding: 0; margin: 0; }
ul.check li { position: relative; padding-left: 34px; margin: 11px 0; }
ul.check li::before { content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--green); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7' fill='none' stroke='%23047857' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/15px no-repeat; }
.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 680px) { .grid.three { grid-template-columns: repeat(3, 1fr); } .grid.two { grid-template-columns: 1fr 1fr; } }
.num { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--edge); color: #fff; font: 700 1.5rem var(--hand); display: flex; align-items: center; justify-content: center; margin-bottom: 10px; box-shadow: 2px 2px 0 var(--edge); }
.week { border-left: 10px solid var(--teal); }
.shots { display: flex; gap: 14px; overflow-x: auto; padding: 8px 4px 18px; scroll-snap-type: x mandatory; }
.shots img { width: min(74%, 290px); flex: none; border: 2px solid var(--edge); border-radius: 10px; box-shadow: 4px 4px 0 var(--edge); background: #fff; scroll-snap-align: center; }
.notice { background: var(--amber-soft); border: 2px solid var(--edge); border-radius: 14px; padding: 14px 16px; font-size: .95rem; }

/* ---- prezzo ---- */
.price-card { text-align: center; }
.price-card .amt { font: 700 3.4rem var(--hand); color: var(--green); line-height: 1; margin: 8px 0 2px; }
.guarantee { display: flex; gap: 14px; align-items: flex-start; margin-top: 18px; padding: 16px; border: 2px solid var(--edge); border-radius: 14px; background: var(--green-soft); font-size: .92rem; text-align: left; }
.guarantee .ico { width: 34px; height: 34px; color: var(--green); stroke-width: 1.8; }
.guarantee strong { display: block; font-family: var(--hand); font-size: 1rem; }

/* ---- form ---- */
label.field { display: block; font-size: .85rem; font-weight: 800; margin: 16px 0 6px; }
input[type=text], input[type=email] { width: 100%; padding: 13px 14px; border: 2px solid var(--edge); border-radius: 12px; font: inherit; font-weight: 600; color: var(--ink); background: #fff; }
input:focus { outline: none; box-shadow: 3px 3px 0 var(--edge); }
.check-line { display: flex; gap: 10px; align-items: flex-start; font-size: .84rem; color: #475569; margin: 12px 0; }
.check-line input { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--green); }
.msg { margin: 12px 0 0; font-weight: 700; min-height: 1.3em; }
.msg.err, .error { color: var(--err); }
.msg.ok { color: var(--green); }
.error { font-size: .9rem; font-weight: 700; margin: 14px 0 0; min-height: 1.3em; }

/* ---- FAQ ---- */
details { background: #fff; border: 2px solid var(--edge); border-radius: 14px; padding: 14px 16px; margin: 10px 0; box-shadow: 3px 3px 0 var(--edge); }
summary { font: 700 1.02rem var(--hand); cursor: pointer; }
details p { margin: 10px 0 0; color: #475569; }

/* ---- footer ---- */
footer.site { background: #fff; border-top: 2px solid var(--edge); padding: 28px 0 90px; font-size: .88rem; color: #475569; }
footer.site a { color: var(--ink); font-weight: 700; }
@media (min-width: 900px) { footer.site { padding-bottom: 30px; } }

/* ---- barra fissa mobile ---- */
.sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--paper); border-top: 2px solid var(--edge); padding: 10px 14px; display: flex; align-items: center; gap: 12px; }
.sticky .t { flex: 1; font-size: .85rem; line-height: 1.2; }
.sticky .btn { padding: 11px 18px; font-size: 1rem; box-shadow: 3px 3px 0 var(--edge); }
@media (min-width: 900px) { .sticky { display: none; } }

/* ---- consenso cookie ---- */
#consent { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; max-width: 640px; margin: 0 auto; background: var(--paper); border: 2px solid var(--edge); border-radius: 16px; padding: 16px; box-shadow: 4px 4px 0 var(--edge); font-size: .9rem; }
#consent .row { display: flex; gap: 10px; margin-top: 12px; }
#consent button { flex: 1; padding: 12px; border: 2px solid var(--edge); border-radius: 12px; background: #fff; color: var(--ink); font: 700 .95rem var(--hand); cursor: pointer; box-shadow: 3px 3px 0 var(--edge); }
.sticky ~ #consent, body.has-sticky #consent { bottom: 76px; }

/* ---- checkout ---- */
.top { background: var(--paper); border-bottom: 2px solid var(--edge); }
.top-inner { max-width: 1040px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { color: var(--ink); font: 700 1.1rem var(--hand); text-decoration: none; line-height: 1.2; }
.brand small { display: block; font-family: var(--body); color: var(--muted); font-weight: 700; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
.secure { display: flex; align-items: center; gap: 8px; color: var(--green); font-weight: 800; font-size: .85rem; white-space: nowrap; }
.steps { max-width: 1040px; margin: 0 auto; padding: 18px 20px 0; display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: .82rem; font-weight: 700; }
.steps b { display: inline-flex; width: 24px; height: 24px; border: 2px solid var(--edge); border-radius: 50%; align-items: center; justify-content: center; background: var(--paper); color: var(--edge); font-size: .75rem; margin-right: 8px; }
.steps .on { color: var(--ink); }
.steps .on b { background: var(--edge); color: #fff; }
.steps .bar { flex: 1; height: 0; border-top: 2px dashed var(--line); max-width: 56px; }
.layout { max-width: 1040px; margin: 0 auto; padding: 20px 20px 56px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); grid-template-areas: "form top" "form more"; gap: 22px 28px; align-items: start; }
.form-col { grid-area: form; } .sum-top { grid-area: top; } .sum-more { grid-area: more; }
.layout h1 { font-size: 1.55rem; margin: 0 0 4px; }
.section-title { font: 700 1.05rem var(--hand); margin: 26px 0 10px; display: flex; align-items: center; gap: 8px; }
#payment-element { min-height: 120px; }
.skeleton { height: 120px; border-radius: 12px; background: linear-gradient(90deg, #f1f5f9, #e2e8f0, #f1f5f9); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.bump { display: flex; gap: 14px; align-items: flex-start; margin: 20px 0 0; padding: 16px; border: 2px dashed var(--edge); border-radius: 14px; background: var(--amber-soft); cursor: pointer; transition: background .15s; }
.bump:hover { background: #fde68a; }
.bump.on { border-style: solid; background: var(--green-soft); box-shadow: var(--shadow); }
.bump input { flex: none; width: 24px; height: 24px; margin: 3px 0 0; accent-color: var(--green); cursor: pointer; }
.bump strong { display: block; font: 700 1.05rem var(--hand); line-height: 1.3; }
.bump-text { display: block; color: #475569; font-size: .88rem; margin: 4px 0 8px; }
.bump-price b { color: var(--green); font-size: 1.15rem; font-weight: 800; }
.submit { width: 100%; margin-top: 16px; }
.spinner { width: 18px; height: 18px; border: 3px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.after-pay { text-align: center; color: var(--muted); font-size: .82rem; margin: 12px 0 0; }
.legal { color: var(--muted); font-size: .78rem; text-align: center; margin: 16px 0 0; }
.waiver { border: 2px solid var(--edge); border-radius: 12px; background: #fff; padding: 12px 14px; margin-top: 18px; }
.line { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; padding: 8px 0; font-size: .95rem; }
.line .name small { display: block; color: var(--muted); font-size: .8rem; }
.line .amt { white-space: nowrap; font-weight: 800; }
.line.total { border-top: 2px dashed var(--edge); margin-top: 8px; padding-top: 14px; font: 700 1.2rem var(--hand); }
.line.bump-line .amt { color: var(--green); }
.sum-hero { width: 100%; border: 2px solid var(--edge); border-radius: 12px; margin: 0 0 14px; background: var(--paper); }
.items { list-style: none; margin: 0 0 4px; padding: 0; }
.items li { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; font-size: .92rem; }
.items .tick { flex: none; width: 20px; height: 20px; border: 2px solid var(--green); border-radius: 50%; color: var(--green); display: flex; align-items: center; justify-content: center; margin-top: 2px; }
.items .tick .ico { width: 11px; height: 11px; stroke-width: 3.2; }
.seals { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.seals div { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 2px solid var(--line); border-radius: 12px; background: #fff; font-size: .78rem; font-weight: 700; color: #334155; line-height: 1.25; }
.seals .ico { width: 20px; height: 20px; color: var(--edge); }
@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; grid-template-areas: "top" "form" "more"; padding: 14px 14px 40px; gap: 16px; }
  .card { padding: 18px; } .sum-hero { display: none; }
  .steps { padding: 14px 14px 0; font-size: .74rem; gap: 6px; } .top-inner { padding: 12px 14px; }
}

/* ---- ringraziamento / materiali ---- */
.center-shell { max-width: 640px; margin: 0 auto; padding: 32px 16px 64px; }
.success-mark { width: 64px; height: 64px; border-radius: 50%; background: var(--green); color: #fff; border: 3px solid var(--edge); box-shadow: 3px 3px 0 var(--edge); display: flex; align-items: center; justify-content: center; font-size: 2rem; margin: 0 auto 14px; }
.receipt { background: #fff; border: 2px solid var(--edge); border-radius: 14px; padding: 6px 16px; margin: 16px 0; }
.receipt div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.receipt div:last-child { border-bottom: 0; }
.receipt dt { color: var(--muted); font-weight: 700; } .receipt dd { margin: 0; font-weight: 800; text-align: right; word-break: break-all; }
.file { display: flex; gap: 14px; align-items: center; justify-content: space-between; border: 2px solid var(--edge); border-radius: 14px; background: #fff; padding: 14px 16px; margin: 12px 0; box-shadow: 3px 3px 0 var(--edge); }
.file strong { display: block; font: 700 1rem var(--hand); } .file small { color: var(--muted); font-weight: 700; }
.upsell { margin: 24px 0 8px; padding: 20px 18px; border: 2px solid var(--edge); border-radius: 16px; background: var(--amber-soft); text-align: left; box-shadow: var(--shadow); }
