@import url("./fonts.css");

/* =========================================================================
   OSTERIA ALLA GRANDE — style.css
   Archetipo: manifesto / insegna d'osteria popolare milanese.
   Mobile-first 360 -> 1280. overflow-x su html, mai su body.
   ========================================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Colore */
  --c-bg: #F4F0E6;
  --c-surface: #FBF8F0;
  --c-ink: #1C1B17;
  --c-ink-soft: #4A473E;
  --c-brand: #14442F;
  --c-brand-ink: #F4F0E6;
  --c-brand-soft: #B9C9BC;
  --c-accent: #C63A20;
  --c-accent-ink: #FFFFFF;
  --c-accent-hover: #A82E17;
  --c-gold: #D9922B;
  --c-gold-text: #EBAF4A;
  --c-gold-ink: #1C1B17;
  --c-border: #DED7C4;
  --c-border-brand: #2C5A43;
  --c-focus: #C63A20;

  /* Tipografia */
  --f-display: "Anton", "Arial Narrow", system-ui, sans-serif;
  --f-label: "Bricolage Grotesque", system-ui, sans-serif;
  --f-body: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --f-hand: "Caveat", "Segoe Script", cursive;

  /* Spacing 4/8 */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-8: 48px; --sp-10: 64px;
  --sp-12: 96px; --sp-16: 128px;

  /* Radius */
  --r-sm: 4px; --r-md: 10px; --r-lg: 18px; --r-pill: 999px;

  /* Ombre */
  --sh-1: 0 1px 2px rgba(28,27,23,.08);
  --sh-2: 0 6px 18px rgba(28,27,23,.12);
  --sh-press: inset 0 2px 0 rgba(0,0,0,.12);

  /* Motion */
  --dur-fast: 160ms; --dur: 240ms; --dur-slow: 380ms;
  --ease-out: cubic-bezier(.2,.7,.3,1);
  --ease-in: cubic-bezier(.5,0,.9,.4);

  /* Layer */
  --z-header: 100;
  --z-cta: 90;
  --z-drawer: 120;
  --z-scrim: 110;

  --container: 72rem;
  --cta-bar-h: 68px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  overflow-x: hidden;            /* mai su body */
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--f-body);
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  /* texture carta-calce: micro-grana leggerissima, tono su tono */
  background-image:
    radial-gradient(circle at 18% 12%, rgba(217,146,43,.05), transparent 42%),
    radial-gradient(circle at 82% 78%, rgba(20,68,47,.045), transparent 45%);
  background-attachment: fixed;
}

img { max-width: 100%; display: block; }

a { color: var(--c-accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--c-accent-hover); }

h1, h2, h3, p, ul, figure, table { margin: 0; }
ul { list-style: none; padding: 0; }

:focus-visible {
  outline: 2px solid var(--c-focus);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--c-accent);
  color: var(--c-accent-ink);
  padding: var(--sp-3) var(--sp-4);
  font-family: var(--f-label);
  font-weight: 700;
  z-index: 200;
  border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; color: var(--c-accent-ink); }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-4);
}
@media (min-width: 768px) { .container { padding-inline: var(--sp-8); } }

.section { padding-block: var(--sp-10); }
@media (min-width: 768px) { .section { padding-block: var(--sp-16); } }

