/* Ristorante Matteoni - Modern Tuscan Restaurant Website */
:root {
  --color-ink: #1a1614;
  --color-terracotta: #c45c3e;
  --color-terracotta-dark: #a04a32;
  --color-wheat: #e8dcc8;
  --color-cream: #f7f3ed;
  --color-sage: #6b7d6b;
  --color-stone: #8b7355;
  --color-gold: #b8860b;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Outfit', system-ui, sans-serif;
  --font-cjk: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --radius: 8px;
  --shadow: 0 4px 24px rgba(26, 22, 20, 0.08);
  --shadow-lg: 0 12px 48px rgba(26, 22, 20, 0.12);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-ink);
  background: var(--color-cream);
  overflow-x: hidden;
}

html.lang-zh body {
  font-family: var(--font-cjk), var(--font-body);
}

html.lang-zh .hero h1,
html.lang-zh .hero-tagline,
html.lang-zh .hero-sub,
html.lang-zh h1, html.lang-zh h2, html.lang-zh h3 {
  font-family: var(--font-cjk), var(--font-display);
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

a:hover {
  color: var(--color-terracotta);
}

/* Nav backdrop (mobile overlay) */
.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 998;
}

@media (min-width: 901px) {
  .nav-backdrop {
    display: none !important;
  }
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(247, 243, 237, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(26, 22, 20, 0.06);
  transition: background var(--transition), box-shadow var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.logo img {
  height: 88px;
  width: auto;
}

.logo .logo-text {
  display: none; /* Shown via onerror when logo image fails to load */
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--color-ink);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--space-lg);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-drawer {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-drawer-footer {
  display: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.nav-link {
  position: relative;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-terracotta);
  transition: width var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--color-terracotta);
}

.lang-dropdown {
  position: relative;
}

.lang-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  background: transparent;
  border: 1px solid rgba(26, 22, 20, 0.12);
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--color-ink);
  transition: var(--transition);
}

.lang-dropdown-trigger:hover {
  border-color: rgba(26, 22, 20, 0.2);
  background: rgba(26, 22, 20, 0.03);
}

.lang-dropdown-trigger svg {
  transition: transform var(--transition);
}

.lang-dropdown.open .lang-dropdown-trigger svg {
  transform: rotate(180deg);
}

.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 140px;
  list-style: none;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(26, 22, 20, 0.08);
  padding: 0.25rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: var(--transition);
  z-index: 100;
}

.lang-dropdown.open .lang-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-dropdown-menu li {
  margin: 0;
}

.lang-dropdown-menu button {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  background: none;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-align: left;
  color: var(--color-ink);
  transition: background var(--transition);
}

.lang-dropdown-menu button:hover {
  background: rgba(196, 92, 62, 0.1);
  color: var(--color-terracotta);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-ink);
  transition: var(--transition);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(26, 22, 20, 0.35) 0%,
    rgba(26, 22, 20, 0.5) 50%,
    rgba(26, 22, 20, 0.7) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: var(--space-xl);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 600;
  color: white;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  margin-bottom: var(--space-sm);
}

.hero-tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--color-wheat);
  margin-bottom: var(--space-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-sub {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-lg);
}

.btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--color-terracotta);
  color: white;
}

.btn-primary:hover {
  background: var(--color-terracotta-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.hero-scroll {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* Container */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* About */
.about {
  padding: var(--space-xl) 0;
  background: white;
}

.about h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: var(--color-ink);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
  margin-bottom: var(--space-xl);
}

.about-text p {
  margin-bottom: var(--space-md);
  color: var(--color-ink);
  opacity: 0.9;
}

.about-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image img {
  width: 100%;
  height: 350px;
  object-fit: cover;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(26, 22, 20, 0.08);
}

.feature {
  text-align: center;
  padding: var(--space-md);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-sm);
}

.feature h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--color-ink);
}

.feature p {
  font-size: 0.9rem;
  color: var(--color-stone);
  line-height: 1.5;
}

/* Location Preview */
.location-preview {
  padding: var(--space-xl) 0;
  background: var(--color-ink);
  color: var(--color-cream);
  text-align: center;
}

