/* ===============================================
   Dèjà View — production site styles
   Brand: blu profondo · sabbia · avorio · nero
   =============================================== */

:root {
  --ink: #1a1a1a;
  --ink-soft: #3a3a38;
  --paper: #f6f1e7;
  --paper-warm: #efe7d6;
  --paper-deep: #e9e0cc;
  --blu: #294d8a;
  --blu-deep: #1e3a6b;
  --sand: #cfa884;
  --sand-light: #e2c9ad;
  --sand-deep: #b08866;
  --pencil: #6a6560;
  --pencil-soft: #9a958f;
  --hairline: rgba(26, 26, 26, 0.12);

  --f-serif: 'Shippori Mincho', 'Times New Roman', serif;
  --f-body: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;

  --max-w: 1280px;
  --gutter-d: clamp(1.5rem, 4vw, 4rem);
  --radius: 4px;
  --nav-h: 72px;
}

/* ----------- reset & base ----------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  background-image:
    radial-gradient(ellipse at 20% 15%, rgba(207, 168, 132, 0.10), transparent 55%),
    radial-gradient(ellipse at 85% 90%, rgba(41, 77, 138, 0.05), transparent 55%);
  background-attachment: fixed;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed; inset: 0;
  background-image: repeating-linear-gradient(45deg, transparent 0 6px, rgba(0,0,0,0.008) 6px 7px);
  pointer-events: none; z-index: 1;
  mix-blend-mode: multiply;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--blu); }
button { font: inherit; border: none; cursor: pointer; background: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-serif); font-weight: 500; letter-spacing: 0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--pencil);
}

/* ----------- buttons ----------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px;
  font-family: var(--f-serif);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  color: var(--ink);
  background: transparent;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-blu { background: var(--blu); border-color: var(--blu); color: var(--paper); }
.btn-blu:hover { background: var(--blu-deep); border-color: var(--blu-deep); color: var(--paper); }
.btn-sand { background: var(--sand); border-color: var(--sand); color: var(--ink); }
.btn-sand:hover { background: var(--sand-deep); border-color: var(--sand-deep); color: var(--paper); }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

/* ----------- navigation ----------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: clamp(1rem, 3vw, 3rem);
  padding: 14px clamp(1rem, 3vw, 2.5rem);
  background: rgba(246, 241, 231, 0.82);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, padding .3s ease;
}
.nav.is-scrolled { border-bottom-color: var(--hairline); padding-top: 10px; padding-bottom: 10px; }

.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-logo {
  width: 44px; height: 44px;
  object-fit: contain;
  object-position: center;
  mix-blend-mode: multiply;
  flex-shrink: 0;
}
.nav-wordmark {
  font-family: var(--f-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--blu);
  letter-spacing: 0.08em;
  line-height: 1;
}

.nav-links { display: flex; gap: clamp(1rem, 2.4vw, 2.2rem); justify-content: center; }
.nav-links a {
  font-family: var(--f-serif);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--blu);
  transform: scaleX(0); transform-origin: center;
  transition: transform .25s ease;
}
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta { display: flex; align-items: center; gap: 14px; }
.lang-toggle {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--pencil);
  letter-spacing: 0.12em;
  padding: 6px 8px;
}
.lang-toggle:hover { color: var(--blu); }
.nav-cta .btn { padding: 9px 18px; font-size: 11px; }

.nav-burger {
  display: none;
  flex-direction: column; gap: 5px;
  padding: 8px;
}
.nav-burger span {
  display: block; width: 22px; height: 1.6px;
  background: var(--ink); transition: transform .3s ease, opacity .2s ease;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ----------- hero ----------- */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 40px) var(--gutter-d) 60px;
  min-height: 100vh;
  display: flex; flex-direction: column;
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  flex: 1;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(3rem, 9vw, 6.8rem);
  line-height: 0.92;
  color: var(--blu);
  letter-spacing: 0.01em;
  margin: 18px 0 24px;
}
.hero-title em {
  font-style: italic;
  color: var(--sand);
  font-weight: 400;
}

