/* Mollica · pizza al taglio — modello di fantasia */
:root {
  --bg: #f1e7db; --card: #fff; --ink: #2b1d17; --ink2: #6b5a50; --brown: #4a2a1f; --brown2: #3a2018;
  --accent: #c4532f; --ok: #3f7d4e; --line: #ddcdbb; --line2: #e9ddd0;
  --round: "Quicksand", "Nunito", system-ui, sans-serif; --body: "DM Sans", system-ui, sans-serif; --mark: "Fredoka", "Quicksand", system-ui, sans-serif;
  --out: cubic-bezier(.22, .61, .36, 1); --out2: cubic-bezier(.16, 1, .3, 1);
  --pad: clamp(18px, 2.8vw, 40px); --headh: 96px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; -webkit-user-drag: none; user-select: none; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { -webkit-tap-highlight-color: transparent; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.mo-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mo-skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--brown); color: #fff; border-radius: 6px; }
.mo-skip:focus { top: 12px; }
body.mo-lock { overflow: hidden; }
.mo-sheet[hidden], .mo-scrim[hidden] { display: none !important; }

/* ---------- barra di stato (al posto dell'avviso) ---------- */
.mo-bar { display: flex; justify-content: center; align-items: center; gap: 8px; min-height: 34px; padding: 6px 16px; background: var(--bg); font: 500 13px/1.3 var(--round); color: var(--ink); text-align: center; }
.mo-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #a99a8f; }
.mo-dot.is-open, .mo-pill i.is-open { background: var(--ok); box-shadow: 0 0 0 3px rgb(63 125 78 / .18); }
.mo-dot.is-soon, .mo-pill i.is-soon { background: #d89a2b; box-shadow: 0 0 0 3px rgb(216 154 43 / .2); }
.mo-dot.is-closed, .mo-pill i.is-closed { background: var(--accent); }
.mo-dot.is-warm { background: var(--accent); }

/* ---------- testata: nav a sinistra, logo al centro, vassoio a destra ---------- */
.mo-head { position: sticky; top: 0; z-index: 40; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; height: var(--headh); padding: 0 var(--pad) 18px; background: #fff; box-shadow: 0 6px 18px -14px rgb(43 29 23 / .35); }
.mo-nav { display: flex; gap: 28px; }
.mo-nav a { position: relative; font: 500 15px/1 var(--round); text-transform: uppercase; letter-spacing: .02em; text-decoration: none; padding: 6px 0; }
.mo-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s var(--out); }
.mo-nav a:hover::after { transform: scaleX(1); }
.mo-burger { display: none; width: 40px; height: 40px; place-content: center; gap: 6px; }
.mo-burger i { display: block; width: 22px; height: 1.6px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--out); }
.mo-burger[aria-expanded="true"] i:first-child { transform: translateY(3.8px) rotate(45deg); }
.mo-burger[aria-expanded="true"] i:last-child { transform: translateY(-3.8px) rotate(-45deg); }
.mo-logo { position: relative; display: grid; justify-items: center; text-decoration: none; color: var(--brown); align-self: center; padding-top: 6px; }
.mo-logo-arc { position: absolute; top: -3px; width: 92px; height: 26px; }
.mo-logo-arc text { font: 600 8.6px var(--round); letter-spacing: .14em; fill: var(--brown); }
.mo-logo-face { display: block; width: 44px; height: 26px; margin-top: 10px; }
.mo-logo b { font: 600 30px/0.9 var(--mark); letter-spacing: -.01em; margin-top: -2px; }
.mo-logo small { font: 600 8.5px/1 var(--round); letter-spacing: .08em; margin-top: 3px; }
.mo-tools { display: flex; justify-content: flex-end; align-items: center; gap: 14px; }
.mo-pill { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 4px; font: 500 13px/1 var(--round); white-space: nowrap; }
.mo-pill i { width: 7px; height: 7px; border-radius: 50%; background: #a99a8f; }
.mo-traybtn { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; transition: background-color .2s, transform .15s var(--out); }
.mo-traybtn:hover { background: var(--bg); }
.mo-traybtn:active { transform: scale(.94); }
.mo-traybtn svg { width: 24px; height: 24px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.mo-badge { position: absolute; right: 0; top: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff; font: 600 11px/18px var(--body); text-align: center; transform: scale(0); transition: transform .25s var(--out2); }
.mo-badge.is-on { transform: scale(1); }
.mo-badge.is-bump { animation: mo-bump .3s var(--out); }
@keyframes mo-bump { 40% { transform: scale(1.3); } }

.mo-drawer { position: fixed; inset: var(--headh) 0 0; z-index: 39; display: flex; flex-direction: column; justify-content: space-between; padding: 28px var(--pad) 32px; background: #fff; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s var(--out), transform .3s var(--out), visibility 0s .3s; }
.mo-drawer.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .25s var(--out), transform .3s var(--out); }
.mo-drawer nav { display: grid; }
.mo-drawer a { padding: 14px 0; border-bottom: 1px solid var(--line2); font: 400 30px/1.15 var(--round); text-decoration: none; }
.mo-drawer-foot { display: flex; gap: 8px; align-items: center; font: 500 14px var(--round); color: var(--ink2); }
.mo-critter-drawer { right: -6px; bottom: 0; width: 160px; height: 136px; }

/* ---------- bottoni a filo, come da tradizione della casa ---------- */
.mo-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 24px; border: 1px solid currentColor; border-radius: 4px; font: 500 15px/1 var(--round); text-decoration: none; transition: background-color .2s var(--out), color .2s var(--out), transform .15s var(--out); }
.mo-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.mo-btn:active { transform: scale(.97); }
.mo-btn-light { color: #fff; border-color: rgb(255 255 255 / .85); }
.mo-btn-light:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* ---------- primo piano ---------- */
.mo-hero { position: relative; display: grid; place-items: center; height: calc(min(78vh, 760px) + var(--headh)); min-height: 600px; overflow: hidden; background: #3a2018; color: #fff; text-align: center; }
.mo-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); animation: mo-push 14s var(--out) forwards; }
@keyframes mo-push { to { transform: scale(1); } }
.mo-hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 60% at 50% 52%, rgb(30 16 10 / .5), rgb(30 16 10 / .18) 70%), linear-gradient(rgb(30 16 10 / .15), rgb(30 16 10 / .25)); }
.mo-hero-copy { position: relative; z-index: 1; display: grid; justify-items: center; padding: 0 20px; }
.mo-eyebrow { font: 500 13px/1 var(--round); letter-spacing: .18em; text-transform: uppercase; opacity: .92; }
.mo-hero h1 { margin-top: 18px; font: 300 clamp(40px, 5.6vw, 76px)/1.06 var(--round); letter-spacing: -.01em; text-wrap: balance; }
.mo-hero-sub { margin-top: 16px; font: 500 16px/1.4 var(--round); opacity: .95; }
.mo-hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.mo-hero-copy > * { animation: mo-rise .6s var(--out2) both; }
.mo-hero-copy > :nth-child(2) { animation-delay: .08s; } .mo-hero-copy > :nth-child(3) { animation-delay: .16s; } .mo-hero-copy > :nth-child(4) { animation-delay: .24s; }
@keyframes mo-rise { from { opacity: 0; transform: translateY(14px); } }

