/* ==========================================================================
   Le Cartomanti degli Angeli — Shop
   ========================================================================== */

/* ---------- Font (self-hosted: nessuna chiamata a Google Fonts) ---------- */
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/cormorant-garamond-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 500; font-display: swap; src: url(../fonts/cormorant-garamond-latin-500-italic.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/cormorant-garamond-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/cormorant-garamond-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/jost-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/jost-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/jost-latin-600-normal.woff2) format('woff2'); }

:root {
  --navy: #09203f;
  --navy-2: #12305c;
  --navy-3: #1d4376;
  --navy-soft: #2a4a78;
  --sky: #eef5fc;
  --sky-2: #deebf8;
  --sky-3: #bcd5ef;
  --gold: #c8a04b;
  --gold-2: #e6cf8f;
  --gold-btn: #d9b764;
  --gold-text: #8a6a1f;
  --ink: #14203a;
  --text: #2b3448;
  --muted: #5d687c;
  --line: #dbe4ef;
  --bg: #f8fbfe;
  --white: #ffffff;
  --success: #1c7148;
  --success-bg: #e5f4ec;
  --danger: #b0261c;
  --danger-bg: #fdecea;
  --info-bg: #e8f0fb;
  --wa: #128c4b;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 14px 34px -18px rgba(9, 32, 63, .35);
  --shadow-sm: 0 4px 14px -8px rgba(9, 32, 63, .3);
  --serif: 'Cormorant Garamond', 'Cormorant', Georgia, 'Times New Roman', serif;
  --sans: 'Jost', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --gutter: 20px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--navy-3); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4, .h1, .h2, .h3, .h4 { font-family: var(--serif); font-weight: 600; color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: .005em; }
