:root {
  --bg: #fff8f2;
  --paper: #ffffff;
  --text: #21170f;
  --muted: #6a5648;
  --accent: #c27843;
  --accent-dark: #9a552d;
  --border: #ead7c8;
  --shadow: 0 18px 40px rgba(80, 42, 18, 0.12);
  --header-surface: rgba(255, 255, 255, 0.92);
  --header-scrim: linear-gradient(180deg, rgba(255, 252, 248, 0.98) 0%, rgba(255, 255, 255, 0.9) 100%);
  --header-line: rgba(220, 200, 185, 0.55);
  --header-elev: 0 1px 0 rgba(255, 255, 255, 0.75) inset, 0 4px 24px -4px rgba(50, 32, 20, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  overscroll-behavior-y: contain;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  position: relative;
  overflow-x: hidden;
  line-height: 1.55;
  isolation: isolate;
}

/* Marchio: fisso al centro dello schermo (ti “segue” scrollando), dietro a tutto, filigrana */
.page-bg-logo {
  --page-bg-image: url("/images/hero-felicia-logo.png");
  position: fixed;
  left: 50%;
  top: 44%;
  width: min(92vw, 520px);
  height: min(92vw, 520px);
  max-height: 88vh;
  transform: translate(-50%, -50%);
  background-image: var(--page-bg-image);
  background-repeat: no-repeat;
  background-position: center;
  background-size: min(75vw, 500px) auto;
  opacity: 0.14;
  pointer-events: none;
  z-index: -1;
  backface-visibility: hidden;
}

main,
footer {
  position: relative;
  z-index: 0;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
  min-width: 0;
}

/* Testi impostati da admin: non superano la larghezza del contenitore */
:where(main, footer)
  :where(
    p,
    h1,
    h2,
    h3,
    h4,
    li,
    dd,
    .lead,
    .lead-narrow,
    .brand,
    .eyebrow,
    .products-intro,
    .products-section-lead,
    .products-section-lead--vetrina,
    .contact-line p,
    .card-body,
    .allergen-guide-lead,
    .allergen-guide-foot,
    .allergen-list li
  ) {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

:where(main, footer) :where(a[href^="http"], a[href^="//"]) {
  overflow-wrap: anywhere;
}

.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(70px);
  z-index: -1;
}

.orb-1 {
  width: 280px;
  height: 280px;
  background: rgba(255, 190, 150, 0.4);
  top: -60px;
  right: -80px;
}

.orb-2 {
  width: 240px;
  height: 240px;
  background: rgba(253, 228, 210, 0.7);
  bottom: 50px;
  left: -90px;
}

.glass-header {
  background: var(--header-scrim);
  background-color: var(--header-surface);
  border-bottom: 1px solid var(--header-line);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  box-shadow: var(--header-elev);
  position: sticky;
  top: 0;
  z-index: 10;
  padding-top: env(safe-area-inset-top, 0);
}

.nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  min-height: 3.75rem;
  padding: 0.95rem 0 0.75rem;
  box-sizing: border-box;
}

/* Separazione artistica tra marchio e menu */
.nav-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: min(26rem, 92%);
  margin: 0.35rem auto 0.4rem;
  padding: 0.1rem 0;
  flex-shrink: 0;
}

.nav-ornament__line {
  flex: 1;
  min-width: 1.5rem;
  max-width: 8rem;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(194, 120, 67, 0.18) 12%,
    rgba(194, 120, 67, 0.5) 48%,
    rgba(194, 120, 67, 0.18) 88%,
    transparent 100%
  );
}

.nav-ornament__flourish {
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  transform: rotate(45deg);
  border-radius: 1px;
  background: linear-gradient(145deg, var(--accent) 0%, var(--accent-dark) 100%);
  opacity: 0.72;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.65) inset,
    0 0 0 5px rgba(194, 120, 67, 0.1),
    0 2px 8px -2px rgba(90, 55, 30, 0.18);
}

.nav-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.55rem;
  margin: 0;
  padding: 0.15rem 0 0;
  border-left: none;
  min-height: auto;
}

.nav-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin: 0;
  min-width: 0;
  max-width: 100%;
  text-decoration: none;
  color: inherit;
  flex-shrink: 1;
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-brand:hover,
.nav-brand:focus-visible {
  background: rgba(194, 120, 67, 0.06);
}

.nav-brand:hover .brand,
.nav-brand:focus-visible .brand {
  color: var(--accent-dark);
}

.nav-brand:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.header-logo {
  display: block;
  height: 40px;
  width: auto;
  max-width: min(200px, 32vw);
  object-fit: contain;
  object-position: left center;
  flex-shrink: 0;
}

.brand {
  font-weight: 700;
  font-size: 1.28rem;
  letter-spacing: 0.02em;
  min-width: 0;
  line-height: 1.25;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
}

.nav-link {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  padding: 0.5rem 0.85rem;
  line-height: 1.3;
  border: 0;
  border-radius: 7px;
  background: transparent;
  transition: color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--accent-dark);
  background: rgba(194, 120, 67, 0.09);
}

.nav-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  color: var(--accent-dark);
  background: rgba(194, 120, 67, 0.07);
}

.nav-link[aria-current="page"] {
  color: var(--accent-dark);
  background: rgba(194, 120, 67, 0.1);
  font-weight: 600;
}

/* Accesso amministrazione: stile “secondario”, separato dalle voci del sito */
.nav-main .admin-link {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-left: 0.35rem;
  padding: 0.4rem 0.7rem 0.4rem 0.75rem;
  border: 1px solid rgba(234, 215, 200, 0.95);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
}

.nav-main .admin-link:hover {
  color: var(--accent-dark);
  background: #fff;
  border-color: #dcc4b0;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 2px 8px -2px rgba(60, 40, 24, 0.08);
}

.nav-main .admin-link:focus-visible {
  color: var(--accent-dark);
  background: #fff;
  border-color: var(--accent);
}

.hero {
  position: relative;
  padding: clamp(2.75rem, 5vw, 4.25rem) 0 clamp(3.25rem, 6vw, 4.75rem);
  overflow: hidden;
  isolation: isolate;
}

/* Luce soffusa dietro al testo (non copre i contenuti) */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(100% 75% at 0% 15%, rgba(255, 255, 255, 0.75) 0%, transparent 52%),
    radial-gradient(90% 70% at 100% 100%, rgba(255, 224, 200, 0.28) 0%, transparent 48%);
  opacity: 1;
}

.hero > .container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-copy {
  min-width: 0;
  max-width: 42rem;
  padding: 0.15rem 0 0.25rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-copy h1 {
  text-wrap: balance;
  font-size: clamp(2.1rem, 1.1rem + 2.5vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 0.4rem auto 1rem auto;
  color: #1a120c;
  max-width: min(20ch, 100%);
  overflow-wrap: break-word;
}

@media (min-width: 40rem) {
  .hero-copy h1 {
    max-width: min(22ch, 100%);
  }
}

/* Solo hero: sottotitolo sopra il titolo */
.hero-copy .eyebrow {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  font-weight: 600;
  margin: 0 auto 0.35rem auto;
  padding-bottom: 0.4rem;
  color: var(--accent-dark);
  text-transform: uppercase;
  border-bottom: 1px solid rgba(194, 120, 67, 0.28);
  max-width: fit-content;
}

.hero-copy .lead {
  font-size: clamp(1.02rem, 0.4vw + 0.9rem, 1.12rem);
  line-height: 1.65;
  max-width: 32rem;
  margin: 0 auto;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 0.55rem 0.7rem;
  margin-top: clamp(1.5rem, 3vw, 1.9rem);
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

/* Pulsanti hero: CTA principale in evidenza, secondari coerenti */
.hero .btn-primary,
.hero .btn-secondary {
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.hero .btn-primary {
  background: linear-gradient(180deg, #ca854e 0%, var(--accent) 100%);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 3px 18px -3px rgba(194, 120, 67, 0.55);
  border: 1px solid rgba(150, 90, 40, 0.18);
}

.hero .btn-primary:hover {
  background: linear-gradient(180deg, #b86f3a 0%, var(--accent-dark) 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 4px 22px -3px rgba(154, 85, 45, 0.45);
}

.hero .btn-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(234, 215, 200, 0.95);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 2px 10px -4px rgba(50, 32, 20, 0.08);
}

.hero .btn-secondary:hover {
  background: #fff;
  border-color: #dcc4b0;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 3px 14px -4px rgba(50, 32, 20, 0.1);
}

/* WhatsApp: accento riconoscibile senza strillare */
.hero .hero-btn-wa {
  border-color: rgba(37, 170, 90, 0.4);
  color: #0f512b;
  background: linear-gradient(180deg, #e8f7ee 0%, #d4f0df 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 2px 10px -4px rgba(37, 170, 90, 0.2);
}

.hero .hero-btn-wa:hover {
  border-color: rgba(30, 150, 78, 0.6);
  color: #09331a;
  background: linear-gradient(180deg, #d4f0df 0%, #c1e8d0 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 3px 14px -4px rgba(37, 170, 90, 0.3);
}

.hero .btn-primary:focus-visible,
.hero .btn-secondary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(20rem, 44vh);
  padding: clamp(0.9rem, 2.2vw, 1.4rem);
  border-radius: 20px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 245, 236, 0.35) 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6) inset, 0 4px 32px -8px rgba(50, 32, 20, 0.15);
  align-self: center;
  box-sizing: border-box;
}

.hero-visual--empty {
  min-height: min(14rem, 34vh);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 250, 244, 0.28) 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.45) inset, 0 2px 20px -10px rgba(50, 32, 20, 0.1);
}

.hero-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: min(24rem, 100%);
  margin: 0 auto;
}

.hero-logo {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(20rem, 40vh);
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 10px 28px rgba(50, 32, 20, 0.12));
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-logo {
    animation: float 6s ease-in-out infinite;
  }
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  color: var(--accent-dark);
  font-weight: 700;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 14px;
  margin-top: 10px;
}

.lead {
  color: var(--muted);
  max-width: 620px;
  line-height: 1.65;
}

.lead-narrow {
  color: var(--muted);
  max-width: 800px;
  line-height: 1.7;
}

.btn-primary,
.btn-secondary {
  display: inline-block;
  text-decoration: none;
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-1px);
}

.btn-with-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-with-icon .ui-icon {
  margin-top: 0;
  color: inherit;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-dark);
}

.btn-secondary {
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.7);
}

section {
  padding: 52px 0;
}

.section-soft {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.8));
  border-block: 1px solid rgba(234, 215, 200, 0.5);
}

/* ——— Chi siamo / storia (homepage) ——— */
.section-about {
  position: relative;
  padding: clamp(3rem, 6.5vw, 4.5rem) 0;
  overflow: hidden;
}

.section-about::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 85% 50% at 50% 0%, rgba(194, 120, 67, 0.1) 0%, transparent 58%);
  pointer-events: none;
  z-index: 0;
}

.section-about__inner {
  position: relative;
  z-index: 1;
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  min-width: 0;
}

