/* ============================================================
   MILANO · Bar & Café — Design System
   Style: Elegant dark minimalism · Playfair Display + Karla
   Palette: near-black + muted gold + Italian tricolore (hairline)
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  /* Surfaces */
  --bg:            #0B0B0B;   /* page background */
  --bg-elev:       #141210;   /* elevated sections */
  --surface:       rgba(255, 255, 255, 0.035);
  --surface-hover: rgba(255, 255, 255, 0.06);
  --border:        rgba(200, 162, 74, 0.18);  /* gold-tinted hairline */
  --border-soft:   rgba(255, 255, 255, 0.08);
  --scrim:         rgba(11, 11, 11, 0.92);

  /* Brand */
  --gold:          #C8A24A;
  --gold-bright:   #E0BE6A;
  --gold-dim:      rgba(200, 162, 74, 0.55);

  /* Text */
  --text:          #F5F1E8;   /* warm off-white */
  --text-muted:    #C9C3B6;   /* secondary (>= 4.5:1 on bg) */
  --text-faint:    #8C887E;   /* tertiary / captions */

  /* Italian tricolore (accent only) */
  --it-green:      #1B7A3D;
  --it-white:      #F5F1E8;
  --it-red:        #CE2B37;

  /* Type */
  --font-display:  "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body:     "Karla", system-ui, -apple-system, "Segoe UI", sans-serif;

  --type-hero:     clamp(2.6rem, 7vw, 5.5rem);
  --type-h2:       clamp(1.9rem, 4.2vw, 3.25rem);
  --type-h3:       1.35rem;
  --type-body:     1.0625rem;          /* 17px */
  --type-lead:     clamp(1.05rem, 1.6vw, 1.25rem);
  --type-overline: 0.78rem;

  /* Spacing scale (8pt rhythm) */
  --sp-1: 0.5rem;  --sp-2: 1rem;   --sp-3: 1.5rem;  --sp-4: 2rem;
  --sp-5: 3rem;    --sp-6: 4rem;   --sp-7: 6rem;    --sp-8: 8rem;

  /* Layout */
  --container:     1180px;
  --radius:        14px;
  --radius-sm:     8px;

  /* Motion */
  --ease-out:      cubic-bezier(0.16, 1, 0.3, 1);
  --dur:           240ms;

  /* Elevation */
  --shadow-card:   0 18px 50px -24px rgba(0, 0, 0, 0.8);

  /* Z-index scale */
  --z-header: 100;
  --z-overlay: 90;

  --header-h: 76px;

  color-scheme: dark;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--type-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { margin: 0; font-weight: 600; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

/* ---------- Accessibility helpers ---------- */
.skip-link {
  position: absolute;
  left: 50%;
  top: -100px;
  transform: translateX(-50%);
  background: var(--gold);
  color: #0B0B0B;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  z-index: 999;
  transition: top var(--dur) var(--ease-out);
}
.skip-link:focus { top: 1rem; }

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Shared typographic elements ---------- */
.overline {
  font-size: var(--type-overline);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin: 0 0 var(--sp-2);
}

.section__title {
  font-family: var(--font-display);
  font-size: var(--type-h2);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--text);
}

.section__lead {
  color: var(--text-muted);
  font-size: var(--type-lead);
  max-width: 52ch;
  margin: var(--sp-3) 0 0;
}
.section__lead--center { margin-inline: auto; }

.section__body {
  color: var(--text-muted);
  max-width: 52ch;
  margin: var(--sp-2) 0 0;
}

.tricolore-rule {
  display: block;
  width: 120px;
  height: 3px;
  margin-top: var(--sp-4);
  border-radius: 2px;
  background: linear-gradient(
    to right,
    var(--it-green) 0 33.3%,
    var(--it-white) 33.3% 66.6%,
    var(--it-red) 66.6% 100%
  );
}

.link-gold {
  color: var(--gold);
  font-weight: 600;
  border-bottom: 1px solid var(--gold-dim);
  transition: color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.link-gold:hover { color: var(--gold-bright); border-color: var(--gold-bright); }

.icon { width: 22px; height: 22px; }

/* ---------- Buttons ---------- */
.btn {
  --btn-pad-y: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: var(--btn-pad-y) 1.8rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform var(--dur) var(--ease-out),
              background-color var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out),
              color var(--dur) var(--ease-out);
}
.btn:active { transform: translateY(1px); }

