@charset "utf-8";
/**{
  border: 1px dotted red;
}*/
/*Keyframes del banner call to action*/
@keyframes rotarImagenes {
  0%, 33% { opacity: 1; }
  34%, 100% { opacity: 0; }
}
/*Amague que açí no cal*/
section#migas{
  display: none;
}
/*Certificats*/
div.certificatsContainer{
  display: flex;
  flex-direction: row; 
  flex-wrap: wrap;
  align-items: center; 
  padding: 1rem;
  width: 100%; 
}
div.certificatsContainer img {
  padding-top: 1rem;
  width: 12%; 
  box-shadow: 0 6px 5px -4px rgba(0, 0, 0, 0.7);

}
div.certificatsContainer p {
  width: 80%; 
}

/******************************/
/***********Banner*************/
.banner {
  position: relative;
  width: 100%;
  height: 30rem;
  overflow: hidden;
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.7);
}

.banner a {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.banner a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

img[src="./img/agrivall.jpg"], p{
  width: 100%;
}
img[src="./img/agrivall.jpg"]{
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.7);
}
img[src="./img/eco-friendly.png"]{
  max-width: 40vh;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.8));
}

/* Animació de rotació */
.banner a:nth-child(1) {
  animation: rotarImagenes 18s infinite;
}

.banner a:nth-child(2) {
  animation: rotarImagenes 18s infinite 6s;
}

.banner a:nth-child(3) {
  animation: rotarImagenes 18s infinite 12s;
}
main > h1.logo {
  font-size: 4rem;
  background: linear-gradient(90deg, var(--color-verde-oscuro) 35%, var(--color-verde-claro) 50%, var(--color-verde-oscuro) 65%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0; padding: 1.3rem 0;
  position: relative;
  z-index: 10;
  filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.6));
  box-shadow: 0 6px 8px -3px rgba(0, 0, 0, 0.9); 
}

/**********************************/
/********VERSIÓ PC/TABLET*********/

@media (width >= 992px) {
  .banner {
    height: 50rem; 
    padding-bottom: 0;
  }
  img[src="./img/agrivall.jpg"], p{
    width: 50%;
    margin: 0;padding: 0;
  }
  
}