/* ============================================
   BLOOMING AGENCY — style.css v3
   Direzione: Bloom — caldo, fiorito, vivo
   Font: Playfair Display + DM Mono + DM Sans
   Palette: Terra notte · Petalo · Corallo · Oro · Salvia · Rosa antico
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,900;1,700&family=DM+Mono:wght@300;400;500&family=DM+Sans:wght@300;400;500&display=swap');

/* ---- VARIABLES ---- */
:root {
  /* Backgrounds — non più nero puro, terra calda profonda */
  --ink:        #120e0a;
  --ink-2:      #1a1208;
  --ink-3:      #221808;

  /* Toni chiari */
  --cream:      #f5f0e8;
  --cream-2:    #ede8df;
  --white:      #fff8f2;

  /* Accenti fioritura */
  --coral:      #e8432d;
  --coral-soft: #f06048;
  --coral-pale: #ff9580;
  --sage:       #7a9c6e;
  --sage-light: #a8c49a;
  --gold:       #c9a96e;
  --gold-warm:  #e8c282;
  --petal:      #c4607a;   /* rosa petalo */
  --petal-soft: #e8909e;   /* petalo chiaro */
  --moss:       #4a6741;   /* verde muschio profondo */

  --display:  'Playfair Display', Georgia, serif;
  --mono:     'DM Mono', 'Courier New', monospace;
  --sans:     'DM Sans', system-ui, sans-serif;

  --nav-h:        64px;
  --max-w:        1440px;
  --pad-x:        clamp(1.25rem, 5vw, 5rem);
  --pad-section:  clamp(4rem, 8vw, 9rem);
  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--mono);
  color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  cursor: none;
  background:
    radial-gradient(ellipse 90% 60% at 15% 0%,   rgba(196,96,122,.22)  0%, transparent 45%),
    radial-gradient(ellipse 70% 50% at 90% 5%,    rgba(201,169,110,.18) 0%, transparent 40%),
    radial-gradient(ellipse 80% 70% at 95% 55%,   rgba(122,156,110,.15) 0%, transparent 45%),
    radial-gradient(ellipse 65% 55% at 5%  85%,   rgba(232,67,45,.14)   0%, transparent 45%),
    radial-gradient(ellipse 60% 50% at 55% 100%,  rgba(201,169,110,.12) 0%, transparent 42%),
    radial-gradient(ellipse 50% 40% at 50% 50%,   rgba(196,96,122,.06)  0%, transparent 55%),
    var(--ink);
  background-attachment: fixed;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
address { font-style: normal; }

/* ---- SEZIONI ---- */
.s-dark  { background: rgba(18,14,10,.72);  color: var(--white); }
.s-dark2 { background: rgba(26,18,8,.78);   color: var(--white); }
.s-cream { background: var(--cream);         color: var(--ink); }
.s-coral { background: var(--coral);         color: var(--white); }

/* ---- HERO — testi bianchi ---- */
.hero-eyebrow  { color: var(--coral); }
.hero-h1       { color: var(--white); }
.hero-h1 em    { color: var(--white); }
.hero-desc     { color: rgba(255,255,255,.68); }
.hero-foot     { border-top: 1px solid rgba(255,255,255,.1); }
.hero-locs     { color: rgba(255,255,255,.45); }
.hero-locs b   { background: var(--coral); }
.hero-scroll-hint { color: rgba(255,255,255,.28); }
.hero-scroll-hint::after { background: rgba(255,255,255,.2); }

/* Labels e headings */
.s-label       { color: var(--coral); }
.s-label::before { background: var(--coral); }
.d-head        { color: var(--white); }
.d-head em     { color: var(--white); }

/* Cursor dark */
/* ---- CUSTOM CURSOR ---- */
.cursor-dot {
  position: fixed; top: 0; left: 0;
  width: 8px; height: 8px;
  background: var(--white);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%,-50%);
  transition: width .3s var(--ease-out), height .3s var(--ease-out), background .25s, border-color .25s;
}
.cursor-ring {
  position: fixed; top: 0; left: 0;
  width: 38px; height: 38px;
  border: 1.5px solid rgba(255,255,255,.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%,-50%);
  transition: width .35s var(--ease-out), height .35s var(--ease-out), border-color .25s, background .25s;
}
/* Hover su link/button */
body.cursor-hover .cursor-dot  { width: 12px; height: 12px; }
body.cursor-hover .cursor-ring { width: 54px; height: 54px; border-color: var(--coral); }

/* Su sfondo chiaro — cursore scuro */
body.on-cream .cursor-dot  { background: var(--ink); }
body.on-cream .cursor-ring { border-color: rgba(18,14,10,.45); }
body.on-cream.cursor-hover .cursor-ring { border-color: var(--coral); }

/* Nasconde cursore di sistema su desktop dove è attivo il custom */
@media (pointer: fine) {
  body, body a, body button { cursor: none; }
}
body.cursor-hover .cursor-ring { border-color: var(--coral); }

/* Nav dark */
.nav.scrolled  { background: rgba(18,14,10,.9); backdrop-filter: blur(20px) saturate(1.4); }
.nav-logo      { color: var(--white); }
.nav-logo:hover { color: var(--coral); }
.nav-links a   { color: rgba(255,255,255,.6); }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--white); }
.nav-toggle span { background: var(--white); }
.nav-mobile    { background: var(--ink); }
.nav-mobile a  { color: var(--white); }
.nav-mobile-locs { color: rgba(255,255,255,.25); }

/* Service cards */
.svc-grid      { background: rgba(255,255,255,.05); }
.svc-card      { background: var(--ink); }
.svc-card:hover { background: var(--ink-2); }
.svc-grid .svc-card:last-child { background: var(--ink); }
.svc-grid::after { background: var(--ink); }
.svc-title     { color: var(--cream); }
.svc-desc      { color: rgba(255,255,255,.45); }
.svc-more      { color: rgba(255,255,255,.2); }
.svc-card:hover .svc-more { color: var(--coral); }
.svc-header    { border-bottom: 1px solid rgba(255,255,255,.07); }
.svc-header-desc { color: rgba(255,255,255,.5); }

/* Sectors */
.sectors       { border-top: 1px solid rgba(255,255,255,.05); }
.sector-row    { border-bottom: 1px solid rgba(255,255,255,.07); }
.sector-name   { color: var(--white); }
.sector-tag    { color: rgba(255,255,255,.18); }

/* Clients — sezione chiara */
.clients-text p { color: rgba(8,8,7,.65); }
.logo-grid     { background: rgba(8,8,7,.1); }
.logo-cell     { background: var(--cream); }
.logo-cell:hover { background: var(--cream-2); }

/* Service rows page servizi */
.svc-row       { border-bottom: 1px solid rgba(255,255,255,.07); }
.svc-row:first-child { border-top: 1px solid rgba(255,255,255,.07); }
.svc-row h2    { color: var(--cream); }
.svc-row p     { color: rgba(255,255,255,.52); }
.tag           { border: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.38); }
.tag:hover     { border-color: var(--coral); color: var(--coral); }

/* Values */
.values-grid   { background: rgba(255,255,255,.06); }
.value-card    { background: var(--ink); }
.value-card:hover { background: var(--ink-2); }
.value-card h3 { color: var(--cream); }
.value-card p  { color: rgba(255,255,255,.48); }

/* Locations */
.locations-grid { background: rgba(255,255,255,.06); }
.loc-card      { background: var(--ink); }
.loc-card:hover { background: var(--ink-2); }
.loc-card address { color: rgba(255,255,255,.4); }

/* Contacts */
.contacts-grid  { background: rgba(255,255,255,.06); }
.c-card        { background: var(--ink); }
.c-card:hover  { background: var(--ink-2); }
.c-card a, .c-card address, .c-card p { color: rgba(255,255,255,.42); }

