/*
Theme Name: L'Angolo Economico
Theme URI: https://example.com/
Author: L'Angolo Economico
Description: Tema a blocchi per L'Angolo Economico, testata indipendente di economia. Homepage con ultimo articolo, sezioni, rubriche, podcast, eventi, candidature e contatti. Tutto modificabile dall'Editor del sito.
Requires at least: 6.6
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: angolo-economico
Tags: blog, news, full-site-editing, block-patterns, custom-colors
*/

/* ---------- Base ---------- */
:root {
	--ae-navy: var(--wp--preset--color--navy);
	--ae-green: var(--wp--preset--color--green);
	--ae-gold: var(--wp--preset--color--gold);
	--ae-gold-light: var(--wp--preset--color--gold-light);
	--ae-cream: var(--wp--preset--color--cream);
	--ae-paper: var(--wp--preset--color--paper);
	--ae-sand: var(--wp--preset--color--sand);
	--ae-rule: var(--wp--preset--color--rule);
	--ae-muted: var(--wp--preset--color--muted);
	--ae-ink-soft: var(--wp--preset--color--ink-soft);
	--ae-serif: var(--wp--preset--font-family--newsreader);
	--ae-sans: var(--wp--preset--font-family--plex-sans);
	--ae-mono: var(--wp--preset--font-family--plex-mono);
}

.ae-wrap {
	max-width: 1240px;
	margin-left: auto !important;
	margin-right: auto !important;
	padding-left: 32px;
	padding-right: 32px;
	box-sizing: border-box;
}
@media (max-width: 600px) {
	.ae-wrap { padding-left: 20px; padding-right: 20px; }
}

/* Etichette in maiuscoletto mono */
.ae-kicker,
.ae-kicker a {
	font-family: var(--ae-mono);
	font-size: 13px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ae-green);
	text-decoration: none;
	margin: 0;
}
.ae-kicker-muted, .ae-kicker-muted a { color: var(--ae-muted); }
.ae-kicker-gold, .ae-kicker-gold a { color: var(--ae-gold-light); }

.ae-section {
	padding-top: 56px;
	padding-bottom: 56px;
	border-bottom: 1px solid var(--ae-rule);
}
.ae-section-title {
	font-family: var(--ae-serif);
	font-weight: 500;
	font-size: clamp(30px, 3.2vw, 44px);
	margin: 0 0 28px;
}
.ae-lead {
	font-family: var(--ae-serif);
	font-size: 20px;
	line-height: 1.45;
	color: var(--ae-ink-soft);
}
.ae-small { font-size: 14px; color: var(--ae-muted); }

/* ---------- Header ---------- */
.ae-topbar {
	background: var(--ae-navy);
	color: var(--ae-cream);
	font-size: 13px;
}
.ae-topbar .ae-wrap {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 8px 24px;
	padding-top: 10px;
	padding-bottom: 10px;
}
.ae-topbar p { margin: 0; }
.ae-topbar a { color: var(--ae-cream); text-decoration: none; }
.ae-topbar a:hover { text-decoration: underline; }
.ae-topbar .ae-tag {
	font-family: var(--ae-mono);
	letter-spacing: 0.04em;
	color: var(--ae-gold-light);
}

.ae-masthead {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	padding-top: 28px;
	padding-bottom: 16px;
}
.ae-brand { display: flex; align-items: center; gap: 14px; }
.ae-brand img { width: 44px; height: 44px; display: block; }
.ae-brand .wp-block-site-title {
	font-family: var(--ae-serif);
	font-size: 34px;
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1;
	margin: 0;
}
.ae-brand .wp-block-site-title a { color: var(--ae-navy); text-decoration: none; }
.ae-brand .wp-block-site-tagline {
	font-family: var(--ae-serif);
	font-style: italic;
	font-size: 15px;
	color: var(--ae-muted);
	margin: 6px 0 0;
}
.ae-header {
	border-bottom: 1px solid var(--ae-rule);
	background: var(--ae-cream);
}
.ae-nav {
	padding-bottom: 14px;
	font-size: 15px;
	font-weight: 500;
}
.ae-nav .wp-block-navigation__container { gap: 6px 28px; }
.ae-nav a { color: var(--ae-navy); }
.ae-nav .wp-block-navigation__submenu-container {
	background: var(--ae-paper) !important;
	border: 1px solid var(--ae-rule) !important;
	box-shadow: 0 8px 24px rgba(14, 42, 71, 0.12);
	min-width: 280px !important;
	padding: 6px !important;
}
.ae-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 12px !important;
}

