@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Tenor+Sans&display=swap');

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

/* =====================
   PROTEZIONE CONTENUTI
   Blocca selezione testo su tutto il sito
   tranne form, link e bottoni interattivi
   ===================== */
body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: auto;
  user-select: none;
}

/* Eccezioni: tutto ciò che deve restare interattivo e usabile */
input,
textarea,
select,
a,
button,
.btn-primary,
.btn-outline,
.btn-gold,
.filter-btn,
.nav-links a,
.nav-logo,
.footer-socials a,
.home-page-card,
.preview-card,
.form-radio-label {
  -webkit-user-select: auto;
  -moz-user-select: auto;
  -ms-user-select: auto;
  user-select: auto;
}

/* Blocca il drag delle immagini (impedisce salvataggio rapido) */
img {
  -webkit-user-drag: none;
  pointer-events: none;
}

/* Ripristina pointer-events sui link che contengono immagini */
a img, button img {
  pointer-events: auto;
}

:root {
  --nero: #0a0a0a;
  --oro: #b8960c;
  --oro-chiaro: #d4af37;
  --oro-tenue: #f5edd6;
  --bianco: #fafaf8;
  --grigio-caldo: #e8e4dc;
  --grigio-testo: #5a5550;
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Tenor Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bianco);
  color: var(--nero);
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* =====================
   TRANSIZIONI DI PAGINA
   Fade-in all'arrivo (no-JS safe via animation),
   fade-out alla navigazione (classe aggiunta da transitions.js)
   ===================== */
body {
  animation: pageFadeIn 0.32s ease both;
}
@keyframes pageFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
body.is-leaving {
  opacity: 0;
  transition: opacity 0.18s ease;
}
/* Card progetti: ingresso a cascata quando si filtra */
@keyframes fadeUpCard {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  body { animation: none; }
  body.is-leaving { transition: none; }
}

/* =====================
   SELEZIONE TESTO DORATA
   ===================== */
::selection { background: rgba(184, 150, 12, 0.25); color: var(--nero); }
::-moz-selection { background: rgba(184, 150, 12, 0.25); color: var(--nero); }

/* =====================
   HINT "INGRANDISCI" SULLE IMMAGINI LAVORI (affordance lightbox)
   ===================== */
.proj-img { cursor: zoom-in; }
.proj-img::after {
  content: '\2922  Ingrandisci';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.4rem 1rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--bianco);
  background: linear-gradient(to top, rgba(10,10,10,0.55), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 15;
}
.proj-card:hover .proj-img::after { opacity: 1; }

/* =====================
   LIGHTBOX
   ===================== */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: none;
  align-items: center; justify-content: center;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.lightbox.open { display: flex; opacity: 1; }
.lightbox .lb-img {
  max-width: 90vw; max-height: 86vh;
  object-fit: contain;
  /* Passe-partout sottile crema-oro + ombra morbida */
  border: 4px solid #f4ecd6;
  box-shadow: 0 24px 70px rgba(0,0,0,0.55);
  cursor: zoom-in;
  transition: transform 0.3s ease;
  pointer-events: auto;
  -webkit-user-drag: none;
}
.lightbox .lb-img.zoomed {
  transform: scale(2.3);
  cursor: zoom-out;
}
.lb-close, .lb-prev, .lb-next {
  position: absolute;
  background: rgba(250,250,248,0.08);
  color: var(--bianco);
  border: 0.5px solid rgba(250,250,248,0.25);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.25s ease, border-color 0.25s ease;
  font-family: var(--font-display); font-weight: 300;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover {
  background: var(--oro); border-color: var(--oro);
}
.lb-close { top: 1.4rem; right: 1.4rem; width: 44px; height: 44px; font-size: 1.6rem; line-height: 1; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); width: 50px; height: 50px; font-size: 1.8rem; }
.lb-prev { left: 1.4rem; }
.lb-next { right: 1.4rem; }
.lb-count {
  position: absolute; bottom: 1.4rem; left: 50%; transform: translateX(-50%);
  color: rgba(250,250,248,0.8); font-size: 0.72rem; letter-spacing: 0.15em;
}
@media (max-width: 600px) {
  .lb-prev, .lb-next { width: 40px; height: 40px; font-size: 1.4rem; }
  .lb-close { width: 40px; height: 40px; }
}

