/* ----------------------------------------
   Frenks Ristorante – Modern Luxury Theme
   Burgundy & Gold – Responsive & Animated
-------------------------------------------*/

:root {
  --burgundy: #800020;
  --gold: #d4af37;
  --white: #f9f9f9;
  --dark: #111;
  --transition: all 0.4s ease;
}

/* RESET & GLOBALS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', sans-serif;
  background: var(--dark);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  animation: fadeInBody 1s ease-in-out;
}
@keyframes fadeInBody { from { opacity: 0; } to { opacity: 1; } }

/* ----------------------------------------
   HEADER & NAVIGATION
-------------------------------------------*/
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--burgundy);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 99;
  animation: slideDown 0.8s ease-out;
}

.logo {
  height: 60px;
  transition: var(--transition);
}
.logo:hover { transform: scale(1.1); }

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: bold;
  position: relative;
  transition: var(--transition);
}
nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--gold);
  transition: width 0.3s ease;
}
nav a:hover::after,
nav a.active::after { width: 100%; }
nav a:hover,
nav a.active { color: var(--gold); }

.order-btn {
  background: var(--gold);
  color: var(--dark);
  padding: 0.4rem 0.9rem;
  border-radius: 5px;
  font-weight: bold;
  transition: var(--transition);
}
.order-btn:hover { background: #e5c455; }
/* ----------------------------------------
   MOBILE MENU BUTTON
-------------------------------------------*/

/* Header layout */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--burgundy);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
}

/* Logo */
.logo {
  height: 42px;
}

/* Hamburger button */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.menu-toggle .bar {
  height: 3px;
  width: 100%;
  background: var(--gold);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Nav base */
header nav {
  display: flex;
}

/* ===============================
   MOBILE MODE
================================ */
@media (max-width: 900px) {

  .menu-toggle {
    display: flex;
  }

  header nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--burgundy);
    display: none;
    text-align: center;
    padding: 1.5rem 0;
  }

  header nav ul {
    flex-direction: column;
    gap: 1.3rem;
  }

  header nav.show {
    display: block;
  }

  header nav a {
    font-size: 1.1rem;
  }
}

/* Push content below fixed header */
body {
  padding-top: 70px;
}


/* ----------------------------------------
   HERO SECTION
-------------------------------------------*/
.hero {
  position: relative;
  height: 100vh;
  background: url('../images/tavolina.jpg') no-repeat center center/cover;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.534), rgba(128, 0, 32, 0.452));
  z-index: 1;
  backdrop-filter: blur(3px);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 2rem;
  animation: fadeInHero 1.5s ease forwards;
}

.hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3.8rem;
  margin-bottom: 1rem;
  letter-spacing: 1px;
  animation: slideDownText 1.5s ease forwards;
}

.gold-text {
  color: var(--gold);
  text-shadow: 0 0 15px rgba(212,175,55,0.5);
}

.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  color: #f0f0f0;
  line-height: 1.6;
  animation: fadeInUp 2s ease forwards;
}

/* Buttons */
.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-gold,
.btn-outline {
  padding: 0.9rem 1.6rem;
  border-radius: 6px;
  font-weight: bold;
  font-size: 1rem;
  text-decoration: none;
  transition: var(--transition);
}

.btn-gold {
  background-color: var(--gold);
  color: var(--dark);
  box-shadow: 0 0 15px rgba(212,175,55,0.4);
}
.btn-gold:hover {
  background-color: #e5c455;
  box-shadow: 0 0 25px rgba(229,196,85,0.6);
  transform: translateY(-3px);
}

.btn-outline {
  border: 2px solid var(--gold);
  color: var(--gold);
  background: transparent;
}
.btn-outline:hover {
  background-color: var(--gold);
  color: var(--dark);
  transform: translateY(-3px);
}

