/* ============================================================
   VIROR STUDIO — style.css
   Design system: 00_BLUEPRINT.md
   Base scura #0E0F0D · Serif Playfair Display · Mono IBM Plex
   ============================================================ */

:root {
  --nero: #0E0F0D;
  --bianco: #FFFFFF;
  --bianco-70: rgba(255, 255, 255, 0.72);
  --bianco-40: rgba(255, 255, 255, 0.4);
  --avorio: #F4F1EA;
  --font-display: "Playfair Display", Georgia, serif;
  --font-mono: "IBM Plex Mono", "SF Mono", monospace;
  --font-body: "Inter", -apple-system, sans-serif;
  --gutter: clamp(1.25rem, 4vw, 5.5rem);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--nero);
  color: var(--bianco);
  -webkit-font-smoothing: antialiased;
}

/* ============ NAV ============ */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.6rem var(--gutter);
  transition: background 0.4s ease, padding 0.4s ease;
}

.nav--solid {
  background: linear-gradient(rgba(14, 15, 13, 0.92), rgba(14, 15, 13, 0.75) 70%, transparent);
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.nav__logo {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  letter-spacing: 0.12em;
  text-decoration: none;
  color: var(--bianco);
  white-space: nowrap;
}

.nav__logo-strong { font-weight: 500; }
.nav__logo-light  { font-weight: 400; opacity: 0.85; }

.nav__actions {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 1.8vw, 1.6rem);
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.35em;
  background: none;
  border: 0;
  padding: 0.4em 0;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--bianco);
}

.lang-toggle__opt {
  opacity: 0.4;
  transition: opacity 0.25s ease;
}

.lang-toggle__opt:hover { opacity: 0.75; }

.lang-toggle__opt--active {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 0.35em;
}

.lang-toggle__sep { opacity: 0.3; }

.nav__menu {
  display: flex;
  gap: clamp(1.2rem, 2.5vw, 2.6rem);
}

.nav__link {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bianco);
  opacity: 0.85;
  transition: opacity 0.25s ease;
}

.nav__link:hover,
.nav__link--active { opacity: 1; }

.nav__link--active { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }

/* ============ BOTTONI ============ */

.btn {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--bianco);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 4px;
  padding: 0.65rem 1.3rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  transition: background 0.3s ease, color 0.3s ease;
}

.btn:hover { background: var(--bianco); color: var(--nero); }

.btn__arrow { font-size: 0.9em; }

/* ============ HERO ============ */

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(14, 15, 13, 0.35), rgba(14, 15, 13, 0.08) 35%, rgba(14, 15, 13, 0.02) 60%, rgba(14, 15, 13, 0.55) 100%);
}

.hero__content {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(2.5rem, 7vh, 5.5rem);
}

/* Eyebrow: etichetta mono + linea */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 1.4rem;
  animation: rise 1s 0.2s ease both;
}

.eyebrow__text {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--bianco);
}

.eyebrow__line {
  width: 72px;
  height: 1px;
  background: var(--bianco-40);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 6.2rem);
  line-height: 1.08;
  letter-spacing: 0.005em;
}

.hero__title-line {
  display: block;
  animation: rise 1.1s 0.45s ease both;
}

.hero__title-line + .hero__title-line { animation-delay: 0.65s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}

/* ============ INTRO ============ */

.intro {
  background: var(--bianco);
  color: var(--nero);
  padding: clamp(5rem, 14vh, 10rem) var(--gutter);
}

.intro__text {
  font-size: clamp(1.35rem, 2.6vw, 2.1rem);
  line-height: 1.5;
  font-weight: 400;
  max-width: 62rem;
  letter-spacing: -0.01em;
}

/* ============ PROGETTI ============ */

.progetti {
  background: var(--bianco);
  color: var(--nero);
  padding: clamp(3rem, 8vh, 6rem) var(--gutter) clamp(4rem, 10vh, 8rem);
  border-top: 1px solid rgba(14, 15, 13, 0.08);
}

.progetti__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(2.5rem, 6vh, 4.5rem);
}

.progetti__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 5.5rem);
  line-height: 1.05;
}

/* Eyebrow scuro (sezioni chiare) */
.eyebrow--dark .eyebrow__text { color: var(--nero); }
.eyebrow--dark .eyebrow__line { background: rgba(14, 15, 13, 0.25); }

/* Bottone scuro (sezioni chiare) */
.btn--dark {
  color: var(--nero);
  border-color: rgba(14, 15, 13, 0.7);
}