/* ---------- nastro ---------- */
.mo-ribbon { overflow: hidden; background: #fff; border-bottom: 1px solid var(--line2); }
.mo-ribbon-run { display: flex; width: max-content; animation: mo-run 48s linear infinite; }
.mo-ribbon-run span { display: inline-flex; align-items: center; gap: 14px; padding: 16px 22px; font: 500 15px/1 var(--round); white-space: nowrap; }
.mo-ribbon-run svg { width: 30px; height: 30px; fill: none; stroke: var(--brown); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
@keyframes mo-run { to { transform: translateX(-50%); } }

/* ---------- sezioni crema, card bianca + foto ---------- */
.mo-cream { background: var(--bg); }
.mo-wrap { max-width: 1440px; margin: 0 auto; padding: 0 var(--pad); }
.mo-split { display: grid; grid-template-columns: 1fr 1fr; max-width: 1440px; margin: 0 auto; padding: 0 var(--pad); }
.mo-story, .mo-filo, .mo-dove { padding: clamp(48px, 6vw, 72px) 0; }
.mo-card { position: relative; display: grid; align-content: center; justify-items: center; gap: 0; padding: 64px 48px 120px; background: var(--card); border-radius: 12px 0 0 12px; text-align: center; overflow: hidden; }
.mo-photo { margin: 0; overflow: hidden; border-radius: 0 12px 12px 0; min-height: 520px; }
.mo-photo img { width: 100%; height: 100%; object-fit: cover; }
.mo-kicker { font: 500 15px/1.2 var(--round); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.mo-h2 { margin-top: 18px; font: 400 clamp(32px, 3.4vw, 50px)/1.18 var(--round); letter-spacing: -.005em; text-wrap: balance; }
.mo-lead { margin-top: 16px; font: 400 17px/1.5 var(--body); color: var(--ink2); max-width: 46ch; }
.mo-card .mo-btn, .mo-filo-txt .mo-btn, .mo-dove-txt .mo-btn { margin-top: 36px; }

/* ---------- la mascotte di pasta (linea sola, occhi che seguono) ---------- */
.mo-critter { position: absolute; pointer-events: none; color: var(--brown); }
.mo-critter svg, .mo-logo-face svg { display: block; width: 100%; height: 100%; overflow: visible; }
.mo-critter .ln, .mo-logo-face .ln { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.mo-critter .body, .mo-logo-face .body { fill: #fff; }
.mo-critter .eyew, .mo-logo-face .eyew { fill: #fff; stroke: currentColor; stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.mo-critter .pup, .mo-logo-face .pup { fill: currentColor; }
.mo-critter .lid, .mo-logo-face .lid { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; vector-effect: non-scaling-stroke; opacity: 0; }
.is-blink .eye .lid { opacity: 1; } .is-blink .eye .eyew, .is-blink .eye .pup { opacity: 0; }
.mo-logo-face { color: var(--brown); }
.mo-critter-peek { left: -10px; bottom: -6px; width: 200px; height: 170px; }
.mo-critter-wheat { right: -10px; bottom: -40px; width: 210px; height: 200px; }
.mo-critter-zen { position: relative; display: block; width: 120px; height: 120px; margin: 0 auto 6px; }

/* ---------- banco ---------- */
.mo-banco { padding: clamp(48px, 6vw, 80px) 0; border-top: 1px solid var(--line2); }
.mo-sechead { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.mo-sechead .mo-h2 { margin-top: 10px; }
.mo-sechead .mo-lead { margin-top: 10px; }
.mo-fresh { display: inline-flex; align-items: center; gap: 8px; font: 500 14px var(--round); }
.mo-tabs { display: flex; gap: 8px; margin: 32px 0 24px; overflow-x: auto; scrollbar-width: none; }
.mo-tabs::-webkit-scrollbar { display: none; }
.mo-tabs button { flex: none; height: 38px; padding: 0 18px; border: 1px solid var(--line); border-radius: 19px; font: 500 15px/1 var(--round); background: transparent; transition: background-color .2s var(--out), color .2s, border-color .2s, transform .15s var(--out); }
.mo-tabs button:hover { border-color: var(--ink); }
.mo-tabs button:active { transform: scale(.97); }
.mo-tabs button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.mo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.mo-slice { display: flex; flex-direction: column; background: var(--card); border-radius: 12px; overflow: hidden; animation: mo-in .35s var(--out) both; }
@keyframes mo-in { from { opacity: 0; transform: translateY(8px); } }
.mo-slice-img { position: relative; aspect-ratio: 1; overflow: hidden; background: #e6d8c7; }
.mo-slice-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--out); }
.mo-slice:hover .mo-slice-img img { transform: scale(1.04); }
.mo-tag { position: absolute; left: 12px; top: 12px; padding: 4px 10px; border-radius: 12px; background: rgb(255 255 255 / .92); font: 600 12px/1.3 var(--round); }
.mo-tag.is-out { background: #7d716a; color: #fff; }
.mo-slice-bd { display: flex; flex-direction: column; flex: 1; padding: 16px 16px 16px; }
.mo-slice h3 { font: 600 18px/1.25 var(--round); }
.mo-slice p { margin-top: 6px; font-size: 14px; line-height: 1.45; color: var(--ink2); }
.mo-slice-ft { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; padding-top: 14px; }
.mo-price { font: 600 16px var(--round); color: var(--accent); white-space: nowrap; }
.mo-price small { font-weight: 500; color: var(--ink2); }
.mo-cutbtn { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border: 1px solid var(--ink); border-radius: 4px; font: 500 14px/1 var(--round); transition: background-color .2s, color .2s, transform .15s var(--out); }
.mo-cutbtn:hover { background: var(--ink); color: #fff; }
.mo-cutbtn:active { transform: scale(.97); }
.mo-cutbtn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.mo-cutbtn:disabled { opacity: .45; cursor: not-allowed; }
.mo-fry .mo-slice-img { flex: none; }
.mo-grid-sub { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 12px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); font: 500 15px var(--round); color: var(--ink2); }
.mo-grid-sub span { font: 400 30px/1.1 var(--round); color: var(--ink); }
.mo-fry .mo-slice-img { aspect-ratio: auto; height: 120px; display: grid; place-items: center; background: #f6efe6; }
.mo-fry .mo-slice-img svg { width: 84px; height: 84px; fill: none; stroke: var(--brown); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- bottega: scaffale a scatti ---------- */
.mo-bottega { padding: clamp(40px, 5vw, 72px) 0 clamp(48px, 6vw, 80px); }
.mo-arrows { display: flex; gap: 8px; }
.mo-arrow { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; transition: border-color .2s, transform .15s var(--out), opacity .2s; }
.mo-arrow:hover { border-color: var(--ink); }
.mo-arrow:active { transform: scale(.94); }
.mo-arrow:disabled { opacity: .35; cursor: default; }
.mo-arrow svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.mo-shelf { display: flex; gap: 20px; margin-top: 28px; padding: 0 var(--pad) 6px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); overscroll-behavior-x: contain; scrollbar-width: none; }
.mo-shelf::-webkit-scrollbar { display: none; }
.mo-shelf-items { display: contents; }
.mo-shelf-hero { position: relative; flex: none; width: 330px; height: 430px; border-radius: 12px; overflow: hidden; scroll-snap-align: start; color: #fff; }
.mo-shelf-hero img { width: 100%; height: 100%; object-fit: cover; }
.mo-shelf-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgb(30 16 10 / .55), transparent 45%, rgb(30 16 10 / .35)); }
.mo-shelf-hero div { position: absolute; z-index: 1; left: 24px; right: 24px; top: 26px; }
.mo-shelf-hero h3 { font: 500 30px/1.15 var(--round); }
.mo-shelf-hero p { margin-top: 8px; font: 500 14px/1.4 var(--round); }
.mo-prod { flex: none; width: 260px; scroll-snap-align: start; text-align: center; }
.mo-prod-art { position: relative; height: 300px; border-radius: 12px; overflow: hidden; display: grid; place-items: center; }
.mo-prod-art svg { width: 70%; height: 80%; }
.mo-prod h3 { margin-top: 14px; font: 500 16px/1.3 var(--round); }
.mo-prod .mo-pp { margin-top: 4px; font: 500 15px var(--round); color: var(--ink2); }
.mo-prod-row { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.mo-prod-row .mo-amt { height: 30px; padding: 0 10px; border: 1px solid var(--line); border-radius: 15px; font: 500 13px var(--round); transition: background-color .2s, color .2s; }
.mo-prod-row .mo-amt[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.mo-prod .mo-cutbtn { margin-top: 12px; }
.mo-shelf-prog { position: relative; height: 2px; margin-top: 28px; background: var(--line); border-radius: 2px; overflow: hidden; }
.mo-shelf-prog i { position: absolute; left: 0; top: 0; bottom: 0; width: 30%; background: var(--ink); border-radius: 2px; }

/* ---------- filosofia ---------- */
.mo-split-rev .mo-photo { border-radius: 12px; min-height: 460px; }
.mo-filo-txt { position: relative; display: grid; align-content: center; justify-items: center; padding: 40px 48px 150px; text-align: center; }
.mo-values { display: grid; gap: 14px; margin: 28px 0 0; padding: 0; list-style: none; text-align: left; max-width: 440px; }
.mo-values li { display: grid; grid-template-columns: 36px 1fr; gap: 8px; font-size: 15px; line-height: 1.5; color: var(--ink2); }
.mo-values b { font: 600 13px/1.9 var(--round); color: var(--accent); }
.mo-values strong { color: var(--ink); font-weight: 600; }

/* ---------- laboratorio: card che si apre a schermo pieno ---------- */
.mo-corsi { position: relative; height: 240vh; background: var(--bg); }
.mo-corsi-stage { position: sticky; top: var(--headh); height: calc(100vh - var(--headh)); overflow: hidden; }
.mo-corsi-card { position: absolute; inset: 0; color: #fff; clip-path: inset(calc((1 - var(--p, 0)) * 14%) calc((1 - var(--p, 0)) * var(--side, 9%)) round calc((1 - var(--p, 0)) * 14px)); }
.mo-corsi-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.14 - .14 * var(--p, 0))); }
.mo-corsi-card::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 60% at 50% 50%, rgb(20 10 6 / .55), rgb(20 10 6 / .25)); }
.mo-corsi-copy { position: absolute; z-index: 1; inset: 0; display: grid; place-content: center; justify-items: center; gap: 16px; padding: 0 24px; text-align: center; }
.mo-corsi-copy h2 { font: 300 clamp(34px, 4.4vw, 62px)/1.1 var(--round); text-wrap: balance; transform: scale(calc(.9 + .1 * var(--p, 0))); }
.mo-corsi-copy p:not(.mo-eyebrow) { font: 500 16px/1.45 var(--round); max-width: 44ch; }
.mo-corsi-copy .mo-btn { margin-top: 8px; }
.mo-corsi-rail { position: absolute; left: 50%; bottom: 22px; width: 110px; height: 3px; margin-left: -55px; border-radius: 3px; background: rgb(255 255 255 / .25); overflow: hidden; opacity: calc(var(--p, 0) * 3); }
.mo-corsi-rail i { display: block; height: 100%; background: #fff; transform-origin: left; transform: scaleX(var(--p, 0)); }

/* ---------- dove siamo ---------- */
.mo-dove-txt { display: grid; align-content: center; justify-items: start; padding: 40px clamp(24px, 5vw, 80px); }
.mo-status-big { display: flex; align-items: center; gap: 10px; margin-top: 18px; font: 600 17px/1.35 var(--round); }
.mo-dove address { margin-top: 22px; font: 400 16px/1.6 var(--body); font-style: normal; }
.mo-dove address b { font: 600 15px var(--round); text-transform: uppercase; letter-spacing: .04em; }
.mo-hours { margin-top: 20px; border-collapse: collapse; font-size: 15px; min-width: 280px; }
.mo-hours td { padding: 6px 0; border-bottom: 1px solid var(--line); }
.mo-hours td + td { padding-left: 28px; text-align: right; font-variant-numeric: tabular-nums; }
.mo-hours tr.is-today td { font-weight: 600; color: var(--accent); }
.mo-dove .mo-photo { border-radius: 12px; min-height: 480px; }

/* ---------- newsletter ---------- */
.mo-news { display: grid; justify-items: center; padding: 56px var(--pad) 72px; background: #fff; text-align: center; }
.mo-news .mo-h2 { margin-top: 10px; font-size: clamp(26px, 2.6vw, 36px); }
.mo-newsform { width: min(420px, 100%); margin-top: 26px; text-align: left; }
.mo-field { display: flex; align-items: center; height: 50px; border: 1px solid var(--ink); border-radius: 4px; }
.mo-field input { flex: 1; min-width: 0; height: 100%; padding: 0 14px; border: 0; background: transparent; font: 400 15px var(--body); color: var(--ink); outline: none; }
.mo-field button { display: grid; place-items: center; width: 48px; height: 100%; transition: transform .15s var(--out); }
.mo-field button:active { transform: scale(.94); }
.mo-field svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.mo-check { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; font-size: 12.5px; line-height: 1.4; color: var(--ink2); cursor: pointer; }
.mo-check input { margin: 2px 0 0; accent-color: var(--brown); }
.mo-formmsg { min-height: 20px; margin-top: 10px; font: 500 14px/1.4 var(--round); }
.mo-formmsg.is-err { color: var(--accent); } .mo-formmsg.is-ok { color: var(--ok); }
.mo-field.is-err { border-color: var(--accent); }

/* ---------- piè di pagina ---------- */
.mo-foot { padding: 56px var(--pad) 28px; background: var(--brown); color: #f1e7db; }
.mo-foot-top { display: grid; grid-template-columns: 1.2fr repeat(4, 1fr); gap: 28px; max-width: 1360px; margin: 0 auto; }
.mo-logo-foot { color: #f1e7db; justify-self: start; align-self: start; }
.mo-logo-foot .mo-logo-face { color: #f1e7db; }
.mo-logo-foot .mo-logo-face .body, .mo-logo-foot .mo-logo-face .eyew { fill: var(--brown); }
.mo-foot-col { display: grid; align-content: start; gap: 9px; font-size: 14px; }
.mo-foot-col h3 { margin-bottom: 6px; font: 600 14px var(--round); text-transform: uppercase; letter-spacing: .06em; }
.mo-foot-col a { text-decoration: none; opacity: .82; } .mo-foot-col a:hover { opacity: 1; text-decoration: underline; }
.mo-foot-col p { opacity: .82; line-height: 1.7; }
.mo-foot-bot { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; max-width: 1360px; margin: 44px auto 0; padding-top: 22px; border-top: 1px solid rgb(241 231 219 / .18); font-size: 12.5px; opacity: .9; }
.mo-social { display: flex; gap: 10px; }
.mo-social a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgb(241 231 219 / .3); transition: background-color .2s; }
.mo-social a:hover { background: rgb(241 231 219 / .12); }
.mo-social svg { width: 18px; height: 18px; fill: none; stroke: #f1e7db; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.mo-social .fill { fill: #f1e7db; stroke: none; }
.mo-foot-note { max-width: 1360px; margin: 18px auto 0; font-size: 12.5px; opacity: .75; }

/* ---------- fogli: righello, vassoio, laboratorio ---------- */
.mo-scrim { position: fixed; inset: 0; z-index: 60; background: rgb(30 16 10 / .42); opacity: 0; transition: opacity .3s var(--out); }
.mo-scrim.is-on { opacity: 1; }
.mo-sheet { position: fixed; z-index: 61; left: 50%; bottom: 16px; width: min(480px, calc(100vw - 24px)); max-height: calc(100vh - 32px); margin-left: calc(min(480px, calc(100vw - 24px)) / -2); overflow-y: auto; overscroll-behavior: contain; padding: 18px 20px 20px; border-radius: 24px; background: #f6efe6; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .7), 0 -16px 40px -16px rgb(30 16 10 / .4); transform: translateY(calc(100% + 30px)); transition: transform .5s var(--out2); }
.mo-sheet.is-open { transform: none; }
.mo-sheet-grab { width: 38px; height: 4px; margin: -6px auto 12px; border-radius: 2px; background: #cbbcab; }
.mo-tray { left: auto; right: 16px; top: 16px; bottom: 16px; margin: 0; width: min(440px, calc(100vw - 24px)); max-height: none; transform: translateX(calc(100% + 30px)); display: flex; flex-direction: column; }
.mo-tray.is-open { transform: none; }
.mo-cut-hd { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.mo-cut-hd .mo-kicker { font-size: 12px; color: var(--ink2); }
.mo-cut-hd h3 { margin-top: 4px; font: 600 22px/1.2 var(--round); }
.mo-x { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: #fff; transition: transform .15s var(--out); }
.mo-x:active { transform: scale(.92); }
.mo-x svg { width: 16px; height: 16px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; }
.mo-cut-teglia { position: relative; height: 112px; margin-top: 14px; border-radius: 10px; overflow: hidden; background: #d9c6b0; }
.mo-cut-img { position: absolute; inset: 0; background: center / cover no-repeat; filter: saturate(.55) brightness(.62); }
.mo-cut-piece { position: absolute; inset: 0; background: var(--img) center / cover no-repeat; clip-path: inset(0 calc(100% - var(--w, 40%)) 0 0); transition: clip-path .2s var(--out); }
.mo-cut-piece span { position: absolute; left: 10px; bottom: 8px; padding: 3px 8px; border-radius: 10px; background: rgb(255 255 255 / .92); color: var(--ink); font: 600 12px/1.2 var(--round); white-space: nowrap; }
.mo-cut-knife { position: absolute; top: -2px; bottom: -2px; left: var(--w, 40%); width: 0; margin-left: -1px; border-left: 2px dashed #fff; filter: drop-shadow(0 0 3px rgb(0 0 0 / .5)); transition: left .2s var(--out); }
.mo-cut-big { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 12px; }
.mo-cut-g { font: 400 16px var(--round); color: var(--ink2); }
.mo-cut-g b { font: 600 56px/1 var(--round); letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.mo-cut-eur { padding-bottom: 6px; font: 600 22px var(--round); color: var(--accent); font-variant-numeric: tabular-nums; }
.mo-ruler { position: relative; height: 54px; margin-top: 10px; overflow: hidden; touch-action: pan-y; cursor: grab; border-radius: 8px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }
.mo-ruler.is-drag { cursor: grabbing; }
.mo-ruler-scale { position: absolute; left: 50%; top: 0; bottom: 0; display: flex; align-items: flex-start; transform: translateX(var(--x, 0px)); will-change: transform; }
.mo-tk { position: relative; flex: none; width: 12px; height: 100%; }
.mo-tk::before { content: ""; position: absolute; left: -0.75px; top: 8px; width: 1.5px; height: 12px; border-radius: 1px; background: #c9bcae; transition: background-color .25s; }
.mo-tk.l::before { height: 20px; }
.mo-tk.on::before { background: #3c2c24; }
.mo-tk em { position: absolute; left: 0; top: 32px; transform: translateX(-50%); font: 500 10px var(--round); font-style: normal; color: var(--ink2); }
.mo-ruler-needle { position: absolute; left: 50%; top: 2px; width: 2.5px; height: 28px; margin-left: -1.25px; border-radius: 2px; background: var(--accent); }
.mo-ruler-ends { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; font: 500 11px var(--round); color: var(--ink2); }
.mo-ruler-ends button { height: 30px; padding: 0 10px; border-radius: 15px; background: #fff; font: 600 12px var(--round); color: var(--ink); transition: transform .15s var(--out); }
.mo-ruler-ends button:active { transform: scale(.95); }
.mo-kv { margin: 10px 0 0; }
.mo-kv div { display: flex; justify-content: space-between; align-items: center; min-height: 32px; border-top: 1px solid var(--line); font-size: 14px; }
.mo-kv dt { color: var(--ink2); } .mo-kv dd { margin: 0; font-weight: 600; text-align: right; }
.mo-acts { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; margin-top: 14px; }
.mo-acts button { height: 48px; border-radius: 12px; font: 600 15px var(--round); transition: transform .15s var(--out), background-color .2s; }
.mo-acts button:active { transform: scale(.97); }
.mo-act-ghost { background: #e6d9ca; } .mo-act-main { background: var(--ink); color: #fff; }
.mo-act-main:disabled { opacity: .45; cursor: not-allowed; }

.mo-tray-body { display: flex; flex-direction: column; flex: 1; min-height: 0; margin-top: 12px; }
.mo-tray-list { flex: 1; min-height: 60px; overflow-y: auto; margin: 0 -4px; padding: 0 4px; }
.mo-line { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mo-line-th { width: 52px; height: 52px; border-radius: 8px; background: #e6d8c7 center / cover; display: grid; place-items: center; }
.mo-line-th svg { width: 34px; height: 34px; fill: none; stroke: var(--brown); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.mo-line b { display: block; font: 600 15px/1.25 var(--round); }
.mo-line small { display: block; font-size: 12.5px; color: var(--ink2); }
.mo-line-r { display: grid; justify-items: end; gap: 6px; }
.mo-line-r strong { font: 600 15px var(--round); font-variant-numeric: tabular-nums; }
.mo-step { display: inline-flex; align-items: center; height: 30px; border-radius: 15px; background: #fff; }
.mo-step button { width: 30px; height: 30px; font: 600 16px/1 var(--round); border-radius: 50%; transition: transform .15s var(--out); }
.mo-step button:active { transform: scale(.9); }
.mo-step output { min-width: 44px; text-align: center; font: 600 12.5px var(--round); font-variant-numeric: tabular-nums; }
.mo-empty { display: grid; justify-items: center; gap: 10px; padding: 36px 10px; text-align: center; color: var(--ink2); }
.mo-empty .mo-critter { position: relative; width: 110px; height: 96px; }
.mo-sum { padding-top: 12px; }
.mo-sumrow { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink2); padding: 3px 0; }
.mo-sumrow.is-tot { font: 600 20px var(--round); color: var(--ink); padding-top: 6px; }
.mo-min { height: 4px; margin: 8px 0 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.mo-min i { display: block; height: 100%; background: var(--ok); transition: width .3s var(--out); }
.mo-minline { font: 500 12.5px var(--round); color: var(--ink2); }
.mo-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; padding: 0; border: 0; }
.mo-chips legend { width: 100%; padding: 0; margin-bottom: 6px; font: 600 13px var(--round); }
.mo-chips button { height: 34px; padding: 0 12px; border-radius: 17px; background: #fff; border: 1px solid transparent; font: 600 13px var(--round); font-variant-numeric: tabular-nums; transition: background-color .2s, color .2s, transform .15s var(--out); }
.mo-chips button:active { transform: scale(.96); }
.mo-chips button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.mo-chips.is-err legend { color: var(--accent); }
.mo-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.mo-lab { display: grid; gap: 5px; font: 600 13px var(--round); }
.mo-lab input { height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: 400 15px var(--body); color: var(--ink); min-width: 0; }
.mo-lab input.is-err { border-color: var(--accent); }
.mo-stepper { display: flex; align-items: center; justify-content: space-between; height: 42px; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.mo-stepper button { width: 42px; height: 40px; font: 600 18px var(--round); }
.mo-stepper output { font: 600 16px var(--round); }

/* conferma: pillola che si stringe, spunta, coriandoli */
.mo-done { position: relative; display: grid; place-items: center; height: 50px; width: 100%; margin: 14px auto 0; border-radius: 25px; background: var(--ink); color: #fff; font: 600 15px var(--round); transition: width .4s cubic-bezier(.45, 0, .2, 1), background-color .3s, transform .15s var(--out); }
.mo-done:active { transform: scale(.97); }
.mo-done span { transition: opacity .25s; }
.mo-done svg { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.mo-done svg path { stroke-dasharray: 16; stroke-dashoffset: 16; transition: stroke-dashoffset .4s cubic-bezier(.3, 0, .2, 1); }
.mo-done.is-press span, .mo-done.is-round span { opacity: 0; }
.mo-done.is-round { width: 50px; background: var(--ok); }
.mo-done.is-tick svg path { stroke-dashoffset: 0; }
.mo-burst { position: fixed; inset: 0; z-index: 70; pointer-events: none; width: 100vw; height: 100vh; }
.mo-okcard { display: grid; justify-items: center; gap: 8px; padding: 30px 10px; text-align: center; animation: mo-in .35s var(--out) both; }
.mo-okcard b { font: 600 34px var(--round); letter-spacing: .02em; }
.mo-okcard p { color: var(--ink2); }

.mo-toast { position: fixed; z-index: 80; left: 50%; bottom: 24px; max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 12px; background: var(--ink); color: #fff; font: 500 14px/1.35 var(--round); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: transform .3s var(--out), opacity .3s var(--out); }
.mo-toast.is-on { transform: translate(-50%, 0); opacity: 1; }
body.mo-lock .mo-toast { bottom: auto; top: 16px; transform: translate(-50%, -20px); }
body.mo-lock .mo-toast.is-on { transform: translate(-50%, 0); }

/* ---------- adattivo ---------- */
@media (max-width: 1180px) {
  .mo-grid { grid-template-columns: repeat(3, 1fr); }
  .mo-pill { display: none; }
}
@media (max-width: 900px) {
  :root { --headh: 72px; }
  .mo-head { grid-template-columns: 48px 1fr 48px; align-items: center; padding-bottom: 0; }
  .mo-nav { display: none; }
  .mo-burger { display: grid; }
  .mo-logo { padding-top: 4px; }
  .mo-logo-arc { width: 74px; height: 21px; top: -2px; }
  .mo-logo-arc text { font-size: 9px; }
  .mo-logo-face { width: 34px; height: 20px; margin-top: 8px; }
  .mo-logo b { font-size: 24px; }
  .mo-logo small { display: none; }
  .mo-tools { gap: 0; }
  .mo-split { grid-template-columns: 1fr; }
  .mo-card { border-radius: 12px 12px 0 0; padding: 48px 24px 140px; }
  .mo-story .mo-photo { border-radius: 0 0 12px 12px; min-height: 0; aspect-ratio: 4 / 3.4; }
  .mo-split-rev .mo-photo, .mo-dove .mo-photo { min-height: 0; aspect-ratio: 4 / 3; }
  .mo-filo-txt { padding: 36px 8px 170px; }
  .mo-dove-txt { padding: 8px 0 32px; }
  .mo-dove .mo-split { display: flex; flex-direction: column; }
  .mo-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .mo-foot-top { grid-template-columns: 1fr 1fr; }
  .mo-logo-foot { grid-column: 1 / -1; }
  .mo-corsi-stage { top: var(--headh); }
  .mo-corsi-card { --side: 5%; }
}
@media (max-width: 560px) {
  .mo-hero { height: calc(74vh + var(--headh)); min-height: 540px; }
  .mo-hero-cta .mo-btn { min-height: 42px; padding: 0 18px; }
  .mo-h2 { font-size: 32px; }
  .mo-slice-bd { padding: 12px; }
  .mo-slice h3 { font-size: 15.5px; }
  .mo-slice p { display: none; }
  .mo-slice-ft { flex-direction: column; align-items: stretch; gap: 8px; padding-top: 10px; }
  .mo-cutbtn { justify-content: center; }
  .mo-shelf-hero { width: 78vw; height: 380px; }
  .mo-prod { width: 64vw; }
  .mo-prod-art { height: 250px; }
  .mo-critter-peek { width: 160px; height: 136px; }
  .mo-critter-wheat { width: 170px; height: 162px; }
  .mo-sheet { bottom: 0; left: 0; margin-left: 0; width: 100vw; border-radius: 22px 22px 0 0; max-height: 92vh; }
  .mo-tray { top: auto; right: 0; bottom: 0; width: 100vw; height: 92vh; border-radius: 22px 22px 0 0; transform: translateY(calc(100% + 30px)); }
  .mo-row2 { grid-template-columns: 1fr; }
  .mo-cut-g b { font-size: 48px; }
  .mo-foot-bot { flex-direction: column; align-items: flex-start; }
}

/* ---------- movimento ridotto ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .mo-hero-img { transform: none; }
  .mo-ribbon-run { flex-wrap: wrap; width: auto; justify-content: center; }
  .mo-ribbon-run span[aria-hidden="true"] { display: none; }
  .mo-corsi { height: auto; }
  .mo-corsi-stage { position: relative; top: 0; height: 80vh; }
  .mo-corsi-card { clip-path: none; }
}

/* ---------- testata trasparente sopra il primo piano, bianca appena scorri ---------- */
.mo-head { transition: background-color .3s var(--out), box-shadow .3s var(--out), color .3s var(--out); }
.mo-hero { margin-top: calc(-1 * var(--headh)); padding-top: var(--headh); }
.mo-hero::before { content: ""; position: absolute; z-index: 1; inset: 0 0 auto; height: 34%; background: linear-gradient(rgb(30 16 10 / .5), transparent); pointer-events: none; }
.mo-hero-copy { z-index: 2; }
.mo-head.is-over { background: transparent; box-shadow: none; color: #fff; }
.mo-head.is-over .mo-logo, .mo-head.is-over .mo-logo-face { color: #fff; }
.mo-head.is-over .mo-logo-arc text { fill: #fff; }
.mo-head.is-over .mo-logo-face .body { fill: transparent; }
.mo-head.is-over .mo-traybtn svg { stroke: #fff; }
.mo-head.is-over .mo-traybtn:hover { background: rgb(255 255 255 / .14); }
.mo-head.is-over .mo-pill { border-color: rgb(255 255 255 / .55); }
.mo-head.is-over .mo-burger i { background: #fff; }
.mo-logo-arc text, .mo-traybtn svg, .mo-burger i { transition: fill .3s, stroke .3s, background-color .3s; }