/* Hero Animations */
@keyframes fadeInHero {
  from { opacity: 0; transform: scale(1.05); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideDownText {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ----------------------------------------
   SECTIONS
-------------------------------------------*/
section {
  padding: 4rem 1rem;
  max-width: 1100px;
  margin: auto;
  text-align: center;
}

h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.6rem;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

/* ABOUT PREVIEW */
.about-preview {
  background: linear-gradient(180deg, rgba(17,17,17,1) 0%, rgba(80,0,20,0.9) 100%);
  border-top: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  padding: 5rem 2rem;
  color: var(--white);
}

.about-preview p {
  max-width: 750px;
  margin: 0 auto 2.5rem;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #eaeaea;
}

/* Info Details */
.about-preview-details {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.detail {
  background: rgba(255,255,255,0.05);
  padding: 1.8rem;
  border-radius: 10px;
  width: 280px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.detail:hover {
  transform: translateY(-8px);
  box-shadow: 0 4px 20px rgba(212,175,55,0.4);
}
.detail i {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 1rem;
}
.detail h3 {
  color: var(--gold);
  margin-bottom: 0.8rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
}
.detail p {
  color: #ddd;
  font-size: 1rem;
}

/* ----------------------------------------
   GALLERY SECTION
-------------------------------------------*/
.gallery-section {
  text-align: center;
  padding: 4rem 1rem;
}

h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.6rem;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

.gallery-intro {
  font-size: 1.2rem;
  color: #eaeaea;
  max-width: 800px;
  margin: 0 auto;
  margin-bottom: 3rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); /* Dynamic grid layout */
  gap: 1rem;
  margin-top: 2rem;
}

.gallery-grid img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  object-fit: cover; /* Ensure the images cover the grid cell */
}

.gallery-grid img:hover {
  transform: scale(1.05); /* Hover effect */
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6); /* Hover shadow */
}

.gallery-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.gallery-actions a {
  min-width: 220px;
  text-align: center;
  padding: 1rem 2rem;
  background-color: var(--gold);
  color: var(--dark);
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.gallery-actions a:hover {
  background-color: #e5c455; /* Hover effect */
  transform: translateY(-3px);
}

/* Mobile layout */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Very small screens (portrait mobile) */
@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* ----------------------------------------
   RESERVATION FORM
-------------------------------------------*/

.reservation-hero {
  position: relative;
  height: 50vh;
  background: url('../images/tavolina.jpg') center/cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.reservation-hero .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(2px);
}

.reservation-text {
  position: relative;
  z-index: 2;
  color: var(--white);
  padding: 2rem;
  animation: fadeInUp 1.5s ease forwards;
}

.reservation-text h1 {
  font-family: 'Playfair Display', serif;
  color: var(--gold);
  font-size: 3rem;
  margin-bottom: 1rem;
}

.reservation-form-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 5rem 1rem;
  background: linear-gradient(180deg, #111 0%, #2a0a0a 100%);
}

.reservation-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--gold);
  border-radius: 15px;
  padding: 2.5rem;
  width: 100%;
  max-width: 500px;
  text-align: center;
  box-shadow: 0 0 20px rgba(212,175,55,0.3);
  backdrop-filter: blur(5px);
  animation: fadeInUp 1s ease;
}

.reservation-card h2 {
  color: var(--gold);
  margin-bottom: 1.5rem;
  font-family: 'Playfair Display', serif;
}

.reservation-card form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.reservation-card input,
.reservation-card textarea {
  background: #222;
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--white);
  padding: 0.9rem;
  border-radius: 8px;
  font-size: 1rem;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.reservation-card input:focus,
.reservation-card textarea:focus {
  box-shadow: 0 0 10px var(--gold);
  outline: none;
  transform: scale(1.02);
}

.reservation-card button {
  margin-top: 1rem;
  cursor: pointer;
  border: none;
  border-radius: 8px;
  padding: 0.9rem 1.2rem;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.form-note {
  font-size: 0.9rem;
  color: #ccc;
  margin-top: 1.2rem;
}

/* Responsive */
@media (max-width: 768px) {
  .reservation-hero h1 { font-size: 2.2rem; }
  .reservation-card { padding: 1.8rem; }
}

/* ----------------------------------------
   FOOTER
-------------------------------------------*/
footer {
  text-align: center;
  background: var(--dark);
  color: #aaa;
  padding: 1.2rem;
  font-size: 0.9rem;
}

/* ----------------------------------------
   MEDIA QUERIES (Full Responsive)
-------------------------------------------*/
@media (max-width: 768px) {
  .hero-content h1 { font-size: 2.4rem; }
  .hero-content p { font-size: 1.05rem; }
  .gallery-grid { grid-template-columns: 1fr; }
  section { padding: 3rem 1rem; }
  .detail { width: 100%; }
}

@media (max-width: 480px) {
  .btn-gold, .btn-outline { width: 100%; }
  .hero-content { padding: 1.5rem; }
  .hero { background-position: center top; }
}


/* ----------------------------------------
   ABOUT PAGE – STRUCTURE & LAYOUT
-------------------------------------------*/

.page-content {
  max-width: 1200px;
  margin: auto;
  padding: 4rem 1.5rem;
}

/* ----------------------------------------
   INTRO SECTION
-------------------------------------------*/
.intro {
  text-align: center;
  margin-bottom: 4rem;
}

.intro h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

.intro p {
  max-width: 820px;
  margin: auto;
  font-size: 1.15rem;
  color: #e6e6e6;
  line-height: 1.8;
}

/* ----------------------------------------
   HISTORY – PARALLAX SECTION
-------------------------------------------*/
.history {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  border-radius: 20px;
  overflow: hidden;
  margin: 4rem 0;
}

.history .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.75),
    rgba(128,0,32,0.85)
  );
  z-index: 1;
}

