/* Zoomad Child - base: token, reset, tipografia, header, footer, pagine, blog.
   Sostituisce style.css/icons/fonts di Storefront (deregistrati in inc/assets.php). */

/* ---------- Font self-hosted (SIL OFL 1.1, licenze in assets/fonts/) ---------- */
@font-face {
	font-family: "Bebas Neue";
	src: url("../fonts/bebas-neue-400.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Josefin Sans";
	src: url("../fonts/josefin-sans-var.woff2") format("woff2");
	font-weight: 100 700;
	font-style: normal;
	font-display: swap;
}

/* ---------- Token (DESIGN.md sez. 1-4 + decisioni sez. 9) ---------- */
:root {
	--c-yellow: #ffc900;
	--c-red: #ae1231;
	--c-dark: #2a2623;
	--c-text: #6b6b6b;
	--c-border: #c7c7c7;
	--c-border-light: #e6e6e6;
	--c-bg: #ffffff;
	--c-header: #151515;
	--c-footer: #f8f8f8;
	--c-footer-text: #333333;
	--c-muted: #868686;
	--c-soldout: #e00000;
	--c-yellow-15: rgba(255, 201, 0, .15);
	--c-black-50: rgba(0, 0, 0, .5);

	--f-head: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
	--f-body: "Josefin Sans", "Helvetica Neue", Arial, sans-serif;

	--fs-body: 15px;
	--lh-body: 1.6;
	--radius: 0;
	--btn-border: 2px;
	--container: 1440px;
	--gutter: 30px;
	--header-h: 74px;
	--ease: .25s ease;
}
@media (max-width: 767px) {
	:root { --gutter: 15px; --header-h: 60px; }
}

/* ---------- Reset essenziale ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--f-body);
	font-size: var(--fs-body);
	line-height: var(--lh-body);
	color: var(--c-text);
	background: var(--c-bg);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
img { border-style: none; }
a { color: var(--c-dark); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--c-yellow); }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
hr { border: 0; border-top: 1px solid var(--c-border-light); margin: 2em 0; }
table { width: 100%; border-collapse: collapse; margin: 0 0 1.5em; }
th, td { padding: .75em; border-bottom: 1px solid var(--c-border-light); text-align: left; vertical-align: top; }
blockquote { margin: 1.5em 0; padding: .5em 1.25em; border-left: 3px solid var(--c-yellow); }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
	position: fixed !important; top: 8px; left: 8px; width: auto; height: auto; clip: auto;
	z-index: 10000; padding: 10px 16px; background: var(--c-yellow); color: var(--c-dark);
}
[hidden] { display: none !important; }

/* Focus visibile (tastiera) */
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--c-yellow); outline-offset: 2px; box-shadow: 0 0 0 4px var(--c-dark); }
.site-header :focus-visible, .newsletter :focus-visible { box-shadow: none; }

/* ---------- Tipografia ---------- */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--f-head);
	font-weight: 400;
	color: var(--c-dark);
	line-height: 1.1;
	letter-spacing: .01em;
	margin: 0 0 .5em;
}
h1 { font-size: 40px; }
h2 { font-size: 32px; }
h3 { font-size: 24px; }
h4 { font-size: 20px; }
h5, h6 { font-size: 17px; }
@media (max-width: 767px) {
	h1 { font-size: 30px; }
	h2 { font-size: 26px; }
}
strong, b { font-weight: 700; color: var(--c-dark); }

/* ---------- Layout ---------- */
.container, .col-full {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--gutter);
}
.col-full::after { content: ""; display: table; clear: both; }
.site-content { min-height: 40vh; }