/* Form */
.f-field       { border-bottom: 1px solid rgba(255,255,255,.07); }
.f-field:focus-within { border-color: var(--coral); }
.f-field label { color: rgba(255,255,255,.3); }
.f-field:focus-within label { color: var(--coral); }
.f-field input, .f-field textarea, .f-field select { color: var(--white); }
.f-field input::placeholder, .f-field textarea::placeholder { color: rgba(255,255,255,.18); }
.f-note        { color: rgba(255,255,255,.22); }
.form-left h2  { color: var(--cream); }
.form-left p   { color: rgba(255,255,255,.42); }
.form-contacts a { color: var(--coral); }

/* Manifesto */
.manifesto-pull { color: var(--cream); }
.manifesto-pull em { color: var(--gold); }
.manifesto-cols { color: rgba(255,255,255,.55); }

/* CTA */
.cta-bg-text   { color: rgba(255,255,255,.03); }
.cta-strip h2  { color: var(--white); }

/* Buttons */
.btn-outline   { border: 1px solid rgba(255,255,255,.25); color: var(--white); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,.04); }
.btn-ink       { background: var(--ink); color: var(--white); }

/* Misc */
.page-intro-desc { color: rgba(255,255,255,.5); }
.services-home  { border-top: 1px solid rgba(255,255,255,.06); }
.sectors       { border-top: 1px solid rgba(255,255,255,.05); }
.rai           { background: var(--ink-2); }
.rai-desc      { color: rgba(255,255,255,.45); }
.video-wrap    { background: var(--ink-3); }
.video-wrap::after { border: 1px solid rgba(255,255,255,.07); }
.instagram-section { border-top: 1px solid rgba(255,255,255,.06); }
.ig-follow     { color: var(--white); }
.page-intro    { border-bottom: 1px solid rgba(255,255,255,.06); }
.manifesto     { border-top: 1px solid rgba(255,255,255,.06); }
.locations     { border-top: 1px solid rgba(255,255,255,.06); }

/* Legal */
.legal-section  { border-bottom: 1px solid rgba(255,255,255,.06); }
.legal-section h2 { color: var(--cream); }
.legal-section h3 { color: rgba(255,255,255,.5); }
.legal-section p { color: rgba(255,255,255,.58); }
.legal-section strong { color: rgba(255,255,255,.8); }
.legal-update   { color: var(--coral); }
.legal-update::before { background: var(--coral); }
.cookie-row    { background: var(--ink); color: rgba(255,255,255,.55); }
.cookie-row--header { background: var(--ink-3); color: rgba(255,255,255,.35); }
.cookie-row strong { color: rgba(255,255,255,.8); }


  position: fixed; top: 0; left: 0;
  width: 8px; height: 8px;
  background: var(--ink);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%,-50%);
  transition: width .3s var(--ease-out), height .3s var(--ease-out), background .3s;
  mix-blend-mode: multiply;
}
.cursor-ring {
  position: fixed; top: 0; left: 0;
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%,-50%);
  transition: width .35s var(--ease-out), height .35s var(--ease-out), border-color .3s;
}
body.cursor-hover .cursor-dot  { width: 12px; height: 12px; }
body.cursor-hover .cursor-ring { width: 56px; height: 56px; border-color: var(--coral); }

/* ---- GRAIN ---- */
body::after {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: .025;
  pointer-events: none;
  z-index: 9000;
}

/* ---- LAYOUT ---- */
.container        { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad-x); }
.container-narrow { max-width: 920px; }
/* sezioni — definite nel blocco RESET sopra, qui solo s-coral di riserva */
.s-coral { background: var(--coral); color: var(--white); }

/* ---- NAV ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--pad-x);
  z-index: 1000;
  transition: background .5s var(--ease-out), backdrop-filter .5s;
}
.nav.scrolled {
  background: rgba(18,14,10,.92);
  backdrop-filter: blur(20px) saturate(1.4);
}
.nav-logo {
  display: flex; align-items: center;
  color: var(--white); transition: opacity .25s;
  z-index: 1001; position: relative;
}
.nav-logo:hover { opacity: .82; }
.nav-logo-img {
  display: block; width: clamp(122px, 10vw, 145px); height: auto;
  max-height: 50px; object-fit: contain; object-position: left center;
  filter: drop-shadow(0 1px 1px rgba(18,14,10,.25));
}
.nav-links { display: flex; gap: 2.75rem; align-items: center; }
.nav-links a {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .18em;
  text-transform: uppercase; color: rgba(255,255,255,.62);
  transition: color .25s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 1px; background: var(--coral);
  transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--ease-out);
}
.nav-links a:hover, .nav-links a[aria-current] { color: var(--white); }
.nav-links a:hover::after, .nav-links a[aria-current]::after { transform: scaleX(1); transform-origin: left; }
.nav-cta {
  background: var(--coral); color: var(--white) !important;
  padding: .6rem 1.5rem; font-size: .68rem !important;
  transition: background .25s, transform .25s;
}
.nav-cta:hover { background: var(--coral-soft); transform: translateY(-1px); }
.nav-cta::after { display: none !important; }

/* Nav scuro — pagine con hero chiaro (servizi, chi siamo) */
.nav-dark:not(.scrolled) .nav-logo         { color: var(--ink); }
.nav-dark:not(.scrolled) .nav-logo:hover   { color: var(--coral); }
.nav-dark:not(.scrolled) .nav-links a      { color: rgba(18,14,10,.55); }
.nav-dark:not(.scrolled) .nav-links a:hover,
.nav-dark:not(.scrolled) .nav-links a[aria-current] { color: var(--ink); }