.band-paper { background: var(--c-bg); color: var(--c-ink); }
.band-brand { background: var(--c-brand); color: var(--c-brand-ink); }
.band-brand a { color: #F0C583; }
.band-brand a:hover { color: #FFDCA0; }
/* Buttons keep their own high-contrast label even inside the green band */
.band-brand a.btn-primary { color: var(--c-accent-ink); }
.band-brand a.btn-primary:hover { color: var(--c-accent-ink); }

/* ---------- Typography roles ---------- */
.kicker {
  font-family: var(--f-label);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--c-accent);
}
.band-brand .kicker { color: var(--c-gold-text); }
.kicker::before {
  content: "";
  width: 26px; height: 3px;
  background: var(--c-gold);
  border-radius: 2px;
}

.h-display {
  font-family: var(--f-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -.005em;
  line-height: .95;
  overflow-wrap: anywhere;
}
h2.h-display { font-size: clamp(2.2rem, 7vw, 4.5rem); margin-top: var(--sp-3); }
h3 {
  font-family: var(--f-label);
  font-weight: 700;
  font-size: clamp(1.3rem, 3.5vw, 1.9rem);
  line-height: 1.15;
}

.lead {
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  line-height: 1.55;
  font-weight: 500;
  max-width: 62ch;
}
.prose p { max-width: 62ch; }
.prose p + p { margin-top: var(--sp-4); }

.note {
  font-size: .9rem;
  line-height: 1.5;
  font-weight: 500;
  color: var(--c-ink-soft);
}
.band-brand .note { color: var(--c-brand-soft); }

/* ---------- Icons ---------- */
.icon {
  width: 1.25em; height: 1.25em;
  flex: 0 0 auto;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-family: var(--f-label);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: var(--r-md);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--dur-fast) var(--ease-out),
              background-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.btn .icon { width: 1.1em; height: 1.1em; stroke-width: 2.2; }

.btn-primary {
  background: var(--c-accent);
  color: var(--c-accent-ink);
  box-shadow: var(--sh-1);
}
.btn-primary:hover { background: var(--c-accent-hover); color: var(--c-accent-ink); transform: translateY(-1px); box-shadow: var(--sh-2); }
.btn-primary:active { transform: translateY(0); box-shadow: var(--sh-press); }

.btn-ghost {
  background: transparent;
  color: var(--c-ink);
  border-color: var(--c-ink);
}
.btn-ghost:hover { background: rgba(28,27,23,.08); color: var(--c-ink); transform: translateY(-1px); }
.btn-ghost:active { transform: translateY(0); box-shadow: var(--sh-press); }

.band-brand .btn-ghost { color: var(--c-brand-ink); border-color: var(--c-brand-ink); }
.band-brand .btn-ghost:hover { background: rgba(244,240,230,.12); color: var(--c-brand-ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(244,240,230,.86);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--c-border);
  transition: box-shadow var(--dur) var(--ease-out);
}
.site-header.is-scrolled { box-shadow: var(--sh-1); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  min-height: 60px;
}
@media (min-width: 768px) { .header-inner { min-height: 72px; } }

.wordmark {
  display: inline-flex;
  flex-direction: column;
  line-height: .82;
  text-decoration: none;
  color: var(--c-brand);
  font-family: var(--f-display);
  text-transform: uppercase;
  letter-spacing: .01em;
}
.wordmark:hover { color: var(--c-brand); }
.wordmark .w-1 { font-size: .78rem; letter-spacing: .12em; color: var(--c-ink); }
.wordmark .w-2 { font-size: 1.5rem; color: var(--c-brand); }
@media (min-width: 768px) {
  .wordmark .w-1 { font-size: .85rem; }
  .wordmark .w-2 { font-size: 1.75rem; }
}

.header-nav { display: none; }
.header-actions { display: flex; align-items: center; gap: var(--sp-2); }

@media (min-width: 768px) {
  .header-nav {
    display: flex;
    gap: var(--sp-5);
    margin-left: auto;
    margin-right: var(--sp-5);
  }
  .header-nav a {
    font-family: var(--f-label);
    font-weight: 700;
    font-size: .95rem;
    color: var(--c-ink);
    text-decoration: none;
    padding: 6px 2px;
    position: relative;
  }
  .header-nav a::after {
    content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
    background: var(--c-accent); transition: right var(--dur-fast) var(--ease-out);
  }
  .header-nav a:hover::after, .header-nav a:focus-visible::after { right: 0; }
}

/* icon buttons (phone / hamburger) */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  border: 2px solid var(--c-ink);
  background: transparent;
  color: var(--c-ink);
  cursor: pointer;
  transition: background-color var(--dur-fast), color var(--dur-fast);
}
.icon-btn:hover { background: rgba(28,27,23,.08); }
.icon-btn .icon { width: 22px; height: 22px; }
.header-call {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: var(--c-accent-ink);
}
.header-call:hover { background: var(--c-accent-hover); color: var(--c-accent-ink); }
.header-cta { display: none; }
@media (min-width: 768px) {
  .header-cta { display: inline-flex; }
  .header-call, .hamburger { display: none; }
}

/* ---------- Drawer mobile ---------- */
.scrim {
  position: fixed;
  inset: 0;
  background: rgba(20,68,47,.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease-out), visibility var(--dur);
  z-index: var(--z-scrim);
}
.scrim.show { opacity: 1; visibility: visible; }

.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(88vw, 340px);
  background: var(--c-brand);
  color: var(--c-brand-ink);
  z-index: var(--z-drawer);
  transform: translateX(100%);
  transition: transform var(--dur) var(--ease-out);
  display: flex;
  flex-direction: column;
  padding: var(--sp-5);
  box-shadow: -8px 0 30px rgba(0,0,0,.3);
  overflow-y: auto;
}
.drawer.show { transform: translateX(0); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--sp-6); }
.drawer-head .wordmark .w-1 { color: var(--c-brand-soft); }
.drawer-head .wordmark .w-2 { color: var(--c-brand-ink); }
.drawer .icon-btn { border-color: var(--c-brand-ink); color: var(--c-brand-ink); }
.drawer .icon-btn:hover { background: rgba(244,240,230,.12); }
.drawer-nav { display: flex; flex-direction: column; gap: var(--sp-1); margin-bottom: var(--sp-6); }
.drawer-nav a {
  font-family: var(--f-label);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--c-brand-ink);
  text-decoration: none;
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--c-border-brand);
}
.drawer-nav a:hover { color: var(--c-gold); }
.drawer .btn-primary { margin-top: auto; width: 100%; }

