/* Fondamenta – Gestione del Denaro. Colori e font vivono in theme.json. */

/* Testata */
.gdd-header { border-bottom: 1px solid var(--wp--preset--color--neutral-300); box-shadow: 0 2px 14px rgba(15, 42, 74, .05); }
.gdd-header .wp-block-site-title { font-size: 1.25rem; white-space: nowrap; }
.gdd-header .wp-block-navigation .wp-block-navigation-item__content { color: var(--wp--preset--color--primary); }
.gdd-header .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content,
.gdd-header .wp-block-navigation .wp-block-navigation-item__content:hover { color: var(--wp--preset--color--accent-dark); text-decoration: none; }
.gdd-header .wp-block-navigation__submenu-container {
	border: 1px solid var(--wp--preset--color--neutral-300) !important;
	border-radius: var(--wp--custom--radius--medium);
	box-shadow: var(--wp--custom--shadow--card);
	padding: .4rem 0;
	min-width: 230px !important;
}
.gdd-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: .45rem 1rem; }
.gdd-search .wp-block-search__button { background: transparent; color: var(--wp--preset--color--primary); padding: .4rem; border: 0; }
.gdd-search .wp-block-search__button:hover { color: var(--wp--preset--color--accent-dark); background: var(--wp--preset--color--neutral-100); }
.gdd-search.wp-block-search__searchfield-hidden .wp-block-search__inside-wrapper { border: 0; }
@media (max-width: 600px) {
	.gdd-header .wp-block-site-title { font-size: 1.05rem; }
	.gdd-header .wp-block-site-logo img { width: 36px !important; }
}
/* Menu a tutto schermo su telefono */
.gdd-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { color: #fff; font-size: 1.15rem; }
.gdd-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container { border: 0 !important; box-shadow: none; background: transparent !important; }

/* Briciole di pane (ChiBri SEO o Yoast) */
.gdd-yoast-breadcrumbs, main .chibri-breadcrumbs { font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--neutral-600); margin-bottom: 0; }
.gdd-yoast-breadcrumbs a, main .chibri-breadcrumbs a { text-decoration: none; color: var(--wp--preset--color--neutral-600); }
.gdd-yoast-breadcrumbs a:hover, main .chibri-breadcrumbs a:hover { color: var(--wp--preset--color--accent-dark); text-decoration: underline; }

/* Etichetta categoria */
.gdd-kicker { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.gdd-kicker a { color: var(--wp--preset--color--accent-dark); text-decoration: none; }

/* Meta articolo: data di aggiornamento ben visibile (Discover) */
.gdd-meta { font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--neutral-600); margin-top: .5rem; }
.gdd-date-updated::before { content: "Aggiornato il "; }
.gdd-date-published::before { content: "Pubblicato il "; }
.gdd-author::before { content: "· a cura di "; }
.gdd-cover img { border-radius: var(--wp--custom--radius--medium); width: 100%; }

/* Corpo articolo */
.gdd-single .wp-block-post-content { font-size: 1.0625rem; }
.gdd-single .wp-block-post-content h2 { margin-top: 2.2em; }
.gdd-single .wp-block-post-content h3 { margin-top: 1.8em; }
.wp-block-post-content table { border-collapse: collapse; width: 100%; }
.wp-block-post-content th { background: var(--wp--preset--color--neutral-100); color: var(--wp--preset--color--primary); text-align: left; }
.wp-block-post-content th, .wp-block-post-content td { border: 1px solid var(--wp--preset--color--neutral-300); padding: .55rem .7rem; }
.wp-block-table { overflow-x: auto; }
.wp-block-post-content blockquote, .wp-block-quote { border-left-color: var(--wp--preset--color--accent); }
.gdd-tags { font-size: var(--wp--preset--font-size--small); }
.gdd-postnav { font-size: var(--wp--preset--font-size--small); gap: 1rem; border-top: 1px solid var(--wp--preset--color--neutral-300); padding-top: 1.25rem; }
.gdd-postnav a { text-decoration: none; font-weight: 600; }

/* Schede articolo (archivi, ultime guide) */
.gdd-card { background: #fff; border: 1px solid var(--wp--preset--color--neutral-300); border-radius: var(--wp--custom--radius--medium); overflow: hidden; padding-bottom: 1.1rem; transition: box-shadow .2s, transform .2s; height: 100%; }
.gdd-card:hover { box-shadow: var(--wp--custom--shadow--card); transform: translateY(-2px); }
.gdd-card > *:not(.wp-block-post-featured-image) { margin-left: 1.1rem !important; margin-right: 1.1rem !important; }
.gdd-card .wp-block-post-featured-image { margin: 0 0 .4rem; }
.gdd-card .wp-block-post-featured-image img { border-radius: 0; }
.gdd-card .wp-block-post-title { font-size: 1.12rem; line-height: 1.3; }
.gdd-card .wp-block-post-excerpt { font-size: .95rem; color: var(--wp--preset--color--neutral-600); }
.gdd-card .wp-block-post-excerpt__more-text { display: none; }
.gdd-card .wp-block-post-date { font-size: .8rem; }
.gdd-lead { color: var(--wp--preset--color--neutral-600); font-size: 1.1rem; }
.wp-block-query-pagination { margin-top: var(--wp--preset--spacing--40); font-weight: 600; }

/* Home: i blocchi HTML della home hanno già il loro stile */
.gdd-front .wp-block-post-content > * { max-width: 1180px; }

/* Piè di pagina */
.gdd-footer { font-size: .95rem; }
.gdd-footer a { color: #d6e0ec; text-decoration: none; }
.gdd-footer a:hover { color: #8fd9b0; text-decoration: underline; }
.gdd-footer .wp-block-site-title a { color: #fff; }
.gdd-footer-title { font-size: .8rem !important; letter-spacing: .1em; text-transform: uppercase; color: #8fd9b0 !important; margin-bottom: .6rem; }
.gdd-footer-links { list-style: none; padding: 0; margin: 0; }
.gdd-footer-links li { margin: .35rem 0; }
.gdd-footer-muted, .gdd-footer-disclaimer { color: #c3cfdd; }
.gdd-footer-disclaimer { border-top: 1px solid rgba(214, 224, 236, .2); padding-top: var(--wp--preset--spacing--30); margin-top: var(--wp--preset--spacing--40) !important; }
.gdd-footer-bottom p { color: #c3cfdd; margin: 0; }

/* Spaziatura annunci automatici AdSense dentro i contenuti */
.wp-block-post-content .google-auto-placed { margin: 1.5rem 0; }
