/* DIFILL B — header e footer, uguali su tutte le pagine del sito. */

/* Protezione: le pagine legali contengono stili propri scritti per tag (a, header, ul, li, p)
   che altrimenti cambierebbero header e footer (menu sbiadito, header piu' alto).
   Queste regole battono i tag nudi e restano sotto le regole del tema scritte piu' avanti. */
header.dfl-header { margin: 0; padding: 0; text-align: left; grid-column: auto; }
.dfl-header :is(ul, ol), .dfl-footer :is(ul, ol) { margin: 0; padding: 0; list-style: none; }
.dfl-header :is(li, p), .dfl-footer :is(li, p) { margin: 0; color: inherit; }
.dfl-header a, .dfl-footer a { color: inherit; font-weight: inherit; text-decoration: none; }

/* ---------- header ---------- */
.dfl-header { position: fixed; inset: 0 0 auto 0; z-index: 999; color: var(--avorio); transition: background-color .5s var(--ease), box-shadow .5s var(--ease); }
.dfl-header.is-scrolled, .dfl-header--solid { background: rgba(33, 31, 27, .97); box-shadow: 0 1px 0 var(--giunto); }
.admin-bar .dfl-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .dfl-header { top: 46px; } }
.dfl-bar { display: flex; align-items: center; gap: 24px; height: var(--header-h); transition: height .5s var(--ease); }
.is-scrolled .dfl-bar { height: 62px; }
.dfl-brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--avorio); flex: none; }
.dfl-brand:hover, .dfl-brand:focus { color: var(--avorio); }
.dfl-brand-mark { width: 24px; height: 35px; color: var(--oro); }
.dfl-brand-word { width: 88px; height: 16px; }
.dfl-tools { margin-left: auto; display: flex; align-items: center; }
.dfl-tool { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; color: var(--avorio); text-decoration: none; cursor: pointer; }
.dfl-tool svg { width: 22px; height: 22px; }
.dfl-tool:hover, .dfl .dfl-tool:hover, .dfl-tool[aria-expanded="true"] { color: var(--oro-chiaro); }
.dfl-cart-count {
  position: absolute; top: 5px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--oro); color: var(--lavica); font: 600 .6875rem/18px var(--f); text-align: center; font-variant-numeric: tabular-nums;
}
.dfl-cart-count[data-count="0"] { display: none; }
.dfl-menu-toggle .dfl-i-close { display: none; }
.dfl-menu-toggle[aria-expanded="true"] .dfl-i-open { display: none; }
.dfl-menu-toggle[aria-expanded="true"] .dfl-i-close { display: block; }

.dfl-nav {
  position: fixed; inset: 0; z-index: -1; background: var(--lavica);
  padding: calc(var(--header-h) + 28px) var(--gutter) 36px;
  display: flex; flex-direction: column; justify-content: space-between; overflow-y: auto;
  visibility: hidden; opacity: 0; transition: opacity .45s var(--ease), visibility 0s linear .45s;
}
.dfl-nav.is-open { visibility: visible; opacity: 1; transition: opacity .45s var(--ease); }
.dfl-nav-list a {
  display: block; padding: 14px 0; text-decoration: none; border-bottom: 1px solid var(--giunto);
  font-weight: 300; font-stretch: 125%; font-size: clamp(2rem, 9vw, 2.8rem); line-height: 1.1; letter-spacing: -0.02em;
}
.dfl-nav-list a:hover { color: var(--oro-chiaro); }
.dfl-nav-list .sub-menu { display: none; }
.dfl-nav-extra { display: grid; gap: 6px; margin-top: 32px; color: var(--testo-2); }
.dfl-nav-extra a { text-decoration: none; color: var(--avorio); }
.dfl-nav-open { overflow: hidden; }
html:not(.js) .dfl-nav { position: static; visibility: visible; opacity: 1; padding: 0; z-index: auto; background: none; }
html:not(.js) .dfl-nav-list { display: flex; gap: 16px; }
html:not(.js) .dfl-nav-list a { font-size: 1rem; border: 0; font-stretch: 100%; }
html:not(.js) .dfl-nav-extra, html:not(.js) .dfl-menu-toggle, html:not(.js) .dfl-search-toggle { display: none; }