.section-about__head {
  text-align: center;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem);
}

.section-about__head .eyebrow {
  display: block;
  margin: 0 0 0.5rem;
}

.section-about__head h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

.section-about__head h2::after {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  margin: 0.9rem auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--accent) 20%, var(--accent) 80%, transparent);
  opacity: 0.95;
}

.section-about__head .lead-narrow {
  max-width: 36rem;
  margin: 0 auto;
  text-align: center;
}

.section-about__values {
  max-width: 56rem;
  margin: 0 auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.2vw, 1.4rem);
  counter-reset: about-step;
}

.section-about__values .value-card {
  counter-increment: about-step;
  text-align: center;
  padding: clamp(1.2rem, 2.2vw, 1.6rem) 1.1rem 1.35rem;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, var(--paper) 100%);
  border: 1px solid rgba(234, 215, 200, 0.7);
  box-shadow: 0 4px 28px -10px rgba(80, 50, 30, 0.14);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .section-about__values .value-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 32px -8px rgba(80, 50, 30, 0.2);
  }
}

.section-about__values .value-card::before {
  content: counter(about-step, decimal-leading-zero);
  display: block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

.section-about--no-step-numbers .section-about__values .value-card::before {
  content: none;
  display: none;
  margin: 0;
}

.section-about__values .value-card h3 {
  font-size: 1.04rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin: 0 0 0.5rem;
}

.section-about__values .value-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.62;
}

h2 {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: clamp(1.6rem, 2.7vw, 2.1rem);
}

.section-head {
  margin-bottom: 24px;
}

.section-head h2 {
  margin-bottom: 8px;
}

/* ——— Vetrina prodotti (homepage) ——— */
.section-vetrina.section-products {
  padding-bottom: clamp(3.85rem, 7.5vw, 5.75rem);
}

.section-products {
  position: relative;
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  background: linear-gradient(180deg, rgba(255, 250, 245, 0.65) 0%, var(--bg) 42%, var(--bg) 100%);
  border-block: 1px solid rgba(234, 215, 200, 0.45);
  /* Non usare hidden qui: su iOS/Safari può interferire con lo scroll orizzontale del figlio */
  overflow-x: visible;
  overflow-y: visible;
}

.section-products::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 50% at 50% 0%, rgba(194, 120, 67, 0.07) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

.products-section-inner {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.products-section-head {
  margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
  text-align: center;
  max-width: 38rem;
  margin-left: auto;
  margin-right: auto;
}

.products-section-title,
.section-products .products-section-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 3.2vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.2;
}

.products-section-title::after {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  margin: 0.85rem auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--accent) 20%, var(--accent) 80%, transparent);
  opacity: 0.9;
}

.section-products .products-intro {
  margin: 0 auto;
  max-width: 36rem;
  white-space: pre-line;
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  line-height: 1.65;
  color: var(--muted);
}

.section-products .products-toolbar {
  display: flex;
  flex-direction: column;
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
  padding: 1.1rem 1.15rem 1.2rem;
  background: var(--paper);
  border: 1px solid rgba(234, 215, 200, 0.85);
  border-radius: 18px;
  box-shadow: 0 4px 28px -8px rgba(80, 42, 18, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.7) inset;
  gap: 0;
}

.section-products .products-toolbar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}

.section-products .products-toolbar-row--filters {
  align-items: flex-start;
  gap: 10px 14px;
}

.section-products .products-toolbar-label {
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-dark);
  min-width: 4.5rem;
  padding-top: 0.35rem;
}

.section-products .product-filter-chips {
  flex: 1;
  min-width: 0;
  gap: 0.5rem 0.65rem;
}

.section-products .products-toolbar-divider {
  height: 1px;
  margin: 0.9rem 0 0.85rem;
  background: linear-gradient(90deg, transparent, var(--border) 12%, var(--border) 88%, transparent);
  opacity: 0.9;
}

.section-products .products-toolbar-row--end {
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
}

.section-products .product-sort {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  flex: 1 1 auto;
  min-width: min(100%, 15rem);
}

.section-products .product-sort-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark);
  white-space: nowrap;
  line-height: 1.2;
  margin: 0;
}

.section-products .product-sort-native {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  appearance: none;
  pointer-events: none;
}

.section-products .product-sort-field {
  position: relative;
  display: block;
  width: 100%;
  max-width: 17.5rem;
  border-radius: 14px;
  border: 1.5px solid rgba(234, 215, 200, 0.95);
  background: linear-gradient(180deg, #fffcf9 0%, #fff8f0 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 2px 10px -2px rgba(50, 32, 20, 0.1);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.section-products .product-sort-combobox {
  position: relative;
  z-index: 1;
}

.section-products .product-sort-combobox.is-open {
  z-index: 30;
}

.section-products .product-sort-field:hover {
  border-color: rgba(194, 120, 67, 0.42);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.95) inset, 0 3px 14px -4px rgba(80, 42, 18, 0.14);
}

.section-products .product-sort-field:focus-within,
.section-products .product-sort.is-open .product-sort-field {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(194, 120, 67, 0.22), 0 1px 0 rgba(255, 255, 255, 0.95) inset, 0 2px 12px -4px rgba(80, 42, 18, 0.12);
  outline: none;
}

.section-products .product-sort-trigger {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 2.5rem;
  margin: 0;
  padding: 0.55rem 2.4rem 0.55rem 0.9rem;
  border: 0;
  border-radius: 12px;
  background: transparent;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.section-products .product-sort-trigger::after {
  content: "";
  position: absolute;
  right: 0.8rem;
  top: 50%;
  width: 1rem;
  height: 1rem;
  margin-top: 0.05rem;
  transform: translateY(-50%) rotate(0deg);
  background: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23c27843' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.95;
  transition: transform 0.2s ease;
}

.section-products .product-sort-combobox.is-open .product-sort-trigger::after {
  transform: translateY(-50%) rotate(180deg);
}

.section-products .product-sort-trigger-text {
  flex: 1;
  min-width: 0;
}

.section-products .product-sort-trigger:hover {
  color: var(--accent-dark);
}

.section-products .product-sort-trigger:focus {
  outline: none;
}

.section-products .product-sort-trigger:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(194, 120, 67, 0.35);
  border-radius: 11px;
}

.section-products .product-sort-listbox {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0.35rem;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  min-width: 100%;
  box-sizing: border-box;
  border-radius: 14px;
  border: 1.5px solid rgba(234, 215, 200, 0.95);
  background: var(--paper);
  box-shadow: 0 10px 40px -12px rgba(50, 32, 20, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.75) inset;
  z-index: 40;
}

.section-products .product-sort-listitem {
  margin: 0;
  padding: 0;
}

.section-products .product-sort-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  margin: 0;
  padding: 0.65rem 0.6rem 0.65rem 0.7rem;
  border: 1.5px solid transparent;
  border-radius: 11px;
  background: transparent;
  font: inherit;
  text-align: left;
  color: var(--text);
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
  -webkit-tap-highlight-color: transparent;
}

.section-products .product-sort-listitem + .product-sort-listitem {
  margin-top: 0.2rem;
}

.section-products .product-sort-option:hover {
  background: rgba(255, 244, 232, 0.95);
  border-color: rgba(234, 215, 200, 0.7);
}

.section-products .product-sort-option:focus {
  outline: none;
}

.section-products .product-sort-option:focus-visible {
  box-shadow: 0 0 0 2px rgba(194, 120, 67, 0.35);
}

.section-products .product-sort-option[aria-selected="true"] {
  background: linear-gradient(135deg, rgba(255, 240, 224, 0.95) 0%, rgba(255, 228, 206, 0.88) 100%);
  border-color: rgba(194, 120, 67, 0.45);
  box-shadow: 0 0 0 1px rgba(194, 120, 67, 0.12) inset;
}

.section-products .product-sort-option[aria-selected="true"] .product-sort-option-title {
  color: var(--accent-dark);
}

.section-products .product-sort-option-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  min-width: 0;
  flex: 1;
}

