/* Market – sunny bistro: friendly serif, pill shapes, produce colours, chalkboard menu cards. */
.e-market .display{font-weight:400;letter-spacing:-.02em}
.e-market h2{font-weight:400}
/* Pill eyebrow only in the hero; section eyebrows are quiet brand-green labels. */
.e-market .eyebrow{color:var(--brand);letter-spacing:.1em}
.e-market .hero-collage .eyebrow{display:inline-block;justify-self:start;padding:.35rem .9rem;border-radius:999px;background:color-mix(in srgb,var(--accent) 28%,var(--paper));color:var(--ink);letter-spacing:.08em}
.e-market .t-brand .eyebrow,.e-market .t-ink .eyebrow{color:color-mix(in srgb,var(--paper) 82%,var(--accent))}
.e-market :focus-visible,.e-market .field input:focus-visible,.e-market .field textarea:focus-visible,.e-market .chip input:focus-visible+span{outline-color:var(--brand)}
.e-market .t-brand :focus-visible,.e-market .t-ink :focus-visible{outline-color:var(--accent)}

/* Hero: tighter top, display sized to fit the column without hyphenation. */
.e-market .hero-collage{padding-block:clamp(28px,4.5vw,72px) clamp(48px,7vw,104px)}
@media (min-width:901px){.e-market .hero-collage{grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr)}}
@media (max-width:900px){.e-market .hero-collage-art{max-width:560px;width:100%}}
.e-market .hero-collage .display{font-size:clamp(2.5rem,1.1rem + 3.7vw,4.6rem);line-height:1.02;max-width:13ch;hyphens:manual;-webkit-hyphens:manual;text-wrap:balance}
.e-market .hero-collage .hero-text{max-width:34rem}
.e-market .hero-collage-art .c2,.e-market .hero-collage-art .c3{outline:6px solid var(--paper);outline-offset:0}

/* Menu cards: visible on every tone, chalkboard warmth. */
.e-market .v-card .mn{gap:1.4rem}
/* The chalkboard cards are the frame: no engine double hairline around the whole card. */
.e-market .s-menu.v-card .mn{border:0;outline:0;border-radius:0;padding:0}
.e-market .v-card .mn-group{padding:clamp(1.4rem,3vw,2.4rem);background:color-mix(in srgb,var(--brand) 5%,var(--paper));border:1px solid color-mix(in srgb,var(--brand) 14%,transparent);border-radius:var(--radius)}
.e-market .t-surface .v-card .mn-group,.e-market .s-menu.t-surface .mn-group{background:var(--paper)}
.e-market .mn-group h3{border-bottom-color:color-mix(in srgb,var(--brand) 22%,transparent)}
.e-market .mn-price{color:var(--brand);font-weight:600}
.e-market .mn-tags{color:color-mix(in srgb,var(--accent) 55%,var(--ink));font-weight:600;letter-spacing:.06em}
.e-market .s-menu .s-note{max-width:44rem}
@media (min-width:760px){.e-market .s-menu .mn{grid-template-columns:repeat(2,minmax(0,1fr))}}

.e-market .t-surface{background:color-mix(in srgb,var(--brand) 9%,var(--paper))}

/* Statement on brand: wider measure so the green beat fills the row. */
/* Pass 4: the Filosofia beat reads as a pull-quote, not a wall: ~22ch at a calmer size, ~30px on phones. */
@media (min-width:901px){.e-market .t-brand.v-reveal .st-text{max-width:22ch;font-size:clamp(2.3rem,1rem + 2.5vw,3.6rem);line-height:1.12}}
@media (max-width:900px){.e-market .t-brand.v-reveal .st-text{font-size:clamp(1.75rem,1.2rem + 2.2vw,2.3rem);line-height:1.15}}

/* Captions: confident, in the display face. */
.e-market .rail-item figcaption,.e-market .mosaic-item figcaption{font-family:var(--f-display);font-size:1.05rem;color:var(--ink)}

/* Closing band: generous, centred, warm. */
.e-market .s-cta.v-band .cta{justify-items:center;text-align:center}
.e-market .s-cta.v-band .cta-copy{display:grid;justify-items:center}
.e-market .s-cta.v-band .cta-title{max-width:18ch;font-size:clamp(2.2rem,1.2rem + 3.6vw,4.8rem);text-wrap:balance}
.e-market .s-cta.v-band .cta-text{margin-inline:auto;text-wrap:pretty}
.e-market .s-cta.v-band .actions{justify-content:center}
.e-market .t-brand .cta-text{color:color-mix(in srgb,var(--paper) 86%,transparent)}