@media (min-width: 768px) {
  .scrim, .drawer { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88svh;
  display: flex;
  align-items: center;
  padding-block: var(--sp-10) var(--sp-12);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  gap: var(--sp-6);
  width: 100%;
}
@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.55fr .9fr;
    align-items: center;
    gap: var(--sp-10);
  }
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--f-label);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-brand);
  margin-bottom: var(--sp-4);
}
.hero-kicker .icon { width: 1em; height: 1em; color: var(--c-accent); }

/* insegna che si accende */
.insegna {
  font-family: var(--f-display);
  text-transform: uppercase;
  line-height: .9;
  letter-spacing: -.01em;
  font-size: clamp(3rem, 12vw, 8rem);
  color: var(--c-brand);
  overflow-wrap: anywhere;
  margin: 0;
}
.insegna .ln { display: block; }
.insegna .ln-2 { color: var(--c-accent); }

/* stato "spento" iniziale, poi .lit accende (JS) */
.insegna.is-off {
  color: var(--c-ink);
  filter: saturate(.35) brightness(.9);
  opacity: .82;
}
.insegna.is-off .ln-2 { color: var(--c-ink); }
.insegna.lit { animation: sign-on 620ms var(--ease-out) both; }
.insegna.lit .ln-2 { animation: sign-on-accent 700ms var(--ease-out) both; }

@keyframes sign-on {
  0%   { color: var(--c-ink); filter: saturate(.35) brightness(.9); opacity: .82; text-shadow: 0 0 0 rgba(217,146,43,0); }
  45%  { color: var(--c-brand); filter: saturate(1) brightness(1); opacity: 1; text-shadow: 0 0 26px rgba(217,146,43,.55); }
  60%  { opacity: .85; }
  72%  { opacity: 1; }
  100% { color: var(--c-brand); filter: saturate(1) brightness(1); opacity: 1; text-shadow: 0 0 0 rgba(217,146,43,0); }
}
@keyframes sign-on-accent {
  0%   { color: var(--c-ink); }
  55%  { color: var(--c-accent); text-shadow: 0 0 22px rgba(198,58,32,.45); }
  100% { color: var(--c-accent); text-shadow: 0 0 0 rgba(198,58,32,0); }
}

