/*
Theme Name: Hishiryō — Design pubblico V1
Template: hishiryo-zen
Description: Tema figlio del tema ufficiale Hishiryō 0.9.3. Home conforme al mockup del 30/10/2026, con i sedici SVG originali, senza alterare l’Atlante.
Version: 0.5.0
Requires PHP: 7.4
Text Domain: hishiryo-design-v1
License: GPLv2 or later
*/
.hx-home{--hx-blue:#203d4b;--hx-paper:#f7f4ec;--hx-clay:#9d5645;--hx-sage:#e7ebe3;--hx-line:#dcd8cc;background:var(--hx-paper);color:var(--hx-blue);font-family:Inter,system-ui,sans-serif;line-height:1.6}
.hx-home *{box-sizing:border-box}.hx-home .hx-wrap{max-width:1160px;padding:0 24px;margin:auto}
.hx-home h1,.hx-home h2,.hx-home h3{font-family:"Source Serif 4",Georgia,serif;line-height:1.16;letter-spacing:-.015em}
.hx-home h2{font-size:clamp(2rem,3.4vw,3rem);margin:.25em 0 .4em}.hx-home a:focus-visible{outline:3px solid var(--hx-clay);outline-offset:4px}
.hx-home .hx-eyebrow{font:700 .75rem/1.4 Inter,system-ui,sans-serif;letter-spacing:.14em;text-transform:uppercase;color:var(--hx-clay);margin:0}
.hx-home .hx-hero{position:relative;isolation:isolate;min-height:490px;display:flex;align-items:center;color:#fff;overflow:hidden;background:#192934}
.hx-home .hx-hero:before{content:"";position:absolute;inset:0;background-image:linear-gradient(90deg,rgba(14,21,26,.86),rgba(20,30,35,.37) 65%,rgba(20,30,35,.20)),var(--hx-hero-image);background-size:cover;background-position:center;z-index:-1}
.hx-home .hx-hero-content{width:100%;padding-top:90px;padding-bottom:90px}.hx-home .hx-hero h1{color:#fff;max-width:680px;font-size:clamp(2.75rem,5vw,4.3rem);margin:16px 0 12px}
.hx-home .hx-hero .hx-eyebrow{color:#e6bf9d}.hx-home .hx-hero-lead{font:1.08rem/1.65 "Source Serif 4",Georgia,serif;color:#f5eee4;max-width:560px;margin:0 0 20px}
.hx-home .hx-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center}.hx-home .hx-button{display:inline-flex;justify-content:center;align-items:center;text-decoration:none;font-weight:700;font-size:.9rem;min-height:45px;padding:10px 19px;border:1px solid transparent;border-radius:3px;margin:0;line-height:1.4}
.hx-home .hx-button-primary{background:var(--hx-clay);color:#fff!important}.hx-home .hx-button-outline{border-color:#eee;background:rgba(0,0,0,.17);color:#fff!important}.hx-home .hx-button-quiet{border-color:var(--hx-blue);color:var(--hx-blue)!important;background:transparent}
.hx-home .hx-quick{background:#fffdfa;border-bottom:1px solid var(--hx-line)}.hx-home .hx-quick-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;padding-top:24px;padding-bottom:24px}
.hx-home .hx-quick-item{padding:10px 22px;display:flex;align-items:center;flex-direction:column;text-align:center;gap:7px;text-decoration:none;color:var(--hx-blue);min-width:0;border-right:1px solid var(--hx-line)}.hx-home .hx-quick-item:last-child{border-right:0}
.hx-home .hx-icon-circle{width:68px;height:68px;display:grid;place-items:center;border-radius:50%;background:#efe9dc;color:var(--hx-blue);margin-bottom:2px}
.hx-home .hx-icon,.hx-home .hx-arrival svg{width:28px;height:28px}.hx-home .hx-quick-item strong{font:700 1.22rem/1.2 "Source Serif 4",Georgia,serif}.hx-home .hx-quick-item>span:nth-last-child(2){font-size:.85rem;line-height:1.5;color:#3c4b4b;min-height:2.5em}
.hx-home .hx-action-label{font-size:.8rem;font-weight:700;color:var(--hx-clay)}
.hx-home .hx-story{display:grid;grid-template-columns:1fr 1fr;min-height:350px;background:#fffdfa}.hx-home .hx-story-visual{overflow:hidden;min-height:300px;background:var(--hx-sage)}.hx-home .hx-story-visual img{width:100%;height:100%;display:block;object-fit:cover}.hx-home .hx-story-body{padding:52px clamp(24px,5vw,84px);max-width:750px;align-self:center}.hx-home .hx-story-body p:not(.hx-eyebrow){max-width:60ch;color:#334248}
.hx-home .hx-text-link{font-size:.87rem;color:var(--hx-clay);font-weight:700;text-decoration:none}.hx-home .hx-text-link:hover{text-decoration:underline}
.hx-home .hx-atlas{padding:65px 0;background:var(--hx-paper)}.hx-home .hx-atlas-grid{display:grid;grid-template-columns:1.35fr .65fr;align-items:center;gap:36px}.hx-home .hx-atlas p:not(.hx-eyebrow){max-width:70ch}.hx-home .hx-atlas-illustration img{display:block;width:100%;height:auto;max-height:350px;object-fit:contain}.hx-home .hx-small{color:#58615f;font-size:.8rem;margin-top:14px}
.hx-home .hx-schedule-section{background:#fffdfa;padding:60px 0 80px}.hx-home .hx-section-head{display:flex;justify-content:space-between;align-items:end;gap:18px;margin-bottom:20px}.hx-home .hx-section-head h2{margin-bottom:0}.hx-home .hx-schedule-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.hx-home .hx-schedule-card{border:1px solid var(--hx-line);background:#fff;display:flex;gap:15px;min-width:0;padding:15px}.hx-home .hx-day{text-transform:uppercase;color:var(--hx-clay);font-size:.72rem;font-weight:800;letter-spacing:.08em;align-self:start;padding:4px;border-bottom:1px solid var(--hx-line)}
.hx-home .hx-schedule-card h3{margin:0;font-size:1.15rem}.hx-home .hx-schedule-card p{margin:5px 0;font-size:.98rem;font-weight:700}.hx-home .hx-schedule-card small{font-size:.78rem;color:#4d5b59}
.hx-home .hx-arrival{margin-top:20px;background:var(--hx-sage);padding:20px;display:flex;gap:18px;align-items:center;border-left:4px solid var(--hx-clay)}.hx-home .hx-arrival p{margin:0;flex:1}.hx-home .hx-arrival svg{color:var(--hx-blue);flex-shrink:0}
@media(max-width:900px){.hx-home .hx-quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hx-home .hx-quick-item:nth-child(2){border-right:0}.hx-home .hx-quick-item:nth-child(-n+2){border-bottom:1px solid var(--hx-line)}.hx-home .hx-schedule-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hx-home .hx-atlas-grid{grid-template-columns:1fr 260px}}
@media(max-width:640px){.hx-home .hx-wrap{padding-left:18px;padding-right:18px}.hx-home .hx-hero{min-height:430px}.hx-home .hx-hero-content{padding-top:60px;padding-bottom:60px}.hx-home .hx-hero:before{background-image:linear-gradient(90deg,rgba(14,21,26,.84),rgba(20,30,35,.48)),var(--hx-hero-image)}.hx-home .hx-hero h1{font-size:clamp(2.25rem,9vw,3.2rem)}.hx-home .hx-quick-item{padding:16px 12px}.hx-home .hx-icon-circle{width:55px;height:55px}.hx-home .hx-story{grid-template-columns:1fr}.hx-home .hx-story-visual{min-height:200px;max-height:240px}.hx-home .hx-story-body{padding:30px 20px}.hx-home .hx-atlas{padding:42px 0}.hx-home .hx-atlas-grid{grid-template-columns:1fr}.hx-home .hx-atlas-illustration{max-width:340px}.hx-home .hx-section-head{align-items:start;flex-direction:column}.hx-home .hx-schedule-grid{grid-template-columns:1fr}.hx-home .hx-arrival{align-items:flex-start;flex-wrap:wrap}.hx-home .hx-arrival p{flex-basis:calc(100% - 60px)}.hx-home .hx-arrival .hx-button{width:100%}}
@media(prefers-reduced-motion:reduce){.hx-home *{scroll-behavior:auto}}


/* Ritocchi di compatibilità con header e footer del tema padre. */
.hx-home .hx-quick-item:hover{background:#f6f2e9}
.hx-home .hx-button-primary:hover{background:#844537}
.hx-home .hx-quick-item:focus-visible,.hx-home .hx-button:focus-visible{outline:3px solid #a35742;outline-offset:3px}
.hx-home .hx-quick-item .hx-icon-circle svg{display:block;width:28px;height:28px}
.hx-home .hx-hero:before{background-position:center 48%}
@media(max-width:640px){.hx-home .hx-quick-grid{row-gap:0}.hx-home .hx-quick-item strong{font-size:1.1rem}}

/* Hishiryō · Atlante V1.1 · structural templates, intentionally compatible with shared CSS. */
.hya-atlas-hero{display:flex;gap:18px;align-items:center;margin-bottom:15px}
.hya-atlas-hero-icon{flex:none;width:58px;height:58px;display:grid;place-items:center;color:#203d4b;background:#ece9df;border-radius:50%}
.hya-atlas-hero-icon svg{width:30px;height:30px}
.hya-atlas-id{font:700 .72rem/1.2 Inter,sans-serif;letter-spacing:.08em;color:#a35742;margin-left:11px}
.hya-entry-nav{margin-top:42px;padding-top:22px;border-top:1px solid #ded9ce;display:flex;flex-wrap:wrap;gap:12px}
.hya-entry-nav a{display:inline-flex;align-items:center;min-height:44px;padding:9px 15px;background:#e7ebe3;color:#203d4b;border-radius:3px;text-decoration:none;font-weight:700}
.hya-entry-nav a:first-child{background:#a35742;color:white}
.hya-aside-toc ul{list-style:none;padding:0;margin:5px 0 18px}
.hya-aside-toc li{border-top:1px solid #ded9ce;padding:8px 0;margin:0}
.hya-aside-toc li a{text-decoration:none;color:#294956;font-size:.87rem;line-height:1.4}
.hya-aside-toc li a:hover{text-decoration:underline}
.hya-atlas-catalog-nav{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 18px}
.hya-atlas-catalog-nav a{font-size:.83rem;line-height:1.4;padding:8px 13px;border:1px solid #cbd5cf;background:#fffefa;color:#294956;border-radius:3px;text-decoration:none}
.hya-atlas-catalog-nav a[aria-current=page]{background:#294956;color:#fff;border-color:#294956}
.hya-atlas-archive-card .hya-card-heading{display:flex;align-items:center;gap:10px}
.hya-atlas-archive-card .hya-card-icon{width:39px;height:39px;border-radius:50%;background:#e7ebe3;display:grid;place-items:center;color:#203d4b;flex:none}
.hya-atlas-archive-card .hya-card-icon svg{width:21px;height:21px}
.hya-atlas-count{font-size:.82rem;color:#536367;margin:0 0 22px}
@media(max-width:640px){.hya-atlas-hero-icon{width:46px;height:46px}.hya-atlas-hero-icon svg{width:24px;height:24px}.hya-atlas-catalog-nav{gap:6px}.hya-atlas-catalog-nav a{padding:7px 10px}.hya-entry-nav a{width:100%;justify-content:center}}