.hero-lede {
  max-width: 440px;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.6;
}

.hero-actions { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }

.hero-hours {
  display: flex; gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: 54px;
  flex-wrap: wrap;
}
.hero-hours li { display: flex; flex-direction: column; gap: 6px; }
.hero-hours strong {
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: 15px;
  color: var(--ink);
}

/* hero visual */
.hero-visual { position: relative; aspect-ratio: 4 / 5; }
.hero-frame {
  position: absolute; inset: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(41, 77, 138, 0.55), rgba(41, 77, 138, 0.25) 50%, rgba(207, 168, 132, 0.35)),
    repeating-linear-gradient(135deg, rgba(41, 77, 138, 0.08) 0 8px, transparent 8px 18px),
    var(--paper-warm);
  box-shadow:
    0 30px 60px -30px rgba(30, 58, 107, 0.4),
    0 10px 25px -15px rgba(26, 26, 26, 0.2);
}
.hero-frame-fallback {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.hero-logo-float {
  width: 55%;
  max-width: 280px;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.18));
  mix-blend-mode: multiply;
  opacity: 0.92;
}
.hero-stamp {
  position: absolute;
  bottom: 18px; left: 18px;
  background: rgba(246, 241, 231, 0.95);
  color: #b24a3a;
  border: 1.5px solid #b24a3a;
  font-family: var(--f-serif);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 10px;
  padding: 5px 11px;
  transform: rotate(-5deg);
}

.hero-foot {
  display: flex; justify-content: space-between;
  align-items: center;
  font-family: var(--f-mono); font-size: 11px; color: var(--pencil);
  margin-top: 48px;
  max-width: var(--max-w); width: 100%; margin-left: auto; margin-right: auto;
}
.scroll-hint { letter-spacing: 0.2em; }

/* ----------- section shell ----------- */
.section {
  padding: clamp(5rem, 10vh, 8rem) var(--gutter-d);
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
}
.section-head { max-width: 640px; margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.section-title {
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  line-height: 1;
  color: var(--blu);
  margin: 16px 0 18px;
}
.section-title em { color: var(--sand); font-weight: 400; }
.section-lede {
  color: var(--ink-soft);
  font-size: 1.02rem;
  max-width: 520px;
}

/* ----------- locale · rooms ----------- */
.rooms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1rem, 2vw, 1.75rem);
}
.room { display: flex; flex-direction: column; gap: 18px; }
.room-media {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  transition: transform .4s cubic-bezier(.2,.7,.2,1);
}
.room:hover .room-media { transform: translateY(-4px); }
.room-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(26,26,26,0.25));
}
.room-media--bar {
  background:
    linear-gradient(135deg, rgba(0,0,0,0.5), rgba(26,26,26,0.75)),
    repeating-linear-gradient(135deg, rgba(207,168,132,0.2) 0 6px, transparent 6px 14px),
    #2a2520;
}
.room-media--sala {
  background:
    linear-gradient(135deg, rgba(41,77,138,0.55), rgba(41,77,138,0.25)),
    repeating-linear-gradient(135deg, rgba(41,77,138,0.18) 0 6px, transparent 6px 14px),
    var(--paper-warm);
}
.room-media--saletta {
  background:
    linear-gradient(135deg, rgba(207,168,132,0.5), rgba(207,168,132,0.25)),
    repeating-linear-gradient(135deg, rgba(207,168,132,0.28) 0 6px, transparent 6px 14px),
    var(--paper-warm);
}

.room-body { padding: 0 4px; }
.room-num {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--pencil);
  letter-spacing: 0.2em;
}
.room-title {
  font-size: 1.5rem;
  color: var(--blu);
  margin: 6px 0 8px;
}
.room-title::after {
  content: "";
  display: block;
  width: 44px; height: 1.5px;
  background: var(--sand);
  margin-top: 12px;
}
.room-sub { color: var(--ink-soft); font-size: 0.95rem; max-width: 320px; }

