/* ============================================================
   Sharaba — enoteca, cocktail e cucina siciliana
   Barcellona Pozzo di Gotto (ME)
   Direzione: dark "enoteca a lume caldo" — canvas vino near-black,
   accento unico oro-tungsteno, rosso del marchio solo decorativo.
   Font: Libre Caslon Display (display) + Manrope (testo/UI).
   Radius unico 4px. Mobile-first (390px).
   ============================================================ */

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

:root {
  /* canvas / superfici */
  --bg:        #16090b;   /* vino near-black caldo (i bordi in ombra della sala) */
  --bg-2:      #1e0d0f;   /* banda sollevata */
  --bg-3:      #260f12;   /* pannello */
  /* marchio (rosso delle loro pareti) — SOLO decorativo, mai interattivo */
  --crimson:   #b21f27;
  --crimson-deep: #6f1418;
  /* accento UNICO (le lampadine a incandescenza / i cocktail ambrati) */
  --gold:      #e2a552;
  --gold-bright: #f2c684;
  --gold-line: rgba(226,165,82,.45);
  /* testo */
  --ink:       #180a0b;   /* testo scuro sopra i bottoni oro */
  --cream:     #f4eadf;   /* testo primario su fondo scuro */
  --muted:     #c9b5a4;   /* testo secondario (AA ~8:1 su --bg) */
  --faint:     #9a8477;   /* micro-etichette */
  /* linee */
  --line:        rgba(244,234,223,.12);
  --line-strong: rgba(244,234,223,.22);
  --radius: 4px;
  --wrap: 1120px;
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: "Libre Caslon Display", Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.12;
  margin: 0;
  color: var(--cream);
  letter-spacing: .002em;
}

p { margin: 0; }
img { max-width: 100%; display: block; }

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

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 1.35rem; }

/* ---------- micro-etichetta (usata con parsimonia) ---------- */
.eyebrow {
  font-size: .72rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin: 0 0 .9rem;
}

/* ---------- bottoni (radius 4px ovunque) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  font-family: "Manrope", sans-serif;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .015em;
  line-height: 1;
  padding: .95rem 1.6rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .18s ease, background-color .18s ease,
              border-color .18s ease, color .18s ease;
}
.btn svg { width: 1.05em; height: 1.05em; flex: none; }
.btn-primary { background: var(--gold); color: var(--ink); }
.btn-primary:hover { background: var(--gold-bright); color: var(--ink); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--gold); border-color: var(--gold-line); }
.btn-ghost:hover { border-color: var(--gold); background: rgba(226,165,82,.09); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.99); }

/* ============================================================
   TOPBAR (sticky, translucida)
   ============================================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 1.35rem;
  background: rgba(22,9,11,.82);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar .brand {
  font-family: "Libre Caslon Display", serif;
  font-size: 1.28rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--cream);
  padding-left: .34em; /* compensa il tracking a destra */
}
.topbar-cta {
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .02em;
  color: var(--gold);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  padding: .5rem 1rem;
  transition: border-color .18s ease, background-color .18s ease;
}
.topbar-cta:hover { border-color: var(--gold); background: rgba(226,165,82,.09); color: var(--gold-bright); }

/* ============================================================
   HERO — targa tipografica + emblema su fondo vino
   ============================================================ */
.hero {
  position: relative;
  min-height: calc(100dvh - 60px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.35rem 3.5rem;
  overflow: hidden;
}
/* bagliore caldo tungsteno */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(90% 70% at 50% 26%, rgba(226,165,82,.20), transparent 58%),
    radial-gradient(120% 90% at 50% 20%, rgba(178,31,39,.20), transparent 62%);
  pointer-events: none;
}
/* vignettatura ai bordi */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(120% 100% at 50% 45%, transparent 55%, rgba(0,0,0,.45));
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 640px; }

.emblem { width: 84px; height: 84px; margin: 0 auto 1.6rem; display: block; }
.emblem .ring { fill: none; stroke: var(--gold); stroke-width: 2.2; opacity: .92; }
.emblem .leaf { fill: var(--gold); }
.emblem .vein { fill: none; stroke: var(--bg); stroke-width: 1.7; stroke-linecap: round; }

.hero h1 {
  font-size: clamp(2rem, 10.5vw, 5.4rem);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0 0 .1em;
  padding-left: .08em; /* compensa tracking */
  color: var(--cream);
  max-width: 100%;
}
@media (min-width: 600px) {
  .hero h1 { letter-spacing: .2em; padding-left: .2em; }
}
.hero .hero-sub {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.55;
  max-width: 30ch;
  margin: .4rem auto 0;
}
.hero-rule {
  width: 56px;
  height: 1px;
  background: var(--gold-line);
  margin: 1.5rem auto;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  justify-content: center;
  margin-top: .2rem;
}
/* rating (spostato dall'hero a una sezione dedicata) */
.rating {
  color: var(--gold);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .04em;
  margin-bottom: 1rem;
}
.rating .star { margin-right: .15em; }

/* ============================================================
   BANDA FOTO A TUTTA LARGHEZZA
   ============================================================ */
.band {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
}
.band::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18,7,9,.30) 0%, rgba(18,7,9,.10) 40%, rgba(18,7,9,.82) 100%);
}
.band-copy {
  position: relative; z-index: 1;
  width: 100%;
  padding: 2.4rem 0;
}
.band-copy p {
  font-family: "Libre Caslon Display", serif;
  font-size: clamp(1.5rem, 6.5vw, 2.4rem);
  line-height: 1.22;
  color: var(--cream);
  max-width: 20ch;
  text-shadow: 0 1px 24px rgba(0,0,0,.5);
}

