/* Variáveis Globais */
:root {
  /* Cores principais */
  --gray-primary: #808080;
  --gray-light: #CCCCCC;
  --gray-dark: #333333;
  --dark: #1D1D1D;
  --light: #F9F9F9;
  --spacing: clamp(2rem, 5vw, 8rem);

  /* Cores administrativas */
  --primary-color: #4a90e2;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --dark-color: #343a40;
  --light-color: #f8f9fa;
  --gray-color: #6c757d;

  /* Tons de cinza */
  --gray-100: #F5F5F5;
  --gray-200: #E0E0E0;
  --gray-300: #CCCCCC;
  --gray-400: #999999;
  --gray-500: #666666;
  --gray-600: #4D4D4D;
}

/* Reset Global */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  color: var(--gray-600);
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* Header e Navegação */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
  /* Garantir alinhamento perfeito */
  justify-content: flex-start;
}

.logo-container:hover {
  opacity: 0.8;
  text-decoration: none;
}

.logo-container:focus {
  outline: 2px solid var(--gray-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

.header-logo {
  height: 48px;
  width: auto;
  /* Garantir que a imagem não tenha transformações */
  transform: none;
  display: block;
}

.logo-text {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 24px;
  color: #1a1a1a;
  /* Garantir texto perfeitamente direito */
  transform: none;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.2;
  display: inline-block;
  vertical-align: baseline;
}

/* Menu hambúrguer */
.menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
  transition: all 0.3s ease;
}

.hamburger-line {
  width: 25px;
  height: 3px;
  background-color: var(--dark);
  margin: 3px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

/* Animação do hambúrguer quando ativo */
.menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Menu de navegação */
.nav-menu {
  display: block;
}

.nav-menu ul {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  text-decoration: none;
  color: #333333;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  padding: 10px 16px;
  border-radius: 4px;
  position: relative;
}

.nav-menu a:hover {
  color: #808080;
  background: rgba(128, 128, 128, 0.05);
}

/* Indicação mais subtil da página atual no desktop */
.nav-menu a[aria-current="page"] {
  color: #555;
  background: rgba(128, 128, 128, 0.1);
}

/* Responsividade do menu */
@media (max-width: 768px) {
  header {
    padding: 12px 20px;
    height: 70px;
    box-sizing: border-box;
  }

  .header-logo {
    height: 38px;
    /* Garantir que a imagem não tenha transformações em mobile */
    transform: none;
    display: block;
  }

  .logo-text {
    font-size: 18px;
    /* Garantir texto perfeitamente direito em mobile */
    transform: none;
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.2;
  }

  /* Mostrar botão hambúrguer em mobile */
  .menu-toggle {
    display: flex;
  }

  /* Menu mobile */
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 999;
    padding-top: 80px;
  }

  .nav-menu.active {
    right: 0;
  }

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

  .nav-menu li {
    border-bottom: 1px solid #f0f0f0;
  }

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

  .nav-menu a {
    display: block;
    padding: 18px 15px;
    font-size: 16px;
    color: var(--dark);
    border-radius: 8px;
    margin: 5px 0;
    transition: all 0.3s ease;
  }

  .nav-menu a:hover {
    background: var(--gray-100);
    color: var(--gray-primary);
    transform: translateX(5px);
  }

  /* Página atual no mobile - mais visível */
  .nav-menu a[aria-current="page"] {
    background: var(--gray-primary);
    color: white;
    font-weight: 600;
  }

  .nav-menu a[aria-current="page"]:hover {
    background: var(--gray-dark);
    color: white;
    transform: translateX(5px);
  }

  /* Overlay para fechar menu */
  .nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .nav-overlay.active {
    opacity: 1;
    visibility: visible;
  }
}

/* Hero Section (Página Inicial) - DESIGN RENOVADO
-------------------------------------------------- */
.hero {
  height: 100vh;
  position: relative;
  overflow: hidden;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-slider img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  filter: brightness(0.35) contrast(1.2) saturate(0.8) grayscale(10%);
}

.hero-slider img.active {
  opacity: 1;
}

/* Overlay gradiente elegante */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(64, 64, 64, 0.75) 25%,
    rgba(32, 32, 32, 0.65) 60%,
    rgba(0, 0, 0, 0.80) 100%
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  text-align: center;
  padding: 0 2rem;
  color: var(--light);
  max-width: 900px;
  margin: 0 auto;
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 400;
  letter-spacing: 3px;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 1.2s ease-out forwards 0.5s;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
  color: #ffffff;
  line-height: 1.1;
}

.hero-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 300;
  letter-spacing: 1.5px;
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1.2s ease-out forwards 0.8s;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.6;
  max-width: 700px;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
}

.hero-buttons {
  display: flex;
  gap: 2rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1.2s ease-out forwards 1.1s;
  flex-wrap: wrap;
  justify-content: center;
}

