/*
Theme Name: Arsenali Essenziale
Template: twentytwentythree
Version: 1.0.1
Description: Impaginazione essenziale per i contenuti storici di Arsenali Digitali.
*/
:root { --ars-ink:#18333a; --ars-teal:#087e91; --ars-line:#dbe4e5; }
body { color:var(--ars-ink); background:#f7f9f8; font-family:Arial,Helvetica,sans-serif; font-size:18px; line-height:1.7; }
.wp-site-blocks { padding-top:0; padding-bottom:0; }
header.wp-block-template-part { background:#fff; border-bottom:1px solid var(--ars-line); padding:28px 0 20px; }
header .wp-block-group.alignwide { max-width:1120px; margin:auto; gap:24px; padding-bottom:0!important; }
header .wp-block-site-title { max-width:400px; margin:0; font-size:24px; font-weight:700; line-height:1.25; border-left:5px solid #e99826; padding-left:18px; }
header .wp-block-site-title a { text-decoration:none; }
header .wp-block-navigation { font-size:15px; font-weight:600; gap:24px; }
main.wp-block-group { margin-top:0!important; padding-top:48px; padding-bottom:40px; min-height:55vh; }
main > .wp-block-group, main > .wp-block-post-content { box-sizing:border-box; }
main .wp-block-post-title, .ars-blog-title { max-width:1000px!important; margin:0 auto 32px!important; font-size:clamp(32px,4vw,48px); line-height:1.15; font-weight:700; letter-spacing:-.03em; }
.entry-content { max-width:1000px; margin:0 auto; padding:32px!important; background:#fff; border:1px solid var(--ars-line); border-radius:12px; box-shadow:0 8px 30px #18333a06; }
.entry-content > * { max-width:100%!important; }
.entry-content::after {content:"";display:block;clear:both;}
.entry-content p { margin:0 0 1.2em; text-align:left!important; }
.entry-content h2 { font-size:28px; line-height:1.3; margin-top:1.4em; }
.entry-content h3 { font-size:23px; line-height:1.4; }
.entry-content h4, .entry-content h5 { font-size:18px; line-height:1.6; margin:.5em 0; font-weight:600; }
.entry-content > :first-child { margin-top:0; }
a { color:var(--ars-teal); text-underline-offset:.18em; }
a:hover { color:#075665; }
a:focus-visible,button:focus-visible {outline:3px solid #e99826;outline-offset:4px;}
.entry-content img {max-width:100%;height:auto;border-radius:6px;}
.entry-content .alignleft {float:left;margin:0 28px 18px 0!important;max-width:42%;}
.entry-content blockquote {margin:0 0 30px;padding:8px 0 8px 24px;border-left:4px solid var(--ars-teal);font-size:19px;}
.entry-content table {float:none!important;box-sizing:border-box;width:100%!important;height:auto!important;border-collapse:separate;border-spacing:0;margin:24px 0 0;table-layout:fixed;}
.entry-content td {height:auto!important;vertical-align:top;padding:14px 20px 14px 0;overflow-wrap:anywhere;}
.entry-content td:last-child {padding-right:0;}
.entry-content td[colspan] {padding-top:0;padding-bottom:20px;}
.entry-content td h3 {margin:0;}
.entry-content td p {margin-bottom:18px;}
.entry-content td h4 {font-size:17px;font-weight:400;}
.entry-content td h4 em {font-style:normal;}
.entry-content td img {width:auto;max-width:100%;max-height:100px;object-fit:contain;object-position:left;}
.entry-content ul,.entry-content ol {padding-left:24px;}
.entry-content li {margin-bottom:10px;}
.entry-content iframe,.entry-content video {max-width:100%;}
.home .entry-content .alignleft {max-width:34%;}
.ars-blog {max-width:1000px!important;margin:auto;}
.ars-blog .wp-block-post {background:#fff;border:1px solid var(--ars-line);border-radius:10px;padding:28px;margin-bottom:24px;}
.ars-blog .wp-block-post-title {font-size:27px;margin-bottom:14px!important;letter-spacing:-.02em;}
.ars-blog .wp-block-post-title a {text-decoration:none;}
.ars-blog .wp-block-post-date {font-size:14px;color:#607478;}
.ars-blog .wp-block-post-excerpt {margin-bottom:0;}
footer.wp-block-template-part {clear:both;background:var(--ars-ink);color:#fff;padding:28px 24px;margin-top:0;}
footer a {color:#fff;}
footer .wp-block-group {max-width:1120px!important;margin:auto;gap:12px;}
footer p {margin:0;font-size:14px;}
@media(max-width:700px){
body{font-size:17px;}
header.wp-block-template-part{padding:20px 0;}
header .wp-block-site-title{font-size:20px;max-width:255px;padding-left:12px;}
main.wp-block-group{padding-top:30px;}
main .wp-block-post-title,.ars-blog-title{margin-bottom:24px!important;}
.entry-content{padding:22px!important;border-radius:8px;}
.entry-content table,.entry-content tbody,.entry-content tr,.entry-content td{display:block!important;width:100%!important;}
.entry-content td{padding:12px 0!important;}
.entry-content td[colspan]{padding-top:0!important;}
.entry-content .alignleft,.home .entry-content .alignleft{float:none;display:block;max-width:100%;width:auto;max-height:300px;margin:0 auto 24px!important;}
.entry-content h2{font-size:25px;}
.entry-content h3{font-size:21px;}
.entry-content blockquote{padding-left:16px;font-size:17px;}
.ars-blog .wp-block-post{padding:22px;}
.ars-blog .wp-block-post-title{font-size:25px;}
}

/* Archivio storico e piccoli adattamenti dei contenuti originali. */
.home .entry-content > p:first-child {float:right;width:30%;margin:0 0 20px 32px;}
.home .entry-content > p:nth-child(2),.home .entry-content > p:nth-child(3) {display:none;}
.home .entry-content .alignright {float:none;width:100%;height:auto;margin:0!important;}
.home .entry-content > ul {margin-top:0;margin-right:34%;}
.home .entry-content > h2 {font-size:26px;}
.entry-content td[colspan] > p {display:none;}
.ars-archive-note {max-width:1000px!important;margin:0 auto 28px!important;padding:18px 24px;background:#e8f2f3;border-left:4px solid #087e91;border-radius:0 8px 8px 0;box-sizing:border-box;}
.ars-archive-note p {margin:0;font-size:16px;line-height:1.6;}
.ars-archive-note p+p {margin-top:6px;}
.ars-blog .wp-block-post-title {font-size:21px!important;line-height:1.4;letter-spacing:0;}
@media(max-width:700px){
.home .entry-content > p:first-child{float:none;width:170px;margin:0 auto 24px;}
.home .entry-content > ul{margin-right:0;}
.home .entry-content > h2{font-size:23px;}
.ars-archive-note{padding:16px 20px;}
.ars-blog .wp-block-post-title{font-size:19px!important;}
}
