@font-face {
  font-family: 'Angel Wish';
  src: url('../fonts/angel-wish.otf') format('opentype'),
       url('../fonts/angel-wish.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  ascent-override: 78%;
  descent-override: 20%;
  line-gap-override: 0%;
}

/* ==========================================================================
   PLAYGROUND TATTOO — stylesheet
   ========================================================================== */

:root {
  --bg: #0a0a0c;
  --bg-soft: #111114;
  --bg-card: #17161b;
  --line: rgba(255,255,255,0.08);

  --white: #f5f3f2;
  --grey: #9a97a0;
  --grey-dim: #6b6873;

  --pink: #ef2fc2;
  --pink-soft: #ff7de8;
  --purple: #8a2be2;

  --gothic: 'Poppins', sans-serif;
  --gothic-deco: 'Angel Wish', serif;
  --page-title: 'Angel Wish', serif;
  --serif: 'Poppins', sans-serif;
  --sans: 'Poppins', sans-serif;

  --container: 1180px;
  --radius: 18px;
  --ease: cubic-bezier(.16,.84,.44,1);
  --cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M3 2 L3 19 L7.5 15.5 L10.5 21.5 L13.5 20 L10.5 14 L17 13.5 Z' fill='%23ef2fc2' stroke='%23120014' stroke-width='1.3' stroke-linejoin='round'/%3E%3C/svg%3E") 3 2, auto;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: var(--cursor);
}

a { color: inherit; text-decoration: none; cursor: var(--cursor); }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: var(--cursor); border: none; background: none; color: inherit; }
input, textarea, select, label { cursor: var(--cursor); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

::selection { background: var(--pink); color: #fff; }

/* ==========================================================================
   PRELOADER
   ========================================================================== */
.preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 22px;
  transition: opacity .7s var(--ease), visibility .7s var(--ease);
}
.preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-logo {
  height: clamp(34px, 6vw, 54px);
  width: auto;
  filter: drop-shadow(0 0 14px rgba(239,47,194,.6)) drop-shadow(0 0 32px rgba(138,43,226,.4));
  animation: flicker 2.4s infinite;
}
.preloader-bar {
  width: 180px; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden;
}
.preloader-bar span {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  animation: loadbar 1.6s var(--ease) forwards;
}
@keyframes loadbar { to { width: 100%; } }

/* ==========================================================================
   NOISE OVERLAY
   ========================================================================== */
.noise-overlay {
  position: fixed; inset: 0; z-index: 2; pointer-events: none;
  opacity: 0.035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ==========================================================================
   REVEAL ON SCROLL
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal.center, .center { text-align: center; margin-left: auto; margin-right: auto; }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 30px;
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease), background .35s var(--ease);
  white-space: nowrap;
}
.btn-solid {
  background: linear-gradient(135deg, var(--pink), var(--purple));
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(239,47,194,.6);
}
.btn-solid:hover { transform: translateY(-3px); box-shadow: 0 14px 32px -8px rgba(239,47,194,.8); }
.btn-ghost {
  border: 1px solid var(--line);
  color: var(--white);
}
.btn-ghost:hover { border-color: var(--pink); color: var(--pink-soft); background: rgba(239,47,194,0.06); }
.btn-outline {
  padding: 10px 22px;
  border: 1px solid rgba(255,255,255,0.25);
  font-size: 0.78rem;
}
.btn-outline:hover { border-color: var(--pink); color: var(--pink-soft); }
.btn.full { width: 100%; padding: 16px; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  padding: 22px 0;
  transition: background .4s var(--ease), padding .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  padding: 14px 0;
  background: rgba(10,10,12,0.96);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.brand { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.brand-logo {
  height: 26px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 8px rgba(239,47,194,.4));
  transition: filter .3s var(--ease);
}
.site-header .brand-logo { height: 31px; }
.brand:hover .brand-logo { filter: drop-shadow(0 0 14px rgba(239,47,194,.65)); }
.brand-sub {
  font-size: 0.6rem;
  letter-spacing: 0.35em;
  text-transform: lowercase;
  color: var(--grey);
  margin-top: 2px;
  margin-right: -0.35em;
}

.main-nav ul { display: flex; gap: 34px; }
.nav-link {
  position: relative;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  color: var(--grey);
  padding: 4px 0;
  transition: color .3s;
}
.nav-link::after {
  content: '';
  position: absolute; left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  transition: width .3s var(--ease);
}
.nav-link:hover, .nav-link.active-link { color: var(--white); }
.nav-link:hover::after, .nav-link.active-link::after { width: 100%; }

.nav-cta { display: inline-flex; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  z-index: 600;
}
.burger span {
  height: 2px; width: 100%; background: var(--white);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 100px;
}

/* ---------- Video di sfondo dell'hero ---------- */
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}
/* Velo scuro: senza, il logo e il testo non reggono il contrasto sul video */
.hero-video-veil {
  position: absolute; inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, rgba(10,10,12,0.32) 0%, rgba(10,10,12,0.62) 70%),
    linear-gradient(180deg, rgba(10,10,12,0.5) 0%, rgba(10,10,12,0.22) 40%, var(--bg) 100%);
}

@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
  .hero { background: url("../video/hero-poster.jpg") center / cover no-repeat; }
}

.hero-glow {
  position: absolute; border-radius: 50%; filter: blur(70px);
  pointer-events: none; z-index: 1;
  will-change: transform;
}
.glow-1 { width: 520px; height: 520px; background: rgba(239,47,194,0.22); top: -150px; left: -120px; animation: drift1 14s ease-in-out infinite; }
.glow-2 { width: 460px; height: 460px; background: rgba(138,43,226,0.22); bottom: -160px; right: -120px; animation: drift2 16s ease-in-out infinite; }
.glow-3 { width: 480px; height: 480px; background: rgba(239,47,194,0.16); top: 10%; right: -160px; }

@keyframes drift1 {
  0%, 100% { transform: translate(0,0); }
  50% { transform: translate(60px, 40px); }
}
@keyframes drift2 {
  0%, 100% { transform: translate(0,0); }
  50% { transform: translate(-50px, -30px); }
}

.hero-ink {
  position: absolute; color: var(--pink); opacity: 0.35; font-size: 1.4rem;
  z-index: 2;
  animation: float 6s ease-in-out infinite;
}
.hero-ink-1 { top: 22%; left: 12%; animation-delay: 0s; }
.hero-ink-2 { bottom: 28%; right: 14%; font-size: 1rem; animation-delay: 1.5s; }
.hero-ink-3 { top: 60%; left: 8%; font-size: 2rem; animation-delay: 3s; color: var(--purple); }
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(8deg); }
}

.hero-content { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }

.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 18px;
}