/* Botões - DESIGN RENOVADO
-------------------------------------------------- */
.btn {
  padding: 1.2rem 3rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 0;
  backdrop-filter: blur(10px);
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.6s ease;
  z-index: -1;
}

.btn:hover::before {
  left: 100%;
}

.btn i {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.btn:hover i {
  transform: translateX(3px);
}

.btn-primary {
  background: rgba(96, 96, 96, 0.9);
  color: #ffffff;
  border: 2px solid rgba(96, 96, 96, 0.9);
  box-shadow: 0 8px 32px rgba(96, 96, 96, 0.3);
}

.btn-primary:hover {
  background: rgba(64, 64, 64, 1);
  border-color: rgba(64, 64, 64, 1);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(64, 64, 64, 0.4);
  color: #ffffff;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* Testimonials Section (Página Inicial)
-------------------------------------------------- */
.testimonials {
  padding: var(--spacing) 0;
  background: var(--dark);
  color: var(--light);
}

.testimonial-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.testimonial-header {
  margin-bottom: 4rem;
}

.testimonial-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  color: var(--gray-primary);
  margin-bottom: 1rem;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}

.testimonial-card {
  background: rgba(255,255,255,0.05);
  padding: 2rem;
  border-radius: 4px;
  position: relative;
  border: 1px solid var(--gray-dark);
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 20px;
  font-size: 5rem;
  color: var(--gray-primary);
  opacity: 0.3;
}

/* Menu Page
-------------------------------------------------- */
.menu-page {
  background-color: var(--dark);
  min-height: 100vh;
  padding: 6rem 0;
  color: var(--light);
  position: relative;
  overflow: hidden;
}

.menu-page::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('restaurantedentro1.jpg') center/cover no-repeat;
  opacity: 0.08;
  z-index: 0;
  filter: grayscale(100%);
}

.menu-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 1;
}

.menu-header {
  text-align: center;
  margin-bottom: 6rem;
  position: relative;
  padding: 3rem 0;
}

.menu-header::before,
.menu-header::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gray-400), transparent);
  left: 50%;
  transform: translateX(-50%);
}

.menu-header::before { top: 0; }
.menu-header::after { bottom: 0; }

.menu-header h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 4.5rem;
  color: var(--light);
  margin-bottom: 1rem;
  font-weight: 300;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.menu-header p {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  color: var(--gray-400);
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
}

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

.menu-section {
  margin-bottom: 5rem;
  position: relative;
  padding: 3rem;
  background: rgba(26, 26, 26, 0.95);
  border: 1px solid var(--gray-600);
  backdrop-filter: blur(10px);
}

.menu-section::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border: 1px solid var(--gray-600);
  pointer-events: none;
}

.menu-section h2 {
  font-family: 'Cormorant Garamond', serif;
  color: var(--light);
  font-size: 2.5rem;
  margin-bottom: 3rem;
  text-align: center;
  position: relative;
  font-weight: 300;
  letter-spacing: 3px;
  padding-bottom: 1.5rem;
}

.menu-section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1px;
  background: var(--gray-400);
}

.menu-items {
  display: grid;
  gap: 2rem;
}

.menu-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--gray-600);
  transition: all 0.4s ease;
}

.menu-item:hover {
  transform: translateX(10px);
  border-bottom-color: var(--gray-300);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.03));
}

.item-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.item-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  color: var(--light);
  font-weight: 400;
  letter-spacing: 0.5px;
}

.item-description {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  color: var(--gray-400);
  font-weight: 300;
  letter-spacing: 0.5px;
  line-height: 1.6;
}

.item-price {
  font-family: 'Cormorant Garamond', serif;
  color: var(--gray-300);
  font-weight: 500;
  font-size: 1.2rem;
  white-space: nowrap;
  letter-spacing: 1px;
}

.menu-footer {
  text-align: center;
  margin-top: 6rem;
  padding-top: 3rem;
  border-top: 1px solid var(--gray-600);
}

.menu-note {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
}

.menu-decoration {
  position: fixed;
  width: 300px;
  height: 300px;
  opacity: 0.03;
  pointer-events: none;
  border: 2px solid var(--gray-300);
  transform: rotate(45deg);
}

.decoration-top-right {
  top: -150px;
  right: -150px;
}

.decoration-bottom-left {
  bottom: -150px;
  left: -150px;
}

/* Animações
-------------------------------------------------- */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Media Queries
-------------------------------------------------- */
@media (max-width: 1200px) {
  .menu-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .menu-container {
    padding: 0 20px;
  }
}

