/* Teste Mobili Records – stile */
:root {
  --bg: #241811;
  --bg-2: #302116;
  --bg-3: #3E2B1C;
  --line: #4E3724;
  --line-2: #5F432D;
  --line-3: #7E5D41;
  --text: #F6EDE1;
  --text-2: #DDCBB6;
  --text-3: #C5AF97;
  --text-4: #AA9178;
  --yellow: #FF7A1A;
  --yellow-2: #FFA05A;
  --red: #FF5A4E;
  --display: 'Archivo Black', 'Arial Black', sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--yellow); }
a:hover { color: var(--yellow-2); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--mono); }
.eyebrow { margin: 0; font-family: var(--mono); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--yellow); }
.h-display { margin: 0; font-family: var(--display); font-weight: 400; text-transform: uppercase; line-height: 1.02; }
.muted { color: var(--text-3); }

/* Buttons and pills */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 24px;
  font: 600 15px var(--body); text-decoration: none; cursor: pointer;
  border: 1px solid var(--line-3); background: transparent; color: var(--text);
}
.btn:hover { border-color: var(--text-4); color: var(--text); }
.btn-primary { background: var(--yellow); border-color: var(--yellow); color: var(--bg); }
.btn-primary:hover { background: var(--yellow-2); border-color: var(--yellow-2); color: var(--bg); }
.btn-dark { background: var(--bg); border-color: var(--bg); color: var(--text); }
.btn-dark:hover { color: var(--yellow); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 14px; font-weight: 500; border-radius: 22px; }
.pill {
  min-height: 44px; padding: 0 18px; border-radius: 22px;
  border: 1px solid var(--line-2); background: transparent; color: var(--text);
  font: 500 14px var(--body); cursor: pointer;
}
.pill[aria-pressed="true"] { background: var(--yellow); border-color: var(--yellow); color: var(--bg); }
.badge {
  display: inline-block; padding: 3px 8px; border-radius: 4px;
  font: 500 11px var(--mono); color: var(--bg); background: var(--yellow); letter-spacing: .02em;
}
.badge-signed { background: var(--red); }
.badge-sealed { background: var(--text); }
.badge-maxi { background: #C9B79C; }
.badge-sold { background: var(--text-4); }
.tag {
  display: inline-block; padding: 3px 8px; border: 1px solid var(--line-2); border-radius: 4px;
  font: 400 12px var(--mono); color: var(--text-2);
}
.tag-hl { color: var(--yellow); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(36, 24, 17, .96); backdrop-filter: blur(6px); z-index: 20; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.brand img { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--yellow); }
.brand-name { font-family: var(--display); font-size: 20px; letter-spacing: .02em; line-height: 1.1; }
.brand-name span { color: var(--yellow); }
.main-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 15px; }
.main-nav a { color: var(--text); text-decoration: none; padding: 10px 0; white-space: nowrap; }
.main-nav a:hover { color: var(--yellow); }
.header-tools { display: flex; align-items: center; gap: 8px; }
.lang-switch { display: flex; border: 1px solid var(--line-2); border-radius: 22px; padding: 2px; }
.lang-switch button {
  min-width: 44px; min-height: 40px; padding: 0 10px; border-radius: 20px; border: 0;
  background: transparent; color: var(--text); font: 500 13px var(--body); cursor: pointer;
}
.lang-switch button[aria-pressed="true"] { background: var(--yellow); color: var(--bg); font-weight: 600; }

/* Hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 72px; padding-bottom: 64px; }
.hero-copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-size: clamp(34px, 3.9vw, 56px); line-height: 1.02; overflow-wrap: break-word; }
.hero-lead { margin: 0; max-width: 540px; font-size: 18px; color: var(--text-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-visual { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.hero-stage { position: relative; height: 380px; }
.vinyl {
  border-radius: 50%;
  background: repeating-radial-gradient(circle, #160E09 0 2px, #2A1C12 2px 4px);
  display: flex; align-items: center; justify-content: center;
}
.vinyl::after { content: ""; width: 36%; aspect-ratio: 1; border-radius: 50%; background: var(--label, var(--red)); box-shadow: inset 0 0 0 calc(var(--hole, 6px)) transparent; }
.hero-stage .vinyl { position: absolute; top: 30px; right: 0; width: 340px; max-width: 78%; aspect-ratio: 1; }
.sleeve {
  background: var(--bg-3); border: 1px solid var(--line-2); overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; padding: 14px;
}
.hero-stage .sleeve { position: absolute; top: 0; left: 0; width: 360px; max-width: 80%; aspect-ratio: 1; padding: 20px; }
.sleeve img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sleeve .badge, .sleeve .ph { position: relative; z-index: 1; }
.ph { font: 400 12px var(--mono); color: var(--text-4); }
.featured { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; border-top: 1px solid var(--line); padding-top: 16px; text-decoration: none; color: var(--text); }
.featured:hover { color: var(--text); }
.featured:hover .featured-title { color: var(--yellow); }
.featured p { margin: 0; }
.featured-title { font-family: var(--display); font-size: 22px; }
.price-lg { font-family: var(--display); font-size: 26px; color: var(--yellow); }

/* Guarantees */
.guarantees { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.guarantees .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; padding-top: 32px; padding-bottom: 32px; }
.guarantee p { margin: 0; }
.guarantee .num { font: 400 13px var(--mono); color: var(--yellow); }
.guarantee .t { font-weight: 600; margin-top: 4px; }
.guarantee .d { font-size: 15px; color: var(--text-3); margin-top: 4px; }

/* Catalogue */
.section { padding-top: 72px; padding-bottom: 72px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; }
.section-head h2 { font-size: 40px; }
.section-head p { margin: 4px 0 0; color: var(--text-3); }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.toolbar label { font-size: 14px; color: var(--text-4); }
.search {
  min-height: 44px; min-width: 0; width: 260px; max-width: 100%; padding: 0 16px; border-radius: 22px;
  border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); font: 400 15px var(--body);
}
.search::placeholder { color: var(--text-4); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 28px; }
.card { display: flex; flex-direction: column; gap: 10px; }
.card-media { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); display: block; }
.card-media .vinyl { position: absolute; top: 10%; right: -18%; width: 78%; aspect-ratio: 1; }
.card-media .sleeve { position: absolute; top: 10%; left: 8%; width: 66%; aspect-ratio: 1; justify-content: flex-end; padding: 10px; }
.card-media.has-photo .vinyl, .card-media.has-photo .sleeve { display: none; }
.card-media > img.photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-media .badge { position: absolute; top: 10px; left: 10px; z-index: 2; }
.card h3 { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.3; }
.card h3 a { color: var(--text); text-decoration: none; }
.card h3 a:hover { color: var(--yellow); }
.card .artist { margin: 0; font-size: 14px; color: var(--text-3); }
.card .cond { margin: 0; font: 400 12px var(--mono); color: var(--text-2); }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; }
.card .price { margin: 0; font-family: var(--display); font-size: 20px; white-space: nowrap; }
.card-foot { flex-wrap: wrap; }
.card.is-sold .price { color: var(--text-4); text-decoration: line-through; }
.more { display: flex; justify-content: center; margin-top: 36px; }
.empty { padding: 40px 0; color: var(--text-3); }

