/* ============================================================
   PAMA GROUP — Rigenerati come nuovi
   Sistema di design: premium, Apple-like (bianco + respiro)
   con anima sostenibile (accento verde economia circolare).
   Colori legati al logo: variabili --brand-* (facili da ritarare).
   ============================================================ */

:root {
  /* — Neutri caldi — */
  --paper:      #FBFBF8;
  --surface:    #FFFFFF;
  --surface-2:  #F4F4EF;
  --ink:        #12160F;
  --ink-soft:   #5C615A;
  --ink-faint:  #8B9089;
  --line:       #E8E7DF;
  --line-soft:  #F0EFE8;

  /* — Brand / sostenibilità — palette ritarata sul logo (teal #0BB497) — */
  --brand-900:  #06463B;
  --brand-700:  #097E6B;
  --brand-600:  #0A9C84;
  --brand-500:  #0BB497;
  --brand-300:  #7AD6C4;
  --brand-50:   #E6F8F4;
  --brand-tint: #F0FBF8;

  /* — Accenti funzionali — */
  --gradeA:     #0A9C84;   /* Grado A = teal brand */
  --gradeA-bg:  #E6F8F4;
  --gradeB:     #9A6B1E;   /* Grado B = bronzo caldo */
  --gradeB-bg:  #F6EFDF;
  --save:       #097E6B;

  /* — Type — */
  --font-display: "Schibsted Grotesk", system-ui, sans-serif;
  --font-body:    "Hanken Grotesk", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;

  /* — Forma — */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --shadow-sm: 0 1px 2px rgba(18,22,15,.04), 0 2px 8px rgba(18,22,15,.04);
  --shadow-md: 0 4px 14px rgba(18,22,15,.06), 0 10px 34px rgba(18,22,15,.07);
  --shadow-lg: 0 18px 50px rgba(18,22,15,.12);

  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.04;
  margin: 0;
  text-wrap: balance;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-600);
  font-weight: 500;
  margin: 0 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1.5px;
  background: var(--brand-500);
  display: inline-block;
}
.section { padding-block: clamp(64px, 9vw, 130px); }
.lead { color: var(--ink-soft); font-size: clamp(17px, 1.4vw, 20px); max-width: 56ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 24px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  transition: transform .25s cubic-bezier(.2,.7,.3,1), background .25s, box-shadow .25s, color .25s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: var(--brand-700); box-shadow: var(--shadow-md); }
.btn--brand { background: var(--brand-600); color: #fff; }
.btn--brand:hover { background: var(--brand-700); box-shadow: 0 10px 26px rgba(28,122,79,.32); }
.btn--ghost { background: transparent; border: 1.5px solid var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); background: var(--surface); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--brand-50); }
.btn--lg { padding: 17px 30px; font-size: 16px; }
.btn .arr { transition: transform .25s; }
.btn:hover .arr { transform: translateX(3px); }

/* ---------- Announcement bar ---------- */
.topbar {
  background: var(--brand-900);
  color: #eaf5ef;
  font-size: 13.5px;
  letter-spacing: -0.005em;
}
.topbar .wrap { display: flex; align-items: center; justify-content: center; gap: 22px; height: 40px; }
.topbar .topbar-track { position: relative; }
.topbar-msg { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; }
@media (max-width: 720px){
  .topbar .topbar-track { display: block; }
  .topbar .sep { display: none; }
  .topbar-msg { position: absolute; inset: 0; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .45s ease; padding: 0 14px; }
  .topbar-msg.is-active { opacity: 1; pointer-events: auto; }
}
.topbar .marq { display: inline-flex; align-items: center; gap: 9px; }
.topbar .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--brand-300); }
.topbar a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.topbar .sep { opacity: .35; }
@media (max-width: 720px){ .topbar .hide-sm { display: none; } }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 60;
  background: #ffffff;
  border-bottom: 1px solid transparent;
  transition: border-color .3s, transform .35s cubic-bezier(.2,.7,.3,1), background .3s;
}
.header.scrolled { border-color: var(--line); }
.header.hidden { transform: translateY(-100%); }
.header .wrap { display: flex; align-items: center; gap: 28px; height: 74px; }
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand .logo-slot {
  width: 38px; height: 38px; border-radius: 11px;
  background: var(--brand-600); color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 19px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}
.brand .logo-slot::part(slot){ border-radius: 11px; }
.brand .name { font-family: var(--font-display); font-weight: 800; font-size: 18.5px; letter-spacing: -0.03em; }
.brand .name span { color: var(--brand-600); }
.brand .name small { display: block; font-family: var(--font-mono); font-size: 9.5px; font-weight: 500; letter-spacing: .18em; color: var(--ink-faint); margin-top: 1px; }
.logo-img { height: 38px; width: auto; display: block; }
.logo-img--footer { height: 34px; }
/* WordPress custom-logo (Customizer) — constrain to header height */
.header .brand img,
.header .brand .custom-logo,
.header .brand .custom-logo-link img { height: 40px !important; width: auto !important; max-width: 230px; object-fit: contain; display: block; }
.footer .brand img { height: 34px; width: auto; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: 0; }
.nav a {
  padding: 9px 14px; border-radius: 100px; font-weight: 500; font-size: 15px; color: var(--ink-soft);
  transition: color .2s, background .2s; white-space: nowrap;
}
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a.is-on { color: var(--brand-700); }
.nav ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav li { list-style: none; display: inline-flex; margin: 0; }
.nav li::before, .nav li::marker { content: none; }

