/* -------------------- RESET GERAL -------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}

body {
  background-color: #fafafa;
  color: #333;
  transition: background 0.3s ease;
  scroll-behavior: smooth; /* Scroll suave ao clicar em links */
}

/* -------------------- CABEÇALHO FIXO COM IMAGEM DE FUNDO -------------------- */
header {
   position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-image: url("images/osfernandos.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain; /* mostra toda a imagem no mobile */
  background-color: #000;
  border-bottom: 1px solid #ddd;
  z-index: 1000;

  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;

  /* controla altura dinâmica */
  height: 20vh;         /* altura = 20% da altura da janela */
  min-height: 120px;    /* nunca fica menor que isto */
  max-height: 200px;    /* evita ficar gigante no PC */
}

/* Botão do menu (hambúrguer) */
.menu-toggle {
  position: absolute;
  left: 1rem;
  top: 1rem;
  font-size: 1.6rem;
  background: #fff;
  box-shadow: 0 0 4px rgba(0,0,0,0.2);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  z-index: 1001;
  padding: 0.2rem 0.5rem;
}

/* Seletor de idioma (PT/EN/FR) */
.lang-selector {
   position: absolute;
  right: 1rem;
  top: 1rem;
  z-index: 1001;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 0.2rem 0.4rem;
  font-size: 0.9rem;
  background: #fff;
  box-shadow: 0 0 4px rgba(0,0,0,0.2);
}

/* -------------------- MENU LATERAL -------------------- */
nav {
  position: fixed;
  top: 0;
  left: -220px;
  width: 200px;
  height: 100%;
  background-color: #fff;
  border-right: 1px solid #ddd;
  padding-top: 4rem;
  transition: left 0.3s ease;
  z-index: 2001;
}

nav.open {
  left: 0;
}

nav a {
  display: block;
  padding: 1rem;
  text-decoration: none;
  color: #333;
  border-bottom: 1px solid #eee;
  transition: background 0.2s;
}

nav a:hover {
  background-color: #f0f0f0;
}

/* Fundo semitransparente quando o menu está aberto */
body.menu-open::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 998;
}

/* -------------------- CONTEÚDO PRINCIPAL -------------------- */
main {
  margin: 0 auto;
  padding: 1rem;
  max-width: 1000px;
  margin-top: 140px; /* para mobile */
  box-sizing: border-box;
}

/* Cada secção */
section {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.section-header {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #eee;
  font-weight: bold;
  background-color: #fafafa;
}

.dish {
  padding: 1rem;
  text-align: center;
}

.dish img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

/* -------------------- GALERIA -------------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  padding: 1rem;
}

.gallery-item {
  background-color: #fafafa;
  border-radius: 8px;
  text-align: center;
  padding: 0.5rem;
  transition: transform 0.2s ease;
}

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

.gallery-item img {
  width: 100%;
  border-radius: 8px;
}

.gallery-item p {
  font-size: 0.9rem;
  color: #555;
  margin-top: 0.25rem;
}

/* -------------------- RODAPÉ -------------------- */
footer {
  background-color: #fff;
  border-top: 1px solid #ddd;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}

/* -------------------- RESPONSIVIDADE -------------------- */
@media (max-width: 768px) {
  header {
    min-height: 140px; /* aumenta o header no telemóvel */
    background-position: center;
  }

  .menu-toggle {
    font-size: 1.5rem;
  }

  .lang-selector {
    font-size: 0.8rem;
  }

  main {
    margin-top: 160px; /* compensa altura maior do header */
  }

  nav {
    width: 180px;
  }
}

/* -------------------- CARROSSEL DE IMAGENS -------------------- */
.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  margin: 1rem auto;
  max-width: 800px;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

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

.carousel-item {
  min-width: 100%;
  text-align: center;
  padding: 1rem;
}

.carousel-item img {
  width: 100%;
  border-radius: 8px;
  max-height: 400px;
  object-fit: cover;
}

.carousel-item p {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: #444;
}

/* Botões (setas) */
.carousel button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 1.5rem;
  transition: background 0.3s ease;
  z-index: 10;
}

.carousel button:hover {
  background: rgba(0,0,0,0.6);
}

.carousel .prev {
  left: 10px;
}

.carousel .next {
  right: 10px;
}

/* Responsivo */
@media (max-width: 600px) {
  .carousel-item img {
    max-height: 250px;
  }
  .carousel button {
    width: 35px;
    height: 35px;
    font-size: 1.2rem;
  }
}
@media (min-width: 1024px) {
  header {
    background-size: cover; /* cobre a largura */
    height: 18vh;           /* mais baixo no desktop */
    max-height: 180px;
  }
}

.no-dish {
  padding: 2rem;
  text-align: center;
  background: #fff9e6;
  border: 1px solid #f2d56b;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.no-dish h3 {
  color: #b85c00;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.no-dish p {
  color: #444;
  font-size: 1rem;
}
