/* ===== Gioielleria Papasidero · stile negozio ===== */
@font-face { font-family: 'Cormorant'; src: url(/fonts/cormorant-garamond-latin-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Cormorant'; src: url(/fonts/cormorant-garamond-latin-500-normal.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Cormorant'; src: url(/fonts/cormorant-garamond-latin-600-normal.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Cormorant'; src: url(/fonts/cormorant-garamond-latin-400-italic.woff2) format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Cormorant'; src: url(/fonts/cormorant-garamond-latin-500-italic.woff2) format('woff2'); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: 'Inter'; src: url(/fonts/inter-latin-300-normal.woff2) format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Inter'; src: url(/fonts/inter-latin-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url(/fonts/inter-latin-500-normal.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Inter'; src: url(/fonts/inter-latin-600-normal.woff2) format('woff2'); font-weight: 600; font-display: swap; }

:root {
  --black: #0b0b0b;
  --ink: #111;
  --char: #161616;
  --line-d: #2a2a2a;
  --gold: #b8892b;
  --gold-l: #d6ad55;
  --gold-d: #96701f;
  --white: #fff;
  --paper: #f7f6f3;
  --line: #e7e4de;
  --text: #1c1c1c;
  --muted: #8a8a8a;
  --muted-d: #9b9b9b;
  --ok: #1f9d55;
  --bad: #c0392b;
  --serif: 'Cormorant', 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --hdr: 72px;
  --wrap: 1240px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-weight: 400; font-size: 15px; line-height: 1.6; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: #000; padding: 8px 14px; z-index: 999; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
#main { min-height: 70vh; outline: none; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.kicker { font-size: 10.5px; letter-spacing: .38em; text-transform: uppercase; color: var(--gold); font-weight: 500; }
.title { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 4.2vw, 46px); line-height: 1.1; margin: 8px 0 0; letter-spacing: .01em; }
.sec { padding: clamp(64px, 9vw, 110px) 0; }
.sec-head { text-align: center; margin-bottom: clamp(36px, 5vw, 56px); }
.dark { background: var(--black); color: var(--white); }
.paper { background: var(--paper); }

/* bottoni */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 26px; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; font-weight: 500; border: 1px solid transparent; transition: background .25s, color .25s, border-color .25s, transform .2s; white-space: nowrap; }
.btn svg { width: 16px; height: 16px; }
.btn-gold { background: var(--gold); color: #0b0b0b; }
.btn-gold:hover { background: var(--gold-l); }
.btn-black { background: var(--ink); color: #fff; }
.btn-black:hover { background: var(--gold); color: #0b0b0b; }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-line.light { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-line.light:hover { background: #fff; color: #0b0b0b; }
.btn-white { background: #fff; color: #0b0b0b; }
.btn-white:hover { background: var(--ink); color: #fff; }
.btn-ok { background: var(--ok) !important; color: #fff !important; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn.block { width: 100%; }
.link-gold { color: var(--gold); border-bottom: 1px solid currentColor; }

/* barra avviso */
.notice { background: var(--gold); color: #0b0b0b; text-align: center; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; padding: 8px 16px; font-weight: 500; }

/* header */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(17,17,17,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #fff; border-bottom: 1px solid rgba(255,255,255,.05); }
.hdr-in { width: min(var(--wrap), 100% - 32px); margin: 0 auto; height: var(--hdr); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.logo { display: inline-flex; flex-direction: column; line-height: 1; justify-self: start; }
.logo small { font-size: 8.5px; letter-spacing: .5em; color: var(--gold); text-transform: uppercase; margin-bottom: 4px; padding-left: 1px; }
.logo span { font-family: var(--serif); font-size: 21px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; }
.nav { display: flex; gap: clamp(22px, 3vw, 44px); }
.nav a { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: #cfcfcf; padding: 8px 0; position: relative; transition: color .2s; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform .3s var(--ease); }
.nav a:hover, .nav a.on { color: var(--gold-l); }
.nav a.on::after { transform: scaleX(1); }
.tools { display: flex; gap: 4px; justify-self: end; }
.icon-btn { position: relative; width: 40px; height: 40px; display: inline-grid; place-items: center; color: #e8e8e8; border-radius: 50%; transition: color .2s, background .2s; }
.icon-btn:hover { color: var(--gold-l); }
.icon-btn svg { width: 19px; height: 19px; }
.badge { position: absolute; top: 3px; right: 2px; min-width: 16px; height: 16px; border-radius: 8px; background: var(--gold); color: #0b0b0b; font-size: 9.5px; font-weight: 600; display: grid; place-items: center; padding: 0 4px; font-style: normal; }
.badge.pop { animation: pop .45s var(--ease); }
@keyframes pop { 40% { transform: scale(1.45); } }
.burger { display: none; }

.drawer { position: fixed; inset: calc(var(--hdr)) 0 0; z-index: 49; background: rgba(11,11,11,.98); color: #fff; padding: 24px; overflow: auto; animation: fade .25s; }
.drawer nav { display: flex; flex-direction: column; }
.drawer a { font-family: var(--serif); font-size: 26px; padding: 10px 0; border-bottom: 1px solid var(--line-d); }
.drawer-cats { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--line-d); }
.drawer-cats a { font-family: var(--sans); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; border: 1px solid var(--line-d); padding: 8px 12px; }
@keyframes fade { from { opacity: 0; } }

/* ricerca */
.search-ov { position: fixed; inset: 0; z-index: 80; background: rgba(8,8,8,.96); color: #fff; padding: clamp(24px, 8vh, 90px) 16px 24px; overflow: auto; animation: fade .2s; }
.search-box { width: min(760px, 100%); margin: 0 auto; display: flex; align-items: center; gap: 14px; border-bottom: 1px solid #444; padding-bottom: 10px; }
.search-box > svg { width: 24px; height: 24px; color: var(--gold); }
.search-box input { flex: 1; background: none; border: 0; outline: none; font-family: var(--serif); font-size: clamp(24px, 4vw, 36px); color: #fff; min-width: 0; }
.search-res { width: min(760px, 100%); margin: 24px auto 0; display: grid; gap: 4px; }
.search-res a { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 8px; border-radius: 4px; }
.search-res a:hover { background: #1b1b1b; }
.search-res .thumb { width: 56px; height: 56px; }
.search-res b { font-weight: 400; }
.search-res small { color: var(--muted-d); display: block; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; }

/* ===== HERO ===== */
.hero { position: relative; min-height: calc(100svh - var(--hdr)); background: radial-gradient(120% 90% at 70% 45%, #1d1a14 0%, #0b0b0b 55%, #070707 100%); color: #fff; overflow: hidden; display: flex; align-items: center; }
.hero canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,8,8,.88) 0%, rgba(8,8,8,.45) 42%, rgba(8,8,8,0) 70%); pointer-events: none; }
.hero-in { position: relative; z-index: 2; width: min(var(--wrap), 100% - 32px); margin: 0 auto; padding: 60px 0 90px; }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(54px, 8.6vw, 104px); line-height: 1.02; margin: 26px 0 26px; letter-spacing: .005em; }
.hero h1 span { display: block; opacity: 0; transform: translateY(26px); animation: rise 1.1s var(--ease) forwards; }
.hero h1 span:nth-child(2) { color: var(--gold); font-style: italic; animation-delay: .15s; }
.hero h1 span:nth-child(3) { animation-delay: .3s; }
.hero .kicker, .hero p, .hero .hero-btns { opacity: 0; animation: rise 1s var(--ease) .45s forwards; }
.hero p { max-width: 430px; color: #a9a9a9; font-weight: 300; font-size: 15px; margin: 0 0 34px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
@keyframes rise { to { opacity: 1; transform: none; } }
.scroll-cue { position: absolute; z-index: 2; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 9px; letter-spacing: .4em; color: #777; text-transform: uppercase; }
.scroll-cue i { width: 1px; height: 34px; background: linear-gradient(var(--gold), transparent); animation: cue 2s infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* collezioni */
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cat-tile { position: relative; aspect-ratio: 5/4; overflow: hidden; background: #141414; color: #fff; display: block; }
.cat-tile .art, .cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.cat-tile:hover .art, .cat-tile:hover img { transform: scale(1.06); }
.cat-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 35%, rgba(0,0,0,.82)); }
.cat-tile div { position: absolute; z-index: 1; left: 24px; right: 24px; bottom: 22px; display: flex; justify-content: space-between; align-items: end; gap: 10px; }
.cat-tile h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2.6vw, 32px); margin: 0; line-height: 1; }
.cat-tile small { font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-l); white-space: nowrap; }

/* card prodotto */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 28px); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.card { position: relative; display: flex; flex-direction: column; animation: fade .5s; }
.card .media { position: relative; aspect-ratio: 1; background: #0e0e0e; overflow: hidden; display: block; }
.card .media img, .card .media .art { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), opacity .5s; }
.card .media img.alt { position: absolute; inset: 0; opacity: 0; }
.card:hover .media img:first-child, .card:hover .media .art { transform: scale(1.05); }
.card:hover .media img.alt { opacity: 1; }
.card .tag { position: absolute; top: 12px; left: 12px; z-index: 2; background: rgba(0,0,0,.6); color: #fff; font-size: 10px; letter-spacing: .08em; padding: 4px 8px; }
.card .tag.gold { background: var(--gold); color: #0b0b0b; }
.card .quick { position: absolute; top: 12px; right: 12px; z-index: 2; display: flex; flex-direction: column; gap: 8px; opacity: 0; transform: translateX(8px); transition: .3s var(--ease); }
.card:hover .quick, .card:focus-within .quick { opacity: 1; transform: none; }
.round { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.92); color: #111; display: grid; place-items: center; transition: background .2s, color .2s; box-shadow: 0 2px 10px rgba(0,0,0,.15); }
.round svg { width: 16px; height: 16px; }
.round:hover, .round.on { background: var(--gold); color: #0b0b0b; }
.round.on svg { fill: currentColor; }
.card .info { padding-top: 14px; }
.card .cat { font-size: 9.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }
.card h3 { font-size: 13.5px; font-weight: 500; margin: 4px 0 6px; line-height: 1.35; transition: color .2s; }
.card:hover h3 { color: var(--gold); }
.price { display: flex; align-items: baseline; gap: 8px; font-weight: 600; font-size: 14px; }
.price s { color: var(--muted); font-weight: 400; font-size: 12px; }
.soldout { font-size: 11px; color: var(--bad); letter-spacing: .1em; text-transform: uppercase; }
.center { text-align: center; }
.mt { margin-top: clamp(36px, 5vw, 56px); }
.empty { text-align: center; padding: 60px 16px; color: var(--muted); }
.empty h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; color: var(--text); margin: 0 0 8px; }

/* perché noi */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; text-align: center; }
.features .ic { width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%; border: 1px solid #e8dcc2; background: #fff; display: grid; place-items: center; color: var(--gold); }
.features h3 { font-family: var(--serif); font-weight: 500; font-size: 21px; margin: 0 0 6px; }
.features p { margin: 0 auto; font-size: 12.5px; color: var(--muted); max-width: 230px; }

/* recensioni */
.stars { display: inline-flex; gap: 3px; color: var(--gold); vertical-align: middle; }
.stars svg { width: 15px; height: 15px; fill: currentColor; stroke: none; }
.rating { margin-top: 14px; display: flex; align-items: center; justify-content: center; gap: 10px; color: #8d8d8d; font-size: 13px; }
.reviews { max-width: 760px; margin: 0 auto; text-align: center; position: relative; }
.review { display: none; animation: fade .6s; }
.review.on { display: block; }
.review blockquote { font-family: var(--serif); font-style: italic; font-size: clamp(21px, 2.6vw, 28px); line-height: 1.45; margin: 18px 0 18px; color: #ececec; }
.review cite { font-style: normal; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.rev-nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 34px; }
.rev-nav button.arrow { width: 38px; height: 38px; border-radius: 50%; border: 1px solid #333; display: grid; place-items: center; color: #bbb; transition: .2s; }
.rev-nav button.arrow:hover { border-color: var(--gold); color: var(--gold); }
.dots { display: flex; gap: 6px; }
.dots button { width: 6px; height: 6px; border-radius: 3px; background: #444; transition: width .3s, background .3s; }
.dots button.on { width: 22px; background: var(--gold); }

/* banner oro */
.banner { position: relative; overflow: hidden; color: #fff; text-align: center; padding: clamp(80px, 11vw, 130px) 16px; background: linear-gradient(120deg, #8a6418 0%, #b98c2c 35%, #d8b45e 55%, #a77a22 80%, #7c5a14 100%); }
.banner .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 8s linear; }
.banner:hover .bg { transform: scale(1.1); }
.banner:has(.bg)::before { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(ellipse at center, rgba(40,26,4,.62) 0%, rgba(40,26,4,.38) 60%, rgba(20,12,2,.55) 100%); }
.banner .pattern { position: absolute; inset: -20%; opacity: .16; background-image: radial-gradient(circle at 50% 50%, transparent 17px, rgba(60,40,5,.9) 18px, transparent 20px), radial-gradient(circle at 50% 50%, transparent 7px, rgba(255,240,200,.8) 8px, transparent 9.5px); background-size: 64px 64px, 38px 38px; background-position: 0 0, 19px 23px; transform: rotate(-8deg); }
.banner > div { position: relative; z-index: 2; }
.banner h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 5vw, 56px); margin: 0 0 10px; text-shadow: 0 2px 30px rgba(60,40,0,.3); }
.banner p { margin: 0 0 30px; color: #fff7e6; font-weight: 300; }

/* mappa + footer */
.map { position: relative; height: 320px; background: #1a1a1a; color: #ccc; overflow: hidden; }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05); }
.map-ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 16px; background: radial-gradient(circle at 50% 40%, #232323, #121212); }
.map-ph > svg { width: 34px; height: 34px; color: var(--gold); }
.map-ph p { margin: 0; font-family: var(--serif); font-size: 21px; color: #eee; }
.map-ph small { color: #6f6f6f; font-size: 11px; }
.map-btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.ftr { background: var(--black); color: #cfcfcf; }
.ftr-in { width: min(var(--wrap), 100% - 32px); margin: 0 auto; padding: 64px 0 40px; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 48px; }
.ftr .logo span { color: #fff; }
.ftr p { font-size: 13px; max-width: 360px; }
.ftr h4 { font-size: 10.5px; letter-spacing: .36em; text-transform: uppercase; color: var(--gold); font-weight: 500; margin: 6px 0 20px; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 13px; }
.contact li { display: flex; gap: 12px; align-items: flex-start; }
.contact svg { width: 16px; height: 16px; color: var(--gold); margin-top: 2px; }
.links a:hover, .contact a:hover { color: var(--gold-l); }
.social { display: flex; gap: 10px; margin-top: 22px; }
.social a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid #333; display: grid; place-items: center; transition: .2s; }
.social a:hover { border-color: var(--gold); color: var(--gold); }
.social svg { width: 16px; height: 16px; }
.ftr-bottom { border-top: 1px solid #1f1f1f; width: min(var(--wrap), 100% - 32px); margin: 0 auto; padding: 22px 0 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 11.5px; color: #6c6c6c; }
.newsletter { margin-top: 26px; max-width: 380px; }
.newsletter > label { font-size: 12px; color: #aaa; display: block; margin-bottom: 8px; }
.newsletter div { display: flex; }
.newsletter input[type=email] { flex: 1; min-width: 0; background: #151515; border: 1px solid #2c2c2c; border-right: 0; padding: 0 14px; color: #fff; outline: none; }
.newsletter input[type=email]:focus { border-color: var(--gold); }
.newsletter .btn { min-height: 44px; padding: 0 16px; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; margin-top: 10px; cursor: pointer; }
.check input { accent-color: var(--gold); margin-top: 3px; }
.check a { text-decoration: underline; }

/* whatsapp + toast */
.wa { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 54px; height: 54px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.25); transition: transform .2s; }
.wa:hover { transform: scale(1.07); }
.wa svg { width: 28px; height: 28px; fill: currentColor; stroke: none; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 100; transform: translate(-50%, calc(100% + 40px)); visibility: hidden; background: var(--ink); color: #fff; padding: 13px 20px; font-size: 13px; display: flex; gap: 12px; align-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.3); transition: transform .4s var(--ease), visibility .4s; max-width: calc(100% - 32px); border-left: 3px solid var(--gold); }
.toast.on { transform: translate(-50%, 0); visibility: visible; }
.toast.err { border-left-color: var(--bad); }
.toast a { color: var(--gold-l); text-decoration: underline; white-space: nowrap; }

/* ===== pagine interne ===== */
.page-hd { background: var(--black); color: #fff; text-align: center; padding: clamp(56px, 8vw, 90px) 16px; }
.page-hd h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 5vw, 54px); margin: 10px 0 0; line-height: 1.05; }
.page-hd p { color: #8f8f8f; margin: 12px 0 0; font-size: 14px; }
.shop-bar { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.search-in { display: flex; align-items: center; gap: 10px; background: var(--paper); padding: 0 14px; height: 42px; width: min(340px, 100%); }
.search-in svg { width: 16px; height: 16px; color: var(--muted); }
.search-in input { border: 0; background: none; outline: none; flex: 1; font-size: 13px; min-width: 0; }
.select { appearance: none; border: 0; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='1.5'%3E%3Cpath d='m8 10 4-4 4 4M8 14l4 4 4-4'/%3E%3C/svg%3E") right 4px center / 16px no-repeat; padding: 8px 28px 8px 8px; font-size: 13px; cursor: pointer; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 34px; }
.chip { font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; padding: 9px 16px; background: var(--paper); transition: .2s; }
.chip:hover { background: #ece8df; }
.chip.on { background: var(--ink); color: #fff; }
.count { font-size: 12px; color: var(--muted); margin: -20px 0 24px; }

/* scheda prodotto */
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #666; margin: 22px 0; }
.back svg { width: 14px; height: 14px; }
.back:hover { color: var(--gold); }
.pdp { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; padding-bottom: 70px; }
.gallery { position: sticky; top: calc(var(--hdr) + 20px); }
.gallery .main { aspect-ratio: 1; background: #0e0e0e; overflow: hidden; cursor: zoom-in; position: relative; }
.gallery .main img, .gallery .main .art { width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.gallery .main.zoom img { transform: scale(2); cursor: zoom-out; }
.thumbs { display: flex; gap: 10px; margin-top: 10px; overflow-x: auto; }
.thumbs button { width: 74px; height: 74px; flex: none; opacity: .55; transition: .2s; border: 1px solid transparent; }
.thumbs button.on { opacity: 1; border-color: var(--gold); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp-info h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 3.8vw, 44px); line-height: 1.1; margin: 12px 0 16px; }
.pdp-info .price { font-size: 22px; gap: 12px; }
.pdp-info .price s { font-size: 15px; }
.pdp-info .save { font-size: 11px; background: #f3ead6; color: var(--gold-d); padding: 3px 8px; font-weight: 500; letter-spacing: .05em; }
.pdp-info .desc { color: #555; font-size: 14px; margin: 20px 0; white-space: pre-line; }
.avail { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #444; }
.avail i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(31,157,85,.15); }
.avail.low i { background: #e2a400; box-shadow: 0 0 0 3px rgba(226,164,0,.18); }
.avail.out i { background: var(--bad); box-shadow: 0 0 0 3px rgba(192,57,43,.15); }
.opt-label { font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: #777; margin: 28px 0 10px; }
.variants { display: flex; flex-wrap: wrap; gap: 8px; }
.variants button { min-width: 64px; height: 38px; padding: 0 14px; border: 1px solid var(--line); font-size: 12.5px; transition: .2s; }
.variants button:hover { border-color: #999; }
.variants button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.variants.shake { animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); height: 40px; }
.qty button { width: 38px; height: 100%; display: grid; place-items: center; }
.qty button svg { width: 14px; height: 14px; }
.qty span, .qty input { width: 40px; text-align: center; font-size: 13px; border: 0; background: none; }
.buy { display: flex; gap: 10px; margin-top: 30px; }
.buy .btn { flex: 1; min-height: 52px; }
.square { width: 52px; height: 52px; border: 1px solid var(--line); display: grid; place-items: center; transition: .2s; flex: none; }
.square:hover, .square.on { border-color: var(--gold); color: var(--gold); }
.square.on svg { fill: currentColor; }
.perks { list-style: none; padding: 0; margin: 30px 0 0; border-top: 1px solid var(--line); }
.perks li { display: flex; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 13px; color: #444; }
.perks svg { width: 18px; height: 18px; color: var(--gold); }
.meta { font-size: 12px; color: var(--muted); margin-top: 18px; }

/* carrello */
.cart-grid { display: grid; grid-template-columns: 1fr 360px; gap: clamp(28px, 4vw, 56px); align-items: start; padding: clamp(40px, 6vw, 64px) 0 80px; }
.line { display: grid; grid-template-columns: 92px 1fr auto; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: start; }
.line .thumb { width: 92px; height: 92px; }
.line h3 { margin: 0; font-size: 14px; font-weight: 500; }
.line small { display: block; color: var(--muted); font-size: 12px; margin: 2px 0 6px; }
.line .lp { font-weight: 600; font-size: 14px; margin-bottom: 10px; }
.line .err { color: var(--bad); font-size: 12px; margin-top: 6px; }
.line .qty { height: 32px; }
.line .qty button { width: 30px; }
.icon-del { color: #999; padding: 6px; }
.icon-del:hover { color: var(--bad); }
.icon-del svg { width: 17px; height: 17px; }
.summary { background: var(--paper); padding: 28px; position: sticky; top: calc(var(--hdr) + 20px); }
.summary h2 { font-family: var(--serif); font-weight: 400; font-size: 24px; margin: 0 0 18px; }
.sum-row { display: flex; justify-content: space-between; font-size: 13.5px; color: #555; padding: 6px 0; gap: 10px; }
.sum-row.total { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 16px; color: var(--text); font-weight: 600; font-size: 16px; }
.sum-row .free { color: var(--gold); font-weight: 500; }
.coupon { display: flex; margin: 18px 0 6px; }
.coupon input { flex: 1; min-width: 0; border: 1px solid var(--line); background: #fff; padding: 0 12px; height: 42px; outline: none; font-size: 13px; text-transform: uppercase; }
.coupon input:focus { border-color: var(--gold); }
.coupon .btn { min-height: 42px; padding: 0 16px; }
.coupon-msg { font-size: 12px; min-height: 18px; }
.coupon-msg.ok { color: var(--ok); }
.coupon-msg.bad { color: var(--bad); }
.summary .btn.block { margin-top: 14px; }
.ship-bar { font-size: 12px; color: #555; margin-bottom: 16px; }
.ship-bar div { height: 3px; background: #e7e2d6; margin-top: 8px; }
.ship-bar i { display: block; height: 100%; background: var(--gold); transition: width .5s; }
.secure { display: flex; align-items: center; gap: 8px; justify-content: center; font-size: 11.5px; color: var(--muted); margin-top: 14px; }
.secure svg { width: 14px; height: 14px; }
.mini-lines { display: grid; gap: 12px; margin-bottom: 16px; }
.mini { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; font-size: 12.5px; align-items: center; }
.mini .thumb { width: 48px; height: 48px; }
.mini small { color: var(--muted); display: block; }
.mini b { font-weight: 600; }

/* checkout */
.form h2 { font-family: var(--serif); font-weight: 400; font-size: 26px; margin: 0 0 20px; }
.form h2 + .sub { margin-top: -12px; }
.form .block { margin-bottom: 40px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fields .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: #777; margin-bottom: 7px; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid var(--line); background: #fff; padding: 12px 14px; outline: none; font-size: 14px; border-radius: 0; transition: border-color .2s; }
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--gold); }
.field input:user-invalid { border-color: var(--bad); }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice { position: relative; display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); padding: 16px; cursor: pointer; transition: .2s; }
.choice:hover { border-color: #bbb; }
.choice:has(input:checked) { border-color: var(--gold); background: #fcf8ef; }
.choice input { position: absolute; opacity: 0; }
.choice svg { width: 20px; height: 20px; color: var(--gold); margin-top: 1px; }
.choice b { display: block; font-weight: 500; font-size: 13.5px; }
.choice small { color: var(--muted); font-size: 12px; line-height: 1.4; display: block; margin-top: 2px; }
.choice .ck { position: absolute; top: 12px; right: 12px; width: 16px; height: 16px; border-radius: 50%; border: 1px solid #ccc; }
.choice:has(input:checked) .ck { border: 5px solid var(--gold); }
.form-err { background: #fdf0ee; color: var(--bad); padding: 12px 14px; font-size: 13px; margin-top: 14px; border-left: 3px solid var(--bad); }

/* conferma ordine */
.done { max-width: 720px; margin: 0 auto; padding: clamp(48px, 7vw, 80px) 0 90px; }
.done .big-ic { width: 64px; height: 64px; border-radius: 50%; background: #f3ead6; color: var(--gold); display: grid; place-items: center; margin: 0 auto 20px; }
.done .big-ic svg { width: 30px; height: 30px; }
.done h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 4vw, 44px); text-align: center; margin: 0 0 10px; }
.done .lead { text-align: center; color: #555; margin: 0 0 30px; }
.box { border: 1px solid var(--line); padding: 24px; margin-bottom: 18px; }
.box h3 { font-family: var(--serif); font-weight: 500; font-size: 21px; margin: 0 0 12px; }
.iban { font-family: ui-monospace, Menlo, monospace; font-size: 15px; background: var(--paper); padding: 10px 12px; letter-spacing: .04em; word-break: break-all; }
.steps { display: flex; gap: 0; margin: 10px 0 0; }
.steps span { flex: 1; text-align: center; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: #aaa; padding-top: 12px; border-top: 3px solid #eee; }
.steps span.on { color: var(--gold-d); border-color: var(--gold); }

/* testi legali / contatti */
.prose { max-width: 760px; margin: 0 auto; padding: 56px 0 90px; font-size: 14.5px; color: #333; }
.prose h2 { font-family: var(--serif); font-weight: 500; font-size: 26px; margin: 34px 0 10px; }
.prose p { white-space: pre-line; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 60px); padding: 56px 0 90px; }
.contact-cards { display: grid; gap: 14px; }
.ccard { display: flex; gap: 16px; align-items: center; border: 1px solid var(--line); padding: 20px; transition: .2s; }
a.ccard:hover { border-color: var(--gold); }
.ccard .ic { width: 46px; height: 46px; border-radius: 50%; background: #f6efe0; color: var(--gold); display: grid; place-items: center; flex: none; }
.ccard small { display: block; font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }
.ccard b { font-weight: 500; }

/* immagini segnaposto (gioiello disegnato) */
.art { display: block; background: radial-gradient(circle at 50% 42%, #2a2318 0%, #121110 55%, #0a0a0a 100%); }
.thumb { background: #0e0e0e; overflow: hidden; flex: none; }
.thumb img, .thumb .art { width: 100%; height: 100%; object-fit: cover; }

/* comparsa allo scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.loading { display: grid; place-items: center; min-height: 50vh; }
.spinner { width: 26px; height: 26px; border: 2px solid #e5dccb; border-top-color: var(--gold); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, #f1efea 25%, #f8f7f3 50%, #f1efea 75%); background-size: 200% 100%; animation: sk 1.2s infinite; }
@keyframes sk { to { background-position: -200% 0; } }

/* ===== responsive ===== */
@media (max-width: 1024px) {
  .features { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
  .cart-grid { grid-template-columns: 1fr; }
  .summary { position: static; }
}
@media (max-width: 860px) {
  :root { --hdr: 62px; }
  .nav, .hide-sm { display: none; }
  .burger { display: inline-grid; }
  .hdr-in { grid-template-columns: auto 1fr auto; gap: 6px; }
  .logo { justify-self: center; align-items: center; }
  .logo span { font-size: 18px; }
  .hero { align-items: flex-end; }
  .hero::after { background: linear-gradient(0deg, rgba(8,8,8,.92) 0%, rgba(8,8,8,.55) 50%, rgba(8,8,8,.1) 100%); }
  .hero-in { padding-bottom: 56px; }
  .scroll-cue { display: none; }
  .cats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cat-tile div { left: 14px; right: 14px; bottom: 14px; flex-direction: column; align-items: flex-start; }
  .grid, .grid.three { grid-template-columns: repeat(2, 1fr); gap: 22px 12px; }
  .pdp { grid-template-columns: 1fr; }
  .gallery { position: static; }
  .ftr-in { grid-template-columns: 1fr; gap: 36px; }
  .contact-grid { grid-template-columns: 1fr; }
  .card .quick { opacity: 1; transform: none; }
  .card .quick .round { width: 32px; height: 32px; }
}
@media (max-width: 560px) {
  .fields, .choices { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .line { grid-template-columns: 72px 1fr auto; gap: 12px; }
  .line .thumb { width: 72px; height: 72px; }
  .summary { padding: 22px 18px; }
  .hero-btns .btn { flex: 1; padding: 0 14px; }
  .buy { position: sticky; bottom: 0; background: #fff; padding: 12px 0; margin-inline: -16px; padding-inline: 16px; box-shadow: 0 -8px 20px rgba(0,0,0,.06); z-index: 5; }
  .wa { bottom: 84px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
.hero canvas { opacity: 0; transition: opacity 1.6s ease; }
.hero canvas.on { opacity: 1; }
