/* ============================================================================
   OSTERIA DA CICCIO — MENU PUBBLICO
   Stile: clean food-app · titoli in Fraunces · body sans-serif (DM Sans)
   ============================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700;9..144,800&family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
  /* Palette — light theme (default) */
  --bg: #FBFAF7;
  --surface: #FFFFFF;
  --surface-soft: #F4F1EA;
  --ink: #181614;
  --ink-soft: #5A554F;
  --ink-faint: #8E8A82;
  --line: #E8E3D8;
  --line-soft: #F0EBE0;
  --accent: #181614;
  --brand: #B80A04;
  --brand-rgb: 184, 10, 4;
  --shadow: 0 8px 32px rgba(24, 22, 20, 0.18);

  /* Typography */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --max-width: 720px;

  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #18161A;
  --surface: #221F22;
  --surface-soft: #2C282C;
  --ink: #F4ECDB;
  --ink-soft: #C2BAA9;
  --ink-faint: #847E72;
  --line: #3A3531;
  --line-soft: #2C282C;
  --accent: #F4ECDB;
  --brand: #B80A04;
  --brand-rgb: 184, 10, 4;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.5);

  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  --chrome-h: 122px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { display: block; }

/* ============================================================================
   TOP BAR
   ============================================================================ */

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 0.7rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.topbar-brand img {
  width: 36px; height: 36px;
  object-fit: contain;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: var(--surface-soft);
  border: none;
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.3s ease;
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: var(--line);
  transform: rotate(15deg);
}

.theme-toggle svg {
  width: 18px; height: 18px;
}

.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.lang-switcher {
  display: flex;
  gap: 0;
  background: var(--surface-soft);
  padding: 3px;
  border-radius: 999px;
}

.lang-btn {
  background: transparent;
  border: none;
  padding: 0.4rem 0.65rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  cursor: pointer;
  border-radius: 999px;
  transition: color 0.18s ease, background 0.18s ease;
}

.lang-btn:hover { color: var(--ink); }

.lang-btn.active {
  background: var(--accent);
  color: var(--surface);
}

/* ============================================================================
   HERO — compatto, brand-first
   ============================================================================ */

.hero {
  padding: 2rem 1.5rem 1rem;
  text-align: center;
  background: var(--bg);
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-stamp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: var(--surface-soft);
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}


.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero-logo {
  display: block;
  width: 180px;
  height: 180px;
  margin: 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 18px rgba(24, 22, 20, 0.10));
}

.hero-tagline {
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ink);
  margin-top: 1.1rem;
}

.hero-divider { display: none; }

.hero-welcome {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
  margin-top: 0.4rem;
}

.hero-address {
  margin-top: 0.7rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ============================================================================
   CATEGORY NAV — sticky pills
   ============================================================================ */

.cat-nav {
  position: sticky;
  top: 56px;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 0;
}

.cat-nav-inner {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0 1.25rem;
  -webkit-overflow-scrolling: touch;
  max-width: var(--max-width);
  margin: 0 auto;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
}

/* Subtle fade hint on right edge to suggest more content */
.cat-nav::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 1px;
  width: 36px;
  background: linear-gradient(to right, transparent, var(--bg));
  pointer-events: none;
  z-index: 1;
}

.cat-nav-inner::-webkit-scrollbar { display: none; }

.cat-pill {
  flex-shrink: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 0.55rem 1.05rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
  text-decoration: none;
}

.cat-pill:hover {
  background: #3A3531;
  color: #FAF5EA;
  border-color: #3A3531;
}

.cat-pill.active {
  background: var(--brand);
  color: var(--surface);
  border-color: var(--brand);
}

.cat-pill .num { display: none; }

/* ============================================================================
   MENU CONTENT
   ============================================================================ */

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.5rem 1.25rem 6rem;
}

.category {
  margin-top: 2rem;
  scroll-margin-top: var(--chrome-h);
}

.cat-header {
  text-align: left;
  margin-bottom: 1.25rem;
  padding-top: 0.75rem;
}

/* Eyebrow: numero romano in rosso con linea decorativa */
.cat-numeral {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  color: var(--brand);
  margin-bottom: 0.55rem;
  text-transform: uppercase;
  line-height: 1;
}