.hero-title { margin: 0; animation: heroTitleIn 1.1s var(--ease) .2s both; }
.hero-logo {
  width: clamp(260px, 46vw, 700px);
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 0 22px rgba(239,47,194,.45)) drop-shadow(0 0 50px rgba(138,43,226,.3));
}
@keyframes heroTitleIn {
  from { opacity: 0; transform: translateY(36px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes flicker {
  0%, 19%, 21%, 23%, 54%, 56%, 100% { opacity: 1; }
  20%, 22%, 55% { opacity: 0.6; }
}

.hero-subtitle {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--grey);
  margin-top: 10px;
  text-transform: lowercase;
}

.hero-desc {
  max-width: 480px;
  margin: 26px 0 8px;
  color: var(--grey);
  font-size: 1rem;
}

.hero-actions { display: flex; gap: 16px; margin-top: 28px; flex-wrap: wrap; justify-content: center; }

.scroll-indicator {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  z-index: 2;
  color: var(--grey);
}
.scroll-indicator small { font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; }
.scroll-mouse {
  width: 22px; height: 36px; border: 1px solid var(--grey); border-radius: 12px;
  display: flex; justify-content: center; padding-top: 6px;
}
.scroll-mouse span {
  width: 3px; height: 8px; border-radius: 2px; background: var(--pink);
  animation: scrollDot 1.8s infinite;
}
@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(10px); opacity: 0; }
  100% { opacity: 0; }
}

/* ==========================================================================
   STYLES SHOWCASE
   ========================================================================== */
.styles-showcase { background: var(--bg-soft); }
.styles-showcase .container { max-width: 1320px; }
.styles-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 34px;
  margin-top: 46px;
}
.style-card {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/4;
  border: 1px solid var(--line);
}
.style-card img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(0.25);
  transition: transform .6s var(--ease), filter .5s var(--ease);
}
.style-card:hover img { transform: scale(1.1); filter: grayscale(0); }

/* ==========================================================================
   SECTION COMMON
   ========================================================================== */
section { position: relative; padding: 130px 0; z-index: 1; }
.section-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--gothic-deco);
  font-size: clamp(2.2rem, 4.8vw, 3.4rem);
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 22px;
  font-variant-ligatures: none no-common-ligatures no-discretionary-ligatures no-historical-ligatures no-contextual;
  font-feature-settings: "liga" 0, "dlig" 0, "clig" 0, "calt" 0, "hlig" 0, "rlig" 0;
}
.section-title em { color: var(--pink-soft); font-style: normal; }
.section-lead {
  max-width: 560px;
  margin: 0 auto 50px;
  color: var(--grey);
}

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  align-items: center;
}
.about-visual { position: relative; }
.about-visual::before {
  content: '';
  position: absolute;
  inset: -30px;
  background:
    radial-gradient(circle at 25% 20%, rgba(239,47,194,0.28), transparent 55%),
    radial-gradient(circle at 80% 85%, rgba(138,43,226,0.24), transparent 55%);
  filter: blur(40px);
  z-index: -1;
}
.about-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.14);
  background: var(--bg-card);
  aspect-ratio: 4/5;
  position: relative;
  box-shadow: 0 30px 60px -24px rgba(0,0,0,.65);
}
.about-frame::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(239,47,194,0.15), transparent 50%);
  pointer-events: none;
}
.about-frame::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg, rgba(239,47,194,.55), rgba(138,43,226,.35) 45%, transparent 70%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
}
.about-frame img { width: 100%; height: 100%; object-fit: cover; }

.about-frame-immersive img {
  animation: kenBurns 16s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes kenBurns {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.14) translate(-2%, -2%); }
}
@media (prefers-reduced-motion: reduce) {
  .about-frame-immersive img { animation: none; }
}

.about-badge {
  position: absolute; bottom: -26px; right: -26px;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  border-radius: 50%;
  width: 120px; height: 120px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  box-shadow: 0 12px 34px -10px rgba(239,47,194,.7);
}
.about-badge .badge-num { font-family: var(--gothic); font-size: 1.6rem; }
.about-badge .badge-label { font-size: 0.6rem; letter-spacing: 0.05em; }

.about-text p { color: var(--grey); margin-bottom: 16px; }

.pillars {
  display: flex;
  margin-top: 38px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.pillars span {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  transition: background .35s var(--ease), color .35s var(--ease);
}
.pillars span::before {
  font-size: 1.3rem;
  color: var(--pink-soft);
  transition: transform .35s var(--ease), color .35s var(--ease);
}
.pillars span:nth-child(1)::before { content: '✒'; }
.pillars span:nth-child(2)::before { content: '✿'; }
.pillars span:nth-child(3)::before { content: '✦'; }
.pillars span:not(:last-child)::after {
  content: '';
  position: absolute; right: 0; top: 22%; bottom: 22%;
  width: 1px;
  background: var(--line);
}
.pillars span:hover {
  background: linear-gradient(180deg, rgba(239,47,194,0.1), transparent);
  color: var(--pink-soft);
}
.pillars span:hover::before { transform: translateY(-3px) scale(1.1); }
.pillars-caption { margin-top: 14px; font-size: 0.78rem; color: var(--grey-dim); letter-spacing: 0.03em; }

.stats { display: flex; gap: 40px; margin-top: 36px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: var(--gothic);
  font-size: 2.2rem;
  color: var(--white);
  text-shadow: 0 0 16px rgba(239,47,194,.4);
}
.stat-label { font-size: 0.75rem; color: var(--grey); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 4px; }

/* ==========================================================================
   SERVICES
   ========================================================================== */
.services { background: var(--bg-soft); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 38px 30px;
  transition: transform .4s var(--ease), border-color .4s var(--ease), background .4s var(--ease);
}
.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(239,47,194,0.4);
  background: linear-gradient(160deg, rgba(239,47,194,0.08), var(--bg-card));
}
.service-icon {
  width: 54px; height: 54px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  font-size: 1.4rem;
  color: var(--pink-soft);
  margin-bottom: 22px;
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--pink), var(--purple));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 0 24px rgba(239,47,194,.5);
}
.service-card h3 { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; margin-bottom: 10px; }
.service-card p { color: var(--grey); font-size: 0.92rem; }