/* Drop */
.drop { background: var(--yellow); color: var(--bg); }
.drop .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 40px; padding-top: 64px; padding-bottom: 64px; }
.drop .eyebrow { color: var(--bg); }
.drop h2 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1; }
.drop-copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.drop-copy p { margin: 0; max-width: 480px; font-size: 17px; }
.drop form { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.drop label { font-weight: 600; }
.drop .row { display: flex; flex-wrap: wrap; gap: 8px; }
.drop input {
  flex: 1 1 220px; min-width: 0; min-height: 48px; padding: 0 16px; border-radius: 24px;
  border: 2px solid var(--bg); background: #FFF1E3; color: var(--bg); font: 400 16px var(--body);
}
.drop small { font-size: 14px; }
.drop a { color: var(--bg); font-weight: 600; }
.form-msg { margin: 0; font-weight: 600; min-height: 1.5em; }

/* Grading */
.grading { display: flex; flex-wrap: wrap; gap: 48px; }
.grading-intro { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.grading-intro h2 { font-size: 40px; line-height: 1.05; }
.grading-intro p { margin: 0; color: var(--text-2); }
.table-box { flex: 2 1 560px; min-width: 0; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line-2); font: 500 12px var(--mono); color: var(--text-4); text-transform: uppercase; letter-spacing: .08em; }
td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
td.g { font-family: var(--mono); color: var(--yellow); white-space: nowrap; }

/* About */
.about { border-top: 1px solid var(--line); }
.about .wrap { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.about-photo { flex: 0 1 280px; aspect-ratio: 1; background: var(--bg-3); border: 1px solid var(--line-2); position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: 16px; }
.about-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about-copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.about-copy h2 { font-size: 40px; }
.about-copy p { margin: 0; color: var(--text-2); }
.about-copy .big { font-size: 18px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: #1B120C; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding-top: 40px; padding-bottom: 40px; font-size: 14px; color: var(--text-3); }
.site-footer p { margin: 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer nav a { color: var(--text-3); }
.footer-brand { font-family: var(--display); font-size: 18px; color: var(--text); }
.footer-brand span { color: var(--yellow); }

/* Record page */
.crumb { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--text-2); text-decoration: none; font-size: 15px; margin-bottom: 8px; }
.crumb:hover { color: var(--yellow); }
.record { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; padding-bottom: 80px; }
.gallery { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.stage { position: relative; aspect-ratio: 1; background: var(--bg-3); border: 1px solid var(--line-2); display: flex; align-items: center; justify-content: center; padding: 24px; overflow: hidden; }
.stage.is-ref { background: var(--bg-2); border: 1px solid var(--line-2); }
.stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--bg-2); }
.stage .stage-tag, .stage .stage-count { position: absolute; top: 14px; z-index: 2; }
.stage .stage-tag { left: 14px; padding: 4px 10px; border-radius: 4px; font: 500 12px var(--mono); color: var(--bg); background: var(--yellow); }
.stage.is-ref .stage-tag { background: var(--text); }
.stage .stage-count { right: 14px; font: 400 12px var(--mono); color: var(--text); background: rgba(30, 20, 13, .7); padding: 2px 8px; border-radius: 4px; }
.stage .stage-ph { font: 400 15px var(--mono); color: var(--text-2); text-align: center; }
.stage-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; border-radius: 22px; border: 1px solid var(--line-3); background: rgba(30, 20, 13, .8); color: var(--text); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.stage-nav.prev { left: 10px; }
.stage-nav.next { right: 10px; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 10px; }
.thumb { position: relative; aspect-ratio: 1; min-height: 44px; padding: 6px; display: flex; align-items: flex-end; text-align: left; cursor: pointer; background: var(--bg-3); border: 1px solid var(--line-2); color: var(--text-4); font: 400 10px/1.25 var(--mono); overflow: hidden; }
.thumb.ref { background: var(--bg-2); }
.thumb[aria-pressed="true"] { border: 2px solid var(--yellow); color: var(--text); }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-note { margin: 0; font-size: 14px; color: var(--text-3); }
.info { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.info-head { display: flex; flex-direction: column; gap: 6px; }
.info-head .badges { display: flex; gap: 6px; flex-wrap: wrap; }
.info-head .artist { margin: 8px 0 0; font-size: 18px; color: var(--text-2); }
.info-head h1 { font-size: clamp(34px, 4vw, 52px); line-height: 1; }
.info-head .press { margin: 4px 0 0; font: 400 14px var(--mono); color: var(--yellow); }
.info-head .extra { margin: 0; font: 400 13px var(--mono); color: var(--text-2); }
.price-xl { margin: 0; font-family: var(--display); font-size: 36px; }
.block-title { margin: 0 0 10px; font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-4); }
.grades { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.grade-box { border: 1px solid var(--line-2); padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.grade-box p { margin: 0; }
.grade-box .k { font-size: 14px; color: var(--text-4); }
.grade-box .v { font-family: var(--display); font-size: 28px; color: var(--yellow); }
.grade-box .d { font-size: 14px; color: var(--text-2); }
.seller-note { border: 1px solid var(--red); background: #2E1810; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.seller-note .h { display: flex; align-items: center; gap: 10px; }
.seller-note h2 { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.seller-note p { margin: 0; font-size: 15px; color: #F0E2D2; white-space: pre-line; }
.buy { display: flex; flex-wrap: wrap; gap: 12px; }
.buy .btn { flex: 1 1 200px; min-height: 52px; border-radius: 26px; }
.details { display: flex; flex-direction: column; }
.details .row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.details .row span:first-child { color: var(--text-2); }
.details .row span:last-child, .details .row a { font: 400 13px var(--mono); text-align: right; }
.details .row .todo { color: var(--text-4); }
.not-found { padding: 80px 0; }

/* Legal */
.legal { max-width: 760px; padding-top: 48px; padding-bottom: 80px; }
.legal h1 { font-size: 44px; margin-bottom: 24px; }
.legal h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 22px; margin: 40px 0 10px; }
.legal p, .legal li { color: var(--text-2); }
.legal .todo { color: var(--yellow); font-family: var(--mono); font-size: 14px; }

@media (max-width: 720px) {
  .main-nav { gap: 4px 16px; font-size: 14px; }
  .hero { padding-top: 40px; gap: 32px; }
  .hero-stage { height: 300px; }
  .section, .about .wrap { padding-top: 48px; padding-bottom: 48px; }
  .section-head h2, .grading-intro h2, .about-copy h2 { font-size: 32px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 20px; }
  .search { width: 100%; }
}

/* Hero photo, record placeholder */
.hero-stage.has-photo .ph { display: none; }
.stage .stage-vinyl { position: absolute; top: 14%; right: 6%; width: 62%; aspect-ratio: 1; }
.stage .stage-sleeve { position: absolute; top: 10%; left: 8%; width: 60%; aspect-ratio: 1; }
.stage .stage-ph { position: relative; z-index: 2; background: rgba(30, 20, 13, .8); padding: 6px 12px; border-radius: 4px; align-self: flex-end; }

/* Reservation list */
.cart-btn { gap: 10px; white-space: nowrap; }
.cart-count { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px; background: var(--yellow); color: var(--bg); font: 600 13px var(--body); }
.card [data-reserve][aria-pressed="true"], .buy [data-reserve][aria-pressed="true"] { border-color: var(--yellow); color: var(--yellow); }
.link-btn { background: none; border: 0; padding: 8px 0; min-height: 36px; color: var(--text-3); font: 400 13px var(--body); text-decoration: underline; cursor: pointer; }
.link-btn:hover { color: var(--red); }
body.no-scroll { overflow: hidden; }
#drawer[hidden] { display: none; }
.drawer-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); z-index: 40; }
.drawer-panel { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); z-index: 41; background: var(--bg-2); border-left: 1px solid var(--line-2); padding: 24px; display: flex; flex-direction: column; gap: 18px; overflow-y: auto; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.drawer-head h2 { margin: 0; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 22px; }
.drawer-close { width: 44px; height: 44px; border-radius: 22px; border: 1px solid var(--line-3); background: transparent; color: var(--text); font-size: 24px; line-height: 1; cursor: pointer; }
.drawer-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.drawer-item { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.drawer-item a { color: var(--text); font-weight: 600; text-decoration: none; }
.drawer-item a:hover { color: var(--yellow); }
.drawer-item p { margin: 2px 0 0; font-size: 13px; color: var(--text-3); }
.drawer-item-r { display: flex; flex-direction: column; align-items: flex-end; text-align: right; white-space: nowrap; }
.drawer-total { display: flex; justify-content: space-between; font-size: 17px; }
.drawer-total strong { font-family: var(--display); font-weight: 400; color: var(--yellow); }
.drawer-info { margin: 0; font-size: 14px; color: var(--text-2); }

@media (max-width: 560px) {
  .cart-label { display: none; }
  .brand-name { font-size: 16px; }
  .brand img { width: 44px; height: 44px; }
  .grades { grid-template-columns: 1fr 1fr; }
  .grade-box .v { font-size: 24px; }
}
.sleeve .badge { align-self: flex-start; }
.gallery { scroll-margin-top: 96px; }

/* Menu "Ordina per" */
.dd { position: relative; }
.dd-btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 14px;
  min-height: 44px; min-width: 240px; padding: 0 18px; border-radius: 22px;
  border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text);
  font: 500 14px var(--body); text-align: left; cursor: pointer;
}
.dd-btn:hover, .dd-btn[aria-expanded="true"] { border-color: var(--yellow); }
.dd-chev { flex-shrink: 0; color: var(--yellow); transition: transform .15s ease; }
.dd-btn[aria-expanded="true"] .dd-chev { transform: rotate(180deg); }
.dd-list {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 15; min-width: 100%;
  margin: 0; padding: 6px; list-style: none;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .55);
}
.dd-list[hidden] { display: none; }
.dd-list:focus { outline: none; }
.dd-list li {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 40px; padding: 0 14px; border-radius: 10px;
  font-size: 14px; color: var(--text); white-space: nowrap; cursor: pointer;
}
.dd-list li.is-active { background: var(--bg-3); }
.dd-list:focus-visible li.is-active { box-shadow: inset 0 0 0 2px var(--yellow); }
.dd-list li[aria-selected="true"] { color: var(--yellow); font-weight: 600; }
.dd-list li[aria-selected="true"]::after { content: "✓"; }
@media (max-width: 560px) {
  .dd-list { left: 0; right: auto; }
}

/* Header: logo e strumenti sempre sulla prima riga; il menu va a capo da solo sotto i 1180 px */
.brand { flex-shrink: 0; }
.header-tools { flex-shrink: 0; }
/* Riga 1: logo a sinistra, lingue e carrello a destra. Riga 2: menu sotto il nome del sito */
.site-header .wrap { row-gap: 2px; }
.main-nav { order: 3; width: 100%; padding-left: 64px; column-gap: 36px; }
@media (max-width: 720px) {
  .main-nav { padding-left: 0; column-gap: 24px; }
}
/* Spazio tra ricerca e "Ordina per" */
@media (min-width: 721px) { .toolbar .search { margin-right: 20px; } }

.cart-ico { flex-shrink: 0; color: var(--yellow); }
@media (max-width: 720px) {
  /* su telefono l'intestazione scorre con la pagina e il menu sta su una riga */
  .site-header { position: static; }
  .main-nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .main-nav::-webkit-scrollbar { display: none; }
}

.featured-artist { margin: 0; font-size: 17px; color: var(--text-2); }

/* Intestazione stabile al cambio lingua */
.main-nav a { display: inline-block; }
@media (min-width: 561px) { .cart-label { display: inline-block; text-align: left; } }
.header-tools { gap: 16px; }
.dd-btn { min-width: 0; }
.dd-val { display: inline-block; }

/* Hero: più spazio alla frase di apertura, "Pick of the week" più compatta */
.hero { gap: 48px; padding-top: 56px; padding-bottom: 56px; }
.hero-copy { flex: 1.7 1 520px; }
.hero h1 { font-size: clamp(32px, 3.3vw, 46px); line-height: 1.04; }
.hero-lead { font-size: 17px; max-width: 600px; }
.hero-visual { flex: 1 1 320px; max-width: 400px; gap: 16px; }
.hero-stage { height: 280px; }
.hero-stage .sleeve { width: 260px; max-width: 74%; padding: 16px; }
.hero-stage .vinyl { top: 24px; width: 240px; max-width: 70%; }
.featured { padding-top: 12px; }
.featured-title { font-size: 18px; }
.featured-artist { font-size: 15px; }
.price-lg { font-size: 22px; }
@media (max-width: 720px) {
  .hero-visual { max-width: none; }
  .hero-stage { height: 260px; }
}

/* Valuta */
.tool-group { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.tool-group + .tool-group { margin-left: 12px; }
@media (max-width: 720px) { .tool-group + .tool-group { margin-left: 0; } }
.fx-note { margin: -12px 0 24px; font-size: 13px; color: var(--text-4); }
.price-sub { margin: 4px 0 0; font-size: 13px; color: var(--text-4); }
#sort-label, #cur-label { text-align: right; }
/* "Pick of the week": il prezzo resta sulla stessa riga in ogni valuta, così l'altezza non cambia */
.featured { flex-wrap: nowrap; }
.featured > div { min-width: 0; }
.featured .price-lg { white-space: nowrap; }
@media (max-width: 560px) {
  .tool-group { flex-direction: column; align-items: flex-start; gap: 6px; }
  #sort-label, #cur-label { text-align: left; min-width: 0 !important; }
}
.featured .price-lg { text-align: right; flex-shrink: 0; }

/* Catalogo: titolo allineato alle tendine, conteggio solo per lettori di schermo, ricerca più corta */
#catalog .section-head { align-items: center; }
#count { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }
.search { width: 220px; font-size: 14px; }
.dd { display: flex; }
.dd-list { left: 0; right: auto; }
@media (max-width: 720px) { .search { width: 100%; } }

/* La valuta sta più vicina a "Ordina per" che alla ricerca */
@media (min-width: 721px) {
  .toolbar .search { margin-right: 32px; }
  .tool-group + .tool-group { margin-left: 4px; }
}

/* Link interni: la sezione si allinea al bordo inferiore dell'intestazione */
#catalog, #drop, #grading, #about, #main { scroll-margin-top: var(--header-h, 0px); }

/* Titoli del catalogo su una riga: 15 px, i più lunghi finiscono con "…" */
.card h3 { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Prezzi in arancione */
.card .price, .price-xl, .drawer-item-r strong { color: var(--yellow); }
.price-xl.muted { color: var(--text-3); }
/* Pick of the week: titolo su una riga */
.featured-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Pagine del catalogo */
.pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; }
.pager[hidden] { display: none; }
.pager .pill { min-width: 44px; padding: 0 14px; }
.pager-step { font-size: 18px; line-height: 1; }
.pager .pill:disabled { opacity: .35; cursor: default; }
.pager-gap { color: var(--text-4); padding: 0 4px; }
@media (max-width: 560px) {
  .featured { flex-wrap: wrap; }
  .featured > div { flex: 1 1 100%; }
  .featured .price-lg { text-align: left; }
}

/* ---------- animazioni ---------- */
@keyframes tmFadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes tmFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes tmFadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes tmDrawerIn { from { transform: translateX(100%); } to { transform: none; } }
@keyframes tmDrawerOut { from { transform: none; } to { transform: translateX(100%); } }
@keyframes tmPop { 0% { transform: scale(1); } 35% { transform: scale(.92); } 70% { transform: scale(1.06); } 100% { transform: scale(1); } }
@keyframes tmBump { 0% { transform: scale(1); } 40% { transform: scale(1.45); } 70% { transform: scale(.9); } 100% { transform: scale(1); } }
@keyframes tmBumpDown { 0% { transform: scale(1); } 40% { transform: scale(.7); } 100% { transform: scale(1); } }
@keyframes tmGlow { 0% { box-shadow: 0 0 0 0 rgba(255, 122, 26, .55); } 100% { box-shadow: 0 0 0 14px rgba(255, 122, 26, 0); } }
@keyframes tmDiscOut { from { transform: translateX(-38%); } to { transform: none; } }

/* pulsante "Aggiungi": piccolo rimbalzo al clic */
[data-reserve].pop { animation: tmPop .38s ease; }
/* contatore del carrello */
.cart-count.bump { animation: tmBump .45s cubic-bezier(.3, .7, .4, 1.4); }
.cart-count.bump-down { animation: tmBumpDown .3s ease; }
#cart-btn.glow { animation: tmGlow .6s ease-out; }

/* il disco che vola verso il carrello */
.fly { position: fixed; z-index: 60; pointer-events: none; will-change: transform; }
.fly-disc { width: 100%; height: 100%; box-shadow: 0 6px 18px rgba(0, 0, 0, .45); will-change: transform, opacity; }

/* avviso "Nel carrello" quando il carrello non è visibile (es. telefono a pagina scrollata) */
.toast {
  position: fixed; left: 50%; bottom: 20px; z-index: 55;
  display: flex; align-items: center; gap: 12px; max-width: calc(100vw - 32px);
  padding: 10px 18px 10px 10px; border-radius: 999px;
  background: var(--bg-3); color: var(--text); border: 1px solid var(--line-3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5); font: 400 14px var(--body); text-align: left; cursor: pointer;
  opacity: 0; transform: translate(-50%, 24px); pointer-events: none;
  transition: opacity .25s ease, transform .35s cubic-bezier(.2, .8, .2, 1);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast-disc { width: 34px; height: 34px; flex-shrink: 0; animation: tmSpin 2.4s linear infinite; }
.toast-txt { display: flex; flex-direction: column; min-width: 0; }
.toast-txt strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.toast-txt span { color: var(--yellow); font-size: 13px; }
@keyframes tmSpin { to { transform: rotate(360deg); } }

/* schede del catalogo: al passaggio del mouse la copertina si alza e il disco esce dalla busta */
.card-media { transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s ease, border-color .3s ease; }
.card-media > img.photo { transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.card-media .vinyl { transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.card-media .sleeve { transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
@media (hover: hover) {
  .card:hover .card-media { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(0, 0, 0, .4); border-color: var(--line-3); }
  .card:hover .card-media > img.photo { transform: scale(1.05); }
  .card:hover .card-media .vinyl { transform: translateX(12%); }
  .card:hover .card-media .sleeve { transform: translateX(-4%); }
}
.card-media:active { transform: translateY(-1px) scale(.985); transition-duration: .1s; }

/* carrello: entra da destra, lo sfondo sfuma */
#drawer.opening .drawer-panel { animation: tmDrawerIn .38s cubic-bezier(.2, .8, .2, 1); }
#drawer.opening .drawer-backdrop { animation: tmFadeIn .3s ease; }
#drawer.closing .drawer-panel { animation: tmDrawerOut .24s cubic-bezier(.5, 0, .8, .4) forwards; }
#drawer.closing .drawer-backdrop { animation: tmFadeOut .24s ease forwards; }
#drawer.opening .drawer-item { animation: tmFadeUp .4s both; }
#drawer.opening .drawer-item:nth-child(2) { animation-delay: .05s; }
#drawer.opening .drawer-item:nth-child(3) { animation-delay: .1s; }
#drawer.opening .drawer-item:nth-child(n+4) { animation-delay: .15s; }
.drawer-item.leaving { overflow: hidden; }

/* pagina del disco: entrata morbida */
.record.enter .gallery { animation: tmFadeUp .55s both; }
.record.enter .info > * { animation: tmFadeUp .5s both; }
.record.enter .info > :nth-child(2) { animation-delay: .06s; }
.record.enter .info > :nth-child(3) { animation-delay: .12s; }
.record.enter .info > :nth-child(4) { animation-delay: .18s; }
.record.enter .info > :nth-child(n+5) { animation-delay: .24s; }
.record.enter .stage-vinyl { animation: tmDiscOut .9s .25s cubic-bezier(.2, .8, .2, 1) both; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* drop del giovedì: titolo sempre su una riga (la grandezza la calcola app.js sulla lingua più lunga) */
.drop h2 { white-space: nowrap; }
.drop .row input { min-width: 0; }

/* drop spostato sotto i punti 01-02-03: fascia più compatta */
.drop .wrap { padding-top: 40px; padding-bottom: 40px; gap: 32px; }
.drop h2 { font-size: clamp(28px, 3.4vw, 42px); }
.drop-copy { gap: 10px; }
.drop-copy p { font-size: 16px; }
.drop form { gap: 6px; }
@media (max-width: 720px) { .drop .wrap { padding-top: 32px; padding-bottom: 32px; gap: 24px; } }

/* "Torna al catalogo": la pagina del disco sfuma via e il catalogo ricompare già alla posizione giusta */
body { transition: opacity .28s ease; }
html.tm-returning body { opacity: 0; transition: none; }
html.tm-leaving body { opacity: 0; transition: opacity .2s ease; }

/* paginazione su telefono: sta su una riga */
@media (max-width: 480px) {
  .pager { gap: 6px; }
  .pager-gap { padding: 0 1px; }
}

/* pagina del disco: l'etichetta "Immagine di riferimento · …" compare solo passando sopra la foto */
.stage .stage-tag { opacity: 0; transform: translateY(-3px); transition: opacity .18s ease, transform .18s ease; pointer-events: none; }
.stage:hover .stage-tag, .stage:focus-within .stage-tag { opacity: 1; transform: none; }

/* tabella dei voti: disco e copertina */
.grading table th:nth-child(2), .grading table th:nth-child(3) { width: 44%; }
.grading td { font-size: 14px; color: var(--text-2); line-height: 1.45; }
.grading td.g { font-size: 15px; color: var(--yellow); }
@media (max-width: 640px) {
  /* su telefono ogni voto diventa un blocco: voto, poi disco e copertina uno sotto l'altro */
  .grading thead { display: none; }
  .grading table, .grading tbody, .grading tr, .grading td { display: block; width: 100%; }
  .grading tr { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .grading td { border: 0; padding: 4px 0; }
  .grading td.g { padding-bottom: 6px; }
  .grading td[data-label]::before { content: attr(data-label); display: block; font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--text-4); margin-bottom: 2px; }
}

/* totale del carrello "a rullo" */
.odo { display: inline-flex; align-items: flex-start; vertical-align: top; line-height: 1.2em; height: 1.2em; }
.odo-c { display: inline-block; height: 1.2em; line-height: 1.2em; white-space: pre; }
.odo-d { display: inline-block; height: 1.2em; overflow: hidden; text-align: center; -webkit-mask-image: linear-gradient(transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(transparent, #000 8%, #000 92%, transparent); }
.odo-s { display: flex; flex-direction: column; will-change: transform; }
.odo-s > span { display: block; height: 1.2em; line-height: 1.2em; }
.drawer-total strong { line-height: 1.2em; min-height: 1.2em; }

/* carrello: la riga che scivola via non deve far comparire la barra di scorrimento orizzontale */
.drawer-panel { overflow-x: hidden; }

/* carrello: lista in alto (scorre se lunga), riepilogo con il totale fisso in fondo al pannello */
.drawer-list { flex: 1 1 auto; min-height: 96px; overflow-y: auto; overflow-x: hidden; }
.drawer-foot { flex-shrink: 0; margin-top: auto; display: flex; flex-direction: column; gap: 14px; padding-top: 18px; border-top: 1px solid var(--line-2); }

/* pagina del disco: commenti sulle condizioni, sotto i due riquadri dei voti */
.cond-notes { border: 1px solid var(--line-2); background: var(--bg-2); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.cond-notes-h { margin: 0; font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-4); }
.cond-notes dl { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.cond-note { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.cond-note dt { font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--yellow); }
.cond-note dd { margin: 0; font-size: 14px; line-height: 1.5; color: var(--text-2); white-space: pre-line; }
.cond-note + .cond-note { padding-top: 8px; border-top: 1px solid var(--line); }
.cond-notes #see-flaws { align-self: flex-start; }
@media (max-width: 480px) { .cond-note { grid-template-columns: 1fr; gap: 2px; } }
.cond-notes #see-flaws[hidden] { display: none; }

/* colonna sinistra della pagina del disco: foto e, sotto, i commenti sulle condizioni */
.rec-left { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.rec-left .gallery { flex: none; }
.record.enter .rec-left .cond-notes { animation: tmFadeUp .55s .1s both; }

/* ---------- animazioni (seconda serie) ---------- */
/* 1) vinile in alto: etichetta con foro e righe stampate, così si vede che gira (la rotazione la fa app.js) */
.hero-stage .vinyl { will-change: transform; }
.hero-stage .vinyl::after {
  background:
    radial-gradient(circle, #160E09 0 5%, transparent 5.5%),
    radial-gradient(circle at 50% 24%, rgba(30, 20, 13, .35) 0 6%, transparent 6.5%),
    linear-gradient(transparent 63%, rgba(30, 20, 13, .22) 63% 66%, transparent 66% 71%, rgba(30, 20, 13, .22) 71% 73.5%, transparent 73.5%),
    var(--label, var(--red));
}
/* 3) sezioni che compaiono scorrendo */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.rv.rv-in { opacity: 1; transform: none; }
/* 5) schede del catalogo a cascata */
.card.card-in { animation: tmFadeUp .45s cubic-bezier(.2, .8, .2, 1) both; }
/* 7) riflesso di luce sulle etichette Firmato e Sigillato */
.badge-signed, .badge-sealed { overflow: hidden; }
.badges .badge { position: relative; }
.badge-signed::after, .badge-sealed::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -70%; width: 45%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .6), transparent);
  transform: skewX(-20deg); animation: tmShine 4.8s ease-in-out infinite;
}
.card:nth-child(3n+2) .badge::after { animation-delay: 1.6s; }
.card:nth-child(3n) .badge::after { animation-delay: 3.1s; }
@keyframes tmShine { 0%, 72% { left: -70%; } 100% { left: 130%; } }
/* 9) barra del voto nella pagina del disco */
.g-bar { height: 4px; border-radius: 2px; background: var(--line-2); overflow: hidden; margin: 2px 0 6px; }
.g-bar span { display: block; height: 100%; width: 100%; border-radius: 2px; background: linear-gradient(90deg, var(--yellow-2), var(--yellow)); transform-origin: left; transform: scaleX(var(--v)); }
.record.enter .g-bar span { animation: tmBar 1s .35s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes tmBar { from { transform: scaleX(0); } to { transform: scaleX(var(--v)); } }
/* 10) onda sui pulsanti */
.ripple-box { position: fixed; z-index: 70; overflow: hidden; pointer-events: none; }
.ripple { position: absolute; border-radius: 50%; background: rgba(255, 122, 26, .28); transform: scale(0); opacity: 1; animation: tmRipple .6s ease-out forwards; }
.ripple.on-primary { background: rgba(255, 255, 255, .4); }
@keyframes tmRipple { to { transform: scale(1); opacity: 0; } }

/* cambio lingua: pillola che scivola + dissolvenza della pagina */
.lang-switch { position: relative; }
.lang-switch button { position: relative; z-index: 1; transition: color .25s ease; }
.lang-ind { position: absolute; top: 2px; bottom: 2px; left: 0; width: 0; border-radius: 20px; background: var(--yellow); z-index: 0; pointer-events: none; opacity: 0; }
.lang-switch.has-ind .lang-ind { opacity: 1; }
.lang-switch.has-ind button[aria-pressed="true"] { background: transparent; }
.lang-ind.anim { transition: transform .3s cubic-bezier(.3, .7, .2, 1), width .3s cubic-bezier(.3, .7, .2, 1); }
main, .site-footer, .main-nav, .cart-label { transition: opacity .18s ease; }
html.lang-out main, html.lang-out .site-footer, html.lang-out .main-nav, html.lang-out .cart-label { opacity: .06; transition: opacity .12s ease; }

/* Chi sono: foto orizzontale della collezione */
.about-photo { flex: 0 1 480px; aspect-ratio: 4 / 3; padding: 0; }
.about-photo img { object-position: 50% 50%; }
@media (max-width: 720px) { .about-photo { flex: 1 1 100%; } }

/* ---------- telefono (iPhone e Android) ---------- */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { overflow-x: clip; }               /* nessuno scorrimento orizzontale accidentale */
a, button, [role="option"] { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.hero-stage { overflow: hidden; }              /* il vinile che gira non deve sporgere dallo schermo */
.search { -webkit-appearance: none; appearance: none; }
/* carrello: alto quanto lo schermo visibile (anche con la barra del browser), niente rimbalzi della pagina sotto */
.drawer-panel { overscroll-behavior: contain; padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
.drawer-list { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
@supports (height: 100dvh) { .drawer-panel { bottom: auto; height: 100dvh; } }
.toast { bottom: calc(20px + env(safe-area-inset-bottom, 0px)); }
/* telefono in orizzontale: l'intestazione non resta fissa, così c'è spazio per la pagina */
@media (max-height: 500px) and (orientation: landscape) { .site-header { position: static; } }
@media (max-width: 720px) {
  /* campi da 16px: iPhone non fa lo zoom quando li tocchi */
  .search, .drop input { font-size: 16px; }
  /* link del piè di pagina più facili da toccare */
  .site-footer nav { gap: 0 20px; }
  .site-footer nav a { display: inline-block; padding: 10px 0; }
}
@media (max-width: 560px) {
  /* menu: due colonne, tutte le voci visibili in ogni lingua */
  .main-nav { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; row-gap: 0; overflow: visible; padding-left: 0; }
  .main-nav a { padding: 9px 0; overflow: hidden; text-overflow: ellipsis; }
  /* titoli delle schede su due righe invece di essere tagliati */
  .card h3 { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}
@media (max-width: 370px) {
  .lang-switch button { min-width: 40px; padding: 0 8px; }
  .site-header .wrap { column-gap: 12px; }
}

/* riquadri delle condizioni (tutti i dischi): compatti, testo più piccolo */
.grades { gap: 10px; }
.grade-box, .grade-box.grade-sealed { gap: 2px; padding: 10px 14px 12px; }
.grade-box .k { font-size: 13px; }
.grade-box .v, .grade-sealed .v { font-size: 22px; line-height: 1.15; }
.grade-box .g-bar { margin: 4px 0 6px; }
.grade-box .d { font-size: 13px; line-height: 1.4; }
@media (max-width: 720px) { .grade-box .v { font-size: 20px; } }

/* pagina del disco: "Dettagli della stampa" più staccato dal resto */
.info .details-block { margin-top: 64px; }
@media (max-width: 720px) { .info .details-block { margin-top: 40px; } }

/* =====================================================================
   TELEFONO (fino a 600 px: tutti gli iPhone in verticale) – versione compatta.
   Tutto qui dentro vale solo sul telefono: il layout da computer non cambia.
   ===================================================================== */
.grade-tabs { display: none; } /* schede Disco/Copertina di "How we grade": solo sul telefono */
@media (max-width: 600px) {
  .wrap { padding-left: 16px; padding-right: 16px; }

  /* --- intestazione: resta visibile scorrendo (il carrello è sempre a portata di dito) --- */
  .site-header { position: sticky; top: 0; }
  .site-header .wrap { flex-wrap: wrap; column-gap: 10px; row-gap: 0; padding-top: 8px; padding-bottom: 2px; }
  .brand { gap: 8px; }
  .brand img { width: 34px; height: 34px; }
  .brand-name { font-size: 12px; line-height: 1.12; }
  .brand-name span { display: block; }
  /* lingue e carrello: piccoli, in alto a destra, staccati tra loro */
  .header-tools { gap: 14px; margin-left: auto; }
  .lang-switch { padding: 2px; border-radius: 13px; }
  .lang-switch button { min-width: 24px; min-height: 21px; padding: 0 5px; border-radius: 11px; font-size: 10px; }
  .lang-ind { border-radius: 11px; }
  .cart-btn.btn-sm { min-height: 25px; padding: 0 7px; gap: 4px; border-radius: 13px; }
  .cart-ico { width: 13px; height: 13px; }
  .cart-count { min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; font-size: 10px; }
  /* menu: le 4 voci su una riga, circa 1 cm sotto il logo */
  .main-nav { display: flex; flex-wrap: nowrap; justify-content: space-between; column-gap: 10px; overflow: visible; padding-left: 0; margin-top: 22px; font-size: 12px; }
  .main-nav a { padding: 6px 0; overflow: visible; }

  /* --- apertura: scritta arancione su una riga; titolo e testo a sinistra, pezzo della settimana a destra --- */
  .hero {
    display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
    grid-template-areas: "eye eye" "h1 vis" "lead vis" "act act";
    grid-template-rows: auto auto 1fr auto;
    column-gap: 30px; row-gap: 7px; align-items: start;
    padding-top: 16px; padding-bottom: 26px;
  }
  .hero-copy { display: contents; }
  .hero .eyebrow { grid-area: eye; font-size: 9px; letter-spacing: .06em; white-space: nowrap; }
  .hero h1 { grid-area: h1; font-size: 13.5px; line-height: 1.1; overflow-wrap: normal; word-break: normal; -webkit-hyphens: manual; hyphens: manual; } /* va a capo solo tra parole intere */
  .hero-lead { grid-area: lead; font-size: 8.5px; line-height: 1.45; color: var(--text-3); }
  .hero-actions { grid-area: act; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
  .hero-actions .btn { min-height: 30px; padding: 0 8px; border-radius: 15px; font-size: 10.5px; line-height: 1.15; text-align: center; }
  .hero-visual { grid-area: vis; max-width: none; gap: 8px; }
  /* immagine più piccola, allineata a destra, bordo arancione su tutti i lati e vinile intero */
  .hero-stage { width: 140px; height: 114px; margin-left: auto; }
  .hero-stage .sleeve { top: 0; left: 0; width: 112px; max-width: none; padding: 7px; border: 0.5px solid var(--yellow); }
  .hero-stage .vinyl { top: 8px; left: auto; right: 0; width: 97px; max-width: none; }
  .hero-stage .badge { font-size: 8px; padding: 2px 4px; }
  .hero-stage .ph { font-size: 8px; line-height: 1.2; }
  .featured { flex-wrap: wrap; gap: 3px; padding-top: 6px; }
  .featured > div { flex: 1 1 100%; }
  .featured .eyebrow { font-size: 7.5px; letter-spacing: .08em; }
  .featured-artist { font-size: 8.5px; line-height: 1.3; }
  #featured-cond { font-size: 7.5px !important; line-height: 1.35; }
  .featured .price-lg { font-size: 11px; text-align: left; }

  /* --- About: titolo e testi come in "How we grade" --- */
  .about .wrap { gap: 18px; padding-top: 32px; padding-bottom: 36px; }
  .about-copy { gap: 8px; }
  .about-copy h2 { font-size: 24px; }
  .about-copy p, .about-copy .big { font-size: 12.5px; line-height: 1.45; }

  /* --- punti 01-02-03: fascia bassa, uno accanto all'altro --- */
  .guarantees .wrap { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding-top: 12px; padding-bottom: 12px; }
  .guarantee .num { font-size: 9.5px; line-height: 1.3; }
  .guarantee .t { font-size: 11px; line-height: 1.25; margin-top: 1px; }
  .guarantee .d { font-size: 9.5px; line-height: 1.35; margin-top: 3px; }

  /* --- catalogo --- */
  #catalog.section { padding-top: 28px; padding-bottom: 40px; }
  .section-head { gap: 10px; margin-bottom: 14px; }
  .section-head h2 { font-size: 24px; }
  /* ricerca, valuta e ordinamento sulla stessa riga */
  .toolbar { flex: 1 1 100%; min-width: 0; flex-wrap: nowrap; gap: 6px; }
  .search { flex: 1 1 0; min-width: 0; width: auto; min-height: 32px; height: 32px; border-radius: 16px; padding: 0 12px; }
  .search::placeholder { font-size: 11.5px; }
  .tool-group { flex: none; flex-direction: row; gap: 0; }
  .toolbar .tool-group label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .toolbar .dd { min-width: 0 !important; }
  .dd-btn { min-height: 32px; height: 32px; padding: 0 9px; gap: 5px; border-radius: 16px; font-size: 12px; }
  .dd-chev { width: 10px; height: 7px; }
  #sort { width: 134px; }
  #sort .dd-val { flex: 1 1 auto; min-width: 0 !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #sort-list { left: auto; right: 0; }
  .dd-list li { min-height: 34px; font-size: 13px; }
  /* filtri: pillole aderenti alla parola, staccate dalla riga sopra */
  .filters { gap: 6px; margin-top: 14px; margin-bottom: 18px; }
  .filters .pill { min-height: 0; height: 24px; padding: 0 10px; border-radius: 12px; font-size: 11.5px; line-height: 22px; }
  .fx-note { margin: -8px 0 12px; font-size: 9.5px; line-height: 1.35; }
  /* 3 dischi per riga, piccoli e ben distanziati */
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 14px; row-gap: 28px; }
  .card { gap: 5px; }
  .card-media .badge { top: 5px; left: 5px; padding: 2px 5px; font-size: 8.5px; }
  .card-media .sleeve { padding: 5px; }
  .card-media .ph { font-size: 8px; line-height: 1.2; }
  .card h3 { font-size: 12px; line-height: 1.25; }
  .card .artist { font-size: 8.5px; line-height: 1.35; margin-top: 2px; }
  .card .cond { font-size: 7.5px; line-height: 1.4; }
  .card-foot { flex-direction: column; align-items: stretch; gap: 6px; }
  .card .price { font-size: 13px; }
  .card .btn-sm {
    display: block; width: 100%; min-height: 0; height: 28px; padding: 0 6px; border-radius: 14px;
    font-size: 10.5px; line-height: 26px; text-align: center;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .more { margin-top: 28px; }
  .pager { gap: 5px; }
  .pager .pill { min-height: 34px; min-width: 34px; padding: 0 10px; border-radius: 17px; font-size: 13px; }

  /* --- drop del giovedì: scritte più piccole, email e pulsante sulla stessa riga --- */
  .drop .wrap { padding-top: 26px; padding-bottom: 26px; gap: 16px; }
  .drop-copy, .drop form { flex: 1 1 100%; }
  .drop-copy { gap: 6px; }
  .drop .eyebrow { font-size: 10.5px; letter-spacing: .08em; }
  .drop h2 { font-size: 22px; }
  .drop-copy p { font-size: 13.5px; line-height: 1.45; }
  .drop form { gap: 6px; }
  .drop label { font-size: 13px; }
  .drop .row { flex-wrap: nowrap; gap: 6px; }
  .drop input { flex: 1 1 auto; min-height: 40px; padding: 0 14px; border-radius: 20px; }
  .drop .btn-dark { flex: none; min-height: 40px; padding: 0 14px; border-radius: 20px; font-size: 13px; white-space: nowrap; }
  .drop small { font-size: 12px; white-space: nowrap; }
  .form-msg { font-size: 13px; }

  /* --- How we grade: compatto, una tabella alla volta (Disco o Copertina) --- */
  .grading.section { padding-top: 32px; padding-bottom: 36px; gap: 16px; }
  .grading-intro { gap: 8px; }
  .grading-intro h2 { font-size: 24px; }
  .grading-intro p { font-size: 12.5px; line-height: 1.45; }
  .grade-tabs { display: flex; gap: 6px; margin-bottom: 8px; }
  .grade-tabs .pill { height: 28px; min-height: 0; padding: 0 14px; border-radius: 14px; font-size: 12px; line-height: 26px; }
  .grading tr { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 10px; padding: 8px 0; }
  .grading td, .grading td.g { width: auto; padding: 0; }
  .grading td.g { font-size: 12px; }
  .grading td { font-size: 11.5px; line-height: 1.4; }
  .grading td[data-label]::before { display: none; }
  #grading:not(.show-sleeve) td:nth-child(3), #grading.show-sleeve td:nth-child(2) { display: none; }

  /* --- pagina del disco ---
     in alto: foto a sinistra; a destra titolo, prezzo e riquadri delle condizioni, allineati al fondo della foto.
     sotto, a tutta larghezza: commenti, pulsanti su una riga, video, dettagli della stampa */
  body[data-page="record"] #main { padding-top: 26px !important; } /* "Torna al catalogo" un po' staccato dal menu */
  .crumb { min-height: 32px; font-size: 13px; margin-bottom: 4px; }
  .record {
    display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); column-gap: 12px; row-gap: 0;
    grid-template-rows: auto auto 1fr;
    grid-template-areas: "stage head" "stage price" "stage grades" "thumbs thumbs" "pnote pnote" "notes notes" "buy buy" "video video" "details details";
    padding-bottom: 40px;
  }
  .rec-left, .info, .gallery { display: contents; }
  .stage { grid-area: stage; align-self: stretch; aspect-ratio: auto; min-width: 0; padding: 8px; }
  .stage::before { content: ""; width: 0; padding-top: 100%; } /* almeno quadrata, poi alta quanto la colonna di destra */
  .thumbs { grid-area: thumbs; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; margin-top: 8px; }
  .thumb { padding: 2px; min-height: 0; }
  .photo-note { grid-area: pnote; margin-top: 8px; font-size: 10px; line-height: 1.4; }
  .stage .stage-ph { font-size: 9px; padding: 3px 6px; }
  .stage .stage-tag { top: 6px; left: 6px; font-size: 9px; padding: 2px 6px; }
  .stage .stage-count { top: 6px; right: 6px; font-size: 9px; }
  .stage-nav { width: 28px; height: 28px; border-radius: 14px; }
  .stage-nav.prev { left: 4px; } .stage-nav.next { right: 4px; }
  /* titolo, stampa e prezzo più piccoli: lasciano spazio alla foto */
  .info-head { grid-area: head; gap: 2px; }
  .info-head .badges .badge { font-size: 8px; padding: 1px 4px; }
  .info-head .artist { margin: 0; font-size: 10px; line-height: 1.3; }
  .info-head h1 { font-size: 13px; line-height: 1.08; }
  .info-head .press { margin: 1px 0 0; font-size: 8.5px; line-height: 1.35; }
  .info-head .extra { font-size: 8.5px; line-height: 1.35; }
  .price-block { grid-area: price; margin-top: 6px; }
  .price-xl { font-size: 15px; line-height: 1.15; }
  .price-sub { font-size: 8.5px; margin-top: 1px; line-height: 1.3; }
  .price-sub[style*="hidden"] { display: none; } /* la riga "si paga in CHF" occupa spazio solo quando si vedono gli euro */
  /* riquadri delle condizioni: uguali tra loro e appoggiati al fondo della foto */
  .grades-block { grid-area: grades; align-self: end; margin-top: 6px; }
  .block-title { font-size: 8.5px; margin-bottom: 3px; }
  .grades-block .block-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } /* "Condizioni": le etichette Disco/Copertina bastano */
  .grades { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; align-items: stretch; }
  /* riquadri delle condizioni: piccoli e alti uguali su ogni disco (etichetta, voto, barra).
     Le descrizioni dei voti sul telefono stanno solo in "How we grade" */
  .grade-box, .grade-box.grade-sealed { height: 40px; padding: 4px 6px; gap: 0; overflow: hidden; }
  .grade-box .k { font-size: 7.5px; line-height: 1.25; }
  .grade-box .v, .grade-sealed .v { font-size: 11px; line-height: 1.15; white-space: nowrap; }
  .grade-box .g-bar { height: 2px; margin: 3px 0 0; }
  .grade-box .d { display: none; }
  /* sigillato: riquadro identico agli altri (metà larghezza, 40 px), senza frase */
  .grades .grade-sealed {
    grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto auto 1fr;
    column-gap: 5px; height: 40px; padding: 0; border: 0; background: none;
  }
  .grade-sealed::before { content: ""; grid-column: 1; grid-row: 1 / 4; border: 1px solid var(--line-2); }
  .grade-sealed .k { grid-column: 1; grid-row: 1; padding: 4px 6px 0; }
  .grade-sealed .v { grid-column: 1; grid-row: 2; padding: 0 6px; }
  .grade-sealed .g-bar { grid-column: 1; grid-row: 3; align-self: start; margin: 3px 6px 0; }
  .grade-sealed .d { display: none; } /* come negli altri riquadri: nessuna frase sul telefono */
  /* commenti sulle condizioni a tutta larghezza */
  .cond-notes { grid-area: notes; margin-top: 12px; padding: 8px 10px; gap: 6px; }
  .cond-notes-h { font-size: 8.5px; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .cond-note { grid-template-columns: 70px minmax(0, 1fr); gap: 8px; }
  .cond-note dt { font-size: 9px; }
  .cond-note dd { font-size: 10.5px; line-height: 1.4; }
  .cond-notes .btn-sm { min-height: 28px; padding: 0 10px; font-size: 11px; }
  /* "Prenota via email" e "Aggiungi al carrello" sulla stessa riga, il video sotto "Prenota" */
  .buy { grid-area: buy; flex-wrap: nowrap; gap: 8px; margin-top: 24px; }
  .buy .btn { flex: 1 1 0; min-width: 0; min-height: 34px; padding: 0 8px; border-radius: 17px; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .info > .muted { grid-area: video; margin: 16px 0 0; font-size: 11px; }
  /* dettagli della stampa: a tutta larghezza, tutto allineato a sinistra */
  .info .details-block { grid-area: details; margin-top: 64px; } /* circa un dito e mezzo sotto il link del video */
  .details .row { display: grid; grid-template-columns: 42% minmax(0, 1fr); gap: 8px; padding: 5px 0; font-size: 10.5px; }
  .details .row span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .details .row span:last-child, .details .row a { font-size: 10px; text-align: left; overflow-wrap: anywhere; }

  /* foto della pagina del disco: si tocca per ingrandirla */
  .stage img { cursor: zoom-in; }

  /* --- piè di pagina: un link per riga, righe vicine --- */
  .site-footer .wrap { flex-direction: column; align-items: flex-start; gap: 14px; padding-top: 28px; padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)); }
  .site-footer nav { flex-direction: column; flex-wrap: nowrap; gap: 0; }
  .site-footer nav a { display: block; padding: 4px 0; font-size: 13px; }
}

/* foto a schermo intero (si apre solo sul telefono, toccando la foto del disco) */
.zoom {
  position: fixed; inset: 0; z-index: 80; background: rgba(15, 10, 7, .97);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px);
  animation: tmFadeIn .2s ease;
}
.zoom-img { width: 100%; max-height: calc(100vh - 140px); object-fit: contain; }
@supports (height: 100dvh) { .zoom-img { max-height: calc(100dvh - 140px); } }
.zoom-cap { margin: 12px 16px 0; font: 400 11px var(--mono); color: var(--text-2); text-align: center; }
.zoom-close, .zoom-nav {
  position: absolute; width: 40px; height: 40px; border-radius: 20px; border: 1px solid var(--line-3);
  background: rgba(30, 20, 13, .85); color: var(--text); display: flex; align-items: center; justify-content: center;
  font-size: 24px; line-height: 1; cursor: pointer;
}
.zoom-close { top: calc(12px + env(safe-area-inset-top, 0px)); right: 12px; }
.zoom-nav { top: 50%; transform: translateY(-50%); }
.zoom-nav.prev { left: 8px; }
.zoom-nav.next { right: 8px; }