.cat-numeral::after {
  content: '';
  display: inline-block;
  width: 32px;
  height: 1.5px;
  background: var(--brand);
  margin-left: 0.7em;
  vertical-align: 0.32em;
  border-radius: 2px;
  opacity: 0.85;
}

.cat-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.7rem;
  line-height: 1.1;
  color: var(--ink);
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 144;
  margin-bottom: 0.3rem;
}

.cat-tagline {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.92rem;
  color: var(--ink-faint);
  margin: 0;
  line-height: 1.4;
}

.cat-flourish { display: none; }

/* Item list */
.items {
  display: flex;
  flex-direction: column;
  margin-top: 0.5rem;
}

.item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.item:last-child { border-bottom: none; }

.item.has-image {
  grid-template-columns: 1fr 88px;
  gap: 1rem;
}

.item-image {
  width: 88px;
  height: 88px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface-soft);
  position: relative;
}

.item-image img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.item-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.item-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: -0.005em;
  font-variation-settings: "opsz" 144;
  margin-bottom: 0.25rem;
}

.item-name .badge {
  display: inline-block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--surface-soft);
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  margin-left: 0.4rem;
  vertical-align: middle;
  letter-spacing: 0.02em;
  text-transform: none;
}

.item-desc {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--ink-faint);
  margin-bottom: 0.5rem;
}

.item-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  white-space: nowrap;
  letter-spacing: 0;
  margin-top: auto;
}

/* Sizes inline */
.item-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin-top: 0.25rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.size-block {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
}

.size-label {
  font-weight: 500;
  font-size: 0.78rem;
  color: var(--ink-faint);
}

.size-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
}

.size-block::after {
  content: '·';
  color: var(--line);
  margin-left: 0.6rem;
}

.size-block:last-child::after { display: none; }

.item.has-sizes { grid-template-columns: 1fr; }
.item.has-image.has-sizes { grid-template-columns: 1fr 88px; }

/* ============================================================================
   FIXED MENU — dark card
   ============================================================================ */

/* Menu Fisso — dark card con testo chiaro in entrambi i temi */
.cat-fixed-menu {
  background: #1A1714;
  color: #FAF5EA;
  border-radius: 14px;
  padding: 1.75rem 1.5rem 2rem;
  margin: 1rem 0;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(250, 245, 234, 0.08);
}

[data-theme="dark"] .cat-fixed-menu {
  background: linear-gradient(135deg, #2A2522 0%, #1F1B19 100%);
  border: 1px solid rgba(var(--brand-rgb), 0.3);
}

.cat-fixed-menu .cat-header { text-align: center; padding-top: 0; }
.cat-fixed-menu .cat-numeral { color: rgba(var(--brand-rgb), 1); }
.cat-fixed-menu .cat-title { color: #FAF5EA; font-size: 1.75rem; }
.cat-fixed-menu .cat-tagline { color: rgba(250, 245, 234, 0.65); }

.cat-fixed-menu .item {
  border-bottom: none;
  padding: 0.5rem 0 0;
  display: block;
  text-align: center;
}

.cat-fixed-menu .item-name {
  color: #FAF5EA;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.cat-fixed-menu .item-desc {
  color: rgba(250, 245, 234, 0.78);
  font-size: 0.92rem;
  max-width: 38em;
  margin: 0 auto 1.2rem;
}
.cat-fixed-menu .item-price {
  font-size: 2rem;
  color: var(--brand);
  display: inline-block;
  margin: 0 auto;
}
.cat-fixed-menu .badge {
  background: rgba(250, 245, 234, 0.14);
  color: #FAF5EA;
  font-weight: 500;
  display: inline-block;
  margin: 0 auto 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ============================================================================
   FOOTER
   ============================================================================ */

/* ============================================================================
   GOOGLE REVIEW CARD
   ============================================================================ */

.review-cta-wrap {
  max-width: var(--max-width);
  margin: 2.5rem auto 1rem;
  padding: 0 1.25rem;
}

.review-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.6rem 1.5rem;
  padding: 1.5rem 1.5rem 1.6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.review-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(251, 188, 5, 0.18);
  border-color: rgba(251, 188, 5, 0.4);
}

.review-stars {
  grid-column: 1 / -1;
  display: flex;
  gap: 0.2rem;
  color: #FBBC05; /* Google gold */
  filter: drop-shadow(0 1px 2px rgba(251, 188, 5, 0.30));
}

.review-stars svg {
  width: 22px; height: 22px;
}

.review-text {
  min-width: 0;
}

.review-label {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.3rem;
}

.review-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 0.4rem;
  font-variation-settings: "opsz" 144;
}

.review-tagline {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--ink-faint);
  line-height: 1.4;
  margin: 0;
}

