@charset "utf-8";
/**{
  border: 1px dotted red;
}*/
@keyframes rotarImagenes {
  0% { opacity: 1; z-index: 1; }
  16.66% { opacity: 1; z-index: 1; }
  20% { opacity: 0; z-index: 0; }
  100% { opacity: 0; z-index: 0; }
}



main > h1.logo {
  font-size: 1.8em;
  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;
  padding: 0.5rem 0;
  position: relative;
  filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.6));
}
h2.titulo {
  font-size: 1.8em;
  background: linear-gradient(90deg, var(--color-rojo-oscuro) 35%, var(--color-rojo-claro) 50%, var(--color-rojo-oscuro) 65%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  padding: 0.5rem 0;
  position: relative;
  filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.6));
}

img[src="./img/vall_Gallinera/portada.png"],
img[src="./img/casella/casella.jpg"],
img[src="./img/casella/passat.png"]{
  width: 100%;
  max-height: 35rem;
  height: auto;
  margin-top: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 5px 6px -2px rgba(0, 0, 0, 0.9);
}
/*Galeria*/
.galeria {
  display: flex;
  justify-content: center;
  align-items: flex-end; 
  width: 60%; 
  height: 25rem; 
  overflow: hidden;
  position: relative;
  padding-bottom: 2rem;
  margin: 0 auto;
}

.galeria img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  box-shadow: 0 4px 6px -2px rgba(0, 0, 0, 0.7);
}
.galeria img:first-child {
  opacity: 1;
  z-index: 1;
}
.galeria img:nth-child(1) {
  animation: rotarImagenes 24s infinite;
}
.galeria img:nth-child(2) {
  animation: rotarImagenes 24s infinite 4s;
}
.galeria img:nth-child(3) {
  animation: rotarImagenes 24s infinite 8s;
}
.galeria img:nth-child(4) {
  animation: rotarImagenes 24s infinite 12s;
}
.galeria img:nth-child(5) {
  animation: rotarImagenes 24s infinite 16s;
}
.galeria img:nth-child(6) {
  animation: rotarImagenes 24s infinite 20s;
}
/*Widjets*/
section.widjets{
  display: flex;
  flex-flow: row;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  width: 100%;
}
section.widjets> *{
  width: 100%;
}
/****Mapa****/
section.mapa_container {
  display: flex;
  flex-flow: row;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  width: 100%;
}
section.mapa_container>*{
  width: 100%;
}
section.mapa_container iframe {
  width: 100%;
  border: 2px solid var(--color-verde-oscuro);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}
/******Calendari******/
#calendari {
  width: 100%;
  margin: 0 auto;
  background-color: whitesmoke;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.fc { 
  height: 100% !important;
}

.fc-view-harness {
  background-color: var(--color-beige-claro);
}
.fc-daygrid-day.reservat {
  background-color: rgba(255, 0, 0, 0.5) !important;
  border: 2px solid darkred !important;
  color: white !important;
}

.fc .fc-toolbar-title {
  font-weight: bold;
  color: var(--color-verde-oscuro);
}

.fc .fc-daygrid-day-number {
  font-weight: bold;
}
.fc .fc-toolbar-title {
  color: var(--color-rojo-oscuro);
  font-family: 'Noto Serif', serif;
  font-weight: bold;
}
.fc .fc-toolbar-title::first-letter {
  text-transform: uppercase;
}
.fc .fc-button-primary {
  background-color: var(--color-verde-claro) !important;
  border-color: var(--color-verde-oscuro) !important;
  color: var(--color-verde-oscuro) !important;
}

.fc .fc-button-primary:hover {
  background-color: var(--color-verde-oscuro) !important;
  color: white !important;
}
/**** Formulari de Contacte ****/
section.contacto_container {
  background: whitesmoke;
  padding: 2rem;
  margin-top: 2rem;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.15);
  width: 100%;
  text-align: center;
}

