/* ==========================================================================
   TUL BAR — Barcellona Pozzo di Gotto
   Direction: bright Sicilian-summer granita bar. Cool "ice/panna" canvas,
   single cobalt accent lifted from their awning, warm food photos and a
   fresh-fruit flavour index carry the colour. Mobile-first (390px).
   Type: Grand Hotel (wordmark) + Yeseva One (display) + Onest (body).
   Radius system: buttons & chips = pill/round; cards & images = 18px.
   ========================================================================== */

:root {
  --bg:        #f4f7fb;   /* bright cool off-white (ice / panna) */
  --band:      #e7f0fb;   /* pale cobalt wash — tinted neutral, NOT a 2nd accent */
  --surface:   #ffffff;   /* crisp white cards */
  --text:      #14202b;   /* cool near-black */
  --muted:     #566575;   /* secondary text (AA on canvas) */
  --line:      #d8e2ec;   /* hairlines */
  --accent:    #1e56c9;   /* ONE accent: awning cobalt (fills; white text = 6.5:1) */
  --accent-tx: #164bb0;   /* cobalt for inline text links on light (7.9:1) */
  --accent-hv: #1746a8;   /* hover */
  --on-accent: #ffffff;

  --font-brand:   "Grand Hotel", cursive;
  --font-display: "Yeseva One", Georgia, serif;
  --font-body:    "Onest", -apple-system, "Segoe UI", sans-serif;

  --radius:  18px;
  --wrap:    1120px;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; height: auto;}
a { color: var(--accent-tx); }

h1, h2 { font-family: var(--font-display); font-weight: 400; line-height: 1.08; letter-spacing: -0.005em; }

.eyebrow {
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em;
  color: var(--accent-tx); margin-bottom: 0.9rem;
}

/* -- buttons --------------------------------------------------------------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 600;
  padding: 0.72rem 1.5rem; border-radius: 999px; font-size: 1rem;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn-primary {
  background: var(--accent); color: var(--on-accent);
  box-shadow: 0 8px 20px -8px rgba(30,86,201,.55);
}
.btn-primary:hover { background: var(--accent-hv); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--accent-tx); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* -- top bar --------------------------------------------------------------- */
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.7rem 1.25rem; position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { font-family: var(--font-brand); font-size: 1.9rem; line-height: 1; color: var(--accent-tx); padding-top: .2rem; }
.topbar-cta {
  text-decoration: none; font-weight: 600; font-size: 0.95rem;
  color: var(--on-accent); background: var(--accent);
  padding: 0.45rem 1.1rem; border-radius: 999px;
}
.topbar-cta:hover { background: var(--accent-hv); }

/* -- hero (split) ---------------------------------------------------------- */
.hero {
  max-width: var(--wrap); margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
  display: grid; gap: 2rem; align-items: center;
}
.hero-copy { animation: rise .7s cubic-bezier(.16,1,.3,1) both; }
.hero h1 { font-size: clamp(2.5rem, 9vw, 3.9rem); margin-bottom: 1.1rem; }
.hero-sub { color: var(--muted); font-size: 1.12rem; max-width: 40ch; margin-bottom: 1.9rem; }
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.hero-media img {
  width: 100%; border-radius: var(--radius); object-fit: cover;
  height: 60vw; max-height: 62vh;   /* mobile: full-width showcase, landscape crop */
  box-shadow: 0 30px 60px -28px rgba(20,32,43,.45);
  animation: rise .8s cubic-bezier(.16,1,.3,1) .1s both;
}

/* -- identity trio --------------------------------------------------------- */
.trio {
  max-width: var(--wrap); margin: 0 auto; padding: 1rem 1.25rem 2.5rem;
  display: grid; gap: 0.5rem;
}
.trio-item { padding: 1.15rem 0; border-top: 1px solid var(--line); }
.trio-item:first-child { border-top: none; }
.trio-item h2 { font-size: 1.5rem; margin-bottom: 0.25rem; }
.trio-item p { color: var(--muted); max-width: 34ch; }

