/* ============ OmniaMarket — style.css ============ */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --accent: #e0562f;
  --accent-soft: #ffe4d9;
  --bg: #faf8f5;
  --text: #1c1a17;
  --card: #ffffff;
  --muted: #6f6a62;
  --line: rgba(28, 26, 23, 0.12);
  --radius: 14px;
  --radius-sm: 8px;
  --font-heading: "Plus Jakarta Sans", "Segoe UI", Arial, sans-serif;
  --font-body: "Plus Jakarta Sans", "Segoe UI", Arial, sans-serif;
  --shadow: 0 10px 30px rgba(28, 26, 23, 0.08);
  --shadow-lg: 0 24px 60px rgba(28, 26, 23, 0.14);
}

html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.6;
  color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 800; line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.02em; }

.page-width { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.section { margin: 72px auto; }
@media (max-width: 749px) { .section { margin: 44px auto; } }
.text-center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-heading); font-weight: 700; font-size: 15px;
  padding: 14px 28px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; background: linear-gradient(160deg, #ef6a3f, #d64f26); color: #fff;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(224, 86, 47, 0.38); }
.btn--secondary { background: transparent; color: var(--text); border-color: var(--text); }
.btn--secondary:hover { background: var(--text); color: #fff; }
.btn--full { width: 100%; }
.btn--small { padding: 9px 18px; font-size: 13px; }

/* ---------- Announcement + Header ---------- */
.announcement {
  background: var(--text); color: var(--bg); text-align: center;
  font-size: 13px; letter-spacing: 0.06em; padding: 9px 16px; text-transform: uppercase;
}
.header-wrapper { position: sticky; top: 0; z-index: 100; background: rgba(250, 248, 245, 0.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 24px; max-width: 1240px; margin: 0 auto; }
.header__logo { font-family: var(--font-heading); font-size: 26px; font-weight: 800; letter-spacing: -0.03em; }
.header__logo span { color: var(--accent); }
.header__nav { display: flex; gap: 28px; }
.header__nav a { font-weight: 600; font-size: 15px; position: relative; padding: 4px 0; }
.header__nav a:hover, .header__nav a.active { color: var(--accent); }
.header__actions { display: flex; align-items: center; gap: 10px; }
.cart-btn { position: relative; background: none; border: 0; cursor: pointer; padding: 8px; border-radius: 50%; display: inline-flex; }
.cart-btn:hover { background: rgba(28, 26, 23, 0.07); }
.cart-count {
  position: absolute; top: 2px; right: 2px; min-width: 18px; height: 18px;
  border-radius: 9px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
}
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
@media (max-width: 860px) {
  .header__nav { display: none; }
  .menu-toggle { display: inline-flex; }
}
.mobile-nav { display: none; border-top: 1px solid var(--line); background: var(--card); }
.mobile-nav.is-open { display: block; }
.mobile-nav a { display: block; padding: 14px 24px; font-weight: 600; border-bottom: 1px solid var(--line); }

/* ---------- Hero (scuro, con luci animate) ---------- */
.hero { position: relative; overflow: hidden; background: #14110e; color: #fff; }
.hero__glow { position: absolute; border-radius: 50%; filter: blur(95px); opacity: 0.5; pointer-events: none; }
.hero__glow--1 { width: 480px; height: 480px; background: #e0562f; top: -170px; left: -110px; animation: glowFloat 16s ease-in-out infinite alternate; }
.hero__glow--2 { width: 420px; height: 420px; background: #e7a23c; bottom: -190px; right: -100px; animation: glowFloat 20s ease-in-out infinite alternate-reverse; }
.hero__glow--3 { width: 320px; height: 320px; background: #2fa37f; top: 18%; right: 16%; opacity: 0.3; animation: glowFloat 24s ease-in-out infinite alternate; }
@keyframes glowFloat { from { transform: translate(0, 0) scale(1); } to { transform: translate(50px, 36px) scale(1.18); } }
.hero__inner {
  position: relative; z-index: 1; max-width: 1280px; margin: 0 auto; padding: 100px 28px;
  display: grid; grid-template-columns: clamp(150px, 16vw, 210px) minmax(0, 1fr) clamp(150px, 16vw, 210px);
  gap: 24px; align-items: center;
}
.hero__col { min-width: 0; text-align: center; }
@keyframes heroIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.hero__col > * { animation: heroIn 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
.hero__col > *:nth-child(2) { animation-delay: 0.08s; }
.hero__col > *:nth-child(3) { animation-delay: 0.16s; }
.hero__col > *:nth-child(4) { animation-delay: 0.24s; }
.hero__col > *:nth-child(5) { animation-delay: 0.32s; }
.hero__eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: #ffb8a0; margin-bottom: 20px; padding: 9px 20px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
}
.hero__title { font-size: clamp(34px, 5vw, 60px); margin-bottom: 20px; }
.hero__title em {
  font-style: normal;
  background: linear-gradient(92deg, #ffb8a0, #e0562f 45%, #ffc46b);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__text { font-size: 18px; opacity: 0.85; max-width: 560px; margin: 0 auto 32px; }
.hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero__trust { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 44px; font-size: 13px; }
.hero__trust span {
  display: inline-flex; gap: 7px; align-items: center; padding: 9px 18px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(6px); transition: background 0.2s ease, transform 0.2s ease;
}
.hero__trust span:hover { background: rgba(255, 255, 255, 0.13); transform: translateY(-2px); }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; background: var(--accent); color: #fff; padding: 13px 0; }
.marquee__track { display: flex; gap: 48px; width: max-content; animation: marquee 24s linear infinite; }
.marquee__item { font-family: var(--font-heading); font-weight: 700; font-size: 15px; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Category tiles ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
.cat-tile {
  background: var(--card); border-radius: var(--radius); padding: 26px 20px; text-align: center;
  font-family: var(--font-heading); font-weight: 700; font-size: 16px;
  box-shadow: var(--shadow); transition: transform 0.22s ease, box-shadow 0.22s ease;
  border: 2px solid transparent;
}
.cat-tile:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.cat-tile .cat-emoji { font-size: 40px; display: block; margin-bottom: 10px; }
.cat-tile .cat-count { font-family: var(--font-body); font-size: 12px; color: var(--muted); font-weight: 400; }

/* ---------- Section head ---------- */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 40px); margin: 0; }
.section-head h2::after { content: ""; display: block; width: 56px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--accent), #ffb8a0); margin-top: 10px; }

/* ---------- Product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 1000px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }

.card { background: var(--card); border-radius: var(--radius); overflow: hidden; position: relative; display: flex; flex-direction: column; transition: transform 0.25s ease, box-shadow 0.25s ease; cursor: pointer; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card__media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; font-size: 64px; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1); transition: transform 0.5s ease; }
.card:hover .card__media img { transform: scale(1.08); }
.card__emoji { display: inline-block; transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.3, 1.4); }
.card:hover .card__emoji { transform: scale(1.18) rotate(-5deg); }
.card__badge { position: absolute; top: 12px; left: 12px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; padding: 5px 12px; border-radius: 999px; }
.card__badge--new { left: auto; right: 12px; background: #2fa37f; }
.card__info { padding: 15px 17px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card__category { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.card__title { font-family: var(--font-heading); font-weight: 700; font-size: 15.5px; line-height: 1.3; }
.card__price { margin-top: auto; font-weight: 700; font-size: 16px; }
.card__price s { color: var(--muted); font-weight: 400; margin-right: 8px; }
.card__price--sale { color: var(--accent); }
.card .btn { margin: 0 17px 17px; }

/* ---------- Filters (negozio) ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; align-items: center; }
.filter-chip {
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); font-family: var(--font-heading); font-weight: 600; font-size: 14px; cursor: pointer;
  transition: all 0.15s ease;
}
.filter-chip:hover { border-color: var(--text); }
.filter-chip.active { background: var(--text); color: #fff; border-color: var(--text); }
.search-input {
  flex: 1; min-width: 220px; padding: 12px 20px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); font-family: var(--font-body); font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.search-input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(224, 86, 47, 0.12); outline: none; }
.filter-chip .chip-x {
  display: inline-flex; align-items: center; justify-content: center;
  width: 17px; height: 17px; border-radius: 50%; background: rgba(255, 255, 255, 0.22);
  margin-left: 7px; font-size: 12px; line-height: 1; vertical-align: middle;
}
.filter-clear { border-color: var(--accent); color: var(--accent); background: var(--card); font-weight: 700; }
.filter-clear:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ---------- Value props ---------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .values { grid-template-columns: 1fr; } }
.value-item { background: var(--card); border-radius: var(--radius); padding: 28px; text-align: center; box-shadow: var(--shadow); }
.value-item .v-emoji { font-size: 34px; }
.value-item h3 { font-size: 19px; margin: 12px 0 6px; }
.value-item p { color: var(--muted); font-size: 14px; margin: 0; }

/* ---------- Modal (dettaglio prodotto) — ridisegnata ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(20, 17, 14, 0.6); z-index: 300;
  display: none; align-items: center; justify-content: center; padding: 24px;
  backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
}
.modal-overlay.is-open { display: flex; }
.modal {
  background: var(--card); border-radius: 22px; width: min(1000px, 94vw);
  max-height: min(800px, 92vh); position: relative; display: flex; overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.28s cubic-bezier(0.2, 0.7, 0.2, 1.1) both;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(18px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes sheetIn { from { transform: translateY(60px); opacity: 0.4; } to { transform: none; opacity: 1; } }
.modal__media {
  flex: 0 0 42%; background: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 110px;
  position: relative; overflow: hidden;
}
/* la foto si vede INTERA, non tagliata: "contain" invece del vecchio "cover" gigante */
.modal__media img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.modal__media .modal__emoji { display: inline-block; animation: emojiFloat 3.4s ease-in-out infinite alternate; }
@keyframes emojiFloat { from { transform: translateY(-8px); } to { transform: translateY(10px) rotate(-3deg); } }
.modal__body { flex: 1; padding: 42px 40px; display: flex; flex-direction: column; overflow-y: auto; scrollbar-width: thin; }
.modal__body::-webkit-scrollbar { width: 7px; }
.modal__body::-webkit-scrollbar-track { background: transparent; }
.modal__body::-webkit-scrollbar-thumb { background: rgba(28, 26, 23, 0.18); border-radius: 99px; }
.modal__close {
  position: absolute; top: 16px; right: 16px; background: #fff; border: 0; border-radius: 50%;
  width: 42px; height: 42px; font-size: 19px; cursor: pointer; box-shadow: var(--shadow); z-index: 2;
  transition: transform 0.18s ease, background 0.18s ease;
}
.modal__close:hover { transform: rotate(90deg); background: var(--accent-soft); }
.modal__category { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.modal__title { font-size: clamp(22px, 2.2vw, 27px); margin: 8px 0 12px; line-height: 1.25; }
.modal__desc { color: var(--muted); font-size: 13.5px; line-height: 1.8; margin-bottom: 16px; }
.modal__pricewrap { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 18px 0 14px; }
.modal__price { font-size: 26px; font-weight: 800; }
.modal__price s { color: var(--muted); font-weight: 400; margin-right: 12px; font-size: 17px; }
.modal__delivery { font-size: 12.5px; color: var(--muted); }
.modal__foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: center; }
.modal__foot .qty { margin-bottom: 0; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; margin-bottom: 16px; background: var(--bg); align-self: flex-start; }
.qty button { width: 38px; height: 40px; border: 0; background: none; font-size: 17px; cursor: pointer; color: var(--text); transition: background 0.15s ease; }
.qty button:hover { background: rgba(28, 26, 23, 0.06); }
.qty input { width: 44px; border: 0; text-align: center; font-size: 15px; font-weight: 700; background: transparent; }
.modal__trust { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.modal__variants { margin: 0 0 4px; }
.modal__trust span { font-size: 12px; color: var(--muted); background: var(--bg); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; }
@media (max-width: 749px) {
  .modal-overlay.is-open { align-items: flex-end; padding: 0; }
  .modal { flex-direction: column; width: 100vw; max-height: 94vh; border-radius: 22px 22px 0 0; animation: sheetIn 0.3s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .modal__media { flex: 0 0 250px; font-size: 92px; }
  .modal__body { padding: 26px 22px 34px; }
}

/* ---------- Cart drawer ---------- */
.cart-overlay { position: fixed; inset: 0; background: rgba(28, 26, 23, 0.55); z-index: 400; display: none; }
.cart-overlay.is-open { display: block; }
.cart-drawer {
  position: fixed; top: 0; right: -420px; width: min(400px, 100vw); height: 100%;
  background: var(--card); z-index: 401; transition: right 0.3s ease;
  display: flex; flex-direction: column; box-shadow: var(--shadow-lg);
}
.cart-drawer.is-open { right: 0; }
.cart-drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.cart-drawer__head h2 { margin: 0; font-size: 22px; }
.cart-close { background: none; border: 0; font-size: 26px; cursor: pointer; }
.cart-items { flex: 1; overflow-y: auto; padding: 0 24px; }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-item__media { width: 64px; height: 64px; border-radius: var(--radius-sm); background: var(--accent-soft); display: flex; align-items: center; justify-content: center; font-size: 28px; }
.cart-item__media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-sm); }
.cart-item__name { font-weight: 700; font-size: 14px; line-height: 1.3; }
.cart-item__meta { font-size: 13px; color: var(--muted); }
.cart-item__remove { font-size: 12px; color: var(--muted); text-decoration: underline; background: none; border: 0; cursor: pointer; padding: 0; }
.cart-drawer__foot { padding: 20px 24px; border-top: 1px solid var(--line); }
.cart-total-row { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 14px; }
.cart-total-row--grand { font-size: 18px; font-weight: 800; margin: 8px 0 16px; }
.cart-empty { text-align: center; padding: 48px 24px; color: var(--muted); }
.cart-empty .big { font-size: 52px; }

/* ---------- Checkout ---------- */
.checkout-grid { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: start; }
@media (max-width: 900px) { .checkout-grid { grid-template-columns: 1fr; } }
.summary-card { background: var(--card); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); position: sticky; top: 110px; }
.summary-card h2 { font-size: 22px; }
.paypal-box { border: 1px dashed var(--line); border-radius: var(--radius); padding: 24px; text-align: center; margin-top: 16px; }
.paypal-warning { background: #fff3cd; border-radius: var(--radius-sm); padding: 16px; font-size: 14px; text-align: left; }
.order-success { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 48px 32px; text-align: center; max-width: 560px; margin: 0 auto; }
.order-success .big { font-size: 60px; }

/* ---------- Generic page content ---------- */
.page-content { max-width: 760px; margin: 0 auto; }
.page-content h1 { font-size: clamp(28px, 4vw, 42px); }
.page-content h2 { font-size: 22px; margin-top: 32px; }
.page-content p, .page-content li { color: var(--muted); }
.page-content strong { color: var(--text); }
.faq-item { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq-item h3 { font-size: 17px; margin: 0; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-item .faq-body { display: none; color: var(--muted); font-size: 15px; padding-top: 10px; }
.faq-item.open .faq-body { display: block; }

/* ---------- Footer ---------- */
.footer { background: var(--text); color: rgba(250, 248, 245, 0.85); margin-top: 96px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding: 56px 0 40px; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__brand { font-family: var(--font-heading); font-size: 26px; font-weight: 800; color: #fff; letter-spacing: -0.03em; }
.footer h3 { color: #fff; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 14px; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); padding: 20px 0; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 13px; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; background: var(--text); color: #fff;
  z-index: 500; padding: 18px 24px; display: none; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: center;
}
.cookie-banner.is-open { display: flex; }
.cookie-banner p { margin: 0; font-size: 14px; }
.cookie-banner a { text-decoration: underline; }

/* ---------- Reveal allo scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Utilities ---------- */
.badge-note { background: var(--accent-soft); border-radius: var(--radius-sm); padding: 14px 18px; font-size: 14px; }
.center-col { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- Feedback "Aggiunto ✓" ---------- */
.btn--ok { background: linear-gradient(160deg, #3ec97a, #28a45e) !important; }

/* ---------- Pagine private (statistiche / gestione prodotti) ---------- */
.gate { max-width: 440px; margin: 60px auto; text-align: center; }
.gate h1 { font-size: 28px; margin-bottom: 8px; }
.gate p { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.gate input {
  width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px;
  font-size: 15px; text-align: center; background: var(--bg); color: var(--text); margin-bottom: 12px;
}
.gate .hint { font-size: 12px; margin-top: 14px; }
.gate-error { color: #c0392b; font-size: 13px; margin-bottom: 10px; min-height: 16px; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin: 26px 0; }
.stat-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.stat-card .num { font-size: 30px; font-weight: 800; }
.stat-card .label { font-size: 12px; color: var(--muted); margin-top: 4px; }

.stats-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 26px; }
.stats-box { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; }
.stats-box h3 { font-size: 15px; margin-bottom: 14px; }
.bar-row { display: grid; grid-template-columns: minmax(70px, 40%) 1fr auto; gap: 10px; align-items: center; font-size: 13px; margin-bottom: 9px; }
.bar-row .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-row .bar { height: 8px; border-radius: 99px; background: linear-gradient(90deg, #ef6a3f, #d64f26); min-width: 2px; }
.bar-row .n { color: var(--muted); font-variant-numeric: tabular-nums; }
.day-bars { display: flex; align-items: flex-end; gap: 3px; height: 120px; margin-top: 6px; }
.day-bars .db { flex: 1; background: linear-gradient(180deg, #ef6a3f, #d64f26); border-radius: 4px 4px 0 0; min-height: 2px; position: relative; }
.day-bars .db span { position: absolute; bottom: -18px; left: 50%; transform: translateX(-50%); font-size: 9px; color: var(--muted); }
.stats-foot { height: 22px; }

.admin-row {
  display: flex; align-items: center; gap: 16px; background: var(--card);
  border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; margin-bottom: 12px; flex-wrap: wrap;
}
.admin-row .thumb {
  width: 64px; height: 64px; border-radius: 12px; background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center; font-size: 32px; overflow: hidden; flex: 0 0 auto;
}
.admin-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.admin-row .info { flex: 1; min-width: 160px; }
.admin-row .info .p-name { font-weight: 700; font-size: 15px; }
.admin-row .info .p-cat { font-size: 12px; color: var(--muted); }
.admin-row .msg { font-size: 13px; }
.admin-row .msg.ok { color: #28a45e; }
.admin-row .msg.err { color: #c0392b; }
.drop-zone {
  border: 2px dashed var(--line); border-radius: 12px; padding: 10px 14px; font-size: 13px;
  color: var(--muted); cursor: pointer; text-align: center; min-width: 180px; transition: border-color 0.15s ease, background 0.15s ease;
}
.drop-zone:hover, .drop-zone.dragover { border-color: var(--accent); background: var(--accent-soft); }

/* ---------- Box "I tuoi conti" nel pannello (privato) ---------- */
.costs-box { margin: 12px 0 4px; padding: 12px 14px; border: 1px dashed var(--accent); border-radius: 12px; background: var(--accent-soft); }
.costs-box h4 { margin: 0 0 10px; font-size: 13px; }
.costs-box h4 small { color: var(--muted); font-weight: 500; }
.margin-line { font-size: 13px; font-weight: 700; margin: 10px 0 0; }

/* ---------- Avviso spedizione gratuita nel carrello ---------- */
.ship-hint { font-size: 12.5px; font-weight: 600; color: var(--muted); background: var(--accent-soft); border-radius: 10px; padding: 8px 12px; margin-top: 10px; text-align: center; }
.ship-hint--ok { color: #1d7a4f; background: #e2f5ec; }
html[data-theme="dark"] .ship-hint--ok { color: #7ee2b3; background: #173326; }

/* ---------- Galleria foto nella scheda prodotto ---------- */
.gallery { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.gallery img { width: 100%; height: 100%; object-fit: contain; padding: 14px 14px 74px; animation: modalIn 0.25s ease both; }
.gal-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, 0.9); color: var(--text); font-size: 24px; line-height: 1;
  cursor: pointer; box-shadow: var(--shadow); transition: background 0.15s ease;
}
.gal-nav:hover { background: #fff; }
.gal-prev { left: 12px; }
.gal-next { right: 12px; }
.gal-dots { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; gap: 6px; justify-content: center; }
.gal-dot { width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; background: rgba(255, 255, 255, 0.55); cursor: pointer; transition: background 0.15s ease, transform 0.15s ease; }
.gal-dot.on { background: #fff; transform: scale(1.25); }
/* Miniature cliccabili sotto la foto: si vede subito cosa c'è (foto, colori, video) */
.gal-thumbs { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; gap: 7px; justify-content: center; flex-wrap: wrap; padding: 0 10px; }
.gal-thumbs button { width: 52px; height: 52px; padding: 0; border: 2px solid rgba(0, 0, 0, 0.14); background: #f4f2ef; border-radius: 10px; overflow: hidden; cursor: pointer; opacity: 0.65; transition: opacity 0.15s ease, transform 0.15s ease, border-color 0.15s ease; }
.gal-thumbs button:hover { opacity: 1; }
.gal-thumbs button.on { border-color: var(--accent); opacity: 1; transform: scale(1.07); }
.gal-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal-thumbs .gal-thumbs-vid { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 17px; background: #191714; color: #fff; }

/* ---------- Form dati di spedizione (checkout) ---------- */
.buyer-form { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; margin-bottom: 22px; }
.buyer-form h2 { font-size: 20px; margin-bottom: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.form-grid input, .form-grid textarea, .buyer-form textarea, .form-grid select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 14px; font-family: inherit; background: var(--bg); color: var(--text);
}
.form-grid input:focus, .buyer-form textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.buyer-form textarea { margin-top: 12px; min-height: 64px; resize: vertical; }
.field-error { border-color: #c0392b !important; background: #fdf1f0 !important; }
.form-status {
  font-size: 13px; padding: 10px 14px; border-radius: 10px; margin: 14px 0;
  background: #fdf6ec; border: 1px solid #f0d9b8; color: #9a6b1f;
}
.form-status--ok { background: #e9f8f0; border-color: #bfe6cd; color: #1d7a46; }

/* ---------- Pannello: tab, righe prodotto, foto, ordini ---------- */
.admin-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 22px 0 18px; border-bottom: 2px solid var(--line); padding-bottom: 0; }
.admin-tabs .tab {
  border: 0; background: none; font-family: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
  color: var(--muted); padding: 10px 16px; border-radius: 12px 12px 0 0; border-bottom: 3px solid transparent; margin-bottom: -2px;
}
.admin-tabs .tab:hover { color: var(--text); }
.admin-tabs .tab.on { color: var(--accent); border-bottom-color: var(--accent); }
.admin-tabs .tab a { text-decoration: none; }

.admin-row { display: block; padding: 18px 20px; }
.admin-main { width: 100%; }
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.admin-head .msg { order: 2; }
.switch { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; color: var(--muted); }
.switch input { width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; }
.admin-row label { font-size: 12px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; font-weight: 600; }
.admin-row label.full { grid-column: 1 / -1; }
.admin-row label.small { font-weight: 400; }
.admin-row label input, .admin-row label textarea { font-size: 14px; font-weight: 400; color: var(--text); }
.admin-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.btn--small.danger { background: none; border: 1px solid #e5b4b4; color: #c0392b; }
.btn--small.danger:hover { background: #fdf1f0; }
.btn--small.ghost { background: none; border: 1px solid var(--line); color: var(--muted); }

.photos-box { margin-top: 16px; border-top: 1px dashed var(--line); padding-top: 14px; }
.photos-box h4 { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.thumbs { display: flex; gap: 10px; flex-wrap: wrap; align-items: stretch; }
.thumb-lg { position: relative; width: 86px; height: 86px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.thumb-lg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-x {
  position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: 0;
  background: rgba(20, 17, 14, 0.65); color: #fff; font-size: 12px; cursor: pointer; line-height: 1;
}
.thumb-x:hover { background: #c0392b; }
.thumbs .drop-zone { flex: 0 0 auto; width: 120px; min-height: 86px; display: flex; flex-direction: column; align-items: center; justify-content: center; }

.order-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; margin-bottom: 14px; }
.order-head { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.order-status { margin-left: auto; font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); }
.order-status.s-pagato { background: #e9f8f0; border-color: #bfe6cd; color: #1d7a46; }
.order-status.s-spedito { background: #e8f1fb; border-color: #bcd6f0; color: #1d5a9a; }
.order-status.s-consegnato { background: #e9f8f0; border-color: #bfe6cd; color: #1d7a46; }
.order-status.s-annullato { background: #fdf1f0; border-color: #e5b4b4; color: #c0392b; }
.order-body { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.order-buyer { font-size: 14px; line-height: 1.7; }
.order-items { font-size: 14px; }
.order-foot { display: flex; gap: 12px; align-items: center; margin-top: 14px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 12px; }
.order-foot label { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; font-weight: 600; }
.order-foot select { padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); font-family: inherit; font-size: 13px; }

/* ============ NOVITÀ HOME: tendina lingue, floats, vetrina, mystery/meme, perché-noi, coming soon ============ */

/* Tendina lingua nell'header */
.lang-sel {
  font-family: var(--font-heading); font-size: 13px; font-weight: 700;
  border: 1px solid var(--line); background: var(--card); color: var(--text);
  border-radius: 999px; padding: 7px 10px; cursor: pointer; outline: none;
}
.lang-sel:hover { border-color: var(--accent); color: var(--accent); }

/* Chip galleggianti nell'hero: colonne laterali dedicate, così non possono mai coprire il testo */
.hero__side { display: flex; flex-direction: column; justify-content: center; gap: clamp(30px, 7vh, 70px); pointer-events: none; }
.hero__side--right { align-items: flex-end; }
.hero__float {
  display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff; padding: 8px 14px; border-radius: 999px; backdrop-filter: blur(6px);
  max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  animation: floaty 6s ease-in-out infinite;
}
.hero__float em { font-style: normal; opacity: 0.6; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@media (max-width: 1020px) {
  .hero__inner { grid-template-columns: 1fr; padding: 80px 24px; }
  .hero__side { display: none; } /* su schermi stretti niente chip: solo testo, zero sovrapposizioni */
}
.hero-ghost-btn { color: #fff !important; border-color: rgba(255,255,255,0.5) !important; }

/* Vetrina "Novità": l'ultimo prodotto importato, in grande */
.spotlight {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 0; border-radius: var(--radius);
  overflow: hidden; background: var(--card); box-shadow: var(--shadow-lg);
  cursor: pointer; transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.spotlight:hover { transform: translateY(-4px); box-shadow: 0 30px 70px rgba(28,26,23,0.18); }
.spotlight__media { min-height: 320px; background: var(--accent-soft); position: relative; }
.spotlight__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.spotlight__emoji { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 110px; }
.spotlight__body { padding: 38px 36px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.spotlight__badge {
  display: inline-block; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 6px 14px; margin-bottom: 14px;
  animation: badgePulse 2.6s ease-in-out infinite;
}
@keyframes badgePulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.spotlight__title { font-size: 30px; margin: 0 0 10px; }
.spotlight__desc { color: var(--muted); margin: 0 0 18px; }
.spotlight__price { font-size: 28px; margin-bottom: 22px; }
.spotlight__price strong { font-family: var(--font-heading); }
.spotlight__price s { opacity: 0.5; margin-right: 10px; }
.spotlight__cta { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 749px) {
  .spotlight { grid-template-columns: 1fr; }
  .spotlight__media { min-height: 260px; }
  .spotlight__body { padding: 26px 22px; }
  .spotlight__title { font-size: 24px; }
}

/* Tile Mystery Box + Prodotti Meme */
.mm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.mm-tile {
  position: relative; overflow: hidden; border-radius: var(--radius); padding: 34px 30px;
  min-height: 220px; display: flex; flex-direction: column; justify-content: center; color: #fff;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.mm-tile:hover { transform: translateY(-5px) rotate(-0.4deg); box-shadow: var(--shadow-lg); }
.mm-tile--mystery { background: linear-gradient(150deg, #3b1f5e, #7b2ff7 60%, #b829ff); }
.mm-tile--meme { background: linear-gradient(150deg, #b3541e, #e0562f 55%, #ffb03a); }
.mm-emoji { position: absolute; right: -14px; bottom: -22px; font-size: 130px; opacity: 0.22; transform: rotate(-12deg); }
.mm-tile strong { font-family: var(--font-heading); font-size: 26px; letter-spacing: -0.02em; }
.mm-tile p { margin: 10px 0 16px; font-size: 14px; opacity: 0.92; max-width: 85%; }
.mm-cta { font-weight: 800; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 749px) { .mm-grid { grid-template-columns: 1fr; } }

/* Perché noi (bento) */
.why-head { text-align: center; max-width: 640px; margin: 0 auto 34px; }
.why-head p { color: var(--muted); margin: 0; }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.why-item {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.why-item:hover { transform: translateY(-4px); border-color: rgba(224, 86, 47, 0.45); box-shadow: var(--shadow); }
.why-emoji { font-size: 34px; display: block; margin-bottom: 12px; }
.why-item h3 { font-size: 18px; margin: 0 0 8px; }
.why-item p { color: var(--muted); margin: 0; font-size: 14.5px; }
@media (max-width: 749px) { .why-grid { grid-template-columns: 1fr; } }

/* Coming soon: scambio libri usati tra studenti */
.coming-soon {
  position: relative; overflow: hidden; border-radius: var(--radius); text-align: center;
  background: #14110e; color: #fff; padding: 64px 30px;
}
.coming-soon::before {
  content: ""; position: absolute; inset: -60%;
  background: radial-gradient(circle at 30% 30%, rgba(123, 47, 247, 0.35), transparent 55%),
              radial-gradient(circle at 75% 70%, rgba(224, 86, 47, 0.35), transparent 55%);
  animation: glowDrift 14s ease-in-out infinite alternate;
}
.coming-soon > * { position: relative; }
@keyframes glowDrift { from { transform: translate(-4%, -3%); } to { transform: translate(4%, 3%); } }
.cs-badge {
  display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: 0.28em;
  border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 999px; padding: 8px 18px;
  margin-bottom: 20px; animation: badgePulse 2.6s ease-in-out infinite;
}
.cs-emoji { font-size: 52px; display: block; margin-bottom: 12px; }
.coming-soon h2 { font-size: 30px; }
.coming-soon p { color: rgba(255, 255, 255, 0.75); max-width: 520px; margin: 0 auto 24px; }
.cs-btn { color: #fff !important; border-color: rgba(255,255,255,0.5) !important; }
@media (max-width: 749px) { .coming-soon { padding: 46px 22px; } .coming-soon h2 { font-size: 23px; } }

/* Meno movimento per chi lo preferisce */
@media (prefers-reduced-motion: reduce) {
  .hero__float, .coming-soon::before, .spotlight__badge, .cs-badge { animation: none; }
  .mm-tile:hover, .why-item:hover, .spotlight:hover { transform: none; }
}
/* ---------- Varianti nella scheda prodotto ---------- */
.modal__variants-label { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.variant-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.variant-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card, #fff); cursor: pointer; font: inherit; font-size: 13px; font-weight: 600;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.variant-chip img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }
.variant-chip.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); font-weight: 700; }
.variant-chip.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); font-weight: 700; }
.cart-item__variant { font-size: 12px; color: var(--muted); font-weight: 600; margin-top: 2px; }

/* Video nella galleria della scheda prodotto */
.gallery video { width: 100%; height: 100%; object-fit: contain; background: #000; border-radius: inherit; }
html[data-theme="dark"] .modal__media { background: #201d1a; }
html[data-theme="dark"] .gal-thumbs button { background: #2a2622; border-color: rgba(255, 255, 255, 0.16); }

/* ---------- Pannello: lista prodotti + editor (ADD PRODUCT) ---------- */
.plist-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.plist-head h2 { margin: 0; font-size: 20px; }
.plist-count { font-size: 13px; color: var(--muted); font-weight: 600; }
.plist-row {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 14px; margin-bottom: 10px; cursor: pointer; background: var(--card);
  transition: border-color 0.15s ease;
}
.plist-row:hover { border-color: var(--accent); }
.plist-thumb { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: var(--bg); flex: none; }
.plist-main { flex: 1; min-width: 0; }
.plist-name { font-weight: 700; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plist-sub { font-size: 12.5px; color: var(--muted); }
.plist-state { font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; flex: none; }
.plist-state--on { background: #e9f8f0; color: #1c7c44; }
.plist-state--off { background: #f3f0ec; color: #8a8378; }
.plist-open { flex: none; font-size: 13px; font-weight: 700; color: var(--accent); }
.plist-back { background: none; border: 0; cursor: pointer; font: inherit; font-weight: 700; color: var(--muted); padding: 0 0 14px; }
.plist-back:hover { color: var(--text); }
.pedit-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 26px; }
.pedit-label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.ap-link-row { display: flex; gap: 10px; flex-wrap: wrap; }
.ap-link-row input { flex: 1; min-width: 240px; }
.hint-line { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.ap-vars-title { font-size: 13px; font-weight: 700; margin: 18px 0 8px; }
.ap-var-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; cursor: pointer; }
.ap-var-row img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; background: var(--bg); flex: none; }
.ap-var-row.on { border-color: var(--accent); }
html[data-theme="dark"] .plist-state--on { background: #173226; color: #5ec488; }
html[data-theme="dark"] .plist-state--off { background: #2a2622; color: #a39c92; }

/* ---------- Mobile più fluido: niente effetti pesanti sul telefono ---------- */
* { -webkit-tap-highlight-color: transparent; }
.btn, button, .variant-chip, .filter-chip { touch-action: manipulation; }
@media (max-width: 749px) {
  .hero__glow { display: none; } /* i blur grandi (95px) sono il peggior nemico della fluidità su telefono */
  .header-wrapper,
  .announcement,
  .hero__eyebrow, .hero__trust span,
  .spotlight__badge, .cs-badge,
  .cookie-banner {
    backdrop-filter: none; -webkit-backdrop-filter: none;
  }
}

/* ============ TEMA SCURO (l'utente lo sceglie col pulsante nell'header) ============ */
/* Di default il sito è chiaro; con html[data-theme="dark"] cambiano i colori base
   e i pochi punti fissati a mano. La scelta è ricordata nel browser. */
html[data-theme="dark"] {
  --accent-soft: #3a241c;
  --bg: #14110e;
  --text: #f2ede6;
  --card: #1f1b16;
  --muted: #a49c8f;
  --line: rgba(255, 255, 255, 0.14);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}
html[data-theme="dark"] body { background: var(--bg); color: var(--text); }
html[data-theme="dark"] .header-wrapper { background: rgba(20, 17, 14, 0.92); }
html[data-theme="dark"] .mobile-nav { background: var(--card); }
html[data-theme="dark"] .cart-btn:hover,
html[data-theme="dark"] .qty button:hover { background: rgba(255, 255, 255, 0.1); }
html[data-theme="dark"] .modal__close { background: var(--card); color: var(--text); }
html[data-theme="dark"] .modal__body::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.25); }
html[data-theme="dark"] .announcement { background: #0d0b09; color: #f2ede6; }
html[data-theme="dark"] .footer { background: #0d0b09; }
html[data-theme="dark"] .cookie-banner { background: #0d0b09; }
html[data-theme="dark"] .form-status--ok { background: #12281b; border-color: #1d5c37; color: #7fd6a4; }
html[data-theme="dark"] .field-error { background: #2e1c19 !important; }
html[data-theme="dark"] .btn--small.danger { background: none; border-color: #6b3a34; color: #ff9d92; }
html[data-theme="dark"] .btn--small.danger:hover { background: #2e1c19; }
html[data-theme="dark"] .admin-row .msg.err,
html[data-theme="dark"] .gate-error { color: #ff8d7e; }
html[data-theme="dark"] .admin-row .msg.ok { color: #7fd6a4; }
html[data-theme="dark"] .theme-btn { font-size: 17px; }

/* ============ OBIETTIVI DEL NEGOZIO + RICHIEDI UN PRODOTTO ============ */
.goals-box {
  background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  padding: 40px 34px; text-align: center; box-shadow: var(--shadow);
}
.goals-box h2 { margin-bottom: 8px; }
.goals-box > p { color: var(--muted); max-width: 640px; margin: 0 auto 26px; font-size: 15.5px; }
.goal-row { display: flex; align-items: center; gap: 16px; max-width: 560px; margin: 0 auto; }
.goal-bar {
  flex: 1; height: 18px; background: var(--bg); border: 1px solid var(--line);
  border-radius: 999px; overflow: hidden;
}
.goal-fill {
  height: 100%; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, #ef6a3f, #e7a23c);
  transition: width 1.1s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.goal-num { font-weight: 800; font-size: 17px; white-space: nowrap; }
.goal-note { margin-top: 14px; font-size: 14px; color: var(--muted); }
.request-form { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; max-width: 760px; margin: 0 auto; }
.request-form input {
  flex: 1; min-width: 200px; padding: 13px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg); color: var(--text);
  font-family: inherit; font-size: 14.5px;
}
.request-form input:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.request-form button { flex: none; }
.request-box .msg { display: block; font-size: 14.5px; font-weight: 600; margin: 14px auto 0; max-width: 640px; }
.request-box .msg.ok { color: #28a45e; }
.request-box .msg.err { color: #c0392b; }
html[data-theme="dark"] .request-box .msg.ok { color: #7fd6a4; }
html[data-theme="dark"] .request-box .msg.err { color: #ff8d7e; }
[hidden] { display: none !important; } /* l'attributo hidden vince sempre, anche su classi con display */
@media (max-width: 749px) { .goals-box { padding: 28px 18px; } }
/* messaggi del pannello (salvataggi, ordini, richieste) */
#dash .msg { font-size: 13px; }
#dash .msg.ok { color: #1c7c44; font-weight: 600; }
#dash .msg.err { color: #c0392b; font-weight: 600; }
html[data-theme="dark"] #dash .msg.ok { color: #7fd6a4; }
html[data-theme="dark"] #dash .msg.err { color: #ff8d7e; }
