/* ---------- RESET BÁSICO Y GOBAL ---------- */
body {
    font-family: Arial, sans-serif;
    padding: 00;
    background-color: rgb(0, 0, 0);
    margin: 0;
}

h1, h2, h3 {
    margin: 10px 0;
}

.titol-seccio {
    text-align: center;
    margin-top: 30px;
}

/* ---------- HEADER ---------- */
.header-principal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgb(0, 0, 0);
    padding: 1rem 2rem;
    font-size: 18px;
    color: rgb(255, 255, 255);
    position: fixed;
    top: 0;              
    left: 0;
    width: 100%;         
    z-index: 1000
}

.nav-menu ul {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    color: white;
}

.nav-menu a {
    text-decoration: none;
    color: #ffffff;
    font-weight: bold;
}


/* ---------- HERO ---------- */

.hero-section {
    height: 40vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    background-size: cover;
    background-position: center;
    background-image: url("img/barcelona9.jpg");
    font-size: 30px;
    padding-top: 60px;
    
}

/* ---------- TARGETES ---------- */
.graella-llocs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 1rem 2rem;
}

.targeta {
    background: black;
    padding: 1rem;
    border-radius: 10px;
    color: white;
    text-align: center;
    gap:40px;
}

.targeta img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 10px;
}

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

.descripcio-barri {
    background: black;
    color: white;
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    font-size: 23;
}

.descripcio-barri img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.descripcio-barri h3,
.descripcio-barri p {
    padding: 10px;
    font-size: 23;
}
.seccio-llocs,
.seccio-barris{
    color: white;
    text-align: center;
    margin-top: 50px;
}

/* ---------- GALERIA ---------- */
.titol-seccio{
font-size: 36px;
color: white;
text-align: center;
margin-top: 140px;    
font-size: 34px;
color: aliceblue;
}


.galeria-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-height: 70vh; 
    overflow-y: auto; 
    padding: 30px;
}

.galeria-container img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.item-galeria {
    position: relative;
    text-align: center;
}

.item-galeria span {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.7);
    padding: 6px 12px;
    border-radius: 8px;
    color: white;
    font-size: 18px;
    font-weight: bold;
}

.item-galeria img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
}


/* ---------- CONTACTE ---------- */
.contacte-main {
    max-width: 600px;
    margin: 40px auto;
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    align-items: center;
    text-align: center;
}

.formulari-contacte {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.formulari-contacte input,
.formulari-contacte textarea {
    padding: 10px;
    border: 1px solid #aaa;
    border-radius: 8px;
    width: 100%;
}

.formulari-contacte textarea {
    height: 120px;
    resize: vertical;
}

.formulari-contacte button {
    padding: 12px;
    background: #333;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.formulari-contacte button:hover {
    background: #000000;
}
.formulari-contacte label {
    color: #000;
    font-weight: bold;
    margin-top: 10px;
}
.contacte-main {
    margin: 140px auto;
}

/* ---------- FOOTER ---------- */
.footer-principal {
    text-align: center;
    background: #222;
    color: white;
    padding: 1rem;
}