section.contacto_container h2 {
  margin-bottom: 1.5rem;
  color: var(--color-verde-oscuro);
  font-size: 1.8rem;
}

/* Inputs estilizats */
.inputs {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.inputs label {
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: var(--color-verde-oscuro);
  display: flex;
  align-items: center;
  gap: 8px;
}

.inputs input,
.inputs textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  background-color: #F8F8F8;
  transition: border 0.3s ease;
}

.inputs input:focus,
.inputs textarea:focus {
  border-color: var(--color-verde-oscuro);
  outline: none;
  box-shadow: 0px 0px 5px rgba(41, 72, 52, 0.3);
}

/* Botó*/
section.contacto_container button {
  background-color: var(--color-verde-oscuro);
  color: white;
  padding: 0.8rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease-in-out;
  width: 100%;
  font-weight: bold;
}

section.contacto_container button:hover {
  background-color: #1e3527;/*Un pelí més fosc*/
  transform: scale(1.02);
}

/* Informació de contacte */
.contacto_info {
  margin-top: 1.5rem;
  font-size: 1rem;
  color: #444;
}

.contacto_info p {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

/* Iconos de contacto */
.ubicacio i{
  color: #DB4437; /* El rojo de Google Maps */
}

.telefon i{
  color: #4285F4;
}

.email i{
  color: #FFFFFF;
  background: gray;
  padding: 5px;
  border-radius: 6px;
}

/* Redes sociales */
.social_links {
  margin-top: 1rem;
}

.social_links a {
  margin: 0 0.5rem;
  text-decoration: none;
  font-size: 1.8rem;
  display: inline-block;
  transition: transform 0.3s ease-in-out;
}

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

/* Colors específics de whats y telegram */
.whatsapp {
  color: #25D366;
}

.telegram {
  color: #0088CC;
}

/***********************/
/******Versió PC*******/
@media (width >= 992px) {
  a[href="casa_rural.html"]{
    background: linear-gradient(90deg, var(--color-rojo-oscuro) 0%, var(--color-rojo-claro) 50%);
    border-radius: 4px;
    color: var(--color-beige-claro) !important;/*Machaque els estils anteriors, si no no es mostra el colro de la lletra*/
    filter: drop-shadow(1px 1px 1px rgba(36, 4, 7, 0.9));
    margin-right: 0.2rem;
    margin-left: 0.2rem;
    transition: all 0.3s ease-in-out;
  }
  a[href="casa_rural.html"]:hover {
      color: whitesmoke!important; /* 🔹 Blanco roto */
  }
  img[src="./img/vall_Gallinera/portada.png"],
  img[src="./img/casella/casella.jpg"]{
    width: calc(100% - 2rem); 
    margin: 1rem; 
    max-height: 45rem;
  }
  div#historia {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
  }
  /* Contenidor per imagen_texto */
  .img_tex {
    display: flex;
    gap: 2rem;
    width: 100%;
  }
  .img_tex img {
    flex: 0 1 50%;
    max-height: 400px;
    object-fit: cover;
  }
  .img_tex p {
    flex: 0 1 50%;
    margin: 0;
    align-self: center;
  }
  /*Widjets*/
  section.widgets {
    display: flex;
    align-items: flex-start;
  }
  section.widjets>*{
    width: calc(49% - 2rem);
    border-radius: 0.3rem;
  }
  /*Calendari PC*/
  #calendari {
    font-size: 0.85rem;
  }

  .fc .fc-daygrid-day-number {
    font-size: 0.75rem;
  }
  .fc-button {
    font-size: 0.8rem !important;
    padding: 0.4rem 0.6rem !important;
  }
  /*Formulari*/
  section.contacto_container {
    width: calc(100% - 2.5rem);
    padding: 1.5rem;
    margin: 2rem auto;
    border-radius: 0.3rem;
  }
  .contacto_info{
    border-radius: 0.3rem;
  }
}

