/* ===== FONT ===== */
@font-face {
  font-family: 'Brans Bold';
  src: url('../assets/fonts/Brans-Bold.woff2') format('woff2'),
       url('../assets/fonts/Brans-Bold.woff') format('woff'),
       url('../assets/fonts/Brans-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ===== TOKENS ===== */
:root{
  --purple-900:#1F0E3D;
  --purple-800:#2C1457;
  --purple-700:#3A1B6E;
  --purple-600:#4F2A8F;
  --purple-glow-a:#7C4FE0;
  --purple-glow-b:#3E7BFF;
  --gold:#F2C078;
  --gold-light:#F8DBA6;
  --cream:#FBF7EF;
  --white:#FFFFFF;
  --ink:#1B1030;

  --font-display:'Brans Bold', 'Quicksand', sans-serif;
  --font-body:'Quicksand', -apple-system, BlinkMacSystemFont, sans-serif;

  --container:1180px;
  --radius:20px;
}

*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body.nav-locked, body.modal-locked{overflow:hidden;}
body{
  font-family:var(--font-body);
  color:var(--ink);
  background:var(--cream);
  overflow-x:hidden;
  line-height:1.5;
}
img{max-width:100%; display:block;}
a{color:inherit; text-decoration:none;}
ul{list-style:none;}
.container{
  max-width:var(--container);
  margin:0 auto;
  padding:0 24px;
}

/* ===== BUTTONS ===== */
.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:15px 30px;
  border-radius:100px;
  font-weight:700;
  font-size:15px;
  letter-spacing:.02em;
  border:2px solid transparent;
  cursor:pointer;
  transition:transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.btn-gold{
  background:var(--gold);
  color:var(--purple-900);
}
.btn-gold:hover{
  transform:translateY(-3px);
  box-shadow:0 12px 24px rgba(242,192,120,.35);
}
.btn-outline{
  border-color:rgba(255,255,255,.4);
  color:var(--white);
}
.btn-outline:hover{
  border-color:var(--white);
  background:rgba(255,255,255,.08);
  transform:translateY(-3px);
}
.btn-purple{
  background:var(--purple-700);
  color:var(--white);
}
.btn-purple:hover{
  transform:translateY(-3px);
  box-shadow:0 12px 24px rgba(58,27,110,.35);
}
.btn:active{transform:scale(.95); transition:transform .1s ease;}

/* ===== REVEAL ANIMATION ===== */
.reveal{
  opacity:0;
  transform:translateY(28px);
  transition:opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1);
}
.reveal.in-view{
  opacity:1;
  transform:translateY(0);
}

/* ===== HEADER ===== */
.site-header{
  position:fixed;
  top:0; left:0; right:0;
  z-index:200;
  padding:18px 0;
  transition:background .3s ease, padding .3s ease, box-shadow .3s ease;
}
.site-header.scrolled{
  background:rgba(31,14,61,.85);
  backdrop-filter:blur(12px);
  padding:12px 0;
  box-shadow:0 8px 30px rgba(0,0,0,.15);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}
.logo{
  display:inline-flex;
  align-items:center;
}
.logo-img{
  height:32px;
  width:auto;
  transition:transform .3s ease;
}
.logo:hover .logo-img{transform:scale(1.04);}
.main-nav{
  display:flex;
  gap:32px;
  flex:1;
  justify-content:center;
}
.main-nav a{
  color:rgba(255,255,255,.85);
  font-weight:600;
  font-size:14px;
  text-transform:uppercase;
  letter-spacing:.06em;
  position:relative;
  padding:6px 0;
}
.main-nav a::after{
  content:'';
  position:absolute;
  left:0; bottom:0;
  width:0%; height:2px;
  background:var(--gold);
  transition:width .3s ease;
}
.main-nav a:hover::after{width:100%;}
.header-cta{padding:12px 24px; font-size:14px;}
.burger{
  display:none;
  flex-direction:column;
  gap:5px;
  background:none;
  border:none;
  cursor:pointer;
  padding:8px;
  position:relative;
  z-index:300;
}
.burger span{
  width:24px; height:2px;
  background:var(--white);
  border-radius:2px;
  transition:.3s ease;
}
.burger.active span:nth-child(1){transform:translateY(7px) rotate(45deg);}
.burger.active span:nth-child(2){opacity:0;}
.burger.active span:nth-child(3){transform:translateY(-7px) rotate(-45deg);}

.nav-backdrop{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.45);
  z-index:240;
  opacity:0;
  transition:opacity .3s ease;
}
.nav-backdrop.open{display:block; opacity:1;}

/* ===== HERO ===== */
.hero{
  position:relative;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  justify-content:center;
  background:linear-gradient(160deg, var(--purple-900) 0%, var(--purple-700) 55%, var(--purple-800) 100%);
  overflow:hidden;
  padding-top:120px;
  padding-bottom:60px;
}
.glow{
  position:absolute;
  border-radius:50%;
  filter:blur(90px);
  opacity:.55;
  pointer-events:none;
}
.glow-1{
  width:520px; height:520px;
  background:var(--purple-glow-a);
  top:-160px; left:-120px;
  animation:float1 14s ease-in-out infinite;
}
.glow-2{
  width:420px; height:420px;
  background:var(--purple-glow-b);
  bottom:-140px; right:-100px;
  animation:float2 16s ease-in-out infinite;
}
.glow-3{
  width:300px; height:300px;
  background:var(--gold);
  opacity:.25;
  top:40%; right:15%;
  animation:float1 18s ease-in-out infinite reverse;
}
@keyframes float1{
  0%,100%{transform:translate(0,0);}
  50%{transform:translate(40px,60px);}
}
@keyframes float2{
  0%,100%{transform:translate(0,0);}
  50%{transform:translate(-50px,-30px);}
}
.hero-inner{
  position:relative;
  z-index:2;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:40px;
}
.hero-text{flex:1; min-width:0;}
.eyebrow{
  color:var(--gold-light);
  font-weight:700;
  letter-spacing:.12em;
  text-transform:uppercase;
  font-size:13px;
  margin-bottom:18px;
}
.hero-title{
  font-family:var(--font-display);
  font-weight:700;
  color:var(--white);
  font-size:clamp(42px, 8vw, 96px);
  line-height:1.02;
  letter-spacing:.01em;
  margin-bottom:26px;
}
.hero-title span{display:block;}
.hero-title-line{white-space:nowrap;}
.hero-title-accent{color:var(--gold);}
.hero-sub{
  color:rgba(255,255,255,.82);
  font-size:19px;
  max-width:560px;
  margin-bottom:38px;
}
.hero-actions{display:flex; gap:18px; flex-wrap:wrap;}