/* ==========================================================================
   TEAM
   ========================================================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.team-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  padding-bottom: 26px;
  scroll-margin-top: 110px;
  transition: transform .4s var(--ease), border-color .4s var(--ease);
}
.team-card:hover, .team-card.touch-active { transform: translateY(-8px); border-color: rgba(239,47,194,0.35); }

.team-photo {
  position: relative;
  aspect-ratio: 3/3.4;
  overflow: hidden;
  background: linear-gradient(160deg, #1c1a22, #0d0c10);
}
.team-photo img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(0.3);
  transition: transform .6s var(--ease), filter .5s var(--ease);
}
.team-card:hover .team-photo img, .team-card.touch-active .team-photo img { transform: scale(1.08); filter: grayscale(0); }

.team-room-label {
  position: absolute; top: 16px; left: 16px; z-index: 3;
  padding: 7px 14px;
  background: rgba(10,10,12,0.65);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px;
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pink-soft);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .5s var(--ease) .1s, transform .5s var(--ease) .1s;
  pointer-events: none;
}
.team-card:hover .team-room-label, .team-card.touch-active .team-room-label { opacity: 1; transform: translateY(0); }

.team-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 20px;
  background: linear-gradient(0deg, rgba(10,10,12,0.92) 5%, rgba(10,10,12,0) 55%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s var(--ease);
}
.team-card:hover .team-overlay, .team-card.touch-active .team-overlay { opacity: 1; pointer-events: auto; }

.team-socials { display: flex; gap: 12px; }
.social-link {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.04);
  transition: background .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.social-link svg { width: 15px; height: 15px; fill: var(--white); }
.social-link:hover {
  background: linear-gradient(135deg, var(--pink), var(--purple));
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px -4px rgba(239,47,194,.6);
}

.team-name { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; margin: 20px 24px 2px; }
.team-aka { font-size: 0.85rem; font-weight: 400; color: var(--grey); }
.team-role {
  display: block; margin: 0 24px 12px;
  font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--pink-soft);
}
.team-bio { margin: 0 24px; font-size: 0.86rem; color: var(--grey); }

/* ---------- Team card: apertura 3D a libro ---------- */
.team-card-book {
  position: relative;
  padding-bottom: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  perspective: 1700px;
  touch-action: manipulation;
}
.team-card-book:hover,
.team-card-book.touch-active,
.team-card-book.is-flipped {
  transform: none;
  border-color: transparent;
}
.team-book {
  position: relative;
  display: grid;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform .9s cubic-bezier(.2,.72,.18,1);
  will-change: transform;
}
.team-card-book.touch-active .team-book,
.team-card-book.is-flipped .team-book {
  transform: rotateY(-180deg);
}
.team-book-face {
  grid-area: 1 / 1;
  position: relative;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: 0 20px 42px rgba(0,0,0,.18);
}
.team-book-face::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 12px;
  z-index: 6;
  background: linear-gradient(90deg, rgba(0,0,0,.34), rgba(255,255,255,.05), transparent);
  pointer-events: none;
}
.team-book-front { padding-bottom: 26px; transform: rotateY(0deg); }
.team-book-back {
  transform: rotateY(180deg);
  background: #111015;
}
.team-book-trigger {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.team-book-trigger:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: -5px;
}

.team-book-hint {
  position: absolute;
  top: 16px; right: 16px; z-index: 5;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  background: rgba(10,10,12,.68);
  backdrop-filter: blur(8px);
  color: var(--white);
  font-size: .61rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(0,0,0,.22);
  pointer-events: none;
}
.team-book-hint b { color: var(--pink-soft); font-size: .85rem; transition: transform .35s var(--ease); }

.team-book-room {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(.92) contrast(1.04);
  transform: scale(1.035);
  transition: transform 1.2s var(--ease), filter .7s var(--ease);
}
.team-card-book.touch-active .team-book-room,
.team-card-book.is-flipped .team-book-room { transform: scale(1); filter: saturate(1.04) contrast(1.04); }
.team-book-back-shade {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(8,7,10,.08) 28%, rgba(8,7,10,.3) 52%, rgba(8,7,10,.96) 100%);
}
.team-book-back .team-room-label {
  opacity: 1;
  transform: none;
  z-index: 4;
  color: var(--white);
}
.team-book-back-copy {
  position: absolute;
  left: 24px; right: 24px; bottom: 82px; z-index: 3;
  color: var(--white);
}
.team-book-back-copy > span {
  color: var(--pink-soft);
  font-size: .62rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
}
.team-book-back-copy h3 {
  margin: 5px 0 7px;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.2vw, 2rem);
  line-height: 1;
}
.team-book-back-copy p { color: rgba(255,255,255,.72); font-size: .78rem; line-height: 1.55; }
.team-book-back .team-overlay {
  z-index: 4;
  opacity: 1;
  pointer-events: auto;
  justify-content: flex-start;
  padding: 0 24px 24px;
  background: none;
}
.team-card-book:focus-visible { outline: 2px solid var(--pink); outline-offset: 6px; }

@media (hover: hover) and (pointer: fine) {
  .team-card-book:hover .team-book { transform: rotateY(-180deg); }
  .team-card-book:hover .team-book-hint b { transform: translate(2px,-2px); }
  .team-card-book:hover .team-book-room { transform: scale(1); filter: saturate(1.04) contrast(1.04); }
}

@media (max-width: 520px) {
  .team-book-hint { top: 13px; right: 13px; }
  .team-book-back-copy { bottom: 78px; }
}
@media (prefers-reduced-motion: reduce) {
  .team-book { transition-duration: .01ms; }
  .team-book-room { transition: none; }
}

/* ==========================================================================
   GALLERY
   ========================================================================== */
.gallery { position: relative; overflow: hidden; }

.gallery-glow {
  position: absolute; border-radius: 50%; filter: blur(80px);
  pointer-events: none; z-index: 0;
  will-change: transform;
}
.gallery-glow-1 { width: 460px; height: 460px; background: rgba(239,47,194,0.14); top: -140px; left: 6%; animation: drift1 18s ease-in-out infinite; }
.gallery-glow-2 { width: 420px; height: 420px; background: rgba(138,43,226,0.16); bottom: -120px; right: 8%; animation: drift2 21s ease-in-out infinite; }

.gallery-spark-1 { top: 14%; left: 4%; animation-delay: .5s; }
.gallery-spark-2 { bottom: 10%; right: 5%; font-size: 1.1rem; animation-delay: 2.5s; color: var(--purple); }

@media (prefers-reduced-motion: reduce) {
  .gallery-glow, .gallery-spark-1, .gallery-spark-2 { animation: none; }
}

.gallery-filters { display: flex; gap: 26px; justify-content: center; margin-bottom: 52px; flex-wrap: wrap; padding-top: 16px; }

