/* Ciao Pais – menù da stampare (menu-stampa.html), stile "classico" scelto da Paolo il 18/11/2026:
   carta avorio, cornice seppia, titoli rossi, acquerello di montagne e abeti in fondo. Fogli A4. */
:root {
  --carta: #F4EEE3; --seppia: #7A5534; --seppia-chiara: #B79677; --inchiostro: #2E2118; --grigio: #5A4636; --rosso: #AC202C;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: #DAD5CC; color: var(--inchiostro); font-family: "EB Garamond", "Noto Serif SC", serif; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
[lang^="zh"] .ms-foglio, [lang^="zh"] .ms-foglio * { font-style: normal !important; }

/* barra in alto (solo a schermo) */
.ms-barra { position: sticky; top: 0; z-index: 5; background: #13201A; color: #fff; font-family: "Archivo", system-ui, sans-serif; }
.ms-barra-dentro { max-width: 1100px; margin: 0 auto; padding: 12px 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.ms-lingue { display: flex; flex-wrap: wrap; gap: 6px; }
.ms-lingue button, .ms-stampa { font: inherit; border-radius: 8px; min-height: 40px; padding: 6px 14px; cursor: pointer; }
.ms-lingue button { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .35); }
.ms-lingue button[aria-pressed="true"] { background: #fff; color: #13201A; border-color: #fff; font-weight: 700; }
.ms-stampa { background: var(--rosso); color: #fff; border: 0; font-weight: 700; }
.ms-aiuto { flex-basis: 100%; margin: 0; font-size: .85rem; color: rgba(255, 255, 255, .75); }
:focus-visible { outline: 3px solid #2C6BED; outline-offset: 2px; }
.ms-attesa { text-align: center; font-size: 1.2rem; padding: 60px 16px; }

/* fogli */
.ms-fogli { display: flex; flex-direction: column; align-items: center; gap: 24px; padding: 24px 12px 60px; }
.ms-foglio { position: relative; width: 210mm; height: 297mm; flex: none; overflow: hidden; background: var(--carta) url("../img/menu-stampa/carta.svg") center / 100% 100% no-repeat; box-shadow: 0 10px 30px -12px rgba(40, 25, 10, .45); }
.ms-foglio::before, .ms-foglio::after { content: ""; position: absolute; pointer-events: none; }
.ms-foglio::before { inset: 26px; border: 1.2px solid var(--seppia); }
.ms-foglio::after { inset: 31px; border: .6px solid var(--seppia-chiara); }
.ms-acquerello { position: absolute; left: 32px; right: 32px; bottom: 32px; width: calc(100% - 64px); height: 140px; display: block; }
.ms-area { position: absolute; left: 70px; right: 70px; top: 52px; bottom: 182px; display: flex; flex-direction: column; }
.ms-corpo { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }

/* intestazioni */
.ms-testa { display: flex; flex-direction: column; align-items: center; text-align: center; flex: none; }
.ms-logo { height: 150px; width: auto; }
.ms-montagne { width: 230px; height: 60px; }
.ms-motto { display: flex; align-items: center; gap: 16px; width: 100%; margin-top: 12px; }
.ms-motto::before, .ms-motto::after { content: ""; flex: 1; border-bottom: 1px solid var(--seppia); }
.ms-motto span { font-style: italic; font-size: 21px; color: var(--seppia); }
.ms-testa-piccola .ms-motto { margin-top: 4px; }
.ms-testa-piccola .ms-motto::before, .ms-testa-piccola .ms-motto::after { border-color: var(--seppia-chiara); }
.ms-testa-piccola .ms-motto span { font-size: 17px; }

/* portate e piatti */
.ms-tit { display: flex; align-items: baseline; gap: 14px; margin: 16px 0 6px; }
.ms-tit h2 { margin: 0; font-style: italic; font-weight: 500; font-size: 36px; line-height: 1.1; color: var(--rosso); }
.ms-tit::after { content: ""; flex: 1; border-bottom: 1px solid var(--seppia); transform: translateY(-6px); }
.ms-nota { font-style: italic; font-size: 13px; color: var(--grigio); line-height: 1.35; margin: -2px 0 6px; }
.ms-piatto { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 24px; padding: 2px 0; break-inside: avoid; }
.ms-nome { font-weight: 600; font-size: 16px; line-height: 1.3; }
.ms-desc { font-style: italic; font-size: 13.5px; color: var(--grigio); line-height: 1.3; padding-left: 16px; }
.ms-prezzo { font-weight: 500; font-size: 16px; line-height: 1.3; white-space: nowrap; }
.ms-icone { display: inline-flex; gap: 4px; vertical-align: -2px; margin-left: 6px; }
.ms-ic { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 50%; flex: none; }
.ms-ic svg { width: 10px; height: 10px; }
.ms-ic-gf { color: #AC202C; background: #F3DCDA; }
.ms-ic-veg { color: #56652F; background: #E4E8D3; }
.ms-ic-dec { color: #2B4C9B; background: #DFE4F0; }
.ms-riga { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 15px; line-height: 1.4; }
.ms-voce { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.ms-voce strong { font-weight: 600; }
.ms-sep { color: var(--seppia-chiara); padding: 0 4px; }

/* fondo dell'ultimo foglio */
.ms-piede { margin-top: auto; padding-top: 12px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--grigio); line-height: 1.35; }
.ms-coperto { display: flex; justify-content: space-between; font-size: 16px; font-weight: 600; color: var(--inchiostro); }
.ms-coperto span:last-child { font-weight: 500; }
.ms-legenda { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--inchiostro); }
.ms-legenda span { display: inline-flex; align-items: center; gap: 6px; }
.ms-avvisi { font-style: italic; }

.anteprima-bar { position: fixed; left: 0; right: 0; bottom: 0; background: #E9B23A; color: #13201A; text-align: center; padding: 8px; font: 600 14px/1.3 "Archivo", system-ui, sans-serif; z-index: 6; }

@page { size: A4; margin: 0; }
@media print {
  body { background: none; }
  .ms-barra, .anteprima-bar { display: none !important; }
  .ms-fogli { display: block; padding: 0; }
  .ms-foglio { box-shadow: none; break-after: page; page-break-after: always; }
  .ms-foglio:last-child { break-after: auto; page-break-after: auto; }
}
@media screen and (max-width: 840px) {
  .ms-fogli { align-items: flex-start; overflow-x: auto; }
}
