/* ═══════════════════════════════════════════════════════════════
   SOTTOPONGO LAB — REDESIGN 2025
   Dark cinematic · Editorial modern · Fluid animations
   ═══════════════════════════════════════════════════════════════ */

/* ── RESET & BASE ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black:      #000000;
  --near-black: #080808;
  --dark:       #0e0e0e;
  --dark-mid:   #141414;
  --mid-dark:   #1c1c1c;
  --mid:        #2a2a2a;
  --border:     rgba(255,255,255,0.08);
  --border-light: rgba(0,0,0,0.1);
  --white:      #ffffff;
  --off-white:  #f4f0eb;
  --cream:      #faf8f4;
  --text-main:  #1a1a1a;
  --text-mid:   #555;
  --text-light: rgba(255,255,255,0.55);
  --gold:       #c9a96e;
  --gold-light: #e8d5a3;
  --accent:     #c9a96e;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Montserrat', 'Helvetica Neue', sans-serif;

  --nav-h: 72px;
  --container: 1200px;
  --section-pad: clamp(5rem, 10vw, 9rem);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--text-main);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* ── TYPOGRAPHY ───────────────────────────────────────────────── */
.section-label {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.section-label.light { color: var(--gold-light); }

.section-heading {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.12;
  color: var(--text-main);
  margin-bottom: 1.5rem;
}
.section-heading.light { color: var(--white); }

.section-intro {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-mid);
  max-width: 600px;
  margin-bottom: 3.5rem;
}
.section-intro.light { color: var(--text-light); }

.section-header { margin-bottom: 0; }

/* ── CONTAINER ────────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
}
.section {
  padding: var(--section-pad) 0;
  position: relative;
}
.section-dark {
  background: var(--near-black);
}

/* ── REVEAL ANIMATIONS ────────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(.16,1,.3,1),
              transform 0.75s cubic-bezier(.16,1,.3,1);
}
[data-reveal].revealed {
  opacity: 1;
  transform: none;
}

/* ── NAV ──────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background 0.4s, backdrop-filter 0.4s, box-shadow 0.4s;
}
.nav.scrolled {
  background: rgba(8,8,8,0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.nav-logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  /* mix-blend-mode: screen fonde il bianco dell'illustrazione con lo sfondo nero:
     il nero puro dell'immagine sparisce, il bianco/grigio rimane visibile.
     Nessun cerchio bianco, nessun padding, sfondo trasparente. */
  background: transparent;
  border-radius: 0;
  padding: 0;
  mix-blend-mode: screen;
  filter: brightness(1.15) contrast(1.05);
}
.nav-logo-text {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.02em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  transition: color 0.25s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.3s cubic-bezier(.16,1,.3,1);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  padding: 0.5rem 1.25rem !important;
  border: 1px solid rgba(201,169,110,0.5) !important;
  border-radius: 2px;
  color: var(--gold) !important;
  transition: background 0.25s, color 0.25s !important;
}
.nav-cta:hover { background: var(--accent) !important; color: var(--black) !important; }
.nav-cta::after { display: none !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── HERO ─────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  background: var(--black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: 0.35;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.hero-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 80% at 50% 50%, transparent 40%, rgba(0,0,0,0.7) 100%);
}
/* filmstrip rimossa */
.hero-filmstrip,
.hfs-perf,
.footer-filmstrip-top,
.footer-filmstrip-bottom {
  display: none !important;
}
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: calc(var(--nav-h) + 2rem) 2rem 4rem;
  max-width: 860px;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}
.eyebrow-line {
  display: block;
  width: 40px; height: 1px;
  background: var(--accent);
  opacity: 0.7;
}
.eyebrow-text {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.hero-logo-wrap { margin-bottom: 2rem; }
.hero-logo {
  width: clamp(160px, 28vw, 280px);
  height: auto;
  filter: drop-shadow(0 0 60px rgba(201,169,110,0.15));
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 700;
  line-height: 1.0;
  color: var(--white);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}
.hero-title-line { display: block; }
.hero-title-line.accent { color: var(--gold); }

.hero-subtitle {
  font-size: clamp(0.85rem, 1.8vw, 1.05rem);
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
  margin-bottom: 2.5rem;
  letter-spacing: 0.02em;
}
.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}
.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2rem;
  background: var(--accent);
  color: var(--black);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background 0.25s, transform 0.25s;
}
.btn-hero svg { width: 16px; height: 16px; transition: transform 0.25s; }
.btn-hero:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn-hero:hover svg { transform: translateX(3px); }
.btn-hero-ghost {
  display: inline-flex;
  align-items: center;
  padding: 0.9rem 2rem;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.75);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: border-color 0.25s, color 0.25s, transform 0.25s;
}
.btn-hero-ghost:hover {
  border-color: var(--accent);
  color: var(--gold);
  transform: translateY(-2px);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
  transition: opacity 0.4s;
}
.hero-scroll-hint span {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.3); }
}

