/* =================================================================
   BAR BELLINI — styles.css
   Editorial, bianco dominante, stacchi neri, accenti blu/rosso.
   Mobile-first. Niente framework.
   ================================================================= */

:root {
  /* Backgrounds */
  --bg-primary: #FFFFFF;
  --bg-dark: #0A0A0A;
  --bg-subtle: #F5F5F5;

  /* Brand colors (dall'insegna del Bar Bellini) */
  --brand-blue: #1E40AF;
  --brand-red: #DC2626;

  /* Text */
  --text-primary: #0A0A0A;
  --text-secondary: #555555;
  --text-on-dark: #F5F1EA;
  --text-muted: #999999;

  /* Accents & dividers */
  --accent: #1E40AF;
  --accent-hover: #1E3A8A;
  --divider: #E5E5E5;

  /* Layout */
  --maxw: 1180px;
  --pad-x: clamp(1.25rem, 5vw, 5rem);
  --section-y: clamp(3.75rem, 9vw, 7.5rem);
  --header-h: 72px;

  /* Type */
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, picture, iframe { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 3px;
}

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 1.1rem;
  color: var(--text-secondary);
}
.eyebrow--red    { color: var(--brand-red); }
.eyebrow--blue   { color: var(--brand-blue); }
.eyebrow--muted  { color: var(--text-muted); }
.eyebrow--on-dark{ color: var(--text-on-dark); opacity: 0.82; }

.section-title {
  font-size: clamp(2rem, 4.6vw, 3rem);
}

.section-lead {
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  color: var(--text-secondary);
  margin-top: 1.25rem;
  max-width: 34ch;
}
.section-lead--on-dark { color: var(--text-on-dark); opacity: 0.85; }

.section-head {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--pad-x);
  text-align: center;
}
.section-head .section-lead {
  margin-left: auto;
  margin-right: auto;
}

.prose p {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 1.15rem;
}
.prose p:last-child { margin-bottom: 0; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 1rem 1.75rem;
  border-radius: 3px;
  border: 1px solid transparent;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
  cursor: pointer;
}
.btn--light {
  background: #FFFFFF;
  color: var(--text-primary);
}
.btn--light:hover { background: #E9E9E9; color: var(--text-primary); }

.btn--outline-light {
  background: transparent;
  color: var(--text-on-dark);
  border-color: rgba(245,241,234,0.45);
}
.btn--outline-light:hover {
  background: var(--text-on-dark);
  color: var(--bg-dark);
  border-color: var(--text-on-dark);
}
.btn--outline-dark {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--text-primary);
}
.btn--outline-dark:hover {
  background: var(--text-primary);
  color: #FFFFFF;
}

.link-arrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.link-arrow--on-dark { color: #FFFFFF; }
.link-arrow--on-dark:hover { color: #FFFFFF; opacity: 0.8; }

.section-cta {
  text-align: center;
  margin-top: clamp(2.25rem, 5vw, 3.25rem);
}
.section-cta--left { text-align: left; margin-top: 2rem; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--divider);
  transition: box-shadow .2s ease;
}
.header.is-scrolled {
  box-shadow: 0 2px 14px rgba(0,0,0,0.07);
}
.header__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  min-height: var(--header-h);
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header__logo { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.logo-name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
.logo-sub {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.5rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--brand-red);
}

.nav { display: none; }
.nav a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-left: 2.25rem;
  padding: 0.5rem 0;
  transition: color .15s ease;
}
.nav a:hover { color: var(--brand-blue); }

/* Hamburger */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 0 auto;
  background: var(--text-primary);
  transition: transform .22s ease, opacity .22s ease;
}
.header.is-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.header.is-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 0.5rem var(--pad-x) 1.5rem;
  border-top: 1px solid var(--divider);
  background: var(--bg-primary);
}
.header.is-open .mobile-nav { display: flex; }
.mobile-nav a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-primary);
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--divider);
}
.mobile-nav a:last-child { border-bottom: 0; }
.mobile-nav__call {
  margin-top: 0.9rem;
  color: var(--brand-blue) !important;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero__media,
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
              rgba(10,10,10,0.10) 0%,
              rgba(10,10,10,0.20) 45%,
              rgba(10,10,10,0.72) 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 5rem) var(--pad-x);
  color: #FFFFFF;
  text-shadow: 0 1px 18px rgba(10, 10, 10, 0.45);
}
.hero__title {
  font-size: clamp(2.5rem, 7.5vw, 4rem);
  line-height: 1.04;
  margin-bottom: 1.1rem;
}
.hero__subtitle {
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  line-height: 1.55;
  color: rgba(255,255,255,0.92);
  max-width: 36ch;
  margin-bottom: 2rem;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 1.75rem;
}

