/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.2
 Text Domain:  bricks


#a41a28 Red 1
#b64853 Red 2
#d18c93 Red 3
#e3babe Red 4
#acadaf Gray 1
#bcbdbf Gray 2
#d6d7d8 Gray 3
#e6e5e6 Gray 4
#000000 Black
#ffffff White
#431b86 Purple 1
#69499e Purple 2
#8e76b6 Purple 3
#cf9100 Yellow 1
#d9a733 Yellow 2
#ecd399 Yellow 3
*/



/*+++++++++++++++  MAX HEIGHT 3RD LEVEL MENU ++++++++++++++++++++++++++++++++*/
.sub-menu    li.menu-item-has-children   .sub-menu.brx-submenu-positioned {
	max-height: calc(100vh - 220px);
    overflow-y: auto;
    overflow-x: hidden;
}

/* Scrollbar width */
.sub-menu.brx-submenu-positioned::-webkit-scrollbar {
    width: 12px; 
}

/* Scrollback background */
.sub-menu.brx-submenu-positioned::-webkit-scrollbar-track {
    background-color: #e6e5e6;  /*gray n. 4*/
}

/* Scrollbar color */
.sub-menu.brx-submenu-positioned::-webkit-scrollbar-thumb {
    background-color: #8e76b6;	  /*purple n. 3*/
    border-radius: 2px;       	/* Arrotonda gli angoli della maniglia */
}

/* Scrollbar hover */
.sub-menu.brx-submenu-positioned::-webkit-scrollbar-thumb:hover {
    background-color: #69499e; 	  /*purple n. 2*/
}
/*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/



/*+++++  EVITA CHE SI RIDIMENSIONI LA PAGINA a scopo Web Core Vitals - ANTITRACCIAMENTO di Firefox +++++++++++++*/
[class*="brxe-"], 
[class*="bricks-"] { 
will-change: auto !important; 
}
/*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/



::placeholder {
  color:#bcbdbf !important;
  opacity:1 !important;
}

p {margin-bottom:20px;}


/*Fix tag strong with tag <h...>*/
.post-template-default h1 strong   ,   .post-template-default h2 strong  {
	font-weight:700;
}
.post-template-default h3 strong  {
	font-weight:700;
}
.post-template-default h1 ,   .post-template-default h2  , .post-template-default h3  ,  .post-template-default h4{
	margin-bottom:14px;
}

/* Increase contrast of form success message */
.message.success {
	color:#07643A;
}

/*List type in accordion*/
.accordion-content-wrapper  ul:not(.options-wrapper)  li{list-style-type: disc;}


/* Add padding on top and bottom of sub menu in mobile */
#menu-primary-menu-2 .sub-menu{
	padding-top:8px;
	padding-bottom:8px;	
}


/* Footer - Don't wrap/break single menu item */
footer .bricks-nav-menu {
	flex-wrap:wrap;
}
footer .bricks-nav-menu li a {
	white-space: nowrap;
}

/* Footer - Remove border-right on last item */
footer .bricks-nav-menu > li:last-child a {
	border-right-color: transparent;
}

/* Grid */
.gg-posts-grid .bricks-layout-item > a { 
	display:block; height:100% 
}
.gg-posts-grid .bricks-layout-item > a > .bricks-layout-inner { 
	height:100% 
}
.gg-posts-grid .bricks-layout-item > a > .bricks-layout-inner .content-wrapper > div:last-child { 
	margin-top:auto 
}

/* Accordion - Line under last element */
.accordion-item:last-of-type{
	border-bottom: 1px solid var(--bricks-color-sfhobu);
}
/* Accordion - Fixed width of the icons to avoid that text move on right after click */
:where(.brxe-accordion) .accordion-title .icon {
    width: 12px;
}
/*align accordion icons to top*/
:where(#brx-content .brxe-accordion) .accordion-title .icon {
	align-self: flex-start;
	margin-top: 0.2em;
}

/* List - Correge l'impossibilità di inserire i tag (es. a) nel campo description di brics */
.brxe-list   li   div.description:has(> a) {
  display: inline-block;
}
.brxe-list  li  div.description {
	padding-left:18px;
}
.brxe-list  li:marker {
	list-style-type: none;
}


/* Rotate the default icon (chevron) in Nested Accordion */
.brxe-block .accordion-title-wrapper .brxe-icon  {
	transform: rotate(-90deg);
}
.brxe-block .accordion-title-wrapper[aria-expanded='true']  .brxe-icon   {
	transform: rotate(90deg);
  transition: 200ms transform ease-in-out;
}


/* Remove the classes from Contact us menu because it's only a link to Branches page */
/* desktop */
@media screen and (min-width: 768px) {
	
	.never-active  ,  .never-active a {
		color: inherit !important; border-bottom:none !important;
	}
	header .never-active a:hover {
		border-bottom: 2px solid var(--bricks-color-mvbxdg) !important;
		color: var(--bricks-color-mvbxdg) !important;
	}

}
/* tablet and mobile */
#menu-top-menu-2  .never-active  a {
	color: white !important;
}
#menu-top-menu-2  .never-active  a:hover {
	color: white !important;
	underline:none;
}
.input, input:not([type=submit]), select, textarea,
#brx-content .input, #brx-content input:not([type=submit]), #brx-content select, #brx-content textarea {
	transition-property: border-color, box-shadow;
	line-height:40px;
}