/* -- le granite (flavour index) -------------------------------------------- */
.granite {
  background: var(--band);
  padding: 3.5rem 1.25rem 4rem;
}
.granite-head { max-width: var(--wrap); margin: 0 auto 2rem; }
.granite-head h2 { font-size: clamp(2rem, 6vw, 2.8rem); margin-bottom: 0.75rem; }
.granite-head p { color: var(--muted); max-width: 56ch; }
.gusti {
  max-width: var(--wrap); margin: 0 auto; list-style: none; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.35rem 1.5rem;
}
.gusti li {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.6rem 0; font-weight: 500;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
/* flavour swatch = product truth (the real granita colour), not a UI accent */
.chip {
  width: 15px; height: 15px; border-radius: 999px; flex: none;
  background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(20,32,43,.16);
}

/* -- feature (colazione) --------------------------------------------------- */
.feature {
  max-width: var(--wrap); margin: 0 auto; padding: 3.5rem 1.25rem;
  display: grid; gap: 1.75rem; align-items: center;
}
.feature-media img {
  width: 100%; border-radius: var(--radius); object-fit: cover;
  aspect-ratio: 5 / 4;
  box-shadow: 0 24px 50px -30px rgba(20,32,43,.4);
}
.feature-copy h2 { font-size: clamp(1.9rem, 5.5vw, 2.5rem); margin-bottom: 0.9rem; }
.feature-copy p { color: var(--muted); max-width: 46ch; margin-bottom: 1.4rem; }
.tags { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-bottom: 0.7rem; }
.tag-label { font-weight: 600; font-size: 0.9rem; margin-right: 0.25rem; }
.tag {
  font-size: 0.9rem; padding: 0.3rem 0.8rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); color: var(--text);
}

/* -- atmosfera + recensione ------------------------------------------------ */
.atmo { display: grid; }
.atmo-img { width: 100%; height: clamp(240px, 45vh, 460px); object-fit: cover; object-position: center 40%; }
.quote {
  background: var(--band); color: var(--text); margin: 0;
  padding: 3rem 1.5rem; text-align: center;
}
.quote .rating { color: var(--accent-tx); font-weight: 700; font-size: 0.95rem; margin-bottom: 1rem; }
.quote blockquote {
  font-family: var(--font-display); font-size: clamp(1.35rem, 4vw, 1.9rem);
  line-height: 1.35; max-width: 24ch; margin: 0 auto 1rem;
}
.quote figcaption { color: var(--muted); font-size: 0.9rem; }

/* -- orari & dove ---------------------------------------------------------- */
.info {
  max-width: var(--wrap); margin: 0 auto; padding: 3.5rem 1.25rem 4rem;
  display: grid; gap: 2.5rem;
}
.info h2 { font-size: 1.9rem; margin-bottom: 0.5rem; }
.info-note { color: var(--muted); margin-bottom: 1.1rem; }
.hours { width: 100%; border-collapse: collapse; max-width: 380px; }
.hours th, .hours td { padding: 0.55rem 0; text-align: left; font-weight: 500; vertical-align: baseline; }
.hours th { color: var(--text); font-weight: 500; }
.hours td { color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.hours tr { border-bottom: 1px solid var(--line); }
.hours tr.is-today th, .hours tr.is-today td { color: var(--accent-tx); font-weight: 700; }
.address { margin-bottom: 1rem; line-height: 1.7; }
.info .btn { margin-bottom: 1.75rem; }
.facade { width: 100%; border-radius: var(--radius); height: 66vw; object-fit: cover; max-height: 460px; } /* mobile: landscape crop */

/* -- footer ---------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 2.75rem 1.25rem 3.25rem; text-align: center;
  color: var(--muted); font-size: 0.92rem;
}
.footer-brand { font-family: var(--font-brand); font-size: 1.7rem; color: var(--accent-tx); margin-bottom: 0.35rem; }
.footer p + p { margin-top: 0.35rem; }
.demo-note { opacity: 0.75; font-size: 0.85rem; margin-top: 0.75rem; }

/* -- motion ---------------------------------------------------------------- */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* -- responsive ------------------------------------------------------------ */
@media (min-width: 720px) {
  .hero { grid-template-columns: 1.05fr 0.95fr; gap: 3rem; padding-top: 3.5rem; padding-bottom: 4rem; }
  .hero-media img { height: auto; aspect-ratio: 4 / 5; } /* desktop: portrait beside the copy in the split */
  .trio { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
  .trio-item { border-top: none; border-left: 1px solid var(--line); padding: 0.25rem 0 0.25rem 1.5rem; }
  .trio-item:first-child { padding-left: 0; border-left: none; }
  .gusti { grid-template-columns: repeat(3, 1fr); gap: 0.4rem 2.5rem; }
  .feature { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .atmo { grid-template-columns: 1.1fr 1fr; }
  .atmo-img { height: 100%; }
  .quote { display: flex; flex-direction: column; justify-content: center; padding: 3.5rem 3rem; }
  .info { grid-template-columns: 1fr 1fr; gap: 4rem; padding-top: 4.5rem; }
  .facade { height: auto; aspect-ratio: 4 / 5; } /* desktop: tall storefront in the narrow column */
}