.location-preview h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.location-preview p {
  max-width: 700px;
  margin: 0 auto var(--space-sm);
  opacity: 0.95;
}

.location-preview .hours {
  margin-top: var(--space-md);
  color: var(--color-gold);
}

/* Categories */
.categories {
  padding: var(--space-xl) 0;
}

.categories .container h2 {
  text-align: center;
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: var(--space-lg);
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.cat-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  display: block;
}

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

.cat-card:hover img {
  transform: scale(1.05);
}

.cat-card span {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-lg);
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: white;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
}

/* Fiorentina */
.fiorentina {
  padding: var(--space-xl) 0;
  background: var(--color-wheat);
}

.fiorentina-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.fiorentina-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.fiorentina-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.fiorentina h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: var(--color-ink);
}

.fiorentina p {
  margin-bottom: var(--space-md);
  color: var(--color-ink);
  opacity: 0.9;
}

/* Menu */
.menu-section {
  padding: var(--space-xl) 0;
  background: white;
}

.menu-section > .container > h2 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: var(--space-lg);
  color: var(--color-ink);
}

.menu-subsection {
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid rgba(26, 22, 20, 0.08);
}

.menu-subsection h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--color-terracotta);
  text-align: center;
  margin-bottom: var(--space-lg);
}

.menu-cards-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.menu-card-v {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(26, 22, 20, 0.06);
  border: 1px solid rgba(26, 22, 20, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.menu-card-v:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(26, 22, 20, 0.1);
}

.menu-card-v-header {
  padding: 1rem 1.25rem;
  background: linear-gradient(160deg, var(--color-terracotta) 0%, var(--color-terracotta-dark) 100%);
  color: white;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.03em;
}

.menu-card-v-body {
  padding: 1.25rem;
  min-height: 140px;
}

.menu-item-line {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.menu-item-line:last-of-type {
  margin-bottom: 0;
}

.menu-item-name {
  color: var(--color-ink);
  font-weight: 500;
}

.menu-item-detail {
  font-size: 0.8rem;
  color: var(--color-stone);
  font-weight: 400;
}

.menu-card-note {
  font-size: 0.8rem;
  color: var(--color-stone);
  font-style: italic;
  margin: 0.5rem 0 0;
  line-height: 1.4;
}

.menu-pdf-block {
  text-align: center;
  padding: var(--space-xl) var(--space-md);
  max-width: 560px;
  margin: 0 auto;
}

.menu-pdf-block p {
  margin-bottom: var(--space-lg);
  color: var(--color-stone);
  font-size: 1.05rem;
}

.menu-pdf-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.menu-pdf-btn:hover {
  color: white;
}

.menu-block {
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(26, 22, 20, 0.08);
}

.menu-block:last-child {
  border-bottom: none;
}

.menu-block h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--color-terracotta);
  margin-bottom: var(--space-md);
}

.menu-block ul {
  list-style: none;
}

.menu-block li {
  padding: var(--space-xs) 0;
  border-bottom: 1px dashed rgba(26, 22, 20, 0.15);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.menu-block li:last-child {
  border-bottom: none;
}

.griglia-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
}

.griglia-item {
  background: var(--color-cream);
  padding: var(--space-md);
  border-radius: var(--radius);
  border-left: 4px solid var(--color-terracotta);
}

.griglia-item h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--color-ink);
}

.griglia-item p {
  font-size: 0.9rem;
  color: var(--color-stone);
}

.menu-block.highlight {
  background: linear-gradient(135deg, rgba(196, 92, 62, 0.05), rgba(232, 220, 200, 0.3));
  padding: var(--space-lg);
  border-radius: var(--radius);
  border: none;
}

/* Gallery */
.gallery {
  padding: var(--space-xl) 0;
  background: var(--color-ink);
  color: white;
}

.gallery h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: var(--space-lg);
}

.gallery-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.gallery-track-container {
  flex: 1;
  overflow: hidden;
}