/* ---------- Two-column section base (chef / venue) ---------- */
.chef,
.venue {
  display: grid;
  grid-template-columns: 1fr;
}
.chef__photo img,
.venue__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.chef__photo,
.venue__photo { min-height: 58vw; }

.chef__text,
.venue__text {
  padding: var(--section-y) var(--pad-x);
  align-self: center;
}

/* Chef extras */
.rule {
  border: 0;
  border-top: 1px solid var(--divider);
  margin: 2rem 0;
}
.chef__text .section-title,
.venue__text .section-title { margin-top: 0.25rem; }
.chef__text .prose,
.venue__text .prose { margin-top: 1.5rem; }

.quote {
  font-family: var(--font-head);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.2rem, 2.4vw, 1.375rem);
  line-height: 1.5;
  color: var(--brand-blue);
  margin: 0;
}
.signature {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 0.9rem;
}

.venue__line {
  font-family: var(--font-head);
  font-weight: 400;
  font-style: italic;
  font-size: 1.125rem;
  color: var(--brand-blue);
  margin-top: 1.75rem;
}

/* ---------- Specialties ---------- */
.specialties {
  padding: var(--section-y) 0;
}
.specialties .section-head { margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }

.grid {
  display: grid;
  gap: clamp(1.75rem, 3.5vw, 2.5rem);
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--pad-x);
}
.grid--4 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }

.moment__name {
  font-size: 1.5rem;
  margin: 0.85rem 0 0.4rem;
}
.moment__desc {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-secondary);
}
.moment .eyebrow { margin: 0; }

.moment picture img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* Specialties: elenco piatti + foto del piatto (foto a destra, si alterna col chef) */
.specialties__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--pad-x);
}
.specialties__photo {
  order: -1;                /* su mobile la foto sta sopra l'elenco */
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(10, 10, 10, 0.12);
}
.specialties__photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.dish-row {
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--divider);
}
.dish-row:first-child { padding-top: 0; }
.dish-row:last-child { padding-bottom: 0; border-bottom: 0; }
.dish-row .eyebrow { margin: 0 0 0.4rem; }
.dish-row__name {
  font-size: 1.5rem;
  margin: 0 0 0.4rem;
}
.dish-row__desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ---------- Break photo (full-width) ---------- */
.break-photo {
  height: 350px;
  overflow: hidden;
}
.break-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Daily menu (dark) ---------- */
.daily-menu {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: var(--section-y) 0;
}
.daily-menu .section-title { color: var(--text-on-dark); }
.daily-menu .section-head { margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }

.daily-menu__cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 5vw, 3.5rem);
  max-width: 820px;
  margin: 0 auto;
  padding-inline: var(--pad-x);
}
.menu-col__title {
  font-size: 1.75rem;
  color: var(--text-on-dark);
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(245,241,234,0.18);
}
.menu-col__list li {
  font-size: 1.0625rem;
  color: var(--text-on-dark);
  padding: 8px 0;
}
.menu-col__note {
  font-size: 0.8125rem;
  color: var(--text-on-dark);
  opacity: 0.7;
  margin-top: 0.85rem;
}
.daily-menu__footnote {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-on-dark);
  opacity: 0.65;
  max-width: 42ch;
  margin: clamp(2.5rem, 5vw, 3.5rem) auto 0;
  padding-inline: var(--pad-x);
}

/* ---------- Carta ---------- */
.carta {
  padding: var(--section-y) 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 5vw, 4rem);
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--pad-x);
}
.carta__intro .section-lead { margin-left: 0; }
.carta__photo {
  margin-top: 2rem;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(10, 10, 10, 0.12);
}
.carta__photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.carta__group { margin-bottom: 2.5rem; }
.carta__group:last-child { margin-bottom: 0; }
.carta__group-title {
  font-size: 1.375rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-bottom: 0.85rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--divider);
}
.carta__item {
  display: flex;
  align-items: flex-end;
  gap: 0.35rem;
  padding: 0.55rem 0;
}
.carta__name {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 1.0625rem;
}
.carta__dots {
  flex: 1 1 auto;
  border-bottom: 1px dotted #C7C7C7;
  position: relative;
  top: -0.32rem;
  min-width: 1.5rem;
}
.carta__price {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.0625rem;
  color: var(--brand-blue);
  white-space: nowrap;
}