/* marquee */
.marquee-band{
  position:relative;
  z-index:2;
  margin-top:70px;
  background:var(--gold);
  transform:rotate(-2deg) scale(1.04);
  overflow:hidden;
  box-shadow:0 20px 40px rgba(0,0,0,.25);
}
.marquee-track{
  display:flex;
  white-space:nowrap;
  animation:marquee 18s linear infinite;
}
.marquee-track span{
  font-family:var(--font-display);
  font-weight:700;
  font-size:clamp(22px, 3.5vw, 34px);
  color:var(--purple-900);
  padding:14px 40px;
  letter-spacing:.02em;
}
.marquee-track span:nth-child(even){color:var(--white);}
@keyframes marquee{
  from{transform:translateX(0);}
  to{transform:translateX(-50%);}
}

/* ===== CLIENTS ===== */
.clients{padding:90px 0; background:var(--cream);}
.clients-label{
  text-align:center;
  color:#7A6E97;
  font-weight:600;
  font-size:16px;
  margin-bottom:42px;
}
.clients-track{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:22px;
}
.platform-chip{
  display:flex;
  align-items:center;
  gap:14px;
  padding:20px 34px;
  border-radius:100px;
  background:var(--white);
  border:1px solid #EFE6D8;
  color:var(--purple-700);
  transition:transform .3s ease, box-shadow .3s ease, background .3s ease, color .3s ease;
}
.brand-logo{width:38px; height:38px; flex-shrink:0;}
.platform-chip span{
  font-family:var(--font-display);
  font-size:22px;
  color:var(--purple-900);
  letter-spacing:.02em;
  transition:color .3s ease;
}
.platform-chip:hover{
  transform:translateY(-4px);
  background:var(--purple-900);
  box-shadow:0 16px 30px rgba(58,27,110,.16);
}
.platform-chip:hover span{color:var(--white);}
@media (max-width:560px){
  .platform-chip{padding:14px 22px; gap:10px;}
  .brand-logo{width:28px; height:28px;}
  .platform-chip span{font-size:17px;}
}

/* ===== SECTION SHARED ===== */
.section-eyebrow{
  color:var(--purple-600);
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.12em;
  font-size:13px;
  margin-bottom:14px;
}
.section-eyebrow.light{color:var(--gold);}
.section-title{
  font-family:var(--font-display);
  font-weight:700;
  font-size:clamp(30px, 4.5vw, 52px);
  line-height:1.08;
  color:var(--purple-900);
  margin-bottom:50px;
}
.section-title.light{color:var(--white);}

