/* ==========================================================================
   Pizzeria Maniva Da Matteo - Component Styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background-color 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
  background-color: transparent;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background-color: hsla(var(--background), 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid hsl(var(--border));
}

.header-inner {
  display: flex;
  height: 5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-logo {
  height: 2.75rem;
  width: 2.75rem;
  border-radius: 9999px;
  overflow: hidden;
  border: 1px solid hsl(var(--border));
  object-fit: cover;
}

.brand-text-wrapper {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.2;
  color: hsl(var(--foreground));
}

.brand-subtitle {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Desktop Navigation */
.desktop-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .desktop-nav {
    display: flex;
  }
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: hsl(var(--primary));
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.mobile-menu-btn {
  display: inline-flex;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
}

@media (min-width: 1024px) {
  .mobile-menu-btn {
    display: none;
  }
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
  display: none;
  position: fixed;
  top: 5rem;
  left: 0;
  right: 0;
  background-color: hsl(var(--background));
  border-bottom: 1px solid hsl(var(--border));
  padding: 1.5rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  z-index: 49;
  flex-direction: column;
  gap: 1.25rem;
}

.mobile-nav-drawer.is-open {
  display: flex;
}

.mobile-nav-link {
  font-size: 1.125rem;
  font-weight: 500;
  padding: 0.5rem 0;
  border-bottom: 1px solid hsl(var(--border) / 0.5);
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 5rem;
  padding-bottom: 3rem;
}

.hero-bg-container {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay-v {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.50) 50%, rgba(0,0,0,0.80) 100%);
}

.hero-overlay-h {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.70) 0%, rgba(0,0,0,0.25) 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 44rem;
  color: #ffffff;
}

.hero-eyebrow {
  color: hsl(var(--primary));
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  margin-bottom: 1rem;
  display: inline-block;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.1;
  color: #ffffff;
  margin-bottom: 1.25rem;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 4rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 4.75rem;
  }
}

.hero-subtitle {
  font-size: 1.125rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
  max-width: 36rem;
}

@media (min-width: 640px) {
  .hero-subtitle {
    font-size: 1.25rem;
  }
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

.hero-scroll-indicator:hover {
  color: #ffffff;
  transform: translateX(-50%) translateY(2px);
}


/* --------------------------------------------------------------------------
   Heritage / Identità Section
   -------------------------------------------------------------------------- */
.heritage-section {
  position: relative;
  overflow: hidden;
  padding-top: 6rem;
  padding-bottom: 6rem;
}

@media (min-width: 640px) {
  .heritage-section {
    padding-top: 8rem;
    padding-bottom: 8rem;
  }
}

.heritage-watermark {
  pointer-events: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  text-align: center;
  font-family: var(--font-heading);
  font-size: 12vw;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  user-select: none;
  color: hsla(var(--primary), 0.05);
  z-index: 0;
}

@media (min-width: 640px) {
  .heritage-watermark {
    font-size: 8rem;
  }
}

.heritage-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .heritage-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 4rem;
  }
  .heritage-text-col {
    grid-column: span 6;
  }
  .heritage-images-col {
    grid-column: span 6;
  }
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.15;
  margin-top: 1rem;
  margin-bottom: 1.25rem;
  color: hsl(var(--foreground));
}

@media (min-width: 640px) {
  .section-title {
    font-size: 3rem;
  }
}

.heritage-body {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1.25rem;
}

.heritage-quote-box {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid hsl(var(--primary));
  background-color: hsl(var(--secondary) / 0.5);
  border-radius: 0 0.5rem 0.5rem 0;
}

.heritage-quote-text {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.125rem;
  color: hsl(var(--foreground));
}

.heritage-images-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (min-width: 640px) {
  .heritage-images-grid {
    gap: 1.5rem;
  }
}

.heritage-card {
  display: flex;
  flex-direction: column;
}

.heritage-card-img-wrap {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 0.5rem;
  border: 1px solid hsl(var(--border));
}

.heritage-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.heritage-card:hover .heritage-card-img {
  transform: scale(1.04);
}

.heritage-card-caption {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground));
}

/* --------------------------------------------------------------------------
   Signature Menu Section
   -------------------------------------------------------------------------- */
.menu-section {
  padding-top: 6rem;
  padding-bottom: 6rem;
  border-top: 1px solid hsl(var(--border));
}

@media (min-width: 640px) {
  .menu-section {
    padding-top: 8rem;
    padding-bottom: 8rem;
  }
}

.menu-tabs {
  display: flex;
  overflow-x: auto;
  gap: 0.5rem;
  padding-bottom: 1rem;
  margin-top: 2.5rem;
  margin-bottom: 3rem;
  scrollbar-width: none;
}

.menu-tabs::-webkit-scrollbar {
  display: none;
}

.menu-tab-btn {
  padding: 0.625rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.9375rem;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid hsl(var(--border));
  color: hsl(var(--muted-foreground));
  background-color: transparent;
  transition: all 0.2s ease;
}

.menu-tab-btn:hover {
  background-color: hsl(var(--secondary));
  color: hsl(var(--foreground));
}

.menu-tab-btn.active {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border-color: hsl(var(--primary));
  box-shadow: 0 4px 12px hsla(var(--primary), 0.25);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (min-width: 1024px) {
  .menu-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

.dish-card {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 0.5rem;
  border: 1px solid hsl(var(--border));
  background-color: hsl(var(--card));
  cursor: pointer;
  group: true;
}

.dish-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.dish-card:hover .dish-card-img {
  transform: scale(1.06);
}

.dish-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  transition: all 0.3s ease;
}

.dish-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.dish-desc {
  font-size: 0.8125rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.8);
}