.btn--dark:hover { background: var(--nero); color: var(--bianco); }

.progetti__grid {
  display: grid;
  gap: clamp(2rem, 5vh, 4rem);
}

/* Card progetto full-width */
.project-card {
  position: relative;
  height: min(88vh, 780px);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s ease;
}

.project-card:hover .project-card__img { transform: scale(1.035); }

.project-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(14, 15, 13, 0.32);
  transition: background 0.5s ease;
}

.project-card:hover .project-card__overlay { background: rgba(14, 15, 13, 0.22); }

.project-card__content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--bianco);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  padding: 0 1.5rem;
}

.project-card__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  line-height: 1.1;
}

.project-card__tags {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.95;
}

.project-card__content .btn { margin-top: 0.4rem; }

/* ============ CLIENTI / LOGHI ============ */

.clienti {
  background: var(--bianco);
  color: var(--nero);
  padding: clamp(4rem, 10vh, 7rem) 0 clamp(5rem, 12vh, 8rem);
  border-top: 1px solid rgba(14, 15, 13, 0.08);
  overflow: hidden;
}

.clienti__header {
  padding: 0 var(--gutter);
  margin-bottom: clamp(2.5rem, 6vh, 4.5rem);
}

.clienti__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 5.5rem);
  line-height: 1.05;
}

/* Marquee a scorrimento infinito */
.logos {
  position: relative;
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.logos__track {
  display: flex;
  gap: 1.6rem;
  width: max-content;
  animation: marquee 36s linear infinite;
}

.logos:hover .logos__track { animation-play-state: paused; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-50% - 0.8rem)); }
}

.logo-tile {
  width: clamp(220px, 22vw, 300px);
  height: clamp(140px, 14vw, 180px);
  background: #F5F4F2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 1.5rem;
}

/* Wordmark inventati — monocromi, un carattere diverso ciascuno */
.logo {
  color: #23241f;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  line-height: 1;
  white-space: nowrap;
}

.logo em { font-style: normal; }
.logo i  { font-style: normal; display: block; }

.logo--alma {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.35rem;
  letter-spacing: 0.42em;
  color: #8d7a55;
}
.logo--alma em { font-size: 0.62rem; letter-spacing: 0.55em; color: #23241f; }

.logo--borgo { font-family: var(--font-display); font-size: 1.45rem; }
.logo--borgo i { font-size: 1.05rem; margin-bottom: 0.25rem; opacity: 0.8; }

.logo--lares {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.34em;
}
.logo--lares i { font-size: 0.7rem; letter-spacing: 0.4em; margin-bottom: 0.3rem; }

.logo--nido { font-family: var(--font-display); font-weight: 500; font-size: 1.9rem; letter-spacing: 0.16em; }
.logo--nido em { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.5em; text-transform: uppercase; }

.logo--terra { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: 0.22em; }

.logo--forma { font-family: var(--font-body); font-weight: 400; font-size: 1.3rem; letter-spacing: 0.3em; flex-direction: row; gap: 0.45rem; }
.logo--forma b { font-weight: 700; }

.logo--mirto { font-family: var(--font-display); font-style: italic; font-size: 1.55rem; }
.logo--mirto em { font-family: var(--font-mono); font-style: normal; font-size: 0.58rem; letter-spacing: 0.5em; text-transform: uppercase; }

.logo--velaria { font-family: var(--font-mono); font-size: 1rem; letter-spacing: 0.2em; }

@media (prefers-reduced-motion: reduce) {
  .logos__track { animation: none; }
}

/* ============ SOLUZIONI ============ */

.soluzioni {
  background: var(--bianco);
  color: var(--nero);
  padding: clamp(4rem, 10vh, 7rem) var(--gutter) clamp(5rem, 12vh, 8rem);
  border-top: 1px solid rgba(14, 15, 13, 0.08);
}

.soluzioni__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 5.5rem);
  line-height: 1.05;
}

.soluzioni__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  margin-top: clamp(3rem, 8vh, 6rem);
}

/* Pittogrammi geometrici — uno per pilastro */
.pilastro__icon {
  height: 48px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  margin-bottom: clamp(2rem, 5vh, 3.5rem);
}

.deco {
  width: 42px;
  height: 42px;
  background: var(--nero);
  display: inline-block;
}

