@charset "UTF-8";
:root {
  --ink: #35271f;
  --accent: #834727;
  --paper: #f3ead8;
  --stone: #ece0cc;
  --line: #cbbda6;
  --muted: #6a5949;
  --serif: Newsreader, Georgia, "Times New Roman", serif;
  --header: 84px;
  --dock: 0px;
  --section-gutter: max(5vw, calc((100vw - 1180px) / 2));
  color-scheme: light;
  color: var(--ink);
  background: var(--stone);
  font-family: Archivo, Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header) + 16px); scroll-behavior: auto; }
body { margin: 0; }
body.chat-open { overflow: hidden; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; color: inherit; }
a { color: inherit; text-decoration: none; }
button:disabled { cursor: default; }
svg { width: 24px; height: 24px; flex-shrink: 0; }
img { display: block; max-width: 100%; height: auto; }
figure, p, h1, h2, h3, h4 { margin: 0; }
button:focus-visible, a:focus-visible, input:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
[hidden] { display: none !important; }
.svg-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 0; left: max(16px, env(safe-area-inset-left)); z-index: 300; min-height: 44px; padding: 14px; color: white; background: var(--accent); clip-path: inset(50%); }
.skip-link:focus { top: calc(8px + env(safe-area-inset-top)); clip-path: none; }
.site-header { height: var(--header); position: sticky; top: 0; z-index: 60; display: flex; align-items: center; justify-content: space-between; padding: 0 4vw; border-bottom: 1px solid #35271f1c; background: var(--stone); gap: 32px; }
.wordmark { display: flex; align-items: baseline; gap: 9px; width: max-content; }
.wordmark > span { font: 500 36px/.9 "Barlow Condensed", "Arial Narrow", sans-serif; letter-spacing: .02em; }
.wordmark > small { font-size: 12px; }
.desktop-nav { display: flex; gap: clamp(22px, 2.5vw, 36px); margin-left: auto; font-size: 16px; font-weight: 500; }
.desktop-nav a { display: inline-flex; align-items: center; min-height: 44px; }
.header-menu { display: flex; align-items: center; justify-content: space-between; gap: 26px; min-height: 48px; padding: 0 22px; border: 1px solid var(--accent); border-radius: 28px 28px 28px 8px; color: var(--paper); background: var(--accent); font-size: 14px; font-weight: 600; }
.header-menu svg { width: 19px; height: 19px; }
.menu-visible .header-menu { visibility: hidden; }
/* Apertura: il palco resta fermo sotto l'intestazione e lo scorrimento comanda il video.
   --corsa = tratto del video; --carta = tratto in cui la carta del menu sale sopra il palco.
   Il palco e' alto quanto lo schermo con le barre del browser nascoste (lvh): sul telefono la parte in piu'
   sta sotto le barre, cosi' quando si chiudono non resta una fascia vuota. --sotto = quella parte + la barra in basso. */
:root { --stage-full: calc(100lvh - var(--header)); --stage-vista: calc(100svh - var(--header) - var(--dock)); --sotto: calc(100lvh - 100svh + var(--dock)); --corsa: 200svh; --alza: .6; --carta: calc(var(--stage-vista) * .7); }
.coffee-story { position: relative; isolation: isolate; height: calc(var(--stage-full) + var(--corsa) + var(--carta)); background: #1a120c; }
.story-stage { position: sticky; top: var(--header); height: var(--stage-full); max-width: 100%; overflow: hidden; background: #1a120c; color: #f3ead8; }
.hero-poster, .hero-poster img, .hero-video, .hero-canvas { position: absolute; left: 0; right: 0; bottom: 0; display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 85%; }
.hero-video, .hero-canvas { opacity: 0; }
/* PROVA 19/11 «il caffe e servito»: mentre la carta sale, la ripresa sale con lei e la tazzina resta appoggiata sopra il menu */
.hero-poster img, .hero-video, .hero-canvas { transform: translateY(calc(var(--sale, 0) * var(--alza) * var(--carta) * -1)); }
.hero-video, .hero-canvas { will-change: transform; }
.video-vivo:not(.fotogrammi-vivi):not(.hero-ferma) .hero-video,
.video-vivo.fotogrammi-vivi:not(.hero-ferma) .hero-canvas { opacity: 1; }
/* computer: il bordo alto della ripresa mostra un pezzo del cartello illy (3,6% dell'altezza): resta fuori quadro */
[data-formato=pc] .hero-video, [data-formato=pc] .hero-canvas { height: 108%; object-position: 50% 100%; }
/* stessa regola gia' dal primo disegno (stessa condizione di motion.js): prima il poster cresceva dopo lo script = CLS 0,04 sul pc */
@media not all and (max-aspect-ratio: 1/1) { .hero-poster img { height: 108%; object-position: 50% 100%; } }
/* foto ferma (riduci movimento, risparmio dati, rete lenta): una schermata sola, poi il menu */
.coffee-story.hero-ferma { height: auto; --sotto: 0px; }
.coffee-story.hero-ferma .story-stage { position: relative; top: 0; height: var(--stage-vista); }
.coffee-story.hero-ferma .hero-poster img { transform: none; }
.coffee-story.hero-ferma + .menu-section { margin-top: 0; }
.section-shell { padding: 90px max(var(--section-gutter), env(safe-area-inset-right)) 90px max(var(--section-gutter), env(safe-area-inset-left)); }
.menu-section { position: relative; z-index: 10; margin-top: -1px; background: var(--paper); border-top: 1px solid #35271f1a; }
.menu-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 54px; }
.menu-heading h2 { font-size: clamp(54px, 7vw, 98px); font-weight: 600; line-height: .95; letter-spacing: -.06em; }
.menu-heading > p { margin-right: 8%; font-size: 15px; line-height: 1.55; }
.menu-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 64px; }
.category-tabs { position: sticky; top: calc(var(--header) + 18px); align-self: start; display: flex; flex-direction: column; gap: 0; }
.category-tabs button { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 60px; text-align: left; padding: 12px 8px 12px 0; border: 0; border-bottom: 1px solid var(--line); background: none; font-size: 19px; font-weight: 450; }
.category-tabs button[aria-selected=true] { color: var(--accent); border-color: var(--accent); font-weight: 650; }
.category-tabs button > span { font-size: 22px; }
.category-tabs button[aria-selected=false] > span { opacity: 0; }
.menu-main { min-width: 0; }
.menu-search { display: flex; align-items: center; gap: 14px; min-height: 54px; padding: 0 0 12px; border-bottom: 1px solid var(--line); }
.menu-search > svg { width: 20px; height: 20px; }
.menu-search input { width: 100%; min-width: 0; min-height: 44px; padding: 0; border: 0; outline: none; color: var(--ink); background: transparent; font-size: 16px; }
.menu-search input::placeholder { color: var(--muted); opacity: 1; }
.menu-search input::-webkit-search-cancel-button, .menu-search input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.menu-search button { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; border: 0; background: none; }
#menu-panel { overflow-anchor: none; }
.menu-panel-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 32px 0 8px; }
.menu-panel-heading h3 { font-size: 28px; font-weight: 600; letter-spacing: -.035em; }
.menu-panel-heading > span { color: #6a5949; font-size: 12px; }
.menu-list { list-style: none; padding: 0; margin: 0; }
.menu-item { display: grid; grid-template-columns: minmax(0, 1fr) max-content; align-content: center; align-items: baseline; column-gap: 20px; min-height: 83px; padding: 16px 0; border-bottom: 1px solid #d4c5ae; }
.menu-item h4 { grid-area: 2 / 1; overflow-wrap: anywhere; }
.menu-item .item-price { grid-area: 2 / -2; }
.menu-item p { grid-area: 3 / 1 / auto / -1; }
.item-category { grid-area: 1 / 1 / auto / -1; }
.menu-item h4 { font-size: 17px; line-height: 1.3; font-weight: 500; letter-spacing: -.015em; }
.menu-item p { margin-top: 5px; color: var(--muted); font-size: 13px; line-height: 1.5; max-width: 54ch; text-wrap: pretty; }
.item-price { text-align: right; white-space: nowrap; font-size: 16px; font-variant-numeric: tabular-nums lining-nums; }
.item-price.unknown { font-size: 13px; font-weight: 400; color: #785940; }
.item-category { display: block; margin-bottom: 4px; color: #785940; font-size: 13px; }
.category-aside { display: inline-block; margin-top: 10px; padding: 5px 11px; border: 1px dashed #b6a58c; border-radius: 14px 14px 14px 4px; color: #613619; font-size: 13px; line-height: 1.35; }
.show-more { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 54px; margin-top: 16px; padding: 12px 0; border: 0; border-bottom: 1px solid var(--ink); background: none; text-align: left; font-size: 14px; }
.show-more > span { font-size: 23px; }
.category-note { margin-top: 17px; color: var(--muted); font-size: 12px; line-height: 1.55; text-wrap: pretty; }
.allergen-note { margin-top: 28px; max-width: 64ch; color: var(--muted); font-size: 12px; line-height: 1.65; text-wrap: pretty; }
.allergen-note button { padding: 0; border: 0; background: none; text-decoration: underline; font-size: inherit; }
.empty-results { margin-top: 14px; padding: 12px 14px 8px; border-inline-start: 2px solid var(--accent); background: var(--stone); font-size: 15px; line-height: 1.5; text-wrap: pretty; }
.empty-results button { min-height: 44px; padding: 0; border: 0; color: var(--accent); background: none; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.venue-story { padding: 90px max(var(--section-gutter), env(safe-area-inset-right)) 100px max(var(--section-gutter), env(safe-area-inset-left)); color: var(--paper); background: var(--ink); overflow: clip; }
.venue-intro { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 60px; }
.venue-intro h2 { font: 500 clamp(54px, 7vw, 88px)/1.06 var(--serif); letter-spacing: -.035em; text-wrap: balance; }
.venue-intro > p { color: #e6d7c0; font-size: 15px; line-height: 1.6; padding-bottom: 5px; }
.family-note { max-width: 48ch; margin: -24px 0 52px; color: #e6d7c0; font-size: 16px; line-height: 1.62; text-wrap: pretty; }
.venue-composition { display: grid; grid-template-columns: 1.1fr 1fr; gap: 10%; }
.venue-interior img { width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: center 42%; border-radius: 180px 180px 0 0; }
.venue-interior figcaption { margin-top: 18px; font-size: 13px; color: #e6d7c0; }
.venue-side { display: flex; flex-direction: column; justify-content: space-between; min-width: 0; gap: clamp(24px, 4vw, 50px); }
.venue-words { max-width: 12ch; font: 500 clamp(42px, 5vw, 72px)/1.08 var(--serif); letter-spacing: -.03em; text-wrap: balance; }
.venue-pastry { display: block; max-width: 420px; align-self: end; width: 100%; }
.venue-pastry img { width: 100%; aspect-ratio: 1/1; object-fit: cover; object-position: center 75%; }
.venue-pastry > span { display: flex; justify-content: space-between; align-items: center; gap: 4px; min-height: 56px; font-size: 14px; font-weight: 500; line-height: 1.35; }
.venue-pastry svg { width: 20px; height: 20px; }
.location-section { --section-gutter: max(5vw, calc((100vw - 960px) / 2)); display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: clamp(24px, 5vw, 64px); padding: 76px max(var(--section-gutter), env(safe-area-inset-right)) 76px max(var(--section-gutter), env(safe-area-inset-left)); background: var(--stone); }
.location-section h2 { font: 500 clamp(52px, 6vw, 84px)/1.06 var(--serif); letter-spacing: -.035em; text-wrap: balance; }
.location-details { border-inline-start: 1px solid #a39077; padding-inline-start: clamp(24px, 4vw, 56px); }
.location-details address { font-style: normal; font-size: 19px; line-height: 1.65; margin-bottom: 25px; }
.location-link { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 20px; border-radius: 28px 28px 28px 8px; color: var(--paper); background: var(--accent); font-size: 16px; font-weight: 600; }
.location-link svg { width: 20px; height: 20px; }
.site-footer { padding: 48px max(var(--section-gutter), env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) max(var(--section-gutter), env(safe-area-inset-left)); color: var(--paper); background: var(--ink); overflow: clip; }
.footer-logo { display: flex; align-items: baseline; gap: 2vw; font: 400 17vw/1 "Barlow Condensed", "Arial Narrow", sans-serif; letter-spacing: -.015em; }
.footer-logo > span { font: italic 400 4.2vw/1 Georgia, serif; }
.footer-bottom { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-top: 24px; padding-top: 16px; border-top: 1px solid #ffffff55; font-size: 14px; line-height: 1.5; }
.footer-bottom a { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; }
.footer-note { max-width: 48ch; color: #e6d7c0; text-wrap: pretty; }
.back-top { gap: 8px; width: max-content; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }
.back-top svg { width: 16px; height: 16px; transform: rotate(-90deg); }
.venue-story a:focus-visible, .site-footer a:focus-visible { outline-color: var(--paper); }
.mobile-dock { display: none; }
.noscript-note { padding: 28px; background: var(--paper); font-size: 15px; }
@media (max-width: 1000px) {
  .site-header { gap: 18px; }
  .menu-layout { grid-template-columns: 185px minmax(0, 1fr); gap: 38px; }
  .category-tabs button { font-size: 17px; }
}
@media (max-width: 767px) {
  :root { --header: calc(74px + env(safe-area-inset-top, 0px)); --dock: calc(74px + env(safe-area-inset-bottom, 0px)); --section-gutter: 22px; }
  .site-header { padding: env(safe-area-inset-top, 0px) max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left)); }
  .wordmark { gap: 6px; }
  .wordmark > span { font-size: 29px; }
  .wordmark > small { font-size: 10px; }
  .desktop-nav { display: none; }
  .header-menu { min-height: 48px; gap: 12px; padding: 0 15px; color: var(--accent); background: transparent; font-size: 14px; }
  .header-menu svg { width: 18px; height: 18px; }
  .story-visible:not(.menu-visible) .header-menu { visibility: hidden; }
  .menu-heading { gap: 20px; margin-bottom: 28px; }
  .menu-heading h2 { font-size: 53px; }
  .menu-heading > p { margin: 0; font-size: 13px; line-height: 1.5; }
  .menu-layout { display: block; }
  .category-tabs { position: sticky; top: var(--header); z-index: 20; flex-direction: row; gap: 15px; margin: 0 -2px 22px; padding: 0 2px 8px; overflow-x: auto; background: var(--paper); scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
  .category-tabs button { flex-shrink: 0; min-height: 53px; padding: 10px 0; gap: 5px; font-size: 14px; }
  .category-tabs button > span { font-size: 17px; }
  .category-tabs button[aria-selected=false] > span { display: none; }
  .menu-search { gap: 10px; padding-bottom: 8px; }
  .menu-panel-heading { margin-top: 24px; }
  .menu-panel-heading h3 { font-size: 25px; }
  .menu-panel-heading > span { font-size: 12px; }
  .menu-item { gap: 12px; padding: 14px 0; }
  .menu-item h4 { font-size: 16px; }
  .menu-item p { font-size: 12px; }
  .item-price { font-size: 15px; }
  .item-price.unknown { font-size: 12px; }
  .category-note, .allergen-note { font-size: 12px; }
  .venue-story { padding: 52px max(var(--section-gutter), env(safe-area-inset-right)) 48px max(var(--section-gutter), env(safe-area-inset-left)); }
  .venue-intro { display: block; margin-bottom: 18px; }
  .venue-intro h2 { font-size: 54px; }
  .venue-intro > p { margin-top: 22px; font-size: 14px; }
  .family-note { margin: 0 0 28px; }
  .venue-composition { gap: 18px; grid-template-columns: 1.1fr 1fr; }
  .venue-interior { padding-top: 0; }
  .venue-interior img { aspect-ratio: 9/16; border-radius: 100px 100px 0 0; }
  .venue-interior figcaption { margin-top: 12px; font-size: 11px; }
  .venue-side { gap: 24px; }
  .venue-words { font-size: 31px; }
  .venue-pastry img { aspect-ratio: 3/4; }
  .venue-pastry > span { min-height: 48px; font-size: 13px; text-wrap: pretty; }
  .venue-pastry svg { width: 17px; height: 17px; }
  .location-section { --section-gutter: 22px; display: block; padding-block: 42px; }
  .location-section h2 { font-size: 48px; line-height: 1.06; }
  .location-details { margin-top: 18px; border: 0; padding: 0; }
  .location-details address { font-size: 17px; line-height: 1.55; margin-bottom: 18px; }
  .site-footer {
    padding: 36px max(22px, env(safe-area-inset-right, 0px))
      calc(20px + env(safe-area-inset-bottom, 0px)) max(22px, env(safe-area-inset-left, 0px));
  }
  .footer-logo { font-size: 22vw; gap: 10px; }
  .footer-logo > span { font-size: 5.7vw; }
  .footer-bottom { flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-top: 18px; padding-top: 16px; }
  .footer-bottom > p { width: 100%; }
  .mobile-dock { display: grid; grid-template-columns: 1fr; position: fixed; z-index: 55; left: 0; bottom: 0; right: 0; padding: 10px max(14px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left)); min-height: var(--dock); border-top: 1px solid #35271f26; background: var(--paper); visibility: hidden; }
  .mobile-dock > a { min-height: 52px; display: flex; align-items: center; justify-content: center; gap: 12px; border: 0; border-radius: 3px; font-size: 15px; font-weight: 600; color: var(--paper); background: var(--accent); }
  .mobile-dock svg { width: 20px; height: 20px; }
  .story-visible:not(.menu-visible) .mobile-dock { visibility: visible; }
}
@media (max-width: 360px) {
  .site-header { padding-left: max(18px, env(safe-area-inset-left)); padding-right: max(18px, env(safe-area-inset-right)); }
  .wordmark > span { font-size: 27px; }
  .wordmark > small { font-size: 9px; }
  .header-menu { padding: 0 12px; gap: 10px; }
  .menu-heading h2 { font-size: 46px; }
  .menu-heading > p { font-size: 12px; }
  .category-tabs { gap: 13px; }
  .category-tabs button { font-size: 13px; }
  .venue-composition { gap: 14px; }
  .venue-words { font-size: 27px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .coffee-story { height: auto; }
  .coffee-story .story-stage { position: relative; top: 0; height: var(--stage-vista); }
  .coffee-story + .menu-section { margin-top: 0; }
  .coffee-story .hero-poster img, .menu-title-block, .venue-interior img, .venue-side { transform: none !important; }
  .coffee-story .hero-video, .coffee-story .hero-canvas { visibility: hidden; }
}

/* Marchio vero (ricalcato dal menu) nell'intestazione dell'apertura reale */
.con-reale .wordmark { display: block; width: 118px; height: 48px; background: url(./assets/reale/marchio.webp) left center / contain no-repeat; }
.con-reale .wordmark span, .con-reale .wordmark small { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 767px) { .con-reale .wordmark { width: 104px; height: 44px; } }

/* Gruppi dentro una categoria: vini, analcolici, whiskey */
.menu-group { list-style: none; padding: 22px 0 8px; font: 600 16px/1.4 Archivo, Arial, sans-serif; color: var(--ink); border-bottom: 1px dashed #b6a58c; text-wrap: pretty; }

/* Marchio vero anche nel piede della pagina */
.con-reale .footer-logo { display: block; width: min(100%, 540px); min-height: 44px; aspect-ratio: 1500 / 610; background: url(./assets/reale/marchio-chiaro.webp) left center / contain no-repeat; color: transparent; font-size: 0; }
.con-reale .footer-logo span { font-size: 0; }
@media (max-width: 767px) { .con-reale .footer-logo { width: min(100%, 265px); } }


/* Sul computer la storia di famiglia e' grande, non una nota a margine */
@media (min-width: 768px) {
  .con-reale .family-note { max-width: 42ch; margin: 0 0 64px; font: 400 clamp(23px, 2vw, 30px)/1.48 var(--serif); color: var(--paper); }
}