.btn--gold {
  background: var(--gold);
  color: #0B0B0B;
}
.btn--gold:hover { background: var(--gold-bright); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
  background: var(--surface);
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: var(--z-header);
  display: flex;
  align-items: center;
  transition: background-color var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out),
              backdrop-filter var(--dur) var(--ease-out);
  border-bottom: 1px solid transparent;
}
.site-header[data-elevated="true"] {
  background: var(--scrim);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border-soft);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.18em;
  color: var(--gold);
}
.brand__name--lg { font-size: 2rem; }
.brand__tricolore {
  width: 30px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(to right,
    var(--it-green) 0 33.3%, var(--it-white) 33.3% 66.6%, var(--it-red) 66.6% 100%);
}

.header__right {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
}
.nav { display: flex; align-items: center; }

/* Language switcher */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: var(--surface);
}
.lang-switch__btn {
  min-width: 42px;
  min-height: 40px;
  padding: 0.3rem 0.55rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.lang-switch__btn:hover { color: var(--text); }
.lang-switch__btn.is-active { background: var(--gold); color: #0B0B0B; }

.nav__menu {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.5vw, 2.25rem);
}
.nav__link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  position: relative;
  padding: 0.4rem 0;
  transition: color var(--dur) var(--ease-out);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease-out);
}
.nav__link:hover { color: var(--text); }
.nav__link:hover::after { transform: scaleX(1); }

.nav__cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.55rem 1.3rem;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.nav__cta:hover { background: var(--gold); color: #0B0B0B; }

/* Hamburger */
.nav__toggle {
  display: none;
  width: 48px; height: 48px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 12px;
  flex-direction: column;
  justify-content: space-between;
}
.nav__toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--dur) var(--ease-out), opacity var(--dur) var(--ease-out);
}
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-block: calc(var(--header-h) + var(--sp-5)) var(--sp-6);
  overflow: hidden;
}
/* ----- Animated scene: Duomo di Milano meets Frauenkirche ----- */
.hero__scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.hero__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(58% 50% at 50% 34%, rgba(200, 162, 74, 0.12), transparent 70%),
    radial-gradient(70% 50% at 50% 108%, rgba(200, 162, 74, 0.10), transparent 62%);
  animation: glowPulse 9s ease-in-out infinite;
  will-change: opacity;
}

/* Drifting embers / warm light */
.hero__sparks { position: absolute; inset: 0; }
.spark {
  position: absolute;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 6px 1px rgba(224, 190, 106, 0.55);
  opacity: 0;
  animation: spark var(--t, 9s) linear var(--d, 0s) infinite;
}

/* Skyline line-art */
.sky {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 72%;
  opacity: 0.92;
}
.js .sky [data-draw] {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 1.8s var(--ease-out) forwards;
}
.js .sky-g--ground [data-draw] { animation-delay: 0.1s; }
.js .sky-g--duomo  [data-draw] { animation-delay: 0.35s; }
.js .sky-g--frauen [data-draw] { animation-delay: 0.7s; }
.js .sky-finials { opacity: 0; animation: fadeIn 0.9s ease forwards 2.1s; }

