/* ===== RESET & TOKENS ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink: #0e0e0e;
  --ink-soft: #1b1b1b;
  --paper: #f5f2ec;
  --paper-2: #ede8df;
  --muted: #6d685f;
  --muted-light: #a9a49a;
  --line: rgba(14,14,14,0.16);
  --line-light: rgba(255,255,255,0.18);
  --max: 1180px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Jost', system-ui, -apple-system, sans-serif;
  font-weight: 300;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
iframe { border: 0; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 32px; }
.center { text-align: center; }

/* Display / serif */
h1, h2, h3,
.lockup__name, .head__title, .statement,
.service__no, .menu__price, .nav__mono, .tile__mono, .cta-card__mono {
  font-family: 'Cinzel', 'Times New Roman', serif;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.label {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--muted);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
}
.label--light { color: var(--muted-light); border-bottom-color: var(--line-light); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  font-family: 'Jost', sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
  cursor: pointer;
}
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: transparent; color: var(--ink); }
.btn--outline { background: transparent; color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--paper); }
.btn--sm { padding: 11px 22px; font-size: 0.7rem; }
.btn--block { width: 100%; margin-top: 12px; }

/* On dark backgrounds */
.ink .btn--solid { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.ink .btn--solid:hover { background: transparent; color: var(--paper); }
.ink .btn--outline { color: var(--paper); border-color: rgba(245,242,236,0.5); }
.ink .btn--outline:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* Hero sits on a dark background: buttons need the light treatment */
.hero .btn--solid { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.hero .btn--solid:hover { background: transparent; color: var(--paper); }
.hero .btn--outline { color: var(--paper); border-color: rgba(245,242,236,0.55); }
.hero .btn--outline:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* ===== NAV ===== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(245,242,236,0.9);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 78px; }

.nav__brand { display: flex; align-items: center; gap: 12px; color: var(--paper); transition: color .4s var(--ease); }
.nav.scrolled .nav__brand { color: var(--ink); }
.nav__monoimg { height: 30px; width: auto; display: block; transition: filter .4s var(--ease); }
.nav.scrolled .nav__monoimg { filter: invert(1); }
.nav__word { font-family: 'Cinzel', serif; font-weight: 500; letter-spacing: 0.16em; font-size: 0.95rem; text-transform: uppercase; }

.nav__links { display: flex; align-items: center; gap: 34px; }
.nav__links > a:not(.btn) {
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245,242,236,0.72);
  transition: color .3s var(--ease);
  position: relative;
}
.nav.scrolled .nav__links > a:not(.btn) { color: var(--muted); }
.nav__links > a:not(.btn):hover { color: var(--paper); }
.nav.scrolled .nav__links > a:not(.btn):hover { color: var(--ink); }
/* nav button over dark hero */
.nav:not(.scrolled) .nav__links .btn--solid { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.nav:not(.scrolled) .nav__links .btn--solid:hover { background: transparent; color: var(--paper); }

.nav__toggle { display: none; flex-direction: column; gap: 6px; background: none; border: 0; cursor: pointer; padding: 10px 4px; }
.nav__toggle span { width: 26px; height: 1.5px; background: var(--paper); transition: .3s var(--ease); }
.nav.scrolled .nav__toggle span { background: var(--ink); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100svh;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 80px;
}
.hero::before {
  content: "";
  position: absolute; inset: 26px;
  border: 1px solid rgba(245,242,236,0.14);
  pointer-events: none;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.06) brightness(0.5); opacity: 0.32; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 40%, rgba(14,14,14,0.5), rgba(14,14,14,0.92) 75%); }