.history .text-box {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 3rem;
  background: rgba(0,0,0,0.45);
  border-radius: 16px;
  backdrop-filter: blur(6px);
  box-shadow: 0 0 30px rgba(212,175,55,0.25);
  text-align: center;
}

.history h2 {
  margin-bottom: 1.2rem;
}

.history p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #f0f0f0;
  margin-bottom: 1rem;
}

/* ----------------------------------------
   PHILOSOPHY SECTION
-------------------------------------------*/
.philosophy {
  margin: 5rem auto;
  text-align: center;
}

.philosophy p {
  max-width: 800px;
  margin: auto;
  font-size: 1.15rem;
  color: #e2e2e2;
  line-height: 1.8;
}

.philosophy blockquote {
  margin-top: 2.5rem;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--gold);
  position: relative;
}

.philosophy blockquote span {
  display: block;
  margin-top: 0.8rem;
  font-size: 0.95rem;
  color: #ccc;
}

/* ----------------------------------------
   EXPERIENCE / CUISINE
-------------------------------------------*/
.experience {
  margin: 5rem auto;
  text-align: center;
}

.experience p {
  max-width: 820px;
  margin: 0 auto 2.5rem;
  font-size: 1.15rem;
  line-height: 1.8;
  color: #eaeaea;
}

/* Buttons already styled globally */
.experience .hero-buttons {
  justify-content: center;
}

/* ----------------------------------------
   LOCATION SECTION
-------------------------------------------*/
.location {
  margin-top: 5rem;
  padding-top: 4rem;
  border-top: 1px solid rgba(212,175,55,0.3);
}

.location p {
  max-width: 800px;
  margin: auto;
  font-size: 1.1rem;
  color: #ddd;
  line-height: 1.8;
}

/* ----------------------------------------
   FADE-IN ANIMATION (ABOUT PAGE)
-------------------------------------------*/
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ----------------------------------------
   ABOUT PAGE – RESPONSIVE
-------------------------------------------*/
@media (max-width: 768px) {
  .intro h1 {
    font-size: 2.3rem;
  }

  .history {
    background-attachment: scroll;
    min-height: auto;
  }

  .history .text-box {
    padding: 2rem 1.5rem;
  }

  .philosophy blockquote {
    font-size: 1.05rem;
  }
}
