/* ==========================================================================
   AmatoMare — pescheria con cucina, Barcellona Pozzo di Gotto
   Direction: bright coastal market. Warm sand/salt canvas, sea-charcoal ink,
   ONE action accent = sea-azure (their door-logo blue). Young Serif (organic,
   hand-cut display) + Schibsted Grotesk (crisp body). Mobile-first (390px).
   Radius system: pill (999px) for buttons/tags/brand disc; 12px for photos/media.
   ========================================================================== */

:root {
  --sand: #f7f5ef;          /* warm sand/salt canvas */
  --sand-band: #eaf1f2;     /* pale sea-mist alt band (tinted neutral, NOT a 2nd accent) */
  --surface: #ffffff;       /* clean surfaces */
  --ink: #16262e;           /* deep sea-charcoal (their dark accent wall) */
  --muted: #566068;         /* secondary text (~5.5:1 on sand) */
  --line: #dfe3dd;          /* hairlines */
  --azure: #0e6f9e;         /* THE accent — action colour (5.5:1 white-on, 5.1:1 on sand) */
  --azure-ink: #ffffff;     /* text on azure */
  --azure-hover: #0b5c84;
  --azure-bright: #1a8fc4;  /* brand disc ONLY — faithful to their real logo mark */
  --font-display: "Young Serif", Georgia, serif;
  --font-body: "Schibsted Grotesk", -apple-system, "Segoe UI", sans-serif;
  --radius: 12px;
  --measure: 64ch;
}

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

body {
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--azure); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.08; }
h2 { font-size: clamp(1.75rem, 5vw, 2.5rem); letter-spacing: -0.01em; margin-bottom: 0.6rem; }
h3 { font-size: 1.2rem; }

/* Mobile-image iron rule: any content photo stays landscape-or-square at 390px. */
@media (max-width: 640px) {
  figure img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
}

/* ---- brand disc (reconstruction of their real "AM" logo mark) --------------- */
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; border-radius: 999px;
  background: var(--azure-bright); color: #fff;
  font-family: var(--font-display); font-size: 0.82rem; letter-spacing: 0.02em;
  flex: none;
}

/* ---- top bar ---------------------------------------------------------------- */
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.7rem 1.1rem;
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--sand) 90%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 0.55rem; text-decoration: none; color: var(--ink); }
.brand-name { font-family: var(--font-display); font-size: 1.2rem; }
.topbar-cta {
  text-decoration: none; font-weight: 600; font-size: 0.95rem;
  color: var(--azure-ink); background: var(--azure);
  padding: 0.45rem 1.1rem; border-radius: 999px;
  transition: background 0.2s ease;
}
.topbar-cta:hover { background: var(--azure-hover); }

/* ---- buttons ---------------------------------------------------------------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 600;
  padding: 0.7rem 1.4rem; border-radius: 999px; border: 1.5px solid transparent;
  transition: transform 0.12s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--azure); color: var(--azure-ink); border-color: var(--azure); }
.btn-primary:hover { background: var(--azure-hover); border-color: var(--azure-hover); }
.btn-ghost {
  color: #fff; border-color: rgba(255,255,255,0.7);
  background: rgba(10,30,40,0.28); backdrop-filter: blur(3px);
}
.btn-ghost:hover { background: rgba(10,30,40,0.45); border-color: #fff; }

/* ---- hero (full-bleed fish-market photo) ------------------------------------ */
.hero {
  position: relative; isolation: isolate;
  min-height: 82vh;
  display: flex; align-items: flex-end;
  padding: 1.5rem 1.25rem 2.5rem;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(9,28,38,0.15) 0%, rgba(9,28,38,0.10) 42%, rgba(9,28,38,0.78) 100%);
}
.hero-inner { max-width: 40ch; color: #fff; }
.hero-kicker {
  font-size: 0.8rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.12em; margin-bottom: 0.7rem; color: rgba(255,255,255,0.94);
  text-shadow: 0 1px 12px rgba(0,0,0,0.45);
}
.hero h1 {
  font-size: clamp(3rem, 13vw, 5.5rem); margin-bottom: 0.7rem;
  text-shadow: 0 2px 24px rgba(0,0,0,0.4);
}
.hero-sub {
  font-size: 1.1rem; color: rgba(255,255,255,0.96); margin-bottom: 1.6rem; max-width: 30ch;
  text-shadow: 0 1px 12px rgba(0,0,0,0.45);
}
.hero-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; }

/* ---- generic section -------------------------------------------------------- */
.section { padding: 3.25rem 1.25rem; max-width: var(--measure); margin: 0 auto; }
.section-intro { color: var(--muted); margin-bottom: 1.75rem; max-width: 52ch; }