.gallery-track {
  display: flex;
  gap: var(--space-sm);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.gallery-track::-webkit-scrollbar {
  display: none;
}

.gallery-item {
  flex: 0 0 calc(33.333% - var(--space-sm) * 2 / 3);
  min-width: 160px;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
  scroll-snap-align: start;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-nav {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.gallery-nav:hover {
  background: var(--color-terracotta);
  border-color: var(--color-terracotta);
}

.gallery-nav:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Location */
.location {
  padding: var(--space-xl) 0;
  background: var(--color-cream);
}

.location h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: var(--space-lg);
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-xl);
  align-items: start;
}

.location-info address,
.location-info .contact-info {
  margin-bottom: var(--space-sm);
}

.location-info a:hover {
  text-decoration: underline;
}

.location-map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 300px;
}

.location-map iframe {
  width: 100%;
  height: 350px;
  border: none;
}

/* Contact */
.contact {
  padding: var(--space-xl) 0;
  background: white;
}

.contact h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: var(--space-xs);
}

.contact-intro {
  text-align: center;
  color: var(--color-stone);
  margin-bottom: var(--space-lg);
}

.contact-booking-link {
  color: var(--color-terracotta);
  font-weight: 600;
}

.contact-booking-link:hover {
  text-decoration: underline;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid rgba(26, 22, 20, 0.2);
  border-radius: var(--radius);
  background: var(--color-cream);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-terracotta);
  box-shadow: 0 0 0 3px rgba(196, 92, 62, 0.15);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form button {
  align-self: flex-start;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--color-ink);
}

.form-checkbox input {
  margin-top: 0.25rem;
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--color-terracotta);
  cursor: pointer;
  flex-shrink: 0;
}

.form-checkbox-label a {
  color: var(--color-terracotta);
  text-decoration: underline;
}

.form-checkbox-label a:hover {
  color: var(--color-terracotta-dark);
}

.form-error {
  color: #c45c3e;
  font-size: 0.9rem;
  margin: 0;
}

/* Footer */
.footer {
  padding: var(--space-xl) 0;
  background: var(--color-ink);
  color: var(--color-cream);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-md);
  color: var(--color-gold);
}

.footer-col-logo .footer-logo {
  display: block;
  margin-bottom: var(--space-md);
}

.footer-col-logo .footer-logo img {
  height: 56px;
  width: auto;
}

.footer-col-logo .logo-text {
  color: white;
  font-size: 1.4rem;
}

.footer-social {
  display: flex;
  gap: var(--space-md);
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-cream);
  transition: background 0.25s ease, color 0.25s ease;
}

.footer-social a:hover {
  background: var(--color-terracotta);
  color: white;
}

.footer-address {
  font-style: normal;
  margin-bottom: var(--space-sm);
}

.footer-address p {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  opacity: 0.9;
}

.footer-tel,
.footer-mail {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
}

.footer-tel a,
.footer-mail a {
  color: var(--color-cream);
  opacity: 0.9;
}

.footer-tel a:hover,
.footer-mail a:hover {
  color: var(--color-gold);
  opacity: 1;
}

.footer-col-legal {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-col-legal a {
  font-size: 0.95rem;
  color: var(--color-cream);
  opacity: 0.9;
}

.footer-col-legal a:hover {
  color: var(--color-gold);
}

.footer-piva {
  font-size: 0.85rem;
  opacity: 0.75;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.lightbox[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: none;
  border: none;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  opacity: 0.8;
}

.lightbox-close:hover {
  opacity: 1;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  transition: var(--transition);
}

.lightbox-prev {
  left: var(--space-md);
}

.lightbox-next {
  right: var(--space-md);
}

.lightbox-prev:hover,
.lightbox-next:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.25);
}

.lightbox-prev:disabled,
.lightbox-next:disabled {
  opacity: 0.2;
  cursor: not-allowed;
}

/* Booking Widget - Guestplan */
.booking-widget {
  position: fixed;
  bottom: var(--space-md);
  right: var(--space-md);
  z-index: 999;
  font-family: var(--font-body);
}

.booking-widget-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  background: var(--color-terracotta);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(196, 92, 62, 0.4);
  transition: transform var(--transition), box-shadow var(--transition);
}