.section-products .product-sort-option-title {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.section-products .product-sort-option-hint {
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.35;
  color: var(--muted);
}

.section-products .product-sort-option[aria-selected="true"] .product-sort-option-hint {
  color: #7a6354;
}

.section-products .product-sort-check {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.4rem;
  color: var(--accent);
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.section-products .product-sort-option[aria-selected="true"] .product-sort-check {
  opacity: 1;
  transform: scale(1);
}

.section-products .products-count {
  font-size: 0.8rem;
  color: var(--muted);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 245, 236, 0.95);
  border: 1px solid rgba(234, 215, 200, 0.75);
  margin-left: auto;
}

.section-products button.chip.chip-filter {
  margin: 0;
  cursor: pointer;
  font: inherit;
  border-radius: 999px;
  border-width: 1.5px;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.4rem 1rem;
  background: #fffdf9;
  color: var(--text);
  border-color: rgba(234, 215, 200, 0.95);
  box-shadow: 0 1px 2px rgba(50, 32, 20, 0.04);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.section-products button.chip.chip-filter:hover {
  border-color: rgba(194, 120, 67, 0.45);
  background: #fff8f0;
}

.section-products button.chip.chip-filter:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.section-products .chip-filter--active {
  background: linear-gradient(180deg, #fff2e4 0%, #ffe8d4 100%) !important;
  border-color: var(--accent) !important;
  color: var(--accent-dark) !important;
  box-shadow: 0 0 0 1px rgba(194, 120, 67, 0.2) !important;
}

.section-products .products-grid-scroll {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  margin: 0 0 0.15rem;
  padding-bottom: 0.4rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(0.25rem, env(safe-area-inset-left, 0px)) max(0.25rem, env(safe-area-inset-right, 0px));
  scrollbar-color: rgba(194, 120, 67, 0.45) rgba(255, 245, 236, 0.6);
  scrollbar-width: thin;
  touch-action: auto;
}

.section-products .products-grid-scroll::-webkit-scrollbar {
  height: 6px;
}

.section-products .products-grid-scroll::-webkit-scrollbar-thumb {
  background: rgba(194, 120, 67, 0.4);
  border-radius: 999px;
}

/* Touch: lo snap «mandatory» su WebKit a volte assorbe il gesto; proximity scorre meglio */
@media (hover: none) and (pointer: coarse) {
  .section-products .products-grid-scroll {
    scroll-snap-type: x proximity;
  }
}

.section-products .products-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: clamp(0.9rem, 2.2vw, 1.2rem);
  min-height: 0;
  width: max-content;
  min-width: 100%;
  padding: 0.2rem 0 0.15rem;
}

.section-products .products-grid > .card {
  flex: 0 0 min(19.5rem, 82vw);
  max-width: min(19.5rem, 88vw);
  width: min(19.5rem, 82vw);
  scroll-snap-align: start;
  scroll-snap-stop: normal;
  box-sizing: border-box;
  list-style: none;
}

.section-products .products-grid > .products-empty {
  flex: 0 0 100%;
  min-width: 100%;
  max-width: 100%;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
  scroll-snap-align: none;
}

@media (prefers-reduced-motion: reduce) {
  .section-products .products-grid-scroll {
    scroll-snap-type: none;
  }
  .section-products .products-grid > .card {
    scroll-snap-align: none;
  }
}

.section-products .card {
  border-radius: 18px;
  border-color: rgba(234, 215, 200, 0.9);
  box-shadow: 0 6px 28px -12px rgba(50, 32, 20, 0.14);
  margin: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .section-products .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 40px -14px rgba(50, 32, 20, 0.2);
  }
}

.section-products .card img,
.section-products .card-img-fallback {
  height: 200px;
}

.section-products .card .chip:not(.chip-filter) {
  background: linear-gradient(180deg, #fff6ee 0%, #ffefe4 100%);
  border-color: rgba(194, 120, 67, 0.22);
  color: var(--accent-dark);
  font-weight: 600;
}

.section-products .card .price {
  font-size: 1.1rem;
  margin-top: 0.15rem;
  letter-spacing: 0.02em;
}

.section-products .products-empty {
  padding: 2.5rem 1.25rem;
  border-radius: 16px;
  background: rgba(255, 252, 248, 0.85);
  border: 1px dashed rgba(234, 215, 200, 0.9);
  color: var(--muted);
}

/* Homepage: vetrina — foto, nome in overlay, striscia orizzontale (blocco centrato) */
.section-vetrina .products-kicker--vetrina {
  margin: 0 0 0.55rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-dark);
}

.section-vetrina .products-section-head {
  margin-bottom: clamp(1.25rem, 2.8vw, 1.65rem);
  max-width: none;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-vetrina .products-section-head__text {
  width: 100%;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-vetrina .products-section-lead--vetrina {
  margin: 0.5rem auto 0;
  max-width: 40rem;
  text-align: center;
  font-size: clamp(0.95rem, 1.4vw, 1.04rem);
  line-height: 1.6;
  color: var(--muted);
}

.section-vetrina .products-section-title {
  margin-bottom: 0;
  text-align: center;
}

.section-vetrina .products-section-title::after {
  margin-top: 0.6rem;
  margin-left: auto;
  margin-right: auto;
}

.section-vetrina .products-grid-scroll {
  padding-bottom: 0.45rem;
}

.section-vetrina .products-grid {
  justify-content: center;
}

.section-vetrina .products-grid > .card {
  flex: 0 0 min(13.25rem, 76vw);
  max-width: min(13.25rem, 80vw);
  width: min(13.25rem, 76vw);
}

.section-vetrina .card.card--vetrina {
  overflow: hidden;
  border-radius: 16px;
  padding: 0;
}

.section-vetrina .card-vetrina-inner {
  position: relative;
  display: block;
  border-radius: inherit;
  overflow: hidden;
}

.section-vetrina .card.card--vetrina img,
.section-vetrina .card.card--vetrina .card-img-fallback {
  width: 100%;
  display: block;
  height: min(200px, 46vw);
  object-fit: cover;
  border-radius: 0;
  border-bottom: none;
  margin: 0;
}

.section-vetrina .card.card--vetrina .card-img-fallback {
  min-height: min(200px, 46vw);
}

.section-vetrina .card-vetrina-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.35rem 0.65rem 0.55rem;
  background: linear-gradient(180deg, transparent, rgba(33, 23, 15, 0.08) 18%, rgba(33, 23, 15, 0.82));
  color: #fffbf7;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.section-vetrina .card-vetrina-name {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

@media (hover: hover) and (pointer: fine) {
  .section-vetrina .card-vetrina-cap {
    transform: translateY(100%);
    opacity: 0.98;
    transition: transform 0.22s ease, opacity 0.22s ease;
  }

  .section-vetrina .card.card--vetrina:hover .card-vetrina-cap,
  .section-vetrina .card.card--vetrina:focus-within .card-vetrina-cap {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .section-vetrina .card-vetrina-cap {
    transition: none;
    transform: none;
    opacity: 1;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .section-products .card.card--vetrina:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px -14px rgba(50, 32, 20, 0.22);
  }
}

/* Pagina /prodotti: layout premium del catalogo */
body[data-page="prodotti"] .section-products {
  padding-top: clamp(3.2rem, 7vw, 5rem);
  padding-bottom: clamp(3.2rem, 7vw, 5rem);
}

body[data-page="prodotti"] .products-section-inner {
  max-width: 74rem;
}

body[data-page="prodotti"] .products-section-head {
  margin-bottom: clamp(1.6rem, 3.2vw, 2.3rem);
  padding: clamp(1.2rem, 2.4vw, 1.8rem) clamp(1rem, 3vw, 2rem);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(255, 247, 239, 0.72));
  border: 1px solid rgba(234, 215, 200, 0.8);
  border-radius: 18px;
  box-shadow: 0 14px 42px -26px rgba(50, 32, 20, 0.22);
}

body[data-page="prodotti"] .products-kicker {
  margin: 0 0 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-dark);
}

body[data-page="prodotti"] .products-section-title {
  margin-bottom: 0.55rem;
}

body[data-page="prodotti"] .products-intro {
  font-size: clamp(0.98rem, 1.6vw, 1.08rem);
}

body[data-page="prodotti"] .products-toolbar--catalog {
  padding: 0;
  gap: 0;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  border-color: rgba(234, 215, 200, 0.95);
  box-shadow: 0 12px 34px -20px rgba(50, 32, 20, 0.24), 0 0 0 1px rgba(255, 255, 255, 0.65) inset;
}

body[data-page="prodotti"] .products-toolbar__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  padding: 0.75rem 1.15rem;
  background: linear-gradient(180deg, rgba(255, 252, 248, 0.98) 0%, rgba(255, 246, 237, 0.94) 100%);
  border-bottom: 1px solid rgba(234, 215, 200, 0.78);
}

body[data-page="prodotti"] .products-toolbar__hint {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.45;
  max-width: min(36rem, 100%);
}

body[data-page="prodotti"] .products-count--toolbar {
  flex-shrink: 0;
  margin-left: auto;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent-dark);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(194, 120, 67, 0.22);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.95) inset;
  padding: 0.45rem 0.95rem;
}

body[data-page="prodotti"] .products-toolbar__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(14rem, 18.5rem);
  gap: 1.1rem 1.85rem;
  padding: 1.05rem 1.15rem 1.2rem;
  align-items: start;
  background: var(--paper);
}

body[data-page="prodotti"] .products-toolbar__col--filters .products-toolbar-label {
  display: block;
  margin: 0 0 0.55rem;
  padding-top: 0;
  min-width: 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent-dark);
}

body[data-page="prodotti"] .products-toolbar__col--filters .product-filter-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.55rem;
}

body[data-page="prodotti"] .products-toolbar__col--sort {
  justify-self: end;
  width: 100%;
}

body[data-page="prodotti"] .products-toolbar__col--sort .product-sort--catalog {
  width: 100%;
  max-width: 18.5rem;
  margin-left: auto;
  min-width: 0;
}

body[data-page="prodotti"] .products-toolbar__col--sort .product-sort-label {
  margin: 0 0 0.5rem;
}

body[data-page="prodotti"] .products-toolbar__col--sort .product-sort-field {
  max-width: none;
  width: 100%;
}

@media (max-width: 760px) {
  body[data-page="prodotti"] .products-toolbar__bar {
    flex-direction: column;
    align-items: flex-start;
  }

  body[data-page="prodotti"] .products-count--toolbar {
    margin-left: 0;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }

  body[data-page="prodotti"] .products-toolbar__grid {
    grid-template-columns: 1fr;
    gap: 1.15rem;
    padding: 1rem 1rem 1.15rem;
  }

  body[data-page="prodotti"] .products-toolbar__col--sort {
    justify-self: stretch;
    padding-top: 0.85rem;
    margin-top: 0.1rem;
    border-top: 1px solid rgba(234, 215, 200, 0.72);
  }

  body[data-page="prodotti"] .products-toolbar__col--sort .product-sort--catalog {
    max-width: none;
    margin-left: 0;
  }
}

body[data-page="prodotti"] .products-grid-scroll {
  overflow: visible;
  padding-bottom: 0;
  scrollbar-width: auto;
}

body[data-page="prodotti"] .products-grid {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(0.95rem, 2vw, 1.35rem);
  padding: 0.25rem 0 0;
}

body[data-page="prodotti"] .products-grid > .card {
  flex: initial;
  width: auto;
  max-width: none;
}

body[data-page="prodotti"] .section-products .card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(234, 215, 200, 0.88);
  box-shadow: 0 10px 32px -18px rgba(50, 32, 20, 0.3);
}

body[data-page="prodotti"] .section-products .card img,
body[data-page="prodotti"] .section-products .card-img-fallback {
  height: 210px;
}

body[data-page="prodotti"] .section-products .card-body {
  padding: 0.95rem 0.95rem 1.05rem;
}

body[data-page="prodotti"] .section-products .products-cta {
  margin-top: clamp(1.4rem, 3.5vw, 2.15rem);
}

@media (max-width: 760px) {
  body[data-page="prodotti"] .products-section-head {
    border-radius: 14px;
    padding: 1rem 0.9rem 1.1rem;
  }

  body[data-page="prodotti"] .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  body[data-page="prodotti"] .section-products .card img,
  body[data-page="prodotti"] .section-products .card-img-fallback {
    height: 156px;
  }

  body[data-page="prodotti"] .section-products .card .chip:not(.chip-filter) {
    font-size: 0.7rem;
  }
}

@media (max-width: 520px) {
  body[data-page="prodotti"] .products-grid {
    grid-template-columns: 1fr;
  }

  body[data-page="prodotti"] .section-products .card img,
  body[data-page="prodotti"] .section-products .card-img-fallback {
    height: 190px;
  }
}

.section-products .products-cta {
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
  padding: 1.35rem 1.5rem;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(255, 244, 234, 0.55));
  border: 1px solid rgba(234, 215, 200, 0.75);
  box-shadow: 0 8px 32px -16px rgba(50, 32, 20, 0.12);
}

.section-products .products-cta p {
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--text);
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-products .products-cta-actions {
  justify-content: center;
  margin-top: 0.25rem;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  min-width: 0;
}

.value-card {
  min-width: 0;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.value-card h3 {
  margin-top: 0;
  margin-bottom: 6px;
}

.card-img-fallback {
  display: block;
  width: 100%;
  height: 185px;
  background: linear-gradient(145deg, #f3e4d8, #e8d5c8);
  border-bottom: 1px solid var(--border);
}

.card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
}

.card img {
  width: 100%;
  height: 185px;
  object-fit: cover;
  background: linear-gradient(145deg, #f3e4d8, #e8d5c8);
}

.fade-in-image {
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}

.fade-in-image.loaded {
  opacity: 1;
}

.card-body {
  padding: 15px;
}

.card-body h3 {
  margin: 0 0 8px;
}

.card-body p {
  margin: 0 0 8px;
}

.chip {
  display: inline-flex;
  margin: 0 0 8px;
  font-size: 0.8rem;
  border: 1px solid #efdccf;
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--accent-dark);
  background: #fff7f1;
}

.price {
  color: var(--accent-dark);
  font-weight: 700;
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
  min-width: 0;
}

.contact-box {
  min-width: 0;
  position: relative;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(234, 215, 200, 0.65);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 8px 32px -8px rgba(50, 32, 20, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.45) inset;
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
}

/* Iconografia sezione contatti (coerente, stroke leggero) */
.ui-icon {
  width: 1.35em;
  height: 1.35em;
  flex-shrink: 0;
  color: var(--accent-dark);
  margin-top: 0.1em;
}

.ui-icon--sm {
  width: 1.1em;
  height: 1.1em;
  margin-top: 0;
}

.contact-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 12px;
}

