* {
    padding: 0;
    margin: 0;
}
/********************  COOKIES ***********************/
/*propietats banner */
.cookies-box {
    margin: 30px;
    position: fixed;
    display: flex;
    justify-content: center;
    bottom: 0; /* alçada */
    width: 60%; /* amplada */
    background: #000; /* color borde */
    border-radius: 4px; /*cantonades arrodonides */
    transition: all 300ms ease-in-out;
    -webkit-transition: all 300ms ease-in-out;
    -moz-transition: all 300ms ease-in-out;
    -ms-transition: all 300ms ease-in-out;
    -o-transition: all 300ms ease-in-out;
}

/*propietats banner */
.cookies-box .container-cookies {
    padding: 20px 0;
    max-width: 90%;
    display: flex;
    align-items: center;
}

/* propietats text - Este sitio web utiliza cookies... */ 
.cookies-box .container-cookies .paragraphs p {
    color: #fff;
    font-size: 20px;
}

/* propietats text - enllaç Política de cookies... */ 
.cookies-box .container-cookies .paragraphs p a {
    color: grey;
    transition: all 300ms ease-in;
    -webkit-transition: all 300ms ease-in;
    -moz-transition: all 300ms ease-in;
    -ms-transition: all 300ms ease-in;
    -o-transition: all 300ms ease-in;
}

/* propietats text - passar ratolí per sobre - enllaç Política de cookies... */   
.cookies-box .container-cookies .paragraphs p a:hover {
    color: rgb(231, 156, 16);
}

/* propietats situació dels butons */
.cookies-box .container-cookies .buttons {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: 10px;
}

/* propietats dels butons */
.cookies-box .container-cookies .buttons button {
    background: transparent;
    color: #4070f4;
    border-color: #4070f4; /* color borde */
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 2px;
    -moz-border-radius: 40px;
    -ms-border-radius: 40px;
    -o-border-radius: 40px;
    transition: all 300ms ease-in;
    -webkit-border-radius: 40px;
    -webkit-transition: all 300ms ease-in;
    -moz-transition: all 300ms ease-in;
    -ms-transition: all 300ms ease-in;
    -o-transition: all 300ms ease-in;
}

/* propietats dels butons - passar ratolí per sobre - */
.cookies-box .container-cookies .buttons button:hover {
    color: #fff; /* color lletra */
    background: #4070f4; /* color fons */
}

/* propietats separació dels butons */
.cookies-box .container-cookies .buttons button:last-child {
    margin-top: 5px;
}

@media (max-width: 576px) {
    .modal {
        width: 70%;
        height: 40%;
    }
}
/******************* FINAL COOKIES  *********************/

/******************* INICI PÀGINA PRINCIPAL *********************/
body {
  font-family: "Playfair Display", serif;
  font-optical-sizing: auto;
  font-style: normal;
}

.img {
    text-align: center;
}

/* CAPÇALERA MENÚ BLAVA */
.menu{
  background-color: #4070f4; /*color capçalera*/
  color: white; /* color lletra*/
  height: 80px; /* capçalera alçada */
  position: fixed;  /* fixar la capçalera */
  left: 0;
  right: 0;
  margin-top: 0; /*posició alçada capçalera - dalt de tot */
}
/***** BARRA ADREÇES NEGRA *****/
.barra_dades {
    padding: 0 0 0 30px; /* alt dreta baix esq */
    background:black; /*color fons*/
   /* color: white; /*color lletra*/
    display: flex;
    align-items: center;
    justify-content: left;
}
/* propietats BOTONS NIVELL 1 */
.menu__container{
    background: #97aff3;
    justify-content: space-between;
    align-items: center;
    width: 80%;
    height: 70%; /* alçada lletres MENÚ */
    margin: 0 auto;
}

