/* TIGRELLA — pagina /menu (quella del QR code): il PDF «Menu Digitale» del cliente in HTML, pensato per il telefono.
   Pagina leggera e autonoma (niente Elementor/GSAP): solo Besley + questo foglio + menu.js.
   #2D5744 #F9F2E6 #E0A526 #1E6F93 #171310 vengono sostituiti da rebrand.mjs con la palette. */
@font-face { font-family: "Besley"; font-weight: 400 900; font-style: normal; font-display: swap; src: url("fonts/Besley-wght.woff2") format("woff2"); }
@font-face { font-family: "Besley"; font-weight: 400 900; font-style: italic; font-display: swap; src: url("fonts/Besley-Italic-wght.woff2") format("woff2"); }

:root { --green: #2D5744; --cream: #F9F2E6; --yellow: #E0A526; --blue: #1E6F93; --dark: #171310; --bar: 58px; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--cream); color: var(--green); font: 400 17px/1.35 "Besley", Georgia, serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
p, li { text-wrap: balance; }

/* ── copertina + indice (pagine 1–2 del PDF): riempie il primo schermo ── */
.tm-cover { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 44px; background: var(--green); color: var(--cream); text-align: center; padding: 48px 20px 56px; }
.tm-logo { font-weight: 700; font-size: 34px; line-height: 1; letter-spacing: -.01em; }
.tm-logo a { display: inline-block; padding: .62em 1.15em; border: 1.5px solid currentColor; border-radius: 50%; text-decoration: none; }
.tm-cover-sub { display: block; margin-top: 16px; font-style: italic; font-weight: 500; font-size: 20px; letter-spacing: 0; }
.tm-index { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.tm-index a { display: block; padding: 10px 8px; font-weight: 800; font-size: clamp(32px, 9.6vw, 52px); line-height: 1.05; letter-spacing: .01em; text-decoration: none; }
.tm-index a:hover, .tm-index a:focus-visible { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* ── barra dei capitoli: compare quando l'indice esce dallo schermo ── */
.tm-tabs { position: fixed; top: 0; left: 0; right: 0; z-index: 10; height: var(--bar); background: var(--cream); box-shadow: 0 1px 0 rgba(45, 87, 68, .14), 0 6px 18px rgba(23, 19, 16, .08);
  transform: translateY(-110%); visibility: hidden; transition: transform .28s ease, visibility 0s linear .28s; }
.tm-tabs.is-on { transform: none; visibility: visible; transition: transform .28s ease; }
.tm-tabs ul { height: 100%; display: flex; align-items: center; gap: 6px; padding: 0 10px; overflow-x: auto; scrollbar-width: none; }
.tm-tabs ul::-webkit-scrollbar { display: none; }
.tm-tabs li:first-child { margin-left: auto; } .tm-tabs li:last-child { margin-right: auto; } /* centrati, ma scorrono se non ci stanno */
.tm-tabs a { display: block; padding: 8px 12px 9px; border-radius: 999px; border: 1.5px solid transparent; font-style: italic; font-weight: 600; font-size: 16px; line-height: 1; text-decoration: none; color: var(--green); white-space: nowrap; }
.tm-tabs a[aria-current="true"] { background: var(--c); border-color: var(--c); color: var(--on, var(--cream)); }
.tm-tabs a:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
@media (max-width: 379px) { .tm-tabs ul { gap: 4px; padding: 0 8px; } .tm-tabs a { padding: 7px 10px 8px; font-size: 15px; } }
@media (max-width: 339px) { .tm-tabs a { padding: 6px 8px 7px; font-size: 14px; } }

/* ── capitoli ──────────────────────────────────────────────────────── */
[id] { scroll-margin-top: calc(var(--bar) + 16px); } /* link diretti (es. /menu#bimbi dalla home): non sotto la barra */
.tm-sec { --ink: var(--green); --paper: var(--cream); color: var(--ink); background: var(--paper); padding: 64px 20px 72px; scroll-margin-top: calc(var(--bar) - 1px); }
.tm-sec--fondo-verde { --ink: var(--cream); --paper: var(--green); --tag-bg: var(--cream); --tag-ink: var(--green); border-top: 1.5px solid rgba(249, 242, 230, .28); }
.tm-sec--verde { --ink: var(--green); }
.tm-sec--giallo { --ink: var(--yellow); --pill-bg: var(--yellow); --pill-ink: #fff; }
.tm-sec--blu { --ink: var(--blue); --tag-bg: var(--blue); --tag-ink: var(--cream); }
.tm-sec:not(.tm-sec--fondo-verde) + .tm-sec { border-top: 2px solid color-mix(in srgb, var(--ink) 40%, transparent); } /* filo tra due capitoli chiari */
.tm-sec-inner { max-width: 440px; margin: 0 auto; text-align: center; }
.tm-sec-title { font-weight: 800; font-size: clamp(34px, 10.4vw, 56px); line-height: 1; letter-spacing: .01em; margin-bottom: 44px; }

/* titolo nell'ovale; con l'etichetta storta a destra (come «a cena») il testo si sposta un po' a sinistra */
.tm-oval { position: relative; display: block; width: min(92%, 360px); margin: 0 auto 18px; padding: .2em .5em .16em; border: 1.5px solid currentColor; border-radius: 50%; font-style: italic; font-weight: 600; font-size: clamp(22px, 7vw, 28px); line-height: 1.15; white-space: nowrap; }
.tm-oval--tag { padding-left: .4em; padding-right: 1.2em; }
.tm-tag { position: absolute; right: -5%; top: 50%; padding: .32em .7em .36em; border-radius: 50%; background: var(--tag-bg); color: var(--tag-ink); font-style: normal; font-weight: 600; font-size: clamp(16px, 4.8vw, 19px); line-height: 1; white-space: nowrap; transform: translateY(-18%) rotate(-15deg); }
.tm-pill { display: table; margin: -6px auto 22px; padding: .34em 1.5em .4em; border-radius: 50%; background: var(--pill-bg); color: var(--pill-ink); font-style: italic; font-weight: 600; font-size: 17px; line-height: 1; }

/* le formule */
.tm-formule { display: grid; gap: 52px; }
.tm-kicker { font-weight: 600; font-size: 21px; letter-spacing: .02em; margin: 8px 0 4px; }
.tm-desc { font-size: 18px; line-height: 1.5; }
.tm-price { margin: 16px 0 4px; font-style: italic; font-weight: 600; font-size: 32px; line-height: 1; }
.tm-note { font-size: 15px; line-height: 1.4; }
.tm-extra { margin-top: 56px; display: grid; gap: 6px; font-weight: 600; font-size: 19px; }

/* tigelle e dolcini */
.tm-gruppi { display: grid; gap: 48px; }
.tm-voci { display: grid; gap: 14px; }
.tm-nome { display: block; font-weight: 600; font-size: 19px; line-height: 1.2; letter-spacing: .015em; }
.tm-ing { display: block; margin-top: 3px; font-size: 16px; line-height: 1.25; }
.tm-sec--giallo .tm-nome, .tm-sec--giallo .tm-ing, .tm-sec--giallo .tm-righe { font-weight: 600; } /* giallo su chiaro: un filo più pieno per leggerlo */

/* bevande */
.tm-righe { display: grid; gap: 12px; font-size: 18px; line-height: 1.4; }
.tm-righe--stretto { gap: 4px; }
.tm-righe em { font-weight: 500; }

/* ── piede ─────────────────────────────────────────────────────────── */
.tm-foot { background: var(--green); color: var(--cream); text-align: center; padding: 56px 20px calc(40px + env(safe-area-inset-bottom)); }
.tm-foot-logo { display: inline-block; padding: .55em 1em; border: 1.5px solid currentColor; border-radius: 50%; font-weight: 700; font-size: 22px; line-height: 1; text-decoration: none; }
.tm-foot-links { margin: 30px 0 34px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.tm-btn { display: inline-block; padding: 15px 26px 14px; border-radius: 999px; border: 2px solid var(--cream); font-weight: 800; font-size: 14px; line-height: 1; letter-spacing: .05em; text-decoration: none; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.tm-btn--pieno { background: var(--yellow); border-color: var(--yellow); color: var(--dark); }
.tm-btn:hover, .tm-btn:focus-visible { background: var(--cream); border-color: var(--cream); color: var(--green); }
.tm-legal { font-size: 13.5px; line-height: 1.6; opacity: .85; }
.tm-legal span { display: block; }

/* ── da tablet in su: più colonne, stesso ordine di lettura ────────── */
@media (min-width: 760px) {
  .tm-cover { padding: 64px 32px 80px; }
  .tm-sec { padding: 96px 32px 104px; }
  .tm-sec-inner { max-width: 940px; }
  .tm-sec--fondo-verde .tm-sec-inner { max-width: 440px; }
  .tm-sec-title { margin-bottom: 64px; }
  .tm-gruppi { display: block; columns: 2; column-gap: clamp(48px, 7vw, 88px); }
  .tm-gruppo { break-inside: avoid; margin-bottom: 56px; }
}
@media (min-width: 1000px) { /* le tre formule affiancate */
  .tm-sec--fondo-verde .tm-sec-inner { max-width: 1060px; }
  .tm-formule { grid-template-columns: repeat(3, 1fr); gap: 48px; align-items: start; }
  .tm-formule .tm-oval { width: 88%; font-size: 26px; }
  .tm-formule .tm-tag { font-size: 17px; }
}