/* riga ocra tracciata */
.hero-rule {
  height: 6px;
  width: min(280px, 70%);
  background: var(--c-gold);
  border-radius: 3px;
  margin: var(--sp-5) 0;
  transform-origin: left center;
}
.hero-rule.trace { animation: rule-trace 480ms var(--ease-out) both; animation-delay: 300ms; }
@keyframes rule-trace {
  0% { transform: scaleX(0); }
  100% { transform: scaleX(1); }
}

.hero-claim {
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  line-height: 1.5;
  font-weight: 500;
  max-width: 40ch;
  margin-bottom: var(--sp-5);
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
  font-family: var(--f-label);
  font-weight: 700;
  font-size: .95rem;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--c-surface);
  border: 1.5px solid var(--c-border);
  font-family: var(--f-label);
  font-weight: 700;
  font-size: .85rem;
  color: var(--c-ink);
}
.badge .icon { width: 1em; height: 1em; color: var(--c-brand); }

.hero-cta { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

/* timbro VERACE */
.stamp {
  display: inline-block;
  margin-top: var(--sp-5);
  transform: rotate(-4deg);
}
.stamp-box {
  border: 3px solid var(--c-accent);
  color: var(--c-accent);
  border-radius: var(--r-sm);
  padding: 6px 14px 5px;
  font-family: var(--f-display);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: clamp(1.1rem, 3.2vw, 1.5rem);
  line-height: 1;
  opacity: .92;
  box-shadow: inset 0 0 0 1px rgba(198,58,32,.25);
}
.stamp-box small {
  display: block;
  font-family: var(--f-label);
  font-weight: 700;
  font-size: .5em;
  letter-spacing: .16em;
  margin-top: 3px;
}
.stamp.impress { animation: stamp-in 360ms var(--ease-out) both; animation-delay: 720ms; }
@keyframes stamp-in {
  0%   { opacity: 0; transform: rotate(-4deg) scale(1.18); }
  70%  { opacity: .95; }
  100% { opacity: .92; transform: rotate(-4deg) scale(1); }
}

/* rail targhette desktop */
.hero-rail {
  display: grid;
  gap: var(--sp-4);
  align-content: start;
}
.rail-card {
  background: var(--c-surface);
  border: 2px solid var(--c-ink);
  border-radius: var(--r-md);
  padding: var(--sp-5);
  box-shadow: var(--sh-1);
}
.rail-title {
  font-family: var(--f-label);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-ink-soft);
  margin: 0 0 var(--sp-2);
}
.rail-hours { display: grid; gap: var(--sp-1); font-family: var(--f-label); font-weight: 700; }
.rail-hours div { display: flex; justify-content: space-between; gap: var(--sp-3); }
.rail-hours .tnum { font-variant-numeric: tabular-nums; }
.rail-cash {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  margin-top: var(--sp-3); font-family: var(--f-label); font-weight: 700;
  color: var(--c-brand);
}
.rail-cash .icon { color: var(--c-accent); }

/* ---------- Section head ---------- */
.section-head { margin-bottom: var(--sp-8); max-width: 62ch; }

/* ---------- Manifesto (roccaforte) ---------- */
.manifesto .prose p { max-width: 62ch; }
.manifesto .prose { color: var(--c-brand-ink); }
.manifesto-closing {
  margin-top: var(--sp-6);
  font-family: var(--f-hand);
  font-weight: 700;
  font-size: clamp(1.4rem, 4vw, 2rem);
  line-height: 1.2;
  color: var(--c-gold);
  max-width: 26ch;
}

/* ---------- Personaggi ---------- */
.people-grid {
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: 1fr;
}
@media (min-width: 600px) { .people-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .people-grid { grid-template-columns: repeat(4, 1fr); } }

.person-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: var(--sp-5);
  box-shadow: var(--sh-1);
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
  display: flex;
  flex-direction: column;
}
@media (min-width: 1000px) {
  .person-card:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
}
.person-card:focus-within { box-shadow: var(--sh-2), 0 0 0 2px var(--c-accent); }

