/* Molo 9 — bar: il sito cambia palette con la fascia oraria (colazione, pranzo, aperitivo, sera). */
:root {
  --bg: #f7efe2; --surface: #fffaf2; --surface-2: #efe2cc; --text: #2b1a10; --muted: #7a6350; --line: #e5d4ba;
  --accent: #e2711d; --accent-ink: #ffffff; --pop: #2b1a10;
  --radius: 18px;
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, sans-serif;
  --wrap: 1200px;
}
:root[data-fascia="pranzo"] { --bg: #eef2e4; --surface: #fbfdf6; --surface-2: #dde6cc; --text: #1d2a19; --muted: #5f6f57; --line: #cfdbbb; --accent: #3f8a3c; --pop: #1d2a19; }
:root[data-fascia="aperitivo"] { --bg: #16233f; --surface: #1e2d4f; --surface-2: #26385f; --text: #fff1e4; --muted: #b6bdd3; --line: rgba(255,241,228,.16); --accent: #ff6a2b; --accent-ink: #1b0e05; --pop: #ffb37a; }
:root[data-fascia="sera"] { --bg: #140d22; --surface: #1d1431; --surface-2: #281c42; --text: #f4ebff; --muted: #b3a5cc; --line: rgba(244,235,255,.14); --accent: #ff3d9a; --accent-ink: #1a0510; --pop: #b98bff; }
:root[data-fascia="aperitivo"], :root[data-fascia="sera"] { color-scheme: dark; }
body { transition: background-color .8s ease, color .8s ease; font-size: 17px; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; margin: 0; line-height: .98; letter-spacing: -.03em; }
h2 { font-size: clamp(40px, 6vw, 76px); }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.section { padding: clamp(64px, 10vw, 120px) 0; }
p { color: var(--muted); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 999px; font-weight: 800; text-decoration: none; border: 2px solid var(--text); color: var(--text); transition: transform .15s, background-color .8s, color .8s, border-color .8s; }
.btn:hover { transform: translateY(-2px); }
.btn--fill { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* header */
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 90%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); transition: background-color .8s; }
.top__in { display: flex; align-items: center; gap: 22px; height: 68px; }
.logo { text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 28px; letter-spacing: -.04em; display: flex; align-items: baseline; gap: .22em; }
.logo span { color: var(--accent); transition: color .8s; }
.nav { display: flex; gap: 24px; margin-left: auto; font-weight: 700; }
.nav a { text-decoration: none; }
.nav a:hover { color: var(--accent); }
.tools { display: flex; align-items: center; gap: 10px; }
.lang { display: flex; border: 1.5px solid var(--line); border-radius: 999px; padding: 2px; }
.lang button { border: 0; background: none; padding: 4px 9px; border-radius: 999px; font-weight: 800; font-size: 12px; }
.lang button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.top .btn { min-height: 42px; padding: 0 16px; font-size: 14px; }
.burger { display: none; border: 0; background: none; width: 40px; height: 40px; padding: 0; }
.burger span { display: block; width: 24px; height: 2.5px; border-radius: 3px; background: var(--text); margin: 5px auto; }
@media (max-width: 860px) {
  .nav { position: fixed; inset: 68px 0 auto 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 6px 16px 16px; transform: translateY(-130%); transition: transform .25s; z-index: -1; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 20px; }
  .menu-open .nav { transform: none; }
  .burger { display: block; }
  .tools { margin-left: auto; }
}
@media (max-width: 400px) { .lang { display: none; } }

/* hero a fasce */
.hero { padding: clamp(24px, 5vw, 56px) 0 clamp(56px, 8vw, 96px); }
.slots { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: clamp(24px, 4vw, 40px); }
.slot { flex: none; display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 14px; font-weight: 800; font-size: 14px; transition: background-color .3s, color .3s; }
.slot small { font-weight: 600; color: var(--muted); }
.slot[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.slot[aria-pressed="true"] small { color: inherit; opacity: .7; }
.slot__live { width: 8px; height: 8px; border-radius: 50%; background: #2ecc71; box-shadow: 0 0 0 3px rgba(46,204,113,.25); animation: live 1.6s ease-in-out infinite; }
@keyframes live { 50% { box-shadow: 0 0 0 7px rgba(46,204,113,0); } }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.now { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 18px; }
.now b { font-family: var(--font-display); background: var(--accent); color: var(--accent-ink); padding: 4px 10px; border-radius: 999px; font-variant-numeric: tabular-nums; transition: background-color .8s; }
.hero h1 { font-size: clamp(58px, 10vw, 140px); }
.hero h1 span { color: var(--accent); transition: color .8s; }
.hero__lead { font-size: clamp(18px, 2vw, 21px); max-width: 40ch; margin: 20px 0 28px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__media { position: relative; aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden; background: var(--surface-2); }
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .9s ease, transform 1.4s ease; }
.hero__media img.on { opacity: 1; transform: none; }
.hero__badge { position: absolute; left: 16px; bottom: 16px; z-index: 2; background: var(--bg); color: var(--text); border-radius: 16px; padding: 12px 14px; font-weight: 800; max-width: 75%; box-shadow: 0 10px 30px rgba(0,0,0,.2); transition: background-color .8s, color .8s; }
.hero__badge small { display: block; color: var(--muted); font-weight: 600; }
@media (max-width: 820px) { .hero__grid { grid-template-columns: 1fr; } .hero__media { aspect-ratio: 4 / 3.4; order: -1; } }

/* ticker */
.ticker { background: var(--accent); color: var(--accent-ink); overflow: hidden; white-space: nowrap; padding: 14px 0; transition: background-color .8s, color .8s; }
.ticker__track { display: inline-flex; gap: 30px; font-family: var(--font-display); font-weight: 800; font-size: clamp(22px, 3vw, 32px); text-transform: uppercase; letter-spacing: -.02em; animation: tick 26s linear infinite; }
.ticker__track span::after { content: "✶"; margin-left: 30px; }
@keyframes tick { to { transform: translateX(-50%); } }

/* menu fascia */
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-top: 30px; }
.item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 4px; transition: background-color .8s, border-color .8s; }
.item__top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.item h3 { font-size: 22px; letter-spacing: -.02em; }
.item b { font-family: var(--font-display); color: var(--accent); font-size: 20px; white-space: nowrap; transition: color .8s; }
.item p { margin: 0; font-size: 15px; }

/* drink della fascia */
.drinks__lead { max-width: 52ch; margin: 14px 0 0; font-size: 18px; }
.cocktails { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 34px; }
.cocktail { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4.2; color: #fff; }
.cocktail img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.cocktail:hover img { transform: scale(1.06); }
.cocktail::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.35) 55%, rgba(0,0,0,.9)); }
.cocktail h3, .cocktail p { text-shadow: 0 1px 10px rgba(0,0,0,.6); }
.cocktail div { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 16px; }
.cocktail h3 { font-size: 26px; }
.cocktail p { color: rgba(255,255,255,.92); margin: 4px 0 0; font-size: 14px; }
.cocktail span { position: absolute; top: 12px; right: 12px; z-index: 1; background: var(--accent); color: var(--accent-ink); font-weight: 800; border-radius: 999px; padding: 4px 10px; font-size: 14px; }
@media (max-width: 900px) { .cocktails { grid-template-columns: repeat(2, 1fr); } }