@media (max-width: 768px) {
  header {
    padding: 10px 20px;
  }

  .header-logo {
    height: 40px;
  }

  .logo-text {
    font-size: 18px;
  }

  nav ul {
    gap: 15px;
  }

  .menu-page {
    padding: 4rem 0;
  }

  .menu-header h1 {
    font-size: 3rem;
  }

  .menu-section {
    padding: 2rem;
  }

  .menu-item {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 0.5rem;
  }

  .item-price {
    margin-top: 0.5rem;
  }

  .menu-item:hover {
    transform: none;
  }

  .menu-decoration {
    display: none;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    text-align: center;
    padding: 1rem 2rem;
    font-size: 0.9rem;
    letter-spacing: 1px;
  }

  body {
    font-size: 14px; /* Base font size for mobile */
    padding-top: 70px; /* Account for fixed header */
    overflow-x: hidden;
  }
  
  /* Ajustar hero section para mobile */
  .hero {
    height: calc(100vh - 70px);
    min-height: 500px;
  }
  
  /* Ajustar seções principais */
  .menu-page,
  .reservas,
  .secao-contacto {
    padding-top: 90px;
  }
}

/* Página de Administração
-------------------------------------------------- */
.admin-container {
  max-width: 1400px;
  margin: 30px auto;
  padding: 20px;
}