.contact-line p {
  margin: 0;
  flex: 1;
  line-height: 1.5;
}

.contact-line--action a.contact-map-link {
  font-weight: 600;
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hp-trap {
  position: absolute;
  left: -9999px;
  top: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
}

.form-field-group {
  min-width: 0;
  margin-bottom: 0.25rem;
}

.form-field-group .form-field-hint,
.form-field-hint {
  margin: 4px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
}

.form-field-error:empty {
  min-height: 0;
  margin: 0;
  padding: 0;
}

.form-field-error:not(:empty) {
  margin: 4px 0 0;
  min-height: 1.1em;
  font-size: 0.8rem;
  color: #a12c2c;
  font-weight: 600;
}

#cakeRequestForm input.input-error,
#cakeRequestForm textarea.input-error,
#cakeRequestForm fieldset.form-fieldset.input-error,
#cakeRequestForm .form-privacy.input-error {
  outline: 0;
  border-color: #c45a4d;
  box-shadow: 0 0 0 1px rgba(196, 90, 77, 0.35);
}

#cakeRequestForm fieldset.form-fieldset.input-error {
  border-color: #c45a4d;
  box-shadow: 0 0 0 2px rgba(196, 90, 77, 0.2);
  border-radius: 12px;
}

.form-fieldset {
  border: 1px solid rgba(234, 215, 200, 0.85);
  border-radius: 12px;
  margin: 0.75rem 0 0.5rem;
  padding: 0.65rem 0.9rem 0.75rem;
  background: rgba(255, 255, 255, 0.25);
}

.form-fieldset legend {
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0 0.4rem;
  color: var(--text);
}

.form-radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.25rem;
  margin-top: 0.35rem;
}

.form-radio-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
  cursor: pointer;
  margin: 0;
}

.form-radio-label input {
  width: auto;
  margin: 0;
  accent-color: var(--accent);
}

.form-delivery-block.hidden,
.form-delivery-block[hidden] {
  display: none !important;
}

.form-delivery-block:not(.hidden) {
  display: block;
  margin-top: 0.35rem;
}

.form-delivery-block textarea {
  margin-top: 0.35rem;
}

.form-privacy {
  margin: 0.5rem 0 0.35rem;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(234, 215, 200, 0.7);
  background: rgba(255, 250, 245, 0.45);
}

.form-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.88rem;
  line-height: 1.5;
  font-weight: 500;
  margin: 0;
  cursor: pointer;
  color: var(--text);
}

.form-checkbox-label input {
  width: 1.05rem;
  height: 1.05rem;
  min-width: 1.05rem;
  min-height: 1.05rem;
  margin-top: 0.2rem;
  accent-color: var(--accent);
  cursor: pointer;
}

.form-checkbox-label a {
  color: var(--accent-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-label-block {
  line-height: 1.5;
}

.form-label-block .allergen-inline-link,
.allergen-inline-link {
  color: var(--accent-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.allergen-inline-link:hover,
.allergen-inline-link:focus-visible {
  color: var(--accent);
}

/* Guida 14 allergeni (pagina /ordina) */
.allergen-guide {
  margin: 0 auto clamp(1.25rem, 3vw, 1.75rem);
  max-width: min(1100px, 92%);
  border: 1.5px solid rgba(234, 215, 200, 0.85);
  border-radius: 16px;
  background: rgba(255, 252, 248, 0.52);
  box-shadow: 0 2px 20px -6px rgba(50, 32, 20, 0.08);
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  overflow: hidden;
}

.allergen-guide[open] {
  box-shadow: 0 6px 28px -8px rgba(50, 32, 20, 0.12);
}

.allergen-guide-summary {
  list-style: none;
  cursor: pointer;
  padding: 0.9rem 1.1rem 0.9rem 1.15rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.allergen-guide-summary::-webkit-details-marker {
  display: none;
}

.allergen-guide-summary::after {
  content: "";
  width: 0.65rem;
  height: 0.65rem;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-left: 0.25rem;
  opacity: 0.85;
}

.allergen-guide[open] .allergen-guide-summary::after {
  transform: rotate(225deg);
  margin-top: 0.2rem;
}

.allergen-guide-summary:hover {
  color: var(--text);
  background: rgba(255, 240, 228, 0.35);
}

.allergen-guide-body {
  padding: 0 1.15rem 1.1rem 1.15rem;
  border-top: 1px solid rgba(234, 215, 200, 0.55);
}

.allergen-guide-lead {
  margin: 0.75rem 0 0.85rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text);
  max-width: 52rem;
}

.allergen-list {
  margin: 0 0 0.75rem;
  padding: 0 0 0 1.1rem;
  display: grid;
  gap: 0.4rem 1.5rem;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--text);
}

@media (min-width: 640px) {
  .allergen-list {
    grid-template-columns: 1fr 1fr;
  }
}

.allergen-list li {
  margin: 0;
  padding: 0.1rem 0 0.1rem 0.15rem;
}

.allergen-list li strong {
  color: var(--accent-dark);
  font-weight: 700;
}

.allergen-guide-foot {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 50rem;
}

.allergen-guide-foot a {
  color: var(--accent-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-word;
}

/* ——— Pagina /ordina: sezione centrata in pagina ——— */
body[data-page="ordina"] .section-head {
  max-width: 42rem;
  margin: 0 auto clamp(1.35rem, 2.6vw, 1.85rem);
  text-align: center;
}

body[data-page="ordina"] .section-head h1 {
  margin-top: 0;
}

body[data-page="ordina"] .section-head .eyebrow {
  display: block;
  margin: 0 auto 0.4rem;
}

body[data-page="ordina"] .section-head .lead {
  margin-left: auto;
  margin-right: auto;
  max-width: 36rem;
}

body[data-page="ordina"] .allergen-guide {
  max-width: 42rem;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: clamp(1.4rem, 2.8vw, 1.95rem);
}

body[data-page="ordina"] .allergen-guide-summary {
  justify-content: center;
  gap: 0.5rem;
}

body[data-page="ordina"] .allergen-guide-body .allergen-guide-lead,
body[data-page="ordina"] .allergen-guide-body .allergen-guide-foot {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

body[data-page="ordina"] .allergen-guide-body .allergen-list,
body[data-page="ordina"] .allergen-list li {
  text-align: left;
}

body[data-page="ordina"] .contact-wrap {
  max-width: min(56rem, 100%);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

body[data-page="ordina"] #cakeRequestForm fieldset.form-fieldset {
  text-align: center;
}

body[data-page="ordina"] #cakeRequestForm .form-radio-row {
  justify-content: center;
}

body[data-page="ordina"] #cakeRequestForm .form-delivery-block {
  text-align: left;
}

body[data-page="ordina"] #cakeRequestForm > .btn-primary[type="submit"] {
  display: block;
  margin: 0.9rem auto 0;
  min-width: min(100%, 14rem);
}

body[data-page="ordina"] #cakeRequestForm #cakeRequestMsg {
  text-align: center;
}

.contact-label {
  font-weight: 700;
  color: var(--text);
}

.contact-label::after {
  content: ": ";
}

.contact-aside {
  min-width: 0;
  position: relative;
  background: linear-gradient(
    145deg,
    rgba(255, 242, 232, 0.5),
    rgba(255, 231, 213, 0.38)
  );
  border: 1px solid rgba(239, 216, 197, 0.7);
  border-radius: 14px;
  padding: clamp(1.25rem, 3vw, 1.65rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.85rem;
  box-shadow: 0 8px 32px -8px rgba(50, 32, 20, 0.09), 0 0 0 1px rgba(255, 255, 255, 0.35) inset;
  backdrop-filter: blur(14px) saturate(1.12);
  -webkit-backdrop-filter: blur(14px) saturate(1.12);
}

.contact-aside h3 {
  margin: 0;
  max-width: 26rem;
  font-size: clamp(1.12rem, 2.1vw, 1.32rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.28;
  color: var(--text);
}

.contact-aside p {
  margin: 0;
  max-width: 26rem;
  font-size: clamp(0.94rem, 1.35vw, 1.02rem);
  line-height: 1.62;
  color: var(--muted);
}

.contact-aside .btn-primary,
.contact-aside .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 20rem;
  box-sizing: border-box;
}

.contact-aside p + .btn-primary {
  margin-top: 0.2rem;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid rgba(234, 215, 200, 0.7);
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-weight: 600;
  color: var(--accent-dark);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #efdccf;
  background: #fffaf6;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.social-link:hover {
  background: #fff2e8;
  border-color: #e4c4a8;
}

label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

footer {
  border-top: 1px solid rgba(234, 215, 200, 0.7);
  padding: 25px 0 40px;
  color: var(--muted);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  min-width: 0;
}

.footer-grid > div {
  min-width: 0;
}

.footer-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--accent-dark);
  text-decoration: none;
  font-weight: 600;
}

.link-button {
  border: 0;
  background: transparent;
  color: var(--accent-dark);
  text-decoration: underline;
  padding: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}

.link-button:hover {
  background: transparent;
  color: var(--accent);
  text-decoration: underline;
}

.legal-page {
  padding-top: 50px;
  padding-bottom: 60px;
}

.legal-page-wide {
  max-width: min(820px, 96%);
  margin: 0 auto;
}

.legal-breadcrumb {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 0.5rem;
}

.legal-breadcrumb a {
  color: var(--accent-dark);
  text-decoration: none;
  font-weight: 600;
}

.legal-breadcrumb a:hover {
  text-decoration: underline;
}

.legal-meta {
  color: var(--muted);
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
}

.legal-disclaimer {
  background: #fff7ef;
  border: 1px solid #f0d9c4;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0 0 1.5rem;
}

.legal-list {
  margin: 0.5rem 0 1rem 1.1rem;
  padding: 0;
  line-height: 1.55;
}

.legal-list li {
  margin-bottom: 0.4rem;
}

.legal-table-wrap {
  overflow-x: auto;
  margin: 1rem 0;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  line-height: 1.4;
}

.legal-table th,
.legal-table td {
  border: 1px solid #ead7c8;
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  background: #fff5ee;
  font-weight: 700;
  color: var(--text);
}

.legal-table code {
  font-size: 0.82em;
  background: #faf5f0;
  padding: 1px 4px;
  border-radius: 4px;
}