/* Mobile toggle */
.nav-toggle {
  display: none; flex-direction: column; gap: 6px;
  background: none; border: none; padding: 4px;
  cursor: pointer; z-index: 1001; position: relative;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: white;
  transition: transform .4s var(--ease-out), opacity .3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* Mobile overlay */
.nav-mobile {
  display: none; position: fixed; inset: 0;
  background: var(--ink); z-index: 999;
  flex-direction: column; justify-content: center;
  align-items: flex-start; padding: var(--pad-x);
  gap: 1.25rem;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-family: var(--display); font-size: clamp(1.6rem, 6vw, 2.4rem);
  font-weight: 700; color: var(--cream);
  opacity: 0; transform: translateY(16px);
  transition: color .3s, opacity .4s var(--ease-out), transform .4s var(--ease-out);
  text-decoration: none;
}
.nav-mobile.open a { opacity: 1; transform: translateY(0); }
.nav-mobile.open a:nth-child(1) { transition-delay: .06s; }
.nav-mobile.open a:nth-child(2) { transition-delay: .12s; }
.nav-mobile.open a:nth-child(3) { transition-delay: .18s; }
.nav-mobile a:hover { color: var(--coral); }
.nav-mobile-spacer { height: 80px; flex-shrink: 0; }
.nav-mobile-quote {
  font-family: var(--display); font-size: clamp(.85rem, 3vw, 1.05rem);
  font-style: italic; color: rgba(255,255,255,.35);
  border-left: 2px solid var(--coral); padding-left: 1rem;
  margin-top: 2rem; line-height: 1.6; max-width: 320px;
}
.nav-mobile-quote cite {
  display: block; font-family: var(--mono); font-size: .6rem;
  font-style: normal; letter-spacing: .15em; text-transform: uppercase;
  color: rgba(255,255,255,.2); margin-top: .5rem;
}
.nav-mobile-locs {
  font-family: var(--mono); font-size: .65rem; letter-spacing: .18em;
  text-transform: uppercase; color: rgba(255,255,255,.28);
  margin-top: .75rem;
}

/* ---- HERO ---- */
.hero {
  position: relative; height: 100svh; min-height: 640px;
  display: grid; grid-template-rows: 1fr auto; overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-video { width: 100%; height: 100%; object-fit: cover; filter: brightness(.5); }
.hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 100% 70% at 50% 100%, rgba(8,8,7,.95) 0%, transparent 65%),
    radial-gradient(ellipse 50% 100% at 0% 50%, rgba(8,8,7,.55) 0%, transparent 60%);
}
.hero-body {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 var(--pad-x) clamp(3rem, 5vw, 4.5rem);
}
.hero-eyebrow {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .28em;
  text-transform: uppercase; color: var(--coral);
  display: flex; align-items: center; gap: .75rem;
  margin-bottom: 1.5rem;
  opacity: 0; animation: fadeUp .8s .2s var(--ease-out) forwards;
}
.hero-eyebrow::before { content: ''; display: block; width: 24px; height: 1px; background: var(--coral); }
.hero-h1 {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(5rem, 14vw, 14rem);
  line-height: .86; letter-spacing: -.04em;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  opacity: 0; animation: fadeUp .9s .35s var(--ease-out) forwards;
}
.hero-h1 em { font-style: italic; font-weight: 700; }
.hero-desc {
  font-family: var(--mono); font-size: clamp(.78rem, 1.2vw, .92rem);
  line-height: 1.9; color: rgba(255,255,255,.65); max-width: 500px;
  opacity: 0; animation: fadeUp .9s .55s var(--ease-out) forwards;
}
.hero-foot {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem var(--pad-x);
  border-top: 1px solid rgba(255,255,255,.1);
  flex-wrap: wrap; gap: .75rem;
  opacity: 0; animation: fadeUp .8s .75s var(--ease-out) forwards;
}
.hero-locs {
  font-family: var(--mono); font-size: .65rem; letter-spacing: .22em;
  text-transform: uppercase; color: rgba(255,255,255,.4);
  display: flex; align-items: center; gap: 1rem;
}
.hero-locs b { width: 4px; height: 4px; border-radius: 50%; background: var(--coral); display: inline-block; }
.hero-scroll-hint {
  font-family: var(--mono); font-size: .62rem; letter-spacing: .18em;
  text-transform: uppercase; color: rgba(255,255,255,.25);
  display: flex; align-items: center; gap: .75rem;
}
.hero-scroll-hint::after {
  content: ''; display: block; width: 1px; height: 28px;
  background: rgba(255,255,255,.2); animation: pulse 2s ease infinite;
}
@keyframes pulse { 0%,100% { transform: scaleY(1); opacity: .3; } 50% { opacity: .9; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }

/* ---- MARQUEE ---- */
.marquee { overflow: hidden; background: var(--coral); padding: .85rem 0; }
.marquee--no-stats { margin-top: 0; }
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 28s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-inner {
  display: flex;
  flex-shrink: 0;
}
.marquee-item {
  font-family: var(--display); font-style: italic; font-weight: 700;
  font-size: .95rem; white-space: nowrap;
  padding: 0 2.5rem; color: var(--white);
  display: flex; align-items: center; gap: 2.5rem;
}
.marquee-item::after { content: '✦'; font-style: normal; font-size: .6rem; opacity: .5; }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---- SECTION LABEL ---- */
.s-label {
  font-family: var(--mono); font-size: .62rem; letter-spacing: .28em;
  text-transform: uppercase; color: var(--coral);
  display: flex; align-items: center; gap: .75rem; margin-bottom: 2rem;
}
.s-label::before { content: ''; display: block; width: 20px; height: 1px; background: currentColor; }
.s-label.dark { color: rgba(8,8,7,.45); }

/* ---- DISPLAY HEADING ---- */
.d-head {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(2.8rem, 7vw, 7.5rem);
  line-height: .88; letter-spacing: -.03em;
}
.d-head em { font-style: italic; font-weight: 700; }

/* ---- SERVICES HOME ---- */
.services-home { padding: clamp(2rem, 4vw, 4rem) 0 var(--pad-section); }
.svc-header {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3rem; align-items: end;
  padding-bottom: clamp(2.5rem, 4vw, 3.5rem);
  border-bottom: 1px solid rgba(255,255,255,.07);
  margin-bottom: clamp(2.5rem, 4vw, 3.5rem);
}
.svc-header-desc {
  font-family: var(--mono); font-size: clamp(.78rem, 1.15vw, .9rem);
  line-height: 1.95; color: rgba(255,255,255,.5); align-self: end;
}
.svc-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--ink-3);
}
.svc-card {
  background: var(--ink); padding: 2.5rem 2rem 3rem;
  display: flex; flex-direction: column; gap: 1.25rem;
  position: relative; overflow: hidden; transition: background .3s var(--ease-out);
}
.svc-grid .svc-card:last-child {
  grid-column: span 1;
  background: var(--ink);
}
/* Cella vuota riempita con lo stesso sfondo delle card */
.svc-grid::after {
  content: '';
  background: var(--ink);
  display: block;
}
.svc-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px; background: var(--coral);
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease-out);
}
.svc-card:hover { background: var(--ink-2); }
.svc-card:hover::after { transform: scaleX(1); }
.svc-num { font-family: var(--mono); font-size: .62rem; letter-spacing: .2em; color: var(--coral); }
.svc-title {
  font-family: var(--display); font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  font-weight: 700; line-height: 1.2; color: var(--cream);
}
.svc-desc {
  font-family: var(--mono); font-size: clamp(.74rem, 1.05vw, .84rem);
  line-height: 1.9; color: rgba(255,255,255,.45); flex: 1;
}
.svc-more {
  font-family: var(--mono); font-size: .65rem; letter-spacing: .1em;
  color: rgba(255,255,255,.2); transition: color .25s, transform .25s;
  align-self: flex-start;
}
.svc-card:hover .svc-more { color: var(--coral); transform: translateX(5px); }

/* ---- SECTORS ---- */
/* ---- COLLAGE PROGETTI (homepage) ---- */
.progetti-collage { border-top: 1px solid rgba(18,14,10,.06); background: white; padding: 8px; }
.progetti-collage__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: white;
}
.collage-item {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--ink);
  text-decoration: none;
  display: block;
}
.collage-item img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .6s cubic-bezier(0.16,1,0.3,1);
}
.collage-item__placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 900;
  font-size: clamp(2rem, 5vw, 5rem); letter-spacing: -.03em;
  color: rgba(255,255,255,.07);
}
.collage-item__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(18,14,10,.72) 0%, rgba(18,14,10,.1) 55%, transparent 100%);
  display: flex; align-items: flex-end;
  padding: clamp(.85rem, 1.5vw, 1.25rem);
  opacity: 0;
  transition: opacity .35s;
}
.collage-item:hover .collage-item__overlay { opacity: 1; }
.collage-item:hover img { transform: scale(1.06); }
.collage-item__name {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(.85rem, 1.4vw, 1.1rem);
  line-height: 1; letter-spacing: -.02em;
  color: white;
}
@media (max-width: 600px) {
  .progetti-collage { padding: 6px; }
  .progetti-collage__grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
}

.sectors { padding: var(--pad-section) 0; border-top: 1px solid rgba(255,255,255,.05); }
.sectors-layout {
  display: grid; grid-template-columns: 4fr 6fr;
  gap: clamp(3rem, 6vw, 7rem); align-items: start;
}
.sector-list { display: flex; flex-direction: column; }
.sector-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem 0; border-bottom: 1px solid rgba(255,255,255,.07);
  transition: padding-left .3s var(--ease-out); position: relative;
}
.sector-row::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px; background: var(--coral);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform .3s var(--ease-out);
}
.sector-row:hover { padding-left: 1rem; }
.sector-row:hover::before { transform: scaleY(1); }
.sector-name {
  font-family: var(--mono); font-size: clamp(.85rem, 1.5vw, 1.05rem);
  transition: color .3s;
}
.sector-row:hover .sector-name { color: var(--cream); }
.sector-tag {
  font-family: var(--mono); font-size: .58rem; letter-spacing: .15em;
  text-transform: uppercase; color: rgba(255,255,255,.18); transition: color .3s;
}
.sector-row:hover .sector-tag { color: var(--coral); }

/* ---- CLIENTS ---- */

