/* Global brand and WooCommerce presentation. */
:root{--tdf-forest:#203329;--tdf-paper:#fbf8f1;--tdf-cream:#f4eee3;--tdf-wine:#7f3439;--tdf-line:#ded8cc}
body{background:var(--tdf-paper);color:#1a201b;font-family:Manrope,system-ui,sans-serif}
body .wp-site-blocks{padding-top:0;padding-bottom:0}
body .wp-site-blocks>.wp-block-template-part{margin-block:0;max-width:none}
body .wp-site-blocks>.tdf-home-main{margin:0;padding:0;max-width:none}
body .tdf-home-main>.wp-block-shortcode{margin:0}
body h1,body h2,body h3{font-family:"DM Serif Display",Georgia,serif;font-weight:400}
.tdf-page-main{padding:clamp(32px,5vw,72px) 24px;margin-block:0!important;min-height:55vh}
body:not(.home) .wp-site-blocks>main{padding-inline:clamp(16px,4vw,50px)}
.tdf-design .navlinks{display:flex;flex-wrap:wrap;gap:20px;font-size:14px}
.tdf-design .nav-actions{display:flex;gap:10px;align-items:center}
.tdf-design .nav{flex-wrap:wrap}
.tdf-design .brand-logo{object-fit:contain}
.tdf-global-header .btn{white-space:nowrap}
.tdf-design .tdf-policy-links{margin:18px 0;color:#fff;font-size:14px}
.tdf-design .tdf-policy-links a{text-decoration:underline}
.tdf-global-header header{position:relative!important;inset:auto!important;background:var(--tdf-forest)!important}
.tdf-global-header{margin:0!important}
.tdf-global-footer{margin:0!important}
body .woocommerce ul.products li.product{background:#fff;border:1px solid var(--tdf-line);border-radius:16px;overflow:hidden;padding:20px;box-sizing:border-box}
body .woocommerce ul.products li.product a img{aspect-ratio:1;object-fit:contain;background:#fff}
body .woocommerce ul.products li.product .woocommerce-loop-product__title{font-family:"DM Serif Display",Georgia,serif;font-size:25px;line-height:1.2;color:var(--tdf-forest)}
body .woocommerce ul.products li.product .price,body .woocommerce div.product p.price{color:var(--tdf-wine);font-weight:700}
body .woocommerce :is(a.button,button.button,input.button),body .woocommerce :is(a.button.alt,button.button.alt,input.button.alt){background:var(--tdf-forest);color:#fff;border-radius:999px;padding:14px 24px;font-weight:600;line-height:1.4}
body .woocommerce :is(a.button,button.button,input.button):hover{background:#2c4638;color:#fff}
body .wc-block-product{border:1px solid var(--tdf-line);border-radius:16px;padding:20px;background:#fff}
body .wp-block-woocommerce-product-image img{object-fit:contain;background:#fff;border-radius:10px}
body .wc-block-product .wp-block-post-title{font-size:25px;line-height:1.25}
body .wp-block-woocommerce-product-price{color:var(--tdf-wine);font-weight:700}
body :is(.wc-block-components-button,.wp-element-button){border-radius:999px}
body .wc-block-components-button:not(.is-link){background:var(--tdf-forest);color:#fff}
body .wp-block-woocommerce-product-collection{margin-block:32px 64px}
body :is(input[type=text],input[type=email],input[type=tel],input[type=password],input[type=number],input[type=search],select,textarea){font-family:inherit;border-radius:8px;border:1px solid #aaa89e;max-width:100%;box-sizing:border-box}
body .woocommerce table.shop_table{border-color:var(--tdf-line);border-radius:12px}
body .woocommerce-MyAccount-navigation a{display:block;padding:10px 0}
body a:focus-visible,body button:focus-visible{outline:2px solid #7f3439;outline-offset:4px}
@media(max-width:900px){.tdf-design .navlinks{order:3;width:100%;justify-content:center;padding-top:12px;border-top:1px solid #ffffff30}.tdf-design .nav-actions{margin-left:auto}.tdf-design .navlinks a{padding:5px}}
@media(max-width:600px){.tdf-design .navlinks{gap:8px 16px;font-size:14px}.tdf-design .nav .logo strong{font-size:18px}.tdf-design .nav-actions{margin:0}.tdf-design .nav .btn{font-size:13px;padding:10px 14px}.tdf-page-main{padding-inline:16px}}
/* Altezza della striscia sopra il menu */
.tdf-global-header .topbar {
  height: 36px;
  box-sizing: border-box;
  padding: 4px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Il menu resta in alto, la striscia superiore scorre via */
.wp-site-blocks > .wp-block-template-part:has(.tdf-global-header) {
  position: sticky;
  top: -36px;
  z-index: 999;
}

/* Compensa la barra WordPress quando sei autenticato */
body.admin-bar .wp-site-blocks > .wp-block-template-part:has(.tdf-global-header) {
  top: -4px;
}

@media (min-width: 601px) and (max-width: 782px) {
  body.admin-bar .wp-site-blocks > .wp-block-template-part:has(.tdf-global-header) {
    top: 10px;
  }
}

@media (max-width: 600px) {
  body.admin-bar .wp-site-blocks > .wp-block-template-part:has(.tdf-global-header) {
    top: -36px;
  }
}