@font-face {
  font-family: "Coolvetica";
  src: url("media/fonts/coolvetica.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0b0c0a;
  --bg-soft: #121410;
  --fg: #f2f4ef;
  --muted: #9aa39a;
  --accent: #c8f126;
  --accent-dim: #38430a;
  --danger: #ff5c5c;
  --border: #23261f;
  --radius: 10px;
  --max-w: 1100px;
  font-size: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 12, 10, 0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.site-header--nav-only .wrap { justify-content: center; }

.logo { display: block; flex-shrink: 0; }
.logo img { height: 32px; width: auto; max-width: none; display: block; }

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-links a {
  opacity: 0.8;
  transition: opacity 0.15s;
}
.nav-links a:hover { opacity: 1; color: var(--accent); }

.cart-link { display: flex; align-items: center; gap: 6px; }
.cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: #000;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: none;
}

/* ---------- Hero ---------- */
.hero {
  padding: 90px 0 70px;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% -20%, rgba(200,241,38,0.15), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}

.hero .payoff {
  font-size: 1.1rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
  white-space: nowrap;
}

/* ---------- Hero lime (homepage splash) ---------- */
.hero-lime {
  background: var(--accent);
  text-align: center;
  padding: 60px 24px 0;
}

.hero-lime-img {
  width: 100%;
  max-width: 480px;
  height: auto;
  margin: 0 auto;
}

.hero-lime-tagline {
  margin: 36px 0 0;
  font-family: "Coolvetica", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bg);
  font-weight: normal;
}

