/* ═══════════════════════════════════════════════
   CINIUS — Homepage Japandi
   style.css
═══════════════════════════════════════════════ */

/* ─── GOOGLE FONTS ─── */
@import url('https://fonts.googleapis.com/css2?family=Shippori+Mincho:wght@400;500;600&family=Zen+Kaku+Gothic+New:wght@300;400;500&display=swap');

/* ─── CUSTOM PROPERTIES ─── */
:root {
  /* Palette Japandi — bianco caldo, greige, carboncino, legno chiaro */
  --washi:       #F7F4EF;   /* sfondo principale, carta di riso */
  --shiro:       #FDFCF9;   /* bianco puro */
  --greige:      #EDE8E0;   /* secondo sfondo */
  --stone:       #C8C0B4;   /* bordi, divisori */
  --driftwood:   #7A6B5C;   /* testo secondario - WCAG AA 4.5:1 */
  --ink:         #2A2420;   /* testo principale */
  --sumi:        #1A1614;   /* titoli, accenti forti */
  --hinoki:      #C4A882;   /* legno chiaro — accento caldo */
  --matcha:      #7A8C72;   /* accento verde salvia */

  /* Tipografia */
  --font-serif:  'Shippori Mincho', 'Georgia', serif;
  --font-sans:   'Zen Kaku Gothic New', 'Helvetica Neue', sans-serif;

  /* Spaziature */
  --max-w: 1320px;
  --gutter: 48px;
  --gutter-sm: 24px;

  /* Transizioni */
  --ease: cubic-bezier(.25,.46,.45,.94);
}

/* ─── RESET BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--washi);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ─── UTILITY ─── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: 96px 0; }
.section--light { background: var(--shiro); }
.section--greige { background: var(--greige); }
.section--dark { background: var(--sumi); color: var(--washi); }

.label {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 11px; /* WCAG minimum */
  font-weight: 400;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--driftwood);
  margin-bottom: 20px;
}
.section--dark .label { color: var(--stone); }

.heading {
  font-family: var(--font-serif);
  font-size: clamp(32px, 3.5vw, 52px);
  font-weight: 400;
  line-height: 1.1;
  color: var(--sumi);
  letter-spacing: -.01em;
}
.heading em { font-style: italic; font-weight: 400; }
.section--dark .heading { color: var(--washi); }

.subheading {
  margin-top: 18px;
  font-size: 14px;
  font-weight: 300;
  color: var(--driftwood);
  line-height: 1.85;
  max-width: 480px;
}
.section--dark .subheading { color: var(--stone); }

.section-header {
  margin-bottom: 64px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 12px; /* WCAG minimum for buttons */
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 13px 28px;
  border-radius: 2px;
  cursor: pointer;
  transition: all .25s var(--ease);
  border: 1px solid transparent;
}

.btn--primary {
  background: var(--sumi);
  color: var(--washi);
  border-color: var(--sumi);
}
.btn--primary:hover {
  background: var(--ink);
  border-color: var(--ink);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--sumi);
  border-color: var(--stone);
}
.btn--outline:hover {
  border-color: var(--sumi);
  background: var(--greige);
}

.btn--ghost {
  background: transparent;
  color: var(--washi);
  border-color: rgba(247,244,239,.3);
  padding: 12px 26px;
}
.btn--ghost:hover {
  border-color: var(--washi);
  background: rgba(247,244,239,.08);
}

/* ─── HEADER ─── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: 68px;
  display: flex;
  align-items: center;
  background: rgba(247,244,239,.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled {
  border-color: var(--stone);
  box-shadow: 0 1px 32px rgba(26,22,20,.06);
}

.header-inner {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: 40px;
}

/* Logo */
.header-logo img {
  height: 32px;
  width: auto;
  /* tint greige se necessario: filter: sepia(.2); */
}

/* Nav */
.header-nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-family: var(--font-sans);
  font-size: 13px; /* WCAG minimum for navigation */
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color .2s;
  white-space: nowrap;
}
.nav-link:hover { color: var(--hinoki); }

.nav-link--cta {
  background: var(--sumi);
  color: var(--washi) !important;
  border-radius: 2px;
  padding: 7px 16px;
}
.nav-link--cta:hover { background: var(--ink) !important; color: var(--washi) !important; }