body.on-cream .cursor-ring { 
  border-color: rgba(18,14,10,.4);
  mix-blend-mode: normal;
}
.clients .d-head { color: var(--ink); }
.clients .d-head em { color: var(--ink); }
.clients .s-label { color: var(--coral); }
.clients .s-label::before { background: var(--coral); }

.clients { padding: var(--pad-section) 0; }
.progetti-home { padding: var(--pad-section) 0; }
.clients-layout {
  display: grid; grid-template-columns: 1fr 1.5fr;
  gap: clamp(3rem, 6vw, 8rem); align-items: start;
}
.clients-text p {
  font-family: var(--mono); font-size: clamp(.76rem, 1.1vw, .86rem);
  line-height: 1.95; color: rgba(8,8,7,.6); margin-top: 2rem;
}
.clients-text p + p { margin-top: 1.25rem; }
.logo-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--cream);
}
.logo-cell {
  background: var(--cream); aspect-ratio: 3/2;
  display: flex; align-items: center; justify-content: center;
  padding: .75rem 1rem; transition: background .25s;
}
.logo-cell:hover { background: var(--cream-2); }
.logo-cell img {
  max-width: 85%; max-height: 110px;
  width: auto; height: auto;
  object-fit: contain;
  filter: grayscale(100%) contrast(1.1);
  mix-blend-mode: multiply;
  transition: filter .3s, transform .3s var(--ease-out);
}
.logo-cell:hover img { filter: grayscale(0%) contrast(1); transform: scale(1.04); }
.logo-cell span {
  font-family: var(--sans); font-size: clamp(.62rem, .95vw, .78rem);
  font-weight: 500; letter-spacing: .07em; text-transform: uppercase;
  color: var(--ink); text-align: center; line-height: 1.4;
}
.logo-cell.bold span  { font-weight: 900; font-size: clamp(.9rem, 1.4vw, 1.1rem); letter-spacing: .02em; }
.logo-cell.serif span { font-family: var(--display); font-weight: 700; font-size: clamp(.8rem, 1.15vw, .95rem); letter-spacing: .14em; }
.logo-cell.coral span { color: var(--coral); font-weight: 700; font-size: .72rem; letter-spacing: .1em; }

/* ---- PROGETTO CARD (shared: home + progetti.html) ---- */
.progetti-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.75rem);
}
@media (max-width: 900px) { .progetti-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .progetti-grid { grid-template-columns: 1fr; } }

.progetto-card {
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  border: 1px solid rgba(18,14,10,.07);
  overflow: hidden; background: white;
  transition: transform .3s cubic-bezier(0.16,1,0.3,1), box-shadow .3s;
}
.progetto-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(18,14,10,.12);
}
.progetto-card__cover {
  aspect-ratio: 16/9; overflow: hidden;
  background: var(--ink); position: relative;
}
.progetto-card__cover img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .6s cubic-bezier(0.16,1,0.3,1);
}
.progetto-card:hover .progetto-card__cover img { transform: scale(1.05); }
.progetto-card__cover-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.progetto-card__cover-placeholder img {
  max-width: 50%; max-height: 60%;
  object-fit: contain; filter: invert(1); opacity: .25;
}
.progetto-card__cover-placeholder-text {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(2rem, 5vw, 4rem); letter-spacing: -.03em;
  color: rgba(255,255,255,.1);
}
.progetto-card__body {
  padding: clamp(1.25rem, 2vw, 1.75rem);
  display: flex; flex-direction: column; flex: 1;
}
.progetto-card__logo {
  height: 32px; max-width: 120px;
  object-fit: contain; filter: grayscale(1) contrast(1.1);
  margin-bottom: 1rem; display: block;
}
.progetto-card__tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .85rem; }
.progetto-card__tag {
  font-family: var(--mono); font-size: .55rem; letter-spacing: .13em;
  text-transform: uppercase; padding: .25rem .6rem;
  border: 1px solid rgba(232,67,45,.3); color: var(--coral);
  background: rgba(232,67,45,.04);
}
.progetto-card__title {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  line-height: 1; letter-spacing: -.02em;
  color: var(--ink); margin-bottom: .6rem;
}
.progetto-card__subtitle {
  font-family: var(--mono); font-size: clamp(.75rem, 1vw, .85rem);
  line-height: 1.7; color: rgba(18,14,10,.5); flex: 1;
}
.progetto-card__footer {
  display: flex; align-items: center; justify-content: flex-end;
  margin-top: 1.25rem; padding-top: 1rem;
  border-top: 1px solid rgba(18,14,10,.06);
}
.progetto-card__cta {
  font-family: var(--mono); font-size: .65rem; letter-spacing: .15em;
  text-transform: uppercase; color: var(--coral);
  transition: gap .25s; display: flex; align-items: center; gap: .4rem;
}
.progetto-card:hover .progetto-card__cta { gap: .7rem; }

.load-more-progetti {
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  margin-top: 3rem; cursor: pointer; user-select: none;
}
.load-more-arrow {
  font-size: 1.4rem; color: var(--coral);
  animation: bounce-down 1.4s ease-in-out infinite;
  display: block; line-height: 1;
}
.load-more-label {
  font-family: var(--mono); font-size: .65rem; letter-spacing: .2em;
  text-transform: uppercase; color: rgba(18,14,10,.38);
  transition: color .2s;
}
.load-more-progetti:hover .load-more-label { color: var(--coral); }
@keyframes bounce-down {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}
.progetti-empty {
  text-align: center; padding: 5rem 1rem;
  font-family: var(--mono); color: rgba(18,14,10,.4);
  grid-column: 1/-1;
}
.progetti-empty a { color: var(--coral); }

/* ---- RAI VIDEO ---- */
.rai { padding: var(--pad-section) 0; border-top: 1px solid rgba(255,255,255,.05); }
.rai-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 3rem; flex-wrap: wrap; gap: 2rem;
}
.rai-desc {
  font-family: var(--mono); font-size: clamp(.76rem, 1.1vw, .86rem);
  line-height: 1.85; color: rgba(255,255,255,.45); max-width: 400px; align-self: end;
}
.video-wrap {
  position: relative; width: 100%; aspect-ratio: 16/9;
  background: var(--ink-3); overflow: hidden;
}
.video-wrap video { width: 100%; height: 100%; object-fit: cover; }
.video-wrap::after {
  content: ''; position: absolute; inset: 0;
  border: 1px solid rgba(255,255,255,.07); pointer-events: none; z-index: 2;
}

/* ---- CUSTOM VIDEO POSTER PLAYER ---- */
.video-poster {
  position: relative; width: 100%; aspect-ratio: 16/9;
  cursor: none; overflow: hidden; display: block;
}
.video-poster img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease-out), filter .4s;
  filter: brightness(.88);
}
.video-poster:hover img { transform: scale(1.02); filter: brightness(.72); }
.play-btn {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(60px, 8vw, 88px);
  transition: transform .35s var(--ease-out);
  pointer-events: none;
}
.play-btn svg { width: 100%; height: 100%; filter: drop-shadow(0 4px 24px rgba(0,0,0,.55)); }
.video-poster:hover .play-btn { transform: translate(-50%, -50%) scale(1.12); }
@keyframes playPulse {
  0%   { transform: translate(-50%, -50%) scale(1);   opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.7); opacity: 0; }
}
.play-btn.ripple { animation: playPulse .45s var(--ease-out) forwards; }
.rai-video-hidden       { display: none; width: 100%; aspect-ratio: 16/9; }
.rai-video-hidden.active { display: block; }