h1, .h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); }
h2, .h2 { font-size: clamp(1.65rem, 1.3rem + 1.3vw, 2.25rem); }
h3, .h3 { font-size: 1.45rem; }
h4, .h4 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
address { font-style: normal; line-height: 1.7; }
code { font-size: .88em; background: var(--sky); padding: .1em .35em; border-radius: 5px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
main:focus { outline: none; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; color: #fff; }
.muted { color: var(--muted); }
.note-small { font-size: .86rem; color: var(--muted); line-height: 1.5; }
.note-center { text-align: center; max-width: 720px; margin: 36px auto 52px; }
.only-sm { display: none !important; }
.link-btn { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font: inherit; }
.link-small { font-size: .92rem; }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .7em 1.4em;
  border: 1.5px solid var(--navy); border-radius: 999px;
  background: var(--navy); color: #fff;
  font-weight: 500; font-size: 1rem; letter-spacing: .02em; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .15s, box-shadow .2s;
}
.btn:hover { background: var(--navy-3); border-color: var(--navy-3); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold-btn); border-color: var(--gold-btn); color: var(--navy); font-weight: 600; box-shadow: 0 8px 20px -12px rgba(160, 120, 30, .8); }
.btn-gold:hover { background: #e3c67e; border-color: #e3c67e; color: var(--navy); }
.btn-outline { background: transparent; color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost-light:hover { background: rgba(255,255,255,.1); border-color: #fff; color: #fff; }
.btn-wa { background: var(--wa); border-color: var(--wa); }
.btn-wa:hover { background: #0d7a40; border-color: #0d7a40; }
.btn-danger { background: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: #8e1d15; border-color: #8e1d15; }
.btn-small { min-height: 40px; padding: .5em 1.1em; font-size: .93rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn-icon {
  display: inline-flex; align-items: center; gap: 2px; height: 42px; padding: 0 12px;
  border: 1.5px solid var(--navy); border-radius: 999px; background: #fff; color: var(--navy);
  cursor: pointer; font-weight: 600; transition: background .2s, color .2s;
}
.btn-icon:hover { background: var(--navy); color: #fff; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; text-decoration: none; color: var(--navy-3); }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); backdrop-filter: saturate(160%) blur(8px); border-bottom: 1px solid var(--line); }
.topbar { background: var(--navy); color: #dfe8f4; font-size: .84rem; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; }
.topbar-msg { margin: 0; }
.topbar-msg span[aria-hidden] { color: var(--gold-2); }
.topbar-links { display: flex; gap: 18px; align-items: center; }
.topbar a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: var(--gold-2); }

.header-main { display: flex; align-items: center; gap: 24px; min-height: 74px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); flex-shrink: 0; }
.logo:hover { color: var(--navy); }
.logo-mark { color: var(--navy); width: 46px; height: 36px; }
.logo-mark .logo-star { fill: var(--gold); }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-name { font-family: var(--serif); font-weight: 600; font-size: 1.42rem; letter-spacing: .01em; }
.logo-sub { font-size: .66rem; letter-spacing: .42em; text-transform: uppercase; color: var(--gold-text); margin-top: 5px; font-weight: 600; }
.logo-light, .logo-light:hover { color: #fff; }
.logo-light .logo-mark { color: #fff; }
.logo-light .logo-sub { color: var(--gold-2); }

.header-search { flex: 1; max-width: 460px; margin-left: auto; position: relative; }
.header-search input {
  width: 100%; height: 46px; padding: 0 48px 0 18px;
  border: 1.5px solid var(--line); border-radius: 999px; background: var(--sky);
  transition: border-color .2s, background .2s;
}
.header-search input:focus { border-color: var(--navy-3); background: #fff; outline: none; box-shadow: 0 0 0 3px rgba(200,160,75,.35); }
.header-search button { position: absolute; right: 4px; top: 4px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--navy); color: #fff; display: grid; place-items: center; cursor: pointer; }
.header-actions { display: flex; align-items: center; gap: 6px; }
.hdr-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 999px; text-decoration: none; color: var(--navy); background: none; border: 0; cursor: pointer; font-size: .95rem; font-weight: 500; }
.hdr-btn:hover { background: var(--sky); color: var(--navy); }
.cart-badge { position: absolute; top: 0; left: 21px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--gold-btn); color: var(--navy); font-size: .74rem; font-weight: 700; display: grid; place-items: center; line-height: 1; box-shadow: 0 0 0 2px #fff; }

.catnav { border-top: 1px solid var(--line); background: #fff; }
.catnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.catnav ul::-webkit-scrollbar { display: none; }
.catnav a { display: block; padding: 11px 14px; font-size: .95rem; font-weight: 500; color: var(--text); text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; }
.catnav a:hover { color: var(--navy); border-bottom-color: var(--sky-3); }
.catnav a[aria-current] { color: var(--navy); border-bottom-color: var(--gold); }

/* ---------- Flash ---------- */
.flash-wrap { padding-top: 18px; display: grid; gap: 10px; }
.flash { padding: 13px 18px; border-radius: var(--radius-sm); background: var(--info-bg); color: var(--navy); border-left: 4px solid var(--navy-3); font-size: .97rem; }
.flash-success { background: var(--success-bg); color: #10462c; border-left-color: var(--success); }
.flash-error { background: var(--danger-bg); color: #7a1a13; border-left-color: var(--danger); }
.flash-info { background: var(--info-bg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(1.5px 1.5px at 12% 22%, rgba(255,255,255,.9) 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 68%, rgba(255,255,255,.7) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 46% 14%, rgba(230,207,143,.9) 50%, transparent 51%),
    radial-gradient(1px 1px at 63% 82%, rgba(255,255,255,.6) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 84% 30%, rgba(255,255,255,.8) 50%, transparent 51%),
    radial-gradient(1px 1px at 92% 72%, rgba(230,207,143,.8) 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 86%, rgba(255,255,255,.6) 50%, transparent 51%),
    radial-gradient(900px 500px at 85% 10%, rgba(78,128,196,.45), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(200,160,75,.18), transparent 60%),
    linear-gradient(160deg, #0b2547 0%, #09203f 55%, #061629 100%);
}
.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 580px); align-items: center; min-height: 580px; padding-top: 64px; padding-bottom: 72px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-2); font-weight: 500; margin-bottom: 18px; }
.eyebrow-dark { color: var(--gold-text); }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 1.4rem + 2.4vw, 3.2rem); font-weight: 600; max-width: 21ch; margin-bottom: .45em; text-shadow: 0 2px 18px rgba(6,22,41,.45); }
.hero-lead { font-size: 1.15rem; color: #d7e3f2; max-width: 52ch; margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
/* Immagine principale: a destra, sfumata nel blu notte */
.hero-bg { position: absolute; top: 0; right: 0; bottom: 0; width: 62%; }
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: 55% 60%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 42%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 42%);
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(9,32,63,.55) 0%, rgba(9,32,63,0) 55%),
    linear-gradient(0deg, rgba(6,22,41,.4) 0%, rgba(6,22,41,0) 26%);
}

/* ---------- Trust ---------- */
.trust { background: #fff; border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-top: 22px; padding-bottom: 22px; }
.trust-item { display: flex; align-items: center; gap: 14px; color: var(--navy); }
.trust-item .icon { flex-shrink: 0; color: var(--gold-text); }
.trust-item strong { display: block; font-weight: 600; font-size: .98rem; }
.trust-item span { display: block; font-size: .88rem; color: var(--muted); line-height: 1.35; }

/* ---------- Sezioni ---------- */
.section { padding: 64px 0; }
.section-soft { background: linear-gradient(180deg, var(--sky) 0%, #f5f9fd 100%); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.section-head h2 { margin: 0; }

/* ---------- Categorie ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; }
.cat-tile { position: relative; display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s; }
.cat-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--sky-3); color: var(--ink); }
.cat-img { aspect-ratio: 1 / 1; background: var(--sky); overflow: hidden; }
.cat-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.cat-tile:hover .cat-img img { transform: scale(1.04); }
.cat-name { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; padding: 12px 16px 0; }
.cat-count { font-size: .85rem; color: var(--muted); padding: 0 16px 14px; }

/* ---------- Griglia prodotti / card ---------- */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--sky-3); }
.card-img { position: relative; display: block; aspect-ratio: 1 / 1; background: var(--sky); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-img img { transform: scale(1.035); }
.card.is-esaurito .card-img img { filter: saturate(.55) brightness(.97); }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 14px 16px 16px; }
.card-cat { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-text); font-weight: 600; margin: 0 0 4px; }
.card-title { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; line-height: 1.2; margin: 0 0 12px; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.card-title a:hover { color: var(--navy-3); }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-add, .card-more { position: relative; z-index: 2; }
.card-more { font-size: .9rem; font-weight: 500; }
.price { font-weight: 600; font-size: 1.12rem; color: var(--navy); white-space: nowrap; }
.badge { position: absolute; bottom: 12px; left: 12px; z-index: 2; padding: 5px 11px; border-radius: 999px; font-size: .76rem; font-weight: 600; letter-spacing: .04em; background: #fff; color: var(--navy); box-shadow: var(--shadow-sm); }
.badge-esaurito { background: var(--navy); color: #fff; }
.badge-ultimi { background: var(--gold-btn); color: var(--navy); }
.badge-lg { bottom: 16px; left: 16px; font-size: .85rem; padding: 7px 14px; }

/* ---------- Testata pagine ---------- */
.page-head { background: linear-gradient(180deg, var(--sky) 0%, rgba(238,245,252,0) 100%); padding: 22px 0 18px; }
.page-head h1 { margin: 6px 0 12px; }
.page-head-compact { padding: 26px 0 8px; }
.intro { max-width: 820px; color: var(--text); font-size: 1.05rem; }
.intro p:last-child { margin-bottom: 0; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: .88rem; color: var(--muted); }
.breadcrumb li + li::before { content: '›'; margin: 0 8px; color: var(--sky-3); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--navy); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--ink); }
.pagina-prodotto .breadcrumb { padding: 18px 0 6px; }

/* ---------- Chips / toolbar ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 6px 2px 10px; margin: 8px 0 6px; scrollbar-width: thin; }
.chips-center { justify-content: center; flex-wrap: wrap; overflow: visible; }
.chip { flex-shrink: 0; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--text); text-decoration: none; font-size: .93rem; font-weight: 500; transition: all .2s; }
.chip:hover { border-color: var(--navy-3); color: var(--navy); }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 10px 0 18px; }
.toolbar-count { margin: 0; color: var(--muted); font-size: .95rem; }
.toolbar-ctrl { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.toolbar select { height: 42px; padding: 0 38px 0 14px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2309203f' stroke-width='1.6' fill='none'/%3E%3C/svg%3E") no-repeat right 14px center; appearance: none; cursor: pointer; }
.check { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-size: .96rem; }
.check input { width: 19px; height: 19px; accent-color: var(--navy); flex-shrink: 0; }
.check-block { display: flex; align-items: flex-start; gap: 11px; line-height: 1.5; margin: 6px 0 14px; }
.check-block input { margin-top: 3px; }
.check.has-error { color: var(--danger); }
.empty { text-align: center; padding: 50px 20px; background: #fff; border: 1px dashed var(--sky-3); border-radius: var(--radius); }

/* ---------- Pagina prodotto ---------- */
.product { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 52px; padding-top: 10px; padding-bottom: 60px; align-items: start; }
.gallery { position: sticky; top: 140px; }
.gallery-main { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--sky); border: 1px solid var(--line); aspect-ratio: 1 / 1; }
.gallery-main a { display: block; height: 100%; cursor: zoom-in; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 10px; }
.thumb { display: block; width: 100%; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: var(--sky); cursor: pointer; aspect-ratio: 1 / 1; transition: border-color .2s; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { border-color: var(--sky-3); }
.thumb.is-active { border-color: var(--gold); }
.product-cat { display: inline-block; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-text); font-weight: 600; text-decoration: none; margin-bottom: 8px; }
.product-info h1 { font-size: clamp(2rem, 1.5rem + 1.8vw, 2.8rem); margin-bottom: .3em; }
.product-price { font-size: 1.9rem; font-weight: 600; color: var(--navy); margin: 0 0 6px; font-family: var(--sans); }
.stock { display: inline-flex; align-items: center; gap: 8px; font-size: .95rem; font-weight: 500; margin-bottom: 22px; }
.stock .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px var(--success-bg); }
.stock-disponibile { color: var(--success); }
.stock-ultimi { color: var(--gold-text); }
.stock-ultimi .dot { background: var(--gold); box-shadow: 0 0 0 4px #f7eed6; }
.stock-esaurito { color: var(--muted); }
.stock-esaurito .dot { background: #9aa4b5; box-shadow: 0 0 0 4px #edf0f4; }
.buy { display: grid; grid-template-columns: auto 1fr; gap: 12px; margin-bottom: 22px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; height: 48px; }
.qty button { width: 44px; height: 100%; border: 0; background: none; font-size: 1.3rem; color: var(--navy); cursor: pointer; border-radius: 999px; }
.qty button:hover { background: var(--sky); }
.qty input { width: 46px; height: 100%; border: 0; text-align: center; font-weight: 600; -moz-appearance: textfield; background: transparent; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-sm { height: 40px; }
.qty-sm button { width: 36px; }
.qty-sm input { width: 38px; }
.soldout { background: var(--sky); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 22px; display: grid; gap: 10px; }
.soldout p { margin: 0 0 4px; }
.perks { list-style: none; padding: 16px 0; margin: 0 0 22px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 10px; font-size: .95rem; }
.perks li { display: flex; align-items: center; gap: 12px; }
.perks .icon { color: var(--gold-text); flex-shrink: 0; }
.product-desc { font-size: 1.04rem; }
.h-desc { font-size: 1.5rem; margin-top: .2em; }
.lista-contenuto { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: 8px; }
.lista-contenuto li { position: relative; padding-left: 26px; }
.lista-contenuto li::before { content: ''; position: absolute; left: 4px; top: .55em; width: 11px; height: 11px; background: var(--gold); clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); }

/* ---------- Pannelli / form ---------- */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin-bottom: 22px; box-shadow: 0 1px 0 rgba(9,32,63,.02); }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.panel-center { text-align: center; margin-top: 30px; margin-bottom: 60px; }
.panel-center .form { text-align: left; }
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 500; font-size: .95rem; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy-3); box-shadow: 0 0 0 3px rgba(200,160,75,.3); }
.field input:disabled { background: var(--sky); color: var(--muted); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-row .field-sm { max-width: none; }
.hint { font-size: .85rem; color: var(--muted); }
.field-error { color: var(--danger); font-size: .88rem; margin: 0; }
.form-aux { margin: -4px 0 0; font-size: .92rem; text-align: right; }
.form-intro { color: var(--muted); }
.auth { display: grid; grid-template-columns: 1fr 1.2fr; gap: 26px; padding-top: 8px; padding-bottom: 60px; align-items: start; }

/* ---------- Carrello / checkout ---------- */
.cart-layout, .checkout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 30px; align-items: start; padding-top: 10px; padding-bottom: 64px; }
.cart-list { list-style: none; padding: 0; margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.cart-row { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto 100px 40px; gap: 16px; align-items: center; padding: 16px 18px; }
.cart-row + .cart-row { border-top: 1px solid var(--line); }
.cart-thumb { display: block; width: 84px; height: 84px; border-radius: 10px; overflow: hidden; background: var(--sky); }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-name { display: block; font-family: var(--serif); font-size: 1.25rem; font-weight: 600; color: var(--ink); text-decoration: none; line-height: 1.2; }
.cart-unit { font-size: .88rem; color: var(--muted); }
.cart-total { font-weight: 600; text-align: right; color: var(--navy); }
.cart-remove { width: 38px; height: 38px; border-radius: 50%; border: 0; background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.cart-remove:hover { background: var(--danger-bg); color: var(--danger); }
.cart-actions { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 16px; }
.summary { position: sticky; top: 150px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.summary dl { margin: 0 0 18px; display: grid; gap: 10px; }
.summary dl > div { display: flex; justify-content: space-between; gap: 10px; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 500; white-space: nowrap; }
.sum-total { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; }
.sum-total dt, .sum-total dd { color: var(--ink); font-weight: 600; font-size: 1.15rem; }
.summary .note-small { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 12px 0 0; }
.sum-items { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 12px; }
.sum-items li { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; font-size: .95rem; }
.sum-thumb { position: relative; width: 56px; height: 56px; border-radius: 9px; overflow: visible; background: var(--sky); }
.sum-thumb img { width: 56px; height: 56px; object-fit: cover; border-radius: 9px; }
.sum-q { position: absolute; top: -7px; right: -7px; min-width: 21px; height: 21px; border-radius: 999px; background: var(--navy); color: #fff; font-size: .74rem; display: grid; place-items: center; font-weight: 600; }
.sum-name { line-height: 1.3; }
.sum-price { font-weight: 500; white-space: nowrap; }
.steps { list-style: none; padding: 0; margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .9rem; color: var(--muted); counter-reset: s; }
.steps li { counter-increment: s; display: flex; align-items: center; gap: 8px; }
.steps li::before { content: counter(s); width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--sky-3); display: grid; place-items: center; font-size: .78rem; font-weight: 600; }
.steps li.done::before { background: var(--sky-2); border-color: var(--sky-2); color: var(--navy); }
.steps li.current { color: var(--navy); font-weight: 600; }
.steps li.current::before { background: var(--navy); border-color: var(--navy); color: #fff; }
.steps a { color: inherit; }
.pay-note { font-size: .95rem; background: var(--sky); border-radius: 10px; padding: 12px 14px; }
.paypal-box { margin-top: 14px; min-height: 52px; max-width: 520px; }
.paypal-box.is-disabled { opacity: .55; }

/* ---------- Conferma ordine / account ---------- */
.confirm { text-align: center; margin: 34px auto 64px; }
.confirm .table, .confirm .address-box { text-align: left; }
.confirm-icon { width: 70px; height: 70px; border-radius: 50%; background: var(--success-bg); color: var(--success); display: grid; place-items: center; margin: 0 auto 18px; }
.confirm-icon-mail { background: var(--sky-2); color: var(--navy); }
.info-box { background: var(--sky); border-radius: 12px; padding: 16px 18px; margin: 20px 0; text-align: left; }
.info-box p { margin-bottom: 10px; }
.form-inline { display: flex; gap: 10px; flex-wrap: wrap; }
.form-inline input { flex: 1 1 220px; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; }
.btn-row-center { justify-content: center; }
.address-box { background: var(--sky); border-radius: 12px; padding: 16px 18px; margin: 18px 0 24px; }
.address-box h2 { margin-bottom: 6px; }
.confirm .btn-row { justify-content: center; }
.account-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.account-head h1 { margin-bottom: 4px; }
.account { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; padding-top: 10px; padding-bottom: 60px; align-items: start; }
.account #ordini { grid-column: 1 / -1; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: .96rem; }
.table th, .table td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { font-weight: 600; color: var(--ink); background: var(--sky); font-size: .88rem; letter-spacing: .02em; }
.table .num { text-align: right; white-space: nowrap; }
.table tfoot th, .table tfoot td { border-bottom: 0; font-size: 1.05rem; }
.table-sum { margin: 20px 0; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .82rem; font-weight: 600; background: var(--sky); color: var(--navy); }
.pill-ok { background: var(--success-bg); color: var(--success); }
.danger-zone { margin-top: 16px; border: 1px solid #f1c9c4; border-radius: 12px; padding: 12px 16px; }
.danger-zone summary { cursor: pointer; color: var(--danger); font-weight: 500; }
.danger-zone[open] summary { margin-bottom: 12px; }
.search-big { display: flex; gap: 10px; max-width: 560px; margin: 0 0 12px; }
.search-big input { flex: 1; min-height: 48px; border: 1.5px solid var(--line); border-radius: 999px; padding: 0 18px; }
.notfound .search-big { margin: 18px auto; }
.notfound .chips { margin-bottom: 22px; }

/* ---------- Chi siamo / FAQ ---------- */
.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 14px 32px 14px 0; position: relative; font-weight: 500; color: var(--ink); font-size: 1.04rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 10px; font-size: 1.5rem; color: var(--gold-text); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text); margin: 0 0 14px; }

/* ---------- Contatti ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; padding: 10px 0 30px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.contact-ico { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--sky); color: var(--navy); margin-bottom: 14px; }
.contact-big { font-size: 1.35rem; font-weight: 600; margin-bottom: 6px; word-break: break-word; }
.contact-big a { color: var(--navy); text-decoration: none; }
.contact-big a:hover { text-decoration: underline; }
.contact-links { display: flex; flex-wrap: wrap; gap: 10px 24px; padding: 4px 0 64px; }

/* ---------- Testi legali ---------- */
.prose { max-width: 820px; padding-bottom: 64px; }
.prose h2 { font-size: 1.75rem; margin-top: 1.6em; scroll-margin-top: 150px; }
.prose h2:first-child { margin-top: .4em; }
.prose li { margin-bottom: .45em; }
.prose .lead { font-size: 1.1rem; }
.prose .table { margin-bottom: 1.2em; font-size: .93rem; }
.toc { background: var(--sky); border-radius: 12px; padding: 18px 22px; margin-bottom: 10px; }
.toc-title { font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.toc ol { margin: 0; columns: 2; column-gap: 30px; }
.toc li { margin-bottom: .25em; }
.box-modulo { background: #fff; border: 1px dashed var(--sky-3); border-radius: 12px; padding: 18px 20px; font-size: .95rem; }
.dl-legal { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.dl-legal > div { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 12px 18px; }
.dl-legal > div + div { border-top: 1px solid var(--line); }
.dl-legal dt { font-weight: 600; color: var(--ink); }
.dl-legal dd { margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #c8d5e6; margin-top: 0; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-top: 56px; padding-bottom: 40px; }
.f-brand p { margin: 16px 0 0; max-width: 40ch; color: #b9c8db; }
.f-title { font-family: var(--sans); font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-2); font-weight: 600; margin-bottom: 14px; }
.f-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a, .site-footer .link-btn { color: #e6edf6; text-decoration: none; }
.site-footer a:hover, .site-footer .link-btn:hover { color: var(--gold-2); text-decoration: underline; }
.f-contacts a { display: inline-flex; align-items: center; gap: 8px; }
.f-back { font-weight: 500; }
.f-pay { display: flex; align-items: center; gap: 8px; margin: 18px 0 0; color: #b9c8db; font-size: .88rem; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0 24px; font-size: .83rem; color: #a8b8cd; }
.footer-legal p { margin: 0; }

/* ==========================================================================
   Cookie banner — nero, testo bianco, pulsanti blu
   ========================================================================== */
.cc-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1000;
  max-width: 1120px; margin: 0 auto;
  background: #000; color: #fff; border-radius: 14px;
  box-shadow: 0 20px 50px -10px rgba(0,0,0,.55);
  padding: 22px 56px 22px 26px;
  font-family: var(--sans); font-size: .95rem; line-height: 1.55;
}
.cc-banner[hidden], .cc-modal[hidden], .cc-fab[hidden] { display: none !important; }
.cc-inner { display: flex; align-items: center; gap: 28px; }
.cc-copy { flex: 1; }
.cc-copy p { margin: 0; color: #fff; }
.cc-title { font-family: var(--sans); font-weight: 600; font-size: 1.08rem; margin: 0 0 6px !important; color: #fff; }
.cc-banner a, .cc-modal a { color: #9cc3ff; text-decoration: underline; }
.cc-banner a:hover, .cc-modal a:hover { color: #fff; }
.cc-actions { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }
.cc-btn {
  min-height: 44px; padding: 10px 20px; border-radius: 8px; border: 0; cursor: pointer;
  background: #0b5fd6; color: #fff; font-weight: 600; font-size: .95rem; font-family: var(--sans);
  transition: background .2s;
}
.cc-btn:hover { background: #0948a8; }
.cc-btn:focus-visible, .cc-x:focus-visible, .cc-fab:focus-visible { outline: 3px solid #9cc3ff; outline-offset: 2px; }
.cc-x { position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.cc-x:hover { background: rgba(255,255,255,.12); }
.cc-x-static { position: static; flex-shrink: 0; }
.cc-modal { position: fixed; inset: 0; z-index: 1001; background: rgba(0,0,0,.6); display: grid; place-items: center; padding: 16px; }
.cc-modal-box { background: #000; color: #fff; width: 100%; max-width: 620px; max-height: calc(100vh - 32px); overflow-y: auto; border-radius: 14px; padding: 24px 26px; font-family: var(--sans); font-size: .95rem; box-shadow: 0 30px 70px -10px rgba(0,0,0,.7); }
.cc-modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cc-small { color: #d4d4d4; font-size: .9rem; }
.cc-cat { border: 1px solid #2c2c2c; border-radius: 10px; padding: 14px 16px; margin: 12px 0; }
.cc-cat p { margin: 6px 0 0; color: #d4d4d4; font-size: .9rem; }
.cc-cat-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cc-cat-name { font-weight: 600; color: #fff; cursor: pointer; }
.cc-always { font-size: .82rem; font-weight: 600; color: #9cc3ff; }
.cc-switch { position: relative; width: 50px; height: 28px; flex-shrink: 0; }
.cc-switch input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.cc-switch span { position: absolute; inset: 0; border-radius: 999px; background: #4a4a4a; transition: background .2s; }
.cc-switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; }
.cc-switch input:checked + span { background: #0b5fd6; }
.cc-switch input:checked + span::after { transform: translateX(22px); }
.cc-switch input:focus-visible + span { outline: 3px solid #9cc3ff; outline-offset: 2px; }
.cc-note { border-top: 1px solid #2c2c2c; padding-top: 12px; }
.cc-actions-modal { justify-content: flex-end; margin-top: 14px; }
.cc-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 999;
  width: 52px; height: 52px; border-radius: 50%; border: 2px solid #0b5fd6;
  background: #000; color: #fff; display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 10px 24px -8px rgba(0,0,0,.55); transition: transform .2s;
}
.cc-fab:hover { transform: scale(1.06); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  :root { --gutter: 18px; }
  .hide-sm { display: none !important; }
  .only-sm { display: inline-flex !important; }
  .hdr-label { display: none; }
  .header-main { gap: 8px; min-height: 64px; flex-wrap: wrap; }
  .logo-name { font-size: 1.18rem; }
  .logo-mark { width: 38px; height: 30px; }
  .header-actions { margin-left: auto; gap: 0; }
  .header-search { order: 3; flex-basis: 100%; max-width: none; margin: 0 0 12px; display: none; }
  .header-search.is-open { display: block; }
  .cart-badge { left: 20px; }
  .hero-bg { position: relative; width: 100%; height: auto; aspect-ratio: 4 / 3; max-height: 62vh; }
  .hero-bg img { -webkit-mask-image: linear-gradient(180deg, #000 52%, transparent 100%); mask-image: linear-gradient(180deg, #000 52%, transparent 100%); }
  .hero-bg::after { display: none; }
  .hero-in { grid-template-columns: 1fr; min-height: 0; padding-top: 0; padding-bottom: 48px; margin-top: -44px; }
  .product { grid-template-columns: 1fr; gap: 26px; }
  .gallery { position: static; }
  .cart-layout, .checkout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .auth, .account, .about { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
}
@media (max-width: 760px) {
  .cc-banner { padding: 20px 18px 18px; left: 10px; right: 10px; bottom: 10px; }
  .cc-inner { flex-direction: column; align-items: stretch; gap: 16px; }
  .cc-copy { padding-right: 30px; }
  .cc-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .cc-actions .cc-btn[data-cc="accetta_tutti"] { grid-column: 1 / -1; order: -1; }
  .cc-actions-modal { grid-template-columns: 1fr; }
  .cc-actions-modal .cc-btn[data-cc="accetta_tutti"] { order: 0; }
  .cc-banner { font-size: .88rem; }
  .toc ol { columns: 1; }
  .dl-legal > div { grid-template-columns: 1fr; gap: 2px; }
}
@media (max-width: 600px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .topbar-in { justify-content: center; }
  .topbar-msg { display: none; }
  .logo { min-width: 0; gap: 7px; }
  .logo-mark { width: 32px; height: 25px; }
  .logo-name { font-size: 1.02rem; }
  .logo-sub { font-size: .58rem; margin-top: 3px; }
  .hdr-btn { padding: 8px 7px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card-body { padding: 10px 12px 12px; }
  .card-title { font-size: 1.1rem; margin-bottom: 8px; }
  .card-cat { font-size: .66rem; letter-spacing: .1em; }
  .price { font-size: 1rem; }
  .btn-icon { height: 36px; padding: 0 9px; }
  .btn-icon .icon { width: 17px; height: 17px; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .cat-name { font-size: 1.15rem; padding: 10px 12px 0; }
  .cat-count { padding: 0 12px 12px; }
  .trust-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .trust-item { gap: 10px; align-items: flex-start; }
  .trust-item span { font-size: .8rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px 20px; padding-top: 44px; }
  .f-brand, .footer-grid > div:last-child { grid-column: 1 / -1; }
  .panel { padding: 20px 18px; }
  .field-row { grid-template-columns: 1fr; }
  .cart-row { grid-template-columns: 64px minmax(0, 1fr) auto; grid-template-areas: "img info rm" "img qty tot"; gap: 8px 12px; padding: 14px; }
  .cart-thumb { grid-area: img; width: 64px; height: 64px; }
  .cart-info { grid-area: info; }
  .cart-row .qty { grid-area: qty; justify-self: start; }
  .cart-total { grid-area: tot; align-self: center; }
  .cart-remove { grid-area: rm; justify-self: end; }
  .cart-name { font-size: 1.1rem; }
  .buy { grid-template-columns: 1fr; }
  .buy .qty { justify-self: start; }
  .toolbar { align-items: flex-start; }
  .cc-fab { right: 12px; bottom: 12px; width: 48px; height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .cc-banner, .cc-fab, .cc-modal { display: none !important; }
}