.nav-chevron {
  font-size: 8px;
  opacity: .5;
  transition: transform .2s;
}
.nav-item:hover .nav-chevron { transform: rotate(180deg); }

/* Mega dropdown */
.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--shiro);
  border: 1px solid var(--stone);
  border-radius: 3px;
  padding: 20px 8px;
  min-width: 640px;
  box-shadow: 0 20px 60px rgba(26,22,20,.1);
  animation: dropIn .18s var(--ease);
}
.nav-item:hover .nav-dropdown { display: block; }

.dropdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}

.dropdown-link {
  display: block;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 300;
  color: var(--ink);
  border-radius: 2px;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.dropdown-link:hover {
  background: var(--greige);
  color: var(--sumi);
}

/* Lang + Right */
.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
}
.lang-switcher a img {
  height: 14px;
  width: auto;
  opacity: .45;
  border-radius: 2px;
  transition: opacity .2s;
  filter: saturate(.4);
}
.lang-switcher a:first-child img,
.lang-switcher a img:hover { opacity: 1; filter: saturate(.7); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 2px;
}
.hamburger span {
  display: block;
  height: 1px;
  background: var(--sumi);
  transition: transform .3s var(--ease), opacity .3s;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile Nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 68px 0 0 0;
  z-index: 850;
  background: var(--shiro);
  overflow-y: auto;
  padding: 32px var(--gutter-sm) 48px;
  transform: translateX(100%);
  transition: transform .35s var(--ease);
}
.mobile-nav.is-open {
  display: block;
  transform: translateX(0);
}

.mobile-nav-section { margin-bottom: 32px; }
.mobile-nav-title {
  font-size: 9px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 12px;
}
.mobile-nav-link {
  display: block;
  padding: 10px 0;
  font-size: 15px;
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--sumi);
  border-bottom: 1px solid var(--greige);
  transition: color .2s, padding-left .2s;
}
.mobile-nav-link:hover { color: var(--hinoki); padding-left: 8px; }

.mobile-nav-products {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 16px;
}
.mobile-nav-products a {
  display: block;
  padding: 8px 0;
  font-size: 13px;
  color: var(--ink);
  border-bottom: 1px solid var(--greige);
  transition: color .2s;
}
.mobile-nav-products a:hover { color: var(--hinoki); }

/* ─── HERO VIDEO ─── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--sumi);
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
}

.hero-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .45;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26,22,20,.75) 0%,
    rgba(26,22,20,.3) 60%,
    rgba(26,22,20,.5) 100%
  );
}

/* Linea decorativa verticale sinistra */
.hero-line {
  position: absolute;
  left: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
  height: 200px;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(196,168,130,.5), transparent);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter) 0 calc(var(--gutter) + 32px);
}

.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--hinoki);
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp .7s .2s forwards;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(44px, 5.5vw, 88px);
  font-weight: 400;
  line-height: 1.03;
  color: var(--washi);
  letter-spacing: -.02em;
  max-width: 720px;
  opacity: 0;
  animation: fadeUp .8s .4s forwards;
}

.hero-title em {
  font-style: italic;
  color: var(--hinoki);
}

.hero-desc {
  margin-top: 28px;
  font-size: 15px;
  font-weight: 300;
  color: rgba(247,244,239,.6);
  max-width: 400px;
  line-height: 1.9;
  opacity: 0;
  animation: fadeUp .8s .6s forwards;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 44px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp .8s .8s forwards;
}

/* scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 8px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(247,244,239,.3);
  z-index: 2;
  animation: pulse 2.5s infinite;
}
.scroll-indicator::after {
  content: '';
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, rgba(196,168,130,.6), transparent);
  animation: grow 2.5s infinite;
}

@keyframes grow {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ─── USP STRIP ─── */
.usp-strip {
  background: var(--greige);
  border-top: 1px solid var(--stone);
  border-bottom: 1px solid var(--stone);
  padding: 0;
}

.usp-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.usp-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 28px 24px;
  border-right: 1px solid var(--stone);
}
.usp-item:first-child { padding-left: 0; }
.usp-item:last-child { border-right: none; }

