/* =========================================================
   Base / Reset / Typography
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; }

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body.antonella-site,
body {
	margin: 0;
	font-family: var(--al-font-body);
	font-size: var(--al-fs-base);
	line-height: var(--al-lh-body);
	color: var(--al-text);
	background: var(--al-surface);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: var(--al-blue); text-decoration: none; transition: color var(--al-dur-fast) var(--al-ease); }
a:hover { color: var(--al-blue-dark); }

h1, h2, h3, h4, h5,
.antonella-site h1, .antonella-site h2, .antonella-site h3, .antonella-site h4, .antonella-site h5 {
	font-family: var(--al-font-display);
	font-weight: 700;
	line-height: var(--al-lh-tight);
	letter-spacing: -0.02em;
	text-transform: none;     /* override Astra customizer se impostato a uppercase */
	margin: 0 0 var(--al-s-4);
	color: var(--al-ink);
}

h1 { font-size: clamp(2.5rem, 6vw, var(--al-fs-5xl)); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, var(--al-fs-4xl)); }
h3 { font-size: clamp(1.5rem, 2.5vw, var(--al-fs-2xl)); }
h4 { font-size: var(--al-fs-xl); }

p { margin: 0 0 var(--al-s-4); }

.al-container {
	width: 100%;
	max-width: var(--al-container);
	margin-inline: auto;
	padding-inline: var(--al-s-5);
}
.al-container--sm { max-width: var(--al-container-sm); }

.al-section {
	padding-block: var(--al-s-12);
}

.al-section--alt { background: var(--al-surface-alt); }
.al-section--dark { background: var(--al-ink); color: #fff; }
.al-section--dark h1, .al-section--dark h2, .al-section--dark h3 { color: #fff; }

.al-eyebrow {
	display: inline-block;
	font-family: var(--al-font-body);
	font-weight: 500;
	font-size: var(--al-fs-sm);
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--al-accent);
	margin-bottom: var(--al-s-3);
}

.al-lead {
	font-size: var(--al-fs-lg);
	color: var(--al-text-muted);
	max-width: 62ch;
}

/* Astra cleanup: lascia il tema pulito dentro le nostre sezioni */
.entry-content > .al-section { margin-inline: calc( 50% - 50vw ); }

/* Page wrapper Astra override minimo */
.ast-container { max-width: none; padding: 0; }

/* Riduzione spazio fra header e primo blocco di contenuto di ogni pagina */
.al-main > .al-section:first-child,
.entry-content > .al-section:first-child {
	padding-top: var(--al-s-6);
}
.al-hero { padding-block: var(--al-s-6) var(--al-s-10); }
@media (max-width: 920px) {
	.al-hero { padding-block: var(--al-s-5) var(--al-s-8); }
}

/* Mobile: meno spazio in alto sulla sezione testimonianze */
@media (max-width: 639px) {
	.al-section--testi { padding-top: var(--al-s-6); }
}
