/**
 * Output of Corsi HUB, Corsi HUB Reader and Gravity Forms. Theme tokens only.
 *
 * @package Axtheme
 */

/* Astra and Elementor variables read by the plugins' stylesheets. */
:root {
	--ast-global-color-0: var(--wp--preset--color--ink);
	--ast-global-color-2: var(--wp--preset--color--forest);
	--ast-global-color-4: var(--wp--preset--color--paper);
	--ast-global-color-5: var(--wp--preset--color--surface);
	--ast-normal-container-width: var(--wp--custom--container);
	--e-a-border-radius: 16px;
}

/* ==========================================================================
 * Shared pieces
 * ======================================================================= */
:is(.hbc_corso, .hbc_edizione, .hbc_docente, [data-hbc-search], .hbc_wrap_list_entities, .rdc_courses) :is(img, input, select, textarea) {
	max-width: 100%;
}

:is(.hbc_corso, .hbc_edizione, .hbc_docente, [data-hbc-search], .hbc_wrap_list_entities, .rdc_courses) img {
	height: auto;
}

:is(.hbc_corso, .hbc_edizione, .hbc_docente, [data-hbc-search], .hbc_wrap_list_entities, .rdc_courses) :is(a.button, input[type="submit"], button.button) {
	box-sizing: border-box;
	max-width: 100%;
	padding: 12px 23px;
	border: 1px solid var(--wp--preset--color--ink);
	border-radius: var(--wp--custom--radius);
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--surface);
	font: inherit;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	line-height: 1.4;
	text-decoration: none;
	cursor: pointer;
}

:is(.hbc_corso, .hbc_edizione, .hbc_docente, [data-hbc-search], .hbc_wrap_list_entities, .rdc_courses) :is(a.button, input[type="submit"], button.button):hover {
	background: var(--wp--preset--color--muted);
	border-color: var(--wp--preset--color--muted);
}

/* ==========================================================================
 * Cards: courses, editions, Reader courses, teachers
 * ======================================================================= */
:is(.hbc_inner_edition, .rdc_inner_edition) {
	min-width: 0;
	overflow: hidden;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 16px;
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--ink);
}

:is(.hbc_inner_edition, .rdc_inner_edition) img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 0;
}

:is(.hbc_inner_edition, .rdc_inner_edition) > :not(.hbc_wrapper_img, .rdc_wrapper_img, a:has(.hbc_wrapper_img)) {
	margin-inline: 20px;
	width: calc(100% - 40px);
}

.hbc_inner_edition .hbc_card_edition_header,
.rdc_inner_edition .rdc_card_edition_header {
	padding: 16px 0 12px;
	border-bottom: 1px solid var(--wp--preset--color--line);
}

:is(.hbc_inner_edition, .rdc_inner_edition) :is(h2, h3) {
	margin: 0 0 8px;
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.25;
	letter-spacing: -0.02em;
}

:is(.hbc_card_edition_header, .rdc_card_edition_header) a {
	color: inherit;
	text-decoration: none;
}

:is(.hbc_card_edition_header, .rdc_card_edition_header) a:hover {
	text-decoration: underline;
}

:is(.hbc_detail_card_edition, .rdc_detail_card_edition) {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
}

:is(.hbc_inner_edition, .rdc_inner_edition) a.button {
	margin-bottom: 20px;
}

.hbc_date_square {
	background: var(--wp--preset--color--forest);
	border-top-right-radius: var(--wp--custom--radius);
}

.hbc_date_square span,
.hbc_dates span:first-child {
	color: var(--wp--preset--color--on-forest);
}

.hbc_detail_price .hbc_price {
	color: var(--wp--preset--color--ink);
}

.hbc_detail_price .hbc_price del {
	color: var(--wp--preset--color--muted);
	opacity: 1;
}

.hbc_inner_teacher {
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 16px;
	color: var(--wp--preset--color--ink);
	font-size: var(--wp--preset--font-size--small);
}

.hbc_inner_teacher h3 {
	margin: 0;
	font-size: var(--wp--preset--font-size--large);
}

.hbc_socials a {
	color: inherit;
}

/* ==========================================================================
 * Catalogue [hbc_courses], teachers [hbc_teachers], Reader [rdc_courses]
 * ======================================================================= */
.hbc_wrap_list_entities {
	padding-inline: 0;
}

.hbc_wrapper_sidebar {
	gap: 32px;
}

.hbc_wrapper_sidebar .hbc_main_body {
	min-width: 0;
	padding: 0;
}

.hbc_items_result,
.hbc_wrap_list_entities .hbc_inner_list,
.hbc_wrap_teachers,
.hbc_wrap_editions {
	display: grid;
	overflow: visible;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
	gap: 24px;
}

.hbc_wrapper_sidebar .hbc_sidebar_search {
	align-self: start;
	padding: 24px 20px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 16px;
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--ink);
}

