/* Integrazioni specifiche per WordPress (il resto è in style.css, identico al sito statico) */

/* Barra di amministrazione: l'header fisso scende sotto di lei */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } #wpadminbar { position: absolute; } }

/* Card articoli: titolo cliccabile */
.news-card h3 a { color: inherit; text-decoration: none; }
.news-card h3 a:hover { color: var(--red); }
.news-card h3 a::after { content: ""; position: absolute; inset: 0; }
.news-card { position: relative; }
.news-card .more { position: relative; z-index: 1; }

/* Paginazione articoli */
.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--navy-900); font-weight: 700; text-decoration: none; }
.pagination .page-numbers.current, .pagination a.page-numbers:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* Contenuti scritti con l'editor a blocchi */
.prose img, .prose video, .prose iframe { max-width: 100%; height: auto; }
.prose figure { margin: 1.6em 0; }
.prose figure img { border-radius: var(--radius); display: block; }
.prose figcaption, .prose .wp-element-caption { font-size: .9rem; color: var(--muted, #586079); margin-top: 8px; text-align: center; }
.prose .aligncenter { margin-inline: auto; text-align: center; }
.prose .alignleft { float: left; margin: .3em 1.4em 1em 0; max-width: 50%; }
.prose .alignright { float: right; margin: .3em 0 1em 1.4em; max-width: 50%; }
.prose .wp-block-button__link { display: inline-flex; padding: 14px 26px; border-radius: 999px; background: var(--red); color: #fff; font-weight: 800; text-decoration: none; }
.prose .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.4em 0; }
.prose .wp-block-embed iframe { width: 100%; aspect-ratio: 16/9; height: auto; }
.prose::after { content: ""; display: table; clear: both; }
@media (max-width: 640px) { .prose .alignleft, .prose .alignright { float: none; margin: 1em 0; max-width: 100%; } }

/* Verifica antispam invisibile: niente spazio riservato alla casella reCAPTCHA */
form.is-protected .captcha { min-height: 0; margin-top: 8px; }
form.is-protected .g-recaptcha-slot { min-height: 0; }
.captcha-note { font-size: .78rem; color: var(--muted); margin: 0; }
.captcha-note a { color: inherit; }
.grecaptcha-badge { visibility: hidden; } /* sostituito dalla nota sotto il modulo, come consentito da Google */
