/* -----------------------------------
   TIPOGRAFIES GLOBALS
----------------------------------- */
body {
  margin: 0;
  background-color: #f0efe0;
  font-family: 'Alexandria', sans-serif;
  color: #222;
}

/* Títols */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  color: #000;
  letter-spacing: 1px;
  margin-top: 0;
}

/* -----------------------------------
   HEADER + MENÚ
----------------------------------- */
header {
  background-color: #000000;
  z-index: 1;
  padding: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header > img {
  flex: 0;
  margin-right: 20px;
}

header > div {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
}

.text, .text1 {
  color: #fdc224;
  font-family: 'Alexandria', sans-serif;
  font-size: 0.7rem;
  padding: 1px;
}

.menu {
  display: flex;
  align-items: center;
  margin: 0 20px; 
  justify-content: center;
}

/* Botó hamburguesa */
.hamburger { 
  box-sizing: border-box;
  width: 32px;  
  height: 32px; 
  display: grid; 
  place-items: center; 
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #fdc224;
  user-select: none;
  background-color: transparent;
  border: none;
}

/* Menú desplegable */
.listaMenu {
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 20px;
  display: none; 
  position: absolute;
  top: 97px;
  right: 0;
  background-color: #000000;
  width: clamp(200px, 60vw, 320px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.08);
  z-index: 10;
}

.listaMenu.open {
  display: flex;
  flex-direction: column; 
  padding-bottom: 16px;
}

.listaMenu li a {
  color: #fdc224;
  font-size: 0.7rem;
  text-decoration: none;
  padding: 16px 24px;
}

/* Menú en pantalla gran */
@media (min-width: 768px) {
  .hamburger { display: none; }

  .listaMenu {
    position: static;
    display: flex !important;
    gap: 20px;
    width: auto;
    box-shadow: none;
    background: transparent;
    flex-direction: row;
  }

  .listaMenu a:hover { 
    text-decoration: underline;
    background: transparent;
  }
}

/* -----------------------------------
   CONTINGUT PRINCIPAL
----------------------------------- */
main {
  padding: 40px 260px;
}

/* --- En pantalles mitjanes (tablets) --- */
@media (max-width: 1024px) {
  main {
    padding-left: 100px;
    padding-right: 100px;
  }
}

/* --- En mòbils --- */
@media (max-width: 600px) {
  main {
    padding-left: 30px;
    padding-right: 30px;
  }
}

/* Seccions */
.section {
  margin-bottom: 60px;
  min-height: calc(92vh - 100px - 80px); /* 100vh menys header i footer */

}

.section h2 {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

/* -----------------------------------
   ACTIVITATS
----------------------------------- */
.grid-activitats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin-top: 20px;
  
}

.card-activitat {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.img-activitat {
  width: 100%;
  height: 200px;
  background-color: #e6e6e6;
  border-radius: 12px;
  margin-bottom: 15px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.card-activitat h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.card-activitat p {
  font-size: 0.9rem;
  color: #333;
}

.card-activitat:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

@media (max-width: 600px) {
  .grid-activitats {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 400px) {
  .grid-activitats {
    grid-template-columns: 1fr;
  }
}

/* -----------------------------------
   SOBRE MÍ / BIOGRAFIA
----------------------------------- */
.biografia {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 40px;
  padding: 40px 0;
}

.bio-img {
  flex: 0 0 250px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.bio-img img {
  width: 350px;
  height: 400px;
  object-fit: cover;
  border-radius: 12px; /* quadrada amb cantonades lleugerament arrodonides */
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.bio-text {
  flex: 1;
  min-width: 250px;
}

.bio-text h2 {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.bio-text p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 16px;
  color: #333;
}

/* Responsive */
@media (max-width: 768px) {
  .biografia {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }

  .bio-img {
    margin-bottom: 10px;
  }

  .bio-text {
    text-align: center;
  }
}


/* -----------------------------------
   XARXES SOCIALS
----------------------------------- */
.xarxes {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: calc(92vh - 100px - 80px); /* 100vh menys header i footer */
  gap: 30px;
  padding: 0 20px;
}

.xarxes h2 {
  font-size: 2rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fdc224;
  margin-bottom: 20px;
  display: inline-block;
  position: relative;
}

.xarxes h2::after {
  content: "";
  display: block;
  width: 60%;
  height: 3px;
  background-color: #000;
  margin: 10px auto 0;
  border-radius: 2px;
}

.xarxes p {
  font-size: 1rem;
  color: #333;
  max-width: 600px;
}

.icones-xarxes {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.icones-xarxes a {
  display: inline-block;
  transition: transform 0.3s ease;
}

.icones-xarxes svg {
  width: 50px;
  height: 50px;
  fill: #000;
  transition: fill 0.3s ease, transform 0.3s ease;
}

.icones-xarxes a:hover svg {
  fill: #fdc224;
  transform: scale(1.2);
}

@media (max-width: 600px) {
  .icones-xarxes { gap: 25px; }
  .icones-xarxes svg { width: 40px; height: 40px; }
}



/* -----------------------------------
   FOOTER
----------------------------------- */
footer {
  background-color: #000;
  color: #fdc224;
  text-align: center;
  padding: 20px;
  font-size: 0.8rem;
}

footer a {
  color: #fdc224;
  text-decoration: underline;
}