/* Isolated support components; no global token or header overrides. */
.storefront-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 48px;
  padding: 0.85rem 1.25rem;
  border: 1px solid #38291f;
  border-radius: 0.2rem;
  background: #38291f;
  color: #faf8f4;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.storefront-button:hover {
  background: #594034;
  color: #fff;
}
.storefront-button--secondary {
  background: transparent;
  color: #38291f;
}
.storefront-button--secondary:hover {
  background: #e9dfd3;
  color: #38291f;
}
.storefront-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: inherit;
  font-size: 0.9rem;
  line-height: 1.5;
  text-decoration: underline;
  text-underline-offset: 0.3em;
}
.storefront-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}
:is(.storefront-link, .storefront-button):focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 4px;
}
.nonino-contact {
  padding-block: clamp(3rem, 5vw, 5rem);
  background: #211a16;
  color: #faf8f4;
  overflow-wrap: anywhere;
  scroll-margin-top: 6rem;
}
.nonino-contact__layout {
  max-width: 48rem;
}
.nonino-contact h2 {
  margin: 1rem 0 1.5rem;
  font-family: var(--nc-display-font);
  font-weight: 500;
  font-size: clamp(2.5rem, 4vw, 4rem);
  letter-spacing: -0.035em;
  line-height: 1.1;
  text-wrap: balance;
}
.nonino-contact__form > p {
  line-height: 1.8;
}
.nonino-contact .storefront-button {
  background: #e5c49d;
  border-color: #e5c49d;
  color: #211a16;
}
.nonino-contact .storefront-button:hover {
  background: #f4d7ae;
}
.nonino-contact__note {
  font-size: 0.85rem;
  line-height: 1.7;
  color: #d6c8bc;
}
.nonino-contact__required {
  margin: 0 0 1.25rem;
  color: #d6c8bc;
  font-size: 0.85rem;
}
.nonino-contact__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.nonino-contact label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
}
.nonino-contact :is(input:not([type="hidden"]), textarea) {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  margin: 0 0 1.25rem;
  padding: 0.8rem;
  border: 1px solid #a99a8d;
  border-radius: 0.2rem;
  background: #302720;
  color: #faf8f4;
  font: inherit;
  font-size: 1rem;
}
.nonino-contact textarea {
  resize: vertical;
}
.nonino-contact :is(input, textarea, a, button, [tabindex]):focus-visible {
  outline: 3px solid #e5c49d;
  outline-offset: 4px;
}
.nonino-contact [aria-invalid="true"] {
  border-color: #ffbaa5;
}
.nonino-contact__status {
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  border: 1px solid #e5c49d;
  color: #faf8f4;
  line-height: 1.7;
}
.nonino-contact__status p {
  margin: 0;
}
.nonino-contact__trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
/* Floating help: white pill with the WhatsApp mark on brand green; label collapses on small screens. */
.nonino-whatsapp {
  position: fixed;
  z-index: 30;
  right: max(1.25rem, env(safe-area-inset-right));
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  height: 52px;
  padding: 0 1.1rem 0 0.3rem;
  border: 1px solid rgba(78, 52, 46, 0.12);
  border-radius: 26px;
  background: #fff;
  color: #3b2a25;
  box-shadow:
    0 6px 22px rgba(30, 23, 20, 0.18),
    0 1px 3px rgba(30, 23, 20, 0.12);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  animation: nonino-whatsapp-in 0.5s 0.8s cubic-bezier(0.2, 0.8, 0.2, 1)
    backwards;
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease,
    bottom 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.nonino-whatsapp__icon {
  display: grid;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
}
.nonino-whatsapp__label {
  display: block;
  max-width: 14rem;
  margin-left: 0.65rem;
  overflow: hidden;
  white-space: nowrap;
  transition:
    max-width 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
    margin 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.2s ease;
}
@keyframes nonino-whatsapp-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.nonino-whatsapp:hover {
  box-shadow:
    0 8px 26px rgba(30, 23, 20, 0.26),
    0 1px 3px rgba(30, 23, 20, 0.12);
  transform: translateY(-1px);
}
.nonino-whatsapp:focus-visible {
  outline: 3px solid #145d40;
  outline-offset: 3px;
}
.nonino-whatsapp[data-obscured] {
  visibility: hidden;
}
/* Icon only on every page and width, also without JS; the label slides out on hover or keyboard focus. */
.nonino-whatsapp:not(:hover, :focus-visible) {
  padding: 0 0.2rem;
}
.nonino-whatsapp:not(:hover, :focus-visible) .nonino-whatsapp__label {
  max-width: 0;
  margin-left: 0;
  opacity: 0;
}
/* Sit above the quick-buy bar (product page) or the checkout bar (cart) while shown; both scripts set the bar height. */
html:is(.has-sticky-buy-visible, .has-cart-bar-visible) .nonino-whatsapp {
  bottom: calc(var(--nonino-sticky-buy-height, 0px) + 0.75rem);
}
body:has(
    .nonino-cart-drawer:not([hidden]),
    dialog[open],
    [aria-modal="true"][aria-hidden="false"],
    .primary-navigation.is-open
  )
  .nonino-whatsapp {
  visibility: hidden;
}
.site-footer .site-footer__grid {
  grid-template-columns:
    minmax(0, 1.15fr) minmax(0, 0.8fr) minmax(0, 0.8fr)
    minmax(0, 1.25fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  padding-block: 2.75rem;
}
.site-footer__grid > * {
  min-width: 0;
  overflow-wrap: anywhere;
}
.site-footer .site-footer__group-title {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
}
.site-footer .site-footer__links {
  gap: 0.25rem;
  margin-top: 0.85rem;
}
.site-footer .site-footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #e5d7c7;
}
.site-footer .site-footer__support {
  margin-top: 0.25rem;
}
/* The Instagram entry in the contact list only exists for the compact mobile footer. */
.site-footer .site-footer__contact-instagram {
  display: none;
}
.site-footer__whatsapp {
  gap: 0.5rem;
}
.site-footer__whatsapp svg {
  flex-shrink: 0;
}
.site-footer__instagram {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 48px;
  height: 48px;
  margin: 0.75rem auto 0;
  border: 1px solid #e5c49d;
  border-radius: 999px;
  background: #89664c;
  color: #faf8f4;
  text-decoration: none;
}
.site-footer__instagram:hover {
  background: #e5c49d;
  color: #211a16;
}
.site-footer .site-footer__tagline {
  color: #c5b8ab;
  line-height: 1.7;
  max-width: 14rem;
}
.site-footer .site-footer__legal {
  color: #c5b8ab;
}
.site-footer a:focus-visible {
  outline: 3px solid #e5c49d;
  outline-offset: 3px;
}
.nonino-faq-page {
  max-width: 52rem;
  padding-block: clamp(2.5rem, 5vw, 5rem);
}
.nonino-faq-page h1 {
  margin: 0 0 2rem;
  font-family: var(--nc-display-font);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.15;
}
.nonino-faq-page details {
  border-bottom: 1px solid #b5a596;
}
.nonino-faq-page details:first-child {
  border-top: 1px solid #b5a596;
}
.nonino-faq-page summary {
  min-height: 44px;
  padding: 1.25rem 0.25rem;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.6;
}
.nonino-faq-page details p {
  margin: 0;
  padding: 0 0.25rem 1.5rem;
  font-size: 1rem;
  line-height: 1.8;
  white-space: pre-line;
}
.nonino-faq-page summary:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}
@media (max-width: 48rem) {
  .site-footer .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 1.5rem;
    padding-block: 2rem;
  }
  .site-footer__identity,
  .site-footer__group:last-child {
    grid-column: 1 / -1;
  }
  /* Compact footer: small logo beside the tagline, short link rows, one contact row. */
  .site-footer .site-footer__grid {
    gap: 1.25rem 1rem;
    padding-block: 1.5rem;
  }
  .site-footer__identity {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  .site-footer__brand img.site-footer__logo {
    height: 3.5rem;
  }
  .site-footer .site-footer__tagline {
    max-width: none;
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.5;
  }
  .site-footer__identity .site-footer__instagram {
    display: none;
  }
  .site-footer .site-footer__links {
    gap: 0.125rem;
    margin-top: 0.5rem;
  }
  .site-footer .site-footer__links a {
    min-height: 28px;
    font-size: 0.9rem;
    line-height: 1.4;
  }
  .site-footer__group:last-child {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.125rem 1.5rem;
  }
  .site-footer__group:last-child > .site-footer__group-title {
    flex: 0 0 100%;
  }
  .site-footer__group:last-child > .site-footer__support-wrap,
  .site-footer__group:last-child .site-footer__links:not(.site-footer__contact) {
    display: contents;
  }
  .site-footer__group:last-child .site-footer__contact {
    display: flex;
    flex: 0 0 100%;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.875rem;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(231, 200, 158, 0.16);
  }
  .site-footer .site-footer__contact a {
    font-size: 0.8rem;
  }
  .site-footer .site-footer__contact-instagram {
    display: block;
  }
  .site-footer .site-footer__contact-instagram a {
    justify-content: center;
    min-width: 28px;
  }
  .site-footer .site-footer__legal {
    flex-wrap: wrap;
  }
  .nonino-contact__fields {
    grid-template-columns: 1fr;
  }
  .nonino-contact__layout {
    width: calc(100% - 2.5rem);
  }
  .nonino-contact__fields {
    gap: 0;
  }
  .nonino-whatsapp {
    right: max(0.75rem, env(safe-area-inset-right));
    bottom: max(0.75rem, env(safe-area-inset-bottom));
    height: 48px;
    padding: 0 1rem 0 0.2rem;
    border-radius: 24px;
    font-size: 0.82rem;
  }
  .nonino-whatsapp__icon {
    width: 44px;
    height: 44px;
  }
  /* Do not cover the add-to-cart button while it is on screen. */
  .nonino-whatsapp[data-yield] {
    visibility: hidden;
  }
  .nonino-whatsapp[data-footer-visible] {
    visibility: hidden;
  }
  /* Keep assistance in normal flow on transaction pages, away from purchase controls. */
  body:is(.woocommerce-checkout, .woocommerce-cart) .nonino-whatsapp {
    position: static;
    display: flex;
    margin: 1rem 1rem max(1rem, env(safe-area-inset-bottom)) auto;
  }
  body:has(input:focus, textarea:focus, select:focus) .nonino-whatsapp {
    visibility: hidden;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nonino-whatsapp {
    animation: none;
    transition: none;
  }
  .nonino-whatsapp:hover {
    transform: none;
  }
  .nonino-whatsapp__label {
    transition: none;
  }
}

/* Legal row: links, business identity and Data Fiscal slot. */
.site-footer .site-footer__legal {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0.25rem;
}
.site-footer__legal-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
/* Small and quiet, but every link keeps a 24px target (WCAG 2.2) and stays a labelled, visible link. */
.site-footer__legal-nav a {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  color: #fff;
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.site-footer__legal-nav a:hover,
.site-footer__legal-nav a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.site-footer__legal-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}
.site-footer__copyright {
  margin: 0;
  color: #c5b8ab;
  font-size: 0.72rem;
  line-height: 1.6;
}
.site-footer__datafiscal {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #c5b8ab;
  font-size: 0.72rem;
}
.site-footer__datafiscal img {
  display: block;
  height: 4rem;
  width: auto;
  background: #fff;
  border-radius: 2px;
}
.nonino-legal-missing {
  padding: 0 0.25em;
  background: #fff3cd;
  color: #5c4400;
  border-radius: 2px;
}
@media (max-width: 48rem) {
  .site-footer .site-footer__legal-nav a {
    min-height: 32px;
    font-size: 0.72rem;
  }
}
