/**
 * Override del parent Astra.
 *
 * Regola: il CSS del child vince dove Astra impone valori suoi. Per non
 * spargere !important si usa il selettore `body.ee` (specificità 0,1,1) che
 * batte il `body` di Astra anche quando i suoi stili inline vengono stampati
 * dopo il foglio del child.
 */

body.ee {
	background: var(--ee-white);
	color: var(--ee-ink);
	font-family: var(--ee-font-body);
	font-size: var(--ee-fs-body);
	line-height: var(--ee-lh-body);
	font-weight: 400;
}

body.ee h1,
body.ee h2,
body.ee h3,
body.ee h4,
body.ee h5,
body.ee h6 {
	font-family: var(--ee-font-display);
	color: inherit;
}

/* Il child non usa i wrapper di Astra: se un template del parent li stampa,
   non devono introdurre larghezze o margini. */
.ee .site-content,
.ee #content,
.ee .ast-container,
.ee .site-content > .ast-container {
	max-width: none;
	padding-inline: 0;
	margin-inline: 0;
	width: 100%;
}

.ee .ast-container {
	padding: 0;
}

/* Elementi Astra che non esistono nel nuovo design */
.ee .ast-breadcrumbs,
.ee .ast-single-entry-banner,
.ee .entry-header.ast-header-without-markup,
.ee .ast-post-format- .entry-header,
.ee .ast-article-single .entry-header,
.ee .ast-separate-container .ast-article-post,
.ee .ast-separate-container .ast-article-single {
	padding: 0;
	background: none;
	border: 0;
}

.ee .ahfb-svg-iconset,
.ee .ast-mobile-header-wrap,
.ee .main-header-bar,
.ee .ast-above-header-wrap,
.ee .ast-below-header-wrap {
	display: none;
}

/* Bottoni e form Astra */
body.ee .ast-button,
body.ee button,
body.ee input[type="submit"],
body.ee .wp-block-button__link {
	border-radius: var(--ee-radius-sm);
	font-family: var(--ee-font-body);
	text-transform: none;
	box-shadow: none;
}

body.ee a {
	text-decoration: none;
}

body.ee .wp-block-button__link:hover,
body.ee .wp-block-button__link:focus {
	text-decoration: none;
}

/* Astra imposta un container di 1200px: il child usa 1400px */
body.ee .ast-container,
body.ee .site-content .ast-container {
	max-width: var(--ee-container);
}

/* I blocchi non devono ereditare i margini dei `.entry-content` di Astra */
body.ee .entry-content > *,
body.ee .ee-content > * {
	margin-block-start: 0;
}

body.ee .entry-content p,
body.ee .ee-content p {
	color: inherit;
}

/* Astra aggiunge un padding al body per l'header: il child gestisce l'offset */
body.ee.ast-header-break-point,
body.ee .site {
	padding-top: 0;
}

/* Titoli con dimensione fluida già definita dai token */
body.ee .entry-content h1,
body.ee .entry-content h2,
body.ee .entry-content h3 {
	font-size: inherit;
	line-height: inherit;
}

/* Astra disegna un proprio "torna in cima" (quadratino blu 32 px): il tema usa
   `.ee-to-top` (footer.php + js/header.js). */
body.ee #ast-scroll-top {
	display: none !important;
}
