*{
  margin: 0,5;
  padding: 0.5;
}
header {
  padding: 0px 0;
  background: repeating-linear-gradient(white);

}
.container {
  padding: 0 10px;
  max-width: 960px;
  margin: 0 auto;
}
.logo-box {
  float: left;
  margin-right: 20px;

}
.logo-box a {
  outline: none;
  display: block;
}
.logo-box img {display: block;}
nav {
  overflow: hidden;
}
ul {
  list-style: none;
  margin: 0;
  padding: 0;
  float: right;
}
nav li {
  display: inline-block;
  margin-left: 25px;
  height: 70px;
  line-height: 70px;
  transition: .5s linear;
}
nav a {
  text-decoration: none;
  display: block;
  position: relative;
  color: #0e4d9c;
  text-transform: uppercase;
}
nav a:after {
  content: "";
  width: 0;
  height: 2px;
  position: absolute;
  left: 0;
  bottom: 15px;
  background: #0e4d9c;
  transition: width .5s linear;
}
nav a:hover:after {width: 100%;}

@media screen and (max-width: 660px) {
  header {text-align: center;}
  .logo-box {
    float: none;
    display: inline-block;
    margin: 0 0 16px 0;
  }
  ul {float: none;}
  nav li:first-of-type {margin-left: 0;}
}
@media screen and (max-width: 550px) {
nav {overflow: visible;}
nav li {
  display: block;
  margin: 0;
  height: 40px;
  line-height: 40px;
}
nav li:hover {background: #0e4d9c;}
nav a:after {content: none;}
}

body {

  background-color: white;
  font-family: 'Poppins', sans-serif;
}

button:hover {
          color: white;
          font-size: 29px;
          cursor: pointer;
          transition: 0.5s;
          opacity: 0.9;
          font-family: 'Poppins', sans-serif;
          background-color: #0e4d9c;
}


#cf {
    position: relative;
    width: 100%;
    height: 950px;
    background-color: white;
    font-family: 'Poppins', sans-serif;
}

    #cf img {
        position: absolute;
        align-content: center;
        width: 100%;
      }


#about {

  background-color: white;
  font-family: 'Poppins', sans-serif;
  font-size: 27px;

}

#about0 {


  font-family: 'Poppins', sans-serif;

}
#about1 {

  background-color: #ebeff5;
  font-family: 'Poppins', sans-serif;

}

#about2 {

  font-family: 'Poppins', sans-serif;
  background-color: #ebeff5;
}

h1, h2 {
  color: #0e4d9c;
  font-size: 37px;
  font-family: 'Poppins', sans-serif;
}

#telefone {
  color: #0e4d9c;
  font-size: 23px;
  font-family: 'Poppins', sans-serif;
}


#frota {
      background-color: white;
      align-content: center;
      margin: auto;
      width: 800px;
      overflow: hidden;

}

#frota img {
              align-content: center;
              width: 800px;
              max-width: 100%;
            	-moz-transition: all 0.3s;
            	-webkit-transition: all 0.3s;
            	transition: all 0.3s;
              align-content: center;
              width: 800px;
}

#frota:hover img{

  -moz-transform: scale(1.1);
  -webkit-transform: scale(1.1);
  transform: scale(1.1);
}


#galeria {
          font-size: 39px;

}

 #ligeiros:hover {

   width: auto;
   background-color: #ebeff5;
}

.image{
    -webkit-filter:grayscale(100%);
}
.image:hover{
    -webkit-filter:grayscale(0%);
    transition: 0.3s;
}

#pesados:hover {

    width: auto;
    background-color: #ebeff5;
}

.image{
    -webkit-filter:grayscale(100%);
}
.image:hover{
    -webkit-filter:grayscale(0%);
    transition: 0.3s;
}

#morada {

        width: 100%;
        background-color: #0e4d9c;
        font-family: 'Poppins', sans-serif;
        color: white;
        font-size: 19px;
        margin: auto;
        padding: 0;

}

#morada a {
    color: white;
    text-decoration: none;
}

mark {
        color: white;
        background-color: #1186EC;

}


/* ===== Ajustes responsivos gerais ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden;
}

img,
iframe {
  max-width: 100%;
}

img {
  height: auto;
}

#about,
#about0,
#about1,
#about2,
#orcamento,
#morada,
#autor {
  width: 100%;
}

#about {
  padding: clamp(18px, 4vw, 48px);
  font-size: clamp(16px, 2vw, 22px);
}

h1,
h2 {
  font-size: clamp(25px, 4vw, 37px);
  line-height: 1.25;
}

#telefone {
  font-size: clamp(16px, 2.4vw, 23px);
}

#about0 img,
#about img,
#about1 img,
#about2 img {
  max-width: min(100%, 420px);
  height: auto;
}

#frota {
  width: min(100% - 32px, 800px);
  margin: 24px auto;
}

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

.slideshow-container,
.slideshow-container img {
  width: 100%;
}

.slideshow-container img {
  display: block;
  height: auto;
}




#orcamento {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
    padding: 40px 15px;
    text-align: center;
}

/* Botão pedir orçamento */
#orcamento .orcamento-botao {
    margin: 20px 0 40px;
}

#orcamento .orcamento-botao button {
    max-width: 100%;
    padding: 15px 25px;
    background-color: #0e4d9c;
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    box-sizing: border-box;
}

#orcamento .orcamento-botao button:hover {
    background-color: #09376f;
}

/* Imagem do WhatsApp */
#orcamento .orcamento-whatsapp {
    margin: 20px 0;
}

#orcamento .orcamento-whatsapp img {
    width: 10%;
    max-width: 65px;
    min-width: 40px;
    height: auto;
    vertical-align: middle;
}

/* Telemóveis */
@media screen and (max-width: 600px) {
    #orcamento {
        padding: 25px 10px;
    }

    #orcamento .orcamento-botao button {
        font-size: 16px;
        padding: 14px 18px;
    }

    #orcamento .orcamento-whatsapp img {
        width: 15%;
    }
}


/* ===== Galeria responsiva ===== */
.gallery-section {
  width: 100%;
  padding: clamp(28px, 5vw, 64px) clamp(14px, 3vw, 32px);
  background: #ebeff5;
}

.gallery-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-title {
  margin: 0 0 clamp(20px, 3vw, 36px);
  color: #0e4d9c;
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(28px, 4vw, 39px);
  font-weight: 600;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 1.8vw, 22px);
  align-items: stretch;
}

.gallery-item {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 4px;
  background: #fff;
  aspect-ratio: 4 / 3;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.25s ease, transform 0.25s ease;
  filter: grayscale(100%);
}

.gallery-item:hover img,
.gallery-item:focus-within img {
  filter: grayscale(0%);
  transform: scale(1.035);
}

@media (max-width: 800px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 480px) {
  .gallery-section {
    padding: 28px 12px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .gallery-item {
    aspect-ratio: 4 / 3;
  }


  #about0 img {
    width: 55% !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .gallery-item img {
    transition: none;
  }
}