/* ---------- Bottoni ---------- */
.btn, .button, button.button, input[type="submit"], .wp-element-button, .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	padding: 10px 28px;
	border: var(--btn-border) solid var(--c-dark);
	border-radius: var(--radius);
	background: var(--c-dark);
	color: #fff;
	font-family: var(--f-body);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .1em;
	line-height: 1.2;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: background var(--ease), color var(--ease), border-color var(--ease);
}
.btn:hover, .button:hover, input[type="submit"]:hover, .wp-element-button:hover, .wp-block-button__link:hover {
	background: var(--c-yellow); border-color: var(--c-yellow); color: var(--c-dark);
}
.btn--yellow { background: var(--c-yellow); border-color: var(--c-yellow); color: var(--c-dark); }
.btn--yellow:hover { background: var(--c-dark); border-color: var(--c-dark); color: #fff; }
.btn--outline { background: transparent; color: var(--c-dark); }
.btn--outline:hover { background: var(--c-dark); border-color: var(--c-dark); color: #fff; }
.btn--outline-yellow { background: transparent; border-color: var(--c-yellow); color: #fff; }
.btn--outline-yellow:hover { background: var(--c-yellow); color: var(--c-dark); }
.btn--block { display: flex; width: 100%; }
.btn[disabled], .button.disabled, .button:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Campi ---------- */
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="password"],
input[type="search"], input[type="url"], select, textarea {
	width: 100%;
	min-height: 46px;
	padding: 10px 14px;
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	background: #fff;
	color: var(--c-dark);
	font-size: 15px;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
}
textarea { min-height: 140px; resize: vertical; }
select {
	padding-right: 36px;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%232a2623' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 12px center;
}
input:focus, select:focus, textarea:focus { border-color: var(--c-dark); }
label { display: inline-block; margin-bottom: 6px; color: var(--c-dark); font-size: 14px; }
::placeholder { color: #9a9a9a; opacity: 1; }

/* ---------- Header ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--c-header);
	color: #fff;
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.header-bar {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: var(--header-h);
	padding-block: 10px;
}
.site-logo { flex: 0 0 auto; display: block; }
.site-logo img { width: 200px; height: auto; }
.header-main { flex: 1 1 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.hdr-btn {
	display: inline-flex; align-items: center; justify-content: center; position: relative;
	width: 40px; height: 40px; padding: 0; border: 0; background: none; color: inherit;
}
.hdr-btn:hover { color: var(--c-yellow); }
.hdr-btn--menu { display: none; }
.header-icons { display: flex; align-items: center; gap: 4px; color: #fff; }
.cart-count {
	position: absolute; top: 2px; right: 0;
	min-width: 18px; height: 18px; padding: 0 4px;
	border-radius: 9px;
	background: var(--c-yellow); color: var(--c-dark);
	font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}

/* Menu principale */
.main-nav__list { display: flex; flex-wrap: wrap; justify-content: flex-end; margin: 0; padding: 0; list-style: none; }
.main-nav__list > li { position: relative; }
.main-nav__list > li > a {
	display: block;
	padding: 6px 13px;
	font-family: var(--f-head);
	font-size: 18px;
	letter-spacing: .03em;
	color: #fff;
	text-transform: uppercase;
	position: relative;
}
.main-nav__list > li > a::after {
	content: ""; position: absolute; left: 13px; right: 13px; bottom: 2px; height: 2px;
	background: var(--c-yellow); transform: scaleX(0); transition: transform var(--ease);
}
.main-nav__list > li > a:hover, .main-nav__list > .current-menu-item > a, .main-nav__list > .current-menu-ancestor > a { color: var(--c-yellow); }
.main-nav__list > .current-menu-item > a::after, .main-nav__list > li > a:hover::after { transform: scaleX(1); }
.main-nav .sub-menu {
	position: absolute; top: 100%; left: 0; z-index: 10;
	min-width: 220px; margin: 0; padding: 10px 0; list-style: none;
	background: #fff; border-top: 2px solid var(--c-yellow);
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity var(--ease), transform var(--ease), visibility var(--ease);
}
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.main-nav .sub-menu a { display: block; padding: 7px 20px; color: #000; font-size: 14px; }
.main-nav .sub-menu a:hover { color: var(--c-yellow); }

/* Ricerca */
.search-panel { background: var(--c-header); border-top: 1px solid #2c2c2c; padding: 14px 0; }
.search-panel__form { display: flex; gap: 10px; align-items: center; }
.search-panel__form input[type="search"] { background: #fff; }

/* Barra annunci rossa (home) */
.announce {
	display: flex; align-items: center; justify-content: center; gap: 12px;
	min-height: 40px; padding: 0 var(--gutter);
	background: var(--c-red); color: #fff;
}
.announce__nav { border: 0; background: none; color: #fff; padding: 6px; display: inline-flex; }
.announce__nav:hover { color: var(--c-yellow); }
.announce__track { min-width: 0; flex: 0 1 560px; text-align: center; }
.announce__item { color: #fff; font-size: 13px; letter-spacing: .04em; }
.announce__item:hover { color: var(--c-yellow); }

/* Off-canvas (menu mobile, drawer carrello) */
.offcanvas {
	position: fixed; top: 0; bottom: 0; z-index: 1001;
	width: min(420px, 88vw);
	display: flex; flex-direction: column;
	background: #fff; color: var(--c-dark);
	transition: transform .3s ease;
	overflow: hidden;
}
.offcanvas--left { left: 0; transform: translateX(-100%); }
.offcanvas--right { right: 0; width: min(520px, 100vw); transform: translateX(100%); }
.offcanvas.is-open { transform: none; }
.offcanvas__head {
	display: flex; align-items: center; justify-content: space-between;
	padding: 14px 20px; border-bottom: 1px solid var(--c-border-light);
}
.offcanvas__title { font-family: var(--f-head); font-size: 24px; letter-spacing: .03em; text-transform: uppercase; }
.overlay { position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, .6); }
body.has-offcanvas { overflow: hidden; }

.mobile-nav { flex: 1; overflow-y: auto; }
.mobile-nav__list { list-style: none; margin: 0; padding: 0; }
.mobile-nav__list li { border-bottom: 1px solid var(--c-border-light); }
.mobile-nav__list a { display: block; padding: 14px 20px; font-family: var(--f-head); font-size: 20px; letter-spacing: .03em; color: var(--c-dark); text-transform: uppercase; }
.mobile-nav__list .current-menu-item > a { color: var(--c-yellow); background: var(--c-dark); }
.mobile-nav__list .sub-menu { list-style: none; padding: 0 0 8px 16px; margin: 0; }
.mobile-nav__list .sub-menu a { font-family: var(--f-body); font-size: 15px; text-transform: none; padding: 8px 20px; }
.mobile-nav__account { display: flex; align-items: center; gap: 8px; padding: 16px 20px; border-top: 1px solid var(--c-border-light); font-weight: 600; }

@media (max-width: 1199px) {
	.header-bar { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; }
	.hdr-btn--menu { display: inline-flex; justify-self: start; }
	.site-logo { justify-self: center; }
	.site-logo img { width: 170px; }
	.header-main { display: contents; }
	.main-nav { display: none; }
	.header-icons { justify-self: end; }
	.hdr-btn--account { display: none; }
}
@media (max-width: 767px) {
	.site-logo img { width: 140px; }
	.hdr-btn { width: 36px; height: 36px; }
	.announce__item { font-size: 12px; }
}

/* ---------- Titolo pagina + breadcrumb ---------- */
.page-hero { padding: 48px 0 40px; text-align: center; }
.page-hero__title { margin: 0 0 12px; font-size: 48px; text-transform: uppercase; }
.breadcrumb { font-size: 14px; color: var(--c-dark); }
.breadcrumb a { color: var(--c-dark); text-decoration: underline; text-underline-offset: 2px; }
.breadcrumb a:hover { color: var(--c-yellow); }
.breadcrumb .sep { margin: 0 8px; }
.page-head { padding: 36px 0 24px; border-bottom: 1px solid var(--c-border); margin-bottom: 40px; }
.page-head__title { font-size: 40px; text-transform: uppercase; margin-bottom: 10px; }
@media (max-width: 767px) {
	.page-hero { padding: 28px 0 24px; }
	.page-hero__title { font-size: 34px; }
	.page-head__title { font-size: 28px; }
}

/* ---------- Pagine statiche e blog ---------- */
.entry-content { color: var(--c-text); font-size: 16px; }
.entry-content > * { max-width: 100%; }
.entry-content h2 { font-size: 30px; margin-top: 1.4em; }
.entry-content h3 { font-size: 24px; margin-top: 1.2em; }
.entry-content a { color: var(--c-dark); text-decoration: underline; text-underline-offset: 2px; }
.entry-content a:hover { color: var(--c-red); }
.entry-content img { height: auto; }
.entry-content .alignwide, .entry-content .alignfull { max-width: none; }
.page-layout { padding-bottom: 60px; }
.page-layout--narrow .entry-content { max-width: 900px; }
.post-meta { font-size: 13px; color: var(--c-muted); text-transform: uppercase; letter-spacing: .06em; }
.post-thumb { margin: 0 0 30px; }
.post-thumb img { width: 100%; }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; list-style: none; padding: 0; margin: 0 0 40px; }
.blog-card__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #f2f2f2; margin-bottom: 14px; }
.blog-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.blog-card:hover .blog-card__img img { transform: scale(1.04); }
.blog-card__title { font-size: 24px; margin: 6px 0 8px; }
.blog-card__excerpt { font-size: 15px; }
@media (max-width: 1023px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 599px) { .blog-grid { grid-template-columns: 1fr; } }

.pagination, .navigation.pagination, .woocommerce-pagination { margin: 30px 0; text-align: center; }
.page-numbers { list-style: none; display: inline-flex; gap: 6px; padding: 0; margin: 0; }
.page-numbers li { display: inline-block; }
a.page-numbers, span.page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 40px; height: 40px; padding: 0 10px; border: 1px solid var(--c-border); color: var(--c-dark);
}
span.page-numbers.current { background: var(--c-dark); color: #fff; border-color: var(--c-dark); }
a.page-numbers:hover { border-color: var(--c-yellow); color: var(--c-dark); background: var(--c-yellow); }

/* Contatti (pagina con form + social) */
.contact-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 60px; margin-bottom: 50px; }
.contact-form .row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.contact-form p { margin-bottom: 16px; }
.contact-aside { padding-top: 6px; }
.contact-aside__intro { padding-bottom: 14px; border-bottom: 1px solid var(--c-border); }
.contact-aside .social { margin-top: 14px; }
.contact-text h2 { font-size: 28px; }
.notice-box { padding: 14px 18px; margin-bottom: 20px; border-left: 3px solid var(--c-yellow); background: var(--c-yellow-15); color: var(--c-dark); }
.notice-box--error { border-left-color: var(--c-red); background: #fbecef; }
@media (max-width: 899px) {
	.contact-grid { grid-template-columns: 1fr; gap: 30px; }
	.contact-form .row { grid-template-columns: 1fr; gap: 0; }
}
.hp-field { position: absolute; left: -9999px; }

/* ---------- Newsletter ---------- */
.newsletter {
	background: #000; color: #fff; text-align: center;
	border-top: 4px solid var(--c-yellow);
	padding: 60px 0 64px;
}
.newsletter__title { color: #fff; font-size: 48px; margin-bottom: 14px; }
.newsletter__text { max-width: 640px; margin: 0 auto 28px; font-size: 15px; color: #fff; }
.newsletter__form { display: flex; max-width: 640px; margin: 0 auto; gap: 0; }
.newsletter__form input[type="email"] { background: #1a1a1a; border-color: #3a3a3a; color: #fff; }
.newsletter__form .btn { flex: 0 0 auto; }
@media (max-width: 599px) {
	.newsletter { padding: 40px 0; }
	.newsletter__title { font-size: 34px; }
	.newsletter__form { flex-direction: column; gap: 10px; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--c-footer); color: var(--c-footer-text); font-size: 14px; }
.footer-top {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: 40px;
	padding-top: 60px;
	padding-bottom: 50px;
}
.footer-logo img { width: 100px; height: auto; margin-bottom: 14px; }
.footer-title {
	display: block; margin: 0 0 16px;
	font-family: var(--f-head); font-size: 22px; letter-spacing: .03em; color: #000; text-transform: uppercase;
	list-style: none;
}
.footer-title::-webkit-details-marker { display: none; }
.footer-text { color: var(--c-footer-text); line-height: 1.7; }
.footer-store { font-weight: 700; text-transform: uppercase; text-decoration: underline; text-underline-offset: 3px; color: #000; }
.footer-store:hover, .site-footer a:hover { color: var(--c-red); }
.footer-menu { list-style: none; margin: 0; padding: 0; }
.footer-menu li { margin-bottom: 9px; }
.footer-menu a { color: var(--c-footer-text); }
.social { list-style: none; display: flex; gap: 14px; margin: 18px 0 0; padding: 0; }
.social a { display: inline-flex; color: #000; }
.footer-bottom { background: #fff; padding: 18px 0; color: var(--c-muted); font-size: 13px; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--c-muted); }
.footer-acc > summary { cursor: default; }
@media (max-width: 1023px) {
	.footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
	.footer-top { grid-template-columns: 1fr; gap: 0; padding-top: 40px; padding-bottom: 30px; }
	.footer-col--brand { padding-bottom: 24px; }
	.footer-col--links { border-top: 1px solid var(--c-border); }
	.footer-acc > summary { cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 16px 0; margin: 0; }
	.footer-acc > summary::after { content: "+"; font-family: var(--f-body); font-size: 22px; }
	.footer-acc[open] > summary::after { content: "–"; }
	.footer-acc .footer-menu { padding-bottom: 14px; }
}

/* ---------- Avvisi WP/WC generici ---------- */
.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-notice {
	list-style: none; margin: 0 0 24px; padding: 14px 18px;
	border-left: 3px solid var(--c-yellow); background: var(--c-yellow-15); color: var(--c-dark);
	display: flex; flex-wrap: wrap; align-items: center; gap: 12px; justify-content: space-between;
}
.woocommerce-error { border-left-color: var(--c-red); background: #fbecef; }
.woocommerce-message .button, .woocommerce-info .button { min-height: 36px; padding: 6px 16px; order: 2; }

/* ---------- Complianz: banner coerente con il tema ---------- */
.cmplz-cookiebanner { border-radius: 0 !important; box-shadow: none !important; }
.cmplz-cookiebanner .cmplz-btn { border-radius: 0 !important; }

/* ---------- Form contatti / collab / B2B (inc/forms.php) ---------- */
.zform-wrap { max-width: 760px; margin: 30px 0 50px; scroll-margin-top: calc(var(--header-h) + 20px); }
.zform__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.zform__field { grid-column: 1 / -1; margin: 0 0 18px; }
.zform__field--half { grid-column: auto; }
.zform__field label { display: block; font-weight: 600; }
.zform .req { color: var(--c-red); }
.zform__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.zform__consent { margin: 4px 0 20px; font-size: 14px; }
.zform__consent label { display: flex; gap: 10px; align-items: flex-start; color: var(--c-text); }
.zform__consent input { width: 18px; height: 18px; margin-top: 2px; flex: 0 0 auto; accent-color: var(--c-dark); }
.zform__consent a { text-decoration: underline; }
@media (max-width: 749px) {
	.zform__grid { grid-template-columns: 1fr; }
	.zform__field--half { grid-column: 1 / -1; }
}

/* ---------- Pagina / articolo (page.php, single.php, index.php) ---------- */
.page-layout--narrow { max-width: 900px; margin-inline: auto; }
.page-hero .post-meta { margin: 0 0 10px; }
.page-hero .post-meta a { color: var(--c-muted); }
.post-single__title { max-width: 1000px; margin-inline: auto; }
.post-single__back { margin-top: 40px; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.entry-content li { margin-bottom: .4em; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; }
.entry-content th, .entry-content td { padding: 10px 12px; border: 1px solid var(--c-border-light); text-align: left; }
.entry-content blockquote { margin: 0 0 1.4em; padding: 10px 20px; border-left: 3px solid var(--c-yellow); color: var(--c-dark); }
.entry-content details.faq { border-bottom: 1px solid var(--c-border); }
.entry-content details.faq summary { padding: 16px 0; color: var(--c-dark); font-weight: 600; cursor: pointer; }
.entry-content details.faq p { margin: 0 0 16px; }
.entry-content .btn { text-decoration: none; color: var(--c-dark); }
.entry-content .btn:hover { color: var(--c-dark); }
.link-arrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 3px; }
.notfound { text-align: center; }
.notfound__search { display: flex; gap: 10px; max-width: 560px; margin: 0 auto 30px; }
.notfound__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
