/* =====================================================================
   We Blink – stili del tema. Volutamente pochi: le pagine importate
   portano i loro stili. Colore e font arrivano dal Personalizza (--wb-*).
   ===================================================================== */

:root {
	--wb-ink: #1e2023;
	--wb-text: #3c4046;
	--wb-muted: #6a6f76;
	--wb-line: #e9e5df;
	--wb-bg: #ffffff;
	--wb-soft: #f6f4f1;
	--wb-wrap: 1180px;
	--wb-hdr-h: 92px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--wb-bg); color: var(--wb-text); font: 400 17px/1.65 var(--wb-font); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg, video, iframe { max-width: 100%; height: auto; }
a { color: var(--wb-accent); }
h1, h2, h3, h4 { color: var(--wb-ink); line-height: 1.15; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

.wb-skip { position: absolute; left: 12px; top: -60px; z-index: 100000; background: var(--wb-ink); color: #fff; padding: 10px 16px; border-radius: 4px; text-decoration: none; }
.wb-skip:focus { top: 12px; }
.wb-main { display: block; }
.wb-wrap { max-width: var(--wb-wrap); margin: 0 auto; padding: 0 24px; }

/* Le pagine importate vanno da bordo a bordo */
.wb-full .wb-main > *:first-child { margin-top: 0; }

/* ---------- Header ---------- */
.wb-hdr { position: relative; z-index: 9990; background: #fff; border-bottom: 1px solid var(--wb-line); font-family: var(--wb-font); transition: box-shadow .3s; }
.wb-sticky .wb-hdr { position: sticky; top: 0; }
.admin-bar.wb-sticky .wb-hdr { top: 32px; }
@media (max-width: 782px) { .admin-bar.wb-sticky .wb-hdr { top: 46px; } }
@media (max-width: 600px) { .admin-bar.wb-sticky .wb-hdr { top: 0; } }
.wb-hdr.is-scrolled { box-shadow: 0 6px 24px rgba(30, 32, 35, .08); }
.wb-hdr__inner { max-width: 1240px; margin: 0 auto; padding: 0 24px; min-height: var(--wb-hdr-h); display: flex; align-items: center; gap: 28px; transition: min-height .3s; }
.wb-hdr.is-scrolled .wb-hdr__inner { min-height: 74px; }
.wb-hdr__logo { flex: none; line-height: 0; }
.wb-hdr__logo .custom-logo-link { display: block; }
.wb-hdr__logo img, .wb-ftr__logo img { height: var(--wb-logo-h); width: auto; max-width: none; display: block; transition: height .3s; }
.wb-hdr.is-scrolled .wb-hdr__logo img { height: calc(var(--wb-logo-h) * .82); }
.wb-sitename { display: inline-block; font-weight: 700; font-size: 22px; line-height: 1.2; color: var(--wb-ink); text-decoration: none; }

.wb-hdr__nav { margin-left: auto; }
.wb-hdr__nav ul { list-style: none; margin: 0; padding: 0; }
.wb-hdr__nav li { position: relative; margin: 0; padding: 0; }
.wb-hdr__nav > ul { display: flex; align-items: center; gap: 4px; }
.wb-hdr__nav a { display: block; padding: 12px 14px; color: var(--wb-ink); text-decoration: none; font-size: 15.5px; font-weight: 500; line-height: 1.2; position: relative; transition: color .2s; }
.wb-hdr__nav > ul > li > a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--wb-accent); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.wb-hdr__nav a:hover,
.wb-hdr__nav .current-menu-item > a, .wb-hdr__nav .current_page_item > a,
.wb-hdr__nav .current-menu-ancestor > a, .wb-hdr__nav .current_page_ancestor > a { color: var(--wb-accent); }
.wb-hdr__nav > ul > li > a:hover::after,
.wb-hdr__nav > ul > .current-menu-item > a::after, .wb-hdr__nav > ul > .current_page_item > a::after,
.wb-hdr__nav > ul > .current-menu-ancestor > a::after, .wb-hdr__nav > ul > .current_page_ancestor > a::after { transform: scaleX(1); }
.wb-hdr a:focus-visible, .wb-hdr button:focus-visible, .wb-ftr a:focus-visible { outline: 3px solid var(--wb-accent); outline-offset: 2px; }
/* Sottomenu */
.wb-hdr__nav li > ul { position: absolute; top: 100%; left: 0; min-width: 230px; background: #fff; border-top: 3px solid var(--wb-accent); box-shadow: 0 14px 34px rgba(30, 32, 35, .12); padding: 8px 0; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s; }
.wb-hdr__nav li:hover > ul, .wb-hdr__nav li:focus-within > ul { opacity: 1; visibility: visible; transform: none; }
.wb-hdr__nav li > ul a { padding: 10px 20px; font-size: 15px; }
.wb-hdr__nav .menu-item-has-children > a, .wb-hdr__nav .page_item_has_children > a { padding-right: 28px; }
.wb-hdr__nav > ul > .menu-item-has-children > a::before, .wb-hdr__nav > ul > .page_item_has_children > a::before { content: ""; position: absolute; right: 11px; top: 50%; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-70%) rotate(45deg); }

.wb-hdr__tel, .wb-btn { flex: none; display: inline-flex; align-items: center; gap: 10px; background: var(--wb-accent); color: #fff !important; text-decoration: none; padding: 13px 20px; border-radius: 2px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; line-height: 1.2; transition: filter .2s; }
.wb-hdr__tel:hover, .wb-btn:hover { filter: brightness(.88); }
.wb-hdr__tel svg { width: 18px; height: 18px; flex: none; }

.wb-hdr__toggle { display: none; flex: none; width: 48px; height: 48px; padding: 0; margin: 0; border: 0; border-radius: 2px; background: transparent; color: var(--wb-ink); cursor: pointer; position: relative; box-shadow: none; }
.wb-hdr__toggle:hover, .wb-hdr__toggle:focus { background: transparent; color: var(--wb-ink); }
.wb-hdr__toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: currentColor; transition: transform .3s, opacity .2s; }
.wb-hdr__toggle span:nth-child(1) { top: 16px; }
.wb-hdr__toggle span:nth-child(2) { top: 23px; }
.wb-hdr__toggle span:nth-child(3) { top: 30px; }
.wb-hdr.is-open .wb-hdr__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.wb-hdr.is-open .wb-hdr__toggle span:nth-child(2) { opacity: 0; }
.wb-hdr.is-open .wb-hdr__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1100px) { .wb-hdr__tel span { display: none; } .wb-hdr__tel { padding: 13px; } }
@media (max-width: 980px) {
	.wb-hdr__inner, .wb-hdr.is-scrolled .wb-hdr__inner { min-height: 72px; gap: 10px; }
	.wb-hdr__logo img, .wb-hdr.is-scrolled .wb-hdr__logo img { height: min(var(--wb-logo-h), 52px); }
	.wb-hdr__tel { margin-left: auto; }
	.wb-hdr__toggle { display: block; }
	.wb-hdr__nav { display: none; position: absolute; left: 0; right: 0; top: 100%; margin: 0; background: #fff; border-top: 1px solid var(--wb-line); box-shadow: 0 18px 30px rgba(30, 32, 35, .12); max-height: calc(100vh - 72px); overflow-y: auto; }
	.wb-hdr.is-open .wb-hdr__nav { display: block; }
	.wb-hdr__nav > ul { display: block; padding: 8px 0 16px; }
	.wb-hdr__nav a { padding: 15px 24px; font-size: 17px; border-bottom: 1px solid var(--wb-line); }
	.wb-hdr__nav a::after, .wb-hdr__nav a::before { display: none !important; }
	.wb-hdr__nav li > ul { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0; min-width: 0; }
	.wb-hdr__nav li > ul a { padding-left: 44px; font-size: 16px; }
}

/* ---------- Pagine normali e articoli ---------- */
.wb-entry { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(48px, 7vw, 96px); max-width: 820px; }
.wb-entry__title { font-size: clamp(2rem, 4.4vw, 3rem); margin: 0 0 .6em; letter-spacing: -.015em; }
.wb-entry__meta { margin: 0 0 .6em; color: var(--wb-muted); font-size: .9rem; }
.wb-entry__thumb { margin: 0 0 32px; }
.wb-entry__thumb img { width: 100%; display: block; }
.wb-entry__content > * { margin-top: 0; margin-bottom: 1.1em; }
.wb-entry__content h2 { font-size: 1.7rem; margin-top: 1.6em; }
.wb-entry__content h3 { font-size: 1.3rem; margin-top: 1.4em; }
.wb-archive__head { padding-top: clamp(40px, 6vw, 80px); }
.wb-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; padding-bottom: 48px; }
.wb-card { background: #fff; border: 1px solid var(--wb-line); display: flex; flex-direction: column; }
.wb-card__img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.wb-card__body { padding: 22px 24px 26px; }
.wb-card__title { font-size: 1.25rem; margin: 0 0 .5em; }
.wb-card__title a { color: var(--wb-ink); text-decoration: none; }
.wb-card__title a:hover { color: var(--wb-accent); }
.navigation.pagination { padding: 0 0 64px; }
.nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.page-numbers { display: inline-block; padding: 8px 14px; border: 1px solid var(--wb-line); color: var(--wb-ink); text-decoration: none; }
.page-numbers.current { background: var(--wb-ink); color: #fff; border-color: var(--wb-ink); }
.wb-404 { text-align: center; margin: 0 auto; }
.wb-404__code { font-size: clamp(4rem, 14vw, 8rem); font-weight: 700; line-height: 1; margin: 0 0 .1em; color: var(--wb-accent); }

/* ---------- Footer ---------- */
.wb-ftr { background: #1b1d20; color: rgba(255, 255, 255, .72); font-family: var(--wb-font); font-size: 15px; }
.wb-ftr a { color: #fff; text-decoration: none; }
.wb-ftr a:hover { text-decoration: underline; text-underline-offset: 3px; }
.wb-ftr__inner { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.wb-ftr > .wb-ftr__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-top: 64px; padding-bottom: 48px; }
.wb-ftr__logo { margin-bottom: 16px; }
.wb-ftr__logo .custom-logo-link { display: inline-block; background: #fff; padding: 10px 14px; border-radius: 3px; line-height: 0; }
.wb-ftr__logo img { height: calc(var(--wb-logo-h) * .8); }
.wb-ftr .wb-sitename { color: #fff; }
.wb-ftr__brand p { margin: 0; max-width: 380px; }
.wb-ftr__title { color: #fff; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 16px; }
.wb-ftr__list { list-style: none; margin: 0; padding: 0; }
.wb-ftr__list li { margin: 0 0 10px; }
.wb-ftr__bottom { border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13.5px; }
.wb-ftr__bottom .wb-ftr__inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; }
@media (max-width: 820px) { .wb-ftr > .wb-ftr__inner { grid-template-columns: 1fr; gap: 28px; padding-top: 48px; } }