/* ---- CTA STRIP ---- */
.cta-strip { padding: clamp(4rem, 7vw, 8rem) 0; position: relative; overflow: hidden; }
.cta-bg-text {
  position: absolute; right: -3%; top: 50%; transform: translateY(-50%);
  font-family: var(--display); font-size: clamp(8rem, 22vw, 24rem); font-weight: 900;
  color: rgba(255,255,255,.03); pointer-events: none; line-height: 1; white-space: nowrap;
}
.cta-strip .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 3rem; flex-wrap: wrap; position: relative; z-index: 1;
}
.cta-strip h2 {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: .9; letter-spacing: -.03em;
}
.cta-strip h2 em { font-style: italic; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; gap: .8rem;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .2em;
  text-transform: uppercase; padding: 1.1rem 2.4rem;
  transition: transform .3s var(--ease-out), background .25s, color .25s;
  white-space: nowrap; position: relative; cursor: none;
}
.btn:hover { transform: translateY(-2px); }
.btn-coral  { background: var(--coral); color: var(--white); }
.btn-coral:hover { background: var(--coral-soft); }
.btn-outline { border: 1px solid rgba(255,255,255,.25); color: var(--white); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,.04); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: var(--ink-2); }
.btn-arrow { display: inline-block; transition: transform .3s var(--ease-out); }
.btn:hover .btn-arrow { transform: translateX(5px); }

/* ---- PAGE INTRO ---- */
.page-intro {
  padding: calc(var(--nav-h) + clamp(4rem, 8vw, 8rem)) 0 var(--pad-section);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
#page-intro-servizi,
#page-intro-chisiamo {
  border-bottom: none;
  min-height: calc(100vh - 52px);
  display: flex;
  align-items: flex-start;
}
.page-intro-desc {
  font-family: var(--mono); font-size: clamp(.8rem, 1.25vw, .95rem);
  line-height: 1.9; color: rgba(255,255,255,.5);
  max-width: 560px; margin-top: 2.5rem;
}

/* ---- INNER PAGE HERO — testo sinistra ---- */
.page-intro,
.recruit-head { text-align: left; }
.page-intro .d-head,
.recruit-head .d-head { text-align: left; }
.page-intro .page-intro-desc,
.recruit-head .page-intro-desc { text-align: left; }

/* page-intro e manifesto su sfondo chiaro */
.s-light.page-intro { background: var(--cream) !important; }
.s-light.manifesto  { background: var(--cream) !important; }
.s-light .page-intro-desc { color: rgba(18,14,10,.55); }
.s-light .manifesto-pull  { color: var(--ink); border-left-color: var(--coral); }
.s-light .manifesto-pull em { color: var(--coral); }
.s-light .manifesto-cols  { color: rgba(18,14,10,.6); }

/* recruit-head sfondo scuro (invariato) */
.recruit-head { background: var(--ink) !important; }

/* ---- CHI SIAMO ---- */
.manifesto { padding: var(--pad-section) 0; border-top: 1px solid rgba(255,255,255,.06); background: var(--ink) !important; }
.manifesto-pull {
  font-family: var(--display); font-size: clamp(1.6rem, 3.5vw, 3rem);
  font-weight: 700; line-height: 1.25; letter-spacing: -.025em;
  color: var(--cream); border-left: 3px solid var(--coral);
  padding-left: 2rem; margin-bottom: 3.5rem;
}
.manifesto-pull em { font-style: italic; color: var(--gold); }
.manifesto-cols {
  font-family: var(--mono); font-size: clamp(.78rem, 1.2vw, .9rem);
  line-height: 2; color: rgba(255,255,255,.55);
  columns: 2; column-gap: 4rem;
}

.values { padding: var(--pad-section) 0; }
.values-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px; background: rgba(255,255,255,.06); margin-top: 4rem;
}
.value-card {
  background: var(--ink); padding: 3rem 2.5rem;
  position: relative; overflow: hidden; transition: background .3s;
}
.value-card:hover { background: var(--ink-2); }
.value-ghost {
  position: absolute; right: 1.5rem; top: 1rem;
  font-family: var(--display); font-size: 5rem; font-weight: 900;
  color: rgba(255,255,255,.03); line-height: 1; pointer-events: none;
}
.value-card h3 {
  font-family: var(--display); font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  font-weight: 700; color: var(--cream); margin-bottom: .9rem;
}
.value-card p {
  font-family: var(--mono); font-size: clamp(.76rem, 1.05vw, .85rem);
  line-height: 1.9; color: rgba(255,255,255,.48);
}

.locations { padding: var(--pad-section) 0; border-top: 1px solid rgba(255,255,255,.06); }
.locations-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: rgba(255,255,255,.06); margin-top: 4rem;
}
.loc-card {
  background: var(--ink); padding: 3rem 2.5rem; transition: background .3s;
}
.loc-card:hover { background: var(--ink-2); }
.loc-card--empty { background: transparent !important; pointer-events: none; }
.loc-city {
  font-family: var(--display); font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900; letter-spacing: -.03em; color: var(--cream);
  margin-bottom: 1.25rem; line-height: 1;
}
.loc-card address {
  font-family: var(--mono); font-size: .8rem; line-height: 1.85; color: rgba(255,255,255,.4);
}

/* ---- SERVIZI PAGE ---- */
.svc-full { padding: var(--pad-section) 0; }
.svc-row {
  display: grid; grid-template-columns: 64px 1fr;
  gap: 3rem; padding: 3.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,.07); align-items: start;
}
.svc-row:first-child { border-top: 1px solid rgba(255,255,255,.07); }
.svc-row-n { font-family: var(--display); font-size: 1rem; font-weight: 700; color: var(--coral); padding-top: .25rem; }
.svc-row h2 {
  font-family: var(--display); font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  font-weight: 700; color: var(--cream); line-height: 1.15; margin-bottom: 1.25rem;
}
.svc-row p {
  font-family: var(--mono); font-size: clamp(.76rem, 1.1vw, .86rem);
  line-height: 1.95; color: rgba(255,255,255,.52); max-width: 680px; margin-bottom: 1.75rem;
}
.tags { display: flex; flex-wrap: wrap; gap: .45rem; }
.tag {
  font-family: var(--mono); font-size: .6rem; letter-spacing: .12em;
  text-transform: uppercase; border: 1px solid rgba(255,255,255,.1);
  padding: .32rem .8rem; color: rgba(255,255,255,.38);
  transition: border-color .25s, color .25s;
}
.tag:hover { border-color: var(--coral); color: var(--coral); }

/* ---- CONTATTI PAGE ---- */
.contacts-head { padding: calc(var(--nav-h) + clamp(1rem, 2vw, 2rem)) 0 clamp(2rem,3vw,3rem); }

.main-dark { background: var(--ink); }
.contacts-head { background: var(--ink) !important; margin-bottom: 0; }
.contacts-info { padding: clamp(2rem,3vw,3rem) 0 clamp(2rem, 3vw, 2.5rem); background: var(--ink) !important; margin-top: 0; }
.contacts-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: rgba(255,255,255,.06); margin-top: 4rem;
}
.c-card {
  background: var(--ink); padding: 1.5rem 2rem; transition: background .3s;
}
.c-card:hover { background: var(--ink-2); }
.c-card h3 {
  font-family: var(--display); font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 700; color: var(--cream); margin-bottom: 1rem;
}
.c-card a, .c-card address, .c-card p {
  font-family: var(--mono); font-size: .8rem; line-height: 1.85;
  color: rgba(255,255,255,.42); transition: color .25s;
}
.c-card a:hover { color: var(--coral); }

/* ---- FORM ---- */
.form-section { padding: var(--pad-section) 0; background: var(--ink-2); }
.form-layout {
  display: grid; grid-template-columns: 1fr 1.5fr;
  gap: clamp(3rem, 6vw, 8rem); align-items: start;
}
.form-left h2 {
  font-family: var(--display); font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900; line-height: .92; letter-spacing: -.035em;
  color: var(--cream); margin-bottom: 1.5rem;
}
.form-left p {
  font-family: var(--mono); font-size: .84rem; line-height: 1.9;
  color: rgba(255,255,255,.42); margin-bottom: 2rem;
}
.form-contacts { display: flex; flex-direction: column; gap: .4rem; }
.form-contacts a {
  font-family: var(--mono); font-size: .8rem; color: var(--coral);
  transition: opacity .25s;
}
.form-contacts a:hover { opacity: .7; }

