/* =========================================================
   NICOLA ROCCHETTI — Ebanista e Falegname, Trieste
   Design system: legno scuro, ottone caldo, quotature tecniche
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; max-width: 100vw; overflow-x: hidden; }
body { overflow-x: hidden; max-width: 100%; }

:root {
  /* --- Palette --- */
  --walnut-950: #17110b;
  --walnut-800: #3a2410;
  --walnut-600: #5a4020;
  --brass: #9a6a34;
  --brass-soft: #c99a5b;
  --linen: #f4eee2;
  --linen-deep: #e8ddc8;
  --sawdust: #cbb896;
  --cream: #faf6ee;
  --ink: #241a10;

  /* --- Type --- */
  --font-display: "Bitter", serif;
  --font-body: "Karla", sans-serif;
  --font-mono: "Space Mono", monospace;

  --radius: 4px;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  font-weight: 400;
  line-height: 1.65;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--walnut-950);
  line-height: 1.15;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--brass);
  display: inline-block;
}

strong { color: var(--walnut-950); font-weight: 600; }

/* =========================================================
   QUOTATURA TECNICA — divisore firma, come una linea di misura
   da disegno tecnico da falegname
   ========================================================= */
.misura-divider {
  position: relative;
  height: 34px;
  width: 100%;
  background-image:
    linear-gradient(var(--brass) 1px, transparent 1px),
    repeating-linear-gradient(
      to right,
      transparent 0, transparent calc(3.2% - 1px),
      rgba(154, 106, 52, 0.55) calc(3.2% - 1px), rgba(154, 106, 52, 0.55) 3.2%
    );
  background-size: 100% 1px, 100% 10px;
  background-position: center, center;
  background-repeat: no-repeat, repeat-x;
  opacity: 0.7;
}
.misura-divider span {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -50%);
  background: inherit;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--brass);
  padding: 0 14px;
}
.misura-divider.on-dark { opacity: 0.9; }
.misura-divider.on-dark span { color: var(--brass-soft); }
.misura-divider.on-dark::before,
.misura-divider.on-dark {
  background-color: transparent;
}

/* =========================================================
   PRELOADER
   ========================================================= */
#preloader {
  position: fixed; inset: 0;
  background: var(--walnut-950);
  display: flex; align-items: center; justify-content: center;
  z-index: 999999;
  transition: opacity 0.9s ease, visibility 0.9s ease;
}
.loader-logo img { width: clamp(90px, 14vw, 160px); height: auto; opacity: 0.95; }
#preloader.hidden { opacity: 0; visibility: hidden; }

#progress-bar {
  position: fixed; top: 0; left: 0; height: 2px;
  background: var(--brass); width: 0%; z-index: 9999;
  transition: width 0.1s ease-out;
}

/* =========================================================
   MENU / NAV
   ========================================================= */
.menu-btn {
  position: fixed; top: 24px; right: 24px;
  width: 50px; height: 50px; border-radius: 50%;
  background: rgba(23, 17, 11, 0.55);
  border: 1px solid rgba(244, 238, 226, 0.25);
  backdrop-filter: blur(10px);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: 6px; cursor: pointer; z-index: 1200;
  transition: transform 0.5s ease;
}
.menu-btn:hover { transform: scale(1.08); }
.menu-btn .bar {
  width: 22px; height: 2px; background: var(--linen); border-radius: 2px;
  transition: all 0.4s ease;
}
.menu-btn.open .bar:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-btn.open .bar:nth-child(2) { opacity: 0; }
.menu-btn.open .bar:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.side-menu {
  position: fixed; top: 0; right: -320px; width: 320px; height: 100%;
  background: var(--linen);
  padding: 100px 40px 40px;
  z-index: 1050; display: flex; flex-direction: column; justify-content: space-between;
  transition: right 0.5s cubic-bezier(.68,-.4,.27,1.3);
  border-left: 1px solid rgba(23, 17, 11, 0.1);
  box-shadow: -12px 0 30px rgba(23, 17, 11, 0.15);
}
.side-menu.open { right: 0; }
.side-menu ul { list-style: none; }
.side-menu ul li { margin: 22px 0; opacity: 0; transform: translateX(20px); transition: all 0.4s ease; }
.side-menu.open ul li { opacity: 1; transform: translateX(0); }
.side-menu.open ul li:nth-child(1) { transition-delay: .08s; }
.side-menu.open ul li:nth-child(2) { transition-delay: .16s; }
.side-menu.open ul li:nth-child(3) { transition-delay: .24s; }
.side-menu.open ul li:nth-child(4) { transition-delay: .32s; }
.side-menu.open ul li:nth-child(5) { transition-delay: .4s; }
.side-menu ul li a {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 500;
  color: var(--walnut-950); text-decoration: none; position: relative;
}
.side-menu ul li a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 1px;
  background: var(--brass); transition: width 0.3s ease;
}
.side-menu ul li a:hover { color: var(--brass); }
.side-menu ul li a:hover::after { width: 100%; }
.side-menu-logo { opacity: 0.9; }
.side-menu-logo img { width: 90px; }

