/*
Theme Name:     Prosphera
Theme URI:      n/a
Template:       kadence
Author:         Alessandro Bonacina
Author URI:     https://www.alessandrobonacina.com
Description:    Kadence child theme built for Prosphera, based on Kadende theme v 1.2.9
Version:        1.2.9
License:        GNU General Public License v3.0 (or later)
License URI:    https://www.gnu.org/licenses/gpl-3.0.html
*/

/* SCHEMA HOW-TO RANK MATH */
p.rank-math-howto-duration {
    margin-block-end: 1rem;
}
#rank-math-howto .rank-math-step:not(:last-child) {
    margin-block-end: 1rem;
    padding-block-end: 1rem;
    border-block-end: 1px solid var(--global-palette1);
}
:is(.rank-math-howto-supply, .rank-math-howto-supply + ul, .rank-math-howto-supply + ul + p, .rank-math-howto-tools, .rank-math-howto-tools + ul) {
    display: none;
    visibility: hidden;
}

/* TAXONOMY CLIENTE */
.info-box {
    width: max-content;
    margin: 0 auto;
    overflow: visible !important;
}
body.tax-cliente .content-area {
	margin-top: 2rem;
}
/* SEO TEXT BEFORE LOOP GRID */
:is(.seo-text-before-grid, .seo-text-after-grid) {
    width: min(800px, 100%) !important;
	margin: 1rem auto 0;
	padding: 1.5rem;
    background-color: rgba(255, 255, 255, 0.4);
    z-index: 9;
    backdrop-filter: blur(20px);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0px 5px 25px rgba(255, 255, 255, 0.2);
	display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 0.5rem;
}
body.color-switch-dark :is(.seo-text-before-grid, .seo-text-after-grid) {
    background-color: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 0, 0, 0.2);
    box-shadow: 0px 5px 25px rgba(0, 0, 0, 0.2);
}
:is(.seo-text-before-grid, .seo-text-after-grid) p {
    margin: 0;
}
/* SEO TEXT AFTER LOOP GRID */
.seo-text-after-grid {
    margin: -3rem auto 0 auto;
    padding: 4.5rem 1.5rem 1rem 1.5rem;
}

/* ACFE FORMS */
.acfe-form .acf-fields.acf-form-fields {
    display: flex;
    flex-wrap: wrap;
}
.acfe-form .acf-fields.acf-form-fields > .acf-field {
    padding: 0.5rem !important;
}
.acfe-form .acf-actions.-hover {
    display: none !important;
}
:is(.acfe-form ul.acf-radio-list, .acfe-form .acf-button-group) {
    list-style: none;
    display: flex;
    gap: 1rem;
    margin: 0;
    padding: 0;
}
:is(.acfe-form ul.acf-radio-list li label input, .acfe-form .acf-button-group label input) {
    margin-right: 0.5rem;
}
.acfe-form .acf-input {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.acfe-form .acf-button-group label:not(.selected) {
    background: transparent;
	color: var(--global-palette3);
}
.acfe-form .acf-field[data-width="50"] {
    width: 50% !important;
}
.acfe-form .acf-field[data-width="33"] {
    width: 33% !important;
}
input:is([type=text], [type=email], [type=url], [type=password], [type=search], [type=number], [type=tel], [type=range], [type=date], [type=month], [type=week], [type=time], [type=datetime], [type=datetime-local], [type=color], textarea) {
    width: 300px;
}
div#ui-datepicker-div {
    width: min(300px, 100%);
}
.acfe-form .acf-field[data-type="file"] .acf-input {
    margin-block-start: 1rem;
}
form.acfe-form .acf-field p.description {
    color: var(--global-palette3);
    font-size: 0.85rem;
    line-height: 1.2em;
}
form.acfe-form .acf-input-prepend, form.acfe-form .acf-input-append {
    background: transparent;
    border: 0;
    min-height: 20px;
    color: var(--global-palette3);
}
form.acfe-form input[readonly="readonly"] {
	background-color: transparent;
    border: 0;
    font-size: 1.1rem;
    font-weight: 600;
	padding: 0;
}
form.acfe-form .acf-form-submit {
    display: flex;
    justify-content: center;
    margin: 2rem auto 0;
}
form.acfe-form .acf-field-group .acf-fields {
    border: 0;
    background: transparent;
}
@media (max-width: 1024px) {
	.acfe-form .acf-field[data-width="33"] {
		width: 50% !important;
	}
}
@media (max-width: 767px) {
	input:is([type=text], [type=email], [type=url], [type=password], [type=search], [type=number], [type=tel], [type=range], [type=date], [type=month], [type=week], [type=time], [type=datetime], [type=datetime-local], [type=color], textarea) {
		width: 100%;
	}
}
@media (max-width: 580px) {
	.acfe-form .acf-field[data-width="50"] {
		width: 100% !important;
	}
	.acfe-form .acf-field[data-width="33"] {
		width: 100% !important;
	}
@media (hover: hover) and (pointer: fine) {
	form.acfe-form select {
		height: auto;
		overflow: hidden;
	}
}