/*
 * RISTORANTE DELLA VILLA — Stile di base (SEGNAPOSTO)
 * Palette e font provvisori: da sostituire con l'identità visiva reale
 * (colori, logo, font) quando disponibile.
 */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  --color-bg:      #faf6ee;
  --color-surface: #ffffff;
  --color-text:    #2b2620;
  --color-muted:   #6b6255;
  --color-accent:  #6b2737;
  --color-accent-dark: #4d1c28;
  --font-heading:  'Playfair Display', serif;
  --font-body:     'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--color-accent-dark);
  margin: 0 0 0.5em;
}

a { color: var(--color-accent); }

/* ── Top bar ─────────────────────────────────────────────────────────────── */
.top-bar {
  background: var(--color-accent-dark);
  color: #fff;
  font-size: 0.85rem;
}
.top-bar__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.4rem 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}
.top-bar__link { color: #fff; text-decoration: none; }
.top-bar__link:hover { text-decoration: underline; }
.top-bar__sep { opacity: 0.5; }

/* ── Header / Navbar ─────────────────────────────────────────────────────── */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 20;
}
.navbar {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar__logo-img { display: block; height: 42px; width: auto; }
.lang-switcher { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; }
.lang-switcher__globe { color: var(--color-muted); }
.lang-switcher__item { text-decoration: none; color: var(--color-muted); padding: 0.2rem 0.35rem; }
.lang-switcher__item--active { color: var(--color-accent); font-weight: 600; }

.navigation-toggle { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.navbar__menu {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0.5rem 0 1rem;
}
.navbar__link {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
}
.navbar__link--active, .navbar__link:hover { color: var(--color-accent); }

.control-nav { display: none; }
.hamburger { display: none; }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0.55)), var(--color-accent-dark);
  color: #fff;
  text-align: center;
  padding: 5rem 1.5rem;
}
.hero__inner { max-width: 760px; margin: 0 auto; }
.hero__title { color: #fff; font-size: 2.4rem; }
.hero__subtitle { font-size: 1.1rem; opacity: 0.92; margin-bottom: 2rem; }
.hero__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.15s, background 0.15s;
}
.btn--primary { background: var(--color-accent); color: #fff; }
.btn--primary:hover { background: #7d2d40; transform: translateY(-1px); }
.btn--secondary { background: transparent; color: #fff; border: 1.5px solid #fff; }
.btn--secondary:hover { background: rgba(255,255,255,0.12); }

/* ── Sections ────────────────────────────────────────────────────────────── */
.section { padding: 3.5rem 1.5rem; }
.section__inner { max-width: 900px; margin: 0 auto; }
.menu-category { margin-bottom: 2rem; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--color-accent-dark);
  color: rgba(255,255,255,0.85);
  margin-top: 2rem;
}
.footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}
.footer__heading { color: #fff; font-size: 1rem; }
.footer__list { list-style: none; padding: 0; margin: 0; }
.footer__list li { margin-bottom: 0.5rem; }
.footer__list a { color: rgba(255,255,255,0.85); text-decoration: none; }
.footer__list a:hover { text-decoration: underline; }
.footer__social { display: flex; flex-direction: column; gap: 0.5rem; }
.footer__social a { color: rgba(255,255,255,0.85); text-decoration: none; }
.footer__slogan { font-size: 0.9rem; opacity: 0.8; margin-top: 0.75rem; }
.footer__col--brand img { filter: brightness(0) invert(1); opacity: 0.95; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  text-align: center;
  font-size: 0.8rem;
  padding: 1rem 1.5rem;
  opacity: 0.75;
}
.footer__bottom p { margin: 0.2rem 0; }

/* ── 404 ─────────────────────────────────────────────────────────────────── */
.page-404 .container { max-width: 600px; margin: 6rem auto; text-align: center; padding: 0 1.5rem; }
.page-404 h1 { font-size: 4rem; }

/* ── Cookie banner ───────────────────────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  left: 1rem;
  bottom: -120px;
  background: #fff;
  color: var(--color-text);
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.18);
  padding: 1rem 1.25rem;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: bottom 0.3s ease;
  z-index: 50;
}
.cookie-banner--visible { bottom: 1rem; }
.cookie-banner__text { margin: 0; font-size: 0.9rem; }
.cookie-banner__actions { display: flex; gap: 0.5rem; }
.cookie-btn {
  border: none;
  border-radius: 8px;
  padding: 0.5rem 0.9rem;
  cursor: pointer;
}
.cookie-btn--accept { background: var(--color-accent); color: #fff; }
.cookie-btn--decline { background: #eee; color: var(--color-text); }
.cookie-trigger {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  display: none;
  border: none;
  background: var(--color-accent-dark);
  color: #fff;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  cursor: pointer;
  z-index: 49;
}
.cookie-trigger--visible { display: block; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  .navbar__menu { flex-wrap: wrap; gap: 1rem; }
  .hero { padding: 3.5rem 1.25rem; }
  .hero__title { font-size: 1.9rem; }
}