/* ── CHI SIAMO ────────────────────────────────────────────────── */
#chi-siamo { background: var(--cream); }

/*
  Grid 3 righe × 2 colonne:
  Riga 0 (cs-header / cs-empty-top):  etichetta + titolo
  Riga 1 (cs-paras  / cs-filmcard):   paragrafi  | film card  ← allineamento preciso
  Riga 2 (cs-pillars/ cs-empty-bottom): pilastri
*/
.cs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto auto;
  column-gap: 5rem;
  row-gap: 0;
  align-items: start;
}

/* Posizionamento celle */
.cs-header       { grid-column: 1; grid-row: 1; padding-bottom: 2rem; }
.cs-empty-top    { grid-column: 2; grid-row: 1; }
.cs-paras        { grid-column: 1; grid-row: 2; }
.cs-filmcard     { grid-column: 2; grid-row: 2; align-self: stretch; display: flex; }
.cs-pillars      { grid-column: 1; grid-row: 3; padding-top: 2.5rem; }
.cs-empty-bottom { grid-column: 2; grid-row: 3; }

/* Paragrafi */
.cs-paras p {
  font-size: 0.95rem;
  line-height: 1.85;
  color: #444;
  text-align: justify;
  hyphens: auto;
}
.cs-paras p strong { color: var(--text-main); font-weight: 600; }
.text-rule {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: 1.2rem 0;
}

/* Pillars */
.cs-pillars {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 2rem;
  align-items: flex-start;
}
.pillar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}
.pillar-icon {
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
  border-radius: 6px;
  padding: 8px;
}
.pillar-icon svg { width: 100%; height: 100%; color: var(--gold); }
.pillar-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mid);
}

/* Film card wrapper – occupa tutta l'altezza della riga 1 */
.cs-filmcard {
  align-self: stretch;
}

.film-card-new {
  display: flex;
  flex: 1;
  border-radius: 3px;
  overflow: hidden;
  background: #050505;
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow:
    0 0 0 1px rgba(201,169,110,0.08),
    0 32px 80px rgba(0,0,0,0.5),
    0 8px 24px rgba(0,0,0,0.3);
  min-height: 260px;
}

.fcn-perf {
  width: 24px;
  background: #000;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  padding: 10px 0;
  flex-shrink: 0;
}
.fcn-perf.left { border-right: 1px solid rgba(255,255,255,0.06); }
.fcn-perf.right { border-left: 1px solid rgba(255,255,255,0.06); }
.perf {
  width: 12px; height: 9px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 1px;
  flex-shrink: 0;
}

.fcn-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.2rem;
  gap: 0;
  position: relative;
}
.fcn-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  margin-bottom: 0.8rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.fcn-logo-text {
  font-family: var(--font-sans);
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
}