/* Icona SVG inline semplice */
.usp-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.usp-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--ink);
  stroke-width: 1;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.usp-copy strong {
  display: block;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--sumi);
  margin-bottom: 3px;
}
.usp-copy span {
  font-size: 12px;
  font-weight: 300;
  color: var(--driftwood);
  line-height: 1.5;
}

/* ─── PRODOTTI MOSAIC ─── */
.mosaic {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(3, 280px);
  gap: 2px;
  background: var(--stone);
}

/* Layout celle */
.mosaic-cell       { grid-column: span 2; grid-row: span 1; }
.mosaic-cell--tall { grid-column: span 2; grid-row: span 2; }
.mosaic-cell--wide { grid-column: span 4; grid-row: span 1; }
.mosaic-cell--hero { grid-column: span 4; grid-row: span 2; }

.mosaic-item {
  position: relative;
  overflow: hidden;
  background: var(--greige);
  cursor: pointer;
}

.mosaic-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease);
  filter: saturate(.85) brightness(.97);
}
.mosaic-item:hover img {
  transform: scale(1.04);
  filter: saturate(1) brightness(1);
}

.mosaic-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px 20px 18px;
  background: linear-gradient(to top, rgba(26,22,20,.72) 0%, transparent 100%);
  transform: translateY(4px);
  transition: transform .3s var(--ease);
}
.mosaic-item:hover .mosaic-caption { transform: translateY(0); }

.mosaic-caption h3 {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 400;
  color: var(--washi);
  line-height: 1.2;
}

.mosaic-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--hinoki);
  margin-top: 5px;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .25s .05s, transform .25s .05s;
}
.mosaic-item:hover .mosaic-arrow { opacity: 1; transform: translateX(0); }

/* Vedi tutti link */
.all-products-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--washi);
  color: var(--sumi);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 400;
  transition: background .2s, color .2s;
}
.all-products-link:hover {
  background: var(--sumi);
  color: var(--washi);
}

/* ─── DIVIDER BAND ─── */
.band {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--sumi);
}

.band-bg {
  position: absolute;
  inset: -60px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: .28;
  will-change: transform;
}

.band-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 640px;
  padding: 0 32px;
}

.band-quote {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3vw, 44px);
  font-weight: 400;
  font-style: italic;
  color: var(--washi);
  line-height: 1.25;
  margin-bottom: 36px;
  letter-spacing: -.01em;
}
.band-quote em {
  font-style: normal;
  color: var(--hinoki);
}

/* ─── CATEGORIE IN EVIDENZA ─── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.cat-card {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  background: var(--greige);
  cursor: pointer;
}
.cat-card:first-child {
  grid-row: span 2;
}

.cat-card-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  transition: transform .7s var(--ease);
  filter: saturate(.8);
}
.cat-card:first-child .cat-card-img { aspect-ratio: unset; height: 100%; }
.cat-card:hover .cat-card-img {
  transform: scale(1.04);
  filter: saturate(1);
}

.cat-card-body {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px 24px;
  background: linear-gradient(to top, rgba(26,22,20,.75) 0%, rgba(26,22,20,.05) 55%, transparent 100%);
}

.cat-card-body .label { color: var(--hinoki); margin-bottom: 6px; }

.cat-card-body h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 400;
  color: var(--washi);
  line-height: 1.15;
  margin-bottom: 12px;
}

.cat-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--washi);
  border-bottom: 1px solid rgba(247,244,239,.3);
  padding-bottom: 2px;
  transition: border-color .2s, color .2s;
}
.cat-card:hover .cat-link { border-color: var(--hinoki); color: var(--hinoki); }

/* ─── ECO SECTION ─── */
.eco-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
}

.eco-visual {
  position: relative;
  overflow: hidden;
}
.eco-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.6) brightness(.9);
  transition: filter .6s;
}
.eco-visual:hover img { filter: saturate(.8) brightness(.95); }

.eco-text-wrap {
  padding: 72px 72px 72px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--shiro);
}

.eco-body {
  margin-top: 24px;
  font-size: 14px;
  font-weight: 300;
  color: var(--driftwood);
  line-height: 1.9;
  max-width: 420px;
}

.eco-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 36px;
}