/* ---------- Filtri a "cartella": corpo + linguetta superiore ---------- */
.filter-btn {
  position: relative;
  z-index: 0;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 32px 14px 16px;
  background: linear-gradient(160deg, #1e1c24, #131217);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px 18px 18px 18px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.015em;
  color: var(--grey);
  box-shadow: 0 14px 30px -18px rgba(0,0,0,.75), inset 0 1px 0 rgba(255,255,255,.05);
  transition: transform .35s var(--ease), color .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease), box-shadow .35s var(--ease);
}
.filter-btn::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: -11px; left: 0;
  width: 42%;
  height: 20px;
  background: linear-gradient(160deg, #1e1c24, #131217);
  border: 1px solid rgba(255,255,255,0.1);
  border-bottom: none;
  clip-path: polygon(0 100%, 0 0, 82% 0, 100% 100%);
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.filter-icon-wrap {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  transition: background .3s var(--ease);
}
.filter-icon { width: 16px; height: 16px; flex-shrink: 0; fill: currentColor; opacity: .85; }

.filter-btn:hover {
  color: var(--white);
  border-color: rgba(239,47,194,.5);
  transform: translateY(-5px);
  box-shadow: 0 20px 36px -18px rgba(239,47,194,.4), inset 0 1px 0 rgba(255,255,255,.08);
}
.filter-btn:hover::before { border-color: rgba(239,47,194,.5); }
.filter-btn:hover .filter-icon-wrap { background: rgba(239,47,194,.18); }

.filter-btn.active {
  background: linear-gradient(135deg, var(--pink), var(--purple));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 20px 40px -16px rgba(239,47,194,.65), inset 0 1px 0 rgba(255,255,255,.25);
}
.filter-btn.active::before {
  background: linear-gradient(135deg, var(--pink), var(--purple));
  border-color: transparent;
}
.filter-btn.active .filter-icon-wrap { background: rgba(255,255,255,.22); }
.filter-btn.active .filter-icon { opacity: 1; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  position: relative;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1/1;
  background: var(--bg-card);
  border: 1px solid var(--line);
  transition: transform .4s var(--ease), opacity .4s var(--ease);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item.hide { display: none; }

.gallery-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end;
  padding: 20px;
  background: linear-gradient(0deg, rgba(10,10,12,0.88), transparent 60%);
  opacity: 0; transition: opacity .35s var(--ease);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-style {
  font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--pink-soft);
}

/* Tag autore — angolo in alto a destra: appare "gocciolando" a cascata */
.artist-tag {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  padding: 6px 14px;
  background: rgba(10,10,12,0.7);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
  opacity: 0;
}
.artist-tag a {
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.02em;
  color: var(--white);
  transition: color .3s;
}
.artist-tag a:hover { color: var(--pink-soft); }

.gallery-item.visible .artist-tag {
  animation: tagDrip 1.15s cubic-bezier(.22,.61,.36,1) forwards;
  animation-delay: .15s;
}
.gallery-item:nth-child(2).visible .artist-tag { animation-delay: .3s; }
.gallery-item:nth-child(3).visible .artist-tag { animation-delay: .45s; }
.gallery-item:nth-child(4).visible .artist-tag { animation-delay: .6s; }
.gallery-item:nth-child(5).visible .artist-tag { animation-delay: .75s; }
.gallery-item:nth-child(6).visible .artist-tag { animation-delay: .9s; }

@keyframes tagDrip {
  0% { opacity: 0; transform: translateY(-30px) scaleY(1.6) scaleX(0.7); border-radius: 50%; }
  60% { opacity: 1; }
  100% { opacity: 1; transform: translateY(0) scaleY(1) scaleX(1); border-radius: 999px; }
}
@media (prefers-reduced-motion: reduce) {
  .artist-tag { opacity: 1; }
  .gallery-item.visible .artist-tag { animation: none; }
}

/* ========================================================================== 
   LIGHTBOX — EDITORIAL DETAIL
   ========================================================================== */
.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(20px, 4vw, 48px);
  background: rgba(4,4,6,.93);
  backdrop-filter: blur(16px);
  opacity: 0; visibility: hidden;
  transition: opacity .42s var(--ease), visibility .42s var(--ease);
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-dialog {
  width: min(1060px, 94vw);
  height: min(78vh, 700px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 340px);
  gap: 28px;
}
.lightbox-media {
  min-width: 0;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(10px, 1.6vw, 20px);
  overflow: hidden;
  background: #101012;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s var(--ease), transform .55s var(--ease);
}
.lightbox.open .lightbox-media { opacity: 1; transform: translateY(0); }
.lightbox-media img {
  display: block;
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
  border-radius: 8px;
}
.lightbox-panel {
  position: relative;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(32px, 4vw, 52px) clamp(28px, 3vw, 40px);
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s var(--ease), transform .55s var(--ease);
  transition-delay: .1s;
}
.lightbox.open .lightbox-panel { opacity: 1; transform: translateY(0); }
.lightbox-close {
  position: fixed; top: 22px; right: 28px; z-index: 3;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.14); border-radius: 50%;
  background: rgba(10,10,12,.5);
  font-size: 1.7rem; color: var(--white); line-height: 1; font-weight: 300;
  transition: color .3s, transform .35s var(--ease), border-color .3s;
}
.lightbox-close:hover { color: var(--pink-soft); border-color: rgba(255,255,255,.3); transform: rotate(90deg); }
.lightbox-eyebrow {
  margin: 0 0 14px;
  color: var(--grey-dim);
  font-size: .66rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
}
.lightbox-panel h2 {
  margin: 0 0 18px;
  font-family: var(--serif); font-size: clamp(1.8rem, 2.6vw, 2.4rem); font-weight: 600; line-height: 1.1;
}
.lightbox-description { color: var(--grey); font-size: .9rem; line-height: 1.7; }
.lightbox-meta {
  margin: 26px 0 30px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.lightbox-meta > div { display: grid; grid-template-columns: 72px 1fr; gap: 16px; padding: 12px 0; }
.lightbox-meta > div + div { border-top: 1px solid var(--line); }
.lightbox-meta dt { color: var(--grey-dim); font-size: .65rem; letter-spacing: .14em; text-transform: uppercase; }
.lightbox-meta dd { margin: 0; color: var(--white); font-size: .82rem; }
.lightbox-meta a { color: var(--white); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(255,255,255,.25); }
.lightbox-meta a:hover { text-decoration-color: var(--pink); }
.lightbox-cta { align-self: flex-start; padding: 13px 22px; font-size: .68rem; }
body.lightbox-open { overflow: hidden; }

@media (max-width: 800px) {
  .lightbox { padding: 15px; align-items: center; }
  .lightbox-dialog {
    width: min(94vw, 560px); height: auto; max-height: 91vh;
    grid-template-columns: 1fr; grid-template-rows: minmax(240px, 44vh) auto;
    overflow-y: auto;
  }
  .lightbox-panel { padding: 30px 26px 34px; }
  .lightbox-close { top: 18px; right: 18px; }
}
@media (max-width: 480px) {
  .lightbox-panel h2 { font-size: 1.7rem; }
  .lightbox-cta { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .lightbox, .lightbox-media, .lightbox-panel { transition: none; }
  .lightbox-media, .lightbox-panel { transform: none; }
}

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.testimonials { background: var(--bg-soft); }
.testimonial-slider { position: relative; max-width: 720px; margin: 0 auto; text-align: center; }
.t-nav-btn {
  position: absolute; top: 110px; z-index: 5;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--line);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  transition: background .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.t-nav-btn svg { width: 20px; height: 20px; }
.t-nav-btn:hover { background: linear-gradient(135deg, var(--pink), var(--purple)); border-color: transparent; transform: scale(1.06); }
.t-nav-prev { left: -64px; }
.t-nav-next { right: -64px; }

@media (max-width: 900px) {
  .t-nav-prev { left: -8px; }
  .t-nav-next { right: -8px; }
}
@media (max-width: 640px) {
  .t-nav-btn { width: 38px; height: 38px; top: 80px; }
  .t-nav-btn svg { width: 16px; height: 16px; }
  .t-nav-prev { left: -4px; }
  .t-nav-next { right: -4px; }
}
.testimonial-track { position: relative; min-height: 460px; }
.testimonial-card {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center;
  opacity: 0; transform: translateY(14px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
  pointer-events: none;
}
.testimonial-card.active { opacity: 1; transform: translateY(0); pointer-events: auto; }
.t-photo {
  display: block;
  width: 320px; height: 256px;
  object-fit: contain;
  background: var(--bg-card);
  border-radius: 16px;
  margin: 0 auto 22px;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 24px 44px -22px rgba(0,0,0,.7);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  cursor: zoom-in;
}
.t-photo:hover { transform: scale(1.03); box-shadow: 0 28px 50px -20px rgba(0,0,0,.8); }

.t-lightbox {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(8,7,10,.92);
  padding: 40px;
  opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s var(--ease);
}
.t-lightbox.active { opacity: 1; visibility: visible; }
.t-lightbox img {
  max-width: 90vw; max-height: 88vh;
  border-radius: 12px;
  box-shadow: 0 40px 80px rgba(0,0,0,.6);
}
.t-lightbox-close {
  position: absolute; top: 24px; right: 28px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--bg-card); border: 1px solid var(--line);
  color: var(--white); font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.t-lightbox-close:hover { background: linear-gradient(135deg, var(--pink), var(--purple)); border-color: transparent; }

@media (max-width: 640px) {
  .t-photo { width: 260px; height: 208px; }
}
.t-stars { display: flex; gap: 3px; margin-bottom: 16px; }
.t-stars svg { width: 15px; height: 15px; fill: var(--pink); }
.testimonial-card p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 18px;
}
.t-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.t-avatar {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-weight: 700; font-size: 0.95rem; color: var(--white);
  background: linear-gradient(135deg, var(--pink), var(--purple));
}
.t-meta-text { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.t-author { color: var(--pink-soft); font-size: 0.85rem; letter-spacing: 0.05em; }
.t-source {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.72rem; color: var(--grey-dim); letter-spacing: 0.02em;
}
.t-source svg { width: 14px; height: 14px; flex-shrink: 0; }

@media (max-width: 640px) {
  .testimonial-track { min-height: 460px; }
  .testimonial-card p { font-size: 1.25rem; }
}

.testimonial-dots { display: flex; justify-content: center; gap: 10px; margin-top: 30px; }
.testimonial-dots span {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--line); cursor: var(--cursor);
  transition: background .3s, transform .3s;
}
.testimonial-dots span.active { background: var(--pink); transform: scale(1.3); }

.t-rating-badge {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 36px; padding: 10px 20px;
  border: 1px solid var(--line); border-radius: 100px;
  color: var(--grey); font-size: 0.85rem;
  transition: border-color .3s, color .3s;
}
.t-rating-badge:hover { border-color: var(--pink-soft); color: var(--white); }
.t-rating-score { font-weight: 700; color: var(--white); }
.t-rating-badge .t-stars { margin-bottom: 0; }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact { overflow: hidden; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 70px;
  position: relative; z-index: 2;
}
.contact-grid > * { min-width: 0; }
.contact-info p:not(.section-eyebrow) { color: var(--grey); max-width: 420px; }

.contact-list { margin-top: 34px; display: flex; flex-direction: column; gap: 18px; }
.contact-list li { display: flex; flex-direction: column; gap: 2px; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.contact-list strong { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--pink-soft); }
.contact-list span { color: var(--white); }
.contact-list a:hover { color: var(--pink-soft); }
.hours-lines { display: flex; flex-direction: column; gap: 4px; }
.hours-day { color: var(--pink-soft); font-weight: 600; margin-right: 2px; }
.hours-part { color: var(--grey); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; margin-right: 2px; }
.hours-dot { margin: 0 6px; color: var(--grey-dim); }

.contact-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.contact-photos .contact-photo { flex: 1 1 190px; max-width: 220px; }
.contact-photo {
  position: relative;
  margin-top: 28px;
  max-width: 260px;
  aspect-ratio: 3/4;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.contact-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.contact-photo:hover img { transform: scale(1.06); }
.contact-photo-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 16px;
  background: linear-gradient(0deg, rgba(10,10,12,0.9), transparent 70%);
  font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--white);
}

.social-row { display: flex; gap: 14px; margin-top: 32px; }

.contact-form {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 6px 26px 26px 26px;
  padding: 44px 40px 40px;
  isolation: isolate;
}
.contact-form::before {
  content: '';
  position: absolute; top: 0; left: 28px; right: 28px; height: 2px;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  border-radius: 0 0 3px 3px;
}
.contact-form::after {
  content: '';
  position: absolute; inset: 14px;
  pointer-events: none;
  z-index: -1;
  background:
    linear-gradient(rgba(239,47,194,.5), rgba(239,47,194,.5)) top left / 22px 1px no-repeat,
    linear-gradient(rgba(239,47,194,.5), rgba(239,47,194,.5)) top left / 1px 22px no-repeat,
    linear-gradient(rgba(138,43,226,.5), rgba(138,43,226,.5)) bottom right / 22px 1px no-repeat,
    linear-gradient(rgba(138,43,226,.5), rgba(138,43,226,.5)) bottom right / 1px 22px no-repeat;
  background-position: top left, top left, bottom right, bottom right;
  opacity: .55;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 22px; display: flex; flex-direction: column; gap: 9px; }
.form-group label {
  font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--grey);
  display: flex; align-items: center; gap: 8px;
  min-width: 0;
}
.form-group label span { min-width: 0; }
.field-icon { width: 15px; height: 15px; flex-shrink: 0; color: var(--pink-soft); }
.form-group input, .form-group select {
  width: 100%;
  min-width: 0;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--line);
  border-radius: 0;
  padding: 10px 4px;
  color: var(--white);
  font-family: inherit;
  font-size: 0.92rem;
  transition: border-color .3s, box-shadow .3s;
}
.form-group textarea {
  width: 100%;
  min-width: 0;
  background-color: var(--bg-soft);
  background-image: repeating-linear-gradient(var(--bg-soft) 0px, var(--bg-soft) 30px, rgba(255,255,255,0.06) 31px, var(--bg-soft) 32px);
  background-position: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 16px;
  color: var(--white);
  font-family: inherit;
  font-size: 0.92rem;
  line-height: 32px;
  transition: border-color .3s, box-shadow .3s;
  resize: vertical;
}
.form-group select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%239a97a0' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
}
.form-group select option { background: var(--bg-soft); color: var(--white); }
.form-group input:focus, .form-group select:focus {
  outline: none;
  border-image: linear-gradient(90deg, var(--pink), var(--purple)) 1;
  border-bottom-width: 2px;
}
.form-group textarea:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(239,47,194,0.15);
}
.form-hint { margin-top: 12px; font-size: 0.78rem; color: var(--grey); text-align: center; }
.form-hint a { color: var(--pink-soft); text-decoration: underline; text-underline-offset: 2px; }
.form-note { margin-top: 8px; font-size: 0.85rem; color: var(--pink-soft); min-height: 1.2em; text-align: center; }

