/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/


html {
	overflow-x: hidden;
}
body {
	overflow-x: hidden;
}

/* header */

.main-navigation .main-nav > ul {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 2rem;
}

.main-navigation .main-nav ul li a {
  padding-left: 0px!important;
  padding-right: 0px !important;
}


.menu-item-has-children .dropdown-menu-toggle {
	padding-right: 0px !important;
}


.sub-menu {
	border: solid 1px var(--contrast);
	padding: 1rem !important;
}


@media (min-width: 769px) {
    .main-navigation .menu > .menu-item > a::after {
        content: "";
        position: absolute;
        right: 0;
        left: 50%;
        bottom: 15px;
        -webkit-transform: translate3d(-50%,0,0);
        transform: translate3d(-50%,0,0);

        display: block;
        width: 0;
        height: 2px;

        background-color: currentColor;
        transition: 0.3s width ease;
    }
    .main-navigation .menu > .menu-item.current-menu-item > a::after,
    .main-navigation .menu > .menu-item.current-menu-ancestor > a::after,
    .main-navigation .menu > .menu-item > a:hover::after {
        width: 100%;
    }
}


.icon-menu-bars svg {
	height: 1.5rem !important;
	width: 1.5rem !important;
}

@media (max-width: 768px) {
	#menu-menu {
		border-bottom: solid 1px var(--contrast);
	}
}

/* contingut */

.forma_1 { 
  width:100%;
  height: 345.39px;
  clip-path: polygon(calc(100% - 0px) calc(100% - 0px), 147.17px calc(100% - 0px), 147.17px calc(100% - 0px), 144.66344px calc(100% - 0.15031999999991px), 142.22792px calc(100% - 0.59175999999985px), 139.88468px calc(100% - 1.31004px), 137.65496px calc(100% - 2.2908799999999px), 135.56px calc(100% - 3.52px), 133.62104px calc(100% - 4.9831199999999px), 131.85932px calc(100% - 6.6659599999999px), 130.29608px calc(100% - 8.5542399999999px), 128.95256px calc(100% - 10.63368px), 127.85px calc(100% - 12.89px), 1.63px 28.96px, 1.63px 28.96px, 0.37545px 24.80058px, 0.0056000000000001px 20.65664px, 0.45415px 16.62766px, 1.6548px 12.81312px, 3.54125px 9.3125px, 6.0472px 6.22528px, 9.10635px 3.65094px, 12.6524px 1.68896px, 16.61905px 0.43882px, 20.94px 5.6132383787133E-31px, calc(100% - 0px) 0px, calc(100% - 0px) calc(100% - 0px)); 
  background-color: bisque;
}

.forma_1b{ 
  width: auto;
  height: 345.39px;
  clip-path: polygon(0px 0px, calc(100% - 147.17px) 0px, calc(100% - 147.17px) 0px, calc(100% - 144.66344px) 0.15032px, calc(100% - 142.22792px) 0.59176px, calc(100% - 139.88468px) 1.31004px, calc(100% - 137.65496px) 2.29088px, calc(100% - 135.56px) 3.52px, calc(100% - 133.62104px) 4.98312px, calc(100% - 131.85932px) 6.66596px, calc(100% - 130.29608px) 8.55424px, calc(100% - 128.95256px) 10.63368px, calc(100% - 127.85px) 12.89px, calc(100% - 1.63px) calc(100% - 28.96px), calc(100% - 1.63px) calc(100% - 28.96px), calc(100% - 0.37544999999989px) calc(100% - 24.80058px), calc(100% - 0.0055999999999585px) calc(100% - 20.65664px), calc(100% - 0.45414999999991px) calc(100% - 16.62766px), calc(100% - 1.6548px) calc(100% - 12.81312px), calc(100% - 3.5412499999999px) calc(100% - 9.3125px), calc(100% - 6.0472px) calc(100% - 6.22528px), calc(100% - 9.1063499999999px) calc(100% - 3.65094px), calc(100% - 12.6524px) calc(100% - 1.68896px), calc(100% - 16.61905px) calc(100% - 0.43881999999996px), calc(100% - 20.94px) calc(100% - 5.6843418860808E-14px), 0px calc(100% - 0px), 0px calc(100% - 0px), -144.33714px calc(100% - 9.6709199999999px), -228.08832px calc(100% - 35.92056px), -261.94518px calc(100% - 74.60424px), -256.59936px calc(100% - 121.57728px), -222.7425px calc(100% - 172.695px), -171.06624px calc(100% - 223.81272px), -112.26222px calc(100% - 270.78576px), -57.02208px calc(100% - 309.46944px), -16.03746px calc(100% - 335.71908px), -2.1964106272649E-29px calc(100% - 345.39px)); 
  background-color: bisque;
}