/* =====================
   SCROLL REVEAL
   La classe .reveal è aggiunta da ui.js solo se il JS è attivo:
   senza JS o con motion ridotto i contenuti restano visibili.
   ===================== */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.6, 0.2, 1),
              transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.reveal.in-view {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* =====================
   ZOOM MORBIDO IMMAGINE IN HOVER (card lavori)
   La cornice resta fissa (overflow:hidden), respira solo la foto.
   ===================== */
.proj-img img,
.carousel-slide,
.preview-img img {
  transition: transform 0.6s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.proj-card:hover .proj-img img,
.proj-card:hover .carousel-slide,
.preview-card:hover .preview-img img {
  transform: scale(1.06);
}

/* =====================
   PULSANTE "TORNA SU"
   Iniettato da ui.js, appare dopo lo scroll.
   ===================== */
.to-top {
  position: fixed;
  right: 1.4rem; bottom: 1.4rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--nero);
  color: var(--bianco);
  border: 0.5px solid var(--oro);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  opacity: 0; transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease, background 0.3s ease;
  z-index: 95;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--oro); transform: translateY(-3px); }
.to-top svg { width: 18px; height: 18px; }

/* =====================
   SCROLLBAR SOTTILE DORATA (desktop)
   ===================== */
@media (min-width: 700px) {
  html {
    scrollbar-width: thin;
    scrollbar-color: rgba(184, 150, 12, 0.5) transparent;
  }
  ::-webkit-scrollbar { width: 9px; height: 9px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb {
    background: rgba(184, 150, 12, 0.45);
    border-radius: 6px;
  }
  ::-webkit-scrollbar-thumb:hover { background: rgba(184, 150, 12, 0.7); }
}

/* =====================
   NAV
   ===================== */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 4rem;
  background: rgba(250, 250, 248, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 0.5px solid rgba(184,150,12,0.3);
  box-shadow: 0 3px 16px rgba(10,10,10,0.07);
  transition: padding 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}
nav.scrolled {
  padding: 0.75rem 4rem;
  box-shadow: 0 4px 24px rgba(10,10,10,0.1);
  border-bottom-color: transparent;
}
/* Filo dorato sotto la navbar — sempre presente, più marcato allo scroll */
nav::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, rgba(184,150,12,0.7), transparent);
  opacity: 0.85;
  transition: opacity 0.5s ease;
}
nav.scrolled::after { opacity: 1; }

.nav-logo {
  position: relative;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 300;
  letter-spacing: 0.25em;
  color: var(--nero);
  text-decoration: none;
  transition: letter-spacing 0.4s ease, color 0.3s;
  animation: navLogoIn 0.8s ease both;
}
@keyframes navLogoIn {
  from { opacity: 0; letter-spacing: 0.5em; }
  to   { opacity: 1; letter-spacing: 0.25em; }
}
/* Pallino dorato decorativo accanto al logo */
.nav-logo::after {
  content: '';
  position: absolute; top: 0.35em; right: -0.55em;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--oro);
  opacity: 0; transform: scale(0);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.nav-logo:hover { color: var(--oro); letter-spacing: 0.35em; }
.nav-logo:hover::after { opacity: 1; transform: scale(1); }