.btn-whatsapp {
  margin-top: 14px;
  gap: 10px;
  background: transparent;
  border: 1px solid rgba(37,211,102,.45);
  color: #25D366;
}
.btn-whatsapp svg { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }
.btn-whatsapp:hover { background: rgba(37,211,102,.1); border-color: #25D366; color: #2fe07a; }

/* ---------- Contact form success card ---------- */
.form-success {
  background: var(--bg-card);
  border: 1px solid rgba(239,47,194,0.35);
  border-radius: var(--radius);
  padding: 48px 40px;
  text-align: center;
  animation: successIn .5s var(--ease);
}
@keyframes successIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.form-success-icon {
  width: 64px; height: 64px;
  margin: 0 auto 22px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 10px 28px -8px rgba(239,47,194,.7);
}
.form-success h3 {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.form-success > p {
  color: var(--grey);
  max-width: 400px;
  margin: 0 auto;
}
.form-success-contacts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin: 28px 0 18px;
}
.form-success-contacts a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--white);
  transition: border-color .3s var(--ease), background .3s var(--ease), transform .3s var(--ease);
}
.form-success-contacts a svg { width: 16px; height: 16px; fill: var(--pink-soft); flex-shrink: 0; }
.form-success-contacts a:hover {
  border-color: transparent;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  transform: translateY(-2px);
}
.form-success-contacts a:hover svg { fill: #fff; }
.form-success-note { font-size: 0.85rem; color: var(--grey-dim); margin-bottom: 26px; }

/* ---------- Map ---------- */
.map-section { padding-top: 0; }
.map-frame {
  margin-top: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/7;
  filter: grayscale(0.4) contrast(1.05);
  transition: filter .4s var(--ease);
}
.map-frame:hover { filter: grayscale(0) contrast(1); }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-cta { margin-top: 30px; }

@media (max-width: 760px) {
  .map-frame { aspect-ratio: 4/5; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { border-top: 1px solid var(--line); padding-top: 60px; background: var(--bg-soft); }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 24px;
  padding-bottom: 40px;
}
.footer-brand .brand-logo { height: 22px; }
.footer-nav { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-nav a { color: var(--grey); font-size: 0.85rem; transition: color .3s; }
.footer-nav a:hover { color: var(--pink-soft); }
.footer-socials { display: flex; gap: 12px; }

.footer-bottom { border-top: 1px solid var(--line); padding: 22px 0; }
.footer-bottom p { text-align: center; font-size: 0.78rem; color: var(--grey-dim); }
/* ==========================================================================
   TO TOP
   ========================================================================== */
.to-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 400;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--line);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .35s var(--ease), visibility .35s var(--ease), transform .35s var(--ease), background .35s var(--ease), border-color .35s var(--ease);
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: linear-gradient(135deg, var(--pink), var(--purple)); border-color: transparent; }

/* ==========================================================================
   DEV CREDIT BADGE
   ========================================================================== */
.dev-credit {
  position: fixed; bottom: 18px; left: 18px; z-index: 400;
  display: flex; align-items: center; gap: 6px;
  padding: 7px 12px 7px 10px;
  border-radius: 999px;
  background: rgba(20,18,24,.35);
  border: 1px solid rgba(255,255,255,.08);
  color: var(--grey-dim);
  font-size: 0.68rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  opacity: 0.5;
  backdrop-filter: blur(4px);
  transition: opacity .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.dev-credit svg { width: 12px; height: 12px; flex-shrink: 0; }
.dev-credit strong { color: var(--grey); font-weight: 600; transition: color .3s var(--ease); }
.dev-credit:hover {
  opacity: 1;
  color: var(--white);
  border-color: transparent;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(239,47,194,.25);
}
.dev-credit:hover strong { color: var(--white); }
.dev-credit-short { display: none; }

@media (max-width: 640px) {
  .dev-credit { left: 12px; bottom: 12px; padding: 6px 11px 6px 9px; font-size: 0.64rem; opacity: 0.45; }
  .dev-credit-full { display: none; }
  .dev-credit-short { display: inline; }
}

/* ==========================================================================
   PAGE HERO (banner for inner pages)
   ========================================================================== */
.page-hero {
  position: relative;
  min-height: 42vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 160px 0 70px;
  overflow: hidden;
}
.page-hero .hero-glow { z-index: 0; }
.page-hero-content { position: relative; z-index: 2; }
.breadcrumb {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--grey); margin-bottom: 18px;
}
.breadcrumb a { color: var(--grey); transition: color .3s; }
.breadcrumb a:hover { color: var(--pink-soft); }
.breadcrumb span { color: var(--pink); }
.breadcrumb .sep { color: var(--grey-dim); }
.page-hero-title {
  font-family: var(--page-title);
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 400;
  color: var(--white);
  text-shadow: 0 0 16px rgba(239,47,194,.45), 0 0 50px rgba(138,43,226,.25);
  animation: heroTitleIn .9s var(--ease) .1s both;
  font-variant-ligatures: none no-common-ligatures no-discretionary-ligatures no-historical-ligatures no-contextual;
  font-feature-settings: "liga" 0, "dlig" 0, "clig" 0, "calt" 0, "hlig" 0, "rlig" 0;
}
.page-hero-desc {
  max-width: 520px;
  margin: 18px auto 0;
  color: var(--grey);
}

/* ==========================================================================
   TEASER GRIDS (homepage previews)
   ========================================================================== */
.services-grid.teaser,
.team-grid.teaser { grid-template-columns: repeat(3, 1fr); }

.section-more { display: flex; justify-content: center; margin-top: 46px; }

/* ==========================================================================
   CTA BANNER
   ========================================================================== */
.cta-banner {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(239,47,194,0.12), rgba(138,43,226,0.08));
  padding: 70px 40px;
  text-align: center;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(239,47,194,.25), transparent 55%);
  pointer-events: none;
}
.cta-banner-content { position: relative; z-index: 1; }
.cta-banner .section-title { margin-bottom: 14px; }
.cta-banner p { color: var(--grey); max-width: 460px; margin: 0 auto 30px; }