.hero-lime-cta {
  padding: 32px 0 0;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-lime-link {
  display: block;
  text-align: center;
  padding: 18px 0 60px;
  color: var(--bg);
  font-size: 0.85rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hero-lime-link:hover { opacity: 0.7; }

@media (max-width: 600px) {
  .hero-lime {
    padding: 40px 20px 0;
  }
  .hero-lime-img {
    max-width: 320px;
  }
  .hero-lime-tagline {
    font-size: 0.8rem;
    letter-spacing: 0.12em;
  }
  .hero-lime-cta {
    padding: 24px 0 0;
  }
}

.btn-dark {
  background: var(--bg);
  color: var(--accent);
}
.btn-dark:hover { opacity: 0.85; }

.hero-lime-cta .btn-outline {
  border-color: var(--bg);
  color: var(--bg);
}
.hero-lime-cta .btn-outline:hover {
  border-color: var(--bg);
  background: rgba(11, 12, 10, 0.08);
}

.hero-lime-cta .btn {
  padding: 11px 24px;
  font-size: 0.8rem;
}

/* ---------- Quote section (below hero) ---------- */
.quote-section {
  text-align: center;
  padding: 24px 0 50px;
  margin-top: -35px;
  border-bottom: 1px solid var(--border);
}

.quote-text {
  max-width: 560px;
  margin: 0 auto 8px;
  font-size: 1.2rem;
  color: var(--fg);
  font-style: italic;
}

.quote-section .quote-author {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 18px;
}

.quote-desc {
  max-width: 520px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 0.9rem;
}

.dict-entry {
  text-align: left;
  line-height: 1.6;
}
.dict-entry strong { color: var(--fg); font-weight: 600; }
.dict-entry em { font-style: italic; }

.hero h1 {
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  line-height: 1.25;
  margin: 0 0 10px;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.hero .quote-author {
  font-size: 0.95rem;
  margin: 0 0 24px;
}

.hero p {
  max-width: 520px;
  margin: 0 auto 34px;
  color: var(--muted);
  font-size: 1.05rem;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s, opacity 0.12s;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--accent);
  color: #06170e;
}
.btn-primary:hover { opacity: 0.9; }

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--fg);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-block { width: 100%; text-align: center; }

/* Pulsanti pagamento PayPal.me: verde = amici e familiari, marrone = beni e servizi */
.btn-pay-trust { background: #2e9e4f; color: #fff; }
.btn-pay-safe { background: #7a4a27; color: #fff; }
.btn-pay-trust:hover, .btn-pay-safe:hover { opacity: 0.9; }

/* Filtro tipologie nello shop */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 24px;
}
.filter-btn {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--fg);
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn.active {
  border-color: var(--accent);
  background: rgba(200,241,38,0.12);
  color: var(--accent);
}

/* Avviso prodotti NOMADS SUPPORT (incasso a sostegno del progetto) */
.support-alert {
  border: 3px solid #2e9e4f;
  background: rgba(46, 158, 79, 0.15);
  color: var(--fg);
  padding: 18px 20px;
  border-radius: 10px;
  margin: 0 0 20px;
  text-align: center;
  font-size: 1rem;
  line-height: 1.5;
}
.support-alert strong {
  display: block;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: #2e9e4f;
  margin-bottom: 6px;
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ---------- Sections ---------- */
main { flex: 1; }

.section { padding: 60px 0; }

.section-title {
  text-transform: uppercase;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: 0.02em;
  margin-bottom: 30px;
}

.story-section {
  border-top: 1px solid var(--border);
}

.story-banner {
  display: block;
  width: 100%;
  height: auto;
  margin: -60px 0 40px;
}

.story-text {
  max-width: 680px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0 0 20px;
}
.story-text:last-of-type { margin-bottom: 0; }

.story-final {
  display: flex;
  align-items: flex-start;
  gap: 32px;
}
.story-text-col {
  flex: 0 1 680px;
}
.story-text-col-full {
  flex: 1 1 100%;
}
.story-text-col-full .story-text {
  max-width: none;
}
.story-final .story-text:last-of-type { margin-bottom: 0; }

.story-contact {
  margin-top: 20px;
  font-weight: bold;
  color: var(--fg);
}
.story-contact a {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.story-contact a:hover { opacity: 0.7; }
.story-photo {
  width: 220px;
  height: auto;
  border-radius: 8px;
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .story-final {
    flex-direction: column;
    align-items: center;
  }
  .story-photo {
    width: 100%;
    max-width: 320px;
  }
}

.story-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 36px;
}
.story-gallery > a {
  display: block;
  min-width: 0;
}
.story-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
}
@media (max-width: 900px) {
  .story-gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .story-gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}

/* ---------- Product grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
}

/* Anteprime Fanzine/Eventi in home: sempre 3 per riga, card compatte anche su mobile */
#fanzineGrid, #eventiGrid {
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
#fanzineGrid .card-body, #eventiGrid .card-body {
  padding: 8px;
  gap: 2px;
}
#fanzineGrid .card-drop, #eventiGrid .card-drop {
  font-size: 0.6rem;
}
#fanzineGrid .card-name, #eventiGrid .card-name {
  font-size: 0.75rem;
  line-height: 1.25;
}
#fanzineGrid .card-name {
  color: #fff;
}
#fanzineGrid .card-excerpt, #eventiGrid .card-excerpt {
  display: none;
}
@media (max-width: 480px) {
  #fanzineGrid, #eventiGrid { gap: 6px; }
}
@media (max-width: 640px) {
  #fanzineStrip, #eventiStrip, #instagram-feed { padding: 28px 0; }
}

.card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s;
}
.card:hover { border-color: var(--accent-dim); }

.card-clickable { cursor: pointer; }
.card-clickable:hover { border-color: var(--accent); }
.card-cta {
  display: inline-block;
  margin-top: 12px;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.card-media {
  aspect-ratio: 1430 / 945;
  background: #1a1d17 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Crect width='4' height='4' fill='%231a1d17'/%3E%3C/svg%3E");
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--radius);
}
.card-media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.card-media .placeholder {
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.card-drop {
  font-size: 0.7rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.card-name {
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: uppercase;
}
.fanzine-page .card-name {
  color: #fff;
}

.card-price { color: var(--muted); font-size: 0.95rem; }

.limited-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  opacity: 0.85;
}

.badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}
.badge-live {
  background: rgba(200,241,38,0.12);
  color: var(--accent);
  border: 1px solid var(--accent-dim);
}
.badge-out {
  background: rgba(255,92,92,0.1);
  color: var(--danger);
  border: 1px solid rgba(255,92,92,0.3);
}
.badge-soon {
  background: rgba(74,144,255,0.1);
  color: #4a90ff;
  border: 1px solid rgba(74,144,255,0.3);
}
.badge-preorder {
  background: rgba(255,165,0,0.1);
  color: #ffa500;
  border: 1px solid rgba(255,165,0,0.3);
}
.badge-concept {
  background: rgba(168,85,247,0.1);
  color: #a855f7;
  border: 1px solid rgba(168,85,247,0.3);
}

