body {
    font-family: Arial, sans-serif;
    margin: 0;
    background-color: #fffaef;
}


.header-principal {
    position: relative;
    width: 100%;
    height: 25vh;
    overflow: hidden;
}

.header-principal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


.logo {
    position: absolute;
    top: 20px;
    left: 20px;
    color: white;
    padding: 0;
    z-index: 10;
    border: 1px solid white;
    background-color: black;
    border-radius: 15px;
}

.nav-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 0;
    z-index: 10;
}

.nav-menu ul {
    display: flex;
    gap: 15px;
    list-style: none;
}

.Boton {
    border: 1px solid black;
    background-color: white;
    color: black;
    padding: 6px;
    text-decoration: none;
    border-radius: 30px;
}

.nav-menu li:hover{
    transform: scale(1.1);
    transition: all 0.3s ease ;
}
.nav-menu li:not(:hover) {
    transition: scale(1);
    transition: all 0.3s ease;
}
main {
    padding: 8px;
}

.hero-section{
    text-align: center;
}

.graella-llocs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 50px;
}

.graella-llocs .targeta:last-child {
    grid-column: 1 / -1;     
    justify-self: center;        

}

.barris-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.descripcio-barri {
    border: 1px solid #ddd;
    background-color: white;
    padding: 16px;
    margin: 0;         
    box-sizing: border-box;
    justify-items: center;
}

.targeta {
    border: 1px solid #ddd;
    background-color: white;
    padding: 16px;
    margin: 0;          
    box-sizing: border-box;
    justify-items: center;
}

.targeta img,
.descripcio-barri img,
.foto-targeta img {
    width: 100%;
    height: 400px;
    object-fit: contain;    
    border-radius: 8px;
}

.footer-principal {
    display: flex;
    justify-content: center;
    background-color: black;
    color: white;
}

/*-----------------------Galeria Fotos ------------------------------*/

.fotos-container{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.foto-targeta {
    background-color: white;
    padding: 8px;
    margin: 10px;
    border: 1px solid #ddd;
    justify-items: center;
}

.foto-targeta img {
    width: 100%;
}

.foto-targeta:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.8);
    transform: scale(1.03);
    transition: all 0.3s ease;
}

.foto-targeta:not(:hover) {
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    transform: scale(1);
    transition: all 0.3s ease;
}




/*-------------------- contacte --------------------*/
.contactes-targeta{
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 25px;
    max-width: 600px;             
    margin: 0 auto;
    background-color: white;
    border-radius: 10px;
    border: 10px solid black;
}

.quest {
    border-radius: 10px;
    width: 100%;
    height: 20px;
}

.pregunta{
    margin-bottom: 30px;
}

.missatge {
    width: 100%;
    height: 100px;
    border-radius: 10px;
}

.info {
    color: red;
}

.Boton-form {
    border: 1px solid black;
    border-radius: 15px;
    background-color: black;
    color: white;
    padding: 3px;
    width: 70px;
    height: 35px;
    justify-self: center;
}

.Boton-form:hover{
    transform: scale(1.1);
    transition: all 0.3s ease;
}

.Boton-form:not(:hover) {
    transform: scale(1);
    transition: all 0.3s ease;
}


/* -------------------- Fer pagina responsive -------------------------*/

@media (max-width: 768px) {
    .header-principal {
        display: flex;
        align-items: center;
        gap: 20px;
    }

    .nav-menu ul {
        flex-direction: column;
        justify-content: end;
        gap: 8px;
        padding-left: 0;
        gap: 20px
    }

    .graella-llocs {
        display: grid;
        grid-template-columns: repeat(2, 1fr)
    }

    .targeta img,
    .descripcio-barri img {
        width: 100%;
        height: auto;
        display: block;
    }

    .barris-container {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
    }

    .fotos-container{
        display: grid;
        grid-template-columns: repeat(2, 1fr)
    }
    .foto-targeta{
        display: grid;
        grid-template-columns: repeat(1, 1fr);
    }
    footer{
        font-size: 13.5px;
    }
}

@media (max-width: 500px) {
    .graella-llocs {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
    }

    .fotos-container{
        display: grid;
        grid-template-columns: repeat(1, 1fr);
    }

    .foto-targeta{
        display: grid;
        grid-template-columns: repeat(1, 1fr);
    }
    footer {
        font-size: 12px;
    }
}