.head-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; color: var(--ink);
  transition: background .2s, transform .2s; position: relative;
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn:active { transform: scale(.92); }
.icon-btn svg { width: 21px; height: 21px; }
.cart-count {
  position: absolute; top: 2px; right: 2px;
  min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 100px; background: var(--brand-600); color: #fff;
  font-size: 11px; font-weight: 700; font-family: var(--font-mono);
  display: grid; place-items: center;
  transform: scale(0); transition: transform .3s cubic-bezier(.2,1.4,.4,1);
  border: 2px solid var(--paper);
}
.cart-count.show { transform: scale(1); }
@media (max-width: 940px){ .nav { display: none; } .brand { order: -1; margin-right: auto; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding-top: clamp(56px, 7vw, 104px); padding-bottom: clamp(56px, 7vw, 104px);
  background:
    radial-gradient(125% 120% at 78% 6%, #0c7766 0%, #07594a 44%, #053e33 76%, #04322900 100%),
    linear-gradient(180deg, #04332a, #042b24);
  color: #eaf7f3;
}
.hero-net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; pointer-events: none; }
.hero-veil { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(78% 56% at 50% 122%, rgba(11,180,151,.20), transparent 60%);
  box-shadow: inset 0 -70px 70px -46px rgba(0,0,0,.4); }
.hero .wrap { position: relative; z-index: 2; }
.hero .eyebrow { color: var(--brand-300); }
.hero .eyebrow::before { background: var(--brand-300); }
.hero-copy h1 { color: #fff; }
.hero-copy .lead { color: #bfe0d7; }
.hero-meta .m b { color: #fff; }
.hero-meta .m span { color: rgba(255,255,255,.88); }
.hero .btn--primary { background: #fff; color: #053a30; }
.hero .btn--primary:hover { background: var(--brand-50); color: #042b24; box-shadow: 0 14px 32px rgba(0,0,0,.32); }
.hero .btn--ghost { border-color: rgba(255,255,255,.30); color: #fff; }
.hero .btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.09); }
.hero .wrap { display: grid; grid-template-columns: 1.18fr 0.82fr; gap: clamp(30px, 5vw, 72px); align-items: center; }
.hero-copy h1 { font-size: clamp(40px, 6.4vw, 82px); font-weight: 800; letter-spacing: -0.04em; }
.hero-copy h1 .accent { color: #5fe6cc; font-style: italic; font-weight: 700; text-shadow: 0 0 26px rgba(11,180,151,.55); }
.hero-copy .lead { margin-top: 26px; font-size: clamp(17px, 1.5vw, 21px); }
.hero-cta { margin-top: 36px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hero-meta { margin-top: 40px; display: flex; gap: 34px; flex-wrap: wrap; }
.hero-meta .m { display: flex; flex-direction: column; gap: 2px; }
.hero-meta .m b { font-family: var(--font-display); font-size: 27px; font-weight: 800; letter-spacing: -0.03em; }
.hero-meta .m span { font-size: 13.5px; }
.hero-meta .m b .unit { font-size: 16px; font-weight: 700; color: rgba(255,255,255,.88); margin-left: 6px; }

.hero-stage { position: relative; max-width: 384px; justify-self: end; width: 100%; }
.hero-stage .glow {
  position: absolute; inset: -14% -8% -10% -8%;
  background: radial-gradient(58% 58% at 60% 40%, rgba(11,180,151,.38), transparent 70%);
  filter: blur(14px); z-index: 0;
}
.hero-card {
  position: relative; z-index: 1;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--r-xl); padding: 14px;
  box-shadow: 0 34px 64px -22px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.20);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
}
.hero-card .hero-img::part(frame){ background: rgba(255,255,255,.92); }
.hero-card .hero-img { display: block; width: 100%; aspect-ratio: 1 / 1; height: auto; border-radius: var(--r-lg); }
.hero-card .hero-row { display: flex; align-items: flex-start; justify-content: space-between; margin-top: 14px; padding: 0 6px 4px; gap: 10px; }
.hero-card .hero-row .t { font-family: var(--font-display); font-weight: 700; font-size: 13px; color: #fff; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 180px; line-height: 1.3; }
.hero-card .hero-row .specs { font-family: var(--font-mono); font-size: 12px; color: #9fc9bf; margin-top: 3px; }
.hero-card .hero-row .pr { text-align: right; flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.hero-card .hero-row .pr s { color: #7fb3a7; }
.hero-card .hero-row .pr .was { font-family: var(--font-mono); font-size: 11.5px; color: #9fc9bf; margin-top: 1px; }
.hero-card .hero-row .pr b { font-family: var(--font-display); font-size: 20px; font-weight: 800; color: #05332a; background: #5fe6cc; padding: 5px 14px; border-radius: 100px; line-height: 1.1; box-shadow: 0 8px 20px rgba(95,230,204,.40); letter-spacing: -.01em; }
.hero-badge {
  position: absolute; z-index: 2; top: -18px; right: -14px;
  width: 96px; height: 96px; border-radius: 50%;
  background: var(--brand-600); color: #fff;
  display: grid; place-items: center; text-align: center;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; line-height: 1.3;
  letter-spacing: .04em; box-shadow: var(--shadow-md);
  transform: rotate(-9deg);
}
.hero-badge b { font-family: var(--font-display); font-size: 20px; display: block; letter-spacing: -.02em; }
.float-chip {
  position: absolute; z-index: 2; background: #fff; border: 1px solid var(--line);
  border-radius: 100px; padding: 9px 15px 9px 11px; box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600;
}
.float-chip svg { width: 17px; height: 17px; color: var(--brand-600); }
.float-chip.c1 { bottom: auto; top: -18px; right: -14px; left: auto; }
.hero .float-chip { background: var(--brand-600); border-color: var(--brand-600); color: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: 0 8px 24px rgba(11,180,151,.45); }
.hero .float-chip svg { color: #fff; }

/* ---------- Hero: slider offerte ---------- */
.hslides { overflow: hidden; border-radius: var(--r-lg); }
.htrack { display: flex; transition: transform .55s cubic-bezier(.3,.8,.2,1); }
.hslide { min-width: 100%; }
.hmedia { position: relative; }
.hnav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 14px; }
.harrow { width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(255,255,255,.28); color: #fff; display: grid; place-items: center; transition: .2s; }
.harrow:hover { background: rgba(255,255,255,.13); border-color: #fff; }
.harrow svg { width: 15px; height: 15px; }
.hdots { display: flex; align-items: center; gap: 7px; }
.hdot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.32); transition: .25s; padding: 0; border: none; }
.hdot.on { background: #fff; width: 20px; border-radius: 100px; }
.ribbons { position: absolute; top: 12px; left: 0; z-index: 4; display: flex; flex-direction: column; gap: 7px; }
.ribbon { display: inline-flex; align-items: center; height: 27px; padding: 0 16px 0 12px;
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; letter-spacing: .03em; color: #fff;
  box-shadow: 0 6px 16px rgba(0,0,0,.28);
  clip-path: polygon(0 0, 100% 0, calc(100% - 9px) 50%, 100% 100%, 0 100%); }
.ribbon.r-save { background: #12160F; }
.ribbon.r-a { background: var(--brand-600); }
.ribbon.r-b { background: var(--gradeB); }

/* ---------- Striscia categorie ---------- */
.catbar { background: var(--brand-tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; z-index: 40; }
.catbar .wrap { display: flex; align-items: center; gap: 4px; height: 64px; overflow-x: auto; scrollbar-width: none; }
.catbar .wrap::-webkit-scrollbar { display: none; }
.cb-item { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 100px; font-weight: 600; font-size: 14.5px; color: var(--ink); white-space: nowrap; transition: background .2s, color .2s, box-shadow .2s; }
.cb-item:hover { background: #fff; color: var(--brand-700); box-shadow: 0 2px 10px rgba(18,22,15,.07); }
.cb-item .ci { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: #fff; box-shadow: 0 1px 3px rgba(18,22,15,.10); color: var(--brand-600); flex-shrink: 0; transition: background .2s, color .2s, box-shadow .2s; }
.cb-item .ci svg { width: 18px; height: 18px; }
.cb-item:hover .ci { background: var(--brand-600); color: #fff; box-shadow: 0 4px 12px rgba(10,156,132,.32); }
.cb-all { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 13.5px; color: var(--brand-700); white-space: nowrap; padding-left: 18px; border-left: 1px solid var(--line); }
.cb-all span { transition: transform .2s; }
.cb-all:hover span { transform: translateX(3px); }
@media (max-width: 720px){ .cb-all { display: none; } }
@media (max-width: 900px){
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-stage { max-width: 420px; justify-self: center; margin-inline: auto; width: 100%; }
  .float-chip.c1 { top: -18px; right: -8px; left: auto; bottom: auto; }
  .hero-badge { right: 8px; }
}

/* ---------- USP strip ---------- */
.usp { border-block: 1px solid var(--line); background: var(--surface); }
.usp .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.usp .u { padding: 18px 20px; display: flex; gap: 12px; align-items: center; border-left: 1px solid var(--line-soft); }
.usp .u:first-child { border-left: none; }
.usp .u .ic { width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px; background: var(--brand-tint); color: var(--brand-700); display: grid; place-items: center; }
.usp .u .ic svg { width: 18px; height: 18px; }
.usp .u b { font-family: var(--font-display); font-size: 14.5px; font-weight: 700; display: block; }
.usp .u span { font-size: 12.5px; color: var(--ink-soft); line-height: 1.35; }
@media (max-width: 900px){ .usp .wrap { grid-template-columns: 1fr 1fr; } .usp .u:nth-child(3){ border-left: none; } }
@media (max-width: 560px){ .usp .wrap { grid-template-columns: 1fr; } .usp .u { border-left: none; border-top: 1px solid var(--line-soft); } .usp .u:first-child{ border-top: none; } }

/* ---------- PC Finder ---------- */
.finder { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(180deg, var(--brand-tint), var(--brand-50)); }
.finder .wrap { position: relative; z-index: 1; }

/* Scanning light beams sweeping left → right (search motion) */
.finder-fx { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.finder-fx::before {
  content: ""; position: absolute; inset: 0; opacity: .45;
  background-image:
    linear-gradient(rgba(10,156,132,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,156,132,.06) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(85% 75% at 50% 45%, #000 35%, transparent 82%);
          mask-image: radial-gradient(85% 75% at 50% 45%, #000 35%, transparent 82%);
}
.finder-fx .beam {
  position: absolute; left: -50%; width: 48%; height: 2px; border-radius: 100px;
  background: linear-gradient(90deg, transparent, var(--brand-500) 40%, rgba(13,224,190,.95) 60%, transparent);
  filter: blur(1.4px); opacity: 0; transform: translateX(0);
  animation: pama-beam linear infinite; will-change: transform, opacity;
}
.finder-fx .beam::after {
  content: ""; position: absolute; inset: -7px 0; border-radius: 100px;
  background: linear-gradient(90deg, transparent, rgba(11,180,151,.30) 50%, transparent);
  filter: blur(9px);
}
.finder-fx .b1 { top: 16%; width: 52%; animation-duration: 6.5s; animation-delay: 0s; }
.finder-fx .b2 { top: 34%; width: 38%; height: 1px; opacity: .7; animation-duration: 8.2s; animation-delay: 1.7s; }
.finder-fx .b3 { top: 57%; width: 46%; animation-duration: 7s; animation-delay: 3.1s; }
.finder-fx .b4 { top: 74%; width: 34%; height: 1px; animation-duration: 9s; animation-delay: .9s; }
.finder-fx .b5 { top: 90%; width: 56%; animation-duration: 7.6s; animation-delay: 2.4s; }
@keyframes pama-beam {
  0%   { transform: translateX(0);    opacity: 0; }
  8%   { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateX(330%); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .finder-fx .beam { animation: none; opacity: 0; }
}

.finder-card { position: relative; z-index: 1; background: rgba(255,255,255,.82); border: 1px solid rgba(255,255,255,.9); border-radius: var(--r-xl); padding: clamp(24px, 3.4vw, 44px); box-shadow: 0 30px 70px -30px rgba(9,126,107,.35), 0 2px 8px rgba(18,22,15,.04); backdrop-filter: blur(18px) saturate(130%); -webkit-backdrop-filter: blur(18px) saturate(130%); }
.finder-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 30px; }
.finder-head h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; }
.finder-head .lead { margin-top: 10px; }
.finder-badge { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 140px; padding: 16px 24px; border-radius: var(--r-lg); background: var(--brand-tint); border: 1px solid var(--brand-50); text-align: center; }
.finder-badge b { font-family: var(--font-display); font-size: 40px; font-weight: 800; color: var(--brand-700); line-height: 1; letter-spacing: -.03em; transition: transform .2s; }
.finder-badge span { font-size: 12px; color: var(--brand-700); margin-top: 5px; font-weight: 600; }
.finder-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.fgroup h4 { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-faint); font-weight: 500; margin-bottom: 14px; }
.fgroup .chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.fchip { padding: 9px 15px; border-radius: 100px; border: 1.5px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--ink-soft); background: #fff; transition: all .18s; }
.fchip:hover { border-color: var(--ink); color: var(--ink); }
.fchip.on { background: var(--brand-600); border-color: var(--brand-600); color: #fff; box-shadow: 0 4px 12px rgba(10,156,132,.25); }
.finder-results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 24px 0; }
.fi-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); animation: cardIn .35s ease both; }
.fi-item:hover { border-color: var(--brand-300); box-shadow: var(--shadow-sm); }
.fi-grade { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-family: var(--font-mono); font-weight: 700; font-size: 13px; flex-shrink: 0; }
.fi-grade.gA { background: var(--gradeA-bg); color: var(--gradeA); }
.fi-grade.gB { background: var(--gradeB-bg); color: var(--gradeB); }
.fi-info { min-width: 0; flex: 1; }
.fi-info b { font-family: var(--font-display); font-size: 13.5px; font-weight: 700; display: block; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fi-info span { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-faint); }
.fi-price { text-align: right; flex-shrink: 0; }
.fi-price s { display: block; font-size: 10.5px; color: var(--ink-faint); }
.fi-price b { font-family: var(--font-display); font-size: 15px; font-weight: 800; }
.fi-empty { grid-column: 1/-1; text-align: center; padding: 28px; color: var(--ink-soft); font-size: 14.5px; }
.finder-cta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
@media (max-width: 860px){ .finder-groups { grid-template-columns: 1fr; gap: 20px; } .finder-results { grid-template-columns: 1fr; } }

/* ---------- Section heading ---------- */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 46px; flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(30px, 4vw, 50px); font-weight: 800; }
.sec-head .lead { margin-top: 14px; }

/* ---------- Categories ---------- */
.cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.cat {
  position: relative; border-radius: var(--r-md); border: 1px solid var(--line);
  background: var(--surface); padding: 20px 18px 18px; overflow: hidden;
  transition: transform .3s cubic-bezier(.2,.7,.3,1), box-shadow .3s, border-color .3s;
  text-align: left; display: flex; flex-direction: column; gap: 44px; min-height: 158px;
}
.cat:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand-300); }
.cat .ic { width: 40px; height: 40px; border-radius: 11px; background: var(--surface-2); display: grid; place-items: center; color: var(--ink); transition: background .3s, color .3s; }
.cat:hover .ic { background: var(--brand-600); color: #fff; }
.cat .ic svg { width: 22px; height: 22px; }
.cat .lab { font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.cat .n { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-faint); margin-top: 2px; display: block; }
.cat .go { position: absolute; top: 18px; right: 16px; opacity: 0; transform: translate(-4px,4px); transition: .3s; color: var(--brand-600); }
.cat:hover .go { opacity: 1; transform: none; }
@media (max-width: 900px){ .cats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px){ .cats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Shop (filters + grid) ---------- */
.shop { background: var(--surface); border-block: 1px solid var(--line); }
.shop-layout { display: grid; grid-template-columns: 252px 1fr; gap: 40px; align-items: start; }
.filters { position: sticky; top: 92px; }
.filter-block { padding: 20px 0; border-bottom: 1px solid var(--line); }
.filter-block:first-child { padding-top: 0; }
.filter-block h4 { font-size: 13px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--ink-faint); font-weight: 500; margin-bottom: 14px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 14px; border-radius: 100px; border: 1.5px solid var(--line);
  font-size: 13.5px; font-weight: 600; color: var(--ink-soft); background: var(--surface);
  transition: all .2s;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.on.green { background: var(--brand-600); border-color: var(--brand-600); }
.f-check { display: flex; align-items: center; gap: 11px; padding: 7px 0; font-size: 14.5px; color: var(--ink-soft); cursor: pointer; transition: color .2s; }
.f-check:hover { color: var(--ink); }
.f-check input { display: none; }
.f-check .box { width: 19px; height: 19px; border-radius: 6px; border: 1.5px solid var(--line); display: grid; place-items: center; flex-shrink: 0; transition: all .2s; }
.f-check input:checked + .box { background: var(--brand-600); border-color: var(--brand-600); }
.f-check .box svg { width: 12px; height: 12px; color: #fff; opacity: 0; transition: opacity .15s; }
.f-check input:checked + .box svg { opacity: 1; }
.f-check .ct { margin-left: auto; font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); }
.price-range { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.price-range input[type=range]{ flex: 1; accent-color: var(--brand-600); }
.price-range .pv { font-family: var(--font-mono); font-size: 13px; font-weight: 600; white-space: nowrap; }
.filter-reset { font-size: 13px; color: var(--brand-700); font-weight: 600; margin-top: 4px; }
.filter-reset:hover { text-decoration: underline; }
.filters-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.filters-head h3 { margin: 0 auto 0 0; }
.filters-head .filter-reset { margin-top: 0; }
.pama-filters-toggle {
  display: none; align-items: center; gap: 9px; padding: 11px 18px; border-radius: 100px;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink);
  font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; margin-bottom: 18px;
}
.pama-filters-toggle:hover { border-color: var(--ink); }
.pama-filters-close {
  display: none; width: 38px; height: 38px; border-radius: 10px; border: 0;
  background: var(--surface-2); color: var(--ink); align-items: center; justify-content: center; cursor: pointer; padding: 0;
}

.shop-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.shop-bar .count { font-size: 14px; color: var(--ink-soft); }
.shop-bar .count b { color: var(--ink); font-family: var(--font-display); }
.sort { display: flex; align-items: center; gap: 9px; position: relative; }
.sort::after { content: ""; position: absolute; right: 14px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.sort select {
  font: inherit; font-size: 14px; font-weight: 600; padding: 9px 34px 9px 14px; border-radius: 100px;
  border: 1.5px solid var(--line); background: var(--surface);
  -webkit-appearance: none; appearance: none; cursor: pointer; color: var(--ink);
}
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 1100px){ .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 980px){
  .shop-layout { grid-template-columns: 1fr; }
  .filters {
    position: fixed; top: 0; left: 0; height: 100%; width: min(86vw, 340px);
    margin: 0; padding: 22px 20px; border: 0; border-radius: 0; display: block;
    background: var(--surface); z-index: 100; overflow-y: auto; -webkit-overflow-scrolling: touch;
    transform: translateX(-100%); transition: transform .32s cubic-bezier(.2,.8,.2,1);
  }
  .filters.open { transform: translateX(0); box-shadow: 12px 0 40px rgba(8,14,11,.18); }
  .pama-filters-toggle { display: inline-flex; }
  .pama-filters-close { display: inline-flex; }
}
@media (max-width: 520px){ .grid { grid-template-columns: 1fr; } }

/* ---------- Product card ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .3s cubic-bezier(.2,.7,.3,1), box-shadow .3s, border-color .3s;
  animation: cardIn .5s cubic-bezier(.2,.7,.3,1) both;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(14px); } }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--brand-300); }
.card .media { position: relative; aspect-ratio: 4/3.2; background: var(--surface-2); }
.card .media image-slot { width: 100%; height: 100%; }
.card .badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 7px; z-index: 2; }
.badge {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: .04em;
  padding: 5px 9px; border-radius: 100px; text-transform: uppercase;
}
.badge.gA { background: var(--gradeA-bg); color: var(--gradeA); }
.badge.gB { background: var(--gradeB-bg); color: var(--gradeB); }
.badge.save { background: var(--ink); color: #fff; }
.card .wish { position: absolute; top: 11px; right: 11px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.86); backdrop-filter: blur(6px); display: grid; place-items: center; color: var(--ink); transition: .2s; }
.card .wish:hover { background: #fff; color: var(--brand-600); transform: scale(1.08); }
.card .wish svg { width: 17px; height: 17px; }
.card .wish.on { color: #d23; }
.card .body { padding: 16px 16px 18px; display: flex; flex-direction: column; flex: 1; }
.card .brand-row { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 6px; }
.card h3 { font-size: 16.5px; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; }
.card .specs { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 14px; }
.card .specs .s { font-family: var(--font-mono); font-size: 11px; color: var(--ink-soft); background: var(--surface-2); padding: 4px 8px; border-radius: 6px; }
.card .foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.card .price b { font-family: var(--font-display); font-size: 23px; font-weight: 800; letter-spacing: -.03em; }
.card .price s { display: block; font-size: 13px; color: var(--ink-faint); margin-bottom: -2px; }
.card .add {
  width: 44px; height: 44px; border-radius: 13px; background: var(--ink); color: #fff;
  display: grid; place-items: center; transition: .25s; flex-shrink: 0;
}
.card .add:hover { background: var(--brand-600); transform: scale(1.06); }
.card .add svg { width: 20px; height: 20px; }
.card .add.done { background: var(--brand-600); }
.empty-state { grid-column: 1/-1; text-align: center; padding: 70px 20px; color: var(--ink-soft); }
.empty-state svg { width: 40px; height: 40px; color: var(--ink-faint); margin-bottom: 12px; }

/* ---------- Sustainability band ---------- */
.eco { background: var(--brand-900); color: #eaf5ef; position: relative; overflow: hidden; }
.eco::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 85% 20%, rgba(43,168,106,.22), transparent 60%); pointer-events: none; }
.eco .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.eco .eyebrow { color: var(--brand-300); }
.eco .eyebrow::before { background: var(--brand-300); }
.eco h2 { font-size: clamp(30px, 4vw, 52px); font-weight: 800; color: #fff; }
.eco p { color: #c4dcce; margin-top: 20px; font-size: 18px; max-width: 48ch; }
.eco-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.eco-stat { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-md); padding: 26px 24px; }
.eco-stat b { font-family: var(--font-display); font-size: clamp(34px, 4vw, 46px); font-weight: 800; color: #fff; letter-spacing: -.03em; display: block; }
.eco-stat b .u { font-size: 18px; color: var(--brand-300); }
.eco-stat span { font-size: 14px; color: #a9c8b6; margin-top: 4px; display: block; }
.eco-img { width: 100%; aspect-ratio: 1/1; border-radius: var(--r-lg); }
@media (max-width: 860px){ .eco .wrap { grid-template-columns: 1fr; } }

/* ---------- Grado A / B ---------- */
.grades { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grade-card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; background: var(--surface); position: relative; overflow: hidden; }
.grade-card .tag { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: .08em; padding: 6px 12px; border-radius: 100px; text-transform: uppercase; }
.grade-card.a .tag { background: var(--gradeA-bg); color: var(--gradeA); }
.grade-card.b .tag { background: var(--gradeB-bg); color: var(--gradeB); }
.grade-card h3 { font-size: 26px; margin-top: 18px; }
.grade-card p { color: var(--ink-soft); margin: 12px 0 20px; }
.grade-card ul li { display: flex; gap: 11px; padding: 9px 0; border-top: 1px solid var(--line-soft); font-size: 15px; }
.grade-card ul li svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--brand-600); margin-top: 2px; }
@media (max-width: 720px){ .grades { grid-template-columns: 1fr; } }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: st; }
.step { padding: 28px 22px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); position: relative; }
.step .no { font-family: var(--font-mono); font-size: 13px; color: var(--brand-600); font-weight: 600; }
.step .ic { width: 46px; height: 46px; border-radius: 13px; background: var(--brand-tint); color: var(--brand-700); display: grid; place-items: center; margin: 14px 0 16px; }
.step .ic svg { width: 24px; height: 24px; }
.step h4 { font-size: 18px; }
.step p { color: var(--ink-soft); font-size: 14.5px; margin-top: 8px; line-height: 1.5; }
@media (max-width: 880px){ .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px){ .steps { grid-template-columns: 1fr; } }

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.review { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 26px; display: flex; flex-direction: column; }
.review .stars { display: flex; gap: 2px; color: #e0a500; margin-bottom: 14px; }
.review .stars svg { width: 17px; height: 17px; }
.review p { font-size: 16px; line-height: 1.55; }
.review .who { margin-top: auto; padding-top: 18px; display: flex; align-items: center; gap: 11px; }
.review .av { width: 40px; height: 40px; border-radius: 50%; background: var(--brand-tint); color: var(--brand-700); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.review .who b { font-size: 14.5px; display: block; font-family: var(--font-display); }
.review .who span { font-size: 12.5px; color: var(--ink-faint); }
.review .vbadge { margin-left: auto; font-family: var(--font-mono); font-size: 10.5px; color: var(--brand-700); display: flex; align-items: center; gap: 4px; }
.review .vbadge svg { width: 13px; height: 13px; }
@media (max-width: 880px){ .reviews { grid-template-columns: 1fr; } }

/* ---------- Newsletter ---------- */
.news { background: var(--surface-2); }
.news-card { background: var(--ink); color: #fff; border-radius: var(--r-xl); padding: clamp(36px, 5vw, 64px); text-align: center; position: relative; overflow: hidden; }
.news-card::after { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 90% at 50% 120%, rgba(43,168,106,.35), transparent 60%); }
.news-card > * { position: relative; z-index: 1; }
.news-card h2 { font-size: clamp(28px, 4vw, 46px); color: #fff; }
.news-card p { color: #b9bdb4; margin: 16px auto 30px; max-width: 46ch; }
.news-form { display: flex; gap: 10px; max-width: 460px; margin: 0 auto; }
.news-form input { flex: 1; padding: 16px 20px; border-radius: 100px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.07); color: #fff; font: inherit; font-size: 15px; }
.news-form input::placeholder { color: #8b9089; }
.news-form input:focus { outline: none; border-color: var(--brand-500); background: rgba(255,255,255,.12); }
.news-note { font-size: 12.5px; color: #8b9089; margin-top: 16px; }
@media (max-width: 560px){ .news-form { flex-direction: column; } }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #b9bdb4; padding-top: 64px; }
.footer .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer .brand { display: block; }
.footer .brand img { display: block; margin-bottom: 4px; }
.footer .brand .name { color: #fff; }
.footer .brand p { font-size: 14px; margin: 16px 0 20px; max-width: 34ch; line-height: 1.55; }
.footer .contact { font-size: 14px; display: flex; flex-direction: column; gap: 9px; }
.footer .contact a { display: flex; align-items: center; gap: 9px; }
.footer .contact a:hover { color: #fff; }
.footer .contact svg { width: 16px; height: 16px; color: var(--brand-300); flex-shrink: 0; }
.footer h5 { color: #fff; font-family: var(--font-display); font-size: 14px; letter-spacing: .02em; margin-bottom: 16px; text-transform: uppercase; }
.footer .fcol a { display: block; font-size: 14px; padding: 6px 0; }
.footer .fcol a:hover { color: #fff; }
.footer .legal { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 0 30px; font-size: 13px; flex-wrap: wrap; }
.footer .legal .pay { display: flex; gap: 8px; align-items: center; }
.footer .legal .pay span { font-family: var(--font-mono); font-size: 11px; padding: 4px 8px; border: 1px solid rgba(255,255,255,.16); border-radius: 6px; }
@media (max-width: 820px){ .footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px){ .footer .cols { grid-template-columns: 1fr; } }

/* ---------- Cart drawer ---------- */
.overlay { position: fixed; inset: 0; background: rgba(18,22,15,.4); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .35s; z-index: 90; }
.overlay.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(430px, 100%); z-index: 100;
  background: var(--paper); box-shadow: var(--shadow-lg);
  transform: translateX(100%); transition: transform .42s cubic-bezier(.3,.8,.2,1);
  display: flex; flex-direction: column;
}
.drawer.open { transform: none; }
.drawer-head { padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-size: 19px; display: flex; align-items: center; gap: 9px; }
.drawer-head .ct { font-family: var(--font-mono); font-size: 13px; color: var(--ink-soft); background: var(--surface-2); padding: 3px 9px; border-radius: 100px; }
.drawer-close { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; }
.drawer-close:hover { background: var(--surface-2); }
.ship-bar { padding: 16px 24px; background: var(--brand-tint); border-bottom: 1px solid var(--line); }
.ship-bar .t { font-size: 13.5px; display: flex; gap: 6px; align-items: center; }
.ship-bar .t svg { width: 16px; height: 16px; color: var(--brand-600); }
.ship-bar .t b { color: var(--brand-700); }
.ship-track { height: 6px; border-radius: 100px; background: #fff; margin-top: 10px; overflow: hidden; border: 1px solid var(--line); }
.ship-fill { height: 100%; background: var(--brand-500); border-radius: 100px; width: 0; transition: width .5s cubic-bezier(.3,.8,.2,1); }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 24px; }
.line-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line-soft); align-items: center; }
.line-item .thumb { width: 64px; height: 64px; border-radius: 12px; background: var(--surface-2); overflow: hidden; }
.line-item .thumb image-slot { width: 100%; height: 100%; pointer-events: none; }
.line-item .li-name { font-family: var(--font-display); font-weight: 700; font-size: 14.5px; line-height: 1.2; }
.line-item .li-meta { font-family: var(--font-mono); font-size: 11px; color: var(--ink-faint); margin-top: 3px; }
.qty { display: inline-flex; align-items: center; gap: 0; margin-top: 9px; border: 1px solid var(--line); border-radius: 100px; }
.qty button { width: 26px; height: 26px; display: grid; place-items: center; color: var(--ink-soft); }
.qty button:hover { color: var(--ink); }
.qty span { min-width: 24px; text-align: center; font-family: var(--font-mono); font-size: 13px; font-weight: 600; }
.line-item .li-right { text-align: right; }
.line-item .li-price { font-family: var(--font-display); font-weight: 800; font-size: 15px; }
.line-item .li-del { font-size: 11.5px; color: var(--ink-faint); margin-top: 8px; }
.line-item .li-del:hover { color: #d23; }
.cart-empty { text-align: center; padding: 60px 20px; color: var(--ink-soft); }
.cart-empty svg { width: 46px; height: 46px; color: var(--line); margin-bottom: 14px; }
.drawer-foot { padding: 20px 24px 24px; border-top: 1px solid var(--line); background: var(--surface); }
.drawer-foot .row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; font-size: 14px; color: var(--ink-soft); }
.drawer-foot .row.total { margin: 12px 0 18px; }
.drawer-foot .row.total b { font-family: var(--font-display); font-size: 24px; color: var(--ink); font-weight: 800; }
.drawer-foot .btn { width: 100%; }
.drawer-foot .sec-note { text-align: center; font-size: 12px; color: var(--ink-faint); margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.drawer-foot .sec-note svg { width: 13px; height: 13px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translate(-50%, 120%);
  background: var(--ink); color: #fff; padding: 14px 20px; border-radius: 100px;
  display: flex; align-items: center; gap: 11px; font-size: 14.5px; font-weight: 600;
  box-shadow: var(--shadow-lg); z-index: 120; transition: transform .4s cubic-bezier(.2,1.2,.3,1);
}
.toast.show { transform: translate(-50%, 0); }
.toast svg { width: 19px; height: 19px; color: var(--brand-300); }
.toast .x { margin-left: 6px; opacity: .6; }

/* reduced motion */
@media (prefers-reduced-motion: reduce){ * { animation-duration: .01ms !important; transition-duration: .01ms !important; } html { scroll-behavior: auto; } }

/* ============================================================
   Mobile menu (offcanvas) + ricerca avanzata + rifiniture responsive
   ============================================================ */

/* Hamburger: solo mobile */
.nav-toggle { display: none; }
@media (max-width: 940px) { .nav-toggle { display: inline-flex; } }
@media (max-width: 560px) { .icon-btn.hide-sm-flex { display: none; } }

/* Overlay backdrop (drawer) */
.pama-overlay { position: fixed; inset: 0; background: rgba(8,14,11,.5); opacity: 0; transition: opacity .3s; z-index: 90; }
.pama-overlay.show { opacity: 1; }

/* Drawer offcanvas */
.pama-drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(86vw, 360px);
  background: #fff; z-index: 100; transform: translateX(100%);
  transition: transform .32s cubic-bezier(.2,.8,.2,1);
  display: flex; flex-direction: column; box-shadow: -12px 0 40px rgba(8,14,11,.18);
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.pama-drawer.open { transform: translateX(0); }
.pama-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line-soft); }
.pama-drawer-logo { height: 34px; width: auto; max-width: 180px; object-fit: contain; }
.pama-drawer-close { width: 40px; height: 40px; border-radius: 10px; border: 0; background: var(--surface-2); color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.pama-drawer-search {
  margin: 16px 20px 8px; display: flex; align-items: center; gap: 10px; width: calc(100% - 40px);
  padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink-soft); font-size: 14.5px; cursor: pointer; text-align: left; font-family: inherit;
}
.pama-drawer-search svg { color: var(--brand-600); flex-shrink: 0; }
.pama-drawer-nav { display: flex; flex-direction: column; padding: 8px 12px; }
.pama-drawer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.pama-drawer-nav li { margin: 0; }
.pama-drawer-nav li::before, .pama-drawer-nav li::marker { content: none; }
.pama-drawer-nav a { padding: 13px 16px; border-radius: 10px; font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--ink); text-decoration: none; }
.pama-drawer-nav a:hover { background: var(--surface-2); }
.pama-drawer-cats { padding: 12px 20px; border-top: 1px solid var(--line-soft); margin-top: 6px; }
.pama-drawer-label { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 10px; }
.pama-drawer-cat { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.pama-drawer-cat:hover { background: var(--surface-2); }
.pama-drawer-cat .ci { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: var(--brand-tint); color: var(--brand-700); flex-shrink: 0; }
.pama-drawer-cat .ci svg { width: 18px; height: 18px; }
.pama-drawer-all { display: inline-block; margin-top: 8px; padding: 8px; color: var(--brand-700); font-weight: 700; font-size: 14px; text-decoration: none; }
.pama-drawer-foot { margin-top: auto; display: flex; border-top: 1px solid var(--line-soft); }
.pama-drawer-foot a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 9px; padding: 18px 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; }
.pama-drawer-foot a:first-child { border-right: 1px solid var(--line-soft); }
.pama-drawer-foot svg { color: var(--brand-600); }

/* Ricerca — overlay */
.pama-search {
  position: fixed; inset: 0; z-index: 120; background: rgba(8,14,11,.55);
  opacity: 0; visibility: hidden; transition: opacity .28s, visibility .28s;
  display: flex; align-items: flex-start; justify-content: center; padding: 24px 16px;
}
.pama-search.open { opacity: 1; visibility: visible; }
.pama-search-panel {
  width: min(720px, 100%); background: #fff; border-radius: 18px; margin-top: 6vh;
  box-shadow: 0 30px 80px rgba(8,14,11,.32); overflow: hidden; transform: translateY(-14px);
  transition: transform .28s; display: flex; flex-direction: column; max-height: 84vh;
}
.pama-search.open .pama-search-panel { transform: translateY(0); }
.pama-search-bar { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line-soft); }
.pama-search-bar > svg { color: var(--brand-600); flex-shrink: 0; }
.pama-search-bar input { flex: 1; border: 0; outline: 0; font-size: 17px; font-family: var(--font-display); font-weight: 600; color: var(--ink); background: transparent; }
.pama-search-close { width: 38px; height: 38px; border-radius: 10px; border: 0; background: var(--surface-2); color: var(--ink); cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pama-search-body { padding: 16px 18px; overflow-y: auto; }
.pama-search-label { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 10px; }
.pama-trend-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pama-chip { border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 8px 14px; border-radius: 100px; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: background .15s, color .15s, border-color .15s; font-family: inherit; }
.pama-chip:hover { background: var(--brand-600); color: #fff; border-color: transparent; }
.pama-search-results { margin-top: 14px; display: flex; flex-direction: column; gap: 4px; }
.pama-search-it { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 12px; text-decoration: none; color: var(--ink); }
.pama-search-it:hover { background: var(--surface-2); }
.pama-search-it img { width: 52px; height: 52px; object-fit: contain; background: #fff; border: 1px solid var(--line-soft); border-radius: 10px; flex-shrink: 0; }
.pama-search-it-t { flex: 1; font-weight: 600; font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pama-search-it-p { font-family: var(--font-display); font-weight: 800; color: var(--brand-700); white-space: nowrap; }
.pama-search-it-p del { color: var(--ink-soft); font-weight: 400; font-size: .85em; margin-right: 4px; }
.pama-search-loading, .pama-search-empty { padding: 18px 4px; color: var(--ink-soft); font-size: 14px; }
.pama-search-go { padding: 14px 18px; border-top: 1px solid var(--line-soft); }
.pama-search-go .btn { width: 100%; justify-content: center; }
@media (max-width: 560px) { .pama-search { padding: 10px; } .pama-search-panel { margin-top: 0; border-radius: 14px; max-height: 92vh; } }

/* Rifiniture responsive */
@media (max-width: 900px) {
  .pama-product__media { max-width: 540px; margin-inline: auto; width: 100%; }
}
@media (max-width: 560px) {
  .hero-copy h1 { font-size: clamp(34px, 9vw, 46px); }
  .hero-meta { gap: 22px; }
  .hero-meta .m b { font-size: 22px; }
  .hero-cta .btn { flex: 1; justify-content: center; }
  .hero-stage { max-width: 340px; }
}