/* ============================================================
   SEZIONI generiche
   ============================================================ */
.section { padding: 4.5rem 0; }
.section.alt { background: var(--bg-2); }
.section h2 {
  font-size: clamp(2rem, 8vw, 2.9rem);
}
.lead { color: var(--muted); font-size: 1.1rem; margin-top: 1.1rem; max-width: 60ch; }

/* ---------- IL LOCALE (asimmetrica testo + foto offset) ---------- */
.locale-grid { display: grid; gap: 2rem; align-items: center; }
.locale-copy p + p { margin-top: 1.1rem; }
.locale-copy .lead { max-width: none; }
.locale-photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-strong);
}
.locale-photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }

/* ---------- TRIO a filetti (niente card) ---------- */
.trio { display: grid; gap: 0; margin-top: 2.4rem; }
.trio-item { padding: 1.5rem 0; border-top: 1px solid var(--line); }
.trio-item:first-child { border-top: none; }
.trio-item h3 {
  font-size: 1.5rem;
  color: var(--gold-bright);
  margin-bottom: .35rem;
}
.trio-item p { color: var(--muted); max-width: 40ch; }

/* ---------- SPLIT (cucina / cantina) ---------- */
.split { display: grid; gap: 0; align-items: stretch; }
.split .split-media { min-height: 62vw; background-size: cover; background-position: center; }
.split .split-body {
  padding: 3rem 1.35rem;
  display: flex; flex-direction: column; justify-content: center;
}
.split .split-body .inner { max-width: 34rem; }
.split h2 { font-size: clamp(1.9rem, 7vw, 2.6rem); }
.split .lead { max-width: none; }

/* ---------- CITAZIONE recensione ---------- */
.quote {
  margin-top: 1.8rem;
  padding-left: 1.15rem;
  border-left: 2px solid var(--gold-line);
}
.quote p {
  font-family: "Libre Caslon Display", serif;
  font-size: 1.28rem;
  line-height: 1.4;
  color: var(--cream);
}
.quote cite {
  display: block;
  margin-top: .7rem;
  font-family: "Manrope", sans-serif;
  font-style: normal;
  font-size: .82rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ============================================================
   ORARI & CONTATTI
   ============================================================ */
.info-grid { display: grid; gap: 2.6rem; margin-top: 2.4rem; }
.info-block h3 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
  color: var(--cream);
}
.hours { list-style: none; margin: 0; padding: 0; }
.hours li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: .6rem 0;
  border-bottom: 1px solid var(--line);
  font-size: .98rem;
  color: var(--muted);
}
.hours li:last-child { border-bottom: none; }
.hours li .day { color: var(--cream); font-weight: 500; }
.hours li.is-today .day,
.hours li.is-today .val { color: var(--gold-bright); }
.hours li .today-tag {
  display: none;
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-left: .6rem;
}
.hours li.is-today .today-tag { display: inline; }
.hours-note { margin-top: 1rem; color: var(--faint); font-size: .9rem; }

.contact-lines { color: var(--muted); font-size: 1.02rem; line-height: 1.9; }
.contact-lines .addr { color: var(--cream); }
.contact-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.4rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--line);
  padding: 2.6rem 1.35rem 3rem;
  text-align: center;
  color: var(--faint);
  font-size: .88rem;
  background: var(--bg);
}
.footer .foot-brand {
  font-family: "Libre Caslon Display", serif;
  font-size: 1.2rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--cream);
  padding-left: .3em;
  display: block;
  margin-bottom: .7rem;
}
.footer p + p { margin-top: .5rem; }
.footer .demo-note {
  margin-top: 1.4rem;
  color: var(--crimson);
  font-size: .8rem;
  opacity: .9;
}

/* ============================================================
   MOTION — MOTION_INTENSITY 3: hover + un solo fade d'ingresso
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .hero-inner > * {
    opacity: 0;
    animation: rise .9s cubic-bezier(.16,1,.3,1) forwards;
  }
  .emblem       { animation-delay: .05s; }
  .hero h1      { animation-delay: .16s; }
  .hero-sub     { animation-delay: .28s; }
  .hero-rule    { animation-delay: .38s; }
  .hero-actions { animation-delay: .46s; }
  .hero-trust   { animation-delay: .58s; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 760px) {
  body { font-size: 1.09rem; }
  .section { padding: 6rem 0; }

  .locale-grid { grid-template-columns: 1.05fr .95fr; gap: 3.2rem; }
  .trio { grid-template-columns: repeat(3, 1fr); gap: 0; }
  .trio-item {
    border-top: none;
    border-left: 1px solid var(--line);
    padding: .5rem 1.6rem;
  }
  .trio-item:first-child { padding-left: 0; border-left: none; }

  .split { grid-template-columns: 1fr 1fr; }
  .split .split-media { min-height: 560px; }
  .split.reverse .split-media { order: 2; }
  .split .split-body { padding: 4rem 3rem; }

  .info-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }

  .band { min-height: 66vh; }
  .band-copy { padding: 3.5rem 0; }
}

@media (min-width: 1024px) {
  .hero { min-height: calc(100dvh - 62px); }
  .split .split-body { padding: 5rem 4.2rem; }
}