.legal-footer-nav {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
}

.legal-footer-nav a {
  color: var(--accent-dark);
  font-weight: 600;
  text-decoration: none;
}

.legal-footer-nav a:hover {
  text-decoration: underline;
}

.legal-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 16px;
  margin-bottom: 12px;
}

.legal-card h2 {
  margin-top: 0;
  font-size: clamp(1.2rem, 2.2vw, 1.4rem);
}

.legal-card h3 {
  font-size: 1.05rem;
  margin: 1.1rem 0 0.5rem;
  color: var(--text);
}

.legal-card p {
  margin: 0.55rem 0;
  line-height: 1.6;
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding: 16px 16px max(16px, env(safe-area-inset-bottom));
  pointer-events: none;
}

.cookie-banner > * {
  pointer-events: auto;
}

.cookie-banner-content {
  width: 100%;
  max-width: min(960px, 100%);
  position: relative;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(80, 42, 18, 0.16);
  padding: 20px 22px 20px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px 24px;
  overflow: hidden;
}

.cookie-banner-content::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 20px 0 0 20px;
  background: linear-gradient(
    180deg,
    var(--accent) 0%,
    var(--accent-dark) 100%
  );
}

.cookie-banner-text {
  flex: 1;
  min-width: 0;
  padding-left: 10px;
}

.cookie-banner-title {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text);
}

.cookie-banner-text p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted);
}

.cookie-banner-text a {
  color: var(--accent-dark);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.cookie-banner-text a:hover,
.cookie-banner-text a:focus-visible {
  color: var(--accent);
}

.cookie-banner-actions {
  flex-shrink: 0;
  align-items: center;
  justify-content: flex-end;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-modal {
  position: fixed;
  inset: 0;
  background: rgba(22, 14, 9, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  z-index: 1100;
  padding: 16px;
  align-content: center;
}

.cookie-modal-card {
  width: min(480px, 100%);
  max-height: min(88vh, 640px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 24px 48px rgba(80, 42, 18, 0.18);
  padding: 0;
}

.cookie-modal-head {
  padding: 24px 24px 16px;
  border-bottom: 1px solid rgba(234, 215, 200, 0.85);
  background: linear-gradient(180deg, rgba(255, 250, 245, 0.95) 0%, var(--paper) 100%);
  border-radius: 20px 20px 0 0;
}

.cookie-modal-title {
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.25;
}

.cookie-modal-lead {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted);
}

.cookie-options {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.cookie-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 8px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.cookie-row + .cookie-row {
  border-top: 1px solid rgba(234, 215, 200, 0.6);
}

.cookie-row:not(.cookie-row--static):hover {
  background: rgba(255, 248, 240, 0.85);
  border-color: rgba(194, 120, 67, 0.15);
}

.cookie-row--static {
  background: rgba(255, 248, 240, 0.5);
  border: 1px solid rgba(234, 215, 200, 0.8);
  margin-bottom: 4px;
}

.cookie-row-block {
  flex: 1;
  min-width: 0;
  margin: 0;
  cursor: pointer;
  display: block;
}

.cookie-row-text {
  display: block;
  min-width: 0;
}

.cookie-row-title {
  display: block;
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  line-height: 1.3;
}

.cookie-row--static .cookie-row-title {
  cursor: default;
}

.cookie-row-desc {
  display: block;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--muted);
}

.cookie-pill {
  flex-shrink: 0;
  align-self: center;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent-dark);
  background: linear-gradient(180deg, #fef6ee 0%, #f5e4d4 100%);
  border: 1px solid rgba(194, 120, 67, 0.35);
  border-radius: 999px;
  padding: 6px 10px;
  white-space: nowrap;
}

.cookie-switch {
  position: relative;
  flex-shrink: 0;
  width: 48px;
  height: 28px;
  margin-top: 2px;
  cursor: pointer;
}

.cookie-switch input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
  z-index: 1;
}

.cookie-switch input:focus-visible + .cookie-switch-knob {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.cookie-switch-knob {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #d9cdc4;
  transition: background 0.2s ease;
  pointer-events: none;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);
}

.cookie-switch-knob::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.22s ease;
}

.cookie-switch input:checked + .cookie-switch-knob {
  background: var(--accent);
}

.cookie-switch input:checked + .cookie-switch-knob::after {
  transform: translateX(20px);
}

.cookie-modal-note {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--muted);
  background: rgba(255, 248, 240, 0.55);
  border-top: 1px solid var(--border);
  padding: 14px 24px 18px;
}

.cookie-modal-footer {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 20px 20px;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.6);
  border-radius: 0 0 20px 20px;
}

@media (max-width: 420px) {
  .cookie-modal-footer {
    flex-direction: column;
  }

  .cookie-btn-full {
    width: 100%;
  }

  .cookie-pill {
    white-space: normal;
    text-align: center;
    line-height: 1.2;
  }
}

/* Admin */
body.page-admin {
  min-height: 100dvh;
  min-height: 100vh;
  padding-inline: max(0.75rem, env(safe-area-inset-left, 0px)) max(0.75rem, env(safe-area-inset-right, 0px));
  padding-bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
}

.admin-shell {
  /* Colonna editor più stretta: meno “righe chilometriche” su monitor larghi */
  max-width: min(68rem, calc(100vw - 1.5rem));
  width: 100%;
  margin: 0 auto;
  padding: clamp(1.1rem, 2.2vw, 1.6rem) clamp(1rem, 3vw, 1.5rem) clamp(2.5rem, 5vw, 4rem);
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.admin-layout {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 100%;
}

.admin-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
  padding: 0;
  background: linear-gradient(135deg, #fff9f5 0%, #fff2e8 55%, #ffe8d4 100%);
  border: 1px solid rgba(194, 120, 67, 0.22);
  border-radius: 20px;
  box-shadow: 0 8px 40px -16px rgba(50, 32, 20, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.7) inset;
  overflow: hidden;
  position: relative;
}

.admin-top::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, #e8954a 50%, var(--accent-dark) 100%);
  border-radius: 20px 20px 0 0;
}

.admin-top-badge {
  display: none;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(145deg, #fff3e8, #ffe0c4);
  border: 1px solid rgba(194, 120, 67, 0.25);
  color: var(--accent);
  box-shadow: 0 2px 12px -4px rgba(120, 65, 28, 0.2);
  margin: 1.15rem 0 1.15rem 1.4rem;
}

@media (min-width: 640px) {
  .admin-top-badge {
    display: flex;
  }
}

.admin-top-text {
  flex: 1;
  min-width: min(100%, 240px);
  padding: 1.2rem 0 1.2rem 1.4rem;
}

.admin-top-eyebrow {
  margin: 0 0 0.2rem !important;
  font-size: 0.7rem !important;
  letter-spacing: 0.15em !important;
  color: var(--accent-dark) !important;
  opacity: 0.85;
}

.admin-top h1 {
  margin: 0 0 0.3rem;
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text);
}

.admin-top-lead {
  margin: 0;
  max-width: 38rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--muted);
}

.admin-top-actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1.15rem 1.4rem 1.15rem 0.5rem;
}

.admin-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.4rem;
  padding: 0.45rem 1rem 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  border: 1.5px solid rgba(194, 120, 67, 0.3);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--accent-dark);
  text-decoration: none;
  box-shadow: 0 1px 4px rgba(50, 32, 20, 0.08);
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.admin-btn-ghost--icon {
  gap: 0.42rem;
}

.admin-btn-ghost:hover {
  background: #fff5ec;
  border-color: rgba(194, 120, 67, 0.45);
  color: var(--text);
}

.admin-btn-ghost:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.admin-card-login {
  max-width: 28rem;
  margin: 2rem auto;
  border-top: 4px solid var(--accent);
}

.admin-editor {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
  width: 100%;
}

.admin-tabs-sticky {
  position: sticky;
  top: 0;
  z-index: 25;
  margin: 0 0 0.15rem;
  padding: 0.35rem 0 0.5rem;
  display: flex;
  justify-content: center;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.admin-tabs {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
  margin: 0;
  padding: 0.3rem;
  width: fit-content;
  max-width: 100%;
  justify-content: center;
  border: 1px solid rgba(194, 120, 67, 0.22);
  border-radius: 16px;
  background: #fffaf6;
  box-shadow: 0 2px 12px -4px rgba(50, 32, 20, 0.1), 0 1px 0 rgba(255, 255, 255, 0.95) inset;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.admin-tab {
  position: relative;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  border-radius: 12px;
  padding: 0.52rem 1.05rem 0.55rem;
  font-weight: 600;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
  white-space: nowrap;
}

.admin-tab-icon {
  flex-shrink: 0;
  opacity: 0.7;
}

.admin-tab:hover {
  background: rgba(255, 237, 220, 0.7);
  color: var(--accent-dark);
}

.admin-tab:hover .admin-tab-icon {
  opacity: 1;
}

.admin-tab.active {
  background: linear-gradient(160deg, var(--accent) 0%, #b86c35 100%);
  color: #fff;
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 3px 12px -3px rgba(80, 42, 18, 0.3), 0 1px 0 rgba(255, 255, 255, 0.18) inset;
}

.admin-tab.active .admin-tab-icon {
  opacity: 1;
}

.admin-tab.active:hover {
  color: #fff;
  background: linear-gradient(160deg, #c87f47 0%, var(--accent-dark) 100%);
}

.admin-tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.admin-tab:focus-visible.active {
  outline-color: rgba(255,255,255,0.85);
}

.admin-tab-panel {
  display: none;
}

.admin-tab-panel.active {
  display: block;
  animation: admin-panel-in 0.22s ease;
}

@keyframes admin-panel-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .admin-tab-panel.active {
    animation: none;
  }
}

.admin-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(220, 200, 182, 0.85);
  border-radius: 18px;
  padding: clamp(1.1rem, 2.2vw, 1.4rem) clamp(1.15rem, 2.8vw, 1.5rem) clamp(1.2rem, 2.2vw, 1.5rem);
  box-shadow: 0 8px 36px -16px rgba(50, 32, 20, 0.16), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.admin-panel-header {
  margin: 0 0 1.1rem 0;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(234, 215, 200, 0.75);
}

.admin-panel-header h2 {
  margin: 0 0 0.4rem 0;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.admin-panel-header--row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.9rem 1.25rem;
  border-bottom: 1px solid rgba(234, 215, 200, 0.75);
  margin-bottom: 0.9rem;
  padding-bottom: 0.9rem;
}

.admin-panel-header--row .admin-panel-lead {
  max-width: 40rem;
}

.admin-panel-header-main {
  flex: 1 1 12rem;
  min-width: 0;
}

.admin-panel-header--products {
  align-items: center;
}

.admin-products-panel .admin-panel-header--row {
  margin-bottom: 0.75rem;
  padding-bottom: 0.85rem;
}

.admin-callout {
  margin: 0 0 1rem 0;
  padding: 0.65rem 0.9rem 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(210, 175, 140, 0.45);
  background: linear-gradient(135deg, rgba(255, 250, 245, 0.95) 0%, rgba(255, 240, 228, 0.55) 100%);
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--text);
}

.admin-callout-title {
  margin: 0 0 0.4rem 0;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.admin-callout-list {
  margin: 0;
  padding: 0 0 0 1.1rem;
}

.admin-callout-list li {
  margin: 0.25rem 0;
  color: var(--muted);
}

.admin-callout-list li strong {
  color: var(--text);
  font-weight: 650;
}

.admin-panel-lead {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--muted);
}

.admin-subsection {
  margin: 0 0 1.1rem 0;
  padding: 0.85rem 0.9rem 1rem;
  border: 1px solid rgba(234, 215, 200, 0.6);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 250, 245, 0.55) 0%, rgba(255, 255, 255, 0.4) 100%);
}