/* ==========================================================================
   ANIMAZIONI AVANZATE
   ========================================================================== */

/* ---------- Barra di avanzamento scroll ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  transform: scaleX(0); transform-origin: 0 50%;
  z-index: 600; pointer-events: none;
  will-change: transform;
}

/* ---------- Stagger sui reveal (impostato via JS) ---------- */
.reveal { transition-delay: var(--reveal-delay, 0s); }

/* ---------- Reveal a tendina sulle immagini principali ----------
   Il clip va sui figli, non sul contenitore: un elemento con area azzerata
   non risulta mai "in vista" per l'IntersectionObserver e resterebbe nascosto. */
.mask-reveal > img,
.mask-reveal > iframe,
.mask-reveal > .contact-photo-caption {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.2s var(--ease), transform .6s var(--ease);
}
.mask-reveal.visible > img,
.mask-reveal.visible > iframe,
.mask-reveal.visible > .contact-photo-caption { clip-path: inset(0 0 0 0); }

/* ---------- Titoli parola per parola ---------- */
.section-title.title-split { opacity: 1; transform: none; }
.title-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.4em);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.title-split.visible .title-word { opacity: 1; transform: translateY(0); }

/* ---------- Filtri gallery animati ---------- */
/* ---------- Filtro gallery: uscita "a magnete" (FLIP) ---------- */
.gallery-item.exiting {
  opacity: 0;
  transform: scale(0.85);
  pointer-events: none;
  z-index: 0;
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.gallery-item.entering { opacity: 0; transform: scale(0.85); }

/* ---------- Social del team a cascata ---------- */
.team-socials .social-link {
  opacity: 0; transform: translateY(12px);
  transition: opacity .45s var(--ease), transform .45s var(--ease), background .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.team-card:hover .team-socials .social-link,
.team-card.touch-active .team-socials .social-link { opacity: 1; transform: translateY(0); }
.team-socials .social-link:nth-child(2) { transition-delay: .08s; }
.team-socials .social-link:nth-child(3) { transition-delay: .16s; }
.team-card:hover .team-socials .social-link:hover,
.team-card.touch-active .team-socials .social-link:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, var(--pink), var(--purple));
  border-color: transparent;
  box-shadow: 0 6px 16px -4px rgba(239,47,194,.6);
}