/* ---- intro / doppia natura -------------------------------------------------- */
.intro { text-align: left; }
.lead {
  font-size: clamp(1.2rem, 3.4vw, 1.5rem); line-height: 1.5; color: var(--ink);
  max-width: 40ch;
}
.rating { margin-top: 1.4rem; color: var(--muted); font-size: 0.98rem; }
.rating strong { color: var(--ink); font-size: 1.1rem; }
.rating .rating-sub { margin-left: 0.4rem; }
.tags { list-style: none; padding: 0; margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tags li {
  font-size: 0.88rem; font-weight: 500; color: var(--azure);
  border: 1px solid var(--azure); border-radius: 999px;
  padding: 0.3rem 0.85rem; background: color-mix(in srgb, var(--azure) 7%, transparent);
}

/* ---- cosa trovi (taxonomy, signature) --------------------------------------- */
.trovi { max-width: 68ch; }
.trovi-grid { display: grid; grid-template-columns: 1fr; gap: 1.9rem 2.5rem; }
.trovi-item h3 { color: var(--ink); margin-bottom: 0.55rem; position: relative; padding-bottom: 0.55rem; }
.trovi-item h3::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 30px; height: 3px; border-radius: 999px; background: var(--azure);
}
.trovi-item p { color: var(--muted); font-size: 0.98rem; }

/* ---- photo band (banco) ----------------------------------------------------- */
.photoband { position: relative; margin: 0; }
.photoband img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.photoband figcaption {
  color: var(--muted); font-size: 0.9rem; text-align: center;
  max-width: var(--measure); margin: 0.85rem auto 0; padding: 0 1.25rem;
}

/* ---- dalla cucina (split) --------------------------------------------------- */
.cucina {
  max-width: 1120px; display: grid; grid-template-columns: 1fr; gap: 1.6rem;
  padding-top: 3.25rem; padding-bottom: 3.25rem;
}
.cucina-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.cucina-copy p { color: var(--muted); margin-top: 0.9rem; max-width: 54ch; }
.cucina-copy .quote {
  font-family: var(--font-display); font-size: 1.2rem; line-height: 1.4;
  color: var(--ink); margin-top: 1.4rem; max-width: none;
}
.quote-attr { font-size: 0.85rem; color: var(--muted); margin-top: 0.4rem; }

/* ---- atmosfera (tinted band + review) --------------------------------------- */
.atmosfera { background: var(--sand-band); display: grid; grid-template-columns: 1fr; }
.atmosfera-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.atmosfera-copy { padding: 2.75rem 1.5rem; display: flex; flex-direction: column; justify-content: center; }
.atmosfera-copy blockquote {
  font-family: var(--font-display); font-size: clamp(1.35rem, 4vw, 1.9rem);
  line-height: 1.32; color: var(--ink); max-width: 24ch;
}
.atmosfera-copy .quote-attr { margin-top: 1rem; }

/* ---- orari & dove ----------------------------------------------------------- */
.dove h2 { margin-bottom: 1.5rem; }
.dove h3 { color: var(--muted); font-family: var(--font-body); font-weight: 600; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.75rem; }
.info-grid { display: grid; gap: 2.25rem; }
.hours { border-collapse: collapse; width: 100%; max-width: 22rem; }
.hours td { padding: 0.42rem 0; border-bottom: 1px solid var(--line); font-size: 0.98rem; }
.hours td:first-child { color: var(--ink); }
.hours td:last-child { color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.hours tr:last-child td { border-bottom: none; }
.hours .is-today td { color: var(--azure); font-weight: 600; }
.hours .is-today td:first-child { position: relative; padding-left: 0.9rem; }
.hours .is-today td:first-child::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 4px; height: 1.1em; border-radius: 999px; background: var(--azure);
}
.hours-note { color: var(--muted); font-size: 0.9rem; margin-top: 0.9rem; }
.contact-lines { margin-bottom: 1.4rem; line-height: 1.9; }

/* ---- footer ----------------------------------------------------------------- */
.footer {
  background: var(--ink); color: rgba(255,255,255,0.82);
  padding: 2.75rem 1.25rem 3rem; text-align: center; font-size: 0.92rem;
}
.footer a { color: #fff; }
.footer-brand {
  display: inline-flex; align-items: center; gap: 0.55rem; justify-content: center;
  font-family: var(--font-display); font-size: 1.3rem; color: #fff; margin-bottom: 0.7rem;
}
.footer .brand-mark { background: var(--azure-bright); }
.demo-note { margin-top: 0.7rem; opacity: 0.6; font-size: 0.82rem; }

/* ===========================================================================
   DESKTOP / WIDER VIEWPORTS
   =========================================================================== */
@media (min-width: 760px) {
  .trovi-grid { grid-template-columns: 1fr 1fr; }

  .cucina {
    grid-template-columns: 1.05fr 1fr; align-items: center; gap: 3rem;
    padding-left: 1.5rem; padding-right: 1.5rem;
  }

  .atmosfera { grid-template-columns: 1.1fr 1fr; align-items: stretch; }
  .atmosfera-media img { height: 100%; aspect-ratio: auto; min-height: 340px; }
  .atmosfera-copy { padding: 3.5rem 3rem; }

  .photoband img { aspect-ratio: 21 / 9; max-height: 460px; }

  .info-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .hero-inner { max-width: 46ch; }
}

@media (min-width: 1040px) {
  .hero { padding-left: max(1.25rem, calc((100vw - 1120px) / 2)); }
}

/* ---- reduced motion --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .topbar-cta { transition: none; }
}