.mobile-topbar {
  position: fixed; top: -80px; left: 0; width: 100%; height: 64px;
  background: rgba(244, 238, 226, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(23, 17, 11, 0.08);
  box-shadow: 0 4px 14px rgba(23, 17, 11, 0.06);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px; z-index: 1100;
  transition: top 0.4s ease;
}
.mobile-topbar.visible { top: 0; }
.topbar-logo img { height: 42px; }
@media (max-width: 768px) {
  .mobile-topbar { display: flex; }
  .side-menu { top: 64px; height: calc(100% - 64px); }
  #menu-btn { display: none; }

  /* Il bottone hamburger dentro la topbar segue il flusso della barra,
     non è più fixed in coordinate assolute (causava l'overflow) */
  #menu-btn-mobile {
    position: static;
    width: 40px;
    height: 40px;
    top: auto;
    right: auto;
    flex-shrink: 0;
  }
  #menu-btn-mobile .bar { width: 20px; }
}
@media (min-width: 769px) { .mobile-topbar { display: none; } }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; height: 100vh; min-height: 620px; width: 100%;
  overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.hero-bg {
  position: absolute; inset: 0;
}
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.55) saturate(0.9);
}
.hero-content {
  position: relative; z-index: 2; text-align: center; color: var(--linen);
  padding: 0 1.5rem; max-width: 900px;
}
.hero-logo { width: clamp(70px, 10vw, 110px); margin: 0 auto 1.6rem; opacity: 0.95; }
.hero-content h1 {
  font-size: clamp(2.2rem, 5.5vw, 4.4rem);
  color: var(--linen);
  letter-spacing: -0.01em;
  margin-bottom: 1.2rem;
  font-weight: 700;
}
.hero-content .slogan {
  font-family: var(--font-body); font-weight: 500;
  font-size: clamp(0.85rem, 1.4vw, 1rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass-soft);
  margin-bottom: 2.4rem;
}
.hero-cta { display: flex; gap: 1.2rem; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 0.9rem 2.1rem; font-family: var(--font-body);
  font-size: 0.92rem; font-weight: 600; letter-spacing: 0.03em; text-decoration: none;
  border-radius: var(--radius); transition: all 0.3s ease; text-transform: uppercase;
  font-size: 0.8rem;
}
.btn-brass { background: var(--brass); color: var(--cream); border: 1px solid var(--brass); }
.btn-brass:hover { background: var(--brass-soft); border-color: var(--brass-soft); }
.btn-outline { background: transparent; color: var(--linen); border: 1px solid rgba(244,238,226,0.5); }
.btn-outline:hover { border-color: var(--linen); background: rgba(244,238,226,0.08); }

.scroll-cue {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  z-index: 2; color: var(--linen); opacity: 0.7; font-family: var(--font-mono);
  font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.scroll-cue .line { width: 1px; height: 32px; background: var(--brass-soft); animation: scrollLine 2s ease-in-out infinite; }
@keyframes scrollLine { 0%,100% { opacity: 0.3; } 50% { opacity: 1; } }

/* =========================================================
   SECTION SHELL
   ========================================================= */
.section { padding: 6.5rem 1.5rem; }
.section-dark { background: var(--walnut-950); color: var(--linen); }
.section-dark h2, .section-dark h3 { color: var(--linen); }
.section-light { background: var(--cream); }
.section-linen { background: var(--linen); }
.wrap { max-width: 1180px; margin: 0 auto; }

/* =========================================================
   INTRO / HOME
   ========================================================= */
.intro-grid {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 5rem; align-items: start;
}
.intro-left h2 { font-size: clamp(2rem, 3.4vw, 2.9rem); margin-bottom: 0.4rem; }
.intro-left h3 {
  font-family: var(--font-body); font-weight: 400; font-style: italic;
  font-size: 1.2rem; color: var(--walnut-600); margin-bottom: 1.8rem;
}
.intro-left p { margin-bottom: 1.3rem; color: var(--walnut-800); font-size: 1.03rem; }
.intro-left p.highlight {
  font-style: italic; color: var(--walnut-950); border-left: 2px solid var(--brass);
  padding-left: 1.1rem; margin-top: 1.8rem;
}
.intro-cta { display: flex; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }
.btn-solid {
  background: var(--walnut-950); color: var(--linen); padding: 0.85rem 1.9rem;
  text-decoration: none; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.03em;
  font-weight: 600; border-radius: var(--radius); transition: background 0.3s ease;
}
.btn-solid:hover { background: var(--brass); }
.btn-ghost {
  background: transparent; color: var(--walnut-950); padding: 0.85rem 1.9rem;
  text-decoration: none; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.03em;
  font-weight: 600; border: 1px solid var(--walnut-600); border-radius: var(--radius);
  transition: all 0.3s ease;
}
.btn-ghost:hover { background: var(--walnut-950); color: var(--linen); }

.strengths { display: flex; gap: 1.8rem; margin-top: 2.6rem; flex-wrap: wrap; }
.strengths div {
  font-family: var(--font-mono); font-size: 0.78rem; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--walnut-600);
}
.strengths i { color: var(--brass); margin-right: 6px; }