/* Siti Web: gruppo di forme (arco, quadrato, cerchio) */
.deco--arch   { border-radius: 21px 21px 0 0; }
.deco--square { width: 28px; height: 28px; }
.deco--circle { border-radius: 50%; }

/* Social: quadrato con stella a 4 punte ritagliata */
.deco--star {
  width: 48px;
  height: 48px;
  position: relative;
}

.deco--star::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bianco);
  clip-path: polygon(50% 8%, 59% 41%, 92% 50%, 59% 59%, 50% 92%, 41% 59%, 8% 50%, 41% 41%);
}

/* Contenuti: doppio tratto obliquo */
.deco--slash {
  width: 15px;
  height: 48px;
  transform: skewX(-16deg);
}

.deco--slash + .deco--slash { margin-left: 4px; }

.pilastro__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 1.2rem;
}

.pilastro__text {
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  line-height: 1.6;
  color: rgba(14, 15, 13, 0.65);
}

@media (max-width: 900px) {
  .soluzioni__grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ============ TESTIMONIANZE ============ */

.testi {
  background: var(--bianco);
  color: var(--nero);
  padding: clamp(4rem, 10vh, 7rem) var(--gutter) clamp(5rem, 12vh, 8rem);
  border-top: 1px solid rgba(14, 15, 13, 0.08);
}

.testi__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 5.5rem);
  line-height: 1.05;
}

.testi__carousel { margin-top: clamp(2.5rem, 7vh, 5rem); }

.testi__quote-mark {
  font-family: var(--font-display);
  font-size: 3.2rem;
  line-height: 1;
  display: block;
  margin-bottom: 1.8rem;
}

/* Slide sovrapposte nella stessa cella: l'altezza segue la più alta */
.testi__slides { display: grid; }

.testi__slide {
  grid-area: 1 / 1;
  opacity: 0;
  transition: opacity 0.7s ease;
  pointer-events: none;
}

.testi__slide--active { opacity: 1; pointer-events: auto; }

.testi__text {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 2rem);
  line-height: 1.55;
  max-width: 72rem;
}

/* Barra di avanzamento */
.testi__bar {
  margin-top: clamp(2rem, 5vh, 3.2rem);
  height: 2px;
  background: rgba(14, 15, 13, 0.14);
  position: relative;
  overflow: hidden;
}

.testi__bar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 100%;
  background: var(--nero);
  transform: scaleX(0);
  transform-origin: left;
}

.testi__bar-fill.run {
  animation: barfill var(--testi-durata, 8s) linear forwards;
}

@keyframes barfill {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.testi__author {
  margin-top: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.testi__author strong { font-weight: 600; font-size: 1.05rem; }
.testi__author span   { color: rgba(14, 15, 13, 0.55); font-size: 0.98rem; }

.testi__nav {
  display: flex;
  justify-content: flex-end;
  gap: 1.6rem;
  margin-top: -1.4rem;
}

.testi__arrow {
  background: none;
  border: none;
  font-size: 1.7rem;
  color: var(--nero);
  cursor: pointer;
  padding: 0.4rem;
  line-height: 1;
  opacity: 0.85;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.testi__arrow:hover { opacity: 1; transform: translateX(2px); }
.testi__arrow#testi-prev:hover { transform: translateX(-2px); }

@media (prefers-reduced-motion: reduce) {
  .testi__bar-fill.run { animation: none; transform: scaleX(1); }
}

/* ============ SETTORI ============ */

.settori {
  background: var(--bianco);
  color: var(--nero);
  padding: clamp(4rem, 10vh, 7rem) var(--gutter) clamp(5rem, 12vh, 8rem);
  border-top: 1px solid rgba(14, 15, 13, 0.08);
}

.settori__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 5.5rem);
  line-height: 1.05;
}

.settori__layout {
  display: grid;
  grid-template-columns: minmax(0, 46%) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5.5rem);
  align-items: start;
  margin-top: clamp(2.5rem, 7vh, 5rem);
}

.settori__media {
  overflow: hidden;
  border-radius: 4px;
}

.settori__media img {
  display: block;
  width: 100%;
  height: min(78vh, 820px);
  object-fit: cover;
  transition: opacity 0.45s ease;
}

/* Fisarmonica */
.settore { border-bottom: 1px solid rgba(14, 15, 13, 0.15); }
.settore:first-child { border-top: 1px solid rgba(14, 15, 13, 0.15); }

.settore__head {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.4rem, 3vh, 2rem) 0;
  text-align: left;
}