.review-google-badge {
  flex-shrink: 0;
  width: 52px; height: 52px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  transition: transform 0.25s ease, background 0.2s ease;
}

.review-card:hover .review-google-badge {
  transform: scale(1.06);
  background: var(--bg);
}

.review-google-badge svg {
  width: 26px; height: 26px;
}

@media (max-width: 600px) {
  .review-cta-wrap { padding: 0 1rem; margin: 1.5rem auto 0.75rem; }
  .review-card { padding: 1.2rem 1.1rem; gap: 0.5rem 1rem; }
  .review-stars svg { width: 18px; height: 18px; }
  .review-title { font-size: 1.15rem; }
  .review-tagline { font-size: 0.82rem; }
  .review-google-badge { width: 44px; height: 44px; }
  .review-google-badge svg { width: 22px; height: 22px; }
}

/* ============================================================================
   HERO SOCIALS (icone compatte nell'hero)
   ============================================================================ */

.hero-socials {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.hero-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  color: #FFFFFF;
  text-decoration: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.hero-social svg {
  width: 20px;
  height: 20px;
}

.hero-social:hover {
  transform: translateY(-2px);
}

.hero-social-ig {
  background: linear-gradient(45deg, #FEDA77 0%, #F58529 25%, #DD2A7B 50%, #8134AF 75%, #515BD4 100%);
}
.hero-social-ig:hover { box-shadow: 0 6px 16px rgba(221, 42, 123, 0.40); }

.hero-social-fb {
  background: #1877F2;
}
.hero-social-fb:hover { box-shadow: 0 6px 16px rgba(24, 119, 242, 0.40); }

.hero-social-tt {
  background: #010101;
}
.hero-social-tt:hover { box-shadow: 0 6px 16px rgba(0, 0, 0, 0.40); }

[data-theme="dark"] .hero-social-tt {
  background: #FFFFFF;
  color: #010101;
}

/* ============================================================================
   INSTAGRAM MINI BADGE (nell'hero) — legacy
   ============================================================================ */

.ig-mini {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.35rem 0.85rem 0.35rem 0.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.ig-mini:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(221, 42, 123, 0.20);
  border-color: transparent;
}

.ig-mini-icon {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 6px;
  background: linear-gradient(45deg, #FEDA77 0%, #F58529 25%, #DD2A7B 50%, #8134AF 75%, #515BD4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
}

.ig-mini-icon svg {
  width: 14px; height: 14px;
}

.ig-mini-handle {
  white-space: nowrap;
}

/* ============================================================================
   SOCIAL CTA (full row nel footer)
   ============================================================================ */

.social-cta-wrap {
  max-width: var(--max-width);
  margin: 1.5rem auto 2.5rem;
  padding: 0 1.25rem;
  text-align: center;
}

.social-header {
  margin-bottom: 1.2rem;
}

.social-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0 0 0.3rem;
  font-variation-settings: "opsz" 144;
}

.social-tagline {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--ink-faint);
  line-height: 1.4;
  margin: 0;
  max-width: 30em;
  margin-left: auto;
  margin-right: auto;
}

.social-row {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1.1rem 0.7rem 0.7rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  position: relative;
}

.social-btn svg {
  width: 32px;
  height: 32px;
  padding: 7px;
  border-radius: 999px;
  color: #FFFFFF;
  flex-shrink: 0;
}

.social-btn:hover {
  transform: translateY(-2px);
  border-color: transparent;
}

/* Instagram — gradient ufficiale */
.social-ig svg {
  background: linear-gradient(45deg, #FEDA77 0%, #F58529 25%, #DD2A7B 50%, #8134AF 75%, #515BD4 100%);
}
.social-ig:hover {
  box-shadow: 0 6px 18px rgba(221, 42, 123, 0.30);
}

/* Facebook — blu Meta */
.social-fb svg {
  background: #1877F2;
}
.social-fb:hover {
  box-shadow: 0 6px 18px rgba(24, 119, 242, 0.30);
}

/* TikTok — nero + accents */
.social-tt svg {
  background: #010101;
}
.social-tt:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .social-tt svg {
  background: #FFFFFF;
  color: #010101;
}

@media (max-width: 600px) {
  .social-cta-wrap { padding: 0 1rem; margin: 1.25rem auto 2rem; }
  .social-title { font-size: 1.1rem; }
  .social-tagline { font-size: 0.82rem; }
  .social-row { gap: 0.55rem; }
  .social-btn {
    padding: 0.6rem 1rem 0.6rem 0.6rem;
    font-size: 0.82rem;
  }
  .social-btn svg { width: 28px; height: 28px; padding: 6px; }
}

/* ============================================================================
   INSTAGRAM CTA (full card nel footer) — legacy, mantenuto per safety
   ============================================================================ */

.ig-cta-wrap {
  max-width: var(--max-width);
  margin: 1.5rem auto 2.5rem;
  padding: 0 1.25rem;
}

.ig-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.ig-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #FEDA77 0%, #F58529 25%, #DD2A7B 50%, #8134AF 75%, #515BD4 100%);
}

.ig-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(24, 22, 20, 0.10);
  border-color: transparent;
}

