:root {
  --bordeaux: #951621;
  --bordeaux-dark: #6e0f18;
  --giallo: #faf01f;
  --crema: #f7f1e6;
  --crema-2: #efe6d4;
  --inchiostro: #2a1d17;
  --muted: #6b5a4e;
  --linea: #ddd0b9;
  --wa: #1f8f4e;

  --font-display: 'Gambetta', 'Georgia', serif;
  --font-body: 'Switzer', 'Helvetica Neue', sans-serif;

  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem);
  --text-2xl: clamp(2.1rem, 1.3rem + 3vw, 3.6rem);

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(3.5rem, 8vw, 7rem);
  --max: 1200px;
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--inchiostro);
  background: var(--crema);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--bordeaux); outline-offset: 3px; }

[hidden] { display: none !important; }
.skip { position: absolute; left: -999px; top: 0; background: var(--giallo); color: var(--inchiostro); padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }

/* ---------- Testata ---------- */
.masthead { background: var(--bordeaux); color: var(--giallo); }
.masthead__inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: .9rem; padding: clamp(1rem, 3vw, 2rem) var(--gutter) clamp(.5rem, 2vw, 1rem); }

/* bandierine lingua */
.langbar { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; }
.langbar__btn {
  display: grid; place-items: center; padding: 3px; border: 0; border-radius: 3px;
  background: transparent; cursor: pointer; opacity: .7; transition: opacity .2s, box-shadow .2s;
}
.langbar__btn img { width: 30px; height: 20px; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.25); }
.langbar__btn:hover { opacity: 1; }
.langbar__btn[aria-pressed="true"] { opacity: 1; box-shadow: 0 0 0 2px var(--giallo); }
.langbar__btn:focus-visible { outline: 2px solid var(--giallo); outline-offset: 2px; }
@media (min-width: 901px) {
  .langbar { position: absolute; top: 1rem; right: var(--gutter); }
}
.masthead__logo img { width: min(440px, 82vw); }
.nav { position: sticky; top: 0; z-index: 20; background: var(--bordeaux); border-top: 1px solid rgba(250,240,31,.25); }
.nav ul { list-style: none; margin: 0 auto; padding: 0 var(--gutter); max-width: var(--max); display: flex; gap: clamp(.25rem, 2.5vw, 2.5rem); overflow-x: auto; scrollbar-width: none; }
.nav ul::-webkit-scrollbar { display: none; }
.nav li { flex: none; }
.nav li:first-child { margin-left: auto; }
.nav li:last-child { margin-right: auto; }
.nav a {
  display: block; padding: .9rem .6rem; text-decoration: none;
  font-size: var(--text-sm); font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  color: #fff8d6; transition: color .2s;
}
.nav a:hover { color: var(--giallo); }
.nav .nav__cta { color: var(--giallo); }
/* la barra del menu resta in cima durante lo scroll */
.masthead { display: contents; }
.masthead__inner { background: var(--bordeaux); }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .85rem 1.4rem; border-radius: var(--radius);
  font: 500 var(--text-sm)/1 var(--font-body); letter-spacing: .03em;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background .2s, color .2s, border-color .2s;
}
.btn--primary { background: var(--bordeaux); color: #fff; }
.btn--primary:hover { background: var(--bordeaux-dark); }
.btn--ghost { background: transparent; color: var(--bordeaux); border-color: var(--bordeaux); }
.btn--ghost:hover { background: var(--bordeaux); color: #fff; }

/* ---------- Presentazione ---------- */
.intro { max-width: var(--max); margin: 0 auto; padding: var(--section) var(--gutter); display: grid; gap: clamp(2rem, 5vw, 4.5rem); grid-template-columns: 1.15fr 1fr; align-items: center; }
.intro__image { margin: 0; }
.intro__image img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: center; border-radius: var(--radius); }
.eyebrow { font-size: var(--text-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--bordeaux); font-weight: 600; margin-bottom: 1rem; }
.intro h1 { font-size: var(--text-2xl); margin-bottom: 1.5rem; color: var(--inchiostro); }
.intro__text p:not(.eyebrow) { color: #3f2f26; max-width: 58ch; }
.intro__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

/* ---------- Intestazioni sezione ---------- */
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 2rem; border-bottom: 1px solid var(--linea); padding-bottom: 1rem; margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.section-head h2 { font-size: var(--text-xl); color: var(--bordeaux); }
.section-head p { margin: 0; color: var(--muted); font-size: var(--text-sm); }

/* ---------- Notizie ---------- */
.news { background: var(--crema-2); padding: var(--section) var(--gutter); }
.news > * { max-width: calc(var(--max) - 2 * var(--gutter)); margin-left: auto; margin-right: auto; }
.news__list { display: grid; gap: 1.25rem; }
.post { display: grid; grid-template-columns: 1fr; background: #fffaf0; border: 1px solid var(--linea); border-radius: var(--radius); overflow: hidden; }
.post--img { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
.post__img { background: var(--crema); }
.post__img img { width: 100%; height: auto; }
.post__body { padding: clamp(1.25rem, 3vw, 2.25rem); }
.post__meta { display: flex; gap: .75rem; align-items: center; font-size: var(--text-xs); color: var(--muted); margin-bottom: .6rem; }
.post__tag { background: var(--bordeaux); color: var(--giallo); padding: .15rem .55rem; border-radius: 2px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; font-size: .72rem; }
.post h3 { font-size: var(--text-lg); margin-bottom: .75rem; }
.post p { margin-bottom: .6em; color: #3f2f26; }
.post p:last-child { margin-bottom: 0; }
.news__more { display: flex; margin: 1.5rem auto 0; }
.news__empty { color: var(--muted); }

/* ---------- Menù ---------- */
.menu { max-width: var(--max); margin: 0 auto; padding: var(--section) var(--gutter) 0; }
.menu__tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.menu__tab {
  display: inline-flex; align-items: center; gap: .55rem; padding: .55rem .9rem;
  border: 1px solid var(--linea); border-radius: 999px; background: #fffaf0; color: var(--inchiostro);
  font: 500 var(--text-sm)/1 var(--font-body); cursor: pointer; transition: border-color .2s, background .2s, color .2s;
}
.menu__tab img { width: 24px; height: 16px; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.18); }
.menu__tab:hover { border-color: var(--bordeaux); }
.menu__tab[aria-selected="true"] { background: var(--bordeaux); border-color: var(--bordeaux); color: #fff; }
.menu__viewer { position: relative; }
.menu__track {
  display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  overscroll-behavior-x: contain; scrollbar-width: none; padding-bottom: .25rem;
}
.menu__track::-webkit-scrollbar { display: none; }
.menu__track:focus-visible { outline: 2px solid var(--bordeaux); outline-offset: 4px; }
.menu__page {
  all: unset; box-sizing: border-box; flex: 0 0 calc((100% - 1rem) / 2); scroll-snap-align: start; cursor: zoom-in;
  background: #fff; border: 1px solid var(--linea); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 10px 30px -18px rgba(60, 20, 10, .45);
}
.menu__page:focus-visible { outline: 2px solid var(--bordeaux); outline-offset: 2px; }
.menu__page img { width: 100%; height: auto; aspect-ratio: 1240 / 1754; background: #fff; }
.menu__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--bordeaux); color: #fff; font-size: 1.8rem; line-height: 1;
  box-shadow: 0 6px 18px rgba(0,0,0,.2); transition: opacity .2s, background .2s;
}
.menu__arrow:hover { background: var(--bordeaux-dark); }
.menu__arrow:disabled { opacity: 0; pointer-events: none; }
.menu__arrow--prev { left: -12px; }
.menu__arrow--next { right: -12px; }
.menu__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; margin-top: 1.25rem; }
.menu__count { margin: 0; font-weight: 600; color: var(--bordeaux); font-variant-numeric: tabular-nums; }
.menu__hint { margin: 0 auto 0 0; font-size: var(--text-xs); color: var(--muted); }
.menu__pdf { gap: .5rem; }

/* ---------- Galleria ---------- */
.gallery { max-width: var(--max); margin: 0 auto; padding: var(--section) var(--gutter); }
.gallery__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(140px, 17vw, 220px); gap: clamp(.5rem, 1.2vw, .9rem); }
.gallery__grid li { overflow: hidden; border-radius: var(--radius); }
.gallery__grid li:nth-child(1) { grid-column: 1 / 3; grid-row: 1 / 3; }
.gallery__grid li:nth-child(2) { grid-column: 3; grid-row: 1 / 3; }
.gallery__grid li:nth-child(3) { grid-column: 4; grid-row: 1; }
.gallery__grid li:nth-child(4) { grid-column: 4; grid-row: 2; }
.gallery__grid li:nth-child(5) { grid-column: 1; grid-row: 3 / 5; }
.gallery__grid li:nth-child(6) { grid-column: 2 / 4; grid-row: 3; }
.gallery__grid li:nth-child(7) { grid-column: 4; grid-row: 3; }
.gallery__grid li:nth-child(8) { grid-column: 2 / 5; grid-row: 4; }
.gallery__grid button { all: unset; display: block; width: 100%; height: 100%; cursor: zoom-in; }
.gallery__grid button:focus-visible { outline: 2px solid var(--bordeaux); outline-offset: -4px; }
.gallery__grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery__grid button:hover img { transform: scale(1.04); }
.gallery__credit { margin-top: 1rem; font-size: var(--text-xs); color: var(--muted); }

/* ---------- Lightbox ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; }
.lightbox::backdrop { background: rgba(20, 8, 8, .92); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; flex-direction: column; }
.lightbox img { max-width: min(92vw, 1400px); max-height: 82vh; object-fit: contain; border-radius: 2px; }
.lightbox__caption { color: #f3e9d6; font-size: var(--text-sm); margin: 1rem 1rem 0; text-align: center; }
.lightbox button { position: fixed; background: rgba(255,255,255,.1); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,.22); }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox--doc[open] { display: block; overflow-y: auto; padding: 4.5rem 0 2rem; }
.lightbox--doc img { width: min(94vw, 1000px); max-width: none; max-height: none; margin: 0 auto; background: #fff; }
.lightbox--doc .lightbox__caption { margin-top: 1rem; }

/* ---------- Contatti ---------- */
.contacts { background: var(--bordeaux); color: #fff3e0; padding: var(--section) var(--gutter) 0; }
.contacts__inner { max-width: calc(var(--max) - 2 * var(--gutter)); margin: 0 auto; display: grid; grid-template-columns: 1fr 1.3fr 0.9fr 1fr; gap: clamp(2rem, 3.5vw, 3rem); align-items: start; }
.contacts h2 { font-size: var(--text-xl); color: var(--giallo); margin-bottom: 1rem; }
.contacts h3 { font-size: var(--text-lg); color: var(--giallo); margin-bottom: .75rem; }
.contacts__intro p { color: #f6dcd0; }
.contacts__buttons { display: grid; gap: .75rem; }
.cbtn {
  display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem;
  background: rgba(255,255,255,.07); border: 1px solid rgba(250,240,31,.3); border-radius: var(--radius);
  text-decoration: none; color: #fff; transition: background .2s, border-color .2s;
}
.cbtn:hover { background: rgba(255,255,255,.14); border-color: var(--giallo); }
.cbtn svg { flex: none; color: var(--giallo); }
.cbtn span { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.cbtn strong { font-weight: 600; }
.cbtn small { font-size: var(--text-sm); color: #f6dcd0; overflow-wrap: anywhere; }
.cbtn--wa { background: var(--wa); border-color: var(--wa); }
.cbtn--wa svg { color: #fff; }
.cbtn--wa small { color: #e3f7ea; }
.cbtn--wa:hover { background: #187a42; border-color: #187a42; }
address { font-style: normal; color: #f6dcd0; margin-bottom: 1rem; }
.hours__days { color: #fff; font-weight: 600; margin-bottom: .5rem; }
.hours { margin: 0; font-size: var(--text-sm); color: #f6dcd0; }
.hours div { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px solid rgba(250,240,31,.14); }
.hours dt { font-weight: 500; }
.hours dd { margin: 0; color: var(--giallo); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hours__note { margin-top: .9rem; font-size: var(--text-xs); color: #e8c4b8; }
.link { color: var(--giallo); text-underline-offset: 4px; font-size: var(--text-sm); font-weight: 500; }
.contacts__legal { max-width: calc(var(--max) - 2 * var(--gutter)); margin: clamp(3rem, 6vw, 5rem) auto 0; padding: 1.25rem 0 1.5rem; border-top: 1px solid rgba(250,240,31,.2); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; font-size: var(--text-xs); color: #e8c4b8; }
.contacts__legal a { color: #e8c4b8; }
.social { display: inline-flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.social a { display: inline-flex; align-items: center; gap: .4rem; text-underline-offset: 3px; }
.social a:hover { color: var(--giallo); }
.social svg { flex: none; }

/* ---------- WhatsApp fisso ---------- */
.wa-float {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 30;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; background: var(--wa); color: #fff;
  box-shadow: 0 6px 20px rgba(0,0,0,.25); transition: transform .2s;
}
.wa-float:hover { transform: scale(1.06); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .menu__page { flex-basis: 82%; }
  .menu__arrow { width: 40px; height: 40px; font-size: 1.5rem; }
  .menu__arrow--prev { left: -6px; }
  .menu__arrow--next { right: -6px; }
  .intro { grid-template-columns: 1fr; }
  .intro__image img { aspect-ratio: 16/10; }
  .post--img { grid-template-columns: 1fr; }
  .post__img { max-width: 480px; }
  .contacts__inner { grid-template-columns: 1fr 1fr; }
  .contacts__intro, .contacts__buttons { grid-column: 1 / -1; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 42vw; grid-auto-flow: dense; }
  .gallery__grid li:nth-child(n) { grid-column: auto; grid-row: auto; }
  .gallery__grid li:nth-child(1), .gallery__grid li:nth-child(6), .gallery__grid li:nth-child(8) { grid-column: 1 / -1; }
  .gallery__grid li:nth-child(2) { grid-row: span 2; }
}
@media (max-width: 600px) {
  .contacts__inner { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .contacts__legal { padding-bottom: 5.5rem; }
  .nav ul { gap: 0; padding: 0 .4rem; flex-wrap: wrap; justify-content: center; overflow: visible; }
  .nav li:first-child, .nav li:last-child { margin: 0; }
  .menu__tab { padding: .5rem .7rem; }
  .nav a { padding: .8rem .34rem; letter-spacing: .02em; font-size: .74rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Lingue con alfabeti non latini ---------- */
:lang(ru) body, body:lang(ru) { font-family: 'Helvetica Neue', Arial, 'Segoe UI', sans-serif; }
:lang(ru) h1, :lang(ru) h2, :lang(ru) h3 { font-family: Georgia, 'Times New Roman', serif; }
:lang(zh) body, body:lang(zh) { font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', 'Noto Sans CJK SC', sans-serif; }
:lang(zh) h1, :lang(zh) h2, :lang(zh) h3 { font-family: 'Songti SC', 'Noto Serif SC', 'Noto Serif CJK SC', 'SimSun', serif; letter-spacing: .02em; }
:lang(zh) .nav a, :lang(zh) .eyebrow { letter-spacing: .1em; }

/* ---------- Informativa privacy ---------- */
.page-legal .masthead { display: block; }
.page-legal .masthead__inner { padding-bottom: clamp(1rem, 3vw, 1.75rem); }
.page-legal .masthead__logo img { width: min(300px, 64vw); }
.legal { max-width: 72ch; margin: 0 auto; padding: clamp(2rem, 5vw, 3.5rem) var(--gutter) var(--section); }
.legal__back { display: inline-block; margin-bottom: 1.5rem; font-size: var(--text-sm); color: var(--bordeaux); text-decoration: none; }
.legal__back:hover { text-decoration: underline; }
.legal__title { font-size: var(--text-2xl); color: var(--bordeaux); margin-bottom: .6rem; }
.legal__updated { font-size: var(--text-sm); color: #6b5a50; margin-bottom: 1rem; }
.legal__note { font-size: var(--text-sm); background: var(--crema-2); border-left: 3px solid var(--bordeaux); padding: .7rem 1rem; border-radius: var(--radius); }
.legal__intro { font-size: var(--text-lg); line-height: 1.5; margin: 1.5rem 0 .5rem; }
.legal__section { margin-top: clamp(2rem, 4vw, 2.75rem); }
.legal__section h2 { font-size: var(--text-xl); color: var(--bordeaux); margin-bottom: .8rem; }
.legal__section ul { margin: 0 0 1em; padding-left: 1.2rem; }
.legal__section li { margin-bottom: .6rem; line-height: 1.55; }
.legal__section li::marker { color: var(--bordeaux); }
.legal__doc a { color: var(--bordeaux); overflow-wrap: anywhere; }
.legal__doc :lang(zh), html[lang="zh"] .legal__doc { line-height: 1.8; }
.legal__footer { background: var(--bordeaux); color: #e8c4b8; font-size: var(--text-xs); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; padding: 1.25rem var(--gutter); }
.legal__footer a { color: #e8c4b8; }
#privacy-link { white-space: nowrap; }