.settore__nome {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.6vw, 2.3rem);
  color: rgba(14, 15, 13, 0.38);
  transition: color 0.35s ease;
}

.settore--aperto .settore__nome,
.settore__head:hover .settore__nome { color: var(--nero); }

/* Segno + che diventa × */
.settore__segno {
  position: relative;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  transition: transform 0.4s ease;
}

.settore__segno::before,
.settore__segno::after {
  content: "";
  position: absolute;
  background: rgba(14, 15, 13, 0.55);
}

.settore__segno::before { inset: 50% 0 auto 0; height: 1.5px; transform: translateY(-50%); }
.settore__segno::after  { inset: 0 auto 0 50%; width: 1.5px; transform: translateX(-50%); }

.settore--aperto .settore__segno { transform: rotate(45deg); }
.settore--aperto .settore__segno::before,
.settore--aperto .settore__segno::after { background: var(--nero); }

/* Corpo che si apre */
.settore__corpo {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s ease;
}

.settore--aperto .settore__corpo { grid-template-rows: 1fr; }

.settore__testo {
  overflow: hidden;
  display: grid;
  gap: 1rem;
}

.settore__testo p {
  font-size: clamp(0.98rem, 1.25vw, 1.12rem);
  line-height: 1.65;
  color: rgba(14, 15, 13, 0.62);
  max-width: 44rem;
}

.settore--aperto .settore__testo { padding-bottom: clamp(1.6rem, 3.5vh, 2.4rem); }

@media (max-width: 900px) {
  .settori__layout { grid-template-columns: 1fr; }
  .settori__media img { height: 52vh; }
}

/* ============ CASE STUDY ============ */

.cs-hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

.cs-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cs-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(14, 15, 13, 0.4), rgba(14, 15, 13, 0.06) 40%, rgba(14, 15, 13, 0.5) 100%);
}

.cs-hero__content {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(2.5rem, 7vh, 5rem);
}

.cs-hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.8rem, 7vw, 7rem);
  line-height: 1.05;
  margin-bottom: 1.6rem;
  animation: rise 1s 0.2s ease both;
}

.cs-meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem clamp(2rem, 5vw, 4.5rem);
  animation: rise 1s 0.45s ease both;
}

.cs-meta__item {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.cs-meta__label { opacity: 0.75; }

.cs-body {
  background: var(--bianco);
  color: var(--nero);
  padding: clamp(5rem, 14vh, 9rem) var(--gutter) clamp(3rem, 8vh, 5rem);
}

.cs-body__text {
  max-width: 62rem;
  display: grid;
  gap: 1.4rem;
}

.cs-body__text p {
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  line-height: 1.65;
  color: rgba(14, 15, 13, 0.82);
}

.cs-cta {
  background: var(--bianco);
  padding: 0 var(--gutter) clamp(5rem, 12vh, 8rem);
}

/* ============ FOOTER ============ */

.footer {
  background: var(--nero);
  color: var(--bianco);
  padding: clamp(4rem, 10vh, 8rem) var(--gutter) 0;
  overflow: hidden;
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.7fr) minmax(0, 0.9fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.footer__claim {
  font-size: clamp(1.5rem, 2.8vw, 2.3rem);
  line-height: 1.35;
  font-weight: 400;
  margin-bottom: 2rem;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer__links a {
  color: var(--bianco);
  text-decoration: none;
  font-size: 1.15rem;
  opacity: 0.9;
  transition: opacity 0.25s ease;
}

.footer__links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }

.footer__connect h3 {
  font-weight: 500;
  font-size: 1.3rem;
  margin-bottom: 0.9rem;
}

.footer__connect p {
  color: var(--bianco-70);
  line-height: 1.7;
  margin-bottom: 1.4rem;
}

.footer__social {
  display: flex;
  gap: 1.2rem;
}

.footer__social a {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  color: var(--bianco);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, color 0.3s ease;
}

.footer__social a:hover { background: var(--bianco); color: var(--nero); }

.footer__copy {
  margin-top: clamp(2.5rem, 6vh, 4rem);
  color: var(--bianco-70);
  font-size: 0.95rem;
}

.footer__legal {
  margin-top: 0.6rem;
  color: var(--bianco-40);
  font-size: 0.78rem;
  line-height: 1.5;
  max-width: 44rem;
}

/* Wordmark gigante con il video hero dentro le lettere */
.footer__wordmark {
  margin-top: clamp(2rem, 5vh, 4rem);
  height: clamp(120px, 30vw, 460px);
}

.footer__wordmark video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 260'><text x='600' y='225' text-anchor='middle' font-family='Helvetica, Arial, sans-serif' font-size='265' font-weight='700' letter-spacing='6' fill='white'>VIROR</text></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 260'><text x='600' y='225' text-anchor='middle' font-family='Helvetica, Arial, sans-serif' font-size='265' font-weight='700' letter-spacing='6' fill='white'>VIROR</text></svg>");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center bottom;
  mask-position: center bottom;
}

@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ============ PARTNER: GRIGLIA LOGHI STATICA ============ */

.partners {
  background: var(--bianco);
  color: var(--nero);
  padding: clamp(4rem, 10vh, 7rem) var(--gutter) clamp(5rem, 12vh, 8rem);
  border-top: 1px solid rgba(14, 15, 13, 0.08);
}

.partners__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 5.5rem);
  line-height: 1.05;
}

