/* ============================================================
   Cianciullo Marmi — Theme CSS
   Unisce: design-tokens + componenti UI + stili WordPress
   ============================================================ */

/* ─── Design tokens ──────────────────────────────────────── */
:root {
  --navy:            #174B8E;
  --navy-deep:       #123c72;
  --navy-40:         rgba(23,75,142,0.40);
  --navy-20:         rgba(23,75,142,0.20);
  --navy-10:         rgba(23,75,142,0.10);

  --ink:             #454545;
  --ink-muted:       #6B6B6B;
  --ink-strong:      #1A1A1A;

  --white:           #FFFFFF;
  --surface-tint:    #F4F1EB;
  --surface-blue:    var(--surface-tint);
  --surface-off:     #FAF8F4;
  --surface-stone:   #EDE8E0;

  --line:            #D0CFC9;
  --line-navy:       var(--navy-10);

  --on-dark:         #FFFFFF;
  --on-dark-70:      rgba(255,255,255,0.70);
  --on-dark-60:      rgba(255,255,255,0.60);
  --on-dark-50:      rgba(255,255,255,0.50);
  --on-dark-20:      rgba(255,255,255,0.20);

  --overlay-hero:    rgba(23,75,142,0.40);
  --overlay-dark:    rgba(0,0,0,0.30);

  --shadow-header:   0 1px 2px -1px rgba(0,0,0,0.1), 0 1px 3px 0 rgba(0,0,0,0.1);
  --shadow-card:     0 1px 3px rgba(0,0,0,0.08);

  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans:  "Barlow", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  --gold:       #B8962E;
  --cm-gray:    #555555;
}

/* ─── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

/* ─── Layout ─────────────────────────────────────────────── */
.wrap { max-width: 1400px; margin: 0 auto; padding: 0 78px; }
@media (max-width: 900px) { .wrap { padding: 0 28px; } }

/* ─── Eyebrow ────────────────────────────────────────────── */
.eyebrow { display: flex; align-items: center; gap: 12px; }
.eyebrow.center { justify-content: center; }
.eyebrow .rule { width: 32px; height: 1px; background: var(--navy); flex-shrink: 0; }
.eyebrow.center .rule { background: var(--navy-40); }
.eyebrow span:last-child {
  font-weight: 500; font-size: 11px;
  letter-spacing: .2em; text-transform: uppercase; color: var(--navy);
}

/* ─── Headings ───────────────────────────────────────────── */
.h2 {
  font-family: var(--font-serif); font-weight: 300;
  font-size: 48px; line-height: 1.2; color: var(--ink); margin: 0;
}
.h2 em { font-style: italic; }
.h2.center { font-size: 36px; line-height: 1.11; text-align: center; }
.lead {
  font-weight: 300; font-size: 16px;
  line-height: 1.8; color: var(--ink-muted); margin: 0;
}

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-sans); font-weight: 500; font-size: 12px;
  letter-spacing: .1em; text-transform: uppercase;
  height: 46px; padding: 0 33px; border: none;
  transition: background .25s, color .25s, border-color .25s, transform .1s;
  white-space: nowrap; cursor: pointer; text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn--solid  { background: var(--navy); color: #fff; }
.btn--solid:hover { background: var(--navy-deep); }
.btn--outline { background: transparent; color: var(--navy); border: 1px solid var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--lg { height: 50px; padding: 0 35px; }
.btn--ghost-light { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.5); }
.btn--ghost-light:hover { background: rgba(255,255,255,.12); }

/* ─── Header ─────────────────────────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 200;
  background: #fff; box-shadow: var(--shadow-header);
}
.header__bar {
  height: 96px; display: flex;
  align-items: center; justify-content: space-between;
}
.header__logo { height: 56px; display: block; }
.header__logo-link { display: inline-flex; }

/* Desktop nav */
.nav { display: flex; align-items: center; gap: 32px; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 5px;
  font-weight: 500; font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink); padding: 0; transition: color .2s;
}
.nav__link:hover, .nav__link.active { color: var(--navy); }
.nav__link svg { width: 14px; height: 14px; stroke-width: 1.5; transition: transform .2s; }
.nav__item--dropdown:hover .nav__link svg,
.nav__item--dropdown.is-open .nav__link svg { transform: rotate(180deg); }
.nav__menu {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 230px; background: #fff;
  border: 1px solid var(--navy-10);
  box-shadow: 0 12px 32px -8px rgba(23,75,142,.18);
  padding: 10px 0; opacity: 0; visibility: hidden;
  transition: opacity .2s, transform .2s; z-index: 300;
  pointer-events: none;
}
.nav__menu::before {
  content: ""; position: absolute;
  bottom: 100%; left: 0; right: 0; height: 12px;
}
.nav__item--dropdown:hover .nav__menu,
.nav__item--dropdown.is-open .nav__menu {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) translateY(2px);
  pointer-events: all;
}
.nav__menu-link {
  display: block; width: 100%; text-align: left;
  font-family: var(--font-sans); font-weight: 300; font-size: 15px;
  color: var(--ink); padding: 11px 24px;
  transition: background .15s, color .15s; white-space: nowrap;
}
.nav__menu-link:hover { background: var(--surface-tint); color: var(--navy); }
.nav__cta { margin-left: 8px; }

/* Language switcher */
.nav__lang { display: flex; align-items: center; gap: 4px; margin-left: 4px; }
.nav__lang-link {
  font-size: 11px; font-weight: 600; letter-spacing: .08em;
  color: var(--ink-muted); text-decoration: none;
  padding: 4px 6px; border-radius: 3px;
  transition: color .15s, background .15s;
}
.nav__lang-link:hover { color: var(--navy); background: var(--surface-tint); }
.nav__lang-link--active { color: var(--gold); pointer-events: none; }

/* Mobile burger */
.nav__burger {
  display: none; flex-direction: column;
  gap: 5px; padding: 8px; cursor: pointer;
}
.nav__burger span {
  display: block; width: 24px; height: 1.5px;
  background: var(--ink); transition: all .3s;
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile drawer */
.nav__drawer {
  display: none; position: fixed;
  top: 96px; left: 0; right: 0; bottom: 0;
  background: #fff; z-index: 199;
  overflow-y: auto; padding: 32px 28px;
  transform: translateX(100%); transition: transform .3s ease;
}
.nav__drawer.is-open { transform: translateX(0); }
.nav__drawer-inner { display: flex; flex-direction: column; gap: 4px; }
.nav__drawer-inner a {
  display: block; padding: 16px 0;
  font-weight: 500; font-size: 15px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink);
  border-bottom: 1px solid var(--line); transition: color .2s;
}
.nav__drawer-inner a:hover { color: var(--navy); }
.nav__drawer-inner .btn { margin-top: 24px; width: 100%; justify-content: center; }

