/* ==========================================================================
   Marè Ristorante — "cantina con cucina", Barcellona Pozzo di Gotto (ME)
   Direzione: notte-di-mare mediterranea. Indaco profondo (loro logo) + rosa
   (script "cantina con cucina") come UNICO accento; ciano solo decorativo.
   Cormorant (display) + Manrope (body/wordmark). Mobile-first (390px).
   ========================================================================== */

:root {
  --bg:        #1b143a;   /* canvas: fondo del loro logo */
  --band:      #140f2b;   /* banda più scura */
  --surface:   #221a4a;   /* card / superfici sollevate */
  --line:      #33285e;   /* filetti */
  --text:      #f4f0e9;   /* crema, ~13:1 su canvas */
  --muted:     #b6afce;   /* lavanda-grigio, ~7:1 su canvas */
  --accent:    #f79ec0;   /* rosa: UNICO colore d'azione (link/CTA/prezzi) */
  --accent-hi: #ffc0d8;   /* rosa hover */
  --accent-ink:#1b143a;   /* testo su rosa */
  --cyan:      #3ec6df;   /* ciano: SOLO decorativo (offset wordmark, filetto) */

  --font-display: "Cormorant", Georgia, serif;
  --font-body: "Manrope", -apple-system, "Segoe UI", sans-serif;

  --radius: 14px;         /* superfici/immagini */
  --measure: 60ch;
  --edge: 1.35rem;
}

* { 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.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.005em;
}
h2 { font-size: clamp(2rem, 6vw, 3rem); }
h3 { font-size: 1.3rem; }

/* ---- shared layout helpers ---------------------------------------------- */
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: var(--edge); }
.section { padding-block: clamp(3.5rem, 9vh, 6rem); }
.band { background: var(--band); }
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--accent);
}
.lede { color: var(--muted); max-width: var(--measure); font-size: 1.12rem; }

/* ---- wordmark ("marè") — ricostruito in CSS, eco del loro logo ----------- */
.wordmark {
  font-family: var(--font-body);
  font-weight: 800;
  text-transform: lowercase;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--text);
}
.wordmark .e { color: var(--accent); }
.tagline {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--accent);
  letter-spacing: 0.01em;
}

/* ---- buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-body); font-weight: 600; font-size: 0.98rem;
  padding: 0.72rem 1.4rem; border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hi); color: var(--accent-ink); }
.btn-ghost { color: var(--text); border-color: #6f6690; }
.btn-ghost:hover { color: var(--text); border-color: var(--accent); }

/* ---- topbar -------------------------------------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem var(--edge);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar .wordmark { font-size: 1.5rem; }
.nav { display: none; gap: 1.6rem; align-items: center; }
.nav a { color: var(--muted); font-weight: 500; font-size: 0.95rem; }
.nav a:hover { color: var(--text); }
.topbar .btn { padding: 0.5rem 1.05rem; font-size: 0.9rem; }
@media (min-width: 760px) { .nav { display: flex; } }

/* ---- hero (split asimmetrico) -------------------------------------------- */
.hero { position: relative; overflow: hidden; }
.hero::before { /* bagliore "luna sul mare" */
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(70% 55% at 18% 22%, rgba(247,158,192,0.16), transparent 60%),
    radial-gradient(60% 50% at 92% 88%, rgba(62,198,223,0.12), transparent 62%);
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; gap: clamp(2rem, 5vw, 3.5rem);
  padding-block: clamp(3.25rem, 8vh, 5.5rem) clamp(3rem, 7vh, 5rem);
  align-items: center;
}
.hero-brandstrip {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 1.4rem;
}
.hero-lockup .wordmark {
  font-size: clamp(4.25rem, 20vw, 8rem);
  text-shadow: 2px 3px 0 rgba(62,198,223,0.45);   /* offset ciano decorativo */
}
.hero-lockup .tagline {
  display: block; font-size: clamp(1.35rem, 5vw, 1.9rem);
  margin-top: 0.1rem; margin-left: 0.15rem;
}
.hero-sub { color: var(--muted); max-width: 34ch; margin: 1.5rem 0 2rem; font-size: 1.1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.hero-figure { margin: 0; }
.hero-figure img {
  width: 100%; height: auto;
  aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
@media (min-width: 860px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; }
  .hero-figure img { aspect-ratio: 3 / 4; }   /* desktop: ritratto elegante, mai in mobile */
}

/* ---- intro editoriale ---------------------------------------------------- */
.intro h2 { max-width: 18ch; margin-bottom: 1.25rem; }
.intro p + p { margin-top: 1rem; }
.intro .lede { font-size: 1.18rem; color: var(--text); }
.rating {
  display: inline-flex; align-items: baseline; gap: 0.55rem;
  margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 0.95rem;
}
.rating strong { font-family: var(--font-display); font-size: 1.7rem; color: var(--accent); font-weight: 600; }

/* ---- specialità (lista editoriale, senza prezzi) ------------------------- */
.spec-head { margin-bottom: 2.5rem; }
.spec-list { display: grid; gap: 2.2rem; }
@media (min-width: 720px) { .spec-list { grid-template-columns: 1fr 1fr; gap: 2.6rem 3.5rem; } }
.spec-item .name {
  font-family: var(--font-display); font-size: 1.7rem; font-weight: 500;
  color: var(--text); display: block; margin-bottom: 0.3rem;
}
.spec-item .name::before {
  content: ""; display: inline-block; width: 1.4rem; height: 1px;
  background: var(--accent); vertical-align: middle; margin-right: 0.7rem;
}
.spec-item p { color: var(--muted); font-size: 1rem; }
.spec-note { margin-top: 3rem; color: var(--muted); font-size: 0.95rem; max-width: var(--measure); }

/* ---- galleria ------------------------------------------------------------ */
.gallery { display: grid; gap: 1rem; }
@media (min-width: 720px) { .gallery { grid-template-columns: 1fr 1fr; } }
.gallery figure { margin: 0; }
.gallery img {
  width: 100%; height: auto;
  aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius); border: 1px solid var(--line);
}
.gallery figcaption { margin-top: 0.7rem; color: var(--muted); font-size: 0.92rem; }