.hbc_wrapper_sidebar .hbc_sidebar_search fieldset {
	margin: 0 0 16px;
	padding: 0;
}

.hbc_wrapper_sidebar .hbc_sidebar_search fieldset :is(label, legend),
.hbc_wrapper_sidebar .hbc_sidebar_search fieldset > .hbc_row_checkbox {
	margin-bottom: 6px;
	padding: 0;
	color: var(--wp--preset--color--ink);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
}

.hbc_sidebar_search :is(input[type="text"], input[type="number"], select) {
	min-height: 44px;
	padding: 8px 12px;
	border: 1px solid var(--wp--preset--color--muted);
	border-radius: var(--wp--custom--radius);
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--ink);
	font: inherit;
	font-size: var(--wp--preset--font-size--small);
}

.hbc_wrapper_sidebar .hbc_sidebar_search fieldset > .hbc_one_choice {
	overflow: hidden;
	border: 1px solid var(--wp--preset--color--muted);
	border-radius: var(--wp--custom--radius);
}

.hbc_one_choice li {
	border-right-color: var(--wp--preset--color--muted);
}

.hbc_one_choice button {
	min-height: 40px;
	color: var(--wp--preset--color--ink);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
}

.hbc_one_choice button:hover,
.hbc_one_choice button.choice_sel {
	background: var(--wp--preset--color--forest);
	color: var(--wp--preset--color--on-forest);
}

.hbc_sidebar_search :is(input, select, button):focus-visible,
.hbc_one_choice button:focus-visible {
	outline: 3px solid var(--wp--preset--color--ink);
	outline-offset: 2px;
	box-shadow: none;
}

.hbc_paginator ul li :is(a, span) {
	border-radius: var(--wp--custom--radius);
	color: var(--wp--preset--color--ink);
}

.hbc_paginator ul li a:hover,
.hbc_paginator ul li span {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--surface);
}

.hbc_notice {
	border-left-color: var(--wp--preset--color--teal);
	background: var(--wp--preset--color--paper);
	color: var(--wp--preset--color--ink);
}

.rdc_notice {
	padding: 12px 16px;
	border-left: 4px solid var(--wp--preset--color--teal);
	border-radius: var(--wp--custom--radius);
	background: var(--wp--preset--color--paper);
	color: var(--wp--preset--color--ink);
}

.rdc_wrapper_month .rdc_trigger {
	margin-top: 12px;
	border-radius: var(--wp--custom--radius);
	background: var(--wp--preset--color--forest);
	color: var(--wp--preset--color--on-forest);
	font-weight: 700;
}

.rdc_accordion .rdc_inner_wrapper {
	gap: 24px;
}

.rdc_trigger:focus-visible {
	outline: 3px solid var(--wp--preset--color--ink);
}

/* ==========================================================================
 * Corsi HUB single pages: course, edition, teacher
 * ======================================================================= */
:is(.hbc_corso, .hbc_edizione, .hbc_docente) {
	color: var(--wp--preset--color--ink);
}

:is(.hbc_corso, .hbc_edizione, .hbc_docente) > *:not(header.hbc_header) {
	padding-inline: 0;
}

:is(.hbc_corso, .hbc_edizione, .hbc_docente) .hbc_inner_main {
	width: min(var(--wp--custom--container), calc(100% - 64px));
}

:is(.hbc_corso, .hbc_edizione, .hbc_docente) h2 {
	font-size: var(--wp--preset--font-size--large);
	letter-spacing: -0.02em;
}

.hbc_header {
	background-color: var(--wp--preset--color--forest);
}

/* 0.81: least opacity giving on-forest text 4.5:1 over a white image. */
.hbc_header::before {
	background: var(--wp--preset--color--forest);
	opacity: 0.81;
}

.hbc_header,
.hbc_header :is(h1, a, .hbc_offer_start),
.hbc_docente .hbc_header .hbc_socials a {
	color: var(--wp--preset--color--on-forest);
}

.hbc_header :focus-visible {
	outline-color: var(--wp--preset--color--on-forest);
}

/* The course header has no inner wrapper: same side gutter as the body. */
.hbc_header > :not(.hbc_inner_main) {
	max-width: calc(100% - 64px);
}

.hbc_header h1 {
	font-size: var(--wp--preset--font-size--x-large);
	line-height: 1.12;
	text-wrap: balance;
	overflow-wrap: break-word;
}

.hbc_details p strong .dashicons {
	color: var(--wp--preset--color--muted);
}

.hbc_details a,
.hbc_description a {
	color: inherit;
}

.hbc_accreditation,
.hbc_edizione .hbc_detail_price {
	border-left-color: var(--wp--preset--color--teal);
}

.hbc_edizione .hbc_detail_price {
	background: var(--wp--preset--color--paper);
}