/* Hours without media (opening hours band): full container on the page axis, copy left, times right. */
.e-market .s-hours .hr:not(:has(.hr-media)){max-width:none}
@media (min-width:901px){
.e-market .s-hours .hr:not(:has(.hr-media)) .hr-copy{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);column-gap:clamp(3rem,7vw,8rem);align-items:start}
.e-market .s-hours .hr:not(:has(.hr-media)) .hr-copy>.s-head,.e-market .s-hours .hr:not(:has(.hr-media)) .hr-text{grid-column:1}
.e-market .s-hours .hr:not(:has(.hr-media)) .hr-list{grid-column:2;grid-row:1 / span 2;align-self:end;font-size:1.08rem}
.e-market .s-hours .hr:not(:has(.hr-media)) .hr-copy>.btn,.e-market .s-hours .hr:not(:has(.hr-media)) .hr-copy>.actions,.e-market .s-hours .hr:not(:has(.hr-media)) .hr-copy>a{grid-column:2;justify-self:start}
.e-market .s-hours .hr:not(:has(.hr-media)) .hr-text{margin-bottom:0}
.e-market .s-hours .hr:not(:has(.hr-media)) .s-title{font-size:clamp(2.4rem,1rem + 2.7vw,3.8rem)}
}
.e-market .s-hours .hr-list dd{font-weight:600;color:var(--ink)}

