@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/bricolage.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

.sc-creative-studio {
  --cream: #fbf1df; --ink: #1d2a22; --green: #1e7a4a; --pink: #ff8db3; --yellow: #ffcf3d; --blue: #6f8cff; --orange: #ff7a3d; --muted: #5d6b62; --focus: #1e7a4a;
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  color: var(--ink); background: var(--cream); font-family: "Bricolage Grotesque", system-ui, sans-serif;
}
.g-pill { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border: 0; border-radius: 99px; background: var(--green); color: #fff; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; transition: transform .4s var(--spring), background .2s; }
.g-pill:hover { transform: rotate(-4deg) scale(1.05); background: #186a3f; }
.u-link { color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: var(--pink); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: 14px max(20px, calc((100vw - 1340px) / 2)); background: rgba(251,241,223,.88); backdrop-filter: blur(10px); }
.brand { position: relative; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 28px; letter-spacing: -.04em; }
.brand svg { position: absolute; left: 0; bottom: -8px; width: 100%; height: 12px; }
.brand path { fill: none; stroke: var(--pink); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 160; stroke-dashoffset: 160; animation: draw 1.2s .3s cubic-bezier(.6,0,.2,1) forwards; }
.brand:hover path { animation: wiggle .6s; stroke-dashoffset: 0; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes wiggle { 50% { transform: translateY(-2px) scaleX(1.03); } }
.menu { display: flex; align-items: center; gap: 28px; font-weight: 600; font-size: 15px; }
.menu a:not(.g-pill) { color: var(--ink); text-decoration: none; }
.menu a:not(.g-pill):hover { color: var(--green); }
.nav-toggle { display: none; }

/* Hero */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 30px; min-height: calc(100vh - 110px); padding: 30px max(20px, calc((100vw - 1340px) / 2)) 60px; overflow: hidden; }
.squiggle { position: absolute; left: 3%; top: 4%; width: clamp(140px, 18vw, 280px); overflow: visible; }
.squiggle path { fill: none; stroke: var(--pink); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 500; stroke-dashoffset: 500; animation: draw 1.6s .4s cubic-bezier(.6,0,.2,1) forwards; }
.arc-y { position: absolute; right: 2%; top: 2%; width: clamp(100px, 12vw, 180px); }
.arc-y path { fill: none; stroke: var(--yellow); stroke-width: 12; stroke-linecap: round; stroke-dasharray: 300; stroke-dashoffset: 300; animation: draw 1.4s .9s cubic-bezier(.6,0,.2,1) forwards; }
.arc-y path + path { stroke: var(--blue); animation-delay: 1.1s; }
.hero-copy { position: relative; z-index: 2; }
.hero h1 { margin: 60px 0 22px; color: var(--green); font-size: clamp(56px, 7.6vw, 122px); line-height: .92; font-weight: 800; letter-spacing: -.05em; }
.ln { display: inline-block; animation: lnIn .9s var(--spring) both; }
.ln:nth-child(2) { animation-delay: .08s; } .ln:nth-child(3) { animation-delay: .16s; } .ln:nth-child(4) { animation-delay: .24s; }
@keyframes lnIn { from { opacity: 0; transform: translateY(50px) rotate(4deg); } }
.flower { display: inline-block; width: .8em; height: .8em; margin-right: .08em; vertical-align: -.06em; color: var(--pink); animation: spin 12s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.lead { max-width: 460px; margin: 0 0 28px; font-size: 19px; line-height: 1.5; color: var(--muted); }
.hero-ctas { display: flex; align-items: center; gap: 22px; }
.blob-wrap { position: relative; justify-self: center; width: min(560px, 100%); aspect-ratio: 1; }
.blob { width: 100%; height: 100%; overflow: hidden; border-radius: 58% 42% 46% 54% / 46% 52% 48% 54%; animation: morph 12s ease-in-out infinite alternate; box-shadow: 0 30px 60px rgba(29,42,34,.15); }
.blob img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); }
@keyframes morph { 33% { border-radius: 42% 58% 60% 40% / 56% 40% 60% 44%; } 66% { border-radius: 50% 50% 38% 62% / 40% 62% 38% 60%; } 100% { border-radius: 62% 38% 52% 48% / 52% 46% 54% 48%; } }
.avatar { position: absolute; right: -2%; bottom: 4%; width: 26%; aspect-ratio: 1; border: 6px solid var(--cream); border-radius: 50%; overflow: hidden; background: var(--orange); }
.avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; }
.avatar i { position: absolute; right: 8%; bottom: 8%; display: grid; place-items: center; width: 34%; aspect-ratio: 1; border-radius: 50%; background: var(--green); color: #fff; font-style: normal; font-size: 14px; }
.spiral { position: absolute; left: -4%; top: 10%; width: 16%; aspect-ratio: 1; border-radius: 50%; background: repeating-radial-gradient(circle, var(--blue) 0 4px, transparent 4px 10px); animation: spin 20s linear infinite reverse; }
.pills { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.pill-tag { position: absolute; left: var(--x); top: var(--y); min-height: 52px; padding: 0 22px; border: 0; border-radius: 99px; background: var(--c); color: var(--t, var(--ink)); font: 700 clamp(15px, 1.4vw, 20px) "Bricolage Grotesque"; white-space: nowrap; box-shadow: 0 10px 22px rgba(29,42,34,.16); transform: translate(-50%, -50%) translate(var(--dx, 0px), var(--dy, 0px)) rotate(var(--r)); pointer-events: auto; cursor: grab; touch-action: none; user-select: none; animation: float 5s ease-in-out infinite; animation-delay: calc(var(--k, 0) * -1.1s); }
.pill-tag.is-drag { cursor: grabbing; animation: none; box-shadow: 0 22px 40px rgba(29,42,34,.25); }
.pill-tag.was-dragged { animation: none; }
@keyframes float { 50% { translate: 0 -10px; } }
.drag-note { position: absolute; right: max(20px, calc((100vw - 1340px) / 2)); bottom: 18px; margin: 0; color: var(--muted); font-size: 13px; font-style: italic; }

/* Manifesto */
.manifesto { padding: 120px max(20px, calc((100vw - 1100px) / 2)); }
.kicker { margin: 0 0 24px; color: var(--green); font-size: 16px; font-weight: 700; letter-spacing: .02em; }
.man-text { margin: 0; font-size: clamp(30px, 4.2vw, 62px); line-height: 1.1; font-weight: 700; letter-spacing: -.035em; }
.man-text .wd { opacity: .14; transition: opacity .3s, color .3s; }
.man-text .wd.on { opacity: 1; }
.man-text .wd.key.on { color: var(--green); text-decoration: underline wavy var(--pink); text-decoration-thickness: 3px; text-underline-offset: 8px; }
.man-stats { display: flex; flex-wrap: wrap; gap: 40px; margin: 50px 0 0; padding: 0; list-style: none; }
.man-stats b { display: block; font-size: 64px; line-height: 1; font-weight: 800; letter-spacing: -.05em; }
.man-stats li:nth-child(1) b { color: var(--pink); } .man-stats li:nth-child(2) b { color: var(--blue); } .man-stats li:nth-child(3) b { color: var(--orange); }
.man-stats span { color: var(--muted); }
.fine { margin: 16px 0 0; color: var(--muted); font-size: 12px; }

/* Progetti orizzontali */
.projects { position: relative; background: var(--ink); color: var(--cream); }
.hs-sticky { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; gap: 28px; overflow: hidden; padding: 70px 0 30px; }
.hs-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; padding: 0 max(20px, calc((100vw - 1340px) / 2)); }
.hs-head h2 { margin: 0; font-size: clamp(44px, 6vw, 92px); line-height: .9; font-weight: 800; letter-spacing: -.05em; }
.hs-head h2 span { color: var(--yellow); }
.hs-hint { margin: 0; color: #b9c4bc; font-size: 14px; }
.hs-track { display: flex; gap: 22px; width: max-content; padding: 0 max(20px, calc((100vw - 1340px) / 2)); will-change: transform; }
.proj { position: relative; flex: none; display: flex; flex-direction: column; width: clamp(280px, 32vw, 460px); height: clamp(360px, 56vh, 540px); border-radius: 34px; overflow: hidden; background: var(--bg); color: var(--fg); transition: transform .5s var(--spring); }
.proj:hover { transform: rotate(-1.5deg) translateY(-8px); }
.proj-art { position: relative; flex: 1; overflow: hidden; }
.proj-art .big { position: absolute; left: 8%; bottom: -12%; font-size: clamp(180px, 22vw, 340px); line-height: 1; font-weight: 800; letter-spacing: -.08em; transition: transform .8s var(--spring); }
.proj:hover .big { transform: translateY(-8%) rotate(-6deg); }
.shape { position: absolute; right: 10%; top: 14%; width: 38%; aspect-ratio: 1; background: var(--fg); opacity: .9; transition: transform 1s var(--spring); }
.shape.s0 { border-radius: 50%; } .shape.s1 { border-radius: 60% 40% 55% 45% / 45% 55% 45% 55%; } .shape.s2 { clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.proj:hover .shape { transform: rotate(40deg) scale(1.1); }
.dot { position: absolute; right: 18%; bottom: 24%; width: 14%; aspect-ratio: 1; border-radius: 50%; border: 5px solid var(--fg); }
.proj-info { padding: 22px 26px 26px; }
.proj h3 { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -.04em; }
.proj p { margin: 4px 0 12px; opacity: .85; }
.proj ul { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.proj li { padding: 5px 12px; border: 2px solid currentColor; border-radius: 99px; font-size: 12px; font-weight: 700; }
.proj-sticker { position: absolute; top: 18px; left: 18px; padding: 6px 12px; border-radius: 99px; background: var(--cream); color: var(--ink); font-size: 13px; font-weight: 800; transform: rotate(-8deg); }
.proj--cta { justify-content: center; align-items: center; gap: 20px; background: var(--pink); color: var(--ink); text-decoration: none; text-align: center; }
.proj--cta span { font-size: clamp(36px, 4vw, 56px); font-weight: 800; line-height: .95; letter-spacing: -.04em; }
.proj--cta b { display: grid; place-items: center; width: 80px; height: 80px; border-radius: 50%; background: var(--ink); color: var(--pink); font-size: 30px; transition: transform .5s var(--spring); }
.proj--cta:hover b { transform: rotate(-45deg) scale(1.1); }
.hs-bar { height: 4px; margin: 0 max(20px, calc((100vw - 1340px) / 2)); border-radius: 4px; background: rgba(251,241,223,.15); }
.hs-bar i { display: block; height: 100%; width: 100%; border-radius: inherit; background: var(--yellow); transform-origin: 0; transform: scaleX(var(--p, 0)); }

/* Servizi */
.services { padding: 120px max(20px, calc((100vw - 1200px) / 2)); }
.services h2, .process h2 { margin: 0 0 30px; font-size: clamp(48px, 7vw, 110px); line-height: .9; font-weight: 800; letter-spacing: -.05em; }
.services h2 span, .process h2 span { color: var(--green); }
.acc-item { border-top: 2.5px solid var(--ink); }
.acc-item:last-child { border-bottom: 2.5px solid var(--ink); }
.acc-item h3 { margin: 0; }
.acc-item button { position: relative; display: flex; align-items: center; gap: 24px; width: 100%; padding: 26px 10px; border: 0; background: transparent; color: var(--ink); font: 800 clamp(28px, 4vw, 58px)/1 "Bricolage Grotesque"; letter-spacing: -.04em; text-align: left; isolation: isolate; overflow: hidden; }
.acc-item button::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--c); transform: scaleY(0); transform-origin: bottom; transition: transform .5s cubic-bezier(.7,0,.2,1); }
.acc-item button:hover::before, .acc-item button[aria-expanded="true"]::before { transform: scaleY(1); }
.acc-item:nth-child(2) button[aria-expanded="true"], .acc-item:nth-child(2) button:hover { color: #fff; }
.acc-item .n { font-size: 16px; font-weight: 700; letter-spacing: 0; }
.acc-item i { position: relative; margin-left: auto; width: 44px; height: 44px; border: 2.5px solid currentColor; border-radius: 50%; flex: none; transition: transform .5s var(--spring); }
.acc-item i::before, .acc-item i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 2.5px; margin: -1.25px 0 0 -8px; background: currentColor; }
.acc-item i::after { transform: rotate(90deg); }
.acc-item button[aria-expanded="true"] i { transform: rotate(135deg); }
.acc-panel { padding: 6px 10px 30px 70px; background: var(--c); animation: panel .5s cubic-bezier(.2,.8,.2,1); }
.acc-item:nth-child(2) .acc-panel { color: #fff; }
@keyframes panel { from { opacity: 0; transform: translateY(-10px); } }
.acc-panel p { max-width: 560px; margin: 0 0 14px; font-size: 19px; line-height: 1.45; }
.acc-panel ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.acc-panel li { padding: 6px 14px; border-radius: 99px; background: var(--cream); color: var(--ink); font-weight: 700; font-size: 14px; }

/* Processo */
.process { padding: 60px max(20px, calc((100vw - 1340px) / 2)) 120px; }
.proc-wrap { position: relative; }
.proc-line { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 200px; overflow: visible; }
.proc-line path { fill: none; stroke: var(--ink); stroke-width: 4; stroke-linecap: round; stroke-dasharray: var(--len, 1600); stroke-dashoffset: calc(var(--len, 1600) * (1 - var(--p, 0))); }
.proc-steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 0; padding: 50px 0 0; list-style: none; }
.proc-steps li { display: grid; justify-items: center; gap: 8px; text-align: center; }
.proc-steps li:nth-child(even) { margin-top: 60px; }
.proc-steps b { display: grid; place-items: center; width: clamp(120px, 13vw, 170px); aspect-ratio: 1; border-radius: 50%; background: var(--c); font-size: clamp(20px, 2vw, 26px); font-weight: 800; transform: rotate(-8deg); box-shadow: 0 12px 0 var(--ink); transition: transform .5s var(--spring); }
.proc-steps li:nth-child(4) b { color: #fff; }
.proc-steps li:hover b { transform: rotate(6deg) scale(1.06); }
.proc-steps span { color: var(--muted); font-weight: 600; }

/* Contatti */
.contact { margin: 0 max(12px, calc((100vw - 1400px) / 2)) 30px; padding: 100px max(20px, 6vw); border-radius: 50px; background: var(--yellow); text-align: center; }
.contact h2 { max-width: 1000px; margin: 0 auto 34px; font-size: clamp(44px, 6.6vw, 104px); line-height: .95; font-weight: 800; letter-spacing: -.05em; }
.hl { display: inline-block; padding: 0 .3em; border: 4px solid var(--ink); border-radius: 99px; background: var(--pink); transform: rotate(-4deg); animation: hl 3s ease-in-out infinite; }
@keyframes hl { 50% { transform: rotate(3deg) scale(1.04); } }
.con-form { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; max-width: 620px; margin: 0 auto; }
.con-form label { flex: 1 1 280px; }
.con-form input { width: 100%; min-height: 56px; padding: 0 22px; border: 2.5px solid var(--ink); border-radius: 99px; background: var(--cream); font-size: 17px; }
.con-form input:focus { outline: 0; box-shadow: 0 0 0 4px rgba(30,122,74,.3); }
.con-form .g-pill { min-height: 56px; }
.form-msg { flex-basis: 100%; min-height: 1.4em; margin: 6px 0 0; font-weight: 600; }
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding: 10px max(20px, calc((100vw - 1340px) / 2)) 34px; color: var(--muted); font-size: 13px; }
.foot a { color: var(--green); font-weight: 800; }

@media (max-width: 899px) {
  .nav-toggle { display: inline-grid; place-content: center; gap: 6px; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--green); }
  .nav-toggle i { display: block; width: 18px; height: 2.5px; border-radius: 2px; background: #fff; transition: transform .3s var(--spring); }
  .nav-toggle[aria-expanded="true"] i:first-of-type { transform: translateY(4.25px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] i:last-of-type { transform: translateY(-4.25px) rotate(-45deg); }
  .menu { position: absolute; left: 12px; right: 12px; top: calc(100% + 6px); flex-direction: column; align-items: stretch; gap: 0; padding: 14px; border-radius: 30px; background: var(--pink); transform: scale(.85) rotate(-3deg); transform-origin: top right; opacity: 0; visibility: hidden; transition: .4s var(--spring); }
  .menu.is-open { transform: none; opacity: 1; visibility: visible; }
  .menu a:not(.g-pill) { padding: 14px 10px; font-size: 26px; font-weight: 800; }
  .hero { grid-template-columns: 1fr; padding-bottom: 80px; }
  .hero h1 { margin-top: 40px; }
  .blob-wrap { width: min(420px, 92%); }
  .pills { position: relative; inset: auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; pointer-events: auto; }
  .pill-tag { position: relative; left: auto; top: auto; transform: rotate(var(--r)) translate(var(--dx, 0px), var(--dy, 0px)); min-height: 46px; }
  .drag-note { right: 20px; bottom: 20px; }
  .projects { height: auto !important; }
  .hs-sticky { position: relative; height: auto; padding: 80px 0 50px; }
  .hs-track { overflow-x: auto; width: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; transform: none !important; }
  .proj { scroll-snap-align: center; width: 78vw; height: 420px; }
  .hs-bar, .hs-hint { display: none; }
  .proc-steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .proc-steps li:nth-child(even) { margin-top: 30px; }
  .proc-line { display: none; }
  .acc-panel { padding-left: 10px; }
  .contact { border-radius: 34px; padding-top: 70px; padding-bottom: 70px; }
}
@media (prefers-reduced-motion: reduce) { .brand path, .squiggle path, .arc-y path { stroke-dashoffset: 0; } .blob, .spiral, .flower, .hl, .pill-tag { animation: none; } .man-text .wd { opacity: 1; } }

/* fx · ondata 5-6 */

.cs-people { padding: 120px max(24px, calc((100vw - 1240px) / 2)); }
.cs-pk { margin: 0 0 12px; font-weight: 700; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; }
.cs-people h2 { margin: 0 0 40px; font-size: clamp(48px, 6vw, 100px); line-height: .92; } .cs-people h2 em { font-style: normal; color: #2fae66; }
.cs-bgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.cs-blob { aspect-ratio: 1; animation: cs-morph 9s ease-in-out infinite alternate; border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; }
.k1 { animation-delay: -2s; background: #ffd23f; } .k2 { animation-delay: -4s; } .k3 { animation-delay: -6s; } .k4 { animation-delay: -1s; } .k5 { animation-delay: -3s; }
@keyframes cs-morph { 33% { border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%; } 66% { border-radius: 30% 70% 42% 58% / 63% 30% 70% 37%; } 100% { border-radius: 52% 48% 30% 70% / 39% 62% 38% 61%; } }
@media (max-width: 760px) { .cs-bgrid { grid-template-columns: 1fr 1fr; gap: 14px; } }
@media (prefers-reduced-motion: reduce) { .cs-blob { animation: none; } }