.intro-right { display: flex; flex-direction: column; gap: 1.6rem; }
.intro-card {
  display: flex; gap: 1.6rem; align-items: center; background: var(--walnut-950);
  color: var(--linen); border-radius: 6px; padding: 1.8rem; transition: transform 0.35s ease;
}
.intro-card:hover { transform: translateY(-4px); }
.intro-card img {
  width: 150px; height: 130px; object-fit: cover; border-radius: 4px; flex-shrink: 0;
}
.intro-card h4 {
  font-family: var(--font-display); font-size: 1.25rem; color: var(--linen);
  margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.6rem;
}
.intro-card h4 i { color: var(--brass-soft); font-size: 1rem; }
.intro-card p { font-size: 0.92rem; color: var(--sawdust); }

/* =========================================================
   GALLERIA PREVIEW (swiper)
   ========================================================= */
.gallery-preview-header { text-align: center; max-width: 620px; margin: 0 auto 3.5rem; }
.gallery-preview-header p { color: var(--walnut-800); font-style: italic; font-size: 1.05rem; }
.swiper { max-width: 1300px; margin: 0 auto; padding-bottom: 3rem; }
.swiper-slide {
  aspect-ratio: 1/1; border-radius: 4px; overflow: hidden; cursor: pointer;
  border: 1px solid var(--sawdust);
}
.swiper-slide img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.swiper-slide:hover img { transform: scale(1.06); }
.swiper-button-next, .swiper-button-prev {
  color: var(--walnut-950); background: var(--cream); width: 42px; height: 42px;
  border-radius: 50%; box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.swiper-button-next::after, .swiper-button-prev::after { font-size: 16px; font-weight: 700; }
.swiper-pagination-bullet { background: var(--walnut-600); opacity: 0.5; }
.swiper-pagination-bullet-active { opacity: 1; background: var(--brass); }
.gallery-cta-block { text-align: center; margin-top: 1.5rem; }
.gallery-cta-block h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }
.gallery-cta-block p { color: var(--walnut-600); margin-bottom: 1.6rem; }

/* =========================================================
   PASSIONE / SERVIZI (dark, con sfondo)
   ========================================================= */
.passione-section {
  position: relative; background: var(--walnut-950); overflow: hidden;
}
.passione-section::before {
  content: ""; position: absolute; inset: 0;
  background: url("servizibackground.webp") center/cover no-repeat;
  opacity: 0.22; z-index: 0;
}
.passione-section > * { position: relative; z-index: 1; }
.passione-intro { max-width: 760px; margin-bottom: 4rem; }
.passione-intro h2 { font-size: clamp(2rem, 3.2vw, 2.7rem); margin-bottom: 1.2rem; }
.passione-intro p { color: var(--sawdust); margin-bottom: 1rem; }
.passione-intro a { color: var(--brass-soft); text-decoration: underline; }

.passione-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 4rem; align-items: start; }
.passione-panel {
  background: var(--cream); border-radius: 6px; padding: 3rem 2.2rem; color: var(--walnut-800);
}
.passione-panel h3 {
  font-size: 1.5rem; text-align: center; margin-bottom: 2rem;
}
.info-list { display: grid; gap: 0.9rem; margin-bottom: 2rem; }
.info-list div {
  display: flex; align-items: center; gap: 0.9rem; background: var(--linen);
  padding: 0.9rem 1.1rem; border-radius: 4px; font-size: 0.95rem;
}
.info-list i { color: var(--brass); width: 20px; text-align: center; }

