/* ============================================================
   THE MEDIA LAB — Design System v2 (memorable / animated)
   Poppins · tricolore dark→violet→teal→green
   ============================================================ */

:root {
  --dark:    #0E0E12;
  --dark-2:  #15151B;
  --ink:     #1A1A1A;
  --violet:  #7C5CFC;
  --violet-2:#8B6FF5;
  --teal:    #7BA8C4;
  --green:   #86C99A;
  --green-2: #9FD3A8;
  --muted:   #6B6B70;
  --line:    #ECECEF;
  --paper:   #FFFFFF;
  --paper-2: #FAFAFB;

  --violet-bg: #F0EBFE;  --violet-fg: #5B43C9;
  --teal-bg:   #E7F0F6;  --teal-fg:   #3E6B82;
  --green-bg:  #E8F4EC;  --green-fg:  #3E7A52;
  --neutral-bg:#F2F2F4;  --neutral-fg:#55555C;

  --tri: linear-gradient(95deg, var(--ink) 0%, var(--violet) 32%, var(--teal) 62%, var(--green) 92%);
  --tri-bright: linear-gradient(95deg, #C9BEFF 0%, var(--violet-2) 30%, #93BEDA 60%, var(--green-2) 100%);
  --tri-anim: linear-gradient(95deg, var(--ink), var(--violet), var(--teal), var(--green), var(--violet), var(--ink));

  --container: 1280px;
  --gutter: clamp(20px, 5vw, 72px);
  --radius: 22px;
  --radius-lg: 30px;
  --f: "Poppins", system-ui, -apple-system, sans-serif;
  --ast: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20100%20100'%3E%3Cg%20fill='%23000'%3E%3Crect%20x='44'%20y='6'%20width='12'%20height='88'%20rx='6'/%3E%3Crect%20x='44'%20y='6'%20width='12'%20height='88'%20rx='6'%20transform='rotate(60%2050%2050)'/%3E%3Crect%20x='44'%20y='6'%20width='12'%20height='88'%20rx='6'%20transform='rotate(120%2050%2050)'/%3E%3C/g%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body { margin: 0; font-family: var(--f); font-weight: 400; color: var(--ink); background: var(--paper); line-height: 1.6; overflow-x: hidden; }
::selection { background: rgba(124,92,252,.18); }
a { color: inherit; }

/* native cursor hidden only when custom cursor active (desktop) */
body.cursor-on, body.cursor-on a, body.cursor-on button { cursor: none; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: clamp(96px, 13vw, 188px); }
.section--alt { background: var(--paper-2); }

/* ---------- tricolore ---------- */
.tri { background: var(--tri); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.tri--bright { background: var(--tri-bright); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.tri--anim {
  background: var(--tri-anim); background-size: 280% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  animation: triflow 9s linear infinite;
}
@keyframes triflow { to { background-position: -180% 0; } }

.ast {
  color: var(--violet);
  display: inline-block;
  width: 1em; height: 1em;
  vertical-align: -0.12em;
  overflow: hidden; text-indent: 99px; white-space: nowrap;
  background-color: currentColor;
  -webkit-mask: var(--ast) center / contain no-repeat;
          mask: var(--ast) center / contain no-repeat;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .55em;
  font-size: clamp(12px, .95vw, 14px); font-weight: 600;
  letter-spacing: .24em; text-transform: uppercase; color: var(--muted);
}
.eyebrow .ast { color: var(--violet); font-size: 1.15em; }
.eyebrow--light { color: rgba(255,255,255,.62); }
.eyebrow--light .ast { color: var(--violet-2); }

h1,h2,h3 { font-weight: 300; letter-spacing: -.025em; line-height: 1; margin: 0; }
.lead { font-size: clamp(18px, 1.6vw, 23px); color: var(--muted); font-weight: 400; line-height: 1.55; }

/* ============================================================
   BIG SECTION HEAD (centered, impactful, wipe-reveal)
   ============================================================ */
.shead { text-align: center; max-width: 980px; margin: 0 auto clamp(48px, 6vw, 88px); }
.shead-top { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 26px; }
.shead-idx { font-size: clamp(13px, 1vw, 15px); font-weight: 600; color: var(--violet); letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.shead-idx::after { content: ""; display: inline-block; width: 30px; height: 1px; background: var(--line); margin-left: 16px; vertical-align: middle; }
.shead-title { font-size: clamp(42px, 7vw, 104px); font-weight: 300; line-height: .98; letter-spacing: -.03em; text-wrap: balance; }
.shead-title em { font-style: normal; }
.shead .lead { margin: 28px auto 0; max-width: 64ch; }

.shead--left { text-align: left; margin-inline: 0; max-width: none; }
.shead--left .shead-top { justify-content: flex-start; }

/* wipe reveal — title rises a touch more than .reveal */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.wipe { opacity: 0; transform: translateY(40px); transition: opacity 1s cubic-bezier(.22,.7,.25,1), transform 1s cubic-bezier(.22,.7,.25,1); }
.wipe.in { opacity: 1; transform: none; }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s cubic-bezier(.2,.7,.3,1), transform .9s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
.wipe[data-d="1"] { transition-delay: .12s; }
.wipe[data-d="2"] { transition-delay: .22s; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .6em; font-family: var(--f); font-size: 15px; font-weight: 500; padding: 14px 28px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: transform .25s cubic-bezier(.2,.7,.3,1), background .25s, color .25s, box-shadow .25s; white-space: nowrap; }
.btn--solid { background: var(--ink); color: #fff; }
.btn--solid:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(14,14,18,.22); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.btn--ghost:hover { border-color: #fff; transform: translateY(-2px); }
.btn--grad { background: var(--tri); background-size: 160% 100%; color: #fff; }
.btn--grad:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(124,92,252,.32); background-position: 100% 0; }
.dot { color: var(--line); padding-inline: .35em; }

/* ---------- blobs ---------- */
.blob { position: absolute; border-radius: 50%; filter: blur(72px); opacity: .5; pointer-events: none; z-index: 0; will-change: transform; }
.blob--violet { background: radial-gradient(circle at 30% 30%, #B6A4FF, #7C5CFC 60%, transparent 72%); }
.blob--green  { background: radial-gradient(circle at 30% 30%, #BFE6C9, #86C99A 60%, transparent 72%); }
.blob--teal   { background: radial-gradient(circle at 30% 30%, #AECDDE, #7BA8C4 60%, transparent 72%); }
.section > .container { position: relative; z-index: 1; }

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
.cursor-arrow { position: fixed; top: 0; left: 0; width: 27px; height: 30px; pointer-events: none; z-index: 2147483647; transform: translate(-16%, -4%); transform-origin: 16% 4%; transition: transform .14s ease; filter: drop-shadow(0 3px 6px rgba(14,14,18,.28)); }
.cursor-arrow svg { display: block; width: 100%; height: 100%; transform: scaleX(-1); }
.cursor-arrow.hover { transform: translate(-16%, -4%) scale(1.55) rotate(8deg); }
body:not(.cursor-on) .cursor-arrow { display: none; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 1000; display: flex; align-items: center; justify-content: space-between; padding: 20px var(--gutter); transition: background .3s, box-shadow .3s, padding .3s; }
.site-header.is-scrolled { background: rgba(255,255,255,.8); -webkit-backdrop-filter: blur(20px) saturate(150%); backdrop-filter: blur(20px) saturate(150%); box-shadow: 0 1px 0 var(--line); padding-block: 13px; }
.brand-mark { display: inline-flex; align-items: center; text-decoration: none; }
.brand-mark img { height: 42px; width: auto; display: block; transition: height .3s; }
.site-header.is-scrolled .brand-mark img { height: 55px; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 32px); }
.nav a.nav-link { text-decoration: none; font-size: 15px; font-weight: 400; opacity: .78; transition: opacity .2s; color: var(--ink); }
.site-header.on-hero:not(.is-scrolled) .nav a.nav-link { color: #fff; }
.nav a.nav-link:hover { opacity: 1; }
.nav a.nav-link.is-soon { opacity: .42; cursor: default; }
.nav a.nav-link[aria-current="page"] { opacity: 1; font-weight: 500; position: relative; }
.nav a.nav-link[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 2px; border-radius: 2px; background: var(--green); }
.nav .btn { padding: 11px 22px; font-size: 14px; }
.nav .btn--nav { background: var(--ink); color: #fff; }
.site-header.on-hero:not(.is-scrolled) .nav .btn--nav { background: #fff; color: var(--ink); }

/* burger + mobile menu */
.nav-toggle { display: none; }
.nav-toggle { position: fixed; top: 16px; right: var(--gutter); z-index: 1600; width: 46px; height: 46px; border: 0; background: transparent; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 0; }
.nav-toggle span { display: block; width: 26px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .3s, opacity .2s, background .3s; }
.site-header.on-hero:not(.is-scrolled) .nav-toggle span { background: #fff; }
.nav-toggle.open span { background: var(--ink); }
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-menu { position: fixed; inset: 0; z-index: 1500; background: var(--paper); display: flex; flex-direction: column; justify-content: center; padding: var(--gutter); opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity .35s ease, transform .35s ease, visibility .35s; }
.mobile-menu.open { opacity: 1; visibility: visible; transform: none; }
.mobile-menu .mm-inner { display: flex; flex-direction: column; gap: 6px; }
.mobile-menu a { font-size: clamp(30px, 9vw, 46px); font-weight: 300; letter-spacing: -.02em; color: var(--ink); text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mobile-menu a.mm-cta { margin-top: 22px; border: 0; align-self: flex-start; font-size: 17px; font-weight: 500; background: var(--ink); color: #fff; padding: 15px 30px; border-radius: 999px; }
.mobile-menu .mm-foot { margin-top: 40px; font-size: 14px; color: var(--muted); }

@media (max-width: 880px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
}

/* ============================================================
   01 · HERO (video logo on black)
   ============================================================ */
.hero { position: relative; min-height: 100svh; background: var(--dark); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; text-align: center; padding: 120px var(--gutter) 90px; }
.hero .blob { opacity: .4; filter: blur(80px); }
.hero .blob--violet { background: radial-gradient(circle at 30% 30%, #9F86FF, #6E4DF0 55%, transparent 72%); }
.hero .blob--green { background: radial-gradient(circle at 30% 30%, #A7E0B6, #5FBE7C 55%, transparent 72%); }
.hero__inner { position: relative; z-index: 3; width: 100%; max-width: 1000px; }
.hero-video-wrap { position: relative; width: min(720px, 82vw, 50vh); margin: 0 auto; aspect-ratio: 1 / 1; }
.hero-gif { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.hero-logo-static { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 12%; display: block; }
.hero.gif-ready .hero-logo-static { display: none; }
.hero.gif-failed .hero-gif { display: none; }
.hero.gif-failed .hero-logo-static { display: block; }

.hero-payoff { display: inline-flex; gap: .55em; align-items: center; flex-wrap: wrap; justify-content: center; font-size: clamp(15px, 1.7vw, 22px); font-weight: 500; letter-spacing: .04em; margin-top: 18px; }
.hero-payoff b { font-weight: 600; }
.hero-payoff .ast { color: var(--violet-2); }
.hero-sub { font-size: clamp(15px, 1.5vw, 20px); color: rgba(255,255,255,.6); margin-top: 16px; font-weight: 300; }
.hero-cta { margin-top: 38px; }

.hero-scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 1; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: rgba(255,255,255,.5); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hero-scroll .line { width: 1px; height: 40px; background: linear-gradient(var(--violet-2), transparent); animation: scrolldown 2.2s ease-in-out infinite; }
@keyframes scrolldown { 0%{transform:scaleY(0);transform-origin:top} 45%{transform:scaleY(1);transform-origin:top} 55%{transform:scaleY(1);transform-origin:bottom} 100%{transform:scaleY(0);transform-origin:bottom} }
@media (max-height: 900px) { .hero-scroll { display: none; } }

/* ============================================================
   MARQUEE payoff strip
   ============================================================ */
.marquee { background: var(--ink); color: #fff; overflow: hidden; padding: 22px 0; white-space: nowrap; position: relative; }
.marquee-track { display: inline-flex; align-items: center; gap: 40px; animation: scrollx 28s linear infinite; will-change: transform; }
.marquee-track span { font-size: clamp(22px, 3vw, 40px); font-weight: 300; letter-spacing: -.01em; display: inline-flex; align-items: center; gap: 40px; }
.marquee-track .ast { color: var(--violet-2); font-size: .7em; }
@keyframes scrollx { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ============================================================
   02 · MANIFESTO (giant statement)
   ============================================================ */
.manifesto { text-align: center; }
.manifesto .eyebrow { margin-bottom: 30px; }
.manifesto .shead-idx::after { display: none; }
.manifesto .shead-top { align-items: baseline; }
.manifesto .shead-idx { margin-right: 0; font-size: clamp(12px, .95vw, 14px); letter-spacing: .24em; position: relative; top: -.05em; }
.manifesto h2 { font-size: clamp(38px, 6.6vw, 100px); font-weight: 300; line-height: 1.02; max-width: 18ch; margin-inline: auto; letter-spacing: -.03em; }
.manifesto .lead { margin: 40px auto 0; max-width: 62ch; }

/* ============================================================
   03 · CONTESTO
   ============================================================ */
.problem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.opt-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 38px 36px 42px; background: var(--paper); }
.opt-card .opt-tag { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.opt-card .opt-tag::before { content: ""; width: 18px; height: 1px; background: var(--muted); }
.opt-card h3 { font-size: clamp(24px, 2.5vw, 34px); margin-top: 20px; font-weight: 400; }
.opt-card p { color: var(--muted); margin: 16px 0 0; }
.stat-inline { color: var(--ink); }
.third-way { grid-column: 1 / -1; margin-top: 4px; border-radius: var(--radius); padding: clamp(38px, 5vw, 60px); background: linear-gradient(100deg, rgba(124,92,252,.07), rgba(134,201,154,.09)); border: 1px solid rgba(124,92,252,.18); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.third-way .tw-label { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--violet); }
.third-way p { font-size: clamp(22px, 2.4vw, 34px); font-weight: 300; margin: 16px 0 0; max-width: 20ch; line-height: 1.18; }
.third-way .tw-right { display: flex; flex-direction: column; align-items: flex-start; }
.stat-big { font-size: clamp(60px, 8vw, 112px); font-weight: 300; line-height: .85; letter-spacing: -.04em; }
.third-way .sb-note { font-size: 14px; color: var(--muted); max-width: 34ch; text-align: left; margin-top: 16px; line-height: 1.45; }
@media (max-width: 760px) { .problem-grid { grid-template-columns: 1fr; } .third-way { grid-template-columns: 1fr; } }

/* ============================================================
   04 · NUMERI
   ============================================================ */
.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.stat-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 26px 26px; background: var(--paper); display: flex; flex-direction: column; gap: 12px; min-height: 260px; position: relative; overflow: hidden; }
.stat-card .num { font-size: clamp(26px, 2.5vw, 42px); font-weight: 300; letter-spacing: -.03em; line-height: 1; white-space: nowrap; }
.stat-card .lbl { font-size: 16px; font-weight: 500; }
.stat-card .desc { font-size: 14px; color: var(--muted); margin-top: auto; line-height: 1.45; }
.stat-bar { position: absolute; left: 0; bottom: 0; height: 4px; width: 0; }
.stat-card:nth-child(1) .stat-bar { background: var(--violet); }
.stat-card:nth-child(2) .stat-bar { background: var(--violet-2); }
.stat-card:nth-child(3) .stat-bar { background: var(--teal); }
.stat-card:nth-child(4) .stat-bar { background: var(--green); }
.stat-card:nth-child(5) .stat-bar { background: var(--green-2); }
.stats-foot { margin-top: 34px; text-align: center; font-size: 15px; color: var(--muted); }
@media (max-width: 980px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .stats-grid { grid-template-columns: 1fr; } }

/* ============================================================
   05 · METODO
   ============================================================ */
.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.phase-card { border-radius: var(--radius-lg); padding: 44px 36px 48px; position: relative; overflow: hidden; min-height: 340px; display: flex; flex-direction: column; }
.phase-card .pc-num { font-size: 14px; font-weight: 600; letter-spacing: .12em; opacity: .7; }
.phase-card h3 { font-size: clamp(32px, 3.4vw, 48px); font-weight: 300; margin: 18px 0 0; }
.phase-card p { margin-top: 18px; line-height: 1.5; opacity: .85; }
.phase-card .pc-glyph { position: absolute; right: 24px; bottom: 18px; width: 132px; height: 132px; opacity: .14; color: currentColor; pointer-events: none; }
.phase--explore { background: var(--violet-bg); color: var(--violet-fg); }
.phase--transform { background: var(--teal-bg); color: var(--teal-fg); }
.phase--innovate { background: var(--green-bg); color: var(--green-fg); }
@media (max-width: 880px) { .method-grid { grid-template-columns: 1fr; } }

/* ============================================================
   06 · FUNNEL
   ============================================================ */
.funnel { display: flex; flex-direction: column; gap: 0; max-width: 1100px; margin: 0 auto; }
.funnel-row { display: grid; grid-template-columns: 260px 1fr; gap: 36px; align-items: start; padding: 32px 0; border-top: 1px solid var(--line); }
.funnel-row:last-child { border-bottom: 1px solid var(--line); }
.funnel-row .fr-step { font-size: 13px; font-weight: 600; letter-spacing: .1em; color: var(--violet); }
.funnel-row .fr-name { font-size: clamp(26px, 3vw, 42px); font-weight: 300; letter-spacing: -.02em; margin-top: 6px; }
.pills { display: flex; flex-wrap: wrap; gap: 9px; }
.pill { font-size: 14px; font-weight: 500; padding: 9px 16px; border-radius: 999px; white-space: nowrap; line-height: 1.2; }
/* pills + phase counter colored by funnel phase (mirrors Approccio) */
.funnel-row[data-phase="1"] .fr-step { color: var(--violet-fg); }
.funnel-row[data-phase="1"] .pill { background: var(--violet-bg); color: var(--violet-fg); border: 1px solid transparent; }
.funnel-row[data-phase="2"] .fr-step { color: var(--teal-fg); }
.funnel-row[data-phase="2"] .pill { background: var(--teal-bg); color: var(--teal-fg); border: 1px solid transparent; }
.funnel-row[data-phase="3"] .fr-step { color: var(--green-fg); }
.funnel-row[data-phase="3"] .pill { background: var(--green-bg); color: var(--green-fg); border: 1px solid transparent; }
.funnel-row[data-phase="4"] .fr-step { color: var(--ink); }
.funnel-row[data-phase="4"] .pill { background: var(--dark); color: #fff; border: 1px solid transparent; }
@media (max-width: 760px) { .funnel-row { grid-template-columns: 1fr; gap: 16px; } }

/* ============================================================
   07 · PILASTRI
   ============================================================ */
.pillars-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.pillar { padding: 46px 40px 50px; border-bottom: 1px solid var(--line); position: relative; }
.pillar:nth-child(odd) { border-right: 1px solid var(--line); }
.pillar .pl-num { font-size: clamp(48px, 6vw, 84px); font-weight: 300; color: var(--line); line-height: 1; transition: color .5s; }
.pillar:hover .pl-num { color: var(--violet); }
.pillar h3 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 400; margin: 16px 0 0; }
.pillar p { color: var(--muted); margin: 14px 0 0; max-width: 42ch; }
@media (max-width: 760px) { .pillars-grid { grid-template-columns: 1fr; } .pillar:nth-child(odd) { border-right: 0; } }

/* ============================================================
   08 · CLIENTI (logo grid)
   ============================================================ */
.logo-wall {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  max-width: 1160px;
  margin: 0 auto;
}
.logo-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(96px, 9vw, 128px);
  padding: 20px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: transform .35s cubic-bezier(.2,.7,.3,1), box-shadow .35s, border-color .35s;
}
.logo-tile img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .58;
  transition: filter .4s ease, opacity .4s ease, transform .4s cubic-bezier(.2,.7,.3,1);
}
.logo-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(14,14,18,.1);
  border-color: transparent;
}
.logo-tile:hover img {
  filter: grayscale(0);
  opacity: 1;
  transform: scale(1.08);
}
@media (max-width: 1080px) { .logo-wall { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 720px)  {
  .logo-wall { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .logo-tile { height: clamp(72px, 18vw, 92px); padding: 14px 14px; border-radius: 13px; }
}
@media (max-width: 420px)  {
  .logo-wall { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .logo-tile { height: 66px; padding: 11px 10px; border-radius: 11px; }
  /* su mobile mostra subito il colore: niente hover */
  .logo-tile img { filter: none; opacity: 1; }
}

/* ============================================================
   09 · PERCHÉ NOI
   ============================================================ */
.reasons { display: flex; flex-direction: column; max-width: 1000px; margin: 0 auto; }
.reason { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: baseline; padding: 30px 0; border-top: 1px solid var(--line); position: relative; }
.reason:last-of-type { border-bottom: 1px solid var(--line); }
.reason .r-key { font-size: clamp(30px, 3.4vw, 48px); font-weight: 300; letter-spacing: -.02em; }
.reason .r-body h3 { font-size: clamp(20px, 2vw, 26px); font-weight: 400; }
.reason .r-body p { color: var(--muted); margin: 8px 0 0; }
.reason .r-progress { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--tri); }
.cert-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.cert-pill { font-size: 13px; font-weight: 500; padding: 9px 16px; border-radius: 999px; background: var(--ink); color: #fff; }
@media (max-width: 820px) { .reason { grid-template-columns: 1fr; gap: 8px; } }

/* ============================================================
   10 · CONTATTO (dark)
   ============================================================ */
.contact { background: var(--dark); color: #fff; position: relative; overflow: hidden; }
.contact .blob { opacity: .4; filter: blur(70px); }
.contact .blob--violet { background: radial-gradient(circle at 30% 30%, #9F86FF, #6E4DF0 55%, transparent 72%); }
.contact .blob--green { background: radial-gradient(circle at 30% 30%, #A7E0B6, #5FBE7C 55%, transparent 72%); }
.contact .shead { margin-bottom: clamp(48px, 6vw, 80px); }
.contact .shead .lead { color: rgba(255,255,255,.66); }
.contact-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.contact-direct { display: flex; flex-direction: column; gap: 24px; }
.cd-item .cd-k { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.45); }
.cd-item a, .cd-item .cd-v { display: block; font-size: clamp(20px, 2vw, 28px); font-weight: 300; color: #fff; text-decoration: none; margin-top: 6px; }
.cd-item a:hover { color: var(--green-2); }
.high5-slot { margin-top: 28px; display: flex; align-items: center; gap: 16px; }
.high5-slot .high5-logo { height: 40px; }
.high5-slot a:hover .high5-logo { opacity: .8; transition: opacity .25s; }
.high5-note { font-size: 13px; color: rgba(255,255,255,.5); max-width: 26ch; }

.form { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-lg); padding: 38px 36px 36px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.form .field { margin-bottom: 18px; }
.form label { display: block; font-size: 13px; letter-spacing: .04em; color: rgba(255,255,255,.6); margin-bottom: 8px; }
.form input, .form textarea { width: 100%; font-family: var(--f); font-size: 16px; color: #fff; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: 14px 16px; outline: none; transition: border-color .2s, background .2s; }
.form input::placeholder, .form textarea::placeholder { color: rgba(255,255,255,.32); }
.form input:focus, .form textarea:focus { border-color: var(--violet-2); background: rgba(255,255,255,.08); }
.form textarea { resize: vertical; min-height: 96px; }
.form .field.invalid input, .form .field.invalid textarea { border-color: #F08A8A; }
.form .err { font-size: 12px; color: #F0A6A6; margin-top: 6px; display: none; }
.form .field.invalid .err { display: block; }
.form .btn { width: 100%; justify-content: center; margin-top: 6px; }
.recaptcha-slot { margin: 4px 0 18px; }
.recaptcha-slot:empty { margin: 0; }
.captcha-field #capQuestion { color: var(--green-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.captcha-field input { max-width: 220px; }
.form-success { text-align: center; padding: 44px 10px; }
.form-success .fs-check { width: 66px; height: 66px; border-radius: 50%; background: var(--tri-bright); display: grid; place-items: center; margin: 0 auto 22px; font-size: 30px; color: #0E0E12; }
.form-success h3 { font-size: 28px; font-weight: 300; }
.form-success p { color: rgba(255,255,255,.6); margin-top: 10px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 48px; } }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--paper-2); border-top: 1px solid var(--line); padding-block: 76px 46px; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: 40px; }
.footer-brand .footer-mark img { height: 60px; width: auto; }
.footer-brand .fb-payoff { color: var(--muted); font-size: 14px; margin-top: 18px; letter-spacing: .04em; }
.footer-high5 { display: inline-flex; flex-direction: column; gap: 8px; margin-top: 22px; text-decoration: none; }
.footer-high5 .fh-cap { font-size: 12px; letter-spacing: .04em; color: var(--muted); }
.high5-logo { display: block; width: auto; }
.footer-high5 .high5-logo { height: 30px; transition: opacity .25s; }
.footer-high5:hover .high5-logo { opacity: .7; }
.high5-logo--dark { filter: brightness(0); }
.high5-logo--white { filter: brightness(0) invert(1); }
.footer-col h4 { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 0 0 16px; }
.footer-col a, .footer-col p { display: block; text-decoration: none; font-size: 15px; margin-bottom: 11px; opacity: .82; }
.footer-col a:hover { opacity: 1; color: var(--violet); }
.footer-li { display: inline-flex; align-items: center; gap: 8px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-top: 58px; padding-top: 26px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line); }
.footer-legal a { font-size: 13px; color: var(--muted); text-decoration: none; transition: color .2s; }
.footer-legal a:hover { color: var(--violet); }
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr; gap: 32px; } }

/* ============================================================
   reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .wipe { opacity: 1; transform: none; transition: none; }
  .tri--anim { animation: none; }
  .marquee-track { animation: none; }
  .hero-scroll .line { animation: none; }
}

/* ============================================================
   TWEAKS panel
   ============================================================ */
.twk { position: fixed; right: 18px; bottom: 18px; z-index: 99999; width: 268px; display: none; background: rgba(255,255,255,.82); -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%); border: 1px solid rgba(255,255,255,.7); border-radius: 18px; box-shadow: 0 18px 50px rgba(14,14,18,.22), 0 1px 0 rgba(255,255,255,.6) inset; font-family: var(--f); color: var(--ink); overflow: hidden; }
.twk.open { display: block; }
.twk-hd { display: flex; align-items: center; justify-content: space-between; padding: 15px 14px 12px 18px; }
.twk-hd b { font-size: 14px; font-weight: 600; display: inline-flex; gap: .3em; align-items: center; }
.twk-x { border: 0; background: transparent; font-size: 18px; color: var(--muted); cursor: pointer; width: 26px; height: 26px; border-radius: 8px; }
.twk-x:hover { background: rgba(0,0,0,.06); color: var(--ink); }
.twk-body { padding: 4px 18px 20px; }
.twk-sect { font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 18px 0 10px; }
.twk-sect:first-child { margin-top: 6px; }
.twk-label { font-size: 12px; font-weight: 500; color: var(--muted); margin-bottom: 8px; display: block; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch { width: 34px; height: 34px; border-radius: 10px; border: 2px solid transparent; cursor: pointer; }
.swatch.on { border-color: var(--ink); }
.twk-toggle-row { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.twk-switch { width: 42px; height: 24px; border-radius: 999px; background: rgba(0,0,0,.16); position: relative; cursor: pointer; transition: background .2s; border: 0; }
.twk-switch.on { background: var(--violet); }
.twk-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; }
.twk-switch.on::after { transform: translateX(18px); }

/* ============================================================
   LEGAL PAGE (privacy / cookie policy)
   ============================================================ */
.legal-head { padding-top: clamp(150px, 18vh, 250px); padding-bottom: clamp(36px, 5vw, 64px); }
.legal-head .shead-title { max-width: 20ch; }
.legal-head .lead { margin-top: 26px; max-width: 60ch; }
.legal-meta { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 30px; font-size: 13.5px; color: var(--muted); }
.legal-meta b { color: var(--ink); font-weight: 500; }

.legal-wrap { display: grid; grid-template-columns: 230px 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.legal-toc { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 2px; }
.legal-toc .toc-k { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.legal-toc a { font-size: 14px; text-decoration: none; color: var(--muted); padding: 7px 0; border-left: 2px solid transparent; padding-left: 14px; margin-left: -2px; transition: color .2s, border-color .2s; line-height: 1.3; }
.legal-toc a:hover { color: var(--ink); }
.legal-toc a.active { color: var(--violet); border-color: var(--violet); font-weight: 500; }

.legal-body { max-width: 760px; }
.legal-art { padding-bottom: clamp(40px, 5vw, 64px); margin-bottom: clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line); scroll-margin-top: 110px; }
.legal-art:last-child { border-bottom: 0; margin-bottom: 0; }
.legal-art > h2 { font-size: clamp(26px, 3vw, 40px); font-weight: 300; letter-spacing: -.02em; line-height: 1.05; margin-bottom: 22px; }
.legal-art h3 { font-size: clamp(17px, 1.5vw, 20px); font-weight: 600; letter-spacing: -.01em; margin: 30px 0 12px; }
.legal-art p { font-size: 16px; line-height: 1.7; color: #3a3a40; margin: 0 0 16px; }
.legal-art p a { color: var(--violet); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .2s; }
.legal-art p a:hover { border-color: var(--violet); }
.legal-art ul { margin: 0 0 16px; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.legal-art ul li { position: relative; padding-left: 22px; font-size: 16px; line-height: 1.6; color: #3a3a40; }
.legal-art ul li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 7px; height: 7px; border-radius: 50%; background: var(--violet); }
.legal-art ul li b { color: var(--ink); font-weight: 600; }

/* cookie category table */
.ck-table { display: flex; flex-direction: column; gap: 12px; margin: 22px 0 8px; }
.ck-row { border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; background: var(--paper-2); }
.ck-row .ck-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ck-row .ck-name { font-size: 16px; font-weight: 600; display: inline-flex; align-items: center; gap: 10px; }
.ck-row .ck-dot { width: 9px; height: 9px; border-radius: 50%; }
.ck-row .ck-badge { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 4px 11px; border-radius: 999px; background: var(--neutral-bg); color: var(--neutral-fg); }
.ck-row .ck-badge.on { background: var(--green-bg); color: var(--green-fg); }
.ck-row p { font-size: 14.5px; margin: 12px 0 0; color: var(--muted); line-height: 1.6; }
.legal-cta { margin-top: 24px; }

@media (max-width: 860px) {
  .legal-wrap { grid-template-columns: 1fr; gap: 28px; }
  .legal-toc { position: relative; top: 0; flex-direction: row; flex-wrap: wrap; gap: 8px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
  .legal-toc .toc-k { width: 100%; margin-bottom: 6px; }
  .legal-toc a { border-left: 0; padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px; margin: 0; font-size: 13px; }
  .legal-toc a.active { border-color: var(--violet); }
}

/* ============================================================
   COOKIE CONSENT — banner + preferences modal
   ============================================================ */
.ck-banner {
  position: fixed; left: clamp(14px, 3vw, 26px); bottom: clamp(14px, 3vw, 26px); z-index: 100000;
  width: min(440px, calc(100vw - 28px));
  background: rgba(255,255,255,.9); -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(14,14,18,.22); padding: 24px 24px 22px;
  transform: translateY(140%); opacity: 0; transition: transform .55s cubic-bezier(.22,.7,.25,1), opacity .4s; font-family: var(--f);
}
.ck-banner.show { transform: none; opacity: 1; }
.ck-banner .ck-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: .5em; }
.ck-banner h4 { font-size: 19px; font-weight: 500; letter-spacing: -.01em; margin: 12px 0 8px; }
.ck-banner p { font-size: 14px; line-height: 1.6; color: var(--muted); margin: 0 0 18px; }
.ck-banner p a { color: var(--violet); text-decoration: none; border-bottom: 1px solid transparent; }
.ck-banner p a:hover { border-color: var(--violet); }
.ck-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ck-actions .btn { flex: 1 1 auto; }
.ck-btn { font-family: var(--f); font-weight: 500; font-size: 14px; padding: 12px 20px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, border-color .2s; white-space: nowrap; }
.ck-btn:hover { transform: translateY(-2px); }
.ck-btn--primary { background: var(--ink); color: #fff; border-color: var(--ink); flex: 1 1 100%; }
.ck-btn--primary:hover { box-shadow: 0 12px 30px rgba(14,14,18,.25); }
.ck-btn--ghost { background: transparent; }
.ck-btn--ghost:hover { border-color: var(--ink); }

.ck-modal { position: fixed; inset: 0; z-index: 100001; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(14,14,18,.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s; }
.ck-modal.show { display: flex; opacity: 1; }
.ck-modal-card { width: min(580px, 100%); max-height: 88vh; overflow-y: auto; background: var(--paper); border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 40px); box-shadow: 0 40px 90px rgba(0,0,0,.4); transform: translateY(16px) scale(.98); transition: transform .35s cubic-bezier(.22,.7,.25,1); }
.ck-modal.show .ck-modal-card { transform: none; }
.ck-modal-card .ck-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.ck-modal-card h3 { font-size: clamp(24px, 3vw, 32px); font-weight: 300; letter-spacing: -.02em; margin: 12px 0 10px; }
.ck-modal-card > p { font-size: 14.5px; line-height: 1.6; color: var(--muted); margin: 0 0 24px; }
.ck-opt { border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; margin-bottom: 12px; }
.ck-opt .ck-opt-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.ck-opt .ck-opt-name { font-size: 16px; font-weight: 600; }
.ck-opt p { font-size: 13.5px; line-height: 1.6; color: var(--muted); margin: 10px 0 0; }
.ck-opt .ck-locked { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--green-fg); }
.ck-modal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.ck-modal-actions .ck-btn { flex: 1 1 auto; }
/* toggle reuse */
.ck-switch { width: 46px; height: 26px; border-radius: 999px; background: rgba(0,0,0,.16); position: relative; cursor: pointer; transition: background .2s; border: 0; flex: none; }
.ck-switch.on { background: var(--violet); }
.ck-switch:disabled { background: var(--green); opacity: .9; cursor: not-allowed; }
.ck-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; }
.ck-switch.on::after { transform: translateX(20px); }

@media (max-width: 480px) {
  .ck-actions .ck-btn--ghost { flex: 1 1 100%; }
}