@media (prefers-reduced-motion: reduce) {
  .mask-reveal > img,
  .mask-reveal > iframe,
  .mask-reveal > .contact-photo-caption { clip-path: none; }
  .title-word { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   MOBILE
   ========================================================================== */
@media (max-width: 980px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .services-grid, .services-grid.teaser { grid-template-columns: repeat(2, 1fr); }
  .team-grid, .team-grid.teaser { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .styles-grid { grid-template-columns: repeat(3, 1fr); }
  .about-visual { max-width: 420px; margin: 0 auto; }
}

@media (max-width: 760px) {
  .main-nav {
    position: fixed; top: 0; right: 0; height: 100vh; width: min(78vw, 320px);
    background: rgba(10,10,12,0.98);
    backdrop-filter: blur(16px);
    border-left: 1px solid var(--line);
    display: flex; align-items: center;
    transform: translateX(100%);
    transition: transform .45s var(--ease);
    z-index: 550;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: 30px; padding-left: 40px; }
  .nav-link { font-size: 1.1rem; }

  .nav-cta { display: none; }
  .burger { display: flex; }

  .nav-backdrop {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity .45s var(--ease);
    /* Deve restare sotto a .site-header (che ha il proprio z-index:500 e crea un
       contesto di stacking): un valore più alto qui "vincerebbe" sempre contro il
       menu e la X di chiusura, che sono nidificati dentro l'header e non possono
       superare il livello del proprio genitore, anche con uno z-index più alto. */
    z-index: 495;
  }
  body.nav-open { overflow: hidden; }
  body.nav-open .nav-backdrop { opacity: 1; pointer-events: auto; }

  .form-row { grid-template-columns: 1fr; }
  .services-grid, .services-grid.teaser,
  .team-grid, .team-grid.teaser,
  .gallery-grid { grid-template-columns: 1fr; }
  .styles-grid { grid-template-columns: repeat(2, 1fr); }

  section { padding: 90px 0; }
  .contact-form { padding: 28px; }

  /* Impilati a piena larghezza: con flex-wrap ogni riga si centrava per conto
     suo, creando uno zig-zag quando i bottoni andavano a capo. */
  .gallery-filters { flex-direction: column; align-items: stretch; gap: 14px; }
  .filter-btn { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-title, .page-hero-title { animation: none; }
}

/* Titoli sempre visibili, anche senza JavaScript o durante il caricamento del font. */
.section-title.reveal,
.section-title.title-split,
.section-title .title-word,
.page-hero-title {
  opacity: 1;
  transform: none;
  animation: none;
  transition: none;
}


/* ========================================================================== 
   SERVICES EDITORIAL REDESIGN
   ========================================================================== */
.services-editorial { background: var(--bg-soft); position: relative; }
.services-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .8fr);
  gap: clamp(40px, 8vw, 110px);
  align-items: end;
  margin-bottom: 64px;
}
.services-intro .section-title { margin-bottom: 0; }
.services-intro-copy { color: var(--grey); max-width: 520px; font-size: 1rem; }
.service-features { display: grid; gap: 34px; }
.service-feature {
  min-height: 530px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0,0,0,.22);
}
.service-feature-reverse { grid-template-columns: minmax(340px, .92fr) minmax(0, 1.08fr); }
.service-feature-reverse .service-feature-media { order: 2; }
.service-feature-media { position: relative; min-height: 530px; overflow: hidden; background: #09090b; }
.service-feature-media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 56%, rgba(10,10,12,.76));
  pointer-events: none;
}
.service-feature-media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.9) contrast(1.04);
  transition: transform 1.1s var(--ease), filter .7s var(--ease);
}
.service-feature:hover .service-feature-media img { transform: scale(1.045); filter: saturate(1.05) contrast(1.05); }
.service-image-label {
  position: absolute; left: 26px; bottom: 22px; z-index: 1;
  color: var(--white); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
}
.service-feature-content {
  position: relative;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: clamp(42px, 6vw, 76px);
}
.service-number {
  position: absolute; top: 25px; right: 30px;
  font-family: var(--gothic); font-size: 3.5rem; line-height: 1;
  color: rgba(255,255,255,.045);
}
.service-kicker {
  margin-bottom: 14px; color: var(--pink-soft); font-size: .72rem;
  font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
}
.service-feature-content h3 {
  max-width: 460px; margin-bottom: 20px;
  font-family: var(--serif); font-size: clamp(2rem, 3.2vw, 3rem); font-weight: 600; line-height: 1.05;
}
.service-feature-content > p:not(.service-kicker) { color: var(--grey); max-width: 500px; }
.service-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.service-tags span {
  padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--grey); font-size: .68rem; letter-spacing: .05em;
}
.service-text-link {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 30px;
  color: var(--white); font-size: .76rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
}
.service-text-link span { color: var(--pink); transition: transform .3s var(--ease); }
.service-text-link:hover span { transform: translateX(6px); }

.service-process { background: var(--bg); }
.process-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: 54px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.process-step { position: relative; min-height: 250px; padding: 38px 30px 34px; }
.process-step:not(:last-child) { border-right: 1px solid var(--line); }
.process-step > span {
  display: block; margin-bottom: 36px; font-family: var(--gothic); font-size: 2.4rem;
  color: var(--pink); text-shadow: 0 0 22px rgba(239,47,194,.3);
}
.process-step h3 { margin-bottom: 12px; font-family: var(--serif); font-size: 1.45rem; font-weight: 600; }
.process-step p { color: var(--grey); font-size: .86rem; }

.service-cta-section { padding-top: 20px; }
.service-cta-photo {
  position: relative; min-height: 500px; overflow: hidden; border: 1px solid var(--line); border-radius: 24px;
  display: flex; align-items: center; justify-content: center; padding: 64px 28px; text-align: center;
  background: url('../images/studio/interno.jpg') center 42% / cover no-repeat;
}
.service-cta-photo::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,12,.64), rgba(10,10,12,.9)), radial-gradient(circle at center, rgba(239,47,194,.16), transparent 58%);
}
.service-cta-content { position: relative; z-index: 1; max-width: 650px; }
.service-cta-content .section-title { margin-bottom: 16px; }
.service-cta-content > p:not(.section-eyebrow) { color: #c5c1c8; margin: 0 auto 30px; max-width: 570px; }

@media (max-width: 900px) {
  .services-intro { grid-template-columns: 1fr; gap: 22px; }
  .service-feature, .service-feature-reverse { grid-template-columns: 1fr; min-height: 0; }
  .service-feature-reverse .service-feature-media { order: 0; }
  .service-feature-media { min-height: 420px; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-step:nth-child(2) { border-right: 0; }
  .process-step:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .service-features { gap: 24px; }
  .service-feature { border-radius: 18px; }
  .service-feature-media { min-height: 330px; }
  .service-feature-content { padding: 38px 26px 42px; }
  .service-number { font-size: 2.8rem; }
  .process-grid { grid-template-columns: 1fr; }
  .process-step { min-height: 0; padding: 30px 8px; }
  .process-step:not(:last-child) { border-right: 0; border-bottom: 1px solid var(--line); }
  .process-step > span { margin-bottom: 18px; }
  .service-cta-photo { min-height: 440px; border-radius: 18px; }
}


/* ========================================================================== 
   SERVICES CARD GRID
   ========================================================================== */
.services-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}
.service-grid-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 22px 54px rgba(0,0,0,.2);
  transition: transform .45s var(--ease), border-color .45s var(--ease), box-shadow .45s var(--ease);
}
.service-grid-card:hover {
  transform: translateY(-8px);
  border-color: rgba(239,47,194,.38);
  box-shadow: 0 30px 70px rgba(0,0,0,.32), 0 0 32px rgba(239,47,194,.08);
}
.service-grid-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #09090b;
}
.service-grid-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(10,10,12,.72));
  pointer-events: none;
}
.service-grid-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.88) contrast(1.05);
  transition: transform .9s var(--ease), filter .6s var(--ease);
}
.service-grid-card:hover .service-grid-image img { transform: scale(1.06); filter: saturate(1.05) contrast(1.06); }
.service-grid-image > span {
  position: absolute;
  right: 18px;
  bottom: 12px;
  z-index: 1;
  font-family: var(--gothic);
  font-size: 2.1rem;
  line-height: 1;
  color: rgba(255,255,255,.82);
  text-shadow: 0 0 18px rgba(239,47,194,.55);
}
.service-grid-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 30px 28px 32px;
}
.service-grid-body .service-kicker { margin-bottom: 8px; }
.service-grid-body h3 {
  margin-bottom: 13px;
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 600;
  line-height: 1.15;
}
.service-grid-body > p:not(.service-kicker) { color: var(--grey); font-size: .88rem; }
.service-grid-body .service-text-link { margin-top: auto; padding-top: 24px; }

