/* MM Bakery and Pastry — mock-up. Palette dai loro materiali: inchiostro del logo (crosta scura), latte del
   ricciolo «M», farina (carta fredda, non crema), bianco del banco. Display Bricolage Grotesque, testo Figtree. */
@font-face { font-family: 'Bricolage'; src: url(../fonts/Bricolage.woff2) format('woff2'); font-weight: 500 800; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url(../fonts/Figtree.woff2) format('woff2'); font-weight: 400 700; font-display: swap; }

:root {
  --crust: #2B1914;      /* inchiostro del logo */
  --crust-2: #3A241C;
  --latte: #B8926E;      /* ricciolo della M */
  --latte-dk: #8C6A4C;
  --flour: #F6F3EE;
  --white: #FFFFFF;
  --line: rgba(43, 25, 20, .12);
  --text: #2B1914;
  --muted: #6E5A50;
  --on-dark: #F6F3EE;
  --on-dark-muted: rgba(246, 243, 238, .74);
  --r: 18px;
  --gut: clamp(20px, 5vw, 64px);
  --display: 'Bricolage', 'Arial Narrow', system-ui, sans-serif;
  --body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--flour); color: var(--text); font: 400 17px/1.6 var(--body); overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 650; letter-spacing: -.025em; line-height: 1.02; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--crust); color: var(--flour); padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }
.nb { white-space: nowrap; }
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--gut); }
:focus-visible { outline: 2px solid var(--latte); outline-offset: 3px; }