.c-form { display: flex; flex-direction: column; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; }
.f-field {
  display: flex; flex-direction: column;
  padding: 1.75rem 0; border-bottom: 1px solid rgba(255,255,255,.07);
  transition: border-color .3s;
}
.f-field:focus-within { border-color: var(--coral); }
.f-field label {
  font-family: var(--mono); font-size: .6rem; letter-spacing: .24em;
  text-transform: uppercase; color: rgba(255,255,255,.3);
  margin-bottom: .7rem; transition: color .3s;
}
.f-field:focus-within label { color: var(--coral); }
.f-field input,
.f-field textarea,
.f-field select {
  background: transparent; border: none; outline: none;
  color: var(--white); font-family: var(--mono); font-size: .9rem;
  line-height: 1.6; width: 100%; resize: none; -webkit-appearance: none;
}
.f-field input::placeholder,
.f-field textarea::placeholder { color: rgba(255,255,255,.18); }
.f-field select { color: rgba(255,255,255,.55); }
.f-field select option { background: var(--ink-2); color: var(--white); }
.f-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 2.5rem; flex-wrap: wrap; gap: 1.5rem;
}
.f-note {
  font-family: var(--mono); font-size: .62rem;
  letter-spacing: .1em; color: rgba(255,255,255,.22);
}
/* Messages */
.f-msg {
  margin-top: 1.5rem; padding: 1.25rem 1.5rem;
  font-family: var(--mono); font-size: .8rem; display: none;
}
.f-msg.success { background: rgba(138,158,126,.12); border-left: 3px solid var(--sage); color: var(--sage); }
.f-msg.error   { background: rgba(232,67,45,.1);  border-left: 3px solid var(--coral); color: var(--coral); }
.f-msg.show { display: block; }

/* ---- FOOTER ---- */
.footer { background: var(--coral); padding: clamp(3rem, 5vw, 5rem) 0 0; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem; padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.2); align-items: start;
}
.footer-brand {
  font-family: var(--display); font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900; letter-spacing: -.03em; line-height: .9;
  color: var(--white); margin-bottom: 1.25rem;
}
.footer-tagline {
  font-family: var(--mono); font-size: .72rem;
  letter-spacing: .1em; color: rgba(255,255,255,.55); line-height: 1.7;
}
.footer-col h4 {
  font-family: var(--mono); font-size: .6rem; letter-spacing: .24em;
  text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: 1.25rem;
}
.footer-col ul, .footer-col address {
  display: flex; flex-direction: column; gap: .5rem;
  font-family: var(--mono); font-size: .8rem; line-height: 1.75;
  color: rgba(255,255,255,.75);
}
.footer-col a:hover { color: var(--white); }
.footer-partners {
  grid-column: 3 / 5;
  align-self: end;
  padding-top: .75rem;
}
.footer-partners-list {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: nowrap; gap: 1.5rem;
}
.footer-partner {
  display: flex; align-items: center; justify-content: center;
  min-width: 0; height: 48px; opacity: .8;
  transition: opacity .25s, transform .25s;
}
.footer-partner:hover { opacity: 1; transform: translateY(-2px); }
.footer-partner img { display: block; width: auto; height: auto; max-width: 145px; max-height: 48px; object-fit: contain; }
.footer-bottom {
  padding: 1.25rem 0;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: .75rem;
  font-family: var(--mono); font-size: .62rem;
  letter-spacing: .1em; color: rgba(255,255,255,.35);
}
.footer-bottom a { transition: color .25s; }
.footer-bottom a:hover { color: rgba(255,255,255,.8); }

/* ---- ACCENT COLORS — note cromatiche fioritura ---- */

/* Numeretti servizi: corallo / oro / petalo */
.svc-card:nth-child(3n+2) .svc-num { color: var(--gold); }
.svc-card:nth-child(3n+2)::after   { background: var(--gold); }
.svc-card:nth-child(3n+3) .svc-num { color: var(--petal-soft); }
.svc-card:nth-child(3n+3)::after   { background: var(--petal-soft); }

/* Bordi settori */
.sector-row:nth-child(odd)::before  { background: var(--coral); }
.sector-row:nth-child(even)::before { background: var(--sage); }
.sector-row:nth-child(even):hover .sector-tag { color: var(--sage-light); }

/* Value cards */
.value-card:nth-child(1) { border-top: 2px solid var(--coral); }
.value-card:nth-child(2) { border-top: 2px solid var(--gold); }
.value-card:nth-child(3) { border-top: 2px solid var(--sage); }
.value-card:nth-child(4) { border-top: 2px solid var(--petal-soft); }

.value-card:nth-child(1) .value-ghost { color: rgba(232,67,45,.07); }
.value-card:nth-child(2) .value-ghost { color: rgba(201,169,110,.08); }
.value-card:nth-child(3) .value-ghost { color: rgba(122,156,110,.08); }
.value-card:nth-child(4) .value-ghost { color: rgba(196,96,122,.07); }

/* Service rows */
.svc-row:nth-child(even) .svc-row-n { color: var(--gold-warm); }
.svc-row:nth-child(3n)   .svc-row-n { color: var(--sage-light); }

/* Location city names */
.loc-card:nth-child(1) .loc-city { color: var(--cream); }
.loc-card:nth-child(2) .loc-city { color: var(--gold-warm); }
.loc-card:nth-child(3) .loc-city { color: var(--sage-light); }

/* Contact info headings */
.c-card:nth-child(1) h3 { color: var(--coral-soft); }
.c-card:nth-child(2) h3 { color: var(--gold-warm); }
.c-card:nth-child(3) h3 { color: var(--sage-light); }
.c-card:nth-child(4) h3 { color: var(--petal-soft); }

/* Tag hover */
.tag:nth-child(3n+1):hover { border-color: var(--coral-soft); color: var(--coral-soft); }
.tag:nth-child(3n+2):hover { border-color: var(--gold-warm);  color: var(--gold-warm); }
.tag:nth-child(3n+3):hover { border-color: var(--sage-light); color: var(--sage-light); }

/* Footer brand */
.footer-brand::after {
  content: '';
  display: block;
  width: 40px; height: 2px;
  background: rgba(255,255,255,.3);
  margin-top: 1.25rem;
}
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---- RESPONSIVE ---- */
@media (max-width: 1100px) {
  .svc-grid        { grid-template-columns: repeat(2,1fr); }
  .clients-layout  { grid-template-columns: 1fr; gap: 3rem; }
  .footer-grid     { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-partners { grid-column: 1 / -1; }
  .footer-partners-list { justify-content: flex-start; }
  .contacts-grid   { grid-template-columns: repeat(2,1fr); }
  .form-layout     { grid-template-columns: 1fr; }
}
/* ---- INSTAGRAM — Il nostro mondo ---- */
.instagram-section {
  padding: var(--pad-section) 0;
  border-top: 1px solid rgba(255,255,255,.06);
}
.ig-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: clamp(2.5rem, 4vw, 3.5rem);
  flex-wrap: wrap; gap: 1.5rem;
}
.ig-follow { white-space: nowrap; flex-shrink: 0; }
.ig-feed { width: 100%; }
behold-widget {
  --behold-font-family: var(--mono);
  --behold-border-radius: 0px;
  display: block; width: 100%;
}

/* ---- GLOW GRADIENT + GRAIN — Parliamoci, Form homepage, Form contatti ---- */
.contacts-head,
.form-section--home,
.form-section {
  position: relative;
  overflow: hidden;
}