.admin-subsection:last-of-type {
  margin-bottom: 0;
}

.admin-subsection .row:last-of-type,
.admin-subsection .admin-checkbox-row:last-of-type,
.admin-subsection > label:last-of-type + input:last-of-type,
.admin-subsection > textarea:last-of-type {
  margin-bottom: 0;
}

.admin-subsection--tight {
  margin-bottom: 0.75rem;
}

.admin-subsection--tight:last-child {
  margin-bottom: 0;
}

.page-admin .admin-subsection-lead {
  margin: 0 0 1rem;
  max-width: 40rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--muted);
}

.page-admin .admin-identity-layout {
  display: grid;
  gap: 1.15rem 1.5rem;
  align-items: start;
}

@media (min-width: 880px) {
  .page-admin .admin-identity-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  }
}

.page-admin .admin-identity-text {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 0;
}

.page-admin .admin-field-group label {
  display: block;
  margin: 0 0 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}

.page-admin .admin-identity-logo {
  min-width: 0;
}

.admin-value-grid {
  display: grid;
  gap: 1rem 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .admin-value-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.admin-value-grid > div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.page-admin .admin-identity-logo .admin-logo-block {
  margin-top: 0;
}

.page-admin .admin-identity-layout .admin-field-label {
  margin-top: 0;
}

.admin-subsection-title {
  margin: 0 0 0.65rem 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.admin-dirty-hint {
  min-height: 1.25em;
  margin: 0 0 0.35rem;
  font-size: 0.86rem;
  color: var(--muted);
  transition: color 0.15s ease, font-weight 0.15s ease;
}

.admin-dirty-hint--inline {
  margin: 0 auto 0.5rem;
  padding: 0.4rem 0.55rem;
  border-radius: 10px;
  background: rgba(255, 250, 245, 0.5);
  border: 1px solid rgba(234, 215, 200, 0.45);
  max-width: 100%;
  text-align: center;
  box-sizing: border-box;
}

.admin-dirty-hint:empty,
.admin-dirty-hint--inline:empty {
  display: none;
  margin: 0;
  padding: 0;
  min-height: 0;
  border: 0;
}

.admin-dirty-hint.is-dirty {
  color: var(--accent-dark);
  font-weight: 600;
}

.admin-toc {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.5rem;
  margin: 0 0 1rem 0;
  padding: 0.5rem 0.65rem;
  border: 1px solid rgba(234, 215, 200, 0.65);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
}

.admin-toc a {
  color: var(--accent-dark);
  text-decoration: none;
  font-weight: 600;
  padding: 0.2rem 0.45rem;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}

.admin-toc a:hover {
  background: rgba(255, 240, 228, 0.75);
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.admin-toc a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.admin-toc-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0 0 1rem 0;
  align-items: center;
  text-align: center;
}

.admin-toc-wrap .admin-toc-head {
  width: 100%;
}

.admin-toc-wrap .admin-toc {
  margin: 0;
}

.admin-toc-head {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

details.admin-subsection {
  margin: 0 0 1.1rem 0;
  padding: 0;
  border: 1px solid rgba(234, 215, 200, 0.6);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 250, 245, 0.55) 0%, rgba(255, 255, 255, 0.4) 100%);
}

details.admin-subsection > summary.admin-subsection-title {
  list-style: none;
  margin: 0;
  padding: 0.85rem 2.4rem 0.75rem 1rem;
  cursor: pointer;
  user-select: none;
  position: relative;
  font-size: 0.9rem;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
  transition: color 0.15s ease;
}

details.admin-subsection > summary.admin-subsection-title::-webkit-details-marker {
  display: none;
}

details.admin-subsection > summary.admin-subsection-title::after {
  content: "";
  position: absolute;
  right: 1rem;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23b87040' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18l6-6-6-6'/%3E%3C/svg%3E");
  opacity: 0.7;
  transition: transform 0.22s ease, opacity 0.2s ease;
}

details.admin-subsection > summary.admin-subsection-title:hover::after {
  opacity: 1;
}

details[open].admin-subsection > summary.admin-subsection-title::after {
  transform: rotate(90deg);
}

details[open].admin-subsection {
  box-shadow: 0 0 0 1.5px rgba(194, 120, 67, 0.18);
}

details.admin-subsection > summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  border-radius: 10px 10px 0 0;
}

details.admin-subsection .admin-subsection-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.75rem 1rem 1rem;
  border-top: 1px solid rgba(234, 215, 200, 0.4);
  margin: 0;
}

.admin-subsection-body > .admin-field-hint:first-child {
  margin-top: 0.2rem;
}

.admin-charcount {
  margin: 0.15rem 0 0.5rem;
  font-size: 0.8rem;
}

.admin-charcount.is-over {
  color: #a52;
  font-weight: 600;
}

.admin-requests-toolbar {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0 0 0.9rem 0;
  padding: 0.65rem 0.8rem;
  border: 1px solid rgba(234, 215, 200, 0.6);
  border-radius: 12px;
  background: rgba(255, 250, 245, 0.45);
}

.admin-requests-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.6rem;
  align-items: center;
}

.admin-requests-select {
  min-width: 10rem;
  padding: 0.45rem 0.6rem;
  font-size: 0.9rem;
  border-radius: 10px;
  border: 1.5px solid rgba(234, 215, 200, 0.95);
  background: #fff;
  color: var(--text);
}

.admin-requests-search {
  flex: 1 1 12rem;
  min-width: 8rem;
  padding: 0.45rem 0.65rem;
  font-size: 0.9rem;
  border-radius: 10px;
  border: 1.5px solid rgba(234, 215, 200, 0.95);
  background: #fff;
}

.admin-requests-meta {
  margin: 0;
  font-size: 0.82rem;
}

.admin-requests-msg {
  margin: 0 0 0.5rem 0;
  min-height: 1.1em;
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 600;
}

.admin-requests-msg[hidden] {
  display: none;
}

@media (min-width: 640px) {
  .admin-requests-toolbar {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }
}

.admin-subsection-body > label:not(:first-child),
.admin-subsection-body > .row:not(:first-child) {
  margin-top: 0.65rem;
}

.admin-subsection-body > .admin-checkbox-row {
  margin-top: 0.55rem;
}

.admin-subsection-body > input,
.admin-subsection-body > textarea,
.admin-subsection-body > select {
  margin-bottom: 0;
}

.admin-catalog-hint {
  font-size: 0.86rem;
  margin: 0 0 0.5rem 0;
}

.admin-btn {
  background: linear-gradient(160deg, var(--accent) 0%, #b86a30 100%);
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 0.55rem 1.05rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 2px 8px -2px rgba(100, 52, 18, 0.28);
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.admin-btn:hover {
  background: linear-gradient(160deg, #c8783a 0%, var(--accent-dark) 100%);
  box-shadow: 0 4px 14px -4px rgba(100, 52, 18, 0.36);
}

.admin-btn:active {
  transform: translateY(1px);
}

.admin-btn--primary {
  box-shadow: 0 3px 14px -3px rgba(120, 65, 28, 0.4);
}

.admin-btn-ghost--block {
  display: block;
  width: 100%;
  margin-top: 0.55rem;
  text-align: center;
}

.admin-btn-lg {
  padding: 0.62rem 1.4rem;
  font-size: 0.925rem;
}

.admin-btn-save {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.6rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  border-radius: 13px;
  box-shadow: 0 4px 18px -4px rgba(100, 52, 18, 0.45), 0 1px 0 rgba(255, 255, 255, 0.2) inset;
}

.admin-btn-save:hover {
  box-shadow: 0 6px 22px -4px rgba(100, 52, 18, 0.5), 0 1px 0 rgba(255, 255, 255, 0.22) inset;
}

.admin-btn:disabled,
.admin-btn[aria-busy="true"] {
  opacity: 0.72;
  cursor: not-allowed;
  transform: none;
  pointer-events: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.admin-field-hint {
  margin: 0.35rem 0 0.75rem;
  font-size: 0.88rem;
}

.page-admin .admin-field-label {
  display: block;
  margin: 0.75rem 0 0.5rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
}

.page-admin .admin-logo-block {
  margin: 0.25rem 0 0.5rem;
}

.page-admin .admin-logo-drop {
  border: 1.5px dashed rgba(194, 120, 67, 0.45);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 252, 248, 0.9) 0%, rgba(255, 244, 236, 0.45) 100%);
  padding: 1.1rem 1rem 1.15rem;
  text-align: center;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer;
}

.page-admin .admin-logo-drop:hover {
  border-color: rgba(194, 120, 67, 0.7);
  background: #fff;
}

.page-admin .admin-logo-drop.is-dragover {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(194, 120, 67, 0.2);
  background: #fff;
}

.page-admin .admin-logo-drop-title {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.page-admin .admin-logo-drop-hint {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
}

.page-admin .admin-logo-preview-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.25rem;
  margin: 0.9rem 0 0.35rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(234, 215, 200, 0.85);
  background: #fff;
}

.page-admin .admin-logo-preview-img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255, 250, 245, 0.9);
  border: 1px solid rgba(234, 215, 200, 0.6);
}

.page-admin .admin-logo-preview-meta {
  min-width: 0;
  flex: 1 1 12rem;
}

.page-admin .admin-logo-path {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  word-break: break-all;
}

.page-admin .admin-logo-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: center;
}

.page-admin .admin-logo-msg:empty {
  display: none;
  margin: 0;
  min-height: 0;
}

.page-admin .admin-logo-msg {
  min-height: 1.1em;
  margin: 0.45rem 0 0.25rem;
  font-size: 0.86rem;
}

.admin-checkbox-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  column-gap: 10px;
  margin: 12px 0 0;
  min-width: 0;
}

.admin-checkbox-row input[type="checkbox"] {
  margin-top: 0.2em;
  align-self: start;
}

.admin-checkbox-row label {
  min-width: 0;
  font-weight: 500;
  margin: 0;
  cursor: pointer;
  line-height: 1.45;
}

/* Layout tab Prodotti: categorie + elenco */
.admin-catalog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.1rem 1.35rem;
  margin-top: 0.25rem;
}