.nav-links { display: flex; gap: 2.5rem; list-style: none; align-items: center; }
.nav-links li {
  animation: navLinkIn 0.6s ease both;
}
.nav-links li:nth-child(1) { animation-delay: 0.1s; }
.nav-links li:nth-child(2) { animation-delay: 0.2s; }
.nav-links li:nth-child(3) { animation-delay: 0.3s; }
@keyframes navLinkIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.nav-links a {
  display: inline-block;
  text-decoration: none;
  color: var(--grigio-testo);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: color 0.25s, letter-spacing 0.3s, transform 0.3s ease;
  position: relative;
  padding-bottom: 3px;
}
/* Underline dorato che cresce dal centro */
.nav-links a::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 1px; background: var(--oro);
  transform: scaleX(0); transform-origin: center;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-links a:not(.nav-cta):hover {
  color: var(--oro);
  letter-spacing: 0.18em;
  transform: translateY(-2px);
}
.nav-links a.active { color: var(--oro); letter-spacing: 0.18em; }
.nav-links a:not(.nav-cta):hover::after,
.nav-links a.active::after { transform: scaleX(1); }

/* CTA con riempimento dorato a tendina */
.nav-links .nav-cta {
  position: relative;
  overflow: hidden;
  z-index: 0;
  padding: 0.62rem 1.6rem;
  background: var(--nero);
  color: var(--bianco) !important;
  border: 0.5px solid var(--nero);
  border-radius: 2px;
  font-size: 0.7rem; letter-spacing: 0.18em;
  transition: color 0.4s, letter-spacing 0.3s, box-shadow 0.45s ease, border-color 0.45s, transform 0.3s ease !important;
}
.nav-links .nav-cta::after { display: none; }
.nav-links .nav-cta::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: var(--oro);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-links .nav-cta:hover {
  color: var(--bianco) !important;
  letter-spacing: 0.22em !important;
  border-color: var(--oro);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(184,150,12,0.28);
}
.nav-links .nav-cta:hover::before { transform: scaleX(1); transform-origin: left; }

/* =====================
   BOTTONI
   ===================== */
.btn-primary {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--nero);
  color: var(--bianco);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: background 0.3s, letter-spacing 0.3s;
  cursor: pointer; border: none;
}
.btn-primary:hover { background: var(--oro); letter-spacing: 0.25em; }

.btn-outline {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: transparent;
  color: var(--nero);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 0.5px solid var(--nero);
  transition: all 0.3s;
  cursor: pointer;
}
.btn-outline:hover { background: var(--nero); color: var(--bianco); }

.btn-gold {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--oro);
  color: var(--bianco);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: none;
  transition: background 0.3s, letter-spacing 0.3s;
  cursor: pointer;
}
.btn-gold:hover { background: var(--oro-chiaro); letter-spacing: 0.25em; }

/* =====================
   SEZIONI GENERALI
   ===================== */
section { padding: 7rem 6rem; }
.section-label {
  font-size: 0.68rem; letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--oro); margin-bottom: 1rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3vw, 3.5rem);
  font-weight: 300; line-height: 1.15;
  margin-bottom: 1.2rem;
}
.section-intro {
  color: var(--grigio-testo); max-width: 520px;
  font-size: 0.88rem; line-height: 1.9;
}
.divider {
  width: 40px; height: 0.5px;
  background: var(--oro);
  margin: 2rem 0;
}

/* =====================
   FOOTER (TUTTE LE PAGINE)
   ===================== */
footer {
  background: var(--nero); color: var(--bianco);
  padding: 3rem 6rem;
  display: flex; justify-content: space-between; align-items: center;
  border-top: 0.5px solid rgba(184,150,12,0.2);
  position: relative;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.3rem; font-weight: 300;
  letter-spacing: 0.3em; color: var(--bianco);
  text-decoration: none;
}
.footer-logo span { color: var(--oro); }
.footer-copy {
  font-size: 0.72rem; color: rgba(250,250,248,0.3);
  letter-spacing: 0.08em;
  position: absolute;
  left: 50%; transform: translateX(-50%);
  text-align: center;
}
.footer-socials { display: flex; gap: 1.5rem; }
.footer-socials a {
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(250,250,248,0.4); text-decoration: none;
  transition: color 0.2s;
}
.footer-socials a:hover { color: var(--oro); }