/* eventi */
.events { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 10px; }
.event { display: grid; grid-template-columns: 92px 1fr auto; gap: 18px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px 14px 14px; transition: background-color .8s; }
.event__day { text-align: center; background: var(--surface-2); border-radius: 12px; padding: 8px 0; transition: background-color .8s; }
.event__day b { display: block; font-family: var(--font-display); font-size: 30px; line-height: 1; }
.event__day small { font-weight: 800; text-transform: uppercase; font-size: 11px; letter-spacing: .08em; color: var(--accent); }
.event h3 { font-size: 22px; letter-spacing: -.02em; }
.event p { margin: 2px 0 0; font-size: 15px; }
.event__time { font-weight: 800; font-variant-numeric: tabular-nums; }
.event.is-today { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.event.is-today .event__day { background: var(--accent); color: var(--accent-ink); }
.event.is-today .event__day small { color: inherit; }
@media (max-width: 600px) { .event { grid-template-columns: 70px 1fr; } .event__time { grid-column: 2; } }

/* instagram */
.insta { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-top: 30px; }
.insta img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
@media (max-width: 760px) { .insta { grid-template-columns: repeat(3, 1fr); } }

/* prenota + dove */
.book { background: var(--surface-2); transition: background-color .8s; }
.book__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 5vw, 60px); align-items: start; }
#prenota { scroll-margin-top: 80px; }
@media (max-width: 860px) { .book__grid { grid-template-columns: 1fr; } }
.where { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(24px, 5vw, 60px); }
.hours { width: 100%; border-collapse: collapse; margin-top: 20px; }
.hours td { padding: 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.hours td:first-child { padding-right: 14px; font-weight: 700; }
.hours td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.addr { font-family: var(--font-display); font-weight: 800; font-size: 30px; margin: 10px 0 6px; letter-spacing: -.02em; }
.map { width: 100%; min-height: 340px; height: 100%; border: 0; border-radius: var(--radius); }
@media (max-width: 860px) { .where { grid-template-columns: 1fr; } }

.foot { border-top: 1px solid var(--line); padding: 50px 0 30px; }
.foot__big { font-family: var(--font-display); font-weight: 800; font-size: clamp(80px, 20vw, 280px); letter-spacing: -.06em; line-height: .8; display: flex; flex-wrap: wrap; gap: 0 .18em; }
.foot__big span { color: var(--accent); transition: color .8s; }
.foot__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; margin-top: 30px; color: var(--muted); }
.gw-credit { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-family: "Geist", system-ui, sans-serif; }
.gw-credit b { color: var(--text); font-weight: 800; }

@media (prefers-reduced-motion: reduce) { .ticker__track, .slot__live { animation: none; } body, .hero__media img { transition: none; } }

/* ---------- Signature: cielo vivo + drink che si riempiono ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.sky-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; }
.sky-on .hero__media { box-shadow: 0 30px 70px -30px rgba(0,0,0,.45); }
.sky-on .slot:not([aria-pressed="true"]), .sky-on .now { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); background: color-mix(in srgb, var(--surface) 78%, transparent); }
.cocktail { will-change: clip-path; }

/* griglie: le colonne possono restringersi sotto il contenuto */
.book__grid > *, .book-grid > *, .where > *, .kitchen > *, .people > *, .drinks > *, .shop__in > *, .hero__grid > * { min-width: 0; }
