@property --p { syntax: '<percentage>'; inherits: true; initial-value: 0%; }
/* Jacaré — lounge bar, San Vittore Olona
   Notte petrolio, turchese del logo, ambra delle candele. Yeseva One + Asap. */
:root {
  --night: #0f1b1d;
  --night-2: #142427;
  --night-3: #1b2f33;
  --teal: #02849a;
  --teal-hi: #3cb4c3;
  --amber: #e9a94b;
  --cream: #f2eadb;
  --muted: #a8b6b3;
  --line: rgba(242, 234, 219, .14);
  --disp: 'Yeseva One', Georgia, serif;
  --body: 'Asap', 'Segoe UI', sans-serif;
  --wrap: 1180px;
  --head-h: 68px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--night); color: var(--cream);
  font: 400 1.0625rem/1.65 var(--body); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-hi); text-underline-offset: 3px; }
a:hover { color: var(--amber); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--amber); color: var(--night); padding: 10px 14px; border-radius: 4px; font-weight: 600; }
.skip:focus { top: 40px; }

/* striscia anteprima */
.preview-strip {
  height: 28px; display: flex; align-items: center; justify-content: center; padding: 0 12px;
  background: #0a1314; color: var(--muted); font-size: .75rem; letter-spacing: .04em; text-align: center;
  border-bottom: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* header */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(15, 27, 29, .94); border-bottom: 1px solid transparent; transition: border-color .3s, background .3s; }
.site-header.is-compact { border-bottom-color: var(--line); background: rgba(12, 22, 24, .97); }
.head-in { height: var(--head-h); display: flex; align-items: center; justify-content: space-between; gap: 20px; transition: height .3s; }
.is-compact .head-in { height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--cream); text-decoration: none; }
.brand-mark { width: 34px; height: 34px; color: var(--teal-hi); }
.big-mark { --jacc: rgba(233, 169, 75, .55); }
.brand-name { font: 400 1.6rem/1 var(--disp); letter-spacing: .01em; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--cream); text-decoration: none; font-size: .95rem; font-weight: 500; position: relative; }
.nav a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: -5px; height: 2px; background: var(--amber); transition: right .25s; }
.nav a:hover::after, .nav a:focus-visible::after { right: 0; }
.nav .nav-cta a { border: 1.5px solid var(--teal-hi); padding: 9px 16px; border-radius: 999px; color: var(--teal-hi); }
.nav .nav-cta a::after { display: none; }
.nav .nav-cta a:hover { background: var(--teal-hi); color: var(--night); }
.menu-btn { display: none; }