.trust-row { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-bottom: 2rem; justify-content: center; }
.trust-row div {
  font-family: var(--font-mono); font-size: 0.76rem; border: 1px solid var(--walnut-600);
  padding: 0.5rem 1rem; border-radius: 30px; display: flex; align-items: center; gap: 6px;
}
.trust-row i { color: var(--brass); }

.actions-box {
  background: var(--linen); border-radius: 6px; padding: 2rem; text-align: center; margin-bottom: 1.6rem;
}
.actions-box h4 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.actions-box p { font-size: 0.92rem; color: var(--walnut-600); margin-bottom: 1.4rem; }
.actions-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.action-link {
  background: var(--walnut-950); color: var(--linen); text-decoration: none; padding: 0.75rem 1.5rem;
  border-radius: 30px; font-size: 0.82rem; display: inline-flex; align-items: center; gap: 8px;
  transition: background 0.3s ease; text-transform: uppercase; letter-spacing: 0.02em;
}
.action-link:hover { background: var(--brass); }
.cta-line { text-align: center; font-weight: 600; color: var(--walnut-950); font-size: 1.05rem; }

.passione-media img { width: 100%; height: 340px; object-fit: cover; border-radius: 6px; margin-bottom: 1.4rem; }
.passione-media h4 { font-size: 1.7rem; color: var(--linen); margin-bottom: 1rem; }
.passione-media p { color: var(--sawdust); font-size: 0.98rem; }

/* =========================================================
   MATERIALI / MARCHI
   ========================================================= */
.materiali-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 4.5rem; align-items: center; }
.materiali-imgs { display: grid; gap: 1.4rem; }
.materiali-imgs img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 6px; }
.materiali-text .eyebrow, .materiali-text h2 { text-align: left; }
.materiali-text h2 { font-size: clamp(1.9rem, 3vw, 2.4rem); margin-bottom: 1.4rem; }
.materiali-text p { color: var(--walnut-800); margin-bottom: 1.6rem; }

.brand-list {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem 1.6rem; list-style: none;
  margin-bottom: 2rem; font-family: var(--font-mono); font-size: 0.85rem; color: var(--walnut-600);
}
.brand-list li::before { content: "◆ "; color: var(--brass); font-size: 0.6rem; }

.materiali-cta { border-top: 1px solid var(--sawdust); padding-top: 2.2rem; margin-top: 1rem; }
.materiali-cta p { margin-bottom: 1.3rem; }
.materiali-note { font-size: 0.85rem; font-style: italic; color: var(--walnut-600); margin-top: 0.9rem; }

/* =========================================================
   BIO
   ========================================================= */
.bio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.bio-img img { border-radius: 6px; width: 100%; object-fit: cover; }
.bio-text .eyebrow, .bio-text h2 { text-align: center; }
.bio-text h2 { margin-bottom: 2.2rem; font-size: clamp(1.9rem, 3vw, 2.4rem); }
.bio-text p {
  margin-bottom: 1.5rem; color: var(--walnut-800); font-size: 1.02rem;
}
.bio-text p:first-of-type::first-letter {
  font-family: var(--font-display); font-size: 3rem; float: left; line-height: 0.8;
  margin-right: 10px; margin-top: 6px; color: var(--brass);
}
.bio-quote {
  font-family: var(--font-display); font-style: italic; font-size: 1.25rem;
  color: var(--walnut-950); background: var(--linen); border-left: 3px solid var(--brass);
  padding: 1.6rem 1.8rem; border-radius: 4px; margin-top: 2rem;
}

/* =========================================================
   CONTATTI
   ========================================================= */
.contatti-section { background: var(--walnut-950); color: var(--linen); }
.contatti-header { text-align: center; max-width: 640px; margin: 0 auto 3.5rem; }
.contatti-header p { color: var(--sawdust); font-style: italic; margin-top: 0.8rem; }
.contatti-wrap { display: flex; gap: 3.5rem; max-width: 1180px; margin: 0 auto; flex-wrap: wrap; }
.contatti-info { flex: 1; min-width: 300px; display: flex; flex-direction: column; gap: 1.4rem; }
.card {
  background: rgba(244,238,226,0.05); border: 1px solid rgba(201,154,91,0.25);
  border-radius: 6px; padding: 1.8rem; text-align: center;
}
.card h3 { color: var(--linen); font-size: 1.4rem; margin-bottom: 1rem; }
.card .riga { display: flex; justify-content: center; gap: 10px; margin-bottom: 0.7rem; font-size: 0.98rem; }
.card .riga a { text-decoration: none; color: var(--sawdust); }
.card .riga a:hover { color: var(--brass-soft); }
.card .riga i { color: var(--brass); }