@media (min-width: 900px) {
  .admin-catalog-layout {
    grid-template-columns: minmax(17rem, 0.32fr) minmax(0, 1fr);
    align-items: start;
  }

  .admin-callout-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.35rem 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .admin-callout-list li {
    position: relative;
    padding-left: 0.85rem;
    margin: 0;
  }

  .admin-callout-list li::before {
    content: "·";
    position: absolute;
    left: 0;
    font-weight: 800;
    color: var(--accent);
  }
}

.admin-catalog-aside {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
}

.admin-catalog-main {
  min-width: 0;
  border: 1px solid rgba(234, 215, 200, 0.55);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 252, 248, 0.65) 0%, rgba(255, 255, 255, 0.5) 100%);
  padding: 0.85rem 0.9rem 1rem;
  box-shadow: 0 2px 20px -8px rgba(50, 32, 20, 0.08);
}

.admin-catalog-list-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.4rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(234, 215, 200, 0.65);
}

.admin-catalog-list-title {
  margin: 0 0 0.2rem 0;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.admin-catalog-list-meta {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.4;
}

.admin-catalog-list-note {
  color: var(--muted);
  font-size: 0.92em;
}

.admin-catalog-search-label {
  flex: 0 1 16rem;
  min-width: min(100%, 12rem);
}

.admin-catalog-search {
  width: 100%;
  margin: 0;
  padding: 0.5rem 0.65rem;
  font: inherit;
  font-size: 0.9rem;
  border: 1px solid rgba(210, 185, 160, 0.95);
  border-radius: 10px;
  background: #fff;
}

.admin-category-empty {
  margin: 0 0 0.5rem 0;
  font-size: 0.86rem;
  line-height: 1.5;
  padding: 0.5rem 0.55rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px dashed rgba(210, 180, 150, 0.7);
}

.admin-category-list {
  list-style: none;
  margin: 0.35rem 0 0.65rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.admin-category-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.4rem 0.45rem 0.4rem 0.6rem;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(234, 215, 200, 0.85);
  min-height: 2.4rem;
}

.admin-category-name {
  font-weight: 600;
  font-size: 0.9rem;
  min-width: 0;
  flex: 1 1 auto;
  line-height: 1.3;
  word-break: break-word;
}

.admin-category-tools {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.2rem;
}

.admin-category-move {
  border: 1px solid rgba(234, 215, 200, 0.9);
  background: #fff8f1;
  border-radius: 7px;
  width: 1.75rem;
  height: 1.75rem;
  font-size: 0.8rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text);
  padding: 0;
}

.admin-category-move:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.admin-category-move:not(:disabled):hover {
  background: #fff0e0;
  border-color: var(--accent);
  color: var(--accent-dark);
}

.admin-category-remove {
  border: 0;
  background: rgba(200, 80, 60, 0.1);
  color: #8c2f22;
  border-radius: 7px;
  width: 1.75rem;
  height: 1.75rem;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  margin-left: 0.15rem;
}

.admin-category-remove:hover {
  background: rgba(200, 80, 60, 0.18);
}

.admin-category-add {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.2rem;
  align-items: center;
}

.admin-category-input {
  flex: 1 1 10rem;
  min-width: 0;
  margin: 0;
  border-radius: 10px;
  border: 1px solid #d9cab8;
  padding: 0.5rem 0.6rem;
  font: inherit;
}

/* Catalogo prodotti (admin) */
.catalog-head {
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.catalog-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-left: auto;
}

.form-error {
  color: #8c2f22;
  font-size: 0.9rem;
  margin: 0 0 10px 0;
  padding: 8px 10px;
  background: #fff2f0;
  border: 1px solid #f0c4bc;
  border-radius: 8px;
}

.field-required {
  color: #a4473e;
  font-weight: 700;
}

.product-catalog {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 8px;
}

.product-catalog--admin {
  margin-top: 0.35rem;
}

.admin-catalog-main .admin-catalog-hint {
  margin-top: 0.2rem;
}

.catalog-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-bottom: 0;
  background: #fff;
}

.product-catalog--admin .catalog-item {
  background: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.catalog-item:first-of-type {
  border-radius: 10px 10px 0 0;
}

.catalog-item:last-of-type {
  border-bottom: 1px solid var(--border);
  border-radius: 0 0 10px 10px;
}

.catalog-item:only-of-type {
  border-radius: 10px;
  border-bottom: 1px solid var(--border);
}

.catalog-item-thumb {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: #faf4ee;
  border: 1px solid rgba(234, 215, 200, 0.8);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
}

.catalog-item-thumb--empty,
.catalog-item-thumb--broken {
  color: #b59e8d;
  font-size: 1rem;
}

.catalog-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.catalog-item-body {
  flex: 1;
  min-width: 0;
}

.catalog-item-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.4rem 0.75rem;
  margin: 0 0 0.2rem 0;
}

.catalog-item-name {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.25;
  flex: 1 1 8rem;
  min-width: 0;
}

.catalog-item-cat {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: linear-gradient(180deg, #fff3e4 0%, #ffe7d0 100%);
  border: 1px solid rgba(214, 160, 100, 0.45);
  border-radius: 7px;
  padding: 0.2rem 0.5rem 0.22rem;
  line-height: 1.2;
  max-width: 100%;
  word-break: break-word;
}

.catalog-item-meta {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.catalog-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex-shrink: 0;
}

.catalog-item-reorder {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
}

.catalog-item-reorder--hidden {
  visibility: hidden;
  pointer-events: none;
  user-select: none;
}

#pmCategoryId {
  width: 100%;
  margin: 6px 0 12px;
  padding: 10px;
  font: inherit;
  border: 1px solid #d9cab8;
  border-radius: 10px;
  background: #fff;
}

.catalog-move-btn {
  font: inherit;
  line-height: 1;
  width: 2rem;
  min-height: 1.5rem;
  padding: 0 4px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fffaf6;
  color: var(--text);
  cursor: pointer;
}

.catalog-move-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.catalog-move-btn:not(:disabled):hover {
  background: rgba(194, 120, 67, 0.1);
  border-color: #dcc4b0;
}

.catalog-item-actions .admin-btn {
  padding: 6px 12px;
  font-size: 0.88rem;
}

/* Modale prodotto */
.admin-dialog {
  max-width: 540px;
  width: calc(100vw - 2rem);
  border: 1px solid rgba(220, 200, 182, 0.95);
  border-radius: 18px;
  padding: 0;
  box-shadow: 0 28px 64px -24px rgba(40, 24, 12, 0.42);
  background: #fffdfa;
  color: var(--text);
}

.admin-dialog--product {
  max-width: min(44rem, calc(100vw - 1.5rem));
  width: calc(100vw - 1.5rem);
}

.admin-dialog::backdrop {
  background: rgba(32, 22, 14, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.admin-dialog h3 {
  margin: 0;
  font-size: 1.2rem;
}

#productForm.product-form {
  display: flex;
  flex-direction: column;
  max-height: min(90dvh, 880px);
  margin: 0;
  padding: 0;
}

.product-form-header {
  flex-shrink: 0;
  padding: 1.15rem 1.35rem 1rem;
  border-bottom: 1px solid rgba(234, 215, 200, 0.9);
  background: linear-gradient(165deg, rgba(255, 248, 240, 0.98) 0%, rgba(255, 255, 255, 0.88) 100%);
  border-radius: 18px 18px 0 0;
}

.product-form-header h3 {
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.product-form-subtitle {
  margin: 0.45rem 0 0;
  font-size: 0.875rem;
  line-height: 1.5;
  max-width: 36rem;
}

.product-form-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 1rem 1.35rem 1.1rem;
}

.product-form-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-form-section {
  margin: 0;
  padding: 1rem 1.05rem 1.05rem;
  border: 1px solid rgba(234, 215, 200, 0.75);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 252, 248, 0.75) 0%, rgba(255, 255, 255, 0.55) 100%);
  box-shadow: 0 2px 16px -8px rgba(50, 32, 20, 0.1);
}

.product-form-section-title {
  margin: 0 0 0.65rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.product-form-section-lead {
  margin: -0.35rem 0 0.75rem;
  font-size: 0.82rem;
  line-height: 1.4;
}

.product-form-grid {
  display: grid;
  gap: 0.85rem 1.1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .product-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-form-grid--narrow {
    grid-template-columns: minmax(0, 16rem);
  }
}

.product-form-field {
  min-width: 0;
}

.product-form-field label {
  margin-top: 0;
}

.product-form-micro-hint {
  margin: 0.3rem 0 0;
  font-size: 0.78rem;
  line-height: 1.35;
}

.product-form-error {
  margin: 0 0 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(200, 90, 70, 0.35);
  background: rgba(255, 245, 242, 0.95);
}

.product-form-image-row {
  display: grid;
  gap: 1rem;
  align-items: start;
}

@media (min-width: 560px) {
  .product-form-image-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 14rem);
  }
}

.product-form-preview-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.product-form-preview-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.product-form-upload-msg {
  margin: 0.4rem 0 0 !important;
}

.page-admin .product-form select,
#productForm select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  margin: 5px 0 0;
  font: inherit;
  font-size: 0.9rem;
  border: 1.5px solid rgba(210, 185, 160, 0.9);
  border-radius: 10px;
  background: #fffcf9;
  color: var(--text);
  cursor: pointer;
}

#productForm .admin-dialog-cat-hint {
  margin: 0.4rem 0 0;
  font-size: 0.82rem;
}