/* Glow mesh gradient — palette Blooming */
.contacts-head::before,
.form-section--home::before,
.form-section::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 65% 75% at 0%   0%,    rgba(196,96,122,.28)  0%, transparent 50%),
    radial-gradient(ellipse 55% 55% at 100% 0%,    rgba(201,169,110,.22) 0%, transparent 46%),
    radial-gradient(ellipse 70% 55% at 100% 100%,  rgba(122,156,110,.20) 0%, transparent 50%),
    radial-gradient(ellipse 55% 65% at 0%   100%,  rgba(232,67,45,.18)   0%, transparent 48%),
    radial-gradient(ellipse 45% 45% at 52%  48%,   rgba(201,169,110,.10) 0%, transparent 56%);
  pointer-events: none; z-index: 0;
}

/* Grain animato sopra il gradiente */
.contacts-head::after,
.form-section--home::after,
.form-section::after {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  opacity: .08;
  pointer-events: none; z-index: 1;
  animation: glowGrain 7s steps(8) infinite;
}
@keyframes glowGrain {
  0%,100% { transform: translate(0,0); }
  12%     { transform: translate(-2%,-3%); }
  25%     { transform: translate(3%, 1%); }
  37%     { transform: translate(-1%, 4%); }
  50%     { transform: translate(4%,-2%); }
  62%     { transform: translate(-3%, 2%); }
  75%     { transform: translate(2%,-3%); }
  87%     { transform: translate(-2%, 3%); }
}

/* Tutti i contenuti sopra il grain */
.contacts-head .container,
.contacts-head .container-narrow,
.form-section--home .container,
.form-section--home .form-layout,
.form-section .container { position: relative; z-index: 2; }

/* Pulizia vecchi pseudo-elementi */
.form-section--home .form-layout::before { display: none; }
.form-section--home .form-left::before   { display: none; }
.contacts-head .d-head::before           { display: none; }

/* ---- LEGAL PAGES ---- */
.legal-content { padding: clamp(2rem, 4vw, 4rem) 0 var(--pad-section); }
.legal-body {
  display: flex; flex-direction: column; gap: 0;
}
.legal-update {
  font-family: var(--mono); font-size: .68rem;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--coral); margin-bottom: 3rem;
  display: flex; align-items: center; gap: .75rem;
}
.legal-update::before { content: ''; display: block; width: 20px; height: 1px; background: var(--coral); }
.legal-section {
  padding: 2.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.legal-section:last-child { border-bottom: none; }
.legal-section h2 {
  font-family: var(--display); font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  font-weight: 700; color: var(--cream); margin-bottom: 1.5rem; line-height: 1.2;
}
.legal-section h3 {
  font-family: var(--mono); font-size: .8rem;
  font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255,255,255,.5); margin: 1.75rem 0 .75rem;
}
.legal-section p {
  font-family: var(--mono); font-size: clamp(.78rem, 1.15vw, .88rem);
  line-height: 1.95; color: rgba(255,255,255,.58); margin-bottom: 1rem;
}
.legal-section p:last-child { margin-bottom: 0; }
.legal-section strong { color: rgba(255,255,255,.8); font-weight: 500; }
.legal-section a { color: var(--coral); transition: opacity .2s; text-decoration: underline; text-underline-offset: 3px; }
.legal-section a:hover { opacity: .7; }

/* Cookie table */
.cookie-table { display: flex; flex-direction: column; gap: 1px; background: rgba(255,255,255,.06); margin-top: 1.5rem; }
.cookie-row {
  display: grid; grid-template-columns: 1.2fr 3fr 1fr 1fr;
  gap: 1.5rem; padding: 1.5rem 1.75rem;
  background: var(--ink); align-items: start;
  font-family: var(--mono); font-size: clamp(.72rem, 1.05vw, .82rem);
  line-height: 1.75; color: rgba(255,255,255,.55);
}
.cookie-row--header {
  background: var(--ink-3);
  font-size: .62rem; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.35); padding: 1rem 1.75rem;
}
.cookie-row strong { color: rgba(255,255,255,.8); font-weight: 500; display: block; margin-bottom: .25rem; }
.cookie-row em { font-style: normal; color: rgba(255,255,255,.3); font-size: .72rem; }
.tag-legal {
  display: inline-block; font-size: .6rem; letter-spacing: .12em;
  text-transform: uppercase; padding: .3rem .7rem; border-radius: 2px; white-space: nowrap;
}
.tag-ok   { background: rgba(138,158,126,.15); color: var(--sage);  border: 1px solid rgba(138,158,126,.3); }
.tag-warn { background: rgba(201,169,110,.1);  color: var(--gold);  border: 1px solid rgba(201,169,110,.25); }

@media (max-width: 768px) {
  .cookie-row { grid-template-columns: 1fr; gap: .75rem; }
  .cookie-row--header { display: none; }
}

