/* L'Oasi dei Sapori — custom layer on top of Tailwind (Play CDN).
   Only the things utilities can't do cleanly live here. */

:root {
  --night: #20160F;
  --night-2: #2C1F16;
  --gold: #C9A86A;
  --champ: #F0E2BC;
  --gold-deep: #9A7B3F;
  --sand: #EDE3D2;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--night);
  /* faint warm vignette so the espresso reads as depth, not flat black */
  background-image:
    radial-gradient(120% 80% at 50% -10%, rgba(201,168,106,.06), transparent 60%),
    radial-gradient(100% 60% at 50% 110%, rgba(201,168,106,.05), transparent 55%);
  background-attachment: fixed;
}

/* --- Metallic gold gradient text --- */
.gold-grad {
  background: linear-gradient(177deg, var(--champ) 0%, var(--gold) 48%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --- Eyebrow / utility label --- */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .34em;
  font-weight: 600;
  font-size: .72rem;
}

/* --- Section divider: hairline · khatim star · hairline --- */
.rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  color: var(--gold);
}
.rule::before,
.rule::after {
  content: "";
  height: 1px;
  width: min(28vw, 200px);
  background: linear-gradient(90deg, transparent, rgba(201,168,106,.55));
}
.rule::after { background: linear-gradient(270deg, transparent, rgba(201,168,106,.55)); }

/* --- Hero water-reflection of the wordmark (the oasis nod) --- */
.reflect {
  transform: scaleY(-1);
  opacity: .16;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 70%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 70%);
  margin-top: -.15em;
  pointer-events: none;
  user-select: none;
}

/* --- Brand logo (extracted artwork) --- */
.hero-logo {
  width: min(84vw, 400px);
  height: auto;
  filter: drop-shadow(0 6px 24px rgba(0,0,0,.55));
}
.footer-logo { width: min(62vw, 230px); height: auto; margin-inline: auto; }

/* --- Menu (collapsible accordion via <details>) --- */
.menu-cols { max-width: 44rem; margin-inline: auto; }
.menu-cat { border-top: 1px solid rgba(201,168,106,.16); }
.menu-cat:last-child { border-bottom: 1px solid rgba(201,168,106,.16); }

.menu-cat-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem .25rem;
  cursor: pointer;
  list-style: none;                 /* hide default disclosure triangle */
}
.menu-cat-title::-webkit-details-marker { display: none; }
.menu-cat-title:hover .menu-cat-label { color: var(--champ); }
.menu-cat-label {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-family: "Marcellus", serif;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--gold);
}
.menu-cat-count {
  font-family: "Hanken Grotesk", sans-serif;
  font-size: .7rem;
  letter-spacing: .14em;
  color: #B8AC97;
}
.menu-cat-chev { width: 18px; height: 18px; flex: none; color: var(--gold); transition: transform .3s ease; }
.menu-cat[open] .menu-cat-chev { transform: rotate(180deg); }
.menu-cat > ul { padding-bottom: 1.4rem; }
.menu-cat[open] > ul { animation: catOpen .35s ease; }
@keyframes catOpen { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.menu-cat-note {
  color: var(--gold);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
  opacity: .85;
}

.menu-item { padding: .55rem 0; border-top: 1px solid rgba(201,168,106,.12); }
.menu-item:first-of-type { border-top: 0; }
.menu-head {
  display: flex;
  align-items: baseline;
  gap: .5rem;
}
.menu-name {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .82rem;
  color: var(--sand);
  white-space: nowrap;
}
.menu-leader {
  flex: 1 1 auto;
  align-self: center;
  border-bottom: 1px dotted rgba(201,168,106,.4);
  min-width: 1.2rem;
  transform: translateY(2px);
}
.menu-price {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--gold);
  white-space: nowrap;
}
.menu-price .cur { font-size: .78em; margin-right: .12em; opacity: .8; }
.menu-desc {
  color: #B8AC97;
  font-size: .82rem;
  line-height: 1.45;
  margin-top: .15rem;
  text-transform: lowercase;
}

