/* ============================================================
   PANARU BOX — Theme CSS (Checkpoint 1)
   Header + Hero + typography + palette
   Palette: FROZEN 10 colors + logo native #231F20 (brand asset exception)
   Type scale: FROZEN minimums (body >=17 mobile / ~18 desktop;
   secondary >=15; CTA >=16; tap target >=44)
   Typeface pairing (PROPOSAL, carried from Visual Direction board — awaiting lock):
   Fraunces (display) + Instrument Sans (UI)
   ============================================================ */

/* ---------- Fonts (self-hosted, variable) ---------- */
@font-face{
  font-family:"Fraunces";
  src:url("../fonts/Fraunces.woff2") format("woff2");
  font-weight:100 900; font-style:normal; font-display:swap;
}
@font-face{
  font-family:"Instrument Sans";
  src:url("../fonts/InstrumentSans.woff2") format("woff2");
  font-weight:400 700; font-style:normal; font-display:swap;
}

/* ---------- Design tokens ---------- */
:root{
  /* FROZEN palette */
  --ivory:#F3F0E9;
  --ink:#282723;
  --forest:#335656;
  --sage:#A4B1A3;
  --warm-surface:#E2DFD1;
  --divider:#DCD6C7;
  --warm-taupe:#8A7F6E;
  --muted-text:#6E655B;
  --white:#FFFFFF;
  --early-bird:#B8912E;
  /* Logo native — brand asset exception, logo use only */
  --logo-ink:#231F20;

  /* Fonts */
  --font-display:"Fraunces", Georgia, "Times New Roman", serif;
  --font-ui:"Instrument Sans", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;

  /* Type scale (fluid; respects FROZEN minimums) */
  --fs-body:clamp(1.0625rem, 0.98rem + 0.4vw, 1.125rem);   /* 17 -> 18 */
  --fs-secondary:clamp(0.9375rem, 0.90rem + 0.2vw, 1rem);  /* 15 -> 16 */
  --fs-cta:1rem;                                            /* 16 min */
  --fs-eyebrow:clamp(0.75rem, 0.72rem + 0.15vw, 0.8125rem);
  --fs-h1:clamp(1.9rem, 1.15rem + 3.4vw, 4.25rem);
  --fs-h2:clamp(1.6rem, 1.25rem + 1.6vw, 2.4rem);
  --fs-nav:0.95rem;

  /* Spacing / layout */
  --wrap:1200px;
  --gutter:clamp(1rem, 0.5rem + 2.4vw, 2.5rem);
  --header-h:76px;
  --radius:4px;
  --tap:44px;

  --ease:cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset / base ---------- */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;
  font-family:var(--font-ui);
  font-size:var(--fs-body);
  line-height:1.6;
  color:var(--ink);
  background:var(--ivory);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}
h1,h2,h3{font-family:var(--font-display);font-weight:500;line-height:1.08;margin:0;letter-spacing:-.01em}
:focus-visible{outline:2px solid var(--forest);outline-offset:3px}

.wrap{max-width:var(--wrap);margin-inline:auto;padding-inline:var(--gutter)}
.skip-link{position:absolute;left:-9999px}
.skip-link:focus{left:1rem;top:1rem;z-index:1000;background:var(--ink);color:var(--ivory);padding:.6rem 1rem;border-radius:var(--radius)}

/* ---------- Header ---------- */
.site-header{
  position:sticky;top:0;z-index:100;
  background:var(--ivory);
  border-bottom:1px solid var(--divider);
}
.site-header__bar{
  display:flex;align-items:center;justify-content:space-between;gap:1.5rem;
  min-height:var(--header-h);
}
.brand{display:flex;align-items:center;gap:.75rem;flex:0 0 auto}
.brand__logo{height:44px;width:auto;display:inline-flex}
/* aspect-ratio reserves space (no CLS) for the official header logo — box-left lockup (1355.8×430.4) */
.brand__logo svg,.brand__logo img{height:44px;width:auto;aspect-ratio:1355.8/430.4;display:block}
.brand__sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}

.primary-nav{display:flex;align-items:center}
.primary-nav .menu{display:flex;align-items:center;gap:clamp(1rem,2vw,2rem);list-style:none;margin:0;padding:0}
.primary-nav .menu li{margin:0}
.primary-nav a{
  font-size:var(--fs-nav);letter-spacing:.02em;color:var(--ink);
  padding:.5rem 0;position:relative;white-space:nowrap;display:inline-block;
}
.primary-nav a::after{
  content:"";position:absolute;left:0;right:100%;bottom:2px;height:1px;
  background:var(--forest);transition:right .28s var(--ease);
}
.primary-nav a:hover::after,.primary-nav a:focus-visible::after{right:0}

.header-actions{display:flex;align-items:center;gap:1rem;flex:0 0 auto}
.lang-switch{font-size:var(--fs-secondary);color:var(--muted-text);letter-spacing:.04em}
.lang-switch a[aria-current="true"]{color:var(--ink);font-weight:600}
.lang-switch span{opacity:.5;margin:0 .35rem}