.text-link {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--stone);
  padding-bottom: 3px;
  transition: border-color .2s, color .2s;
}
.text-link:hover { color: var(--matcha); border-color: var(--matcha); }

/* ─── BLOG ─── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

.blog-card { cursor: pointer; }

.blog-thumb {
  overflow: hidden;
  border-radius: 2px;
  aspect-ratio: 3/2;
  margin-bottom: 20px;
  background: var(--greige);
}
.blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.75);
  transition: transform .5s var(--ease), filter .4s;
}
.blog-card:hover .blog-thumb img {
  transform: scale(1.04);
  filter: saturate(1);
}

.blog-meta {
  font-size: 11px; /* WCAG minimum */
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 10px;
}

.blog-card h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--sumi);
  margin-bottom: 10px;
  transition: color .2s;
}
.blog-card:hover h3 { color: var(--hinoki); }

.blog-card p {
  font-size: 13px;
  font-weight: 300;
  color: var(--driftwood);
  line-height: 1.75;
}

.center-action {
  text-align: center;
  margin-top: 48px;
}

/* ─── CTA FINALE ─── */
.cta-section {
  background: var(--greige);
  border-top: 1px solid var(--stone);
  border-bottom: 1px solid var(--stone);
  padding: 80px 0;
  text-align: center;
}

.cta-section .heading { margin-bottom: 14px; }
.cta-section .subheading { margin: 0 auto 36px; text-align: center; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ─── FOOTER ─── */
.site-footer {
  background: var(--sumi);
  color: rgba(247,244,239,.6);
  padding: 64px 0 32px;
}

.footer-top {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(247,244,239,.08);
}

.footer-brand img {
  height: 28px;
  filter: brightness(0) invert(1) opacity(.6);
  margin-bottom: 18px;
}
.footer-brand p {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(247,244,239,.4);
  max-width: 260px;
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 11px; /* WCAG minimum */
  font-weight: 400;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--hinoki);
  margin-bottom: 16px;
}

.footer-col li + li { margin-top: 6px; }

.footer-col a {
  font-size: 13px; /* WCAG improved */
  font-weight: 300;
  color: rgba(247,244,239,.45);
  transition: color .2s;
}
.footer-col a:hover { color: var(--washi); }

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 24px var(--gutter) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy { font-size: 11px; color: rgba(247,244,239,.25); }

.footer-social { display: flex; gap: 20px; }
.footer-social a {
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(247,244,239,.35);
  transition: color .2s;
}
.footer-social a:hover { color: var(--hinoki); }

/* ─── ANIMATIONS ─── */
@keyframes dropIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-8px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: .3; }
  50%       { opacity: .7; }
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: .1s; }
.reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; }

/* ─── SKIP LINK (Accessibility) ─── */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--sumi);
  color: var(--washi);
  padding: 8px 16px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  z-index: 99999;
  border-radius: 0 0 4px 0;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
  outline: 3px solid var(--hinoki);
}

/* ─── USP STRONG TEXT ─── */
.usp-copy strong {
  font-size: 12px; /* WCAG compliant */
  font-weight: 500;
}

/* ─── INFO BLOCKS (Prenota / Finanziamento) ─── */
.info-block {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  margin-bottom: 48px;
  padding: 32px;
  background: var(--washi);
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(42, 36, 32, 0.08);
}

.info-block-img {
  flex-shrink: 0;
  width: 280px;
  overflow: hidden;
  border-radius: 4px;
}

.info-block-img img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s var(--ease);
}

.info-block:hover .info-block-img img {
  transform: scale(1.02);
}

.info-block-text h2 {
  font-family: var(--font-serif);
  font-size: 26px;
  line-height: 1.3;
  color: var(--sumi);
  margin: 0 0 12px;
}

.info-block-text p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 16px;
}

.info-block-text p:last-child {
  margin-bottom: 0;
}

.info-block-disclaimer {
  font-size: 14px !important;
  color: var(--driftwood);
  margin: -8px 0 12px !important;
  font-style: normal;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--sumi);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  border-bottom: 1px solid var(--sumi);
  padding-bottom: 2px;
  transition: all 0.2s;
}

.text-link:hover {
  color: var(--hinoki);
  border-color: var(--hinoki);
}