.stock-note {
  display: block;
  margin-top: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #111;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
  width: fit-content;
}

.card-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.like-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.75rem;
  color: var(--fg);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.like-btn:hover { border-color: #a855f7; color: #a855f7; }
.like-btn.liked { border-color: #a855f7; color: #a855f7; }
.like-btn svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; }
.like-btn.liked svg { fill: #a855f7; }

.attend-btn:hover { border-color: var(--accent); color: var(--accent); }
.attend-btn.liked { border-color: var(--accent); color: var(--accent); }
.attend-btn.liked svg { fill: none; }

.card-link { margin-top: auto; padding-top: 10px; }

/* ---------- Product detail ---------- */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}
@media (max-width: 760px) {
  .product-detail { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-links { gap: 10px; font-size: 0.65rem; flex-wrap: wrap; justify-content: center; row-gap: 6px; }
  .site-header .wrap { padding-left: 12px; padding-right: 12px; flex-direction: column; gap: 10px; }
  .hero .payoff { font-size: 0.75rem; letter-spacing: 0.15em; }
}

.product-media {
  aspect-ratio: 1430 / 945;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-media img { width: 100%; height: 100%; object-fit: cover; }

/* Zoom foto prodotto */
.product-media.zoomable { cursor: zoom-in; }
.card-media.zoomable { cursor: zoom-in; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-stage {
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  cursor: zoom-out;
  user-select: none;
  -webkit-user-drag: none;
}
.lb-close, .lb-nav {
  position: absolute;
  z-index: 2;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  line-height: 1;
}
.lb-close:hover, .lb-nav:hover { background: rgba(255, 255, 255, 0.25); }
.lb-close {
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.8rem;
}
.lb-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 64px;
  border-radius: 8px;
  font-size: 2.4rem;
}
.lb-prev { left: 14px; }
.lb-next { right: 14px; }

/* ---------- Fanzine ---------- */

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.section-link {
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.card-excerpt {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.45;
}

.post-wrap { max-width: 760px; }
.post-back {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.post-title {
  text-transform: uppercase;
  font-size: 2rem;
  line-height: 1.15;
  margin: 6px 0 14px;
  font-weight: 900;
  color: #fff;
}
.post-lead {
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 22px;
}
.post-draft {
  border: 2px dashed #ffa500;
  color: #ffa500;
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 18px;
  font-size: 0.85rem;
}
.post-cover {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-soft);
  overflow: hidden;
  cursor: zoom-in;
  margin: 0 0 24px;
}
.post-cover img { display: block; width: 100%; height: auto; }
.post-author {
  margin: -4px 0 18px;
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}
.post-author strong { color: var(--fg); font-weight: 700; }
.post-body p { line-height: 1.7; margin: 0 0 1.1em; }
.post-body h2 {
  font-size: 1.5rem;
  line-height: 1.25;
  text-transform: uppercase;
  font-weight: 900;
  margin: 1.8em 0 0.6em;
}
.post-body h3 {
  font-size: 1.15rem;
  line-height: 1.3;
  font-weight: 700;
  color: var(--accent);
  margin: 1.5em 0 0.5em;
}
.post-body strong { font-weight: 700; }
.post-body a { color: var(--accent); }

.embed-box {
  position: relative;
  width: 100%;
  margin: 0 0 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-soft) center / cover no-repeat;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 16px;
}
.embed-video { aspect-ratio: 16 / 9; }
.embed-box.loaded { padding: 0; display: block; }
.embed-box iframe { width: 100%; height: 100%; border: 0; display: block; }
.embed-load {
  border: 0;
  cursor: pointer;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: #000;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.embed-load:hover { opacity: 0.9; }
.embed-note {
  margin: 0;
  max-width: 420px;
  font-size: 0.72rem;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

/* Etichetta "Anteprima" sulle card del Fanzine */
.card-media { position: relative; }
.preview-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: #000;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}
.preview-badge--inline {
  position: static;
  display: inline-block;
  margin-right: 8px;
  box-shadow: none;
}

/* Ricerca e filtri del Fanzine */
.search-input {
  width: 100%;
  max-width: 520px;
  box-sizing: border-box;
  padding: 12px 16px;
  margin: 0 0 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--fg);
  font: inherit;
}
.search-input:focus { outline: none; border-color: var(--accent); }
.tag-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
}
.tag-label {
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-right: 4px;
}
.tag-chip {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--fg);
  padding: 4px 12px;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
}
.tag-chip:hover { border-color: var(--accent); color: var(--accent); }
.tag-chip.active { border-color: var(--accent); background: rgba(200,241,38,0.12); color: var(--accent); }
.result-info { margin: 0 0 18px; color: var(--muted); font-size: 0.85rem; min-height: 1.2em; }
.result-info a { color: var(--accent); }
.card-tags { margin: 8px 0 0; color: var(--accent); font-size: 0.75rem; opacity: 0.85; }
.post-tags { margin: 26px 0 0; font-size: 0.9rem; line-height: 2; }
.post-tags a {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--accent);
}
.post-tags a:hover { border-color: var(--accent); }
.post-cats { margin: 0 0 18px; }
.post-cats a { color: var(--fg); background: rgba(200,241,38,0.08); text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.06em; }

.share-row { margin: 18px 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.share-row button, .share-row a {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--fg);
  background: transparent;
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
}
.share-row button:hover, .share-row a:hover { border-color: var(--accent); color: var(--accent); }

.post-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  margin: 28px 0 0;
}
.post-gallery button {
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-soft);
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 1;
}
.post-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }

.product-info .card-drop { margin-bottom: 6px; }

.product-info h1 {
  text-transform: uppercase;
  font-size: 1.9rem;
  margin: 0 0 8px;
  font-weight: 900;
}

.product-info .limited-tag { margin-bottom: 8px; }

.product-info .price {
  font-size: 1.3rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 18px;
}

.product-info .desc {
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 26px;
}

.field-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 10px;
  display: block;
}

.size-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.size-opt {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--fg);
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
}
.size-opt:hover:not(:disabled) { border-color: var(--accent); }
.size-opt.selected {
  border-color: var(--accent);
  background: rgba(200,241,38,0.1);
  color: var(--accent);
}
.size-opt:disabled {
  opacity: 0.3;
  text-decoration: line-through;
  cursor: not-allowed;
}

.ship-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 26px;
}

.ship-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 14px;
  cursor: pointer;
  font-size: 0.9rem;
}
.ship-opt input { accent-color: var(--accent); }
.ship-opt.selected { border-color: var(--accent); background: rgba(200,241,38,0.06); }
.ship-opt .ship-cost { color: var(--muted); }

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  margin-bottom: 20px;
}
.total-row .label { color: var(--muted); text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.08em; }
.total-row .amount { font-size: 1.6rem; font-weight: 800; color: var(--accent); }

.cart-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.cart-row {
  display: grid;
  grid-template-columns: 56px 1fr auto auto auto;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
}
.cart-row-media { width: 56px; height: 56px; border-radius: 6px; overflow: hidden; background: var(--border); display: flex; align-items: center; justify-content: center; }
.cart-row-media img { width: 100%; height: 100%; object-fit: cover; }
.cart-row-name { font-weight: 600; font-size: 0.9rem; }
.cart-row-size { color: var(--muted); font-size: 0.8rem; }
.cart-row-price { color: var(--muted); font-size: 0.8rem; }
.cart-row-qty .qty-input { width: 56px; padding: 6px; border: 1px solid var(--border); border-radius: 6px; background: transparent; color: inherit; text-align: center; }
.cart-row-total { font-weight: 700; font-size: 0.9rem; min-width: 70px; text-align: right; }
.cart-row-remove { background: none; border: none; color: var(--muted); font-size: 1.3rem; cursor: pointer; line-height: 1; }
.cart-row-remove:hover { color: var(--danger); }

