@import url('https://fonts.cdnfonts.com/css/nimbus-sans-l');     

html {
    margin: 0; 
    padding: 0;
    font-family: 'Nimbus Sans L', sans-serif;
}

body {
    margin: 0; 
    padding: 0;
}

h2 {
    font-size: 24px;
}

p {
    font-size: 16px;
    line-height: 1.6;
}

header {
    padding: 10px 0;
}

/* Menú hamburguesa - oculto por defecto en desktop */
.menu-toggle {
    display: none;
}

.menu-icon {
    display: none;
}

ul {
    display:flex;
    justify-content: center;
    flex-direction: row;
    list-style: none;
}

a {
    text-decoration: none;
    color: black;
}

li {
    margin: 0 0px;
    padding: 10px 95px;
    margin: 0px 50px;
}

li:hover {
  background-color:black;
  transform: rotate(-5deg);
  justify-content: center;
  color: white;
}

li.seleccionat {
  background-color:#561D25;
  transform: rotate(-5deg);
  justify-content: center;
  color: white;
}

.contingut {
    padding: 0px 60px;
}

.bannerInicial {
    display: flex;
    justify-content: center;
    padding:60px 0px;
}

.darrersProjectes {
    margin-bottom: 40px;
}

.imatgesGaleria {
  display: flex;
  width: 100%;
  gap: 10px;
  margin-top: 30px;
}

.imatgesGaleria img {
  flex: 1;
  width: 0;
  object-fit: cover;
  height: auto;
}

footer {
    background-color:black;
    color:white;
    padding: 0px 60px;
    padding-top:100px;
    padding-bottom: 70px;
    margin-top: 100px;
}

h4 {
    font-size: 20px;
}

.xarxesFooter {
    display: flex;
    justify-content: flex-start;
    align-items:center;
    gap: 50px;
}

/* ========== MEDIA QUERIES - RESPONSIVE ========== */

/* Tablet */
@media (max-width: 1024px) {
    li {
        padding: 10px 50px;
        margin: 0px 20px;
    }
    
    .contingut {
        padding: 0px 30px;
    }
    
    h2 {
        font-size: 22px;
    }
    
    p {
        font-size: 15px;
    }
    
    .imatgesGaleria {
        gap: 8px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    /* Header y menú hamburguesa */
    header {
        position: relative;
        padding: 20px;
    }
    
    .menu-icon {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 35px;
        font-weight: bold;
        cursor: pointer;
        z-index: 1000;
    }
    
    .menuHeader {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease;
        z-index: 999;
        padding: 0;
        margin: 0;
    }
    
    .menuHeader.active {
        right: 0;
    }
    
    .menuHeader li {
        margin: 10px 0;
        padding: 15px 40px;
        font-size: 28px;
        background-color: transparent;
        color: black;
    }
    
    .menuHeader li:hover {
        background-color: transparent;
        transform: none;
        color: black;
    }
    
    .menuHeader li.seleccionat {
        background-color: transparent;
        transform: none;
        color: black;
    }
    
    .menuHeader a {
        width: 100%;
        text-align: right;
        padding-right: 40px;
        color: black;
    }
    
    /* Contenido */
    .contingut {
        padding: 0px 20px;
    }
    
    h2 {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    p {
        font-size: 14px;
        line-height: 1.5;
        text-align: justify;
    }
    
    /* Galería de imágenes en columna */
    .imatgesGaleria {
        flex-direction: column;
        gap: 15px;
        margin-top: 20px;
    }
    
    .imatgesGaleria img {
        width: 100%;
        height: auto;
    }
    
    /* Footer */
    footer {
        padding: 60px 20px 40px;
        margin-top: 60px;
        text-align: center;
    }
    
    footer img[width="75px"] {
        width: 60px;
    }
    
    h4 {
        font-size: 18px;
        margin-top: 20px;
    }
    
    .xarxesFooter {
        justify-content: center;
        gap: 30px;
        margin-top: 30px;
    }
    
    .xarxesFooter a {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .xarxesFooter img {
        width: 35px;
        height: 35px;
        object-fit: contain;
    }
}
