
body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    color: #333;
}

/* header */
header {
    background-color: #b30000;
    color: white;
    padding: 10px;
    margin: 0;
	display: flex;
    justify-content: space-between; 
    align-items: center; 
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    width: 70px;
    height: auto;
}

nav ul {
    list-style: none;
    padding: 0;
}

nav ul li {
    display: inline-block;
    position: relative;
    margin-right: 15px;
}

nav a {
    color: white;
    text-decoration: none;
}
nav a:hover {
    text-decoration: underline;
}

/* submenú */
.submenu {
    display: none;
    position: absolute;
    background: #b30000;
    padding: 10px;
    top: 100%;
}

nav ul li:hover .submenu {
    display: block;
}

.submenu li {
    display: block;
	margin: 5px 0;
}
.submenu li a:hover {
    background-color: #025a00;
}

/* contador */
.compte {
    text-align: center;
    padding: 20px;
}

.temps {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.temps div {
    background: white;
    padding: 15px;
    border-radius: 10px;
    width: 80px;
}

.temps span {
    font-size: 24px;
    font-weight: bold;
    color: #b30000;
}

/* notícies */
section {
    padding: 20px;
}
.titol-centre {
    text-align: center;
}
.noticies {
    display: flex;
	justify-content: center;
    gap: 20px;
    padding: 20px;
}

.noticia {
    background: white;
    padding: 10px;
    border-radius: 10px;
    width: 30%;
    text-decoration: none;
    color: black;
}

.noticia img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.noticia:hover {
    transform: scale(1.03); /* fer que sobresurti al passar amb el ratolí per sobre */
}


.boto-noticies {
    text-align: center;
    margin-top: 20px;
}

.boto-noticies a {
    background-color: #b30000;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
}

.boto-noticies a:hover {
    background-color: #025a00;
}

/* carusell de imatges */

.carrussell {
	text-align: center;
}

.slides {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.slide {
    display: none;
    position: absolute;
    width: 100%;
}

.slide img {
    width: 60%;
    height: 300px;
    object-fit: cover;
    margin: auto;
    display: block;
}

/* primera imatge visible per defecte */
.slide:nth-of-type(4) {
    display: block;
}

#slide1:target ~ .slide { display: none; }
#slide1:target ~ .slide:nth-of-type(4) { display: block; }

#slide2:target ~ .slide { display: none; }
#slide2:target ~ .slide:nth-of-type(5) { display: block; }

#slide3:target ~ .slide { display: none; }
#slide3:target ~ .slide:nth-of-type(6) { display: block; }

/* boles del carusell */
.navegacio a {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: #ccc;
    border-radius: 50%;
    margin: 5px;
    text-indent: -9999px;
}

.navegacio a:hover {
    background: #025a00;
}


/* footer */

footer {
    display: flex;
    justify-content: space-between;
    background: #e0e0e0;
    padding: 20px;
}

.newsletter input {
    padding: 5px;
    margin-top: 5px;
}

button {
    background-color: #b30000;
    color: white;
    border: none;
    padding: 6px;
    cursor: pointer;
}

button:hover {
    background-color: #025a00;
}

.dades {
    text-align: center;
    font-size: 12px;
    padding: 10px;
}



/* Pàgina què és */

.bloc {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    margin: 30px auto;
    width: 90%;
}


.text {
    width: 45%;
}

.text h2 {
    color: #025a00;
}

.bloc img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
}

.imatges-finals {
    display: flex;
    justify-content: center;
    gap: 100px;
}

.imatges-finals img {
    width: 550px;
    height: 350px;
    object-fit: cover;
    border-radius: 10px;
}




/* Pàgina on celebrar...*/

.provincies h1 {
    color: #b30000;
	text-align: center;
    padding: 30px;
}


.contenidor-provincies {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 90%;
    margin: auto;
    gap: 30px;
}


.blocprovincia {
    width: 45%;
    position: relative;
    border-radius: 10px;
}


.blocprovincia img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    filter: brightness(70%); /* per enfosquir una mica la imatge i es pugui veure el text */
}

.blocprovincia:hover {
    transform: scale(1.03); /* fer que al passar per sobre sobresurti */
}

.text-imatge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* perquè surti al mig el text */
    text-align: center;
    color: white;
}

.text-imatge p {
    font-weight: bold;
}

/*Contacte*/
form {
    width: 70%;
    margin: auto;
    padding: 25px;
	border: 1px;
}

input, select, textarea {
	width: 100%;
	padding: 5px;
	margin: 5px 0;
	border: 1px solid #ccc;
	border-radius: 4px;
}

input[type="submit"] {
	background-color: #025a00;
	color: white;
	cursor: pointer;
	border: none;
	padding: 10px;
}

input[type="submit"]:hover {
    background-color: #b30000;
}

/*Taula*/

table {
    width: 90%;
    border-collapse: collapse;
    background-color: white;
	margin: auto;
    margin-top: 15px;
}

th, td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: center;
}

th {
    background-color: #b30000;
    color: white;
}

td {
    background-color: #f5f5f5;
}

.centre {
    text-align: center;
}

/*História*/
.seccio {
    padding: 70px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.contingut {
    display: flex;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.text {
    flex: 1;
    min-width: 320px;
}

.imatge {
    flex: 1;
    min-width: 320px;
}

.imatge img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

/* Províncies */
.provincies .text {
    width: 100%;
    max-width: 900px;
    margin: auto;
}

.provincies .bloc {
    width: 100%;
    max-width: 900px;
    margin: 20px auto;
    padding: 0;
    background: none;
}

.provincies .bloc img {
    width: 100%;
    height: 280px;
    object-fit: cover; /* retalla bé sense deformar */
    border-radius: 10px;
    display: block;
}

.intro {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
}