@media (max-width: 640px) {
  .cart-row { grid-template-columns: 48px 1fr auto; grid-template-areas: "media info remove" "media qty total"; row-gap: 8px; }
  .cart-row-media { grid-area: media; }
  .cart-row-info { grid-area: info; }
  .cart-row-remove { grid-area: remove; justify-self: end; }
  .cart-row-qty { grid-area: qty; }
  .cart-row-total { grid-area: total; text-align: right; }
}

.thumb-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  margin-top: 12px;
}
.thumb-opt {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
  padding: 0;
  cursor: pointer;
  background: none;
}
.thumb-opt img { width: 100%; height: 100%; object-fit: cover; }
.thumb-opt.selected { border-color: var(--accent); }

.text-input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--fg);
  padding: 10px 12px;
  font-size: 0.9rem;
  font-family: inherit;
  margin-bottom: 10px;
  display: block;
}
.text-input:focus { outline: none; border-color: var(--accent); }

.order-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 14px;
  line-height: 1.5;
}

.wip-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #4a90ff;
  color: #fff;
  padding: 12px 18px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 0.9rem;
}
.wip-banner button {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 30px 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
}
.site-footer .socials {
  display: flex;
  gap: 18px;
  justify-content: center;
  margin-bottom: 12px;
}
.site-footer .socials a { opacity: 0.75; }
.site-footer .socials a:hover { opacity: 1; color: var(--accent); }
.site-footer .footer-email { margin-bottom: 12px; }
.site-footer .footer-email a { opacity: 0.75; }
.site-footer .footer-email a:hover { opacity: 1; color: var(--accent); }
.site-footer .legal-links { margin-bottom: 12px; }
.site-footer .legal-links a { opacity: 0.75; }
.site-footer .legal-links a:hover { opacity: 1; color: var(--accent); }

/* ---------- Legal pages ---------- */
.legal-page { max-width: 720px; margin: 0 auto; }
.legal-page h1 { margin-bottom: 4px; }
.legal-page .legal-updated { color: var(--muted); font-size: 0.85rem; margin-bottom: 32px; }
.legal-page h2 { font-size: 1.1rem; margin-top: 28px; margin-bottom: 8px; }
.legal-page p, .legal-page li { color: var(--muted); line-height: 1.6; }
.legal-page ul { padding-left: 20px; margin-bottom: 12px; }
.legal-page a { color: var(--accent); }

/* Matita "Modifica" sulle card e pulsante nella pagina del contenuto: visibili solo a chi e' entrato nell'admin (vedi admin-edit.js) */
.card[data-edit] { position: relative; }
.edit-pencil {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 5;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent);
  color: #000;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  opacity: 0.9;
}
.edit-pencil:hover { opacity: 1; transform: scale(1.08); }
.post-edit {
  display: inline-block;
  margin-left: 14px;
  padding: 4px 12px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.85rem;
  text-decoration: none;
}
.post-edit:hover { background: var(--accent); color: #000; }
/* Trascinamento delle card (solo admin): indicatore di dove cadra' il contenuto */
.card.dragging { opacity: 0.4; }
.card.drop-before { box-shadow: -6px 0 0 0 var(--accent); }
.card.drop-after { box-shadow: 6px 0 0 0 var(--accent); }

/* Menu "Sposta in sezione" sulle card dei video (solo admin) */
.edit-pencil.sec-btn { right: 50px; background: var(--bg-soft); color: var(--accent); border: 1px solid var(--accent); font-size: 16px; }
.sec-menu {
  position: fixed;
  z-index: 1000;
  min-width: 190px;
  max-width: 90vw;
  max-height: 70vh;
  overflow-y: auto;
  background: var(--bg-soft);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.7);
  padding: 6px;
}
.sec-menu-title { padding: 6px 10px; font-size: 0.75rem; color: var(--muted); }
.sec-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--fg);
  font: inherit;
  cursor: pointer;
}
.sec-item:hover { background: var(--accent); color: #000; }