.btn{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:var(--tap);padding:.7rem 1.4rem;
  font-family:var(--font-ui);font-size:var(--fs-cta);font-weight:600;
  letter-spacing:.02em;line-height:1;border-radius:var(--radius);
  border:1px solid transparent;cursor:pointer;transition:background .2s var(--ease),color .2s var(--ease),border-color .2s var(--ease);
}
.btn--primary{background:var(--forest);color:var(--ivory)}
.btn--primary:hover,.btn--primary:focus-visible{background:#294746}
.btn--ghost{background:transparent;color:var(--ink);border-color:var(--ink)}
.btn--ghost:hover{background:var(--ink);color:var(--ivory)}
.btn--on-dark{background:var(--ivory);color:var(--ink)}
.btn--on-dark:hover{background:var(--white)}

/* mobile nav toggle */
.nav-toggle{display:none;align-items:center;justify-content:center;width:var(--tap);height:var(--tap);background:transparent;border:0;cursor:pointer;color:var(--ink)}
.nav-toggle svg{width:24px;height:24px}
.nav-toggle__close{display:none}
.nav-toggle[aria-expanded="true"] .nav-toggle__open{display:none}
.nav-toggle[aria-expanded="true"] .nav-toggle__close{display:block}

/* ---------- Hero A (photo-led full-bleed, DEFAULT) ---------- */
.hero{
  position:relative;
  min-height:clamp(560px, 82vh, 820px);
  display:flex;align-items:flex-end;
  color:var(--ivory);
  overflow:hidden;
}
.hero__media{position:absolute;inset:0;z-index:0}
/* placeholder treatment — NOT final photography */
.hero__media--placeholder{
  background:
    radial-gradient(120% 90% at 78% 15%, rgba(51,86,86,.55) 0%, rgba(40,39,35,0) 55%),
    linear-gradient(160deg, #2f2d28 0%, #24312f 48%, #1f2a2a 100%);
}
.hero__media--placeholder::after{
  /* faint woven-warp texture, abstract nod to the panaru — decorative only */
  content:"";position:absolute;inset:0;opacity:.10;
  background-image:repeating-linear-gradient(90deg, rgba(243,240,233,.6) 0 1px, transparent 1px 14px),
                   repeating-linear-gradient(0deg, rgba(243,240,233,.35) 0 1px, transparent 1px 22px);
  mask-image:radial-gradient(80% 80% at 70% 40%, #000 0%, transparent 80%);
}
/* TEMPORARY home hero photograph — swap assets/img/home-hero.{webp,jpg} to replace (no layout/CSS change). */
.hero__media--photo{
  background-color:#20120c; /* prevents flash before paint */
  background-image:url(../img/home-hero.jpg); /* fallback for browsers without image-set() */
  background-image:image-set(url(../img/home-hero.webp) type("image/webp"), url(../img/home-hero.jpg) type("image/jpeg"));
  background-repeat:no-repeat;
  background-size:cover;
  background-position:50% 44%; /* desktop focal — keeps bottle (centre-left) + panettone (right) */
}
.hero__scrim{position:absolute;inset:0;z-index:1;
  /* Readability behind the copy only (left column + lower band). Panettone side stays bright;
     image is not darkened overall. */
  background:
    linear-gradient(96deg, rgba(26,16,9,.72) 0%, rgba(26,16,9,.56) 30%, rgba(26,16,9,.24) 48%, rgba(26,16,9,0) 64%),
    linear-gradient(180deg, rgba(26,16,9,0) 52%, rgba(26,16,9,.42) 100%);
}
.hero__inner{position:relative;z-index:2;width:100%;min-width:0;max-width:100%;padding-block:clamp(2.5rem,6vh,5rem)}
.hero__content{max-width:34ch;min-width:0}
.hero h1{overflow-wrap:anywhere;hyphens:auto}
.hero__eyebrow{
  font-family:var(--font-ui);font-size:var(--fs-eyebrow);
  text-transform:uppercase;letter-spacing:.22em;font-weight:600;
  color:var(--sage);margin:0 0 1.1rem;
}
.hero__eyebrow b{display:block;color:var(--ivory);letter-spacing:.28em;font-weight:700}
.hero h1{font-size:var(--fs-h1);color:var(--ivory);margin:0 0 1.3rem}
.hero h1 .l2{display:block;color:var(--sage)}
.hero__sub{
  font-size:clamp(1.05rem,0.98rem+0.5vw,1.35rem);font-weight:600;
  color:var(--ivory);max-width:40ch;margin:0 0 1.9rem;line-height:1.4;
}
.hero__cta{display:flex;flex-wrap:wrap;gap:.9rem;align-items:center}
.hero__ph-tag{
  position:absolute;right:var(--gutter);bottom:1rem;z-index:2;
  font-size:.7rem;letter-spacing:.12em;text-transform:uppercase;
  color:rgba(243,240,233,.7);background:rgba(31,30,27,.4);
  padding:.35rem .6rem;border-radius:3px;
}

/* ---------- Hero B (editorial split, fallback) ---------- */
.hero-b{background:var(--ivory)}
.hero-b__grid{display:grid;grid-template-columns:1.05fr .95fr;min-height:clamp(520px,72vh,720px)}
.hero-b__text{display:flex;flex-direction:column;justify-content:center;padding-block:clamp(2.5rem,7vh,5rem);padding-right:clamp(1.5rem,4vw,4rem)}
.hero-b__media{position:relative;background:
  radial-gradient(110% 80% at 70% 20%, rgba(51,86,86,.5),rgba(40,39,35,0) 60%),
  linear-gradient(160deg,#2f2d28,#24312f 55%,#1f2a2a);}
.hero-b__media::after{content:"";position:absolute;inset:0;opacity:.10;
  background-image:repeating-linear-gradient(90deg,rgba(243,240,233,.6) 0 1px,transparent 1px 14px),
                   repeating-linear-gradient(0deg,rgba(243,240,233,.35) 0 1px,transparent 1px 22px);
  mask-image:radial-gradient(80% 80% at 60% 45%,#000,transparent 80%);}
.hero-b__eyebrow{font-family:var(--font-ui);font-size:var(--fs-eyebrow);text-transform:uppercase;letter-spacing:.22em;font-weight:600;color:var(--forest);margin:0 0 1.1rem}
.hero-b__eyebrow b{display:block;color:var(--ink);letter-spacing:.28em}
.hero-b h1{font-size:var(--fs-h1);color:var(--ink);margin:0 0 1.3rem}
.hero-b h1 .l2{display:block;color:var(--forest)}
.hero-b__sub{font-size:clamp(1.05rem,.98rem+.5vw,1.3rem);font-weight:600;color:var(--ink);max-width:38ch;margin:0 0 1.8rem;line-height:1.42}

/* ---------- Footer (minimal, CP1 placeholder) ---------- */
.site-footer{background:var(--ink);color:var(--warm-surface);padding-block:2.5rem;margin-top:0}
.site-footer .wrap{display:flex;flex-wrap:wrap;gap:1rem;justify-content:space-between;align-items:center}
.site-footer small{color:var(--sage);font-size:var(--fs-secondary)}

/* ---------- Responsive ----------
   Two independent breakpoints:
   (a) NAV COLLAPSE = 1200px — content-driven: the desktop header row
       (logo 83 + nav 653 + IT|EN+CTA 321 + gaps 48 + padding 80 ≈ 1185px)
       stops fitting inside the 1200px content wrap below ~1185px, so the
       menu collapses to the hamburger at/below 1200px to avoid collision.
   (b) LAYOUT = 760px — hero-B stacks, hero copy narrows, compact logo. */

/* (a) Header nav collapse */
@media (max-width:1200px){
  .primary-nav,.header-actions .lang-switch,.header-actions .btn{display:none}
  .nav-toggle{display:inline-flex}
}
@media (min-width:1201px){
  .nav-toggle{display:none}
  .mobile-menu{display:none !important}
}

/* (b) Layout adjustments for small screens */
@media (max-width:760px){
  :root{--header-h:64px}
  .brand__logo,.brand__logo svg,.brand__logo img{height:38px}
  .hero__content{max-width:30ch}
  .hero__sub{max-width:100%}
  /* shorter hero + rightward focal so BOTH bottle and panettone stay recognisable (no aggressive crop) */
  .hero{min-height:clamp(430px,60vh,500px)}
  .hero__media--photo{background-position:60% 50%}
  .hero-b__grid{grid-template-columns:1fr}
  .hero-b__media{min-height:240px;order:-1}
}

/* mobile menu panel — visibility driven by the [hidden] attribute (JS toggles it) */
.mobile-menu{position:absolute;left:0;right:0;top:100%;background:var(--ivory);border-top:1px solid var(--divider);box-shadow:0 12px 24px rgba(40,39,35,.12);max-height:calc(100vh - var(--header-h));overflow-y:auto;-webkit-overflow-scrolling:touch}
.mobile-menu__list{list-style:none;margin:0;padding:.25rem var(--gutter) .5rem}
.mobile-menu__list li{border-bottom:1px solid var(--divider)}
.mobile-menu__list a{display:block;padding:.9rem 0;font-size:1.05rem;min-height:var(--tap);color:var(--ink)}
.mobile-menu__actions{display:flex;flex-direction:column;align-items:flex-start;gap:.85rem;padding-top:1rem;padding-bottom:1.25rem}
.mobile-menu__actions .btn{width:100%}
.mobile-menu__actions .lang-switch{color:var(--muted)}

@media (prefers-reduced-motion:reduce){*{transition:none !important}}

/* ============================================================
   CP2 — Collection · Box Card · Expanded Composition
   ============================================================ */
.eyebrow{font-family:var(--font-ui);font-size:var(--fs-eyebrow);text-transform:uppercase;letter-spacing:.22em;font-weight:600;color:var(--forest);margin:0 0 .9rem}

/* Collection intro */
.collection__intro{padding-block:clamp(2.5rem,6vh,4.5rem)}
.collection__intro h1{font-size:var(--fs-h2);color:var(--ink);margin:0 0 1rem;max-width:18ch}
.collection__lead{font-size:clamp(1.15rem,1rem+.6vw,1.5rem);color:var(--forest);margin:0 0 1.2rem}
.collection__body{max-width:64ch;color:var(--ink);margin:0 0 1rem}
.collection__hint{color:var(--muted-text);font-size:var(--fs-secondary);margin-top:.4rem}

/* Collection grid */
.collection__grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:clamp(1.25rem,2.5vw,2rem);padding-bottom:2rem}
/* Home collection preview: strict 4×2 on wide desktop, 2 on tablet, 1 on mobile.
   Scoped to the front page (.home) so the /cesti-natalizi-aziendali/ Collection page is untouched.
   Base is 2 cols (tablet range 761–1200); no intermediate 3-col step at any width. */
.home .collection__grid{grid-template-columns:repeat(2,1fr)}
@media (min-width:1201px){.home .collection__grid{grid-template-columns:repeat(4,1fr)}}
@media (max-width:760px){.home .collection__grid{grid-template-columns:1fr}}
/* Collection hub (/cesti-natalizi-aziendali/): same disciplined 4×2 / 2 / 1 grid as Home
   so the 8 cards align cleanly (no 3+3+2 orphan row). Scoped to .collection only. */
.collection .collection__grid{grid-template-columns:repeat(2,1fr)}
@media (min-width:1201px){.collection .collection__grid{grid-template-columns:repeat(4,1fr)}}
@media (max-width:760px){.collection .collection__grid{grid-template-columns:1fr}}
.collection__note{color:var(--muted-text);font-size:var(--fs-secondary);padding-block:1.5rem 3rem}

/* Box card */
.box-card{display:flex;flex-direction:column;background:var(--white);border:1px solid var(--divider);border-radius:8px;overflow:hidden;transition:box-shadow .25s var(--ease),transform .25s var(--ease)}
.box-card:hover{box-shadow:0 14px 34px rgba(40,39,35,.12);transform:translateY(-2px)}
.box-card--signature{border-color:var(--early-bird)}
.box-card__media{position:relative;display:block;aspect-ratio:4/3;background:var(--warm-surface)}
.box-card__media img{width:100%;height:100%;object-fit:cover;display:block}
.box-card__media-ph{position:absolute;inset:0;background:
  radial-gradient(120% 90% at 75% 20%,rgba(51,86,86,.35),rgba(40,39,35,0) 60%),
  linear-gradient(160deg,#3a3830,#2c3a38)}
.box-card__media-ph::after{content:"";position:absolute;inset:0;opacity:.09;background-image:repeating-linear-gradient(90deg,rgba(243,240,233,.6) 0 1px,transparent 1px 13px),repeating-linear-gradient(0deg,rgba(243,240,233,.4) 0 1px,transparent 1px 20px)}
.box-card__flag,.single-box__flag{position:absolute;top:.7rem;left:.7rem;background:var(--early-bird);color:var(--ink);font-size:.68rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;padding:.28rem .55rem;border-radius:3px}
.box-card__body{display:flex;flex-direction:column;gap:.5rem;padding:1.15rem 1.2rem 1.35rem;flex:1}
.box-card__tier{font-size:var(--fs-eyebrow);text-transform:uppercase;letter-spacing:.16em;font-weight:600;color:var(--forest);margin:0}
.box-card__name{font-size:1.4rem;line-height:1.1;margin:0}
.box-card__name a{color:var(--ink)}
.box-card__name a:hover{color:var(--forest)}
.box-card__claim{color:var(--muted-text);font-size:var(--fs-secondary);margin:0}
.box-card__badge{display:inline-block;align-self:flex-start;font-size:.7rem;font-weight:700;letter-spacing:.08em;color:var(--forest);border:1px solid var(--forest);border-radius:3px;padding:.25rem .5rem;margin:.1rem 0}
.box-card__moq{font-size:var(--fs-secondary);color:var(--ink);margin:0}
.box-card__cta{margin-top:auto;width:100%}

/* Price block — Early Bird Accent (#B8912E) used only as an accent BACKGROUND
   with Ink text (5.07:1 AA); gold as text on light fails contrast, so avoided. */
.box-price{margin:.2rem 0}
.box-price__eb{display:flex;align-items:baseline;gap:.5rem;flex-wrap:wrap}
.box-price__eb-label{font-size:.66rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--ink);background:var(--early-bird);padding:.2rem .45rem;border-radius:3px;align-self:center}
.box-price__eb-val{font-family:var(--font-display);font-size:1.7rem;color:var(--ink);line-height:1}
.box-price__iva{font-size:var(--fs-secondary);color:var(--muted-text)}
.box-price__meta{font-size:.78rem;color:var(--ink);font-weight:600;margin-top:.25rem}
.box-price__std{font-size:var(--fs-secondary);color:var(--muted-text);margin-top:.15rem}
.box-price__std span{white-space:nowrap}

/* Single box */
.breadcrumb{padding-block:1.2rem .4rem;font-size:var(--fs-secondary);color:var(--muted-text)}
.breadcrumb a{color:var(--forest)}
.single-box__head{padding-block:1rem 2rem}
.single-box__head-grid{display:grid;grid-template-columns:1fr 1fr;gap:clamp(1.5rem,4vw,3rem);align-items:center}
.single-box__media{position:relative;aspect-ratio:1/1;border-radius:10px;overflow:hidden;background:var(--warm-surface)}
.single-box__media img{width:100%;height:100%;object-fit:cover}
.single-box__media-ph{position:absolute;inset:0;background:radial-gradient(120% 90% at 70% 20%,rgba(51,86,86,.4),rgba(40,39,35,0) 60%),linear-gradient(160deg,#3a3830,#2c3a38)}
.single-box__tier{font-size:var(--fs-eyebrow);text-transform:uppercase;letter-spacing:.18em;font-weight:600;color:var(--forest);margin:0 0 .5rem}
.single-box__intro h1{font-size:var(--fs-h2);color:var(--ink);margin:0 0 1rem}
.single-box__micro{color:var(--ink);max-width:52ch;margin-bottom:1rem}
.single-box__micro p{margin:0 0 .8rem}
.single-box__claim{font-weight:600;color:var(--forest);margin:.4rem 0}
.single-box__moq{color:var(--ink);margin:.3rem 0 1rem}
/* Single-box: producers in this box + personalization teaser */
.single-box__producers{padding-block:clamp(1.5rem,4vh,2.5rem);border-top:1px solid var(--divider)}
.single-box__producers h2{font-size:calc(var(--fs-h2)*.72);color:var(--ink);margin:0 0 .3rem}
.single-box__producers-lead{color:var(--muted-text);margin:0 0 1rem}
.single-box__producers-list{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:.5rem .7rem}
.single-box__producers-list a{display:inline-block;padding:.4rem .8rem;border:1px solid var(--divider);border-radius:999px;background:var(--white);color:var(--ink);font-size:var(--fs-secondary);line-height:1.2}
.single-box__producers-list a:hover{border-color:var(--forest);color:var(--forest)}
.single-box__perso{padding-block:clamp(1.5rem,4vh,2.5rem) clamp(2.5rem,6vh,4rem)}
.single-box__perso h2{font-size:calc(var(--fs-h2)*.72);color:var(--ink);margin:0 0 .5rem}
.single-box__perso p{max-width:60ch;color:var(--ink);margin:0 0 .8rem}

/* Expanded composition */
.box-comp{padding-block:1rem 3rem}
.box-comp__acc{border-top:1px solid var(--divider);border-bottom:1px solid var(--divider)}
.box-comp__summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1.1rem 0;font-family:var(--font-ui);font-size:1rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--ink)}
.box-comp__summary::-webkit-details-marker{display:none}
.box-comp__acc[open] .box-comp__summary svg{transform:rotate(180deg)}
.box-comp__summary svg{transition:transform .25s var(--ease);color:var(--forest);flex:0 0 auto}
.box-comp__intro{color:var(--muted-text);margin:.2rem 0 1.4rem;max-width:60ch}
.box-comp__grid{list-style:none;margin:0 0 1.4rem;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:clamp(1rem,2vw,1.5rem)}
.comp-item{display:flex;flex-direction:column;gap:.55rem}
/* PANARU product-image frame — FROZEN component. Still-life rule: whole product always
   visible, never cropped/zoomed, centred on white with consistent breathing room.
   Do not change object-fit / framing / padding / aspect-ratio without explicit request. */
.comp-item__media{position:relative;aspect-ratio:1/1;border-radius:8px;overflow:hidden;background:#fff;border:1px solid var(--divider);display:flex;align-items:center;justify-content:center;padding:clamp(18px,2vw,30px)}
.comp-item__media img{width:100%;height:100%;object-fit:contain;object-position:center;display:block}
.comp-item__ph{position:absolute;inset:0;background:linear-gradient(160deg,#ece8dd,#ddd8c8)}
.comp-item__ph::after{content:"";position:absolute;inset:0;opacity:.5;background-image:repeating-linear-gradient(90deg,rgba(138,127,110,.25) 0 1px,transparent 1px 12px),repeating-linear-gradient(0deg,rgba(138,127,110,.18) 0 1px,transparent 1px 18px)}
.comp-item__flag{position:absolute;bottom:.5rem;left:.5rem;background:var(--ink);color:var(--ivory);font-size:.62rem;font-weight:700;letter-spacing:.08em;padding:.24rem .45rem;border-radius:3px}
.comp-item__cap{display:flex;flex-direction:column;gap:.15rem}
.comp-item__name{font-weight:600;font-size:.95rem;color:var(--ink);line-height:1.25}
.comp-item__meta{font-size:var(--fs-secondary);color:var(--muted-text)}

@media (max-width:760px){
  .single-box__head-grid{grid-template-columns:1fr}
  .single-box__media{order:-1;aspect-ratio:4/3}
}

/* ============================================================
   CP3 — Producers hub (/produttori/) · 24 stories
   ============================================================ */
.producers__intro{padding-block:clamp(2.5rem,6vh,4.5rem)}
.producers__intro h1{font-size:var(--fs-h2);color:var(--ink);margin:0 0 1rem;max-width:20ch}
.producers__lead{font-size:clamp(1.15rem,1rem+.6vw,1.5rem);color:var(--forest);margin:0 0 1.1rem}
.producers__body{max-width:64ch;color:var(--ink);margin:0}

.producers__list{display:flex;flex-direction:column;gap:clamp(2.5rem,6vw,4.5rem);padding-bottom:clamp(3rem,8vh,6rem)}

.producer{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(1.5rem,4vw,3.5rem);align-items:center;
  min-width:0; /* allow grid to shrink below intrinsic content width */
  scroll-margin-top:calc(var(--header-h) + 1.25rem)} /* correct anchor offset under sticky header */
.producer:nth-child(even) .producer__media{order:2}
/* grid/flex children must be allowed to shrink (prevents intrinsic-min-width overflow) */
.producers__list{min-width:0}
.producer__media,.producer__body{min-width:0}
.producer__gallery,.producer__ph{max-width:100%}

.producer__media{position:relative}
.producer__ph,.producer__gallery{aspect-ratio:5/4;border-radius:10px;overflow:hidden;background:var(--warm-surface);display:block}
.producer__ph{position:relative;background:
  radial-gradient(120% 90% at 72% 18%,rgba(51,86,86,.28),rgba(40,39,35,0) 62%),
  linear-gradient(160deg,#e7e2d5,#d8d2c2)}
.producer__ph::after{content:"";position:absolute;inset:0;opacity:.5;
  background-image:repeating-linear-gradient(90deg,rgba(138,127,110,.22) 0 1px,transparent 1px 13px),repeating-linear-gradient(0deg,rgba(138,127,110,.16) 0 1px,transparent 1px 19px)}
.producer__gallery{position:relative;margin:0;aspect-ratio:4/3} /* FROZEN: common 4:3 frame for the producer slideshow */
.producer__slide{position:absolute;inset:0}
.producer__slide[hidden]{display:none}
.producer__slide img{width:100%;height:100%;object-fit:cover;display:block}
.producer__gnav{position:absolute;left:0;right:0;bottom:.6rem;display:flex;align-items:center;justify-content:center;gap:.75rem}
.producer__gbtn{width:40px;height:40px;min-height:40px;border-radius:999px;border:0;background:rgba(31,30,27,.72);color:var(--ivory);font-size:1.2rem;line-height:1;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}
.producer__gbtn:hover{background:var(--ink)}
.producer__gcount{background:rgba(31,30,27,.6);color:var(--ivory);font-size:.78rem;padding:.25rem .6rem;border-radius:999px}

.producer__idx{font-family:var(--font-display);font-size:1rem;color:var(--muted-text);margin:0 0 .35rem;letter-spacing:.05em}
.producer__name{font-size:clamp(1.5rem,1.2rem+1vw,2rem);color:var(--ink);margin:0 0 .35rem}
.producer__place{font-size:var(--fs-eyebrow);text-transform:uppercase;letter-spacing:.16em;font-weight:600;color:var(--forest);margin:0 0 1rem}
.producer__story{color:var(--ink);max-width:56ch;margin:0 0 1.1rem}
.producer__boxes{font-size:var(--fs-secondary);color:var(--muted-text);margin:0;line-height:1.7}
.producer__boxes-label{color:var(--ink);font-weight:600;margin-right:.35rem}
.producer__boxes a{color:var(--forest);text-decoration:underline;text-underline-offset:2px;text-decoration-thickness:1px}
.producer__boxes a:hover{color:var(--ink)}

@media (max-width:760px){
  .producer{grid-template-columns:1fr;gap:1.1rem}
  .producer:nth-child(even) .producer__media{order:0}
  .producer__ph,.producer__gallery{aspect-ratio:4/3}
}

/* ============================================================
   CP4 — Home · Chi Siamo · Componi la tua Box
   ============================================================ */
.section{padding-block:clamp(3rem,8vh,6rem)}
.section--surface{background:var(--warm-surface)}
.section--ink{background:var(--ink);color:var(--ivory)}
.section__head{max-width:64ch;margin:0 0 clamp(1.5rem,4vh,2.5rem)}
.section__head h2{font-size:var(--fs-h2);color:var(--ink);margin:.4rem 0 .6rem}
.section--ink .section__head h2{color:var(--ivory)}
.section__lead{font-size:clamp(1.1rem,1rem+.5vw,1.4rem);color:var(--forest);margin:0}
.section--ink .section__lead{color:var(--sage)}
.section__link{display:inline-flex;align-items:center;gap:.4rem;margin-top:1.4rem;font-weight:600;color:var(--forest);min-height:var(--tap)}
.section__link:hover{color:var(--ink)}
.section--ink .section__link{color:var(--sage)}
.section--ink .section__link:hover{color:var(--ivory)}

/* Proposition band */
/* §21 producers transition band (FROZEN) — leads into the producers preview */
.transition-band{text-align:center;padding-bottom:clamp(1.5rem,3vh,2rem)}
.transition-band h2{font-size:var(--fs-h2);color:var(--ink);margin:0 auto .9rem;max-width:20ch;line-height:1.15}
.transition-band p{font-size:clamp(1.05rem,1rem+.4vw,1.3rem);color:var(--forest);max-width:60ch;margin:0 auto}

/* Home brand statement below the hero — display-scale, content-driven height (RC 0.9.3) */
.prop-band{padding-block:clamp(3rem,6vw,5.5rem);background:var(--ivory);border-bottom:1px solid var(--divider)}
.prop-band p{
  font-family:var(--font-display);font-weight:500;
  font-size:clamp(1.875rem,1.2rem + 3vw,3.375rem); /* ~30px mobile · ~40–44px tablet · up to 54px desktop */
  line-height:1.12;color:var(--ink);max-width:800px;margin:0;text-wrap:balance;
}
.prop-band .accent{color:var(--forest)}

/* Story band */
.story-band__grid{display:grid;grid-template-columns:1.1fr .9fr;gap:clamp(1.5rem,4vw,3.5rem);align-items:center}
.story-band__media{aspect-ratio:4/5;border-radius:10px;background:
  radial-gradient(120% 90% at 70% 18%,rgba(51,86,86,.4),rgba(40,39,35,0) 62%),linear-gradient(160deg,#2f2d28,#24312f 55%,#1f2a2a);position:relative;min-width:0}
.story-band__media::after{content:"";position:absolute;inset:0;opacity:.10;border-radius:inherit;background-image:repeating-linear-gradient(90deg,rgba(243,240,233,.6) 0 1px,transparent 1px 14px),repeating-linear-gradient(0deg,rgba(243,240,233,.35) 0 1px,transparent 1px 22px)}
.story-band__body{min-width:0}
.story-band__body p{max-width:56ch;margin:0 0 1rem}
.story-band__sign{font-style:italic;color:var(--muted-text);margin-top:1rem}

/* Producers preview strip */
.prod-strip{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:1px;background:var(--divider);border:1px solid var(--divider);border-radius:10px;overflow:hidden}
.prod-strip a{background:var(--ivory);padding:1rem 1.15rem;min-height:var(--tap);display:flex;flex-direction:column;justify-content:center;gap:.15rem}
.prod-strip a:hover{background:var(--white)}
.prod-strip__name{font-weight:600;color:var(--ink);line-height:1.2}
.prod-strip__place{font-size:var(--fs-secondary);color:var(--muted-text)}

/* Home producer preview — photographic 8-card grid (RC 0.9.1). Image = first producer_gallery photo. */
.home-prod-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(.6rem,1.4vw,1rem);margin-top:1.5rem}
.home-prod-card{display:block;text-decoration:none}
.home-prod-card__frame{position:relative;display:block;aspect-ratio:4/3;border-radius:10px;overflow:hidden;background:var(--warm-surface)}
.home-prod-card__img{width:100%;height:100%;object-fit:cover;object-position:center;display:block;transition:transform .45s ease}
.home-prod-card__ph{position:absolute;inset:0;background:var(--warm-surface)}
.home-prod-card__grad{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,0) 45%,rgba(0,0,0,.66) 100%)}
.home-prod-card__name{position:absolute;left:.75rem;right:.75rem;bottom:.6rem;color:#fff;font-family:var(--font-display);font-size:clamp(.98rem,.9rem+.35vw,1.2rem);line-height:1.15;text-shadow:0 1px 3px rgba(0,0,0,.45)}
.home-prod-card:hover .home-prod-card__img{transform:scale(1.03)}
@media (max-width:980px){ .home-prod-grid{grid-template-columns:repeat(2,minmax(0,1fr))} }
@media (max-width:420px){ .home-prod-grid{grid-template-columns:1fr} }
/* Producer → selected PANARU BOX reference(s) (§23) */
.producer__refs{margin:1rem 0 .2rem}
.producer__refs-label{font-family:var(--font-ui);font-size:var(--fs-eyebrow);text-transform:uppercase;letter-spacing:.16em;font-weight:600;color:var(--forest);margin:0 0 .35rem}
.producer__refs-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.15rem}
.producer__refs-list li{color:var(--ink);line-height:1.35}
.producer__ref-name{font-weight:600}
.producer__ref-fmt{color:var(--muted-text);font-weight:400}

/* Componi preview */
.componi-grid{display:grid;grid-template-columns:1fr 1fr;gap:clamp(1.25rem,3vw,2rem)}
.componi-card{background:var(--ivory);border:1px solid var(--divider);border-radius:10px;padding:clamp(1.25rem,3vw,2rem);min-width:0}
.componi-card h3{font-size:1.35rem;color:var(--ink);margin:0 0 .5rem}
.componi-card p{color:var(--ink);margin:0 0 .8rem}
.componi-card .price{font-weight:600;color:var(--forest)}
.componi-card .cond{font-size:var(--fs-secondary);color:var(--muted-text)}

/* Reviews */
.reviews-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:clamp(1rem,2.5vw,1.75rem)}
.review{background:var(--ivory);border:1px solid var(--divider);border-radius:10px;padding:1.4rem 1.5rem;min-width:0}
.review__stars{color:var(--early-bird);letter-spacing:.15em;font-size:.95rem;margin:0 0 .6rem}
.review__quote{font-family:var(--font-display);font-size:1.1rem;line-height:1.4;color:var(--ink);margin:0 0 .8rem}
.review__by{font-size:var(--fs-secondary);color:var(--muted-text)}
.review__by strong{color:var(--ink);display:block;font-weight:600}

/* Final CTA */
.final-cta{text-align:center}
.final-cta h2{font-size:var(--fs-h2);color:var(--ivory);margin:0 auto .9rem;max-width:20ch}
.final-cta p{color:var(--warm-surface);max-width:52ch;margin:0 auto 1rem}
.final-cta .btn{margin-top:.8rem}

/* Chi Siamo / editorial page */
.editorial{max-width:760px;margin-inline:auto}
.editorial__eyebrow{margin-bottom:1rem}
.editorial h1{font-size:clamp(2rem,1.5rem+2vw,3rem);color:var(--ink);margin:0 0 1.5rem;line-height:1.1}
.editorial h2{font-size:clamp(1.4rem,1.2rem+1vw,1.9rem);color:var(--forest);margin:2.2rem 0 .8rem}
.editorial p{color:var(--ink);margin:0 0 1.1rem}
.editorial strong{color:var(--ink)}
.editorial .lead{font-size:clamp(1.15rem,1rem+.6vw,1.45rem);color:var(--forest)}
.editorial ul{margin:0 0 1.2rem;padding-left:1.2rem}
.editorial li{margin:.35rem 0}
.editorial__sign{font-style:italic;color:var(--muted-text);margin-top:1.5rem}

@media (max-width:760px){
  .story-band__grid{grid-template-columns:1fr}
  .story-band__media{order:-1;aspect-ratio:4/3}
  .componi-grid{grid-template-columns:1fr}
}

/* ============================================================
   CP5 — Enquiry form · FAQ · Full footer
   ============================================================ */
.is-pending{color:var(--muted-text);opacity:.75;cursor:default}

/* Enquiry form */
.enquiry{max-width:760px;margin-inline:auto}
.enquiry__head{margin-bottom:2rem}
.enquiry__head h1{font-size:clamp(1.8rem,1.4rem+1.8vw,2.8rem);color:var(--ink);margin:.4rem 0 1rem;line-height:1.1}
.enquiry__lead{color:var(--ink);max-width:60ch}
.enquiry__msg{border-radius:8px;padding:1.1rem 1.3rem;margin:0 0 1.5rem}
.enquiry__msg p{margin:.2rem 0}
.enquiry__msg--ok{background:var(--warm-surface);border:1px solid var(--forest)}
.enquiry__msg--err{background:#f6e9e4;border:1px solid #a5533a;color:#7c3a26}
.enquiry__form{display:grid;grid-template-columns:1fr 1fr;gap:1.1rem 1.25rem}
.field{display:flex;flex-direction:column;gap:.4rem;min-width:0}
.field--full{grid-column:1 / -1}
.field label{font-size:var(--fs-secondary);font-weight:600;color:var(--ink)}
.field input,.field select,.field textarea{font-family:var(--font-ui);font-size:1rem;color:var(--ink);background:var(--white);border:1px solid var(--divider);border-radius:var(--radius);padding:.7rem .8rem;min-height:var(--tap);width:100%}
.field textarea{min-height:120px;resize:vertical}
.field input:focus,.field select:focus,.field textarea:focus{outline:2px solid var(--forest);outline-offset:1px;border-color:var(--forest)}
.req{color:#a5533a;font-weight:700}
.field--check label{flex-direction:row;align-items:flex-start;gap:.6rem;font-weight:400;cursor:pointer}
.field--check input{width:auto;min-height:0;margin-top:.2rem;flex:0 0 auto}
.field--check span{font-size:var(--fs-secondary);color:var(--ink)}
.enquiry__note{grid-column:1 / -1;font-size:var(--fs-secondary);color:var(--muted-text);margin:.2rem 0 0}
.hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}

/* FAQ */
.faq{margin-top:1rem}
.faq__item{border-bottom:1px solid var(--divider)}
.faq__q{cursor:pointer;list-style:none;padding:1.1rem 0;font-family:var(--font-display);font-size:1.15rem;color:var(--ink);position:relative;padding-right:2rem}
.faq__q::-webkit-details-marker{display:none}
.faq__q::after{content:"+";position:absolute;right:.2rem;top:1rem;color:var(--forest);font-size:1.3rem}
.faq__item[open] .faq__q::after{content:"–"}
.faq__a{padding:0 0 1.2rem;color:var(--ink);max-width:70ch}
.faq__a p{margin:0}

/* Full footer */
.site-footer{background:var(--ink);color:var(--warm-surface);padding-block:clamp(2.5rem,6vh,4rem);margin-top:0}
.site-footer .wrap{display:block}
.site-footer__top{display:grid;grid-template-columns:1.1fr 2fr;gap:clamp(1.5rem,4vw,3rem);padding-bottom:2rem;border-bottom:1px solid rgba(243,240,233,.14);align-items:start}
.site-footer__logo{font-family:var(--font-display);font-size:1.4rem;color:var(--ivory);margin:0}
.site-footer__payoff{font-size:var(--fs-secondary);letter-spacing:.12em;text-transform:uppercase;color:var(--sage);margin:.2rem 0 .8rem}
.site-footer__sign{color:var(--warm-surface);max-width:36ch;margin:0}
.site-footer__nav{display:grid;grid-template-columns:repeat(4,1fr);gap:1.5rem}
.site-footer__group h2{font-size:.72rem;letter-spacing:.14em;text-transform:uppercase;color:var(--sage);margin:0 0 .8rem;font-family:var(--font-ui);font-weight:700}
.site-footer__group ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.55rem}
.site-footer__group a{color:var(--warm-surface);font-size:var(--fs-secondary)}
.site-footer__group a:hover{color:var(--ivory);text-decoration:underline;text-underline-offset:2px}
.site-footer__legal{display:flex;flex-wrap:wrap;gap:1.5rem 3rem;padding:1.6rem 0}
.site-footer__company,.site-footer__contacts{margin:0;font-size:var(--fs-secondary);color:var(--warm-surface);line-height:1.7}
.site-footer__company strong{color:var(--ivory)}
.site-footer__contacts a{color:var(--sage)}.site-footer__contacts a:hover{color:var(--ivory)}
.site-footer__contacts span{color:var(--muted-text)}
.site-footer__copy{margin:0;padding-top:1rem;border-top:1px solid rgba(243,240,233,.14)}
.site-footer__copy small{color:var(--sage)}

@media (max-width:760px){
  .enquiry__form{grid-template-columns:1fr}
  .site-footer__top{grid-template-columns:1fr;gap:1.75rem}
  .site-footer__nav{grid-template-columns:1fr 1fr}
}
@media (max-width:420px){
  .site-footer__nav{grid-template-columns:1fr}
}

.comp-item__choices{display:block;font-size:var(--fs-secondary);color:var(--ink);margin:.15rem 0 .1rem;line-height:1.35}
.comp-item__choices-label{font-weight:600}

/* ============================================================
   Chi Siamo / PANARU — short editorial brand page (RC 0.9.2)
   ============================================================ */
.about__grid{display:grid;grid-template-columns:minmax(0,42%) minmax(0,58%);gap:clamp(1.5rem,4vw,3.5rem);align-items:start}
.about__media{min-width:0}
.about__media img,.about__media-ph{width:100%;aspect-ratio:9/16;border-radius:10px;overflow:hidden;object-fit:cover;object-position:center;display:block;background:var(--warm-surface);max-height:78vh;margin-inline:auto}
.about__media img{height:auto}
.about__media-ph{position:relative;background:
  radial-gradient(120% 80% at 70% 20%,rgba(51,86,86,.20),rgba(226,223,209,0) 60%),
  linear-gradient(160deg,#e7e2d5,#d8d2c2)}
.about__body{min-width:0;padding-top:0}
.about__eyebrow{margin-top:0} /* top-align eyebrow with the image top */
.about__body h1{font-size:var(--fs-h1);color:var(--ink);margin:.3rem 0 1.1rem}
.about__body .lead{font-size:clamp(1.1rem,1rem+.6vw,1.4rem);font-weight:600;color:var(--ink);margin:0 0 1.3rem;line-height:1.4}
.about__body p{max-width:60ch}
.about__rhythm{font-family:var(--font-display);font-size:clamp(1.05rem,.95rem+.5vw,1.35rem);color:var(--ink);line-height:1.25;margin:1.3rem 0 0}
.about__emph{font-family:var(--font-display);font-size:clamp(1.15rem,1rem+.7vw,1.5rem);color:var(--forest);line-height:1.3;margin:1.2rem 0 1.1rem}
.editorial__sign{font-size:var(--fs-secondary);color:var(--muted-text);margin:0}
.about__links{display:flex;flex-wrap:wrap;gap:1.5rem;margin:clamp(1.6rem,3vw,2.4rem) 0 0}
@media (max-width:820px){
  .about__grid{grid-template-columns:1fr;gap:1.3rem}
  .about__media{order:-1}
  .about__media img,.about__media-ph{aspect-ratio:9/16;max-height:70vh;width:auto;max-width:100%;margin-inline:0}
}

/* Personalisation — service labels, signature note, NOTE COMMERCIALI 2×2 (RC 0.9.2) */
.componi-card__label{font-family:var(--font-ui);font-size:var(--fs-eyebrow);text-transform:uppercase;letter-spacing:.18em;font-weight:600;color:var(--forest);margin:0 0 .5rem}
.componi-signnote{max-width:70ch;margin:1.1rem 0 0;font-size:var(--fs-secondary);color:var(--muted-text)}
.componi-signnote__x{display:block;margin-top:.4rem}
.note-grid{display:grid;grid-template-columns:1fr 1fr;gap:clamp(1rem,2.4vw,1.6rem);margin-top:1.3rem}
.note-card{background:var(--ivory);border:1px solid var(--divider);border-radius:10px;padding:clamp(1.1rem,2.6vw,1.6rem);min-width:0}
.note-card__t{font-size:var(--fs-eyebrow);text-transform:uppercase;letter-spacing:.14em;font-weight:700;color:var(--forest);margin:0 0 .45rem}
.note-card__b{color:var(--ink);margin:0;font-size:var(--fs-secondary);line-height:1.5}
.note-legal{margin-top:1.8rem;max-width:74ch}
.note-legal p{font-size:var(--fs-secondary);color:var(--muted-text);line-height:1.55;margin:0 0 .9rem}
.note-legal strong{color:var(--ink)}
@media (max-width:760px){ .note-grid{grid-template-columns:1fr} }

/* Single box — compact commercial note (RC 0.9.2) */
.single-box__commnote{padding:1.2rem 0}
.single-box__commnote p{max-width:74ch;font-size:var(--fs-secondary);color:var(--muted-text);line-height:1.55;margin:0}
.single-box__commnote a{color:var(--forest);text-decoration:underline;text-underline-offset:2px;white-space:nowrap}

/* ── Logos & brand box mark (RC 0.9.5) ─────────────────────────────── */
/* Footer complete logo (box under name) at the very start of the footer */
.site-footer__brand .site-footer__sign{margin:0}
/* Logo + social on one row, under the sign */
.site-footer__brandrow{display:flex;align-items:center;gap:clamp(1.1rem,3vw,2rem);flex-wrap:wrap;margin-top:clamp(1.2rem,3vw,1.8rem)}
.site-footer__mark{display:inline-block;margin:0;line-height:0}
.site-footer__mark img{height:clamp(66px,7vw,84px);width:auto;display:block}
/* Social icons — circle + glyph, tinted for the dark footer */
.site-footer__social{display:flex;flex-wrap:wrap;gap:.55rem;list-style:none;margin:0;padding:0}
.site-footer__social a{display:inline-flex;width:40px;height:40px;opacity:.92;transition:opacity .2s var(--ease),transform .2s var(--ease)}
.site-footer__social a:hover{opacity:1;transform:translateY(-2px)}
.site-footer__social-img{width:100%;height:100%;display:block}
@media (max-width:600px){.site-footer__mark img{height:60px}.site-footer__social a{width:38px;height:38px}}

/* Producers H1 — keep the "PANARU BOX." unit intact (nbsp) and balance the line */
.producers__intro h1{text-wrap:balance}

/* Box mark as a composition motif — inline brand icon before the section label */
.box-comp__label{display:inline-flex;align-items:center;gap:.6rem}
.box-comp__icon{width:1.65em;height:auto;flex:0 0 auto;display:block}
/* Composition placeholder (no product photo) → brand box watermark instead of hatch */
.comp-item__ph{background:linear-gradient(160deg,#f0ece1,#e6e1d2)}
.comp-item__ph::after{
  background-image:none;opacity:.22;
  -webkit-mask:url(../img/logo/panaru-mark-solid.svg) center/54% no-repeat;
          mask:url(../img/logo/panaru-mark-solid.svg) center/54% no-repeat;
  background-color:var(--muted-text);
}

/* ── RC 0.9.6 — griglia box allineata + navigatore tra box ──────────── */
/* Home/Collezione: righe uniformi così tutte le card allineano titolo, claim,
   badge, prezzo, MOQ e CTA sulla stessa linea (anche con titolo a 1 o 2 righe
   e badge presente solo su alcune). */
.box-card__name{min-height:2.2em}
.box-card__claim{min-height:2.7em}
.box-card__badge--empty{visibility:hidden}

/* Navigatore tra box (single-box cross-sell) */
.box-switch{border-top:1px solid var(--divider);padding-block:clamp(1.6rem,4.5vh,2.5rem)}
.box-switch__eyebrow{margin:0 0 1rem;color:var(--forest)}
/* Row 1: two rich prev/next cards (photo + name + tier·price) */
.box-switch__cards{display:grid;grid-template-columns:1fr 1fr;gap:1.1rem;margin-bottom:1.15rem}
.box-switch__card{display:flex;align-items:stretch;border:1px solid var(--divider);border-radius:12px;overflow:hidden;background:var(--white);min-height:104px;transition:box-shadow .2s var(--ease),border-color .2s var(--ease)}
.box-switch__card:hover{border-color:var(--forest);box-shadow:0 10px 26px rgba(40,39,35,.10)}
.box-switch__card.is-empty{visibility:hidden;border:0;background:none;box-shadow:none}
.box-switch__card--next{flex-direction:row-reverse;text-align:right}
.box-switch__card-img{width:132px;flex:0 0 132px;object-fit:cover;background:var(--warm-surface);display:block;align-self:stretch}
.box-switch__card-img--ph{position:relative}
.box-switch__card-img--ph::after{content:"";position:absolute;inset:0;opacity:.24;background-color:var(--muted-text);-webkit-mask:url(../img/logo/panaru-mark-solid.svg) center/46% no-repeat;mask:url(../img/logo/panaru-mark-solid.svg) center/46% no-repeat}
.box-switch__card-body{display:flex;flex-direction:column;justify-content:center;gap:.25rem;padding:.85rem 1.1rem;min-width:0}
.box-switch__card-dir{display:flex;align-items:center;gap:.4rem;font-size:.68rem;letter-spacing:.12em;text-transform:uppercase;color:var(--muted-text)}
.box-switch__card--next .box-switch__card-dir{justify-content:flex-end}
.box-switch__card-name{font-family:var(--font-display);font-size:1.15rem;color:var(--ink);line-height:1.12}
.box-switch__card:hover .box-switch__card-name{color:var(--forest)}
.box-switch__card-meta{font-size:.8rem;color:var(--forest);letter-spacing:.03em;text-transform:uppercase}
.box-switch__arrow{font-size:1.15rem;line-height:1;color:var(--forest);flex:0 0 auto}
/* Closing strip for the product presentation */
.single-box__pres-end{height:0;border:0;border-top:2px solid var(--warm-taupe);margin:0 0 clamp(1.8rem,4vw,2.4rem);opacity:.92}
/* Row 2: all boxes as chips, current one highlighted */
.box-switch__list{display:flex;flex-wrap:wrap;gap:.5rem;justify-content:center;margin:0;padding:0;list-style:none}
.box-switch__chip{display:inline-block;padding:.4rem .8rem;border:1px solid var(--divider);border-radius:999px;font-size:var(--fs-secondary);color:var(--ink);line-height:1.2;background:var(--white);white-space:nowrap}
.box-switch__chip:hover{border-color:var(--forest);color:var(--forest)}
.box-switch__chip.is-current{background:var(--forest);border-color:var(--forest);color:var(--ivory);font-weight:600}
/* the switcher already separates the gallery from the producers block → drop the extra rule */
.single-box__producers{border-top:0;padding-top:clamp(.5rem,2vh,1rem)}
@media (max-width:680px){
  .box-switch__cards{grid-template-columns:1fr}
  .box-switch__card--next{flex-direction:row;text-align:left}
  .box-switch__card--next .box-switch__card-dir{justify-content:flex-start}
  .box-switch__card.is-empty{display:none}
  .box-switch__list{justify-content:flex-start}
}

/* Generic pages (Privacy / Cookie Policy) rendered via page.php */
.page-legal{max-width:820px;padding-block:3.25rem}
.page-legal__title{font-size:var(--fs-h2);color:var(--ink);line-height:1.12;margin:0 0 1.6rem}
.page-legal__body{color:var(--ink)}
.page-legal__body h2{font-size:1.35rem;color:var(--forest);margin:2.1rem 0 .55rem;line-height:1.25}
.page-legal__body h3{font-size:1.06rem;color:var(--ink);margin:1.4rem 0 .4rem}
.page-legal__body p,.page-legal__body li{line-height:1.62;margin:.5rem 0}
.page-legal__body ul{padding-left:1.25rem;margin:.6rem 0}
.page-legal__body a{color:var(--forest);text-decoration:underline}
.page-legal__body table{border-collapse:collapse;width:100%;margin:1.1rem 0;font-size:.95rem}
.page-legal__body th,.page-legal__body td{border:1px solid var(--warm-taupe,#cdc4b4);padding:.6rem .7rem;text-align:left;vertical-align:top}
.page-legal__body th{background:var(--warm-surface,#f3f0e9)}
.page-legal__body figure.wp-block-table{margin:1.1rem 0;overflow-x:auto}