.medallion {
  width: 64px; height: 64px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  font-family: var(--f-display);
  font-size: 2rem;
  color: var(--c-brand-ink);
  background: var(--c-brand);
  margin-bottom: var(--sp-4);
  border: 2px solid var(--c-border-brand);
}
.person-card:nth-child(2) .medallion { background: var(--c-accent); border-color: var(--c-accent-hover); }
.person-card:nth-child(3) .medallion { background: var(--c-gold); color: var(--c-ink); border-color: #B9761E; }
.person-card:nth-child(4) .medallion { background: var(--c-brand); }

.person-name { font-family: var(--f-label); font-weight: 700; font-size: 1.25rem; }
.person-role {
  font-family: var(--f-label); font-weight: 700; font-size: .72rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--c-accent);
  margin: 2px 0 var(--sp-3);
}
.person-desc { font-size: .95rem; line-height: 1.5; color: var(--c-ink-soft); }
.person-badge {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: var(--sp-3);
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: rgba(20,68,47,.08);
  color: var(--c-brand);
  font-family: var(--f-label); font-weight: 700; font-size: .72rem;
  letter-spacing: .06em; text-transform: uppercase;
}
.person-badge .icon { width: 1em; height: 1em; }

/* blocco "regole nostre" */
.house-rules {
  margin-top: var(--sp-8);
  display: grid;
  gap: var(--sp-4);
}
@media (min-width: 700px) { .house-rules { grid-template-columns: repeat(2, 1fr); } }
.rule-card {
  display: flex;
  gap: var(--sp-4);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-left: 4px solid var(--c-gold);
  border-radius: var(--r-md);
  padding: var(--sp-5);
}
.rule-card .icon { color: var(--c-accent); width: 26px; height: 26px; margin-top: 2px; }
.rule-card p { font-size: .98rem; line-height: 1.5; }

.people-closing {
  margin-top: var(--sp-8);
  font-family: var(--f-hand);
  font-weight: 700;
  font-size: clamp(1.3rem, 3.6vw, 1.8rem);
  line-height: 1.25;
  color: var(--c-brand);
  max-width: 30ch;
}

/* ---------- Menù ---------- */
.menu-grid { display: grid; gap: var(--sp-8); }
@media (min-width: 1024px) {
  .menu-grid { grid-template-columns: 1.15fr .85fr; gap: var(--sp-10); align-items: start; }
}
.menu-cats { display: grid; gap: var(--sp-6); }
@media (min-width: 600px) and (max-width: 1023px) { .menu-cats { grid-template-columns: repeat(2, 1fr); } }

.menu-cat h3 {
  font-family: var(--f-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  line-height: 1;
  color: var(--c-brand);
  letter-spacing: 0;
  margin-bottom: var(--sp-3);
  padding-bottom: var(--sp-2);
  border-bottom: 2px solid var(--c-gold);
}
.menu-list li {
  padding: 6px 0;
  border-bottom: 1px dotted var(--c-border);
  font-weight: 500;
}
.menu-list li:last-child { border-bottom: 0; }
.menu-tag {
  display: inline-block;
  margin-left: var(--sp-2);
  font-family: var(--f-label);
  font-weight: 700;
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-accent);
  vertical-align: middle;
}
.menu-disclaimer {
  display: flex; gap: var(--sp-3); align-items: flex-start;
  margin-top: var(--sp-6);
  padding: var(--sp-4);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  font-size: .92rem;
  color: var(--c-ink-soft);
}
.menu-disclaimer .icon { color: var(--c-brand); width: 22px; height: 22px; margin-top: 1px; }