/* ----------- menu list (shared) ----------- */
.menu-list { display: flex; flex-direction: column; gap: 1.75rem; }
.menu-item { position: relative; }
.menu-head {
  display: flex; align-items: baseline; gap: 10px;
  margin-bottom: 6px;
}
.menu-head h3, .menu-head h4 {
  font-family: var(--f-serif);
  font-size: 1.2rem;
  color: var(--blu);
  font-weight: 500;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.menu-head h4 { font-size: 1.08rem; color: var(--ink); }
.dots {
  flex: 1;
  border-bottom: 1.3px dotted var(--pencil-soft);
  transform: translateY(-4px);
}
.price {
  font-family: var(--f-serif);
  font-size: 1.1rem;
  color: var(--sand-deep);
  font-weight: 500;
  flex-shrink: 0;
}
.menu-item p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  max-width: 520px;
}
.tag {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 3px 9px;
  border: 1px solid var(--sand);
  color: var(--sand-deep);
  border-radius: 999px;
}
.tag-blu { border-color: var(--blu); color: var(--blu); }

.menu-foot {
  margin-top: 3rem;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--pencil);
  letter-spacing: 0.1em;
  border-top: 1px solid var(--hairline);
  padding-top: 1.5rem;
}

/* cocktail variant: 2 columns on wide */
.menu-list--cocktail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2.5rem 3.5rem;
}

/* ----------- carta ----------- */
.carta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(2rem, 5vw, 4.5rem);
}
.carta-col-title {
  font-size: 1.5rem;
  color: var(--blu);
  margin-bottom: 6px;
}
.carta-col-title::after {
  content: "";
  display: block;
  width: 56px; height: 1.5px;
  background: var(--sand);
  margin: 12px 0 28px;
}

/* ----------- prenota ----------- */
.prenota {
  background: linear-gradient(180deg, rgba(41, 77, 138, 0.04), transparent);
  max-width: none;
  padding-left: var(--gutter-d);
  padding-right: var(--gutter-d);
}
.prenota-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.prenota-copy { position: sticky; top: calc(var(--nav-h) + 2rem); }

.prenota-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem 1.4rem;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  backdrop-filter: blur(4px);
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field-wide { grid-column: 1 / -1; }
.field > span {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--pencil);
}
.field > span small { text-transform: none; letter-spacing: 0; color: var(--pencil-soft); margin-left: 4px; }
.field input, .field select, .field textarea {
  font: inherit;
  font-family: var(--f-serif);
  font-size: 15px;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1.3px solid var(--ink);
  padding: 6px 0 8px;
  outline: none;
  transition: border-color .2s ease;
  resize: vertical;
}
.field select { cursor: pointer; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--blu);
}
.field input::placeholder, .field textarea::placeholder { color: var(--pencil-soft); }

.form-actions {
  grid-column: 1 / -1;
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-top: 8px;
}
.form-hint {
  grid-column: 1 / -1;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--pencil);
  min-height: 1em;
}
.form-hint.is-ok { color: var(--blu); }
.form-hint.is-err { color: #b24a3a; }

/* ----------- footer ----------- */
.footer {
  background: var(--blu);
  color: var(--paper);
  padding: clamp(3rem, 6vw, 5rem) var(--gutter-d) 2rem;
  margin-top: clamp(3rem, 6vw, 5rem);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
}
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-wordmark {
  display: inline-flex;
  flex-direction: column;
  line-height: 0.88;
  font-family: var(--f-serif);
  font-weight: 600;
  font-size: 2.2rem;
  letter-spacing: 0.08em;
  color: var(--sand-light);
  text-transform: uppercase;
}
.footer-wordmark span + span { color: var(--paper); }
.footer-tag {
  font-family: var(--f-serif);
  font-size: 1.4rem;
  color: var(--sand-light);
  line-height: 1.15;
}
.footer-tag em { font-style: italic; }
.footer-col h4 {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sand-light);
  margin-bottom: 12px;
  font-family: var(--f-mono);
  font-weight: 400;
}
.footer-col p { color: rgba(246,241,231,0.85); line-height: 1.7; }
.footer-col a { border-bottom: 1px solid rgba(226, 201, 173, 0.3); }
.footer-col a:hover { color: var(--sand-light); border-bottom-color: var(--sand-light); }

