body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
  color: #333;
}

header {
  background-color: #070808;
  color: white;
  padding: 20px 0;
  text-align: center;
}

header img {
  max-height: 80px;
}

nav {
  background-color: #e3020e;
  padding: 10px;
  text-align: center;
}

nav a {
  color: white;
  margin: 0 15px;
  text-decoration: none;
  font-weight: bold;
}

nav a:hover {
  text-decoration: underline;
}

section {
  padding: 40px 20px;
  max-width: 1000px;
  margin: auto;
  background-color: white;
  margin-top: 20px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* Grelha de carros */
.carros-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  justify-items: center;
}

/* Card base */
.carro {
  position: relative;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 20px;
  width: 100%;
  max-width: 260px;
  text-align: center;
  transition: transform .3s ease, box-shadow .3s ease;
}

/* Link envolvendo o card */
.carro-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.carro-link:hover .carro {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 12px 25px rgba(0, 0, 0, .20);
}

/* Texto "Ver galeria" */
.ver-galeria {
  display: inline-block;
  margin-top: 10px;
  color: #00509e;
  font-weight: bold;
  font-size: 0.9rem;
  transition: color .3s ease;
}

.carro-link:hover .ver-galeria {
  color: #d90000;
}

/* Imagem dentro do card */
.carro img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  transition: transform .3s ease;
}

.carro:hover img {
  transform: scale(1.05);
}

/* Preço */
.preco-box {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #d90000;
  color: #fff;
  font-weight: bold;
  font-size: .95rem;
  padding: 6px 10px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
  z-index: 3;
}

/* Botão Reserve Já em vermelho */
.btn {
  background-color: #d90000;
  color: white;
  padding: 12px 25px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  display: inline-block;
  transition: background-color 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn:hover {
  background-color: #b00000;
}

form {
  max-width: 600px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 0.1px;
}

form label {
  font-weight: bold;
  margin-top: 5px;
}

form input,
form select,
form textarea {
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}

form button {
  align-self: center;
  margin-top: 20px;
}

/* Botão WhatsApp fixo */
.whatsapp-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 1000;
  transition: transform 0.3s ease;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
}

.whatsapp-btn img {
  width: 30px;
  height: 30px;
}

/* Grid de serviços */
.servicos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

/* Card de serviço */
.servico-card {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 25px 20px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.servico-card h3 {
  margin-top: 0;
  color: #e3020e;
}

/* Wrapper dos contactos */
.contactos-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 30px;
}

/* Informações */
.info p {
  margin: 5px 0;
}

/* Redes sociais */
.redes p {
  margin: 0 0 8px 0;
  font-weight: bold;
}

.redes a {
  display: inline-block;
  margin-right: 10px;
  transition: transform .3s ease;
}

.redes a:hover {
  transform: scale(1.1);
}

/* Caução */
.caucao {
  margin: 7px 0 0;
  font-size: 0.8rem;
  color: #555;
  font-style: italic;
}

/* ====== PÁGINA DA GALERIA ====== */
.galeria-pagina {
  max-width: 1000px;
  margin: 20px auto;
  padding: 30px;
  background: rgba(255,255,255,.95);
  border-radius: 10px;
}

.galeria-pagina h2 {
  color: #003366;
  margin-bottom: 5px;
}

.galeria-pagina .subtitulo {
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 25px;
}

/* Galeria de imagens */
.galeria-fotos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin-bottom: 30px;
}

.galeria-fotos img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform .3s ease, box-shadow .3s ease;
}

.galeria-fotos img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0,0,0,.15);
}

/* Imagem principal */
.imagem-destaque {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 20px;
}

/* Especificações */
.especificacoes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin: 25px 0;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
}

.espec-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.espec-item strong {
  color: #003366;
}

/* Botões de ação */
.acoes-galeria {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 25px;
}

.btn-voltar {
  background: #666;
  color: #fff;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background .3s ease;
}

.btn-voltar:hover {
  background: #444;
}

/* Modal lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.9);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

.lightbox.ativo {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
}

.lightbox-fechar {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  padding: 20px;
  user-select: none;
}

.lightbox-prev { left: 10px; }
.lightbox-next { right: 10px; }

/* Sobre nós com imagem ao lado */
.sobre-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  align-items: flex-start;
}

