/* ============ HHE LINE — stile ============ */
:root {
  --ink: #0a0a0b;
  --ink-2: #18181b;
  --paper: #ffffff;
  --soft: #f4f4f5;
  --line: #e4e4e7;
  --muted: #6b6b73;
  --blue: #1d4bff;
  --blue-dark: #0f34d6;
  --radius: 18px;
  --wrap: 1200px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Manrope", var(--font);
}

* { box-sizing: border-box; }
/* il sito ha un design chiaro: evita che telefono o browser in modalità scura anneriscano gli sfondi */
html { color-scheme: light; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper); line-height: 1.55; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.eyebrow { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--blue); margin: 0 0 12px; }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 52ch; }

/* ---- Bottoni ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent; font-weight: 600; text-decoration: none; transition: background .2s, transform .1s, border-color .2s; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-dark); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2a2a2e; }
.btn-ghost { background: transparent; border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-full { width: 100%; }

/* ---- Hopbar / header ---- */
.topbar { background: var(--ink); color: #d4d4d8; text-align: center; font-size: .8rem; padding: 8px 16px; }
.topbar p { margin: 0; }
.header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.86); backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 800; letter-spacing: .16em; font-size: .95rem; }
.brand em { font-style: normal; font-weight: 500; color: var(--blue); }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { text-decoration: none; font-size: .92rem; font-weight: 500; color: var(--ink-2); position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px; background: var(--blue); transition: right .25s; }
.nav a:hover::after { right: 0; }
.bag-btn { position: relative; background: none; border: 0; padding: 8px; border-radius: 50%; }
.bag-btn:hover { background: var(--soft); }
.bag-count { position: absolute; top: 0; right: -2px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--blue); color: #fff; font-size: .7rem; font-weight: 700; display: grid; place-items: center; transform: scale(0); transition: transform .2s; }
.bag-count.on { transform: scale(1); }

