/* =========================================================================
   Base comune a tutti i temi: reset, accessibilità, animazioni di comparsa,
   barra anteprima, listino, galleria a schermo intero, barra azioni mobile.
   L'aspetto vero e proprio sta in assets/temi/<tema>.css.
   Variabili dal tema: --bg --surface --ink --muted --accent --on-accent --accent-2
   --on-accent-2 --c3 --on-c3 --focus --line --soft --f-d (titoli) --f-t (testo)
   --f-a (accento) --f-l (etichette).
   ========================================================================= */

:root {
  --gutter: clamp(18px, 4.2vw, 56px);
  --wrap: 1280px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --star: #F4B124;
  interpolate-size: allow-keywords;
}
/* colori d'accento usati come TESTO: avvicinati al colore del testo così restano leggibili (WCAG AA) su ogni palette.
   Dichiarati su ogni elemento per seguire anche le sezioni che ridefiniscono --ink/--accent (fasce scure ecc.). */
*, ::before, ::after {
  --accent-txt: color-mix(in oklab, var(--accent) var(--accent-txt-mix, 62%), var(--ink));
  --accent2-txt: color-mix(in oklab, var(--accent-2) 48%, var(--ink));
  --c3-txt: color-mix(in oklab, var(--c3) 32%, var(--ink));
}
/* accenti molto chiari (giallo, lime) su fondo chiaro: serve più colore del testo */
.t-officina.p-cantiere, .t-zine.p-acido { --accent-txt-mix: 40%; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 clamp(1rem, .96rem + .2vw, 1.0625rem)/1.6 var(--f-t);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--focus, var(--accent)); outline-offset: 3px; }
.skip { position: fixed; left: 12px; top: -80px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; transition: top .3s; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.ico { width: 1.15em; height: 1.15em; flex: none; }
.muted { color: var(--muted); }

/* ---------- testo diviso in lettere (data-split) ---------- */
[data-split] .w { display: inline-block; white-space: nowrap; overflow: hidden; vertical-align: top; padding: .08em .05em .12em; margin: -.08em -.05em -.12em; }
[data-split] .ch { display: inline-block; }
.js [data-split] .ch { transform: translateY(110%); transition: transform 1.1s var(--ease-out) calc(var(--i, 0) * 28ms + 100ms); }
.js [data-split].in .ch { transform: none; }

/* ---------- comparsa allo scorrimento ---------- */
.js .reveal-up { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease) calc(var(--i, 0) * 80ms + var(--delay, 0ms)), transform 1.1s var(--ease-out) calc(var(--i, 0) * 80ms + var(--delay, 0ms)); }
.js .reveal-up.in { opacity: 1; transform: none; }
.js .reveal-media { clip-path: inset(100% 0 0 0); transition: clip-path 1.4s var(--ease-out) calc(var(--i, 0) * 90ms + var(--delay, 0ms)); }
.js .reveal-media.in { clip-path: inset(0); }
.js .reveal-fade { opacity: 0; transition: opacity 1.2s var(--ease) calc(var(--i, 0) * 80ms + var(--delay, 0ms)); }
.js .reveal-fade.in { opacity: 1; }

/* ---------- stelle ---------- */
.stars {
  --pct: 100%; display: inline-block; width: 5.4em; height: 1em; flex: none; vertical-align: -.1em;
  background: linear-gradient(90deg, var(--star) var(--pct), color-mix(in oklab, var(--ink) 20%, transparent) var(--pct));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 24'%3E%3Cpath d='M12 1.6l3.1 6.6 7.2.8-5.4 4.9 1.5 7.1L12 17.4 5.6 21l1.5-7.1L1.7 9l7.2-.8z'/%3E%3C/svg%3E") 0 0 / 1.08em 1em repeat-x;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 24'%3E%3Cpath d='M12 1.6l3.1 6.6 7.2.8-5.4 4.9 1.5 7.1L12 17.4 5.6 21l1.5-7.1L1.7 9l7.2-.8z'/%3E%3C/svg%3E") 0 0 / 1.08em 1em repeat-x;
}