/* bottoni */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 999px; font: 600 1rem/1.2 var(--body); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .2s, background .2s, color .2s, border-color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-hi); color: var(--night); }
.btn-ghost { border-color: rgba(242, 234, 219, .5); color: var(--cream); }
.btn-ghost:hover { border-color: var(--amber); color: var(--amber); }
.btn-amber { background: var(--amber); color: #1b1206; }
.btn-amber:hover { background: #f4bd66; color: #1b1206; }
.btn-block { width: 100%; }

/* testi comuni */
.kicker { font: 600 .78rem/1 var(--body); letter-spacing: .22em; text-transform: uppercase; color: var(--amber); margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.kicker::before { content: ''; width: 18px; height: 9px; background: currentColor; clip-path: polygon(0 100%, 42% 0, 100% 0, 40% 100%); }
h2 { font: 400 clamp(2.2rem, 4.6vw, 3.6rem)/1.04 var(--disp); letter-spacing: -.005em; margin-bottom: 26px; }
.small { font-size: .88rem; color: var(--muted); }
.note { color: var(--muted); font-size: .95rem; }
.sec { padding: clamp(72px, 10vw, 128px) 0; position: relative; }

/* HERO */
.hero { padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 7vw, 96px); position: relative; overflow: hidden; }
.hero::before { /* grande accento del logo, come una pennellata di luce */
  content: ''; position: absolute; right: -6%; top: -40px; width: 46%; height: 240px; background: var(--night-2);
  clip-path: polygon(0 100%, 42% 0, 100% 0, 58% 100%); opacity: .9; pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(32px, 5vw, 72px); align-items: center; position: relative; }
.eyebrow { font-size: .9rem; letter-spacing: .06em; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 26px; }
.eyebrow .sep { width: 14px; height: 7px; background: var(--amber); clip-path: polygon(0 100%, 42% 0, 100% 0, 40% 100%); }
.hero h1 { font: 400 clamp(3rem, 6vw, 5.3rem)/.98 var(--disp); letter-spacing: -.015em; margin-bottom: 30px; }
.hero h1 em { font-style: normal; color: var(--teal-hi); }
.lead { font-size: 1.15rem; max-width: 34ch; color: #d9d2c3; margin-bottom: 34px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* il quadrante */
.dial-wrap { margin: 0; justify-self: center; width: min(100%, 500px); }
.dial { position: relative; aspect-ratio: 1; }
.dial-photo { position: absolute; inset: 13.5%; width: 73%; height: 73%; object-fit: cover; object-position: 50% 60%; border-radius: 50%; filter: saturate(1.05) contrast(1.04); }
.dial-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.d-track { fill: none; stroke: var(--night-3); stroke-width: 14; }
.d-ticks line { stroke: rgba(242, 234, 219, .35); stroke-width: 1.5; }
.d-ticks line.h { stroke: rgba(242, 234, 219, .7); stroke-width: 2; }
.d-open { fill: none; stroke: var(--teal-hi); stroke-width: 14; stroke-linecap: butt; }
.dial.is-drawn .d-open { transition: stroke-dashoffset 1.8s cubic-bezier(.6, .05, .25, 1); }
.d-now { color: var(--amber); opacity: 0; transition: opacity .6s .2s; }
.dial.is-now .d-now { opacity: 1; }
.d-labels text { font: 500 13px var(--body); fill: var(--muted); letter-spacing: .08em; }
.dial-cap { margin-top: 22px; display: grid; gap: 6px; justify-items: center; text-align: center; }
.live { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1rem; }
.live .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }
.live.is-open .dot { background: #5fd18b; box-shadow: 0 0 0 4px rgba(95, 209, 139, .18); }
.live.is-closed .dot { background: #e0775b; }
.dial-note { font-size: .82rem; color: var(--muted); max-width: 40ch; }
.credit-inline { opacity: .8; font-style: italic; }

/* fatti */
.facts { list-style: none; margin: 0; padding: 18px max(20px, calc((100% - var(--wrap)) / 2)); display: flex; flex-wrap: wrap; gap: 10px 34px; border-block: 1px solid var(--line); background: var(--night-2); }
.facts li { display: flex; align-items: center; gap: 12px; font-weight: 500; font-size: .95rem; }
.facts li::before { content: ''; width: 12px; height: 6px; background: var(--teal-hi); clip-path: polygon(0 100%, 42% 0, 100% 0, 40% 100%); }

/* la sera: timeline */
.sec-head { max-width: 760px; }
.timeline { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 36px; position: relative; }
.timeline::before { content: ''; position: absolute; left: 0; right: 0; top: 17px; height: 2px; background: linear-gradient(90deg, var(--teal) var(--p, 0%), var(--line) var(--p, 0%)); }
.timeline li { position: relative; }
.t-hour { display: inline-block; font: 400 1.9rem/1.15 var(--disp); color: var(--cream); background: var(--night); padding-right: 14px; position: relative; z-index: 1; margin-bottom: 30px; }
.t-hour small { font: 500 .85rem var(--body); color: var(--muted); letter-spacing: .02em; }
.timeline li::before { content: ''; position: absolute; left: 0; top: 54px; width: 20px; height: 10px; background: var(--amber); clip-path: polygon(0 100%, 42% 0, 100% 0, 40% 100%); }
.timeline h3 { font: 600 1.2rem/1.3 var(--body); margin: 14px 0 8px; }
.timeline p { color: #cfc8b9; max-width: 34ch; }

/* da bere */
.bere { background: var(--night-2); }
.bere-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(36px, 6vw, 90px); align-items: start; }
.bere-photos { display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: auto auto auto; gap: 14px; }
.ph { padding: 0; border: 0; background: none; cursor: zoom-in; display: block; overflow: hidden; border-radius: 4px; position: relative; }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.ph:hover img { transform: scale(1.04); }
.ph-a { grid-column: 1 / 2; grid-row: 1 / 3; min-height: 420px; border-radius: 200px 200px 4px 4px; }
.ph-b { grid-column: 2; grid-row: 1; aspect-ratio: 4 / 5; margin-top: 54px; }
.ph-c { grid-column: 2; grid-row: 2; aspect-ratio: 4 / 3; }
.ph-note { grid-column: 1 / -1; font-size: .82rem; color: var(--muted); font-style: italic; margin: 4px 0 0; }
.carta { margin: 6px 0 26px; }
.carta div { padding: 18px 0; border-bottom: 1px dashed rgba(242, 234, 219, .2); }
.carta div:first-child { border-top: 1px dashed rgba(242, 234, 219, .2); }
.carta dt { font: 400 1.5rem/1.2 var(--disp); display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.acc-mark { width: 18px; height: 9px; color: var(--amber); flex: none; }
.carta dd { margin: 0 0 0 30px; color: #cfc8b9; }

/* il posto */
.posto-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.checks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.checks li { padding-left: 34px; position: relative; color: #d9d2c3; }
.checks li::before { content: ''; position: absolute; left: 0; top: .5em; width: 20px; height: 10px; background: var(--teal-hi); clip-path: polygon(0 100%, 42% 0, 100% 0, 40% 100%); }
.checks b { color: var(--cream); font-weight: 600; }
.posto-photo { margin: 0; position: relative; }
.posto-photo .ph { aspect-ratio: 4 / 3; border-radius: 4px 4px 4px 160px; }
.posto-photo::after { content: ''; position: absolute; right: -18px; top: -18px; width: 120px; height: 120px; border: 2px solid var(--teal); border-radius: 50%; pointer-events: none; }
.posto-photo figcaption { font-size: .85rem; color: var(--muted); margin-top: 10px; text-align: right; }
.posto-photo figcaption span { font-style: italic; opacity: .8; }

/* prenota */
.prenota { background: var(--night-3); }
.orari { padding-top: clamp(64px, 8vw, 104px); }
.prenota-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(36px, 6vw, 90px); align-items: start; }
.prenota-text { position: relative; }
.big-mark { width: 180px; height: 180px; color: rgba(60, 180, 195, .25); margin-top: 40px; }
.form { background: var(--cream); color: #1d2426; padding: clamp(24px, 4vw, 40px); border-radius: 6px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 18px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.f-row { grid-column: 1 / -1; display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; align-content: start; }
.f-half { grid-column: span 1; }
.form label, .form legend { font-weight: 600; font-size: .9rem; color: #1d2426; }
.form legend { margin-bottom: 6px; padding: 0; }
.opt { font-weight: 400; color: #5d6563; }
.form input[type=text], .form input[type=number], .form input[type=date], .form select, .form textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 1.5px solid #b9bdb7; border-radius: 4px; background: #fffdf8; color: #1d2426; font: 400 1rem/1.3 var(--body);
}
.form textarea { min-height: 70px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(2, 132, 154, .25); }
.form [aria-invalid=true] { border-color: #b3401f; }
.f-err { color: #a3361a; font-size: .85rem; margin: 0; }
.f-pills { display: flex; flex-wrap: wrap; gap: 8px; align-content: start; grid-column: 1 / -1; }
.f-pills legend { width: 100%; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1.5px solid #b9bdb7; border-radius: 999px; font-weight: 500 !important; cursor: pointer; font-size: .9rem; }
.pill:has(input:checked) { border-color: var(--teal); background: rgba(2, 132, 154, .1); }
.pill input { accent-color: var(--teal); margin: 0; }
.form .btn-amber { grid-column: 1 / -1; margin-top: 4px; background: #1d2426; color: var(--cream); }
.form .btn-amber:hover { background: var(--teal); color: #fff; }
.f-hint { grid-column: 1 / -1; font-size: .82rem; color: #5d6563; margin: -6px 0 0; text-align: center; }

/* orari + dove */
.orari-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(36px, 6vw, 90px); align-items: start; }
.badge-line { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; color: var(--muted); margin-bottom: 22px; }
.badge { display: inline-block; padding: 6px 12px; border-radius: 999px; font-weight: 600; font-size: .85rem; background: var(--night-3); color: var(--cream); }
.badge.is-open { background: #1f5a3b; color: #d8f5e2; }
.badge.is-closed { background: #5c2a1d; color: #fde3d9; }
.hours { width: 100%; border-collapse: collapse; margin-bottom: 18px; }
.hours th, .hours td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--amber); font-weight: 600; }
.hours tr.is-today th::after { content: ' · oggi'; font-weight: 400; color: var(--muted); }
address { font-style: normal; font-size: 1.1rem; line-height: 1.6; margin-bottom: 14px; }
address strong { font: 400 1.6rem/1.2 var(--disp); }
.phones { display: flex; flex-wrap: wrap; gap: 8px 22px; font-weight: 600; font-size: 1.05rem; }
.map { aspect-ratio: 16 / 10; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); margin: 8px 0 14px; background: var(--night-2); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.4) contrast(1.05); }
.lnk { font-weight: 600; }

/* FAQ */
.faq { background: var(--night-2); }
.faq-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(30px, 6vw, 90px); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-item:first-child { border-top: 1px solid var(--line); }
.acc-item h3 { margin: 0; }
.acc-item button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; background: none; border: 0; color: var(--cream); font: 600 1.08rem/1.35 var(--body); text-align: left; cursor: pointer; }
.acc-item button:hover { color: var(--amber); }
.ico { width: 14px; height: 14px; position: relative; flex: none; }
.ico::before, .ico::after { content: ''; position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: currentColor; transition: transform .25s; }
.ico::after { transform: rotate(90deg); }
[aria-expanded=true] .ico::after { transform: rotate(0); }
.acc-panel p { color: #cfc8b9; padding-bottom: 18px; margin: 0; max-width: 60ch; }

/* footer */
.footer { padding: 64px 0 120px; border-top: 1px solid var(--line); background: #0b1415; font-size: .92rem; color: var(--muted); }
.foot-grid { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 30px; }
.f-mark { width: 54px; height: 54px; color: var(--teal-hi); margin-bottom: 10px; }
.f-name { font: 400 1.6rem/1 var(--disp); color: var(--cream); margin-bottom: 4px; }
.credits { font-size: .78rem; opacity: .85; }
.f-legal { font-size: .78rem; margin-top: 30px; opacity: .8; }

/* barra azioni mobile */
.actionbar { display: none; }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 90; background: rgba(6, 12, 13, .94); display: flex; align-items: center; justify-content: center; padding: 60px 16px 24px; }
.lb[hidden] { display: none; }
.lb img { max-height: 84vh; width: auto; border-radius: 4px; }
.lb-close { position: absolute; top: 14px; right: 14px; background: var(--cream); color: var(--night); border: 0; border-radius: 999px; padding: 10px 16px; font: 600 .95rem var(--body); cursor: pointer; }

/* reveal */
.js .rv { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .menu-btn { display: inline-flex; align-items: center; gap: 10px; background: none; border: 1.5px solid var(--line); color: var(--cream); border-radius: 999px; padding: 9px 14px; font: 600 .9rem var(--body); cursor: pointer; }
  .menu-lines, .menu-lines::before, .menu-lines::after { display: block; width: 16px; height: 2px; background: currentColor; position: relative; transition: transform .25s; }
  .menu-lines::before, .menu-lines::after { content: ''; position: absolute; left: 0; }
  .menu-lines::before { top: -5px; } .menu-lines::after { top: 5px; }
  .menu-btn[aria-expanded=true] .menu-lines { background: transparent; }
  .menu-btn[aria-expanded=true] .menu-lines::before { transform: translateY(5px) rotate(45deg); }
  .menu-btn[aria-expanded=true] .menu-lines::after { transform: translateY(-5px) rotate(-45deg); }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--night); border-bottom: 1px solid var(--line); display: none; }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; }
  .nav li a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav .nav-cta a { margin-top: 14px; text-align: center; }
  .hero-grid, .bere-grid, .posto-grid, .prenota-grid, .orari-grid, .faq-grid { grid-template-columns: 1fr; }
  .dial-wrap { width: min(100%, 420px); }
  .timeline { grid-template-columns: 1fr; gap: 34px; padding-left: 26px; }
  .timeline::before { left: 0; right: auto; top: 6px; bottom: 6px; width: 2px; height: auto; background: linear-gradient(180deg, var(--teal) var(--p, 0%), var(--line) var(--p, 0%)); }
  .timeline li { padding: 0; }
  .bere-list { order: -1; }
  .t-hour { margin-bottom: 4px; background: none; }
  .timeline li::before { left: -36px; top: 10px; }
  .posto-photo { order: -1; }
  .big-mark { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .preview-strip { font-size: .68rem; }
  .hero::before { width: 70%; height: 150px; right: -20%; }
  .hero h1 { font-size: clamp(2.7rem, 12.5vw, 3.4rem); }
  .eyebrow { display: block; line-height: 1.6; }
  .eyebrow .sep { display: inline-block; margin: 0 6px 1px; }
  .eyebrow > span:last-child { display: block; }
  .lead { font-size: 1.05rem; }
  .hero-cta .btn { flex: 1 1 100%; }
  .facts { gap: 8px 20px; }
  .facts li { font-size: .88rem; }
  .bere-photos { grid-template-columns: 1fr 1fr; }
  .ph-a { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 4 / 3; min-height: 0; border-radius: 160px 160px 4px 4px; }
  .ph-b { grid-column: 1; grid-row: auto; margin-top: 0; }
  .ph-c { grid-column: 2; grid-row: auto; aspect-ratio: 4 / 5; }
  .form { grid-template-columns: 1fr; }
  .f-half { grid-column: 1 / -1; }
  .foot-grid { grid-template-columns: 1fr; }
  .posto-photo::after { width: 80px; height: 80px; right: -6px; top: -12px; }
  .actionbar {
    display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    background: #0a1314; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
  }
  .actionbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 4px 11px; color: var(--cream); text-decoration: none; font-size: .78rem; font-weight: 600; }
  .actionbar a:first-child { background: var(--teal); color: #fff; }
  .actionbar a + a { border-left: 1px solid var(--line); }
  .actionbar svg { width: 21px; height: 21px; fill: currentColor; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .rv { opacity: 1; transform: none; }
}