.sobre-texto {
  flex: 1 1 300px;
}

/* Mosaico */
.sobre-mosaico {
  flex: 1 1 280px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mosaico-grande {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
  transition: transform .3s ease;
}

.mosaico-grande:hover {
  transform: scale(1.02);
}

.mosaico-pequenas {
  display: flex;
  gap: 10px;
}

.mosaico-pequenas img {
  flex: 1;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,.12);
  transition: transform .3s ease;
}

.mosaico-pequenas img:hover {
  transform: scale(1.03);
}

/* Modal base */
.modal {
  width: 90%;
  max-width: 500px;
  border: none;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 10px 30px rgba(0,0,0,.3);
}

.modal::backdrop {
  background: rgba(0,0,0,.55);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  float: right;
  cursor: pointer;
  color: #666;
}

.modal h2 {
  margin-top: 0;
  color: #e3020e;
}

.modal form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal input,
.modal select,
.modal textarea {
  padding: 8px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.erro-carta {
  display: none;
  background: #ffe6e6;
  padding: 8px 12px;
  border-radius: 4px;
  border-left: 3px solid #d90000;
  margin-bottom: 10px;
}

/* Estilo quando o campo tem erro */
input.erro {
  border-color: #d90000 !important;
  background-color: #fff5f5;
}

/* Botões de alternância de língua (FLAGS) */
.lang-switch {
  position: absolute;
  top: 15px;
  right: 20px;
  z-index: 1000;
  display: flex;
  gap: 8px;
}

.lang-switch a {
  display: inline-block;
  padding: 4px;
  border-radius: 4px;
  transition: transform .3s ease, box-shadow .3s ease;
}

.lang-switch a:hover {
  transform: scale(1.1);
}

.lang-switch a.active {
  box-shadow: 0 0 0 2px #d90000;
}

.lang-switch img {
  display: block;
  border-radius: 2px;
}

/* ========== MODAL NOVO ========== */

.modal-novo {
  width: 90%;
  max-width: 600px;
  border: none;
  border-radius: 16px;
  padding: 0;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  background: #fff;
  overflow: hidden;
}

.modal-novo::backdrop {
  background: rgba(0, 51, 102, 0.6);
  backdrop-filter: blur(4px);
}

/* Header */
.modal-header {
  background: #003366;
  color: #fff;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 600;
}

.btn-fechar {
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.btn-fechar:hover {
  background: rgba(255,255,255,0.3);
}

/* Body */
.modal-body {
  padding: 25px;
  max-height: 80vh;
  overflow-y: auto;
}

.modal-subtitulo {
  color: #666;
  font-size: 0.95rem;
  margin: 0 0 20px 0;
  text-align: center;
}

/* Grupos de campos */
.grupo-campo {
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 18px;
}

.grupo-campo legend {
  font-weight: 600;
  color: #003366;
  padding: 0 8px;
  font-size: 0.95rem;
}

/* Layout dos campos */
.campo-row {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.campo {
  flex: 1 1 200px;
  margin-bottom: 12px;
}

.campo label {
  display: block;
  font-weight: 500;
  color: #333;
  margin-bottom: 5px;
  font-size: 0.9rem;
}

.campo input,
.campo select,
.campo textarea {
  width: 91%;
  padding: 10px 12px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.campo input:focus,
.campo select:focus,
.campo textarea:focus {
  outline: none;
  border-color: #00509e;
  box-shadow: 0 0 0 3px rgba(0, 80, 158, 0.1);
}

.campo input::placeholder,
.campo textarea::placeholder {
  color: #aaa;
}

/* Info da carta */
.info-carta {
  display: block;
  font-size: 0.8rem;
  color: #888;
  margin-top: 4px;
}

/* Erro da carta */
.erro-carta {
  display: none;
  color: #d90000;
  font-size: 0.85rem;
  margin-top: 6px;
  padding: 8px 12px;
  background: #ffe6e6;
  border-radius: 6px;
  border-left: 3px solid #d90000;
}

/* Botão enviar */
.btn-enviar {
  width: 50%;
  padding: 14px;
  background: #d90000;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  transition: background 0.3s ease, transform 0.2s ease;
  margin-top: 10px;
}

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

.btn-enviar:active {
  transform: translateY(0);
}

/* Scrollbar personalizada */
.modal-body::-webkit-scrollbar {
  width: 6px;
}

.modal-body::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.modal-body::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

/* ========== SLIDER CENTRADO ========== */

.slider-centro {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 20px auto 30px;
  border-radius: 16px;
  overflow: hidden;
  background: #070808;
  box-shadow: 0 8px 30px rgba(0,0,0,.15);
}

/* Track */
.slider-centro-track {
  display: flex;
  transition: transform .5s ease-in-out;
  width: 100%;
}

/* Cada slide */
.centro-item {
  min-width: 100%;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
  padding: 20px;
}

/* Container da imagem com zoom */
.centro-imagem {
  position: relative;
  max-width: 100%;
  max-height: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.centro-imagem img {
  max-width: 100%;
  max-height: 500px;
  width: auto;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,.3);
  cursor: pointer;
}

/* Hint de zoom */
.zoom-hint {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0,0,0,.6);
  color: #fff;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}

.zoom-container:hover .zoom-hint {
  opacity: 1;
}

/* ========== NAVEGAÇÃO - FIXA NO SLIDER ========== */

.centro-nav {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.9);
  border: none;
  color: #003366;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
  z-index: 20;
  box-shadow: 0 2px 10px rgba(0,0,0,.2);
}

.centro-nav:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.15);
  color: #d90000;
}

.centro-nav.prev { left: 20px; }
.centro-nav.next { right: 20px; }

/* ========== BOTÃO RESERVAR ========== */

.centro-acao {
  padding: 18px 20px;
  text-align: center;
  background: #070808;
  border-top: 2px solid rgba(255,255,255,.1);
  position: relative;
  z-index: 20;
}

.btn-centro {
  background: #d90000;
  color: #fff;
  border: none;
  padding: 14px 40px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all .2s;
  box-shadow: 0 4px 15px rgba(217, 0, 0, .4);
}

.btn-centro:hover {
  transform: translateY(-2px);
  background: #b00000;
  box-shadow: 0 8px 25px rgba(217, 0, 0, .5);
}

/* ========== ZOOM MODAL ========== */

.zoom-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.95);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  cursor: zoom-out;
}