@media (max-width: 1100px) {
  .nav { display: none; }
  .nav__burger { display: flex; }
  .nav__drawer { display: block; }
}

/* ─── Hero ───────────────────────────────────────────────── */
.hero { position: relative; height: 760px; overflow: hidden; background: #111; }

/* Slides */
.hero__slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 1s ease; pointer-events: none;
}
.hero__slide[data-active="1"] { opacity: 1; pointer-events: auto; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__wash { position: absolute; inset: 0; background: rgba(10,20,40,.45); }

/* Content overlay — pointer-events off so arrows stay clickable */
.hero__content {
  position: absolute; inset: 0; z-index: 5;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 0 80px; gap: 40px;
  pointer-events: none;
}
.hero__actions { pointer-events: auto; display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.hero__actions a { pointer-events: auto; }

/* Titles container — reserves space in flex, titles stack inside */
.hero__titles {
  position: relative;
  width: 100%; max-width: 860px;
  height: 220px; /* spazio riservato per il titolo */
  display: flex; align-items: center; justify-content: center;
}
.hero__title {
  font-family: var(--font-serif); font-weight: 300; color: #fff;
  font-size: 72px; line-height: 1.1; margin: 0;
  opacity: 0; transition: opacity .7s ease;
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
}
.hero__title[data-active="1"] { opacity: 1; }

/* Arrows */
.hero__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px;
  border: 1px solid rgba(255,255,255,.3); background: rgba(0,0,0,.2);
  display: flex; align-items: center; justify-content: center;
  color: #fff; cursor: pointer; transition: background .2s;
  z-index: 30;
}
.hero__arrow:hover { background: rgba(255,255,255,.18); }
.hero__arrow svg { width: 22px; height: 22px; pointer-events: none; }
.hero__arrow--prev { left: 28px; }
.hero__arrow--next { right: 28px; }

/* Dots */
.hero__dots {
  position: absolute; bottom: 36px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 10px; z-index: 30;
}
.hero__dot {
  width: 32px; height: 3px; padding: 0; border: none;
  background: rgba(255,255,255,.35); cursor: pointer;
  transition: background .3s;
}
.hero__dot[data-active="1"] { background: #fff; }

@media (max-width: 900px) {
  .hero { height: 560px; }
  .hero__content { padding: 0 20px; gap: 24px; }
  .hero__titles { height: 160px; }
  .hero__title { font-size: 36px; }
  .hero__actions { flex-direction: column; align-items: center; }
  .hero__arrow--prev { left: 10px; }
  .hero__arrow--next { right: 10px; }
}

/* ─── Sections ───────────────────────────────────────────── */
.section { padding: 112px 0; }
.section--blue  { background: var(--navy); }
.section--light { background: var(--surface-tint); }
.section--white { background: var(--white); }
.section__head {
  display: flex; flex-direction: column;
  align-items: center; gap: 24px;
  text-align: center; margin-bottom: 64px;
}

/* ─── Storia ─────────────────────────────────────────────── */
.storia { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.storia__media { position: relative; overflow: visible; }
.storia__media img { width: 100%; height: 540px; object-fit: cover; }
.storia__stat {
  position: absolute; right: -28px; bottom: -28px;
  width: 220px;
  padding: 32px 20px 36px;
  background: var(--navy); color: #fff;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px;
  box-sizing: border-box;
}
.storia__stat .num {
  font-family: var(--font-serif); font-weight: 300;
  font-size: 72px; line-height: 1;
  white-space: nowrap;
}
.storia__stat .cap {
  font-family: var(--font-serif); font-weight: 300;
  font-size: 13px; letter-spacing: .12em;
  text-align: center; line-height: 1.25;
  color: rgba(255,255,255,.95);
}
.storia__copy {
  display: flex; flex-direction: column; gap: 22px; align-items: flex-start;
}
@media (max-width: 900px) {
  .storia { grid-template-columns: 1fr; gap: 56px; }
  .storia__stat { right: 0; bottom: 0; }
}

/* ─── Services ───────────────────────────────────────────── */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service { display: flex; flex-direction: column; gap: 16px; }
.service__img { height: 220px; overflow: hidden; }
.service__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.4,0,.2,1); }
.service:hover .service__img img { transform: scale(1.04); }
.service__icon { width: 32px; height: 32px; color: var(--navy); }
.service__icon svg { width: 26px; height: 26px; stroke-width: 1.5; }
.service h3 { font-family: var(--font-serif); font-weight: 300; font-size: 24px; color: var(--ink); margin: 0; }
.service p { font-weight: 300; font-size: 15px; line-height: 1.8; color: var(--ink-muted); margin: 0; }
@media (max-width: 900px) { .services { grid-template-columns: 1fr; } }

/* ─── Listing grid ───────────────────────────────────────── */
.listing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.listing.two { grid-template-columns: repeat(2, 1fr); gap: 24px; }
.center-cta { display: flex; justify-content: center; margin-top: 56px; }
@media (max-width: 900px) {
  .listing, .listing.two { grid-template-columns: 1fr; }
}

/* ─── Workcard (Realizzazioni) ───────────────────────────── */
.workcard { cursor: pointer; }
.workcard__img { height: 300px; overflow: hidden; }
.workcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.4,0,.2,1); }
.workcard:hover .workcard__img img { transform: scale(1.04); }
.workcard .tag { font-weight: 500; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); margin-top: 16px; }
.workcard h4 { font-family: var(--font-serif); font-weight: 300; font-size: 23px; color: var(--ink); margin: 6px 0 2px; }
.workcard .loc { font-weight: 300; font-size: 14px; color: var(--ink-muted); }
.workcard-title { font-family: var(--font-serif); font-weight: 300; font-size: 23px; color: var(--ink); margin: 6px 0 2px; }
.workcard-architect { font-weight: 300; font-size: 12px; color: var(--ink-muted); margin: 4px 0 0; font-style: italic; }