.admin-header {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-title {
  display: flex;
  align-items: center;
  gap: 15px;
}

.admin-title h2 {
  margin: 0;
  color: var(--dark-color);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.data-atual {
  color: var(--gray-color);
  font-size: 0.9rem;
  text-align: right;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform 0.2s;
  border-left: 4px solid var(--primary-color);
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-card i {
  font-size: 28px;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.stat-number {
  font-size: 32px;
  font-weight: bold;
  color: var(--dark-color);
  margin: 10px 0;
}

.stat-label {
  color: var(--gray-color);
  font-size: 0.9rem;
}

.filtros {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.filtro-group {
  flex: 1;
  min-width: 200px;
}

.filtro-label {
  display: block;
  margin-bottom: 5px;
  color: var(--gray-color);
  font-size: 0.9rem;
}

.pesquisa, .filtro-select {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: border-color 0.2s;
}

.pesquisa:focus, .filtro-select:focus {
  outline: none;
  border-color: var(--primary-color);
}

.reservas-grid {
  display: grid;
  gap: 20px;
  margin-top: 20px;
}

.reserva-card {
  background: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
}

.reserva-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.reserva-card.pendente { border-left-color: var(--warning-color); }
.reserva-card.confirmada { border-left-color: var(--success-color); }
.reserva-card.rejeitada { border-left-color: var(--danger-color); }

.reserva-card h3 {
  margin: 0 0 15px 0;
  color: var(--dark-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.reserva-info {
  margin-bottom: 20px;
}

.reserva-info p {
  margin: 10px 0;
  color: var(--gray-color);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}

.reserva-info i {
  width: 20px;
  color: var(--primary-color);
}

.reserva-acoes {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-admin {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  text-transform: none;
  letter-spacing: normal;
}

.btn-confirmar {
  background: var(--success-color);
  color: white;
}

.btn-confirmar:hover {
  background: #218838;
  transform: translateY(-2px);
}

.btn-rejeitar {
  background: var(--danger-color);
  color: white;
}

.btn-rejeitar:hover {
  background: #c82333;
  transform: translateY(-2px);
}

.btn-notas {
  background: var(--gray-color);
  color: white;
}

.btn-notas:hover {
  background: #5a6268;
  transform: translateY(-2px);
}

.btn-eliminar {
  background: var(--dark-color);
  color: white;
}

.btn-eliminar:hover {
  background: #23272b;
  transform: translateY(-2px);
}

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

.btn-email:hover {
  background: #357abd;
  transform: translateY(-2px);
}

.btn-logout {
  background: var(--danger-color);
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-logout:hover {
  background: #c82333;
}

.status-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-pendente {
  background: #fff3cd;
  color: #856404;
}

.status-confirmada {
  background: #d4edda;
  color: #155724;
}

.status-rejeitada {
  background: #f8d7da;
  color: #721c24;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(5px);
}

.modal-content {
  background: white;
  padding: 30px;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  position: relative;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  border: none;
  background: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--gray-color);
  transition: color 0.2s;
}

.modal-close:hover {
  color: var(--dark-color);
}

.notas-area {
  width: 100%;
  min-height: 120px;
  margin: 15px 0;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.95rem;
  resize: vertical;
}

.notas-area:focus {
  outline: none;
  border-color: var(--primary-color);
}

@media (min-width: 768px) {
  .reservas-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .reservas-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .admin-header {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .header-right {
    flex-direction: column;
    gap: 10px;
  }

  .filtros {
    flex-direction: column;
  }

  .filtro-group {
    width: 100%;
  }
}

/* Página de Login
-------------------------------------------------- */
.login-container {
  max-width: 400px;
  margin: 100px auto;
  padding: 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.login-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.login-form .form-group label {
  font-weight: 500;
  color: #333;
}

.login-form .form-group input {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}

.login-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 12px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.login-btn:hover {
  background: #357abd;
}

.error-message {
  color: var(--danger-color);
  font-size: 14px;
  margin-top: 10px;
  display: none;
}

/* Página de Reservas
-------------------------------------------------- */
.reservas {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images-optimized/restafonso-81.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 80px 0;
  color: white;
}

/* Fallback para navegadores que não suportam WebP */
.no-webp .reservas {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('restafonso-81.jpg');
}

.reservas .container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  color: #333;
}

.reservas h2 {
  text-align: center;
  font-size: 2.5em;
  margin-bottom: 10px;
  color: #2c3e50;
}

.reservas p {
  text-align: center;
  color: #666;
  margin-bottom: 30px;
  font-size: 1.1em;
}

.form-reserva {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #2c3e50;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1em;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
  outline: none;
}

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

.required {
  color: #e74c3c;
}

.alert {
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 30px;
  font-size: 1rem;
  display: none;
  animation: slideDown 0.5s ease-out;
}

.alert.show {
  display: flex;
  align-items: center;
}

.alert i {
  margin-right: 10px;
}

.alert-success {
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

.alert-error {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

.form-reserva button {
  grid-column: 1 / -1;
  background: #2c3e50;
  color: white;
  padding: 15px 30px;
  border: none;
  border-radius: 8px;
  font-size: 1.1em;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.form-reserva button:hover {
  background: #34495e;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-reserva button:active {
  transform: translateY(0);
}

.form-reserva button:focus {
  outline: none;
}

.form-info {
  grid-column: 1 / -1;
  text-align: center;
  color: #666;
  font-size: 0.9em;
  margin-top: 20px;
}

.horario-info {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
  text-align: center;
  grid-column: 1 / -1;
}

.horario-info h3 {
  color: #2c3e50;
  margin-bottom: 10px;
}

.horario-info p {
  margin: 5px 0;
  color: #666;
}

@keyframes slideDown {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .form-reserva {
    grid-template-columns: 1fr;
  }

  .reservas .container {
    padding: 20px;
    margin: 20px;
  }

  .reservas {
    padding: 40px 0;
  }
}

.input-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon i {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
  pointer-events: none;
}

.input-icon input,
.input-icon select {
  width: 100%;
  padding-right: 40px;
  cursor: pointer;
}

.input-icon input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  cursor: pointer;
}

/* Página de Contactos
-------------------------------------------------- */
.secao-contacto {
  padding: 120px 40px 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.secao-contacto h2 {
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 50px;
}

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  background: white;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.contacto-info {
  padding-right: 30px;
}

.contacto-info h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 25px;
}

.contacto-info p {
  margin: 15px 0;
  color: var(--gray-600);
  line-height: 1.6;
}

.contacto-info strong {
  color: var(--dark);
  font-weight: 500;
}

.contacto-info a {
  color: var(--gray-600);
  text-decoration: none;
  transition: color 0.2s;
}

.contacto-info a:hover {
  color: var(--dark);
}

.contacto-info ul {
  list-style: none;
  padding: 0;
  margin: 15px 0;
}

.contacto-info ul li {
  margin: 8px 0;
  color: var(--gray-600);
}

.mapa {
  margin-top: 40px;
}

.mapa h1 {
  margin-bottom: 20px;
}

.mapa iframe {
  width: 100%;
  height: 300px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.form-contacto {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-contacto label {
  color: var(--dark);
  font-weight: 500;
  margin-bottom: 5px;
}

.form-contacto input,
.form-contacto textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  font-size: 1rem;
  color: var(--dark);
  transition: border-color 0.2s;
}

.form-contacto input:focus,
.form-contacto textarea:focus {
  outline: none;
  border-color: var(--gray-primary);
}

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

.form-contacto button {
  background: var(--dark);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 10px;
}

.form-contacto button:hover {
  background: var(--gray-dark);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .secao-contacto {
    padding: 100px 20px 40px;
  }

  .contacto-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 30px;
  }

  .contacto-info {
    padding-right: 0;
    border-bottom: 1px solid var(--gray-300);
    padding-bottom: 30px;
  }

  .form-contacto {
    padding-top: 10px;
  }
}

/* Melhorias de Acessibilidade e SEO
-------------------------------------------------- */

/* Screen Reader Only - Para conteúdo visível apenas para leitores de tela */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus visível para navegação por teclado */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--gray-primary);
  outline-offset: 2px;
}

/* Melhorar contraste dos links */
a:hover {
  text-decoration: underline;
}

/* Skip links para acessibilidade */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--dark);
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 100;
  border-radius: 4px;
}

.skip-link:focus {
  top: 6px;
}

/* Melhorar indicação de elementos interativos */
button, 
.btn,
a[role="button"] {
  cursor: pointer;
  transition: all 0.2s ease;
}

/* Melhorar acessibilidade dos formulários */
label {
  cursor: pointer;
}

input:required,
textarea:required,
select:required {
  border-left: 3px solid var(--gray-primary);
}

/* Melhorar indicadores de status */
.status-badge {
  font-weight: 600;
  border-radius: 4px;
  padding: 4px 8px;
}

/* Prevenção de layout shift */
img {
  max-width: 100%;
  height: auto;
}

/* Melhorias de performance e SEO */
.hero-slider img {
  object-fit: cover;
  object-position: center;
}

/* Melhorar legibilidade em dispositivos móveis */
@media (max-width: 768px) {
  body {
    font-size: 14px; /* Base font size for mobile */
    padding-top: 70px; /* Account for fixed header */
  }
  
  input, 
  select, 
  textarea {
    font-size: 16px; /* Previne zoom automático no iOS */
  }
}

/* Melhorar contraste para conformidade WCAG */
.testimonial-card p {
  color: var(--gray-700);
  font-size: 1.1rem;
  line-height: 1.6;
}

.testimonial-card cite {
  color: var(--dark);
  font-weight: 600;
}

/* Animações respeitosas */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print styles para SEO */
@media print {
  .btn, 
  nav, 
  .admin-container,
  .modal {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
    color: black;
    background: white;
  }
  
  h1, h2, h3 {
    color: black;
    page-break-after: avoid;
  }
  
  p, blockquote {
    orphans: 3;
    widows: 3;
  }
}

/* Melhorias Mobile - Media Queries mais específicas
-------------------------------------------------- */

/* Smartphones pequenos (até 480px) */
@media (max-width: 480px) {
  header {
    padding: 10px 15px;
    height: 65px;
  }

  .header-logo {
    height: 32px;
    /* Garantir que a imagem não tenha transformações em mobile pequeno */
    transform: none;
    display: block;
  }

  .logo-text {
    font-size: 16px;
    /* Garantir texto perfeitamente direito em mobile pequeno */
    transform: none;
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.2;
  }

  /* Ajustar body padding */
  body {
    padding-top: 65px;
  }


  .experience-section {
    padding: 2rem 0;
  }

  .experience-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 15px;
  }

  .experience-card {
    aspect-ratio: 16/9;
  }

  .experience-content {
    padding: 1.5rem;
    position: relative;
    transform: none;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
  }

  /* Menu page mobile */
  .menu-page {
    padding: 80px 0 2rem;
  }

  .menu-container {
    padding: 0 15px;
  }

  .menu-header {
    padding: 2rem 0;
    margin-bottom: 2rem;
  }

  .menu-header h1 {
    font-size: 2.2rem;
  }

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

  .menu-section {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }

  .menu-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  .menu-item {
    padding: 1rem;
    margin-bottom: 1rem;
  }

  .item-name {
    font-size: 1.1rem;
  }

  .item-description {
    font-size: 0.85rem;
    margin-top: 0.3rem;
  }

  .item-price {
    font-size: 1rem;
    margin-top: 0.5rem;
  }

  /* Forms mobile */
  .reservas {
    padding: 80px 0 40px;
  }

  .reservas .container {
    margin: 0 15px;
    padding: 20px 15px;
  }

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

/* Tablets (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  header {
    padding: 12px 25px;
  }

  .header-logo {
    height: 45px;
    width: 45px;
    /* Garantir que a imagem não tenha transformações em tablet */
    transform: none;
    display: block;
  }

  .logo-text {
    font-size: 20px;
    /* Garantir texto perfeitamente direito em tablet */
    transform: none;
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.2;
  }

  nav ul {
    gap: 20px;
  }

  nav a {
    font-size: 13px;
  }

  .hero-title {
    font-size: 4rem;
  }

  .hero-subtitle {
    font-size: 1.3rem;
  }

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

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

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

/* Landscape phone specific */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    height: 100vh;
    min-height: 400px;
  }

  .btn {
    padding: 0.8rem 2rem;
    font-size: 0.9rem;
  }
}

/* Touch improvements */
@media (hover: none) and (pointer: coarse) {
  .btn:hover,
  .experience-card:hover,
  .menu-item:hover,
  .reserva-card:hover {
    transform: none;
  }

  .experience-content {
    transform: none;
    position: relative;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
  }

  .btn {
    min-height: 48px; /* Touch target size */
  }

  nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* Better scroll behavior on mobile */
@media (max-width: 768px) {
  html {
    scroll-behavior: smooth;
  }

  body {
    -webkit-overflow-scrolling: touch;
  }

  /* Prevent zoom on inputs */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="date"],
  select,
  textarea {
    font-size: 16px !important;
  }

  /* Better modal behavior on mobile */
  .modal-content {
    width: 95%;
    max-width: 500px;
    margin: 20px auto;
    max-height: 90vh;
    overflow-y: auto;
  }
}

/* Footer
-------------------------------------------------- */
.site-footer {
  background: linear-gradient(135deg, #565656 0%, #565656 100%);
  color: #ecf0f1;
  margin-top: auto;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 60px 0 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Seção da marca */
.footer-brand {
  max-width: 350px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.footer-logo img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  /* Remover box-shadow que pode causar traços */
  box-shadow: none;
  /* Garantir imagem limpa sem filtros */
  filter: none;
  border: none;
  outline: none;
}

.footer-logo h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 500;
  color: #ecf0f1;
  margin: 0;
}

.footer-brand p {
  line-height: 1.6;
  color: #bdc3c7;
  margin-bottom: 25px;
  font-size: 14px;
}

/* Redes sociais */
.footer-social {
  display: flex;
  gap: 15px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #ecf0f1;
  font-size: 18px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.footer-social a:hover {
  background: #000000;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
}

.footer-social a[href*="facebook"]:hover { background: #3b5998; }
.footer-social a[href*="instagram"]:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.footer-social a[href*="tripadvisor"]:hover { background: #00af87; }
.footer-social a[href*="google"]:hover { background: #db4437; }

/* Seções do footer */
.footer-section h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 500;
  color: #ecf0f1;
  margin-bottom: 25px;
  position: relative;
}

.footer-section h4::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 30px;
  height: 2px;
  background: #000000;
}

/* Contactos */
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

.contact-item i {
  color: #000000;
  font-size: 18px;
  margin-top: 3px;
  min-width: 20px;
}

.contact-item div span {
  display: block;
  font-size: 12px;
  color: #95a5a6;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 5px;
}

.contact-item a {
  color: #ecf0f1;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: #000000;
}

.contact-item p {
  color: #bdc3c7;
  margin: 0;
  line-height: 1.4;
}

.contact-item address {
  color: #bdc3c7;
  font-style: normal;
  line-height: 1.4;
}

/* Botão direções */
.btn-directions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(8, 9, 9, 0.2);
  color: #000000;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  margin-top: 15px;
  border: 1px solid rgba(8, 9, 9, 0.2);
}

.btn-directions:hover {
  background: #565656;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
}

/* Navegação do footer */
.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav li {
  margin-bottom: 12px;
}

.footer-nav a {
  color: #bdc3c7;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 14px;
  position: relative;
  padding-left: 0;
}

.footer-nav a:hover {
  color: #000000;
  padding-left: 10px;
}

.footer-nav a:before {
  content: '';
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 1px;
  background: #000000;
  transition: width 0.3s ease;
}

.footer-nav a:hover:before {
  width: 6px;
}

/* Especialidades */
.footer-specialties {
  margin-top: 30px;
}

.footer-specialties h5 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  color: #ecf0f1;
  margin-bottom: 15px;
}

.footer-specialties ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-specialties li {
  color: #95a5a6;
  font-size: 13px;
  margin-bottom: 8px;
  position: relative;
  padding-left: 15px;
}

.footer-specialties li:before {
  content: '•';
  color: #000000;
  position: absolute;
  left: 0;
}

/* Barra inferior */
.footer-bottom {
  padding: 25px 0;
  background: transparent;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.footer-bottom p {
  margin: 0;
  color: #95a5a6;
  font-size: 14px;
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 13px;
  color: #95a5a6;
}

/* Responsividade do footer */
@media (max-width: 1024px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  
  .footer-brand {
    grid-column: 1 / -1;
    max-width: none;
  }
}

@media (max-width: 768px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 0 30px;
  }
  
  .footer-brand {
    text-align: center;
  }
  
  .footer-logo {
    justify-content: center;
  }
  
  .footer-social {
    justify-content: center;
  }
  
  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-bottom-links {
    flex-direction: column;
    gap: 5px;
  }
}

@media (max-width: 480px) {
  .footer-content {
    padding: 0 15px;
  }
  
  .footer-main {
    padding: 30px 0 20px;
    gap: 30px;
  }
  
  .footer-logo {
    flex-direction: column;
    gap: 10px;
  }
  
  .footer-logo img {
    width: 50px;
    height: 50px;
    /* Remover sombras e filtros que podem causar traços */
    box-shadow: none;
    filter: none;
    border: none;
    outline: none;
  }
  
  .footer-logo h3 {
    font-size: 24px;
  }
  
  .footer-social {
    margin-bottom: 10px;
  }
  
  .footer-social a {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  
  .contact-item {
    margin-bottom: 15px;
  }
  
  .btn-directions {
    width: 100%;
    justify-content: center;
  }
}

.btn-admin:disabled,
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  background-color: #999 !important;
  border-color: #999 !important;
}

.btn-admin:disabled:hover,
.btn:disabled:hover {
  opacity: 0.6;
  transform: none !important;
  background-color: #999 !important;
}

/* Otimizações de Performance para Imagens
-------------------------------------------------- */
/* Otimizações gerais para todas as imagens */
img {
  max-width: 100%;
  height: auto;
  /* Melhorar renderização das imagens */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: optimize-contrast;
  /* Suavizar redimensionamento */
  transform: translateZ(0);
  backface-visibility: hidden;
  /* Prevenção de layout shift */
  display: block;
}

/* Otimização para imagens carregadas com lazy loading */
img[loading="lazy"] {
  /* Placeholder durante carregamento */
  background: linear-gradient(90deg, #f0f0f0 25%, transparent 25%, transparent 50%, #f0f0f0 50%, #f0f0f0 75%, transparent 75%, transparent);
  background-size: 20px 20px;
  animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
  0% { background-position: 0 0; }
  100% { background-position: 20px 0; }
}

/* Remover animação quando imagem carregada */
img[loading="lazy"].loaded {
  animation: none;
  background: none;
}

/* Picture element otimizado */
picture {
  display: block;
  width: 100%;
  height: 100%;
}

picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Otimizações específicas para diferentes seções */
.hero-slider picture,
.hero-slider img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Usar GPU para melhor performance */
  will-change: transform, opacity;
}

.hero-slider img {
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  filter: grayscale(20%);
  /* Otimizar para telas de alta densidade */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.hero-slider img.active {
  opacity: 1;
}

/* Otimizações para imagens da galeria */
.gallery-item picture,
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  /* Acelerar transições com GPU */
  transform: translateZ(0);
  transition: transform 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.05) translateZ(0);
}

/* Otimizações para experience cards */
.experience-card picture,
.experience-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s ease;
  /* Acelerar com GPU */
  will-change: transform;
}

.experience-card:hover img {
  transform: scale(1.1) translateZ(0);
}

/* Posicionamento específico para a imagem do prato */
.prato-imagem {
  object-position: center 70% !important;
  object-fit: cover !important;
}

/* Otimizações para logo */
.header-logo,
.footer-logo img {
  /* Priorizar qualidade para logos */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  /* Acelerar animações */
  transform: translateZ(0);
}

/* Media queries para otimizações responsivas */
@media (max-width: 768px) {
  /* Reduzir efeitos em dispositivos móveis para melhor performance */
  .gallery-item:hover img,
  .experience-card:hover img {
    transform: none;
  }
  
  /* Simplificar animações em mobile */
  img[loading="lazy"] {
    animation: none;
    background: #f0f0f0;
  }
}

/* Melhorias para dispositivos de alta densidade (retina) */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  img {
    /* Melhorar qualidade em telas retina */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: optimize-contrast;
  }
}

/* Otimizações para dispositivos com preferência por menos movimento */
@media (prefers-reduced-motion: reduce) {
  img {
    transition: none !important;
    animation: none !important;
  }
  
  .hero-slider img {
    transition: none !important;
  }
  
  .gallery-item img,
  .experience-card img {
    transition: none !important;
  }
}

/* Efeito de partículas subtis para o hero */
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(255,255,255,0.08) 2px, transparent 2px),
    radial-gradient(circle at 80% 20%, rgba(192,192,192,0.05) 1px, transparent 1px),
    radial-gradient(circle at 40% 40%, rgba(128,128,128,0.03) 1px, transparent 1px);
  background-size: 150px 150px, 200px 200px, 100px 100px;
  animation: sparkle 20s linear infinite;
  z-index: 2;
  pointer-events: none;
}