.partners__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(0.9rem, 1.6vw, 1.6rem);
  margin-top: clamp(2.5rem, 7vh, 5rem);
}

.partners__grid .logo-tile {
  width: 100%;
  height: clamp(110px, 9vw, 170px);
}

/* Loghi aggiuntivi griglia partner */
.logo--dimora { font-family: var(--font-display); font-size: 1.2rem; letter-spacing: 0.24em; }
.logo--dimora em { font-family: var(--font-mono); font-size: 0.55rem; letter-spacing: 0.5em; text-transform: uppercase; }

.logo--ghiro { font-family: var(--font-display); font-style: italic; font-size: 1.8rem; }
.logo--ghiro em { font-family: var(--font-mono); font-style: normal; font-size: 0.55rem; letter-spacing: 0.5em; text-transform: uppercase; }

.logo--pietra { font-family: var(--font-body); font-weight: 500; font-size: 1.15rem; letter-spacing: 0.3em; }
.logo--pietra em { font-weight: 300; letter-spacing: 0.42em; font-size: 1rem; }

.logo--monogramma {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  border: 1.5px solid #23241f;
  border-radius: 50%;
  width: 72px;
  height: 72px;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
}
.logo--monogramma i { font-style: normal; font-size: 0.9rem; transform: translateY(-6px); }

.logo--cala { font-family: var(--font-body); font-weight: 300; font-size: 1.05rem; letter-spacing: 0.34em; color: #8d7a55; }
.logo--cala em { font-size: 0.6rem; letter-spacing: 0.45em; color: #8d7a55; opacity: 0.85; }

.logo--meridiana { font-family: var(--font-body); font-weight: 700; font-size: 1rem; letter-spacing: 0.06em; line-height: 1.25; text-align: left; align-items: flex-start; }
.logo--meridiana em { font-weight: 400; font-size: 0.72rem; letter-spacing: 0.28em; margin-top: 0.2rem; }

.logo--amaltea { font-family: var(--font-display); font-size: 1.05rem; letter-spacing: 0.2em; }

@media (max-width: 1100px) {
  .partners__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 700px) {
  .partners__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============ ABOUT: TEAM + NUMERI ============ */

.cs-hero__title--about { font-size: clamp(2.2rem, 5.2vw, 5.2rem); line-height: 1.12; }

.team,
.numeri {
  background: var(--bianco);
  color: var(--nero);
  padding: clamp(4rem, 10vh, 7rem) var(--gutter) clamp(5rem, 12vh, 8rem);
  border-top: 1px solid rgba(14, 15, 13, 0.08);
}

.team__title,
.numeri__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 5.5rem);
  line-height: 1.05;
}

.team__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.5rem, 6vw, 6rem);
  margin-top: clamp(2.5rem, 7vh, 5rem);
  align-items: start;
}

.membro__foto {
  aspect-ratio: 4 / 5;
  width: 100%;
  overflow: hidden;
  border-radius: 4px;
  margin-bottom: 2rem;
}

.membro__foto img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Bianco e nero editoriale come il riferimento */
.membro__foto--bn img { filter: grayscale(1) contrast(1.05); }

.membro__foto--placeholder {
  background: #EDEBE6;
  display: flex;
  align-items: center;
  justify-content: center;
}

.membro__foto--placeholder span {
  font-family: var(--font-display);
  font-size: 3.5rem;
  color: rgba(14, 15, 13, 0.25);
  letter-spacing: 0.1em;
}

.membro__nome {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
  margin-bottom: 0.4rem;
}