.double-box { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.double-box .col { flex: 1; min-width: 220px; background: rgba(244,238,226,0.05); border: 1px solid rgba(201,154,91,0.2); border-radius: 6px; padding: 1.4rem; }
.double-box h4 { font-size: 1rem; margin-bottom: 0.9rem; color: var(--brass-soft); font-family: var(--font-body); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.double-box ul { list-style: none; font-size: 0.9rem; color: var(--sawdust); }
.double-box ul li { margin-bottom: 0.5rem; padding-left: 1.1rem; position: relative; }
.double-box ul li::before { content: "✓"; position: absolute; left: 0; color: var(--brass); }
.double-box p { font-size: 0.9rem; color: var(--sawdust); margin-bottom: 0.4rem; }

.counters { display: flex; gap: 1.5rem; }
.counter-item { flex: 1; text-align: center; }
.counter-item i { color: var(--brass); margin-bottom: 0.5rem; }
.counter-item .numero { font-family: var(--font-display); font-size: 2.2rem; color: var(--linen); }
.counter-item .numero::after { content: "+"; color: var(--brass-soft); }
.counter-item .label { font-size: 0.85rem; color: var(--sawdust); }

.form-contatto {
  flex: 1; min-width: 300px; background: var(--cream); border-radius: 6px;
  padding: 2.6rem; display: flex; flex-direction: column; gap: 1.2rem;
}
.form-contatto h3 { text-align: center; color: var(--walnut-950); margin-bottom: 0.6rem; }
.form-group label { display: block; margin-bottom: 0.4rem; font-size: 0.85rem; color: var(--walnut-600); }
.form-group input, .form-group textarea {
  width: 100%; padding: 0.85rem; border: 1px solid var(--sawdust); border-radius: 4px;
  font-family: var(--font-body); font-size: 0.95rem; background: var(--linen);
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--brass); }
button[type="submit"] {
  background: var(--walnut-950); color: var(--linen); padding: 0.95rem;
  border: none; border-radius: 4px; font-size: 0.9rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.03em; cursor: pointer; transition: background 0.3s ease;
  font-family: var(--font-body);
}
button[type="submit"]:hover { background: var(--brass); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--walnut-950); color: var(--sawdust); padding: 4rem 1.5rem 1.5rem; border-top: 1px solid rgba(201,154,91,0.2); }
.footer-container { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2.5rem; }
.footer-col h3, .footer-col h4 { font-family: var(--font-display); color: var(--linen); margin-bottom: 1.2rem; text-align: center; font-size: 1.15rem; font-weight: 500; }
.footer-desc { text-align: center; font-style: italic; font-size: 0.92rem; }
.footer-links, .footer-contatti { list-style: none; text-align: center; }
.footer-links li, .footer-contatti li { margin-bottom: 0.7rem; font-size: 0.92rem; }
.footer-links a, .footer-contatti a { text-decoration: none; color: var(--sawdust); transition: color 0.3s ease; }
.footer-links a:hover, .footer-contatti a:hover { color: var(--brass-soft); }
.footer-contatti li { display: flex; align-items: center; justify-content: center; gap: 8px; }
.footer-mappa img { 
  max-width: 130px; 
  margin: 0 auto;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}
.footer-bottom {
  text-align: center; padding: 1.2rem; font-size: 0.78rem; background: var(--ink);
  color: var(--sawdust); font-family: var(--font-body); font-weight: 500;
}
.footer-bottom a { color: var(--sawdust); text-decoration: none; }
.footer-bottom a:hover { color: var(--brass-soft); }

/* =========================================================
   COOKIE BANNER
   ========================================================= */
.cookie-banner {
  position: fixed; top: -80px; left: 0; width: 100%; background: var(--linen);
  color: var(--walnut-950); font-size: 0.85rem; text-align: center; padding: 12px 16px;
  z-index: 999999; display: flex; justify-content: center; align-items: center; gap: 12px;
  transition: top 0.5s ease; border-bottom: 2px solid var(--brass);
}
.cookie-banner.show { top: 0; }
.cookie-banner p a { color: var(--brass); font-weight: 600; }
.cookie-banner button {
  background: var(--walnut-950); color: var(--linen); border: none; border-radius: 20px;
  padding: 6px 16px; font-weight: 600; cursor: pointer;
}