@media (max-width: 900px) {
  .sectors-layout  { grid-template-columns: 1fr; gap: 3rem; }
  .svc-header      { grid-template-columns: 1fr; gap: 2rem; }
  .values-grid     { grid-template-columns: 1fr; }
  .locations-grid  { grid-template-columns: 1fr; }
  .f-row           { grid-template-columns: 1fr; }
  .manifesto-cols  { columns: 1; }
}
@media (max-width: 768px) {
  :root { --pad-x: 1.25rem; --pad-section: 3.5rem; }
  body  { cursor: auto; }
  .cursor-dot, .cursor-ring { display: none; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-logo-img { width: 122px; max-height: 44px; }
  .hero-h1 { font-size: clamp(3.5rem, 16vw, 6.5rem); }
  .svc-grid { grid-template-columns: 1fr; }
  .logo-grid { grid-template-columns: repeat(2,1fr); }
  .logo-cell { aspect-ratio: unset !important; min-height: 140px; padding: 2rem 1.5rem; }
  .logo-cell img { max-height: 100px !important; max-width: 85% !important; }
  .contacts-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .footer-partners { grid-column: 1; padding-top: .25rem; }
  .footer-partners-list { flex-wrap: wrap; gap: 1rem 1.5rem; }
  .footer-partner { justify-content: flex-start; min-width: 90px; height: 44px; }
  .footer-partner img { max-width: 145px; max-height: 44px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .cta-strip .container { flex-direction: column; align-items: flex-start; }
  .svc-row { grid-template-columns: 1fr; gap: .5rem; }
  .hero-foot { flex-direction: column; align-items: flex-start; }
  .rai-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .hero-h1 { font-size: clamp(3rem, 18vw, 5rem); }
  .d-head  { font-size: clamp(2.4rem, 12vw, 4rem); }
  .logo-grid { grid-template-columns: repeat(2,1fr); }
}
@media print {
  .nav, .hero-media, video, .cursor-dot, .cursor-ring { display: none; }
  body { background: white; color: black; cursor: auto; }
}

/* ============================================================
   LIGHT SECTIONS — sfondo chiaro
   ============================================================ */

/* Body: fondo generale chiaro */
body {
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%,   rgba(196,96,122,.10)  0%, transparent 45%),
    radial-gradient(ellipse 60% 40% at 90% 5%,    rgba(201,169,110,.10) 0%, transparent 40%),
    radial-gradient(ellipse 50% 40% at 5%  90%,   rgba(232,67,45,.07)   0%, transparent 45%),
    var(--cream);
  background-attachment: fixed;
}

/* Sezione light — testo scuro su cream */
.s-light {
  background: var(--cream);
  color: var(--ink);
}
.s-light2 {
  background: var(--cream-2);
  color: var(--ink);
}

/* Nav con sfondo fisso scuro (pagine interne) */
.nav--solid {
  background: rgba(18,14,10,.92) !important;
  backdrop-filter: blur(20px) saturate(1.4);
}

/* Headings e label nelle sezioni light */
.s-light .s-label,
.s-light2 .s-label { color: var(--coral); }
.s-light .s-label::before,
.s-light2 .s-label::before { background: var(--coral); }

.s-light .d-head,
.s-light2 .d-head { color: var(--ink); }
.s-light .d-head em,
.s-light2 .d-head em { color: var(--coral); }

/* Service cards nelle sezioni light */
.s-light .svc-grid { background: rgba(18,14,10,.08); }
.s-light .svc-card { background: var(--cream); }
.s-light .svc-card:hover { background: var(--cream-2); }
.s-light .svc-header { border-bottom-color: rgba(18,14,10,.08); }
.s-light .svc-header-desc { color: rgba(18,14,10,.5); }
.s-light .svc-title { color: var(--ink); }
.s-light .svc-desc  { color: rgba(18,14,10,.55); }
.s-light .svc-num   { color: var(--coral); }
.s-light .svc-more  { color: rgba(18,14,10,.2); }
.s-light .svc-card:hover .svc-more { color: var(--coral); }
.s-light .svc-card::after { background: var(--coral); }
.s-light .svc-grid::after { background: var(--cream); }
.s-light .svc-grid .svc-card:last-child { background: var(--cream); }
.s-light .btn-outline { border-color: rgba(18,14,10,.25); color: var(--ink); }
.s-light .btn-outline:hover { border-color: var(--ink); background: rgba(18,14,10,.04); }

/* values e locations su sfondo chiaro */
.s-light .values-grid   { background: rgba(18,14,10,.04); }
.s-light .value-card    { background: var(--cream-2); }
.s-light .value-card:hover { background: #e8e2d8; }
.s-light .value-card h3 { color: var(--ink); }
.s-light .value-card p  { color: rgba(18,14,10,.55); }
.s-light .value-ghost   { opacity: .35; }
.s-light .locations     { border-top-color: rgba(18,14,10,.06); }
.s-light .locations-grid { background: rgba(18,14,10,.04); }
.s-light .loc-card      { background: var(--cream-2); }
.s-light .loc-card:hover { background: #e8e2d8; }
.s-light .loc-city      { color: var(--ink); }
.s-light .loc-card:nth-child(1) .loc-city { color: var(--coral); }
.s-light .loc-card address { color: rgba(18,14,10,.5); }

/* svc-row su sfondo chiaro */
.s-light .svc-row       { border-bottom-color: rgba(18,14,10,.08); }
.s-light .svc-row:first-child { border-top-color: rgba(18,14,10,.08); }
.s-light .svc-row h2    { color: var(--ink); }
.s-light .svc-row p     { color: rgba(18,14,10,.55); }
.s-light .tag           { border-color: rgba(18,14,10,.12); color: rgba(18,14,10,.45); }
.s-light .tag:hover     { border-color: var(--coral); color: var(--coral); }
.s-light .svc-row:nth-child(even) .svc-row-n { color: var(--coral); }
.s-light .svc-row:nth-child(3n)   .svc-row-n { color: var(--coral); }

/* Sectors nelle sezioni light */
.s-light.sectors { border-top-color: rgba(18,14,10,.06); }
.s-light .sector-row { border-bottom-color: rgba(18,14,10,.08); }
.s-light .sector-name { color: var(--ink); }
.s-light .sector-tag  { color: rgba(18,14,10,.25); }
.s-light .sector-row:hover .sector-name { color: var(--ink); }
.s-light .sector-row:hover .sector-tag  { color: var(--coral); }

/* RAI section light */
.s-light.rai { background: var(--cream-2); border-top-color: rgba(18,14,10,.06); }
.s-light.rai .rai-desc { color: rgba(18,14,10,.55); }
.s-light .video-wrap { background: var(--ink-3); }
.s-light .video-wrap::after { border-color: rgba(18,14,10,.08); }

/* Form light */
.s-light2.form-section { background: var(--cream-2); }
.s-light2 .form-left h2 { color: var(--ink); }
.s-light2 .form-left p  { color: rgba(18,14,10,.5); }
.s-light2 .f-field { border-bottom-color: rgba(18,14,10,.1); }
.s-light2 .f-field:focus-within { border-color: var(--coral); }
.s-light2 .f-field label { color: rgba(18,14,10,.35); }
.s-light2 .f-field:focus-within label { color: var(--coral); }
.s-light2 .f-field input,
.s-light2 .f-field textarea { color: var(--ink); }
.s-light2 .f-field input::placeholder,
.s-light2 .f-field textarea::placeholder { color: rgba(18,14,10,.22); }
.s-light2 .f-note { color: rgba(18,14,10,.3); }

/* Disabilita glow grain sulla form light (era pensato per sfondo scuro) */
.s-light2.form-section--home::before,
.s-light2.form-section--home::after { display: none; }

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  padding: clamp(3rem, 5vw, 4.5rem) 0;
  border-bottom: 1px solid rgba(18,14,10,.08);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(18,14,10,.08);
}
.stat-item {
  background: var(--cream);
  padding: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 3rem);
  display: flex; flex-direction: column; gap: .75rem;
  position: relative; overflow: hidden;
  transition: background .3s var(--ease-out);
}
.stat-item:hover { background: var(--cream-2); }
.stat-item::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 2px; background: var(--coral);
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease-out);
}
.stat-item:hover::before { transform: scaleX(1); }
.stat-value {
  display: flex; align-items: baseline; gap: .1em;
  font-family: var(--display); font-weight: 900;
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: .88; letter-spacing: -.04em; color: var(--ink);
}
.stat-sfx {
  font-family: var(--display); font-weight: 700; font-style: italic;
  font-size: clamp(2rem, 4.5vw, 4rem); color: var(--coral);
}
.stat-label {
  font-family: var(--mono); font-size: clamp(.7rem, 1.1vw, .85rem);
  letter-spacing: .18em; text-transform: uppercase;
  color: rgba(18,14,10,.45); line-height: 1.5;
}

@media (max-width: 640px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .stat-item { padding: 1.25rem .5rem; gap: .4rem; }
  .stat-value { font-size: clamp(1.6rem, 7vw, 2.4rem); }
  .stat-sfx { font-size: clamp(1rem, 4.5vw, 1.5rem); }
  .stat-label { font-size: .55rem; letter-spacing: .1em; }
}

/* ============================================================
   LOGO CELL — variante con link progetto
   ============================================================ */
.logo-cell--linked { position: relative; cursor: pointer; }
.logo-cell-link {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; padding: 1.5rem;
  position: relative; overflow: hidden;
}
.logo-cell--linked img {
  transition: filter .3s, transform .3s var(--ease-out), opacity .3s;
}
.logo-cell-hover {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: .65rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--coral);
  background: rgba(245,240,232,.92);
  opacity: 0; transition: opacity .3s;
}
.logo-cell--linked:hover .logo-cell-hover { opacity: 1; }
.logo-cell--linked:hover img { opacity: .25; transform: scale(1.04); }

/* Griglia servizi sempre 3 colonne fino a mobile */
.svc-grid--3 { grid-template-columns: repeat(3, 1fr) !important; }
@media (max-width: 600px) {
  .svc-grid--3 { grid-template-columns: 1fr !important; }
  .svc-grid--3 .svc-card { padding: 1.25rem 1.25rem 1.5rem; gap: .65rem; }
  .services-home .btn { font-size: .58rem; padding: .9rem 1.4rem; letter-spacing: .12em; white-space: normal; text-align: center; }
}

/* Accent colors nelle sezioni light (override per nth-child) */
.s-light .svc-card:nth-child(3n+2) .svc-num { color: var(--gold); }
.s-light .svc-card:nth-child(3n+2)::after   { background: var(--gold); }
.s-light .svc-card:nth-child(3n+3) .svc-num { color: var(--petal); }
.s-light .svc-card:nth-child(3n+3)::after   { background: var(--petal); }

/* ---- RECRUITMENT BANNER (home) ---- */
.recruit-banner {
  background: var(--ink);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: clamp(3rem, 6vw, 5rem) 0;
}
.recruit-banner__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  flex-wrap: wrap;
}
.recruit-banner__text h2 {
  font-family: var(--display); font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 900; line-height: .95; letter-spacing: -.03em;
  color: var(--cream); margin-top: .5rem;
}
.recruit-banner__text h2 em { font-style: italic; color: var(--white); }
@media (max-width: 640px) {
  .recruit-banner__inner { flex-direction: column; align-items: flex-start; }
}
