/* ==========================================================================
   Madeddu Concrete Design — style.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Variabili e reset
   -------------------------------------------------------------------------- */
:root {
  --lime: #94c83d;
  --lime-dark: #1a2a05;
  --lime-soft: #eaf3d8;
  --gray: #9d9d9d;
  --ink: #1a1a1a;
  --bg: #ffffff;
  --bg-soft: #f4f2ed;
  --bg-paper: #f4f1e9;
  --muted: #6b6b6b;
  --line: rgba(26, 26, 26, 0.1);

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Fraunces', 'Times New Roman', serif;

  --container: 1240px;
  --radius: 6px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* --------------------------------------------------------------------------
   2. Tipografia
   -------------------------------------------------------------------------- */
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-variation-settings: 'opsz' 144, 'SOFT' 30, 'WONK' 0;
}

h1 { font-size: clamp(38px, 4.6vw, 60px); }
h2 { font-size: clamp(30px, 3.6vw, 44px); }
h3 { font-size: clamp(20px, 2vw, 24px); }

.accent {
  font-style: italic;
  color: var(--lime);
  font-weight: 600;
}

.kicker {
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.kicker::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--lime);
}

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head p { color: var(--muted); font-size: 16px; margin-top: 14px; }

/* --------------------------------------------------------------------------
   3. Pulsanti (stile hero 1)
   -------------------------------------------------------------------------- */
.btn {
  padding: 14px 22px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  border: none;
  font-family: var(--font-sans);
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s;
}
.btn-primary { background: var(--lime); color: var(--lime-dark); }
.btn-primary:hover { background: var(--ink); color: #fff; }
.btn-primary .arrow {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--lime-dark);
  color: var(--lime);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s, color 0.25s;
}
.btn-primary .arrow i { font-size: 14px; }
.btn-primary:hover .arrow { background: var(--lime); color: var(--lime-dark); }

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--lime); color: var(--lime-dark); }
.btn-dark i { color: var(--lime); transition: color 0.25s; }
.btn-dark:hover i { color: var(--lime-dark); }

.btn-text {
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  padding: 14px 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--ink);
  transition: color 0.25s, border-color 0.25s;
}
.btn-text:hover { color: var(--lime); border-color: var(--lime); }
.btn-text i { font-size: 16px; }

/* --------------------------------------------------------------------------
   4. Header
   -------------------------------------------------------------------------- */