/* =========================================================
   ANIMATE ON SCROLL
   ========================================================= */
.aos { opacity: 0; transform: translateY(24px); transition: all 0.7s ease; }
.aos.visible { opacity: 1; transform: translateY(0); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .intro-grid, .passione-grid, .materiali-grid, .bio-grid { grid-template-columns: 1fr; gap: 2.8rem; }
  .bio-grid { grid-template-areas: "text" "img"; }
  .bio-text { grid-area: text; }
  .bio-img { grid-area: img; }
  .brand-list { grid-template-columns: repeat(2, 1fr); }
  .contatti-wrap { flex-direction: column; }
  .section { padding: 4.5rem 1.3rem; }
  .hero-content h1 { font-size: clamp(1.9rem, 8vw, 2.6rem); }
  .intro-card { flex-direction: column; text-align: center; }
  .intro-card img { width: 100%; height: 200px; }
  .passione-media img { height: 220px; }
  .double-box { flex-direction: column; }
  .counters { flex-direction: column; gap: 1rem; }
}

/* =========================================================
   PAGINA GALLERIA (libreria.html)
   ========================================================= */
.gallery-hero {
  position: relative; text-align: center; padding: 9rem 1.5rem 5rem;
  color: var(--linen); overflow: hidden; background: var(--walnut-950);
}
.gallery-hero::before {
  content: ""; position: absolute; inset: 0;
  background: url("sfondolibreriaridotta.webp") center/cover no-repeat;
  opacity: 0.28;
}
.gallery-hero > * { position: relative; z-index: 1; }
.gallery-hero .eyebrow { justify-content: center; display: inline-flex; }
.gallery-hero h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); color: var(--linen); margin-bottom: 0.8rem; }
.gallery-hero h2 {
  font-family: var(--font-body); font-weight: 400; font-style: italic; color: var(--sawdust);
  font-size: 1.15rem; margin-bottom: 1.4rem;
}
.gallery-hero p { color: var(--sawdust); max-width: 640px; margin: 0 auto; font-size: 1rem; }

.gallery-masonry-section { padding: 4.5rem 2rem 5rem; max-width: 1400px; margin: 0 auto; }
.gallery-masonry { column-count: 3; column-gap: 1.6rem; }
.gallery-masonry .g-item {
  display: inline-block; width: 100%; margin-bottom: 1.6rem; border-radius: 4px;
  overflow: hidden; border: 1px solid var(--sawdust); position: relative;
}
.gallery-masonry .g-item img { width: 100%; height: auto; display: block; transition: transform 0.5s ease; }
.gallery-masonry .g-item:hover img { transform: scale(1.05); }

.gallery-bottom-cta {
  text-align: center; padding: 4rem 2rem; background: var(--walnut-950); color: var(--sawdust);
}
.gallery-bottom-cta p { max-width: 680px; margin: 0 auto; font-style: italic; }
.gallery-bottom-cta a { color: var(--brass-soft); text-decoration: underline; }

@media (max-width: 900px) {
  .gallery-masonry { column-count: 2; }
}
@media (max-width: 560px) {
  .gallery-masonry { column-count: 1; }
  .gallery-hero { padding: 7rem 1.2rem 3.5rem; }
}

/* =========================================================
   HERO SLIDER (multi-slide)
   ========================================================= */
.hero-slider { position: relative; height: 100vh; min-height: 640px; width: 100%; overflow: hidden; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity 1.3s ease, visibility 1.3s ease;
  display: flex; align-items: center; justify-content: center;
}
.hero-slide.active { opacity: 1; visibility: visible; z-index: 2; }
.hero-slide img.hero-bg-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.5) saturate(0.9);
  transform: scale(1.06);
  transition: transform 9s ease-out;
}
.hero-slide.active img.hero-bg-img { transform: scale(1.15); }
.hero-slide .hero-content { position: relative; z-index: 2; }

.hero-dots {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 12px; z-index: 5;
}
.hero-dots .hdot {
  width: 34px; height: 3px; background: rgba(244,238,226,0.35); cursor: pointer;
  position: relative; overflow: hidden;
}
.hero-dots .hdot span {
  position: absolute; inset: 0; background: var(--brass-soft); width: 0%;
}
.hero-dots .hdot.active span { animation: fillDot 7s linear forwards; }
@keyframes fillDot { from { width: 0%; } to { width: 100%; } }

