/* ==========================================================================
   PIERA · Cartoleria · Giocattoli
   Restyling 2026 · frontend headless PHP + WordPress/WooCommerce REST API
   Palette derivata dal riferimento: rosa, blu, lilla, cipria e giallo.
   ========================================================================== */

:root {
  --pink: #c95687;
  --pink-dark: #98325f;
  --pink-soft: #f7dce8;
  --blue: #3a80b7;
  --blue-dark: #245f8c;
  --blue-soft: #dcebf6;
  --lilac: #a091ad;
  --lilac-dark: #685975;
  --lilac-soft: #e9e1ed;
  --blush: #e3c4c0;
  --blush-soft: #f7ebe9;
  --yellow: #eacb58;
  --yellow-dark: #6f5900;
  --yellow-soft: #fbf2c8;

  --ink: #27243b;
  --ink-2: #39364f;
  --muted: #706d7e;
  --paper: #fffdfb;
  --surface: #ffffff;
  --surface-soft: #f7f4f6;
  --line: rgba(39, 36, 59, .12);
  --line-light: rgba(255, 255, 255, .18);

  --shadow-sm: 0 12px 35px -28px rgba(39, 36, 59, .45);
  --shadow: 0 28px 70px -38px rgba(39, 36, 59, .48);
  --shadow-strong: 0 34px 90px -42px rgba(39, 36, 59, .7);

  --radius-sm: 14px;
  --radius: 24px;
  --radius-lg: 38px;
  --radius-xl: 54px;
  --wrap: 1240px;
  --header-h: 104px;
}