/* ─── FINITURE CARD ─── */
.finiture-card {
  display: block;
  background: var(--washi);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(42, 36, 32, 0.08);
  transition: all 0.3s var(--ease);
  text-decoration: none;
}

.finiture-card:hover {
  box-shadow: 0 8px 24px rgba(42, 36, 32, 0.15);
  transform: translateY(-4px);
}

.finiture-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0;
  padding: 40px;
}

.finiture-sample {
  aspect-ratio: 1;
  border: 2px solid rgba(255, 255, 255, 0.5);
  transition: transform 0.2s, border-color 0.2s;
  cursor: pointer;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.finiture-sample:hover {
  transform: scale(1.1);
  z-index: 2;
  border-color: var(--sumi);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* 16 FOTO REALI DELLE TAVOLE DI LEGNO - Fonte: colorazioni.php Cinius */
.finiture-sample:nth-child(1)  { background-image: url('it/comuni/images/colore-legno-faggio-levigato-non-trattato.jpg'); }
.finiture-sample:nth-child(2)  { background-image: url('it/comuni/images/colore-legno-rosso-brasil-liv.jpg'); }
.finiture-sample:nth-child(3)  { background-image: url('it/comuni/images/colore-legno-tabacco-liv.jpg'); }
.finiture-sample:nth-child(4)  { background-image: url('it/comuni/images/colore-legno-verde-liv.jpg'); }
.finiture-sample:nth-child(5)  { background-image: url('it/comuni/images/colore-legno-noce-scuro-liv.jpg'); }
.finiture-sample:nth-child(6)  { background-image: url('it/comuni/images/colore-legno-bianco-liv.jpg'); }
.finiture-sample:nth-child(7)  { background-image: url('it/comuni/images/colore-legno-teak-liv.jpg'); }
.finiture-sample:nth-child(8)  { background-image: url('it/comuni/images/colore-legno-grigio-liv.jpg'); }
.finiture-sample:nth-child(9)  { background-image: url('it/comuni/images/colore-legno-palissandro-liv.jpg'); }
.finiture-sample:nth-child(10) { background-image: url('it/comuni/images/colore-legno-ebano-liv.jpg'); }
.finiture-sample:nth-child(11) { background-image: url('it/comuni/images/colore-legno-sayerlack.jpg'); }
.finiture-sample:nth-child(12) { background-image: url('it/comuni/images/colore-legno-neutro-ol.jpg'); }
.finiture-sample:nth-child(13) { background-image: url('it/comuni/images/colore-legno-caffe-H2O.jpg'); }
.finiture-sample:nth-child(14) { background-image: url('it/comuni/images/colore-legno-wenghe-H2O.jpg'); }
.finiture-sample:nth-child(15) { background-image: url('it/comuni/images/colore-legno-mogano-H2O.jpg'); }
.finiture-sample:nth-child(16) { background-image: url('it/comuni/images/colore-legno-avorio-ol.jpg'); }

.finiture-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 40px;
  background: var(--greige);
  border-top: 1px solid rgba(42, 36, 32, 0.1);
}

.finiture-title {
  font-size: 18px;
  font-weight: 500;
  color: var(--sumi);
}

/* ═══ RESPONSIVE ═══ */

/* Tablet */
@media (max-width: 1024px) {
  :root { --gutter: 32px; }

  .header-nav { display: none; }
  .hamburger { display: flex; }

  .mosaic {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto;
  }
  .mosaic-cell       { grid-column: span 2; }
  .mosaic-cell--tall { grid-column: span 2; grid-row: span 2; }
  .mosaic-cell--hero { grid-column: span 4; grid-row: span 1; }
  .mosaic-cell--wide { grid-column: span 4; }

  .eco-grid { grid-template-columns: 1fr; }
  .eco-visual { height: 320px; }
  .eco-text-wrap { padding: 56px 40px; }

  .cat-grid { grid-template-columns: 1fr 1fr; }
  .cat-card:first-child { grid-row: span 1; }

  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
}

/* Mobile */
@media (max-width: 640px) {
  :root { --gutter: 20px; }

  .section { padding: 64px 0; }

  .hero-content { padding: 0 var(--gutter) 0 var(--gutter); }
  .hero-line { display: none; }

  .usp-inner {
    grid-template-columns: 1fr 1fr;
  }
  .usp-item {
    padding: 20px 16px;
    border-right: none;
    border-bottom: 1px solid var(--stone);
  }
  .usp-item:nth-child(even) { border-left: 1px solid var(--stone); }
  .usp-item:nth-child(3),
  .usp-item:nth-child(4) { border-bottom: none; }

  .mosaic {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 220px;
  }
  .mosaic-cell,
  .mosaic-cell--tall,
  .mosaic-cell--wide,
  .mosaic-cell--hero { grid-column: span 2; grid-row: span 1; }

  .cat-grid { grid-template-columns: 1fr; gap: 12px; }
  .cat-card:first-child { grid-row: span 1; }

  .blog-grid { grid-template-columns: 1fr; gap: 40px; }

  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 16px; }
  
  .info-block {
    flex-direction: column;
    padding: 24px;
  }
  
  .info-block-img {
    width: 100%;
    max-width: 300px;
  }
  
  .finiture-grid {
    grid-template-columns: repeat(4, 1fr);
    padding: 24px;
  }
  
  .finiture-cta {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    padding: 20px 24px;
  }
}