[data-theme="dark"] .ig-card:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
}

.ig-icon {
  flex-shrink: 0;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(45deg, #FEDA77 0%, #F58529 25%, #DD2A7B 50%, #8134AF 75%, #515BD4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(221, 42, 123, 0.30);
}

.ig-icon svg {
  width: 28px; height: 28px;
}

.ig-text {
  flex: 1;
  min-width: 0;
}

.ig-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.15rem;
}

.ig-handle {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.ig-tagline {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--ink-faint);
  line-height: 1.35;
  margin: 0;
}

.ig-arrow {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease, transform 0.25s ease;
}

.ig-card:hover .ig-arrow {
  background: var(--brand);
  color: #FAF5EA;
  transform: translateX(3px);
}

.ig-arrow svg {
  width: 18px; height: 18px;
}

@media (max-width: 600px) {
  .ig-cta-wrap { padding: 0 1rem; margin: 1rem auto 2rem; }
  .ig-card { padding: 0.95rem 1rem; gap: 0.85rem; }
  .ig-icon { width: 46px; height: 46px; border-radius: 12px; }
  .ig-icon svg { width: 24px; height: 24px; }
  .ig-handle { font-size: 1.05rem; }
  .ig-tagline { font-size: 0.8rem; }
  .ig-arrow { width: 32px; height: 32px; }
  .ig-arrow svg { width: 16px; height: 16px; }
}

.frozen-note {
  text-align: center;
  margin: 2.5rem 0 1rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--ink-faint);
  font-style: normal;
}

footer {
  text-align: center;
  padding: 3rem 1.5rem 2.5rem;
  border-top: 1px solid var(--line);
  margin-top: 2rem;
  color: var(--ink-soft);
  background: var(--surface);
}

footer .footer-divider { display: none; }

footer .footer-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 0.4rem;
}

footer .footer-cta {
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-bottom: 0.5rem;
}

footer .footer-address {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.5rem;
  background: var(--ink);
  border: 1px solid var(--ink);
  color: var(--surface);
  padding: 0.65rem 1.4rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  text-decoration: none;
}

.back-to-top:hover {
  background: transparent;
  color: var(--ink);
}

.footer-credits {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
}

