/* ===========================
   Piccola Italia — style.css
   =========================== */

@font-face {
  font-family: 'Playfair Display';
  src: url('/fonts/playfair-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Playfair Display';
  src: url('/fonts/playfair-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #FFFBF5;
  --text: #2D2926;
  --accent: #B85C38;
  --gold: #C9A96E;
  --light: #E8E2D9;
  --tinted: #F5F0E8;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-serif); font-weight: 700; line-height: 1.2; color: var(--text); }

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(255,251,245,0.93);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--light);
}
.nav-logo { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 700; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { font-size: 0.875rem; letter-spacing: 0.05em; text-transform: uppercase; transition: color 0.2s; }
.nav-links a:hover { color: var(--accent); }
.nav-cta { background: var(--accent); color: #fff !important; padding: 0.5rem 1.2rem; border-radius: 2px; }
.nav-cta:hover { background: #9d4d2f !important; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; }

/* Hero */
.hero {
  position: relative; height: 100vh; min-height: 600px;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.45) 50%, rgba(0,0,0,0.65) 100%);
}
.hero-content { position: relative; z-index: 2; color: #fff; padding: 0 1.5rem; }
.hero-eyebrow {
  display: block; font-size: 0.8rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1rem;
}
.hero-title {
  font-family: var(--font-serif); font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 700; color: #fff; line-height: 1; margin-bottom: 1rem;
}
.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: rgba(255,255,255,0.9); margin-bottom: 2.5rem; letter-spacing: 0.02em;
}
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 0.9rem 2.2rem; font-size: 0.9rem;
  font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  border-radius: 2px; transition: all 0.2s; cursor: pointer; border: none;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #9d4d2f; transform: translateY(-1px); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.65); }
.btn-outline:hover { background: rgba(255,255,255,0.12); }

/* Sections */
.section { padding: 5rem 0; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
.section-label { display: block; font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.75rem; }
.section-title { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 1.25rem; }
.divider { width: 48px; height: 2px; background: var(--gold); margin-bottom: 2rem; }

/* Über uns */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-text p { margin-bottom: 1.2rem; color: #5a5550; font-size: 1.05rem; }
.about-text p:last-child { margin-bottom: 0; }
.about-image { position: relative; }
.about-image img { width: 100%; height: 480px; object-fit: cover; border-radius: 2px; }
.about-image::before {
  content: ''; position: absolute; top: -12px; left: -12px; right: 12px; bottom: 12px;
  border: 2px solid var(--gold); border-radius: 2px; z-index: -1;
}

/* Highlights */
.highlights { background: var(--tinted); }
.highlights-head { text-align: center; margin-bottom: 3rem; }
.highlights-head .divider { margin: 0 auto; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.card { background: var(--bg); border-radius: 2px; overflow: hidden; box-shadow: 0 2px 20px rgba(0,0,0,0.06); }
.card-img { width: 100%; height: 220px; object-fit: cover; }
.card-body { padding: 1.5rem; }
.card-title { font-family: var(--font-serif); font-size: 1.4rem; margin-bottom: 0.5rem; }
.card-text { color: #666; font-size: 0.95rem; line-height: 1.6; }
.card-tag { display: inline-block; margin-top: 1rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }

/* Gallery */
.gallery-head { text-align: center; margin-bottom: 2.5rem; }
.gallery-head .divider { margin: 0 auto; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.625rem; }
.gallery-item { overflow: hidden; aspect-ratio: 4/3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.04); }

/* Contact */
.contact { background: var(--tinted); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.hours-table { width: 100%; border-collapse: collapse; margin-bottom: 2rem; }
.hours-table tr { border-bottom: 1px solid var(--light); }
.hours-table tr:last-child { border-bottom: none; }
.hours-table td { padding: 0.75rem 0; font-size: 1rem; }
.hours-table td:first-child { font-weight: 600; width: 50%; }
.hours-table td.closed { color: #bbb; }
.contact-info { margin-bottom: 2rem; }
.contact-info p { margin-bottom: 0.4rem; color: #5a5550; }
.contact-buttons { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.btn-tel { background: var(--accent); color: #fff; }
.btn-tel:hover { background: #9d4d2f; }
.btn-wa { background: #25D366; color: #fff; }
.btn-wa:hover { background: #1da851; }
.map-container { border-radius: 2px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
.map-container iframe { width: 100%; height: 380px; border: none; display: block; }

/* Banner */
.banner { background: var(--accent); color: #fff; text-align: center; padding: 4rem 2rem; }
.banner h2 { font-family: var(--font-serif); font-size: clamp(1.8rem, 3.5vw, 2.5rem); color: #fff; margin-bottom: 0.75rem; }
.banner p { font-size: 1.05rem; color: rgba(255,255,255,0.88); margin-bottom: 2rem; }
.btn-white { background: #fff; color: var(--accent); }
.btn-white:hover { background: rgba(255,255,255,0.9); }

/* Footer */
.footer { background: var(--text); color: rgba(255,255,255,0.65); padding: 2.5rem 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; }
.footer-brand { font-family: var(--font-serif); font-size: 1.2rem; color: #fff; margin-bottom: 0.2rem; }
.footer-address { font-size: 0.875rem; }
.footer-links { display: flex; gap: 1.5rem; list-style: none; }
.footer-links a { font-size: 0.875rem; color: rgba(255,255,255,0.55); transition: color 0.2s; }
.footer-links a:hover { color: #fff; }

/* Subpages */
.subpage-header { padding: 8rem 0 4rem; text-align: center; background: var(--tinted); border-bottom: 1px solid var(--light); }
.subpage-header h1 { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 0.5rem; }
.subpage-header p { color: #777; font-size: 1.05rem; }
.subpage-content { padding: 4rem 0 6rem; }
.back-link { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--accent); font-size: 0.9rem; margin-bottom: 2.5rem; }
.back-link:hover { text-decoration: underline; }

/* Speisekarte */
.menu-category { margin-bottom: 3.5rem; }
.menu-category-title { font-family: var(--font-serif); font-size: 1.9rem; padding-bottom: 0.75rem; border-bottom: 2px solid var(--gold); margin-bottom: 0.5rem; }
.menu-category-desc { color: #888; font-size: 0.9rem; margin-bottom: 1.5rem; }
.menu-item { display: flex; justify-content: space-between; align-items: baseline; padding: 0.9rem 0; border-bottom: 1px solid var(--light); gap: 1rem; }
.menu-item:last-child { border-bottom: none; }
.menu-item-left { flex: 1; }
.menu-item-name { font-weight: 600; font-size: 1rem; }
.menu-item-desc { font-size: 0.875rem; color: #888; margin-top: 0.15rem; }
.menu-item-price { font-family: var(--font-serif); color: var(--accent); white-space: nowrap; flex-shrink: 0; }
.menu-note { background: var(--tinted); border-left: 3px solid var(--gold); padding: 1rem 1.5rem; margin-top: 3rem; font-size: 0.95rem; color: #666; border-radius: 0 2px 2px 0; }
.menu-buffet-highlight { background: var(--accent); color: #fff; border-radius: 2px; padding: 1.5rem 2rem; margin-bottom: 3rem; text-align: center; }
.menu-buffet-highlight h2 { font-family: var(--font-serif); color: #fff; font-size: 1.6rem; margin-bottom: 0.3rem; }
.menu-buffet-highlight p { color: rgba(255,255,255,0.88); font-size: 1rem; }
.menu-buffet-price { font-size: 2rem; font-family: var(--font-serif); color: #fff; margin: 0.5rem 0; }

/* Legal */
.legal-content h2 { font-family: var(--font-serif); font-size: 1.5rem; margin-top: 2.5rem; margin-bottom: 0.75rem; }
.legal-content h3 { font-size: 1.1rem; margin-top: 1.5rem; margin-bottom: 0.5rem; }
.legal-content p, .legal-content ul { color: #5a5550; margin-bottom: 1rem; }
.legal-content ul { padding-left: 1.5rem; }
.legal-content a { color: var(--accent); text-decoration: underline; }

/* Mobile */
@media (max-width: 768px) {
  .nav-links { display: none; position: fixed; top: 65px; left: 0; right: 0; background: var(--bg); flex-direction: column; padding: 1.5rem 2rem; border-bottom: 1px solid var(--light); gap: 1.25rem; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-image { order: -1; }
  .about-image img { height: 280px; }
  .about-image::before { display: none; }
  .cards { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
  .hero-buttons { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .section { padding: 3rem 0; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item { aspect-ratio: 16/10; }
}