.hbc_edizione .hbc_detail_price .hbc_promo_text,
.hbc_type_stream,
.hbc_dates .hbc_single_date::before {
	color: var(--wp--preset--color--muted);
}

.hbc_wrapper_signup {
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 16px;
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--ink);
	box-shadow: none;
}

.hbc_wrapper_signup h2 {
	font-size: var(--wp--preset--font-size--large);
}

.hbc_row_session {
	border: 1px solid var(--wp--preset--color--line);
}

.hbc_main_thumb {
	border-color: var(--wp--preset--color--surface);
}

.hbc_colored {
	background: var(--wp--preset--color--paper);
}

/* ==========================================================================
 * Gravity Forms, Orbital theme. !important: Gravity Forms sets these
 * variables per form under #gform_wrapper_N[data-form-index].gform-theme.
 * ======================================================================= */
.gform-theme--framework {
	--gf-color-primary: var(--wp--preset--color--ink) !important;
	--gf-color-primary-contrast: var(--wp--preset--color--surface) !important;
	--gf-color-primary-darker: var(--wp--preset--color--muted) !important;
	--gf-color-primary-lighter: var(--wp--preset--color--muted) !important;
	--gf-color-secondary: var(--wp--preset--color--surface) !important;
	--gf-color-secondary-contrast: var(--wp--preset--color--ink) !important;
	--gf-color-secondary-darker: var(--wp--preset--color--paper) !important;
	--gf-color-secondary-lighter: var(--wp--preset--color--surface) !important;
	--gf-color-out-ctrl-light: var(--wp--preset--color--line) !important;
	--gf-color-out-ctrl-light-darker: var(--wp--preset--color--line) !important;
	--gf-color-out-ctrl-light-lighter: var(--wp--preset--color--paper) !important;
	--gf-color-out-ctrl-dark: var(--wp--preset--color--muted) !important;
	--gf-color-out-ctrl-dark-darker: var(--wp--preset--color--ink) !important;
	--gf-color-out-ctrl-dark-lighter: var(--wp--preset--color--muted) !important;
	--gf-color-in-ctrl: var(--wp--preset--color--surface) !important;
	--gf-color-in-ctrl-contrast: var(--wp--preset--color--ink) !important;
	--gf-color-in-ctrl-darker: var(--wp--preset--color--paper) !important;
	--gf-color-in-ctrl-lighter: var(--wp--preset--color--surface) !important;
	--gf-color-in-ctrl-primary: var(--wp--preset--color--ink) !important;
	--gf-color-in-ctrl-primary-contrast: var(--wp--preset--color--surface) !important;
	--gf-color-in-ctrl-primary-darker: var(--wp--preset--color--muted) !important;
	--gf-color-in-ctrl-primary-lighter: var(--wp--preset--color--muted) !important;
	--gf-color-in-ctrl-light: var(--wp--preset--color--line) !important;
	--gf-color-in-ctrl-light-darker: var(--wp--preset--color--line) !important;
	--gf-color-in-ctrl-light-lighter: var(--wp--preset--color--paper) !important;
	--gf-color-in-ctrl-dark: var(--wp--preset--color--muted) !important;
	--gf-color-in-ctrl-dark-darker: var(--wp--preset--color--ink) !important;
	--gf-color-in-ctrl-dark-lighter: var(--wp--preset--color--muted) !important;
	--gf-color-danger: var(--wp--preset--color--ink) !important;
	--gf-radius: var(--wp--custom--radius) !important;
	--gf-font-family-base: var(--wp--preset--font-family--body) !important;
	--gf-ctrl-border-color: var(--wp--preset--color--muted) !important;
	--gf-ctrl-label-color-primary: var(--wp--preset--color--ink) !important;
	--gf-ctrl-label-color-secondary: var(--wp--preset--color--ink) !important;
	--gf-ctrl-btn-border-color-secondary: var(--wp--preset--color--muted) !important;
	--gf-ctrl-btn-bg-color-hover-tertiary: var(--wp--preset--color--paper) !important;
	--gf-field-pg-steps-number-color: var(--wp--preset--color--muted) !important;
	--gf-ctrl-outline-color-focus: var(--wp--preset--color--ink) !important;
	--gf-ctrl-placeholder-color: var(--wp--preset--color--muted) !important;
	--gf-ctrl-color-disabled: var(--wp--preset--color--muted) !important;
	--gf-ctrl-shadow: none !important;
	--gf-form-validation-bg-color: var(--wp--preset--color--paper) !important;
	--gf-form-validation-border-color: var(--wp--preset--color--ink) !important;
	--gf-form-validation-outline-color-focus: var(--wp--preset--color--ink) !important;
}

/* The Orbital reset (all: unset) outweighs the theme's focus rule. */
.gform-theme--framework a:focus-visible {
	outline: 3px solid var(--wp--preset--color--ink);
	outline-offset: 2px;
}