/* ─── Matcard (Materiali) ────────────────────────────────── */
.matcard { cursor: pointer; }
.matcard__img { height: 380px; overflow: hidden; position: relative; }
.matcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s cubic-bezier(.4,0,.2,1); }
.matcard:hover .matcard__img img { transform: scale(1.05); }
.matcard h4 { font-family: var(--font-serif); font-weight: 300; font-size: 26px; color: var(--ink); margin: 16px 0 4px; }
.matcard .cat { font-weight: 500; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); margin-top: 16px; }
.matcard h4.tight { margin-top: 6px; }
.matcard h2, .matcard h3 { font-family: var(--font-serif); font-weight: 300; font-size: 26px; color: var(--ink); margin: 16px 0 4px; }
.matcard h2.tight, .matcard h3.tight { margin-top: 6px; }
.matcard p { font-weight: 300; font-size: 14px; line-height: 1.6; color: var(--ink-muted); margin: 0; }

/* ─── Sedi ───────────────────────────────────────────────── */
.sedi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.sedi--two { grid-template-columns: repeat(2, 1fr); max-width: 920px; margin: 0 auto; }
.sede { background: #fff; border: 1px solid var(--navy-10); padding: 33px; }
.sede__icon {
  width: 56px; height: 56px; border: 1px solid var(--navy-20);
  display: flex; align-items: center; justify-content: center; margin-bottom: 28px;
}
.sede__icon svg { width: 24px; height: 24px; color: var(--navy); stroke-width: 1.5; }
.sede h3 { font-family: var(--font-serif); font-weight: 300; font-size: 24px; color: var(--ink); margin: 0 0 14px; }
.sede__desc { font-weight: 300; font-size: 15px; line-height: 1.8; color: var(--ink-muted); margin: 0 0 22px; }
.sede__meta { display: flex; flex-direction: column; gap: 8px; font-weight: 300; font-size: 13px; color: var(--ink-muted); }
.sede__meta b { color: var(--navy); font-weight: 500; }
@media (max-width: 900px) {
  .sedi, .sedi--two { grid-template-columns: 1fr; }
}

/* ─── Footer ─────────────────────────────────────────────── */
.footer { background: #0b1e36; color: #fff; padding: 80px 0 0; }
.footer__top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr;
  gap: 60px; padding-bottom: 56px;
}
.footer__brand img { height: 44px; margin-bottom: 18px; }
.footer__brand p {
  font-weight: 300; font-size: 13px; line-height: 1.7;
  color: var(--on-dark-60); max-width: 280px; margin: 0 0 22px;
}
.footer__social { display: flex; gap: 12px; }
.footer__social a {
  width: 38px; height: 38px;
  border: 1px solid var(--on-dark-20);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.footer__social a:hover { background: rgba(255,255,255,.1); }
.footer__social svg { width: 16px; height: 16px; color: #fff; stroke-width: 1.5; }
.footer__col h5 {
  font-weight: 500; font-size: 11px;
  letter-spacing: .18em; text-transform: uppercase; margin: 0 0 22px;
}
.footer__col a {
  display: flex; align-items: center; gap: 10px;
  font-weight: 300; font-size: 13px;
  color: var(--on-dark-60); margin-bottom: 14px;
  transition: color .2s;
}
.footer__col a:hover { color: #fff; }
.footer__addr,
.footer__orari { display: block; font-size: 13px; font-weight: 300; color: rgba(255,255,255,.55); margin-bottom: 6px; line-height: 1.5; }
.footer__col span { display: block; font-size: 13px; font-weight: 300; color: rgba(255,255,255,.55); margin-bottom: 6px; }
.footer__top { flex-wrap: wrap; }
.footer__top { display: flex; gap: 48px; }
.footer__brand { flex: 0 0 220px; }
.footer__col { flex: 1; min-width: 140px; }
.footer__contact-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 0; border-top: 1px solid var(--on-dark-20);
  flex-wrap: wrap; gap: 16px;
}
.footer__contact-links {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.footer__contact-links a {
  display: flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 400; color: var(--on-dark-70);
  transition: color .2s; text-decoration: none;
}
.footer__contact-links a:hover { color: #fff; }
.footer__contact-links svg { flex-shrink: 0; opacity: .7; }

.footer__social-bar {
  display: flex; align-items: center; gap: 10px;
}
.footer__social-bar a {
  width: 34px; height: 34px;
  border: 1px solid var(--on-dark-20);
  display: flex; align-items: center; justify-content: center;
  color: var(--on-dark-70); transition: background .2s, color .2s, border-color .2s;
}
.footer__social-bar a:hover {
  background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.3);
}
.footer__social-bar svg { width: 15px; height: 15px; stroke-width: 1.5; }

.footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 0; border-top: 1px solid rgba(255,255,255,.06);
}
.footer__bottom p { font-weight: 300; font-size: 12px; color: var(--on-dark-50); margin: 0; }
.footer__legal {
  display: flex; flex-wrap: wrap; gap: 6px 16px;
  font-size: 11px; color: var(--on-dark-50);
  justify-content: flex-end;
}
.footer__legal a { color: var(--on-dark-50); transition: color .2s; white-space: nowrap; }
.footer__legal a:hover { color: #fff; }
.footer__legal a + a::before {
  content: '·'; margin-right: 16px; color: var(--on-dark-20);
  pointer-events: none;
}
@media (max-width: 900px) {
  .footer__top { grid-template-columns: 1fr; gap: 40px; }
}

/* ─── Banner panoramica (chi siamo, made in italy, etc.) ─── */
.cs-banner-img { width: 100%; height: 480px; overflow: hidden; }
.cs-banner-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 900px) { .cs-banner-img { height: 300px; } }
@media (max-width: 600px) { .cs-banner-img { height: 220px; } }

/* ─── Page hero (interior) ───────────────────────────────── */
.pagehero { position: relative; min-height: 440px; overflow: hidden; display: flex; background: var(--navy); }
.pagehero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pagehero__wash { position: absolute; inset: 0; background: var(--overlay-hero); }
.pagehero__content {
  position: relative; align-self: flex-end;
  width: 100%; display: flex; flex-direction: column;
  gap: 20px; color: #fff; padding: 64px 0;
}
.pagehero__eyebrow { display: flex; align-items: center; gap: 12px; }
.pagehero__eyebrow .rule { width: 32px; height: 1px; background: rgba(255,255,255,.7); }
.pagehero__eyebrow span:last-child {
  font-weight: 500; font-size: 11px;
  letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.9);
}
.pagehero__title {
  font-family: var(--font-serif); font-weight: 300;
  font-size: 72px; line-height: 1.05; margin: 0; max-width: 760px;
}
.pagehero__crumb {
  display: flex; align-items: center; gap: 10px;
  font-weight: 300; font-size: 13px; color: rgba(255,255,255,.7);
}
.pagehero__crumb a { transition: color .2s; }
.pagehero__crumb a:hover { color: #fff; }
.pagehero__crumb .cur { color: #fff; }
@media (max-width: 900px) {
  .pagehero__title { font-size: 44px; }
}

/* ─── Prose / two-col text+image ─────────────────────────── */
.prose { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.prose__copy { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.prose__copy.full { display: block; max-width: 760px; margin: 0 auto; text-align: center; }
.prose__media img { width: 100%; height: 520px; object-fit: cover; }
.prose.reverse .prose__media { order: -1; }
@media (max-width: 900px) {
  .prose { grid-template-columns: 1fr; gap: 48px; }
  .prose.reverse .prose__media { order: 0; }
  .prose__media img { height: 320px; }
}

/* ─── Feature grid (valori) ──────────────────────────────── */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.feature {
  background: #fff; border: 1px solid var(--navy-10);
  padding: 38px 34px; display: flex; flex-direction: column; gap: 16px;
  transition: border-color .2s, box-shadow .2s;
}
.feature__icon {
  width: 56px; height: 56px; border: 1px solid var(--navy-20);
  display: flex; align-items: center; justify-content: center;
}
.feature__icon svg { width: 24px; height: 24px; color: var(--navy); stroke-width: 1.5; }
.feature h3 { font-family: var(--font-serif); font-weight: 300; font-size: 24px; color: var(--ink); margin: 0; }
.feature p { font-weight: 300; font-size: 15px; line-height: 1.8; color: var(--ink-muted); margin: 0; }
.feature:hover { border-color: var(--navy-20); box-shadow: 0 8px 32px -8px rgba(23,75,142,.12); }
@media (max-width: 900px) { .feature-grid { grid-template-columns: 1fr; } }

/* ─── Stat strip ─────────────────────────────────────────── */
.statstrip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; text-align: center; }
.statstrip .stat .num { font-family: var(--font-serif); font-weight: 300; font-size: 72px; line-height: 1; color: var(--navy); }
.statstrip .stat .lab { font-weight: 300; font-size: 13px; line-height: 1.5; color: var(--ink-muted); margin-top: 12px; }
@media (max-width: 900px) { .statstrip { grid-template-columns: 1fr 1fr; gap: 32px; } }

/* ─── Timeline ───────────────────────────────────────────── */
.timeline { max-width: 760px; margin: 0 auto; }
.tl-row { display: grid; grid-template-columns: 120px 1fr; gap: 34px; padding: 0 0 44px; }
.tl-row:last-child { padding-bottom: 0; }
.tl-year { font-family: var(--font-serif); font-weight: 300; font-size: 34px; color: var(--navy); line-height: 1; }
.tl-body { border-left: 1px solid var(--line); padding-left: 34px; }
.tl-body h4 { font-family: var(--font-serif); font-weight: 300; font-size: 22px; color: var(--ink); margin: 0 0 10px; }
.tl-body p { font-weight: 300; font-size: 14px; line-height: 1.8; color: var(--ink-muted); margin: 0; }

/* ─── Filterbar ──────────────────────────────────────────── */
.filterbar {
  display: flex; justify-content: center;
  gap: 10px; flex-wrap: wrap; margin-bottom: 48px;
}
.filterbar button {
  font-family: var(--font-sans); font-weight: 500; font-size: 11px;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-muted); background: none;
  border: 1px solid var(--line); padding: 10px 20px;
  transition: all .2s; cursor: pointer;
}
.filterbar button:hover { color: var(--navy); border-color: var(--navy-40); }
.filterbar button.active { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ─── Breadcrumb ─────────────────────────────────────────── */
.breadcrumb { background: var(--surface-blue); padding: 26px 0; }
.breadcrumb__inner {
  display: flex; align-items: center; gap: 10px;
  font-weight: 300; font-size: 13px; color: var(--ink-muted);
}
.breadcrumb__inner span.sep { color: var(--ink-muted); }
.breadcrumb__inner .cur { color: var(--ink); }
.breadcrumb__inner a:hover { color: var(--navy); }

/* ─── Detail (materiale/realizzazione) ───────────────────── */
.detail { padding: 90px 0 110px; }
.detail__eyebrow { margin-bottom: 18px; }
.detail__title {
  font-family: var(--font-serif); font-weight: 300;
  font-size: 64px; line-height: 1; color: var(--ink); margin: 0 0 56px;
}
.detail__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.detail__img img { width: 100%; height: 700px; object-fit: cover; }
.detail__desc { font-weight: 300; font-size: 15px; line-height: 1.8; color: var(--ink-muted); margin: 28px 0 0; }
.detail__description { margin: 56px 0 0; padding-top: 48px; border-top: 1px solid var(--line); }
.detail__description p { font-weight: 300; font-size: 15px; line-height: 1.8; color: var(--ink-muted); max-width: 760px; }
@media (max-width: 900px) {
  .detail__title { font-size: 44px; }
  .detail__grid { grid-template-columns: 1fr; gap: 40px; }
  .detail__img img { height: 460px; }
}

/* Scheda tecnica */
.scheda h3 { font-family: var(--font-serif); font-weight: 300; font-size: 30px; color: var(--ink); margin: 0 0 30px; }
.scheda__field { border: 1px solid var(--line); padding: 16px 20px; margin-bottom: 14px; }
.scheda__field .k { font-weight: 500; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 7px; }
.scheda__field .v { font-weight: 300; font-size: 16px; color: var(--ink); }

/* ─── Project detail ─────────────────────────────────────── */
.proj-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.proj-meta__facts { display: flex; flex-direction: column; }
.proj-fact { display: flex; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid var(--line); }
.proj-fact:first-child { border-top: 1px solid var(--line); }
.proj-fact .k { font-weight: 500; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); }
.proj-fact .v { font-weight: 300; font-size: 15px; color: var(--ink); }
.proj-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.proj-shot { height: 340px; overflow: hidden; }
.proj-shot.wide { grid-column: 1 / -1; height: 540px; }
.proj-shot img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) {
  .proj-meta { grid-template-columns: 1fr; gap: 40px; }
  .proj-grid { grid-template-columns: 1fr; }
  .proj-shot, .proj-shot.wide { grid-column: auto; height: 320px; }
}

/* ─── Pulsanti su sfondo blu ─────────────────────────────── */
.section--blue .btn--solid {
  background: #fff;
  color: var(--navy);
}
.section--blue .btn--solid:hover {
  background: var(--surface-tint);
}

/* ─── Sede card su sfondo blu ────────────────────────────── */
.section--blue .sede {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.15);
}
.section--blue .sede h3         { color: #fff; }
.section--blue .sede__desc      { color: rgba(255,255,255,.7); }
.section--blue .sede__meta span { color: rgba(255,255,255,.6); }
.section--blue .sede__icon {
  border-color: rgba(255,255,255,.25);
}
.section--blue .sede__icon svg  { color: rgba(255,255,255,.8); }

/* ─── Statstrip su sfondo blu ────────────────────────────── */
.section--blue .statstrip .stat .num { color: #fff; }
.section--blue .statstrip .stat .lab { color: rgba(255,255,255,.65); }

/* ─── Timeline su sfondo blu ─────────────────────────────── */
.section--blue .tl-year             { color: rgba(255,255,255,.85); }
.section--blue .tl-body             { border-left-color: rgba(255,255,255,.2); }
.section--blue .tl-body h4          { color: #fff; }
.section--blue .tl-body p           { color: rgba(255,255,255,.7); }

/* ─── Testi su sfondo blu (section--blue) ────────────────── */
/* Workcards */
.section--blue .workcard .tag  { color: rgba(255,255,255,.65) !important; }
.section--blue .workcard h4    { color: #fff !important; }
.section--blue .workcard h3    { color: #fff !important; }
.section--blue .workcard .loc  { color: rgba(255,255,255,.55) !important; }
.section--blue .workcard .workcard-title { color: #fff !important; }
/* Matcards */
.section--blue .matcard .cat   { color: rgba(255,255,255,.65) !important; }
.section--blue .matcard h2,
.section--blue .matcard h3     { color: #fff !important; }
.section--blue .matcard h4     { color: #fff !important; }
.section--blue .matcard p      { color: rgba(255,255,255,.65) !important; }
/* Eyebrow */
.section--blue .eyebrow span:last-child { color: rgba(255,255,255,.9); }
.section--blue .eyebrow .rule           { background: rgba(255,255,255,.4); }
/* Titoli generici */
.section--blue .section__title { color: #fff; }
.section--blue h2,
.section--blue h3              { color: #fff; }
.section--blue p               { color: rgba(255,255,255,.75); }

/* ─── CTA band ───────────────────────────────────────────── */
.cta-band { background: var(--surface-blue); text-align: center; padding: 96px 0; }
.cta-band h2 { font-family: var(--font-serif); font-weight: 300; font-size: 40px; color: var(--ink); margin: 0 0 20px; }
.cta-band p { font-weight: 300; font-size: 15px; line-height: 1.8; color: var(--ink-muted); max-width: 620px; margin: 0 auto 36px; }

/* ─── Contatti ───────────────────────────────────────────── */
.contatti-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: stretch; }
.contatti-info { display: flex; flex-direction: column; gap: 28px; }
.contatti-row { display: flex; gap: 18px; align-items: flex-start; }
.contatti-row .ic {
  width: 48px; height: 48px; flex: none;
  border: 1px solid var(--navy-20);
  display: flex; align-items: center; justify-content: center;
}
.contatti-row .ic svg { width: 20px; height: 20px; color: var(--navy); stroke-width: 1.5; }
.contatti-row .k { font-weight: 500; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 6px; }
.contatti-row .v { font-weight: 300; font-size: 16px; line-height: 1.6; color: var(--ink); }
.contatti-map {
  min-height: 440px; height: 100%; background: var(--surface-stone);
  position: relative; overflow: hidden;
  border: 1px solid var(--navy-10);
}
.contatti-map iframe { width: 100%; height: 100%; border: 0; }
.sede-toggle {
  display: flex; justify-content: center;
  margin-bottom: 56px; border: 1px solid var(--line);
  width: fit-content; margin-left: auto; margin-right: auto;
}
.sede-toggle button {
  font-weight: 500; font-size: 12px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-muted);
  background: none; border: none; padding: 14px 32px; transition: all .2s;
}
.sede-toggle button.active { background: var(--navy); color: #fff; }
@media (max-width: 900px) { .contatti-grid { grid-template-columns: 1fr; gap: 40px; } }

/* ─── Quote form ─────────────────────────────────────────── */
.quote { padding: 80px 0 110px; max-width: 760px; margin: 0 auto; }
.quote__head { text-align: center; margin-bottom: 56px; }
.quote__head h1 { font-family: var(--font-serif); font-weight: 300; font-size: 56px; color: var(--ink); margin: 18px 0 16px; }
.quote__head p { font-weight: 300; font-size: 15px; line-height: 1.8; color: var(--ink-muted); margin: 0; }
.field { display: flex; flex-direction: column; gap: 9px; margin-bottom: 22px; }
.field label { font-weight: 500; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); }
.field input, .field select, .field textarea {
  font-family: var(--font-sans); font-weight: 300;
  font-size: 15px; color: var(--ink);
  border: 1px solid var(--line); padding: 14px 16px;
  background: #fff; outline: none; transition: border-color .2s;
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); }
.field textarea { resize: vertical; min-height: 130px; }
.field.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.quote .btn { width: 100%; margin-top: 8px; height: 50px; font-size: 13px; }
@media (max-width: 600px) { .field.row2 { grid-template-columns: 1fr; } }

/* ─── Contact Form 7 — design tema ──────────────────────── */
.cf7-wrap { width: 100%; }
.cf7-wrap .wpcf7 { width: 100%; }
.cf7-wrap br { display: none; }
.cf7-wrap p { margin: 0; }

/* Griglia 2 colonne */
.cf7-row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 0;
}
@media (max-width: 600px) { .cf7-row2 { grid-template-columns: 1fr; } }

/* Singolo campo */
.cf7-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px;
}
.cf7-field label {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.cf7-field .wpcf7-form-control-wrap { display: block; }

/* Input, select, textarea */
.cf7-wrap input[type="text"],
.cf7-wrap input[type="email"],
.cf7-wrap input[type="tel"],
.cf7-wrap input[type="url"],
.cf7-wrap input[type="number"],
.cf7-wrap select,
.cf7-wrap textarea {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 15px;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 13px 16px;
  background: #fff;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
  display: block;
  border-radius: 0;
  -webkit-appearance: none;
  box-shadow: none;
}
.cf7-wrap input:focus,
.cf7-wrap select:focus,
.cf7-wrap textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px var(--navy-10);
}
.cf7-wrap textarea { resize: vertical; min-height: 140px; }
.cf7-wrap select { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23174B8E' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }

/* Privacy / acceptance */
.cf7-privacy {
  margin-bottom: 28px;
}
.cf7-privacy .wpcf7-acceptance {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.cf7-privacy .wpcf7-list-item { margin: 0; }
.cf7-privacy .wpcf7-list-item-label {
  font-size: 13px;
  font-weight: 300;
  color: var(--ink-muted);
  line-height: 1.6;
}
.cf7-privacy input[type="checkbox"] {
  width: 16px !important;
  height: 16px;
  min-width: 16px;
  padding: 0 !important;
  margin-top: 2px;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: var(--navy);
}
.cf7-privacy a { color: var(--navy); text-decoration: underline; }

/* Submit button */
.cf7-wrap input[type="submit"],
.cf7-wrap .wpcf7-submit {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  height: 52px;
  padding: 0 48px;
  background: var(--navy);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background .25s, transform .1s;
  width: 100%;
  margin-top: 8px;
  border-radius: 0;
}
.cf7-wrap input[type="submit"]:hover { background: var(--navy-deep); }
.cf7-wrap input[type="submit"]:active { transform: translateY(1px); }

/* Validation */
.cf7-wrap .wpcf7-not-valid-tip {
  font-size: 12px;
  color: #c0392b;
  margin-top: 5px;
  display: block;
}
.cf7-wrap .wpcf7-not-valid { border-color: #c0392b !important; box-shadow: 0 0 0 3px rgba(192,57,43,.1) !important; }

/* Response */
.cf7-wrap .wpcf7-response-output {
  margin: 20px 0 0;
  padding: 16px 20px;
  font-size: 13px;
  border-left: 3px solid;
}
.cf7-wrap .wpcf7-mail-sent-ok   { background: #eafaf1; border-color: #27ae60; color: #1e8449; }
.cf7-wrap .wpcf7-mail-sent-ng,
.cf7-wrap .wpcf7-aborted        { background: #fdedec; border-color: #c0392b; color: #c0392b; }
.cf7-wrap .wpcf7-spam-blocked,
.cf7-wrap .wpcf7-validation-errors { background: #fef9e7; border-color: #f39c12; color: #9a7d0a; }

/* Spinner */
.cf7-wrap .wpcf7-spinner { margin-left: 12px; }

/* ─── WordPress core alignments ──────────────────────────── */
.alignleft  { float: left;  margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 12px; color: var(--ink-muted); margin-top: 6px; }

/* ─── Pagination ─────────────────────────────────────────── */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 64px; }
.pagination a, .pagination span {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border: 1px solid var(--line);
  font-weight: 500; font-size: 13px; color: var(--ink-muted);
  transition: all .2s;
}
.pagination a:hover { border-color: var(--navy); color: var(--navy); }
.pagination .current { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ─── Misc utils ─────────────────────────────────────────── */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ─── Filterbar links (archive pages use <a> not <button>) ── */
.filterbar a {
  font-family: var(--font-sans); font-weight: 500; font-size: 11px;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-muted); background: none;
  border: 1px solid var(--line); padding: 10px 20px;
  text-decoration: none; transition: all .2s;
}
.filterbar a:hover { color: var(--navy); border-color: var(--navy-40); }
.filterbar a.active { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ─── Color filterbar ────────────────────────────────────── */
.filterbar--colori { margin-top: -24px; margin-bottom: 40px; }
.filterbar__color { display: flex; align-items: center; gap: 7px; }
.filterbar__dot {
  display: inline-block; width: 10px; height: 10px;
  border-radius: 50%; border: 1px solid rgba(0,0,0,.15);
  background: var(--dot-color, #ccc);
}
/* Per-color dot backgrounds */
.filterbar__color--bianco  .filterbar__dot { --dot-color: #f8f8f8; }
.filterbar__color--nero    .filterbar__dot { --dot-color: #111; }
.filterbar__color--grigio  .filterbar__dot { --dot-color: #888; }
.filterbar__color--beige   .filterbar__dot { --dot-color: #d4c5a9; }
.filterbar__color--rosa    .filterbar__dot { --dot-color: #e8a0a0; }
.filterbar__color--rosso   .filterbar__dot { --dot-color: #b03030; }
.filterbar__color--verde   .filterbar__dot { --dot-color: #4a7a4a; }
.filterbar__color--blu     .filterbar__dot { --dot-color: #3060a0; }
.filterbar__color--azzurro .filterbar__dot { --dot-color: #5090c0; }
.filterbar__color--giallo  .filterbar__dot { --dot-color: #d4a020; }
.filterbar__color--arancio .filterbar__dot { --dot-color: #d06020; }
.filterbar__color--marrone .filterbar__dot { --dot-color: #7a4a20; }
.filterbar__color--viola   .filterbar__dot { --dot-color: #7a40a0; }
.filterbar__color--oro     .filterbar__dot { --dot-color: #c8a030; }

/* ─── Gallery trigger cursor ─────────────────────────────── */
.gallery-trigger { display: block; cursor: zoom-in; overflow: hidden; }
.gallery-trigger img { transition: transform .35s ease; }
.gallery-trigger:hover img { transform: scale(1.04); }

/* ─── Lightbox ───────────────────────────────────────────── */
.cm-lightbox {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.92); align-items: center; justify-content: center;
}
.cm-lightbox.is-open { display: flex; }
.cm-lightbox__wrap {
  position: relative; max-width: 90vw; max-height: 90vh;
  display: flex; flex-direction: column; align-items: center;
}
.cm-lightbox__img {
  max-width: 90vw; max-height: 85vh;
  object-fit: contain; display: block;
  box-shadow: 0 8px 48px rgba(0,0,0,.6);
}
.cm-lightbox__counter {
  color: rgba(255,255,255,.6); font-size: 13px;
  font-family: var(--font-sans); margin-top: 14px;
}
.cm-lightbox__close,
.cm-lightbox__prev,
.cm-lightbox__next {
  position: absolute; background: rgba(255,255,255,.12);
  border: none; color: #fff; cursor: pointer;
  transition: background .2s;
}
.cm-lightbox__close:hover,
.cm-lightbox__prev:hover,
.cm-lightbox__next:hover { background: rgba(255,255,255,.25); }
.cm-lightbox__close {
  top: 16px; right: 16px; width: 44px; height: 44px;
  border-radius: 50%; font-size: 24px; line-height: 1;
}
.cm-lightbox__prev,
.cm-lightbox__next {
  top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; font-size: 22px; border-radius: 4px;
}
.cm-lightbox__prev { left: 16px; }
.cm-lightbox__next { right: 16px; }
@media (max-width: 600px) {
  .cm-lightbox__prev { left: 6px; }
  .cm-lightbox__next { right: 6px; }
}

/* ─── Nav menu divider ───────────────────────────────────── */
.nav__menu-divider {
  height: 1px; background: var(--line);
  margin: 6px 0;
}

/* Superfici highlight in nav */
.nav__menu-link--highlight { color: var(--navy); font-weight: 500; }
.nav__menu-link--highlight:hover { background: var(--navy); color: #fff; }

/* ─── Mat-filters (archive materiali) ───────────────────── */
.mat-filters { margin-bottom: 56px; display: flex; flex-direction: column; gap: 20px; }

.mat-filters__row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.mat-filters__label {
  font-weight: 500; font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-muted);
  white-space: nowrap; min-width: 72px;
}

/* Category pills */
.mat-filters__pills { display: flex; flex-wrap: wrap; gap: 8px; }
.mat-pill {
  font-family: var(--font-sans); font-weight: 500; font-size: 11px;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-muted); background: none;
  border: 1px solid var(--line); padding: 9px 18px;
  text-decoration: none; transition: all .2s;
  display: inline-flex; align-items: center; gap: 7px;
}
.mat-pill:hover { color: var(--navy); border-color: var(--navy-40); }
.mat-pill--active { background: var(--navy); border-color: var(--navy); color: #fff; }
.mat-pill--active .mat-pill__count { opacity: .7; }
.mat-pill__count {
  font-size: 10px; opacity: .5;
  font-weight: 400; letter-spacing: 0;
}

/* Color swatches */
.mat-filters__swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.mat-swatch {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 500; font-size: 11px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-muted);
  text-decoration: none; transition: color .2s;
  padding: 4px 0;
}
.mat-swatch:hover { color: var(--navy); }
.mat-swatch--active .mat-swatch__name { color: var(--navy); }
.mat-swatch--active .mat-swatch__dot { box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--navy); }

.mat-swatch__dot {
  display: inline-block; width: 16px; height: 16px;
  border-radius: 50%; border: 1px solid rgba(0,0,0,.12);
  background: #ccc; flex: none;
  transition: box-shadow .2s;
}
.mat-swatch__dot--all {
  background: conic-gradient(#b03030 0 20%, #d4c5a9 20% 40%, #888 40% 60%, #111 60% 80%, #f8f8f8 80%);
}

/* Per-color dot backgrounds */
.mat-swatch--bianco  .mat-swatch__dot { background: #f0eeeb; }
.mat-swatch--nero    .mat-swatch__dot { background: #1a1a1a; }
.mat-swatch--grigio  .mat-swatch__dot { background: #999; }
.mat-swatch--beige   .mat-swatch__dot { background: #d4c5a9; }
.mat-swatch--rosa    .mat-swatch__dot { background: #e8a0a0; }
.mat-swatch--rosso   .mat-swatch__dot { background: #b03030; }
.mat-swatch--verde   .mat-swatch__dot { background: #4a7a4a; }
.mat-swatch--blu     .mat-swatch__dot { background: #3060a0; }
.mat-swatch--azzurro .mat-swatch__dot { background: #5090c0; }
.mat-swatch--giallo  .mat-swatch__dot { background: #d4a020; }
.mat-swatch--arancio .mat-swatch__dot { background: #d06020; }
.mat-swatch--marrone .mat-swatch__dot { background: #7a4a20; }
.mat-swatch--viola   .mat-swatch__dot { background: #7a40a0; }
.mat-swatch--oro     .mat-swatch__dot { background: #c8a030; }

/* Active filter tags */
.mat-filters__active {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding-top: 4px;
}
.mat-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 500; font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--navy); background: var(--surface-blue);
  border: 1px solid var(--navy-20); padding: 7px 12px;
}
.mat-tag--color { gap: 6px; }
.mat-tag__remove {
  font-size: 14px; line-height: 1; color: var(--navy);
  text-decoration: none; margin-left: 2px; opacity: .6;
  transition: opacity .15s;
}
.mat-tag__remove:hover { opacity: 1; }
.mat-filters__reset {
  font-weight: 500; font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-muted); text-decoration: underline;
  text-underline-offset: 3px; margin-left: 4px;
  transition: color .2s;
}
.mat-filters__reset:hover { color: var(--navy); }

@media (max-width: 700px) {
  .mat-filters__row { flex-direction: column; align-items: flex-start; }
  .mat-filters__label { min-width: unset; }
}

/* ─── Language switcher dropdown ─────────────────────────── */
.nav__lang {
  position: relative;
}
.nav__lang-trigger {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-sans); font-weight: 500; font-size: 11px;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink); background: none; border: 1px solid var(--line);
  padding: 8px 13px; cursor: pointer; transition: all .2s;
  white-space: nowrap;
}
.nav__lang-trigger:hover { border-color: var(--navy-40); color: var(--navy); }
.nav__lang-trigger img { width: 18px; height: 13px; object-fit: cover; border: 0; vertical-align: middle; }
.nav__lang-trigger svg { width: 12px; height: 12px; transition: transform .2s; }
.nav__lang.is-open .nav__lang-trigger svg { transform: rotate(180deg); }

.nav__lang-dropdown {
  display: none; position: absolute; top: calc(100% + 6px); right: 0;
  background: #fff; border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  min-width: 140px; z-index: 200;
}
.nav__lang.is-open .nav__lang-dropdown { display: block; }

.nav__lang-opt {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px; text-decoration: none;
  font-weight: 500; font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-muted); transition: background .15s, color .15s;
}
.nav__lang-opt:hover { background: var(--surface-blue); color: var(--navy); }
.nav__lang-opt--active { color: var(--navy); background: var(--surface-blue); }
.nav__lang-opt img { width: 20px; height: 14px; object-fit: cover; border: 1px solid var(--line); flex: none; }

/* ── Page templates: Ricerca e Innovazione / Made in Italy ── */
.page-lead {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 300;
  color: var(--navy);
  line-height: 1.5;
  letter-spacing: -.01em;
}

.two-col-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.two-col-content--asymm {
  grid-template-columns: 2fr 3fr;
  align-items: start;
}
@media (max-width: 768px) {
  .two-col-content,
  .two-col-content--asymm { grid-template-columns: 1fr; gap: 40px; }
}

.two-col-content__heading {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gold);
}

.two-col-content__col p {
  color: var(--cm-gray, #555);
  line-height: 1.85;
  font-size: 15px;
}

.page-blockquote {
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 300;
  line-height: 1.4;
  color: var(--navy);
  border-left: 4px solid var(--gold);
  padding-left: 28px;
  margin: 0;
  font-style: italic;
}

/* GSAP gestisce le animazioni — nessun CSS necessario qui */

/* ════════════════════════════════════════════════════════════
   MOBILE OPTIMISATIONS — ≤ 900px & ≤ 600px
   ════════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
  .section { padding: 72px 0; }
  .section__head { margin-bottom: 44px; }
  .cta-band { padding: 72px 0; }
  .cta-band h2 { font-size: 32px; }
  .pagehero { min-height: 320px; }
  .pagehero__content { padding: 40px 0; }
  .h2 { font-size: 36px; }
  .h2.center { font-size: 28px; }
}

@media (max-width: 600px) {
  /* Wrap */
  .wrap { padding: 0 20px; }

  /* Header */
  .header__bar { height: 68px; }
  .header__logo { height: 40px; }
  .nav__drawer { top: 68px; }

  /* Hero */
  .hero { height: 420px; }
  .hero__titles { height: 130px; }
  .hero__title { font-size: 26px; }
  .hero__arrow { width: 38px; height: 38px; }
  .hero__arrow svg { width: 16px; height: 16px; }
  .hero__dots { bottom: 18px; }

  /* Page hero */
  .pagehero { min-height: 240px; }
  .pagehero__title { font-size: 32px; }
  .pagehero__content { padding: 28px 0; gap: 10px; }

  /* Sections */
  .section { padding: 52px 0; }
  .section__head { gap: 16px; margin-bottom: 32px; }

  /* Typography */
  .h2 { font-size: 28px; }
  .h2.center { font-size: 22px; }
  .page-lead { font-size: 20px; }
  .page-blockquote { font-size: 20px; padding-left: 18px; }

  /* Detail */
  .detail { padding: 48px 0 64px; }
  .detail__title { font-size: 34px; margin-bottom: 32px; }
  .detail__img img { height: 300px; }
  .scheda h3 { font-size: 22px; }
  .scheda__field { padding: 12px 16px; }

  /* Cards */
  .matcard__img { height: 260px; }
  .workcard__img { height: 220px; }
  .listing { gap: 16px; }

  /* Stat strip */
  .statstrip { grid-template-columns: 1fr 1fr; gap: 24px; }
  .statstrip .stat .num { font-size: 52px; }

  /* CTA band */
  .cta-band { padding: 52px 0; }
  .cta-band h2 { font-size: 26px; }
  .cta-band p { font-size: 14px; }

  /* Footer */
  .footer { padding: 52px 0 0; }
  .footer__top { flex-direction: column; gap: 32px; }
  .footer__brand { flex: none; }
  .footer__contact-bar { flex-direction: column; gap: 14px; align-items: flex-start; }
  .footer__social-bar { align-self: flex-start; }
  .footer__bottom { flex-direction: column; gap: 10px; text-align: center; }
  .footer__legal { justify-content: center; flex-wrap: wrap; }

  /* Storia */
  .storia__media img { height: 280px; }
  .storia__stat { width: 150px; padding: 16px 12px 20px; }
  .storia__stat .num { font-size: 56px; }

  /* Contatti */
  .contatti-map { height: 280px; }
  .quote__head h1 { font-size: 36px; }

  /* Filtri materiali — scroll orizzontale */
  .mat-filters__pills {
    flex-wrap: nowrap; overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px; scrollbar-width: none;
  }
  .mat-filters__pills::-webkit-scrollbar { display: none; }
  .mat-filters__swatches {
    flex-wrap: nowrap; overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px; scrollbar-width: none;
  }
  .mat-filters__swatches::-webkit-scrollbar { display: none; }
  .mat-pill { flex-shrink: 0; }
  .mat-swatch { flex-shrink: 0; }

  /* Two-col */
  .two-col-content,
  .two-col-content--asymm { gap: 28px; }

  /* Gallery */
  .proj-shot { height: 220px; }
  .proj-shot.wide { height: 260px; }

  /* Sedi */
  .sede { padding: 22px; }
}

/* ─── Superfici & Finiture page ─────────────────────────── */
.superfici__intro { font-weight: 300; font-size: 15px; line-height: 1.8; color: var(--ink-muted); }
.superfici__intro p { max-width: 700px; }
.superfici-section { padding-top: 72px; }
.finitura {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
  align-items: center; margin-bottom: 96px;
}
.finitura--odd { direction: rtl; }
.finitura--odd > * { direction: ltr; }
.finitura__img img {
  width: 100%; height: 480px; object-fit: cover;
}
.finitura__copy { display: flex; flex-direction: column; gap: 20px; }
.finitura__title {
  font-family: var(--font-serif); font-weight: 300;
  font-size: 42px; line-height: 1.2; color: var(--ink); margin: 0;
}
.finitura__desc {
  font-weight: 300; font-size: 15px; line-height: 1.8; color: var(--ink-muted); margin: 0;
}
@media (max-width: 900px) {
  .finitura { grid-template-columns: 1fr; gap: 32px; direction: ltr; }
  .finitura--odd { direction: ltr; }
  .finitura__img img { height: 300px; }
  .finitura__title { font-size: 30px; }
}