@media (max-width: 980px) {
  .services-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .services-card-grid { grid-template-columns: 1fr; gap: 20px; }
  .service-grid-card { border-radius: 17px; }
  .service-grid-body { padding: 26px 23px 29px; }
}


/* ========================================================================== 
   GALLERY WOW POLISH
   ========================================================================== */
.gallery-item {
  --pointer-x: 50%; --pointer-y: 50%;
  cursor: pointer;
  isolation: isolate;
  box-shadow: 0 18px 45px rgba(0,0,0,.16);
  transition: transform .55s var(--ease), opacity .4s var(--ease), border-color .4s, box-shadow .55s var(--ease);
}
.gallery-item::before {
  content: '';
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(255,255,255,.17), transparent 25%);
  opacity: 0;
  transition: opacity .42s var(--ease);
}
.gallery-item:hover {
  transform: translateY(-8px);
  border-color: rgba(239,47,194,.38);
  box-shadow: 0 30px 75px rgba(0,0,0,.38), 0 0 32px rgba(239,47,194,.1);
}
.gallery-item:hover::before { opacity: 1; }
.gallery-item:focus-visible { outline: 2px solid var(--pink); outline-offset: 5px; }
.gallery-item img { filter: saturate(.93) contrast(1.02); transition: transform .85s var(--ease), filter .65s var(--ease); }
.gallery-item:hover img { transform: scale(1.075); filter: saturate(1.08) contrast(1.06); }
.gallery-overlay {
  z-index: 2;
  justify-content: space-between;
  gap: 16px;
  opacity: .38;
  background: linear-gradient(0deg, rgba(7,7,9,.92), rgba(7,7,9,.08) 66%, transparent);
}
.gallery-overlay::after {
  content: 'Apri progetto  ↗';
  color: var(--white); font-size: .62rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  opacity: 0; transform: translateX(-10px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-item:hover .gallery-overlay::after { opacity: 1; transform: translateX(0); }
.gallery-style { font-weight: 600; }

.lightbox { overflow: hidden; }
.lightbox::before {
  content: '';
  position: absolute; inset: -12%;
  background-image: var(--lightbox-image);
  background-position: center; background-size: cover;
  filter: blur(95px) saturate(1.25);
  opacity: 0; transform: scale(1.12);
  transition: opacity .75s var(--ease);
  pointer-events: none;
}
.lightbox::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(4,4,6,.9), rgba(4,4,6,.72) 48%, rgba(14,5,17,.87));
  pointer-events: none;
}
.lightbox.open::before { opacity: .18; }
.lightbox > * { position: relative; z-index: 1; }
.lightbox > .lightbox-close { position: fixed; z-index: 3; }
.lightbox-dialog { perspective: 1200px; }
.lightbox-media {
  box-shadow: 0 30px 80px rgba(0,0,0,.34);
  transform: translateX(135px) scale(.955);
  transition: opacity .55s var(--ease), transform .82s cubic-bezier(.16,.84,.44,1), border-color .5s;
}
.lightbox.open .lightbox-media { transform: translateX(0) scale(1); border-color: rgba(255,255,255,.12); }
.lightbox-media img { transition: opacity .2s var(--ease), transform .25s var(--ease); }
.lightbox-panel {
  overflow: hidden;
  transform: translateX(46px);
  box-shadow: 0 30px 80px rgba(0,0,0,.3);
  transition: opacity .52s var(--ease), transform .68s var(--ease), border-color .5s;
  transition-delay: 0s;
}
.lightbox-panel::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--pink), var(--purple), transparent 85%);
  transform: scaleX(0); transform-origin: left;
  transition: transform .7s var(--ease) .42s;
}
.lightbox.open .lightbox-panel { transform: translateX(0); transition-delay: .25s; border-color: rgba(255,255,255,.12); }
.lightbox.open .lightbox-panel::before { transform: scaleX(1); }
.lightbox.is-switching .lightbox-media img { opacity: 0; transform: scale(.975) translateY(6px); }
.lightbox.is-switching .lightbox-panel > :not(.lightbox-navigation) { opacity: .18; transform: translateY(5px); }
.lightbox-panel > * { transition: opacity .22s var(--ease), transform .22s var(--ease); }
.lightbox-eyebrow { color: var(--pink-soft); }
.lightbox-panel h2 { font-size: clamp(2rem, 3vw, 2.8rem); }
.lightbox-navigation {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px;
  margin: -8px 0 25px;
}
.lightbox-navigation button {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--grey); font-size: .61rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  transition: color .3s var(--ease), transform .3s var(--ease);
}
.lightbox-navigation button:last-child { justify-self: end; }
.lightbox-navigation button:hover { color: var(--white); transform: translateX(-3px); }
.lightbox-navigation button:last-child:hover { transform: translateX(3px); }
.lightbox-navigation button span { color: var(--pink-soft); font-size: 1rem; }
.lightbox-counter { color: var(--grey-dim); font-size: .62rem; letter-spacing: .1em; }
.lightbox-cta { box-shadow: 0 14px 35px rgba(239,47,194,.18); }

@media (max-width: 800px) {
  .lightbox-media { transform: translateY(28px) scale(.97); }
  .lightbox.open .lightbox-media { transform: translateY(0) scale(1); }
  .lightbox-panel { transform: translateY(30px); }
  .lightbox.open .lightbox-panel { transform: translateY(0); }
}
@media (max-width: 520px) {
  .gallery-overlay::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-item, .gallery-item img, .lightbox-media, .lightbox-panel, .lightbox-panel::before { transition: none; }
  .lightbox-media, .lightbox-panel { transform: none; }
}