/* Slow light sweep across the scene */
.hero__sweep {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(224, 190, 106, 0.08) 50%, transparent);
  transform: translateX(-60%);
  mix-blend-mode: screen;
  animation: sweep 10s ease-in-out 2.4s infinite;
}
.hero__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 50% 28%, transparent 52%, rgba(11, 11, 11, 0.72));
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@keyframes draw    { to { stroke-dashoffset: 0; } }
@keyframes fadeIn  { to { opacity: 1; } }
@keyframes glowPulse { 0%, 100% { opacity: 0.62; } 50% { opacity: 1; } }
@keyframes sweep   { 0% { transform: translateX(-60%); } 55%, 100% { transform: translateX(320%); } }
@keyframes floatY  { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes spark {
  0%   { opacity: 0; transform: translateY(10px) scale(0.7); }
  15%  { opacity: 0.9; }
  60%  { opacity: 0.45; }
  85%  { opacity: 0.8; }
  100% { opacity: 0; transform: translateY(-28px) scale(1); }
}
.hero__emblem {
  width: clamp(150px, 22vw, 220px);
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  margin-bottom: var(--sp-3);
  filter: drop-shadow(0 14px 44px rgba(0, 0, 0, 0.7));
}
.js .hero__emblem { animation: floatY 6s ease-in-out infinite; }
.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--type-hero);
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}
.hero__lead {
  color: var(--text-muted);
  font-size: var(--type-lead);
  max-width: 46ch;
  margin: var(--sp-3) auto 0;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  justify-content: center;
  margin-top: var(--sp-4);
}
.hero .tricolore-rule { margin-inline: auto; }

.hero__scroll {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: var(--sp-4);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-faint);
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}
.hero__scroll-icon { width: 20px; height: 20px; animation: bob 2.4s var(--ease-out) infinite; }
.hero__scroll:hover { color: var(--gold); }

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(5px); }
}

/* ---------- Generic Section ---------- */
.section { padding-block: clamp(4rem, 9vw, 8rem); }
.section__head {
  text-align: center;
  max-width: 60ch;
  margin-inline: auto;
  margin-bottom: var(--sp-6);
}

/* ---------- Storia ---------- */
.storia { background: var(--bg-elev); border-block: 1px solid var(--border-soft); }
.storia__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-5);
  margin-top: var(--sp-5);
}
.stat { display: flex; flex-direction: column; }
.stat__num {
  font-family: var(--font-display);
  font-size: 2.1rem;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.stat__label {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 0.4rem;
}
.stat__link { transition: color var(--dur) var(--ease-out); }
.stat__link:hover { color: var(--gold-bright); text-decoration: underline; text-underline-offset: 4px; }

.storia__art {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.duomo { width: min(300px, 88%); height: auto; }

/* "Milano meets Munich" — coffee + love bridge animations */
.art-heart {
  transform-box: fill-box;
  transform-origin: center;
  animation: heartbeat 1.8s ease-in-out infinite;
}
.art-steam__s { opacity: 0; animation: steam 3.2s ease-out infinite; }
.art-steam__s2 { animation-delay: 1.5s; }
.art-arc { animation: arcFlow 6s linear infinite; }
.art-node { animation: nodePulse 1.8s ease-in-out infinite; }

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.18); }
  28% { transform: scale(1); }
  42% { transform: scale(1.1); }
  56% { transform: scale(1); }
}
@keyframes steam {
  0%   { opacity: 0; transform: translateY(2px) scaleY(0.75); }
  25%  { opacity: 0.85; }
  70%  { opacity: 0.35; }
  100% { opacity: 0; transform: translateY(-14px) scaleY(1.1); }
}
@keyframes arcFlow { to { stroke-dashoffset: -34; } }
@keyframes nodePulse { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }
.storia__art-cap {
  font-style: italic;
  font-family: var(--font-display);
  color: var(--text-faint);
  font-size: 0.95rem;
}

/* Founders photo variant */
.storia__art--photo { padding: clamp(0.7rem, 1.5vw, 1.1rem); gap: var(--sp-2); }
.storia__photo {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-sm);
  display: block;
}
.storia__founders {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold);
  font-size: 1.1rem;
  letter-spacing: 0.01em;
}