/* listino cartello */
.listino-wrap { position: relative; }
@media (min-width: 1024px) { .listino-wrap { position: sticky; top: 96px; } }
.listino {
  background: var(--c-surface);
  border: 2px solid var(--c-ink);
  border-radius: var(--r-md);
  padding: var(--sp-6) var(--sp-5) var(--sp-5);
  box-shadow: var(--sh-2);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
  position: relative;
}
.listino caption {
  text-align: left;
  font-family: var(--f-display);
  text-transform: uppercase;
  font-size: clamp(1.5rem, 5vw, 2rem);
  line-height: 1;
  color: var(--c-brand);
  margin-bottom: var(--sp-1);
}
.listino .listino-sub {
  display: block;
  font-family: var(--f-label);
  font-weight: 700;
  color: var(--c-accent);
  font-size: .9rem;
  margin-top: var(--sp-1);
  margin-bottom: var(--sp-4);
}
.listino table { width: 100%; border-collapse: collapse; }
.listino th { font-weight: inherit; text-align: left; }
.listino tbody tr { vertical-align: baseline; }
.listino tbody th, .listino tbody td { padding: 8px 0; }
.listino .l-name {
  font-weight: 500;
  position: relative;
  padding-right: var(--sp-2);
}
.listino .l-name::after {
  content: "";
  position: absolute;
  bottom: .28em;
  left: 0; right: 0;
  border-bottom: 2px dotted var(--c-border);
  z-index: -1;
}
.listino .l-name span {
  background: var(--c-surface);
  padding-right: 6px;
}
.listino .l-price {
  font-family: var(--f-label);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-align: right;
  padding-left: var(--sp-4);
  color: var(--c-ink);
}
.listino .l-price .cur { color: var(--c-accent); }
.listino tr td small { display: block; font-family: var(--f-body); font-weight: 500; font-size: .78rem; color: var(--c-ink-soft); }
.listino-foot {
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 2px solid var(--c-ink);
  display: flex; align-items: center; gap: var(--sp-2);
  font-family: var(--f-label); font-weight: 700; font-size: .95rem;
}
.listino-foot .icon { color: var(--c-accent); }

.pranzo-badge {
  margin-top: var(--sp-5);
  background: var(--c-brand);
  color: var(--c-brand-ink);
  border-radius: var(--r-md);
  padding: var(--sp-4) var(--sp-5);
  display: flex; align-items: center; gap: var(--sp-3);
}
.pranzo-badge .big {
  font-family: var(--f-display);
  font-size: 2rem; line-height: 1; color: var(--c-gold);
}
.pranzo-badge .txt { font-size: .92rem; line-height: 1.35; }

/* ---------- Orari ---------- */
.info-grid { display: grid; gap: var(--sp-8); }
@media (min-width: 768px) { .info-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-10); } }

.hours-table { width: 100%; border-collapse: collapse; background: rgba(244,240,230,.04); }
.hours-table caption { position: absolute; left: -9999px; }
.hours-table th, .hours-table td {
  padding: var(--sp-3) var(--sp-2);
  border-bottom: 1px solid var(--c-border-brand);
  text-align: left;
}
.hours-table thead th {
  font-family: var(--f-label); font-weight: 700; font-size: .72rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--c-gold-text);
}
.hours-table tbody th {
  font-family: var(--f-label); font-weight: 700; color: var(--c-brand-ink);
}
.hours-table td { font-variant-numeric: tabular-nums; color: var(--c-brand-ink); }
.hours-table tr.closed th, .hours-table tr.closed td { color: var(--c-brand-soft); }
.closed-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--f-label); font-weight: 700;
}
.closed-tag .icon { width: 1em; height: 1em; color: var(--c-accent); }
.hours-note {
  margin-top: var(--sp-4);
  font-family: var(--f-hand); font-weight: 700;
  font-size: clamp(1.2rem, 3.4vw, 1.6rem);
  color: var(--c-gold);
}