.hero-arrows { position: absolute; bottom: 30px; right: 30px; z-index: 5; display: flex; gap: 10px; }
.hero-arrows button {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(244,238,226,0.4);
  background: rgba(23,17,11,0.4); color: var(--linen); cursor: pointer; font-size: 0.9rem;
  transition: all 0.3s ease;
}
.hero-arrows button:hover { background: var(--brass); border-color: var(--brass); }

/* =========================================================
   MANIFESTO / NASTRO STATISTICHE
   ========================================================= */
.manifesto {
  background: var(--cream); padding: 5.5rem 1.5rem 0;
  text-align: center;
}
.manifesto blockquote {
  font-family: var(--font-body); font-style: italic; font-weight: 400;
  font-size: clamp(1.5rem, 3.4vw, 2.5rem); max-width: 900px; margin: 0 auto;
  color: var(--walnut-950); line-height: 1.35;
}
.manifesto blockquote span { color: var(--brass); }
.manifesto-stats {
  display: flex; justify-content: center; gap: 4rem; flex-wrap: wrap;
  margin-top: 3.2rem; padding-bottom: 3.5rem;
}
.manifesto-stats .stat { text-align: center; }
.manifesto-stats .stat .num {
  font-family: var(--font-display); font-size: 2.6rem; color: var(--brass);
}
.manifesto-stats .stat .lbl {
  font-family: var(--font-body); font-weight: 600; font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--walnut-600);
}

/* =========================================================
   PERCORSO (bio, storytelling in apertura)
   ========================================================= */
.percorso { background: var(--linen); padding: 0; }
.percorso-media { position: relative; height: 62vh; min-height: 420px; overflow: hidden; }
.percorso-media img { width: 100%; height: 100%; object-fit: cover; }
.percorso-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, var(--linen) 0%, transparent 26%);
}
.percorso-body { max-width: 800px; margin: 0 auto; padding: 1rem 1.5rem 6rem; }
.percorso-body .eyebrow { justify-content: center; display: flex; }
.percorso-body h2 { text-align: center; font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 2.4rem; }
.percorso-body p { margin-bottom: 1.4rem; color: var(--walnut-800); font-size: 1.03rem; }
.percorso-body p:first-of-type::first-letter {
  font-family: var(--font-display); font-size: 3rem; float: left; line-height: 0.8;
  margin-right: 10px; margin-top: 6px; color: var(--brass);
}

/* =========================================================
   COSA REALIZZO — griglia editoriale asimmetrica
   ========================================================= */
.realizzo { background: var(--walnut-950); color: var(--linen); padding: 6.5rem 1.5rem; }
.realizzo-head { max-width: 720px; margin: 0 auto 3.5rem; text-align: center; }
.realizzo-head .eyebrow { justify-content: center; display: flex; }
.realizzo-head h2 { color: var(--linen); font-size: clamp(2rem, 3.4vw, 2.8rem); margin-bottom: 1.1rem; }
.realizzo-head p { color: var(--sawdust); }

.realizzo-editorial {
  max-width: 1180px; margin: 0 auto; display: grid;
  grid-template-columns: 1.3fr 1fr; grid-template-rows: auto auto; gap: 1.6rem;
}
.r-feature { grid-row: 1 / 3; position: relative; border-radius: 6px; overflow: hidden; min-height: 520px; }
.r-feature img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.r-feature .r-overlay {
  position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column;
  justify-content: flex-end; padding: 2.2rem;
  background: linear-gradient(to top, rgba(23,17,11,0.92) 10%, transparent 65%);
}
.r-feature h3 { font-size: 1.7rem; color: var(--linen); margin-bottom: 0.6rem; }
.r-feature p { color: var(--sawdust); max-width: 380px; }

.r-item {
  border-radius: 6px; overflow: hidden; position: relative; min-height: 250px;
}
.r-item img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.r-item .r-overlay {
  position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column;
  justify-content: flex-end; padding: 1.6rem;
  background: linear-gradient(to top, rgba(23,17,11,0.9) 15%, transparent 70%);
}
.r-item h3 { font-size: 1.25rem; color: var(--linen); margin-bottom: 0.4rem; display: flex; align-items: center; gap: 0.5rem; }
.r-item h3 i { color: var(--brass-soft); font-size: 0.95rem; }
.r-item p { color: var(--sawdust); font-size: 0.9rem; }

.realizzo-cta { text-align: center; margin-top: 3rem; }

/* =========================================================
   GALLERIA — striscia mosaico integrata
   ========================================================= */