@media (min-width: 1024px) {
  .dfl-menu-toggle { display: none; }
  .dfl-nav { position: static; z-index: auto; visibility: visible; opacity: 1; padding: 0; background: none; flex-direction: row; margin-left: auto; overflow: visible; transition: none; }
  .dfl-nav-list { display: flex; gap: 4px; }
  .dfl-nav-list a { position: relative; border: 0; padding: 10px 16px; font-weight: 400; font-stretch: 110%; font-size: .9375rem; letter-spacing: .01em; }
  .dfl-nav-list a:hover { color: inherit; }
  .dfl-nav-list a::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px; height: 1px; background: var(--oro); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
  .dfl-nav-list a:hover::after, .dfl-nav-list a:focus-visible::after,
  .dfl-nav-list .current-menu-item > a::after, .dfl-nav-list .current_page_item > a::after { transform: scaleX(1); }
  .dfl-nav-extra { display: none; }
  .dfl-tools { margin-left: 18px; }
  .dfl-brand-mark { width: 29px; height: 42px; }
  .dfl-brand-word { width: 104px; height: 19px; }
}

/* ricerca prodotti: pannello sotto la barra */
.dfl-search { background: var(--lavica); border-top: 1px solid var(--giunto); box-shadow: 0 1px 0 var(--giunto); }
.dfl-search[hidden] { display: none; }
.dfl-search form { display: flex; gap: 12px; padding-block: 18px; }
.dfl-search label { flex: 1; }
.dfl .dfl-search input[type="search"] {
  width: 100%; height: 54px; margin: 0; padding: 0 18px; border: 1px solid var(--giunto); border-radius: 0;
  background: var(--piperno); color: var(--avorio); font: 400 1.0625rem var(--f); box-shadow: none;
}
.dfl .dfl-search input[type="search"]::placeholder { color: var(--testo-2); opacity: 1; }
.dfl .dfl-search input[type="search"]:focus { outline: 2px solid var(--oro-chiaro); outline-offset: 0; border-color: var(--oro); }
.dfl .dfl-search .dfl-btn { flex: none; }

/* ---------- footer ---------- */
.dfl-footer { background: var(--lavica-2); color: var(--avorio); border-top: 1px solid var(--giunto); padding-top: clamp(56px, 7vw, 88px); font-size: .9375rem; }
.dfl-footer-top { display: grid; gap: 32px; padding-bottom: 48px; }
.dfl-brand-footer .dfl-brand-mark { width: 36px; height: 53px; }
.dfl-brand-footer .dfl-brand-word { width: 132px; height: 24px; }
.dfl-footer-links { display: flex; flex-wrap: wrap; gap: 4px 26px; }
.dfl-footer-links a { display: inline-block; padding: 8px 0; text-decoration: none; color: #E4DED3; }
.dfl .dfl-footer-links a:hover { color: var(--oro-chiaro); }
.dfl-footer-legal { display: grid; gap: 14px; padding-block: 22px 30px; border-top: 1px solid rgba(233, 228, 218, .12); font-size: .8125rem; color: var(--testo-2); }
.dfl-legal-data { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.dfl-social { display: flex; align-items: center; gap: 6px; }
.dfl-social a { display: inline-grid; place-items: center; width: 44px; height: 44px; color: #E4DED3; }
.dfl .dfl-social a:hover { color: var(--oro-chiaro); }
.dfl-social svg { width: 20px; height: 20px; }
.dfl-social span { margin-left: 8px; }
@media (min-width: 1024px) {
  .dfl-footer-top { grid-template-columns: auto 1fr; align-items: center; }
  .dfl-footer-links { justify-content: flex-end; }
  .dfl-footer-legal { grid-template-columns: 1fr auto; align-items: center; }
}