.site-header {
  position: relative;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.site-header .inner {
  padding: 16px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.brand img { height: 44px; width: auto; }

.nav-links { display: flex; gap: 28px; font-size: 14px; color: #444; }
.nav-links a { position: relative; padding: 6px 0; transition: color 0.2s; }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--lime);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover,
.nav-links a.active { color: var(--ink); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-right { display: flex; align-items: center; gap: 18px; font-size: 13px; color: var(--muted); }
.nav-right a { display: inline-flex; align-items: center; gap: 6px; transition: color 0.2s; }
.nav-right a:hover { color: var(--lime); }
.nav-right i { color: var(--lime); font-size: 16px; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  color: var(--ink);
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   5. Hero mosaico
   -------------------------------------------------------------------------- */
.hero { background: var(--bg); }
.hero .grid {
  padding: 22px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 1fr 1fr;
  gap: 14px;
  height: calc(100vh - 77px);
  min-height: 520px;
}

.tile {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}

/* tessera principale — bianca */
.tile-main {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
  background: var(--bg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.tile-main .kicker { margin-bottom: 0; }
.tile-main h1 {
  font-size: clamp(44px, 5.4vw, 80px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  margin-bottom: 18px;
}
.tile-main h1 .outline {
  font-family: 'Archivo Black', var(--font-sans);
  font-weight: 400;
  letter-spacing: -0.04em;
  -webkit-text-stroke: 1.4px var(--ink);
  color: transparent;
  font-size: 0.92em;
  line-height: 1;
}
.tile-main .lead {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  max-width: 360px;
  margin-bottom: 26px;
}
.tile-main .cta-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.tile-main .meta {
  display: flex;
  gap: 28px;
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
}
.tile-main .meta strong {
  display: block;
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 2px;
}

/* tessere categoria con foto */
.tile-photo { background-size: cover; background-position: center; }
.tile-photo .bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.7s var(--ease);
}
.tile-photo:hover .bg { transform: scale(1.05); }
.tile-photo .bg { z-index: 0; }
.tile-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.6) 100%);
  pointer-events: none;
}
.tile-photo .label {
  position: absolute;
  bottom: 16px;
  left: 18px;
  right: 18px;
  color: #fff;
  z-index: 2;
}
.tile-photo .label .title {
  font-size: 16px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tile-photo .label .sub { font-size: 12px; opacity: 0.8; margin-top: 2px; }
.tile-photo .arrow {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.tile-photo:hover .arrow {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--lime-dark);
}

/* tessera "su misura" */
.tile-feat { padding: 20px; display: flex; flex-direction: column; justify-content: space-between; }
.tile-feat::after { background: linear-gradient(180deg, rgba(26, 42, 5, 0.5) 0%, rgba(26, 26, 26, 0.85) 100%); }
.tile-feat > *:not(.bg) { position: relative; z-index: 2; }
.tile-feat .icon-box {
  width: 44px;
  height: 44px;
  background: var(--lime);
  color: var(--lime-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  font-size: 22px;
}
.tile-feat .ft-title { font-size: 16px; font-weight: 500; color: #fff; margin-bottom: 4px; }
.tile-feat .ft-sub { font-size: 13px; color: rgba(255, 255, 255, 0.8); line-height: 1.45; }

/* animazione d'ingresso hero */
.hero [data-enter] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.hero.is-loaded [data-enter] {
  opacity: 1;
  transform: translateY(0);
}
.hero.is-loaded [data-enter='1'] { transition-delay: 0.05s; }
.hero.is-loaded [data-enter='2'] { transition-delay: 0.18s; }
.hero.is-loaded [data-enter='3'] { transition-delay: 0.31s; }
.hero.is-loaded [data-enter='4'] { transition-delay: 0.44s; }
.hero.is-loaded [data-enter='5'] { transition-delay: 0.57s; }

/* --------------------------------------------------------------------------
   6. Sezioni generiche + reveal on scroll
   -------------------------------------------------------------------------- */
.section { padding: 96px 0; }
.section.soft { background: var(--bg-soft); }
.section.paper {
  background-color: var(--bg-paper);
  background-image:
    linear-gradient(rgba(26, 26, 26, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 26, 26, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal[data-delay='1'] { transition-delay: 0.1s; }
.reveal[data-delay='2'] { transition-delay: 0.2s; }
.reveal[data-delay='3'] { transition-delay: 0.3s; }
.reveal[data-delay='4'] { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .hero [data-enter] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* --------------------------------------------------------------------------
   7. Per chi lavoriamo — 3 card
   -------------------------------------------------------------------------- */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.audience-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}
.audience-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 44px -28px rgba(26, 26, 26, 0.35);
  border-color: var(--lime);
}
.audience-card .icon {
  width: 52px;
  height: 52px;
  background: var(--lime-soft);
  color: var(--lime-dark);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}
.audience-card h3 {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.audience-card p { color: var(--muted); font-size: 14px; flex: 1; }
.audience-card .link {
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
}
.audience-card .link i { color: var(--lime); transition: transform 0.3s var(--ease); }
.audience-card:hover .link i { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   7b. Chi siamo (anteprima home)
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.about-photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3.4;
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-photo .slideshow { position: absolute; inset: 0; }
.about-photo .slideshow-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s var(--ease);
}
.about-photo .slideshow-slide.is-active { opacity: 1; }
.about-photo .slideshow-slide img { width: 100%; height: 100%; object-fit: cover; }
.about-photo .slideshow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  z-index: 2;
  transition: background 0.25s, color 0.25s;
}
.about-photo .slideshow-btn:hover { background: var(--lime); color: var(--lime-dark); }
.about-photo .slideshow-btn.prev { left: 14px; }
.about-photo .slideshow-btn.next { right: 14px; }
.about-photo .slideshow-dots {
  position: absolute;
  left: 0; right: 0; bottom: 16px;
  display: flex; justify-content: center; gap: 8px;
  z-index: 2;
}
.about-photo .slideshow-dots button {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  padding: 0;
  transition: background 0.25s, transform 0.25s;
}
.about-photo .slideshow-dots button.active { background: #fff; transform: scale(1.25); }
.about-photo .year-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  color: var(--ink);
  padding: 8px 14px;
  font-size: 11px;
  letter-spacing: 0.2em;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.about-photo .year-badge i { color: var(--lime); font-size: 14px; }
.about-text p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  margin: 18px 0 28px;
  max-width: 520px;
}
.about-values { display: flex; gap: 28px; margin-bottom: 32px; flex-wrap: wrap; }
.about-values .val { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; }
.about-values .val i { color: var(--lime); font-size: 20px; }

/* --------------------------------------------------------------------------
   8. Perché sceglierci — 4 punti
   -------------------------------------------------------------------------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.why-cell {
  padding: 28px 24px 28px 0;
  border-right: 1px solid var(--line);
}
.why-cell:last-child { border-right: none; }
.why-cell:not(:first-child) { padding-left: 24px; }
.why-cell .icon {
  width: 38px;
  height: 38px;
  border: 1px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  margin-bottom: 16px;
}
.why-cell:first-child .icon {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--lime-dark);
}
.why-cell h3 { font-family: var(--font-sans); font-size: 16px; font-weight: 700; letter-spacing: 0; margin-bottom: 6px; }
.why-cell p { font-size: 13px; color: var(--muted); line-height: 1.55; }

.why-layout {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 56px;
  align-items: center;
}
.why-layout .why-grid {
  grid-template-columns: 1fr 1fr;
  gap: 32px 28px;
  border-top: none;
}
.why-layout .why-cell {
  border-right: none;
  padding: 0;
}
.why-layout .why-cell:not(:first-child) { padding-left: 0; }
.why-photos {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.why-photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}
.why-photos .ph-tall { grid-row: 1 / 3; aspect-ratio: 3 / 4.4; }
.why-photos .ph-small { aspect-ratio: 4 / 3; }
.why-photos .badge-exp {
  position: absolute;
  bottom: -18px;
  left: -18px;
  background: var(--lime);
  color: var(--lime-dark);
  border-radius: 2px;
  padding: 16px 20px;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 500;
  box-shadow: 0 18px 36px -20px rgba(26, 26, 26, 0.4);
}
.why-photos .badge-exp strong {
  display: block;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* --------------------------------------------------------------------------
   9. Come lavoriamo — 4 step
   -------------------------------------------------------------------------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}
.step-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  position: relative;
}
.step-card .num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 40px;
  font-weight: 400;
  color: var(--lime);
  line-height: 1;
  margin-bottom: 18px;
}
.step-card h3 {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.step-card p { font-size: 13px; color: var(--muted); line-height: 1.55; }
.step-card .step-arrow {
  position: absolute;
  top: 34px;
  right: -17px;
  z-index: 2;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--lime-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}
.step-card:last-child .step-arrow { display: none; }

/* --------------------------------------------------------------------------
   9b. Striscia gallery
   -------------------------------------------------------------------------- */
.gallery-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  padding: 0 22px;
}
.gallery-strip a {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 3.6;
  display: block;
}
.gallery-strip a:nth-child(even) { transform: translateY(22px); }
.gallery-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.gallery-strip a:hover img { transform: scale(1.06); }
.gallery-strip .cap {
  position: absolute;
  left: 12px;
  bottom: 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  z-index: 2;
}
.gallery-strip a::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.55));
}

/* --------------------------------------------------------------------------
   10. Modulo "scarica catalogo" (stile documento, distinto dalla CTA)
   -------------------------------------------------------------------------- */
.download-band {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 36px;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.download-band .cover {
  flex: 0 0 auto;
  width: 92px;
  height: 116px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 30px -16px rgba(26, 26, 26, 0.4);
  transform: rotate(-3deg);
}
.download-band .cover img { width: 56px; height: auto; }
.download-band .dl-text { flex: 1; min-width: 220px; }
.download-band .dl-text h3 {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}
.download-band .dl-meta {
  font-size: 13px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.download-band .dl-meta i { color: var(--lime); font-size: 16px; }
.download-band .btn { flex: 0 0 auto; }
@media (max-width: 560px) {
  .download-band { padding: 24px; gap: 20px; }
  .download-band .btn { width: 100%; justify-content: center; }
}

/* --------------------------------------------------------------------------
   10b. CTA contatti
   -------------------------------------------------------------------------- */
.cta-contact {
  background: var(--lime);
  border-radius: var(--radius);
  padding: 56px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-contact::before {
  content: '';
  position: absolute;
  left: -70px;
  bottom: -70px;
  width: 240px;
  height: 240px;
  border: 1px solid rgba(26, 42, 5, 0.18);
  border-radius: 50%;
  pointer-events: none;
}
.cta-contact .kicker { color: rgba(26, 42, 5, 0.7); }
.cta-contact .kicker::before { background: var(--lime-dark); }
.cta-contact h2 { color: var(--lime-dark); max-width: 560px; }
.cta-contact h2 .accent { color: #fff; }
.cta-contact p { color: rgba(26, 42, 5, 0.8); font-size: 15px; margin-top: 10px; max-width: 460px; }
.cta-contact .btn-dark:hover { background: #fff; color: var(--ink); }
.cta-contact .btn-dark:hover i { color: var(--ink); }

/* --------------------------------------------------------------------------
   11. Dove siamo + contatti
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.contact-list { display: flex; flex-direction: column; gap: 0; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.contact-item:last-child { border-bottom: none; }
.contact-item .icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  background: var(--lime-soft);
  color: var(--lime-dark);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.contact-item .label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-item .value { font-size: 16px; font-weight: 500; }
.contact-item .value a:hover { color: var(--lime); }

.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
  background: var(--bg-soft);
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* --------------------------------------------------------------------------
   11b. Hero di pagina interna
   -------------------------------------------------------------------------- */
.page-hero {
  background-color: var(--bg-paper);
  background-image:
    linear-gradient(rgba(26, 26, 26, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 26, 26, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  padding: 72px 0 64px;
  border-bottom: 1px solid var(--line);
}
.page-hero .breadcrumb {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.page-hero .breadcrumb a:hover { color: var(--lime); }
.page-hero .breadcrumb i { font-size: 13px; color: var(--gray); }
.page-hero h1 {
  font-size: clamp(40px, 5.5vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin-bottom: 18px;
}
.page-hero .sub {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
  max-width: 560px;
}

/* --------------------------------------------------------------------------
   11c. Storia — timeline
   -------------------------------------------------------------------------- */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 56px;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 7px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
}
.timeline-item { position: relative; padding-top: 28px; }
.timeline-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--bg);
  border: 4px solid var(--lime);
}
.timeline-item .year {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 26px;
  color: var(--lime);
  line-height: 1;
  margin-bottom: 10px;
}
.timeline-item h3 {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.timeline-item p { font-size: 13px; color: var(--muted); line-height: 1.55; }

/* --------------------------------------------------------------------------
   11d. Staff
   -------------------------------------------------------------------------- */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.staff-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.staff-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 44px -28px rgba(26, 26, 26, 0.35);
}
.staff-card .photo {
  aspect-ratio: 1 / 1.05;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-size: 56px;
  position: relative;
  overflow: hidden;
}
.staff-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.staff-card .info { padding: 18px 20px 20px; }
.staff-card .name { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.staff-card .role {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 3px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.staff-card .role::before {
  content: '';
  width: 14px;
  height: 1px;
  background: var(--lime);
}

/* --------------------------------------------------------------------------
   11e. Catalogo — dimmi chi sei
   -------------------------------------------------------------------------- */
.who-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.who-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-sans);
  transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s;
}
.who-card:hover { transform: translateY(-4px); border-color: var(--lime); }
.who-card .icon {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  background: var(--bg-soft);
  color: var(--ink);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transition: background 0.3s, color 0.3s;
}
.who-card .t { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.who-card .s { font-size: 12px; color: var(--muted); margin-top: 2px; }
.who-card.active {
  border-color: var(--lime);
  background: var(--lime-soft);
}
.who-card.active .icon { background: var(--lime); color: var(--lime-dark); }

/* --------------------------------------------------------------------------
   11f. Catalogo — macro categorie
   -------------------------------------------------------------------------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.cat-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9.5;
  display: block;
  cursor: pointer;
  border: none;
  padding: 0;
  text-align: left;
  font-family: var(--font-sans);
}
.cat-card .bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.7s var(--ease);
}
.cat-card:hover .bg { transform: scale(1.05); }
.cat-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.65) 100%);
}
.cat-card .label {
  position: absolute;
  bottom: 16px;
  left: 18px;
  right: 18px;
  z-index: 2;
  color: #fff;
}
.cat-card .label .title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cat-card .label .sub { font-size: 12px; opacity: 0.8; margin-top: 2px; }
.cat-card .check {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.cat-card.active .check {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--lime-dark);
}
.cat-card.active::after {
  background: linear-gradient(180deg, rgba(26, 42, 5, 0.2) 0%, rgba(26, 42, 5, 0.75) 100%);
}

/* --------------------------------------------------------------------------
   11g. Catalogo — elenco prodotti
   -------------------------------------------------------------------------- */
.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.catalog-count { font-size: 14px; color: var(--muted); }
.catalog-count strong { color: var(--ink); font-weight: 700; }
.catalog-reset {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  transition: color 0.2s;
}
.catalog-reset:hover { color: var(--ink); }
.catalog-reset i { color: var(--lime); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.product-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 44px -28px rgba(26, 26, 26, 0.35);
}
.product-card .photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
}
.product-card .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.product-card:hover .photo img { transform: scale(1.06); }
.product-card .cat-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  color: var(--ink);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 5px 10px;
}
.product-card .body { padding: 20px 22px 22px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.product-card .name { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.product-card .desc { font-size: 13px; color: var(--muted); line-height: 1.55; flex: 1; }
.product-card .link {
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  margin-top: 6px;
}
.product-card .link i { color: var(--lime); transition: transform 0.3s var(--ease); }
.product-card:hover .link i { transform: translateX(4px); }
.product-card.is-hidden { display: none; }

.catalog-empty {
  text-align: center;
  padding: 64px 24px;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}
.catalog-empty i { font-size: 40px; color: var(--gray); margin-bottom: 12px; display: block; }

/* --------------------------------------------------------------------------
   11h. Realizzazioni — filtro + portfolio
   -------------------------------------------------------------------------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 36px;
}
.filter-bar .filter-label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 6px;
}
.filter-btn {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.filter-btn i { font-size: 16px; color: var(--lime); transition: color 0.25s; }
.filter-btn:hover { border-color: var(--lime); }
.filter-btn.active {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--lime-dark);
}
.filter-btn.active i { color: var(--lime-dark); }

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.project-card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.project-card .project-link {
  position: absolute;
  inset: 0;
  z-index: 3;
}
.project-card .project-link:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: -3px;
}
.project-card:hover .name { color: var(--lime); }
.project-card .name { transition: color 0.25s; }
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 44px -28px rgba(26, 26, 26, 0.35);
}
.project-card .photo {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
}
.project-card .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.project-card:hover .photo img { transform: scale(1.05); }
.project-card .cat-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  color: var(--ink);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 5px 10px;
}
.project-card .client-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--lime);
  color: var(--lime-dark);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 5px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.project-card .client-badge i { font-size: 13px; }
.project-card .body { padding: 22px 24px 24px; flex: 1; display: flex; flex-direction: column; }
.project-card .name { font-size: 20px; font-weight: 700; letter-spacing: -0.015em; margin-bottom: 8px; }
.project-card .place {
  font-size: 13px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
}
.project-card .place i { color: var(--lime); font-size: 15px; }
.project-card .works-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.project-card .works { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.project-card .works span {
  font-size: 12px;
  color: var(--ink);
  background: var(--bg-soft);
  border-radius: 2px;
  padding: 4px 10px;
}
.project-card.is-hidden { display: none; }

/* --------------------------------------------------------------------------
   11i. FAQ — accordion
   -------------------------------------------------------------------------- */
.faq-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  align-items: start;
}
.faq-intro { position: sticky; top: 32px; }
.faq-intro p { color: var(--muted); font-size: 16px; line-height: 1.65; margin-top: 14px; max-width: 340px; }
.faq-intro .help {
  margin-top: 24px;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  border-bottom: 1px solid var(--lime);
  padding-bottom: 3px;
}
.faq-intro .help i { color: var(--lime); }

.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  transition: color 0.2s;
}
.faq-q:hover { color: var(--lime); }
.faq-q .icon {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  font-size: 17px;
  transition: background 0.3s var(--ease), border-color 0.3s, color 0.3s, transform 0.3s var(--ease);
}
.faq-item.open .faq-q { color: var(--ink); }
.faq-item.open .faq-q .icon {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--lime-dark);
  transform: rotate(45deg);
}
.faq-a {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s var(--ease);
}
.faq-a-inner {
  padding: 0 44px 26px 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}
.faq-a-inner a { color: var(--ink); border-bottom: 1px solid var(--lime); }

/* --------------------------------------------------------------------------
   11j. Contatti — info + form
   -------------------------------------------------------------------------- */
.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}
.contact-info .contact-item .value small {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}
.contact-info .value .sep { color: var(--line); margin: 0 8px; }

.contact-form {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 34px;
}
.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 7px;
}
.form-field label .req { color: var(--lime); }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--lime);
  box-shadow: 0 0 0 3px rgba(148, 200, 61, 0.16);
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 22px;
}
.form-check input { width: auto; margin-top: 2px; accent-color: var(--lime); }
.form-check a { color: var(--ink); border-bottom: 1px solid var(--lime); }
.contact-form .btn { width: 100%; justify-content: center; }
.form-feedback {
  display: none;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 4px;
  background: var(--lime-soft);
  color: var(--lime-dark);
  font-size: 14px;
}
.form-feedback.show { display: flex; align-items: center; gap: 10px; }
.form-feedback i { font-size: 18px; }

.contact-map .map-frame { aspect-ratio: 21 / 8; }

/* --------------------------------------------------------------------------
   12. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 0;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-brand img { height: 64px; width: auto; margin-bottom: 18px; }
.footer-brand p { font-size: 13px; line-height: 1.6; max-width: 280px; }
.site-footer h4 {
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { transition: color 0.2s; }
.footer-col a:hover { color: var(--lime); }
.footer-col li i { color: var(--lime); font-size: 15px; margin-right: 8px; vertical-align: -2px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}
.footer-bottom a:hover { color: var(--lime); }

/* --------------------------------------------------------------------------
   13. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero .grid { height: auto; min-height: 0; }
  .why-layout { grid-template-columns: 1fr; gap: 40px; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .timeline::before { display: none; }
  .staff-grid { grid-template-columns: repeat(2, 1fr); }
  .who-grid, .cat-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .project-grid { grid-template-columns: 1fr; }
  .faq-layout { grid-template-columns: 1fr; gap: 32px; }
  .faq-intro { position: static; }
  .contact-layout { grid-template-columns: 1fr; gap: 36px; }
  .gallery-strip { grid-template-columns: repeat(3, 1fr); }
  .gallery-strip a:nth-child(n + 4) { display: none; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .step-card .step-arrow { display: none; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .why-cell { border-right: none; padding-left: 0 !important; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-links, .nav-right { display: none; }
  .menu-toggle { display: block; }
  .gallery-strip { grid-template-columns: 1fr 1fr; padding: 0 24px; }
  .gallery-strip a:nth-child(even) { transform: none; }
  .site-header.menu-open .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 12px 24px 20px;
  }
  .site-header.menu-open .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line); }

  .hero .grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .tile-main { grid-column: 1 / 3; grid-row: auto; padding: 32px 24px; }
  .tile-photo, .tile-feat { min-height: 200px; }

  .section { padding: 64px 0; }
  .audience-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 28px; }
}

@media (max-width: 560px) {
  .hero .grid { grid-template-columns: 1fr; }
  .tile-main { grid-column: 1; }
  .steps-grid, .why-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .tile-main .meta { flex-wrap: wrap; gap: 16px; }
  .timeline, .staff-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .contact-form .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }
  .page-hero { padding: 48px 0 44px; }
}

/* --------------------------------------------------------------------------
   REALIZZAZIONE — pagina singola
   -------------------------------------------------------------------------- */
.realization-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 56px;
  align-items: start;
}
.realization-desc h2 {
  font-size: 30px;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.realization-desc p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
  margin-bottom: 16px;
}
.realization-desc p:last-child { margin-bottom: 0; }

/* Info tecniche */
.tech-info {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 32px;
  position: sticky;
  top: 96px;
}
.tech-info .kicker { margin-bottom: 22px; }
.tech-info dl { display: flex; flex-direction: column; gap: 20px; }
.tech-info .tech-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.tech-info .tech-row:last-child { border-bottom: 0; padding-bottom: 0; }
.tech-info .tech-icon {
  flex: none;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: var(--lime-soft);
  color: var(--lime-dark);
  border-radius: 50%;
  font-size: 19px;
}
.tech-info dt {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 3px;
}
.tech-info dd { font-size: 17px; font-weight: 600; color: var(--ink); }

/* Gallery / carosello */
.gallery {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
}
.gallery-track {
  display: flex;
  transition: transform 0.55s var(--ease);
}
.gallery-slide {
  flex: 0 0 100%;
  height: 460px;
}
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-btn {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 22px;
  transition: background 0.25s, color 0.25s;
  z-index: 2;
}
.gallery-btn:hover { background: var(--lime); color: var(--lime-dark); }
.gallery-btn.prev { left: 16px; }
.gallery-btn.next { right: 16px; }
.gallery-dots {
  position: absolute;
  left: 0; right: 0; bottom: 16px;
  display: flex; justify-content: center; gap: 8px;
  z-index: 2;
}
.gallery-dots button {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  padding: 0;
  transition: background 0.25s, transform 0.25s;
}
.gallery-dots button.active { background: #fff; transform: scale(1.25); }

@media (max-width: 860px) {
  .realization-layout { grid-template-columns: 1fr; gap: 36px; }
  .tech-info { position: static; }
}
@media (max-width: 560px) {
  .gallery-btn { width: 40px; height: 40px; font-size: 18px; }
  .realization-desc h2 { font-size: 25px; }
}

/* --------------------------------------------------------------------------
   PAGINE LEGALI (Privacy / Cookie)
   -------------------------------------------------------------------------- */
.legal-content { max-width: 820px; }
.legal-content .last-update {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 40px;
}
.legal-content h2 {
  font-size: 24px;
  letter-spacing: -0.015em;
  margin: 40px 0 14px;
}
.legal-content h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 26px 0 10px;
}
.legal-content p,
.legal-content li {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}
.legal-content p { margin-bottom: 14px; }
.legal-content ul { margin: 0 0 16px 22px; list-style: disc; }
.legal-content li { margin-bottom: 8px; }
.legal-content a { color: var(--lime-dark); text-decoration: underline; }
.legal-content a:hover { color: var(--lime); }
.legal-content .table-wrap { overflow-x: auto; margin: 8px 0 20px; }
.legal-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 480px;
}
.legal-content th,
.legal-content td {
  text-align: left;
  padding: 12px 14px;
  border: 1px solid var(--line);
  vertical-align: top;
}
.legal-content th { background: var(--bg-soft); font-weight: 600; color: var(--ink); }
.legal-content td { color: var(--muted); }

/* --------------------------------------------------------------------------
   COOKIE BANNER (GDPR)
   -------------------------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 1000;
  max-width: 560px;
  margin: 0 auto;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: 24px 26px;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.55);
  transform: translateY(140%);
  transition: transform 0.5s var(--ease);
}
.cookie-banner.is-open { transform: translateY(0); }
.cookie-banner h3 {
  font-family: var(--font-serif);
  font-size: 19px;
  margin-bottom: 8px;
}
.cookie-banner p { font-size: 14px; line-height: 1.6; color: rgba(255, 255, 255, 0.8); margin-bottom: 16px; }
.cookie-banner p a { color: var(--lime); text-decoration: underline; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-actions .btn { padding: 11px 20px; font-size: 13px; }
.cookie-btn-reject {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}
.cookie-btn-reject:hover { background: rgba(255, 255, 255, 0.1); }
.cookie-btn-accept { background: var(--lime); color: var(--lime-dark); border: 0; }
.cookie-btn-accept:hover { background: #fff; }
.cookie-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--radius);
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  padding: 11px 20px;
  font-size: 13px;
  transition: background 0.25s, color 0.25s;
}
@media (max-width: 560px) {
  .cookie-actions .btn, .cookie-btn { flex: 1; justify-content: center; }
}

/* --------------------------------------------------------------------------
   LISTINO COMPLETO (dataset dal PDF)
   -------------------------------------------------------------------------- */
.listino-tools {
  display: flex; flex-wrap: wrap; gap: 16px;
  align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.listino-search { position: relative; flex: 1; min-width: 240px; max-width: 440px; }
.listino-search i {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-size: 18px;
}
.listino-search input {
  width: 100%; padding: 12px 14px 12px 42px;
  border: 1px solid var(--line); border-radius: var(--radius);
  font-family: var(--font-sans); font-size: 15px; background: var(--bg); color: var(--ink);
}
.listino-search input:focus { outline: none; border-color: var(--lime); }
.listino-count { font-size: 14px; color: var(--muted); margin-bottom: 26px; }
.listino-count strong { color: var(--ink); }

.listino-group { margin-bottom: 40px; }
.listino-group.is-hidden { display: none; }
.listino-group-head {
  display: flex; align-items: baseline; gap: 12px;
  margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.listino-group-head h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.listino-group-head .g-count {
  font-size: 12px; color: var(--muted);
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 999px; padding: 2px 10px;
}
.listino-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.listino-item {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; display: flex; flex-direction: column; gap: 14px;
}
.listino-item.is-hidden { display: none; }
.listino-item .li-title { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.listino-item .li-code { font-size: 12.5px; color: var(--muted); font-family: var(--font-mono, monospace); margin-top: 3px; }
.listino-item .li-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.listino-item .li-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; padding: 8px 12px;
  border-radius: var(--radius); cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.li-btn-pdf { border: 1px solid var(--line); color: var(--ink); }
.li-btn-pdf:hover { border-color: var(--lime); color: var(--lime); }
.li-btn-pdf i, .li-btn-info i { font-size: 15px; }
.li-btn-info { background: var(--lime); color: var(--lime-dark); }
.li-btn-info:hover { background: var(--ink); color: #fff; }

/* Controlli catalogo (chip categoria + ricerca) */
.catalog-controls { margin-top: 4px; }
.catalog-controls .filter-bar { margin-bottom: 18px; }
.catalog-controls-row {
  display: flex; flex-wrap: wrap; gap: 16px;
  align-items: center; justify-content: space-between;
}