/* --- Specialità della casa: cornice "zellige" (stelle a otto punte) --- */
.zellige-frame {
  position: relative;
  padding: clamp(22px, 5.5vw, 40px);
  border-radius: 16px;
  border: 1px solid rgba(201,168,106,.45);
  background: var(--night);
}
.zellige-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(165deg, var(--champ) 0%, var(--gold) 46%, var(--gold-deep) 100%);
  -webkit-mask-image: url("zellige.svg");
          mask-image: url("zellige.svg");
  -webkit-mask-repeat: repeat;
          mask-repeat: repeat;
  -webkit-mask-size: 36px 36px;
          mask-size: 36px 36px;
  opacity: .92;
}
.zellige-inner {
  position: relative;
  z-index: 1;
  border-radius: 9px;
  border: 1px solid rgba(201,168,106,.3);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(201,168,106,.08), transparent 60%),
    var(--night-2);
  padding: clamp(1.7rem, 5vw, 2.8rem) clamp(1.2rem, 5vw, 2.6rem);
  text-align: center;
}
.spec-grid {
  display: grid;
  gap: 1.6rem;
  margin-top: 1.7rem;
}
.spec-dish + .spec-dish {
  border-top: 1px solid rgba(201,168,106,.18);
  padding-top: 1.6rem;
}
@media (min-width: 640px) {
  .spec-grid { grid-template-columns: 1fr 1fr; gap: 2.4rem; }
  .spec-dish + .spec-dish { border-top: 0; padding-top: 0; border-left: 1px solid rgba(201,168,106,.18); padding-left: 2.4rem; }
}
.spec-head {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: .6rem;
}
.spec-head h4 {
  margin: 0;
  font-family: "Marcellus", serif;
  font-size: 1.3rem;
  color: var(--sand);
}
.spec-price {
  font-family: "Marcellus", serif;
  font-size: 1.3rem;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.spec-price .cur { font-size: .8em; opacity: .8; margin-right: .08em; }
.spec-sub {
  margin: .35rem 0 0;
  color: var(--gold);
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.spec-desc {
  margin: .7rem auto 0;
  max-width: 32ch;
  color: #B8AC97;
  font-size: .9rem;
  line-height: 1.5;
}

/* --- Specialità chips --- */
.chip {
  border: 1px solid rgba(201,168,106,.45);
  color: var(--sand);
  padding: .5rem 1.1rem;
  border-radius: 999px;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.chip:hover { background: var(--gold); color: var(--night); border-color: var(--gold); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: .04em;
  font-size: .9rem;
  transition: transform .2s ease, background-color .25s ease, color .25s ease, border-color .25s ease;
}
.btn-gold { background: var(--gold); color: var(--night); }
.btn-gold:hover { background: var(--champ); transform: translateY(-2px); }
.btn-ghost { border: 1px solid rgba(237,227,210,.45); color: var(--sand); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

/* --- Accessible focus --- */
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --- Nav --- */
#nav { transition: background-color .35s ease, border-color .35s ease; border-bottom: 1px solid transparent; }
.nav-solid { background: rgba(20,14,9,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom-color: rgba(201,168,106,.18); }
#navPanel { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
#navPanel.open { max-height: 24rem; }

/* --- Hero load stagger --- */
.stagger > * { opacity: 0; transform: translateY(16px); }
body.loaded .stagger > * {
  opacity: 1;
  transform: none;
  transition: opacity .8s ease, transform .8s ease;
}
body.loaded .stagger > *:nth-child(1) { transition-delay: .15s; }
body.loaded .stagger > *:nth-child(2) { transition-delay: .30s; }
body.loaded .stagger > *:nth-child(3) { transition-delay: .45s; }
body.loaded .stagger > *:nth-child(4) { transition-delay: .60s; }
body.loaded .stagger > *:nth-child(5) { transition-delay: .75s; }

.emblem-anim { opacity: 0; transform: scale(.86); }
body.loaded .emblem-anim {
  opacity: 1;
  transform: none;
  transition: opacity 1s ease, transform 1.1s cubic-bezier(.2,.8,.2,1);
}

/* --- Scroll reveal --- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* --- Slideshow (food showcase) — full-bleed, crossfade, ken burns --- */
.slideshow {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 88vh;
  overflow: hidden;
}
@media (min-width: 768px) {
  .slideshow { aspect-ratio: 16 / 9; max-height: 76vh; }
}
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease; }
.slide.is-active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.001); }
.slide.is-active img { animation: kenburns 7s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.001); } to { transform: scale(1.07); } }

.slide figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 2.6rem;
  z-index: 3;
  text-align: center;
  padding: 0 1.5rem;
  color: var(--champ);
  font-family: "Marcellus", serif;
  font-size: 1.15rem;
  letter-spacing: .02em;
  text-shadow: 0 2px 14px rgba(20,14,9,.8);
}

.slide-fade { position: absolute; left: 0; right: 0; z-index: 2; pointer-events: none; }
.slide-fade.top { top: 0; height: 22%; background: linear-gradient(to bottom, var(--night), transparent); }
.slide-fade.bottom { bottom: 0; height: 34%; background: linear-gradient(to top, var(--night), transparent); }