/* ---------- aperto / chiuso ---------- */
[data-status] { display: inline-flex; align-items: center; gap: .6em; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: .6; position: relative; flex: none; }
.is-open .pulse { background: #22c55e; opacity: 1; }
.is-closed .pulse { background: #ef4444; opacity: 1; }
.is-open .pulse::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid #22c55e; animation: ping 1.8s var(--ease-out) infinite; }
@keyframes ping { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }

/* ---------- domande frequenti: apertura animata ---------- */
details summary { cursor: pointer; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details::details-content { block-size: 0; overflow-y: clip; transition: block-size .5s var(--ease-out), content-visibility .5s allow-discrete; }
details[open]::details-content { block-size: auto; }

/* ---------- mappa ---------- */
iframe[data-src] { border: 0; display: block; width: 100%; height: 100%; }

/* ---------- WebGL ---------- */
canvas.gl { display: block; opacity: 0; transition: opacity 1.6s var(--ease); }
canvas.gl.on { opacity: 1; }
.no-gl canvas.gl { display: none; }

/* ---------- galleria a schermo intero ---------- */
.lightbox { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(8, 8, 8, .88); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: min(92vw, 1400px); max-height: 86vh; box-shadow: 0 40px 120px rgba(0,0,0,.5); animation: lbIn .6s var(--ease-out); }
@keyframes lbIn { from { transform: scale(.94); opacity: 0; } }
.lightbox button { position: fixed; display: grid; place-items: center; width: 52px; height: 52px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font: 400 1.4rem/1 ui-sans-serif, system-ui, sans-serif; cursor: pointer; transition: background .3s; }
.lightbox button:hover { background: rgba(255,255,255,.24); }
.lb-x { top: 20px; right: 20px; } .lb-prev { left: 20px; top: 50%; } .lb-next { right: 20px; top: 50%; }

/* ---------- barra azioni (mobile) ---------- */
.action-bar { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
  .action-bar {
    position: fixed; z-index: 70; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom));
    display: flex; gap: 6px; padding: 6px; border-radius: 22px;
    background: color-mix(in oklab, var(--bg) 78%, transparent); -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6);
    box-shadow: inset 0 0 0 1px var(--line), 0 20px 40px -18px rgba(0,0,0,.45);
    font-family: var(--f-t);
  }
  .action-bar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 54px; border-radius: 16px; font-size: .74rem; font-weight: 600; text-decoration: none; color: var(--ink); }
  .action-bar a .ico { width: 1.3em; height: 1.3em; }
  .action-bar a.is-main { background: var(--accent); color: var(--on-accent); }
}