/* =====================
   HOME — HERO
   ===================== */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: 80px;
}
.hero-text {
  display: flex; flex-direction: column; justify-content: center;
  padding: 6rem 4rem 6rem 6rem;
}
.hero-eyebrow {
  font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--oro); margin-bottom: 1.5rem;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 5.5rem);
  font-weight: 300; line-height: 1.1;
  color: var(--nero); margin-bottom: 1.5rem;
}
.hero-title em { color: var(--oro); font-style: italic; }
.hero-subtitle {
  font-size: 0.88rem; color: var(--grigio-testo);
  letter-spacing: 0.05em; line-height: 1.9;
  max-width: 380px; margin-bottom: 3rem;
}
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-visual {
  background: var(--nero);
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.hero-logo-display {
  display: flex; flex-direction: column; align-items: center;
  gap: 1.2rem;
  animation: fadeUp 1.2s ease both;
}
.hero-logo-text {
  font-family: var(--font-display);
  font-size: clamp(5rem, 9vw, 9rem);
  font-weight: 300;
  letter-spacing: 0.4em;
  color: var(--bianco);
  line-height: 1;
  transition: letter-spacing 0.8s ease;
}
.hero-visual:hover .hero-logo-text { letter-spacing: 0.55em; }
.hero-logo-sub {
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--oro);
}

/* HOME — SEZIONE PAGINE NAVIGABILI */
.home-nav-section {
  background: var(--nero);
  padding: 6rem;
}
.home-nav-section .section-title { color: var(--bianco); }
.home-nav-section .section-label { color: var(--oro); }
.home-nav-section .divider { background: var(--oro); }
.home-pages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 4rem;
}
.home-page-card {
  background: rgba(255,255,255,0.03);
  border: 0.5px solid rgba(184,150,12,0.15);
  padding: 3rem 2.5rem;
  text-decoration: none;
  display: block;
  position: relative;
  overflow: hidden;
  transition: background 0.4s;
  cursor: pointer;
}
.home-page-card::before {
  content: '';
  position: absolute; bottom: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--oro);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s;
}
.home-page-card:hover { background: rgba(184,150,12,0.05); }
.home-page-card:hover::before { transform: scaleX(1); }
.home-page-card:hover .card-arrow { transform: translate(4px, -4px); }
.card-num {
  font-family: var(--font-display);
  font-size: 3.5rem; font-weight: 300;
  color: rgba(184,150,12,0.2);
  line-height: 1; margin-bottom: 2rem;
}
.card-title {
  font-family: var(--font-display);
  font-size: 1.6rem; font-weight: 300;
  color: var(--bianco); margin-bottom: 0.8rem;
}
.card-desc {
  font-size: 0.8rem; color: rgba(250,250,248,0.4);
  line-height: 1.85; margin-bottom: 2rem;
}
.card-arrow {
  font-size: 1.2rem; color: var(--oro);
  transition: transform 0.3s;
  display: inline-block;
}

/* HOME — ANTEPRIMA LAVORI */
.home-preview {
  background: var(--bianco);
  padding: 7rem 6rem;
}
.home-preview-grid {
  display: grid;
  grid-template-columns: 1.77fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
  margin-top: 3rem;
}
/* Box portrait per immagini verticali (es. Marlù) — fit esatto, niente barre */
.preview-img.preview-img--portrait { aspect-ratio: 3/4; }
.preview-card {
  text-decoration: none; color: inherit;
  transition: transform 0.35s ease, opacity 0.35s ease;
  display: block;
}
.preview-card:hover { transform: translateY(-4px); opacity: 0.92; }
.preview-card--wide {
  grid-column: 1 / -1;
}
.preview-img {
  background: var(--grigio-caldo);
  aspect-ratio: 4/3;
  overflow: hidden;
  margin-bottom: 1rem;
  position: relative;
}
.preview-card--wide .preview-img {
  aspect-ratio: 16/7;
}
.preview-cat {
  font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--oro); margin-bottom: 0.3rem;
}
.preview-name {
  font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 400; color: var(--nero);
}
.home-preview-footer {
  text-align: center; margin-top: 3.5rem;
}