@media(min-width:993px) {
	/* 3rd level sub-sub-menu chevron icon */
	.sub-menu .brx-submenu-toggle button {
		transform: rotate(-90deg);
	}
}

ul.bricks-nav-menu ul.sub-menu > li.menu-item > .brx-submenu-toggle {
	justify-content: space-between;
}
ul.bricks-nav-menu ul.sub-menu > li.menu-item > .brx-submenu-toggle > button{
	padding: 0 15px;
}

:where(.brxe-accordion .accordion-content-wrapper) a, :where(.brxe-icon-box .content) a, :where(.brxe-list) a, :where(.brxe-post-content):not([data-source="bricks"]) a, :where(.brxe-posts .dynamic p) a, :where(.brxe-shortcode) a, :where(.brxe-tabs .tab-content) a, :where(.brxe-team-members) .description a, :where(.brxe-testimonials) .testimonial-content-wrapper a, :where(.brxe-text) a, :where(a.brxe-text), :where(.brxe-text-basic) a, :where(a.brxe-text-basic), :where(.brxe-post-comments) .comment-content a {
	text-decoration: underline;
	text-underline-position: under;
	text-underline-offset: 0.05em;
	text-decoration-color: inherit;
	text-decoration-thickness: 0.1em;
	transition: 0.3s;
}
:where(.brxe-accordion .accordion-content-wrapper) a:hover, :where(.brxe-icon-box .content) a:hover, :where(.brxe-list) a:hover, :where(.brxe-post-content):not([data-source="bricks"]) a:hover, :where(.brxe-posts .dynamic p) a:hover, :where(.brxe-shortcode) a:hover, :where(.brxe-tabs .tab-content) a:hover, :where(.brxe-team-members) .description a:hover, :where(.brxe-testimonials) .testimonial-content-wrapper a:hover, :where(.brxe-text) a:hover, :where(a.brxe-text):hover, :where(.brxe-text-basic) a:hover, :where(a.brxe-text-basic):hover, :where(.brxe-post-comments) .comment-content a:hover {
	color: #8f00d9;
	text-decoration: underline;
	text-decoration-color: #8f00d9;
	text-decoration-thickness: 0.1em;
	transition: 0.3s;
}
#brx-content .brxe-list li a:hover, #brx-content .brxe-list li a span:hover {
	transition: 0.3s;
	color: #8f00d9;
}

/*align list icons to top*/
:where(#brx-content .brxe-list) .icon {
	align-self: flex-start;
	margin-top: 0.2em;
}

/* Wpml, Adjust spaces and underline of the flags on top menu */
@media(min-width:768px) {
	li.wpml-ls-item a{
		padding-bottom:2px;
	}
	li.wpml-ls-current-language a{
		border-bottom: 2px solid var(--bricks-color-mvbxdg) !Important;
	}
}

/* Whatup plugin - Social chat - Add space on the righ to avoid overlap with "Go to top" button */
@media(min-width:768px) {
	.qlwapp__container.qlwapp__container--bottom-right .qlwapp__button {
    	margin-right: 95px !important;
	}
}


/* Articles */
/*   where(.brxe-post-content):not([data-source="bricks"]) a,   */
.wp-block-button__link.wp-element-button{
	text-decoration: none;
	background-color: #a41a28;
	color: #ffffff;
	font-size: 1rem;
    line-height: 1.1;
    padding: 10px 24px;

}
.wp-block-button__link.wp-element-button:hover{
	text-decoration: none;
	background-color: #d18c93 !important;
}
@media(max-width:478px) {
	/*responsive columns: place columns on a singular line*/
	.agency-template-default .wp-block-group .is-layout-flex{
		flex-direction: column;
	}
}


blockquote{
	font-family:inherit;
	border-left:4px solid var(--bricks-color-mvbxdg) !important;
	margin: 10px 0 50px 0;
	padding-top: 20px;
	padding-bottom: 20px;
	color:var(--bricks-color-mvbxdg);
}

cite{
	font-family:inherit;
	color:#000000;
	text-transform:none !important;
	opacity:1 !important;
}

/* Post page filter - Fix of checkbox filter - Removal of list disc, reinforce border color */
.brxe-filter-checkbox .brx-filter-options{
	list-style: none;
	padding-inline-start: 6px;
}
.brxe-filter-checkbox .brx-filter-options .brx-input-indicator{ 
	border-color: #bcbdbf;
}



/*Fix wpml menu with text */
@media screen and (min-width: 768px) {
header .wpml-ls-item.wpml-ls-first-item{
	padding-left: 30px;
	border-left: 1px solid #CCCCCC;
}
}

header .wpml-ls-item span{
	margin-top: -4px;
    font-size: 0.85rem;
}


/*Add distance between checkbox and label, for example in "Choose Category" in news*/
.brxe-filter-checkbox .brx-option-text {
    padding-left: 6px;
}

.accordion-title-wrapper {
  pointer-events: auto !important;
}


/*   HOME, manda a capo i bottoni della header */
@media (max-width: 1300px) {

 .home-header-buttons{
        flex-direction: column !important;
        width: 85%;
    }
}