/* =========================================================
   Lofos Restaurant — stylesheet
   Cucina greca tradizionale & mediterranea — Zakynthos
   ========================================================= */

:root {
  --bg:        #fdfbf7;   /* bianco caldo */
  --bg-soft:   #f4ede2;   /* sabbia */
  --text:      #2b2620;   /* marrone scurissimo */
  --muted:     #6b6258;   /* testo secondario */
  --accent:    #2a6f7b;   /* blu-egeo */
  --accent-2:  #c9883a;   /* terracotta / tramonto */
  --line:      #e7ddcf;
  --max:       1120px;
  --radius:    14px;
  --shadow:    0 8px 30px rgba(43, 38, 32, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.2;
  font-weight: 600;
}

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

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

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section { padding: 4.5rem 0; }
.section--soft { background: var(--bg-soft); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--accent-2);
  font-weight: 700;
  margin: 0 0 0.6rem;
}

.section-title { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 0 0 1rem; }

.lead { font-size: 1.1rem; color: var(--muted); max-width: 60ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  font-family: "Segoe UI", system-ui, sans-serif;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: #235c66; box-shadow: var(--shadow); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.8); }
.btn--ghost:hover { background: rgba(255,255,255,.15); }
.btn--accent { background: var(--accent-2); color: #fff; }
.btn--accent:hover { background: #b3762e; box-shadow: var(--shadow); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253, 251, 247, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 0.9rem; padding-bottom: 0.9rem;
}
.logo {
  font-family: Georgia, serif; font-size: 1.35rem; font-weight: 700;
  text-decoration: none; color: var(--text); letter-spacing: 0.02em;
}
.logo span { color: var(--accent-2); }
.nav { display: flex; gap: 1.6rem; align-items: center; }
.nav a:not(.btn) {
  text-decoration: none; color: var(--text); font-weight: 500;
  font-family: "Segoe UI", system-ui, sans-serif; font-size: 0.98rem;
  position: relative; padding-bottom: 4px;
}
/* underline animato sotto le voci */
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.nav a:not(.btn):hover { color: var(--accent); }
.nav a:not(.btn):hover::after { transform: scaleX(1); }
/* voce attiva (pagina corrente) */
.nav a.active { color: var(--accent); }
.nav a.active::after { transform: scaleX(1); }
.nav .btn { padding: 0.55rem 1.1rem; color: #fff; }
/* bottone nav della pagina corrente */
.nav .btn.is-current {
  box-shadow: 0 0 0 3px rgba(201, 136, 58, 0.30);
  transform: none;
  position: relative;
}
.nav .btn.is-current::after {
  content: ""; position: absolute; left: 1.1rem; right: 1.1rem; bottom: 6px;
  height: 2px; background: #fff; border-radius: 2px;
}
.nav .btn.is-current:hover { transform: translateY(-1px); }

.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--text); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--bg-soft);
  padding: 4rem 0;
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}
.hero__text { color: var(--text); }
.hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); margin: 0 0 1rem; }
.hero__text p { font-size: 1.2rem; margin: 0 0 2rem; max-width: 42ch; color: var(--muted); }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__meta {
  margin-top: 2rem; font-size: 0.95rem; color: var(--muted);
  display: flex; gap: 1rem; flex-wrap: wrap; align-items: center;
}
.hero__media img {
  width: 100%;
  height: 100%;
  max-height: 560px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: block;
}
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero__media { order: -1; }
  .hero__media img { max-height: 360px; }
}

/* ---------- Feature cards ---------- */
.grid { display: grid; gap: 1.6rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
}
.card .icon { font-size: 2rem; margin-bottom: .6rem; }
.card h3 { margin: 0 0 .5rem; font-size: 1.25rem; }
.card p { margin: 0; color: var(--muted); }

/* ---------- Split (testo + immagine) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.split__media {
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

/* ---------- Menu preview ---------- */
.menu-list { display: grid; gap: 1.1rem; }
.menu-item {
  display: flex; justify-content: space-between; gap: 1rem;
  padding-bottom: 1rem; border-bottom: 1px dashed var(--line);
}
.menu-item h4 { margin: 0 0 .2rem; font-family: "Segoe UI", sans-serif; font-size: 1.05rem; }
.menu-item p { margin: 0; color: var(--muted); font-size: .92rem; }
.menu-item .price { font-weight: 700; color: var(--accent-2); white-space: nowrap; }

/* ---------- Reviews ---------- */
.review {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  margin: 0;
}
.review .stars { color: var(--accent-2); letter-spacing: 2px; margin-bottom: .6rem; }
.review p { margin: 0 0 1rem; font-family: Georgia, serif; font-style: italic; font-size: 1.05rem; }
.review cite { color: var(--muted); font-style: normal; font-weight: 600; font-size: .92rem; }