@keyframes sparkle {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-50px) rotate(360deg); }
}

/* Animação melhorada */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Responsividade aprimorada para o hero */
@media (max-width: 768px) {
  .hero-content {
    padding: 0 1.5rem;
  }
  
  .hero-title {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
  }
  
  .hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    letter-spacing: 1px;
  }
  
  .hero-buttons {
    gap: 1.5rem;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  
  .btn {
    padding: 1rem 2.5rem;
    width: 100%;
    max-width: 280px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .hero-content {
    padding: 0 1rem;
  }
  
  .hero-title {
    font-size: 2rem;
    letter-spacing: 1px;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  
  .btn {
    padding: 0.9rem 2rem;
    font-size: 0.85rem;
    letter-spacing: 1px;
  }
}

/* Carousel Horizontal de Especialidades
-------------------------------------------------- */
.carousel-section {
  padding: var(--spacing) 0;
  background: transparent;
  position: relative;
  overflow: hidden;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  left: 0;
  right: 0;
}

.carousel-container {
  width: 100%;
  margin: 0 auto;
  padding: 0;
  position: relative;
}

.carousel-header {
  text-align: center;
  margin-bottom: 4rem;
  padding: 0 20px;
}

.carousel-header h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  color: var(--dark);
  margin-bottom: 1rem;
  letter-spacing: 2px;
  position: relative;
}

.carousel-header h2::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gray-primary), transparent);
}