.fcn-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
}
.fcn-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.6rem;
  opacity: 0;
  padding: 0 0.5rem;
}
.fcn-title {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.5vw, 1.65rem);
  font-style: italic;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  display: block;
}
.fcn-sub {
  font-family: var(--font-serif);
  font-size: clamp(0.72rem, 1.4vw, 0.9rem);
  font-style: italic;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
  display: block;
  opacity: 0;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.fcn-footer {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.fcn-bar { flex: 1; height: 1px; background: rgba(201,169,110,0.25); }
.fcn-tagline {
  font-family: var(--font-serif);
  font-size: 0.6rem;
  font-style: italic;
  color: rgba(201,169,110,0.5);
  letter-spacing: 0.1em;
  white-space: nowrap;
}
/* Stessa tonalità oro di SOTTOPONGO LAB */
.fcn-tagline.gold {
  color: var(--gold);
  opacity: 0.85;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 0.48rem;
}

/* ── SERVIZI ──────────────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 3.5rem;
}
.svc-card {
  padding: 2.2rem 2rem;
  border-right: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: relative;
  transition: background 0.35s;
  cursor: default;
}
.svc-card:nth-child(3n) { border-right: none; }
.svc-card:nth-last-child(-n+3) { border-bottom: none; }
.svc-card:hover { background: rgba(255,255,255,0.03); }
.svc-card:hover .svc-line { width: 100%; }

.svc-number {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 1rem;
}
.svc-icon {
  width: 40px; height: 40px;
  margin-bottom: 1.2rem;
  opacity: 0.7;
}
.svc-icon svg { width: 100%; height: 100%; color: var(--white); }
.svc-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.8rem;
  line-height: 1.3;
}
.svc-text {
  font-size: 0.85rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.5);
}
.svc-line {
  position: absolute;
  bottom: 0; left: 0;
  height: 2px;
  width: 0;
  background: var(--accent);
  transition: width 0.5s cubic-bezier(.16,1,.3,1);
}

/* ── INTERLOCUTORI ────────────────────────────────────────────── */
#interlocutori { background: var(--off-white); }

.section-header { margin-bottom: 4rem; }

.interlocutori-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border-light);
  border-radius: 3px;
  overflow: hidden;
}
.interl-item {
  display: grid;
  grid-template-columns: 80px 1fr 48px;
  align-items: center;
  gap: 2rem;
  padding: 2rem 2.5rem;
  border-bottom: 1px solid var(--border-light);
  transition: background 0.3s, transform 0.3s;
  cursor: default;
  position: relative;
  overflow: hidden;
}
.interl-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0;
  background: var(--black);
  transition: width 0.4s cubic-bezier(.16,1,.3,1);
  z-index: 0;
}
.interl-item:last-child { border-bottom: none; }
.interl-item.hovered::before { width: 4px; }
.interl-item.hovered { background: rgba(0,0,0,0.03); }

.interl-num {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: rgba(0,0,0,0.08);
  line-height: 1;
  position: relative;
  z-index: 1;
}
.interl-item.hovered .interl-num { color: var(--accent); }
.interl-body { position: relative; z-index: 1; }
.interl-body h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}
.interl-body p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-mid);
}
.interl-arrow {
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.3s, transform 0.3s;
}
.interl-arrow svg { width: 20px; height: 20px; color: var(--accent); }
.interl-item.hovered .interl-arrow { opacity: 1; transform: none; }

/* ── PROCESSO ─────────────────────────────────────────────────── */
.processo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 3.5rem;
  position: relative;
}
.processo-grid::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(14% + 12px);
  right: calc(14% + 12px);
  height: 1px;
  background: rgba(255,255,255,0.1);
  z-index: 0;
}

.proc-step {
  padding: 0 1.5rem 0 0;
  position: relative;
  z-index: 1;
}
.proc-step.last { padding-right: 0; }
.proc-step-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.proc-num {
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--gold);
  flex-shrink: 0;
  background: var(--near-black);
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.proc-line {
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.1);
}
.proc-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.75rem;
  line-height: 1.3;
  transition: color 0.3s ease;
}
.proc-step:hover .proc-title {
  color: var(--gold);
}
.proc-step:hover .proc-num {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
  transition: background 0.3s, color 0.3s;
}
.proc-text {
  font-size: 0.84rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.45);
}

/* ── QUOTE ────────────────────────────────────────────────────── */
.quote-new {
  position: relative;
  z-index: 1;
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 2.6rem);
  font-weight: 400;
  font-style: normal;
  color: var(--white);
  text-align: center;
  line-height: 1.6;
  max-width: 1000px;
  width: 100%;
}
.quote-lines {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2em;
}
.quote-line {
  display: block;
  text-align: center;
  white-space: nowrap;
}
@media (max-width: 600px) {
  .quote-line { white-space: normal; }
}

/* ── CONTATTI ─────────────────────────────────────────────────── */
#contatti { background: var(--cream); }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 6rem;
  align-items: start;
}
.contact-intro {
  font-size: 0.93rem;
  line-height: 1.8;
  color: var(--text-mid);
  margin-bottom: 2.5rem;
  margin-top: -0.5rem;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.cdi-icon {
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
  border-radius: 6px;
  flex-shrink: 0;
  padding: 10px;
}
.cdi-icon svg { width: 100%; height: 100%; color: var(--gold); }
.cdi-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.2rem;
}
.cdi-value {
  font-size: 0.9rem;
  color: var(--text-main);
  font-weight: 500;
}
a.contact-detail-item:hover .cdi-value { color: var(--accent); }

