/*
 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.1
 Text Domain:  bricks
*/
/*
#00145A - very dark blue
#14288C - dark blue
#7395FF - light blue
#163F32 - very dark green
#147556 - dark green
#15B482 - light green
#8F00D9 - dark purple
#BA36FF - purple
#9E0D69 - very dark pink (red)
#DD2299 - dark pink
#FF6FCB - pink
*/

::placeholder {
  color:#A3A3A3;
}

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;
}


/*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-banjny);
}
/* 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;
}


/* 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;
	font-size:inherit;
	line-height:1.2;
	background-color: var(--bricks-color-wscqdl);
	color: var(--bricks-color-wfizqi);
	font-weight: 300 !important;
	border-radius: 5px;
}
.wp-block-button__link.wp-element-button:hover{
	text-decoration:none;
}

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;
}



/*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;
}




/*--------------------------------------------------------------------------------------------------------*
/*--------------------------------------------------------------------------------------------------------*/
/* HEADER BPO */

body.body-bpo {
    padding-top: 100px;
}

/* nav sticky */
body.body-bpo .bx-auto-hide-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;

    transform: translate3d(0,0,0);
    transition: transform 0.28s cubic-bezier(.4,0,.2,1), opacity 0.2s ease;
    will-change: transform;
}

/* visibile */
body.body-bpo .bx-auto-hide-nav.is-visible {
    transform: translate3d(0,0,0);
    opacity: 1;
}

/* nascosta */
body.body-bpo .bx-auto-hide-nav.is-hidden {
    transform: translate3d(0,-100%,0);
    opacity: 0.98; /* evita repaint aggressivi */
}

/* admin bar */
body.body-bpo.admin-bar .bx-auto-hide-nav {
    top: 32px;
}

@media (max-width: 782px) {
    body.body-bpo.admin-bar .bx-auto-hide-nav {
        top: 44px;
    }
}

/* header pagina */
body.body-bpo #header-bpo {
    margin-top: 40px;
    transition: margin-top 0.25s ease;
}