.carousel-header p {
  font-size: 1.2rem;
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 80px;
  justify-content: center;
  width: 100%;
}

.carousel-track-container {
  flex: 1;
  overflow: hidden;
  border-radius: 0;
  box-shadow: none;
  max-width: 100%;
  width: 100%;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  will-change: transform;
}

.carousel-slide {
  min-width: 100%;
  display: flex;
  justify-content: center;
  padding: 0;
}

/* Cards do Carousel */
.carousel-card {
  background: transparent;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  width: 100%;
  max-width: 100%;
  position: relative;
  transform: translateY(0);
}

.carousel-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.carousel-card img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s ease;
}

.carousel-card:hover img {
  transform: scale(1.03);
}

.carousel-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(
    transparent 0%,
    rgba(0, 0, 0, 0.3) 30%,
    rgba(0, 0, 0, 0.7) 70%,
    rgba(0, 0, 0, 0.9) 100%
  );
  padding: 4rem 2rem 2rem;
  text-align: center;
  color: white;
}

.carousel-card-content h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.8rem;
  font-weight: 400;
  color: white;
  margin-bottom: 1rem;
  letter-spacing: 1px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-card-content p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.3rem;
  line-height: 1.6;
  margin-bottom: 0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  max-width: 600px;
  margin: 0 auto;
}