/* ---------- Pulsanti ---------- */
.wp-element-button, .wp-block-button__link { border-radius: 2px; }
.ae-on-dark .wp-block-button.is-style-outline .wp-block-button__link {
	color: var(--ae-cream);
	border-color: var(--ae-gold-light);
}
.ae-on-dark .wp-block-button:not(.is-style-outline) .wp-block-button__link {
	background: var(--ae-gold-light);
	color: var(--ae-navy);
}

/* ---------- Homepage: in evidenza ---------- */
.ae-hero { padding-top: 48px; padding-bottom: 48px; border-bottom: 1px solid var(--ae-rule); }
.ae-hero .wp-block-post-title {
	font-family: var(--ae-serif);
	font-weight: 500;
	font-size: clamp(36px, 4.4vw, 58px);
	line-height: 1.05;
	letter-spacing: -0.015em;
	margin: 14px 0 18px;
}
.ae-hero .wp-block-post-title a { color: var(--ae-navy); text-decoration: none; }
.ae-hero .wp-block-post-excerpt { font-family: var(--ae-serif); font-size: 21px; line-height: 1.45; color: var(--ae-ink-soft); }
.ae-hero .wp-block-post-excerpt__more-text { display: none; }
.ae-byline { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; color: var(--ae-muted); margin-bottom: 18px; }
.ae-byline > * { margin: 0 !important; }