/* ---------- Moments ---------- */
.moments { padding: var(--section-y) 0; }
.moments .section-head { margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }

/* ---------- Location ---------- */
.location { padding: var(--section-y) 0; }
.location .section-head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.location__map {
  max-width: 1320px;
  margin: 0 auto;
  padding-inline: var(--pad-x);
}
.location__map iframe { width: 100%; height: 350px; }

.location__info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  max-width: var(--maxw);
  margin: clamp(2.5rem, 5vw, 3.5rem) auto 0;
  padding-inline: var(--pad-x);
}
.info-block__heading {
  font-size: 0.75rem;
  font-family: var(--font-body);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-blue);
  padding-bottom: 0.85rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--divider);
}
.info-list { margin: 0; }
.info-list dt {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-top: 1.15rem;
}
.info-list dt:first-child { margin-top: 0; }
.info-list dd {
  margin: 0.25rem 0 0;
  font-size: 1.0625rem;
  color: var(--text-primary);
}

/* ---------- Contact (dark) ---------- */
.contact {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: var(--section-y) 0;
}
.contact .section-title { color: var(--text-on-dark); }
.contact .section-head { margin-bottom: clamp(2.75rem, 5vw, 4rem); }

.contact__grid { text-align: center; }
.contact__col { padding: 0.5rem 0; }
.contact__phone {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  color: var(--text-on-dark);
  display: inline-block;
}
.contact__phone:hover { color: #FFFFFF; }
.contact__sub {
  font-size: 0.875rem;
  color: var(--text-on-dark);
  opacity: 0.65;
  margin-top: 0.5rem;
}
.contact__links a,
.contact__where {
  display: block;
  font-size: 1.0625rem;
  color: var(--text-on-dark);
  margin-top: 0.35rem;
}
.contact__links a:hover { color: #FFFFFF; opacity: 0.8; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  text-align: center;
  padding: 2.75rem var(--pad-x);
  border-top: 1px solid rgba(245,241,234,0.12);
}
.site-footer__legal {
  font-size: 0.8125rem;
  line-height: 1.7;
  opacity: 0.7;
}
.site-footer__copy {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.6rem;
}

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

/* =================================================================
   RESPONSIVE — tablet (>=768px)
   ================================================================= */
@media (min-width: 768px) {
  :root { --header-h: 90px; }

  .header__logo img { height: 64px; }
  .logo-name { font-size: 1.8rem; }
  .logo-sub { font-size: 0.5625rem; }

  .nav { display: flex; align-items: center; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none !important; }

  .hero { min-height: 85vh; }

  .chef,
  .venue { grid-template-columns: 1fr 1fr; }
  .chef__photo,
  .venue__photo { min-height: 0; }
  /* Venue: testo a sinistra, foto a destra (invertito rispetto al chef) */
  .venue__text  { grid-column: 1; }
  .venue__photo { grid-column: 2; }

  .grid--3 { grid-template-columns: repeat(3, 1fr); }

  /* Specialties: elenco a sinistra, foto a destra (invertito rispetto al chef) */
  .specialties__inner {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: clamp(2.5rem, 5vw, 4.5rem);
  }
  .specialties__photo { order: 0; }

  .break-photo { height: 500px; }

  .daily-menu__cols { grid-template-columns: 1fr 1fr; }
  .daily-menu__cols .menu-col:first-child {
    padding-right: clamp(1rem, 3vw, 2.5rem);
    border-right: 1px solid rgba(245,241,234,0.14);
  }

  .carta { grid-template-columns: 0.85fr 1.15fr; align-items: start; }
  .carta__intro { position: sticky; top: calc(var(--header-h) + 2.5rem); }

  .location__map iframe { height: 500px; }
  .location__info { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .info-block { max-width: 22rem; }
  .location__info .info-block:last-child { justify-self: end; }
}

/* =================================================================
   RESPONSIVE — desktop (>=1024px)
   ================================================================= */
@media (min-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(4, 1fr); }

  .chef__text  { padding: var(--section-y) clamp(3rem, 5vw, 5rem); }
  .venue__text { padding: var(--section-y) clamp(3rem, 5vw, 5rem); }
}

/* =================================================================
   Reduced motion
   ================================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; }
}