.slide-dots { position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%); display: flex; gap: .5rem; z-index: 4; }
.slide-dot { width: 8px; height: 8px; border-radius: 999px; background: rgba(237,227,210,.4); border: 0; padding: 0; cursor: pointer; transition: width .3s ease, background-color .3s ease; }
.slide-dot:hover { background: rgba(237,227,210,.7); }
.slide-dot.is-active { background: var(--gold); width: 22px; }

/* --- Testimonials marquee --- */
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 55s linear infinite;
}
.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.t-card {
  flex: 0 0 auto;
  width: min(82vw, 340px);
  margin-right: 1.25rem;          /* trailing gap on every card → seamless -50% loop */
  background: var(--night-2);
  border: 1px solid rgba(201,168,106,.16);
  border-radius: .9rem;
  padding: 1.6rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .8rem;
}
.t-stars { color: var(--gold); letter-spacing: .22em; font-size: .95rem; }
.t-text { color: var(--sand); line-height: 1.55; font-size: .95rem; }
.t-name { color: var(--gold); font-size: .82rem; letter-spacing: .04em; }
.t-name span { color: #B8AC97; }

/* --- Reduced motion: show everything, no movement --- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .stagger > *, .emblem-anim { opacity: 1 !important; transform: none !important; }
  .marquee { overflow-x: auto; }            /* no auto-scroll → let people swipe */
  .marquee-track { transform: none !important; }
}

/* ============ Cookie consent ============ */
.cc-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  padding: 1rem;
  background: rgba(32, 22, 15, .97);
  border-top: 1px solid rgba(201, 168, 106, .3);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.cc-banner[hidden], .cc-modal[hidden] { display: none; }
.cc-banner-inner {
  max-width: 64rem; margin: 0 auto;
  display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap;
  justify-content: space-between;
}
.cc-text { flex: 1 1 22rem; }
.cc-title { font-family: 'Marcellus', serif; color: var(--champ); font-size: 1.05rem; margin: 0 0 .25rem; }
.cc-desc { color: rgba(237, 227, 210, .8); font-size: .85rem; line-height: 1.55; margin: 0; }
.cc-desc a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
.cc-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.cc-btn {
  font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer;
  padding: .6rem 1.1rem; border-radius: .5rem; border: 1px solid transparent;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.cc-btn-gold { background: var(--gold); color: var(--night); border-color: var(--gold); }
.cc-btn-gold:hover { background: var(--champ); border-color: var(--champ); }
.cc-btn-ghost { background: transparent; color: var(--sand); border-color: rgba(201, 168, 106, .5); }
.cc-btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.cc-modal { position: fixed; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.cc-modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); }
.cc-modal-card {
  position: relative; max-width: 34rem; width: 100%; max-height: 90vh; overflow: auto;
  background: var(--night-2); border: 1px solid rgba(201, 168, 106, .25); border-radius: .9rem;
  padding: 1.6rem; box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}
.cc-modal-title { font-family: 'Marcellus', serif; color: var(--champ); font-size: 1.35rem; margin: 0 0 .5rem; }
.cc-modal-desc { color: rgba(237, 227, 210, .78); font-size: .9rem; line-height: 1.55; margin: 0 0 1.1rem; }
.cc-cat { border-top: 1px solid rgba(201, 168, 106, .15); padding: .9rem 0; }
.cc-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
label.cc-cat-head { cursor: pointer; }
.cc-cat-name { color: var(--sand); font-weight: 600; font-size: .97rem; }
.cc-cat-always { color: var(--gold); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.cc-cat-desc { color: rgba(237, 227, 210, .62); font-size: .83rem; line-height: 1.5; margin: .4rem 0 0; }
.cc-modal-actions { display: flex; gap: .6rem; justify-content: flex-end; margin-top: 1.3rem; flex-wrap: wrap; }

.cc-toggle {
  appearance: none; -webkit-appearance: none; position: relative; flex: none;
  width: 42px; height: 24px; border-radius: 999px; background: rgba(237, 227, 210, .2);
  cursor: pointer; transition: background-color .2s ease;
}
.cc-toggle::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px;
  border-radius: 50%; background: var(--sand); transition: transform .2s ease;
}
.cc-toggle:checked { background: var(--gold); }
.cc-toggle:checked::after { transform: translateX(18px); background: var(--night); }

/* Google Maps facade (shown until external-content consent is given) */
.map-facade {
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: linear-gradient(165deg, rgba(201, 168, 106, .08), rgba(44, 31, 22, .9));
  padding: 1.5rem;
}
.map-facade-inner { display: flex; flex-direction: column; align-items: center; gap: .7rem; max-width: 24rem; }
.map-facade svg { color: var(--gold); }

@media (max-width: 640px) {
  .cc-actions { width: 100%; }
  .cc-actions .cc-btn { flex: 1 1 auto; text-align: center; }
}
