/* Bloomì – La piada nel bosco
   Palette ricavata dal logo: salvia, sabbia, marrone, crema */
:root {
  --cream: #f7f2e8;
  --cream-2: #efe6d6;
  --paper: #fffdf9;
  --tan: #c2a287;
  --tan-2: #e3d3c1;
  --sage: #617360;   /* salvia del logo scurita del 6%: testo e pulsanti almeno 4,5:1 (era #718670) */
  --sage-d: #4c5c4b;
  --sage-dd: #36423a;
  --sage-l: #dfe6da;
  --brown: #4f311d;
  --ink: #2f241b;
  --muted: #6e6156;
  --coral: #b15231;  /* terracotta: titoletti del menu e badge Novità almeno 4,5:1 (era #d27a5b) */
  --hero-bg: #fefefe; /* stesso bianco del fondo del video */

  --f-logo: "Questrial", "Century Gothic", system-ui, sans-serif;
  --f-tag: "Oswald", "Arial Narrow", sans-serif;
  --f-quote: "Cormorant Garamond", Georgia, serif;
  --f-body: "DM Sans", system-ui, -apple-system, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --radius: 22px;
  --shadow: 0 18px 50px -24px rgba(79, 49, 29, .35);

  /* hero: il riquadro contiene la piada completa (1904×1788) */
  --hero-h: min(70vh, calc(100svh - 150px));
  --hero-w: calc(var(--hero-h) * 1.0649);
  --side: calc(50vw - var(--gutter) - var(--hero-w) / 2 - 28px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.eyebrow {
  margin: 0; /* anche quando è un titolo (h2 "Perché Bloomì") */
  font-family: var(--f-tag); font-size: 14px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  color: var(--sage);
}
.display {
  font-family: var(--f-logo); font-weight: 400;
  letter-spacing: -.01em; line-height: 1;
  margin: 0; color: var(--brown);
}
.display em { font-family: var(--f-quote); font-style: italic; font-weight: 500; color: var(--sage); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .85em 1.35em; border-radius: 999px; cursor: pointer;
  font: 500 15px/1 var(--f-body); text-decoration: none;
  border: 1.5px solid currentColor; background: none;
  transition: transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--solid { background: var(--sage); border-color: var(--sage); color: #fff; }
.btn--solid:hover { background: var(--sage-d); border-color: var(--sage-d); }
.btn--ghost { color: var(--brown); }
.btn--ghost:hover { background: var(--brown); color: var(--cream); border-color: var(--brown); }
.btn--light { background: var(--cream); color: var(--sage-dd); border-color: var(--cream); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px var(--gutter);
  transition: background .3s ease, box-shadow .3s ease;
}
.nav.is-scrolled { background: rgba(247, 242, 232, .88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(79, 49, 29, .08); }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo img { width: 58px; height: 58px; border-radius: 50%; box-shadow: 0 4px 14px -6px rgba(79, 49, 29, .45); }
.logo__name { font-family: var(--f-logo); font-size: 26px; color: var(--sage); line-height: 1; }
.logo__name small { display: block; font-family: var(--f-tag); font-size: 12px; letter-spacing: .06em; color: var(--brown); margin-top: 3px; }
.nav__links { display: flex; align-items: center; gap: 26px; }
.nav__links a:not(.btn), .nav__links button.link {
  text-decoration: none; font-weight: 500; font-size: 15px; background: none; border: 0; padding: 0; cursor: pointer;
}
.nav__links a:not(.btn):hover, .nav__links button.link:hover { color: var(--sage); }
.nav .btn { padding: .7em 1.1em; font-size: 14px; }

/* ---------- Hero (video scrubbato sullo scroll) ---------- */
.hero { position: relative; height: 420vh; }
.hero__sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  overflow: hidden; background: var(--hero-bg);
}
.hero__title {
  position: relative; width: 100%; height: 100%; margin: 0; font-weight: inherit;
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center;
  gap: clamp(16px, 2.4vw, 40px);
  padding: 90px var(--gutter) 4vh;
}
/* titolo in Cormorant Garamond corsivo (come le didascalie e "tra gli alberi."):
   le dimensioni dipendono dallo spazio libero accanto alla piada (--hero-col), così
   "La piada nel bosco." sta su una riga senza toccarla */
.hero__title { --hero-col: calc((100vw - 2 * var(--gutter) - var(--hero-w)) / 2 - clamp(16px, 2.4vw, 40px)); }
.hero__word {
  position: relative; z-index: 2; min-width: 0;
  font-family: var(--f-quote); font-style: italic; font-weight: 500; text-transform: none;
  line-height: .95; letter-spacing: -.005em; white-space: nowrap;
  color: var(--brown);
}
.hero__word--a { justify-self: end; align-self: start; margin-top: 4vh; text-align: right; font-size: clamp(48px, calc(var(--hero-col) / 3.6), 150px); }
.hero__word--b { justify-self: start; align-self: end; margin-bottom: 5vh; color: var(--sage); font-size: clamp(30px, calc(var(--hero-col) / 7.2), 96px); }
.hero__br { display: none; }
.hero__media {
  position: relative; z-index: 1; display: block;
  height: var(--hero-h); width: var(--hero-w);
  background: var(--hero-bg);
}
/* il video ha già i bordi laterali ricostruiti (1904×1788, come piada-completa.jpg):
   occupa tutto il riquadro, così video e immagine finale coincidono al pixel */
.hero__media video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: fill; background: var(--hero-bg);
}
/* a fine apertura l'immagine completa sostituisce il video (identica all'ultimo fotogramma) */
.hero__full { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.no-motion .hero__full.is-on { opacity: 1; transition: opacity .6s ease; }
.hero__captions {
  position: absolute; z-index: 3; left: var(--gutter); bottom: 9vh;
  width: min(280px, var(--side)); height: 3.6em;
  font-family: var(--f-quote); font-style: italic; font-size: clamp(19px, 1.9vw, 26px); line-height: 1.15; color: var(--brown);
}
.hero__captions p { position: absolute; inset: 0 auto auto 0; margin: 0; }
.js .hero__captions p:not(:first-child) { opacity: 0; }
.hero__captions small { display: block; font-family: var(--f-tag); font-style: normal; font-size: 12px; letter-spacing: .16em; color: var(--sage); margin-bottom: 6px; }
.hero__end {
  position: absolute; z-index: 4; left: var(--gutter); bottom: 9vh;
  width: min(300px, var(--side));
  display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
}
.js .hero__end { opacity: 0; visibility: hidden; }
.hero__end p { margin: 0; font-size: clamp(15px, 1.3vw, 18px); color: var(--muted); }
.hero__end .row { display: flex; gap: 10px; flex-wrap: wrap; }
.scroll-hint {
  position: absolute; z-index: 3; right: var(--gutter); top: 50%;
  writing-mode: vertical-rl; font-family: var(--f-tag); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
  display: flex; align-items: center; gap: 12px;
}
.scroll-hint::after { content: ""; width: 1px; height: 60px; background: currentColor; animation: hint 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes hint { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.hero__progress { position: absolute; z-index: 5; left: 0; top: 0; height: 3px; width: 100%; background: var(--sage); transform-origin: left; transform: scaleX(0); }

/* ---------- Tendina a righe (come nel logo) ---------- */
.awning {
  height: 56px;
  background: repeating-linear-gradient(90deg, var(--sage) 0 56px, var(--cream) 56px 112px);
  -webkit-mask: radial-gradient(28px at 28px 100%, transparent 98%, #000) 0 0 / 56px 100%;
          mask: radial-gradient(28px at 28px 100%, transparent 98%, #000) 0 0 / 56px 100%;
}

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; background: var(--sage); color: var(--cream); padding: 20px 0; }
.marquee__track { display: flex; width: max-content; gap: 44px; font-family: var(--f-quote); font-style: italic; font-weight: 500; font-size: clamp(26px, 3.2vw, 42px); white-space: nowrap; }
.marquee__track span { display: inline-flex; align-items: center; gap: 44px; }
.marquee__track span::after { content: "✿"; font-style: normal; color: var(--tan-2); font-size: .6em; }

/* ---------- Manifesto (citazione del menu) ---------- */
.manifesto { padding: clamp(100px, 18vh, 190px) 0 clamp(60px, 10vh, 110px); text-align: center; }
.manifesto__text {
  font-family: var(--f-quote); font-style: italic; font-weight: 500;
  font-size: clamp(40px, 6.4vw, 96px); line-height: 1.02; letter-spacing: -.01em;
  margin: 18px auto 0; max-width: 16ch; color: var(--brown);
}
.manifesto__text em { color: var(--sage); }
.manifesto__sub { max-width: 52ch; margin: 28px auto 0; color: var(--muted); font-size: clamp(17px, 1.5vw, 19px); }

/* ---------- Reasons ---------- */
.reasons { padding-bottom: clamp(80px, 14vh, 150px); }
.reasons__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.reason { background: var(--paper); border-radius: var(--radius); padding: 32px 28px 36px; border: 1px solid rgba(79, 49, 29, .08); }
.reason__n { font-family: var(--f-quote); font-style: italic; font-size: 56px; line-height: 1; color: var(--tan); }
.reason h3 { font-family: var(--f-logo); font-weight: 400; font-size: 28px; color: var(--brown); margin: 16px 0 8px; }
.reason p { margin: 0; color: var(--muted); }

/* ---------- Menu ---------- */
.menu { background: var(--paper); position: relative; padding: clamp(90px, 14vh, 150px) 0; }
.menu__head { display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 28px; margin-bottom: 38px; }
.menu__head img { width: 108px; height: 108px; border-radius: 50%; }
.menu__head .display { font-size: clamp(48px, 7vw, 104px); }
.menu__head p { margin: 10px 0 0; color: var(--muted); max-width: 46ch; }
.menu__flour { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-family: var(--f-quote); font-style: italic; font-size: 19px; color: var(--sage-d); }

.menu__tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); }
.menu__tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; cursor: pointer; border: 1.5px solid rgba(79, 49, 29, .16); background: var(--paper);
  border-radius: 999px; padding: 12px 18px; text-align: left; line-height: 1.15;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.tab b { display: block; font-family: var(--f-tag); font-weight: 500; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--sage); }
.tab span { font-family: var(--f-logo); font-size: 17px; color: var(--brown); }
.tab[aria-selected="true"] { background: var(--sage); border-color: var(--sage); }
.tab[aria-selected="true"] b, .tab[aria-selected="true"] span { color: #fff; }

.menu__tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 22px 0 10px; }
.search {
  flex: 1 1 260px; display: flex; align-items: center; gap: 10px;
  background: var(--cream); border-radius: 999px; padding: 0 16px; border: 1.5px solid transparent;
}
.search:focus-within { border-color: var(--sage); }
.search svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.search input { flex: 1; border: 0; background: none; padding: 13px 0; font: inherit; font-size: 16px; color: var(--ink); outline: none; min-width: 0; }
.chip {
  cursor: pointer; border: 1.5px solid rgba(79, 49, 29, .16); background: var(--paper); border-radius: 999px;
  padding: 10px 14px; font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px;
}
.chip[aria-pressed="true"] { background: var(--brown); border-color: var(--brown); color: var(--cream); }

.menu__panel { margin-top: 26px; }
/* menu statico (senza JavaScript): tutte le sezioni una sotto l'altra */
.menu__sec + .menu__sec { margin-top: 56px; }
.menu__sec > h3.menu__group-title { font-size: 16px; color: var(--sage-d); margin-top: 0; }
.menu__sec > h3.menu__group-title::after { background: rgba(76, 92, 75, .3); }
/* senza JavaScript: niente controlli che non funzionerebbero (schede, ricerca, filtri, chat) */
.no-js .menu__tabs, .no-js .menu__tools, .no-js .menu__ask, .no-js [data-chat-open], .no-js .chat { display: none; }
.menu__blurb { color: var(--muted); margin: 0 0 18px; font-family: var(--f-quote); font-style: italic; font-size: 21px; }
.menu__group-title { font-family: var(--f-tag); font-weight: 500; font-size: 14px; letter-spacing: .16em; text-transform: uppercase; color: var(--coral); margin: 34px 0 6px; display: flex; align-items: center; gap: 12px; }
.menu__group-title::after { content: ""; flex: 1; height: 1px; background: rgba(177, 82, 49, .3); }
.menu__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
.dish { padding: 16px 0; border-bottom: 1px dashed rgba(79, 49, 29, .18); scroll-margin-top: 120px; border-radius: 8px; transition: background .4s ease, box-shadow .4s ease; }
.dish.is-flash { background: var(--sage-l); box-shadow: 0 0 0 10px var(--sage-l); }
.dish__top { display: flex; align-items: baseline; gap: 10px; }
.dish__name { font-family: var(--f-logo); font-size: 21px; color: var(--brown); }
.dish__dots { flex: 1; border-bottom: 1.5px dotted rgba(79, 49, 29, .3); transform: translateY(-4px); min-width: 20px; }
.dish__price { font-family: var(--f-tag); font-size: 19px; font-weight: 500; color: var(--sage-d); white-space: nowrap; }
.dish__ing { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
.badges { display: inline-flex; gap: 6px; align-items: center; }
.badge { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; line-height: 1.4; }
.badge--new { background: var(--coral); color: #fff; }
.badge--hot { background: #f6dcd2; color: #a6402a; }
.badge--veg { background: var(--sage-l); color: var(--sage-dd); }
.menu__empty { padding: 30px 0; color: var(--muted); }
.menu__ask {
  margin-top: 46px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
  background: var(--sage); color: #fff; border-radius: var(--radius); padding: 26px 30px;
}
.menu__ask p { margin: 0; font-family: var(--f-quote); font-style: italic; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.2; }
.menu__note { margin-top: 18px; font-size: 14px; color: var(--muted); }

/* ---------- Il posto ---------- */
.posto { position: relative; background: var(--sage-d); color: var(--cream); overflow: hidden; }
.posto .awning { position: relative; z-index: 2; background: repeating-linear-gradient(90deg, var(--paper) 0 56px, var(--tan-2) 56px 112px); }
.posto__inner { position: relative; z-index: 2; padding-block: clamp(90px, 16vh, 170px); }
.posto .eyebrow { color: var(--tan-2); }
.posto .display { font-size: clamp(44px, 7.4vw, 116px); margin-top: 16px; max-width: 12ch; color: var(--cream); }
.posto .display em { color: var(--tan-2); }
.posto__lead { max-width: 46ch; font-size: clamp(18px, 1.7vw, 21px); margin: 28px 0 0; color: rgba(247, 242, 232, .85); }
.posto__facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 60px; }
.fact { border-top: 1px solid rgba(247, 242, 232, .25); padding-top: 18px; }
.fact strong { display: block; font-family: var(--f-logo); font-weight: 400; font-size: 24px; }
.fact span { color: rgba(247, 242, 232, .72); font-size: 15px; }
/* giorno → sera: due foto sovrapposte, la sera sfuma sopra il giorno con lo scroll */
.scene {
  position: relative; isolation: isolate; overflow: hidden; margin: clamp(48px, 8vh, 90px) 0 0;
  aspect-ratio: 16 / 10; border-radius: var(--radius); background: var(--sage-dd);
  box-shadow: 0 30px 70px -30px rgba(20, 16, 12, .6);
}
.scene__img { position: absolute; inset: 0; display: block; transform-origin: 50% 60%; will-change: transform, opacity; }
.scene__img img { width: 100%; height: 100%; object-fit: cover; }
.scene::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(to top, rgba(20, 16, 12, .62), rgba(20, 16, 12, .18) 38%, transparent 60%); }
.scene__text {
  position: absolute; z-index: 3; left: clamp(20px, 3.4vw, 48px); right: clamp(20px, 3.4vw, 48px); bottom: clamp(18px, 3.6vw, 44px);
  display: grid; font-family: var(--f-quote); font-style: italic; font-weight: 500;
  font-size: clamp(30px, 4.4vw, 64px); line-height: 1.02; color: var(--cream);
  text-shadow: 0 2px 18px rgba(20, 16, 12, .45);
}
.scene__line { grid-area: 1 / 1; }
.scene[data-scene="giorno"] .scene__img--notte, .scene[data-scene="giorno"] .scene__line--notte,
.scene[data-scene="notte"] .scene__img--giorno, .scene[data-scene="notte"] .scene__line--giorno { display: none; }
.leaf { position: absolute; z-index: 1; color: var(--sage); pointer-events: none; }
.leaf--a { width: 260px; right: -40px; top: 18%; transform: rotate(-25deg); }
.leaf--b { width: 180px; left: -30px; bottom: 12%; transform: rotate(35deg); }
.leaf--c { width: 120px; left: 46%; top: 8%; transform: rotate(80deg); }
.leaf svg { width: 100%; height: auto; }

/* ---------- Orari & dove ---------- */
.info { padding: clamp(90px, 16vh, 170px) 0; }
.info__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: start; }
.info .display { font-size: clamp(44px, 6.6vw, 100px); margin-top: 14px; }
.info__card { background: var(--paper); border-radius: var(--radius); padding: 32px; border: 1px solid rgba(79, 49, 29, .08); box-shadow: var(--shadow); }
.info__row { display: flex; justify-content: space-between; gap: 16px; padding: 15px 0; border-bottom: 1px dashed rgba(79, 49, 29, .18); }
.info__row:last-of-type { border-bottom: 0; }
.info__row dt { color: var(--muted); }
.info__row dd { margin: 0; font-weight: 700; text-align: right; color: var(--brown); }
.info__row a { text-decoration: none; }
.info__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.info__list { margin: 0; }
.info__lead { font-size: clamp(18px, 1.7vw, 21px); color: var(--muted); max-width: 36ch; margin: 22px 0 0; }

/* stato in tempo reale (ora italiana) e tabella settimanale, da js/hours-data.js */
.hours-pill, .hours__status { display: inline-flex; align-items: center; gap: 9px; color: var(--brown); }
.hours-pill[hidden], .hours__status[hidden] { display: none; }
.hours-pill { font-size: 13px; font-weight: 500; white-space: nowrap; }
.hours-pill i, .hours__status i { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); flex: none; }
.is-open i { background: #3f8f4f; box-shadow: 0 0 0 4px rgba(63, 143, 79, .16); }
.is-soon i { background: #c9822b; box-shadow: 0 0 0 4px rgba(201, 130, 43, .2); }
.is-closed i { background: #b2533e; }
.hours__status { margin: 0 0 18px; padding: 10px 16px; border-radius: 999px; background: var(--cream); font-size: 16px; font-weight: 700; }
.hours__table { width: 100%; border-collapse: collapse; margin-bottom: 14px; }
.hours__table th, .hours__table td { padding: 10px 12px; border-bottom: 1px dashed rgba(79, 49, 29, .18); }
.hours__table th { text-align: left; font-weight: 500; color: var(--muted); text-transform: capitalize; }
.hours__table td { text-align: right; font-weight: 700; color: var(--brown); }
.hours__table tr.is-off td { color: var(--muted); font-weight: 500; }
.hours__table tr.is-today { background: var(--sage-l); }
.hours__table tr.is-today th { color: var(--sage-dd); font-weight: 700; }
.hours__table tr.is-today th::after { content: 'oggi'; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: var(--sage); color: #fff; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; vertical-align: 2px; }

/* ---------- Footer ---------- */
.footer { background: var(--brown); color: rgba(247, 242, 232, .72); padding: 70px 0 120px; }
.footer__top { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-bottom: 40px; }
.footer__top img { width: 132px; height: 132px; border-radius: 50%; }
.footer__quote { font-family: var(--f-quote); font-style: italic; color: var(--cream); font-size: clamp(30px, 4.6vw, 62px); line-height: 1.05; margin: 0; max-width: 18ch; }
.footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 10px 18px; font-size: 14px; border-top: 1px solid rgba(247, 242, 232, .15); padding-top: 22px; }
.footer__legal { margin: 0; max-width: 72ch; font-size: 13px; line-height: 1.6; color: rgba(247, 242, 232, .78); }
.footer__row a { color: var(--cream); text-underline-offset: 3px; }

/* ---------- Mobile CTA bar ---------- */
.callbar { display: none; }

/* ---------- Reveal helpers ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(40px); }

/* ---------- Chat: la guida del bosco ---------- */
.chat-fab {
  position: fixed; z-index: 70; right: 22px; bottom: 22px;
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  border: 0; border-radius: 999px; padding: 7px 18px 7px 7px;
  background: var(--brown); color: var(--cream); box-shadow: 0 14px 34px -12px rgba(47, 36, 27, .6);
  font-weight: 500; font-size: 15px;
  transition: transform .25s ease, opacity .25s ease;
}
.chat-fab:hover { transform: translateY(-2px); }
.chat-fab img { width: 42px; height: 42px; border-radius: 50%; }
.chat-fab .dot { position: absolute; top: 6px; left: 38px; width: 11px; height: 11px; border-radius: 50%; background: #7fc27a; border: 2px solid var(--brown); }
.chat-open .chat-fab { opacity: 0; pointer-events: none; transform: translateY(10px); }

.chat {
  position: fixed; z-index: 80; right: 22px; bottom: 22px;
  width: min(400px, calc(100vw - 44px)); height: min(640px, calc(100svh - 44px));
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--cream); border-radius: 26px; box-shadow: 0 30px 80px -20px rgba(47, 36, 27, .5);
  border: 1px solid rgba(79, 49, 29, .1);
  transform-origin: bottom right; transform: scale(.92) translateY(14px); opacity: 0; visibility: hidden;
  transition: transform .3s cubic-bezier(.2, .9, .3, 1.2), opacity .2s ease, visibility 0s linear .3s;
}
.chat-open .chat { transform: none; opacity: 1; visibility: visible; transition: transform .3s cubic-bezier(.2, .9, .3, 1.2), opacity .2s ease; }
.chat__head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; background: var(--sage); color: #fff; }
.chat__head img { width: 44px; height: 44px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .6); }
.chat__head b { display: block; font-family: var(--f-logo); font-weight: 400; font-size: 19px; }
.chat__head span { font-size: 13px; opacity: .85; }
.chat__close { margin-left: auto; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .16); color: #fff; cursor: pointer; display: grid; place-items: center; }
.chat__close svg { width: 18px; height: 18px; }
.chat__log { flex: 1; overflow-y: auto; padding: 18px 14px 8px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.msg { max-width: 88%; padding: 11px 14px; border-radius: 18px; font-size: 15px; line-height: 1.45; animation: pop .25s ease; }
.msg p { margin: 0; }
.msg p + p { margin-top: 6px; }
.msg--bot { align-self: flex-start; background: var(--paper); border: 1px solid rgba(79, 49, 29, .08); border-bottom-left-radius: 6px; }
.msg--user { align-self: flex-end; background: var(--sage); color: #fff; border-bottom-right-radius: 6px; }
.msg--typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.msg--typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--tan); animation: blink 1s infinite; }
.msg--typing i:nth-child(2) { animation-delay: .15s; }
.msg--typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } }
.recs { align-self: stretch; display: grid; gap: 8px; animation: pop .3s ease; }
.rec { background: var(--paper); border-radius: 16px; padding: 12px 14px; border: 1px solid rgba(79, 49, 29, .1); }
.rec__top { display: flex; align-items: baseline; gap: 8px; }
.rec__name { font-family: var(--f-logo); font-size: 18px; color: var(--brown); }
.rec__kind { font-family: var(--f-tag); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--sage); }
.rec__price { margin-left: auto; font-family: var(--f-tag); font-weight: 500; color: var(--sage-d); }
.msg__crit { color: var(--muted); }
.rec__ing { margin: 3px 0 0; font-size: 14px; color: var(--muted); }
.rec__why { margin: 6px 0 0; font-size: 13px; color: var(--sage-d); }
.rec__actions { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.rec__go { border: 0; background: none; padding: 0; cursor: pointer; font-size: 13px; font-weight: 700; color: var(--brown); text-decoration: underline; text-underline-offset: 3px; }
.chat__chips { display: flex; gap: 6px; padding: 6px 12px 10px; overflow-x: auto; scrollbar-width: none; }
.chat__chips::-webkit-scrollbar { display: none; }
.chat__chips button { flex: none; cursor: pointer; border: 1.5px solid var(--sage); background: var(--paper); color: var(--sage-d); border-radius: 999px; padding: 8px 12px; font-size: 14px; font-weight: 500; }
.chat__chips button:hover { background: var(--sage); color: #fff; }
.chat__form { display: flex; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid rgba(79, 49, 29, .08); background: var(--paper); }
.chat__form input { flex: 1; min-width: 0; border: 1.5px solid rgba(79, 49, 29, .14); border-radius: 999px; padding: 12px 16px; font: inherit; font-size: 16px; background: var(--cream); outline: none; }
.chat__form input:focus { border-color: var(--sage); }
.chat__form button { width: 46px; height: 46px; flex: none; border-radius: 50%; border: 0; background: var(--brown); color: var(--cream); cursor: pointer; display: grid; place-items: center; }
.chat__form button svg { width: 18px; height: 18px; }
.chat__disclaimer { font-size: 11px; color: var(--muted); text-align: center; padding: 0 12px 8px; background: var(--paper); margin: 0; }
.chat__disclaimer a { color: inherit; text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav__links a:not(.btn), .nav__links button.link { display: none; }
  .reasons__grid { grid-template-columns: 1fr; }
  .posto__facts { grid-template-columns: repeat(2, 1fr); }
  .info__grid { grid-template-columns: 1fr; }
  .menu__head { grid-template-columns: auto 1fr; }
  .menu__head .btn { grid-column: 1 / -1; justify-self: start; }
  .menu__list { grid-template-columns: 1fr; }
  .scroll-hint { display: none; }
}
/* tablet (in verticale): accanto alla piada non c'è spazio, quindi titolo sopra e sotto come su mobile;
   la piada è limitata anche in altezza così le due righe stanno sempre nello schermo */
@media (min-width: 641px) and (max-width: 900px) {
  :root {
    --hero-h: min(calc((100vw - 2 * var(--gutter)) / 1.0649), calc(100svh - 380px));
    --hero-w: calc(var(--hero-h) * 1.0649);
  }
  .hero__title { grid-template-columns: 1fr; grid-template-rows: 1fr auto 1fr; justify-items: center; gap: 16px; padding: 96px var(--gutter) 9vh; }
  .hero__word--a { justify-self: start; align-self: end; margin: 0; text-align: left; font-size: clamp(64px, 11vw, 100px); }
  .hero__word--b { justify-self: end; align-self: start; margin: 0; text-align: right; font-size: clamp(42px, 6.6vw, 60px); }
  .hero__captions { display: none; }
  .hero__end { left: 0; right: 0; bottom: 9vh; width: auto; align-items: center; }
  .hero__end p { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  :root { --hero-w: calc(100vw - 2 * var(--gutter)); --hero-h: calc(var(--hero-w) / 1.0649); }
  .logo img { width: 50px; height: 50px; }
  .hero__title { grid-template-columns: 1fr; grid-template-rows: 1fr auto 1fr; justify-items: center; gap: 10px; padding: 84px var(--gutter) 100px; }
  .hero__word--a { justify-self: start; align-self: end; margin: 0; text-align: left; font-size: clamp(52px, 17vw, 84px); }
  .hero__word--b { justify-self: end; align-self: start; margin: 0; text-align: right; font-size: clamp(36px, 12vw, 58px); }
  .hero__br { display: inline; }
  .hero__captions { display: none; }
  .hero__end { left: 0; right: 0; bottom: 100px; width: auto; align-items: center; }
  .hero__end p { display: none; }
  .menu__head { grid-template-columns: 1fr; }
  .menu__head img { width: 84px; height: 84px; }
  .awning { height: 40px; background-size: auto; -webkit-mask-size: 40px 100%; mask-size: 40px 100%; -webkit-mask-image: radial-gradient(20px at 20px 100%, transparent 98%, #000); mask-image: radial-gradient(20px at 20px 100%, transparent 98%, #000); }
  .awning { background: repeating-linear-gradient(90deg, var(--sage) 0 40px, var(--cream) 40px 80px); }
  .posto .awning { background: repeating-linear-gradient(90deg, var(--paper) 0 40px, var(--tan-2) 40px 80px); }
  .menu__ask { padding: 22px; }
  .scene { aspect-ratio: 4 / 5; }
  .callbar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    position: fixed; z-index: 60; left: 12px; right: 84px; bottom: 12px;
    padding: 7px; border-radius: 999px; background: rgba(47, 36, 27, .92);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  }
  .callbar a { padding: .8em .6em; border: 0; font-size: 14px; }
  .callbar .btn--solid { background: var(--sage); }
  .nav .btn { display: none; }
  .hours-pill { font-size: 12px; }
  .chat-fab { right: 12px; bottom: 12px; padding: 7px; }
  .chat-fab .label { display: none; }
  .chat-fab img { width: 46px; height: 46px; }
  .chat { right: 0; bottom: 0; width: 100vw; height: 100svh; border-radius: 0; border: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero { height: auto; }
  .hero__sticky { position: relative; }
  .js .hero__end, .js [data-reveal], .js .hero__captions p { opacity: 1; visibility: visible; transform: none; }
  .hero__captions { display: none; }
  .scroll-hint::after { animation: none; }
  .chat, .chat-open .chat { transition: none; }
}