/* ---------- The view ---------- */
.view-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.view-grid figure { margin: 0; }
.view-grid img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: block;
}
.view-grid figcaption {
  text-align: center;
  margin-top: .7rem;
  font-family: Georgia, serif;
  font-style: italic;
  color: var(--muted);
}
@media (max-width: 860px) {
  .view-grid { grid-template-columns: 1fr; }
  .view-grid img { height: 300px; }
}

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.gallery img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
@media (max-width: 860px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, #2a6f7b, #235c66);
  color: #fff; text-align: center; border-radius: var(--radius);
  padding: 3rem 1.5rem;
}
.cta-band h2 { color: #fff; margin: 0 0 .8rem; }
.cta-band p { margin: 0 auto 1.6rem; max-width: 50ch; opacity: .95; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.1rem; max-width: 560px; }
.form .row { display: grid; gap: 1.1rem; grid-template-columns: 1fr 1fr; }
.field label { display: block; font-weight: 600; margin-bottom: .35rem; font-size: .95rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem .9rem; border: 1px solid var(--line);
  border-radius: 10px; font: inherit; background: #fff; color: var(--text);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(42,111,123,.15);
}

/* ---------- Booking (no form) ---------- */
.book-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.book-intro .section-title { margin-top: 0; }
.book-intro__hint {
  color: var(--muted);
  background: var(--bg-soft);
  border-left: 3px solid var(--accent-2);
  padding: .8rem 1rem;
  border-radius: 8px;
  margin: 1.5rem 0 0;
}
.book-box {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem;
  text-align: center;
}
.book-actions { display: grid; gap: .8rem; }
.book-box .btn {
  display: flex; align-items: center; justify-content: center;
  gap: .5rem; width: 100%;
}
.book-box__or {
  margin: 1.2rem 0; color: var(--muted); font-size: .9rem;
  position: relative; text-transform: uppercase; letter-spacing: .1em;
}
.book-box__or::before, .book-box__or::after {
  content: ""; position: absolute; top: 50%; width: 38%; height: 1px; background: var(--line);
}
.book-box__or::before { left: 0; }
.book-box__or::after { right: 0; }
.book-box__hours { font-size: .9rem; color: var(--muted); margin: 1.4rem 0 0; }

.btn--whatsapp { background: #25D366; color: #fff; }
.btn--whatsapp:hover { background: #1da851; box-shadow: var(--shadow); }
.btn--viber { background: #7360f2; color: #fff; }
.btn--viber:hover { background: #5e4ce0; box-shadow: var(--shadow); }
.btn--ghost-dark { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost-dark:hover { background: #fff; box-shadow: var(--shadow); }

@media (max-width: 860px) {
  .book-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---------- Info / contatti ---------- */
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; }
.info-list li { display: flex; gap: .8rem; align-items: flex-start; }
.info-list .ic { color: var(--accent-2); font-size: 1.2rem; }
.info-list a { text-decoration: none; }
.map-embed { border: 0; width: 100%; height: 100%; min-height: 320px; border-radius: var(--radius); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--text); color: #d9d0c4; padding: 3rem 0 2rem; margin-top: 1rem;
}
.site-footer a { color: #f0e7d9; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.footer-grid h4 { color: #fff; margin: 0 0 .8rem; font-family: "Segoe UI", sans-serif; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2rem; padding-top: 1.2rem; font-size: .85rem; opacity: .8; }
.footer-legal { margin: .4rem 0 0; }
.footer-legal a { color: #d9d0c4; }
.footer-legal a:hover { color: #fff; }

/* ---------- Legal pages ---------- */
.legal { max-width: 760px; }
.legal h2 { font-size: 1.4rem; margin: 2rem 0 .6rem; }
.legal h3 { font-size: 1.1rem; margin: 1.4rem 0 .4rem; font-family: "Segoe UI", system-ui, sans-serif; }
.legal p, .legal li { color: var(--text); }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: .5rem; }
.legal-updated { margin-top: 2.5rem; color: var(--muted); font-style: italic; font-size: .9rem; }

/* ---------- Cookie banner ---------- */
.cc-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 1000;
  max-width: 920px; margin: 0 auto;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(43,38,32,.20);
  padding: 1.3rem 1.5rem;
}
.cc-inner { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.cc-text { flex: 1 1 320px; }
.cc-text strong { font-size: 1.05rem; }
.cc-text p { margin: .3rem 0 0; color: var(--muted); font-size: .92rem; }
.cc-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.cc-actions .btn { padding: .6rem 1.1rem; font-size: .92rem; }
.cc-prefs-panel { margin-top: 1.2rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.cc-row {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: .7rem 0; border-bottom: 1px dashed var(--line);
}
.cc-row small { color: var(--muted); }
.cc-row input { width: 20px; height: 20px; flex-shrink: 0; }
.cc-prefs-actions { margin-top: 1rem; text-align: right; }
@media (max-width: 640px) {
  .cc-actions { width: 100%; }
  .cc-actions .btn { flex: 1; }
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-2 { margin-top: 2rem; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .grid--3 { grid-template-columns: 1fr; }
  .grid--2 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  /* su mobile il bottone "Open in Google Maps" a tutta larghezza, centrato */
  #find-us .split .btn { display: block; width: 100%; text-align: center; }
  .map-embed { min-height: 280px; }
  .footer-grid { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; }
  .nav { display: none; }
  .nav.open {
    display: flex; flex-direction: column; position: absolute;
    top: 100%; left: 0; right: 0; background: var(--bg);
    padding: 1rem 1.25rem; gap: 1rem; border-bottom: 1px solid var(--line);
  }
  .nav-toggle { display: block; }
}