.footer-credits a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-credits a:hover {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */

@media (min-width: 768px) {
  body { font-size: 17px; }
  .item.has-image { grid-template-columns: 1fr 110px; gap: 1.25rem; }
  .item-image { width: 110px; height: 110px; }
  .item-name { font-size: 1.15rem; }
  .item-price { font-size: 1.08rem; }
  .cat-title { font-size: 2rem; }
  main { padding: 0.5rem 2rem 6rem; }

  /* Hero side-by-side: logo a sinistra, info a destra */
  .hero {
    padding: 1.75rem 2rem 1.5rem;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "stamp stamp"
      "logo  info";
    gap: 1rem 1.75rem;
    align-items: center;
    text-align: left;
  }
  .hero-stamp {
    grid-area: stamp;
    justify-self: start;
    margin-bottom: 0;
  }
  .hero-logo {
    grid-area: logo;
    width: 120px;
    height: 120px;
    margin: 0;
  }
  .hero-info {
    grid-area: info;
  }
  .hero-tagline {
    font-size: 1.4rem;
    margin-top: 0;
    line-height: 1.2;
  }
  .hero-welcome {
    margin-top: 0.35rem;
  }
  .hero-address {
    margin-top: 0.85rem;
  }
}

@media (max-width: 600px) {
  body { font-size: 15.5px; }
  .item.has-image {
    grid-template-columns: 1fr 78px;
    gap: 0.75rem;
  }
  .item-image { width: 78px; height: 78px; }
  .item-name { font-size: 1rem; }
  .item-desc { font-size: 0.84rem; }
  .item-price { font-size: 0.95rem; }
  .lang-btn { padding: 0.35rem 0.5rem; font-size: 0.66rem; }
  .topbar { padding: 0.65rem 0.85rem; }
  .topbar-brand img { width: 32px; height: 32px; }
  .topbar-brand { font-size: 0.88rem; gap: 0.45rem; }
  .topbar-brand span { display: none; }
  .topbar-actions { gap: 0.35rem; }
  .theme-toggle { width: 32px; height: 32px; }
  .theme-toggle svg { width: 16px; height: 16px; }
  .hero { padding: 1.5rem 1rem 1rem; }
  .hero-logo { width: 170px; height: 170px; }
  .cat-nav { top: 54px; }
  .cat-title { font-size: 1.5rem; }
}

/* ============================================================================
   LIGHTBOX — foto piatto fullscreen
   ============================================================================ */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(24, 22, 20, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 1.5rem;
  overflow-y: auto;
}

[data-theme="dark"] .lightbox {
  background: rgba(0, 0, 0, 0.92);
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(244, 236, 219, 0.12);
  border: none;
  color: #FAF5EA;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 1;
}

.lightbox-close:hover {
  background: rgba(244, 236, 219, 0.22);
  transform: scale(1.05);
}

.lightbox-close svg {
  width: 22px; height: 22px;
}

.lightbox-content {
  max-width: 640px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transform: scale(0.96);
  transition: transform 0.35s cubic-bezier(0.34, 1.2, 0.64, 1);
  margin: auto;
}

.lightbox.open .lightbox-content {
  transform: scale(1);
}

.lightbox-image-wrap {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(244, 236, 219, 0.06);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lightbox-text {
  text-align: center;
  color: #FAF5EA;
  padding: 0 0.5rem;
}

.lightbox-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 5vw, 2rem);
  line-height: 1.15;
  color: #FAF5EA;
  letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
  font-variation-settings: "opsz" 144;
}

.lightbox-desc {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(244, 236, 219, 0.78);
  max-width: 36em;
  margin: 0 auto 1.2rem;
}

.lightbox-price {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--brand);
  padding: 0.4rem 1.2rem;
  background: rgba(244, 236, 219, 0.08);
  border-radius: 999px;
  border: 1px solid rgba(244, 236, 219, 0.12);
}

/* Item image is now clickable */
.item-image {
  cursor: zoom-in;
  transition: transform 0.2s ease;
}

.item-image:hover {
  transform: scale(1.03);
}

@media (max-width: 600px) {
  .lightbox { padding: 1rem; }
  .lightbox-close { top: 0.65rem; right: 0.65rem; width: 38px; height: 38px; }
  .lightbox-close svg { width: 18px; height: 18px; }
  .lightbox-content { gap: 1rem; }
}

@media print {
  .topbar, .cat-nav, .back-to-top, footer { display: none !important; }
  body { background: white; }
  .category { page-break-inside: avoid; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