/* sombrejat botons */
.menu__links{
    height: 100%;
    transition: transform .5s;
    display: flex;
}
.menu__item{
    list-style: none;
    position: relative;
    height: 100%;
    --clip: polygon(0 0, 100% 0, 100% 0, 0 0);
    --transform: rotate(-90deg);
}
.menu__item:hover{
    --clip: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
    --transform: rotate(0);
}
.menu__link{
    color: white; /*color lletra menú*/
    text-decoration: none;
    padding: 0 30px;
    display: flex;
    height: 100%;
    align-items: center;
    border-radius: 5px; /*arrodonir cantos botons*/
}
/* MENÚ OPCIONS - Quan passo ratolí per sobre */
.menu__link:hover{
  /*  background-color: rgb(49, 132, 145); */
  background-image: linear-gradient(to right, #0b7dda, #4ab2e2);
}
.menu__arrow{
    transform: var(--transform);
    transition: transform .3s;
    display: block;
    margin-left: 3px;
}
/*SOMBREJAT MENÚ NIVELL 2 - "CATÀLEG" */
.menu__nesting {
    list-style: none;
    transition:clip-path .3s;
    clip-path: var(--clip);
    position: absolute;
    bottom: 0;
    width: max-content;
    transform: translateY(100%);
    /* DESPLEGABLE - quan passo cursor per sobre */
    background-color:rgb(0, 0, 0);
}
/********************************/ 
/* propietats títol PERIFERICS */
.menu__periferics {
    display: flex;
}

.menu__nivell__3 {
    display: flex;
    flex-direction: column;
    list-style: none; /* treure vinyeta */
}

.menu__nivell__3 li {
    display: flex;
}

.menu__nivell__3 li:hover {
    display: flex;
    background: greenyellow;
    flex-direction: column;
    align-items: center;
}



/********************************/

/* ALÇADA BOTONS */
.menu__link--inside{
    padding: 5px 20px 20px 20px;
}

.menu__hamburguer{
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 15px;
    cursor: pointer;
    display: none;
}
.menu__img{
    display: block;
    width: 36px;
}
/*  COS PÀGINA */
 .main {
 	padding-top: auto;
 }
 .container {
    color: #000;
 	width: 85%;
	max-width: 850px;
	margin: auto 5%;
}
/*****  CENTRAR FOTOGRAFIA   *****/
.centrar_foto {
    margin-right: auto;
    display: flex;
    justify-content: right;
}
/*****************************/
.parrafos {
    color: #333; /*color lletra*/
    font-size: 20px; /*tamany lletra*/
    text-align: justify; /*text centrat*/
    margin: 2em 3em 5em 2em;  /*alt dreta baix esq*/
    line-height: 1.5; /*interlineat*/
}
 /*****   PEU PÀGINA   *****/
 .footer {	
 	background: #4070f4;
    color: white;    
    font-size: 20px; /*tamany lletra*/
    line-height: 1.5; /*interlineat*/
    padding: 2em 3em 5em 2em;  /*alt dreta baix esq*/
}
.footer ul {
    text-decoration: none; /* treure subratllat del links */     
font-size: 30px;
}

 
 
 /*****************************/
/*****   VISTA MÒBIL   *****/
@media (max-width:800px){
    .menu__hamburguer{
        display: flex;
    }
    .barra_dades {
display: none;
    }
    .menu__item{
        --clip:0;
        overflow:hidden ;
    }
    .menu__item--active{
        --transform: rotate(0);
        --background: #3f767c;
    }
    .menu__item--show{
        background-color: var(--background);
    }
    .menu__links{
        position: fixed;
        max-width: 400px;
        width: 100%;
        /* capçalera alçada */
        top: 80px;
        bottom: 0;
        right: 0;
        background-color: #3f767c;
        overflow-y: auto;
        display: grid;
        grid-auto-rows: max-content;
        transform: translateX(100%);
    }
    .menu__links--show{
        transform: unset;
        width: 100%;
    }
    .menu__link{
        padding: 25px 0;
        padding-left: 30px;
        height: auto;
    }
    .menu__arrow{
        margin-left: auto;
        margin-right: 20px;
    }
    .menu__nesting{
        display: grid;
        position: unset;
        width: 100%;
        transform: translateY(0);
        height: 0;
        transition: height .3s;
    }
/* fons desplegable */
    .menu__link--inside{
        width: 90%;
        margin-left: auto;
        border-left: 1px solid rgb(49, 132, 145);
    }
}