/* ===== SERVIZI ===== */
.servizi{padding:110px 0;}
.servizi-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:24px;
}
.card{
  background:var(--white);
  border-radius:var(--radius);
  padding:34px 28px;
  border:1px solid #EFE6D8;
  transition:transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s ease, background .35s ease;
  position:relative;
}
.card:hover{
  transform:translateY(-8px);
  box-shadow:0 24px 50px rgba(58,27,110,.14);
}
.card-tag{
  display:inline-block;
  background:var(--purple-700);
  color:var(--white);
  font-size:11px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  padding:5px 12px;
  border-radius:100px;
  margin-bottom:16px;
}
.card h3{
  font-family:var(--font-display);
  font-size:22px;
  color:var(--purple-900);
  margin-bottom:12px;
  font-weight:700;
}
.card p{color:#5C5270; font-size:15px;}
.card-featured{
  background:linear-gradient(160deg, var(--purple-700), var(--purple-900));
  border:none;
}
.card-featured .card-tag{background:var(--gold); color:var(--purple-900);}
.card-featured h3, .card-featured p{color:var(--white);}
.card-featured p{color:rgba(255,255,255,.8);}

/* ===== CASE STUDY ===== */
.case-study{padding:110px 0; background:var(--cream);}
.case-study-inner{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:60px;
  align-items:center;
}
.case-study-media{border-radius:var(--radius); overflow:hidden; box-shadow:0 30px 60px rgba(58,27,110,.18);}
.case-study-media img{width:100%; height:100%; object-fit:cover; display:block;}
.case-study-text{color:#5C5270; font-size:16px; margin-bottom:28px;}
.case-study-stats{display:flex; flex-direction:column; gap:14px; margin-bottom:30px;}
.case-study-stat{display:flex; align-items:center; gap:14px; color:var(--purple-900); font-weight:700; font-size:15px;}
.case-study-stat .icon{
  width:38px; height:38px;
  flex-shrink:0;
  padding:9px;
  border-radius:50%;
  background:rgba(58,27,110,.08);
  color:var(--purple-700);
}

/* ===== VIDEO SHOWCASE ===== */
.video-showcase{
  padding:110px 0;
  background:linear-gradient(180deg, var(--purple-800), var(--purple-900));
}
.video-grid{
  display:grid;
  grid-template-columns:220px 220px 1fr;
  gap:40px;
  align-items:center;
}
.phone-mock{
  width:220px;
  aspect-ratio:9/18;
  border-radius:36px;
  background:#0D0618;
  border:6px solid #2C1457;
  padding:10px;
  box-shadow:0 30px 60px rgba(0,0,0,.35);
  margin:0 auto;
}
.phone-mock-screen{
  width:100%; height:100%;
  border-radius:24px;
  overflow:hidden;
  background:#000;
}
.phone-mock-screen img{width:100%; height:100%; object-fit:cover; display:block;}
.video-showcase-text{color:rgba(255,255,255,.82); font-size:16px;}
.video-showcase-text p{margin-bottom:22px;}

/* ===== TESTIMONIALS ===== */
.testimonials{padding:110px 0; background:var(--cream);}
.testimonials-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:24px;
}
.testimonial-card{
  background:var(--white);
  border:1px solid #EFE6D8;
  border-radius:var(--radius);
  padding:30px 26px;
}
.quote-icon{width:26px; height:26px; color:var(--gold); margin-bottom:16px;}
.testimonial-card p{color:#4A4160; font-size:15px; line-height:1.7; margin-bottom:20px;}
.testimonial-author{display:flex; flex-direction:column;}
.testimonial-author span{font-weight:700; color:var(--purple-900); font-size:14px;}
.testimonial-author small{color:#8A7FA0; font-size:13px;}
.testimonials-note{
  margin-top:30px;
  text-align:center;
  color:#8A7FA0;
  font-size:13px;
}

/* ===== FAQ ===== */
.faq{padding:110px 0;}
.faq-list{display:flex; flex-direction:column; gap:14px; max-width:820px;}
.faq-item{
  background:var(--white);
  border:1px solid #EFE6D8;
  border-radius:16px;
  padding:6px 26px;
}
.faq-item summary{
  padding:20px 0;
  cursor:pointer;
  list-style:none;
  font-weight:700;
  color:var(--purple-900);
  font-size:16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.faq-item summary::-webkit-details-marker{display:none;}
.faq-item summary::after{
  content:'+';
  font-family:var(--font-display);
  font-size:22px;
  color:var(--gold);
  flex-shrink:0;
  transition:transform .3s ease;
}
.faq-item[open] summary::after{transform:rotate(135deg);}
.faq-item p{color:#5C5270; font-size:15px; line-height:1.7; padding-bottom:22px;}

/* ===== NUMERI ===== */
.numeri{
  background:var(--purple-900);
  padding:80px 0;
}
.numeri-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:24px;
  text-align:center;
}
.numero .num{
  font-family:var(--font-display);
  font-size:clamp(36px,5vw,56px);
  color:var(--gold);
  font-weight:700;
}
.numero .suffix{
  font-family:var(--font-display);
  font-size:clamp(22px,3vw,32px);
  color:var(--gold);
}
.numero p{color:rgba(255,255,255,.7); margin-top:8px; font-weight:600;}

/* ===== PROGETTI ===== */
.progetti{
  padding:110px 0;
  background:linear-gradient(180deg, var(--purple-900), var(--purple-800));
}
.progetti-filters{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin:28px 0 40px;
}
.filter-btn{
  padding:10px 22px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.2);
  background:transparent;
  color:rgba(255,255,255,.7);
  font-family:inherit;
  font-size:13px;
  font-weight:700;
  letter-spacing:.03em;
  cursor:pointer;
  transition:all .25s ease;
}
.filter-btn:hover{
  border-color:var(--gold);
  color:var(--white);
}
.filter-btn.active{
  background:var(--gold);
  border-color:var(--gold);
  color:var(--purple-900);
}
.progetti-empty{
  display:none;
  text-align:center;
  color:rgba(255,255,255,.6);
  padding:50px 0 10px;
  font-size:15px;
}
.progetti-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:24px;
}
.progetto[hidden]{display:none;}
.progetto{
  border-radius:var(--radius);
  overflow:hidden;
  position:relative;
  display:block;
  background:var(--purple-700);
  cursor:pointer;
}
.progetto-media{
  height:240px;
  overflow:hidden;
  position:relative;
}
.progetto-media img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .5s ease;
}
.grad-1{background:linear-gradient(135deg,#F2C078,#7C4FE0);}
.grad-2{background:linear-gradient(135deg,#3E7BFF,#F2C078);}
.grad-3{background:linear-gradient(135deg,#7C4FE0,#3E7BFF);}
.grad-4{background:linear-gradient(135deg,#F8DBA6,#3A1B6E);}
.progetto:hover .progetto-media img{transform:scale(1.08);}
.progetto-info{
  padding:22px 24px;
  background:rgba(255,255,255,.06);
  backdrop-filter:blur(6px);
}
.progetto-tag{
  display:inline-block;
  font-size:11px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--gold);
  margin-bottom:8px;
}
.progetto-info h3{
  font-family:var(--font-display);
  color:var(--white);
  font-size:19px;
  margin-bottom:6px;
}
.progetto-info p{color:rgba(255,255,255,.65); font-size:14px;}

/* ===== PROCESSO ===== */
.processo{padding:110px 0;}
.step-list{
  display:flex;
  flex-direction:column;
  gap:0;
}
.step{
  display:flex;
  gap:32px;
  align-items:flex-start;
  padding:32px 0;
  border-bottom:1px solid #EFE6D8;
}
.step:last-child{border-bottom:none;}
.step-n{
  font-family:var(--font-display);
  font-size:44px;
  color:var(--gold);
  min-width:90px;
}
.step h3{
  font-family:var(--font-display);
  font-size:22px;
  color:var(--purple-900);
  margin-bottom:8px;
}
.step p{color:#5C5270; max-width:560px;}

/* ===== CTA BANNER ===== */
.cta-banner{
  padding:100px 0;
  background:var(--gold);
}
.cta-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:30px;
}
.cta-text{display:flex; align-items:center; gap:22px; flex-wrap:wrap;}
.cta-inner h2{
  font-family:var(--font-display);
  font-size:clamp(30px,4.5vw,48px);
  color:var(--purple-900);
  line-height:1.1;
}
.cta-icon{
  width:64px; height:64px;
  border-radius:50%;
  background:var(--purple-900);
  color:var(--gold);
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
  animation:ctaFloat 3.2s ease-in-out infinite;
}
.cta-icon .icon{width:30px; height:30px;}
@keyframes ctaFloat{
  0%,100%{transform:translateY(0) rotate(0deg);}
  50%{transform:translateY(-10px) rotate(8deg);}
}

/* ===== CONTATTI ===== */
.contatti{
  padding:110px 0;
  background:var(--purple-900);
}
.contatti-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:60px;
  align-items:start;
}
.contatti-info .section-title{color:var(--white);}
.contatti-info .section-eyebrow{color:var(--gold);}
.contatti-sub{color:rgba(255,255,255,.7); margin-bottom:34px; max-width:420px;}
.contatti-list{margin-bottom:34px;}
.contatti-list li{
  display:flex;
  gap:16px;
  padding:14px 0;
  border-bottom:1px solid rgba(255,255,255,.12);
  color:var(--white);
  font-weight:600;
}
.contatti-list li span{
  min-width:90px;
  color:var(--gold-light);
  font-weight:700;
  font-size:13px;
  text-transform:uppercase;
  letter-spacing:.06em;
  padding-top:2px;
}
.social-links{display:flex; gap:16px;}
.social-links a{
  color:var(--white);
  font-weight:700;
  font-size:14px;
  padding:10px 20px;
  border:1px solid rgba(255,255,255,.25);
  border-radius:100px;
  transition:.25s ease;
}
.social-links a:hover{background:var(--gold); color:var(--purple-900); border-color:var(--gold);}

.contatti-form{
  background:var(--white);
  border-radius:var(--radius);
  padding:40px;
  display:flex;
  flex-direction:column;
  gap:18px;
}
.field{display:flex; flex-direction:column; gap:8px;}
.field label{font-weight:700; font-size:13px; color:var(--purple-900);}
.field input, .field textarea{
  border:2px solid #EFE6D8;
  border-radius:12px;
  padding:13px 16px;
  font-family:var(--font-body);
  font-size:15px;
  color:var(--ink);
  outline:none;
  transition:border-color .25s ease;
  resize:vertical;
}
.field input:focus, .field textarea:focus{border-color:var(--purple-600);}
.form-note{font-size:13px; color:var(--purple-600); font-weight:600; min-height:18px;}

/* ===== FOOTER ===== */
.site-footer{background:var(--purple-900); border-top:1px solid rgba(255,255,255,.08);}
.footer-inner{
  display:grid;
  grid-template-columns:1.4fr .8fr .8fr .8fr;
  gap:40px;
  padding:70px 0 40px;
}
.footer-brand p{color:rgba(255,255,255,.6); margin-top:16px; font-size:14px; max-width:280px;}
.footer-col h4{
  color:var(--gold);
  font-family:var(--font-display);
  font-size:16px;
  margin-bottom:18px;
}
.footer-col a{
  display:block;
  color:rgba(255,255,255,.65);
  font-size:14px;
  padding:6px 0;
  transition:color .2s ease;
}
.footer-col a:hover{color:var(--gold-light);}
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.08);
  padding:22px 0;
}
.footer-bottom p{color:rgba(255,255,255,.45); font-size:13px;}

/* ===== BLOB CURSOR (desktop only) ===== */
.blob-cursor{
  position:fixed;
  width:22px; height:22px;
  border-radius:50%;
  background:var(--gold);
  pointer-events:none;
  z-index:999;
  mix-blend-mode:difference;
  transform:translate(-50%,-50%);
  transition:transform .15s ease-out, width .2s ease, height .2s ease;
  opacity:.9;
}

/* ===== ICONS (base) ===== */
.icon{
  width:22px;
  height:22px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.6;
  stroke-linecap:round;
  stroke-linejoin:round;
  display:block;
}

/* ===== HERO FLOATING CHIPS ===== */
.hero-icons{
  position:absolute;
  inset:0;
  z-index:1;
  pointer-events:none;
}
.hero-chip{
  position:absolute;
  width:56px; height:56px;
  border-radius:50%;
  background:rgba(255,255,255,.1);
  border:1px solid rgba(255,255,255,.22);
  backdrop-filter:blur(6px);
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--gold-light);
  box-shadow:0 12px 30px rgba(0,0,0,.2);
  animation:chipFloat 6s ease-in-out infinite;
}
.hero-chip .icon{width:24px; height:24px;}
.chip-1{top:20%; left:6%; animation-delay:0s;}
.chip-2{top:14%; right:12%; animation-delay:.6s; width:48px; height:48px;}
.chip-3{top:58%; right:6%; animation-delay:1.2s; color:var(--white);}
.chip-4{bottom:20%; left:9%; animation-delay:1.8s; width:44px; height:44px;}
.chip-5{top:42%; right:26%; animation-delay:2.4s; width:40px; height:40px; color:var(--white);}
.chip-6{bottom:14%; right:34%; animation-delay:3s; width:46px; height:46px;}
.chip-1::after{
  content:'';
  position:absolute;
  inset:-6px;
  border-radius:50%;
  border:1px solid rgba(242,192,120,.45);
  animation:chipPulse 3s ease-out infinite;
}
@keyframes chipFloat{
  0%,100%{transform:translateY(0) rotate(0deg);}
  50%{transform:translateY(-16px) rotate(6deg);}
}
@keyframes chipPulse{
  0%{transform:scale(1); opacity:.8;}
  100%{transform:scale(1.5); opacity:0;}
}

/* ===== MARQUEE ICON ===== */
.marquee-icon{
  width:20px; height:20px;
  color:var(--purple-900);
  vertical-align:middle;
  margin:0 6px;
  animation:spin 6s linear infinite;
}
@keyframes spin{
  from{transform:rotate(0deg);}
  to{transform:rotate(360deg);}
}

/* ===== SERVICE CARD ICONS ===== */
.card-icon{
  width:52px; height:52px;
  border-radius:16px;
  background:rgba(58,27,110,.08);
  color:var(--purple-700);
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:18px;
  transition:transform .35s cubic-bezier(.22,1,.36,1), background .35s ease;
}
.card-icon .icon{width:26px; height:26px;}
.card:hover .card-icon{
  transform:rotate(-8deg) scale(1.1);
}
.card-featured .card-icon{
  background:rgba(242,192,120,.18);
  color:var(--gold);
}

/* ===== NUMERI ICONS ===== */
.numero-icon{
  width:46px; height:46px;
  border-radius:50%;
  background:rgba(242,192,120,.12);
  color:var(--gold);
  display:flex;
  align-items:center;
  justify-content:center;
  margin:0 auto 14px;
  animation:iconPulse 3.4s ease-in-out infinite;
}
.numero-icon .icon{width:22px; height:22px;}
@keyframes iconPulse{
  0%,100%{transform:scale(1);}
  50%{transform:scale(1.1);}
}

/* ===== PROGETTI ARROW ===== */
.progetto-media{position:relative;}
.progetto-arrow{
  position:absolute;
  top:16px; right:16px;
  width:40px; height:40px;
  border-radius:50%;
  background:rgba(255,255,255,.9);
  color:var(--purple-900);
  display:flex;
  align-items:center;
  justify-content:center;
  opacity:0;
  transform:translate(-8px, 8px);
  transition:opacity .3s ease, transform .3s ease;
}
.progetto-arrow .icon{width:18px; height:18px;}
.progetto:hover .progetto-arrow{
  opacity:1;
  transform:translate(0,0);
}

/* ===== PROCESS STEP MARKER ===== */
.step-marker{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
  min-width:90px;
}
.step-icon{
  width:46px; height:46px;
  border-radius:50%;
  background:rgba(242,192,120,.15);
  color:var(--gold);
  display:flex;
  align-items:center;
  justify-content:center;
  transition:transform .35s ease;
}
.step-icon .icon{width:22px; height:22px;}
.step:hover .step-icon{transform:rotate(-10deg) scale(1.12);}

/* ===== HERO ILLUSTRATION (abstract lens) ===== */
.hero-illustration{
  position:relative;
  flex-shrink:0;
  width:min(38vw, 380px);
}
.figure-svg{width:100%; height:auto; overflow:visible;}

/* rotating light rays */
.rays{
  transform-origin:210px 220px;
  animation:raysSpin 32s linear infinite;
}
@keyframes raysSpin{
  from{transform:rotate(0deg);}
  to{transform:rotate(360deg);}
}

/* dashed orbit ring, slow counter-rotation */
.orbit-ring{
  transform-origin:210px 220px;
  animation:raysSpin 50s linear infinite reverse;
}

/* iris "breathing" aperture */
.iris{
  transform-origin:210px 220px;
  animation:irisPulse 5s ease-in-out infinite;
}
@keyframes irisPulse{
  0%,100%{transform:scale(1) rotate(0deg);}
  50%{transform:scale(.8) rotate(12deg);}
}

/* shutter flash pulse at the center */
.flash-burst{
  opacity:0;
  transform-origin:210px 220px;
  animation:flashPop 5s ease-out infinite;
}
@keyframes flashPop{
  0%, 86%{opacity:0; transform:scale(1);}
  89%{opacity:1; transform:scale(2.6);}
  95%{opacity:0; transform:scale(3.6);}
  100%{opacity:0; transform:scale(1);}
}

.figure-accent{animation:chipFloat 5s ease-in-out infinite;}
.accent-1{animation-delay:.3s;}
.accent-2{animation-delay:1s;}
.accent-3{animation-delay:1.6s;}

/* orbiting service icons around the lens */
.lens-icon{
  position:absolute;
  width:52px; height:52px;
  margin-left:-26px; margin-top:-26px;
  border-radius:50%;
  background:var(--gold);
  color:var(--purple-900);
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 12px 26px rgba(0,0,0,.28);
  animation:lensIconFloat 4.2s ease-in-out infinite;
  cursor:pointer;
}
.lens-icon .icon{width:24px; height:24px; flex-shrink:0;}
.li-1{left:50%;   top:13.54%; animation-delay:0s;}
.li-2{left:81.9%; top:29.69%; animation-delay:.5s;}
.li-3{left:81.9%; top:61.98%; animation-delay:1s;}
.li-4{left:50%;   top:78.13%; animation-delay:1.5s;}
.li-5{left:18.1%; top:61.98%; animation-delay:2s;}
.li-6{left:18.1%; top:29.69%; animation-delay:2.5s;}
@keyframes lensIconFloat{
  0%,100%{transform:translateY(0);}
  50%{transform:translateY(-8px);}
}

/* label: tooltip on hover/focus for desktop, always-on caption on mobile */
.lens-label{
  position:absolute;
  left:50%;
  bottom:calc(100% + 10px);
  transform:translateX(-50%) translateY(4px);
  background:var(--purple-900);
  color:var(--white);
  font-family:var(--font-body);
  font-size:12px;
  font-weight:700;
  white-space:nowrap;
  padding:6px 12px;
  border-radius:100px;
  box-shadow:0 8px 18px rgba(0,0,0,.3);
  opacity:0;
  pointer-events:none;
  transition:opacity .2s ease, transform .2s ease;
  z-index:3;
}
.lens-icon:hover .lens-label,
.lens-icon:focus-visible .lens-label,
.lens-icon:active .lens-label{
  opacity:1;
  transform:translateX(-50%) translateY(0);
}

@media (max-width:900px){
  .lens-icon{width:52px; height:52px; margin-left:-26px; margin-top:-26px;}
  .lens-icon .icon{width:25px; height:25px;}
  .lens-label{font-size:11px; padding:5px 11px;}
}
@media (max-width:560px){
  .lens-icon{width:46px; height:46px; margin-left:-23px; margin-top:-23px;}
  .lens-icon .icon{width:22px; height:22px;}
  .lens-label{font-size:10px; padding:4px 10px;}
}

/* ===== MANIFESTO ILLUSTRATION (target + arrow) ===== */
.arrow{
  transform-origin:210px 220px;
  animation:arrowFly 5s ease-in-out infinite;
}
@keyframes arrowFly{
  0%{transform:translate(-46px,46px); opacity:0;}
  18%{opacity:1;}
  30%,86%{transform:translate(0,0); opacity:1;}
  92%{opacity:0;}
  100%{transform:translate(-46px,46px); opacity:0;}
}
.impact-burst{
  opacity:0;
  transform-origin:210px 220px;
  animation:impactPop 5s ease-out infinite;
}
@keyframes impactPop{
  0%,28%{opacity:0; transform:scale(1);}
  31%{opacity:1; transform:scale(2.6);}
  40%{opacity:0; transform:scale(3.4);}
  100%{opacity:0; transform:scale(1);}
}

/* ===== PROJECT MODAL ===== */
.project-modal{
  position:fixed;
  inset:0;
  z-index:400;
  display:none;
  align-items:center;
  justify-content:center;
  padding:24px;
}
.project-modal.open{display:flex;}
.project-modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(15,7,30,.75);
  backdrop-filter:blur(4px);
  opacity:0;
  transition:opacity .3s ease;
}
.project-modal.open .project-modal-backdrop{opacity:1;}
.project-modal-box{
  position:relative;
  width:min(920px, 100%);
  max-height:88vh;
  overflow-y:auto;
  background:var(--white);
  border-radius:24px;
  z-index:1;
  transform:translateY(24px) scale(.97);
  opacity:0;
  transition:transform .35s cubic-bezier(.22,1,.36,1), opacity .35s ease;
}
.project-modal.open .project-modal-box{
  transform:translateY(0) scale(1);
  opacity:1;
}
.modal-close{
  position:sticky;
  top:16px;
  left:100%;
  transform:translateX(-16px);
  width:42px; height:42px;
  border-radius:50%;
  background:rgba(27,16,48,.85);
  color:var(--white);
  border:none;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  z-index:2;
  margin-bottom:-42px;
}
.modal-close .icon{width:18px; height:18px;}
.modal-cover{
  width:100%;
  height:340px;
  overflow:hidden;
  border-radius:24px 24px 0 0;
}
.modal-cover img{width:100%; height:100%; object-fit:cover; display:block;}
.modal-content{padding:34px 40px 40px;}
.modal-content h3{
  font-family:var(--font-display);
  font-size:clamp(24px, 3.4vw, 32px);
  color:var(--purple-900);
  margin:10px 0 16px;
}
.modal-content p{color:#5C5270; line-height:1.7; font-size:15.5px; white-space:pre-line;}
.modal-gallery{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:12px;
  margin:26px 0;
}
.modal-gallery img{
  width:100%;
  aspect-ratio:1;
  object-fit:cover;
  border-radius:14px;
  cursor:pointer;
  transition:transform .3s ease;
}
.modal-gallery img:hover{transform:scale(1.04);}
.modal-reels{
  display:none;
  grid-template-columns:repeat(auto-fill, minmax(220px, 1fr));
  gap:18px;
  margin:10px 0 26px;
}
.modal-reels.has-reels{display:grid;}
.modal-reels::before{
  content:"Video dai social";
  grid-column:1 / -1;
  font-family:var(--font-display);
  font-size:14px;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--purple-700);
}
.modal-reels iframe{
  width:100% !important;
  min-width:0 !important;
  height:600px;
  border:0;
  border-radius:18px;
  overflow:hidden;
  background:var(--cream);
}
.modal-reels iframe.tt-embed{height:730px;}

/* ===== SIMPLE PAGE HERO (privacy / cookie / manifesto) ===== */
.page-hero{
  position:relative;
  padding:170px 0 90px;
  background:linear-gradient(160deg, var(--purple-900) 0%, var(--purple-700) 55%, var(--purple-800) 100%);
  overflow:hidden;
}
.page-hero .glow{opacity:.4;}
.page-hero.text-only{text-align:center; padding-bottom:110px;}
.page-hero.text-only .eyebrow{justify-content:center; display:flex;}
.page-hero.text-only .hero-title{margin:0 auto;}
.page-hero.text-only .hero-sub{margin:22px auto 0; text-align:center;}

/* ===== LEGAL / TEXT CONTENT ===== */
.legal-content{padding:90px 0; background:var(--cream);}
.legal-content .container{max-width:820px;}
.legal-content h2{
  font-family:var(--font-display);
  color:var(--purple-900);
  font-size:clamp(22px,3vw,28px);
  margin:44px 0 14px;
}
.legal-content h2:first-child{margin-top:0;}
.legal-content p{color:#4A4160; font-size:15.5px; line-height:1.75; margin-bottom:14px;}
.legal-content ul{margin:0 0 14px 22px; color:#4A4160; font-size:15.5px; line-height:1.75;}
.legal-content li{list-style:disc; margin-bottom:6px;}
.legal-content strong{color:var(--purple-900);}
.legal-content .updated-note{
  display:inline-block;
  background:var(--white);
  border:1px solid #EFE6D8;
  border-radius:100px;
  padding:8px 18px;
  font-size:13px;
  font-weight:700;
  color:var(--purple-700);
  margin-bottom:8px;
}
.legal-content table{width:100%; border-collapse:collapse; margin:18px 0 24px; font-size:13.5px;}
.legal-content th, .legal-content td{
  text-align:left;
  padding:10px 12px;
  border:1px solid #EFE6D8;
  color:#4A4160;
  vertical-align:top;
}
.legal-content th{background:var(--white); color:var(--purple-900); font-weight:700;}

/* ===== GAME PROMO BANNER (homepage) ===== */
.game-promo{
  padding:70px 0;
  background:var(--cream);
}
.game-promo-inner{
  background:linear-gradient(135deg, var(--purple-700), var(--purple-900));
  border-radius:28px;
  padding:50px 46px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:30px;
  flex-wrap:wrap;
  position:relative;
  overflow:hidden;
}
.game-promo-inner::before{
  content:'';
  position:absolute;
  inset:0;
  background:radial-gradient(circle at 85% 20%, rgba(242,192,120,.25), transparent 60%);
  pointer-events:none;
}
.game-promo-text{position:relative; z-index:1; max-width:560px;}
.game-promo-text p.section-eyebrow{color:var(--gold); margin-bottom:12px;}
.game-promo-text h2{
  font-family:var(--font-display);
  color:var(--white);
  font-size:clamp(24px,3.4vw,34px);
  line-height:1.2;
  margin-bottom:14px;
}
.game-promo-text p.game-promo-sub{color:rgba(255,255,255,.75); font-size:15.5px;}
.game-promo-cta{position:relative; z-index:1; flex-shrink:0;}

/* ===== GAME COVER (gioca.html landing) ===== */
.game-cover-inner{text-align:center; position:relative; z-index:2;}
.game-cover-inner .hero-title{margin:0 auto 20px;}
.game-cover-inner .eyebrow{justify-content:center; display:flex;}
.game-cover-sub{
  color:rgba(255,255,255,.78);
  font-size:17px;
  max-width:560px;
  margin:0 auto 36px;
}
.play-btn{
  display:inline-flex;
  align-items:center;
  gap:12px;
  padding:20px 44px;
  border-radius:100px;
  background:var(--gold);
  color:var(--purple-900);
  font-family:var(--font-display);
  font-weight:700;
  font-size:18px;
  letter-spacing:.02em;
  border:none;
  cursor:pointer;
  box-shadow:0 16px 40px rgba(242,192,120,.3);
  transition:transform .25s ease, box-shadow .25s ease;
  animation:playPulse 2.4s ease-in-out infinite;
}
.play-btn .icon{width:24px; height:24px;}
.play-btn:hover{transform:translateY(-4px) scale(1.03); box-shadow:0 20px 46px rgba(242,192,120,.4);}
.play-btn:active{transform:scale(.95); animation:none;}
@keyframes playPulse{
  0%,100%{box-shadow:0 16px 40px rgba(242,192,120,.3);}
  50%{box-shadow:0 16px 50px rgba(242,192,120,.55);}
}

/* ===== FULLSCREEN GAME OVERLAY ===== */
.game-fullscreen{
  position:fixed;
  inset:0;
  z-index:600;
  background:linear-gradient(160deg, var(--purple-900) 0%, var(--purple-700) 55%, var(--purple-800) 100%);
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
  padding:80px 20px 40px;
}
.game-fullscreen.hidden{display:none !important;}
.game-fullscreen-inner{max-width:800px; margin:0 auto;}
.game-close{
  position:fixed;
  top:18px; right:18px;
  width:48px; height:48px;
  border-radius:50%;
  background:rgba(255,255,255,.1);
  border:1px solid rgba(255,255,255,.25);
  color:var(--white);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  z-index:2;
  transition:background .25s ease, color .25s ease, border-color .25s ease, transform .2s ease;
}
.game-close:hover{background:var(--gold); color:var(--purple-900); border-color:var(--gold);}
.game-close:active{transform:scale(.92);}
.game-close .icon{width:20px; height:20px;}

/* ===== GAME OVER (missed a hurdle) ===== */
.game-over{
  text-align:center;
  padding:60px 20px;
  display:none;
  background:linear-gradient(180deg, var(--purple-800), var(--purple-900));
  border-radius:28px;
  box-shadow:0 30px 70px rgba(0,0,0,.3);
}
.game-over.show{display:block;}
.game-over .badge.over{
  width:80px; height:80px;
  border-radius:50%;
  background:#E2664B;
  color:var(--white);
  display:flex;
  align-items:center;
  justify-content:center;
  margin:0 auto 22px;
}
.game-over .badge.over .icon{width:36px; height:36px;}
.game-over h2{
  font-family:var(--font-display);
  color:var(--white);
  font-size:clamp(24px,4vw,34px);
  margin-bottom:14px;
}
.game-over p{color:rgba(255,255,255,.75); max-width:440px; margin:0 auto 26px; font-size:15px; line-height:1.7;}

/* ===== GAME PAGE (gioca.html) ===== */
.game-map{
  display:flex;
  align-items:center;
  justify-content:center;
  max-width:640px;
  margin:0 auto 50px;
  padding:0 10px;
}
.map-node{
  width:42px; height:42px;
  border-radius:50%;
  background:var(--white);
  border:3px solid #EFE6D8;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--purple-700);
  font-family:var(--font-display);
  font-weight:700;
  font-size:14px;
  flex-shrink:0;
  transition:border-color .3s ease, background .3s ease, color .3s ease;
}
.map-node .icon{width:18px; height:18px;}
.map-node.boss{width:52px; height:52px;}
.map-node.current{
  border-color:var(--gold);
  box-shadow:0 0 0 6px rgba(242,192,120,.25);
  animation:mapPulse 1.6s ease-in-out infinite;
}
.map-node.done{background:var(--gold); border-color:var(--gold); color:var(--purple-900);}
@keyframes mapPulse{
  0%,100%{box-shadow:0 0 0 6px rgba(242,192,120,.25);}
  50%{box-shadow:0 0 0 11px rgba(242,192,120,.1);}
}
.map-line{flex:1; height:3px; background:#EFE6D8; min-width:16px; transition:background .3s ease;}
.map-line.done{background:var(--gold);}

.game-intro{text-align:center; padding:10px 0 20px;}
.game-intro p{color:rgba(255,255,255,.75); max-width:560px; margin:0 auto 28px; font-size:16px;}

.game-stage{
  max-width:760px;
  margin:0 auto;
  background:linear-gradient(180deg, var(--purple-800), var(--purple-900));
  border-radius:28px;
  padding:36px 24px 0;
  overflow:hidden;
  position:relative;
  box-shadow:0 30px 70px rgba(0,0,0,.3);
}
.stage-level-label{
  text-align:center;
  color:var(--gold-light);
  font-family:var(--font-display);
  font-size:clamp(18px,2.6vw,24px);
  margin-bottom:4px;
}
.stage-hint{
  text-align:center;
  color:rgba(255,255,255,.55);
  font-size:13px;
  font-weight:600;
  margin-bottom:14px;
  min-height:16px;
}
.stage-scene{
  position:relative;
  height:200px;
  padding:0 16px;
  overflow:hidden;
}
.player{
  width:100px;
  position:absolute;
  left:4%; bottom:0;
  transform-origin:center bottom;
  z-index:2;
}
.player svg{width:100%; height:auto; display:block;}
.monster{
  width:120px;
  cursor:pointer;
  position:absolute;
  left:54%; bottom:0;
  transform:translateX(-50%);
  transform-origin:center bottom;
}
.monster svg{width:100%; height:auto; display:block;}
.monster.boss{width:160px;}
.stage-ground{height:22px; background:linear-gradient(180deg, var(--gold), #C9924A); border-radius:14px 14px 0 0;}

@keyframes idleBob{
  0%,100%{transform:translateY(0);}
  50%{transform:translateY(-7px);}
}
.player:not(.jumping):not(.hopping){animation:idleBob 1.8s ease-in-out infinite;}
.monster:not(.startled){animation:idleBob 2.2s ease-in-out infinite; animation-delay:.3s;}

/* small scrolling hurdles, Chrome-Dino style, before each monster */
.hurdle-layer{position:absolute; inset:0; pointer-events:none; overflow:hidden;}
.hurdle{
  position:absolute;
  bottom:0;
  left:100%;
  width:30px;
  animation:hurdleRun 1.3s linear forwards;
}
.hurdle svg{width:100%; height:auto; display:block;}
@keyframes hurdleRun{
  from{left:100%;}
  to{left:-15%;}
}
.hurdle.cleared{filter:drop-shadow(0 0 6px rgba(242,192,120,.8));}
.hurdle.bump{animation-play-state:paused; filter:brightness(1.6);}

/* quick vertical hop used to clear the small hurdles */
@keyframes playerHop{
  0%{transform:translateY(0) scale(1,1);}
  18%{transform:translateY(6px) scale(1.12,.86);}
  55%{transform:translateY(-46px) scale(.95,1.06);}
  100%{transform:translateY(0) scale(1,1);}
}
.player.hopping{animation:playerHop .55s cubic-bezier(.4,.6,.3,1);}

/* stumble feedback when a hurdle is missed (soft, no fail state) */
@keyframes playerStumble{
  0%,100%{transform:translateX(0) rotate(0deg);}
  30%{transform:translateX(-4px) rotate(-6deg);}
  60%{transform:translateX(3px) rotate(4deg);}
}
.player.stumble{animation:playerStumble .35s ease;}

/* the player runs forward and hops OVER the monster, landing on the far side */
@keyframes playerJump{
  0%{transform:translate(0,0) rotate(0deg) scale(1,1);}
  10%{transform:translate(calc(var(--jump-dx, 0px) * .08), 6px) rotate(0deg) scale(1.1,.88);}
  45%{transform:translate(calc(var(--jump-dx, 0px) * .55), -68px) rotate(10deg) scale(.95,1.05);}
  80%{transform:translate(calc(var(--jump-dx, 0px) * .97), -4px) rotate(0deg) scale(1.08,.9);}
  100%{transform:translate(var(--jump-dx, 0px), 0) rotate(0deg) scale(1,1);}
}
.player.jumping{animation:playerJump .8s cubic-bezier(.4,.55,.3,1) forwards;}

/* the monster flinches/hops as the player clears it, then settles */
@keyframes monsterStartled{
  0%{transform:translateX(-50%) translateY(0) scale(1,1);}
  25%{transform:translateX(-50%) translateY(-16px) scale(.9,1.12);}
  55%{transform:translateX(-50%) translateY(3px) scale(1.1,.88);}
  100%{transform:translateX(-50%) translateY(0) scale(1,1);}
}
.monster.startled{animation:monsterStartled .5s ease-out;}

@keyframes stageShake{
  0%,100%{transform:translateX(0);}
  30%{transform:translateX(-5px);}
  60%{transform:translateX(4px);}
  100%{transform:translateX(0);}
}
.game-stage.shake{animation:stageShake .25s ease;}

.impact-fx{position:absolute; inset:0; pointer-events:none; z-index:3;}
.impact-star{
  position:absolute;
  width:14px; height:14px;
  background:var(--gold);
  clip-path:polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  opacity:0;
  transform:scale(.4);
}
.impact-star.pop{animation:starPop .55s ease-out forwards;}
@keyframes starPop{
  0%{opacity:0; transform:scale(.3) translate(0,0) rotate(0deg);}
  15%{opacity:1;}
  100%{opacity:0; transform:scale(1.1) translate(var(--sx), var(--sy)) rotate(160deg);}
}

.jump-btn-wrap{text-align:center; padding:22px 0 34px;}

.question-overlay{
  position:absolute;
  inset:0;
  background:rgba(15,7,30,.95);
  border-radius:28px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:30px;
  opacity:0;
  pointer-events:none;
  transition:opacity .3s ease;
}
.question-overlay.open{opacity:1; pointer-events:auto;}
.question-box{max-width:460px; text-align:center;}
.question-box .q-eyebrow{
  color:var(--gold);
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.1em;
  font-size:12px;
  margin-bottom:10px;
}
.question-box h3{
  font-family:var(--font-display);
  color:var(--white);
  font-size:clamp(19px,3vw,23px);
  margin-bottom:24px;
  line-height:1.35;
}
.answer-list{display:flex; flex-direction:column; gap:12px;}
.answer-btn{
  background:rgba(255,255,255,.08);
  border:2px solid rgba(255,255,255,.18);
  color:var(--white);
  padding:14px 20px;
  border-radius:14px;
  font-weight:600;
  font-size:14.5px;
  font-family:var(--font-body);
  cursor:pointer;
  text-align:left;
  transition:.25s ease;
}
.answer-btn:hover, .answer-btn:focus-visible{
  background:var(--gold);
  border-color:var(--gold);
  color:var(--purple-900);
  transform:translateY(-2px);
}

.game-end{
  text-align:center;
  padding:60px 20px;
  display:none;
  background:linear-gradient(180deg, var(--purple-800), var(--purple-900));
  border-radius:28px;
  box-shadow:0 30px 70px rgba(0,0,0,.3);
}
.game-end.show{display:block;}
.game-end .badge{
  width:80px; height:80px;
  border-radius:50%;
  background:var(--gold);
  color:var(--purple-900);
  display:flex;
  align-items:center;
  justify-content:center;
  margin:0 auto 22px;
  animation:ctaFloat 3.2s ease-in-out infinite;
}
.game-end .badge .icon{width:36px; height:36px;}
.game-end h2{
  font-family:var(--font-display);
  color:var(--white);
  font-size:clamp(24px,4vw,36px);
  margin-bottom:16px;
}
.game-end p{color:rgba(255,255,255,.75); max-width:520px; margin:0 auto 26px; font-size:15.5px; line-height:1.7;}
.replay-btn{
  display:block;
  margin:20px auto 0;
  background:none;
  border:none;
  color:rgba(255,255,255,.55);
  font-size:13px;
  text-decoration:underline;
  cursor:pointer;
  font-family:var(--font-body);
}
.hidden{display:none !important;}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px){
  .main-nav, .header-cta{display:none;}
  .burger{display:flex;}
  .servizi-grid{grid-template-columns:1fr;}
  .numeri-grid{grid-template-columns:1fr 1fr;}
  .progetti-grid{grid-template-columns:1fr;}
  .contatti-grid{grid-template-columns:1fr;}
  .case-study-inner{grid-template-columns:1fr; gap:34px;}
  .case-study-media{order:-1;}
  .video-grid{grid-template-columns:1fr 1fr; gap:22px;}
  .video-showcase-text{grid-column:1 / -1;}
  .phone-mock{width:170px;}
  .testimonials-grid{grid-template-columns:1fr;}
  .game-promo-inner{padding:36px 26px; flex-direction:column; text-align:center;}
  .game-promo-cta{width:100%;}
  .game-promo-cta .btn{width:100%; justify-content:center;}
  .map-node{width:34px; height:34px; font-size:12px;}
  .map-node.boss{width:42px; height:42px;}
  .game-stage{padding:26px 14px 0; border-radius:20px;}
  .stage-scene{height:150px;}
  .player{width:70px;}
  .monster{width:84px;}
  .monster.boss{width:110px;}
  .hurdle{width:22px;}
  .game-fullscreen{padding:70px 12px 30px;}
  .game-close{top:12px; right:12px; width:42px; height:42px;}
  .play-btn{padding:16px 32px; font-size:16px;}
  .game-cover-sub{font-size:15px;}
  .footer-inner{grid-template-columns:1fr 1fr;}
  .blob-cursor{display:none;}
  .hero-icons{display:none;}
  .hero{padding-top:110px; padding-bottom:40px;}
  .page-hero{padding:130px 0 60px;}
  .hero-title{font-size:clamp(28px, 6.4vw, 60px);}
  .hero-inner{flex-direction:column; align-items:center; text-align:center; gap:8px;}
  .hero-text{display:flex; flex-direction:column; align-items:center;}
  .hero-sub{max-width:440px;}
  .hero-actions{justify-content:center;}
  .hero-illustration{
    order:-1;
    width:min(74vw, 320px);
    margin-bottom:22px;
  }
  .marquee-band{margin-top:36px;}
  .modal-cover{height:200px;}
  .modal-content{padding:24px 22px 30px;}
  .modal-gallery{grid-template-columns:repeat(2, 1fr);}
  .modal-reels{grid-template-columns:1fr;}
  .modal-reels iframe{height:560px;}
  .modal-reels iframe.tt-embed{height:640px;}
}

@media (max-width: 900px){
  .main-nav{
    position:fixed;
    top:0; right:0;
    height:100vh;
    width:78%;
    max-width:320px;
    background:var(--purple-900);
    flex-direction:column;
    justify-content:center;
    align-items:flex-start;
    gap:30px;
    padding:40px;
    transform:translateX(100%);
    transition:transform .35s ease;
    z-index:250;
  }
  .main-nav.open{transform:translateX(0); display:flex;}
  .main-nav a{font-size:22px;}
}

@media (max-width:560px){
  .hero-title{font-size:clamp(19px, 7vw, 60px);}
  .hero-actions{flex-direction:column; align-items:stretch; width:100%; max-width:320px;}
  .hero-actions .btn{justify-content:center;}
  .cta-inner{flex-direction:column; align-items:flex-start;}
  .footer-inner{grid-template-columns:1fr;}
}
