:root {
	font-family: sans-serif;
	padding-top: 0px;
}
/* ESTILS GENERALS */
body {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
  background-color: #D9D9D9;
  background-size: cover;
  background-position: center;
}
h1 {
  font-weight: bold;
  font-size: 75px;
  color: #0100B2;
}

h2 {
  font-weight: normal;
  font-size: 35px;
  color: #0100B2;
  font-style: italic;
}

h3 {
	font-weight: bold;
	font-size: 20px;
	color: #0100B2;
}

h4 {
	font-weight: bold;
	font-size: 16px;
}

p {
	font-weight: normal;
	font-size: 16px;
}

/* CSS específic per "home" */

.index {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	padding-left: 200px;
	padding-right: 200px;
}

.index h3 {
	width: 100%;
	text-align: center;
	width: 1fr;
}

.centre {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	margin-top: 300px;
	row-gap: 5px;
}

.centre h1, .centre h2 {
	margin: 0px;
	padding: 0px;
}

.tot {
	background-image: url('foto4.jpg');
	background-size: cover;
	background-position: center; 
	background-repeat: no-repeat; 
	height: 100vh; 
	width: 1fr;
}


/* CSS específic per "curriculum" */
.disseny {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: flex-end;
  flex-wrap: nowrap;
  border-bottom: 2px solid #0100B2;
  margin-bottom: 10px;
}

.item {
flex-grow: 0;
flex-shrink: 1;
flex-basis: auto;
}

.disseny {
  width: 100%;
  padding: 40px 30px;
  box-sizing: border-box;
  padding-top: 10px;
  padding-bottom: 0px;
}

.disseny h2 {
	justify-content: right;
	align-items: right;
	padding-right: 40px;
}

.capcalera {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  border-bottom: 2px solid #0100B2;
  margin-bottom: 0px;
  width: 100%;
  padding-left: 40px;
  padding-right: 40px;
  box-sizing: border-box;
  padding-top: 0px;
}

.item {
flex-grow: 0;
flex-shrink: 1;
flex-basis: auto;
}

.capcalera p {
  font-weight: 350;
  font-size: 24px;
  justify-content: space-between;
  justify-items: flex-end;
  padding: 20px;
  color: ;
}

.capcalera img {
	padding-left: 20px;
}
.competencies{
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	grid-template-rows: repeat(2, 1fr);
	grid-column-gap: auto;
	padding-left: 40px;
	padding-bottom: 20px;
	border-bottom: 2px solid #0100B2;
}

.item0 { 
	grid-column-start: 1;
	grid-column-end: 4;
	grid-row-start: 1;
	grid-row-end: 1;
	padding-bottom: 5px;
}
.item01 { 
	grid-column-start: 4;
	grid-column-end: 7;
	grid-row-start: 1;
	grid-row-end: 1;
	padding-bottom: 5px;
}

.info-academica {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	grid-template-rows: repeat(2, 1fr);
	grid-column-gap: auto;
	padding-left: 40px;
	border-bottom: 2px solid #0100B2;
    margin-bottom: 10px;

}

.titol-fa {
	grid-column-start: 1;
	grid-column-end: 3;
	grid-row-start: 1;
	grid-row-end: 1;
	padding-bottom: 5px;
}

.contenidor-pare {
	display: flex;
	flex-direction: column;
	gap: 40px;
	padding-right: 40px;
	border-bottom: 2px solid #0100B2;
    margin-bottom: 10px;
}

.experiencia-titol h3 {
	margin-left: 50px;
}

.experiencia1, .experiencia2 {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: nowrap;
  margin-bottom: 10px;
  padding-left: 40px;

}

.item {
flex-grow: 0;
flex-shrink: 1;
flex-basis: auto;
}

.peu{
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-template-rows: repeat(1, 1fr);
	grid-column-gap: 20px;
	padding-left: 40px;
	padding-right: 50px;
	justify-content: center;
	justify-items: center;
	align-items:center;
	color:#0100B2 ;
}


/* CSS específic per "portfoli" */

.fotos-inici {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 30px;
  width: 1fr;
  padding: 30px;
  padding-bottom: 0px;
  border-top: 2px solid #0100B2;
}

.fotos-inici img {
	width: 100%;
	height: auto;
	flex: 1;
	object-fit: cover;
}


.grid-1 {
  display: grid;
  grid-template-columns: 200px 1fr; /* columna 1 200px + columna lo que quedi */
  grid-auto-rows: auto;
  column-gap: 295px; 
  row-gap: 10px; 
  align-items: center;
  width: 100%;
  padding: 0px 30px;
  border-bottom: 2px solid #0100B2;

}

.grid-1 h4 {
	margin: 0px;
	text-align: left;
}

.grid-1 p {
	margin: 0px;
}

.grid-1 h2 {
	font-size: 20px;
}

.projectes {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 1fr;
  padding-left: 30px;
  align-items: flex-start;
  margin-top: 75px;
  justify-content: space-between;
}

.projectes h4 {
	font-weight: normal;
	padding-top: 240px;
	padding-left: 50px;
	justify-items: flex-end;
	align-items: flex-end;
}

.titol-proj {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-items: flex-end;
	row-gap: 0px;
	margin-top: 0px;
	padding-top: 0px;
	border-top: 2px solid #0100B2;
}


.titol-proj h1, .titol-proj img {
	margin: 0px;
	padding: 0px;
}


/* grid projectes */
.grid-proj {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 30px;
  border-top: 2px solid #0100B2;
}

/* Cada casella */
.prim-proj img, .seg-proj img, .terc-proj img, .quart-proj img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.prim-proj img:hover, .seg-proj img:hover, .terc-proj img:hover, .quart-proj img:hover {
	transform: scale(1.1);
}

/* grid projectes 2*/

.grid-proj2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
  gap: 20px;
  margin: 30px;
}

.cinc-proj img, .sis-proj img, .set-proj img, .vuit-proj img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.cinc-proj img:hover, .sis-proj img:hover, .set-proj img:hover, .vuit-proj img:hover {
	transform: scale(1.1);
}


/* Responsive */
@media (max-width: 770px) {
	.capcalera {
    flex-direction: column; 
    align-items: center; 
    text-align: center;
}
  .grid-1 {
    grid-template-columns: 1fr;
  }

 .fotos-inici {
  	flex-direction: column; /* ho has de canviar a column!! */
  	align-items: center;
  	text-align: center;
  }

.projectes {
  flex-direction: column;
  justify-content: space-between;
  width: 1fr;
  
}