.hero__frame { position: relative; z-index: 2; width: 100%; max-width: 760px; text-align: center; }
.hero__logo { margin: 0 auto; width: min(600px, 88%); line-height: 0; }
.hero__logo img {
  width: 100%; height: auto; display: block;
  -webkit-mask-image: radial-gradient(ellipse 60% 66% at 50% 50%, #000 40%, rgba(0,0,0,0.55) 68%, transparent 100%);
  mask-image: radial-gradient(ellipse 60% 66% at 50% 50%, #000 40%, rgba(0,0,0,0.55) 68%, transparent 100%);
}
/* Transparent PNG logo mark: no felt, no mask needed */
.hero__logo--mark { width: min(600px, 90%); }
.hero__logo--mark img { -webkit-mask-image: none; mask-image: none; }
.hero__top {
  display: flex; justify-content: space-between;
  font-size: 0.68rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--muted-light);
  margin-bottom: 40px;
}

/* Brand lockup (recreates the logo mark) */
.lockup { color: var(--paper); }
.lockup__rule { display: flex; align-items: center; justify-content: center; gap: 18px; margin-bottom: 6px; }
.lockup__rule span { height: 1px; width: 64px; background: currentColor; opacity: .8; }
.lockup__rule em {
  font-family: 'Cinzel', serif; font-style: normal; font-weight: 600;
  font-size: 1.5rem; line-height: 1; letter-spacing: 0;
}
.lockup__rule em sup { font-size: 0.5em; }
.lockup__name {
  font-size: clamp(2.6rem, 8vw, 5.4rem);
  line-height: 0.98;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}
.lockup__sub {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin-top: 12px;
  font-size: clamp(0.78rem, 2vw, 1rem);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: rgba(245,242,236,0.82);
}
.lockup__sub i { font-style: normal; opacity: .5; }

.hero__tagline {
  margin: 30px auto 0;
  max-width: 520px;
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  font-weight: 300;
  color: rgba(245,242,236,0.78);
  line-height: 1.7;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: 32px; }
.hero__bottom {
  margin-top: 34px;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  font-size: 0.8rem; letter-spacing: 0.1em; color: var(--muted-light);
}
.hero__stars { letter-spacing: 3px; color: var(--paper); font-size: 0.75rem; }
.hero__scroll {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  z-index: 2;
  font-size: 0.68rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--muted-light);
}
.hero__scroll::after { content: ""; display: block; width: 1px; height: 34px; background: currentColor; margin: 12px auto 0; animation: line 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes line { 0%,100%{ transform: scaleY(.4); opacity:.4 } 50%{ transform: scaleY(1); opacity:1 } }

/* ===== SECTION BASE ===== */
.section { padding: 120px 0; }
.paper { background: var(--paper); color: var(--ink); }
.ink { background: var(--ink); color: var(--paper); }
.ink .label { color: var(--muted-light); }

.head { margin-bottom: 56px; }
.head--center { text-align: center; }
.head__title { font-size: clamp(2rem, 5vw, 3.2rem); text-transform: uppercase; line-height: 1.05; margin-top: 18px; }
.head__lead { max-width: 560px; margin: 20px auto 0; color: var(--muted-light); font-weight: 300; }
.paper .head__lead { color: var(--muted); }

/* ===== FILOSOFIA / SPLIT ===== */
.split { display: grid; grid-template-columns: 240px 1fr; gap: 56px; align-items: start; }
.split__aside { padding-top: 8px; }
.split--philo { grid-template-columns: 0.92fr 1fr; gap: 64px; align-items: center; }
.philo-img { position: relative; overflow: hidden; }
.philo-img img { width: 100%; height: 100%; min-height: 440px; object-fit: cover; filter: grayscale(1) contrast(1.05); display: block; }
.philo-img::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--line); pointer-events: none; }
.split--philo .split__main .label { margin-bottom: 26px; }

.statement {
  font-size: clamp(1.5rem, 3.4vw, 2.35rem);
  line-height: 1.35;
  font-weight: 400;
  letter-spacing: 0.005em;
}
.statement em { font-style: italic; }
.prose { margin-top: 28px; max-width: 620px; color: var(--muted); font-size: 1.02rem; }

/* ===== SERVIZI ===== */
.services { list-style: none; margin-top: 10px; }
.service {
  display: grid; grid-template-columns: 120px 1fr; gap: 30px;
  padding: 40px 0;
  border-top: 1px solid var(--line-light);
  align-items: baseline;
}
.service:last-child { border-bottom: 1px solid var(--line-light); }
.service__no { font-size: 1.4rem; color: var(--muted-light); }
.service__body h3 { font-family: 'Cinzel', serif; font-size: clamp(1.5rem, 3vw, 2.1rem); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 500; }
.service__body p { margin-top: 14px; max-width: 560px; color: rgba(245,242,236,0.66); font-weight: 300; }
.service__body em { font-style: italic; color: var(--paper); }

/* ===== LISTINO ===== */
.menu { max-width: 780px; margin: 0 auto; }
.menu__cat {
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 52px 0 4px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink);
}
.menu__cat:first-child { margin-top: 0; }
.menu__row { display: flex; align-items: baseline; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.menu__name { font-size: 1.06rem; white-space: nowrap; }
.menu__name em { font-style: italic; color: var(--muted); font-size: 0.9rem; white-space: normal; }
.menu__dots { flex: 1; border-bottom: 1px dotted var(--line); transform: translateY(-4px); }
.menu__price { font-size: 1.35rem; }
.menu__row--star .menu__name { position: relative; }
.menu__note { text-align: center; color: var(--muted); font-size: 0.82rem; margin: 40px 0 34px; }

/* ===== GALLERY ===== */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 48px; }
.gallery--four { grid-template-columns: repeat(4, 1fr); }
.tile {
  position: relative;
  aspect-ratio: 4/5;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.03) 0 2px, transparent 2px 22px),
    linear-gradient(160deg, #232323, #131313);
  border: 1px solid rgba(255,255,255,0.08);
  display: grid; place-items: center;
  overflow: hidden;
}
.tile img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.05) brightness(0.92);
  transition: filter .55s var(--ease), transform .7s var(--ease);
}
.tile__mono { font-size: 2.4rem; color: rgba(245,242,236,0.16); }
.tile__mono sup { font-size: 0.5em; }
.tile figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 18px 18px 16px;
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(245,242,236,0.85);
  background: linear-gradient(0deg, rgba(0,0,0,0.7), transparent);
  transition: color .4s var(--ease);
}
.tile:hover img { filter: grayscale(0) contrast(1.03) brightness(1); transform: scale(1.05); }
.tile:hover figcaption { color: var(--paper); }