.contact-social-row {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.social-btn {
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  transition: border-color 0.25s, background 0.25s;
}
.social-btn svg { width: 18px; height: 18px; color: var(--text-mid); transition: color 0.25s; }
.social-btn:hover { border-color: var(--black); background: var(--black); }
.social-btn:hover svg { color: var(--gold); }

/* Form */
.contact-form-new {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.cfn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.cfn-group {
  position: relative;
}
.cfn-group input,
.cfn-group textarea {
  width: 100%;
  padding: 1rem 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(0,0,0,0.15);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.3s;
  resize: none;
}
.cfn-group input:focus,
.cfn-group textarea:focus { border-color: var(--black); }
.cfn-group label {
  position: absolute;
  top: 1rem; left: 0;
  font-size: 0.85rem;
  color: rgba(0,0,0,0.4);
  pointer-events: none;
  transition: top 0.25s, font-size 0.25s, color 0.25s;
}
.cfn-group input:not(:placeholder-shown) ~ label,
.cfn-group input:focus ~ label,
.cfn-group textarea:not(:placeholder-shown) ~ label,
.cfn-group textarea:focus ~ label {
  top: -0.6rem;
  font-size: 0.65rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}
.cfn-select {
  width: 100%;
  padding: 1rem 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(0,0,0,0.15);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: rgba(0,0,0,0.4);
  outline: none;
  appearance: none;
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s;
}
.cfn-select:focus { border-color: var(--black); color: var(--text-main); }

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  background: var(--black);
  color: var(--white);
  border: none;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.25s, transform 0.25s;
  align-self: flex-start;
}
.btn-submit svg { width: 16px; height: 16px; transition: transform 0.25s; }
.btn-submit:hover { background: var(--accent); transform: translateY(-2px); }
.btn-submit:hover svg { transform: translateX(3px) translateY(-3px); }
.btn-submit:disabled { opacity: 0.6; transform: none; cursor: not-allowed; }

/* Filmstrip in cima al footer */
.footer-filmstrip-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 24px;
  background: #000;
  padding: 0 4px;
  gap: 2px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* ── FOOTER ───────────────────────────────────────────────────── */
.footer-new {
  background: var(--black);
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-top {
  max-width: var(--container);
  margin: 0 auto;
  padding: 3rem clamp(1.5rem, 5vw, 4rem) 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.footer-logo-img {
  width: 36px; height: 36px;
  object-fit: contain;
  mix-blend-mode: screen;
}
.footer-brand-name {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
}
.footer-nav {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-nav a {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  transition: color 0.25s;
}
.footer-nav a:hover { color: var(--gold); }

/* Filmstrip in fondo al footer */
.footer-filmstrip-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 24px;
  background: #000;
  padding: 0 4px;
  gap: 2px;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1.25rem clamp(1.5rem, 5vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom span {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.04em;
}
.footer-tagline {
  font-family: var(--font-serif) !important;
  font-style: italic;
  color: rgba(201,169,110,0.35) !important;
}
/* Stessa tinta oro viva della film card (≈ var(--gold) = #c9a96e) */
.footer-tagline.filmcard-gold {
  color: var(--gold) !important;
  opacity: 0.9;
  font-size: 0.82rem !important;
  letter-spacing: 0.06em;
}

/* ── RESPONSIVE ───────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-card:nth-child(3n) { border-right: 1px solid rgba(255,255,255,0.06); }
  .svc-card:nth-child(2n) { border-right: none; }
  .svc-card:nth-last-child(-n+2) { border-bottom: none; }
  .svc-card:nth-last-child(3) { border-bottom: 1px solid rgba(255,255,255,0.06); }

  .processo-grid { grid-template-columns: repeat(2, 1fr); gap: 3rem; }
  .processo-grid::before { display: none; }
  .proc-line { display: none; }
}

@media (max-width: 900px) {
  .cs-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    row-gap: 2rem;
  }
  .cs-header       { grid-column: 1; grid-row: 1; padding-bottom: 0; }
  .cs-empty-top    { display: none; }
  .cs-paras        { grid-column: 1; grid-row: 2; }
  .cs-filmcard     { grid-column: 1; grid-row: 3; min-height: 280px; }
  .cs-pillars      { grid-column: 1; grid-row: 4; padding-top: 2rem; }
  .cs-empty-bottom { display: none; }
  .film-card-new { min-height: 260px; }

  .contact-layout { grid-template-columns: 1fr; gap: 3rem; }

  .interl-item { grid-template-columns: 60px 1fr 32px; gap: 1rem; padding: 1.5rem 1.5rem; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(8,8,8,0.97);
    backdrop-filter: blur(18px);
    flex-direction: column;
    gap: 0;
    padding: 1rem 0 2rem;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s, opacity 0.35s;
  }
  .nav-links.open {
    transform: none;
    opacity: 1;
    pointer-events: all;
  }
  .nav-links li a {
    display: block;
    padding: 0.9rem 2rem;
    font-size: 0.9rem;
  }
  .nav-toggle { display: flex; }

  .services-grid { grid-template-columns: 1fr; }
  .svc-card { border-right: none !important; }
  .svc-card:last-child { border-bottom: none; }
  .svc-card:nth-last-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,0.06); }

  .processo-grid { grid-template-columns: 1fr; }

  .interl-item { grid-template-columns: 50px 1fr; }
  .interl-arrow { display: none; }

  .cfn-row { grid-template-columns: 1fr; }

  .footer-top { flex-direction: column; align-items: flex-start; }
  .footer-nav { gap: 1rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; align-items: center; }
  .cs-grid { gap: 2rem; }
  .cs-pillars { gap: 1rem; flex-wrap: wrap; }
  .quote-new { font-size: 1.5rem; }
}

/* ── NAVBAR su pagina team (sfondo bianco, testi scuri) ────────── */
.nav.scrolled .team-nav-logo {
  mix-blend-mode: multiply;
  filter: brightness(0.9) contrast(1.1);
}
.nav.scrolled .team-nav-text { color: var(--text-main); }
.nav-active {
  color: var(--gold) !important;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
}

/* ── PAGINA TEAM ────────────────────────────────────────────────── */

/* Hero team */
.team-hero {
  background: var(--near-black);
  padding: calc(var(--nav-h) + 5rem) 2rem 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.team-hero::before {
  content: 'TEAM';
  position: absolute;
  font-family: var(--font-serif);
  font-size: clamp(6rem, 18vw, 16rem);
  font-weight: 900;
  color: rgba(255,255,255,0.03);
  letter-spacing: -0.04em;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  white-space: nowrap;
}
.team-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}
.team-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 1.2rem;
}
.team-hero-sub {
  font-size: clamp(0.85rem, 1.6vw, 1rem);
  color: rgba(255,255,255,0.45);
  line-height: 1.75;
  letter-spacing: 0.02em;
}

/* Sezione card */
.team-section {
  background: var(--cream);
  padding: var(--section-pad) 0;
}

/* Grid 5 card: prima riga 3, seconda riga 2 centrate */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}
.team-card:nth-child(4) { grid-column: 1; }
.team-card:nth-child(5) { grid-column: 2; }

/* ── FLIP CARD ── */
.team-card {
  perspective: 1200px;
  cursor: pointer;
  min-height: 420px;
}

.team-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 420px;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(.16,1,.3,1);
  border-radius: 3px;
  box-shadow:
    0 2px 8px rgba(0,0,0,0.06),
    0 1px 0 rgba(0,0,0,0.04);
}

.team-card.is-flipped .team-card-inner {
  transform: rotateY(180deg);
}

/* FRONTE */
.team-card-front,
.team-card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 3px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.team-card-front {
  background: var(--white);
}

/* RETRO */
.team-card-back {
  background: var(--dark, #0e0e0e);
  transform: rotateY(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-card-back-body {
  padding: 2rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  height: 100%;
  justify-content: center;
}

.team-card-back .team-card-name {
  color: var(--accent, #c9a96e);
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
}

.team-card-back .team-card-role {
  color: rgba(255,255,255,0.5);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-family: var(--font-sans);
  font-weight: 600;
}

.team-card-bio {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.82);
  margin-top: 0.5rem;
  flex: 1;
}

.team-card-hint {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent, #c9a96e);
  opacity: 0.7;
  margin-top: auto;
  padding-top: 1rem;
}

/* Wrapper immagine */
.team-card-img-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #111;
}
.team-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: grayscale(100%) contrast(1.05) brightness(0.98);
  transition: transform 0.5s cubic-bezier(.16,1,.3,1);
}
.team-card:hover:not(.is-flipped) .team-card-img {
  transform: scale(1.04);
}

/* Overlay gold */
.team-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 50%,
    rgba(201,169,110,0.18) 100%
  );
  opacity: 0;
  transition: opacity 0.4s;
}
.team-card:hover:not(.is-flipped) .team-card-overlay { opacity: 1; }

/* Testo fronte */
.team-card-body {
  padding: 1.4rem 1.5rem 1.6rem;
  border-top: 2px solid var(--accent);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
}
.team-card-name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}
.team-card-role {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Responsive team */
@media (max-width: 900px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .team-card:nth-child(4) { grid-column: auto; }
  .team-card:nth-child(5) { grid-column: auto; }
}
@media (max-width: 560px) {
  .team-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .team-hero-title { font-size: 2.5rem; }
}