/* HOME — FILOSOFIA MINI */
.home-filosofia {
  background: var(--oro-tenue);
  padding: 6rem;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 6rem;
  align-items: center;
}
.home-filosofia-quote {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.4;
  color: var(--nero);
}
.home-filosofia-quote em { color: var(--oro); font-style: normal; }
.home-filosofia-valori {
  display: flex; flex-direction: column; gap: 2rem;
}
.home-val {
  display: flex; gap: 1.5rem; align-items: flex-start;
  padding-bottom: 2rem;
  border-bottom: 0.5px solid rgba(90,85,80,0.15);
}
.home-val:last-child { border-bottom: none; padding-bottom: 0; }
.home-val-num {
  font-family: var(--font-display);
  font-size: 1.8rem; font-weight: 300;
  color: var(--oro); opacity: 0.4;
  min-width: 2rem;
}
.home-val-title {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 400;
  margin-bottom: 0.3rem;
}
.home-val-desc { font-size: 0.8rem; color: var(--grigio-testo); line-height: 1.8; }

/* HOME — ANIMAZIONI */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-text > * { animation: fadeUp 0.8s ease both; }
.hero-text > *:nth-child(1) { animation-delay: 0.1s; }
.hero-text > *:nth-child(2) { animation-delay: 0.25s; }
.hero-text > *:nth-child(3) { animation-delay: 0.4s; }
.hero-text > *:nth-child(4) { animation-delay: 0.55s; }
.hero-text > *:nth-child(5) { animation-delay: 0.7s; }

/* =====================
   PAGINA: CHI SIAMO
   ===================== */
.page-hero {
  min-height: 50vh;
  background: var(--nero);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 5rem 6rem 4rem;
  margin-top: 80px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 40%;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 40px,
    rgba(184,150,12,0.03) 40px,
    rgba(184,150,12,0.03) 80px
  );
}
.page-hero-eyebrow {
  font-size: 0.68rem; letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--oro); margin-bottom: 1rem;
}
.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 300; line-height: 1.05;
  color: var(--bianco);
}
.page-hero-title em { color: var(--oro); font-style: italic; }

/* storia */
.storia-section {
  display: grid; grid-template-columns: 1fr 1.4fr;
  gap: 6rem; align-items: start;
  padding: 7rem 6rem;
  background: var(--bianco);
}
.storia-sticky { position: sticky; top: 120px; }
.storia-anno {
  font-family: var(--font-display);
  font-size: 5rem; font-weight: 300;
  color: var(--oro); opacity: 0.2;
  line-height: 1;
}
.storia-text {
  font-size: 0.92rem; color: var(--grigio-testo);
  line-height: 2; margin-bottom: 1.5rem;
}
.storia-text strong {
  font-weight: 500; color: var(--nero);
  font-family: var(--font-display); font-size: 1rem;
}

/* team */
.team-section {
  background: var(--oro-tenue);
  padding: 7rem 6rem;
}
.team-intro-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: end;
  margin-bottom: 4rem;
}
.team-cards {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-top: 1rem;
}
.team-card {
  background: var(--bianco);
}
.team-card-photo {
  height: 280px;
  background: var(--grigio-caldo);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 0.5rem;
}
.team-card-photo svg { width: 40px; height: 40px; stroke: rgba(90,85,80,0.3); fill: none; }
.team-card-photo span { font-size: 0.68rem; color: rgba(90,85,80,0.4); }
.team-card-info {
  padding: 1.5rem;
  border-top: 2px solid var(--oro);
}
.team-card-name {
  font-family: var(--font-display);
  font-size: 1.3rem; font-weight: 400; margin-bottom: 0.2rem;
}
.team-card-role {
  font-size: 0.68rem; text-transform: uppercase;
  letter-spacing: 0.18em; color: var(--oro);
  margin-bottom: 0.8rem;
}
.team-card-bio { font-size: 0.8rem; color: var(--grigio-testo); line-height: 1.75; }