/* ---------- Menu ---------- */
.menu__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
  gap: clamp(1.25rem, 2.5vw, 2rem);
}
.menu-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  transition: border-color var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out);
}
.menu-card:hover { border-color: var(--border); background: var(--surface-hover); }
.menu-card__title {
  font-family: var(--font-display);
  font-size: var(--type-h3);
  color: var(--gold);
  padding-bottom: var(--sp-2);
  margin-bottom: var(--sp-2);
  border-bottom: 1px solid var(--border);
}
.menu-list { display: flex; flex-direction: column; gap: 0.9rem; }
.menu-item {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}
.menu-item__name { color: var(--text); font-weight: 500; }
.menu-item__dots {
  flex: 1;
  border-bottom: 1px dotted var(--text-faint);
  transform: translateY(-3px);
  opacity: 0.5;
}
.menu-item__price {
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* item with a size label inline (e.g. soda 0,33 l) */
.menu-item__size {
  color: var(--text-faint);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* stacked item: name + description and/or multiple sizes */
.menu-item-stack { display: flex; flex-direction: column; gap: 3px; }
.menu-item-stack > .menu-item__name { color: var(--text); font-weight: 500; }
.menu-item__desc {
  font-size: 0.8rem;
  font-style: italic;
  color: var(--text-faint);
  line-height: 1.4;
}
.menu-item__sizes { display: flex; flex-direction: column; gap: 2px; margin-top: 2px; }
.size-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.size-row > span:first-child { color: var(--text-faint); }

/* card-level helpers */
.menu-card__sub {
  margin: -0.25rem 0 var(--sp-2);
  font-size: 0.82rem;
  font-style: italic;
  color: var(--text-faint);
}
.menu-list--plain { gap: 0.55rem; }
.menu-list--plain li { color: var(--text); font-weight: 500; }
.menu-card__price {
  margin-top: var(--sp-3);
  color: var(--gold);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.menu-card__note {
  margin-top: var(--sp-3);
  padding-top: var(--sp-2);
  border-top: 1px solid var(--border-soft);
  font-size: 0.8rem;
  color: var(--text-faint);
  line-height: 1.5;
}
.menu__note {
  text-align: center;
  margin-top: var(--sp-5);
  color: var(--text-faint);
  font-size: 0.86rem;
  letter-spacing: 0.04em;
}

/* ---------- Galleria ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 200px;
  gap: clamp(0.75rem, 1.6vw, 1.1rem);
}
.gallery__item {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  background:
    linear-gradient(135deg, #1c1814, #0e0d0c 70%);
  transition: transform var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
/* placeholder texture + label */
.gallery__item::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 120% at 30% 20%, rgba(200, 162, 74, 0.16), transparent 55%);
}
.gallery__item::after {
  content: attr(data-label);
  position: absolute;
  left: 1rem; bottom: 0.9rem;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.gallery__item:hover { transform: scale(1.02); border-color: var(--border); }
.gallery__item--tall { grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }

.gallery__cta {
  text-align: center;
  margin-top: var(--sp-5);
  color: var(--text-muted);
}
.gallery__handle {
  display: block;
  margin-top: var(--sp-2);
  color: var(--text-faint);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

/* Instagram Reels — official embeds in a responsive grid */
.reels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  max-width: 1100px;
  margin-inline: auto;
  justify-items: center;
  align-items: start;
}
.reels .instagram-media {
  background: #fff;
  border: 0;
  border-radius: var(--radius-sm);
  margin: 0 !important;
  max-width: 540px;
  min-width: 0;
  width: 100%;
  /* reserve space so processed embeds don't shift the layout much */
  min-height: 520px;
  box-shadow: var(--shadow-card);
}
/* fallback link shown only until embed.js replaces the blockquote */
.reels .instagram-media > a {
  display: inline-block;
  padding: 1rem 1.25rem;
  color: var(--gold);
  font-weight: 600;
}

/* ---------- Visita ---------- */
.visita { background: var(--bg-elev); border-top: 1px solid var(--border-soft); }
.visita__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
}
.visita__block { margin-top: var(--sp-4); }
.visita__subtitle {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
}
.visita__subtitle .icon { color: var(--gold); }
.visita__address, .visita__contact {
  font-style: normal;
  color: var(--text-muted);
  line-height: 1.9;
}
.visita__info .btn { margin-top: var(--sp-4); }

.visita__hours {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-card);
}
.hours { width: 100%; border-collapse: collapse; margin-bottom: var(--sp-4); }
.hours th, .hours td {
  text-align: left;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border-soft);
}
.hours th { font-weight: 500; color: var(--text); }
.hours td {
  text-align: right;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours__closed { color: var(--text-faint); font-style: italic; }
.hours__holiday th { color: var(--gold); }

.menu__actions { text-align: center; margin-top: var(--sp-5); }

.map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 160px;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border);
  color: var(--text-faint);
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.015) 0 12px, transparent 12px 24px);
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  text-transform: uppercase;
}
.map-placeholder__pin { width: 28px; height: 28px; color: var(--gold); }