/* Botões de Navegação */
.carousel-btn {
  width: 70px;
  height: 70px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--gray-primary);
  font-size: 1.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 15;
  flex-shrink: 0;
  backdrop-filter: blur(10px);
}

.carousel-btn:hover {
  background: var(--gray-primary);
  color: white;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 15px 40px rgba(128, 128, 128, 0.3);
}

.carousel-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.carousel-btn-prev {
  left: 20px;
}

.carousel-btn-next {
  right: 20px;
}

.carousel-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Indicadores */
.carousel-indicators {
  display: none;
}

/* Animações de entrada */
@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.carousel-slide.slide-in-right {
  animation: slideInFromRight 0.5s ease-out;
}

.carousel-slide.slide-in-left {
  animation: slideInFromLeft 0.5s ease-out;
}

/* Otimizações para dispositivos touch */
@media (hover: none) and (pointer: coarse) {
  .carousel-card:hover {
    transform: none;
  }
  
  .carousel-card:hover img {
    transform: none;
  }
  
  .carousel-btn:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.9);
    color: var(--gray-primary);
  }
}

/* Responsividade do Carousel */
@media (max-width: 768px) {
  .carousel-section {
    padding: 3rem 0;
  }
  
  .carousel-wrapper {
    padding: 0 60px;
    gap: 0;
  }
  
  .carousel-btn {
    width: 55px;
    height: 55px;
    font-size: 1.3rem;
  }
  
  .carousel-btn-prev {
    left: 10px;
  }
  
  .carousel-btn-next {
    right: 10px;
  }
  
  .carousel-card img {
    height: 350px;
  }
  
  .carousel-card-content {
    padding: 3rem 1.5rem 1.5rem;
  }
  
  .carousel-card-content h3 {
    font-size: 2.2rem;
  }
  
  .carousel-card-content p {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .carousel-wrapper {
    padding: 0 40px;
    gap: 0;
  }
  
  .carousel-btn {
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }
  
  .carousel-btn-prev {
    left: 5px;
  }
  
  .carousel-btn-next {
    right: 5px;
  }
  
  .carousel-card img {
    height: 280px;
  }
  
  .carousel-card-content {
    padding: 2rem 1rem 1rem;
  }
  
  .carousel-card-content h3 {
    font-size: 1.8rem;
  }
  
  .carousel-card-content p {
    font-size: 1rem;
  }
}

/* Seção Sobre Nós
-------------------------------------------------- */
.about-us-section {
  padding: var(--spacing) 0;
  background: var(--light);
  position: relative;
}

.about-us-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
  display: flex;
  gap: 4rem;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.about-us-container img {
  width: 55%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  order: 1;
}

.about-us-container .content {
  width: 50%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  order: 2;
}

.about-us-container h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--dark);
  margin-bottom: 1.5rem;
  text-align: left;
  width: 100%;
}

.about-us-container p {
  text-align: justify;
  line-height: 1.8;
  color: var(--gray-600);
  font-size: 1.1rem;
  width: 100%;
  margin: 0;
}

@media (max-width: 768px) {
  .about-us-container {
    flex-direction: column;
    gap: 2rem;
    padding: 2rem 1rem;
  }

  .about-us-container img,
  .about-us-container .content {
    width: 100%;
    order: initial;
  }
  
  .about-us-container img {
    order: 1;
  }
  
  .about-us-container .content {
    order: 2;
  }
  
  .about-us-container h1 {
    text-align: center;
  }
  
  .about-us-container p {
    text-align: justify;
  }
}