/* RESET ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  min-width: 320px;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image: radial-gradient(rgba(39, 36, 59, .035) .7px, transparent .7px);
  background-size: 18px 18px;
}
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button, input, textarea { font: inherit; }
button { border: 0; background: none; color: inherit; cursor: pointer; }
input, textarea { color: inherit; }
address { font-style: normal; }

.visually-hidden,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 9999;
  padding: .8rem 1rem;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
}

/* TYPOGRAPHY / LAYOUT ------------------------------------------------------ */
h1, h2, h3 {
  color: var(--ink);
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -.035em;
}
h1 { font-size: clamp(2.7rem, 6vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.55rem); }
p { color: var(--muted); }
.lead {
  color: var(--ink-2);
  font-size: clamp(1.08rem, 1.7vw, 1.3rem);
  line-height: 1.65;
}
.wrap { width: min(calc(100% - 2.5rem), var(--wrap)); margin-inline: auto; }
.section { padding-block: clamp(4.5rem, 9vw, 8rem); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section-soft { background: var(--surface-soft); }
.section-ink { position: relative; overflow: hidden; background: var(--ink); color: #fff; }
.section-ink::before,
.section-ink::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(1px);
  opacity: .22;
  pointer-events: none;
}
.section-ink::before { width: 430px; height: 430px; top: -250px; right: -80px; background: var(--pink); }
.section-ink::after { width: 350px; height: 350px; bottom: -250px; left: -80px; background: var(--blue); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  width: fit-content;
  padding: .48rem .78rem;
  border: 1px solid color-mix(in srgb, var(--pink) 55%, transparent);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  color: var(--pink-dark);
  font-family: "Manrope", sans-serif;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .11em;
  line-height: 1;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.eyebrow--light { border-color: rgba(255, 255, 255, .38); background: rgba(255, 255, 255, .1); color: #fff; }

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .7fr);
  gap: clamp(1.5rem, 6vw, 5rem);
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-heading h2 { max-width: 13ch; margin-top: .9rem; }
.section-heading > p { max-width: 48ch; justify-self: end; font-size: 1.08rem; }
.section-heading--light h2,
.section-heading--light p { color: #fff; }
.section-heading--light p { color: rgba(255,255,255,.72); }

/* BUTTONS / LINKS --------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 50px;
  padding: .9rem 1.35rem;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: "Manrope", sans-serif;
  font-size: .92rem;
  font-weight: 800;
  line-height: 1;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease, color .22s ease, border-color .22s ease;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 28%, rgba(255,255,255,.34) 48%, transparent 68%);
  transform: translateX(-120%);
  transition: transform .65s ease;
}
.btn:hover { transform: translateY(-3px); }
.btn:hover::before { transform: translateX(120%); }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 16px 35px -20px rgba(39,36,59,.85); }
.btn-primary:hover { background: #171524; box-shadow: 0 22px 44px -24px rgba(39,36,59,.95); }
.btn-secondary { border-color: var(--line); background: rgba(255,255,255,.8); color: var(--ink); }
.btn-secondary:hover { border-color: rgba(39,36,59,.35); background: #fff; }
.btn-light { background: #fff; color: var(--ink); box-shadow: 0 16px 36px -24px rgba(0,0,0,.55); }
.btn-light:hover { background: var(--yellow-soft); }
.btn-glass { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.1); color: #fff; backdrop-filter: blur(10px); }
.btn-glass:hover { background: rgba(255,255,255,.2); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  width: fit-content;
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  transition: color .2s ease, gap .2s ease;
}
.text-link:hover { gap: .75rem; color: var(--pink-dark); }

/* PALETTE RIBBON / HEADER ------------------------------------------------- */
.palette-ribbon { display: grid; grid-template-columns: repeat(5, 1fr); height: 7px; }
.palette-ribbon span:nth-child(1) { background: var(--pink); }
.palette-ribbon span:nth-child(2) { background: var(--blue); }
.palette-ribbon span:nth-child(3) { background: var(--lilac); }
.palette-ribbon span:nth-child(4) { background: var(--blush); }
.palette-ribbon span:nth-child(5) { background: var(--yellow); }

.utility-bar { background: var(--ink); color: #fff; }
.utility-inner { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: .78rem; }
.utility-inner p { color: rgba(255,255,255,.72); }
.utility-inner p strong { color: #fff; }
.utility-links { display: flex; align-items: center; gap: 1.4rem; color: rgba(255,255,255,.78); }
.utility-links a:hover { color: #fff; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 300;
  min-height: var(--header-h);
  border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(16px);
  transform: translateY(0);
  will-change: transform;
  transition:
    transform .38s cubic-bezier(.22,.61,.36,1),
    box-shadow .25s ease,
    border-color .25s ease,
    background .25s ease;
}
.site-header.is-stuck { border-color: var(--line); background: rgba(255,253,251,.95); box-shadow: var(--shadow-sm); }
.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
  padding-block: .55rem;
  transition:
    min-height .3s ease,
    padding .3s ease,
    width .3s ease,
    border-radius .3s ease,
    border-color .3s ease,
    background .3s ease,
    box-shadow .3s ease;
}
.brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.brand-logo {
  display: block;
  width: auto;
  height: 72px;
  filter: none;
  box-shadow: none;
  transition: transform .25s ease;
}
.brand:hover .brand-logo { transform: scale(1.025); }
.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; align-items: center; gap: .08rem; }
.primary-nav a {
  position: relative;
  display: block;
  padding: .65rem .58rem;
  border-radius: 10px;
  color: var(--ink-2);
  font-size: .86rem;
  font-weight: 600;
  transition: color .18s ease, background .18s ease;
}
.primary-nav a::after {
  content: "";
  position: absolute;
  left: .62rem;
  right: .62rem;
  bottom: .35rem;
  height: 2px;
  border-radius: 4px;
  background: var(--pink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}
.primary-nav a:hover { background: var(--blush-soft); color: var(--ink); }
.primary-nav a:hover::after,
.primary-nav a[aria-current="page"]::after { transform: scaleX(1); }
.primary-nav a[aria-current="page"] { color: var(--pink-dark); }
.header-cta { flex: 0 0 auto; margin-left: .45rem; min-height: 44px; padding-inline: 1.1rem; font-size: .82rem; }
.nav-toggle { display: none; width: 48px; height: 48px; border-radius: 14px; background: var(--surface-soft); }
.nav-toggle-bars { display: grid; gap: 5px; width: 22px; margin-inline: auto; }
.nav-toggle-bars span { height: 2px; border-radius: 3px; background: var(--ink); transition: transform .25s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Desktop: header dinamico. Grande in alto, compatto quando riappare e nascosto durante lo scroll verso il basso. */
@media (min-width: 901px) {
  .site-header.is-stuck {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    padding-top: .65rem;
  }
  .site-header.is-stuck .header-inner {
    width: min(calc(100% - 2rem), 1160px);
    min-height: 76px;
    padding: .35rem .55rem .35rem 1rem;
    border: 1px solid rgba(39, 36, 59, .11);
    border-radius: 22px;
    background: rgba(255, 253, 251, .9);
    box-shadow: 0 22px 55px -34px rgba(39, 36, 59, .65);
    backdrop-filter: blur(18px) saturate(1.15);
  }
  .site-header.is-stuck .brand-logo { height: 54px; }
  .site-header.is-stuck .primary-nav a { padding-block: .55rem; }
  .site-header.is-stuck .header-cta { min-height: 42px; }
  .site-header.is-hidden { transform: translateY(calc(-100% - 18px)); }
}

/* HOME HERO SLIDER -------------------------------------------------------- */
.hero-slider { position: relative; min-height: clamp(620px, 76vh, 760px); overflow: hidden; background: var(--ink); color: #fff; }
.hero-track { position: absolute; inset: 0; }
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.018);
  transition: opacity .7s ease, visibility .7s ease, transform 1.1s ease;
}
.hero-slide.is-active { z-index: 1; opacity: 1; visibility: visible; transform: scale(1); }
.hero-slide__image { position: absolute; inset: 0; }
.hero-slide__image img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-slide__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(25,23,38,.94) 0%, rgba(25,23,38,.8) 39%, rgba(25,23,38,.28) 67%, rgba(25,23,38,.14) 100%),
    linear-gradient(0deg, rgba(25,23,38,.72) 0%, transparent 48%);
}
.hero-slide--pink .hero-slide__shade { background: linear-gradient(90deg, rgba(53,24,41,.95) 0%, rgba(91,34,64,.82) 40%, rgba(39,36,59,.18) 76%), linear-gradient(0deg, rgba(39,36,59,.68), transparent 55%); }
.hero-slide--blue .hero-slide__shade { background: linear-gradient(90deg, rgba(23,45,68,.96) 0%, rgba(36,95,140,.78) 42%, rgba(39,36,59,.16) 78%), linear-gradient(0deg, rgba(39,36,59,.7), transparent 55%); }
.hero-slide--yellow .hero-slide__shade { background: linear-gradient(90deg, rgba(52,42,17,.96) 0%, rgba(89,68,14,.76) 42%, rgba(39,36,59,.15) 78%), linear-gradient(0deg, rgba(39,36,59,.72), transparent 55%); }
.hero-slide__inner { position: relative; z-index: 2; display: flex; align-items: center; min-height: clamp(620px, 76vh, 760px); padding-block: 5rem 6rem; }
.hero-copy { max-width: 760px; }
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1.25rem;
  padding: .55rem .85rem;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-family: "Manrope", sans-serif;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}
.hero-kicker::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--yellow); }
.hero-copy :is(h1, .hero-title) { max-width: 12ch; color: #fff; font-size: clamp(2.7rem, 6vw, 5.5rem); text-wrap: balance; text-shadow: 0 5px 28px rgba(0,0,0,.25); }
.hero-copy > p { max-width: 57ch; margin-top: 1.35rem; color: rgba(255,255,255,.82); font-size: clamp(1.08rem, 1.55vw, 1.25rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero-actions--dark .btn-glass { color: var(--ink); }
.marker-stack { position: absolute; right: 2.5%; bottom: 16%; display: grid; gap: 8px; width: min(34vw, 380px); transform: rotate(-4deg); opacity: .92; }
.marker-stack i { display: block; height: 18px; border-radius: 999px 22px 999px 18px; box-shadow: 0 8px 22px rgba(0,0,0,.12); }
.marker-stack i:nth-child(1) { width: 94%; background: var(--pink); transform: translateX(4%); }
.marker-stack i:nth-child(2) { width: 88%; background: var(--blue); }
.marker-stack i:nth-child(3) { width: 96%; background: var(--lilac); transform: translateX(2%); }
.marker-stack i:nth-child(4) { width: 82%; background: var(--blush); transform: translateX(11%); }
.marker-stack i:nth-child(5) { width: 91%; background: var(--yellow); transform: translateX(5%); }

/* QUICK FACTS ------------------------------------------------------------- */
.quick-facts { position: relative; z-index: 10; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: -1.7rem; }
.fact-card { display: flex; flex-direction: column; justify-content: center; min-height: 132px; padding: 1.35rem; border: 1px solid rgba(255,255,255,.65); border-radius: var(--radius); box-shadow: var(--shadow); }
.fact-card strong { color: var(--ink); font-family: "Manrope", sans-serif; font-size: clamp(1.85rem, 3vw, 2.55rem); line-height: 1; }
.fact-card span { margin-top: .55rem; color: var(--ink-2); font-size: .9rem; font-weight: 600; }
.fact-card--pink { background: var(--pink-soft); }
.fact-card--blue { background: var(--blue-soft); }
.fact-card--lilac { background: var(--lilac-soft); }
.fact-card--yellow { background: var(--yellow-soft); }

/* DEPARTMENTS ------------------------------------------------------------- */
.department-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 260px; gap: 1.1rem; }
.department-card {
  position: relative;
  grid-column: span 5;
  min-height: 260px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--ink);
  box-shadow: var(--shadow-sm);
  isolation: isolate;
}
.department-card--wide { grid-column: span 7; grid-row: span 2; }
.department-card:nth-child(4) { grid-column: 1 / -1; min-height: 300px; }
.department-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .65s cubic-bezier(.22,.61,.36,1); }
.department-card__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 28%, rgba(25,23,38,.84) 100%); }
.department-card::after { content: ""; position: absolute; inset: auto -10% -35% auto; width: 190px; aspect-ratio: 1; border-radius: 50%; opacity: .7; filter: blur(2px); transition: transform .5s ease; }
.department-card--pink::after { background: var(--pink); }
.department-card--blue::after { background: var(--blue); }
.department-card--lilac::after { background: var(--lilac); }
.department-card--yellow::after { background: var(--yellow); }
.department-card__body { position: absolute; z-index: 2; inset: auto 0 0; padding: clamp(1.3rem, 3vw, 2rem); color: #fff; }
.department-card__body > span:first-child { display: block; margin-bottom: .45rem; color: rgba(255,255,255,.7); font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.department-card h3 { max-width: 17ch; color: #fff; font-size: clamp(1.45rem, 2.6vw, 2.25rem); }
.department-card__link { display: inline-flex; margin-top: .85rem; color: #fff; font-weight: 700; opacity: .82; }
.department-card:hover img { transform: scale(1.055); }
.department-card:hover::after { transform: translate(-14px, -12px) scale(1.08); }
.department-card:hover .department-card__link { opacity: 1; }
.department-grid--equal { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 340px; }
.department-grid--equal .department-card,
.department-grid--equal .department-card--wide,
.department-grid--equal .department-card:nth-child(4) { grid-column: auto; grid-row: auto; min-height: 340px; }
.department-grid--equal .department-card h3 { font-size: 1.55rem; }

/* STORY ------------------------------------------------------------------- */
.story-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .9fr); gap: clamp(2.5rem, 8vw, 7rem); align-items: center; }
.story-media { position: relative; min-height: 580px; }
.story-image { position: absolute; inset: 0 8% 7% 0; overflow: hidden; border-radius: var(--radius-xl); box-shadow: var(--shadow-strong); }
.story-image img { width: 100%; height: 100%; object-fit: cover; }
.story-year { position: absolute; right: 0; bottom: 0; display: grid; place-items: center; width: 168px; aspect-ratio: 1; border: 10px solid var(--paper); border-radius: 50%; background: var(--pink); color: #fff; box-shadow: var(--shadow); transform: rotate(5deg); }
.story-year span { align-self: end; font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.story-year strong { align-self: start; margin-top: -.15rem; font-family: "Manrope", sans-serif; font-size: 2.45rem; line-height: 1; }
.story-dots { position: absolute; top: -18px; right: 0; width: 118px; height: 118px; opacity: .6; background-image: radial-gradient(var(--blue) 3px, transparent 3px); background-size: 16px 16px; }
.story-copy h2 { max-width: 12ch; margin: 1rem 0 1.3rem; }
.story-copy > p:not(.lead) { margin-top: 1rem; }
.team-pills { display: flex; flex-wrap: wrap; gap: .55rem; margin: 1.6rem 0; }
.team-pills span { padding: .5rem .9rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-2); font-weight: 700; }

/* SERVICE GRID ON HOME ---------------------------------------------------- */
.service-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.service-card { position: relative; display: flex; min-height: 260px; flex-direction: column; justify-content: space-between; padding: 1.5rem; overflow: hidden; border: 1px solid var(--line-light); border-radius: var(--radius); background: rgba(255,255,255,.06); color: #fff; backdrop-filter: blur(8px); transition: transform .25s ease, background .25s ease, border-color .25s ease; }
.service-card:nth-child(1) { --service-accent: var(--pink); }
.service-card:nth-child(2) { --service-accent: var(--blue); }
.service-card:nth-child(3) { --service-accent: var(--lilac); }
.service-card:nth-child(4) { --service-accent: var(--yellow); }
.service-card::before { content: ""; position: absolute; right: -50px; bottom: -58px; width: 150px; aspect-ratio: 1; border-radius: 50%; background: var(--service-accent); opacity: .8; transition: transform .35s ease; }
.service-card__number { position: relative; z-index: 1; color: rgba(255,255,255,.55); font-family: "Manrope", sans-serif; font-weight: 800; }
.service-card h3 { position: relative; z-index: 1; max-width: 12ch; color: #fff; font-size: 1.4rem; }
.service-card__arrow { position: absolute; right: 1.3rem; top: 1.2rem; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; }
.service-card:hover { transform: translateY(-6px); border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.1); }
.service-card:hover::before { transform: translate(-14px, -12px) scale(1.12); }

/* ECOMMERCE BANNER -------------------------------------------------------- */
.ecommerce-banner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .75fr); gap: 2rem; align-items: center; min-height: 440px; padding: clamp(2rem, 6vw, 5rem); overflow: hidden; border-radius: var(--radius-xl); background: linear-gradient(130deg, var(--yellow-soft), var(--blush-soft) 48%, var(--blue-soft)); box-shadow: var(--shadow); }
.ecommerce-banner::before { content: ""; position: absolute; width: 480px; aspect-ratio: 1; right: -200px; top: -250px; border: 70px solid rgba(255,255,255,.35); border-radius: 50%; }
.ecommerce-copy { position: relative; z-index: 2; }
.ecommerce-copy h2 { max-width: 13ch; margin: .95rem 0 1rem; }
.ecommerce-copy p { max-width: 52ch; }
.ecommerce-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.7rem; }
.ecommerce-visual { position: relative; min-height: 290px; }
.shop-card { position: absolute; overflow: hidden; width: 220px; height: 280px; border: 8px solid rgba(255,255,255,.72); border-radius: 32px; box-shadow: var(--shadow); }
.shop-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shop-card span { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 1.4rem 1.1rem .95rem; color: #fff; font-family: "Manrope", sans-serif; font-size: 1.2rem; font-weight: 800; background: linear-gradient(to top, rgba(19,17,32,.7), transparent); }
.shop-card--one { left: 0; top: 28px; background: var(--pink); transform: rotate(-12deg); }
.shop-card--two { left: 28%; top: 0; background: var(--blue); transform: rotate(2deg); }
.shop-card--three { right: 0; top: 40px; background: var(--lilac); transform: rotate(12deg); }
.ecommerce-banner--compact { min-height: 350px; grid-template-columns: 1fr 280px; }
.cta-orb { position: relative; z-index: 1; display: grid; place-items: center; width: 240px; aspect-ratio: 1; margin-inline: auto; border: 22px solid rgba(255,255,255,.55); border-radius: 50%; background: var(--pink); color: #fff; box-shadow: var(--shadow); }
.cta-orb span { font-family: "Manrope", sans-serif; font-size: 2rem; font-weight: 800; letter-spacing: .08em; }

/* POSTS / PRODUCTS -------------------------------------------------------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.post-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease; }
.post-card__media { display: block; overflow: hidden; aspect-ratio: 16 / 10; background: var(--lilac-soft); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.post-placeholder { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--pink-soft), var(--blue-soft)); }
.post-card__body { padding: 1.35rem 1.4rem 1.55rem; }
.post-date { color: var(--pink-dark); font-size: .72rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.post-card h2,
.post-card h3 { margin: .55rem 0 .7rem; font-size: 1.35rem; }
.post-card p { margin-bottom: 1rem; font-size: .94rem; }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.post-card:hover img { transform: scale(1.055); }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.15rem; }
.product-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease; }
.product-card__media { display: block; overflow: hidden; aspect-ratio: 1; background: var(--surface-soft); }
.product-card__media img { width: 100%; height: 100%; object-fit: contain; padding: 1rem; transition: transform .45s ease; }
.product-placeholder { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--yellow-soft), var(--pink-soft)); }
.product-card__body { display: flex; min-height: 190px; flex-direction: column; align-items: flex-start; padding: 1.25rem; }
.product-card h2 { margin-bottom: .75rem; font-size: 1.05rem; letter-spacing: -.02em; }
.product-price { margin-top: auto; margin-bottom: .7rem; color: var(--pink-dark); font-family: "Manrope", sans-serif; font-size: 1.15rem; }
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.product-card:hover img { transform: scale(1.05); }

/* PAGE HERO --------------------------------------------------------------- */
.page-hero { position: relative; overflow: hidden; padding-block: clamp(4rem, 8vw, 7rem); background: var(--surface-soft); }
.page-hero::before { content: ""; position: absolute; left: -180px; bottom: -280px; width: 520px; aspect-ratio: 1; border: 90px solid rgba(255,255,255,.38); border-radius: 50%; }
.page-hero--pink { background: linear-gradient(120deg, var(--pink-soft), var(--blush-soft)); }
.page-hero--blue { background: linear-gradient(120deg, var(--blue-soft), #edf5fa); }
.page-hero--lilac { background: linear-gradient(120deg, var(--lilac-soft), var(--blush-soft)); }
.page-hero--yellow { background: linear-gradient(120deg, var(--yellow-soft), #fff9e7); }
.page-hero--compact { padding-block: clamp(3.3rem, 7vw, 5.7rem); }
.page-hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .78fr); gap: clamp(2rem, 7vw, 6rem); align-items: center; }
.page-hero__copy h1 { max-width: 12ch; margin: .9rem 0 1.1rem; font-size: clamp(2.7rem, 5.3vw, 5rem); }
.page-hero__copy .lead { max-width: 56ch; }
.crumbs { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.2rem; color: var(--muted); font-size: .82rem; font-weight: 600; }
.crumbs a:hover { color: var(--pink-dark); }
.page-hero__visual { position: relative; min-height: 420px; }
.page-hero__visual > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 10px solid rgba(255,255,255,.65); border-radius: var(--radius-xl); box-shadow: var(--shadow); transform: rotate(2deg); }
.page-hero__swatches { position: absolute; left: -12%; bottom: 4%; display: grid; gap: 7px; width: 72%; transform: rotate(-7deg); }
.page-hero__swatches i { height: 15px; border-radius: 999px; }
.page-hero__swatches i:nth-child(1) { width: 95%; background: var(--pink); }
.page-hero__swatches i:nth-child(2) { width: 88%; background: var(--blue); }
.page-hero__swatches i:nth-child(3) { width: 100%; background: var(--lilac); }
.page-hero__swatches i:nth-child(4) { width: 82%; background: var(--blush); }
.page-hero__swatches i:nth-child(5) { width: 91%; background: var(--yellow); }
.page-hero__badge { position: absolute; right: -18px; bottom: -20px; display: grid; place-items: center; width: 150px; aspect-ratio: 1; border: 9px solid rgba(255,255,255,.85); border-radius: 50%; background: var(--pink); color: #fff; box-shadow: var(--shadow); transform: rotate(6deg); }
.page-hero__badge strong { align-self: end; font-family: "Manrope", sans-serif; font-size: 2.8rem; line-height: 1; }
.page-hero__badge span { align-self: start; font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

/* ARTICLES PAGE ----------------------------------------------------------- */
.category-intro { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 2.5rem; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow-sm); }
.category-intro > span { flex: 0 0 auto; color: var(--muted); font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.category-intro nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .45rem; }
.category-intro a { padding: .5rem .75rem; border-radius: 999px; background: var(--surface-soft); color: var(--ink-2); font-size: .84rem; font-weight: 700; }
.category-intro a:hover { background: var(--pink-soft); color: var(--pink-dark); }
.category-list { display: grid; gap: clamp(2rem, 5vw, 4rem); }
.category-row { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; min-height: 470px; padding: clamp(1rem, 2vw, 1.5rem); overflow: hidden; border-radius: var(--radius-xl); }
.category-row:nth-child(even) .category-row__media { order: 2; }
.category-row::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .82; }
.category-row--pink::before { background: var(--pink-soft); }
.category-row--blue::before { background: var(--blue-soft); }
.category-row--lilac::before { background: var(--lilac-soft); }
.category-row--yellow::before { background: var(--yellow-soft); }
.category-row__media { height: 100%; min-height: 440px; overflow: hidden; border-radius: calc(var(--radius-xl) - 12px); box-shadow: var(--shadow); }
.category-row__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.category-row:hover img { transform: scale(1.04); }
.category-row__copy { position: relative; padding: clamp(1rem, 3vw, 2.5rem); }
.category-row__copy h2 { max-width: 12ch; margin: .8rem 0 1rem; }
.category-row__copy p { max-width: 55ch; margin-bottom: 1.5rem; }
.category-number { position: absolute; right: 0; top: -1rem; color: rgba(39,36,59,.08); font-family: "Manrope", sans-serif; font-size: clamp(5rem, 10vw, 9rem); font-weight: 800; line-height: 1; }

/* ABOUT PAGE -------------------------------------------------------------- */
.editorial-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2.5rem, 9vw, 8rem); align-items: start; }
.editorial-title { position: sticky; top: calc(var(--header-h) + 2rem); }
.editorial-title h2 { max-width: 11ch; margin-top: 1rem; }
.editorial-copy { max-width: 64ch; }
.editorial-copy p { margin-bottom: 1.4rem; font-size: 1.06rem; }
.editorial-copy .lead { font-size: 1.3rem; }
.timeline-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.timeline-card { min-height: 340px; padding: 1.7rem; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.timeline-card--pink { background: var(--pink-soft); }
.timeline-card--blue { background: var(--blue-soft); }
.timeline-card--yellow { background: var(--yellow-soft); }
.timeline-card > span { display: inline-block; margin-bottom: 5rem; color: var(--ink-2); font-family: "Manrope", sans-serif; font-weight: 800; }
.timeline-card h3 { margin-bottom: .8rem; font-size: 1.7rem; }
.team-section { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 7vw, 6rem); align-items: center; }
.team-section__copy h2 { max-width: 12ch; margin: .9rem 0 1rem; }
.team-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.team-card { display: flex; min-height: 180px; flex-direction: column; justify-content: flex-end; padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.team-card:nth-child(1) { background: var(--pink-soft); }
.team-card:nth-child(2) { background: var(--blue-soft); }
.team-card:nth-child(3) { background: var(--lilac-soft); }
.team-card:nth-child(4) { background: var(--yellow-soft); }
.team-card strong { font-family: "Manrope", sans-serif; font-size: 1.35rem; }
.team-card span { color: var(--muted); }

/* SERVICE PAGE ------------------------------------------------------------ */
.service-hero-art { position: relative; min-height: 410px; }
.paper { position: absolute; display: grid; place-items: center; width: 270px; height: 350px; border: 10px solid rgba(255,255,255,.76); border-radius: 28px; color: #fff; font-family: "Manrope", sans-serif; font-size: 2.2rem; font-weight: 800; box-shadow: var(--shadow); }
.paper--one { left: 0; top: 44px; background: var(--pink); transform: rotate(-11deg); }
.paper--two { left: 26%; top: 8px; background: var(--blue); transform: rotate(1deg); }
.paper--three { right: 0; top: 55px; background: var(--lilac); transform: rotate(11deg); }
.service-detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
.service-detail { display: grid; grid-template-columns: 100px 1fr; gap: 1.2rem; min-height: 260px; padding: 1.6rem; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.service-detail--pink { background: var(--pink-soft); }
.service-detail--blue { background: var(--blue-soft); }
.service-detail--lilac { background: var(--lilac-soft); }
.service-detail--yellow { background: var(--yellow-soft); }
.service-detail__number { color: rgba(39,36,59,.22); font-family: "Manrope", sans-serif; font-size: 3rem; font-weight: 800; line-height: 1; }
.service-detail h2 { margin-bottom: .9rem; font-size: clamp(1.45rem, 2.5vw, 2.1rem); }
.process-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.process-step { min-height: 260px; padding: 1.6rem; border: 1px solid var(--line-light); border-radius: var(--radius); background: rgba(255,255,255,.06); }
.process-step > span { display: grid; place-items: center; width: 48px; aspect-ratio: 1; margin-bottom: 3.5rem; border-radius: 50%; background: var(--yellow); color: var(--ink); font-family: "Manrope", sans-serif; font-weight: 800; }
.process-step h3 { margin-bottom: .65rem; color: #fff; }
.process-step p { color: rgba(255,255,255,.68); }
.why-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2.5rem, 8vw, 7rem); }
.why-title { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; }
.why-title h2 { max-width: 11ch; margin-top: 1rem; }
.why-list { display: grid; }
.why-item { display: grid; grid-template-columns: 70px 1fr; gap: 1rem; padding: 1.6rem 0; border-bottom: 1px solid var(--line); }
.why-item:first-child { padding-top: 0; }
.why-item > span { color: var(--pink-dark); font-family: "Manrope", sans-serif; font-weight: 800; }
.why-item h3 { margin-bottom: .5rem; }

/* SHOP PAGE ART / FALLBACK ------------------------------------------------ */
.shop-hero-art { position: relative; min-height: 420px; }
.shopping-bag { position: absolute; inset: 35px 9% 0; display: grid; place-items: center; border: 10px solid rgba(255,255,255,.65); border-radius: 40px 40px 70px 70px; background: var(--pink); box-shadow: var(--shadow); transform: rotate(3deg); }
.shopping-bag::before { content: ""; position: absolute; top: -72px; width: 44%; height: 110px; border: 16px solid var(--ink); border-bottom: 0; border-radius: 80px 80px 0 0; }
.shopping-bag span { color: #fff; font-family: "Manrope", sans-serif; font-size: 2.4rem; font-weight: 800; letter-spacing: .08em; }
.shop-dot { position: absolute; border-radius: 50%; }
.shop-dot--one { left: 0; top: 10%; width: 82px; aspect-ratio: 1; background: var(--blue); }
.shop-dot--two { right: 0; top: 3%; width: 58px; aspect-ratio: 1; background: var(--lilac); }
.shop-dot--three { right: 2%; bottom: 0; width: 105px; aspect-ratio: 1; background: var(--yellow); }
.api-fallback { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: clamp(2rem, 5vw, 4rem); border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(120deg, var(--surface), var(--blue-soft)); box-shadow: var(--shadow-sm); }
.api-fallback h2 { max-width: 17ch; margin: .8rem 0 1rem; }
.api-fallback p { max-width: 60ch; }
.api-code { max-width: 40%; padding: .8rem 1rem; overflow-wrap: anywhere; border-radius: 14px; background: var(--ink); color: #fff; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .78rem; }

/* BLOG HERO ART ----------------------------------------------------------- */
.blog-hero-art { position: relative; display: grid; place-items: center; min-height: 310px; }
.blog-hero-art > span { position: relative; z-index: 2; display: grid; place-items: center; width: 240px; aspect-ratio: 1; border: 14px solid rgba(255,255,255,.7); border-radius: 50%; background: var(--pink); color: #fff; font-family: "Manrope", sans-serif; font-size: 2.1rem; font-weight: 800; letter-spacing: .08em; box-shadow: var(--shadow); transform: rotate(-7deg); }
.blog-hero-art i { position: absolute; width: 220px; height: 24px; border-radius: 999px; }
.blog-hero-art i:nth-of-type(1) { top: 15%; right: 0; background: var(--blue); transform: rotate(4deg); }
.blog-hero-art i:nth-of-type(2) { bottom: 21%; left: 0; background: var(--lilac); transform: rotate(-5deg); }
.blog-hero-art i:nth-of-type(3) { bottom: 7%; right: 8%; background: var(--yellow); transform: rotate(6deg); }

/* GALLERY ----------------------------------------------------------------- */
.gallery-hero-stack { position: relative; min-height: 330px; }
.gallery-hero-stack div { position: absolute; width: 62%; aspect-ratio: 4 / 3; border: 10px solid rgba(255,255,255,.78); border-radius: 28px; box-shadow: var(--shadow); }
.gallery-hero-stack div:nth-child(1) { left: 0; top: 38px; background: var(--pink); transform: rotate(-10deg); }
.gallery-hero-stack div:nth-child(2) { left: 19%; top: 10px; background: var(--blue); transform: rotate(1deg); }
.gallery-hero-stack div:nth-child(3) { right: 0; top: 44px; background: var(--yellow); transform: rotate(10deg); }
.gallery-grid-modern { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 230px; gap: 1rem; }
.gallery-item { position: relative; grid-column: span 4; overflow: hidden; border-radius: var(--radius); background: var(--surface-soft); box-shadow: var(--shadow-sm); }
.gallery-item--1 { grid-column: span 7; grid-row: span 2; }
.gallery-item--2 { grid-column: span 5; }
.gallery-item--3 { grid-column: span 5; }
.gallery-item--4 { grid-column: span 5; }
.gallery-item--5 { grid-column: span 7; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, filter .4s ease; }
.gallery-item > span { position: absolute; left: 1rem; right: 1rem; bottom: 1rem; display: flex; align-items: center; justify-content: space-between; padding: .75rem .9rem; border-radius: 14px; background: rgba(39,36,59,.78); color: #fff; font-size: .82rem; font-weight: 700; opacity: 0; transform: translateY(8px); backdrop-filter: blur(8px); transition: opacity .25s ease, transform .25s ease; }
.gallery-item:hover img { transform: scale(1.045); filter: saturate(1.08); }
.gallery-item:hover > span { opacity: 1; transform: none; }
.lightbox { position: fixed; inset: 0; width: min(95vw, 1200px); max-width: none; height: min(92vh, 900px); max-height: none; margin: auto; padding: 0; overflow: hidden; border: 0; border-radius: var(--radius); background: var(--ink); box-shadow: 0 35px 100px rgba(0,0,0,.55); }
.lightbox::backdrop { background: rgba(16,14,24,.82); backdrop-filter: blur(8px); }
.lightbox img { width: 100%; height: 100%; object-fit: contain; }
.lightbox-close { position: absolute; z-index: 2; top: 1rem; right: 1rem; display: grid; place-items: center; width: 46px; aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--ink); font-size: 1.8rem; line-height: 1; }

/* CONTACT ----------------------------------------------------------------- */
.contact-hero-art { position: relative; display: grid; place-items: center; min-height: 300px; }
.contact-hero-art > span { position: relative; z-index: 2; display: grid; place-items: center; width: 230px; aspect-ratio: 1; border: 12px solid rgba(255,255,255,.75); border-radius: 50%; background: var(--blue); color: #fff; font-family: "Manrope", sans-serif; font-size: 6rem; font-weight: 800; box-shadow: var(--shadow); }
.contact-hero-art i { position: absolute; height: 20px; border-radius: 999px; }
.contact-hero-art i:nth-of-type(1) { width: 65%; top: 16%; right: 0; background: var(--pink); }
.contact-hero-art i:nth-of-type(2) { width: 72%; bottom: 18%; left: 0; background: var(--lilac); }
.contact-hero-art i:nth-of-type(3) { width: 45%; bottom: 5%; right: 4%; background: var(--yellow); }
.contact-layout { display: grid; grid-template-columns: 1.12fr .88fr; gap: 1.2rem; align-items: stretch; }
.contact-form-card { padding: clamp(1.7rem, 4vw, 3rem); border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-sm); }
.contact-form-card h2 { max-width: 15ch; margin: .9rem 0 1.7rem; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; margin-bottom: .42rem; color: var(--ink-2); font-size: .86rem; font-weight: 700; }
.field input,
.field textarea { width: 100%; border: 1.5px solid var(--line); border-radius: 15px; background: var(--paper); padding: .9rem 1rem; outline: none; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus,
.field textarea:focus { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(58,128,183,.14); }
.field-hp { position: absolute; left: -9999px; }
.check-row { display: flex; align-items: flex-start; gap: .65rem; margin: .4rem 0 1.25rem; color: var(--muted); font-size: .86rem; }
.check-row input { margin-top: .23rem; accent-color: var(--pink-dark); }
.check-row a { color: var(--pink-dark); text-decoration: underline; }
.form-notice { display: grid; gap: .25rem; margin: 1.5rem 0; padding: 1rem 1.1rem; border-radius: 14px; }
.form-notice--success { background: var(--blue-soft); color: var(--blue-dark); }
.form-notice--error { background: var(--pink-soft); color: var(--pink-dark); }
.form-notice span { color: inherit; }
.contact-info-card { display: flex; flex-direction: column; padding: clamp(1.7rem, 4vw, 3rem); border-radius: var(--radius-lg); background: var(--ink); color: #fff; box-shadow: var(--shadow); }
.contact-info-card h2 { max-width: 13ch; margin: .9rem 0 2rem; color: #fff; font-size: clamp(1.8rem, 3vw, 2.7rem); }
.contact-info-list { display: grid; margin-bottom: 2rem; }
.contact-info-list > div { display: grid; grid-template-columns: 110px 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line-light); }
.contact-info-list span { color: rgba(255,255,255,.55); font-size: .76rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.contact-info-list strong { color: #fff; font-size: .95rem; overflow-wrap: anywhere; }
.contact-info-card .btn { margin-top: auto; align-self: flex-start; }
.map-wide { overflow: hidden; height: 430px; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.map-wide iframe { width: 100%; height: 100%; border: 0; }

/* PRIVACY ----------------------------------------------------------------- */
.privacy-hero-art { display: grid; place-items: center; min-height: 260px; }
.privacy-hero-art span { display: grid; place-items: center; width: 210px; aspect-ratio: 1; border: 14px solid rgba(255,255,255,.7); border-radius: 50%; background: var(--yellow); color: var(--ink); font-family: "Manrope", sans-serif; font-size: 6rem; font-weight: 800; box-shadow: var(--shadow); transform: rotate(6deg); }
.legal-layout { display: grid; grid-template-columns: 230px 1fr; gap: clamp(2rem, 7vw, 6rem); align-items: start; }
.legal-index { position: sticky; top: calc(var(--header-h) + 2rem); display: grid; gap: .4rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.legal-index strong { margin-bottom: .4rem; font-family: "Manrope", sans-serif; }
.legal-index a { padding: .45rem .6rem; border-radius: 9px; color: var(--muted); font-size: .9rem; }
.legal-index a:hover { background: var(--yellow-soft); color: var(--ink); }
.legal-content { max-width: 78ch; }
.legal-warning { margin-bottom: 2rem; padding: 1rem 1.1rem; border-left: 5px solid var(--yellow); border-radius: 0 12px 12px 0; background: var(--yellow-soft); color: var(--ink-2); }
.legal-content section { padding-block: 1.5rem; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 2rem); }
.legal-content h2 { margin-bottom: .8rem; font-size: 1.7rem; }
.legal-content a { color: var(--pink-dark); text-decoration: underline; }

/* CTA PANELS -------------------------------------------------------------- */
.cta-panel { display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 300px; padding: clamp(2rem, 5vw, 4rem); overflow: hidden; border-radius: var(--radius-xl); color: #fff; box-shadow: var(--shadow); }
.cta-panel h2 { max-width: 16ch; margin: .9rem 0 .8rem; color: #fff; }
.cta-panel p { color: rgba(255,255,255,.78); }
.cta-panel--pink { background: linear-gradient(125deg, var(--pink-dark), var(--pink)); }
.cta-panel--blue { background: linear-gradient(125deg, var(--blue-dark), var(--blue)); }
.cta-panel--lilac { background: linear-gradient(125deg, var(--lilac-dark), var(--lilac)); }

/* FOOTER ------------------------------------------------------------------ */
.site-footer { position: relative; margin-top: clamp(4rem, 8vw, 7rem); padding-top: 0; overflow: hidden; background: #1c1a2b; color: #fff; }
.footer-brush { display: grid; grid-template-columns: repeat(5, 1fr); height: 13px; }
.footer-brush span:nth-child(1) { background: var(--pink); }
.footer-brush span:nth-child(2) { background: var(--blue); }
.footer-brush span:nth-child(3) { background: var(--lilac); }
.footer-brush span:nth-child(4) { background: var(--blush); }
.footer-brush span:nth-child(5) { background: var(--yellow); }
.footer-grid { display: grid; grid-template-columns: 1.15fr .65fr .85fr 1.1fr; gap: clamp(1.7rem, 4vw, 3.5rem); padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.footer-logo { width: auto; height: 66px; margin-bottom: 1rem; }
.footer-brand p { max-width: 36ch; color: rgba(255,255,255,.62); }
.footer-social { display: inline-block; margin-top: 1.2rem; color: var(--yellow); font-weight: 700; }
.footer-title { margin-bottom: 1rem; color: rgba(255,255,255,.55); font-size: .75rem; letter-spacing: .11em; text-transform: uppercase; }
.footer-nav { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .45rem 1rem; }
.footer-nav a,
.footer-col address,
.footer-contact { color: rgba(255,255,255,.72); }
.footer-nav a:hover,
.footer-contact a:hover { color: #fff; }
.footer-contact { margin-top: 1rem; }
.footer-link { display: inline-block; margin-top: 1rem; color: var(--yellow); font-weight: 700; }
.footer-map { min-height: 240px; overflow: hidden; border: 1px solid var(--line-light); border-radius: var(--radius); }
.footer-map iframe { width: 100%; height: 100%; border: 0; filter: saturate(.7) contrast(.95); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 1.35rem; border-top: 1px solid var(--line-light); }
.footer-bottom p { color: rgba(255,255,255,.48); font-size: .8rem; }
.footer-bottom a:hover { color: #fff; }
.back-to-top { position: fixed; z-index: 250; right: 1.2rem; bottom: 1.2rem; display: grid; place-items: center; width: 46px; aspect-ratio: 1; border-radius: 50%; background: var(--ink); color: #fff; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .2s ease, visibility .2s ease, transform .2s ease, background .2s ease; }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--pink-dark); }

/* ACCESSIBILITY / MOTION -------------------------------------------------- */
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s cubic-bezier(.22,.61,.36,1); transition-delay: var(--delay, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }

/* RESPONSIVE -------------------------------------------------------------- */
@media (max-width: 1120px) {
  .primary-nav a { padding-inline: .42rem; font-size: .8rem; }
  .header-cta { display: none; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .department-grid--equal { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-map { min-height: 300px; }
}

@media (max-width: 900px) {
  :root { --header-h: 90px; }
  .utility-bar { display: none; }
  .header-inner { min-height: var(--header-h); }
  .brand-logo { height: 58px; }
  .nav-toggle { display: grid; place-items: center; margin-left: auto; }
  .primary-nav {
    position: fixed;
    inset: calc(var(--header-h) + 7px) 1rem auto;
    max-height: calc(100vh - var(--header-h) - 1.5rem);
    margin: 0;
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255,253,251,.98);
    box-shadow: var(--shadow-strong);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px) scale(.98);
    transition: opacity .22s ease, visibility .22s ease, transform .22s ease;
  }
  .primary-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: .1rem; padding: .65rem; }
  .primary-nav a { padding: .85rem 1rem; font-size: .95rem; }
  .primary-nav a::after { display: none; }
  .primary-nav a[aria-current="page"] { background: var(--pink-soft); }

  .section-heading { grid-template-columns: 1fr; gap: 1rem; }
  .section-heading > p { justify-self: start; }
  .quick-facts { grid-template-columns: repeat(2, 1fr); }
  .department-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 300px; }
  .department-card,
  .department-card--wide,
  .department-card:nth-child(4) { grid-column: auto; grid-row: auto; min-height: 300px; }
  .story-grid,
  .page-hero__grid,
  .editorial-grid,
  .team-section,
  .why-grid,
  .contact-layout { grid-template-columns: 1fr; }
  .story-media { min-height: 520px; }
  .page-hero__visual { min-height: 480px; max-width: 650px; width: 100%; }
  .editorial-title,
  .why-title { position: static; }
  .timeline-grid { grid-template-columns: 1fr; }
  .timeline-card { min-height: 260px; }
  .timeline-card > span { margin-bottom: 3rem; }
  .ecommerce-banner { grid-template-columns: 1fr; }
  .ecommerce-visual { min-height: 330px; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .service-detail-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .process-step { min-height: 220px; }
  .service-hero-art,
  .shop-hero-art,
  .blog-hero-art,
  .gallery-hero-stack,
  .contact-hero-art,
  .privacy-hero-art { max-width: 620px; width: 100%; margin-inline: auto; }
  .api-fallback { align-items: flex-start; flex-direction: column; }
  .api-code { max-width: 100%; }
  .category-row { grid-template-columns: 1fr; }
  .category-row:nth-child(even) .category-row__media { order: 0; }
  .category-row__media { min-height: 380px; }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-index { position: static; display: flex; flex-wrap: wrap; }
  .legal-index strong { width: 100%; }
  .gallery-grid-modern { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 300px; }
  .gallery-item,
  .gallery-item--1,
  .gallery-item--2,
  .gallery-item--3,
  .gallery-item--4,
  .gallery-item--5 { grid-column: auto; grid-row: auto; }
  .gallery-item--1 { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .wrap { width: min(calc(100% - 1.4rem), var(--wrap)); }
  h1 { font-size: clamp(2.45rem, 13vw, 4rem); }
  .section { padding-block: 4.3rem; }
  .hero-slider,
  .hero-slide__inner { min-height: 700px; }
  .hero-slide__inner { align-items: flex-end; padding-block: 4rem 5rem; }
  .hero-slide__shade,
  .hero-slide--pink .hero-slide__shade,
  .hero-slide--blue .hero-slide__shade,
  .hero-slide--yellow .hero-slide__shade { background: linear-gradient(0deg, rgba(25,23,38,.96) 0%, rgba(25,23,38,.82) 48%, rgba(25,23,38,.18) 100%); }
  .hero-copy :is(h1, .hero-title) { max-width: 11ch; font-size: clamp(2.7rem, 13vw, 4.2rem); }
  .hero-copy > p { font-size: 1rem; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .marker-stack { display: none; }
  .quick-facts { gap: .7rem; margin-top: -.7rem; }
  .fact-card { min-height: 118px; padding: 1rem; }
  .department-grid,
  .department-grid--equal { grid-template-columns: 1fr; grid-auto-rows: 320px; }
  .department-card,
  .department-card--wide,
  .department-card:nth-child(4),
  .department-grid--equal .department-card { min-height: 320px; }
  .story-media { min-height: 430px; }
  .story-image { inset: 0 4% 6% 0; }
  .story-year { width: 125px; border-width: 7px; }
  .story-year strong { font-size: 1.8rem; }
  .story-year span { font-size: .55rem; }
  .service-grid,
  .post-grid,
  .product-grid,
  .department-grid--equal,
  .team-cards,
  .form-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 220px; }
  .ecommerce-banner { padding: 1.5rem; border-radius: var(--radius-lg); }
  .ecommerce-visual { min-height: 250px; }
  .shop-card { width: 155px; height: 205px; border-width: 6px; border-radius: 24px; font-size: 1rem; }
  .shop-card--two { left: 27%; }
  .page-hero__copy h1 { font-size: clamp(2.5rem, 12vw, 4rem); }
  .page-hero__visual { min-height: 360px; }
  .page-hero__badge { width: 115px; right: -4px; }
  .page-hero__badge strong { font-size: 2rem; }
  .category-intro { align-items: flex-start; flex-direction: column; }
  .category-intro nav { justify-content: flex-start; }
  .category-row { padding: .8rem; border-radius: var(--radius-lg); }
  .category-row__media { min-height: 290px; }
  .category-row__copy { padding: 1.1rem .75rem 1.5rem; }
  .category-number { top: 0; font-size: 5rem; }
  .paper { width: 180px; height: 250px; border-width: 7px; font-size: 1.4rem; }
  .service-hero-art { min-height: 310px; }
  .service-detail { grid-template-columns: 1fr; min-height: 230px; }
  .shopping-bag { inset: 48px 12% 0; }
  .shop-dot--one { width: 60px; }
  .shop-dot--three { width: 75px; }
  .cta-panel { align-items: flex-start; flex-direction: column; min-height: 330px; border-radius: var(--radius-lg); }
  .gallery-grid-modern { grid-template-columns: 1fr; grid-auto-rows: 280px; }
  .gallery-item--1 { grid-column: auto; }
  .gallery-item > span { opacity: 1; transform: none; }
  .contact-info-list > div { grid-template-columns: 1fr; gap: .25rem; }
  .map-wide { height: 330px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-nav { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 430px) {
  .quick-facts { grid-template-columns: 1fr; }
  .fact-card { min-height: 100px; }
  .paper--one { left: -4%; }
  .paper--three { right: -4%; }
  .shop-card--one { left: -5%; }
  .shop-card--three { right: -5%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* --- Singolo articolo / prodotto --------------------------------------- */
.post-single__head { max-width: 820px; }
.post-single__head h1 { margin: .4rem 0 .6rem; }
.post-single__meta { color: var(--muted); font-weight: 600; font-size: .9rem; }
.post-single__media { margin-top: 2rem; }
.post-single__media img { width: 100%; max-height: 460px; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.post-single__body { max-width: 760px; margin-inline: auto; margin-top: 2.4rem; font-size: 1.06rem; line-height: 1.75; color: var(--ink-2); }
.post-single__body > * + * { margin-top: 1.1rem; }
.post-single__body h2 { margin-top: 2rem; font-size: 1.6rem; }
.post-single__body h3 { margin-top: 1.6rem; font-size: 1.3rem; }
.post-single__body img { max-width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.post-single__body a { color: var(--pink-dark); text-decoration: underline; }
.post-single__body ul, .post-single__body ol { padding-left: 1.3rem; }
.post-single__body li + li { margin-top: .4rem; }
.post-single__body blockquote { margin: 1.4rem 0; padding: .4rem 1.2rem; border-left: 4px solid var(--pink); color: var(--muted); font-style: italic; }
.post-single__back { margin-top: 2.6rem; }

.product-single__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 3.5rem); align-items: center; }
.product-single__media { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow); background: var(--surface-soft); }
.product-single__media img { width: 100%; height: 100%; object-fit: cover; }
.product-placeholder--large { min-height: 320px; }
.product-single__price { display: inline-block; margin: .6rem 0 1rem; font-family: "Manrope", sans-serif; font-size: 1.9rem; font-weight: 800; color: var(--pink-dark); }
.product-single__short { color: var(--ink-2); line-height: 1.7; }
.product-single__short > * + * { margin-top: .8rem; }
.product-single__body { max-width: 820px; margin-inline: auto; margin-top: 3rem; line-height: 1.75; color: var(--ink-2); }
.product-single__body h2 { margin-bottom: 1rem; }
.product-single__body > * + * { margin-top: 1rem; }
.product-single__body img { max-width: 100%; height: auto; border-radius: var(--radius); }
.product-single__back { margin-top: 2.6rem; }

@media (max-width: 720px) {
  .product-single__grid { grid-template-columns: 1fr; }
}