.membro__ruolo {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(14, 15, 13, 0.55);
  margin-bottom: 1.2rem;
}

.membro__bio {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.65;
  color: rgba(14, 15, 13, 0.68);
  max-width: 34rem;
}

.membro__social {
  display: flex;
  gap: 0.9rem;
  margin-top: 1.6rem;
}

.membro__social a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--nero);
  color: var(--bianco);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.membro__social a:hover { opacity: 0.85; transform: translateY(-2px); }

.membro__social svg { width: 20px; height: 20px; }

.numeri__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 2rem);
  margin-top: clamp(2.5rem, 7vh, 5rem);
}

/* Card numero — al click diventa nera */
.numero {
  background: #F5F4F2;
  border-radius: 4px;
  padding: clamp(1.8rem, 3vw, 3rem);
  min-height: clamp(200px, 24vw, 280px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  cursor: pointer;
  transition: background 0.35s ease, color 0.35s ease, transform 0.35s ease;
}

.numero:hover { transform: translateY(-3px); }

.numero__valore {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(2.6rem, 5vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.numero__label {
  font-size: clamp(1rem, 1.4vw, 1.3rem);
  color: rgba(14, 15, 13, 0.75);
  transition: color 0.35s ease;
}

.numero--dark {
  background: var(--nero);
  color: var(--bianco);
}

.numero--dark .numero__label { color: rgba(255, 255, 255, 0.8); }

@media (max-width: 900px) {
  .team__grid { grid-template-columns: 1fr; }
  .numeri__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============ RESPONSIVE ============ */

@media (max-width: 900px) {
  .nav__menu { display: none; } /* TODO: menu mobile a tendina */
  .hero__title { font-size: clamp(2.3rem, 10vw, 4rem); }
}

@media (prefers-reduced-motion: reduce) {
  .eyebrow, .hero__title-line { animation: none; }
}

/* ==========================================================
   PRIVACY / COOKIE — scudo fisso + modale preferenze
   ========================================================== */

.cc-shield {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 950;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(24, 25, 23, 0.92);
  color: #fff;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, background 0.2s ease;
}

.cc-shield:hover { transform: scale(1.06); background: rgba(14, 15, 13, 1); }
.cc-shield svg { width: 20px; height: 20px; }

.cc-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 11, 10, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 2.5rem);
}

/* l'attributo hidden deve vincere sul display:flex qui sopra */
.cc-overlay[hidden] { display: none; }

.cc-modal {
  position: relative;
  background: #fff;
  color: #161715;
  width: min(680px, 100%);
  max-height: min(84vh, 760px);
  overflow-y: auto;
  padding: clamp(1.6rem, 4vw, 2.6rem);
}

.cc-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
  color: #161715;
  opacity: 0.6;
}
.cc-close:hover { opacity: 1; }

.cc-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 0.8rem;
}

.cc-intro {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.6;
  color: #4c4d4a;
  margin: 0 0 1.6rem;
}

.cc-cat { padding: 1.1rem 0; border-top: 1px solid #e7e6e2; }

.cc-cat__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cc-cat__name {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cc-cat__desc {
  font-family: var(--font-body);
  font-size: 0.88rem;
  line-height: 1.55;
  color: #6a6b67;
  margin: 0.5rem 0 0;
  max-width: 52ch;
}

.cc-switch { position: relative; display: inline-block; flex-shrink: 0; }
.cc-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }

.cc-switch__track {
  display: block;
  width: 44px;
  height: 24px;
  border-radius: 12px;
  background: #d5d4d0;
  transition: background 0.2s ease;
  pointer-events: none;
}

.cc-switch__track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease;
}

.cc-switch input:checked + .cc-switch__track { background: #161715; }
.cc-switch input:checked + .cc-switch__track::after { transform: translateX(20px); }
.cc-switch--locked { opacity: 0.55; }
.cc-switch--locked input { cursor: default; }

.cc-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: 1.7rem;
  padding-top: 1.4rem;
  border-top: 1px solid #e7e6e2;
}

.cc-btn {
  flex: 1 1 140px;
  padding: 0.85rem 1rem;
  border: 1px solid #161715;
  background: #fff;
  color: #161715;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease;
}

.cc-btn:hover { background: #f0efeb; }
.cc-btn--primary { background: #161715; color: #fff; }
.cc-btn--primary:hover { background: #000; }

body.cc-lock { overflow: hidden; }