/* ---------- barra anteprima + listino (uguali per tutti i temi) ---------- */
.pv {
  position: fixed; z-index: 75; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  display: flex; align-items: center; gap: 14px; max-width: calc(100vw - 24px); padding: 8px 8px 8px 18px; border-radius: 999px;
  background: #0c0c0d; color: #f5f5f4; font: 400 .88rem/1.25 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  box-shadow: 0 24px 60px -18px rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.08);
  animation: pvIn 1s var(--ease-out) 1.6s both; transition: transform .6s var(--ease-out), padding .4s;
}
@keyframes pvIn { from { transform: translate(-50%, 140%); } }
.pv::before { content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; padding: 1px; background: conic-gradient(from var(--a, 0deg), transparent 60%, var(--pv-accent), transparent); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin 4s linear infinite; }
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spin { to { --a: 360deg; } }
.pv-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.2); flex: none; }
.pv-text { margin: 0; display: grid; min-width: 0; }
.pv-text strong { font-weight: 600; }
.pv-text > span { color: rgba(245,245,244,.62); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-btn { height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: #fff; color: #0c0c0d; font-weight: 700; font-size: .86rem; cursor: pointer; white-space: nowrap; transition: transform .4s var(--ease-out), background .3s; }
.pv-btn:hover { transform: scale(1.04); background: var(--pv-accent); color: #0c0c0d; }
.pv-x { width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; cursor: pointer; font-size: 1rem; line-height: 1; }
.pv.min .pv-text { display: none; }
.pv.min { padding-left: 12px; }
@media (max-width: 760px) {
  .pv { bottom: calc(86px + env(safe-area-inset-bottom)); left: 10px; right: 10px; transform: none; border-radius: 20px; gap: 10px; }
  @keyframes pvIn { from { transform: translateY(160%); } }
  .pv-text > span { display: none; }
  .pv-text strong { white-space: nowrap; }
  .pv-btn { padding: 0 13px; font-size: .8rem; height: 36px; }
  .pv-long { display: none; }
  .pv-text { flex: 1; }
}
.plans {
  width: min(880px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: clamp(28px, 4vw, 48px); border: 0; border-radius: 28px;
  background: #0f0f10; color: #f4f4f2; font: 400 1rem/1.55 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; overflow: auto;
  box-shadow: 0 60px 140px -40px rgba(0,0,0,.6);
}
.plans[open] { animation: plansIn .7s var(--ease-out); }
@keyframes plansIn { from { opacity: 0; transform: translateY(24px) scale(.97); } }
.plans::backdrop { background: rgba(10,10,10,.55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.plans-kick { margin: 0 0 14px; font-size: .74rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: rgba(244,244,242,.6); }
.plans h2 { margin: 0 0 12px; font: 400 clamp(1.8rem, 1rem + 2.6vw, 2.8rem)/1.05 var(--f-d); letter-spacing: -.01em; }
.plans h2 em { font-style: normal; color: var(--pv-accent); }
.plans-sub { color: rgba(244,244,242,.66); max-width: 60ch; }
.plans-x { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; font-size: 1.3rem; cursor: pointer; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin: 28px 0 12px; }
.plan { position: relative; padding: 26px; border-radius: 20px; background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.plan-hot { background: linear-gradient(160deg, color-mix(in oklab, var(--pv-accent) 24%, #0f0f10), #141416 70%); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--pv-accent) 70%, transparent); }
.plan-tag { position: absolute; top: 18px; right: 18px; padding: 5px 10px; border-radius: 99px; background: var(--pv-accent); color: #0f0f10; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.plan h3 { margin: 0 0 14px; font-size: 1rem; font-weight: 600; color: rgba(244,244,242,.75); }
.price { display: flex; align-items: baseline; gap: 6px; margin: 0 0 18px; }
.price strong { font: 700 3rem/1 ui-sans-serif, system-ui, sans-serif; letter-spacing: -.04em; }
.price span { color: rgba(244,244,242,.6); }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .94rem; }
.plan li { display: flex; gap: .6em; align-items: flex-start; }
.plan .ico { color: var(--pv-accent); margin-top: .2em; }
.plan-extra { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 22px 26px; border-radius: 20px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 10px, transparent 10px 20px); }
.plan-extra h3 { margin: 0 0 4px; font-size: 1.05rem; }
.plan-extra p { margin: 0; color: rgba(244,244,242,.66); font-size: .92rem; max-width: 52ch; }
.plan-extra-price { padding: 8px 14px; border-radius: 99px; background: rgba(255,255,255,.08); font-weight: 600; font-size: .88rem; white-space: nowrap; }
.plans-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.plans-cta a { display: inline-flex; align-items: center; gap: .6em; height: 50px; padding: 0 22px; border-radius: 999px; text-decoration: none; font-weight: 600; background: rgba(255,255,255,.06); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); transition: background .3s, color .3s; }
.plans-cta a:first-child { background: #fff; color: #0f0f10; box-shadow: none; }
.plans-cta a:hover { background: var(--pv-accent); color: #0f0f10; }

/* ---------- barra della proposta: link ai piani ---------- */
.pv a.pv-btn { display: inline-flex; align-items: center; text-decoration: none; }
.pv-more { border: 0; background: none; color: rgba(245,245,244,.72); font: 500 .84rem/1 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; cursor: pointer; padding: 6px 4px; white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; }
.pv-more:hover { color: #fff; }
@media (max-width: 760px) { .pv-more { display: none; } }

/* ---------- listino / menù (colori e font del tema) ---------- */
.ls-sec { position: relative; padding-block: clamp(64px, 9vw, 130px); }
.ls-card { position: relative; max-width: 1040px; margin-inline: auto; padding: clamp(28px, 4.5vw, 60px) clamp(20px, 4.5vw, 64px); background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 18px; }
.ls-head { text-align: center; max-width: 640px; margin: 0 auto clamp(28px, 4vw, 48px); }
.ls-kick { margin: 0 0 10px; font: 600 .74rem/1.2 var(--f-l, var(--f-t)); letter-spacing: .22em; text-transform: uppercase; color: var(--accent-txt); }
.ls-title { margin: 0; font: 400 clamp(2rem, 1.3rem + 2.6vw, 3.4rem)/1.05 var(--f-d); letter-spacing: -.01em; text-wrap: balance; }
.ls-sub { margin: 14px auto 0; color: var(--muted); max-width: 52ch; text-wrap: pretty; }
.ls-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 44px) clamp(32px, 5vw, 72px); }
.ls-grid.ls-one { grid-template-columns: minmax(0, 640px); justify-content: center; }
.ls-sez { margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font: 400 clamp(1.25rem, 1.1rem + .6vw, 1.6rem)/1.15 var(--f-d); color: var(--ink); }
.ls-voci { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.ls-riga { display: flex; align-items: baseline; gap: .6em; }
.ls-nome { font: 600 1.02rem/1.35 var(--f-t); min-width: 0; overflow-wrap: anywhere; }
.ls-dots { flex: 1; min-width: 18px; border-bottom: 1.5px dotted color-mix(in oklab, var(--ink) 35%, transparent); transform: translateY(-.28em); }
.ls-prezzo { font: 600 1rem/1.35 var(--f-t); font-variant-numeric: tabular-nums; color: var(--accent-txt); white-space: nowrap; }
.ls-desc { margin: 4px 0 0; color: var(--muted); font-size: .94rem; line-height: 1.5; text-wrap: pretty; }
.ls-nota { margin: 4px 0 0; color: var(--muted); font-size: .8rem; font-style: italic; }
.ls-foot { margin-top: clamp(26px, 4vw, 40px); padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; color: var(--muted); font-size: .9rem; }
.ls-foot p { margin: 0; }
.ls-file { display: inline-flex; align-items: center; gap: .55em; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font: 600 .9rem/1 var(--f-t); text-decoration: none; transition: filter .3s; }
.ls-file:hover { filter: brightness(1.08); }
@media (max-width: 720px) { .ls-grid { grid-template-columns: minmax(0, 1fr); } }
/* temi squadrati */
:is(.t-grotesk, .t-officina, .t-zine, .t-rivista, .t-bottega, .t-deco) .ls-card { border-radius: 0; }
:is(.t-grotesk, .t-officina, .t-zine, .t-rivista, .t-bottega, .t-deco) .ls-file { border-radius: 0; }
.t-pop .ls-card { border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); border-radius: 22px; }
.t-zine .ls-card { box-shadow: 5px 5px 0 var(--ink); }
.t-zine .ls-kick { font-family: var(--f-t); letter-spacing: .16em; }
:is(.t-clinica) .ls-sec { padding-block: clamp(40px, 6vw, 80px); }

/* ---------- piè di pagina legale (siti pubblicati) ---------- */
.lg { position: relative; z-index: 2; background: color-mix(in oklab, var(--ink) 5%, var(--bg)); color: var(--muted); border-top: 1px solid var(--line); font: 400 .8rem/1.55 var(--f-t); }
.lg-in { width: min(var(--wrap, 1280px), 100% - 2 * var(--gutter)); margin-inline: auto; padding: 18px 0 calc(18px + env(safe-area-inset-bottom)); display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; justify-content: space-between; }
.lg-dati { margin: 0; max-width: 90ch; }
.lg-dati strong { color: var(--ink); font-weight: 600; }
.lg-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.lg-links a, .lg-links button { color: var(--ink); font: inherit; background: none; border: 0; padding: 4px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in oklab, var(--ink) 35%, transparent); }
.lg-links a:hover, .lg-links button:hover { text-decoration-color: currentColor; }

/* ---------- banner dei cookie (stessi colori e font del tema) ---------- */
.ck { position: fixed; z-index: 95; left: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); width: min(440px, calc(100vw - 36px)); padding: 22px 22px 18px; border-radius: 18px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); font: 400 .9rem/1.5 var(--f-t);
  box-shadow: 0 30px 70px -24px rgba(0,0,0,.45), 0 0 0 1px color-mix(in oklab, var(--ink) 6%, transparent);
  opacity: 0; transform: translateY(16px); transition: opacity .45s var(--ease), transform .6s var(--ease-out); }
.ck.on { opacity: 1; transform: none; }
.ck[hidden], .ck [hidden] { display: none !important; }
.ck-t { margin: 0 34px 8px 0; font: 700 1.02rem/1.3 var(--f-t); display: flex; align-items: center; gap: 10px; }
.ck-t::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: none; }
.ck-d { margin: 0 0 14px; color: var(--muted); }
.ck-d a { color: var(--ink); text-underline-offset: 3px; }
.ck-x { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--ink); font: 400 1.4rem/1 var(--f-t); cursor: pointer; }
.ck-x:hover { background: var(--soft, rgba(0,0,0,.06)); }
.ck-pref { display: grid; gap: 10px; margin: 0 0 14px; }
.ck-cat { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.ck-cat input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--accent); }
.ck-cat span { display: grid; gap: 2px; color: var(--muted); font-size: .84rem; }
.ck-cat strong { color: var(--ink); font-size: .9rem; }
.ck-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ck-b { min-height: 44px; padding: 0 16px; border: 1.5px solid var(--accent); border-radius: 999px; background: var(--accent); color: var(--on-accent); font: 600 .88rem/1 var(--f-t); cursor: pointer; transition: filter .25s; }
.ck-b:hover { filter: brightness(1.08); }
.ck-b.ck-alt { grid-column: 1 / -1; order: 3; background: transparent; color: var(--ink); border-color: var(--line); }
.ck-b[hidden] { display: none; }
:is(.t-grotesk, .t-officina, .t-zine, .t-rivista, .t-bottega, .t-deco) :is(.ck, .ck-cat, .ck-b) { border-radius: 0; }
.t-pop .ck { border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); }
@media (max-width: 760px) {
  .ck { left: 10px; right: 10px; width: auto; bottom: calc(96px + env(safe-area-inset-bottom)); max-height: calc(100dvh - 120px); overflow: auto; }
}

/* ---------- mappa in attesa di consenso ---------- */
.mapgate { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; padding: 18px; text-align: center;
  background: color-mix(in oklab, var(--surface) 94%, transparent); color: var(--ink); font: 400 .9rem/1.45 var(--f-t);
  background-image: radial-gradient(color-mix(in oklab, var(--ink) 9%, transparent) 1px, transparent 1.5px); background-size: 16px 16px; }
.mapgate-in { max-width: 320px; display: grid; gap: 8px; justify-items: center; }
.mapgate-t { margin: 0; font-weight: 700; }
.mapgate-d { margin: 0; color: var(--muted); font-size: .84rem; }
.mapgate-b { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 6px; }
.mapgate-ok { min-height: 42px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--accent); color: var(--on-accent); font: 600 .86rem/1 var(--f-t); cursor: pointer; }
.mapgate-link { display: inline-flex; align-items: center; min-height: 42px; padding: 0 12px; color: var(--ink); font-size: .84rem; text-underline-offset: 3px; }
:is(.t-grotesk, .t-officina, .t-zine, .t-rivista, .t-bottega, .t-deco) .mapgate-ok { border-radius: 0; }

/* ---------- movimento ridotto ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0ms !important; }
}

/* ---------- miniature dei temi (anteprime nel checkout): nessuna animazione, niente elementi fissi ---------- */
.mini *, .mini *::before, .mini *::after { animation: none !important; transition: none !important; }
.mini .action-bar, .mini .pv, .mini .ck, .mini canvas.gl { display: none !important; }