/* ---------- bottoni ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font: 600 16px/1 var(--body); text-decoration: none; white-space: nowrap; transition: background-color .25s, color .25s, border-color .25s; }
.btn--lg { min-height: 56px; padding: 16px 28px; font-size: 17px; }
.btn--flour { background: var(--flour); color: var(--crust); }
.btn--flour:hover { background: var(--white); }
.btn--latte { background: var(--latte); color: var(--crust); }
.btn--latte:hover { background: #c9a582; }
.btn--crust { background: var(--crust); color: var(--flour); }
.btn--crust:hover { background: var(--crust-2); }
.btn--ghost-light { border: 1.5px solid rgba(246, 243, 238, .55); color: var(--on-dark); }
.btn--ghost-light:hover { border-color: var(--flour); background: rgba(246, 243, 238, .08); }

/* ---------- stato aperto/chiuso ---------- */
.status { display: inline-flex; align-items: center; gap: 8px; font: 600 14px/1.2 var(--body); }
.status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: .6; }
.status[data-open="true"]::before { background: #6FBF73; opacity: 1; box-shadow: 0 0 0 4px rgba(111, 191, 115, .22); }
.status[data-open="false"]::before { background: #D9826B; opacity: 1; }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 40; display: flex; align-items: center; gap: 24px;
  padding: 12px var(--gut); transition: background-color .35s, box-shadow .35s, translate .4s var(--ease); }
.nav.is-solid { background: rgba(246, 243, 238, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.nav.is-hidden { translate: 0 -110%; }
.nav__brand { display: block; width: 64px; flex: none; }
.nav__logo { width: 64px; height: auto; }
.nav__logo--dark, .nav.is-solid .nav__logo--light { display: none; }
.nav.is-solid .nav__logo--dark { display: block; }
.nav__links { display: none; gap: 28px; margin-left: auto; font-weight: 500; font-size: 15px; }
.nav__links a { text-decoration: none; color: var(--on-dark); opacity: .9; }
.nav.is-solid .nav__links a { color: var(--text); }
.nav__links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }
.nav__cta { display: none; margin-left: auto; min-height: 42px; padding: 10px 18px; font-size: 15px; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; background: var(--crust); color: var(--on-dark); isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media picture, .hero__img { width: 100%; height: 100%; }
.hero__img { object-fit: cover; object-position: 50% 45%; }
.hero__shade { position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse 80% 60% at 50% 52%, rgba(43, 25, 20, .62), rgba(43, 25, 20, .38) 70%),
              linear-gradient(180deg, rgba(43, 25, 20, .55) 0%, rgba(43, 25, 20, .2) 30%, rgba(43, 25, 20, .35) 70%, rgba(43, 25, 20, .85) 100%); }
.hero__stack { width: 100%; max-width: 1100px; padding: 110px var(--gut) 120px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; }
.hero__title { font-size: clamp(52px, min(17vw, 17svh), 176px); font-weight: 700; line-height: .94; letter-spacing: -.035em; text-wrap: balance; text-shadow: 0 2px 30px rgba(43, 25, 20, .35); }
.hero__sub { max-width: 44ch; font-size: clamp(17px, 1.6vw, 20px); color: var(--on-dark-muted); text-wrap: pretty; }
.hero__cta .btn { min-width: 232px; }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 6px; }
.hero__status { color: var(--on-dark); background: rgba(43, 25, 20, .45); padding: 8px 14px; border-radius: 999px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

/* ---------- bande ---------- */
.band { padding: clamp(80px, 11vw, 150px) 0; }
.band--flour { background: var(--flour); }
.band--white { background: var(--white); }
.band--crust { background: var(--crust); color: var(--on-dark); }
.h2 { font-size: clamp(38px, 6.4vw, 92px); text-wrap: balance; }
.h3 { font-size: clamp(26px, 3vw, 38px); }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 46ch; text-wrap: pretty; }
.band--crust .lead { color: var(--on-dark-muted); }
.shot { margin: 0; overflow: hidden; border-radius: var(--r); background: #E6DED4; }
.band--crust .shot { background: var(--crust-2); }
.shot img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- pane ---------- */
.pane__grid { display: grid; gap: 40px; align-items: center; }
.pane__photo { aspect-ratio: 4 / 3.6; }
.pane__text { display: grid; gap: 28px; }
.manifesto { font-family: var(--display); font-weight: 500; font-size: clamp(24px, 2.6vw, 36px); line-height: 1.22; letter-spacing: -.015em; text-wrap: pretty; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tags li { padding: 9px 16px; border-radius: 999px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); font-weight: 500; font-size: 15px; }
.lilt { display: grid; gap: 28px; margin-top: clamp(64px, 9vw, 120px); align-items: end; }
.lilt__photo { aspect-ratio: 4 / 3; }
.lilt__text { display: grid; gap: 14px; max-width: 46ch; }
.lilt__text p { color: var(--muted); }

/* ---------- dolci ---------- */
.dolci { padding-top: 0; }
.dolci__head { display: grid; gap: 18px; margin-bottom: 40px; }
.dolci__feature { display: grid; gap: 28px; }
.dolci__big { aspect-ratio: 4 / 4.4; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 72%; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 0 calc(var(--gut) * -1); padding: 0 var(--gut) 8px; scroll-padding-left: var(--gut); scrollbar-width: none; overscroll-behavior-x: contain; }
.rail::-webkit-scrollbar { display: none; }
.item { scroll-snap-align: start; display: grid; gap: 8px; align-content: start; }
.item .shot { aspect-ratio: 1; margin-bottom: 6px; }
.item h3 { font-size: 22px; letter-spacing: -.01em; }
.item p { font-size: 15px; color: var(--muted); line-height: 1.45; }

/* ---------- torte ---------- */
.torte__head { display: grid; gap: 18px; margin-bottom: 44px; }
.cakes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cake { margin: 0; display: grid; gap: 10px; align-content: start; }
.cake .shot { aspect-ratio: 1; }
.cake--a { grid-column: 1 / -1; }
.cake figcaption { font-size: 14px; line-height: 1.4; color: var(--on-dark-muted); }
.cake figcaption b { color: var(--on-dark); font-weight: 600; }
.torte__more { display: grid; gap: 14px; margin-top: 40px; color: var(--on-dark-muted); max-width: 900px; margin-left: auto; margin-right: auto; }
.quote-inline { font-family: var(--display); font-size: clamp(22px, 2.4vw, 30px); line-height: 1.2; color: var(--latte); letter-spacing: -.01em; }
.order { margin-top: clamp(56px, 8vw, 96px); padding: clamp(28px, 4vw, 56px); border-radius: 26px; background: var(--latte); color: var(--crust);
  display: grid; gap: 26px; scroll-margin-top: 90px; }
.order__title { font-size: clamp(38px, 5.4vw, 76px); }
.order__text { display: grid; gap: 14px; }
.order__text p { max-width: 44ch; font-size: 18px; }
.order__actions { display: grid; gap: 12px; align-content: center; }
.order .btn--flour { background: var(--crust); color: var(--flour); }
.order .btn--flour:hover { background: var(--crust-2); }
.order .btn--ghost-light { border-color: rgba(43, 25, 20, .55); color: var(--crust); }
.order .btn--ghost-light:hover { background: rgba(43, 25, 20, .07); border-color: var(--crust); }
.order__hint { font-size: 14px; color: var(--crust); justify-self: center; }

/* ---------- salato ---------- */
.salato__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.salato__text { grid-column: 1 / -1; display: grid; gap: 18px; margin-bottom: 26px; }
.salato__a, .salato__b { aspect-ratio: 4 / 5; }

/* ---------- instagram ---------- */
.insta__head { display: grid; gap: 22px; justify-items: start; margin-bottom: 36px; }
.insta__strip { display: grid; grid-auto-flow: column; grid-auto-columns: 46%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 var(--gut); scroll-padding-left: var(--gut); scrollbar-width: none; overscroll-behavior-x: contain; }
.insta__strip::-webkit-scrollbar { display: none; }
.insta__strip li { scroll-snap-align: start; }
.insta__strip a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 12px; background: #E6DED4; }
.insta__strip img { width: 100%; height: 100%; object-fit: cover; transition: scale .6s var(--ease); }
.insta__strip a:hover img { scale: 1.04; }

/* ---------- recensioni ---------- */
.reviews .wrap { display: grid; gap: 36px; justify-items: start; }
.rating { display: flex; align-items: center; gap: 10px; margin-top: -18px; font-weight: 500; color: var(--muted); }
.rating b { font-family: var(--display); font-size: 26px; color: var(--text); }
.reviews__grid { display: grid; gap: 14px; width: 100%; }
.review { margin: 0; padding: 28px; background: var(--white); border-radius: var(--r); display: grid; gap: 14px; align-content: start; }
.review p { font-size: 18px; line-height: 1.5; }
.review footer { font-size: 14px; color: var(--muted); font-weight: 500; }
.stars { color: var(--latte-dk); letter-spacing: 3px; font-size: 17px !important; }
.stars__off { opacity: .28; }
.review--short { align-content: center; justify-items: center; text-align: center; }
.review--short .stars { font-size: 26px !important; }

/* ---------- dove ---------- */
.dove__grid { display: grid; gap: 40px; }
.dove__text { display: grid; gap: 22px; align-content: start; }
.dove__text .h2 { font-size: clamp(34px, 4.8vw, 68px); }
.status--light { color: var(--text); }
.week { border-collapse: collapse; width: 100%; max-width: 460px; font-size: 16px; }
.week th, .week td { padding: 10px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.week td { text-align: right; font-variant-numeric: tabular-nums; }
.week tr.is-today th, .week tr.is-today td { font-weight: 700; }
.week tr.is-today th::after { content: ' · oggi'; color: var(--latte-dk); font-weight: 600; }
.contatti { font-style: normal; display: grid; gap: 6px; }
.contatti a { font-family: var(--display); font-size: 30px; font-weight: 650; text-decoration: none; letter-spacing: -.01em; }
.contatti span { color: var(--muted); }
.dove__side { display: grid; gap: 14px; align-content: start; }
.dove__shop { aspect-ratio: 4 / 3; }
.map { border-radius: var(--r); overflow: hidden; background: var(--flour); }
.map__load { all: unset; box-sizing: border-box; cursor: pointer; width: 100%; min-height: 220px; display: grid; place-items: center; align-content: center; gap: 8px; padding: 24px; text-align: center;
  background: radial-gradient(circle at 50% 40%, rgba(184, 146, 110, .22), transparent 60%), var(--flour); }
.map__load:focus-visible { outline: 2px solid var(--latte); outline-offset: -4px; }
.map__pin { width: 22px; height: 22px; border-radius: 50% 50% 50% 0; rotate: -45deg; background: var(--crust); box-shadow: 0 0 0 6px rgba(43, 25, 20, .1); margin-bottom: 6px; }
.map__addr { font-weight: 600; }
.map__hint { font-size: 14px; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; }
.map__frame { display: block; width: 100%; height: 320px; border: 0; }
.map__cta { justify-self: start; }

/* ---------- footer ---------- */
.foot { background: var(--crust); color: var(--on-dark-muted); padding: 64px 0 120px; font-size: 15px; }
.foot__grid { display: grid; gap: 28px; justify-items: center; text-align: center; }
.foot__logo { width: 150px; }
.foot__info { display: grid; gap: 10px; }
.foot a { color: var(--on-dark); }
.foot__domain { font-family: var(--display); font-size: 20px; color: var(--latte); letter-spacing: .01em; }

/* ---------- action bar mobile ---------- */
.actionbar { position: fixed; z-index: 50; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom));
  display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 6px; padding: 6px; border-radius: 999px;
  background: rgba(43, 25, 20, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 10px 30px rgba(43, 25, 20, .3);
  transition: translate .45s var(--ease); }
.actionbar a { display: grid; place-items: center; min-height: 46px; border-radius: 999px; color: var(--flour); text-decoration: none; font-weight: 600; font-size: 15px; }
.actionbar a.is-main { background: var(--latte); color: var(--crust); }
.actionbar.is-away { translate: 0 140%; }

/* ---------- stati JS (niente transform in CSS sugli elementi animati) ---------- */
.js:not(.reduce) .hero__title, .js:not(.reduce) .hero__sub, .js:not(.reduce) .hero__cta, .js:not(.reduce) .hero__status { visibility: hidden; }

/* ---------- tablet / desktop ---------- */
@media (min-width: 768px) {
  .nav { padding: 16px var(--gut); }
  .nav__brand, .nav__logo { width: 76px; }
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; margin-left: 8px; }
  .actionbar { display: none; }
  .foot { padding-bottom: 64px; }
  .pane__grid { grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 96px); }
  .lilt { grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 5vw, 72px); }
  .dolci__head { grid-template-columns: 1fr 1fr; align-items: end; gap: 40px; }
  .dolci__feature { grid-template-columns: 0.9fr 1.1fr; align-items: start; gap: clamp(20px, 3vw, 40px); }
  .dolci__big { position: sticky; top: 100px; }
  .rail { grid-auto-flow: row; grid-template-columns: 1fr 1fr; grid-auto-columns: auto; overflow: visible; margin: 0; padding: 0; gap: 28px 20px; }
  .rail .item:last-child { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; column-gap: 20px; }
  .rail .item:last-child .shot { grid-row: span 3; aspect-ratio: 4 / 3; margin: 0; }
  .torte__head { grid-template-columns: 1fr 1fr; align-items: end; gap: 40px; }
  .cakes { grid-template-columns: 2fr 1fr 1fr; gap: 18px; }
  .cake--a { grid-column: 1; grid-row: 1 / 3; }
  .cake--a .shot { aspect-ratio: auto; height: 100%; min-height: 0; }
  .cake--a { grid-template-rows: 1fr auto; }
  .torte__more { text-align: center; justify-items: center; }
  .order { grid-template-columns: 1.3fr 1fr; align-items: center; }
  .salato__grid { grid-template-columns: 1.1fr 1fr 1fr; gap: 20px; align-items: end; }
  .salato__text { grid-column: auto; margin: 0 0 20px; align-self: center; }
  .salato__b { margin-bottom: 60px; }
  .insta__head { grid-template-columns: 1fr auto; align-items: end; }
  .insta__strip { grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); max-width: 1280px; margin: 0 auto; overflow: visible; }
  .reviews__grid { grid-template-columns: 1.25fr 1fr 0.6fr; align-items: stretch; }
  .hero__cta .btn { min-width: 0; }
  .dove__grid { grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); }
  .foot__grid { grid-template-columns: auto 1fr; justify-items: start; text-align: left; align-items: center; gap: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
