/*
Theme Name: APAV Base
Theme URI: https://apav.it
Author: Nexyria Systems per APAV
Description: Tema a blocchi comune per apav.it ed eiris.it (Accademia Piceno-Aprutina dei Velati). Variante colore per sito in Impostazioni > Generali. Nessuna risorsa esterna, nessun page builder.
Version: 1.0.0
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: apav-base
*/

/* Solo ciò che theme.json non esprime. */

.site-header {
	border-bottom: 1px solid var(--wp--preset--color--line);
	background: var(--wp--preset--color--surface);
}

.site-header .wp-block-site-title a {
	text-decoration: none;
	color: var(--wp--preset--color--primary);
}

.site-footer {
	background: var(--wp--preset--color--primary);
	color: #fff;
}

.site-footer a {
	color: #fff;
	text-underline-offset: 0.2em;
}

.site-footer .wp-block-heading {
	color: #fff;
}

.site-footer .footer-legal {
	border-top: 1px solid rgba(255, 255, 255, 0.25);
	opacity: 0.85;
}

.hero {
	background: var(--wp--preset--color--accent-soft);
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.hero .hero-kicker {
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--wp--preset--color--accent);
	font-weight: 600;
}

.journal-card,
.info-card {
	height: 100%;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--line);
	border-top: 4px solid var(--wp--preset--color--accent);
	border-radius: 4px;
	padding: var(--wp--preset--spacing--40);
	display: flex;
	flex-direction: column;
}

.journal-card .wp-block-buttons {
	margin-top: auto;
}

.journal-card .journal-meta {
	color: var(--wp--preset--color--muted);
}

.wp-block-post-title a {
	text-decoration: none;
}

.wp-block-post-title a:hover,
.wp-block-post-title a:focus {
	text-decoration: underline;
}

/* Focus visibile ovunque (WCAG 2.4.7). */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition: none !important;
		animation: none !important;
		scroll-behavior: auto !important;
	}
}

@media print {
	.site-header nav,
	.site-footer,
	.wp-block-buttons {
		display: none;
	}

	body {
		background: #fff;
		color: #000;
	}
}

.hero .hero-art {
	margin: 0;
}

.hero .hero-art img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 20px;
	box-shadow: 0 18px 40px -24px rgba(28, 36, 48, 0.45);
}

@media (max-width: 781px) {
	.hero .hero-art {
		max-width: 420px;
	}
}

.cta-band {
	gap: var(--wp--preset--spacing--40);
	padding: var(--wp--preset--spacing--50);
	border-radius: 20px;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--surface);
}

.cta-band h2 {
	margin: 0 0 0.5rem;
	color: inherit;
}

.cta-band p {
	margin: 0;
	opacity: 0.9;
}

.cta-band .wp-block-button__link {
	background: var(--wp--preset--color--accent);
	color: #fff;
}