/* ═══════════════════════════════════════════════════════════
   SEZIONE FAQ
   ═══════════════════════════════════════════════════════════ */

.faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: var(--kinari);
  border-radius: 8px;
  margin-bottom: 16px;
  padding: 24px 32px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: box-shadow 0.3s;
}

.faq-item:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.faq-question {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--sumi);
  margin: 0 0 12px 0;
}

.faq-answer {
  color: var(--driftwood);
  line-height: 1.7;
}

.faq-answer p {
  margin: 0 0 12px 0;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer a {
  color: var(--sumi);
  text-decoration: underline;
}

.faq-answer a:hover {
  color: var(--driftwood);
}

@media (max-width: 768px) {
  .faq-item {
    padding: 20px 24px;
  }
  
  .faq-question {
    font-size: 16px;
  }
}

/* ═══════════════════════════════════════════════════════════
   FINITURE CON IMMAGINE SINGOLA
   ═══════════════════════════════════════════════════════════ */

.finiture-preview {
  padding: 40px;
  background: #F7F4EF;
}

.finiture-preview img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

@media (max-width: 640px) {
  .finiture-preview {
    padding: 24px;
  }
}

/* ═══════════════════════════════════════════════════════════
   FIX ACCESSIBILITÀ WCAG 2.2 (2025) - PATCH CRITICA
   Aggiungere a style_COMPLETO_IT.css
   ═══════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════
   FIX 1: WCAG 2.4.11 - Aspetto Focus (NUOVO in 2.2)
   Focus indicator deve essere 2px minimo con contrasto 3:1
   ═══════════════════════════════════════════════════════════ */

/* Rimuovi outline di default e usa :focus-visible per solo tastiera */
*:focus {
  outline: none;
}

/* Focus visibile SOLO per navigazione tastiera */
*:focus-visible {
  outline: 3px solid #2A2420;
  outline-offset: 2px;
  border-radius: 2px;
}

/* Focus su link */
a:focus-visible {
  outline: 3px solid #2A2420;
  outline-offset: 3px;
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

/* Focus su bottoni */
button:focus-visible,
.btn:focus-visible {
  outline: 3px solid #2A2420;
  outline-offset: 3px;
  box-shadow: 0 0 0 5px rgba(42, 36, 32, 0.1);
}

/* Focus su immagini cliccabili */
a img:focus-visible {
  outline: 3px solid #2A2420;
  outline-offset: 2px;
}

/* Focus su skip link */
.skip-link:focus-visible {
  outline: 3px solid #F7F4EF;
  outline-offset: -3px;
}

/* ═══════════════════════════════════════════════════════════
   FIX 2: WCAG 2.5.8 - Dimensione Target (NUOVO in 2.2)
   Tutti i target devono essere minimo 24x24 CSS pixels
   ═══════════════════════════════════════════════════════════ */

/* Link troppo piccoli - aumenta padding */
.nav-link {
  min-height: 24px;
  padding: 8px 12px; /* Era troppo piccolo */
  display: inline-flex;
  align-items: center;
}

/* Dropdown links */
.dropdown-link {
  min-height: 24px;
  padding: 10px 16px; /* Aumentato da default */
}

/* Language switcher flags */
.lang-switcher a {
  min-width: 24px;
  min-height: 24px;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Mobile hamburger */
.hamburger {
  min-width: 44px; /* Apple raccomanda 44px per touch */
  min-height: 44px;
  padding: 8px;
}

/* Social links in footer */
.footer-social a {
  min-height: 24px;
  padding: 4px 8px;
  display: inline-block;
}

/* Mosaic arrows che potrebbero essere piccoli */
.mosaic-arrow {
  min-height: 24px;
  padding: 4px 12px;
}

/* Text links generici */
.text-link {
  min-height: 24px;
  padding: 2px 4px;
  display: inline-block;
}

/* ═══════════════════════════════════════════════════════════
   FIX 3: WCAG 2.4.12 - Focus Non Oscurato (NUOVO in 2.2)
   Header sticky non deve coprire elementi in focus
   ═══════════════════════════════════════════════════════════ */

/* Scroll offset per anchor links */
html {
  scroll-padding-top: 100px; /* Altezza header + margine */
}

/* Assicura che elementi in focus siano visibili */
*:focus-visible {
  scroll-margin-top: 120px;
}

/* Header sticky con z-index controllato */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100; /* Non troppo alto */
}

/* Mobile nav deve essere sopra header */
.mobile-nav {
  z-index: 200;
}

/* ═══════════════════════════════════════════════════════════
   FIX 4: BEST PRACTICE 2025 - Reduced Motion
   Disabilita animazioni per utenti con preferenze accessibilità
   ═══════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  /* Disabilita video autoplay */
  video {
    animation-play-state: paused !important;
  }
  
  /* Disabilita parallax */
  [data-parallax] {
    transform: none !important;
  }
  
  /* Disabilita reveal animations */
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   FIX 5: BEST PRACTICE 2025 - High Contrast Mode
   Migliora contrasti quando richiesto dal sistema
   ═══════════════════════════════════════════════════════════ */

@media (prefers-contrast: high) {
  /* Aumenta contrasti */
  :root {
    --sumi: #000000;
    --kinari: #FFFFFF;
    --driftwood: #4A3426;
  }
  
  /* Bordi più spessi */
  button,
  .btn,
  input,
  select,
  textarea {
    border-width: 2px;
  }
  
  /* Link più evidenti */
  a {
    text-decoration: underline;
    text-decoration-thickness: 2px;
  }
  
  /* Focus ancora più visibile */
  *:focus-visible {
    outline-width: 4px;
  }
}

/* ═══════════════════════════════════════════════════════════
   FIX 6: WCAG 3.2.6 - Aiuto Coerente (NUOVO in 2.2)
   Link "Contattaci" e "FAQ" sempre accessibili
   ═══════════════════════════════════════════════════════════ */

/* Assicura che link aiuto siano visibili in header */
.nav-link--cta {
  font-weight: 600;
  /* Già presente in navigation */
}

/* Link FAQ in footer sempre visibile */
.footer-col a[href*="faq"] {
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════
   FIX 7: Video Accessibility
   Migliora accessibilità video
   ═══════════════════════════════════════════════════════════ */

/* Assicura che video non disturbi */
.hero-video {
  /* Già muted e loop */
}

/* Fallback se video non carica */
.hero-video-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--sumi);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.hero-video:not([src]):not([srcset]) + .hero-video-wrap::after {
  opacity: 0.3;
}

/* ═══════════════════════════════════════════════════════════
   FIX 8: Migliora leggibilità link
   Link più descrittivi visualmente
   ═══════════════════════════════════════════════════════════ */

/* Aggiungi icona visiva ai link esterni */
a[target="_blank"]:not(.btn)::after {
  content: " ↗";
  font-size: 0.85em;
  opacity: 0.7;
}

/* Screen reader only text per link generici */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ═══════════════════════════════════════════════════════════
   FIX 9: Migliora contrasto hover states
   Assicura che hover sia visibile anche in high contrast
   ═══════════════════════════════════════════════════════════ */

/* Hover su link */
a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

/* Hover su bottoni */
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* ═══════════════════════════════════════════════════════════
   FIX 10: Mobile touch targets
   Aumenta dimensioni per dispositivi touch
   ═══════════════════════════════════════════════════════════ */

@media (hover: none) and (pointer: coarse) {
  /* Touch devices */
  
  /* Tutti i link/button min 44x44 (Apple/Google guidelines) */
  a,
  button,
  .btn {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* Piccoli link in liste */
  nav a,
  .footer-col a {
    padding: 12px 8px;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  
  /* Mobile menu items */
  .mobile-nav-link {
    min-height: 48px;
    padding: 14px 20px;
  }
}

/* ═══════════════════════════════════════════════════════════
   FINE FIX ACCESSIBILITÀ
   ═══════════════════════════════════════════════════════════ */

/* NOTA: Questi fix portano la compliance a ~98% WCAG 2.2 AA
   Per 100% serve anche:
   - Sottotitoli su video (file .vtt)
   - Trascrizione audio
   - Test con screen reader reale
*/

/* ═══════════════════════════════════════════════════════════
   FIX MENU DROPDOWN - Ponte invisibile
   Risolve il problema della chiusura prematura
   ═══════════════════════════════════════════════════════════ */

.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
  background: transparent;
  z-index: 1;
}

/* Riduce leggermente il gap per maggiore sicurezza */
.nav-dropdown {
  top: calc(100% + 8px) !important; /* Override precedente 12px */
}

/* ═══════════════════════════════════════════════════════════
   FOOTER - Social Icons, Locations, Reviews
   ═══════════════════════════════════════════════════════════ */

/* Social Icons Row */
.footer-social-icons {
  display: flex;
  gap: 16px;
  margin-top: 20px;
}

.footer-social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--greige);
  color: var(--sumi);
  transition: all 0.3s ease;
}

.footer-social-icons a:hover {
  background: var(--sumi);
  color: var(--kinari);
  transform: translateY(-3px);
}

.footer-social-icons svg {
  width: 20px;
  height: 20px;
}

/* Locations List */
.footer-locations {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-locations li {
  margin-bottom: 8px;
}

.footer-locations a {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  color: var(--driftwood);
  transition: color 0.2s;
}

.footer-locations a:hover {
  color: var(--sumi);
}

.footer-locations svg {
  flex-shrink: 0;
}

/* Google Reviews Widget */
.footer-reviews {
  background: var(--greige);
  padding: 40px 0;
  border-top: 1px solid rgba(42, 36, 32, 0.1);
}

.footer-reviews h4 {
  text-align: center;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--sumi);
  margin: 0 0 24px 0;
}

.reviews-widget {
  max-width: 900px;
  margin: 0 auto;
}

/* Manual Reviews Badge */
.reviews-badge {
  text-align: center;
}

.reviews-link {
  display: inline-block;
  padding: 24px 32px;
  background: var(--kinari);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  text-decoration: none;
}

.reviews-link:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  transform: translateY(-4px);
}

.reviews-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
}

.reviews-stars {
  font-size: 24px;
  color: #FFB800;
  letter-spacing: 2px;
}

.reviews-score {
  font-size: 32px;
  font-weight: 600;
  font-family: var(--font-serif);
  color: var(--sumi);
}

.reviews-text {
  font-size: 14px;
  color: var(--driftwood);
  margin: 0 0 12px 0;
}

.reviews-cta {
  font-size: 13px;
  font-weight: 500;
  color: var(--sumi);
}

/* Footer Bottom */
.footer-links-bottom {
  display: flex;
  gap: 20px;
}

.footer-links-bottom a {
  font-size: 12px;
  color: var(--driftwood);
}

.footer-links-bottom a:hover {
  color: var(--sumi);
}

/* Responsive */
@media (max-width: 768px) {
  .footer-social-icons {
    justify-content: center;
  }
  
  .footer-reviews {
    padding: 32px 16px;
  }
  
  .reviews-link {
    padding: 20px 24px;
  }
  
  .reviews-stars {
    font-size: 20px;
  }
  
  .reviews-score {
    font-size: 28px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  
  .footer-links-bottom {
    justify-content: center;
  }
}