.image-preview-box {
  min-height: 120px;
  max-height: 220px;
  border-radius: 12px;
  background: linear-gradient(145deg, #faf4ee, #f0e6dc);
  border: 1.5px dashed rgba(194, 120, 67, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  overflow: hidden;
}

.image-preview-box .image-preview-img {
  max-width: 100%;
  max-height: 220px;
  object-fit: contain;
  display: block;
}

.admin-dialog-actions,
.product-form-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.65rem 0.75rem;
  margin: 0;
  padding: 1rem 1.35rem 1.15rem;
  border-top: 1px solid rgba(234, 215, 200, 0.9);
  background: rgba(255, 252, 248, 0.97);
  flex-shrink: 0;
  border-radius: 0 0 18px 18px;
}

#pmImageFile.file-input,
input[type="file"].file-input.product-form-file {
  width: 100%;
  max-width: 100%;
  padding: 0.65rem 0.75rem;
  font-size: 0.875rem;
  border: 1.5px dashed rgba(194, 120, 67, 0.4);
  border-radius: 12px;
  background: #fff;
  margin: 5px 0 0;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

#pmImageFile.file-input:hover,
input[type="file"].file-input.product-form-file:hover {
  border-color: rgba(194, 120, 67, 0.65);
  background: #fffbf7;
}

.product-form-field--allergens .product-form-allergen-hint {
  margin: 0.35rem 0 0.5rem;
  font-size: 0.82rem;
  line-height: 1.35;
}

.product-form-field--allergens .product-form-allergen-extra-label {
  display: block;
  margin: 0.65rem 0 0.25rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.product-allergen-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.45rem;
  margin: 0.55rem 0 0;
  min-height: 0;
}

.product-allergen-chips:empty {
  display: none;
}

.product-allergen-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.45rem 0.28rem 0.6rem;
  font: inherit;
  font-size: 0.82rem;
  line-height: 1.2;
  border: 1.5px solid rgba(194, 120, 67, 0.45);
  border-radius: 999px;
  background: rgba(255, 252, 248, 0.95);
  color: var(--text);
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
}

.product-allergen-chip:hover {
  background: #fff5eb;
  border-color: rgba(194, 120, 67, 0.65);
}

.product-allergen-chip:focus-visible {
  outline: 2px solid rgba(194, 120, 67, 0.55);
  outline-offset: 2px;
}

.product-allergen-chip-label {
  max-width: 14rem;
  text-align: left;
}

.product-allergen-chip-remove {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
  opacity: 0.65;
}

.product-allergen-chip:hover .product-allergen-chip-remove {
  opacity: 1;
}

@media (min-width: 640px) {
  .product-form-grid .product-form-field--allergens {
    grid-column: 1 / -1;
  }
}

.admin-savebar {
  position: sticky;
  bottom: max(8px, env(safe-area-inset-bottom, 0px));
  margin: 0.5rem auto 0;
  max-width: min(22.5rem, calc(100% - 1.5rem));
  width: 100%;
  border: 1px solid rgba(194, 120, 67, 0.18);
  border-radius: 10px;
  padding: 0.32rem 0.6rem 0.38rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.22rem 0.4rem;
  background: linear-gradient(160deg, rgba(255, 250, 245, 0.98) 0%, rgba(255, 255, 255, 0.99) 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 2px 14px -6px rgba(50, 32, 20, 0.1);
  backdrop-filter: blur(8px) saturate(1.02);
  -webkit-backdrop-filter: blur(8px) saturate(1.02);
  z-index: 18;
}

@media (min-width: 520px) {
  .admin-savebar {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    max-width: min(34rem, calc(100% - 1.5rem));
    padding: 0.3rem 0.55rem 0.32rem;
    gap: 0.35rem 0.6rem;
  }
}

.admin-savebar-text {
  flex: 0 1 auto;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  text-align: center;
}

@media (min-width: 520px) {
  .admin-savebar-text {
    width: auto;
    max-width: 20rem;
  }
}

.admin-savebar .admin-btn-lg {
  flex-shrink: 0;
}

.admin-savebar-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  margin: 0 0 0.06rem 0;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

.admin-savebar-title svg {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  opacity: 0.88;
}

.admin-savebar-hint {
  margin: 0;
  font-size: 0.65rem;
  line-height: 1.3;
  color: var(--muted);
  overflow-wrap: break-word;
}

.admin-savebar-msg {
  margin: 0.1rem 0 0 0;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent-dark);
  overflow-wrap: break-word;
}

.admin-savebar .admin-btn-save {
  padding: 0.32rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 8px;
  gap: 0.3rem;
  box-shadow: 0 1px 8px -2px rgba(100, 52, 18, 0.35), 0 1px 0 rgba(255, 255, 255, 0.16) inset;
  align-self: center;
}

.admin-savebar .admin-btn-save svg {
  width: 12px;
  height: 12px;
}

.admin-savebar .admin-btn-save:hover {
  box-shadow: 0 2px 10px -2px rgba(100, 52, 18, 0.4), 0 1px 0 rgba(255, 255, 255, 0.2) inset;
}

input,
textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1.5px solid rgba(210, 185, 160, 0.9);
  border-radius: 10px;
  margin: 5px 0 12px;
  font: inherit;
  font-size: 0.9rem;
  background: #fffcf9;
  color: var(--text);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
  box-sizing: border-box;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(194, 120, 67, 0.18), 0 2px 8px -4px rgba(50, 32, 20, 0.1);
}

.page-admin label,
.admin-subsection-body > label {
  display: block;
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  color: var(--muted);
  margin: 0.15rem 0 0;
  text-transform: none;
}

button {
  font: inherit;
}

button:not(.link-button) {
  cursor: pointer;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: start;
}

.request-row {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  padding: 12px;
  margin-bottom: 10px;
}

.request-row p {
  margin: 6px 0;
}

.request-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.request-head h3 {
  margin: 0;
}

.request-status {
  padding: 8px;
  border: 1px solid #d9cab8;
  border-radius: 8px;
  background: #fff;
}

.remove-btn {
  background: #fff;
  color: #a4473e;
  border: 1px solid #efccc6;
}

.remove-btn:hover {
  background: #fff2f0;
  color: #8c3229;
}

.muted {
  color: var(--muted);
}

#cakeRequestForm .btn-primary {
  margin-top: 8px;
}

#cakeRequestMsg {
  min-height: 24px;
  margin-top: 8px;
}

.hidden {
  display: none;
}

@media (max-width: 720px) {
  body {
    font-size: 15px;
  }

  /* iOS Safari: sotto 16px su input/textarea/select attiva zoom al focus */
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="hidden"]):not(
      [type="button"]
    ):not([type="submit"]):not([type="reset"]):not([type="image"]),
  textarea,
  select {
    font-size: 1rem;
  }

  button:not(:disabled),
  .btn-primary,
  .btn-secondary,
  .admin-btn,
  .admin-btn-ghost,
  .cookie-actions .btn-primary,
  .cookie-actions .btn-secondary {
    touch-action: manipulation;
  }

  .section-products .products-section-inner {
    min-width: 0;
  }

  .section-products .products-grid-scroll {
    scroll-snap-type: x proximity;
    box-sizing: border-box;
  }

  .container {
    width: min(1100px, 94%);
    max-width: 100%;
    padding-left: max(0.2rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.2rem, env(safe-area-inset-right, 0px));
    box-sizing: border-box;
  }

  .nav {
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    min-height: 0;
    padding: 0.8rem 0 0.55rem;
  }

  .nav-ornament {
    margin: 0.28rem auto 0.32rem;
    width: min(22rem, 96%);
  }

  .nav-main {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.3rem 0.4rem;
    padding: 0.1rem 0 0.2rem 0;
    margin: 0;
    min-height: 0;
    border: none;
  }

  .nav-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
    font-size: 0.875rem;
    padding: 0.5rem 0.6rem;
    white-space: normal;
  }

  .nav-main .admin-link {
    margin-left: 0;
  }

  .hero {
    padding: 2.25rem 0 2.5rem;
  }

  .hero .hero-grid {
    gap: 1.75rem 0;
  }

  .hero-copy h1 {
    max-width: 100%;
  }

  .hero .hero-visual {
    padding: clamp(0.65rem, 2vw, 0.9rem);
    border-radius: 16px;
    min-height: min(16rem, 38vh);
  }

  @supports (height: 1dvh) {
    .hero .hero-visual {
      min-height: min(16rem, 40dvh);
    }
  }

  .hero-logo {
    max-height: min(16rem, 36vh);
  }

  @supports (height: 1dvh) {
    .hero-logo {
      max-height: min(16rem, 40dvh);
    }
  }

  /* Marchio: più proporzionato, bordi ammorbiditi (non “tagliano” i contenuti) */
  .page-bg-logo {
    width: min(82vw, 300px);
    height: min(82vw, 300px);
    max-height: 56vh;
    max-height: 56svh;
    top: 38%;
    left: 50%;
    background-size: min(54vw, 250px) auto;
    opacity: 0.11;
    -webkit-mask-image: radial-gradient(
      ellipse 100% 92% at 50% 44%,
      #fff 0%,
      #fff 44%,
      rgba(255, 255, 255, 0.62) 62%,
      rgba(255, 255, 255, 0.18) 82%,
      transparent 100%
    );
    mask-image: radial-gradient(
      ellipse 100% 92% at 50% 44%,
      #fff 0%,
      #fff 44%,
      rgba(255, 255, 255, 0.62) 62%,
      rgba(255, 255, 255, 0.18) 82%,
      transparent 100%
    );
  }

  .hero-grid,
  .value-grid,
  .contact-wrap {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    gap: 10px;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    width: 100%;
    text-align: center;
  }

  .section-products .products-toolbar-row--end {
    flex-direction: column;
    align-items: stretch;
  }

  .section-products .products-count {
    margin-left: 0;
    width: fit-content;
  }

  .section-products .product-filter-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
  }

  .section-products .product-filter-chips .chip-filter {
    scroll-snap-align: start;
    flex-shrink: 0;
  }

  .section-products .product-sort {
    max-width: none;
    width: 100%;
    min-width: 0;
  }

  .section-products .product-sort-field {
    max-width: none;
  }

  .section-products .products-cta-actions {
    flex-direction: column;
  }

  .section-products .products-cta-actions .btn-primary,
  .section-products .products-cta-actions .btn-secondary {
    width: 100%;
    text-align: center;
  }

  section {
    padding: 38px 0;
  }

  .card img {
    height: 210px;
  }

  .contact-box,
  .contact-aside,
  .value-card {
    padding: 14px;
  }

  .contact-aside .btn-primary,
  .contact-aside .btn-secondary {
    width: 100%;
    max-width: none;
    text-align: center;
  }

  .social-links {
    flex-wrap: wrap;
  }

  .footer-links {
    gap: 8px;
  }

  .cookie-banner {
    padding: 12px 10px max(12px, env(safe-area-inset-bottom));
  }

  .cookie-banner-content {
    padding: 16px 14px 16px 12px;
  }

  .cookie-banner-title {
    font-size: 1rem;
  }

  .cookie-actions {
    width: 100%;
  }

  .cookie-actions .btn-primary,
  .cookie-actions .btn-secondary {
    flex: 1 1 auto;
    text-align: center;
  }

  .row {
    grid-template-columns: 1fr;
  }

  .admin-top {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-shell {
    margin: 0 auto 1.5rem;
    padding: 0.85rem 0.6rem 1.5rem;
  }

  .admin-panel-header--products {
    flex-direction: column;
    align-items: stretch;
  }

  .catalog-head-actions {
    margin-left: 0;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-content: stretch;
  }

  .admin-card {
    padding: 12px;
  }

  .admin-tabs-sticky {
    justify-content: flex-start;
  }

  .admin-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    width: 100%;
    max-width: none;
    padding-bottom: 4px;
  }

  .admin-tab {
    white-space: nowrap;
  }

  .admin-btn,
  .admin-btn-lg {
    width: 100%;
  }

  .catalog-item {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .catalog-item-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .catalog-item-actions .admin-btn,
  .catalog-item-actions .remove-btn {
    width: auto;
  }

  .request-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .request-status {
    width: 100%;
  }

  .remove-btn {
    width: 100%;
  }

  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-banner-content {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .cookie-banner-actions {
    width: 100%;
  }
}

/* Telefono in orizzontale / altezza ridotta: marchio non invade l’header */
@media (max-width: 720px) and (max-height: 520px) {
  .page-bg-logo {
    top: 34%;
    max-height: 48vh;
    max-height: 48svh;
    width: min(70vw, 240px);
    height: min(70vw, 240px);
    background-size: min(46vw, 200px) auto;
  }
}