.forma_2 { 
  width:100%;
  height: 394.93px;
  clip-path: polygon(499.93px 241.12px, 499.93px 34.05px, 499.93px 34.05px, 499.48447px 28.5282px, 498.19456px 23.2896px, 496.13029px 18.4044px, 493.36168px 13.9428px, 489.95875px 9.975px, 485.99152px 6.5712px, 481.53001px 3.8016px, 476.64424px 1.7364px, 471.40423px 0.4458px, 465.88px 5.6391228771658E-31px, 34.05px 0px, 34.05px 0px, 28.52577px 0.44553px, 23.28576px 1.73544px, 18.39999px 3.79971px, 13.93848px 6.56832px, 9.97125px 9.97125px, 6.56832px 13.93848px, 3.79971px 18.39999px, 1.73544px 23.28576px, 0.44553px 28.52577px, 5.6354250916726E-31px 34.05px, 0px 360.89px, 0px 360.89px, 0.44553px 366.4118px, 1.73544px 371.6504px, 3.79971px 376.5356px, 6.56832px 380.9972px, 9.97125px 384.965px, 13.93848px 388.3688px, 18.39999px 391.1384px, 23.28576px 393.2036px, 28.52577px 394.4942px, 34.05px 394.94px, 346.13px 394.94px, 346.13px 394.94px, 348.82599px 394.8331px, 351.48832px 394.5156px, 354.10553px 393.9923px, 356.66616px 393.268px, 359.15875px 392.3475px, 361.57184px 391.2356px, 363.89397px 389.9371px, 366.11368px 388.4568px, 368.21951px 386.7995px, 370.2px 384.97px, 489.96px 265.21px, 489.96px 265.21px, 491.7895px 263.22951px, 493.4468px 261.12368px, 494.9271px 258.90397px, 496.2256px 256.58184px, 497.3375px 254.16875px, 498.258px 251.67616px, 498.9823px 249.11553px, 499.5056px 246.49832px, 499.8231px 243.83599px, 499.93px 241.14px); 
	  
}

.forma_3 {
	clip-path: polygon(100% 75%, 75% 100%, 0% 100%, 0% 0%, 100% 0%);
	
}


.postal:after {
    content: url(../wp-content/uploads/2026/06/cantonada_blanc.svg);
    transform: none;
  bottom: 0;
  content: "";
  height: 152px;
  pointer-events: none;
  position: absolute;
  right: 0;
  transition: all .3s ease-in-out;
  width: 143px;
  z-index: 3;
}



/* inici */


.postal_carousel .fletxa {
	opacity: 0;
	transition: all 1s ease 0s;
}

.postal_carousel:hover .fletxa {
	opacity: 1;
transition: all 1s ease 0s;
}


.postal_carousel .postal_overlay {
	transition: all 1s ease 0s;
}

.postal_carousel:hover .postal_overlay {
	background: rgba(30, 136, 230, 0.7);
	transition: all 1s ease 0s;
}

/* botons */

.boto:hover .boto_element {
	background: var(--contrast-2);
	color: #fff !important;
	border: var(--contrast-2) solid 1px!important;
}

.boto:hover .boto_text {
	color: #fff !important;
}


.boto:hover .boto_fletxa svg {
	color: #fff !important;
}


/* carrusel */

.gb-carousel-dot {
	border-radius: 0px !important;
	height: 4px !important;
	transition: background-color .3s ease,transform .3s ease;
	width: 23px !important;
}

:where(.gb-carousel-pagination) .gb-carousel-dot.is-active {
	transform: none !important;
}



/* actualitat */

/* filtres */

.facetwp-facet.facetwp-facet-taxonimies_articles.facetwp-type-radio {
	display: flex;
	gap: 1rem;
}


.facetwp-radio {
  background: none !important;
    background-image: none !important;
    background-size: auto;
  background-size: 0px;
  margin-bottom: 4px;
  padding-left: 20px;
  cursor: pointer;
}

.facetwp-radio {
	border: 1px solid var(--contrast);
	padding: 0.7rem 1rem;
	border-radius: 100px;
}

.facetwp-radio.checked {
	border-color: var(--contrast-2);
 	color: var(--contrast-2);
}

.facetwp-counter {
	display: none;
}



/* postals */

.resum {
	  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
}

/* gravity forms */


#input_4_1_3, #input_4_1_6, #input_4_2, #input_4_3 {
	border: none;
	background: transparent;
	border-bottom: 1px solid var(--base);
}

#field_4_6, #field_4_7, #field_5_6, #field_5_7, #field_2_6, #field_2_7 {
	margin-top: -2rem;
}


#input_5_1_3, #input_5_1_6, #input_5_2, #input_5_8, #input_5_3, #input_2_1_3, #input_2_1_6, #input_2_4, #input_2_2, #input_2_5, #input_2_3 {
	border: none;
	background: transparent;
	border-bottom: 1px solid var(--contrast);
	box-shadow: none !important;
}





#gform_submit_button_1, #gform_submit_button_2, #gform_submit_button_3 ,#gform_submit_button_4 {
	background: transparent;
	border: solid 1px var(--base);
	color: var(--base);
	border-radius: 100px;
}


#gform_submit_button_1:hover, #gform_submit_button_2:hover, #gform_submit_button_3:hover, #gform_submit_button_4:hover {
	background: var(--base);
	color: var(--contrast);
}


#gform_submit_button_5, #gform_submit_button_2{
	background: transparent;
	border: solid 1px var(--contrast);
	color: var(--contrast);
	border-radius: 100px;
}

#gform_submit_button_5:hover, #gform_submit_button_2:hover {
	background: var(--contrast);
	border: solid 1px var(--contrast);
	color: var(--base);
	border-radius: 100px;
}



.gfield--input-type-consent {
	text-align: center !important;
}

.gform-footer.gform_footer.top_label {
	display: flex;
	justify-content: center;
	margin-top: 1rem !important;
}

.gform_button {
	min-width: 12rem !important;
	text-transform: uppercase !important;
}