/* ---- Hero ---- */
.hero { background: var(--ink); color: #fff; overflow: hidden; position: relative; }
.hero::before { content: ""; position: absolute; width: 700px; height: 700px; right: -160px; top: -200px; background: radial-gradient(circle, rgba(29,75,255,.45), transparent 62%); pointer-events: none; }
.hero-in { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 40px; min-height: 600px; padding-top: 56px; padding-bottom: 56px; position: relative; }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); font-weight: 800; }
.hero h1 span { color: #a1a1aa; }
.hero .lead { color: #b4b4bb; margin: 22px 0 32px; }
.finder { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 22px; padding: 18px; max-width: 520px; }
.finder label { display: block; font-size: .85rem; font-weight: 600; color: #d4d4d8; margin-bottom: 10px; }
.finder-row { display: flex; gap: 10px; }
.finder select { flex: 1; min-width: 0; height: 50px; border-radius: 999px; padding: 0 18px; border: 0; background: #fff; color: var(--ink); }
.hero-art { position: relative; height: 460px; }
.hero-art .art { position: absolute; width: 230px; filter: drop-shadow(0 30px 40px rgba(0,0,0,.5)); transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.hero-art .art:nth-child(1) { left: 6%; top: 40px; transform: rotate(-14deg); }
.hero-art .art:nth-child(2) { left: 32%; top: 0; z-index: 2; }
.hero-art .art:nth-child(3) { left: 58%; top: 50px; transform: rotate(13deg); }
.hero-art:hover .art:nth-child(1) { transform: rotate(-18deg) translateX(-14px); }
.hero-art:hover .art:nth-child(3) { transform: rotate(17deg) translateX(14px); }

/* ---- Categorie ---- */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: -48px; position: relative; z-index: 2; }
.cat-tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-align: left; display: flex; flex-direction: column; gap: 2px; box-shadow: 0 12px 30px rgba(10,10,11,.06); transition: transform .2s, box-shadow .2s, border-color .2s; }
.cat-tile:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(10,10,11,.1); border-color: var(--blue); }
.cat-art { display: block; height: 110px; margin-bottom: 10px; background: var(--soft); border-radius: 12px; }
.cat-art .art { height: 100%; margin: 0 auto; }
.cat-tile strong { font-family: var(--display); font-size: 1.1rem; }
.cat-tile small { color: var(--muted); }

/* ---- In vetrina ---- */
.spotlight { margin-top: 56px; }
.spot { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 24px; background: var(--ink); color: #fff; border-radius: 28px; padding: 48px 56px; }
.spot::before { content: ""; position: absolute; inset: -40% -10% -40% 35%; background: conic-gradient(from 200deg, #ffb3d9, #b5a8ff, #8fe3ff, #b8ffd9, #fff2a8, #ffb3d9); filter: blur(70px); opacity: .45; pointer-events: none; }
.spot > * { position: relative; }
.spot h2 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-weight: 800; }
.spot .lead { color: #c4c4cc; margin: 14px 0 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.chips span { border: 1px solid rgba(255,255,255,.4); border-radius: 999px; padding: 6px 14px; font-size: .85rem; }
.spot-art { display: grid; place-items: center; height: 340px; }
.spot-art .art { height: 100%; filter: drop-shadow(0 30px 40px rgba(0,0,0,.45)); transform: rotate(8deg); transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.spot:hover .spot-art .art { transform: rotate(0deg) scale(1.04); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #e4e4e7; }

/* ---- Catalogo ---- */
.catalog { padding: 96px 0 72px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.section-head p.muted { margin: 0; }
.toolbar { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.tabs { display: flex; gap: 6px; background: var(--soft); padding: 5px; border-radius: 999px; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.tabs button { border: 0; background: none; padding: 9px 18px; border-radius: 999px; font-weight: 500; font-size: .92rem; white-space: nowrap; color: var(--muted); }
.tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; }
.filters select, .filters input { height: 44px; border: 1px solid var(--line); border-radius: 999px; padding: 0 16px; background: #fff; min-width: 0; }
.filters input { width: 170px; }
.filters select:focus, .filters input:focus { outline: 2px solid var(--blue); outline-offset: 1px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.card { display: flex; flex-direction: column; border-radius: var(--radius); background: #fff; transition: transform .25s; animation: fadeUp .4s both; }
.card-media { position: relative; border: 0; padding: 0; aspect-ratio: 1 / 1.05; border-radius: var(--radius); background: var(--soft); display: grid; place-items: center; overflow: hidden; }
.card-media .art, .card-media img { height: 82%; width: auto; transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card:hover .card-media .art { transform: scale(1.05) rotate(-2deg); }
.badge { position: absolute; top: 12px; left: 12px; font-size: .72rem; font-weight: 700; letter-spacing: .03em; padding: 5px 10px; border-radius: 999px; background: #fff; color: var(--ink); }
.badge.b-blue { background: var(--blue); color: #fff; }
.badge.b-dark { background: var(--ink); color: #fff; }
.card-body { padding: 14px 4px 4px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body h3 { font-size: 1.05rem; font-weight: 700; }
.card-body .meta { font-size: .82rem; color: var(--muted); margin: 0; }
.swatches { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0; }
.sw { width: 20px; height: 20px; border-radius: 50%; border: 1px solid rgba(0,0,0,.14); padding: 0; position: relative; background-image: linear-gradient(45deg, #ddd 25%, transparent 25%, transparent 75%, #ddd 75%), linear-gradient(45deg, #ddd 25%, #fff 25%, #fff 75%, #ddd 75%); background-size: 8px 8px; background-position: 0 0, 4px 4px; }
.sw::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--c); }
.sw[aria-pressed="true"] { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--ink); }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 6px; }
.price { font-family: var(--display); font-weight: 800; font-size: 1.15rem; }
.price s { font-weight: 600; color: var(--muted); font-size: .8em; margin-right: 4px; }
.price.ask { font-size: .9rem; font-weight: 700; color: var(--blue); }
.add { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; font-size: 1.3rem; line-height: 1; transition: background .2s, color .2s, border-color .2s; }
.add:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.empty { text-align: center; padding: 60px 0; color: var(--muted); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } }

/* ---- Guida pellicole ---- */
.guide { background: var(--soft); padding: 88px 0; }
.guide-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.guide article { background: #fff; border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.g-art { height: 120px; display: block; margin-bottom: 6px; }
.g-art .art { height: 100%; }
.guide h3 { font-size: 1.15rem; }
.guide p { margin: 0; color: var(--muted); font-size: .94rem; flex: 1; }
.guide article button { align-self: start; border: 0; background: none; padding: 6px 0 0; color: var(--blue); font-weight: 600; }

/* ---- Come funziona ---- */
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding-top: 88px; padding-bottom: 88px; }
.how span { font-family: var(--display); font-weight: 800; color: var(--blue); font-size: .9rem; }
.how h3 { font-size: 1.35rem; margin: 10px 0 8px; }
.how p { margin: 0; color: var(--muted); }
.how > div { border-top: 1px solid var(--ink); padding-top: 20px; }

/* ---- Social ---- */
.social { background: var(--ink); color: #fff; padding: 88px 0; }
.social-in { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.social .lead { color: #b4b4bb; margin-top: 16px; }
.social-links { display: grid; gap: 14px; }
.social-card { display: flex; align-items: center; gap: 16px; padding: 22px; border-radius: var(--radius); border: 1px solid rgba(255,255,255,.14); text-decoration: none; transition: border-color .2s, background .2s; }
.social-card:hover { border-color: var(--blue); background: rgba(29,75,255,.12); }
.social-card span { display: flex; flex-direction: column; }
.social-card small { color: #a1a1aa; }

/* ---- Negozio ---- */
.store { padding: 88px 0; }
.store-in { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: stretch; }
.addr { font-size: 1.1rem; margin: 18px 0; }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 8px 24px; margin: 0 0 28px; }
.hours dt { font-weight: 600; }
.hours dd { margin: 0; color: var(--muted); }
.store-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.map { border-radius: var(--radius); overflow: hidden; min-height: 340px; background: var(--soft); }
.map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }
.map-gate { height: 100%; min-height: 340px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; text-align: center; color: var(--muted); }
.map-gate p { margin: 0; color: var(--ink); }
.map-gate small a, .foot-link { color: var(--muted); }
.foot-link:hover { color: var(--blue); }

/* ---- Footer ---- */
.footer { border-top: 1px solid var(--line); padding: 32px 0 100px; font-size: .88rem; }
.footer-in { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; }
.footer p { margin: 0; }

/* ---- Bottone WhatsApp flottante ---- */
.fab { position: fixed; right: 20px; bottom: 20px; z-index: 45; display: flex; align-items: center; gap: 8px; height: 54px; padding: 0 22px 0 18px; border-radius: 999px; border: 0; background: var(--blue); color: #fff; font-weight: 600; text-decoration: none; box-shadow: 0 12px 30px rgba(29,75,255,.4); transition: transform .2s; }
.fab:hover { transform: translateY(-2px); }

/* ---- Scheda prodotto ---- */
.modal { border: 0; padding: 0; background: var(--paper); color: var(--ink); border-radius: 24px; width: min(920px, calc(100% - 32px)); max-height: calc(100% - 32px); }
.modal::backdrop { background: rgba(10,10,11,.55); backdrop-filter: blur(4px); }
.modal[open] { animation: pop .25s cubic-bezier(.2,.8,.2,1); }
@keyframes pop { from { transform: translateY(16px) scale(.98); } }
.modal-in { display: grid; grid-template-columns: 1fr 1fr; }
.m-media { background: var(--soft); display: grid; place-items: center; min-height: 460px; }
.m-media .art { height: 380px; }
.m-media img { width: 100%; height: 100%; object-fit: cover; }
.m-info { padding: 40px 36px; display: flex; flex-direction: column; gap: 14px; }
.m-info h2 { font-size: 1.9rem; }
.m-info .price { font-size: 1.5rem; }
.m-info p { margin: 0; color: var(--muted); }
.field label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: 8px; }
.field select, .field input { width: 100%; height: 46px; border-radius: 12px; border: 1px solid var(--line); padding: 0 14px; background: #fff; }
.field .swatches .sw { width: 30px; height: 30px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; height: 46px; }
.qty button { width: 44px; height: 100%; border: 0; background: none; font-size: 1.2rem; }
.qty span { min-width: 28px; text-align: center; font-weight: 600; }
.m-actions { display: grid; gap: 10px; margin-top: 6px; }
.m-info .promise { font-family: var(--display); font-weight: 800; font-size: .88rem; line-height: 1.4; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); border-left: 3px solid var(--blue); padding-left: 12px; }
.features h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin: 4px 0 10px; }
.features ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.features li { display: flex; gap: 10px; font-size: .92rem; line-height: 1.45; color: var(--muted); }
.features li strong { color: var(--ink); font-weight: 600; }
.f-icon { flex: none; width: 22px; text-align: center; }
.m-related { grid-column: 1 / -1; padding: 28px 36px 36px; border-top: 1px solid var(--line); }
.m-related h3 { font-size: 1.15rem; margin-bottom: 16px; }
.rel-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.rel { border: 0; background: none; padding: 0; text-align: left; display: flex; flex-direction: column; gap: 4px; }
.rel-media { display: grid; place-items: center; aspect-ratio: 1; background: var(--soft); border-radius: 14px; margin-bottom: 6px; transition: background .2s; }
.rel-media .art { height: 80%; }
.rel-media img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.rel:hover .rel-media { background: #e9e9ec; }
.rel strong { font-size: .9rem; }
.rel .price { font-size: .95rem; }
.close { position: absolute; top: 14px; right: 14px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; font-size: 1.6rem; line-height: 1; box-shadow: 0 2px 10px rgba(0,0,0,.08); }

/* ---- Drawer richiesta ---- */
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 60; width: min(420px, 100%); background: #fff; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.drawer.open { transform: none; }
.drawer-head { position: relative; padding: 24px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 1.35rem; }
.drawer-head .close { top: 16px; right: 16px; box-shadow: none; background: var(--soft); }
.drawer-list { flex: 1; overflow-y: auto; padding: 8px 24px; }
.drawer-list .empty-bag { color: var(--muted); padding: 40px 0; text-align: center; }
.line-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line-item .thumb { width: 64px; height: 64px; border-radius: 12px; background: var(--soft); display: grid; place-items: center; overflow: hidden; }
.line-item .thumb .art { height: 54px; }
.line-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.line-item strong { display: block; font-size: .95rem; }
.line-item small { color: var(--muted); }
.line-item .rm { border: 0; background: none; color: var(--muted); font-size: .8rem; text-decoration: underline; padding: 0; }
.drawer-foot { padding: 20px 24px 24px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.drawer-foot p { margin: 0; text-align: center; }
.total { display: flex; justify-content: space-between; align-items: baseline; }
.total strong { font-family: var(--display); font-size: 1.3rem; }
.scrim { position: fixed; inset: 0; z-index: 55; background: rgba(10,10,11,.45); opacity: 0; pointer-events: none; transition: opacity .3s; }
.scrim.on { opacity: 1; pointer-events: auto; }

/* ---- Hoast ---- */
.toast { position: fixed; left: 50%; bottom: 90px; z-index: 80; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 14px; font-size: .9rem; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; max-width: calc(100% - 32px); text-align: center; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .header-in { flex-wrap: wrap; height: auto; padding-top: 12px; gap: 0 24px; }
  .nav { order: 3; width: 100%; margin: 0; padding: 12px 0; gap: 22px; overflow-x: auto; scrollbar-width: none; }
  .nav a { white-space: nowrap; }
  .bag-btn { margin-left: auto; }
  .spot { grid-template-columns: 1fr; padding: 36px 28px; }
  .spot-art { height: 240px; order: -1; }
  .rel-grid { grid-template-columns: repeat(2, 1fr); }
  .m-related { padding: 24px; }
  .hero-in { grid-template-columns: 1fr; min-height: 0; padding-top: 44px; padding-bottom: 96px; }
  .hero-art { height: 300px; order: -1; }
  .hero-art .art { width: 150px; }
  .guide-grid { grid-template-columns: repeat(2, 1fr); }
  .social-in, .store-in { grid-template-columns: 1fr; }
  .modal-in { grid-template-columns: 1fr; }
  .m-media { min-height: 280px; }
  .m-media .art { height: 240px; }
  .m-info { padding: 24px; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .finder-row { flex-direction: column; }
  .hero-in { gap: 8px; padding-top: 28px; }
  .hero-art { height: 190px; }
  .hero-art .art { width: 96px; }
  .hero-art .art:nth-child(2) { left: 36%; }
  .cats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cat-art { height: 84px; }
  .spotlight { margin-top: 40px; }
  .how { grid-template-columns: 1fr; gap: 24px; padding-top: 64px; padding-bottom: 64px; }
  .guide-grid { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .card-body h3 { font-size: .95rem; }
  .filters { width: 100%; }
  .filters select, .filters input { flex: 1 1 140px; }
  .filters input { width: auto; }
  .fab span { display: none; }
  .fab { padding: 0; width: 56px; justify-content: center; }
  .catalog, .guide, .social, .store { padding-top: 64px; padding-bottom: 64px; }
}