/* ---- citazione ----------------------------------------------------------- */
.quote { text-align: center; }
.quote blockquote {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.6rem, 4.5vw, 2.4rem); line-height: 1.25;
  max-width: 22ch; margin: 0 auto; color: var(--text);
}
.quote cite { display: block; margin-top: 1.6rem; font-style: normal; color: var(--muted); font-size: 0.92rem; }

/* ---- info pratiche ------------------------------------------------------- */
.info-grid { display: grid; gap: 2.5rem; }
@media (min-width: 720px) { .info-grid { grid-template-columns: 1fr 1fr; gap: 3.5rem; } }
.hours { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.hours th { text-align: left; font-weight: inherit; }
.hours td, .hours th { padding: 0.5rem 0; border-bottom: 1px solid var(--line); }
.hours td:first-child, .hours th:first-child { color: var(--text); font-weight: 600; width: 40%; }
.hours td:last-child { color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.today td { color: var(--accent); }
.hours tr.today td:first-child { color: var(--accent); }
.info h3 { color: var(--muted); font-family: var(--font-body); font-weight: 700;
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.16em; }
.contact-lines { margin: 1rem 0 1.75rem; line-height: 1.9; }
.contact-lines .addr { color: var(--text); font-size: 1.15rem; font-family: var(--font-display); }
.info-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* ---- footer -------------------------------------------------------------- */
.footer { background: var(--band); border-top: 1px solid var(--line); }
.footer .wrap { padding-block: 3rem 3.5rem; }
.footer .wordmark { font-size: 2rem; margin-bottom: 1rem; }
.footer p { color: var(--muted); font-size: 0.92rem; }
.footer .foot-links { margin: 0.6rem 0; }
.footer .foot-links a { color: var(--muted); }
.footer .foot-links a:hover { color: var(--accent); }
.demo-note { margin-top: 1.25rem; opacity: 0.75; font-size: 0.82rem; }

/* ---- motion (MOTION 3, solo CSS, gated) ----------------------------------
   .reveal si nasconde SOLO se il JS è attivo (.js su <html>): senza JS il
   contenuto resta visibile (niente sezioni vuote per crawler/no-JS). */
.js .reveal { opacity: 0; transform: translateY(22px); }
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16,1,0.3,1); }
  .js .reveal.in { opacity: 1; transform: none; }
  .hero-lockup, .hero-sub, .hero-actions, .hero-figure {
    opacity: 0; animation: fadeUp 0.8s cubic-bezier(0.16,1,0.3,1) forwards;
  }
  .hero-sub { animation-delay: 0.12s; }
  .hero-actions { animation-delay: 0.2s; }
  .hero-figure { animation-delay: 0.28s; }
  @keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .reveal { opacity: 1; transform: none; }
}