/* --------------------------------------------------------------------------
   Atmosphere Section
   -------------------------------------------------------------------------- */
.atmosphere-section {
  padding-top: 6rem;
  padding-bottom: 6rem;
  border-top: 1px solid hsl(var(--border));
  background-color: hsl(var(--secondary) / 0.4);
}

@media (min-width: 640px) {
  .atmosphere-section {
    padding-top: 8rem;
    padding-bottom: 8rem;
  }
}

.atmosphere-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .atmosphere-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 4rem;
  }
  .atmosphere-col-left {
    grid-column: span 5;
    order: 2;
  }
  .atmosphere-col-right {
    grid-column: span 7;
    order: 1;
  }
}

.atmosphere-img-wrap {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 0.5rem;
  border: 1px solid hsl(var(--border));
}

.atmosphere-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.atmosphere-img-wrap:hover .atmosphere-img {
  transform: scale(1.03);
}

/* --------------------------------------------------------------------------
   Reviews Section
   -------------------------------------------------------------------------- */
.reviews-section {
  padding-top: 6rem;
  padding-bottom: 6rem;
  border-top: 1px solid hsl(var(--border));
}

@media (min-width: 640px) {
  .reviews-section {
    padding-top: 8rem;
    padding-bottom: 8rem;
  }
}

.reviews-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .reviews-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.review-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 0.5rem;
  border: 1px solid hsl(var(--border));
  background-color: hsl(var(--card));
  padding: 1.75rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.review-card:hover {
  border-color: hsla(var(--primary), 0.4);
  transform: translateY(-2px);
}

.review-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.quote-icon {
  width: 2rem;
  height: 2rem;
  color: hsla(var(--primary), 0.3);
}

.stars-rating {
  display: flex;
  gap: 0.125rem;
  color: hsl(var(--primary));
}

.star-icon {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

.review-text {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: hsl(var(--foreground) / 0.9);
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

.review-author-box {
  border-top: 1px solid hsl(var(--border));
  padding-top: 1rem;
}

.review-author {
  font-weight: 600;
  font-size: 0.9375rem;
  color: hsl(var(--foreground));
}

.review-meta {
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
  margin-top: 0.125rem;
}

/* --------------------------------------------------------------------------
   Location & Hours Section (Dove Siamo & Orari)
   -------------------------------------------------------------------------- */
.location-section {
  padding-top: 6rem;
  padding-bottom: 6rem;
  border-top: 1px solid hsl(var(--border));
}

@media (min-width: 640px) {
  .location-section {
    padding-top: 8rem;
    padding-bottom: 8rem;
  }
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-top: 3.5rem;
}

@media (min-width: 1024px) {
  .location-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 4rem;
  }
  .location-info-col {
    grid-column: span 6;
  }
  .location-map-col {
    grid-column: span 6;
  }
}

/* Status Badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.status-badge.open {
  background-color: hsla(142, 76%, 36%, 0.15);
  color: hsl(142, 76%, 40%);
  border: 1px solid hsla(142, 76%, 36%, 0.3);
}

.status-badge.closed {
  background-color: hsla(13, 66%, 45%, 0.15);
  color: hsl(var(--primary));
  border: 1px solid hsla(13, 66%, 45%, 0.3);
}

.status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background-color: currentColor;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  padding: 0.625rem 0;
  border-bottom: 1px solid hsl(var(--border) / 0.6);
  font-size: 0.9375rem;
}

.hours-row.current-day {
  font-weight: 700;
  color: hsl(var(--primary));
}

.hours-day {
  color: hsl(var(--foreground));
}

.hours-time {
  color: hsl(var(--muted-foreground));
}

.hours-row.current-day .hours-day,
.hours-row.current-day .hours-time {
  color: hsl(var(--primary));
}

.location-details-box {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid hsl(var(--border));
}

.detail-item {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
}

.detail-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: hsl(var(--primary));
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.map-container {
  height: 100%;
  min-height: 24rem;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid hsl(var(--border));
}

.map-iframe {
  width: 100%;
  height: 100%;
  min-height: 24rem;
  border: 0;
}

/* --------------------------------------------------------------------------
   Reservation Modal
   -------------------------------------------------------------------------- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.is-active {
  display: flex;
}

.modal-card {
  background-color: hsl(var(--card));
  color: hsl(var(--foreground));
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  width: 100%;
  max-width: 32rem;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: modalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid hsl(var(--border));
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
}

.modal-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  color: hsl(var(--muted-foreground));
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background-color: hsl(var(--secondary));
  color: hsl(var(--foreground));
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin-bottom: 1.125rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border-radius: 0.375rem;
  border: 1px solid hsl(var(--border));
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-size: 0.9375rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsla(var(--primary), 0.15);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .form-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.form-textarea {
  resize: vertical;
  min-height: 5rem;
}

.reservation-success {
  display: none;
  text-align: center;
  padding: 2rem 1rem;
}

.reservation-success.is-visible {
  display: block;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid hsl(var(--border));
  background-color: hsl(var(--secondary) / 0.4);
  padding-top: 4rem;
  padding-bottom: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 3rem;
  }
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
  color: hsl(var(--foreground));
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-link {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: hsl(var(--primary));
}

.footer-social-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.footer-back-top {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  transition: color 0.2s ease;
  text-decoration: none;
}

.footer-back-top:hover {
  color: hsl(var(--primary));
}

.footer-bottom {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid hsl(var(--border));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
}