/* valori full */
.valori-section { background: var(--bianco); padding: 7rem 6rem; }
.valori-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 3rem; margin-top: 4rem;
}
.valore {
  padding-top: 2rem;
  border-top: 1px solid rgba(184,150,12,0.28);
}

/* =====================
   DECORO DORATO RIUTILIZZABILE
   Texture diagonale leggera in un angolo, motivo ricorrente del sito.
   Aggiungi la classe .gold-corner a una sezione chiara.
   ===================== */
.gold-corner { position: relative; overflow: hidden; }
.gold-corner > * { position: relative; z-index: 1; }
.gold-corner::after {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 34%; height: 100%;
  background: repeating-linear-gradient(
    -45deg,
    transparent, transparent 42px,
    rgba(184,150,12,0.04) 42px, rgba(184,150,12,0.04) 84px
  );
  pointer-events: none; z-index: 0;
}
.valore-num {
  font-family: var(--font-display);
  font-size: 2.5rem; font-weight: 300;
  color: var(--oro); opacity: 0.5;
  margin-bottom: 1rem;
}
.valore-titolo {
  font-family: var(--font-display);
  font-size: 1.3rem; font-weight: 400;
  margin-bottom: 0.7rem;
}
.valore-desc { font-size: 0.82rem; color: var(--grigio-testo); line-height: 1.85; }

/* processo */
.processo-section { background: var(--nero); color: var(--bianco); padding: 7rem 6rem; }
.processo-section .section-title { color: var(--bianco); }
.processo-section .section-intro { color: rgba(250,250,248,0.55); }
.steps {
  display: flex; margin-top: 4rem;
  border-top: 0.5px solid rgba(184,150,12,0.3);
}
.step {
  flex: 1; padding: 2.5rem 2rem 2.5rem 0;
  border-right: 0.5px solid rgba(184,150,12,0.15);
}
.step:last-child { border-right: none; padding-right: 0; }
.step-num {
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 300;
  color: var(--oro); opacity: 0.4; margin-bottom: 1rem;
}
.step-title {
  font-family: var(--font-display);
  font-size: 1.15rem; color: var(--bianco); margin-bottom: 0.6rem;
}
.step-desc { font-size: 0.78rem; color: rgba(250,250,248,0.45); line-height: 1.85; }

/* =====================
   PAGINA: PROGETTI
   ===================== */
.progetti-filter {
  background: var(--oro-tenue);
  padding: 3rem 6rem 1rem;
  display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center;
}
.filter-btn {
  position: relative;
  padding: 0.75rem 1.9rem;
  background: transparent;
  border: 0.5px solid rgba(90,85,80,0.3);
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--grigio-testo);
  cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s ease, box-shadow 0.3s ease, letter-spacing 0.3s;
}
/* Lineetta dorata che cresce dal centro — stesso motivo delle card categorie */
.filter-btn::after {
  content: '';
  position: absolute; left: 50%; bottom: 4px;
  width: 0; height: 1px; background: var(--oro);
  transform: translateX(-50%);
  transition: width 0.3s ease;
}
.filter-btn:hover {
  color: var(--oro);
  border-color: var(--oro);
  transform: translateY(-2px);
  letter-spacing: 0.16em;
}
.filter-btn:hover::after { width: 40%; }
.filter-btn.active {
  background: var(--oro); color: var(--bianco); border-color: var(--oro);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(184,150,12,0.28);
}
.filter-btn.active::after { width: 0; }
.cat-hint {
  text-align: center;
  font-family: var(--font-display); font-weight: 300;
  font-size: 1.25rem; color: var(--grigio-testo);
  padding: 4.5rem 1rem 3.5rem;
}
.progetti-grid-section {
  background: var(--oro-tenue);
  padding: 2rem 6rem 7rem;
}
.progetti-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.proj-card {
  position: relative; overflow: hidden;
  background: transparent;
  cursor: pointer;
  transition: transform 0.4s;
  display: flex;
  flex-direction: column;
}
.proj-card:hover { transform: scale(1.015); }
.proj-img {
  width: 100%;
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--grigio-caldo);
  flex-shrink: 0;
}
.proj-img-inner {
  display: flex; flex-direction: column; align-items: center; gap: 0.8rem;
}
.proj-img-inner svg { width: 40px; height: 40px; stroke: rgba(90,85,80,0.4); fill: none; }
.proj-img-inner span { font-size: 0.7rem; color: rgba(90,85,80,0.5); letter-spacing: 0.1em; }
.proj-info {
  padding: 1.2rem 1.5rem;
  background: var(--bianco);
  border-top: 0.5px solid var(--grigio-caldo);
}
.proj-cat {
  font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--oro); margin-bottom: 0.3rem;
}
.proj-name {
  font-family: var(--font-display);
  font-size: 1.15rem; font-weight: 400; color: var(--nero);
}
.proj-tag {
  display: inline-block; margin-top: 0.5rem;
  font-size: 0.68rem; color: var(--grigio-testo); letter-spacing: 0.08em;
}
.proj-desc-full {
  font-size: 0.78rem; color: var(--grigio-testo);
  line-height: 1.8; margin-top: 0.5rem;
}