.footer-rule {
  max-width: var(--max-w);
  margin: 3rem auto 1.25rem;
  height: 1px;
  background: rgba(226, 201, 173, 0.25);
}
.footer-legal {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex; justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: rgba(226, 201, 173, 0.65);
  text-transform: uppercase;
}

/* ----------- reveal animation ----------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1);
}
.reveal.is-in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ----------- responsive ----------- */
@media (max-width: 900px) {
  :root { --nav-h: 64px; }

  .nav {
    grid-template-columns: auto 1fr auto auto;
    gap: 12px;
    padding: 10px clamp(1rem, 4vw, 1.5rem);
  }
  .nav-wordmark { font-size: 16px; }
  .nav-logo { width: 40px; height: 40px; }
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    background: var(--paper);
    border-bottom: 1px solid var(--hairline);
    padding: 24px var(--gutter-d);
    gap: 18px;
    transform: translateY(-120%);
    transition: transform .35s cubic-bezier(.2,.7,.2,1);
    justify-content: flex-start;
  }
  .nav-links.is-open { transform: translateY(0); }
  .nav-links a { font-size: 1.2rem; }
  .nav-burger { display: flex; }
  .nav-cta .lang-toggle { display: none; }
  .nav-cta .btn { padding: 8px 14px; font-size: 10px; letter-spacing: 0.14em; }

  .hero {
    padding-top: calc(var(--nav-h) + 32px);
    padding-bottom: 48px;
    min-height: auto;
  }
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-visual {
    aspect-ratio: 5 / 4;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    order: 2;
  }
  .hero-copy { order: 1; }
  .hero-logo-float { width: 45%; max-width: 200px; }

  .prenota-inner { grid-template-columns: 1fr; }
  .prenota-copy { position: static; }

  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-legal { flex-direction: column; gap: 6px; text-align: left; }
}

@media (max-width: 560px) {
  :root { --nav-h: 60px; --gutter-d: 1.25rem; }

  .nav { padding: 8px 1rem; gap: 8px; }
  .nav-wordmark { font-size: 15px; letter-spacing: 0.06em; }
  .nav-logo { width: 36px; height: 36px; }

  .hero { padding-top: calc(var(--nav-h) + 24px); }
  .hero-title { font-size: clamp(2.5rem, 11vw, 3.6rem); margin: 12px 0 18px; }
  .hero-lede { font-size: 0.98rem; }
  .hero-actions { margin-top: 24px; }
  .hero-actions .btn { flex: 1; min-width: 0; }
  .hero-hours { gap: 1.25rem; margin-top: 36px; }
  .hero-hours li { flex: 1 1 calc(50% - 1rem); }
  .hero-visual { aspect-ratio: 4 / 3; }
  .hero-foot { flex-direction: column; gap: 8px; align-items: flex-start; margin-top: 32px; }
  .hero-stamp { bottom: 12px; left: 12px; font-size: 9px; padding: 4px 9px; }

  .section { padding-top: clamp(3.5rem, 10vh, 5rem); padding-bottom: clamp(3.5rem, 10vh, 5rem); }
  .section-title { font-size: clamp(2rem, 9vw, 2.75rem); }

  .rooms { gap: 1.5rem; }
  .room-media { aspect-ratio: 3 / 2; }

  .menu-list--cocktail { gap: 1.75rem; }
  .menu-head h3, .menu-head h4 { font-size: 1.08rem; }

  .prenota-form { grid-template-columns: 1fr; padding: 1.25rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .btn { padding: 11px 18px; font-size: 12px; }
}