.ae-podcast-card {
	background: var(--ae-navy);
	color: var(--ae-cream);
	padding: 28px;
}
.ae-podcast-card h2 {
	font-family: var(--ae-serif);
	font-weight: 500;
	font-size: 32px;
	color: var(--ae-cream);
	margin: 8px 0 10px;
}
.ae-podcast-card p { color: #B9C3CF; font-size: 15px; }
.ae-podcast-card details summary {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 18px;
	border: 1px solid var(--ae-gold-light);
	cursor: pointer;
	font-size: 15px;
	list-style: none;
}
.ae-podcast-card details summary::-webkit-details-marker { display: none; }
.ae-podcast-card details summary::before { content: "\25B8"; color: var(--ae-gold-light); margin-right: 10px; }
.ae-podcast-card details[open] summary::before { content: "\25BE"; }
.ae-podcast-card details p { margin: 0; border-bottom: 1px solid #2E4A69; padding: 12px 0; }
.ae-podcast-card details p:first-of-type { margin-top: 14px; border-top: 1px solid #2E4A69; }
.ae-podcast-card details a { color: var(--ae-cream); font-family: var(--ae-serif); font-size: 20px; text-decoration: none; }
.ae-podcast-card details a:hover { text-decoration: underline; }

.ae-myth { border-top: 3px solid var(--ae-navy); padding-top: 16px; margin-top: 20px; }
.ae-myth .wp-block-post-title { font-family: var(--ae-serif); font-weight: 400; font-size: 22px; line-height: 1.3; margin: 10px 0; }
.ae-myth .wp-block-post-title a { color: var(--ae-navy); text-decoration: none; }

/* ---------- Sezioni ---------- */
.ae-section-col { border-top: 3px solid var(--ae-green); padding-top: 16px; }
.ae-section-col h3 { font-family: var(--ae-sans); font-size: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 12px; }
.ae-section-col h3 a { color: var(--ae-navy); text-decoration: none; }
.ae-section-col .wp-block-post-template > li { border-bottom: 1px solid var(--ae-rule); padding: 12px 0; margin: 0; }
.ae-section-col .wp-block-post-template > li:last-child { border-bottom: 0; }
.ae-section-col .wp-block-post-title { font-family: var(--ae-serif); font-weight: 400; font-size: 21px; line-height: 1.28; margin: 0; }
.ae-section-col .wp-block-post-title a { color: var(--ae-navy); text-decoration: none; }

/* ---------- Rubriche ---------- */
.ae-card {
	background: var(--ae-paper);
	border: 1px solid var(--ae-rule);
	padding: 28px !important;
	height: 100%;
	box-sizing: border-box;
}
.ae-card h3 { font-family: var(--ae-serif); font-weight: 500; font-size: 22px; margin: 10px 0 8px; }
.ae-card .wp-block-post-title { font-family: var(--ae-serif); font-weight: 500; font-size: 22px; line-height: 1.25; margin: 10px 0; }
.ae-card .wp-block-post-title a { color: var(--ae-navy); text-decoration: none; }
.ae-card p { font-size: 15px; color: var(--ae-ink-soft); }
.ae-link { font-size: 14px; font-weight: 500; }
.ae-link a { color: var(--ae-green); }

/* ---------- Fascia podcast ---------- */
.ae-band {
	background: var(--ae-navy);
	color: var(--ae-cream);
	padding-top: 64px;
	padding-bottom: 64px;
}
.ae-band .ae-section-title { color: var(--ae-cream); }
.ae-band-card { border: 1px solid #2E4A69; padding: 32px !important; height: 100%; box-sizing: border-box; }
.ae-band-card h3 { font-family: var(--ae-serif); font-weight: 500; font-size: 32px; color: var(--ae-cream); margin: 10px 0; }
.ae-band-card p { color: #B9C3CF; }

/* ---------- Eventi ---------- */
.ae-events .wp-block-post-featured-image { margin: 0 0 12px; background: var(--ae-sand); }
.ae-events .wp-block-post-featured-image img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.ae-events .wp-block-post-title { font-family: var(--ae-serif); font-weight: 500; font-size: 24px; line-height: 1.2; margin: 8px 0; }
.ae-events .wp-block-post-title a { color: var(--ae-navy); text-decoration: none; }
.ae-events .wp-block-post-date { font-family: var(--ae-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ae-muted); }
.ae-events .wp-block-post-excerpt { font-size: 15px; color: var(--ae-ink-soft); }
.ae-events .wp-block-post-excerpt__more-text { display: none; }

/* ---------- Chi siamo, newsletter, candidature, contatti ---------- */
.ae-split-right { border-left: 1px solid var(--ae-rule); padding-left: 40px !important; }
@media (max-width: 781px) {
	.ae-split-right { border-left: 0; padding-left: 0 !important; border-top: 1px solid var(--ae-rule); padding-top: 32px !important; }
}
.ae-apply { background: var(--ae-paper); border: 1px solid var(--ae-rule); padding: 32px !important; }
.ae-contact { border-top: 3px solid var(--ae-navy); padding-top: 16px; }
.ae-contact p { margin: 4px 0; }
.ae-contact .ae-name { font-family: var(--ae-serif); font-size: 24px; color: var(--ae-navy); }
.ae-contact .ae-mail { font-family: var(--ae-mono); font-size: 14px; color: var(--ae-green); }

/* ---------- Footer ---------- */
.ae-footer { background: var(--ae-sand); border-top: 1px solid var(--ae-rule); font-size: 14px; color: var(--ae-ink-soft); }
.ae-footer-inner { display: flex; flex-wrap: wrap; gap: 32px; padding-top: 40px; padding-bottom: 40px; align-items: flex-start; }
.ae-footer-inner img { width: 140px; height: 140px; object-fit: cover; border: 1px solid var(--ae-rule); display: block; }
.ae-footer-text { flex: 1 1 420px; min-width: 0; }
.ae-footer-links a { margin-right: 22px; font-weight: 500; color: var(--ae-navy); display: inline-block; margin-bottom: 6px; }
.ae-footer p { margin: 0 0 10px; }

/* ---------- Articolo ---------- */
.ae-article-head { padding-top: 48px; }
.ae-article-head .wp-block-post-title { font-family: var(--ae-serif); font-weight: 500; font-size: clamp(34px, 4vw, 52px); line-height: 1.08; letter-spacing: -0.01em; margin: 14px 0 16px; }
.ae-article-head .wp-block-post-excerpt { font-family: var(--ae-serif); font-size: 21px; line-height: 1.45; color: var(--ae-ink-soft); }
.ae-article-head .wp-block-post-excerpt__more-text { display: none; }
.ae-article-body { font-size: 18px; line-height: 1.7; padding-bottom: 56px; }
.ae-article-body h2 { font-size: 30px; }
.ae-disclaimer { border-top: 1px solid var(--ae-rule); padding-top: 16px; font-size: 13px; color: var(--ae-muted); }

/* ---------- Archivi ---------- */
.ae-archive .wp-block-post-template { gap: 40px 32px; }
.ae-archive .wp-block-post-title { font-family: var(--ae-serif); font-weight: 500; font-size: 24px; line-height: 1.22; margin: 8px 0; }
.ae-archive .wp-block-post-title a { color: var(--ae-navy); text-decoration: none; }
.ae-archive .wp-block-post-featured-image img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.ae-archive .wp-block-post-excerpt__more-text { display: none; }