/* Storia: features images get a soft frame rhythm. */
.e-market .ft-item h3{font-size:clamp(1.35rem,1.1rem + .7vw,1.7rem)}
/* Three habits: always a row of three from tablet up (no orphan card at 768). */
@media (min-width:640px){.e-market .s-features .ft-grid-items:has(> :nth-child(3):last-child){grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (min-width:640px) and (max-width:899px){.e-market .s-features .ft-item h3{font-size:1.2rem}.e-market .s-features .ft-item p{font-size:.92rem}}
/* Menu cards hug their content instead of stretching to the tallest neighbour. */
.e-market .v-card .mn{align-items:start}
/* Demo bar sits on dark ink: keep its focus ring light (brand green would be ~2:1 there). */
.e-market .demo-bar :focus-visible{outline-color:var(--paper)}

/* ===== Design pass 2 – "La lavagna del Pratello" =====
   Brand idea: a neighbourhood market bistro where the day's produce writes the menu.
   Signature: Young Serif + Archivo on cream; the menu and the timetable live on an ink-green chalkboard with yolk-yellow prices;
   a yellow "produce sticker" dot marks every eyebrow; photos float in soft rounded frames, the cappuccino is a round sticker.
   Motion stays subtle (reveal, gentle float); nothing pins. */
.e-market .eyebrow::before{content:"";display:inline-block;width:.62em;height:.62em;border-radius:50%;background:var(--accent);margin-inline-end:.65em;vertical-align:.02em}
.e-market .hero-collage .eyebrow::before{background:var(--brand)}
.e-market .t-ink .eyebrow{color:var(--accent)}
.e-market .t-brand .eyebrow::before{background:var(--accent)}

/* Hero collage: the cappuccino becomes a round sticker, the toast card sits slightly askew like a pinned photo. */
.e-market .hero-collage-art .c3{border-radius:50%}
.e-market .hero-collage-art .c2{rotate:2.2deg}
@media (prefers-reduced-motion:reduce){.e-market .hero-collage-art .c2{rotate:none}}

/* Chalkboard menu (ink tone): chalk lines, cream serif dish names, yolk-yellow prices. */
.e-market .mn-name{font-family:var(--f-display);font-weight:400;font-size:1.1rem;line-height:1.25}
.e-market .mn-price{font-variant-numeric:lining-nums tabular-nums}
.e-market .s-menu.t-ink .mn-group{background:color-mix(in srgb,var(--paper) 4%,var(--ink));border:1px solid color-mix(in srgb,var(--paper) 14%,transparent)}
.e-market .s-menu.t-ink .mn-group h3{color:var(--paper);border-bottom:1px dashed color-mix(in srgb,var(--paper) 30%,transparent)}
.e-market .s-menu.t-ink .mn-price{color:var(--accent)}
.e-market .s-menu.t-ink .mn-dots{border-bottom-style:dotted;border-color:color-mix(in srgb,var(--paper) 30%,transparent)}
.e-market .s-menu.t-ink .mn-tags{color:color-mix(in srgb,var(--accent) 70%,var(--paper))}
.e-market .s-menu.t-ink .s-note{color:var(--muted)}
.e-market .s-menu .s-more{margin-top:clamp(1.6rem,3vw,2.4rem)}
.e-market .s-menu .mn-dish{transition:transform .25s ease}
@media (hover:hover){.e-market .s-menu .mn-dish:hover{transform:translateX(4px)}[dir=rtl] .e-market .s-menu .mn-dish:hover,.e-market[dir=rtl] .s-menu .mn-dish:hover{transform:translateX(-4px)}}
@media (prefers-reduced-motion:reduce){.e-market .s-menu .mn-dish{transition:none}.e-market .s-menu .mn-dish:hover{transform:none}}

/* Story meta = market label. */
.e-market .alt-meta{justify-self:start;font-size:.78rem;font-weight:600;letter-spacing:.04em;color:var(--brand);background:color-mix(in srgb,var(--accent) 22%,var(--paper));padding:.32rem .85rem;border-radius:999px}

/* Timetable on the chalkboard (opening hours). */
.e-market .s-hours.t-ink .hr-list dt{color:var(--paper)}
.e-market .s-hours.t-ink .hr-list dd{color:var(--accent);font-family:var(--f-display);font-weight:400;font-size:clamp(1.3rem,1rem + .9vw,1.7rem)}
.e-market .s-hours.t-ink .hr-list div{align-items:baseline;border-bottom:1px dashed color-mix(in srgb,var(--paper) 26%,transparent)}
.e-market .s-hours.t-ink .hr-list{border-top:1px dashed color-mix(in srgb,var(--paper) 26%,transparent)}
.e-market .s-hours.t-ink .hr-text{color:var(--muted)}

/* Full-bleed room photo (Storia): caption in the display face. */
.e-market .fb-item figcaption{font-family:var(--f-display);font-size:1.05rem;color:var(--muted)}

/* Closing poster on paper: big serif question, separated from the footer by a chalk line. */
.e-market .s-cta.v-poster:not(:has(.cta-bg)) .cta-title{font-size:clamp(2.8rem,1rem + 6.4vw,7rem);max-width:12ch;line-height:1;text-wrap:balance}
.e-market .s-cta.v-poster:not(:has(.cta-bg)) .cta-text{max-width:36rem}
.e-market .s-hours.t-ink .hr-list dd{white-space:nowrap;font-size:clamp(1.15rem,.95rem + .6vw,1.45rem)}
@media (min-width:901px){.e-market .s-hours.t-ink .hr:not(:has(.hr-media)) .hr-copy{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}
.e-market .s-cta.v-poster:not(:has(.cta-bg)) .cta{justify-items:center;text-align:center}
.e-market .s-cta.v-poster:not(:has(.cta-bg)) .cta-copy{display:grid;justify-items:center}
.e-market .s-cta.v-poster:not(:has(.cta-bg)) .cta-text{margin-inline:auto;text-wrap:pretty}
.e-market .s-cta.v-poster:not(:has(.cta-bg)) .actions{justify-content:center}
/* Hero collage note (engine `note`): today's dish as a small market label with the produce-sticker dot. */
.e-market .hero-collage .hero-note{display:flex;align-items:baseline;gap:.6rem;margin-top:clamp(1rem,2vw,1.4rem);font-size:.92rem;line-height:1.4;color:var(--ink)}
.e-market .hero-collage .hero-note::before{content:"";flex:none;width:.55rem;height:.55rem;border-radius:50%;background:var(--accent);transform:translateY(-.12em)}

/* ===== Design pass 3 – polish =====
   One easing for every state (--settle). Typography: balanced headings/labels, pretty paragraphs, lining figures for times and prices.
   Motion: the pinned toast "drops" onto the board, produce-sticker dots pop as sections arrive, chalk rules draw in on the board.
   Nothing is hidden by motion; reduced-motion and data-motion=off get the static end state. */
.e-market{--settle:cubic-bezier(.2,.7,.2,1)}

/* Typography finesse */
.e-market :is(.s-title,.cta-title,.page-title,.mn-group h3,.alt-copy h3,.ft-item h3,.st-text,.fq-item summary span){text-wrap:balance}
.e-market :is(.hero-text,.s-intro,.s-note,.alt-copy p,.ft-item p,.cta-text,.hr-text,.fq-a p,.mn-desc,.page-lead){text-wrap:pretty}
.e-market :is(.eyebrow,figcaption,.alt-meta,.hero-note,.st-attr){text-wrap:balance}
.e-market :is(.hr-list dd,.hero-note,.alt-meta){font-variant-numeric:lining-nums tabular-nums}
.e-market .mn-name{text-wrap:balance}
.e-market .mn-desc{max-width:44ch}

/* Buttons: settle easing, firm press, warm wash on secondary. */
.e-market .btn{transition:background-color .3s var(--settle),color .3s var(--settle),border-color .3s var(--settle),box-shadow .3s var(--settle),translate .15s var(--settle)}
.e-market .btn:active{translate:0 1px;box-shadow:none}
.e-market .btn-secondary:hover{background:color-mix(in srgb,var(--accent) 16%,transparent)}
.e-market :is(.t-ink,.t-brand) .btn-secondary:hover{background:color-mix(in srgb,var(--paper) 10%,transparent)}
.e-market .btn-primary:hover{box-shadow:0 10px 24px -14px color-mix(in srgb,var(--brand) 80%,transparent)}
.e-market :focus-visible{outline-offset:4px}

/* Nav: the current page is a brand-green produce-sticker dot (theme nav_current: dot, --nav-mark); hover adds a smaller yolk dot. */
.e-market{--nav-mark:var(--brand)}
@media (min-width:901px){
.e-market .nav ul a::after{content:"";position:absolute;inset-inline-start:calc(50% - 2.5px);bottom:.35rem;width:5px;height:5px;border-radius:50%;background:var(--accent);scale:0;transition:scale .3s var(--settle)}
.e-market .nav ul a:hover::after{scale:.7}
.e-market .nav ul a[aria-current]::after{scale:1;background:var(--nav-mark)}
}
/* Phone sheet: the sticker sits after the big serif label (engine's .js-scoped sheet rule does not match, see ENGINE note). */
@media (max-width:900px){.e-market .nav ul a[aria-current]::after{inset-inline-start:auto;inset-inline-end:-1rem;bottom:50%;width:7px;height:7px;translate:0 50%}}

/* Menu board: hovering a dish lights its chalk leader in yolk yellow. */
.e-market .mn-dots{transition:border-color .3s var(--settle)}
@media (hover:hover){.e-market .s-menu.t-ink .mn-dish:hover .mn-dots{border-color:var(--accent)}.e-market .s-menu.t-ink .mn-dish:hover .mn-name{color:var(--paper)}}
.e-market .s-menu .mn-dish{transition:transform .3s var(--settle)}

/* Hero collage: hover straightens the pinned toast and lifts the sticker (pointer devices). */
.e-market .hero-collage-art .c2,.e-market .hero-collage-art .c3{transition:rotate .5s var(--settle),scale .5s var(--settle)}
@media (hover:hover){.e-market .hero-collage-art:hover .c2{rotate:0deg}.e-market .hero-collage-art:hover .c3{scale:1.04}}

/* Images: story and gallery photos warm up a touch on hover; captions in muted serif. */
@media (hover:hover){
.e-market :is(.mosaic-item,.alt-media,.ft-thumb,.ft-item .frame) img{transition:scale .8s var(--settle)}
.e-market .mosaic-item:hover img{scale:1.03}
}
.e-market .mosaic-item figcaption{color:color-mix(in srgb,var(--ink) 86%,var(--paper))}

/* FAQ: brand colour on hover / open, icon in brand. */
.e-market .fq-item summary{transition:color .25s var(--settle)}
.e-market .fq-item summary:hover,.e-market .fq-item[open] summary{color:var(--brand)}
.e-market .fq-item[open] .fq-icon{color:var(--brand)}

/* Form: field hover darkens, focus gets a soft yolk ring next to the brand outline. */
.e-market .field :is(input,textarea){transition:border-color .2s var(--settle),box-shadow .2s var(--settle)}
.e-market .field :is(input,textarea):hover{border-color:color-mix(in srgb,var(--ink) 55%,var(--paper))}
.e-market .field :is(input,textarea):focus{border-color:var(--brand);box-shadow:0 0 0 4px color-mix(in srgb,var(--accent) 30%,transparent)}

/* Mobile 390 as a designed screen */
@media (max-width:520px){
/* Thumb zone: full-width pills come from theme mobile_buttons: full; bands/poster stay a centred 22rem column. */
.e-market .s-cta:is(.v-band,.v-poster) .actions{max-width:22rem;margin-inline:auto}
.e-market .hero-collage .actions{margin-top:1.6rem}
/* Storia: the opening photo is landscape-cut, so the statement starts within the first screen. */
.e-market .s-statement.v-split .st-media{aspect-ratio:4/3;height:auto}
.e-market .s-statement.v-split .st-media img{height:100%}
/* Gallery captions: smaller, no lead rule in the two-column grid. */
.e-market .mosaic-item figcaption{font-size:.95rem;line-height:1.3}
.e-market .mosaic-item:not(.m0) figcaption::before{display:none}
}

/* Choreography (motion allowed only) */
@media (prefers-reduced-motion:no-preference){
:root:not([data-motion=off]) .e-market .hero-collage-art .c2{animation:mk-pin .9s var(--settle) .35s backwards}
:root:not([data-motion=off]) .e-market .hero-collage-art .c3{animation:mk-sticker .7s var(--settle) .6s backwards}
@supports (animation-timeline:view()){
:root:not([data-motion=off]) .e-market .s-head .eyebrow::before,:root:not([data-motion=off]) .e-market .cta .eyebrow::before{animation:mk-dot linear both;animation-timeline:view();animation-range:entry 10% entry 70%}
:root:not([data-motion=off]) .e-market .s-menu.t-ink .mn-group h3{background:linear-gradient(var(--accent),var(--accent)) no-repeat 0 100%/0 1px;animation:mk-chalk linear both;animation-timeline:view();animation-range:entry 20% cover 40%}
[dir=rtl] .e-market .s-menu.t-ink .mn-group h3,.e-market[dir=rtl] .s-menu.t-ink .mn-group h3{background-position:100% 100%}
}
}
@keyframes mk-pin{from{rotate:-4deg;translate:0 -14px}to{rotate:2.2deg;translate:0 0}}
@keyframes mk-sticker{from{scale:.86;rotate:-12deg}to{scale:1;rotate:0deg}}
@keyframes mk-dot{from{scale:0}60%{scale:1.25}to{scale:1}}
@keyframes mk-chalk{to{background-size:3.5rem 1px}}
@media (prefers-reduced-motion:reduce){
.e-market .btn,.e-market .hero-collage-art :is(.c2,.c3),.e-market .mn-dots,.e-market .fq-item summary,.e-market .field :is(input,textarea),.e-market .nav a::after{transition:none}
.e-market .btn:active{translate:none}
.e-market .hero-collage-art:hover :is(.c2,.c3){rotate:none;scale:none}
.e-market .mosaic-item:hover img{scale:none}
}

/* ===== Pass 4 – Bologna imagery =====
   Storia opens on a split hero (kitchen photo): same market-label eyebrow and display rhythm as the home collage. */
.e-market .hero-split .eyebrow{display:inline-block;justify-self:start;padding:.35rem .9rem;border-radius:999px;background:color-mix(in srgb,var(--accent) 28%,var(--paper));color:var(--ink);letter-spacing:.08em}
.e-market .hero-split .eyebrow::before{background:var(--brand)}
.e-market .hero-split .display{font-size:clamp(2.5rem,1.1rem + 3.7vw,4.6rem);line-height:1.02;max-width:12ch;text-wrap:balance}
.e-market .hero-split .hero-text{max-width:34rem;text-wrap:pretty}
.e-market .hero-split .fig-cap{font-family:var(--f-display);font-size:1rem;color:var(--muted)}
/* Storia statement beside the market photo: a calmer size so the quote sits next to the image, not over it. */
@media (min-width:901px){.e-market .s-statement.v-split .st-text{font-size:clamp(2.1rem,1rem + 2.1vw,3.3rem);line-height:1.12}}
