/* Menu pubblico (/menu): design system di pizzalto.com (styles.css del sito, 09/11/2026).
   Font Fraunces (titoli) e Hanken Grotesk (testo), raggi quasi nulli, palette per stagione. */

:root {
    --font-display: "Fraunces", "Times New Roman", serif;
    --font-body: "Hanken Grotesk", system-ui, sans-serif;
    --maxw: 1340px;
    --pad: clamp(20px, 5vw, 84px);
    --hdr: 64px;
    --r: 2px;
    --ease: cubic-bezier(.22, .61, .36, 1);
}

/* Stagioni come sul sito: la pagina mette data-season, :has porta i colori anche su html (sfondo dell'overscroll). */
html:has(.pm[data-season="inverno"]) {
    --bg: #edf0f2; --surface: #f7f9fa; --ink: #1b2024; --ink-2: #434a51; --muted: #626b73;
    --line: #cfd6db; --line-strong: #bcc5cc; --accent: #2f5d80; --on-accent: #eef1f3;
    --menu-bg: #161b20; --menu-ink: #e7ecf0; --menu-muted: #8d97a1;
}
html:has(.pm[data-season="estate"]) {
    --bg: #fdfcfa; --surface: #faf7f0; --ink: #23201a; --ink-2: #4c4638; --muted: #706756;
    --line: #d9d0bf; --line-strong: #c6bba4; --accent: #2f6043; --on-accent: #f5f1e8;
    --menu-bg: #1d2019; --menu-ink: #eee8da; --menu-muted: #9aa18d;
}

*, *::before, *::after { box-sizing: border-box; }

html { background: var(--bg); scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: .005em;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
h1, h2, p, ul { margin: 0; }
a { color: inherit; text-decoration: none; }

.pm { min-height: 100vh; display: flex; flex-direction: column; }
.pm main { flex: 1; }
.pm-wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

/* ---------- Header: indietro a sinistra, logo al centro ---------- */
.pm-header {
    position: sticky; top: 0; z-index: 20;
    height: var(--hdr);
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
    padding-inline: var(--pad);
    background: color-mix(in srgb, var(--bg) 86%, transparent);
    backdrop-filter: blur(14px) saturate(1.1);
    box-shadow: 0 1px 0 var(--line);
}
.pm-logo { grid-column: 2; height: 38px; width: auto; display: block; }
.pm-back {
    grid-column: 1; justify-self: start;
    display: inline-flex; align-items: center; gap: .6em;
    font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600;
    padding: .75em 1.1em;
    border: 1px solid var(--line-strong); border-radius: var(--r);
    transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.pm-back .arr { font-size: 1.1em; line-height: 1; transition: transform .35s var(--ease); }
.pm-back:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.pm-back:hover .arr { transform: translateX(-3px); }
.pm-back:focus-visible, .pm-tabs a:focus-visible, .pm-catnav a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Titolo e scelta del menu ---------- */
.pm-hero { padding-top: clamp(40px, 7vw, 96px); padding-bottom: clamp(28px, 4vw, 52px); }
.pm-eyebrow {
    display: inline-flex; align-items: center; gap: .7em;
    font-size: .74rem; letter-spacing: .26em; text-transform: uppercase; font-weight: 600;
    color: var(--muted);
}
.pm-eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--accent); }
.pm-tabs { display: flex; flex-wrap: wrap; gap: .5em; margin-top: 1.6em; }
.pm-tabs a {
    font-size: .78rem; letter-spacing: .04em;
    padding: .55em 1.1em;
    border: 1px solid var(--line-strong); border-radius: 100px;
    color: var(--ink-2);
    background: color-mix(in srgb, var(--surface) 72%, transparent);
    transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.pm-tabs a:hover { border-color: var(--ink); color: var(--ink); }
.pm-tabs a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.pm h1 {
    margin-top: .45em;
    font-family: var(--font-display); font-weight: 330;
    font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1.02; letter-spacing: -.018em;
    text-wrap: balance;
}
.pm-lead { margin-top: 1.2em; font-size: clamp(1.06rem, 1.35vw, 1.2rem); line-height: 1.58; color: var(--ink-2); max-width: 46ch; }

/* ---------- Categorie: barra fissa sotto l'header ---------- */
.pm-catnav {
    position: sticky; top: var(--hdr); z-index: 10;
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface) 86%, transparent);
    backdrop-filter: blur(14px);
}
.pm-catnav .pm-wrap {
    display: flex; gap: 1.8em; padding-block: 1.05em;
    overflow-x: auto; scrollbar-width: none; white-space: nowrap;
}
.pm-catnav .pm-wrap::-webkit-scrollbar { display: none; }
.pm-catnav a {
    font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700;
    color: var(--muted); transition: color .25s;
}
.pm-catnav a:hover { color: var(--accent); }

.pm-cat { padding-block: clamp(36px, 5vw, 64px) 0; scroll-margin-top: calc(var(--hdr) + 48px); }
.pm-cat h2 {
    font-family: var(--font-display); font-weight: 330;
    font-size: clamp(1.9rem, 3.4vw, 2.8rem); line-height: 1.05; letter-spacing: -.012em;
    padding-bottom: .5em; border-bottom: 1px solid var(--line-strong);
}

/* ---------- Piatti: due colonne sugli schermi larghi ---------- */
.pm-dishes {
    list-style: none; padding: 0;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr));
    column-gap: clamp(28px, 4vw, 72px);
}
.pm-dishes li { padding-block: 1.1em; border-bottom: 1px solid var(--line); }
.pm-dish { display: flex; align-items: baseline; gap: .7em; }
.pm-dish-name { font-family: var(--font-display); font-weight: 400; font-size: 1.2rem; line-height: 1.25; }
.pm-dish-dots { flex: 1; min-width: 1.5em; border-bottom: 1px dotted var(--line-strong); transform: translateY(-.25em); }
.pm-dish-price { font-weight: 600; font-size: .95rem; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink); }
.pm-dish-desc { margin-top: .35em; font-size: .92rem; line-height: 1.5; color: var(--muted); max-width: 56ch; }

/* ---------- Footer scuro come sul sito ---------- */
.pm-footer {
    margin-top: clamp(56px, 8vw, 110px);
    padding-block: clamp(36px, 5vw, 64px);
    background: var(--menu-bg); color: var(--menu-muted);
    font-size: .88rem; line-height: 1.6;
}
.pm-footer-brand {
    margin-top: 1.4em; color: var(--menu-ink);
    font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 600;
}

@media (min-width: 900px) {
    :root { --hdr: 76px; }
    .pm-logo { height: 46px; }
}
@media (max-width: 380px) {
    .pm-logo { height: 32px; }
    .pm-back { padding: .7em .8em; letter-spacing: .08em; }
}
@media (max-width: 340px) {
    /* Troppo stretto per la scritta: resta la freccia, il nome lo legge lo screen reader. */
    .pm-back .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .pm * { transition: none !important; }
}