/* categorie strip - Riquadro nero e oro 3x2 */
.categorie-strip { background: var(--nero); padding: 5rem 6rem; }
.categorie-strip .section-title { color: var(--bianco); }
.cat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; margin-top: 3rem;
  border: 1px solid rgba(184,150,12,0.2);
  background-color: rgba(184,150,12,0.2);
}
.cat-item {
  background: var(--nero);
  padding: 2.2rem 1.6rem 1.8rem;
  cursor: pointer; position: relative; overflow: hidden;
  min-height: 130px;
  transition: background 0.4s;
}
.cat-num {
  position: absolute; top: -0.6rem; right: 0.5rem;
  font-family: var(--font-display); font-weight: 300;
  font-size: 5rem; line-height: 1;
  color: rgba(184,150,12,0.12);
  transition: color 0.4s; pointer-events: none;
}
.cat-name {
  position: relative; display: inline-block;
  font-family: var(--font-display); font-weight: 300;
  font-size: 1.5rem; color: var(--bianco);
  margin-top: 2.4rem;
  transition: transform 0.4s, color 0.4s;
}
.cat-line {
  position: absolute; left: 1.6rem; bottom: 1.4rem;
  height: 1px; width: 0; background: var(--oro);
  transition: width 0.4s;
}
.cat-item:hover { background: rgba(184,150,12,0.07); }
.cat-item:hover .cat-num { color: rgba(212,175,55,0.32); }
.cat-item:hover .cat-name { transform: translateX(6px); color: var(--oro-chiaro); }
.cat-item:hover .cat-line { width: 34px; }

/* =====================
   PAGINA: CONTATTI
   ===================== */
