/* Fonts personalitzades */
@font-face {
  font-family: 'Kanit';
  src: url('/Fotos/media/Kanit-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'KanitLight';
  src: url('/Fotos/media/Kanit-Light.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* Estils globals */
html {
  cursor: url('/Fotos/media/mouse1.png') 18 10, auto;
}
a:hover {
  cursor: url('/Fotos/media/mouse2.png') 18 10, auto;
}
body {
  font-family: 'KanitLight', sans-serif;
  font-size: 16px;
  margin: 0;
  padding: 0;
  background-color: #ffffff;
}

/* Estils per al text de contacte */
.textcontacte {
  font-family: 'KanitLight', sans-serif;
  font-size: 16px;
  max-width: 800px;
  padding: 20px;
  text-align: center;
  margin: 20px auto;
  line-height: 1.6;
  color: #000;
}
.textcontacte p {
  margin: 0;
}
.textcontacte strong {
  font-family: 'Kanit', sans-serif;
  font-size: 1.2em;
}

/* HEADER */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: #fff;
  border-bottom: 1px solid #ddd;
}
.header a {
  text-decoration: none;
  color: #000;
  margin: 0 10px;
}
.logoramonllorach img {
  width: 160px;
  height: auto;
}

/* IMÁGENES */
.item {
  background-color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.item img {
  width: 100%;
  height: auto;
  display: block;
}

/* GRID INTERIOR */
.containerdins {
  display: grid;
  grid-template-columns: repeat(4, minmax(300px, 1fr));
  gap: 5px;
  padding: 5px;
}
.containerdinstotal {
  display: grid;
  grid-template-columns: repeat(3, minmax(300px, 1fr));
  gap: 5px;
  padding: 5px;
}

/* BLOQUES GRANDES */
.item.wide {
  grid-column: span 2;
  padding: 3px;
}
.item.tall {
  grid-row: span 2;
}

/* TEXTO DESCRIPTIVO */
.text {
  font-family: 'KanitLight', sans-serif;
  font-size: 1.2em;
  max-width: 800px;
  padding: 20px;
  text-align: center;
  margin: 20px auto;
  line-height: 1.6;
  color: #000;
}
.text p {
  margin: 0;
  display: block;
}
.text strong {
  font-family: 'Kanit', sans-serif;
  font-size: 1.2em;
}

/* VIDEO */
video {
  width: 100%;
  height: auto;
  pointer-events: none;
  object-fit: cover;
  display: block;
}

/* IMATGE GIF */
.itemoligif {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  max-width: 300px;
}

/* EFECTES HOVER PER ITEMS */
.item1:hover::after {
  content: "Identitat Visual Pickle Motorsport";
  white-space: pre;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.9;
  background-color: #38ab51;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-family: Arial, sans-serif;
  font-size: 20px;
  text-align: center;
  pointer-events: none;
}
.item2:hover::after {
  content: "Disseny Samarreta 1886";
  white-space: pre;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.9;
  background-color: #971733;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-family: Arial, sans-serif;
  font-size: 20px;
  text-align: center;
  pointer-events: none;
}
.item3:hover::after {
  content: "Etiqueta Oli Oliva Torrents";
  white-space: pre;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.95;
  background-color: #e8c814;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-family: Arial, sans-serif;
  font-size: 20px;
  text-align: center;
  pointer-events: none;
}
.item4:hover::after {
  content: "Identitat Visual Escola Les Moreres";
  white-space: pre;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.9;
  background-color: #7ac2ab;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 20px;
  font-family: Arial, sans-serif;
  text-align: center;
  pointer-events: none;
}
.item5:hover::after {
  content: "Identitat Visual 8 Març";
  white-space: pre;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.9;
  background-color: #7c338a;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-family: Arial, sans-serif;
  font-size: 20px;
  text-align: center;
  pointer-events: none;
}
.item6:hover::after {
  content: "Identitat Visual Serveis Baiona";
  white-space: pre;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.9;
  background-color: #4ba535;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-family: Arial, sans-serif;
  font-size: 20px;
  text-align: center;
  pointer-events: none;
}

/* FOOTER */
.footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-right: 6%;
}
.contactefooter {
  margin-right: auto;
  padding-left: 6%;
}

/* MEDIA QUERIES */
@media (max-width: 768px) {
  .containerdins {
    grid-template-columns: repeat(2, 1fr);
  }
  .containerdinstotal {
    grid-template-columns: repeat(2, 1fr);
  }
  .header {
    flex-direction: column;
    text-align: center;
  }
  .header a {
    margin: 5px 0;
  }
  .text {
    font-size: 16px;
    padding: 0 10px;
  }
  .item.wide {
    grid-column: span 1;
  }
  .item1:hover::after,
  .item2:hover::after,
  .item3:hover::after,
  .item4:hover::after,
  .item5:hover::after,
  .item6:hover::after {
    content: none;
  }
}

@media (max-width: 480px) {
  .containerdins {
    grid-template-columns: repeat(2, 1fr);
  }
  .containerdinstotal {
    grid-template-columns: repeat(2, 1fr);
  }
  .header {
    padding: 10px;
  }
  .logoramonllorach img {
    width: 120px;
  }
  .text {
    font-size: 14px;
    padding: 0 5px;
  }
  .footer {
    flex-direction: column;
    padding: 10px;
    text-align: center;
  }
  .contactefooter {
    margin-right: 0;
    padding-left: 0;
    margin-bottom: 10px;
  }
  .item1:hover::after,
  .item2:hover::after,
  .item3:hover::after,
  .item4:hover::after,
  .item5:hover::after,
  .item6:hover::after {
    content: none;
  }
}

@media (min-width: 769px) and (max-width: 1080px) {
  .containerdins {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 10px;
  }
  .containerdinstotal {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 10px;
  }
  .item.wide {
    grid-column: span 1;
  }
  .item.tall {
    grid-row: span 1;
  }
  .header {
    flex-direction: row;
    padding: 15px;
  }
  .logoramonllorach img {
    width: 140px;
  }
  .header a {
    margin: 0 8px;
    font-size: 14px;
  }
  .text {
    font-size: 16px;
    max-width: 90%;
    padding: 0 15px;
  }
  .footer {
    padding-right: 4%;
    flex-direction: row;
  }
  .contactefooter {
    padding-left: 4%;
    margin-bottom: 0;
  }
  .item1:hover::after,
  .item2:hover::after,
  .item3:hover::after,
  .item4:hover::after,
  .item5:hover::after,
  .item6:hover::after {
    font-size: 18px;
  }
  .itemoligif {
    max-width: 250px;
  }
  video {
    max-width: 100%;
  }
}

/* SECCIÓ INTRODUCCIÓ */
.intro-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  background-color: #000;
  color: #fff;
  margin-top: 20px;
  min-width: 300px;
}

.intro-image {
  margin-bottom: 20px;
}

.intro-image img {
  display: block;
  width: 300px;
  max-width: 100%;
  height: auto;
}

.intro-text {
  padding: 0 20px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
  color: #fff;
}

h1 {
  font-family: 'Kanit', serif;
  color: #fff;
  letter-spacing: 2px;
  margin: 0 0 15px 0;
  text-align: center;
}

.intro-text p {
  font-family: 'KanitLight', sans-serif;
  font-size: 1.2em;
  color: #fff;
  line-height: 1.6;
  text-align: center;
}

.intro-text p a {
  font-style: oblique;
  text-decoration: none;
  color: #ffffff;
  background: none;
}

/* Ajustos responsius */
@media (max-width: 768px) {
  h1 {
    font-size: 2em;
  }
  .intro-text p {
    font-size: 1em;
  }
}