/* ===== ORARI ===== */
.split--hours { grid-template-columns: 1fr 380px; gap: 72px; align-items: center; }
.hours { list-style: none; margin-top: 6px; }
.hours li { display: flex; align-items: baseline; gap: 16px; padding: 15px 2px; border-bottom: 1px solid var(--line); font-size: 1.02rem; }
.hours li > span:first-child { min-width: 110px; }
.hours li i { flex: 1; border-bottom: 1px dotted var(--line); transform: translateY(-4px); }
.hours li > span:last-child { font-weight: 400; }
.hours .closed { color: var(--muted); }

.cta-card { border: 1px solid var(--line); padding: 44px 38px; background: var(--paper-2); text-align: center; }
.cta-card__monoimg { height: 48px; width: auto; display: block; margin: 0 auto 18px; filter: invert(1); }
.cta-card h3 { font-family: 'Cinzel', serif; font-size: 1.7rem; text-transform: uppercase; letter-spacing: 0.05em; }
.cta-card p { margin: 14px 0 26px; color: var(--muted); font-size: 0.96rem; }

/* ===== CONTATTI ===== */
.contatti { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: stretch; }
.contact-list { list-style: none; margin-top: 6px; }
.contact-list li { padding: 22px 0; border-bottom: 1px solid var(--line-light); display: grid; grid-template-columns: 130px 1fr; gap: 20px; align-items: baseline; }
.contact-list li:first-child { border-top: 1px solid var(--line-light); }
.contact-list__k { font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted-light); }
.contact-list__v { font-size: 1.05rem; color: var(--paper); font-weight: 300; }
.contact-list__v a { border-bottom: 1px solid rgba(245,242,236,0.3); transition: border-color .3s var(--ease); }
.contact-list__v a:hover { border-color: var(--paper); }
.contatti__map { min-height: 400px; border: 1px solid rgba(255,255,255,0.12); overflow: hidden; }
.contatti__map iframe { width: 100%; height: 100%; min-height: 400px; filter: grayscale(1) contrast(1.05) brightness(0.92); }

/* ===== FOOTER ===== */
.footer { background: var(--ink); color: var(--paper); padding: 72px 0 44px; border-top: 1px solid rgba(255,255,255,0.08); }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.lockup--sm .lockup__rule span { width: 40px; }
.lockup--sm .lockup__rule em { font-size: 1.1rem; }
.lockup--sm .lockup__name { font-size: 1.5rem; }
.lockup--sm .lockup__sub { font-size: 0.66rem; letter-spacing: 0.34em; margin-top: 8px; }
.footer__logo { width: 210px; max-width: 60%; margin: 0 auto 2px; line-height: 0; }
.footer__logo img { width: 100%; height: auto; display: block; }
.footer__addr { color: var(--muted-light); font-size: 0.92rem; }
.footer__links { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.footer__links a { font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(245,242,236,0.7); transition: color .3s var(--ease); }
.footer__links a:hover { color: var(--paper); }
.footer__copy { color: #5f5b53; font-size: 0.74rem; letter-spacing: 0.06em; margin-top: 14px; }

/* ===== MOBILE BOOK BAR ===== */
.book-bar {
  position: fixed; inset: auto 16px 16px 16px; z-index: 90;
  display: none; text-align: center;
  padding: 16px; background: var(--ink); color: var(--paper);
  font-size: 0.74rem; letter-spacing: 0.22em; text-transform: uppercase;
  border: 1px solid var(--paper);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .split, .split--philo, .split--hours, .contatti { grid-template-columns: 1fr; gap: 40px; }
  .philo-img img { min-height: 300px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .service { grid-template-columns: 70px 1fr; gap: 20px; }
}
@media (max-width: 720px) {
  .section { padding: 84px 0; }
  .container { padding: 0 22px; }
  .nav__links {
    position: fixed; inset: 78px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(14,14,14,0.98); backdrop-filter: blur(12px);
    padding: 16px 26px 28px;
    transform: translateY(-130%); transition: transform .4s var(--ease);
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .nav__links.open { transform: translateY(0); }
  .nav__links > a:not(.btn) { color: rgba(245,242,236,0.85) !important; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .nav__links .btn { margin-top: 16px; }
  .nav__toggle { display: flex; }
  .book-bar { display: block; }
  .footer { padding-bottom: 96px; }
  .hero__top { flex-direction: column; gap: 6px; align-items: center; margin-bottom: 44px; }
}
@media (max-width: 480px) {
  .gallery { grid-template-columns: 1fr 1fr; }
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; }
  .contact-list li { grid-template-columns: 1fr; gap: 6px; }
}
