:root {
  --main-color: #003A70;
  --second-color: #C00000;
  --third-color: #EBEFF4;
  --four-color: #a5bbce;
  --text-color: #003A70;
}



.responsiveBtnContainer{display:none;}
        
/* =========================== 
        TOP BAR HEADER   
   =========================== */
.miniBarraSuperior {
	width: 100%;
	background: var(--blau);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	padding: 0.3rem 0;
}

.xarxesHeader {
	display:flex;
	flex-wrap:wrap;
	gap:0.8rem;
	align-self:center;
	margin-top:0.45rem;
}

.headerIcoFacebook{height:2rem;}
.headerIcoTwitter{height:2rem;}
.headerIcoInsta{height:2rem;}
.headerIcoFacebookBlanc{height:1.5rem;}
.headerIcoTwitterBlanc{height:1.5rem;}
.headerIcoInstaBlanc{height:1.5rem;}
.headerIcoYT{width:2rem;margin: auto 0.8rem;}
 
 .margin2 {
 	margin: 0px 2rem;
 }     
 
.logo{
	height:73px; 
	width:100px;
	display: flex;
	justify-content: center;
	float:left;
	cursor:pointer;
	margin: auto 3rem;
}

.logofepolHeaderImg{width:auto;height:35px;margin:auto;}

a:visited{ color: inherit; }

 

.sticky {
    position: sticky;
    top: 0;
    /* background:#0C2D4E;  */
    z-index: 100;
    
    background: #FFF;
    
    -webkit-box-shadow: 0px 5px 6px -4px rgba(0,0,0,0.48);
    /* -moz-box-shadow: 0px 5px 6px -4px rgba(0,0,0,0.48); */
    box-shadow: 0px 5px 6px -4px rgba(0,0,0,0.48);
    
    transition: transform 0.4s ease, opacity 0.4s ease;
}

/* Oculto hacia arriba */
.sticky.hide {
  transform: translateY(-100%);
  opacity: 0;
}

/* Sombra cuando reaparece */
.sticky.shadow {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}




@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


 /*.........................................................................................
     ESTILS DEL HEADER
   ......................................................................................... */
.firstHeaderContainer{
    display:flex;
    flex-wrap:wrap; 
    gap:1.2rem;
    align-items: center;
    width:100%;
    padding: 1.3rem 1.5rem 0rem 1.5rem;
    font-family: 'Montserrat', sans-serif;
}

.btnContainer1{
    display:flex;
    margin-left:auto;
    gap:1rem;
}

.menuBtnContainer{
    display:flex;   
    align-items: center;
    gap:0.5rem;
    width:fit-content;
    font-weight:300;
    font-size:0.9rem;
    background: var(--main-color);
    color:#FFF;
    padding:1rem 1rem;
    cursor:pointer;
}

.hdrBtnContainer{
    display:flex;
    gap:0.5rem;
    justify-content:center;
    align-items:center;
    width:fit-content;
    cursor:pointer;
    font-size:0.8rem;
    padding:0.6rem 1rem;
    color:#FFF; /* color:var(--main-color);  */
}


.colorIconBtnHdr{color:#FFF; /* color:var(--main-color);  */}



.logoContainer{width:15rem;}
.idiomaWidth{width:7.5rem;padding:0.6rem 0;}
.logoHeight{height:3rem;}


 /*.........................................................................................
     BOTONS DE NAVEGACIÓ INFERIORS DEL HEADER
   ......................................................................................... */
.headerMenuItems{
    display:flex;
    width:100%;
    gap:2rem;
    justify-content:center;
}
.headerMenuItems li {list-style: none;}
.headerMenuItems li a:not(.dropdownStyle){
    padding:0.5rem 0;
    text-decoration: none;
    font-size:1rem;
    font-weight:700;
    
    background: linear-gradient(to left,  var(--main-color) 50%, var(--second-color) 50%);
    background-size: 200% 100%;
    background-position: right bottom;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: background-position 0.3s ease;
}


/*  ANIMACIÓ DE  LA RATLLA INFERIOR AL HOVER  */
.animacioBorder{position:relative;}
.animacioBorder::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  height: 2px; /* grosor del borde */
  width: 100%;
  background-color: var(--second-color); /* color del borde */
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease-in-out;
}

/*  Activem l'animacióde la ratlla inferior a. hover */
.headerMenuItems li:hover .animacioBorder:after{
  transform: scaleX(1); /* hace que crezca horizontalmente */
}

.headerMenuItems li:hover a{
   background-position: left bottom;
}







 /* ==============================================================================
    	DROPDOWN
============================================================================== */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-button {
  display:flex;
  gap:0.5rem;
  color: var(--blau);
  cursor: pointer;
  user-select: none;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: white;
  min-width: 200px;
  /* box-shadow: 0px 4px 8px rgba(0,0,0,0.1); */
  border: 1px solid #ccc;
  z-index: 1;
  border-radius: 4px;
  margin-top: 1rem;
}

.dropdown-content a {
  color: var(--blau);
  font-size:0.9rem;
  font-weight:500;
  padding: 10px 14px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: #f0f0f0;
}

.dropdown.show .dropdown-content {
  display: block;
}
    
 /* CAMBIAMOS EL BACKGROUN DEL DROPDOWN DE CATEGORIES AL HACER CLIC SOBRE UN CATEGORIA */
.dropdown-item:active {
  background-color: green !important; /* usa el color que quieras */
  color: white; /* o el color de texto que prefieras */
}
    
    
    
    



 /*.........................................................................................
    ESTILS PANTALLES PETITES PER A DISPOSITIUS MOBILS
   ......................................................................................... */

   /*==========================================
 		P A N T A L L A   F I N S   1600px
 	========================================== */
    @media screen and (max-width: 1600px) {
        
        .dropdown-content { left:-4rem; } /* Com el dropdown queda ocult el desplacem a l'esquerra */
    
    }
    
    
    
    /*==========================================
 		P A N T A L L A   F I N S   1500px
 	========================================== */
    @media screen and (max-width: 1500px) {
    
        .logoContainer{width:2rem;}
        .firstHeaderContainer{gap:1rem;}
        .idiomaWidth{width:4rem;}

        
        .dropdown-content { left:-7.6rem; } /* Com el dropdown queda ocult el desplacem a l'esquerra */
    }
    
    /*==========================================
 		P A N T A L L A   F I N S   1100px
 	========================================== */
    @media screen and (max-width: 1100px) {
    
        .firstHeaderContainer{gap:0.5rem; padding: 1.8rem 1.5rem 1.8rem 1.5rem;}
        .responsiveBtnContainer{display:block;cursor:pointer;}
        .secongHeaderContainer{display:none;}
        .responsiveBtnContainer{width:auto;padding:0.6rem 0.2rem;}
        .logoContainer{width:1rem;}
    
    }
    
    
    /*==========================================
 		P A N T A L L A   F I N S   750px
 	========================================== */
    @media screen and (max-width: 750px) {
    
        .amagaMobil{display:none;}
    
    }
    
    
    /*==========================================
 		P A N T A L L A   F I N S   600px
 	========================================== */
    @media screen and (max-width: 600px) {
        .miniBarraSuperior{justify-content:center;}
        .xarxesHeader{display:none;}
    }
    