.info-lines { display: grid; gap: var(--sp-4); }
.info-line {
  display: flex; gap: var(--sp-3); align-items: flex-start;
}
.info-line .icon { color: var(--c-gold); margin-top: 2px; width: 22px; height: 22px; }
.info-line a { color: #F0C583; font-weight: 700; text-decoration: none; }
.info-line a:hover { color: #FFDCA0; text-decoration: underline; }
.info-notes {
  margin-top: var(--sp-2);
  background: rgba(0,0,0,.16);
  border: 1px solid var(--c-border-brand);
  border-radius: var(--r-md);
  padding: var(--sp-4);
}
.info-notes ul { display: grid; gap: var(--sp-2); }
.info-notes li { display: flex; gap: var(--sp-2); font-size: .92rem; color: var(--c-brand-soft); }
.info-notes li .icon { color: var(--c-gold); width: 18px; height: 18px; flex: 0 0 auto; margin-top: 2px; }
.info-cta { margin-top: var(--sp-5); }

/* ---------- Galleria ---------- */
.gallery-grid {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 700px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }

.gal-item {
  position: relative;
  margin: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  aspect-ratio: 1 / 1;
  box-shadow: var(--sh-1);
}
.gal-item.wide { grid-column: span 2; aspect-ratio: 2 / 1; }
.gal-item img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}
@media (min-width: 1000px) { .gal-item:hover img { transform: scale(1.04); } }
.gal-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: var(--sp-4) var(--sp-3) var(--sp-3);
  background: linear-gradient(to top, rgba(20,68,47,.92), rgba(20,68,47,0));
  color: var(--c-brand-ink);
  font-family: var(--f-label); font-weight: 700; font-size: .82rem;
  line-height: 1.25;
}
.gallery-follow {
  margin-top: var(--sp-6);
  display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center;
}
.gallery-follow .note { margin: 0; }

/* ---------- Mappa ---------- */
.map-wrap {
  border-radius: var(--r-md);
  overflow: hidden;
  border: 2px solid var(--c-border-brand);
  background: var(--c-brand);
  position: relative;
  min-height: 320px;
}
.map-wrap iframe { display: block; width: 100%; height: 380px; border: 0; }
.map-fallback {
  padding: var(--sp-6);
  color: var(--c-brand-ink);
  display: grid;
  place-items: center;
  text-align: center;
  gap: var(--sp-3);
  min-height: 320px;
}
.map-fallback .icon { width: 40px; height: 40px; color: var(--c-gold); }
.where-grid { display: grid; gap: var(--sp-8); }
@media (min-width: 900px) { .where-grid { grid-template-columns: 1fr 1.1fr; gap: var(--sp-10); align-items: center; } }
.where-cta { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-5); }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: var(--sp-3); max-width: 62rem; }
.faq-item {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-left: 4px solid var(--c-brand);
  border-radius: var(--r-md);
  overflow: hidden;
}
.faq-item > summary {
  list-style: none;
  cursor: pointer;
  padding: var(--sp-4) var(--sp-5);
  font-family: var(--f-label);
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  color: var(--c-ink);
  min-height: 44px;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary .chev {
  flex: 0 0 auto;
  width: 22px; height: 22px;
  transition: transform var(--dur) var(--ease-out);
  color: var(--c-accent);
}
.faq-item[open] > summary .chev { transform: rotate(180deg); }
.faq-item .faq-a {
  padding: 0 var(--sp-5) var(--sp-5);
  color: var(--c-ink-soft);
  max-width: 62ch;
}

/* ---------- CTA finale ---------- */
.final-cta { text-align: center; }
.final-cta .h-display { margin-inline: auto; }
.final-cta p { max-width: 52ch; margin-inline: auto; margin-top: var(--sp-4); }
.final-cta .btn { margin-top: var(--sp-6); font-size: 1.1rem; padding: 16px 30px; }
.final-cta .note { margin-top: var(--sp-4); }

/* ---------- Footer ---------- */
.site-footer { padding-block: var(--sp-10) var(--sp-8); }
.footer-grid {
  display: grid;
  gap: var(--sp-8);
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer-col h3 {
  font-family: var(--f-label); font-weight: 700; font-size: .78rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--c-gold-text);
  margin-bottom: var(--sp-4);
}
.footer-brand .wordmark { margin-bottom: var(--sp-3); }
.footer-brand .wordmark .w-1 { color: var(--c-brand-soft); }
.footer-brand .wordmark .w-2 { color: var(--c-brand-ink); }
.footer-brand p { color: var(--c-brand-soft); font-size: .95rem; max-width: 34ch; }
.footer-list { display: grid; gap: var(--sp-2); }
.footer-list li { display: flex; gap: var(--sp-2); align-items: flex-start; color: var(--c-brand-soft); font-size: .95rem; }
.footer-list .icon { color: var(--c-gold); width: 18px; height: 18px; margin-top: 2px; flex: 0 0 auto; }
.footer-list a { color: #F0C583; text-decoration: none; font-weight: 600; }
.footer-list a:hover { color: #FFDCA0; text-decoration: underline; }
.footer-social { display: flex; gap: var(--sp-2); margin-top: var(--sp-2); }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--r-md);
  border: 1.5px solid var(--c-border-brand); color: var(--c-brand-ink);
}
.footer-social a:hover { background: rgba(244,240,230,.1); color: var(--c-gold); }
.footer-bottom {
  margin-top: var(--sp-8);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--c-border-brand);
  display: flex; flex-wrap: wrap; gap: var(--sp-3);
  justify-content: space-between; align-items: center;
  color: var(--c-brand-soft); font-size: .85rem;
}
.to-top {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--c-brand-ink); text-decoration: none;
  font-family: var(--f-label); font-weight: 700; font-size: .85rem;
}
.to-top:hover { color: var(--c-gold); }
.to-top .icon { width: 1em; height: 1em; }
.footer-cta { margin-top: var(--sp-6); }