.contatti-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 80px);
  margin-top: 80px;
}
.contact-left {
  background: var(--nero); color: var(--bianco);
  padding: 7rem 5rem;
  display: flex; flex-direction: column; justify-content: center;
}
.contact-left .section-title { color: var(--bianco); }
.contact-left .section-intro { color: rgba(250,250,248,0.5); margin-bottom: 3rem; }
.contact-info { margin-top: 2rem; }
.contact-info-item {
  padding: 1.2rem 0;
  border-bottom: 0.5px solid rgba(250,250,248,0.1);
}
.contact-label {
  font-size: 0.65rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--oro); margin-bottom: 0.3rem;
}
.contact-value { font-size: 0.88rem; color: rgba(250,250,248,0.8); }
.contact-right {
  padding: 7rem 5rem;
  background: var(--oro-tenue);
  display: flex; flex-direction: column; justify-content: flex-start;
}
.form-group { margin-bottom: 1.8rem; }
.form-label {
  display: block;
  font-size: 0.68rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--grigio-testo); margin-bottom: 0.6rem;
}
.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 0.8rem 0;
  background: transparent;
  border: none; border-bottom: 0.5px solid rgba(90,85,80,0.3);
  font-family: var(--font-body); font-size: 0.88rem;
  color: var(--nero); outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-bottom-color: var(--oro);
}
/* Stato errore di un singolo campo */
.form-input.field-error, .form-textarea.field-error, .form-select.field-error {
  border-bottom: 1.5px solid #c0392b;
}
.form-label.field-error { color: #c0392b; }
.field-msg {
  color: #c0392b;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  margin-top: 0.4rem;
}
.privacy-error { color: #c0392b !important; }
.form-textarea { resize: none; height: 120px; }
.form-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='%235a5550' stroke-width='1' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.5rem center; }

/* form tipo checkbox */
.form-radios { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 0.4rem; }
.form-radio-label {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; color: var(--grigio-testo);
  cursor: pointer;
}
.form-radio-label input { accent-color: var(--oro); }

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 900px) {
  section { padding: 4rem 2rem; }
  nav { padding: 1rem 2rem; flex-direction: column; gap: 1rem; position: relative; }
  .nav-links { gap: 1rem; flex-wrap: wrap; justify-content: center; }

  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 0; }
  .hero-text { padding: 4rem 2rem; text-align: center; align-items: center; }
  .hero-subtitle { margin: 0 auto 2rem; }
  .hero-buttons { justify-content: center; }
  .hero-visual { min-height: 350px; }

  .home-nav-section { padding: 4rem 2rem; }
  .home-pages-grid { grid-template-columns: 1fr; gap: 1px; }

  .home-preview { padding: 4rem 2rem; }
  .home-preview-grid { grid-template-columns: 1fr; gap: 16px; }
  .preview-card--wide .preview-img { aspect-ratio: 4/3; }

  .home-filosofia { grid-template-columns: 1fr; gap: 3rem; padding: 4rem 2rem; }

  .page-hero { padding: 4rem 2rem 3rem; }

  .storia-section { grid-template-columns: 1fr; gap: 2rem; padding: 4rem 2rem; }
  .storia-sticky { position: static; }

  .team-section { padding: 4rem 2rem; }
  .team-intro-grid { grid-template-columns: 1fr; gap: 2rem; }
  .team-cards { grid-template-columns: 1fr; }

  .valori-section { padding: 4rem 2rem; }
  .valori-grid { grid-template-columns: 1fr; gap: 2rem; }

  .processo-section { padding: 4rem 2rem; }
  .steps { flex-direction: column; border-top: none; }
  .step, .step[style] { padding: 2rem 0 !important; border-right: none !important; border-bottom: 0.5px solid rgba(184,150,12,0.15); }
  .step:last-child { border-bottom: none; }

  .categorie-strip { padding: 4rem 2rem; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); } /* 2 colonne per tablet */

  .progetti-filter { padding: 2rem 2rem 0; }
  .progetti-grid-section { padding: 2rem 2rem 4rem; }
  /* Mobile/tablet: annulla la composizione editoriale (span/order/fill via JS),
     griglia uniforme a 2 colonne → niente sovrapposizioni */
  .progetti-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px; }
  .progetti-grid .proj-card { grid-column: auto !important; order: 0 !important; }
  .progetti-grid .proj-img { aspect-ratio: 4 / 3 !important; flex: 0 0 auto !important; min-height: 0 !important; }

  .contatti-layout { grid-template-columns: 1fr; margin-top: 0; }
  .contact-left, .contact-right { padding: 4rem 2rem; }

  footer { flex-direction: column; padding: 3rem 2rem; gap: 1.5rem; text-align: center; }
  .footer-copy { position: static; transform: none; order: 3; margin-top: 0.5rem; }
  .footer-socials { justify-content: center; }
}

@media (max-width: 600px) {
  .cat-grid { grid-template-columns: 1fr; }
  .progetti-grid { grid-template-columns: 1fr !important; }
  .progetti-grid .proj-card { grid-column: auto !important; order: 0 !important; }
  .progetti-grid .proj-img { aspect-ratio: 4 / 3 !important; flex: 0 0 auto !important; min-height: 0 !important; }
}