/* Google Maps embed — tinted to sit on the dark theme, clears on hover for legibility */
.map-embed {
  width: 100%;
  height: 200px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  filter: grayscale(0.45) contrast(0.95) brightness(0.9);
  transition: filter var(--dur) var(--ease-out);
}
.map-embed:hover { filter: none; }
.map-directions {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: var(--sp-2);
  color: var(--gold);
  font-weight: 600;
  font-size: 0.9rem;
  transition: color var(--dur) var(--ease-out);
}
.map-directions .icon { width: 18px; height: 18px; }
.map-directions:hover { color: var(--gold-bright); }

/* ---------- Footer ---------- */
.site-footer { position: relative; padding-top: var(--sp-6); }
.tricolore-rule--full {
  width: 100%;
  margin: 0;
  border-radius: 0;
  height: 3px;
  position: absolute;
  top: 0; left: 0;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding-bottom: var(--sp-4);
}
.footer__tag { color: var(--text-faint); margin: 0.3rem 0 0; font-size: 0.9rem; }
.footer__nav { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.footer__nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color var(--dur) var(--ease-out);
}
.footer__nav a:hover { color: var(--gold); }
.footer__social { display: flex; gap: 0.75rem; }
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  color: var(--text-muted);
  transition: color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out);
}
.social-link:hover { color: var(--gold); border-color: var(--gold); background: var(--surface); }
.footer__copy {
  text-align: center;
  color: var(--text-faint);
  font-size: 0.82rem;
  padding: var(--sp-3) 0 var(--sp-4);
  border-top: 1px solid var(--border-soft);
  margin: 0;
}

/* ============================================================
   Scroll-reveal (progressive enhancement; safe without JS)
   ============================================================ */
/* Reveals hide ONLY when JS is active (html.js set synchronously in <head>).
   Without JS the .js selector never matches, so content stays fully visible. */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  will-change: opacity, transform;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .storia__grid,
  .visita__grid { grid-template-columns: 1fr; }
  .storia__art { order: -1; }
  .menu__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  /* Mobile nav: slide-down panel */
  .nav__toggle { display: flex; z-index: 2; }
  .nav__menu {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--sp-2) clamp(1.25rem, 5vw, 3rem) var(--sp-4);
    background: var(--scrim);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-soft);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--dur) var(--ease-out), opacity var(--dur) var(--ease-out);
  }
  .nav__menu.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__link {
    display: block;
    padding: 1rem 0;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--border-soft);
  }
  .nav__link::after { display: none; }
  .nav__cta { margin-top: var(--sp-2); justify-content: center; width: 100%; }

  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .gallery__item--wide { grid-column: span 2; }

  .hero__actions { width: 100%; }
  .hero__actions .btn { flex: 1 1 auto; }
}

@media (max-width: 720px) {
  /* keep the header bar from crowding once brand + lang + burger share it */
  .header__right { gap: 0.5rem; }
  .sky { height: 58%; }            /* a touch taller so both towers read on a narrow hero */
  .menu__grid { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .stats { gap: var(--sp-3); }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .brand__name { font-size: 1.3rem; letter-spacing: 0.14em; }
  .brand__tricolore { display: none; }
  .lang-switch__btn { min-width: 36px; padding: 0.3rem 0.4rem; font-size: 0.72rem; }
}

/* ---------- Landscape phones: don't force full-height hero ---------- */
@media (max-height: 560px) and (orientation: landscape) {
  .hero { min-height: auto; padding-block: calc(var(--header-h) + var(--sp-4)) var(--sp-5); }
  .hero__scroll { display: none; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__scroll-icon { animation: none; }
  /* Show the skyline fully drawn, no draw/sweep/spark motion */
  .js .sky [data-draw] { stroke-dasharray: none; stroke-dashoffset: 0; }
  .sky-finials { opacity: 1; }
  .hero__sweep, .spark { display: none; }
  /* keep the coffee/love illustration legible without motion */
  .art-steam__s { opacity: 0.45; }
}