.booking-widget-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(196, 92, 62, 0.5);
}

.booking-widget-btn svg {
  flex-shrink: 0;
}

.booking-widget-panel {
  position: fixed;
  bottom: 0;
  right: 0;
  width: 100%;
  max-width: 420px;
  max-height: 85vh;
  background: white;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 -4px 32px rgba(0, 0, 0, 0.2);
  transform: translateY(100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.35s ease, opacity 0.25s ease, visibility 0.25s;
  z-index: 1001;
}

.booking-widget-panel[aria-hidden="false"] {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.booking-widget-close {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.06);
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  transition: background var(--transition);
}

.booking-widget-close:hover {
  background: rgba(0, 0, 0, 0.12);
}

.booking-iframe {
  width: 100%;
  height: 75vh;
  min-height: 400px;
  border: none;
  border-radius: 0 0 12px 12px;
}

.booking-widget-fallback {
  padding: var(--space-sm) var(--space-md);
  font-size: 0.85rem;
  color: var(--color-stone);
  text-align: center;
}

.booking-widget-fallback a {
  color: var(--color-terracotta);
  font-weight: 500;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-ink);
  color: var(--color-cream);
  padding: var(--space-md) var(--space-lg);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.2);
  z-index: 998;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-banner-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.cookie-banner p {
  margin: 0;
  font-size: 0.9rem;
  flex: 1;
  min-width: 280px;
}

.cookie-banner a {
  color: var(--color-gold);
}

.cookie-banner a:hover {
  color: var(--color-wheat);
}

.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-shrink: 0;
}

.cookie-link {
  font-size: 0.9rem;
  opacity: 0.9;
}

.cookie-accept {
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
}

@media (max-width: 600px) {
  .cookie-banner-content {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .cookie-banner-actions {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .booking-widget-panel {
    max-width: 100%;
    max-height: 90vh;
  }

  .booking-widget-btn span {
    display: none;
  }

  .booking-widget-btn {
    padding: 1rem;
    border-radius: 50%;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .lang-desktop {
    display: none;
  }

  .nav-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 85vw);
    height: 100vh;
    background: var(--color-cream);
    flex-direction: column;
    align-items: stretch;
    padding: 5rem var(--space-lg) var(--space-lg);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.15);
    transition: right var(--transition);
    z-index: 999;
    overflow-y: auto;
  }

  .nav-drawer.open {
    right: 0;
  }

  .nav-backdrop {
    display: none;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    transition: opacity var(--transition);
    cursor: pointer;
  }

  .nav-backdrop.visible {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-backdrop:not(.visible) {
    pointer-events: none;
  }

  .nav-menu {
    flex-direction: column;
    gap: 0;
    padding: 0;
  }

  .nav-menu .nav-link {
    display: block;
    padding: var(--space-md) 0;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(26, 22, 20, 0.06);
  }

  .nav-menu .nav-link::after {
    display: none;
  }

  .nav-drawer-footer {
    display: flex;
    margin-top: auto;
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(26, 22, 20, 0.08);
  }

  .nav-drawer .lang-dropdown-menu {
    right: auto;
    left: 0;
  }

  .nav-toggle {
    display: flex;
    z-index: 1001;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .about-grid,
  .fiorentina-grid {
    grid-template-columns: 1fr;
  }

  .about-image {
    order: -1;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .cat-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item {
    flex: 0 0 calc(50% - var(--space-sm) / 2);
  }

  .location-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    text-align: center;
  }

  .footer-col-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-address {
    text-align: center;
  }
}

@media (max-width: 900px) {
  .menu-cards-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-col-logo {
    grid-column: 1 / -1;
    text-align: center;
  }

  .footer-col-logo .footer-social {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .gallery-item {
    flex: 0 0 100%;
    min-width: 100%;
  }

  .gallery-nav {
    width: 40px;
    height: 40px;
  }

  .griglia-grid {
    grid-template-columns: 1fr;
  }

  .menu-cards-row {
    grid-template-columns: 1fr;
  }
}