.galleria-strip { background: var(--cream); padding: 6.5rem 0; }
.galleria-strip-head { max-width: 640px; margin: 0 auto 3rem; text-align: center; padding: 0 1.5rem; }
.galleria-strip-head .eyebrow { justify-content: center; display: flex; }
.galleria-strip-head p { color: var(--walnut-800); font-style: italic; }

.mosaic-wrap { position: relative; }
.mosaic-wrap::before, .mosaic-wrap::after {
  content: ""; position: absolute; top: 0; bottom: 1rem; width: 70px; z-index: 2; pointer-events: none;
}
.mosaic-wrap::before { left: 0; background: linear-gradient(to right, var(--cream), transparent); }
.mosaic-wrap::after { right: 0; background: linear-gradient(to left, var(--cream), transparent); }

.mosaic-track {
  display: flex; align-items: center; gap: 1.3rem; overflow-x: auto; padding: 0.5rem 1.5rem 1.2rem;
  scroll-snap-type: x proximity;
}
.mosaic-track::-webkit-scrollbar { height: 5px; }
.mosaic-track::-webkit-scrollbar-thumb { background: var(--sawdust); border-radius: 4px; }

.mosaic-item {
  flex: 0 0 auto; width: 280px; height: 340px; border-radius: 4px; overflow: hidden;
  scroll-snap-align: start; position: relative; box-shadow: 0 10px 26px rgba(23,17,11,0.1);
}

.mosaic-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; display: block; }
.mosaic-item:hover img { transform: scale(1.08); }

.mosaic-index {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-family: var(--font-body); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.05em;
  color: var(--linen); background: rgba(23,17,11,0.5); padding: 3px 9px; border-radius: 20px;
  opacity: 0; transform: translateY(-4px); transition: all 0.35s ease;
}
.mosaic-item:hover .mosaic-index { opacity: 1; transform: translateY(0); }

.mosaic-caption {
  position: absolute; inset: 0; z-index: 1;
  display: flex; align-items: flex-end; padding: 1.1rem;
  background: linear-gradient(to top, rgba(23,17,11,0.88) 0%, rgba(23,17,11,0.15) 55%, transparent 75%);
  opacity: 0; transition: opacity 0.4s ease;
}
.mosaic-item:hover .mosaic-caption { opacity: 1; }
.mosaic-caption span {
  color: var(--linen); font-size: 0.95rem; font-weight: 500; line-height: 1.3;
  transform: translateY(6px); transition: transform 0.4s ease;
}
.mosaic-item:hover .mosaic-caption span { transform: translateY(0); }

.galleria-strip-cta { text-align: center; margin-top: 2.6rem; }

@media (max-width: 600px) {
  .mosaic-wrap::before, .mosaic-wrap::after { width: 34px; }
  .mosaic-item { width: 230px; height: 280px; }
}


/* =========================================================
   MATERIALI — nastro marchi scorrevole (marquee)
   ========================================================= */
.materiali-band { background: var(--linen); padding: 6rem 1.5rem; }
.materiali-band-head { max-width: 780px; margin: 0 auto 1rem; text-align: center; }
.materiali-band-head .eyebrow { justify-content: center; display: flex; }
.materiali-band-head p { color: var(--walnut-800); margin-top: 1rem; }

.marquee-wrap {
  margin: 3rem auto 3rem; overflow: hidden; border-top: 1px solid var(--sawdust);
  border-bottom: 1px solid var(--sawdust); padding: 1.4rem 0;
}
.marquee-track {
  display: flex; gap: 3.5rem; white-space: nowrap; width: max-content;
  animation: marquee 28s linear infinite;
  font-family: var(--font-body); font-weight: 500; font-size: 1.05rem; color: var(--walnut-600);
  text-transform: uppercase; letter-spacing: 0.04em;
}
.marquee-track span::after { content: "◆"; color: var(--brass); margin-left: 3.5rem; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.materiali-band-foot { max-width: 780px; margin: 0 auto; text-align: center; }
.materiali-band-foot p { color: var(--walnut-800); margin-bottom: 1.4rem; }
.materiali-band-foot .materiali-note { font-size: 0.85rem; font-style: italic; color: var(--walnut-600); margin-top: 1rem; }

@media (max-width: 900px) {
  .realizzo-editorial { grid-template-columns: 1fr; grid-template-rows: auto; }
  .r-feature { grid-row: auto; min-height: 360px; }
  .percorso-media { height: 40vh; }
  .hero-arrows { display: none; }
}