/* ---------- Bottom bar sticky (mobile) ---------- */
.cta-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: var(--z-cta);
  background: var(--c-brand);
  border-top: 2px solid var(--c-gold);
  padding: var(--sp-2) var(--sp-3);
  padding-bottom: calc(var(--sp-2) + env(safe-area-inset-bottom));
  display: flex;
  gap: var(--sp-2);
  align-items: stretch;
}
.cta-bar .btn-primary { flex: 1; }
.cta-bar .icon-btn {
  border-color: var(--c-brand-ink);
  color: var(--c-brand-ink);
  width: 52px; height: auto;
}
.cta-bar .icon-btn:hover { background: rgba(244,240,230,.12); }
@media (min-width: 768px) { .cta-bar { display: none; } }
@media (max-width: 767px) {
  body { padding-bottom: calc(var(--cta-bar-h) + env(safe-area-inset-bottom)); }
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }
[data-stagger] > * { transition-delay: calc(var(--i, 0) * 40ms); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .insegna.is-off { color: var(--c-brand); filter: none; opacity: 1; }
  .insegna.is-off .ln-2 { color: var(--c-accent); }
  .hero-rule { transform: scaleX(1); }
  .stamp { opacity: 1; }
  .stamp-box { opacity: .92; }
}

/* ============================================================
   Utility classes (externalized inline styles — CSP style-src 'self')
   Replace former style="" attributes so no 'unsafe-inline' is needed.
   ============================================================ */
.rail-price{font-family:var(--f-display);font-size:2.4rem;line-height:1;color:var(--c-accent);margin:0;}
.u-mt-8{margin-top:8px;}
.u-mt-3{margin-top:var(--sp-3);}
.u-mt-4{margin-top:var(--sp-4);}
.u-mb-4{margin-bottom:var(--sp-4);}
.u-m0{margin:0;}
.u-addr{margin:0;font-family:var(--f-label);font-weight:700;}
.u-hidden{display:none;}
.u-jc-center{justify-content:center;}
.u-ig{color:var(--c-brand-soft);}

/* ---------- Pagina 404 ---------- */
.error-page{min-height:100vh;min-height:100dvh;display:flex;align-items:center;}
.error-inner{max-width:44ch;text-align:center;margin-inline:auto;}
.error-lead{margin-top:var(--sp-4);color:var(--c-brand-ink);font-size:1.05rem;line-height:1.6;}
.error-cta{margin-top:var(--sp-6);display:flex;flex-wrap:wrap;gap:var(--sp-3);justify-content:center;}