.zoom-modal.ativo {
  display: flex;
}

.zoom-modal img {
  max-width: 95%;
  max-height: 95%;
  object-fit: contain;
  border-radius: 8px;
  animation: zoomIn .3s ease;
}

.zoom-fechar {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 10000;
}

@keyframes zoomIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ========== RESPONSIVO ========== */

@media (max-width: 768px) {
  .slider-centro {
    margin: 15px auto 25px;
    border-radius: 12px;
  }

  .centro-item {
    min-height: 300px;
    padding: 15px;
  }

  .centro-imagem, .centro-imagem img {
    max-height: 380px;
  }

  .centro-nav {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }

  .centro-nav.prev { left: 12px; }
  .centro-nav.next { right: 12px; }

  .zoom-hint {
    font-size: 0.7rem;
    padding: 4px 10px;
  }
}

@media (max-width: 600px) {
  .contactos-wrapper {
    flex-direction: column;
    gap: 20px;
  }

  .sobre-wrapper {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .centro-item {
    min-height: 250px;
    padding: 10px;
  }

  .centro-imagem, .centro-imagem img {
    max-height: 300px;
  }

  .centro-nav {
    width: 36px;
    height: 36px;
    font-size: 1.3rem;
  }

  .centro-nav.prev { left: 8px; }
  .centro-nav.next { right: 8px; }

  .modal-novo {
    width: 95%;
    max-height: 90vh;
  }

  .modal-header {
    padding: 15px 20px;
  }

  .modal-body {
    padding: 18px;
  }

  .campo-row {
    flex-direction: column;
    gap: 0;
  }

  .mosaico-grande {
    height: 180px;
  }

  .mosaico-pequenas img {
    height: 100px;
  }
}

footer {
  text-align: center;
  padding: 20px;
  background-color: #e3020e;
  color: white;
  margin-top: 40px;
}