/**
 * Pagina vetrina «home» — CSS autonomo (caricato solo da questo template, vedi inc/page-templates.php).
 * Ordine: font locali → token → base → header/footer condivisi → regole di pagina → hover.
 * Tutte le regole sono sotto body.sitiamo-page--home. Gli stili dei singoli elementi restano inline nel markup,
 * come nel design approvato.
 */

/* ---- Font in locale (nessuna chiamata a Google) ---- */
@font-face{font-family:'Atkinson Hyperlegible';font-style:italic;font-weight:400;font-display:swap;src:url('../../fonts/atkinson-hyperlegible-italic-400-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Atkinson Hyperlegible';font-style:italic;font-weight:400;font-display:swap;src:url('../../fonts/atkinson-hyperlegible-italic-400-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Atkinson Hyperlegible';font-style:normal;font-weight:400;font-display:swap;src:url('../../fonts/atkinson-hyperlegible-normal-400-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Atkinson Hyperlegible';font-style:normal;font-weight:400;font-display:swap;src:url('../../fonts/atkinson-hyperlegible-normal-400-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Atkinson Hyperlegible';font-style:normal;font-weight:700;font-display:swap;src:url('../../fonts/atkinson-hyperlegible-normal-700-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Atkinson Hyperlegible';font-style:normal;font-weight:700;font-display:swap;src:url('../../fonts/atkinson-hyperlegible-normal-700-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Libre Caslon Text';font-style:normal;font-weight:400;font-display:swap;src:url('../../fonts/libre-caslon-text-normal-400-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Libre Caslon Text';font-style:normal;font-weight:400;font-display:swap;src:url('../../fonts/libre-caslon-text-normal-400-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Newsreader';font-style:italic;font-weight:300;font-display:swap;src:url('../../fonts/newsreader-italic-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Newsreader';font-style:italic;font-weight:300;font-display:swap;src:url('../../fonts/newsreader-italic-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Newsreader';font-style:italic;font-weight:400;font-display:swap;src:url('../../fonts/newsreader-italic-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Newsreader';font-style:italic;font-weight:400;font-display:swap;src:url('../../fonts/newsreader-italic-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}

:root {
    --sz-ink: #2B2622;
    --sz-paper: #F2ECE2;
    --sz-paper-alt: #EAE3D7;
    --sz-accent: #A4513A;
    --sz-accent-dark: #8A3F2B;
    --sz-accent-hover: #8F4531;
    --sz-cream: #F6F1E9;
    --sz-serif: 'Libre Caslon Text', Georgia, serif;
    --sz-italic: 'Newsreader', Georgia, serif;
    --sz-sans: 'Atkinson Hyperlegible', system-ui, sans-serif;
}

/* ---- Base (dal <style> del design, scoped) ---- */
body.sitiamo-page--home { margin: 0; background: #F2ECE2; color: #2B2622; -webkit-font-smoothing: antialiased; }
body.sitiamo-page--home *, body.sitiamo-page--home *::before, body.sitiamo-page--home *::after { box-sizing: border-box; }
body.sitiamo-page--home a { color: #A4513A; text-decoration-thickness: 1px; text-underline-offset: 4px; }
body.sitiamo-page--home a:hover { color: #8A3F2B; }
body.sitiamo-page--home ::selection { background: #A4513A; color: #F2ECE2; }
body.sitiamo-page--home [hidden] { display: none !important; }

/* Corsivo d'accento dentro i titoli (era lo style inline dell'<em>) */
body.sitiamo-page--home .it { font-family: 'Newsreader', Georgia, serif; font-style: italic; font-weight: 300; font-size: 1.14em; line-height: 1; letter-spacing: -0.02em; }

/* Focus da tastiera: i bottoni del design usano all:unset e perdevano l'anello */
body.sitiamo-page--home a:focus-visible, body.sitiamo-page--home button:focus-visible { outline: 2px solid #A4513A; outline-offset: 3px; }

/* ---- Header / menu / footer condivisi ---- */
body.sitiamo-page--home #siteHeader .nav-link { color: rgba(43,38,34,0.8); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
body.sitiamo-page--home #siteHeader .nav-link:hover { color: #2B2622; }
body.sitiamo-page--home #siteHeader .nav-link[aria-current="page"] { color: #2B2622; text-decoration: underline; text-decoration-color: rgba(43,38,34,0.35); }
body.sitiamo-page--home #mobileMenu:not([hidden]) { display: flex; }
body.sitiamo-page--home #mobileMenu .m-link { display: flex; align-items: center; min-height: 56px; border-bottom: 1px solid rgba(43,38,34,0.12); font-family: 'Libre Caslon Text', Georgia, serif; font-size: 24px; letter-spacing: -0.01em; text-decoration: none; color: #2B2622; }
body.sitiamo-page--home #mobileMenu .m-link:hover, body.sitiamo-page--home #mobileMenu .m-link[aria-current="page"] { color: #A4513A; }
body.sitiamo-page--home #menuToggle .bar { display: block; width: 24px; height: 1.5px; background: #2B2622; border-radius: 2px; transition: transform .3s ease, opacity .2s ease; }
body.sitiamo-page--home #menuToggle[aria-expanded="true"] .bar1 { transform: translateY(7.5px) rotate(45deg); }
body.sitiamo-page--home #menuToggle[aria-expanded="true"] .bar2 { opacity: 0; }
body.sitiamo-page--home #menuToggle[aria-expanded="true"] .bar3 { transform: translateY(-7.5px) rotate(-45deg); }
@media (min-width: 720px) {
    body.sitiamo-page--home #menuToggleWrap { display: none !important; }
    body.sitiamo-page--home #mobileMenu { display: none !important; }
}
@media (max-width: 719.98px) {
    body.sitiamo-page--home #headerNav { display: none !important; }
    body.sitiamo-page--home #restSvg, body.sitiamo-page--home #contactThreadSvg, body.sitiamo-page--home #stepsSvg { display: none; }
    /* Telefono in piedi: una fascia fissa in alto con il nodo ruotato di 90 gradi (il filo entra a sinistra e
       esce a destra). Resta fissa in alto per tutta la sezione e si restringe man mano che il nodo si scioglie
       (si scioglie del tutto alla scheda "Scrivimi"); il testo le scorre sotto (home.js, ramo "stretto"). */
    body.sitiamo-page--home #intro { flex-direction: column !important; align-items: stretch !important; }
    body.sitiamo-page--home { --knot-strip: clamp(140px, 42vw, 176px); }
    body.sitiamo-page--home #knotSpacer { display: block !important; height: var(--knot-strip); }
    body.sitiamo-page--home #threadPanel { position: sticky !important; top: 0 !important; z-index: 4; width: 100% !important; height: var(--knot-h, var(--knot-strip)) !important; margin-bottom: calc(var(--knot-h, var(--knot-strip)) * -1) !important; overflow: visible !important; background: #F2ECE2 !important; pointer-events: none; }
    body.sitiamo-page--home #threadPanel::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 22px; background: linear-gradient(#F2ECE2, rgba(242, 236, 226, 0)); pointer-events: none; }
    body.sitiamo-page--home #introText { flex: none !important; width: 100% !important; min-width: 0 !important; box-sizing: border-box !important; }
}

/* ---- Home ---- */
@media (min-width: 720px) {
    body.sitiamo-page--home #sequenza { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: clamp(20px, 2.4vw, 32px) !important; max-width: none !important; }
}
/* Situazioni a fisarmonica: lo stato è aria-expanded sul bottone (gestito in home.js) */
body.sitiamo-page--home .sit-panel { grid-template-rows: 0fr; }
body.sitiamo-page--home .sit-panel p { opacity: 0; }
body.sitiamo-page--home .sit-btn[aria-expanded="true"] + .sit-panel { grid-template-rows: 1fr; }
body.sitiamo-page--home .sit-btn[aria-expanded="true"] + .sit-panel p { opacity: 1; }
body.sitiamo-page--home .sit-btn[aria-expanded="true"] .sit-icon { transform: rotate(45deg); }

/* ---- Hover (era l'attributo style-hover del design; !important perché lo stile base è inline) ---- */
body.sitiamo-page--home .hv1:hover { background:#8F4531 !important; color:#F6F1E9 !important; }
body.sitiamo-page--home .hv2:hover { color:#2B2622 !important; }
body.sitiamo-page--home .hv3:hover { color:#2B2622 !important; text-decoration-color:#2B2622 !important; }
body.sitiamo-page--home .hv4:hover { color:#A4513A !important; }
body.sitiamo-page--home .hv5:hover { background:#FFFFFF !important; color:#8A3F2B !important; }
body.sitiamo-page--home .hv6:hover { color:#FFFFFF !important; }
